Skip to content

Commit f8342e9

Browse files
fix!: Fix type of new_asset_settings in Direct Uploads, and inline UpdateReferrerDomainRestrictionRequest (#331) (#563)
1 parent ab7f871 commit f8342e9

File tree

4 files changed

+62
-2
lines changed

4 files changed

+62
-2
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 88
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-5f3a1cefec239fb0daed651397851795841e0d4b17d242968b946002d8feaa19.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-2963bf6ebbc1da30b874afa820667e7f08d1edd617bbca40dc2d91d0f02c1fa2.yml

src/resources/video/assets.ts

+48
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ export interface Asset {
304304
*/
305305
max_stored_resolution?: 'Audio only' | 'SD' | 'HD' | 'FHD' | 'UHD';
306306

307+
/**
308+
* Customer provided metadata about this asset.
309+
*
310+
* Note: This metadata may be publicly available via the video player. Do not
311+
* include PII or sensitive information.
312+
*/
307313
meta?: Asset.Meta;
308314

309315
/**
@@ -435,6 +441,12 @@ export namespace Asset {
435441
url?: string;
436442
}
437443

444+
/**
445+
* Customer provided metadata about this asset.
446+
*
447+
* Note: This metadata may be publicly available via the video player. Do not
448+
* include PII or sensitive information.
449+
*/
438450
export interface Meta {
439451
/**
440452
* This is an identifier you provide to keep track of the creator of the video. Max
@@ -711,6 +723,12 @@ export interface AssetOptions {
711723
*/
712724
max_resolution_tier?: '1080p' | '1440p' | '2160p';
713725

726+
/**
727+
* Customer provided metadata about this asset.
728+
*
729+
* Note: This metadata may be publicly available via the video player. Do not
730+
* include PII or sensitive information.
731+
*/
714732
meta?: AssetOptions.Meta;
715733

716734
/**
@@ -1038,6 +1056,12 @@ export namespace AssetOptions {
10381056
}
10391057
}
10401058

1059+
/**
1060+
* Customer provided metadata about this asset.
1061+
*
1062+
* Note: This metadata may be publicly available via the video player. Do not
1063+
* include PII or sensitive information.
1064+
*/
10411065
export interface Meta {
10421066
/**
10431067
* This is an identifier you provide to keep track of the creator of the video. Max
@@ -1496,6 +1520,12 @@ export interface AssetCreateParams {
14961520
*/
14971521
max_resolution_tier?: '1080p' | '1440p' | '2160p';
14981522

1523+
/**
1524+
* Customer provided metadata about this asset.
1525+
*
1526+
* Note: This metadata may be publicly available via the video player. Do not
1527+
* include PII or sensitive information.
1528+
*/
14991529
meta?: AssetCreateParams.Meta;
15001530

15011531
/**
@@ -1820,6 +1850,12 @@ export namespace AssetCreateParams {
18201850
policy?: Shared.PlaybackPolicy;
18211851
}
18221852

1853+
/**
1854+
* Customer provided metadata about this asset.
1855+
*
1856+
* Note: This metadata may be publicly available via the video player. Do not
1857+
* include PII or sensitive information.
1858+
*/
18231859
export interface Meta {
18241860
/**
18251861
* This is an identifier you provide to keep track of the creator of the video. Max
@@ -1861,6 +1897,12 @@ export namespace AssetCreateParams {
18611897
}
18621898

18631899
export interface AssetUpdateParams {
1900+
/**
1901+
* Customer provided metadata about this asset.
1902+
*
1903+
* Note: This metadata may be publicly available via the video player. Do not
1904+
* include PII or sensitive information.
1905+
*/
18641906
meta?: AssetUpdateParams.Meta;
18651907

18661908
/**
@@ -1874,6 +1916,12 @@ export interface AssetUpdateParams {
18741916
}
18751917

18761918
export namespace AssetUpdateParams {
1919+
/**
1920+
* Customer provided metadata about this asset.
1921+
*
1922+
* Note: This metadata may be publicly available via the video player. Do not
1923+
* include PII or sensitive information.
1924+
*/
18771925
export interface Meta {
18781926
/**
18791927
* This is an identifier you provide to keep track of the creator of the video. Max

src/resources/video/live-streams.ts

+12
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,12 @@ export namespace LiveStreamUpdateParams {
864864
*/
865865
master_access?: 'temporary' | 'none';
866866

867+
/**
868+
* Customer provided metadata about this asset.
869+
*
870+
* Note: This metadata may be publicly available via the video player. Do not
871+
* include PII or sensitive information.
872+
*/
867873
meta?: NewAssetSettings.Meta;
868874

869875
/**
@@ -899,6 +905,12 @@ export namespace LiveStreamUpdateParams {
899905
}
900906

901907
export namespace NewAssetSettings {
908+
/**
909+
* Customer provided metadata about this asset.
910+
*
911+
* Note: This metadata may be publicly available via the video player. Do not
912+
* include PII or sensitive information.
913+
*/
902914
export interface Meta {
903915
/**
904916
* This is an identifier you provide to keep track of the creator of the video. Max

src/resources/video/uploads.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export interface Upload {
9191
*/
9292
error?: Upload.Error;
9393

94-
new_asset_settings?: AssetsAPI.Asset;
94+
new_asset_settings?: AssetsAPI.AssetOptions;
9595

9696
/**
9797
* Indicates if this is a test Direct Upload, in which case the Asset that gets

0 commit comments

Comments
 (0)