Skip to content

Commit b0cfa8e

Browse files
yoshi-automationsofisl
authored andcommitted
feat(youtube): update the API
#### youtube:v3 The following keys were added: - resources.playlistImages.methods.update.mediaUpload.accept - resources.playlistImages.methods.update.mediaUpload.maxSize - resources.playlistImages.methods.update.mediaUpload.protocols.resumable.multipart - resources.playlistImages.methods.update.mediaUpload.protocols.resumable.path - resources.playlistImages.methods.update.mediaUpload.protocols.simple.multipart - resources.playlistImages.methods.update.mediaUpload.protocols.simple.path - resources.playlistImages.methods.update.supportsMediaUpload - schemas.ChannelSettings.properties.moderateComments.deprecated - schemas.LiveChatMessageListResponse.properties.activePollItem.$ref - schemas.LiveChatMessageListResponse.properties.activePollItem.description
1 parent e26e7bc commit b0cfa8e

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

discovery/youtube-v3.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,24 @@
23132313
"flatPath": "youtube/v3/playlistImages",
23142314
"httpMethod": "PUT",
23152315
"id": "youtube.playlistImages.update",
2316+
"mediaUpload": {
2317+
"accept": [
2318+
"image/jpeg",
2319+
"image/png",
2320+
"application/octet-stream"
2321+
],
2322+
"maxSize": "2097152",
2323+
"protocols": {
2324+
"resumable": {
2325+
"multipart": true,
2326+
"path": "/resumable/upload/youtube/v3/playlistImages"
2327+
},
2328+
"simple": {
2329+
"multipart": true,
2330+
"path": "/upload/youtube/v3/playlistImages"
2331+
}
2332+
}
2333+
},
23162334
"parameterOrder": [],
23172335
"parameters": {
23182336
"onBehalfOfContentOwner": {
@@ -2338,7 +2356,8 @@
23382356
"https://www.googleapis.com/auth/youtube",
23392357
"https://www.googleapis.com/auth/youtube.force-ssl",
23402358
"https://www.googleapis.com/auth/youtubepartner"
2341-
]
2359+
],
2360+
"supportsMediaUpload": true
23422361
}
23432362
}
23442363
},
@@ -4018,7 +4037,7 @@
40184037
}
40194038
}
40204039
},
4021-
"revision": "20240226",
4040+
"revision": "20240312",
40224041
"rootUrl": "https://youtube.googleapis.com/",
40234042
"schemas": {
40244043
"AbuseReport": {
@@ -5337,6 +5356,7 @@
53375356
"type": "string"
53385357
},
53395358
"moderateComments": {
5359+
"deprecated": true,
53405360
"description": "Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible.",
53415361
"type": "boolean"
53425362
},
@@ -8725,6 +8745,10 @@
87258745
"LiveChatMessageListResponse": {
87268746
"id": "LiveChatMessageListResponse",
87278747
"properties": {
8748+
"activePollItem": {
8749+
"$ref": "LiveChatMessage",
8750+
"description": "Set when there is an active poll."
8751+
},
87288752
"etag": {
87298753
"description": "Etag of this resource.",
87308754
"type": "string"

src/apis/youtube/v3.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,6 +2418,10 @@ export namespace youtube_v3 {
24182418
deletedMessageId?: string | null;
24192419
}
24202420
export interface Schema$LiveChatMessageListResponse {
2421+
/**
2422+
* Set when there is an active poll.
2423+
*/
2424+
activePollItem?: Schema$LiveChatMessage;
24212425
/**
24222426
* Etag of this resource.
24232427
*/
@@ -10010,6 +10014,10 @@ export namespace youtube_v3 {
1001010014
options
1001110015
),
1001210016
params,
10017+
mediaUrl: (rootUrl + '/upload/youtube/v3/playlistImages').replace(
10018+
/([^:]\/)\/+/g,
10019+
'$1'
10020+
),
1001310021
requiredParams: [],
1001410022
pathParams: [],
1001510023
context: this.context,
@@ -10113,6 +10121,21 @@ export namespace youtube_v3 {
1011310121
* Request body metadata
1011410122
*/
1011510123
requestBody?: Schema$PlaylistImage;
10124+
10125+
/**
10126+
* Media metadata
10127+
*/
10128+
media?: {
10129+
/**
10130+
* Media mime-type
10131+
*/
10132+
mimeType?: string;
10133+
10134+
/**
10135+
* Media body contents
10136+
*/
10137+
body?: any;
10138+
};
1011610139
}
1011710140

1011810141
export class Resource$Playlistitems {

0 commit comments

Comments
 (0)