Skip to content

Commit 83e7fff

Browse files
release: 10.1.0 (#551)
* docs: update URLs from stainlessapi.com to stainless.com (#550) More details at https://www.stainless.com/changelog/stainless-com * feat: add asset metadata schema (#323) (#552) * feat: Add Video Creator ID dimension (#325) (#553) * feat: add static_rendition webhooks (#327) (#554) * release: 10.1.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 8efeda0 commit 83e7fff

14 files changed

+195
-17
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "10.0.0"
2+
".": "10.1.0"
33
}

.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-2eec862e75143314aec7ca531a90eecc404ce10a5038c2140810caaeb22cae43.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-5f3a1cefec239fb0daed651397851795841e0d4b17d242968b946002d8feaa19.yml

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 10.1.0 (2025-03-06)
4+
5+
Full Changelog: [v10.0.0...v10.1.0](https://github.com/muxinc/mux-node-sdk/compare/v10.0.0...v10.1.0)
6+
7+
### Features
8+
9+
* add asset metadata schema ([#323](https://github.com/muxinc/mux-node-sdk/issues/323)) ([#552](https://github.com/muxinc/mux-node-sdk/issues/552)) ([769d578](https://github.com/muxinc/mux-node-sdk/commit/769d5783a1278fd7e22353a28ab1d8f0bedbe044))
10+
* add static_rendition webhooks ([#327](https://github.com/muxinc/mux-node-sdk/issues/327)) ([#554](https://github.com/muxinc/mux-node-sdk/issues/554)) ([b483052](https://github.com/muxinc/mux-node-sdk/commit/b48305245dcb4b9eac7053239d2050305d542e1c))
11+
* Add Video Creator ID dimension ([#325](https://github.com/muxinc/mux-node-sdk/issues/325)) ([#553](https://github.com/muxinc/mux-node-sdk/issues/553)) ([0246142](https://github.com/muxinc/mux-node-sdk/commit/024614201acffe3e227534e4ba353aa4cc7ac229))
12+
13+
14+
### Documentation
15+
16+
* update URLs from stainlessapi.com to stainless.com ([#550](https://github.com/muxinc/mux-node-sdk/issues/550)) ([0be8bb7](https://github.com/muxinc/mux-node-sdk/commit/0be8bb743e1e5c551d950dfca5dce7aa2ab84830))
17+
318
## 10.0.0 (2025-02-21)
419

520
Full Changelog: [v9.0.1...v10.0.0](https://github.com/muxinc/mux-node-sdk/compare/v9.0.1...v10.0.0)

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting Security Issues
44

5-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
66

7-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
88

99
## Responsible Disclosure
1010

api.md

+5
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ Types:
336336
- <code><a href="./src/resources/webhooks.ts">VideoAssetTrackReadyWebhookEvent</a></code>
337337
- <code><a href="./src/resources/webhooks.ts">VideoAssetTrackErroredWebhookEvent</a></code>
338338
- <code><a href="./src/resources/webhooks.ts">VideoAssetTrackDeletedWebhookEvent</a></code>
339+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionCreatedWebhookEvent</a></code>
340+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionReadyWebhookEvent</a></code>
341+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionErroredWebhookEvent</a></code>
342+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionDeletedWebhookEvent</a></code>
343+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionSkippedWebhookEvent</a></code>
339344
- <code><a href="./src/resources/webhooks.ts">VideoAssetWarningWebhookEvent</a></code>
340345
- <code><a href="./src/resources/webhooks.ts">VideoAssetNonStandardInputDetectedWebhookEvent</a></code>
341346
- <code><a href="./src/resources/webhooks.ts">VideoUploadAssetCreatedWebhookEvent</a></code>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mux/mux-node",
3-
"version": "10.0.0",
3+
"version": "10.1.0",
44
"description": "The official TypeScript library for the Mux API",
55
"author": "Mux <devex@mux.com>",
66
"types": "dist/index.d.ts",

src/resources/data/metrics.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,8 @@ export interface MetricListParams {
934934
| 'audio_codec'
935935
| 'video_dynamic_range_type'
936936
| 'view_cdn_edge_pop'
937-
| 'view_cdn_origin';
937+
| 'view_cdn_origin'
938+
| 'video_creator_id';
938939

939940
/**
940941
* Limit the results to rows that match conditions from provided key:value pairs.
@@ -1308,7 +1309,8 @@ export interface MetricListBreakdownValuesParams extends BasePageParams {
13081309
| 'audio_codec'
13091310
| 'video_dynamic_range_type'
13101311
| 'view_cdn_edge_pop'
1311-
| 'view_cdn_origin';
1312+
| 'view_cdn_origin'
1313+
| 'video_creator_id';
13121314

13131315
/**
13141316
* Measurement for the provided metric. If omitted, the default for the metric will

src/resources/data/video-views.ts

+2
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ export namespace VideoViewResponse {
309309

310310
video_content_type: string | null;
311311

312+
video_creator_id: string | null;
313+
312314
video_duration: number | null;
313315

314316
video_dynamic_range_type: string | null;

src/resources/video/assets.ts

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

307+
meta?: Asset.Meta;
308+
307309
/**
308310
* @deprecated
309311
*/
@@ -325,7 +327,10 @@ export interface Asset {
325327
normalize_audio?: boolean;
326328

327329
/**
328-
* Arbitrary user-supplied metadata set for the asset. Max 255 characters.
330+
* You can set this field to anything you want. It will be included in the asset
331+
* details and related webhooks. If you're looking for more structured metadata,
332+
* such as `title` or `external_id` , you can use the `meta` object instead. **Max:
333+
* 255 characters**.
329334
*/
330335
passthrough?: string;
331336

@@ -430,6 +435,25 @@ export namespace Asset {
430435
url?: string;
431436
}
432437

438+
export interface Meta {
439+
/**
440+
* This is an identifier you provide to keep track of the creator of the video. Max
441+
* 128 code points.
442+
*/
443+
creator_id?: string;
444+
445+
/**
446+
* This is an identifier you provide to link the video to your own data. Max 128
447+
* code points.
448+
*/
449+
external_id?: string;
450+
451+
/**
452+
* The video title. Max 512 code points.
453+
*/
454+
title?: string;
455+
}
456+
433457
/**
434458
* An object containing one or more reasons the input file is non-standard. See
435459
* [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time)
@@ -687,6 +711,8 @@ export interface AssetOptions {
687711
*/
688712
max_resolution_tier?: '1080p' | '1440p' | '2160p';
689713

714+
meta?: AssetOptions.Meta;
715+
690716
/**
691717
* @deprecated Deprecated. See the
692718
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions)
@@ -728,9 +754,10 @@ export interface AssetOptions {
728754
normalize_audio?: boolean;
729755

730756
/**
731-
* Arbitrary user-supplied metadata that will be included in the asset details and
732-
* related webhooks. Can be used to store your own ID for a video along with the
733-
* asset. **Max: 255 characters**.
757+
* You can set this field to anything you want. It will be included in the asset
758+
* details and related webhooks. If you're looking for more structured metadata,
759+
* such as `title` or `external_id`, you can use the `meta` object instead. **Max:
760+
* 255 characters**.
734761
*/
735762
passthrough?: string;
736763

@@ -1011,6 +1038,25 @@ export namespace AssetOptions {
10111038
}
10121039
}
10131040

1041+
export interface Meta {
1042+
/**
1043+
* This is an identifier you provide to keep track of the creator of the video. Max
1044+
* 128 code points.
1045+
*/
1046+
creator_id?: string;
1047+
1048+
/**
1049+
* This is an identifier you provide to link the video to your own data. Max 128
1050+
* code points.
1051+
*/
1052+
external_id?: string;
1053+
1054+
/**
1055+
* The video title. Max 512 code points.
1056+
*/
1057+
title?: string;
1058+
}
1059+
10141060
export interface StaticRendition {
10151061
resolution:
10161062
| 'highest'
@@ -1450,6 +1496,8 @@ export interface AssetCreateParams {
14501496
*/
14511497
max_resolution_tier?: '1080p' | '1440p' | '2160p';
14521498

1499+
meta?: AssetCreateParams.Meta;
1500+
14531501
/**
14541502
* Deprecated. See the
14551503
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions)
@@ -1491,9 +1539,10 @@ export interface AssetCreateParams {
14911539
normalize_audio?: boolean;
14921540

14931541
/**
1494-
* Arbitrary user-supplied metadata that will be included in the asset details and
1495-
* related webhooks. Can be used to store your own ID for a video along with the
1496-
* asset. **Max: 255 characters**.
1542+
* You can set this field to anything you want. It will be included in the asset
1543+
* details and related webhooks. If you're looking for more structured metadata,
1544+
* such as `title` or `external_id`, you can use the `meta` object instead. **Max:
1545+
* 255 characters**.
14971546
*/
14981547
passthrough?: string;
14991548

@@ -1771,6 +1820,25 @@ export namespace AssetCreateParams {
17711820
policy?: Shared.PlaybackPolicy;
17721821
}
17731822

1823+
export interface Meta {
1824+
/**
1825+
* This is an identifier you provide to keep track of the creator of the video. Max
1826+
* 128 code points.
1827+
*/
1828+
creator_id?: string;
1829+
1830+
/**
1831+
* This is an identifier you provide to link the video to your own data. Max 128
1832+
* code points.
1833+
*/
1834+
external_id?: string;
1835+
1836+
/**
1837+
* The video title. Max 512 code points.
1838+
*/
1839+
title?: string;
1840+
}
1841+
17741842
export interface StaticRendition {
17751843
resolution:
17761844
| 'highest'
@@ -1793,13 +1861,39 @@ export namespace AssetCreateParams {
17931861
}
17941862

17951863
export interface AssetUpdateParams {
1864+
meta?: AssetUpdateParams.Meta;
1865+
17961866
/**
1797-
* Arbitrary metadata set for the Asset. Max 255 characters. In order to clear this
1798-
* value, the field should be included with an empty string value.
1867+
* You can set this field to anything you want. It will be included in the asset
1868+
* details and related webhooks. If you're looking for more structured metadata,
1869+
* such as `title` or `external_id` , you can use the `meta` object instead. **Max:
1870+
* 255 characters**. In order to clear this value, the field should be included
1871+
* with an empty string value.
17991872
*/
18001873
passthrough?: string;
18011874
}
18021875

1876+
export namespace AssetUpdateParams {
1877+
export interface Meta {
1878+
/**
1879+
* This is an identifier you provide to keep track of the creator of the video. Max
1880+
* 128 code points.
1881+
*/
1882+
creator_id?: string;
1883+
1884+
/**
1885+
* This is an identifier you provide to link the video to your own data. Max 128
1886+
* code points.
1887+
*/
1888+
external_id?: string;
1889+
1890+
/**
1891+
* The video title. Max 512 code points.
1892+
*/
1893+
title?: string;
1894+
}
1895+
}
1896+
18031897
export interface AssetListParams extends BasePageParams {
18041898
/**
18051899
* Filter response to return all the assets for this live stream only

src/resources/video/live-streams.ts

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

867+
meta?: NewAssetSettings.Meta;
868+
867869
/**
868870
* @deprecated Deprecated. See the
869871
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions#during-live-stream-creation)
@@ -895,6 +897,27 @@ export namespace LiveStreamUpdateParams {
895897
*/
896898
video_quality?: 'plus' | 'premium';
897899
}
900+
901+
export namespace NewAssetSettings {
902+
export interface Meta {
903+
/**
904+
* This is an identifier you provide to keep track of the creator of the video. Max
905+
* 128 code points.
906+
*/
907+
creator_id?: string;
908+
909+
/**
910+
* This is an identifier you provide to link the video to your own data. Max 128
911+
* code points.
912+
*/
913+
external_id?: string;
914+
915+
/**
916+
* The video title. Max 512 code points.
917+
*/
918+
title?: string;
919+
}
920+
}
898921
}
899922

900923
export interface LiveStreamListParams extends BasePageParams {

src/resources/webhooks.ts

+35
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,36 @@ export interface VideoAssetTrackDeletedWebhookEvent extends BaseWebhookEvent {
371371
type: 'video.asset.track.deleted';
372372
}
373373

374+
export interface VideoAssetStaticRenditionCreatedWebhookEvent extends BaseWebhookEvent {
375+
data: AssetsAPI.Asset;
376+
377+
type: 'video.asset.static_rendition.created';
378+
}
379+
380+
export interface VideoAssetStaticRenditionReadyWebhookEvent extends BaseWebhookEvent {
381+
data: AssetsAPI.Asset;
382+
383+
type: 'video.asset.static_rendition.ready';
384+
}
385+
386+
export interface VideoAssetStaticRenditionErroredWebhookEvent extends BaseWebhookEvent {
387+
data: AssetsAPI.Asset;
388+
389+
type: 'video.asset.static_rendition.errored';
390+
}
391+
392+
export interface VideoAssetStaticRenditionDeletedWebhookEvent extends BaseWebhookEvent {
393+
data: AssetsAPI.Asset;
394+
395+
type: 'video.asset.static_rendition.deleted';
396+
}
397+
398+
export interface VideoAssetStaticRenditionSkippedWebhookEvent extends BaseWebhookEvent {
399+
data: AssetsAPI.Asset;
400+
401+
type: 'video.asset.static_rendition.skipped';
402+
}
403+
374404
export interface VideoAssetWarningWebhookEvent extends BaseWebhookEvent {
375405
data: AssetsAPI.Asset;
376406

@@ -666,6 +696,11 @@ export type UnwrapWebhookEvent =
666696
| VideoAssetTrackReadyWebhookEvent
667697
| VideoAssetTrackErroredWebhookEvent
668698
| VideoAssetTrackDeletedWebhookEvent
699+
| VideoAssetStaticRenditionCreatedWebhookEvent
700+
| VideoAssetStaticRenditionReadyWebhookEvent
701+
| VideoAssetStaticRenditionErroredWebhookEvent
702+
| VideoAssetStaticRenditionDeletedWebhookEvent
703+
| VideoAssetStaticRenditionSkippedWebhookEvent
669704
| VideoAssetWarningWebhookEvent
670705
| VideoAssetNonStandardInputDetectedWebhookEvent
671706
| VideoUploadAssetCreatedWebhookEvent

src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '10.0.0'; // x-release-please-version
1+
export const VERSION = '10.1.0'; // x-release-please-version

tests/api-resources/video/assets.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ describe('resource assets', () => {
5050
encoding_tier: 'smart',
5151
master_access: 'none',
5252
max_resolution_tier: '1080p',
53+
meta: { creator_id: 'creator_id', external_id: 'external_id', title: 'title' },
5354
mp4_support: 'none',
5455
normalize_audio: true,
5556
passthrough: 'passthrough',

tests/api-resources/video/uploads.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('resource uploads', () => {
5252
],
5353
master_access: 'none',
5454
max_resolution_tier: '1080p',
55+
meta: { creator_id: 'creator_id', external_id: 'external_id', title: 'title' },
5556
mp4_support: 'none',
5657
normalize_audio: true,
5758
passthrough: 'passthrough',

0 commit comments

Comments
 (0)