/opt/canhelp/node_modules/googleapis/build/src/apis/youtube
Edit: /opt/canhelp/node_modules/googleapis/build/src/apis/youtube/v3.d.ts (676493B)
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace youtube_v3 {
export interface Options extends GlobalOptions {
version: 'v3';
}
interface StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
/**
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* 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.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* 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.
*/
quotaUser?: string;
/**
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
upload_protocol?: string;
}
/**
* YouTube Data API v3
*
* The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.
*
* @example
* ```js
* const {google} = require('googleapis');
* const youtube = google.youtube('v3');
* ```
*/
export class Youtube {
context: APIRequestContext;
abuseReports: Resource$Abusereports;
activities: Resource$Activities;
captions: Resource$Captions;
channelBanners: Resource$Channelbanners;
channels: Resource$Channels;
channelSections: Resource$Channelsections;
comments: Resource$Comments;
commentThreads: Resource$Commentthreads;
i18nLanguages: Resource$I18nlanguages;
i18nRegions: Resource$I18nregions;
liveBroadcasts: Resource$Livebroadcasts;
liveChatBans: Resource$Livechatbans;
liveChatMessages: Resource$Livechatmessages;
liveChatModerators: Resource$Livechatmoderators;
liveStreams: Resource$Livestreams;
members: Resource$Members;
membershipsLevels: Resource$Membershipslevels;
playlistImages: Resource$Playlistimages;
playlistItems: Resource$Playlistitems;
playlists: Resource$Playlists;
search: Resource$Search;
subscriptions: Resource$Subscriptions;
superChatEvents: Resource$Superchatevents;
tests: Resource$Tests;
thirdPartyLinks: Resource$Thirdpartylinks;
thumbnails: Resource$Thumbnails;
videoAbuseReportReasons: Resource$Videoabusereportreasons;
videoCategories: Resource$Videocategories;
videos: Resource$Videos;
videoTrainability: Resource$Videotrainability;
watermarks: Resource$Watermarks;
youtube: Resource$Youtube;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
export interface Schema$AbuseReport {
abuseTypes?: Schema$AbuseType[];
description?: string | null;
relatedEntities?: Schema$RelatedEntity[];
subject?: Schema$Entity;
}
export interface Schema$AbuseType {
id?: string | null;
}
/**
* Rights management policy for YouTube resources.
*/
export interface Schema$AccessPolicy {
/**
* The value of allowed indicates whether the access to the policy is allowed or denied by default.
*/
allowed?: boolean | null;
/**
* A list of region codes that identify countries where the default policy do not apply.
*/
exception?: string[] | null;
}
/**
* 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.
*/
export interface Schema$Activity {
/**
* 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.
*/
contentDetails?: Schema$ActivityContentDetails;
/**
* Etag of this resource
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the activity.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#activity".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the activity, including the activity's type and group ID.
*/
snippet?: Schema$ActivitySnippet;
}
/**
* Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc.
*/
export interface Schema$ActivityContentDetails {
/**
* The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
*/
bulletin?: Schema$ActivityContentDetailsBulletin;
/**
* 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.
*/
channelItem?: Schema$ActivityContentDetailsChannelItem;
/**
* The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
*/
comment?: Schema$ActivityContentDetailsComment;
/**
* 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.
*/
favorite?: Schema$ActivityContentDetailsFavorite;
/**
* 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.
*/
like?: Schema$ActivityContentDetailsLike;
/**
* The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
*/
playlistItem?: Schema$ActivityContentDetailsPlaylistItem;
/**
* The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
*/
promotedItem?: Schema$ActivityContentDetailsPromotedItem;
/**
* The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
*/
recommendation?: Schema$ActivityContentDetailsRecommendation;
/**
* The social object contains details about a social network post. This property is only present if the snippet.type is social.
*/
social?: Schema$ActivityContentDetailsSocial;
/**
* The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
*/
subscription?: Schema$ActivityContentDetailsSubscription;
/**
* The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
*/
upload?: Schema$ActivityContentDetailsUpload;
}
/**
* Details about a channel bulletin post.
*/
export interface Schema$ActivityContentDetailsBulletin {
/**
* The resourceId object contains information that identifies the resource associated with a bulletin post. @mutable youtube.activities.insert
*/
resourceId?: Schema$ResourceId;
}
/**
* Details about a resource which was added to a channel.
*/
export interface Schema$ActivityContentDetailsChannelItem {
/**
* The resourceId object contains information that identifies the resource that was added to the channel.
*/
resourceId?: Schema$ResourceId;
}
/**
* Information about a resource that received a comment.
*/
export interface Schema$ActivityContentDetailsComment {
/**
* The resourceId object contains information that identifies the resource associated with the comment.
*/
resourceId?: Schema$ResourceId;
}
/**
* Information about a video that was marked as a favorite video.
*/
export interface Schema$ActivityContentDetailsFavorite {
/**
* The resourceId object contains information that identifies the resource that was marked as a favorite.
*/
resourceId?: Schema$ResourceId;
}
/**
* Information about a resource that received a positive (like) rating.
*/
export interface Schema$ActivityContentDetailsLike {
/**
* The resourceId object contains information that identifies the rated resource.
*/
resourceId?: Schema$ResourceId;
}
/**
* Information about a new playlist item.
*/
export interface Schema$ActivityContentDetailsPlaylistItem {
/**
* The value that YouTube uses to uniquely identify the playlist.
*/
playlistId?: string | null;
/**
* ID of the item within the playlist.
*/
playlistItemId?: string | null;
/**
* The resourceId object contains information about the resource that was added to the playlist.
*/
resourceId?: Schema$ResourceId;
}
/**
* Details about a resource which is being promoted.
*/
export interface Schema$ActivityContentDetailsPromotedItem {
/**
* The URL the client should fetch to request a promoted item.
*/
adTag?: string | null;
/**
* The URL the client should ping to indicate that the user clicked through on this promoted item.
*/
clickTrackingUrl?: string | null;
/**
* The URL the client should ping to indicate that the user was shown this promoted item.
*/
creativeViewUrl?: string | null;
/**
* The type of call-to-action, a message to the user indicating action that can be taken.
*/
ctaType?: string | null;
/**
* The custom call-to-action button text. If specified, it will override the default button text for the cta_type.
*/
customCtaButtonText?: string | null;
/**
* The text description to accompany the promoted item.
*/
descriptionText?: string | null;
/**
* The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
*/
destinationUrl?: string | null;
/**
* The list of forecasting URLs. The client should ping all of these URLs when a promoted item is not available, to indicate that a promoted item could have been shown.
*/
forecastingUrl?: string[] | null;
/**
* The list of impression URLs. The client should ping all of these URLs to indicate that the user was shown this promoted item.
*/
impressionUrl?: string[] | null;
/**
* The ID that YouTube uses to uniquely identify the promoted video.
*/
videoId?: string | null;
}
/**
* Information that identifies the recommended resource.
*/
export interface Schema$ActivityContentDetailsRecommendation {
/**
* The reason that the resource is recommended to the user.
*/
reason?: string | null;
/**
* The resourceId object contains information that identifies the recommended resource.
*/
resourceId?: Schema$ResourceId;
/**
* The seedResourceId object contains information about the resource that caused the recommendation.
*/
seedResourceId?: Schema$ResourceId;
}
/**
* Details about a social network post.
*/
export interface Schema$ActivityContentDetailsSocial {
/**
* The author of the social network post.
*/
author?: string | null;
/**
* An image of the post's author.
*/
imageUrl?: string | null;
/**
* The URL of the social network post.
*/
referenceUrl?: string | null;
/**
* The resourceId object encapsulates information that identifies the resource associated with a social network post.
*/
resourceId?: Schema$ResourceId;
/**
* The name of the social network.
*/
type?: string | null;
}
/**
* Information about a channel that a user subscribed to.
*/
export interface Schema$ActivityContentDetailsSubscription {
/**
* The resourceId object contains information that identifies the resource that the user subscribed to.
*/
resourceId?: Schema$ResourceId;
}
/**
* Information about the uploaded video.
*/
export interface Schema$ActivityContentDetailsUpload {
/**
* The ID that YouTube uses to uniquely identify the uploaded video.
*/
videoId?: string | null;
}
export interface Schema$ActivityListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
items?: Schema$Activity[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#activityListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Basic details about an activity, including title, description, thumbnails, activity type and group. Next ID: 12
*/
export interface Schema$ActivitySnippet {
/**
* The ID that YouTube uses to uniquely identify the channel associated with the activity.
*/
channelId?: string | null;
/**
* Channel title for the channel responsible for this activity
*/
channelTitle?: string | null;
/**
* The description of the resource primarily associated with the activity. @mutable youtube.activities.insert
*/
description?: string | null;
/**
* 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.
*/
groupId?: string | null;
/**
* The date and time that the video was uploaded.
*/
publishedAt?: string | null;
/**
* A map of thumbnail images associated with the resource that is primarily associated with the activity. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
*/
thumbnails?: Schema$ThumbnailDetails;
/**
* The title of the resource primarily associated with the activity.
*/
title?: string | null;
/**
* The type of activity that the resource describes.
*/
type?: string | null;
}
/**
* A *caption* resource represents a YouTube caption track. A caption track is associated with exactly one YouTube video.
*/
export interface Schema$Caption {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the caption track.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#caption".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the caption.
*/
snippet?: Schema$CaptionSnippet;
}
export interface Schema$CaptionListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of captions that match the request criteria.
*/
items?: Schema$Caption[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#captionListResponse".
*/
kind?: string | null;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Basic details about a caption track, such as its language and name.
*/
export interface Schema$CaptionSnippet {
/**
* The type of audio track associated with the caption track.
*/
audioTrackType?: string | null;
/**
* The reason that YouTube failed to process the caption track. This property is only present if the state property's value is failed.
*/
failureReason?: string | null;
/**
* Indicates whether YouTube synchronized the caption track to the audio track in the video. The value will be true if a sync was explicitly requested when the caption track was uploaded. For example, when calling the captions.insert or captions.update methods, you can set the sync parameter to true to instruct YouTube to sync the uploaded track to the video. If the value is false, YouTube uses the time codes in the uploaded caption track to determine when to display captions.
*/
isAutoSynced?: boolean | null;
/**
* Indicates whether the track contains closed captions for the deaf and hard of hearing. The default value is false.
*/
isCC?: boolean | null;
/**
* Indicates whether the caption track is a draft. If the value is true, then the track is not publicly visible. The default value is false. @mutable youtube.captions.insert youtube.captions.update
*/
isDraft?: boolean | null;
/**
* Indicates whether caption track is formatted for "easy reader," meaning it is at a third-grade level for language learners. The default value is false.
*/
isEasyReader?: boolean | null;
/**
* Indicates whether the caption track uses large text for the vision-impaired. The default value is false.
*/
isLarge?: boolean | null;
/**
* The language of the caption track. The property value is a BCP-47 language tag.
*/
language?: string | null;
/**
* The date and time when the caption track was last updated.
*/
lastUpdated?: string | null;
/**
* The name of the caption track. The name is intended to be visible to the user as an option during playback.
*/
name?: string | null;
/**
* The caption track's status.
*/
status?: string | null;
/**
* The caption track's type.
*/
trackKind?: string | null;
/**
* The ID that YouTube uses to uniquely identify the video associated with the caption track. @mutable youtube.captions.insert
*/
videoId?: string | null;
}
/**
* Brief description of the live stream cdn settings.
*/
export interface Schema$CdnSettings {
/**
* The format of the video stream that you are sending to Youtube.
*/
format?: string | null;
/**
* The frame rate of the inbound video data.
*/
frameRate?: string | null;
/**
* The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
*/
ingestionInfo?: Schema$IngestionInfo;
/**
* The method or protocol used to transmit the video stream.
*/
ingestionType?: string | null;
/**
* The resolution of the inbound video data.
*/
resolution?: string | null;
}
/**
* A *channel* resource contains information about a YouTube channel.
*/
export interface Schema$Channel {
/**
* The auditionDetails object encapsulates channel data that is relevant for YouTube Partners during the audition process.
*/
auditDetails?: Schema$ChannelAuditDetails;
/**
* The brandingSettings object encapsulates information about the branding of the channel.
*/
brandingSettings?: Schema$ChannelBrandingSettings;
/**
* The contentDetails object encapsulates information about the channel's content.
*/
contentDetails?: Schema$ChannelContentDetails;
/**
* The contentOwnerDetails object encapsulates channel data that is relevant for YouTube Partners linked with the channel.
*/
contentOwnerDetails?: Schema$ChannelContentOwnerDetails;
/**
* The conversionPings object encapsulates information about conversion pings that need to be respected by the channel.
*/
conversionPings?: Schema$ChannelConversionPings;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the channel.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#channel".
*/
kind?: string | null;
/**
* Localizations for different languages
*/
localizations?: {
[key: string]: Schema$ChannelLocalization;
} | null;
/**
* The snippet object contains basic details about the channel, such as its title, description, and thumbnail images.
*/
snippet?: Schema$ChannelSnippet;
/**
* The statistics object encapsulates statistics for the channel.
*/
statistics?: Schema$ChannelStatistics;
/**
* The status object encapsulates information about the privacy status of the channel.
*/
status?: Schema$ChannelStatus;
/**
* The topicDetails object encapsulates information about Freebase topics associated with the channel.
*/
topicDetails?: Schema$ChannelTopicDetails;
}
/**
* The auditDetails object encapsulates channel data that is relevant for YouTube Partners during the audit process.
*/
export interface Schema$ChannelAuditDetails {
/**
* Whether or not the channel respects the community guidelines.
*/
communityGuidelinesGoodStanding?: boolean | null;
/**
* Whether or not the channel has any unresolved claims.
*/
contentIdClaimsGoodStanding?: boolean | null;
/**
* Whether or not the channel has any copyright strikes.
*/
copyrightStrikesGoodStanding?: boolean | null;
}
/**
* A channel banner returned as the response to a channel_banner.insert call.
*/
export interface Schema$ChannelBannerResource {
etag?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#channelBannerResource".
*/
kind?: string | null;
/**
* The URL of this banner image.
*/
url?: string | null;
}
/**
* Branding properties of a YouTube channel.
*/
export interface Schema$ChannelBrandingSettings {
/**
* Branding properties for the channel view.
*/
channel?: Schema$ChannelSettings;
/**
* Additional experimental branding properties.
*/
hints?: Schema$PropertyValue[];
/**
* Branding properties for branding images.
*/
image?: Schema$ImageSettings;
/**
* Branding properties for the watch page.
*/
watch?: Schema$WatchSettings;
}
/**
* Details about the content of a channel.
*/
export interface Schema$ChannelContentDetails {
relatedPlaylists?: {
favorites?: string;
likes?: string;
uploads?: string;
watchHistory?: string;
watchLater?: string;
} | null;
}
/**
* The contentOwnerDetails object encapsulates channel data that is relevant for YouTube Partners linked with the channel.
*/
export interface Schema$ChannelContentOwnerDetails {
/**
* The ID of the content owner linked to the channel.
*/
contentOwner?: string | null;
/**
* The date and time when the channel was linked to the content owner.
*/
timeLinked?: string | null;
}
/**
* Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
*/
export interface Schema$ChannelConversionPing {
/**
* Defines the context of the ping.
*/
context?: string | null;
/**
* The url (without the schema) that the player shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
*/
conversionUrl?: string | null;
}
/**
* The conversionPings object encapsulates information about conversion pings that need to be respected by the channel.
*/
export interface Schema$ChannelConversionPings {
/**
* Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
*/
pings?: Schema$ChannelConversionPing[];
}
export interface Schema$ChannelListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
items?: Schema$Channel[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#channelListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Channel localization setting
*/
export interface Schema$ChannelLocalization {
/**
* The localized strings for channel's description.
*/
description?: string | null;
/**
* The localized strings for channel's title.
*/
title?: string | null;
}
export interface Schema$ChannelProfileDetails {
/**
* The YouTube channel ID.
*/
channelId?: string | null;
/**
* The channel's URL.
*/
channelUrl?: string | null;
/**
* The channel's display name.
*/
displayName?: string | null;
/**
* The channels's avatar URL.
*/
profileImageUrl?: string | null;
}
export interface Schema$ChannelSection {
/**
* The contentDetails object contains details about the channel section content, such as a list of playlists or channels featured in the section.
*/
contentDetails?: Schema$ChannelSectionContentDetails;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the channel section.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#channelSection".
*/
kind?: string | null;
/**
* Localizations for different languages
*/
localizations?: {
[key: string]: Schema$ChannelSectionLocalization;
} | null;
/**
* The snippet object contains basic details about the channel section, such as its type, style and title.
*/
snippet?: Schema$ChannelSectionSnippet;
/**
* The targeting object contains basic targeting settings about the channel section.
*/
targeting?: Schema$ChannelSectionTargeting;
}
/**
* Details about a channelsection, including playlists and channels.
*/
export interface Schema$ChannelSectionContentDetails {
/**
* The channel ids for type multiple_channels.
*/
channels?: string[] | null;
/**
* The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed.
*/
playlists?: string[] | null;
}
export interface Schema$ChannelSectionListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of ChannelSections that match the request criteria.
*/
items?: Schema$ChannelSection[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#channelSectionListResponse".
*/
kind?: string | null;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* ChannelSection localization setting
*/
export interface Schema$ChannelSectionLocalization {
/**
* The localized strings for channel section's title.
*/
title?: string | null;
}
/**
* Basic details about a channel section, including title, style and position.
*/
export interface Schema$ChannelSectionSnippet {
/**
* The ID that YouTube uses to uniquely identify the channel that published the channel section.
*/
channelId?: string | null;
/**
* The language of the channel section's default title and description.
*/
defaultLanguage?: string | null;
/**
* Localized title, read-only.
*/
localized?: Schema$ChannelSectionLocalization;
/**
* The position of the channel section in the channel.
*/
position?: number | null;
/**
* The style of the channel section.
*/
style?: string | null;
/**
* The channel section's title for multiple_playlists and multiple_channels.
*/
title?: string | null;
/**
* The type of the channel section.
*/
type?: string | null;
}
/**
* ChannelSection targeting setting.
*/
export interface Schema$ChannelSectionTargeting {
/**
* The country the channel section is targeting.
*/
countries?: string[] | null;
/**
* The language the channel section is targeting.
*/
languages?: string[] | null;
/**
* The region the channel section is targeting.
*/
regions?: string[] | null;
}
/**
* Branding properties for the channel view.
*/
export interface Schema$ChannelSettings {
/**
* The country of the channel.
*/
country?: string | null;
defaultLanguage?: string | null;
/**
* Which content tab users should see when viewing the channel.
*/
defaultTab?: string | null;
/**
* Specifies the channel description.
*/
description?: string | null;
/**
* Title for the featured channels tab.
*/
featuredChannelsTitle?: string | null;
/**
* The list of featured channels.
*/
featuredChannelsUrls?: string[] | null;
/**
* Lists keywords associated with the channel, comma-separated.
*/
keywords?: string | null;
/**
* Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible.
*/
moderateComments?: boolean | null;
/**
* A prominent color that can be rendered on this channel page.
*/
profileColor?: string | null;
/**
* Whether the tab to browse the videos should be displayed.
*/
showBrowseView?: boolean | null;
/**
* Whether related channels should be proposed.
*/
showRelatedChannels?: boolean | null;
/**
* Specifies the channel title.
*/
title?: string | null;
/**
* The ID for a Google Analytics account to track and measure traffic to the channels.
*/
trackingAnalyticsAccountId?: string | null;
/**
* The trailer of the channel, for users that are not subscribers.
*/
unsubscribedTrailer?: string | null;
}
/**
* Basic details about a channel, including title, description and thumbnails.
*/
export interface Schema$ChannelSnippet {
/**
* The country of the channel.
*/
country?: string | null;
/**
* The custom url of the channel.
*/
customUrl?: string | null;
/**
* The language of the channel's default title and description.
*/
defaultLanguage?: string | null;
/**
* The description of the channel.
*/
description?: string | null;
/**
* Localized title and description, read-only.
*/
localized?: Schema$ChannelLocalization;
/**
* The date and time that the channel was created.
*/
publishedAt?: string | null;
/**
* A map of thumbnail images associated with the channel. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail. When displaying thumbnails in your application, make sure that your code uses the image URLs exactly as they are returned in API responses. For example, your application should not use the http domain instead of the https domain in a URL returned in an API response. Beginning in July 2018, channel thumbnail URLs will only be available in the https domain, which is how the URLs appear in API responses. After that time, you might see broken images in your application if it tries to load YouTube images from the http domain. Thumbnail images might be empty for newly created channels and might take up to one day to populate.
*/
thumbnails?: Schema$ThumbnailDetails;
/**
* The channel's title.
*/
title?: string | null;
}
/**
* Statistics about a channel: number of subscribers, number of videos in the channel, etc.
*/
export interface Schema$ChannelStatistics {
/**
* The number of comments for the channel.
*/
commentCount?: string | null;
/**
* Whether or not the number of subscribers is shown for this user.
*/
hiddenSubscriberCount?: boolean | null;
/**
* The number of subscribers that the channel has.
*/
subscriberCount?: string | null;
/**
* The number of videos uploaded to the channel.
*/
videoCount?: string | null;
/**
* The number of times the channel has been viewed.
*/
viewCount?: string | null;
}
/**
* JSON template for the status part of a channel.
*/
export interface Schema$ChannelStatus {
/**
* Whether the channel is considered ypp monetization enabled. See go/yppornot for more details.
*/
isChannelMonetizationEnabled?: boolean | null;
/**
* If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity.
*/
isLinked?: boolean | null;
/**
* The long uploads status of this channel. See https://support.google.com/youtube/answer/71673 for more information.
*/
longUploadsStatus?: string | null;
madeForKids?: boolean | null;
/**
* Privacy status of the channel.
*/
privacyStatus?: string | null;
selfDeclaredMadeForKids?: boolean | null;
}
/**
* Freebase topic information related to the channel.
*/
export interface Schema$ChannelTopicDetails {
/**
* A list of Wikipedia URLs that describe the channel's content.
*/
topicCategories?: string[] | null;
/**
* A list of Freebase topic IDs associated with the channel. You can retrieve information about each topic using the Freebase Topic API.
*/
topicIds?: string[] | null;
}
/**
* Information specific to a store on a merchandising platform linked to a YouTube channel.
*/
export interface Schema$ChannelToStoreLinkDetails {
/**
* Information specific to billing (read-only).
*/
billingDetails?: Schema$ChannelToStoreLinkDetailsBillingDetails;
/**
* Information specific to merchant affiliate program (read-only).
*/
merchantAffiliateProgramDetails?: Schema$ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails;
/**
* Google Merchant Center id of the store.
*/
merchantId?: string | null;
/**
* Name of the store.
*/
storeName?: string | null;
/**
* Landing page of the store.
*/
storeUrl?: string | null;
}
/**
* Information specific to billing.
*/
export interface Schema$ChannelToStoreLinkDetailsBillingDetails {
/**
* The current billing profile status.
*/
billingStatus?: string | null;
}
/**
* Information specific to merchant affiliate program.
*/
export interface Schema$ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails {
/**
* The current merchant affiliate program status.
*/
status?: string | null;
}
/**
* A *comment* represents a single YouTube comment.
*/
export interface Schema$Comment {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the comment.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the comment.
*/
snippet?: Schema$CommentSnippet;
}
export interface Schema$CommentListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of comments that match the request criteria.
*/
items?: Schema$Comment[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#commentListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Basic details about a comment, such as its author and text.
*/
export interface Schema$CommentSnippet {
authorChannelId?: Schema$CommentSnippetAuthorChannelId;
/**
* Link to the author's YouTube channel, if any.
*/
authorChannelUrl?: string | null;
/**
* The name of the user who posted the comment.
*/
authorDisplayName?: string | null;
/**
* The URL for the avatar of the user who posted the comment.
*/
authorProfileImageUrl?: string | null;
/**
* Whether the current viewer can rate this comment.
*/
canRate?: boolean | null;
/**
* The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video or post comment it's the video/post's channel.
*/
channelId?: string | null;
/**
* The total number of likes this comment has received.
*/
likeCount?: number | null;
/**
* The comment's moderation status. Will not be set if the comments were requested through the id filter.
*/
moderationStatus?: string | null;
/**
* The unique id of the top-level comment, only set for replies.
*/
parentId?: string | null;
/**
* The ID of the post the comment refers to, if any.
*/
postId?: string | null;
/**
* The date and time when the comment was originally published.
*/
publishedAt?: string | null;
/**
* The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
*/
textDisplay?: string | null;
/**
* The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
*/
textOriginal?: string | null;
/**
* The date and time when the comment was last updated.
*/
updatedAt?: string | null;
/**
* The ID of the video the comment refers to, if any.
*/
videoId?: string | null;
/**
* The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
*/
viewerRating?: string | null;
}
/**
* Contains the id of the author's YouTube channel, if any.
*/
export interface Schema$CommentSnippetAuthorChannelId {
/**
* The id of the author's YouTube channel.
*/
value?: string | null;
}
/**
* A *comment thread* represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
*/
export interface Schema$CommentThread {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the comment thread.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread".
*/
kind?: string | null;
/**
* The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
*/
replies?: Schema$CommentThreadReplies;
/**
* The snippet object contains basic details about the comment thread and also the top level comment.
*/
snippet?: Schema$CommentThreadSnippet;
}
export interface Schema$CommentThreadListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of comment threads that match the request criteria.
*/
items?: Schema$CommentThread[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#commentThreadListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Comments written in (direct or indirect) reply to the top level comment.
*/
export interface Schema$CommentThreadReplies {
/**
* A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
*/
comments?: Schema$Comment[];
}
/**
* Basic details about a comment thread.
*/
export interface Schema$CommentThreadSnippet {
/**
* Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
*/
canReply?: boolean | null;
/**
* The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If neither video_id nor post_id is set the comments refer to the channel itself.
*/
channelId?: string | null;
/**
* Whether the thread (and therefore all its comments) is visible to all YouTube users.
*/
isPublic?: boolean | null;
/**
* The ID of the post the comments refer to, if any.
*/
postId?: string | null;
/**
* The top level comment of this thread.
*/
topLevelComment?: Schema$Comment;
/**
* The total number of replies (not including the top level comment).
*/
totalReplyCount?: number | null;
/**
* The ID of the video the comments refer to, if any.
*/
videoId?: string | null;
}
/**
* Ratings schemes. The country-specific ratings are mostly for movies and shows. LINT.IfChange
*/
export interface Schema$ContentRating {
/**
* The video's Australian Classification Board (ACB) or Australian Communications and Media Authority (ACMA) rating. ACMA ratings are used to classify children's television programming.
*/
acbRating?: string | null;
/**
* The video's rating from Italy's Autorità per le Garanzie nelle Comunicazioni (AGCOM).
*/
agcomRating?: string | null;
/**
* The video's Anatel (Asociación Nacional de Televisión) rating for Chilean television.
*/
anatelRating?: string | null;
/**
* The video's British Board of Film Classification (BBFC) rating.
*/
bbfcRating?: string | null;
/**
* The video's rating from Thailand's Board of Film and Video Censors.
*/
bfvcRating?: string | null;
/**
* The video's rating from the Austrian Board of Media Classification (Bundesministerium für Unterricht, Kunst und Kultur).
*/
bmukkRating?: string | null;
/**
* The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian French-language broadcasts. For more information, see the Canadian Broadcast Standards Council website.
*/
catvfrRating?: string | null;
/**
* Rating system for Canadian TV - Canadian TV Classification System The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian English-language broadcasts. For more information, see the Canadian Broadcast Standards Council website.
*/
catvRating?: string | null;
/**
* The video's Central Board of Film Certification (CBFC - India) rating.
*/
cbfcRating?: string | null;
/**
* The video's Consejo de Calificación Cinematográfica (Chile) rating.
*/
cccRating?: string | null;
/**
* The video's rating from Portugal's Comissão de Classificação de Espect´culos.
*/
cceRating?: string | null;
/**
* The video's rating in Switzerland.
*/
chfilmRating?: string | null;
/**
* The video's Canadian Home Video Rating System (CHVRS) rating.
*/
chvrsRating?: string | null;
/**
* The video's rating from the Commission de Contrôle des Films (Belgium).
*/
cicfRating?: string | null;
/**
* The video's rating from Romania's CONSILIUL NATIONAL AL AUDIOVIZUALULUI (CNA).
*/
cnaRating?: string | null;
/**
* Rating system in France - Commission de classification cinematographique
*/
cncRating?: string | null;
/**
* The video's rating from France's Conseil supérieur de l’audiovisuel, which rates broadcast content.
*/
csaRating?: string | null;
/**
* The video's rating from Luxembourg's Commission de surveillance de la classification des films (CSCF).
*/
cscfRating?: string | null;
/**
* The video's rating in the Czech Republic.
*/
czfilmRating?: string | null;
/**
* The video's Departamento de Justiça, Classificação, Qualificação e Títulos (DJCQT - Brazil) rating.
*/
djctqRating?: string | null;
/**
* Reasons that explain why the video received its DJCQT (Brazil) rating.
*/
djctqRatingReasons?: string[] | null;
/**
* Rating system in Turkey - Evaluation and Classification Board of the Ministry of Culture and Tourism
*/
ecbmctRating?: string | null;
/**
* The video's rating in Estonia.
*/
eefilmRating?: string | null;
/**
* The video's rating in Egypt.
*/
egfilmRating?: string | null;
/**
* The video's Eirin (映倫) rating. Eirin is the Japanese rating system.
*/
eirinRating?: string | null;
/**
* The video's rating from Malaysia's Film Censorship Board.
*/
fcbmRating?: string | null;
/**
* The video's rating from Hong Kong's Office for Film, Newspaper and Article Administration.
*/
fcoRating?: string | null;
/**
* This property has been deprecated. Use the contentDetails.contentRating.cncRating instead.
*/
fmocRating?: string | null;
/**
* The video's rating from South Africa's Film and Publication Board.
*/
fpbRating?: string | null;
/**
* Reasons that explain why the video received its FPB (South Africa) rating.
*/
fpbRatingReasons?: string[] | null;
/**
* The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany) rating.
*/
fskRating?: string | null;
/**
* The video's rating in Greece.
*/
grfilmRating?: string | null;
/**
* The video's Instituto de la Cinematografía y de las Artes Audiovisuales (ICAA - Spain) rating.
*/
icaaRating?: string | null;
/**
* The video's Irish Film Classification Office (IFCO - Ireland) rating. See the IFCO website for more information.
*/
ifcoRating?: string | null;
/**
* The video's rating in Israel.
*/
ilfilmRating?: string | null;
/**
* The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - Argentina) rating.
*/
incaaRating?: string | null;
/**
* The video's rating from the Kenya Film Classification Board.
*/
kfcbRating?: string | null;
/**
* The video's NICAM/Kijkwijzer rating from the Nederlands Instituut voor de Classificatie van Audiovisuele Media (Netherlands).
*/
kijkwijzerRating?: string | null;
/**
* The video's Korea Media Rating Board (영상물등급위원회) rating. The KMRB rates videos in South Korea.
*/
kmrbRating?: string | null;
/**
* The video's rating from Indonesia's Lembaga Sensor Film.
*/
lsfRating?: string | null;
/**
* The video's rating from Malta's Film Age-Classification Board.
*/
mccaaRating?: string | null;
/**
* The video's rating from the Danish Film Institute's (Det Danske Filminstitut) Media Council for Children and Young People.
*/
mccypRating?: string | null;
/**
* The video's rating system for Vietnam - MCST
*/
mcstRating?: string | null;
/**
* The video's rating from Singapore's Media Development Authority (MDA) and, specifically, it's Board of Film Censors (BFC).
*/
mdaRating?: string | null;
/**
* The video's rating from Medietilsynet, the Norwegian Media Authority.
*/
medietilsynetRating?: string | null;
/**
* The video's rating from Finland's Kansallinen Audiovisuaalinen Instituutti (National Audiovisual Institute).
*/
mekuRating?: string | null;
/**
* The rating system for MENA countries, a clone of MPAA. It is needed to prevent titles go live w/o additional QC check, since some of them can be inappropriate for the countries at all. See b/33408548 for more details.
*/
menaMpaaRating?: string | null;
/**
* The video's rating from the Ministero dei Beni e delle Attività Culturali e del Turismo (Italy).
*/
mibacRating?: string | null;
/**
* The video's Ministerio de Cultura (Colombia) rating.
*/
mocRating?: string | null;
/**
* The video's rating from Taiwan's Ministry of Culture (文化部).
*/
moctwRating?: string | null;
/**
* The video's Motion Picture Association of America (MPAA) rating.
*/
mpaaRating?: string | null;
/**
* The rating system for trailer, DVD, and Ad in the US. See http://movielabs.com/md/ratings/v2.3/html/US_MPAAT_Ratings.html.
*/
mpaatRating?: string | null;
/**
* The video's rating from the Movie and Television Review and Classification Board (Philippines).
*/
mtrcbRating?: string | null;
/**
* The video's rating in Poland.
*/
nbcplRating?: string | null;
/**
* The video's rating from the Maldives National Bureau of Classification.
*/
nbcRating?: string | null;
/**
* The video's rating from the Bulgarian National Film Center.
*/
nfrcRating?: string | null;
/**
* The video's rating from Nigeria's National Film and Video Censors Board.
*/
nfvcbRating?: string | null;
/**
* The video's rating from the Nacionãlais Kino centrs (National Film Centre of Latvia).
*/
nkclvRating?: string | null;
/**
* The National Media Council ratings system for United Arab Emirates.
*/
nmcRating?: string | null;
/**
* The video's Office of Film and Literature Classification (OFLC - New Zealand) rating.
*/
oflcRating?: string | null;
/**
* The video's rating in Peru.
*/
pefilmRating?: string | null;
/**
* The video's rating from the Hungarian Nemzeti Filmiroda, the Rating Committee of the National Office of Film.
*/
rcnofRating?: string | null;
/**
* The video's rating in Venezuela.
*/
resorteviolenciaRating?: string | null;
/**
* The video's General Directorate of Radio, Television and Cinematography (Mexico) rating.
*/
rtcRating?: string | null;
/**
* The video's rating from Ireland's Raidió Teilifís Éireann.
*/
rteRating?: string | null;
/**
* The video's National Film Registry of the Russian Federation (MKRF - Russia) rating.
*/
russiaRating?: string | null;
/**
* The video's rating in Slovakia.
*/
skfilmRating?: string | null;
/**
* The video's rating in Iceland.
*/
smaisRating?: string | null;
/**
* The video's rating from Statens medieråd (Sweden's National Media Council).
*/
smsaRating?: string | null;
/**
* The video's TV Parental Guidelines (TVPG) rating.
*/
tvpgRating?: string | null;
/**
* A rating that YouTube uses to identify age-restricted content.
*/
ytRating?: string | null;
}
/**
* Note that there may be a 5-second end-point resolution issue. For instance, if a cuepoint comes in for 22:03:27, we may stuff the cuepoint into 22:03:25 or 22:03:30, depending. This is an artifact of HLS.
*/
export interface Schema$Cuepoint {
cueType?: string | null;
/**
* The duration of this cuepoint.
*/
durationSecs?: number | null;
etag?: string | null;
/**
* The identifier for cuepoint resource.
*/
id?: string | null;
/**
* The time when the cuepoint should be inserted by offset to the broadcast actual start time.
*/
insertionOffsetTimeMs?: string | null;
/**
* The wall clock time at which the cuepoint should be inserted. Only one of insertion_offset_time_ms and walltime_ms may be set at a time.
*/
walltimeMs?: string | null;
}
/**
* Schedule to insert cuepoints into a broadcast by ads automator.
*/
export interface Schema$CuepointSchedule {
/**
* This field is semantically required. If it is set false or not set, other fields in this message will be ignored.
*/
enabled?: boolean | null;
/**
* If set, automatic cuepoint insertion is paused until this timestamp ("No Ad Zone"). The value is specified in ISO 8601 format.
*/
pauseAdsUntil?: string | null;
/**
* Interval frequency in seconds that api uses to insert cuepoints automatically.
*/
repeatIntervalSecs?: number | null;
/**
* The strategy to use when scheduling cuepoints.
*/
scheduleStrategy?: string | null;
}
export interface Schema$Entity {
id?: string | null;
typeId?: string | null;
url?: string | null;
}
/**
* Geographical coordinates of a point, in WGS84.
*/
export interface Schema$GeoPoint {
/**
* Altitude above the reference ellipsoid, in meters.
*/
altitude?: number | null;
/**
* Latitude in degrees.
*/
latitude?: number | null;
/**
* Longitude in degrees.
*/
longitude?: number | null;
}
/**
* An *i18nLanguage* resource identifies a UI language currently supported by YouTube.
*/
export interface Schema$I18nLanguage {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the i18n language.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#i18nLanguage".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the i18n language, such as language code and human-readable name.
*/
snippet?: Schema$I18nLanguageSnippet;
}
export interface Schema$I18nLanguageListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of supported i18n languages. In this map, the i18n language ID is the map key, and its value is the corresponding i18nLanguage resource.
*/
items?: Schema$I18nLanguage[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#i18nLanguageListResponse".
*/
kind?: string | null;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Basic details about an i18n language, such as language code and human-readable name.
*/
export interface Schema$I18nLanguageSnippet {
/**
* A short BCP-47 code that uniquely identifies a language.
*/
hl?: string | null;
/**
* The human-readable name of the language in the language itself.
*/
name?: string | null;
}
/**
* A *i18nRegion* resource identifies a region where YouTube is available.
*/
export interface Schema$I18nRegion {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the i18n region.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#i18nRegion".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the i18n region, such as region code and human-readable name.
*/
snippet?: Schema$I18nRegionSnippet;
}
export interface Schema$I18nRegionListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of regions where YouTube is available. In this map, the i18n region ID is the map key, and its value is the corresponding i18nRegion resource.
*/
items?: Schema$I18nRegion[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#i18nRegionListResponse".
*/
kind?: string | null;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Basic details about an i18n region, such as region code and human-readable name.
*/
export interface Schema$I18nRegionSnippet {
/**
* The region code as a 2-letter ISO country code.
*/
gl?: string | null;
/**
* The human-readable name of the region.
*/
name?: string | null;
}
/**
* Branding properties for images associated with the channel.
*/
export interface Schema$ImageSettings {
/**
* The URL for the background image shown on the video watch page. The image should be 1200px by 615px, with a maximum file size of 128k.
*/
backgroundImageUrl?: Schema$LocalizedProperty;
/**
* This is generated when a ChannelBanner.Insert request has succeeded for the given channel.
*/
bannerExternalUrl?: string | null;
/**
* Banner image. Desktop size (1060x175).
*/
bannerImageUrl?: string | null;
/**
* Banner image. Mobile size high resolution (1440x395).
*/
bannerMobileExtraHdImageUrl?: string | null;
/**
* Banner image. Mobile size high resolution (1280x360).
*/
bannerMobileHdImageUrl?: string | null;
/**
* Banner image. Mobile size (640x175).
*/
bannerMobileImageUrl?: string | null;
/**
* Banner image. Mobile size low resolution (320x88).
*/
bannerMobileLowImageUrl?: string | null;
/**
* Banner image. Mobile size medium/high resolution (960x263).
*/
bannerMobileMediumHdImageUrl?: string | null;
/**
* Banner image. Tablet size extra high resolution (2560x424).
*/
bannerTabletExtraHdImageUrl?: string | null;
/**
* Banner image. Tablet size high resolution (2276x377).
*/
bannerTabletHdImageUrl?: string | null;
/**
* Banner image. Tablet size (1707x283).
*/
bannerTabletImageUrl?: string | null;
/**
* Banner image. Tablet size low resolution (1138x188).
*/
bannerTabletLowImageUrl?: string | null;
/**
* Banner image. TV size high resolution (1920x1080).
*/
bannerTvHighImageUrl?: string | null;
/**
* Banner image. TV size extra high resolution (2120x1192).
*/
bannerTvImageUrl?: string | null;
/**
* Banner image. TV size low resolution (854x480).
*/
bannerTvLowImageUrl?: string | null;
/**
* Banner image. TV size medium resolution (1280x720).
*/
bannerTvMediumImageUrl?: string | null;
/**
* The image map script for the large banner image.
*/
largeBrandedBannerImageImapScript?: Schema$LocalizedProperty;
/**
* The URL for the 854px by 70px image that appears below the video player in the expanded video view of the video watch page.
*/
largeBrandedBannerImageUrl?: Schema$LocalizedProperty;
/**
* The image map script for the small banner image.
*/
smallBrandedBannerImageImapScript?: Schema$LocalizedProperty;
/**
* The URL for the 640px by 70px banner image that appears below the video player in the default view of the video watch page. The URL for the image that appears above the top-left corner of the video player. This is a 25-pixel-high image with a flexible width that cannot exceed 170 pixels.
*/
smallBrandedBannerImageUrl?: Schema$LocalizedProperty;
/**
* The URL for a 1px by 1px tracking pixel that can be used to collect statistics for views of the channel or video pages.
*/
trackingImageUrl?: string | null;
watchIconImageUrl?: string | null;
}
/**
* Describes information necessary for ingesting an RTMP, HTTP, or SRT stream.
*/
export interface Schema$IngestionInfo {
/**
* The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
*/
backupIngestionAddress?: string | null;
/**
* The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL. Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format: *STREAM_URL/STREAM_NAME*
*/
ingestionAddress?: string | null;
/**
* This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
*/
rtmpsBackupIngestionAddress?: string | null;
/**
* This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS. Not applicable to non-RTMP streams.
*/
rtmpsIngestionAddress?: string | null;
/**
* The stream name that YouTube assigns to the video stream.
*/
streamName?: string | null;
}
/**
* Describes an invideo branding.
*/
export interface Schema$InvideoBranding {
/**
* The bytes the uploaded image. Only used in api to youtube communication.
*/
imageBytes?: string | null;
/**
* The url of the uploaded image. Only used in apiary to api communication.
*/
imageUrl?: string | null;
/**
* The spatial position within the video where the branding watermark will be displayed.
*/
position?: Schema$InvideoPosition;
/**
* The channel to which this branding links. If not present it defaults to the current channel.
*/
targetChannelId?: string | null;
/**
* The temporal position within the video where watermark will be displayed.
*/
timing?: Schema$InvideoTiming;
}
/**
* Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one.
*/
export interface Schema$InvideoPosition {
/**
* Describes in which corner of the video the visual widget will appear.
*/
cornerPosition?: string | null;
/**
* Defines the position type.
*/
type?: string | null;
}
/**
* Describes a temporal position of a visual widget inside a video.
*/
export interface Schema$InvideoTiming {
/**
* Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.
*/
durationMs?: string | null;
/**
* Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.
*/
offsetMs?: string | null;
/**
* Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
*/
type?: string | null;
}
export interface Schema$LanguageTag {
value?: string | null;
}
export interface Schema$LevelDetails {
/**
* The name that should be used when referring to this level.
*/
displayName?: string | null;
}
/**
* A *liveBroadcast* resource represents an event that will be streamed, via live video, on YouTube.
*/
export interface Schema$LiveBroadcast {
/**
* The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
*/
contentDetails?: Schema$LiveBroadcastContentDetails;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube assigns to uniquely identify the broadcast.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcast".
*/
kind?: string | null;
/**
* The monetizationDetails object contains information about the event's monetization details.
*/
monetizationDetails?: Schema$LiveBroadcastMonetizationDetails;
/**
* The snippet object contains basic details about the event, including its title, description, start time, and end time.
*/
snippet?: Schema$LiveBroadcastSnippet;
/**
* The statistics object contains info about the event's current stats. These include concurrent viewers and total chat count. Statistics can change (in either direction) during the lifetime of an event. Statistics are only returned while the event is live.
*/
statistics?: Schema$LiveBroadcastStatistics;
/**
* The status object contains information about the event's status.
*/
status?: Schema$LiveBroadcastStatus;
}
/**
* Detailed settings of a broadcast.
*/
export interface Schema$LiveBroadcastContentDetails {
/**
* This value uniquely identifies the live stream bound to the broadcast.
*/
boundStreamId?: string | null;
/**
* The date and time that the live stream referenced by boundStreamId was last updated.
*/
boundStreamLastUpdateTimeMs?: string | null;
closedCaptionsType?: string | null;
/**
* This setting indicates whether auto start is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
*/
enableAutoStart?: boolean | null;
/**
* This setting indicates whether auto stop is enabled for this broadcast. The default value for this property is false. This setting can only be used by Events.
*/
enableAutoStop?: boolean | null;
/**
* This setting indicates whether HTTP POST closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API. This is mutually exclusive with using the closed_captions_type property, and is equivalent to setting closed_captions_type to CLOSED_CAPTIONS_HTTP_POST.
*/
enableClosedCaptions?: boolean | null;
/**
* This setting indicates whether YouTube should enable content encryption for the broadcast.
*/
enableContentEncryption?: boolean | null;
/**
* This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true. *Important:* You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
*/
enableDvr?: boolean | null;
/**
* This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
*/
enableEmbed?: boolean | null;
/**
* Indicates whether this broadcast has low latency enabled.
*/
enableLowLatency?: boolean | null;
/**
* If both this and enable_low_latency are set, they must match. LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should match enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency omitted.
*/
latencyPreference?: string | null;
/**
* The mesh for projecting the video if projection is mesh. The mesh value must be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows the Spherical Video V2 RFC specification for an mshp box, excluding the box size and type but including the following four reserved zero bytes for the version and flags.
*/
mesh?: string | null;
/**
* The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
*/
monitorStream?: Schema$MonitorStreamInfo;
/**
* The projection format of this broadcast. This defaults to rectangular.
*/
projection?: string | null;
/**
* Automatically start recording after the event goes live. The default value for this property is true. *Important:* You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
*/
recordFromStart?: boolean | null;
/**
* This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
*/
startWithSlate?: boolean | null;
/**
* The 3D stereo layout of this broadcast. This defaults to mono.
*/
stereoLayout?: string | null;
}
export interface Schema$LiveBroadcastListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of broadcasts that match the request criteria.
*/
items?: Schema$LiveBroadcast[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveBroadcastListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Monetization settings of a broadcast.
*/
export interface Schema$LiveBroadcastMonetizationDetails {
cuepointSchedule?: Schema$CuepointSchedule;
}
/**
* Basic broadcast information.
*/
export interface Schema$LiveBroadcastSnippet {
/**
* The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete.
*/
actualEndTime?: string | null;
/**
* The date and time that the broadcast actually started. This information is only available once the broadcast's state is live.
*/
actualStartTime?: string | null;
/**
* The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
*/
channelId?: string | null;
/**
* The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
*/
description?: string | null;
/**
* Indicates whether this broadcast is the default broadcast. Internal only.
*/
isDefaultBroadcast?: boolean | null;
/**
* The id of the live chat for this broadcast.
*/
liveChatId?: string | null;
/**
* The date and time that the broadcast was added to YouTube's live broadcast schedule.
*/
publishedAt?: string | null;
/**
* The date and time that the broadcast is scheduled to end.
*/
scheduledEndTime?: string | null;
/**
* The date and time that the broadcast is scheduled to start.
*/
scheduledStartTime?: string | null;
/**
* A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
*/
thumbnails?: Schema$ThumbnailDetails;
/**
* The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
*/
title?: string | null;
}
/**
* Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts.
*/
export interface Schema$LiveBroadcastStatistics {
/**
* The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.
*/
concurrentViewers?: string | null;
}
/**
* Live broadcast state.
*/
export interface Schema$LiveBroadcastStatus {
/**
* The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
*/
lifeCycleStatus?: string | null;
/**
* Priority of the live broadcast event (internal state).
*/
liveBroadcastPriority?: string | null;
/**
* Whether the broadcast is made for kids or not, decided by YouTube instead of the creator. This field is read only.
*/
madeForKids?: boolean | null;
/**
* The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
*/
privacyStatus?: string | null;
/**
* The broadcast's recording status.
*/
recordingStatus?: string | null;
/**
* This field will be set to True if the creator declares the broadcast to be kids only: go/live-cw-work.
*/
selfDeclaredMadeForKids?: boolean | null;
}
/**
* A `__liveChatBan__` resource represents a ban for a YouTube live chat.
*/
export interface Schema$LiveChatBan {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube assigns to uniquely identify the ban.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string `"youtube#liveChatBan"`.
*/
kind?: string | null;
/**
* The `snippet` object contains basic details about the ban.
*/
snippet?: Schema$LiveChatBanSnippet;
}
export interface Schema$LiveChatBanSnippet {
/**
* The duration of a ban, only filled if the ban has type TEMPORARY.
*/
banDurationSeconds?: string | null;
bannedUserDetails?: Schema$ChannelProfileDetails;
/**
* The chat this ban is pertinent to.
*/
liveChatId?: string | null;
/**
* The type of ban.
*/
type?: string | null;
}
export interface Schema$LiveChatFanFundingEventDetails {
/**
* A rendered string that displays the fund amount and currency to the user.
*/
amountDisplayString?: string | null;
/**
* The amount of the fund.
*/
amountMicros?: string | null;
/**
* The currency in which the fund was made.
*/
currency?: string | null;
/**
* The comment added by the user to this fan funding event.
*/
userComment?: string | null;
}
export interface Schema$LiveChatGiftMembershipReceivedDetails {
/**
* 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'.
*/
associatedMembershipGiftingMessageId?: string | null;
/**
* The ID of the user that made the membership gifting purchase. This matches the `snippet.authorChannelId` of the associated membership gifting message.
*/
gifterChannelId?: string | null;
/**
* The name of the Level at which the viewer is a member. This matches the `snippet.membershipGiftingDetails.giftMembershipsLevelName` of the associated membership gifting message. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn't filled.
*/
memberLevelName?: string | null;
}
export interface Schema$LiveChatMemberMilestoneChatDetails {
/**
* The name of the Level at which the viever is a member. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn't filled.
*/
memberLevelName?: string | null;
/**
* The total amount of months (rounded up) the viewer has been a member that granted them this Member Milestone Chat. This is the same number of months as is being displayed to YouTube users.
*/
memberMonth?: number | null;
/**
* The comment added by the member to this Member Milestone Chat. This field is empty for messages without a comment from the member.
*/
userComment?: string | null;
}
export interface Schema$LiveChatMembershipGiftingDetails {
/**
* The number of gift memberships purchased by the user.
*/
giftMembershipsCount?: number | null;
/**
* The name of the level of the gift memberships purchased by the user. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn't filled.
*/
giftMembershipsLevelName?: string | null;
}
/**
* A *liveChatMessage* resource represents a chat message in a YouTube Live Chat.
*/
export interface Schema$LiveChatMessage {
/**
* The authorDetails object contains basic details about the user that posted this message.
*/
authorDetails?: Schema$LiveChatMessageAuthorDetails;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube assigns to uniquely identify the message.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveChatMessage".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the message.
*/
snippet?: Schema$LiveChatMessageSnippet;
}
export interface Schema$LiveChatMessageAuthorDetails {
/**
* The YouTube channel ID.
*/
channelId?: string | null;
/**
* The channel's URL.
*/
channelUrl?: string | null;
/**
* The channel's display name.
*/
displayName?: string | null;
/**
* Whether the author is a moderator of the live chat.
*/
isChatModerator?: boolean | null;
/**
* Whether the author is the owner of the live chat.
*/
isChatOwner?: boolean | null;
/**
* Whether the author is a sponsor of the live chat.
*/
isChatSponsor?: boolean | null;
/**
* Whether the author's identity has been verified by YouTube.
*/
isVerified?: boolean | null;
/**
* The channels's avatar URL.
*/
profileImageUrl?: string | null;
}
export interface Schema$LiveChatMessageDeletedDetails {
deletedMessageId?: string | null;
}
export interface Schema$LiveChatMessageListResponse {
/**
* Set when there is an active poll.
*/
activePollItem?: Schema$LiveChatMessage;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
items?: Schema$LiveChatMessage[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveChatMessageListResponse".
*/
kind?: string | null;
nextPageToken?: string | null;
/**
* The date and time when the underlying stream went offline.
*/
offlineAt?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The amount of time the client should wait before polling again.
*/
pollingIntervalMillis?: number | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
export interface Schema$LiveChatMessageRetractedDetails {
retractedMessageId?: string | null;
}
/**
* Next ID: 34
*/
export interface Schema$LiveChatMessageSnippet {
/**
* The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
*/
authorChannelId?: string | null;
/**
* Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
*/
displayMessage?: string | null;
/**
* Details about the funding event, this is only set if the type is 'fanFundingEvent'.
*/
fanFundingEventDetails?: Schema$LiveChatFanFundingEventDetails;
/**
* Details about the Gift Membership Received event, this is only set if the type is 'giftMembershipReceivedEvent'.
*/
giftMembershipReceivedDetails?: Schema$LiveChatGiftMembershipReceivedDetails;
/**
* Whether the message has display content that should be displayed to users.
*/
hasDisplayContent?: boolean | null;
liveChatId?: string | null;
/**
* Details about the Member Milestone Chat event, this is only set if the type is 'memberMilestoneChatEvent'.
*/
memberMilestoneChatDetails?: Schema$LiveChatMemberMilestoneChatDetails;
/**
* Details about the Membership Gifting event, this is only set if the type is 'membershipGiftingEvent'.
*/
membershipGiftingDetails?: Schema$LiveChatMembershipGiftingDetails;
messageDeletedDetails?: Schema$LiveChatMessageDeletedDetails;
messageRetractedDetails?: Schema$LiveChatMessageRetractedDetails;
/**
* Details about the New Member Announcement event, this is only set if the type is 'newSponsorEvent'. Please note that "member" is the new term for "sponsor".
*/
newSponsorDetails?: Schema$LiveChatNewSponsorDetails;
/**
* Details about the poll event, this is only set if the type is 'pollEvent'.
*/
pollDetails?: Schema$LiveChatPollDetails;
/**
* The date and time when the message was orignally published.
*/
publishedAt?: string | null;
/**
* Details about the Super Chat event, this is only set if the type is 'superChatEvent'.
*/
superChatDetails?: Schema$LiveChatSuperChatDetails;
/**
* Details about the Super Sticker event, this is only set if the type is 'superStickerEvent'.
*/
superStickerDetails?: Schema$LiveChatSuperStickerDetails;
/**
* Details about the text message, this is only set if the type is 'textMessageEvent'.
*/
textMessageDetails?: Schema$LiveChatTextMessageDetails;
/**
* The type of message, this will always be present, it determines the contents of the message as well as which fields will be present.
*/
type?: string | null;
userBannedDetails?: Schema$LiveChatUserBannedMessageDetails;
}
/**
* A *liveChatModerator* resource represents a moderator for a YouTube live chat. A chat moderator has the ability to ban/unban users from a chat, remove message, etc.
*/
export interface Schema$LiveChatModerator {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube assigns to uniquely identify the moderator.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveChatModerator".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the moderator.
*/
snippet?: Schema$LiveChatModeratorSnippet;
}
export interface Schema$LiveChatModeratorListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of moderators that match the request criteria.
*/
items?: Schema$LiveChatModerator[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveChatModeratorListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
export interface Schema$LiveChatModeratorSnippet {
/**
* The ID of the live chat this moderator can act on.
*/
liveChatId?: string | null;
/**
* Details about the moderator.
*/
moderatorDetails?: Schema$ChannelProfileDetails;
}
export interface Schema$LiveChatNewSponsorDetails {
/**
* If the viewer just had upgraded from a lower level. For viewers that were not members at the time of purchase, this field is false.
*/
isUpgrade?: boolean | null;
/**
* The name of the Level that the viewer just had joined. The Level names are defined by the YouTube channel offering the Membership. In some situations this field isn't filled.
*/
memberLevelName?: string | null;
}
export interface Schema$LiveChatPollDetails {
metadata?: Schema$LiveChatPollDetailsPollMetadata;
status?: string | null;
}
export interface Schema$LiveChatPollDetailsPollMetadata {
/**
* The options will be returned in the order that is displayed in 1P
*/
options?: Schema$LiveChatPollDetailsPollMetadataPollOption[];
questionText?: string | null;
}
export interface Schema$LiveChatPollDetailsPollMetadataPollOption {
optionText?: string | null;
tally?: string | null;
}
export interface Schema$LiveChatSuperChatDetails {
/**
* A rendered string that displays the fund amount and currency to the user.
*/
amountDisplayString?: string | null;
/**
* The amount purchased by the user, in micros (1,750,000 micros = 1.75).
*/
amountMicros?: string | null;
/**
* The currency in which the purchase was made.
*/
currency?: string | null;
/**
* The tier in which the amount belongs. Lower amounts belong to lower tiers. The lowest tier is 1.
*/
tier?: number | null;
/**
* The comment added by the user to this Super Chat event.
*/
userComment?: string | null;
}
export interface Schema$LiveChatSuperStickerDetails {
/**
* A rendered string that displays the fund amount and currency to the user.
*/
amountDisplayString?: string | null;
/**
* The amount purchased by the user, in micros (1,750,000 micros = 1.75).
*/
amountMicros?: string | null;
/**
* The currency in which the purchase was made.
*/
currency?: string | null;
/**
* Information about the Super Sticker.
*/
superStickerMetadata?: Schema$SuperStickerMetadata;
/**
* The tier in which the amount belongs. Lower amounts belong to lower tiers. The lowest tier is 1.
*/
tier?: number | null;
}
export interface Schema$LiveChatTextMessageDetails {
/**
* The user's message.
*/
messageText?: string | null;
}
export interface Schema$LiveChatUserBannedMessageDetails {
/**
* The duration of the ban. This property is only present if the banType is temporary.
*/
banDurationSeconds?: string | null;
/**
* The details of the user that was banned.
*/
bannedUserDetails?: Schema$ChannelProfileDetails;
/**
* The type of ban.
*/
banType?: string | null;
}
/**
* A live stream describes a live ingestion point.
*/
export interface Schema$LiveStream {
/**
* The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
*/
cdn?: Schema$CdnSettings;
/**
* The content_details object contains information about the stream, including the closed captions ingestion URL.
*/
contentDetails?: Schema$LiveStreamContentDetails;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube assigns to uniquely identify the stream.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveStream".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the stream, including its channel, title, and description.
*/
snippet?: Schema$LiveStreamSnippet;
/**
* The status object contains information about live stream's status.
*/
status?: Schema$LiveStreamStatus;
}
export interface Schema$LiveStreamConfigurationIssue {
/**
* The long-form description of the issue and how to resolve it.
*/
description?: string | null;
/**
* The short-form reason for this issue.
*/
reason?: string | null;
/**
* How severe this issue is to the stream.
*/
severity?: string | null;
/**
* The kind of error happening.
*/
type?: string | null;
}
/**
* Detailed settings of a stream.
*/
export interface Schema$LiveStreamContentDetails {
/**
* The ingestion URL where the closed captions of this stream are sent.
*/
closedCaptionsIngestionUrl?: string | null;
/**
* Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times. If you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: - A non-reusable stream can only be bound to one broadcast. - A non-reusable stream might be deleted by an automated process after the broadcast ends. - The liveStreams.list method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream.
*/
isReusable?: boolean | null;
}
export interface Schema$LiveStreamHealthStatus {
/**
* The configurations issues on this stream
*/
configurationIssues?: Schema$LiveStreamConfigurationIssue[];
/**
* The last time this status was updated (in seconds)
*/
lastUpdateTimeSeconds?: string | null;
/**
* The status code of this stream
*/
status?: string | null;
}
export interface Schema$LiveStreamListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of live streams that match the request criteria.
*/
items?: Schema$LiveStream[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#liveStreamListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
export interface Schema$LiveStreamSnippet {
/**
* The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
*/
channelId?: string | null;
/**
* The stream's description. The value cannot be longer than 10000 characters.
*/
description?: string | null;
isDefaultStream?: boolean | null;
/**
* The date and time that the stream was created.
*/
publishedAt?: string | null;
/**
* The stream's title. The value must be between 1 and 128 characters long.
*/
title?: string | null;
}
/**
* Brief description of the live stream status.
*/
export interface Schema$LiveStreamStatus {
/**
* The health status of the stream.
*/
healthStatus?: Schema$LiveStreamHealthStatus;
streamStatus?: string | null;
}
export interface Schema$LocalizedProperty {
default?: string | null;
/**
* The language of the default property.
*/
defaultLanguage?: Schema$LanguageTag;
localized?: Schema$LocalizedString[];
}
export interface Schema$LocalizedString {
language?: string | null;
value?: string | null;
}
/**
* A *member* resource represents a member for a YouTube channel. A member provides recurring monetary support to a creator and receives special benefits.
*/
export interface Schema$Member {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#member".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the member.
*/
snippet?: Schema$MemberSnippet;
}
export interface Schema$MemberListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of members that match the request criteria.
*/
items?: Schema$Member[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#memberListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
pageInfo?: Schema$PageInfo;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
export interface Schema$MembershipsDetails {
/**
* Ids of all levels that the user has access to. This includes the currently active level and all other levels that are included because of a higher purchase.
*/
accessibleLevels?: string[] | null;
/**
* Id of the highest level that the user has access to at the moment.
*/
highestAccessibleLevel?: string | null;
/**
* Display name for the highest level that the user has access to at the moment.
*/
highestAccessibleLevelDisplayName?: string | null;
/**
* Data about memberships duration without taking into consideration pricing levels.
*/
membershipsDuration?: Schema$MembershipsDuration;
/**
* Data about memberships duration on particular pricing levels.
*/
membershipsDurationAtLevels?: Schema$MembershipsDurationAtLevel[];
}
export interface Schema$MembershipsDuration {
/**
* The date and time when the user became a continuous member across all levels.
*/
memberSince?: string | null;
/**
* The cumulative time the user has been a member across all levels in complete months (the time is rounded down to the nearest integer).
*/
memberTotalDurationMonths?: number | null;
}
export interface Schema$MembershipsDurationAtLevel {
/**
* Pricing level ID.
*/
level?: string | null;
/**
* The date and time when the user became a continuous member for the given level.
*/
memberSince?: string | null;
/**
* The cumulative time the user has been a member for the given level in complete months (the time is rounded down to the nearest integer).
*/
memberTotalDurationMonths?: number | null;
}
/**
* A *membershipsLevel* resource represents an offer made by YouTube creators for their fans. Users can become members of the channel by joining one of the available levels. They will provide recurring monetary support and receives special benefits.
*/
export interface Schema$MembershipsLevel {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube assigns to uniquely identify the memberships level.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#membershipsLevelListResponse".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the level.
*/
snippet?: Schema$MembershipsLevelSnippet;
}
export interface Schema$MembershipsLevelListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of pricing levels offered by a creator to the fans.
*/
items?: Schema$MembershipsLevel[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#membershipsLevelListResponse".
*/
kind?: string | null;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
export interface Schema$MembershipsLevelSnippet {
/**
* The id of the channel that's offering channel memberships.
*/
creatorChannelId?: string | null;
/**
* Details about the pricing level.
*/
levelDetails?: Schema$LevelDetails;
}
export interface Schema$MemberSnippet {
/**
* The id of the channel that's offering memberships.
*/
creatorChannelId?: string | null;
/**
* Details about the member.
*/
memberDetails?: Schema$ChannelProfileDetails;
/**
* Details about the user's membership.
*/
membershipsDetails?: Schema$MembershipsDetails;
}
/**
* Settings and Info of the monitor stream
*/
export interface Schema$MonitorStreamInfo {
/**
* If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
*/
broadcastStreamDelayMs?: number | null;
/**
* HTML code that embeds a player that plays the monitor stream.
*/
embedHtml?: string | null;
/**
* This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints. You need to set this value to true if you intend to have a broadcast delay for your event. *Note:* This property cannot be updated once the broadcast is in the testing or live state.
*/
enableMonitorStream?: boolean | null;
}
/**
* Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
*/
export interface Schema$PageInfo {
/**
* The number of results included in the API response.
*/
resultsPerPage?: number | null;
/**
* The total number of results in the result set.
*/
totalResults?: number | null;
}
/**
* A *playlist* resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private. YouTube also uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.
*/
export interface Schema$Playlist {
/**
* The contentDetails object contains information like video count.
*/
contentDetails?: Schema$PlaylistContentDetails;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the playlist.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
*/
kind?: string | null;
/**
* Localizations for different languages
*/
localizations?: {
[key: string]: Schema$PlaylistLocalization;
} | null;
/**
* The player object contains information that you would use to play the playlist in an embedded player.
*/
player?: Schema$PlaylistPlayer;
/**
* The snippet object contains basic details about the playlist, such as its title and description.
*/
snippet?: Schema$PlaylistSnippet;
/**
* The status object contains status information for the playlist.
*/
status?: Schema$PlaylistStatus;
}
export interface Schema$PlaylistContentDetails {
/**
* The number of videos in the playlist.
*/
itemCount?: number | null;
}
export interface Schema$PlaylistImage {
/**
* Identifies this resource (playlist id and image type).
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistImages".
*/
kind?: string | null;
snippet?: Schema$PlaylistImageSnippet;
}
export interface Schema$PlaylistImageListResponse {
items?: Schema$PlaylistImage[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistImageListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
}
/**
* A *playlistImage* resource identifies another resource, such as a image, that is associated with a playlist. In addition, the playlistImage resource contains details about the included resource that pertain specifically to how that resource is used in that playlist. YouTube uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistImages.list method to retrieve image data for any of those playlists. You can also add or remove images from those lists by calling the playlistImages.insert and playlistImages.delete methods.
*/
export interface Schema$PlaylistImageSnippet {
/**
* The image height.
*/
height?: number | null;
/**
* The Playlist ID of the playlist this image is associated with.
*/
playlistId?: string | null;
/**
* The image type.
*/
type?: string | null;
/**
* The image width.
*/
width?: number | null;
}
/**
* A *playlistItem* resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist. YouTube uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
*/
export interface Schema$PlaylistItem {
/**
* The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
*/
contentDetails?: Schema$PlaylistItemContentDetails;
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* The ID that YouTube uses to uniquely identify the playlist item.
*/
id?: string | null;
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistItem".
*/
kind?: string | null;
/**
* The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
*/
snippet?: Schema$PlaylistItemSnippet;
/**
* The status object contains information about the playlist item's privacy status.
*/
status?: Schema$PlaylistItemStatus;
}
export interface Schema$PlaylistItemContentDetails {
/**
* The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video.
*/
endAt?: string | null;
/**
* A user-generated note for this item.
*/
note?: string | null;
/**
* The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0.
*/
startAt?: string | null;
/**
* The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the id query parameter to this value in your API request.
*/
videoId?: string | null;
/**
* The date and time that the video was published to YouTube.
*/
videoPublishedAt?: string | null;
}
export interface Schema$PlaylistItemListResponse {
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of playlist items that match the request criteria.
*/
items?: Schema$PlaylistItem[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistItemListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Basic details about a playlist, including title, description and thumbnails. Basic details of a YouTube Playlist item provided by the author. Next ID: 15
*/
export interface Schema$PlaylistItemSnippet {
/**
* The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
*/
channelId?: string | null;
/**
* Channel title for the channel that the playlist item belongs to.
*/
channelTitle?: string | null;
/**
* The item's description.
*/
description?: string | null;
/**
* The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in.
*/
playlistId?: string | null;
/**
* The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.
*/
position?: number | null;
/**
* The date and time that the item was added to the playlist.
*/
publishedAt?: string | null;
/**
* The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.
*/
resourceId?: Schema$ResourceId;
/**
* A map of thumbnail images associated with the playlist item. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
*/
thumbnails?: Schema$ThumbnailDetails;
/**
* The item's title.
*/
title?: string | null;
/**
* Channel id for the channel this video belongs to.
*/
videoOwnerChannelId?: string | null;
/**
* Channel title for the channel this video belongs to.
*/
videoOwnerChannelTitle?: string | null;
}
/**
* Information about the playlist item's privacy status.
*/
export interface Schema$PlaylistItemStatus {
/**
* This resource's privacy status.
*/
privacyStatus?: string | null;
}
export interface Schema$PlaylistListResponse {
/**
* Etag of this resource.
*/
etag?: string | null;
/**
* Serialized EventId of the request which produced this response.
*/
eventId?: string | null;
/**
* A list of playlists that match the request criteria
*/
items?: Schema$Playlist[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistListResponse".
*/
kind?: string | null;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
*/
nextPageToken?: string | null;
/**
* General pagination information.
*/
pageInfo?: Schema$PageInfo;
/**
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
*/
prevPageToken?: string | null;
tokenPagination?: Schema$TokenPagination;
/**
* The visitorId identifies the visitor.
*/
visitorId?: string | null;
}
/**
* Playlist localization setting
*/
export interface Schema$PlaylistLocalization {
/**
* The localized strings for playlist's description.
*/
description?: string | null;
/**
* The localized strings for playlist's title.
*/
title?: string | null;
}
export interface Schema$PlaylistPlayer {
/**
* An