@maxim_mazurok/gapi.client.youtube-v3 0.1.20251124 → 0.1.20251125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +75 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://youtube.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251125
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -189,6 +189,14 @@ declare namespace gapi.client {
|
|
|
189
189
|
/** The type of activity that the resource describes. */
|
|
190
190
|
type?: string;
|
|
191
191
|
}
|
|
192
|
+
interface BatchGetStatsResponse {
|
|
193
|
+
/** Output only. Etag of this resource. */
|
|
194
|
+
etag?: string;
|
|
195
|
+
/** Output only. The videos' stats information. */
|
|
196
|
+
items?: VideoStat[];
|
|
197
|
+
/** Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#batchGetStatsResponse". */
|
|
198
|
+
kind?: string;
|
|
199
|
+
}
|
|
192
200
|
interface Caption {
|
|
193
201
|
/** Etag of this resource. */
|
|
194
202
|
etag?: string;
|
|
@@ -2269,6 +2277,22 @@ declare namespace gapi.client {
|
|
|
2269
2277
|
/** The video's title. @mutable youtube.videos.insert youtube.videos.update */
|
|
2270
2278
|
title?: string;
|
|
2271
2279
|
}
|
|
2280
|
+
interface VideoStat {
|
|
2281
|
+
/** Output only. The VideoStatsContentDetails object contains information about the video content, including the length of the video. */
|
|
2282
|
+
contentDetails?: VideoStatsContentDetails;
|
|
2283
|
+
/** Output only. Etag of this resource. */
|
|
2284
|
+
etag?: string;
|
|
2285
|
+
/** Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#videoStats". */
|
|
2286
|
+
kind?: string;
|
|
2287
|
+
/** Output only. Identifier. The resource name for the `VideoStats` resource, in the format `videoStats/{video_stat}`. */
|
|
2288
|
+
name?: string;
|
|
2289
|
+
/** Output only. The VideoStatsSnippet object contains basic details about the video, such publish time. */
|
|
2290
|
+
snippet?: VideoStatsSnippet;
|
|
2291
|
+
/** Output only. The VideoStatsStatistics object contains statistics about the video. */
|
|
2292
|
+
statistics?: VideoStatsStatistics;
|
|
2293
|
+
/** Output only. The ID that YouTube uses to uniquely identify the video. */
|
|
2294
|
+
videoId?: string;
|
|
2295
|
+
}
|
|
2272
2296
|
interface VideoStatistics {
|
|
2273
2297
|
/** The number of comments for the video. */
|
|
2274
2298
|
commentCount?: string;
|
|
@@ -2281,6 +2305,22 @@ declare namespace gapi.client {
|
|
|
2281
2305
|
/** The number of times the video has been viewed. */
|
|
2282
2306
|
viewCount?: string;
|
|
2283
2307
|
}
|
|
2308
|
+
interface VideoStatsContentDetails {
|
|
2309
|
+
/** Output only. The length of the video. The property value is a [`google.protobuf.Duration`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) object. */
|
|
2310
|
+
duration?: string;
|
|
2311
|
+
}
|
|
2312
|
+
interface VideoStatsSnippet {
|
|
2313
|
+
/** Output only. The date and time that the video was uploaded. The property value is a [`google.protobuf.Timestamp`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp) object. */
|
|
2314
|
+
publishTime?: string;
|
|
2315
|
+
}
|
|
2316
|
+
interface VideoStatsStatistics {
|
|
2317
|
+
/** Output only. The number of comments for the video. */
|
|
2318
|
+
commentCount?: string;
|
|
2319
|
+
/** Output only. The number of users who have indicated that they liked the video by giving it a positive rating. */
|
|
2320
|
+
likeCount?: string;
|
|
2321
|
+
/** Output only. The number of times the video has been viewed. */
|
|
2322
|
+
viewCount?: string;
|
|
2323
|
+
}
|
|
2284
2324
|
interface VideoStatus {
|
|
2285
2325
|
/** Indicates if the video contains altered or synthetic media. */
|
|
2286
2326
|
containsSyntheticMedia?: boolean;
|
|
@@ -6130,6 +6170,39 @@ declare namespace gapi.client {
|
|
|
6130
6170
|
interface LiveChatResource {
|
|
6131
6171
|
messages: MessagesResource;
|
|
6132
6172
|
}
|
|
6173
|
+
interface VideosResource {
|
|
6174
|
+
/** Retrieves a batch of VideoStat resources, possibly filtered. */
|
|
6175
|
+
batchGetStats(request?: {
|
|
6176
|
+
/** V1 error format. */
|
|
6177
|
+
'$.xgafv'?: string;
|
|
6178
|
+
/** OAuth access token. */
|
|
6179
|
+
access_token?: string;
|
|
6180
|
+
/** Data format for response. */
|
|
6181
|
+
alt?: string;
|
|
6182
|
+
/** JSONP */
|
|
6183
|
+
callback?: string;
|
|
6184
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
6185
|
+
fields?: string;
|
|
6186
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
6187
|
+
key?: string;
|
|
6188
|
+
/** OAuth 2.0 token for the current user. */
|
|
6189
|
+
oauth_token?: string;
|
|
6190
|
+
/** Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. */
|
|
6191
|
+
onBehalfOfContentOwner?: string;
|
|
6192
|
+
/** Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat` resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response will contain all of those properties. */
|
|
6193
|
+
part?: string | string[];
|
|
6194
|
+
/** Returns response with indentations and line breaks. */
|
|
6195
|
+
prettyPrint?: boolean;
|
|
6196
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
6197
|
+
quotaUser?: string;
|
|
6198
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6199
|
+
upload_protocol?: string;
|
|
6200
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6201
|
+
uploadType?: string;
|
|
6202
|
+
/** Required. Return videos with the given ids. */
|
|
6203
|
+
videoIds?: string | string[];
|
|
6204
|
+
}): Request<BatchGetStatsResponse>;
|
|
6205
|
+
}
|
|
6133
6206
|
interface V3Resource {
|
|
6134
6207
|
/** Updates an existing resource. */
|
|
6135
6208
|
updateCommentThreads(request: {
|
|
@@ -6190,6 +6263,7 @@ declare namespace gapi.client {
|
|
|
6190
6263
|
body: CommentThread,
|
|
6191
6264
|
): Request<CommentThread>;
|
|
6192
6265
|
liveChat: LiveChatResource;
|
|
6266
|
+
videos: VideosResource;
|
|
6193
6267
|
}
|
|
6194
6268
|
interface YoutubeResource {
|
|
6195
6269
|
v3: V3Resource;
|