From 87f426776302fc31e04faf57c4623cab05ee5976 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 23:54:27 +0000 Subject: [PATCH] chore!: deprecate `mp4_support` option (#321) --- .stats.yml | 2 +- src/resources/video/assets.ts | 21 +++++++++++++++++---- src/resources/video/live-streams.ts | 6 ++++-- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9f088931..e9225739 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 88 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-890a2225edeff31f32254de485652fb874bd69859d6e0f8f261930717d9a6ba2.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-961cb0093d2202e9c716748b73f3440f5eef6c663034aeb82f9f7819e8ba4312.yml diff --git a/src/resources/video/assets.ts b/src/resources/video/assets.ts index 6cbf805c..b5128865 100644 --- a/src/resources/video/assets.ts +++ b/src/resources/video/assets.ts @@ -192,6 +192,8 @@ export class Assets extends APIResource { } /** + * This method has been deprecated. Please see the + * [Static Rendition API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#after-asset-creation). * Allows you to add or remove mp4 support for assets that were created without it. * The values supported are `capped-1080p`, `audio-only`, * `audio-only,capped-1080p`, `standard`(deprecated), and `none`. `none` means that @@ -240,8 +242,6 @@ export interface Asset { */ max_resolution_tier: '1080p' | '1440p' | '2160p'; - mp4_support: 'standard' | 'none' | 'capped-1080p' | 'audio-only' | 'audio-only,capped-1080p'; - /** * The status of the asset. */ @@ -304,6 +304,11 @@ export interface Asset { */ max_stored_resolution?: 'Audio only' | 'SD' | 'HD' | 'FHD' | 'UHD'; + /** + * @deprecated + */ + mp4_support?: 'standard' | 'none' | 'capped-1080p' | 'audio-only' | 'audio-only,capped-1080p'; + /** * An object containing one or more reasons the input file is non-standard. See * [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time) @@ -683,6 +688,10 @@ export interface AssetOptions { max_resolution_tier?: '1080p' | '1440p' | '2160p'; /** + * @deprecated Deprecated. See the + * [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) + * for the updated API. + * * Specify what level of support for mp4 playback. You may not enable both * `mp4_support` and `static_renditions`. * @@ -745,7 +754,7 @@ export interface AssetOptions { /** * An array of static renditions to create for this asset. You may not enable both - * `static_renditions` and `mp4_support` + * `static_renditions` and `mp4_support (the latter being deprecated)` */ static_renditions?: Array; @@ -1442,6 +1451,10 @@ export interface AssetCreateParams { max_resolution_tier?: '1080p' | '1440p' | '2160p'; /** + * Deprecated. See the + * [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) + * for the updated API. + * * Specify what level of support for mp4 playback. You may not enable both * `mp4_support` and `static_renditions`. * @@ -1501,7 +1514,7 @@ export interface AssetCreateParams { /** * An array of static renditions to create for this asset. You may not enable both - * `static_renditions` and `mp4_support` + * `static_renditions` and `mp4_support (the latter being deprecated)` */ static_renditions?: Array; diff --git a/src/resources/video/live-streams.ts b/src/resources/video/live-streams.ts index 57165d5c..eb525a5b 100644 --- a/src/resources/video/live-streams.ts +++ b/src/resources/video/live-streams.ts @@ -865,8 +865,10 @@ export namespace LiveStreamUpdateParams { master_access?: 'temporary' | 'none'; /** - * Specify what level of support for mp4 playback should be added to new assets - * generated from this live stream. + * @deprecated Deprecated. See the + * [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#during-live-stream-creation) + * for the updated API. Specify what level of support for mp4 playback should be + * added to new assets generated from this live stream. * * - The `none` option disables MP4 support for new assets. MP4 files will not be * produced for an asset generated from this live stream.