on develop help sign in
Regenerating gogol-youtube from latest service definition
commitda4fc87e794d0059fc66720f08b0cb54e998b389 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parent64bf98c
6 files changed+637−28
gen/model/youtube/v3/youtube-api.json+142−11 gogol-youtube/gen/Network/Google/Resource/YouTube/Subscriptions/List.hs+26−11 gogol-youtube/gen/Network/Google/YouTube.hs+39 gogol-youtube/gen/Network/Google/YouTube/Types.hs+39 gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+301−6 gogol-youtube/gen/Network/Google/YouTube/Types/Sum.hs+90
gen/model/youtube/v3/youtube-api.json+142−11
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/cp06s8fig2XQeaVGo3ZF8LHl4js\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/zZWbZ8DfqCMiADEVSmogUNbI6m4\"",
44 "discoveryVersion": "v1",
55 "id": "youtube:v3",
66 "name": "youtube",
77 "canonicalName": "YouTube",
88 "version": "v3",
9− "revision": "20160426",
9+ "revision": "20160728",
1010 "title": "YouTube Data API",
1111 "description": "Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.",
1212 "ownerDomain": "google.com",
@@ -1770,7 +1770,7 @@
17701770 "ContentRating": {
17711771 "id": "ContentRating",
17721772 "type": "object",
1773− "description": "Ratings schemes. The country-specific ratings are mostly for movies and shows. NEXT_ID: 67",
1773+ "description": "Ratings schemes. The country-specific ratings are mostly for movies and shows. NEXT_ID: 68",
17741774 "properties": {
17751775 "acbRating": {
17761776 "type": "string",
@@ -2419,6 +2419,39 @@
24192419 ""
24202420 ]
24212421 },
2422+ "fpbRatingReasons": {
2423+ "type": "array",
2424+ "description": "Reasons that explain why the video received its FPB (South Africa) rating.",
2425+ "items": {
2426+ "type": "string",
2427+ "enum": [
2428+ "fpbBlasphemy",
2429+ "fpbCriminalTechniques",
2430+ "fpbDrugs",
2431+ "fpbHorror",
2432+ "fpbImitativeActsTechniques",
2433+ "fpbLanguage",
2434+ "fpbNudity",
2435+ "fpbPrejudice",
2436+ "fpbSex",
2437+ "fpbSexualViolence",
2438+ "fpbViolence"
2439+ ],
2440+ "enumDescriptions": [
2441+ "",
2442+ "",
2443+ "",
2444+ "",
2445+ "",
2446+ "",
2447+ "",
2448+ "",
2449+ "",
2450+ "",
2451+ ""
2452+ ]
2453+ }
2454+ },
24222455 "fskRating": {
24232456 "type": "string",
24242457 "description": "The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany) rating.",
@@ -2445,11 +2478,17 @@
24452478 "enum": [
24462479 "grfilmE",
24472480 "grfilmK",
2481+ "grfilmK12",
24482482 "grfilmK13",
2483+ "grfilmK15",
24492484 "grfilmK17",
2485+ "grfilmK18",
24502486 "grfilmUnrated"
24512487 ],
24522488 "enumDescriptions": [
2489+ "",
2490+ "",
2491+ "",
24532492 "",
24542493 "",
24552494 "",
@@ -4000,13 +4039,7 @@
40004039 "scheduledEndTime": {
40014040 "type": "string",
40024041 "description": "The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
4003− "format": "date-time",
4004− "annotations": {
4005− "required": [
4006− "youtube.liveBroadcasts.insert",
4007− "youtube.liveBroadcasts.update"
4008− ]
4009− }
4042+ "format": "date-time"
40104043 },
40114044 "scheduledStartTime": {
40124045 "type": "string",
@@ -4426,6 +4459,18 @@
44264459 "messageRetractedDetails": {
44274460 "$ref": "LiveChatMessageRetractedDetails"
44284461 },
4462+ "pollClosedDetails": {
4463+ "$ref": "LiveChatPollClosedDetails"
4464+ },
4465+ "pollEditedDetails": {
4466+ "$ref": "LiveChatPollEditedDetails"
4467+ },
4468+ "pollOpenedDetails": {
4469+ "$ref": "LiveChatPollOpenedDetails"
4470+ },
4471+ "pollVotedDetails": {
4472+ "$ref": "LiveChatPollVotedDetails"
4473+ },
44294474 "publishedAt": {
44304475 "type": "string",
44314476 "description": "The date and time when the message was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
@@ -4444,6 +4489,10 @@
44444489 "messageDeletedEvent",
44454490 "messageRetractedEvent",
44464491 "newSponsorEvent",
4492+ "pollClosedEvent",
4493+ "pollEditedEvent",
4494+ "pollOpenedEvent",
4495+ "pollVotedEvent",
44474496 "sponsorOnlyModeEndedEvent",
44484497 "sponsorOnlyModeStartedEvent",
44494498 "textMessageEvent",
@@ -4460,6 +4509,10 @@
44604509 "",
44614510 "",
44624511 "",
4512+ "",
4513+ "",
4514+ "",
4515+ "",
44634516 ""
44644517 ]
44654518 },
@@ -4550,6 +4603,79 @@
45504603 }
45514604 }
45524605 },
4606+ "LiveChatPollClosedDetails": {
4607+ "id": "LiveChatPollClosedDetails",
4608+ "type": "object",
4609+ "properties": {
4610+ "pollId": {
4611+ "type": "string",
4612+ "description": "The id of the poll that was closed."
4613+ }
4614+ }
4615+ },
4616+ "LiveChatPollEditedDetails": {
4617+ "id": "LiveChatPollEditedDetails",
4618+ "type": "object",
4619+ "properties": {
4620+ "id": {
4621+ "type": "string"
4622+ },
4623+ "items": {
4624+ "type": "array",
4625+ "items": {
4626+ "$ref": "LiveChatPollItem"
4627+ }
4628+ },
4629+ "prompt": {
4630+ "type": "string"
4631+ }
4632+ }
4633+ },
4634+ "LiveChatPollItem": {
4635+ "id": "LiveChatPollItem",
4636+ "type": "object",
4637+ "properties": {
4638+ "description": {
4639+ "type": "string",
4640+ "description": "Plain text description of the item."
4641+ },
4642+ "itemId": {
4643+ "type": "string"
4644+ }
4645+ }
4646+ },
4647+ "LiveChatPollOpenedDetails": {
4648+ "id": "LiveChatPollOpenedDetails",
4649+ "type": "object",
4650+ "properties": {
4651+ "id": {
4652+ "type": "string"
4653+ },
4654+ "items": {
4655+ "type": "array",
4656+ "items": {
4657+ "$ref": "LiveChatPollItem"
4658+ }
4659+ },
4660+ "prompt": {
4661+ "type": "string"
4662+ }
4663+ }
4664+ },
4665+ "LiveChatPollVotedDetails": {
4666+ "id": "LiveChatPollVotedDetails",
4667+ "type": "object",
4668+ "properties": {
4669+ "itemId": {
4670+ "type": "string",
4671+ "description": "The poll item the user chose."
4672+ },
4673+ "pollId": {
4674+ "type": "string",
4675+ "description": "The poll the user voted on."
4676+ }
4677+ }
4678+ },
45534679 "LiveChatTextMessageDetails": {
45544680 "id": "LiveChatTextMessageDetails",
45554681 "type": "object",
@@ -9877,9 +10003,14 @@
987710003 "description": "Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.",
987810004 "location": "query"
987910005 },
10006+ "myRecentSubscribers": {
10007+ "type": "boolean",
10008+ "description": "Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated user in reverse chronological order (newest first).",
10009+ "location": "query"
10010+ },
988010011 "mySubscribers": {
988110012 "type": "boolean",
9882− "description": "Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated user.",
10013+ "description": "Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated user in no particular order.",
988310014 "location": "query"
988410015 },
988510016 "onBehalfOfContentOwner": {
gogol-youtube/gen/Network/Google/Resource/YouTube/Subscriptions/List.hs+26−11
@@ -36,6 +36,7 @@ module Network.Google.Resource.YouTube.Subscriptions.List
3636 , subPart
3737 , subMine
3838 , subChannelId
39+ , subMyRecentSubscribers
3940 , subOnBehalfOfContentOwner
4041 , subOnBehalfOfContentOwnerChannel
4142 , subId
@@ -58,16 +59,17 @@ type SubscriptionsListResource =
5859 QueryParam "part" Text :>
5960 QueryParam "mine" Bool :>
6061 QueryParam "channelId" Text :>
61− QueryParam "onBehalfOfContentOwner" Text :>
62− QueryParam "onBehalfOfContentOwnerChannel" Text :>
63− QueryParam "id" Text :>
64− QueryParam "mySubscribers" Bool :>
65− QueryParam "forChannelId" Text :>
66− QueryParam "pageToken" Text :>
67− QueryParam "order" SubscriptionsListOrder :>
68− QueryParam "maxResults" (Textual Word32) :>
69− QueryParam "alt" AltJSON :>
70− Get '[JSON] SubscriptionListResponse
62+ QueryParam "myRecentSubscribers" Bool :>
63+ QueryParam "onBehalfOfContentOwner" Text :>
64+ QueryParam "onBehalfOfContentOwnerChannel" Text :>
65+ QueryParam "id" Text :>
66+ QueryParam "mySubscribers" Bool :>
67+ QueryParam "forChannelId" Text :>
68+ QueryParam "pageToken" Text :>
69+ QueryParam "order" SubscriptionsListOrder :>
70+ QueryParam "maxResults" (Textual Word32) :>
71+ QueryParam "alt" AltJSON :>
72+ Get '[JSON] SubscriptionListResponse
7173
7274-- | Returns subscription resources that match the API request criteria.
7375--
@@ -76,6 +78,7 @@ data SubscriptionsList = SubscriptionsList'
7678 { _subPart :: !Text
7779 , _subMine :: !(Maybe Bool)
7880 , _subChannelId :: !(Maybe Text)
81+ , _subMyRecentSubscribers :: !(Maybe Bool)
7982 , _subOnBehalfOfContentOwner :: !(Maybe Text)
8083 , _subOnBehalfOfContentOwnerChannel :: !(Maybe Text)
8184 , _subId :: !(Maybe Text)
@@ -96,6 +99,8 @@ data SubscriptionsList = SubscriptionsList'
9699--
97100-- * 'subChannelId'
98101--
102+-- * 'subMyRecentSubscribers'
103+--
99104-- * 'subOnBehalfOfContentOwner'
100105--
101106-- * 'subOnBehalfOfContentOwnerChannel'
@@ -119,6 +124,7 @@ subscriptionsList pSubPart_ =
119124 { _subPart = pSubPart_
120125 , _subMine = Nothing
121126 , _subChannelId = Nothing
127+ , _subMyRecentSubscribers = Nothing
122128 , _subOnBehalfOfContentOwner = Nothing
123129 , _subOnBehalfOfContentOwnerChannel = Nothing
124130 , _subId = Nothing
@@ -150,6 +156,14 @@ subChannelId :: Lens' SubscriptionsList (Maybe Text)
150156subChannelId
151157 = lens _subChannelId (\ s a -> s{_subChannelId = a})
152158
159+-- | Set this parameter\'s value to true to retrieve a feed of the
160+-- subscribers of the authenticated user in reverse chronological order
161+-- (newest first).
162+subMyRecentSubscribers :: Lens' SubscriptionsList (Maybe Bool)
163+subMyRecentSubscribers
164+ = lens _subMyRecentSubscribers
165+ (\ s a -> s{_subMyRecentSubscribers = a})
166+
153167-- | Note: This parameter is intended exclusively for YouTube content
154168-- partners. The onBehalfOfContentOwner parameter indicates that the
155169-- request\'s authorization credentials identify a YouTube CMS user who is
@@ -194,7 +208,7 @@ subId :: Lens' SubscriptionsList (Maybe Text)
194208subId = lens _subId (\ s a -> s{_subId = a})
195209
196210-- | Set this parameter\'s value to true to retrieve a feed of the
197−-- subscribers of the authenticated user.
211+-- subscribers of the authenticated user in no particular order.
198212subMySubscribers :: Lens' SubscriptionsList (Maybe Bool)
199213subMySubscribers
200214 = lens _subMySubscribers
@@ -237,6 +251,7 @@ instance GoogleRequest SubscriptionsList where
237251 "https://www.googleapis.com/auth/youtubepartner"]
238252 requestClient SubscriptionsList'{..}
239253 = go (Just _subPart) _subMine _subChannelId
254+ _subMyRecentSubscribers
240255 _subOnBehalfOfContentOwner
241256 _subOnBehalfOfContentOwnerChannel
242257 _subId
gogol-youtube/gen/Network/Google/YouTube.hs+39
@@ -376,6 +376,11 @@ module Network.Google.YouTube
376376 -- ** CaptionSnippetFailureReason
377377 , CaptionSnippetFailureReason (..)
378378
379+ -- ** LiveChatPollClosedDetails
380+ , LiveChatPollClosedDetails
381+ , liveChatPollClosedDetails
382+ , lcpcdPollId
383+
379384 -- ** PromotedItem
380385 , PromotedItem
381386 , promotedItem
@@ -857,6 +862,13 @@ module Network.Google.YouTube
857862 -- ** ContentRatingBfvcRating
858863 , ContentRatingBfvcRating (..)
859864
865+ -- ** LiveChatPollEditedDetails
866+ , LiveChatPollEditedDetails
867+ , liveChatPollEditedDetails
868+ , lcpedPrompt
869+ , lcpedItems
870+ , lcpedId
871+
860872 -- ** LiveBroadcastTopicType
861873 , LiveBroadcastTopicType (..)
862874
@@ -1100,9 +1112,13 @@ module Network.Google.YouTube
11001112 , lcmsMessageDeletedDetails
11011113 , lcmsLiveChatId
11021114 , lcmsPublishedAt
1115+ , lcmsPollOpenedDetails
1116+ , lcmsPollVotedDetails
11031117 , lcmsUserBannedDetails
11041118 , lcmsTextMessageDetails
1119+ , lcmsPollClosedDetails
11051120 , lcmsMessageRetractedDetails
1121+ , lcmsPollEditedDetails
11061122 , lcmsType
11071123 , lcmsAuthorChannelId
11081124 , lcmsFanFundingEventDetails
@@ -1458,6 +1474,9 @@ module Network.Google.YouTube
14581474 -- ** LiveBroadcastsListBroadcastType
14591475 , LiveBroadcastsListBroadcastType (..)
14601476
1477+ -- ** ContentRatingFpbRatingReasonsItem
1478+ , ContentRatingFpbRatingReasonsItem (..)
1479+
14611480 -- ** VideoProcessingDetailsProcessingStatus
14621481 , VideoProcessingDetailsProcessingStatus (..)
14631482
@@ -1646,6 +1665,12 @@ module Network.Google.YouTube
16461665 , srsLiveBroadcastContent
16471666 , srsDescription
16481667
1668+ -- ** LiveChatPollItem
1669+ , LiveChatPollItem
1670+ , liveChatPollItem
1671+ , lcpiItemId
1672+ , lcpiDescription
1673+
16491674 -- ** ActivityContentDetailsSocialType
16501675 , ActivityContentDetailsSocialType (..)
16511676
@@ -1875,6 +1900,13 @@ module Network.Google.YouTube
18751900 , languageTag
18761901 , ltValue
18771902
1903+ -- ** LiveChatPollOpenedDetails
1904+ , LiveChatPollOpenedDetails
1905+ , liveChatPollOpenedDetails
1906+ , lcpodPrompt
1907+ , lcpodItems
1908+ , lcpodId
1909+
18781910 -- ** SearchListEventType
18791911 , SearchListEventType (..)
18801912
@@ -2077,6 +2109,7 @@ module Network.Google.YouTube
20772109 -- ** ContentRating
20782110 , ContentRating
20792111 , contentRating
2112+ , crFpbRatingReasons
20802113 , crPefilmRating
20812114 , crCccRating
20822115 , crAnatelRating
@@ -2288,6 +2321,12 @@ module Network.Google.YouTube
22882321
22892322 -- ** ContentRatingCatvRating
22902323 , ContentRatingCatvRating (..)
2324+
2325+ -- ** LiveChatPollVotedDetails
2326+ , LiveChatPollVotedDetails
2327+ , liveChatPollVotedDetails
2328+ , lcpvdPollId
2329+ , lcpvdItemId
22912330 ) where
22922331
22932332import Network.Google.Prelude
gogol-youtube/gen/Network/Google/YouTube/Types.hs+39
@@ -153,6 +153,11 @@ module Network.Google.YouTube.Types
153153 -- * CaptionSnippetFailureReason
154154 , CaptionSnippetFailureReason (..)
155155
156+ -- * LiveChatPollClosedDetails
157+ , LiveChatPollClosedDetails
158+ , liveChatPollClosedDetails
159+ , lcpcdPollId
160+
156161 -- * PromotedItem
157162 , PromotedItem
158163 , promotedItem
@@ -634,6 +639,13 @@ module Network.Google.YouTube.Types
634639 -- * ContentRatingBfvcRating
635640 , ContentRatingBfvcRating (..)
636641
642+ -- * LiveChatPollEditedDetails
643+ , LiveChatPollEditedDetails
644+ , liveChatPollEditedDetails
645+ , lcpedPrompt
646+ , lcpedItems
647+ , lcpedId
648+
637649 -- * LiveBroadcastTopicType
638650 , LiveBroadcastTopicType (..)
639651
@@ -877,9 +889,13 @@ module Network.Google.YouTube.Types
877889 , lcmsMessageDeletedDetails
878890 , lcmsLiveChatId
879891 , lcmsPublishedAt
892+ , lcmsPollOpenedDetails
893+ , lcmsPollVotedDetails
880894 , lcmsUserBannedDetails
881895 , lcmsTextMessageDetails
896+ , lcmsPollClosedDetails
882897 , lcmsMessageRetractedDetails
898+ , lcmsPollEditedDetails
883899 , lcmsType
884900 , lcmsAuthorChannelId
885901 , lcmsFanFundingEventDetails
@@ -1235,6 +1251,9 @@ module Network.Google.YouTube.Types
12351251 -- * LiveBroadcastsListBroadcastType
12361252 , LiveBroadcastsListBroadcastType (..)
12371253
1254+ -- * ContentRatingFpbRatingReasonsItem
1255+ , ContentRatingFpbRatingReasonsItem (..)
1256+
12381257 -- * VideoProcessingDetailsProcessingStatus
12391258 , VideoProcessingDetailsProcessingStatus (..)
12401259
@@ -1423,6 +1442,12 @@ module Network.Google.YouTube.Types
14231442 , srsLiveBroadcastContent
14241443 , srsDescription
14251444
1445+ -- * LiveChatPollItem
1446+ , LiveChatPollItem
1447+ , liveChatPollItem
1448+ , lcpiItemId
1449+ , lcpiDescription
1450+
14261451 -- * ActivityContentDetailsSocialType
14271452 , ActivityContentDetailsSocialType (..)
14281453
@@ -1652,6 +1677,13 @@ module Network.Google.YouTube.Types
16521677 , languageTag
16531678 , ltValue
16541679
1680+ -- * LiveChatPollOpenedDetails
1681+ , LiveChatPollOpenedDetails
1682+ , liveChatPollOpenedDetails
1683+ , lcpodPrompt
1684+ , lcpodItems
1685+ , lcpodId
1686+
16551687 -- * SearchListEventType
16561688 , SearchListEventType (..)
16571689
@@ -1854,6 +1886,7 @@ module Network.Google.YouTube.Types
18541886 -- * ContentRating
18551887 , ContentRating
18561888 , contentRating
1889+ , crFpbRatingReasons
18571890 , crPefilmRating
18581891 , crCccRating
18591892 , crAnatelRating
@@ -2065,6 +2098,12 @@ module Network.Google.YouTube.Types
20652098
20662099 -- * ContentRatingCatvRating
20672100 , ContentRatingCatvRating (..)
2101+
2102+ -- * LiveChatPollVotedDetails
2103+ , LiveChatPollVotedDetails
2104+ , liveChatPollVotedDetails
2105+ , lcpvdPollId
2106+ , lcpvdItemId
20682107 ) where
20692108
20702109import Network.Google.Prelude
gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+301−6
@@ -852,6 +852,39 @@ instance ToJSON ChannelStatus where
852852 ("longUploadsStatus" .=) <$> _csLongUploadsStatus,
853853 ("privacyStatus" .=) <$> _csPrivacyStatus])
854854
855+--
856+-- /See:/ 'liveChatPollClosedDetails' smart constructor.
857+newtype LiveChatPollClosedDetails = LiveChatPollClosedDetails'
858+ { _lcpcdPollId :: Maybe Text
859+ } deriving (Eq,Show,Data,Typeable,Generic)
860+
861+-- | Creates a value of 'LiveChatPollClosedDetails' with the minimum fields required to make a request.
862+--
863+-- Use one of the following lenses to modify other fields as desired:
864+--
865+-- * 'lcpcdPollId'
866+liveChatPollClosedDetails
867+ :: LiveChatPollClosedDetails
868+liveChatPollClosedDetails =
869+ LiveChatPollClosedDetails'
870+ { _lcpcdPollId = Nothing
871+ }
872+
873+-- | The id of the poll that was closed.
874+lcpcdPollId :: Lens' LiveChatPollClosedDetails (Maybe Text)
875+lcpcdPollId
876+ = lens _lcpcdPollId (\ s a -> s{_lcpcdPollId = a})
877+
878+instance FromJSON LiveChatPollClosedDetails where
879+ parseJSON
880+ = withObject "LiveChatPollClosedDetails"
881+ (\ o ->
882+ LiveChatPollClosedDetails' <$> (o .:? "pollId"))
883+
884+instance ToJSON LiveChatPollClosedDetails where
885+ toJSON LiveChatPollClosedDetails'{..}
886+ = object (catMaybes [("pollId" .=) <$> _lcpcdPollId])
887+
855888-- | Describes a single promoted item.
856889--
857890-- /See:/ 'promotedItem' smart constructor.
@@ -4572,6 +4605,61 @@ instance ToJSON ChannelTopicDetails where
45724605 = object
45734606 (catMaybes [("topicIds" .=) <$> _ctdTopicIds])
45744607
4608+--
4609+-- /See:/ 'liveChatPollEditedDetails' smart constructor.
4610+data LiveChatPollEditedDetails = LiveChatPollEditedDetails'
4611+ { _lcpedPrompt :: !(Maybe Text)
4612+ , _lcpedItems :: !(Maybe [LiveChatPollItem])
4613+ , _lcpedId :: !(Maybe Text)
4614+ } deriving (Eq,Show,Data,Typeable,Generic)
4615+
4616+-- | Creates a value of 'LiveChatPollEditedDetails' with the minimum fields required to make a request.
4617+--
4618+-- Use one of the following lenses to modify other fields as desired:
4619+--
4620+-- * 'lcpedPrompt'
4621+--
4622+-- * 'lcpedItems'
4623+--
4624+-- * 'lcpedId'
4625+liveChatPollEditedDetails
4626+ :: LiveChatPollEditedDetails
4627+liveChatPollEditedDetails =
4628+ LiveChatPollEditedDetails'
4629+ { _lcpedPrompt = Nothing
4630+ , _lcpedItems = Nothing
4631+ , _lcpedId = Nothing
4632+ }
4633+
4634+lcpedPrompt :: Lens' LiveChatPollEditedDetails (Maybe Text)
4635+lcpedPrompt
4636+ = lens _lcpedPrompt (\ s a -> s{_lcpedPrompt = a})
4637+
4638+lcpedItems :: Lens' LiveChatPollEditedDetails [LiveChatPollItem]
4639+lcpedItems
4640+ = lens _lcpedItems (\ s a -> s{_lcpedItems = a}) .
4641+ _Default
4642+ . _Coerce
4643+
4644+lcpedId :: Lens' LiveChatPollEditedDetails (Maybe Text)
4645+lcpedId = lens _lcpedId (\ s a -> s{_lcpedId = a})
4646+
4647+instance FromJSON LiveChatPollEditedDetails where
4648+ parseJSON
4649+ = withObject "LiveChatPollEditedDetails"
4650+ (\ o ->
4651+ LiveChatPollEditedDetails' <$>
4652+ (o .:? "prompt") <*> (o .:? "items" .!= mempty) <*>
4653+ (o .:? "id"))
4654+
4655+instance ToJSON LiveChatPollEditedDetails where
4656+ toJSON LiveChatPollEditedDetails'{..}
4657+ = object
4658+ (catMaybes
4659+ [("prompt" .=) <$> _lcpedPrompt,
4660+ ("items" .=) <$> _lcpedItems,
4661+ ("id" .=) <$> _lcpedId])
4662+
45754663--
45764664-- /See:/ 'videoCategoryListResponse' smart constructor.
45774665data VideoCategoryListResponse = VideoCategoryListResponse'
@@ -6525,9 +6613,13 @@ data LiveChatMessageSnippet = LiveChatMessageSnippet'
65256613 { _lcmsMessageDeletedDetails :: !(Maybe LiveChatMessageDeletedDetails)
65266614 , _lcmsLiveChatId :: !(Maybe Text)
65276615 , _lcmsPublishedAt :: !(Maybe DateTime')
6616+ , _lcmsPollOpenedDetails :: !(Maybe LiveChatPollOpenedDetails)
6617+ , _lcmsPollVotedDetails :: !(Maybe LiveChatPollVotedDetails)
65286618 , _lcmsUserBannedDetails :: !(Maybe LiveChatUserBannedMessageDetails)
65296619 , _lcmsTextMessageDetails :: !(Maybe LiveChatTextMessageDetails)
6620+ , _lcmsPollClosedDetails :: !(Maybe LiveChatPollClosedDetails)
65306621 , _lcmsMessageRetractedDetails :: !(Maybe LiveChatMessageRetractedDetails)
6622+ , _lcmsPollEditedDetails :: !(Maybe LiveChatPollEditedDetails)
65316623 , _lcmsType :: !(Maybe LiveChatMessageSnippetType)
65326624 , _lcmsAuthorChannelId :: !(Maybe Text)
65336625 , _lcmsFanFundingEventDetails :: !(Maybe LiveChatFanFundingEventDetails)
@@ -6545,12 +6637,20 @@ data LiveChatMessageSnippet = LiveChatMessageSnippet'
65456637--
65466638-- * 'lcmsPublishedAt'
65476639--
6640+-- * 'lcmsPollOpenedDetails'
6641+--
6642+-- * 'lcmsPollVotedDetails'
6643+--
65486644-- * 'lcmsUserBannedDetails'
65496645--
65506646-- * 'lcmsTextMessageDetails'
65516647--
6648+-- * 'lcmsPollClosedDetails'
6649+--
65526650-- * 'lcmsMessageRetractedDetails'
65536651--
6652+-- * 'lcmsPollEditedDetails'
6653+--
65546654-- * 'lcmsType'
65556655--
65566656-- * 'lcmsAuthorChannelId'
@@ -6567,9 +6667,13 @@ liveChatMessageSnippet =
65676667 { _lcmsMessageDeletedDetails = Nothing
65686668 , _lcmsLiveChatId = Nothing
65696669 , _lcmsPublishedAt = Nothing
6670+ , _lcmsPollOpenedDetails = Nothing
6671+ , _lcmsPollVotedDetails = Nothing
65706672 , _lcmsUserBannedDetails = Nothing
65716673 , _lcmsTextMessageDetails = Nothing
6674+ , _lcmsPollClosedDetails = Nothing
65726675 , _lcmsMessageRetractedDetails = Nothing
6676+ , _lcmsPollEditedDetails = Nothing
65736677 , _lcmsType = Nothing
65746678 , _lcmsAuthorChannelId = Nothing
65756679 , _lcmsFanFundingEventDetails = Nothing
@@ -6595,6 +6699,16 @@ lcmsPublishedAt
65956699 (\ s a -> s{_lcmsPublishedAt = a})
65966700 . mapping _DateTime
65976701
6702+lcmsPollOpenedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatPollOpenedDetails)
6703+lcmsPollOpenedDetails
6704+ = lens _lcmsPollOpenedDetails
6705+ (\ s a -> s{_lcmsPollOpenedDetails = a})
6706+
6707+lcmsPollVotedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatPollVotedDetails)
6708+lcmsPollVotedDetails
6709+ = lens _lcmsPollVotedDetails
6710+ (\ s a -> s{_lcmsPollVotedDetails = a})
6711+
65986712lcmsUserBannedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatUserBannedMessageDetails)
65996713lcmsUserBannedDetails
66006714 = lens _lcmsUserBannedDetails
@@ -6607,11 +6721,21 @@ lcmsTextMessageDetails
66076721 = lens _lcmsTextMessageDetails
66086722 (\ s a -> s{_lcmsTextMessageDetails = a})
66096723
6724+lcmsPollClosedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatPollClosedDetails)
6725+lcmsPollClosedDetails
6726+ = lens _lcmsPollClosedDetails
6727+ (\ s a -> s{_lcmsPollClosedDetails = a})
6728+
66106729lcmsMessageRetractedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatMessageRetractedDetails)
66116730lcmsMessageRetractedDetails
66126731 = lens _lcmsMessageRetractedDetails
66136732 (\ s a -> s{_lcmsMessageRetractedDetails = a})
66146733
6734+lcmsPollEditedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatPollEditedDetails)
6735+lcmsPollEditedDetails
6736+ = lens _lcmsPollEditedDetails
6737+ (\ s a -> s{_lcmsPollEditedDetails = a})
6738+
66156739-- | The type of message, this will always be present, it determines the
66166740-- contents of the message as well as which fields will be present.
66176741lcmsType :: Lens' LiveChatMessageSnippet (Maybe LiveChatMessageSnippetType)
@@ -6658,9 +6782,13 @@ instance FromJSON LiveChatMessageSnippet where
66586782 (o .:? "messageDeletedDetails") <*>
66596783 (o .:? "liveChatId")
66606784 <*> (o .:? "publishedAt")
6785+ <*> (o .:? "pollOpenedDetails")
6786+ <*> (o .:? "pollVotedDetails")
66616787 <*> (o .:? "userBannedDetails")
66626788 <*> (o .:? "textMessageDetails")
6789+ <*> (o .:? "pollClosedDetails")
66636790 <*> (o .:? "messageRetractedDetails")
6791+ <*> (o .:? "pollEditedDetails")
66646792 <*> (o .:? "type")
66656793 <*> (o .:? "authorChannelId")
66666794 <*> (o .:? "fanFundingEventDetails")
@@ -6675,11 +6803,15 @@ instance ToJSON LiveChatMessageSnippet where
66756803 _lcmsMessageDeletedDetails,
66766804 ("liveChatId" .=) <$> _lcmsLiveChatId,
66776805 ("publishedAt" .=) <$> _lcmsPublishedAt,
6806+ ("pollOpenedDetails" .=) <$> _lcmsPollOpenedDetails,
6807+ ("pollVotedDetails" .=) <$> _lcmsPollVotedDetails,
66786808 ("userBannedDetails" .=) <$> _lcmsUserBannedDetails,
66796809 ("textMessageDetails" .=) <$>
66806810 _lcmsTextMessageDetails,
6811+ ("pollClosedDetails" .=) <$> _lcmsPollClosedDetails,
66816812 ("messageRetractedDetails" .=) <$>
66826813 _lcmsMessageRetractedDetails,
6814+ ("pollEditedDetails" .=) <$> _lcmsPollEditedDetails,
66836815 ("type" .=) <$> _lcmsType,
66846816 ("authorChannelId" .=) <$> _lcmsAuthorChannelId,
66856817 ("fanFundingEventDetails" .=) <$>
@@ -10432,6 +10564,52 @@ instance ToJSON SearchResultSnippet where
1043210564 _srsLiveBroadcastContent,
1043310565 ("description" .=) <$> _srsDescription])
1043410566
10567+--
10568+-- /See:/ 'liveChatPollItem' smart constructor.
10569+data LiveChatPollItem = LiveChatPollItem'
10570+ { _lcpiItemId :: !(Maybe Text)
10571+ , _lcpiDescription :: !(Maybe Text)
10572+ } deriving (Eq,Show,Data,Typeable,Generic)
10573+
10574+-- | Creates a value of 'LiveChatPollItem' with the minimum fields required to make a request.
10575+--
10576+-- Use one of the following lenses to modify other fields as desired:
10577+--
10578+-- * 'lcpiItemId'
10579+--
10580+-- * 'lcpiDescription'
10581+liveChatPollItem
10582+ :: LiveChatPollItem
10583+liveChatPollItem =
10584+ LiveChatPollItem'
10585+ { _lcpiItemId = Nothing
10586+ , _lcpiDescription = Nothing
10587+ }
10588+
10589+lcpiItemId :: Lens' LiveChatPollItem (Maybe Text)
10590+lcpiItemId
10591+ = lens _lcpiItemId (\ s a -> s{_lcpiItemId = a})
10592+
10593+-- | Plain text description of the item.
10594+lcpiDescription :: Lens' LiveChatPollItem (Maybe Text)
10595+lcpiDescription
10596+ = lens _lcpiDescription
10597+ (\ s a -> s{_lcpiDescription = a})
10598+
10599+instance FromJSON LiveChatPollItem where
10600+ parseJSON
10601+ = withObject "LiveChatPollItem"
10602+ (\ o ->
10603+ LiveChatPollItem' <$>
10604+ (o .:? "itemId") <*> (o .:? "description"))
10605+
10606+instance ToJSON LiveChatPollItem where
10607+ toJSON LiveChatPollItem'{..}
10608+ = object
10609+ (catMaybes
10610+ [("itemId" .=) <$> _lcpiItemId,
10611+ ("description" .=) <$> _lcpiDescription])
10612+
1043510613--
1043610614-- /See:/ 'sponsorListResponse' smart constructor.
1043710615data SponsorListResponse = SponsorListResponse'
@@ -11836,6 +12014,61 @@ instance ToJSON LanguageTag where
1183612014 toJSON LanguageTag'{..}
1183712015 = object (catMaybes [("value" .=) <$> _ltValue])
1183812016
12017+--
12018+-- /See:/ 'liveChatPollOpenedDetails' smart constructor.
12019+data LiveChatPollOpenedDetails = LiveChatPollOpenedDetails'
12020+ { _lcpodPrompt :: !(Maybe Text)
12021+ , _lcpodItems :: !(Maybe [LiveChatPollItem])
12022+ , _lcpodId :: !(Maybe Text)
12023+ } deriving (Eq,Show,Data,Typeable,Generic)
12024+
12025+-- | Creates a value of 'LiveChatPollOpenedDetails' with the minimum fields required to make a request.
12026+--
12027+-- Use one of the following lenses to modify other fields as desired:
12028+--
12029+-- * 'lcpodPrompt'
12030+--
12031+-- * 'lcpodItems'
12032+--
12033+-- * 'lcpodId'
12034+liveChatPollOpenedDetails
12035+ :: LiveChatPollOpenedDetails
12036+liveChatPollOpenedDetails =
12037+ LiveChatPollOpenedDetails'
12038+ { _lcpodPrompt = Nothing
12039+ , _lcpodItems = Nothing
12040+ , _lcpodId = Nothing
12041+ }
12042+
12043+lcpodPrompt :: Lens' LiveChatPollOpenedDetails (Maybe Text)
12044+lcpodPrompt
12045+ = lens _lcpodPrompt (\ s a -> s{_lcpodPrompt = a})
12046+
12047+lcpodItems :: Lens' LiveChatPollOpenedDetails [LiveChatPollItem]
12048+lcpodItems
12049+ = lens _lcpodItems (\ s a -> s{_lcpodItems = a}) .
12050+ _Default
12051+ . _Coerce
12052+
12053+lcpodId :: Lens' LiveChatPollOpenedDetails (Maybe Text)
12054+lcpodId = lens _lcpodId (\ s a -> s{_lcpodId = a})
12055+
12056+instance FromJSON LiveChatPollOpenedDetails where
12057+ parseJSON
12058+ = withObject "LiveChatPollOpenedDetails"
12059+ (\ o ->
12060+ LiveChatPollOpenedDetails' <$>
12061+ (o .:? "prompt") <*> (o .:? "items" .!= mempty) <*>
12062+ (o .:? "id"))
12063+
12064+instance ToJSON LiveChatPollOpenedDetails where
12065+ toJSON LiveChatPollOpenedDetails'{..}
12066+ = object
12067+ (catMaybes
12068+ [("prompt" .=) <$> _lcpodPrompt,
12069+ ("items" .=) <$> _lcpodItems,
12070+ ("id" .=) <$> _lcpodId])
12071+
1183912072-- | Information about a video stream.
1184012073--
1184112074-- /See:/ 'videoFileDetailsVideoStream' smart constructor.
@@ -13322,11 +13555,12 @@ instance ToJSON VideoProjectDetails where
1332213555 = object (catMaybes [("tags" .=) <$> _vpdTags])
1332313556
1332413557-- | Ratings schemes. The country-specific ratings are mostly for movies and
13325−-- shows. NEXT_ID: 67
13558+-- shows. NEXT_ID: 68
1332613559--
1332713560-- /See:/ 'contentRating' smart constructor.
1332813561data ContentRating = ContentRating'
13329− { _crPefilmRating :: !(Maybe ContentRatingPefilmRating)
13562+ { _crFpbRatingReasons :: !(Maybe [ContentRatingFpbRatingReasonsItem])
13563+ , _crPefilmRating :: !(Maybe ContentRatingPefilmRating)
1333013564 , _crCccRating :: !(Maybe ContentRatingCccRating)
1333113565 , _crAnatelRating :: !(Maybe ContentRatingAnatelRating)
1333213566 , _crMpaaRating :: !(Maybe ContentRatingMpaaRating)
@@ -13398,6 +13632,8 @@ data ContentRating = ContentRating'
1339813632--
1339913633-- Use one of the following lenses to modify other fields as desired:
1340013634--
13635+-- * 'crFpbRatingReasons'
13636+--
1340113637-- * 'crPefilmRating'
1340213638--
1340313639-- * 'crCccRating'
@@ -13533,7 +13769,8 @@ contentRating
1353313769 :: ContentRating
1353413770contentRating =
1353513771 ContentRating'
13536− { _crPefilmRating = Nothing
13772+ { _crFpbRatingReasons = Nothing
13773+ , _crPefilmRating = Nothing
1353713774 , _crCccRating = Nothing
1353813775 , _crAnatelRating = Nothing
1353913776 , _crMpaaRating = Nothing
@@ -13601,6 +13838,15 @@ contentRating =
1360113838 , _crKmrbRating = Nothing
1360213839 }
1360313840
13841+-- | Reasons that explain why the video received its FPB (South Africa)
13842+-- rating.
13843+crFpbRatingReasons :: Lens' ContentRating [ContentRatingFpbRatingReasonsItem]
13844+crFpbRatingReasons
13845+ = lens _crFpbRatingReasons
13846+ (\ s a -> s{_crFpbRatingReasons = a})
13847+ . _Default
13848+ . _Coerce
13849+
1360413850-- | The video\'s rating in Peru.
1360513851crPefilmRating :: Lens' ContentRating (Maybe ContentRatingPefilmRating)
1360613852crPefilmRating
@@ -14007,8 +14253,10 @@ instance FromJSON ContentRating where
1400714253 = withObject "ContentRating"
1400814254 (\ o ->
1400914255 ContentRating' <$>
14010− (o .:? "pefilmRating") <*> (o .:? "cccRating") <*>
14011− (o .:? "anatelRating")
14256+ (o .:? "fpbRatingReasons" .!= mempty) <*>
14257+ (o .:? "pefilmRating")
14258+ <*> (o .:? "cccRating")
14259+ <*> (o .:? "anatelRating")
1401214260 <*> (o .:? "mpaaRating")
1401314261 <*> (o .:? "cceRating")
1401414262 <*> (o .:? "mccaaRating")
@@ -14077,7 +14325,8 @@ instance ToJSON ContentRating where
1407714325 toJSON ContentRating'{..}
1407814326 = object
1407914327 (catMaybes
14080− [("pefilmRating" .=) <$> _crPefilmRating,
14328+ [("fpbRatingReasons" .=) <$> _crFpbRatingReasons,
14329+ ("pefilmRating" .=) <$> _crPefilmRating,
1408114330 ("cccRating" .=) <$> _crCccRating,
1408214331 ("anatelRating" .=) <$> _crAnatelRating,
1408314332 ("mpaaRating" .=) <$> _crMpaaRating,
@@ -15308,3 +15557,49 @@ instance ToJSON I18nLanguageSnippet where
1530815557 = object
1530915558 (catMaybes
1531015559 [("hl" .=) <$> _ilsHl, ("name" .=) <$> _ilsName])
15560+
15561+--
15562+-- /See:/ 'liveChatPollVotedDetails' smart constructor.
15563+data LiveChatPollVotedDetails = LiveChatPollVotedDetails'
15564+ { _lcpvdPollId :: !(Maybe Text)
15565+ , _lcpvdItemId :: !(Maybe Text)
15566+ } deriving (Eq,Show,Data,Typeable,Generic)
15567+
15568+-- | Creates a value of 'LiveChatPollVotedDetails' with the minimum fields required to make a request.
15569+--
15570+-- Use one of the following lenses to modify other fields as desired:
15571+--
15572+-- * 'lcpvdPollId'
15573+--
15574+-- * 'lcpvdItemId'
15575+liveChatPollVotedDetails
15576+ :: LiveChatPollVotedDetails
15577+liveChatPollVotedDetails =
15578+ LiveChatPollVotedDetails'
15579+ { _lcpvdPollId = Nothing
15580+ , _lcpvdItemId = Nothing
15581+ }
15582+
15583+-- | The poll the user voted on.
15584+lcpvdPollId :: Lens' LiveChatPollVotedDetails (Maybe Text)
15585+lcpvdPollId
15586+ = lens _lcpvdPollId (\ s a -> s{_lcpvdPollId = a})
15587+
15588+-- | The poll item the user chose.
15589+lcpvdItemId :: Lens' LiveChatPollVotedDetails (Maybe Text)
15590+lcpvdItemId
15591+ = lens _lcpvdItemId (\ s a -> s{_lcpvdItemId = a})
15592+
15593+instance FromJSON LiveChatPollVotedDetails where
15594+ parseJSON
15595+ = withObject "LiveChatPollVotedDetails"
15596+ (\ o ->
15597+ LiveChatPollVotedDetails' <$>
15598+ (o .:? "pollId") <*> (o .:? "itemId"))
15599+
15600+instance ToJSON LiveChatPollVotedDetails where
15601+ toJSON LiveChatPollVotedDetails'{..}
15602+ = object
15603+ (catMaybes
15604+ [("pollId" .=) <$> _lcpvdPollId,
15605+ ("itemId" .=) <$> _lcpvdItemId])
gogol-youtube/gen/Network/Google/YouTube/Types/Sum.hs+90
@@ -3462,6 +3462,68 @@ instance FromJSON LiveBroadcastsListBroadcastType where
34623462instance ToJSON LiveBroadcastsListBroadcastType where
34633463 toJSON = toJSONText
34643464
3465+data ContentRatingFpbRatingReasonsItem
3466+ = FpbBlasphemy
3467+ -- ^ @fpbBlasphemy@
3468+ | FpbCriminalTechniques
3469+ -- ^ @fpbCriminalTechniques@
3470+ | FpbDrugs
3471+ -- ^ @fpbDrugs@
3472+ | FpbHorror
3473+ -- ^ @fpbHorror@
3474+ | FpbImitativeActsTechniques
3475+ -- ^ @fpbImitativeActsTechniques@
3476+ | FpbLanguage
3477+ -- ^ @fpbLanguage@
3478+ | FpbNudity
3479+ -- ^ @fpbNudity@
3480+ | FpbPrejudice
3481+ -- ^ @fpbPrejudice@
3482+ | FpbSex
3483+ -- ^ @fpbSex@
3484+ | FpbSexualViolence
3485+ -- ^ @fpbSexualViolence@
3486+ | FpbViolence
3487+ -- ^ @fpbViolence@
3488+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3489+
3490+instance Hashable ContentRatingFpbRatingReasonsItem
3491+
3492+instance FromHttpApiData ContentRatingFpbRatingReasonsItem where
3493+ parseQueryParam = \case
3494+ "fpbBlasphemy" -> Right FpbBlasphemy
3495+ "fpbCriminalTechniques" -> Right FpbCriminalTechniques
3496+ "fpbDrugs" -> Right FpbDrugs
3497+ "fpbHorror" -> Right FpbHorror
3498+ "fpbImitativeActsTechniques" -> Right FpbImitativeActsTechniques
3499+ "fpbLanguage" -> Right FpbLanguage
3500+ "fpbNudity" -> Right FpbNudity
3501+ "fpbPrejudice" -> Right FpbPrejudice
3502+ "fpbSex" -> Right FpbSex
3503+ "fpbSexualViolence" -> Right FpbSexualViolence
3504+ "fpbViolence" -> Right FpbViolence
3505+ x -> Left ("Unable to parse ContentRatingFpbRatingReasonsItem from: " <> x)
3506+
3507+instance ToHttpApiData ContentRatingFpbRatingReasonsItem where
3508+ toQueryParam = \case
3509+ FpbBlasphemy -> "fpbBlasphemy"
3510+ FpbCriminalTechniques -> "fpbCriminalTechniques"
3511+ FpbDrugs -> "fpbDrugs"
3512+ FpbHorror -> "fpbHorror"
3513+ FpbImitativeActsTechniques -> "fpbImitativeActsTechniques"
3514+ FpbLanguage -> "fpbLanguage"
3515+ FpbNudity -> "fpbNudity"
3516+ FpbPrejudice -> "fpbPrejudice"
3517+ FpbSex -> "fpbSex"
3518+ FpbSexualViolence -> "fpbSexualViolence"
3519+ FpbViolence -> "fpbViolence"
3520+
3521+instance FromJSON ContentRatingFpbRatingReasonsItem where
3522+ parseJSON = parseJSONText "ContentRatingFpbRatingReasonsItem"
3523+
3524+instance ToJSON ContentRatingFpbRatingReasonsItem where
3525+ toJSON = toJSONText
3526+
34653527-- | The video\'s processing status. This value indicates whether YouTube was
34663528-- able to process the video or if the video is still being processed.
34673529data VideoProcessingDetailsProcessingStatus
@@ -3796,10 +3858,16 @@ data ContentRatingGrfilmRating
37963858 -- ^ @grfilmE@
37973859 | GrfilmK
37983860 -- ^ @grfilmK@
3861+ | GRFILMK12
3862+ -- ^ @grfilmK12@
37993863 | GRFILMK13
38003864 -- ^ @grfilmK13@
3865+ | GRFILMK15
3866+ -- ^ @grfilmK15@
38013867 | GRFILMK17
38023868 -- ^ @grfilmK17@
3869+ | GRFILMK18
3870+ -- ^ @grfilmK18@
38033871 | GrfilmUnrated
38043872 -- ^ @grfilmUnrated@
38053873 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
@@ -3810,8 +3878,11 @@ instance FromHttpApiData ContentRatingGrfilmRating where
38103878 parseQueryParam = \case
38113879 "grfilmE" -> Right GrfilmE
38123880 "grfilmK" -> Right GrfilmK
3881+ "grfilmK12" -> Right GRFILMK12
38133882 "grfilmK13" -> Right GRFILMK13
3883+ "grfilmK15" -> Right GRFILMK15
38143884 "grfilmK17" -> Right GRFILMK17
3885+ "grfilmK18" -> Right GRFILMK18
38153886 "grfilmUnrated" -> Right GrfilmUnrated
38163887 x -> Left ("Unable to parse ContentRatingGrfilmRating from: " <> x)
38173888
@@ -3819,8 +3890,11 @@ instance ToHttpApiData ContentRatingGrfilmRating where
38193890 toQueryParam = \case
38203891 GrfilmE -> "grfilmE"
38213892 GrfilmK -> "grfilmK"
3893+ GRFILMK12 -> "grfilmK12"
38223894 GRFILMK13 -> "grfilmK13"
3895+ GRFILMK15 -> "grfilmK15"
38233896 GRFILMK17 -> "grfilmK17"
3897+ GRFILMK18 -> "grfilmK18"
38243898 GrfilmUnrated -> "grfilmUnrated"
38253899
38263900instance FromJSON ContentRatingGrfilmRating where
@@ -5860,6 +5934,14 @@ data LiveChatMessageSnippetType
58605934 -- ^ @messageRetractedEvent@
58615935 | LCMSTNewSponsorEvent
58625936 -- ^ @newSponsorEvent@
5937+ | LCMSTPollClosedEvent
5938+ -- ^ @pollClosedEvent@
5939+ | LCMSTPollEditedEvent
5940+ -- ^ @pollEditedEvent@
5941+ | LCMSTPollOpenedEvent
5942+ -- ^ @pollOpenedEvent@
5943+ | LCMSTPollVotedEvent
5944+ -- ^ @pollVotedEvent@
58635945 | LCMSTSponsorOnlyModeEndedEvent
58645946 -- ^ @sponsorOnlyModeEndedEvent@
58655947 | LCMSTSponsorOnlyModeStartedEvent
@@ -5881,6 +5963,10 @@ instance FromHttpApiData LiveChatMessageSnippetType where
58815963 "messageDeletedEvent" -> Right LCMSTMessageDeletedEvent
58825964 "messageRetractedEvent" -> Right LCMSTMessageRetractedEvent
58835965 "newSponsorEvent" -> Right LCMSTNewSponsorEvent
5966+ "pollClosedEvent" -> Right LCMSTPollClosedEvent
5967+ "pollEditedEvent" -> Right LCMSTPollEditedEvent
5968+ "pollOpenedEvent" -> Right LCMSTPollOpenedEvent
5969+ "pollVotedEvent" -> Right LCMSTPollVotedEvent
58845970 "sponsorOnlyModeEndedEvent" -> Right LCMSTSponsorOnlyModeEndedEvent
58855971 "sponsorOnlyModeStartedEvent" -> Right LCMSTSponsorOnlyModeStartedEvent
58865972 "textMessageEvent" -> Right LCMSTTextMessageEvent
@@ -5895,6 +5981,10 @@ instance ToHttpApiData LiveChatMessageSnippetType where
58955981 LCMSTMessageDeletedEvent -> "messageDeletedEvent"
58965982 LCMSTMessageRetractedEvent -> "messageRetractedEvent"
58975983 LCMSTNewSponsorEvent -> "newSponsorEvent"
5984+ LCMSTPollClosedEvent -> "pollClosedEvent"
5985+ LCMSTPollEditedEvent -> "pollEditedEvent"
5986+ LCMSTPollOpenedEvent -> "pollOpenedEvent"
5987+ LCMSTPollVotedEvent -> "pollVotedEvent"
58985988 LCMSTSponsorOnlyModeEndedEvent -> "sponsorOnlyModeEndedEvent"
58995989 LCMSTSponsorOnlyModeStartedEvent -> "sponsorOnlyModeStartedEvent"
59005990 LCMSTTextMessageEvent -> "textMessageEvent"