Skip to content

Commit

Permalink
feat(youtube)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### youtube:v3

The following keys were deleted:
- schemas.SubscriptionSnippet.properties.channelTitle.description
- schemas.SubscriptionSnippet.properties.channelTitle.type

The following keys were added:
- schemas.Video.properties.paidProductPlacementDetails.$ref
- schemas.VideoPaidProductPlacementDetails.description
- schemas.VideoPaidProductPlacementDetails.id
- schemas.VideoPaidProductPlacementDetails.properties.hasPaidProductPlacement.description
- schemas.VideoPaidProductPlacementDetails.properties.hasPaidProductPlacement.type
- schemas.VideoPaidProductPlacementDetails.type

The following keys were changed:
- schemas.VideoStatus.description
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 10, 2024
1 parent 332cca5 commit b11ea5d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
22 changes: 16 additions & 6 deletions discovery/youtube-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -4072,7 +4072,7 @@
}
}
},
"revision": "20240814",
"revision": "20240926",
"rootUrl": "https://youtube.googleapis.com/",
"schemas": {
"AbuseReport": {
Expand Down Expand Up @@ -10573,10 +10573,6 @@
"description": "The ID that YouTube uses to uniquely identify the subscriber's channel.",
"type": "string"
},
"channelTitle": {
"description": "Channel title for the channel that the subscription belongs to.",
"type": "string"
},
"description": {
"description": "The subscription's details.",
"type": "string"
Expand Down Expand Up @@ -11016,6 +11012,9 @@
"$ref": "VideoMonetizationDetails",
"description": "The monetizationDetails object encapsulates information about the monetization status of the video."
},
"paidProductPlacementDetails": {
"$ref": "VideoPaidProductPlacementDetails"
},
"player": {
"$ref": "VideoPlayer",
"description": "The player object contains information that you would use to play the video in an embedded player."
Expand Down Expand Up @@ -11678,6 +11677,17 @@
},
"type": "object"
},
"VideoPaidProductPlacementDetails": {
"description": "Details about paid content, such as paid product placement, sponsorships or endorsement, contained in a YouTube video and a method to inform viewers of paid promotion. This data can only be retrieved by the video owner.",
"id": "VideoPaidProductPlacementDetails",
"properties": {
"hasPaidProductPlacement": {
"description": "This boolean represents whether the video contains Paid Product Placement, Studio equivalent: https://screenshot.googleplex.com/4Me79DE6AfT2ktp.png",
"type": "boolean"
}
},
"type": "object"
},
"VideoPlayer": {
"description": "Player to be used for a video playback.",
"id": "VideoPlayer",
Expand Down Expand Up @@ -11939,7 +11949,7 @@
"type": "object"
},
"VideoStatus": {
"description": "Basic details about a video category, such as its localized title. Next Id: 18",
"description": "Basic details about a video category, such as its localized title. Next Id: 19",
"id": "VideoStatus",
"properties": {
"embeddable": {
Expand Down
16 changes: 11 additions & 5 deletions src/apis/youtube/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3573,10 +3573,6 @@ export namespace youtube_v3 {
* The ID that YouTube uses to uniquely identify the subscriber's channel.
*/
channelId?: string | null;
/**
* Channel title for the channel that the subscription belongs to.
*/
channelTitle?: string | null;
/**
* The subscription's details.
*/
Expand Down Expand Up @@ -3894,6 +3890,7 @@ export namespace youtube_v3 {
* The monetizationDetails object encapsulates information about the monetization status of the video.
*/
monetizationDetails?: Schema$VideoMonetizationDetails;
paidProductPlacementDetails?: Schema$VideoPaidProductPlacementDetails;
/**
* The player object contains information that you would use to play the video in an embedded player.
*/
Expand Down Expand Up @@ -4365,6 +4362,15 @@ export namespace youtube_v3 {
*/
access?: Schema$AccessPolicy;
}
/**
* Details about paid content, such as paid product placement, sponsorships or endorsement, contained in a YouTube video and a method to inform viewers of paid promotion. This data can only be retrieved by the video owner.
*/
export interface Schema$VideoPaidProductPlacementDetails {
/**
* This boolean represents whether the video contains Paid Product Placement, Studio equivalent: https://screenshot.googleplex.com/4Me79DE6AfT2ktp.png
*/
hasPaidProductPlacement?: boolean | null;
}
/**
* Player to be used for a video playback.
*/
Expand Down Expand Up @@ -4546,7 +4552,7 @@ export namespace youtube_v3 {
viewCount?: string | null;
}
/**
* Basic details about a video category, such as its localized title. Next Id: 18
* Basic details about a video category, such as its localized title. Next Id: 19
*/
export interface Schema$VideoStatus {
/**
Expand Down

0 comments on commit b11ea5d

Please sign in to comment.