@googleapis/youtube 34.0.0 → 35.0.0

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/v3.ts CHANGED
@@ -211,11 +211,11 @@ export namespace youtube_v3 {
211
211
  exception?: string[] | null;
212
212
  }
213
213
  /**
214
- * An *activity* resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
214
+ * An `activity` resource contains information about an action that a particular channel, or user, has taken on YouTube. The actions reported in activity feeds include sharing a video, uploading a video, and so forth. Each `activity` resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
215
215
  */
216
216
  export interface Schema$Activity {
217
217
  /**
218
- * The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
218
+ * The `contentDetails` object contains information about the content associated with the activity. For example, if the `snippet.type` value is `videoRated`, then the `contentDetails` object's content identifies the rated video.
219
219
  */
220
220
  contentDetails?: Schema$ActivityContentDetails;
221
221
  /**
@@ -227,11 +227,11 @@ export namespace youtube_v3 {
227
227
  */
228
228
  id?: string | null;
229
229
  /**
230
- * Identifies what kind of resource this is. Value: the fixed string "youtube#activity".
230
+ * Identifies what kind of resource this is. Value: The fixed string `"youtube#activity"`.
231
231
  */
232
232
  kind?: string | null;
233
233
  /**
234
- * The snippet object contains basic details about the activity, including the activity's type and group ID.
234
+ * The `snippet` object contains basic details about the activity, including the activity's type and group ID.
235
235
  */
236
236
  snippet?: Schema$ActivitySnippet;
237
237
  }
@@ -240,47 +240,47 @@ export namespace youtube_v3 {
240
240
  */
241
241
  export interface Schema$ActivityContentDetails {
242
242
  /**
243
- * The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
243
+ * The `bulletin` object contains details about a channel bulletin post. This object is only present if the `snippet.type` is `bulletin`.
244
244
  */
245
245
  bulletin?: Schema$ActivityContentDetailsBulletin;
246
246
  /**
247
- * The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
247
+ * The `channelItem` object contains details about a resource which was added to a channel. This property is only present if the `snippet.type` is `channelItem`.
248
248
  */
249
249
  channelItem?: Schema$ActivityContentDetailsChannelItem;
250
250
  /**
251
- * The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
251
+ * The `comment` object contains information about a resource that received a comment. This property is only present if the `snippet.type` is `comment`.
252
252
  */
253
253
  comment?: Schema$ActivityContentDetailsComment;
254
254
  /**
255
- * The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
255
+ * The `favorite` object contains information about a video that was marked as a favorite video. This property is only present if the `snippet.type` is `favorite`. Deprecated: This property is no longer returned.
256
256
  */
257
257
  favorite?: Schema$ActivityContentDetailsFavorite;
258
258
  /**
259
- * The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
259
+ * The `like` object contains information about a resource that received a positive (like) rating. This property is only present if the `snippet.type` is `like`. Deprecated: This property is no longer returned.
260
260
  */
261
261
  like?: Schema$ActivityContentDetailsLike;
262
262
  /**
263
- * The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
263
+ * The `playlistItem` object contains information about a new playlist item. This property is only present if the `snippet.type` is `playlistItem`.
264
264
  */
265
265
  playlistItem?: Schema$ActivityContentDetailsPlaylistItem;
266
266
  /**
267
- * The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
267
+ * The `promotedItem` object contains details about a resource which is being promoted. This property is only present if the `snippet.type` is `promotedItem`.
268
268
  */
269
269
  promotedItem?: Schema$ActivityContentDetailsPromotedItem;
270
270
  /**
271
- * The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
271
+ * The `recommendation` object contains information about a recommended resource. This property is only present if the `snippet.type` is `recommendation`.
272
272
  */
273
273
  recommendation?: Schema$ActivityContentDetailsRecommendation;
274
274
  /**
275
- * The social object contains details about a social network post. This property is only present if the snippet.type is social.
275
+ * The `social` object contains details about a social network post. This property is only present if the `snippet.type` is `social`.
276
276
  */
277
277
  social?: Schema$ActivityContentDetailsSocial;
278
278
  /**
279
- * The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
279
+ * The `subscription` object contains information about a channel that a user subscribed to. This property is only present if the `snippet.type` is `subscription`. Deprecated: This property is no longer returned.
280
280
  */
281
281
  subscription?: Schema$ActivityContentDetailsSubscription;
282
282
  /**
283
- * The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
283
+ * The `upload` object contains information about the uploaded video. This property is only present if the `snippet.type` is `upload`.
284
284
  */
285
285
  upload?: Schema$ActivityContentDetailsUpload;
286
286
  }
@@ -289,7 +289,7 @@ export namespace youtube_v3 {
289
289
  */
290
290
  export interface Schema$ActivityContentDetailsBulletin {
291
291
  /**
292
- * The resourceId object contains information that identifies the resource associated with a bulletin post. @mutable youtube.activities.insert
292
+ * The `resourceId` object contains information that identifies the resource associated with a bulletin post. @mutable youtube.activities.insert
293
293
  */
294
294
  resourceId?: Schema$ResourceId;
295
295
  }
@@ -298,7 +298,7 @@ export namespace youtube_v3 {
298
298
  */
299
299
  export interface Schema$ActivityContentDetailsChannelItem {
300
300
  /**
301
- * The resourceId object contains information that identifies the resource that was added to the channel.
301
+ * The `resourceId` object contains information that identifies the resource that was added to the channel.
302
302
  */
303
303
  resourceId?: Schema$ResourceId;
304
304
  }
@@ -307,25 +307,25 @@ export namespace youtube_v3 {
307
307
  */
308
308
  export interface Schema$ActivityContentDetailsComment {
309
309
  /**
310
- * The resourceId object contains information that identifies the resource associated with the comment.
310
+ * The `resourceId` object contains information that identifies the resource associated with the comment.
311
311
  */
312
312
  resourceId?: Schema$ResourceId;
313
313
  }
314
314
  /**
315
- * Information about a video that was marked as a favorite video.
315
+ * Information about a video that was marked as a favorite video. Deprecated: This resource is no longer returned.
316
316
  */
317
317
  export interface Schema$ActivityContentDetailsFavorite {
318
318
  /**
319
- * The resourceId object contains information that identifies the resource that was marked as a favorite.
319
+ * The `resourceId` object contains information that identifies the resource that was marked as a favorite.
320
320
  */
321
321
  resourceId?: Schema$ResourceId;
322
322
  }
323
323
  /**
324
- * Information about a resource that received a positive (like) rating.
324
+ * Information about a resource that received a positive (like) rating. Deprecated: This resource is no longer returned.
325
325
  */
326
326
  export interface Schema$ActivityContentDetailsLike {
327
327
  /**
328
- * The resourceId object contains information that identifies the rated resource.
328
+ * The `resourceId` object contains information that identifies the rated resource.
329
329
  */
330
330
  resourceId?: Schema$ResourceId;
331
331
  }
@@ -342,7 +342,7 @@ export namespace youtube_v3 {
342
342
  */
343
343
  playlistItemId?: string | null;
344
344
  /**
345
- * The resourceId object contains information about the resource that was added to the playlist.
345
+ * The `resourceId` object contains information about the resource that was added to the playlist.
346
346
  */
347
347
  resourceId?: Schema$ResourceId;
348
348
  }
@@ -400,11 +400,11 @@ export namespace youtube_v3 {
400
400
  */
401
401
  reason?: string | null;
402
402
  /**
403
- * The resourceId object contains information that identifies the recommended resource.
403
+ * The `resourceId` object contains information that identifies the recommended resource.
404
404
  */
405
405
  resourceId?: Schema$ResourceId;
406
406
  /**
407
- * The seedResourceId object contains information about the resource that caused the recommendation.
407
+ * The `seedResourceId` object contains information about the resource that caused the recommendation.
408
408
  */
409
409
  seedResourceId?: Schema$ResourceId;
410
410
  }
@@ -425,7 +425,7 @@ export namespace youtube_v3 {
425
425
  */
426
426
  referenceUrl?: string | null;
427
427
  /**
428
- * The resourceId object encapsulates information that identifies the resource associated with a social network post.
428
+ * The `resourceId` object encapsulates information that identifies the resource associated with a social network post.
429
429
  */
430
430
  resourceId?: Schema$ResourceId;
431
431
  /**
@@ -434,11 +434,11 @@ export namespace youtube_v3 {
434
434
  type?: string | null;
435
435
  }
436
436
  /**
437
- * Information about a channel that a user subscribed to.
437
+ * Information about a channel that a user subscribed to. Deprecated: This resource is no longer returned.
438
438
  */
439
439
  export interface Schema$ActivityContentDetailsSubscription {
440
440
  /**
441
- * The resourceId object contains information that identifies the resource that the user subscribed to.
441
+ * The `resourceId` object contains information that identifies the resource that the user subscribed to.
442
442
  */
443
443
  resourceId?: Schema$ResourceId;
444
444
  }
@@ -500,7 +500,7 @@ export namespace youtube_v3 {
500
500
  */
501
501
  description?: string | null;
502
502
  /**
503
- * The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
503
+ * The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user uploads a video and watches the same video, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same `groupId` value.
504
504
  */
505
505
  groupId?: string | null;
506
506
  /**
@@ -520,6 +520,54 @@ export namespace youtube_v3 {
520
520
  */
521
521
  type?: string | null;
522
522
  }
523
+ /**
524
+ * Common proto for Live and VOD geo-restrictions
525
+ */
526
+ export interface Schema$AvailabilityConfig {
527
+ /**
528
+ * Video is available in all regions except the ones specified in the config.
529
+ */
530
+ globalConfig?: Schema$AvailabilityConfigGlobalConfig;
531
+ /**
532
+ * Video is available in the specified regions only.
533
+ */
534
+ regionsConfig?: Schema$AvailabilityConfigRegionsConfig;
535
+ }
536
+ /**
537
+ * Video is available in all regions except the ones specified in the excluded_region_codes list.
538
+ */
539
+ export interface Schema$AvailabilityConfigGlobalConfig {
540
+ /**
541
+ * Optional. Regions where video is blocked
542
+ */
543
+ excludedRegionCodes?: string[] | null;
544
+ /**
545
+ * Default time window where video is available for all non-blocked regions Not supported for upcoming / active live broadcasts. If start time is unspecified, video is already available If end time is unspecified, video is available forever Specified start and end times cannot be more than five years in the future.
546
+ */
547
+ interval?: Schema$Interval;
548
+ }
549
+ /**
550
+ * Video is available in the specified regions only.
551
+ */
552
+ export interface Schema$AvailabilityConfigRegionsConfig {
553
+ /**
554
+ * Required. List of regions and time windows where video is available. If a region is specified multiple times, the union of all intervals is used.
555
+ */
556
+ regionIntervals?: Schema$AvailabilityConfigRegionsConfigRegionInterval[];
557
+ }
558
+ /**
559
+ * Region and time window where video is available for the region.
560
+ */
561
+ export interface Schema$AvailabilityConfigRegionsConfigRegionInterval {
562
+ /**
563
+ * Time window where video is available for the region. Not supported for upcoming / active live broadcasts. If start time is unspecified, video is already available If end time is unspecified, video is available forever Specified start and end times cannot be more than five years in the future.
564
+ */
565
+ interval?: Schema$Interval;
566
+ /**
567
+ * Required. Region where video is available
568
+ */
569
+ regionCode?: string | null;
570
+ }
523
571
  /**
524
572
  * Response for the Videos.stats API. Returns VideoStat information about a batch of videos. VideoStat contains a subset of the information in Video that is relevant to statistics and content details. BatchGetStats is intentionally not atomic to provide a better user experience. BatchGetStatsResponse returns a summary to help users understand the outcome of the operation.
525
573
  */
@@ -2045,6 +2093,19 @@ export namespace youtube_v3 {
2045
2093
  */
2046
2094
  streamName?: string | null;
2047
2095
  }
2096
+ /**
2097
+ * Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
2098
+ */
2099
+ export interface Schema$Interval {
2100
+ /**
2101
+ * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
2102
+ */
2103
+ endTime?: string | null;
2104
+ /**
2105
+ * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
2106
+ */
2107
+ startTime?: string | null;
2108
+ }
2048
2109
  /**
2049
2110
  * Describes an invideo branding.
2050
2111
  */
@@ -2150,6 +2211,10 @@ export namespace youtube_v3 {
2150
2211
  * Detailed settings of a broadcast.
2151
2212
  */
2152
2213
  export interface Schema$LiveBroadcastContentDetails {
2214
+ /**
2215
+ * Optional. The broadcast's availability config. Used to set specific region availability or block specific regions It is optional - if not set, it is not enforced.
2216
+ */
2217
+ availabilityConfig?: Schema$AvailabilityConfig;
2153
2218
  /**
2154
2219
  * This value uniquely identifies the live stream bound to the broadcast.
2155
2220
  */
@@ -2269,6 +2334,10 @@ export namespace youtube_v3 {
2269
2334
  * The date and time that the broadcast actually started. This information is only available once the broadcast's state is live.
2270
2335
  */
2271
2336
  actualStartTime?: string | null;
2337
+ /**
2338
+ * The YouTube video category associated with the video broadcast.
2339
+ */
2340
+ categoryId?: string | null;
2272
2341
  /**
2273
2342
  * The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
2274
2343
  */
@@ -3937,6 +4006,10 @@ export namespace youtube_v3 {
3937
4006
  * The default image for this resource.
3938
4007
  */
3939
4008
  default?: Schema$Thumbnail;
4009
+ /**
4010
+ * The full high definition (1080p) quality image for this resource.
4011
+ */
4012
+ fhd?: Schema$Thumbnail;
3940
4013
  /**
3941
4014
  * The high quality image for this resource.
3942
4015
  */
@@ -3949,10 +4022,18 @@ export namespace youtube_v3 {
3949
4022
  * The medium quality image for this resource.
3950
4023
  */
3951
4024
  medium?: Schema$Thumbnail;
4025
+ /**
4026
+ * The quad high definition (1440p / 2K) quality image for this resource.
4027
+ */
4028
+ qhd?: Schema$Thumbnail;
3952
4029
  /**
3953
4030
  * The standard quality image for this resource.
3954
4031
  */
3955
4032
  standard?: Schema$Thumbnail;
4033
+ /**
4034
+ * The ultra-high resolution (4K) quality image for this resource.
4035
+ */
4036
+ uhd?: Schema$Thumbnail;
3956
4037
  }
3957
4038
  export interface Schema$ThumbnailSetResponse {
3958
4039
  /**