Skip to content

Commit 805e784

Browse files
feat(youtube): update the api
#### youtube:v3 The following keys were added: - schemas.LiveChatMemberMilestoneChatDetails (Total Keys: 6) - schemas.LiveChatMessageSnippet.properties.memberMilestoneChatDetails.$ref (Total Keys: 1) - schemas.LiveChatMessageSnippet.properties.newSponsorDetails.$ref (Total Keys: 1) - schemas.LiveChatNewSponsorDetails (Total Keys: 4)
1 parent cffcbbc commit 805e784

File tree

2 files changed

+79
-9
lines changed

2 files changed

+79
-9
lines changed

docs/dyn/youtube_v3.liveChatMessages.html

+33-6
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ <h3>Method Details</h3>
131131
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
132132
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the message.
133133
&quot;kind&quot;: &quot;youtube#liveChatMessage&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveChatMessage&quot;.
134-
&quot;snippet&quot;: { # Next ID: 29 # The snippet object contains basic details about the message.
135-
&quot;authorChannelId&quot;: &quot;A String&quot;, # The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase
134+
&quot;snippet&quot;: { # Next ID: 31 # The snippet object contains basic details about the message.
135+
&quot;authorChannelId&quot;: &quot;A String&quot;, # The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase
136136
&quot;displayMessage&quot;: &quot;A String&quot;, # Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
137137
&quot;fanFundingEventDetails&quot;: { # Details about the funding event, this is only set if the type is &#x27;fanFundingEvent&#x27;.
138138
&quot;amountDisplayString&quot;: &quot;A String&quot;, # A rendered string that displays the fund amount and currency to the user.
@@ -142,12 +142,21 @@ <h3>Method Details</h3>
142142
},
143143
&quot;hasDisplayContent&quot;: True or False, # Whether the message has display content that should be displayed to users.
144144
&quot;liveChatId&quot;: &quot;A String&quot;,
145+
&quot;memberMilestoneChatDetails&quot;: { # Details about the Member Milestone Chat event, this is only set if the type is &#x27;memberMilestoneChatEvent&#x27;.
146+
&quot;memberLevelName&quot;: &quot;A String&quot;, # The name of the Level at which the viever is a member. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn&#x27;t filled.
147+
&quot;memberMonth&quot;: 42, # The total amount of months (rounded up) the viewer has been a member that granted them this Member Milestone Chat. This is the same number of months as is being displayed to YouTube users.
148+
&quot;userComment&quot;: &quot;A String&quot;, # The comment added by the member to this Member Milestone Chat. This field is empty for messages without a comment from the member.
149+
},
145150
&quot;messageDeletedDetails&quot;: {
146151
&quot;deletedMessageId&quot;: &quot;A String&quot;,
147152
},
148153
&quot;messageRetractedDetails&quot;: {
149154
&quot;retractedMessageId&quot;: &quot;A String&quot;,
150155
},
156+
&quot;newSponsorDetails&quot;: { # Details about the New Member Announcement event, this is only set if the type is &#x27;newSponsorEvent&#x27;. Please note that &quot;member&quot; is the new term for &quot;sponsor&quot;.
157+
&quot;isUpgrade&quot;: True or False, # If the viewer just had upgraded from a lower level. For viewers that were not members at the time of purchase, this field is false.
158+
&quot;memberLevelName&quot;: &quot;A String&quot;, # The name of the Level that the viewer just had joined. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn&#x27;t filled.
159+
},
151160
&quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the message was orignally published.
152161
&quot;superChatDetails&quot;: { # Details about the Super Chat event, this is only set if the type is &#x27;superChatEvent&#x27;.
153162
&quot;amountDisplayString&quot;: &quot;A String&quot;, # A rendered string that displays the fund amount and currency to the user.
@@ -206,8 +215,8 @@ <h3>Method Details</h3>
206215
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
207216
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the message.
208217
&quot;kind&quot;: &quot;youtube#liveChatMessage&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveChatMessage&quot;.
209-
&quot;snippet&quot;: { # Next ID: 29 # The snippet object contains basic details about the message.
210-
&quot;authorChannelId&quot;: &quot;A String&quot;, # The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase
218+
&quot;snippet&quot;: { # Next ID: 31 # The snippet object contains basic details about the message.
219+
&quot;authorChannelId&quot;: &quot;A String&quot;, # The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase
211220
&quot;displayMessage&quot;: &quot;A String&quot;, # Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
212221
&quot;fanFundingEventDetails&quot;: { # Details about the funding event, this is only set if the type is &#x27;fanFundingEvent&#x27;.
213222
&quot;amountDisplayString&quot;: &quot;A String&quot;, # A rendered string that displays the fund amount and currency to the user.
@@ -217,12 +226,21 @@ <h3>Method Details</h3>
217226
},
218227
&quot;hasDisplayContent&quot;: True or False, # Whether the message has display content that should be displayed to users.
219228
&quot;liveChatId&quot;: &quot;A String&quot;,
229+
&quot;memberMilestoneChatDetails&quot;: { # Details about the Member Milestone Chat event, this is only set if the type is &#x27;memberMilestoneChatEvent&#x27;.
230+
&quot;memberLevelName&quot;: &quot;A String&quot;, # The name of the Level at which the viever is a member. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn&#x27;t filled.
231+
&quot;memberMonth&quot;: 42, # The total amount of months (rounded up) the viewer has been a member that granted them this Member Milestone Chat. This is the same number of months as is being displayed to YouTube users.
232+
&quot;userComment&quot;: &quot;A String&quot;, # The comment added by the member to this Member Milestone Chat. This field is empty for messages without a comment from the member.
233+
},
220234
&quot;messageDeletedDetails&quot;: {
221235
&quot;deletedMessageId&quot;: &quot;A String&quot;,
222236
},
223237
&quot;messageRetractedDetails&quot;: {
224238
&quot;retractedMessageId&quot;: &quot;A String&quot;,
225239
},
240+
&quot;newSponsorDetails&quot;: { # Details about the New Member Announcement event, this is only set if the type is &#x27;newSponsorEvent&#x27;. Please note that &quot;member&quot; is the new term for &quot;sponsor&quot;.
241+
&quot;isUpgrade&quot;: True or False, # If the viewer just had upgraded from a lower level. For viewers that were not members at the time of purchase, this field is false.
242+
&quot;memberLevelName&quot;: &quot;A String&quot;, # The name of the Level that the viewer just had joined. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn&#x27;t filled.
243+
},
226244
&quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the message was orignally published.
227245
&quot;superChatDetails&quot;: { # Details about the Super Chat event, this is only set if the type is &#x27;superChatEvent&#x27;.
228246
&quot;amountDisplayString&quot;: &quot;A String&quot;, # A rendered string that displays the fund amount and currency to the user.
@@ -297,8 +315,8 @@ <h3>Method Details</h3>
297315
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
298316
&quot;id&quot;: &quot;A String&quot;, # The ID that YouTube assigns to uniquely identify the message.
299317
&quot;kind&quot;: &quot;youtube#liveChatMessage&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#liveChatMessage&quot;.
300-
&quot;snippet&quot;: { # Next ID: 29 # The snippet object contains basic details about the message.
301-
&quot;authorChannelId&quot;: &quot;A String&quot;, # The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase
318+
&quot;snippet&quot;: { # Next ID: 31 # The snippet object contains basic details about the message.
319+
&quot;authorChannelId&quot;: &quot;A String&quot;, # The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase
302320
&quot;displayMessage&quot;: &quot;A String&quot;, # Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
303321
&quot;fanFundingEventDetails&quot;: { # Details about the funding event, this is only set if the type is &#x27;fanFundingEvent&#x27;.
304322
&quot;amountDisplayString&quot;: &quot;A String&quot;, # A rendered string that displays the fund amount and currency to the user.
@@ -308,12 +326,21 @@ <h3>Method Details</h3>
308326
},
309327
&quot;hasDisplayContent&quot;: True or False, # Whether the message has display content that should be displayed to users.
310328
&quot;liveChatId&quot;: &quot;A String&quot;,
329+
&quot;memberMilestoneChatDetails&quot;: { # Details about the Member Milestone Chat event, this is only set if the type is &#x27;memberMilestoneChatEvent&#x27;.
330+
&quot;memberLevelName&quot;: &quot;A String&quot;, # The name of the Level at which the viever is a member. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn&#x27;t filled.
331+
&quot;memberMonth&quot;: 42, # The total amount of months (rounded up) the viewer has been a member that granted them this Member Milestone Chat. This is the same number of months as is being displayed to YouTube users.
332+
&quot;userComment&quot;: &quot;A String&quot;, # The comment added by the member to this Member Milestone Chat. This field is empty for messages without a comment from the member.
333+
},
311334
&quot;messageDeletedDetails&quot;: {
312335
&quot;deletedMessageId&quot;: &quot;A String&quot;,
313336
},
314337
&quot;messageRetractedDetails&quot;: {
315338
&quot;retractedMessageId&quot;: &quot;A String&quot;,
316339
},
340+
&quot;newSponsorDetails&quot;: { # Details about the New Member Announcement event, this is only set if the type is &#x27;newSponsorEvent&#x27;. Please note that &quot;member&quot; is the new term for &quot;sponsor&quot;.
341+
&quot;isUpgrade&quot;: True or False, # If the viewer just had upgraded from a lower level. For viewers that were not members at the time of purchase, this field is false.
342+
&quot;memberLevelName&quot;: &quot;A String&quot;, # The name of the Level that the viewer just had joined. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn&#x27;t filled.
343+
},
317344
&quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the message was orignally published.
318345
&quot;superChatDetails&quot;: { # Details about the Super Chat event, this is only set if the type is &#x27;superChatEvent&#x27;.
319346
&quot;amountDisplayString&quot;: &quot;A String&quot;, # A rendered string that displays the fund amount and currency to the user.

googleapiclient/discovery_cache/documents/youtube.v3.json

+46-3
Original file line numberDiff line numberDiff line change
@@ -3765,7 +3765,7 @@
37653765
}
37663766
}
37673767
},
3768-
"revision": "20210822",
3768+
"revision": "20210828",
37693769
"rootUrl": "https://youtube.googleapis.com/",
37703770
"schemas": {
37713771
"AbuseReport": {
@@ -8132,6 +8132,25 @@
81328132
},
81338133
"type": "object"
81348134
},
8135+
"LiveChatMemberMilestoneChatDetails": {
8136+
"id": "LiveChatMemberMilestoneChatDetails",
8137+
"properties": {
8138+
"memberLevelName": {
8139+
"description": "The name of the Level at which the viever is a member. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn't filled.",
8140+
"type": "string"
8141+
},
8142+
"memberMonth": {
8143+
"description": "The total amount of months (rounded up) the viewer has been a member that granted them this Member Milestone Chat. This is the same number of months as is being displayed to YouTube users.",
8144+
"format": "uint32",
8145+
"type": "integer"
8146+
},
8147+
"userComment": {
8148+
"description": "The comment added by the member to this Member Milestone Chat. This field is empty for messages without a comment from the member.",
8149+
"type": "string"
8150+
}
8151+
},
8152+
"type": "object"
8153+
},
81358154
"LiveChatMessage": {
81368155
"description": "A *liveChatMessage* resource represents a chat message in a YouTube Live Chat.",
81378156
"id": "LiveChatMessage",
@@ -8266,11 +8285,11 @@
82668285
"type": "object"
82678286
},
82688287
"LiveChatMessageSnippet": {
8269-
"description": "Next ID: 29",
8288+
"description": "Next ID: 31",
82708289
"id": "LiveChatMessageSnippet",
82718290
"properties": {
82728291
"authorChannelId": {
8273-
"description": "The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase",
8292+
"description": "The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase",
82748293
"type": "string"
82758294
},
82768295
"displayMessage": {
@@ -8288,12 +8307,20 @@
82888307
"liveChatId": {
82898308
"type": "string"
82908309
},
8310+
"memberMilestoneChatDetails": {
8311+
"$ref": "LiveChatMemberMilestoneChatDetails",
8312+
"description": "Details about the Member Milestone Chat event, this is only set if the type is 'memberMilestoneChatEvent'."
8313+
},
82918314
"messageDeletedDetails": {
82928315
"$ref": "LiveChatMessageDeletedDetails"
82938316
},
82948317
"messageRetractedDetails": {
82958318
"$ref": "LiveChatMessageRetractedDetails"
82968319
},
8320+
"newSponsorDetails": {
8321+
"$ref": "LiveChatNewSponsorDetails",
8322+
"description": "Details about the New Member Announcement event, this is only set if the type is 'newSponsorEvent'. Please note that \"member\" is the new term for \"sponsor\"."
8323+
},
82978324
"publishedAt": {
82988325
"description": "The date and time when the message was orignally published.",
82998326
"format": "date-time",
@@ -8322,6 +8349,7 @@
83228349
"sponsorOnlyModeStartedEvent",
83238350
"sponsorOnlyModeEndedEvent",
83248351
"newSponsorEvent",
8352+
"memberMilestoneChatEvent",
83258353
"messageDeletedEvent",
83268354
"messageRetractedEvent",
83278355
"userBannedEvent",
@@ -8341,6 +8369,7 @@
83418369
"",
83428370
"",
83438371
"",
8372+
"",
83448373
""
83458374
],
83468375
"type": "string"
@@ -8434,6 +8463,20 @@
84348463
},
84358464
"type": "object"
84368465
},
8466+
"LiveChatNewSponsorDetails": {
8467+
"id": "LiveChatNewSponsorDetails",
8468+
"properties": {
8469+
"isUpgrade": {
8470+
"description": "If the viewer just had upgraded from a lower level. For viewers that were not members at the time of purchase, this field is false.",
8471+
"type": "boolean"
8472+
},
8473+
"memberLevelName": {
8474+
"description": "The name of the Level that the viewer just had joined. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn't filled.",
8475+
"type": "string"
8476+
}
8477+
},
8478+
"type": "object"
8479+
},
84378480
"LiveChatSuperChatDetails": {
84388481
"id": "LiveChatSuperChatDetails",
84398482
"properties": {

0 commit comments

Comments
 (0)