@@ -304,6 +304,8 @@ export interface Asset {
304
304
*/
305
305
max_stored_resolution ?: 'Audio only' | 'SD' | 'HD' | 'FHD' | 'UHD' ;
306
306
307
+ meta ?: Asset . Meta ;
308
+
307
309
/**
308
310
* @deprecated
309
311
*/
@@ -325,7 +327,10 @@ export interface Asset {
325
327
normalize_audio ?: boolean ;
326
328
327
329
/**
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**.
329
334
*/
330
335
passthrough ?: string ;
331
336
@@ -430,6 +435,25 @@ export namespace Asset {
430
435
url ?: string ;
431
436
}
432
437
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
+
433
457
/**
434
458
* An object containing one or more reasons the input file is non-standard. See
435
459
* [the guide on minimizing processing time](https://docs.mux.com/guides/minimize-processing-time)
@@ -687,6 +711,8 @@ export interface AssetOptions {
687
711
*/
688
712
max_resolution_tier ?: '1080p' | '1440p' | '2160p' ;
689
713
714
+ meta ?: AssetOptions . Meta ;
715
+
690
716
/**
691
717
* @deprecated Deprecated. See the
692
718
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions)
@@ -728,9 +754,10 @@ export interface AssetOptions {
728
754
normalize_audio ?: boolean ;
729
755
730
756
/**
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**.
734
761
*/
735
762
passthrough ?: string ;
736
763
@@ -1011,6 +1038,25 @@ export namespace AssetOptions {
1011
1038
}
1012
1039
}
1013
1040
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
+
1014
1060
export interface StaticRendition {
1015
1061
resolution :
1016
1062
| 'highest'
@@ -1450,6 +1496,8 @@ export interface AssetCreateParams {
1450
1496
*/
1451
1497
max_resolution_tier ?: '1080p' | '1440p' | '2160p' ;
1452
1498
1499
+ meta ?: AssetCreateParams . Meta ;
1500
+
1453
1501
/**
1454
1502
* Deprecated. See the
1455
1503
* [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions)
@@ -1491,9 +1539,10 @@ export interface AssetCreateParams {
1491
1539
normalize_audio ?: boolean ;
1492
1540
1493
1541
/**
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**.
1497
1546
*/
1498
1547
passthrough ?: string ;
1499
1548
@@ -1771,6 +1820,25 @@ export namespace AssetCreateParams {
1771
1820
policy ?: Shared . PlaybackPolicy ;
1772
1821
}
1773
1822
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
+
1774
1842
export interface StaticRendition {
1775
1843
resolution :
1776
1844
| 'highest'
@@ -1793,13 +1861,39 @@ export namespace AssetCreateParams {
1793
1861
}
1794
1862
1795
1863
export interface AssetUpdateParams {
1864
+ meta ?: AssetUpdateParams . Meta ;
1865
+
1796
1866
/**
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.
1799
1872
*/
1800
1873
passthrough ?: string ;
1801
1874
}
1802
1875
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
+
1803
1897
export interface AssetListParams extends BasePageParams {
1804
1898
/**
1805
1899
* Filter response to return all the assets for this live stream only
0 commit comments