StreamAccessRules -> StreamAccessRule
@@ -165,7 +165,7 @@ type StreamSignedURLParameters struct {
EXP int `json:"exp,omitempty"`
NBF int `json:"nbf,omitempty"`
Downloadable bool `json:"downloadable,omitempty"`
- AccessRules []StreamAccessRules `json:"accessRules,omitempty"`
+ AccessRules []StreamAccessRule `json:"accessRules,omitempty"`
}
// StreamVideoResponse represents an API response of a stream video.
@@ -196,8 +196,8 @@ type StreamSignedURLResponse struct {
}
}
-// StreamAccessRules represents the accessRules when creating a signed URL.
-type StreamAccessRules struct {
+// StreamAccessRule represents the accessRules when creating a signed URL.
+type StreamAccessRule struct {
Type string `json:"type"`
Country []string `json:"country,omitempty"`
Action string `json:"action"`
