@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
@@ -438,6 +438,13 @@ export namespace WorkflowCreateResponse {
438
438
  */
439
439
  max?: number;
440
440
 
441
+ /**
442
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
443
+ * \`file_array\` input types for video and audio assets. Validated against
444
+ * \`asset.properties.duration\` at job creation time.
445
+ */
446
+ maxDuration?: number;
447
+
441
448
  /**
442
449
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
443
450
  * \`string_array\`.
@@ -664,6 +671,13 @@ export namespace WorkflowCreateResponse {
664
671
  */
665
672
  max?: number;
666
673
 
674
+ /**
675
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
676
+ * \`file_array\` input types for video and audio assets. Validated against
677
+ * \`asset.properties.duration\` at job creation time.
678
+ */
679
+ maxDuration?: number;
680
+
667
681
  /**
668
682
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
669
683
  * \`string_array\`.
@@ -1072,6 +1086,13 @@ export namespace WorkflowCreateResponse {
1072
1086
  */
1073
1087
  max?: number;
1074
1088
 
1089
+ /**
1090
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1091
+ * \`file_array\` input types for video and audio assets. Validated against
1092
+ * \`asset.properties.duration\` at job creation time.
1093
+ */
1094
+ maxDuration?: number;
1095
+
1075
1096
  /**
1076
1097
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1077
1098
  * \`string_array\`.
@@ -1743,6 +1764,13 @@ export namespace WorkflowRetrieveResponse {
1743
1764
  */
1744
1765
  max?: number;
1745
1766
 
1767
+ /**
1768
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1769
+ * \`file_array\` input types for video and audio assets. Validated against
1770
+ * \`asset.properties.duration\` at job creation time.
1771
+ */
1772
+ maxDuration?: number;
1773
+
1746
1774
  /**
1747
1775
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1748
1776
  * \`string_array\`.
@@ -1969,6 +1997,13 @@ export namespace WorkflowRetrieveResponse {
1969
1997
  */
1970
1998
  max?: number;
1971
1999
 
2000
+ /**
2001
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2002
+ * \`file_array\` input types for video and audio assets. Validated against
2003
+ * \`asset.properties.duration\` at job creation time.
2004
+ */
2005
+ maxDuration?: number;
2006
+
1972
2007
  /**
1973
2008
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1974
2009
  * \`string_array\`.
@@ -2377,6 +2412,13 @@ export namespace WorkflowRetrieveResponse {
2377
2412
  */
2378
2413
  max?: number;
2379
2414
 
2415
+ /**
2416
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2417
+ * \`file_array\` input types for video and audio assets. Validated against
2418
+ * \`asset.properties.duration\` at job creation time.
2419
+ */
2420
+ maxDuration?: number;
2421
+
2380
2422
  /**
2381
2423
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2382
2424
  * \`string_array\`.
@@ -3048,6 +3090,13 @@ export namespace WorkflowUpdateResponse {
3048
3090
  */
3049
3091
  max?: number;
3050
3092
 
3093
+ /**
3094
+ * The maximum 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
+ maxDuration?: number;
3099
+
3051
3100
  /**
3052
3101
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
3053
3102
  * \`string_array\`.
@@ -3274,6 +3323,13 @@ export namespace WorkflowUpdateResponse {
3274
3323
  */
3275
3324
  max?: number;
3276
3325
 
3326
+ /**
3327
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
3328
+ * \`file_array\` input types for video and audio assets. Validated against
3329
+ * \`asset.properties.duration\` at job creation time.
3330
+ */
3331
+ maxDuration?: number;
3332
+
3277
3333
  /**
3278
3334
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
3279
3335
  * \`string_array\`.
@@ -3682,6 +3738,13 @@ export namespace WorkflowUpdateResponse {
3682
3738
  */
3683
3739
  max?: number;
3684
3740
 
3741
+ /**
3742
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
3743
+ * \`file_array\` input types for video and audio assets. Validated against
3744
+ * \`asset.properties.duration\` at job creation time.
3745
+ */
3746
+ maxDuration?: number;
3747
+
3685
3748
  /**
3686
3749
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
3687
3750
  * \`string_array\`.
@@ -4348,6 +4411,13 @@ export namespace WorkflowListResponse {
4348
4411
  */
4349
4412
  max?: number;
4350
4413
 
4414
+ /**
4415
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4416
+ * \`file_array\` input types for video and audio assets. Validated against
4417
+ * \`asset.properties.duration\` at job creation time.
4418
+ */
4419
+ maxDuration?: number;
4420
+
4351
4421
  /**
4352
4422
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4353
4423
  * \`string_array\`.
@@ -4574,6 +4644,13 @@ export namespace WorkflowListResponse {
4574
4644
  */
4575
4645
  max?: number;
4576
4646
 
4647
+ /**
4648
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4649
+ * \`file_array\` input types for video and audio assets. Validated against
4650
+ * \`asset.properties.duration\` at job creation time.
4651
+ */
4652
+ maxDuration?: number;
4653
+
4577
4654
  /**
4578
4655
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4579
4656
  * \`string_array\`.
@@ -4982,6 +5059,13 @@ export namespace WorkflowListResponse {
4982
5059
  */
4983
5060
  max?: number;
4984
5061
 
5062
+ /**
5063
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5064
+ * \`file_array\` input types for video and audio assets. Validated against
5065
+ * \`asset.properties.duration\` at job creation time.
5066
+ */
5067
+ maxDuration?: number;
5068
+
4985
5069
  /**
4986
5070
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4987
5071
  * \`string_array\`.
@@ -5717,6 +5801,13 @@ export namespace WorkflowRunResponse {
5717
5801
  */
5718
5802
  max?: number;
5719
5803
 
5804
+ /**
5805
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5806
+ * \`file_array\` input types for video and audio assets. Validated against
5807
+ * \`asset.properties.duration\` at job creation time.
5808
+ */
5809
+ maxDuration?: number;
5810
+
5720
5811
  /**
5721
5812
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5722
5813
  * \`string_array\`.
@@ -5943,6 +6034,13 @@ export namespace WorkflowRunResponse {
5943
6034
  */
5944
6035
  max?: number;
5945
6036
 
6037
+ /**
6038
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
6039
+ * \`file_array\` input types for video and audio assets. Validated against
6040
+ * \`asset.properties.duration\` at job creation time.
6041
+ */
6042
+ maxDuration?: number;
6043
+
5946
6044
  /**
5947
6045
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5948
6046
  * \`string_array\`.
@@ -6609,6 +6707,13 @@ export namespace WorkflowRunResponse {
6609
6707
  */
6610
6708
  max?: number;
6611
6709
 
6710
+ /**
6711
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
6712
+ * \`file_array\` input types for video and audio assets. Validated against
6713
+ * \`asset.properties.duration\` at job creation time.
6714
+ */
6715
+ maxDuration?: number;
6716
+
6612
6717
  /**
6613
6718
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
6614
6719
  * \`string_array\`.
@@ -6835,6 +6940,13 @@ export namespace WorkflowRunResponse {
6835
6940
  */
6836
6941
  max?: number;
6837
6942
 
6943
+ /**
6944
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
6945
+ * \`file_array\` input types for video and audio assets. Validated against
6946
+ * \`asset.properties.duration\` at job creation time.
6947
+ */
6948
+ maxDuration?: number;
6949
+
6838
6950
  /**
6839
6951
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
6840
6952
  * \`string_array\`.
@@ -7243,6 +7355,13 @@ export namespace WorkflowRunResponse {
7243
7355
  */
7244
7356
  max?: number;
7245
7357
 
7358
+ /**
7359
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
7360
+ * \`file_array\` input types for video and audio assets. Validated against
7361
+ * \`asset.properties.duration\` at job creation time.
7362
+ */
7363
+ maxDuration?: number;
7364
+
7246
7365
  /**
7247
7366
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
7248
7367
  * \`string_array\`.
@@ -7968,6 +8087,13 @@ export namespace WorkflowUserApprovalResponse {
7968
8087
  */
7969
8088
  max?: number;
7970
8089
 
8090
+ /**
8091
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
8092
+ * \`file_array\` input types for video and audio assets. Validated against
8093
+ * \`asset.properties.duration\` at job creation time.
8094
+ */
8095
+ maxDuration?: number;
8096
+
7971
8097
  /**
7972
8098
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
7973
8099
  * \`string_array\`.
@@ -8194,6 +8320,13 @@ export namespace WorkflowUserApprovalResponse {
8194
8320
  */
8195
8321
  max?: number;
8196
8322
 
8323
+ /**
8324
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
8325
+ * \`file_array\` input types for video and audio assets. Validated against
8326
+ * \`asset.properties.duration\` at job creation time.
8327
+ */
8328
+ maxDuration?: number;
8329
+
8197
8330
  /**
8198
8331
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
8199
8332
  * \`string_array\`.
@@ -8816,6 +8949,13 @@ export namespace WorkflowUpdateParams {
8816
8949
  */
8817
8950
  max?: number;
8818
8951
 
8952
+ /**
8953
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
8954
+ * \`file_array\` input types for video and audio assets. Validated against
8955
+ * \`asset.properties.duration\` at job creation time.
8956
+ */
8957
+ maxDuration?: number;
8958
+
8819
8959
  /**
8820
8960
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
8821
8961
  * \`string_array\`.
@@ -9042,6 +9182,13 @@ export namespace WorkflowUpdateParams {
9042
9182
  */
9043
9183
  max?: number;
9044
9184
 
9185
+ /**
9186
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
9187
+ * \`file_array\` input types for video and audio assets. Validated against
9188
+ * \`asset.properties.duration\` at job creation time.
9189
+ */
9190
+ maxDuration?: number;
9191
+
9045
9192
  /**
9046
9193
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
9047
9194
  * \`string_array\`.
@@ -9450,6 +9597,13 @@ export namespace WorkflowUpdateParams {
9450
9597
  */
9451
9598
  max?: number;
9452
9599
 
9600
+ /**
9601
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
9602
+ * \`file_array\` input types for video and audio assets. Validated against
9603
+ * \`asset.properties.duration\` at job creation time.
9604
+ */
9605
+ maxDuration?: number;
9606
+
9453
9607
  /**
9454
9608
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
9455
9609
  * \`string_array\`.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.0'; // x-release-please-version
1
+ export const VERSION = '2.1.0'; // x-release-please-version
package/uploads.d.mts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.d.mts.map
package/uploads.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/uploads.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.js";
2
3
  //# sourceMappingURL=uploads.d.ts.map
package/uploads.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
package/uploads.mjs CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.mjs.map
package/uploads.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.0";
1
+ export declare const VERSION = "2.1.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.0";
1
+ export declare const VERSION = "2.1.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.2.0'; // x-release-please-version
4
+ exports.VERSION = '2.1.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.2.0'; // x-release-please-version
1
+ export const VERSION = '2.1.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map