Skip to content

Commit

Permalink
feat(youtube): update the API
Browse files Browse the repository at this point in the history
#### youtube:v3

The following keys were added:
- schemas.ChannelToStoreLinkDetails.properties.merchantAffiliateProgramDetails.$ref
- schemas.ChannelToStoreLinkDetails.properties.merchantAffiliateProgramDetails.description
- schemas.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.description
- schemas.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.id
- schemas.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.properties.status.description
- schemas.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.properties.status.enum
- schemas.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.properties.status.enumDescriptions
- schemas.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.properties.status.type
- schemas.ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails.type
- schemas.InvideoBranding.properties.position.deprecated
- schemas.TestItem.properties.etag.description
- schemas.TestItem.properties.etag.type
- schemas.VideoStatus.properties.containsSyntheticMedia.description
- schemas.VideoStatus.properties.containsSyntheticMedia.type

The following keys were changed:
- resources.liveChatMessages.methods.list.parameters.maxResults.description
- schemas.InvideoBranding.description
- schemas.PlaylistItemListResponse.properties.kind.description
- schemas.VideoLiveStreamingDetails.properties.scheduledEndTime.description
  • Loading branch information
yoshi-automation committed Dec 12, 2024
1 parent 39300c8 commit 95f66b3
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 9 deletions.
46 changes: 41 additions & 5 deletions discovery/youtube-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@
},
"maxResults": {
"default": "500",
"description": "The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.",
"description": "The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. Not used in the streaming RPC.",
"format": "uint32",
"location": "query",
"maximum": "2000",
Expand Down Expand Up @@ -4072,7 +4072,7 @@
}
}
},
"revision": "20240926",
"revision": "20241203",
"rootUrl": "https://youtube.googleapis.com/",
"schemas": {
"AbuseReport": {
Expand Down Expand Up @@ -5551,6 +5551,10 @@
"$ref": "ChannelToStoreLinkDetailsBillingDetails",
"description": "Information specific to billing (read-only)."
},
"merchantAffiliateProgramDetails": {
"$ref": "ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails",
"description": "Information specific to merchant affiliate program (read-only)."
},
"merchantId": {
"description": "Google Merchant Center id of the store.",
"format": "uint64",
Expand Down Expand Up @@ -5590,6 +5594,29 @@
},
"type": "object"
},
"ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails": {
"description": "Information specific to merchant affiliate program.",
"id": "ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails",
"properties": {
"status": {
"description": "The current merchant affiliate program status.",
"enum": [
"merchantAffiliateProgramStatusUnspecified",
"merchantAffiliateProgramStatusEligible",
"merchantAffiliateProgramStatusActive",
"merchantAffiliateProgramStatusPaused"
],
"enumDescriptions": [
"Unspecified status.",
"Merchant is eligible for the merchant affiliate program.",
"Merchant affiliate program is active.",
"Merchant affiliate program is paused."
],
"type": "string"
}
},
"type": "object"
},
"ChannelTopicDetails": {
"description": "Freebase topic information related to the channel.",
"id": "ChannelTopicDetails",
Expand Down Expand Up @@ -8057,7 +8084,7 @@
"type": "object"
},
"InvideoBranding": {
"description": "LINT.IfChange Describes an invideo branding.",
"description": "Describes an invideo branding.",
"id": "InvideoBranding",
"properties": {
"imageBytes": {
Expand All @@ -8071,6 +8098,7 @@
},
"position": {
"$ref": "InvideoPosition",
"deprecated": true,
"description": "The spatial position within the video where the branding watermark will be displayed."
},
"targetChannelId": {
Expand Down Expand Up @@ -10014,7 +10042,7 @@
},
"kind": {
"default": "youtube#playlistItemListResponse",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlistItemListResponse\". Etag of this resource.",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlistItemListResponse\".",
"type": "string"
},
"nextPageToken": {
Expand Down Expand Up @@ -10762,6 +10790,10 @@
"TestItem": {
"id": "TestItem",
"properties": {
"etag": {
"description": "Etag for the resource. See https://en.wikipedia.org/wiki/HTTP_ETag.",
"type": "string"
},
"featuredPart": {
"type": "boolean"
},
Expand Down Expand Up @@ -11639,7 +11671,7 @@
"type": "string"
},
"scheduledEndTime": {
"description": "The time that the broadcast is scheduled to end. If the value is empty or the property is not present, then the broadcast is scheduled to contiue indefinitely.",
"description": "The time that the broadcast is scheduled to end. If the value is empty or the property is not present, then the broadcast is scheduled to continue indefinitely.",
"format": "date-time",
"type": "string"
},
Expand Down Expand Up @@ -11952,6 +11984,10 @@
"description": "Basic details about a video category, such as its localized title. Next Id: 19",
"id": "VideoStatus",
"properties": {
"containsSyntheticMedia": {
"description": "Indicates if the video contains altered or synthetic media.",
"type": "boolean"
},
"embeddable": {
"description": "This value indicates if the video can be embedded on another website. @mutable youtube.videos.insert youtube.videos.update",
"type": "boolean"
Expand Down
29 changes: 25 additions & 4 deletions src/apis/youtube/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,10 @@ export namespace youtube_v3 {
* 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.
*/
Expand All @@ -1168,6 +1172,15 @@ export namespace youtube_v3 {
*/
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.
*/
Expand Down Expand Up @@ -1965,7 +1978,7 @@ export namespace youtube_v3 {
streamName?: string | null;
}
/**
* LINT.IfChange Describes an invideo branding.
* Describes an invideo branding.
*/
export interface Schema$InvideoBranding {
/**
Expand Down Expand Up @@ -3172,7 +3185,7 @@ export namespace youtube_v3 {
*/
items?: Schema$PlaylistItem[];
/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistItemListResponse". Etag of this resource.
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistItemListResponse".
*/
kind?: string | null;
/**
Expand Down Expand Up @@ -3721,6 +3734,10 @@ export namespace youtube_v3 {
stickerId?: string | null;
}
export interface Schema$TestItem {
/**
* Etag for the resource. See https://en.wikipedia.org/wiki/HTTP_ETag.
*/
etag?: string | null;
featuredPart?: boolean | null;
gaia?: string | null;
id?: string | null;
Expand Down Expand Up @@ -4332,7 +4349,7 @@ export namespace youtube_v3 {
*/
concurrentViewers?: string | null;
/**
* The time that the broadcast is scheduled to end. If the value is empty or the property is not present, then the broadcast is scheduled to contiue indefinitely.
* The time that the broadcast is scheduled to end. If the value is empty or the property is not present, then the broadcast is scheduled to continue indefinitely.
*/
scheduledEndTime?: string | null;
/**
Expand Down Expand Up @@ -4555,6 +4572,10 @@ export namespace youtube_v3 {
* Basic details about a video category, such as its localized title. Next Id: 19
*/
export interface Schema$VideoStatus {
/**
* Indicates if the video contains altered or synthetic media.
*/
containsSyntheticMedia?: boolean | null;
/**
* This value indicates if the video can be embedded on another website. @mutable youtube.videos.insert youtube.videos.update
*/
Expand Down Expand Up @@ -8788,7 +8809,7 @@ export namespace youtube_v3 {
*/
liveChatId?: string;
/**
* The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
* The *maxResults* parameter specifies the maximum number of items that should be returned in the result set. Not used in the streaming RPC.
*/
maxResults?: number;
/**
Expand Down

0 comments on commit 95f66b3

Please sign in to comment.