Skip to content

Commit 1710743

Browse files
feat(youtube): update the API
#### youtube:v3 The following keys were added: - schemas.LiveChatGiftDetails.description - schemas.LiveChatGiftDetails.id - schemas.LiveChatGiftDetails.properties.altText.description - schemas.LiveChatGiftDetails.properties.altText.type - schemas.LiveChatGiftDetails.properties.comboCount.description - schemas.LiveChatGiftDetails.properties.comboCount.format - schemas.LiveChatGiftDetails.properties.comboCount.type - schemas.LiveChatGiftDetails.properties.giftDuration.description - schemas.LiveChatGiftDetails.properties.giftDuration.format - schemas.LiveChatGiftDetails.properties.giftDuration.type - schemas.LiveChatGiftDetails.properties.giftName.description - schemas.LiveChatGiftDetails.properties.giftName.type - schemas.LiveChatGiftDetails.properties.giftUrl.description - schemas.LiveChatGiftDetails.properties.giftUrl.type - schemas.LiveChatGiftDetails.properties.hasVisualEffect.description - schemas.LiveChatGiftDetails.properties.hasVisualEffect.type - schemas.LiveChatGiftDetails.properties.jewelsCount.description - schemas.LiveChatGiftDetails.properties.jewelsCount.format - schemas.LiveChatGiftDetails.properties.jewelsCount.type - schemas.LiveChatGiftDetails.properties.language.description - schemas.LiveChatGiftDetails.properties.language.type - schemas.LiveChatGiftDetails.type - schemas.LiveChatMessageSnippet.properties.giftDetails.$ref - schemas.LiveChatMessageSnippet.properties.giftDetails.description The following keys were changed: - schemas.LiveChatMessageSnippet.description - schemas.LiveChatMessageSnippet.properties.type.enum - schemas.LiveChatMessageSnippet.properties.type.enumDescriptions
1 parent e2b2c06 commit 1710743

File tree

2 files changed

+94
-5
lines changed

2 files changed

+94
-5
lines changed

discovery/youtube-v3.json

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4172,7 +4172,7 @@
41724172
}
41734173
}
41744174
},
4175-
"revision": "20260112",
4175+
"revision": "20260205",
41764176
"rootUrl": "https://youtube.googleapis.com/",
41774177
"schemas": {
41784178
"AbuseReport": {
@@ -8802,6 +8802,48 @@
88028802
},
88038803
"type": "object"
88048804
},
8805+
"LiveChatGiftDetails": {
8806+
"description": "Details about the gift event, this is only set if the type is 'giftEvent'.",
8807+
"id": "LiveChatGiftDetails",
8808+
"properties": {
8809+
"altText": {
8810+
"description": "The alternative text to be used for accessibility.",
8811+
"type": "string"
8812+
},
8813+
"comboCount": {
8814+
"description": "The number of times the gift has been sent in a row.",
8815+
"format": "int32",
8816+
"type": "integer"
8817+
},
8818+
"giftDuration": {
8819+
"description": "The duration of the gift.",
8820+
"format": "google-duration",
8821+
"type": "string"
8822+
},
8823+
"giftName": {
8824+
"description": "The name of the gift.",
8825+
"type": "string"
8826+
},
8827+
"giftUrl": {
8828+
"description": "The URL of the gift image.",
8829+
"type": "string"
8830+
},
8831+
"hasVisualEffect": {
8832+
"description": "Whether the gift involves a visual effect.",
8833+
"type": "boolean"
8834+
},
8835+
"jewelsCount": {
8836+
"description": "The cost of the gift in jewels.",
8837+
"format": "int32",
8838+
"type": "integer"
8839+
},
8840+
"language": {
8841+
"description": "The BCP-47 language code of the gift.",
8842+
"type": "string"
8843+
}
8844+
},
8845+
"type": "object"
8846+
},
88058847
"LiveChatGiftMembershipReceivedDetails": {
88068848
"id": "LiveChatGiftMembershipReceivedDetails",
88078849
"properties": {
@@ -8995,7 +9037,7 @@
89959037
"type": "object"
89969038
},
89979039
"LiveChatMessageSnippet": {
8998-
"description": "Next ID: 34",
9040+
"description": "Next ID: 35",
89999041
"id": "LiveChatMessageSnippet",
90009042
"properties": {
90019043
"authorChannelId": {
@@ -9011,6 +9053,10 @@
90119053
"deprecated": true,
90129054
"description": "Details about the funding event, this is only set if the type is 'fanFundingEvent'."
90139055
},
9056+
"giftDetails": {
9057+
"$ref": "LiveChatGiftDetails",
9058+
"description": "Details about the gift event, this is only set if the type is 'giftEvent'."
9059+
},
90149060
"giftMembershipReceivedDetails": {
90159061
"$ref": "LiveChatGiftMembershipReceivedDetails",
90169062
"description": "Details about the Gift Membership Received event, this is only set if the type is 'giftMembershipReceivedEvent'."
@@ -9080,7 +9126,8 @@
90809126
"userBannedEvent",
90819127
"superChatEvent",
90829128
"superStickerEvent",
9083-
"pollEvent"
9129+
"pollEvent",
9130+
"giftEvent"
90849131
],
90859132
"enumDescriptions": [
90869133
"",
@@ -9099,7 +9146,8 @@
90999146
"",
91009147
"",
91019148
"",
9102-
""
9149+
"",
9150+
"A virtual gift sent by a viewer to support a creator."
91039151
],
91049152
"type": "string"
91059153
},

src/apis/youtube/v3.ts

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,43 @@ export namespace youtube_v3 {
23472347
*/
23482348
userComment?: string | null;
23492349
}
2350+
/**
2351+
* Details about the gift event, this is only set if the type is 'giftEvent'.
2352+
*/
2353+
export interface Schema$LiveChatGiftDetails {
2354+
/**
2355+
* The alternative text to be used for accessibility.
2356+
*/
2357+
altText?: string | null;
2358+
/**
2359+
* The number of times the gift has been sent in a row.
2360+
*/
2361+
comboCount?: number | null;
2362+
/**
2363+
* The duration of the gift.
2364+
*/
2365+
giftDuration?: string | null;
2366+
/**
2367+
* The name of the gift.
2368+
*/
2369+
giftName?: string | null;
2370+
/**
2371+
* The URL of the gift image.
2372+
*/
2373+
giftUrl?: string | null;
2374+
/**
2375+
* Whether the gift involves a visual effect.
2376+
*/
2377+
hasVisualEffect?: boolean | null;
2378+
/**
2379+
* The cost of the gift in jewels.
2380+
*/
2381+
jewelsCount?: number | null;
2382+
/**
2383+
* The BCP-47 language code of the gift.
2384+
*/
2385+
language?: string | null;
2386+
}
23502387
export interface Schema$LiveChatGiftMembershipReceivedDetails {
23512388
/**
23522389
* The ID of the membership gifting message that is related to this gift membership. This ID will always refer to a message whose type is 'membershipGiftingEvent'.
@@ -2488,7 +2525,7 @@ export namespace youtube_v3 {
24882525
retractedMessageId?: string | null;
24892526
}
24902527
/**
2491-
* Next ID: 34
2528+
* Next ID: 35
24922529
*/
24932530
export interface Schema$LiveChatMessageSnippet {
24942531
/**
@@ -2503,6 +2540,10 @@ export namespace youtube_v3 {
25032540
* Details about the funding event, this is only set if the type is 'fanFundingEvent'.
25042541
*/
25052542
fanFundingEventDetails?: Schema$LiveChatFanFundingEventDetails;
2543+
/**
2544+
* Details about the gift event, this is only set if the type is 'giftEvent'.
2545+
*/
2546+
giftDetails?: Schema$LiveChatGiftDetails;
25062547
/**
25072548
* Details about the Gift Membership Received event, this is only set if the type is 'giftMembershipReceivedEvent'.
25082549
*/

0 commit comments

Comments
 (0)