Skip to content

Commit cddac7f

Browse files
feat(youtube): update the API
#### youtube:v3 The following keys were added: - resources.tests.methods.insert.parameters.onBehalfOfContentOwnerChannel.location - resources.tests.methods.insert.parameters.onBehalfOfContentOwnerChannel.type - 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.jewelsAmount.description - schemas.LiveChatGiftDetails.properties.jewelsAmount.format - schemas.LiveChatGiftDetails.properties.jewelsAmount.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 623694c commit cddac7f

2 files changed

Lines changed: 104 additions & 5 deletions

File tree

discovery/youtube-v3.json

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,6 +3305,10 @@
33053305
"location": "query",
33063306
"type": "string"
33073307
},
3308+
"onBehalfOfContentOwnerChannel": {
3309+
"location": "query",
3310+
"type": "string"
3311+
},
33083312
"part": {
33093313
"location": "query",
33103314
"repeated": true,
@@ -4172,7 +4176,7 @@
41724176
}
41734177
}
41744178
},
4175-
"revision": "20260112",
4179+
"revision": "20260323",
41764180
"rootUrl": "https://youtube.googleapis.com/",
41774181
"schemas": {
41784182
"AbuseReport": {
@@ -8802,6 +8806,48 @@
88028806
},
88038807
"type": "object"
88048808
},
8809+
"LiveChatGiftDetails": {
8810+
"description": "Details about the gift event, this is only set if the type is 'giftEvent'.",
8811+
"id": "LiveChatGiftDetails",
8812+
"properties": {
8813+
"altText": {
8814+
"description": "The alternative text to be used for accessibility.",
8815+
"type": "string"
8816+
},
8817+
"comboCount": {
8818+
"description": "The number of times the gift has been sent in a row.",
8819+
"format": "int32",
8820+
"type": "integer"
8821+
},
8822+
"giftDuration": {
8823+
"description": "The duration of the gift.",
8824+
"format": "google-duration",
8825+
"type": "string"
8826+
},
8827+
"giftName": {
8828+
"description": "The name of the gift.",
8829+
"type": "string"
8830+
},
8831+
"giftUrl": {
8832+
"description": "The URL of the gift image.",
8833+
"type": "string"
8834+
},
8835+
"hasVisualEffect": {
8836+
"description": "Whether the gift involves a visual effect.",
8837+
"type": "boolean"
8838+
},
8839+
"jewelsAmount": {
8840+
"description": "The value of the gift in jewels.",
8841+
"format": "int32",
8842+
"type": "integer"
8843+
},
8844+
"language": {
8845+
"description": "The BCP-47 language code of the gift.",
8846+
"type": "string"
8847+
}
8848+
},
8849+
"type": "object"
8850+
},
88058851
"LiveChatGiftMembershipReceivedDetails": {
88068852
"id": "LiveChatGiftMembershipReceivedDetails",
88078853
"properties": {
@@ -8995,7 +9041,7 @@
89959041
"type": "object"
89969042
},
89979043
"LiveChatMessageSnippet": {
8998-
"description": "Next ID: 34",
9044+
"description": "Next ID: 35",
89999045
"id": "LiveChatMessageSnippet",
90009046
"properties": {
90019047
"authorChannelId": {
@@ -9011,6 +9057,10 @@
90119057
"deprecated": true,
90129058
"description": "Details about the funding event, this is only set if the type is 'fanFundingEvent'."
90139059
},
9060+
"giftDetails": {
9061+
"$ref": "LiveChatGiftDetails",
9062+
"description": "Details about the gift event, this is only set if the type is 'giftEvent'."
9063+
},
90149064
"giftMembershipReceivedDetails": {
90159065
"$ref": "LiveChatGiftMembershipReceivedDetails",
90169066
"description": "Details about the Gift Membership Received event, this is only set if the type is 'giftMembershipReceivedEvent'."
@@ -9080,7 +9130,8 @@
90809130
"userBannedEvent",
90819131
"superChatEvent",
90829132
"superStickerEvent",
9083-
"pollEvent"
9133+
"pollEvent",
9134+
"giftEvent"
90849135
],
90859136
"enumDescriptions": [
90869137
"",
@@ -9099,7 +9150,8 @@
90999150
"",
91009151
"",
91019152
"",
9102-
""
9153+
"",
9154+
"A virtual gift sent by a viewer to support a creator."
91039155
],
91049156
"type": "string"
91059157
},

src/apis/youtube/v3.ts

Lines changed: 48 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 value of the gift in jewels.
2380+
*/
2381+
jewelsAmount?: 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
*/
@@ -16052,6 +16093,8 @@ export namespace youtube_v3 {
1605216093
* const res = await youtube.tests.insert({
1605316094
* externalChannelId: 'placeholder-value',
1605416095
*
16096+
* onBehalfOfContentOwnerChannel: 'placeholder-value',
16097+
*
1605516098
* part: 'placeholder-value',
1605616099
*
1605716100
* // Request body metadata
@@ -16175,6 +16218,10 @@ export namespace youtube_v3 {
1617516218
*
1617616219
*/
1617716220
externalChannelId?: string;
16221+
/**
16222+
*
16223+
*/
16224+
onBehalfOfContentOwnerChannel?: string;
1617816225
/**
1617916226
*
1618016227
*/

0 commit comments

Comments
 (0)