@scenario-labs/sdk 1.2.0 → 2.1.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 (308) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.js +51 -38
  11. package/client.js.map +1 -1
  12. package/client.mjs +51 -39
  13. package/client.mjs.map +1 -1
  14. package/core/api-promise.d.mts.map +1 -1
  15. package/core/api-promise.d.ts.map +1 -1
  16. package/core/api-promise.js +7 -7
  17. package/core/api-promise.js.map +1 -1
  18. package/core/api-promise.mjs +7 -7
  19. package/core/api-promise.mjs.map +1 -1
  20. package/core/error.js +6 -0
  21. package/core/error.js.map +1 -1
  22. package/core/error.mjs +6 -0
  23. package/core/error.mjs.map +1 -1
  24. package/core/pagination.d.mts.map +1 -1
  25. package/core/pagination.d.ts.map +1 -1
  26. package/core/pagination.js +24 -6
  27. package/core/pagination.js.map +1 -1
  28. package/core/pagination.mjs +24 -6
  29. package/core/pagination.mjs.map +1 -1
  30. package/core/resource.d.mts.map +1 -1
  31. package/core/resource.d.ts.map +1 -1
  32. package/core/resource.js +1 -0
  33. package/core/resource.js.map +1 -1
  34. package/core/resource.mjs +1 -0
  35. package/core/resource.mjs.map +1 -1
  36. package/core/uploads.d.mts.map +1 -1
  37. package/core/uploads.d.ts.map +1 -1
  38. package/core/uploads.mjs.map +1 -1
  39. package/error.d.mts +1 -0
  40. package/error.d.mts.map +1 -1
  41. package/error.d.ts +1 -0
  42. package/error.d.ts.map +1 -1
  43. package/error.mjs +1 -0
  44. package/error.mjs.map +1 -1
  45. package/index.d.mts +1 -0
  46. package/index.d.mts.map +1 -1
  47. package/index.d.ts +1 -0
  48. package/index.d.ts.map +1 -1
  49. package/index.js +3 -1
  50. package/index.js.map +1 -1
  51. package/index.mjs +1 -0
  52. package/index.mjs.map +1 -1
  53. package/internal/detect-platform.js +1 -1
  54. package/internal/detect-platform.js.map +1 -1
  55. package/internal/detect-platform.mjs +1 -1
  56. package/internal/detect-platform.mjs.map +1 -1
  57. package/internal/headers.mjs.map +1 -1
  58. package/internal/parse.d.mts.map +1 -1
  59. package/internal/parse.d.ts.map +1 -1
  60. package/internal/parse.mjs.map +1 -1
  61. package/internal/qs/formats.d.mts.map +1 -1
  62. package/internal/qs/formats.d.ts.map +1 -1
  63. package/internal/qs/index.d.mts +2 -2
  64. package/internal/qs/index.d.mts.map +1 -1
  65. package/internal/qs/index.d.ts +2 -2
  66. package/internal/qs/index.d.ts.map +1 -1
  67. package/internal/qs/index.mjs.map +1 -1
  68. package/internal/qs/stringify.d.mts.map +1 -1
  69. package/internal/qs/stringify.d.ts.map +1 -1
  70. package/internal/qs/stringify.js +1 -1
  71. package/internal/qs/stringify.js.map +1 -1
  72. package/internal/qs/stringify.mjs +1 -1
  73. package/internal/qs/stringify.mjs.map +1 -1
  74. package/internal/qs/utils.d.mts.map +1 -1
  75. package/internal/qs/utils.d.ts.map +1 -1
  76. package/internal/qs/utils.mjs.map +1 -1
  77. package/internal/request-options.d.mts.map +1 -1
  78. package/internal/request-options.d.ts.map +1 -1
  79. package/internal/shims.d.mts +6 -0
  80. package/internal/shims.d.mts.map +1 -1
  81. package/internal/shims.d.ts +6 -0
  82. package/internal/shims.d.ts.map +1 -1
  83. package/internal/to-file.d.mts.map +1 -1
  84. package/internal/to-file.d.ts.map +1 -1
  85. package/internal/to-file.js +2 -2
  86. package/internal/to-file.js.map +1 -1
  87. package/internal/to-file.mjs +2 -2
  88. package/internal/to-file.mjs.map +1 -1
  89. package/internal/tslib.js +0 -18
  90. package/internal/tslib.mjs +1 -17
  91. package/internal/types.d.mts +10 -10
  92. package/internal/types.d.mts.map +1 -1
  93. package/internal/types.d.ts +10 -10
  94. package/internal/types.d.ts.map +1 -1
  95. package/internal/uploads.d.mts.map +1 -1
  96. package/internal/uploads.d.ts.map +1 -1
  97. package/internal/uploads.mjs.map +1 -1
  98. package/internal/utils/base64.mjs.map +1 -1
  99. package/internal/utils/log.d.mts.map +1 -1
  100. package/internal/utils/log.d.ts.map +1 -1
  101. package/internal/utils/log.js +2 -0
  102. package/internal/utils/log.js.map +1 -1
  103. package/internal/utils/log.mjs +2 -0
  104. package/internal/utils/log.mjs.map +1 -1
  105. package/internal/utils/path.mjs.map +1 -1
  106. package/internal/utils/query.mjs.map +1 -1
  107. package/internal/utils/values.mjs.map +1 -1
  108. package/internal/utils.d.mts.map +1 -1
  109. package/internal/utils.d.ts.map +1 -1
  110. package/internal/utils.mjs.map +1 -1
  111. package/lib/asset.d.mts.map +1 -1
  112. package/lib/asset.d.ts.map +1 -1
  113. package/lib/asset.mjs.map +1 -1
  114. package/lib/generate.d.mts.map +1 -1
  115. package/lib/generate.d.ts.map +1 -1
  116. package/lib/generate.mjs.map +1 -1
  117. package/lib/job.d.mts.map +1 -1
  118. package/lib/job.d.ts.map +1 -1
  119. package/lib/job.js +3 -3
  120. package/lib/job.js.map +1 -1
  121. package/lib/job.mjs +3 -3
  122. package/lib/job.mjs.map +1 -1
  123. package/lib/models.d.mts.map +1 -1
  124. package/lib/models.d.ts.map +1 -1
  125. package/lib/models.js +1 -4
  126. package/lib/models.js.map +1 -1
  127. package/lib/models.mjs +1 -4
  128. package/lib/models.mjs.map +1 -1
  129. package/lib/scenario.d.mts.map +1 -1
  130. package/lib/scenario.d.ts.map +1 -1
  131. package/lib/scenario.js +6 -9
  132. package/lib/scenario.js.map +1 -1
  133. package/lib/scenario.mjs +6 -9
  134. package/lib/scenario.mjs.map +1 -1
  135. package/lib/upload.d.mts.map +1 -1
  136. package/lib/upload.d.ts.map +1 -1
  137. package/lib/upload.js +6 -6
  138. package/lib/upload.js.map +1 -1
  139. package/lib/upload.mjs +6 -6
  140. package/lib/upload.mjs.map +1 -1
  141. package/lib/workflow.d.mts.map +1 -1
  142. package/lib/workflow.d.ts.map +1 -1
  143. package/lib/workflow.mjs.map +1 -1
  144. package/lib/workflow_converter.d.mts +185 -0
  145. package/lib/workflow_converter.d.mts.map +1 -0
  146. package/lib/workflow_converter.d.ts +185 -0
  147. package/lib/workflow_converter.d.ts.map +1 -0
  148. package/lib/workflow_converter.js +1102 -0
  149. package/lib/workflow_converter.js.map +1 -0
  150. package/lib/workflow_converter.mjs +1099 -0
  151. package/lib/workflow_converter.mjs.map +1 -0
  152. package/package.json +1 -1
  153. package/pagination.d.mts +1 -0
  154. package/pagination.d.mts.map +1 -1
  155. package/pagination.d.ts +1 -0
  156. package/pagination.d.ts.map +1 -1
  157. package/pagination.mjs +1 -0
  158. package/pagination.mjs.map +1 -1
  159. package/resource.d.mts +1 -0
  160. package/resource.d.mts.map +1 -1
  161. package/resource.d.ts +1 -0
  162. package/resource.d.ts.map +1 -1
  163. package/resource.mjs +1 -0
  164. package/resource.mjs.map +1 -1
  165. package/resources/assets/assets.d.mts +12 -0
  166. package/resources/assets/assets.d.mts.map +1 -1
  167. package/resources/assets/assets.d.ts +12 -0
  168. package/resources/assets/assets.d.ts.map +1 -1
  169. package/resources/assets/assets.js +1 -4
  170. package/resources/assets/assets.js.map +1 -1
  171. package/resources/assets/assets.mjs +1 -4
  172. package/resources/assets/assets.mjs.map +1 -1
  173. package/resources/assets/download.d.mts.map +1 -1
  174. package/resources/assets/download.d.ts.map +1 -1
  175. package/resources/assets/download.mjs.map +1 -1
  176. package/resources/assets/index.d.mts.map +1 -1
  177. package/resources/assets/index.d.ts.map +1 -1
  178. package/resources/assets/index.mjs.map +1 -1
  179. package/resources/assets.d.mts.map +1 -1
  180. package/resources/assets.d.ts.map +1 -1
  181. package/resources/assets.mjs.map +1 -1
  182. package/resources/collections/assets.d.mts.map +1 -1
  183. package/resources/collections/assets.d.ts.map +1 -1
  184. package/resources/collections/assets.mjs.map +1 -1
  185. package/resources/collections/collections.d.mts.map +1 -1
  186. package/resources/collections/collections.d.ts.map +1 -1
  187. package/resources/collections/collections.js +2 -5
  188. package/resources/collections/collections.js.map +1 -1
  189. package/resources/collections/collections.mjs +2 -5
  190. package/resources/collections/collections.mjs.map +1 -1
  191. package/resources/collections/index.d.mts.map +1 -1
  192. package/resources/collections/index.d.ts.map +1 -1
  193. package/resources/collections/index.mjs.map +1 -1
  194. package/resources/collections/models.d.mts.map +1 -1
  195. package/resources/collections/models.d.ts.map +1 -1
  196. package/resources/collections/models.mjs.map +1 -1
  197. package/resources/collections.d.mts.map +1 -1
  198. package/resources/collections.d.ts.map +1 -1
  199. package/resources/collections.mjs.map +1 -1
  200. package/resources/generate.d.mts +96 -0
  201. package/resources/generate.d.mts.map +1 -1
  202. package/resources/generate.d.ts +96 -0
  203. package/resources/generate.d.ts.map +1 -1
  204. package/resources/generate.mjs.map +1 -1
  205. package/resources/index.d.mts.map +1 -1
  206. package/resources/index.d.ts.map +1 -1
  207. package/resources/index.mjs.map +1 -1
  208. package/resources/jobs.d.mts +36 -0
  209. package/resources/jobs.d.mts.map +1 -1
  210. package/resources/jobs.d.ts +36 -0
  211. package/resources/jobs.d.ts.map +1 -1
  212. package/resources/jobs.mjs.map +1 -1
  213. package/resources/models/description.d.mts.map +1 -1
  214. package/resources/models/description.d.ts.map +1 -1
  215. package/resources/models/description.mjs.map +1 -1
  216. package/resources/models/examples.d.mts +24 -0
  217. package/resources/models/examples.d.mts.map +1 -1
  218. package/resources/models/examples.d.ts +24 -0
  219. package/resources/models/examples.d.ts.map +1 -1
  220. package/resources/models/examples.mjs.map +1 -1
  221. package/resources/models/index.d.mts.map +1 -1
  222. package/resources/models/index.d.ts.map +1 -1
  223. package/resources/models/index.mjs.map +1 -1
  224. package/resources/models/models.d.mts +42 -0
  225. package/resources/models/models.d.mts.map +1 -1
  226. package/resources/models/models.d.ts +42 -0
  227. package/resources/models/models.d.ts.map +1 -1
  228. package/resources/models/models.js +4 -7
  229. package/resources/models/models.js.map +1 -1
  230. package/resources/models/models.mjs +4 -7
  231. package/resources/models/models.mjs.map +1 -1
  232. package/resources/models/train.d.mts +24 -0
  233. package/resources/models/train.d.mts.map +1 -1
  234. package/resources/models/train.d.ts +24 -0
  235. package/resources/models/train.d.ts.map +1 -1
  236. package/resources/models/train.mjs.map +1 -1
  237. package/resources/models/training-images.d.mts.map +1 -1
  238. package/resources/models/training-images.d.ts.map +1 -1
  239. package/resources/models/training-images.mjs.map +1 -1
  240. package/resources/models.d.mts.map +1 -1
  241. package/resources/models.d.ts.map +1 -1
  242. package/resources/models.mjs.map +1 -1
  243. package/resources/oscu.d.mts.map +1 -1
  244. package/resources/oscu.d.ts.map +1 -1
  245. package/resources/oscu.mjs.map +1 -1
  246. package/resources/pricing/index.d.mts.map +1 -1
  247. package/resources/pricing/index.d.ts.map +1 -1
  248. package/resources/pricing/index.mjs.map +1 -1
  249. package/resources/pricing/oscu.d.mts.map +1 -1
  250. package/resources/pricing/oscu.d.ts.map +1 -1
  251. package/resources/pricing/oscu.mjs.map +1 -1
  252. package/resources/pricing/pricing.d.mts.map +1 -1
  253. package/resources/pricing/pricing.d.ts.map +1 -1
  254. package/resources/pricing/pricing.js +1 -4
  255. package/resources/pricing/pricing.js.map +1 -1
  256. package/resources/pricing/pricing.mjs +1 -4
  257. package/resources/pricing/pricing.mjs.map +1 -1
  258. package/resources/pricing.d.mts.map +1 -1
  259. package/resources/pricing.d.ts.map +1 -1
  260. package/resources/pricing.mjs.map +1 -1
  261. package/resources/search.d.mts.map +1 -1
  262. package/resources/search.d.ts.map +1 -1
  263. package/resources/search.mjs.map +1 -1
  264. package/resources/tags.d.mts.map +1 -1
  265. package/resources/tags.d.ts.map +1 -1
  266. package/resources/tags.mjs.map +1 -1
  267. package/resources/uploads.d.mts.map +1 -1
  268. package/resources/uploads.d.ts.map +1 -1
  269. package/resources/uploads.mjs.map +1 -1
  270. package/resources/usages.d.mts +23 -0
  271. package/resources/usages.d.mts.map +1 -1
  272. package/resources/usages.d.ts +23 -0
  273. package/resources/usages.d.ts.map +1 -1
  274. package/resources/usages.mjs.map +1 -1
  275. package/resources/workflows.d.mts +132 -0
  276. package/resources/workflows.d.mts.map +1 -1
  277. package/resources/workflows.d.ts +132 -0
  278. package/resources/workflows.d.ts.map +1 -1
  279. package/resources/workflows.js +4 -7
  280. package/resources/workflows.js.map +1 -1
  281. package/resources/workflows.mjs +4 -7
  282. package/resources/workflows.mjs.map +1 -1
  283. package/resources.d.mts.map +1 -1
  284. package/resources.d.ts.map +1 -1
  285. package/resources.mjs.map +1 -1
  286. package/src/index.ts +14 -0
  287. package/src/internal/types.ts +6 -8
  288. package/src/internal/utils/log.ts +2 -0
  289. package/src/lib/workflow_converter.ts +1402 -0
  290. package/src/resources/assets/assets.ts +14 -0
  291. package/src/resources/generate.ts +112 -0
  292. package/src/resources/jobs.ts +42 -0
  293. package/src/resources/models/examples.ts +28 -0
  294. package/src/resources/models/models.ts +49 -0
  295. package/src/resources/models/train.ts +28 -0
  296. package/src/resources/usages.ts +26 -0
  297. package/src/resources/workflows.ts +154 -0
  298. package/src/version.ts +1 -1
  299. package/uploads.d.mts +1 -0
  300. package/uploads.d.mts.map +1 -1
  301. package/uploads.d.ts +1 -0
  302. package/uploads.d.ts.map +1 -1
  303. package/uploads.mjs +1 -0
  304. package/uploads.mjs.map +1 -1
  305. package/version.d.mts +1 -1
  306. package/version.d.ts +1 -1
  307. package/version.js +1 -1
  308. package/version.mjs +1 -1
@@ -309,6 +309,12 @@ export declare namespace WorkflowCreateResponse {
309
309
  * types.
310
310
  */
311
311
  max?: number;
312
+ /**
313
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
314
+ * \`file_array\` input types for video and audio assets. Validated against
315
+ * \`asset.properties.duration\` at job creation time.
316
+ */
317
+ maxDuration?: number;
312
318
  /**
313
319
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
314
320
  * \`string_array\`.
@@ -461,6 +467,12 @@ export declare namespace WorkflowCreateResponse {
461
467
  * types.
462
468
  */
463
469
  max?: number;
470
+ /**
471
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
472
+ * \`file_array\` input types for video and audio assets. Validated against
473
+ * \`asset.properties.duration\` at job creation time.
474
+ */
475
+ maxDuration?: number;
464
476
  /**
465
477
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
466
478
  * \`string_array\`.
@@ -774,6 +786,12 @@ export declare namespace WorkflowCreateResponse {
774
786
  * types.
775
787
  */
776
788
  max?: number;
789
+ /**
790
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
791
+ * \`file_array\` input types for video and audio assets. Validated against
792
+ * \`asset.properties.duration\` at job creation time.
793
+ */
794
+ maxDuration?: number;
777
795
  /**
778
796
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
779
797
  * \`string_array\`.
@@ -1294,6 +1312,12 @@ export declare namespace WorkflowRetrieveResponse {
1294
1312
  * types.
1295
1313
  */
1296
1314
  max?: number;
1315
+ /**
1316
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1317
+ * \`file_array\` input types for video and audio assets. Validated against
1318
+ * \`asset.properties.duration\` at job creation time.
1319
+ */
1320
+ maxDuration?: number;
1297
1321
  /**
1298
1322
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1299
1323
  * \`string_array\`.
@@ -1446,6 +1470,12 @@ export declare namespace WorkflowRetrieveResponse {
1446
1470
  * types.
1447
1471
  */
1448
1472
  max?: number;
1473
+ /**
1474
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1475
+ * \`file_array\` input types for video and audio assets. Validated against
1476
+ * \`asset.properties.duration\` at job creation time.
1477
+ */
1478
+ maxDuration?: number;
1449
1479
  /**
1450
1480
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1451
1481
  * \`string_array\`.
@@ -1759,6 +1789,12 @@ export declare namespace WorkflowRetrieveResponse {
1759
1789
  * types.
1760
1790
  */
1761
1791
  max?: number;
1792
+ /**
1793
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1794
+ * \`file_array\` input types for video and audio assets. Validated against
1795
+ * \`asset.properties.duration\` at job creation time.
1796
+ */
1797
+ maxDuration?: number;
1762
1798
  /**
1763
1799
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1764
1800
  * \`string_array\`.
@@ -2279,6 +2315,12 @@ export declare namespace WorkflowUpdateResponse {
2279
2315
  * types.
2280
2316
  */
2281
2317
  max?: number;
2318
+ /**
2319
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2320
+ * \`file_array\` input types for video and audio assets. Validated against
2321
+ * \`asset.properties.duration\` at job creation time.
2322
+ */
2323
+ maxDuration?: number;
2282
2324
  /**
2283
2325
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2284
2326
  * \`string_array\`.
@@ -2431,6 +2473,12 @@ export declare namespace WorkflowUpdateResponse {
2431
2473
  * types.
2432
2474
  */
2433
2475
  max?: number;
2476
+ /**
2477
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2478
+ * \`file_array\` input types for video and audio assets. Validated against
2479
+ * \`asset.properties.duration\` at job creation time.
2480
+ */
2481
+ maxDuration?: number;
2434
2482
  /**
2435
2483
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2436
2484
  * \`string_array\`.
@@ -2744,6 +2792,12 @@ export declare namespace WorkflowUpdateResponse {
2744
2792
  * types.
2745
2793
  */
2746
2794
  max?: number;
2795
+ /**
2796
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2797
+ * \`file_array\` input types for video and audio assets. Validated against
2798
+ * \`asset.properties.duration\` at job creation time.
2799
+ */
2800
+ maxDuration?: number;
2747
2801
  /**
2748
2802
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2749
2803
  * \`string_array\`.
@@ -3260,6 +3314,12 @@ export declare namespace WorkflowListResponse {
3260
3314
  * types.
3261
3315
  */
3262
3316
  max?: number;
3317
+ /**
3318
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
3319
+ * \`file_array\` input types for video and audio assets. Validated against
3320
+ * \`asset.properties.duration\` at job creation time.
3321
+ */
3322
+ maxDuration?: number;
3263
3323
  /**
3264
3324
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
3265
3325
  * \`string_array\`.
@@ -3412,6 +3472,12 @@ export declare namespace WorkflowListResponse {
3412
3472
  * types.
3413
3473
  */
3414
3474
  max?: number;
3475
+ /**
3476
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
3477
+ * \`file_array\` input types for video and audio assets. Validated against
3478
+ * \`asset.properties.duration\` at job creation time.
3479
+ */
3480
+ maxDuration?: number;
3415
3481
  /**
3416
3482
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
3417
3483
  * \`string_array\`.
@@ -3725,6 +3791,12 @@ export declare namespace WorkflowListResponse {
3725
3791
  * types.
3726
3792
  */
3727
3793
  max?: number;
3794
+ /**
3795
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
3796
+ * \`file_array\` input types for video and audio assets. Validated against
3797
+ * \`asset.properties.duration\` at job creation time.
3798
+ */
3799
+ maxDuration?: number;
3728
3800
  /**
3729
3801
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
3730
3802
  * \`string_array\`.
@@ -4261,6 +4333,12 @@ export declare namespace WorkflowRunResponse {
4261
4333
  * types.
4262
4334
  */
4263
4335
  max?: number;
4336
+ /**
4337
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4338
+ * \`file_array\` input types for video and audio assets. Validated against
4339
+ * \`asset.properties.duration\` at job creation time.
4340
+ */
4341
+ maxDuration?: number;
4264
4342
  /**
4265
4343
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4266
4344
  * \`string_array\`.
@@ -4413,6 +4491,12 @@ export declare namespace WorkflowRunResponse {
4413
4491
  * types.
4414
4492
  */
4415
4493
  max?: number;
4494
+ /**
4495
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4496
+ * \`file_array\` input types for video and audio assets. Validated against
4497
+ * \`asset.properties.duration\` at job creation time.
4498
+ */
4499
+ maxDuration?: number;
4416
4500
  /**
4417
4501
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4418
4502
  * \`string_array\`.
@@ -4923,6 +5007,12 @@ export declare namespace WorkflowRunResponse {
4923
5007
  * types.
4924
5008
  */
4925
5009
  max?: number;
5010
+ /**
5011
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5012
+ * \`file_array\` input types for video and audio assets. Validated against
5013
+ * \`asset.properties.duration\` at job creation time.
5014
+ */
5015
+ maxDuration?: number;
4926
5016
  /**
4927
5017
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4928
5018
  * \`string_array\`.
@@ -5075,6 +5165,12 @@ export declare namespace WorkflowRunResponse {
5075
5165
  * types.
5076
5166
  */
5077
5167
  max?: number;
5168
+ /**
5169
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5170
+ * \`file_array\` input types for video and audio assets. Validated against
5171
+ * \`asset.properties.duration\` at job creation time.
5172
+ */
5173
+ maxDuration?: number;
5078
5174
  /**
5079
5175
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5080
5176
  * \`string_array\`.
@@ -5388,6 +5484,12 @@ export declare namespace WorkflowRunResponse {
5388
5484
  * types.
5389
5485
  */
5390
5486
  max?: number;
5487
+ /**
5488
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5489
+ * \`file_array\` input types for video and audio assets. Validated against
5490
+ * \`asset.properties.duration\` at job creation time.
5491
+ */
5492
+ maxDuration?: number;
5391
5493
  /**
5392
5494
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5393
5495
  * \`string_array\`.
@@ -5917,6 +6019,12 @@ export declare namespace WorkflowUserApprovalResponse {
5917
6019
  * types.
5918
6020
  */
5919
6021
  max?: number;
6022
+ /**
6023
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
6024
+ * \`file_array\` input types for video and audio assets. Validated against
6025
+ * \`asset.properties.duration\` at job creation time.
6026
+ */
6027
+ maxDuration?: number;
5920
6028
  /**
5921
6029
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5922
6030
  * \`string_array\`.
@@ -6069,6 +6177,12 @@ export declare namespace WorkflowUserApprovalResponse {
6069
6177
  * types.
6070
6178
  */
6071
6179
  max?: number;
6180
+ /**
6181
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
6182
+ * \`file_array\` input types for video and audio assets. Validated against
6183
+ * \`asset.properties.duration\` at job creation time.
6184
+ */
6185
+ maxDuration?: number;
6072
6186
  /**
6073
6187
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
6074
6188
  * \`string_array\`.
@@ -6544,6 +6658,12 @@ export declare namespace WorkflowUpdateParams {
6544
6658
  * types.
6545
6659
  */
6546
6660
  max?: number;
6661
+ /**
6662
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
6663
+ * \`file_array\` input types for video and audio assets. Validated against
6664
+ * \`asset.properties.duration\` at job creation time.
6665
+ */
6666
+ maxDuration?: number;
6547
6667
  /**
6548
6668
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
6549
6669
  * \`string_array\`.
@@ -6696,6 +6816,12 @@ export declare namespace WorkflowUpdateParams {
6696
6816
  * types.
6697
6817
  */
6698
6818
  max?: number;
6819
+ /**
6820
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
6821
+ * \`file_array\` input types for video and audio assets. Validated against
6822
+ * \`asset.properties.duration\` at job creation time.
6823
+ */
6824
+ maxDuration?: number;
6699
6825
  /**
6700
6826
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
6701
6827
  * \`string_array\`.
@@ -7009,6 +7135,12 @@ export declare namespace WorkflowUpdateParams {
7009
7135
  * types.
7010
7136
  */
7011
7137
  max?: number;
7138
+ /**
7139
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
7140
+ * \`file_array\` input types for video and audio assets. Validated against
7141
+ * \`asset.properties.duration\` at job creation time.
7142
+ */
7143
+ maxDuration?: number;
7012
7144
  /**
7013
7145
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
7014
7146
  * \`string_array\`.