Skip to content

Commit

Permalink
feat(youtube): update the API
Browse files Browse the repository at this point in the history
#### youtube:v3

The following keys were added:
- schemas.LiveChatMemberMilestoneChatDetails.id
- schemas.LiveChatMemberMilestoneChatDetails.properties.memberLevelName.description
- schemas.LiveChatMemberMilestoneChatDetails.properties.memberLevelName.type
- schemas.LiveChatMemberMilestoneChatDetails.properties.memberMonth.description
- schemas.LiveChatMemberMilestoneChatDetails.properties.memberMonth.format
- schemas.LiveChatMemberMilestoneChatDetails.properties.memberMonth.type
- schemas.LiveChatMemberMilestoneChatDetails.properties.userComment.description
- schemas.LiveChatMemberMilestoneChatDetails.properties.userComment.type
- schemas.LiveChatMemberMilestoneChatDetails.type
- schemas.LiveChatMessageSnippet.description
- schemas.LiveChatMessageSnippet.properties.memberMilestoneChatDetails.$ref
- schemas.LiveChatMessageSnippet.properties.memberMilestoneChatDetails.description
- schemas.LiveChatMessageSnippet.properties.newSponsorDetails.$ref
- schemas.LiveChatMessageSnippet.properties.newSponsorDetails.description
- schemas.LiveChatNewSponsorDetails.id
- schemas.LiveChatNewSponsorDetails.properties.isUpgrade.description
- schemas.LiveChatNewSponsorDetails.properties.isUpgrade.type
- schemas.LiveChatNewSponsorDetails.properties.memberLevelName.description
- schemas.LiveChatNewSponsorDetails.properties.memberLevelName.type
- schemas.LiveChatNewSponsorDetails.type

The following keys were changed:
- schemas.LiveChatMessageSnippet.properties.authorChannelId.description
- schemas.LiveChatMessageSnippet.properties.type.enum
- schemas.LiveChatMessageSnippet.properties.type.enumDescriptions
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Aug 31, 2021
1 parent 8d9754f commit 697b595
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 3 deletions.
48 changes: 46 additions & 2 deletions discovery/youtube-v3.json
Expand Up @@ -3765,7 +3765,7 @@
}
}
},
"revision": "20210706",
"revision": "20210828",
"rootUrl": "https://youtube.googleapis.com/",
"schemas": {
"AbuseReport": {
Expand Down Expand Up @@ -8132,6 +8132,25 @@
},
"type": "object"
},
"LiveChatMemberMilestoneChatDetails": {
"id": "LiveChatMemberMilestoneChatDetails",
"properties": {
"memberLevelName": {
"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.",
"type": "string"
},
"memberMonth": {
"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.",
"format": "uint32",
"type": "integer"
},
"userComment": {
"description": "The comment added by the member to this Member Milestone Chat. This field is empty for messages without a comment from the member.",
"type": "string"
}
},
"type": "object"
},
"LiveChatMessage": {
"description": "A *liveChatMessage* resource represents a chat message in a YouTube Live Chat.",
"id": "LiveChatMessage",
Expand Down Expand Up @@ -8266,10 +8285,11 @@
"type": "object"
},
"LiveChatMessageSnippet": {
"description": "Next ID: 31",
"id": "LiveChatMessageSnippet",
"properties": {
"authorChannelId": {
"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",
"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",
"type": "string"
},
"displayMessage": {
Expand All @@ -8287,12 +8307,20 @@
"liveChatId": {
"type": "string"
},
"memberMilestoneChatDetails": {
"$ref": "LiveChatMemberMilestoneChatDetails",
"description": "Details about the Member Milestone Chat event, this is only set if the type is 'memberMilestoneChatEvent'."
},
"messageDeletedDetails": {
"$ref": "LiveChatMessageDeletedDetails"
},
"messageRetractedDetails": {
"$ref": "LiveChatMessageRetractedDetails"
},
"newSponsorDetails": {
"$ref": "LiveChatNewSponsorDetails",
"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\"."
},
"publishedAt": {
"description": "The date and time when the message was orignally published.",
"format": "date-time",
Expand Down Expand Up @@ -8321,6 +8349,7 @@
"sponsorOnlyModeStartedEvent",
"sponsorOnlyModeEndedEvent",
"newSponsorEvent",
"memberMilestoneChatEvent",
"messageDeletedEvent",
"messageRetractedEvent",
"userBannedEvent",
Expand All @@ -8340,6 +8369,7 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -8433,6 +8463,20 @@
},
"type": "object"
},
"LiveChatNewSponsorDetails": {
"id": "LiveChatNewSponsorDetails",
"properties": {
"isUpgrade": {
"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.",
"type": "boolean"
},
"memberLevelName": {
"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.",
"type": "string"
}
},
"type": "object"
},
"LiveChatSuperChatDetails": {
"id": "LiveChatSuperChatDetails",
"properties": {
Expand Down
37 changes: 36 additions & 1 deletion src/apis/youtube/v3.ts
Expand Up @@ -2245,6 +2245,20 @@ export namespace youtube_v3 {
*/
userComment?: string | null;
}
export interface Schema$LiveChatMemberMilestoneChatDetails {
/**
* 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.
*/
memberLevelName?: string | null;
/**
* 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.
*/
memberMonth?: number | null;
/**
* The comment added by the member to this Member Milestone Chat. This field is empty for messages without a comment from the member.
*/
userComment?: string | null;
}
/**
* A *liveChatMessage* resource represents a chat message in a YouTube Live Chat.
*/
Expand Down Expand Up @@ -2343,9 +2357,12 @@ export namespace youtube_v3 {
export interface Schema$LiveChatMessageRetractedDetails {
retractedMessageId?: string | null;
}
/**
* Next ID: 31
*/
export interface Schema$LiveChatMessageSnippet {
/**
* 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
* 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
*/
authorChannelId?: string | null;
/**
Expand All @@ -2361,8 +2378,16 @@ export namespace youtube_v3 {
*/
hasDisplayContent?: boolean | null;
liveChatId?: string | null;
/**
* Details about the Member Milestone Chat event, this is only set if the type is 'memberMilestoneChatEvent'.
*/
memberMilestoneChatDetails?: Schema$LiveChatMemberMilestoneChatDetails;
messageDeletedDetails?: Schema$LiveChatMessageDeletedDetails;
messageRetractedDetails?: Schema$LiveChatMessageRetractedDetails;
/**
* 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".
*/
newSponsorDetails?: Schema$LiveChatNewSponsorDetails;
/**
* The date and time when the message was orignally published.
*/
Expand Down Expand Up @@ -2451,6 +2476,16 @@ export namespace youtube_v3 {
*/
moderatorDetails?: Schema$ChannelProfileDetails;
}
export interface Schema$LiveChatNewSponsorDetails {
/**
* 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.
*/
isUpgrade?: boolean | null;
/**
* 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.
*/
memberLevelName?: string | null;
}
export interface Schema$LiveChatSuperChatDetails {
/**
* A rendered string that displays the fund amount and currency to the user.
Expand Down

0 comments on commit 697b595

Please sign in to comment.