@scenario-labs/sdk 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/index.d.mts +1 -1
  9. package/index.d.mts.map +1 -1
  10. package/index.d.ts +1 -1
  11. package/index.d.ts.map +1 -1
  12. package/index.js +2 -1
  13. package/index.js.map +1 -1
  14. package/index.mjs +1 -1
  15. package/index.mjs.map +1 -1
  16. package/lib/asset.d.mts +1 -1
  17. package/lib/asset.d.ts +1 -1
  18. package/lib/asset.js +1 -1
  19. package/lib/asset.mjs +1 -1
  20. package/lib/upload.d.mts +10 -5
  21. package/lib/upload.d.mts.map +1 -1
  22. package/lib/upload.d.ts +10 -5
  23. package/lib/upload.d.ts.map +1 -1
  24. package/lib/upload.js.map +1 -1
  25. package/lib/upload.mjs.map +1 -1
  26. package/lib/user_selection_limits.d.mts +13 -0
  27. package/lib/user_selection_limits.d.mts.map +1 -0
  28. package/lib/user_selection_limits.d.ts +13 -0
  29. package/lib/user_selection_limits.d.ts.map +1 -0
  30. package/lib/user_selection_limits.js +16 -0
  31. package/lib/user_selection_limits.js.map +1 -0
  32. package/lib/user_selection_limits.mjs +13 -0
  33. package/lib/user_selection_limits.mjs.map +1 -0
  34. package/lib/workflow.d.mts +4 -2
  35. package/lib/workflow.d.mts.map +1 -1
  36. package/lib/workflow.d.ts +4 -2
  37. package/lib/workflow.d.ts.map +1 -1
  38. package/lib/workflow.js +5 -1
  39. package/lib/workflow.js.map +1 -1
  40. package/lib/workflow.mjs +5 -1
  41. package/lib/workflow.mjs.map +1 -1
  42. package/lib/workflow_converter.d.mts +6 -0
  43. package/lib/workflow_converter.d.mts.map +1 -1
  44. package/lib/workflow_converter.d.ts +6 -0
  45. package/lib/workflow_converter.d.ts.map +1 -1
  46. package/lib/workflow_converter.js +155 -53
  47. package/lib/workflow_converter.js.map +1 -1
  48. package/lib/workflow_converter.mjs +155 -53
  49. package/lib/workflow_converter.mjs.map +1 -1
  50. package/lib/workflow_import_validator.d.mts +17 -2
  51. package/lib/workflow_import_validator.d.mts.map +1 -1
  52. package/lib/workflow_import_validator.d.ts +17 -2
  53. package/lib/workflow_import_validator.d.ts.map +1 -1
  54. package/lib/workflow_import_validator.js +100 -1
  55. package/lib/workflow_import_validator.js.map +1 -1
  56. package/lib/workflow_import_validator.mjs +99 -1
  57. package/lib/workflow_import_validator.mjs.map +1 -1
  58. package/lib/workflow_validator.d.mts +1 -1
  59. package/lib/workflow_validator.d.mts.map +1 -1
  60. package/lib/workflow_validator.d.ts +1 -1
  61. package/lib/workflow_validator.d.ts.map +1 -1
  62. package/lib/workflow_validator.js +10 -11
  63. package/lib/workflow_validator.js.map +1 -1
  64. package/lib/workflow_validator.mjs +7 -8
  65. package/lib/workflow_validator.mjs.map +1 -1
  66. package/package.json +1 -1
  67. package/resources/assets/assets.d.mts +126 -30
  68. package/resources/assets/assets.d.mts.map +1 -1
  69. package/resources/assets/assets.d.ts +126 -30
  70. package/resources/assets/assets.d.ts.map +1 -1
  71. package/resources/assets/assets.js +12 -0
  72. package/resources/assets/assets.js.map +1 -1
  73. package/resources/assets/assets.mjs +12 -0
  74. package/resources/assets/assets.mjs.map +1 -1
  75. package/resources/assets/index.d.mts +1 -1
  76. package/resources/assets/index.d.mts.map +1 -1
  77. package/resources/assets/index.d.ts +1 -1
  78. package/resources/assets/index.d.ts.map +1 -1
  79. package/resources/assets/index.js.map +1 -1
  80. package/resources/assets/index.mjs.map +1 -1
  81. package/resources/generate.d.mts +120 -9
  82. package/resources/generate.d.mts.map +1 -1
  83. package/resources/generate.d.ts +120 -9
  84. package/resources/generate.d.ts.map +1 -1
  85. package/resources/index.d.mts +2 -2
  86. package/resources/index.d.mts.map +1 -1
  87. package/resources/index.d.ts +2 -2
  88. package/resources/index.d.ts.map +1 -1
  89. package/resources/index.js.map +1 -1
  90. package/resources/index.mjs.map +1 -1
  91. package/resources/jobs.d.mts +36 -0
  92. package/resources/jobs.d.mts.map +1 -1
  93. package/resources/jobs.d.ts +36 -0
  94. package/resources/jobs.d.ts.map +1 -1
  95. package/resources/models/description.d.mts +4 -4
  96. package/resources/models/description.d.mts.map +1 -1
  97. package/resources/models/description.d.ts +4 -4
  98. package/resources/models/description.d.ts.map +1 -1
  99. package/resources/models/examples.d.mts +40 -6
  100. package/resources/models/examples.d.mts.map +1 -1
  101. package/resources/models/examples.d.ts +40 -6
  102. package/resources/models/examples.d.ts.map +1 -1
  103. package/resources/models/index.d.mts +1 -1
  104. package/resources/models/index.d.mts.map +1 -1
  105. package/resources/models/index.d.ts +1 -1
  106. package/resources/models/index.d.ts.map +1 -1
  107. package/resources/models/index.js.map +1 -1
  108. package/resources/models/index.mjs.map +1 -1
  109. package/resources/models/models.d.mts +1353 -199
  110. package/resources/models/models.d.mts.map +1 -1
  111. package/resources/models/models.d.ts +1353 -199
  112. package/resources/models/models.d.ts.map +1 -1
  113. package/resources/models/models.js +13 -0
  114. package/resources/models/models.js.map +1 -1
  115. package/resources/models/models.mjs +13 -0
  116. package/resources/models/models.mjs.map +1 -1
  117. package/resources/models/train.d.mts +36 -2
  118. package/resources/models/train.d.mts.map +1 -1
  119. package/resources/models/train.d.ts +36 -2
  120. package/resources/models/train.d.ts.map +1 -1
  121. package/resources/recommendations.d.mts +16 -5
  122. package/resources/recommendations.d.mts.map +1 -1
  123. package/resources/recommendations.d.ts +16 -5
  124. package/resources/recommendations.d.ts.map +1 -1
  125. package/resources/usages.d.mts +14 -2
  126. package/resources/usages.d.mts.map +1 -1
  127. package/resources/usages.d.ts +14 -2
  128. package/resources/usages.d.ts.map +1 -1
  129. package/resources/workflows.d.mts +152 -9
  130. package/resources/workflows.d.mts.map +1 -1
  131. package/resources/workflows.d.ts +152 -9
  132. package/resources/workflows.d.ts.map +1 -1
  133. package/resources/workflows.js +2 -3
  134. package/resources/workflows.js.map +1 -1
  135. package/resources/workflows.mjs +2 -3
  136. package/resources/workflows.mjs.map +1 -1
  137. package/src/client.ts +8 -0
  138. package/src/index.ts +1 -0
  139. package/src/lib/asset.ts +1 -1
  140. package/src/lib/upload.ts +10 -5
  141. package/src/lib/user_selection_limits.ts +14 -0
  142. package/src/lib/workflow.ts +12 -1
  143. package/src/lib/workflow_converter.ts +176 -55
  144. package/src/lib/workflow_import_validator.ts +116 -1
  145. package/src/lib/workflow_validator.ts +12 -8
  146. package/src/resources/assets/assets.ts +164 -4
  147. package/src/resources/assets/index.ts +2 -0
  148. package/src/resources/generate.ts +142 -0
  149. package/src/resources/index.ts +4 -0
  150. package/src/resources/jobs.ts +42 -0
  151. package/src/resources/models/description.ts +6 -0
  152. package/src/resources/models/examples.ts +48 -0
  153. package/src/resources/models/index.ts +2 -0
  154. package/src/resources/models/models.ts +1610 -114
  155. package/src/resources/models/train.ts +42 -0
  156. package/src/resources/recommendations.ts +18 -3
  157. package/src/resources/usages.ts +16 -0
  158. package/src/resources/workflows.ts +176 -9
  159. package/src/version.ts +1 -1
  160. package/version.d.mts +1 -1
  161. package/version.d.ts +1 -1
  162. package/version.js +1 -1
  163. package/version.mjs +1 -1
@@ -622,6 +622,13 @@ export namespace GenerateCaptionResponse {
622
622
  */
623
623
  min?: number;
624
624
 
625
+ /**
626
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
627
+ * \`file_array\` input types for video and audio assets. Validated against
628
+ * \`asset.properties.duration\` at job creation time.
629
+ */
630
+ minDuration?: number;
631
+
625
632
  /**
626
633
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
627
634
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -852,6 +859,13 @@ export namespace GenerateCaptionResponse {
852
859
  */
853
860
  min?: number;
854
861
 
862
+ /**
863
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
864
+ * \`file_array\` input types for video and audio assets. Validated against
865
+ * \`asset.properties.duration\` at job creation time.
866
+ */
867
+ minDuration?: number;
868
+
855
869
  /**
856
870
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
857
871
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1846,6 +1860,13 @@ export namespace GenerateDescribeStyleResponse {
1846
1860
  */
1847
1861
  min?: number;
1848
1862
 
1863
+ /**
1864
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1865
+ * \`file_array\` input types for video and audio assets. Validated against
1866
+ * \`asset.properties.duration\` at job creation time.
1867
+ */
1868
+ minDuration?: number;
1869
+
1849
1870
  /**
1850
1871
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1851
1872
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2076,6 +2097,13 @@ export namespace GenerateDescribeStyleResponse {
2076
2097
  */
2077
2098
  min?: number;
2078
2099
 
2100
+ /**
2101
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2102
+ * \`file_array\` input types for video and audio assets. Validated against
2103
+ * \`asset.properties.duration\` at job creation time.
2104
+ */
2105
+ minDuration?: number;
2106
+
2079
2107
  /**
2080
2108
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2081
2109
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -3062,6 +3090,13 @@ export namespace GenerateDetectResponse {
3062
3090
  */
3063
3091
  min?: number;
3064
3092
 
3093
+ /**
3094
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
3095
+ * \`file_array\` input types for video and audio assets. Validated against
3096
+ * \`asset.properties.duration\` at job creation time.
3097
+ */
3098
+ minDuration?: number;
3099
+
3065
3100
  /**
3066
3101
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
3067
3102
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -3292,6 +3327,13 @@ export namespace GenerateDetectResponse {
3292
3327
  */
3293
3328
  min?: number;
3294
3329
 
3330
+ /**
3331
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
3332
+ * \`file_array\` input types for video and audio assets. Validated against
3333
+ * \`asset.properties.duration\` at job creation time.
3334
+ */
3335
+ minDuration?: number;
3336
+
3295
3337
  /**
3296
3338
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
3297
3339
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -3837,6 +3879,7 @@ export namespace GenerateDetectResponse {
3837
3879
  | 'video23d'
3838
3880
  | 'video2audio'
3839
3881
  | 'video2img'
3882
+ | 'video2txt'
3840
3883
  | 'video2video'
3841
3884
  | 'voice-clone';
3842
3885
 
@@ -3866,6 +3909,12 @@ export namespace GenerateDetectResponse {
3866
3909
  */
3867
3910
  automaticCaptioning?: string;
3868
3911
 
3912
+ /**
3913
+ * The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
3914
+ * Only set on deleted assets, listed with `deleted=true`.
3915
+ */
3916
+ deletedAt?: string;
3917
+
3869
3918
  /**
3870
3919
  * The description, it will contain in priority:
3871
3920
  *
@@ -3964,11 +4013,13 @@ export namespace GenerateDetectResponse {
3964
4013
  | 'model/stl'
3965
4014
  | 'model/vnd.collada+xml'
3966
4015
  | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
4016
+ | 'model/vnd.usdz+zip'
3967
4017
  | 'model/x-3d-vox'
3968
4018
  | 'model/x-blender'
3969
4019
  | 'model/x-fbx'
3970
4020
  | 'model/x-maya-ascii'
3971
4021
  | 'model/x-maya-binary'
4022
+ | 'model/x-vsplat'
3972
4023
  | 'model/x3d+xml'
3973
4024
  | 'text/plain'
3974
4025
  | 'video/mp4'
@@ -4095,6 +4146,7 @@ export namespace GenerateDetectResponse {
4095
4146
  | 'video23d'
4096
4147
  | 'video2audio'
4097
4148
  | 'video2img'
4149
+ | 'video2txt'
4098
4150
  | 'video2video'
4099
4151
  | 'voice-clone';
4100
4152
 
@@ -5667,6 +5719,13 @@ export namespace GenerateEmbedResponse {
5667
5719
  */
5668
5720
  min?: number;
5669
5721
 
5722
+ /**
5723
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
5724
+ * \`file_array\` input types for video and audio assets. Validated against
5725
+ * \`asset.properties.duration\` at job creation time.
5726
+ */
5727
+ minDuration?: number;
5728
+
5670
5729
  /**
5671
5730
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5672
5731
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -5897,6 +5956,13 @@ export namespace GenerateEmbedResponse {
5897
5956
  */
5898
5957
  min?: number;
5899
5958
 
5959
+ /**
5960
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
5961
+ * \`file_array\` input types for video and audio assets. Validated against
5962
+ * \`asset.properties.duration\` at job creation time.
5963
+ */
5964
+ minDuration?: number;
5965
+
5900
5966
  /**
5901
5967
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5902
5968
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -6994,6 +7060,13 @@ export namespace GeneratePatchResponse {
6994
7060
  */
6995
7061
  min?: number;
6996
7062
 
7063
+ /**
7064
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
7065
+ * \`file_array\` input types for video and audio assets. Validated against
7066
+ * \`asset.properties.duration\` at job creation time.
7067
+ */
7068
+ minDuration?: number;
7069
+
6997
7070
  /**
6998
7071
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
6999
7072
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -7224,6 +7297,13 @@ export namespace GeneratePatchResponse {
7224
7297
  */
7225
7298
  min?: number;
7226
7299
 
7300
+ /**
7301
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
7302
+ * \`file_array\` input types for video and audio assets. Validated against
7303
+ * \`asset.properties.duration\` at job creation time.
7304
+ */
7305
+ minDuration?: number;
7306
+
7227
7307
  /**
7228
7308
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
7229
7309
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -7769,6 +7849,7 @@ export namespace GeneratePatchResponse {
7769
7849
  | 'video23d'
7770
7850
  | 'video2audio'
7771
7851
  | 'video2img'
7852
+ | 'video2txt'
7772
7853
  | 'video2video'
7773
7854
  | 'voice-clone';
7774
7855
 
@@ -7798,6 +7879,12 @@ export namespace GeneratePatchResponse {
7798
7879
  */
7799
7880
  automaticCaptioning?: string;
7800
7881
 
7882
+ /**
7883
+ * The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
7884
+ * Only set on deleted assets, listed with `deleted=true`.
7885
+ */
7886
+ deletedAt?: string;
7887
+
7801
7888
  /**
7802
7889
  * The description, it will contain in priority:
7803
7890
  *
@@ -7896,11 +7983,13 @@ export namespace GeneratePatchResponse {
7896
7983
  | 'model/stl'
7897
7984
  | 'model/vnd.collada+xml'
7898
7985
  | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
7986
+ | 'model/vnd.usdz+zip'
7899
7987
  | 'model/x-3d-vox'
7900
7988
  | 'model/x-blender'
7901
7989
  | 'model/x-fbx'
7902
7990
  | 'model/x-maya-ascii'
7903
7991
  | 'model/x-maya-binary'
7992
+ | 'model/x-vsplat'
7904
7993
  | 'model/x3d+xml'
7905
7994
  | 'text/plain'
7906
7995
  | 'video/mp4'
@@ -8027,6 +8116,7 @@ export namespace GeneratePatchResponse {
8027
8116
  | 'video23d'
8028
8117
  | 'video2audio'
8029
8118
  | 'video2img'
8119
+ | 'video2txt'
8030
8120
  | 'video2video'
8031
8121
  | 'voice-clone';
8032
8122
 
@@ -9608,6 +9698,13 @@ export namespace GeneratePromptResponse {
9608
9698
  */
9609
9699
  min?: number;
9610
9700
 
9701
+ /**
9702
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
9703
+ * \`file_array\` input types for video and audio assets. Validated against
9704
+ * \`asset.properties.duration\` at job creation time.
9705
+ */
9706
+ minDuration?: number;
9707
+
9611
9708
  /**
9612
9709
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
9613
9710
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -9838,6 +9935,13 @@ export namespace GeneratePromptResponse {
9838
9935
  */
9839
9936
  min?: number;
9840
9937
 
9938
+ /**
9939
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
9940
+ * \`file_array\` input types for video and audio assets. Validated against
9941
+ * \`asset.properties.duration\` at job creation time.
9942
+ */
9943
+ minDuration?: number;
9944
+
9841
9945
  /**
9842
9946
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
9843
9947
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -10643,6 +10747,7 @@ export namespace GenerateQualityGateResponse {
10643
10747
  | 'video23d'
10644
10748
  | 'video2audio'
10645
10749
  | 'video2img'
10750
+ | 'video2txt'
10646
10751
  | 'video2video'
10647
10752
  | 'voice-clone';
10648
10753
 
@@ -10672,6 +10777,12 @@ export namespace GenerateQualityGateResponse {
10672
10777
  */
10673
10778
  automaticCaptioning?: string;
10674
10779
 
10780
+ /**
10781
+ * The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
10782
+ * Only set on deleted assets, listed with `deleted=true`.
10783
+ */
10784
+ deletedAt?: string;
10785
+
10675
10786
  /**
10676
10787
  * The description, it will contain in priority:
10677
10788
  *
@@ -10770,11 +10881,13 @@ export namespace GenerateQualityGateResponse {
10770
10881
  | 'model/stl'
10771
10882
  | 'model/vnd.collada+xml'
10772
10883
  | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
10884
+ | 'model/vnd.usdz+zip'
10773
10885
  | 'model/x-3d-vox'
10774
10886
  | 'model/x-blender'
10775
10887
  | 'model/x-fbx'
10776
10888
  | 'model/x-maya-ascii'
10777
10889
  | 'model/x-maya-binary'
10890
+ | 'model/x-vsplat'
10778
10891
  | 'model/x3d+xml'
10779
10892
  | 'text/plain'
10780
10893
  | 'video/mp4'
@@ -10901,6 +11014,7 @@ export namespace GenerateQualityGateResponse {
10901
11014
  | 'video23d'
10902
11015
  | 'video2audio'
10903
11016
  | 'video2img'
11017
+ | 'video2txt'
10904
11018
  | 'video2video'
10905
11019
  | 'voice-clone';
10906
11020
 
@@ -12486,6 +12600,13 @@ export namespace GenerateRunModelResponse {
12486
12600
  */
12487
12601
  min?: number;
12488
12602
 
12603
+ /**
12604
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
12605
+ * \`file_array\` input types for video and audio assets. Validated against
12606
+ * \`asset.properties.duration\` at job creation time.
12607
+ */
12608
+ minDuration?: number;
12609
+
12489
12610
  /**
12490
12611
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
12491
12612
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -12716,6 +12837,13 @@ export namespace GenerateRunModelResponse {
12716
12837
  */
12717
12838
  min?: number;
12718
12839
 
12840
+ /**
12841
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
12842
+ * \`file_array\` input types for video and audio assets. Validated against
12843
+ * \`asset.properties.duration\` at job creation time.
12844
+ */
12845
+ minDuration?: number;
12846
+
12719
12847
  /**
12720
12848
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
12721
12849
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -13710,6 +13838,13 @@ export namespace GenerateTranslateResponse {
13710
13838
  */
13711
13839
  min?: number;
13712
13840
 
13841
+ /**
13842
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
13843
+ * \`file_array\` input types for video and audio assets. Validated against
13844
+ * \`asset.properties.duration\` at job creation time.
13845
+ */
13846
+ minDuration?: number;
13847
+
13713
13848
  /**
13714
13849
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
13715
13850
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -13940,6 +14075,13 @@ export namespace GenerateTranslateResponse {
13940
14075
  */
13941
14076
  min?: number;
13942
14077
 
14078
+ /**
14079
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
14080
+ * \`file_array\` input types for video and audio assets. Validated against
14081
+ * \`asset.properties.duration\` at job creation time.
14082
+ */
14083
+ minDuration?: number;
14084
+
13943
14085
  /**
13944
14086
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
13945
14087
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -10,6 +10,7 @@ export {
10
10
  type AssetGetBulkResponse,
11
11
  type AssetListSnapshotsResponse,
12
12
  type AssetLockResponse,
13
+ type AssetRestoreMultipleResponse,
13
14
  type AssetUnlockResponse,
14
15
  type AssetUpdateTagsResponse,
15
16
  type AssetUploadResponse,
@@ -21,6 +22,7 @@ export {
21
22
  type AssetGetBulkParams,
22
23
  type AssetListSnapshotsParams,
23
24
  type AssetLockParams,
25
+ type AssetRestoreMultipleParams,
24
26
  type AssetUnlockParams,
25
27
  type AssetUpdateTagsParams,
26
28
  type AssetUploadParams,
@@ -85,6 +87,7 @@ export {
85
87
  type ModelDeleteImagesResponse,
86
88
  type ModelDownloadResponse,
87
89
  type ModelGetBulkResponse,
90
+ type ModelRestoreResponse,
88
91
  type ModelTransferResponse,
89
92
  type ModelUpdateTagsResponse,
90
93
  type ModelCreateParams,
@@ -96,6 +99,7 @@ export {
96
99
  type ModelDeleteImagesParams,
97
100
  type ModelDownloadParams,
98
101
  type ModelGetBulkParams,
102
+ type ModelRestoreParams,
99
103
  type ModelTransferParams,
100
104
  type ModelUpdateTagsParams,
101
105
  type ModelListResponsesModelsCursor,
@@ -483,6 +483,13 @@ export namespace JobRetrieveResponse {
483
483
  */
484
484
  min?: number;
485
485
 
486
+ /**
487
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
488
+ * \`file_array\` input types for video and audio assets. Validated against
489
+ * \`asset.properties.duration\` at job creation time.
490
+ */
491
+ minDuration?: number;
492
+
486
493
  /**
487
494
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
488
495
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -713,6 +720,13 @@ export namespace JobRetrieveResponse {
713
720
  */
714
721
  min?: number;
715
722
 
723
+ /**
724
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
725
+ * \`file_array\` input types for video and audio assets. Validated against
726
+ * \`asset.properties.duration\` at job creation time.
727
+ */
728
+ minDuration?: number;
729
+
716
730
  /**
717
731
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
718
732
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1528,6 +1542,13 @@ export namespace JobListResponse {
1528
1542
  */
1529
1543
  min?: number;
1530
1544
 
1545
+ /**
1546
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1547
+ * \`file_array\` input types for video and audio assets. Validated against
1548
+ * \`asset.properties.duration\` at job creation time.
1549
+ */
1550
+ minDuration?: number;
1551
+
1531
1552
  /**
1532
1553
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1533
1554
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1758,6 +1779,13 @@ export namespace JobListResponse {
1758
1779
  */
1759
1780
  min?: number;
1760
1781
 
1782
+ /**
1783
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1784
+ * \`file_array\` input types for video and audio assets. Validated against
1785
+ * \`asset.properties.duration\` at job creation time.
1786
+ */
1787
+ minDuration?: number;
1788
+
1761
1789
  /**
1762
1790
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1763
1791
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2577,6 +2605,13 @@ export namespace JobTriggerActionResponse {
2577
2605
  */
2578
2606
  min?: number;
2579
2607
 
2608
+ /**
2609
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2610
+ * \`file_array\` input types for video and audio assets. Validated against
2611
+ * \`asset.properties.duration\` at job creation time.
2612
+ */
2613
+ minDuration?: number;
2614
+
2580
2615
  /**
2581
2616
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2582
2617
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2807,6 +2842,13 @@ export namespace JobTriggerActionResponse {
2807
2842
  */
2808
2843
  min?: number;
2809
2844
 
2845
+ /**
2846
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2847
+ * \`file_array\` input types for video and audio assets. Validated against
2848
+ * \`asset.properties.duration\` at job creation time.
2849
+ */
2850
+ minDuration?: number;
2851
+
2810
2852
  /**
2811
2853
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2812
2854
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -181,6 +181,7 @@ export namespace DescriptionRetrieveResponse {
181
181
  | 'video23d'
182
182
  | 'video2audio'
183
183
  | 'video2img'
184
+ | 'video2txt'
184
185
  | 'video2video'
185
186
  | 'voice-clone';
186
187
 
@@ -247,11 +248,13 @@ export namespace DescriptionRetrieveResponse {
247
248
  | 'model/stl'
248
249
  | 'model/vnd.collada+xml'
249
250
  | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
251
+ | 'model/vnd.usdz+zip'
250
252
  | 'model/x-3d-vox'
251
253
  | 'model/x-blender'
252
254
  | 'model/x-fbx'
253
255
  | 'model/x-maya-ascii'
254
256
  | 'model/x-maya-binary'
257
+ | 'model/x-vsplat'
255
258
  | 'model/x3d+xml'
256
259
  | 'text/plain'
257
260
  | 'video/mp4'
@@ -694,6 +697,7 @@ export namespace DescriptionUpdateResponse {
694
697
  | 'video23d'
695
698
  | 'video2audio'
696
699
  | 'video2img'
700
+ | 'video2txt'
697
701
  | 'video2video'
698
702
  | 'voice-clone';
699
703
 
@@ -760,11 +764,13 @@ export namespace DescriptionUpdateResponse {
760
764
  | 'model/stl'
761
765
  | 'model/vnd.collada+xml'
762
766
  | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
767
+ | 'model/vnd.usdz+zip'
763
768
  | 'model/x-3d-vox'
764
769
  | 'model/x-blender'
765
770
  | 'model/x-fbx'
766
771
  | 'model/x-maya-ascii'
767
772
  | 'model/x-maya-binary'
773
+ | 'model/x-vsplat'
768
774
  | 'model/x3d+xml'
769
775
  | 'text/plain'
770
776
  | 'video/mp4'
@@ -225,6 +225,7 @@ export namespace ExampleUpdateResponse {
225
225
  | 'video23d'
226
226
  | 'video2audio'
227
227
  | 'video2img'
228
+ | 'video2txt'
228
229
  | 'video2video'
229
230
  | 'voice-clone';
230
231
 
@@ -254,6 +255,12 @@ export namespace ExampleUpdateResponse {
254
255
  */
255
256
  automaticCaptioning?: string;
256
257
 
258
+ /**
259
+ * The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
260
+ * Only set on deleted assets, listed with `deleted=true`.
261
+ */
262
+ deletedAt?: string;
263
+
257
264
  /**
258
265
  * The description, it will contain in priority:
259
266
  *
@@ -352,11 +359,13 @@ export namespace ExampleUpdateResponse {
352
359
  | 'model/stl'
353
360
  | 'model/vnd.collada+xml'
354
361
  | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
362
+ | 'model/vnd.usdz+zip'
355
363
  | 'model/x-3d-vox'
356
364
  | 'model/x-blender'
357
365
  | 'model/x-fbx'
358
366
  | 'model/x-maya-ascii'
359
367
  | 'model/x-maya-binary'
368
+ | 'model/x-vsplat'
360
369
  | 'model/x3d+xml'
361
370
  | 'text/plain'
362
371
  | 'video/mp4'
@@ -483,6 +492,7 @@ export namespace ExampleUpdateResponse {
483
492
  | 'video23d'
484
493
  | 'video2audio'
485
494
  | 'video2img'
495
+ | 'video2txt'
486
496
  | 'video2video'
487
497
  | 'voice-clone';
488
498
 
@@ -2224,6 +2234,13 @@ export namespace ExampleUpdateResponse {
2224
2234
  */
2225
2235
  min?: number;
2226
2236
 
2237
+ /**
2238
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2239
+ * \`file_array\` input types for video and audio assets. Validated against
2240
+ * \`asset.properties.duration\` at job creation time.
2241
+ */
2242
+ minDuration?: number;
2243
+
2227
2244
  /**
2228
2245
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2229
2246
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2454,6 +2471,13 @@ export namespace ExampleUpdateResponse {
2454
2471
  */
2455
2472
  min?: number;
2456
2473
 
2474
+ /**
2475
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2476
+ * \`file_array\` input types for video and audio assets. Validated against
2477
+ * \`asset.properties.duration\` at job creation time.
2478
+ */
2479
+ minDuration?: number;
2480
+
2457
2481
  /**
2458
2482
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2459
2483
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -3037,6 +3061,7 @@ export namespace ExampleListResponse {
3037
3061
  | 'video23d'
3038
3062
  | 'video2audio'
3039
3063
  | 'video2img'
3064
+ | 'video2txt'
3040
3065
  | 'video2video'
3041
3066
  | 'voice-clone';
3042
3067
 
@@ -3066,6 +3091,12 @@ export namespace ExampleListResponse {
3066
3091
  */
3067
3092
  automaticCaptioning?: string;
3068
3093
 
3094
+ /**
3095
+ * The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
3096
+ * Only set on deleted assets, listed with `deleted=true`.
3097
+ */
3098
+ deletedAt?: string;
3099
+
3069
3100
  /**
3070
3101
  * The description, it will contain in priority:
3071
3102
  *
@@ -3164,11 +3195,13 @@ export namespace ExampleListResponse {
3164
3195
  | 'model/stl'
3165
3196
  | 'model/vnd.collada+xml'
3166
3197
  | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
3198
+ | 'model/vnd.usdz+zip'
3167
3199
  | 'model/x-3d-vox'
3168
3200
  | 'model/x-blender'
3169
3201
  | 'model/x-fbx'
3170
3202
  | 'model/x-maya-ascii'
3171
3203
  | 'model/x-maya-binary'
3204
+ | 'model/x-vsplat'
3172
3205
  | 'model/x3d+xml'
3173
3206
  | 'text/plain'
3174
3207
  | 'video/mp4'
@@ -3295,6 +3328,7 @@ export namespace ExampleListResponse {
3295
3328
  | 'video23d'
3296
3329
  | 'video2audio'
3297
3330
  | 'video2img'
3331
+ | 'video2txt'
3298
3332
  | 'video2video'
3299
3333
  | 'voice-clone';
3300
3334
 
@@ -5036,6 +5070,13 @@ export namespace ExampleListResponse {
5036
5070
  */
5037
5071
  min?: number;
5038
5072
 
5073
+ /**
5074
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
5075
+ * \`file_array\` input types for video and audio assets. Validated against
5076
+ * \`asset.properties.duration\` at job creation time.
5077
+ */
5078
+ minDuration?: number;
5079
+
5039
5080
  /**
5040
5081
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5041
5082
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -5266,6 +5307,13 @@ export namespace ExampleListResponse {
5266
5307
  */
5267
5308
  min?: number;
5268
5309
 
5310
+ /**
5311
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
5312
+ * \`file_array\` input types for video and audio assets. Validated against
5313
+ * \`asset.properties.duration\` at job creation time.
5314
+ */
5315
+ minDuration?: number;
5316
+
5269
5317
  /**
5270
5318
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5271
5319
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -25,6 +25,7 @@ export {
25
25
  type ModelDeleteImagesResponse,
26
26
  type ModelDownloadResponse,
27
27
  type ModelGetBulkResponse,
28
+ type ModelRestoreResponse,
28
29
  type ModelTransferResponse,
29
30
  type ModelUpdateTagsResponse,
30
31
  type ModelCreateParams,
@@ -36,6 +37,7 @@ export {
36
37
  type ModelDeleteImagesParams,
37
38
  type ModelDownloadParams,
38
39
  type ModelGetBulkParams,
40
+ type ModelRestoreParams,
39
41
  type ModelTransferParams,
40
42
  type ModelUpdateTagsParams,
41
43
  type ModelListResponsesModelsCursor,