@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
@@ -88,6 +88,7 @@ export namespace TrainActionResponse {
88
88
  | 'video23d'
89
89
  | 'video2audio'
90
90
  | 'video2img'
91
+ | 'video2txt'
91
92
  | 'video2video'
92
93
  >;
93
94
 
@@ -206,6 +207,12 @@ export namespace TrainActionResponse {
206
207
  */
207
208
  concepts?: Array<Model.Concept>;
208
209
 
210
+ /**
211
+ * The model deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
212
+ * Only set on deleted models, listed with `status=deleted`.
213
+ */
214
+ deletedAt?: string;
215
+
209
216
  /**
210
217
  * When true, credits spent on a generation with this model are not automatically
211
218
  * refunded if the generation fails. Absent or false means failed generations are
@@ -548,6 +555,13 @@ export namespace TrainActionResponse {
548
555
  */
549
556
  min?: number;
550
557
 
558
+ /**
559
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
560
+ * \`file_array\` input types for video and audio assets. Validated against
561
+ * \`asset.properties.duration\` at job creation time.
562
+ */
563
+ minDuration?: number;
564
+
551
565
  /**
552
566
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
553
567
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1839,6 +1853,13 @@ export namespace TrainTriggerResponse {
1839
1853
  */
1840
1854
  min?: number;
1841
1855
 
1856
+ /**
1857
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1858
+ * \`file_array\` input types for video and audio assets. Validated against
1859
+ * \`asset.properties.duration\` at job creation time.
1860
+ */
1861
+ minDuration?: number;
1862
+
1842
1863
  /**
1843
1864
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1844
1865
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2069,6 +2090,13 @@ export namespace TrainTriggerResponse {
2069
2090
  */
2070
2091
  min?: number;
2071
2092
 
2093
+ /**
2094
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2095
+ * \`file_array\` input types for video and audio assets. Validated against
2096
+ * \`asset.properties.duration\` at job creation time.
2097
+ */
2098
+ minDuration?: number;
2099
+
2072
2100
  /**
2073
2101
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2074
2102
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2506,6 +2534,7 @@ export namespace TrainTriggerResponse {
2506
2534
  | 'video23d'
2507
2535
  | 'video2audio'
2508
2536
  | 'video2img'
2537
+ | 'video2txt'
2509
2538
  | 'video2video'
2510
2539
  >;
2511
2540
 
@@ -2624,6 +2653,12 @@ export namespace TrainTriggerResponse {
2624
2653
  */
2625
2654
  concepts?: Array<Model.Concept>;
2626
2655
 
2656
+ /**
2657
+ * The model deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
2658
+ * Only set on deleted models, listed with `status=deleted`.
2659
+ */
2660
+ deletedAt?: string;
2661
+
2627
2662
  /**
2628
2663
  * When true, credits spent on a generation with this model are not automatically
2629
2664
  * refunded if the generation fails. Absent or false means failed generations are
@@ -2966,6 +3001,13 @@ export namespace TrainTriggerResponse {
2966
3001
  */
2967
3002
  min?: number;
2968
3003
 
3004
+ /**
3005
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
3006
+ * \`file_array\` input types for video and audio assets. Validated against
3007
+ * \`asset.properties.duration\` at job creation time.
3008
+ */
3009
+ minDuration?: number;
3010
+
2969
3011
  /**
2970
3012
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2971
3013
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -67,6 +67,7 @@ export interface RecommendationListModelsResponse {
67
67
  | 'video23d'
68
68
  | 'video2audio'
69
69
  | 'video2img'
70
+ | 'video2txt'
70
71
  | 'video2video'
71
72
  >;
72
73
 
@@ -185,6 +186,12 @@ export interface RecommendationListModelsResponse {
185
186
  */
186
187
  concepts?: Array<RecommendationListModelsResponse.Concept>;
187
188
 
189
+ /**
190
+ * The model deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
191
+ * Only set on deleted models, listed with `status=deleted`.
192
+ */
193
+ deletedAt?: string;
194
+
188
195
  /**
189
196
  * When true, credits spent on a generation with this model are not automatically
190
197
  * refunded if the generation fails. Absent or false means failed generations are
@@ -527,6 +534,13 @@ export namespace RecommendationListModelsResponse {
527
534
  */
528
535
  min?: number;
529
536
 
537
+ /**
538
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
539
+ * \`file_array\` input types for video and audio assets. Validated against
540
+ * \`asset.properties.duration\` at job creation time.
541
+ */
542
+ minDuration?: number;
543
+
530
544
  /**
531
545
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
532
546
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1376,9 +1390,9 @@ export interface RecommendationListModelsParams extends RecommendationsCursorPar
1376
1390
  * controlnet_reference, controlnet_img2img, controlnet_inpaint,
1377
1391
  * controlnet_inpaint_ip_adapter, controlnet_texture, img23d, txt23d, video23d,
1378
1392
  * 3d23d, img2video, txt2video, video2video, video2img, txt2audio, audio2audio,
1379
- * audio2video, video2audio, txt2txt, img2txt, audio2txt. Examples: `txt2img`,
1380
- * `img2img`. Also accepts prefixes or suffixes values such as `txt2`, `img2`,
1381
- * `inpaint`, `control`. Default: no filter
1393
+ * audio2video, video2audio, txt2txt, img2txt, audio2txt, video2txt. Examples:
1394
+ * `txt2img`, `img2img`. Also accepts prefixes or suffixes values such as `txt2`,
1395
+ * `img2`, `inpaint`, `control`. Default: no filter
1382
1396
  */
1383
1397
  capabilities?: Array<
1384
1398
  | 'txt2img'
@@ -1414,6 +1428,7 @@ export interface RecommendationListModelsParams extends RecommendationsCursorPar
1414
1428
  | 'txt2txt'
1415
1429
  | 'img2txt'
1416
1430
  | 'audio2txt'
1431
+ | 'video2txt'
1417
1432
  >;
1418
1433
 
1419
1434
  /**
@@ -406,6 +406,7 @@ export namespace UsageListResponse {
406
406
  | 'video23d'
407
407
  | 'video2audio'
408
408
  | 'video2img'
409
+ | 'video2txt'
409
410
  | 'video2video'
410
411
  | 'voice-clone';
411
412
  }
@@ -497,6 +498,7 @@ export namespace UsageListResponse {
497
498
  | 'video23d'
498
499
  | 'video2audio'
499
500
  | 'video2img'
501
+ | 'video2txt'
500
502
  | 'video2video'
501
503
  | 'voice-clone';
502
504
  }
@@ -1081,6 +1083,13 @@ export namespace UsageListResponse {
1081
1083
  */
1082
1084
  min?: number;
1083
1085
 
1086
+ /**
1087
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1088
+ * \`file_array\` input types for video and audio assets. Validated against
1089
+ * \`asset.properties.duration\` at job creation time.
1090
+ */
1091
+ minDuration?: number;
1092
+
1084
1093
  /**
1085
1094
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1086
1095
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1311,6 +1320,13 @@ export namespace UsageListResponse {
1311
1320
  */
1312
1321
  min?: number;
1313
1322
 
1323
+ /**
1324
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1325
+ * \`file_array\` input types for video and audio assets. Validated against
1326
+ * \`asset.properties.duration\` at job creation time.
1327
+ */
1328
+ minDuration?: number;
1329
+
1314
1330
  /**
1315
1331
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1316
1332
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -110,9 +110,8 @@ export class Workflows extends APIResource {
110
110
 
111
111
  /**
112
112
  * Respond to a user-approval node in a workflow. Pass action="approve" (default)
113
- * to advance the workflow, or action="reject" to mark the node Rejected. A
114
- * rejected stand-alone node cancels the workflow; a rejected ForEach iteration
115
- * cascades to the surrounding loop.
113
+ * to advance the workflow, or action="reject" to mark the node Rejected and cancel
114
+ * the workflow, even inside a ForEach iteration (other iterations are left as-is).
116
115
  */
117
116
  userApproval(
118
117
  workflowID: string,
@@ -529,6 +528,13 @@ export namespace WorkflowCreateResponse {
529
528
  */
530
529
  min?: number;
531
530
 
531
+ /**
532
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
533
+ * \`file_array\` input types for video and audio assets. Validated against
534
+ * \`asset.properties.duration\` at job creation time.
535
+ */
536
+ minDuration?: number;
537
+
532
538
  /**
533
539
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
534
540
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -759,6 +765,13 @@ export namespace WorkflowCreateResponse {
759
765
  */
760
766
  min?: number;
761
767
 
768
+ /**
769
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
770
+ * \`file_array\` input types for video and audio assets. Validated against
771
+ * \`asset.properties.duration\` at job creation time.
772
+ */
773
+ minDuration?: number;
774
+
762
775
  /**
763
776
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
764
777
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1203,6 +1216,13 @@ export namespace WorkflowCreateResponse {
1203
1216
  */
1204
1217
  min?: number;
1205
1218
 
1219
+ /**
1220
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1221
+ * \`file_array\` input types for video and audio assets. Validated against
1222
+ * \`asset.properties.duration\` at job creation time.
1223
+ */
1224
+ minDuration?: number;
1225
+
1206
1226
  /**
1207
1227
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1208
1228
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -1911,6 +1931,13 @@ export namespace WorkflowRetrieveResponse {
1911
1931
  */
1912
1932
  min?: number;
1913
1933
 
1934
+ /**
1935
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
1936
+ * \`file_array\` input types for video and audio assets. Validated against
1937
+ * \`asset.properties.duration\` at job creation time.
1938
+ */
1939
+ minDuration?: number;
1940
+
1914
1941
  /**
1915
1942
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1916
1943
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2141,6 +2168,13 @@ export namespace WorkflowRetrieveResponse {
2141
2168
  */
2142
2169
  min?: number;
2143
2170
 
2171
+ /**
2172
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2173
+ * \`file_array\` input types for video and audio assets. Validated against
2174
+ * \`asset.properties.duration\` at job creation time.
2175
+ */
2176
+ minDuration?: number;
2177
+
2144
2178
  /**
2145
2179
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2146
2180
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -2585,6 +2619,13 @@ export namespace WorkflowRetrieveResponse {
2585
2619
  */
2586
2620
  min?: number;
2587
2621
 
2622
+ /**
2623
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
2624
+ * \`file_array\` input types for video and audio assets. Validated against
2625
+ * \`asset.properties.duration\` at job creation time.
2626
+ */
2627
+ minDuration?: number;
2628
+
2588
2629
  /**
2589
2630
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2590
2631
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -3293,6 +3334,13 @@ export namespace WorkflowUpdateResponse {
3293
3334
  */
3294
3335
  min?: number;
3295
3336
 
3337
+ /**
3338
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
3339
+ * \`file_array\` input types for video and audio assets. Validated against
3340
+ * \`asset.properties.duration\` at job creation time.
3341
+ */
3342
+ minDuration?: number;
3343
+
3296
3344
  /**
3297
3345
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
3298
3346
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -3523,6 +3571,13 @@ export namespace WorkflowUpdateResponse {
3523
3571
  */
3524
3572
  min?: number;
3525
3573
 
3574
+ /**
3575
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
3576
+ * \`file_array\` input types for video and audio assets. Validated against
3577
+ * \`asset.properties.duration\` at job creation time.
3578
+ */
3579
+ minDuration?: number;
3580
+
3526
3581
  /**
3527
3582
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
3528
3583
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -3967,6 +4022,13 @@ export namespace WorkflowUpdateResponse {
3967
4022
  */
3968
4023
  min?: number;
3969
4024
 
4025
+ /**
4026
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
4027
+ * \`file_array\` input types for video and audio assets. Validated against
4028
+ * \`asset.properties.duration\` at job creation time.
4029
+ */
4030
+ minDuration?: number;
4031
+
3970
4032
  /**
3971
4033
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
3972
4034
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -4576,6 +4638,13 @@ export namespace WorkflowListResponse {
4576
4638
  */
4577
4639
  min?: number;
4578
4640
 
4641
+ /**
4642
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
4643
+ * \`file_array\` input types for video and audio assets. Validated against
4644
+ * \`asset.properties.duration\` at job creation time.
4645
+ */
4646
+ minDuration?: number;
4647
+
4579
4648
  /**
4580
4649
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
4581
4650
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -4990,6 +5059,13 @@ export namespace WorkflowListResponse {
4990
5059
  */
4991
5060
  min?: number;
4992
5061
 
5062
+ /**
5063
+ * The minimum 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
+ minDuration?: number;
5068
+
4993
5069
  /**
4994
5070
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
4995
5071
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -5220,6 +5296,13 @@ export namespace WorkflowListResponse {
5220
5296
  */
5221
5297
  min?: number;
5222
5298
 
5299
+ /**
5300
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
5301
+ * \`file_array\` input types for video and audio assets. Validated against
5302
+ * \`asset.properties.duration\` at job creation time.
5303
+ */
5304
+ minDuration?: number;
5305
+
5223
5306
  /**
5224
5307
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5225
5308
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -6123,6 +6206,13 @@ export namespace WorkflowRunResponse {
6123
6206
  */
6124
6207
  min?: number;
6125
6208
 
6209
+ /**
6210
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
6211
+ * \`file_array\` input types for video and audio assets. Validated against
6212
+ * \`asset.properties.duration\` at job creation time.
6213
+ */
6214
+ minDuration?: number;
6215
+
6126
6216
  /**
6127
6217
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
6128
6218
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -6353,6 +6443,13 @@ export namespace WorkflowRunResponse {
6353
6443
  */
6354
6444
  min?: number;
6355
6445
 
6446
+ /**
6447
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
6448
+ * \`file_array\` input types for video and audio assets. Validated against
6449
+ * \`asset.properties.duration\` at job creation time.
6450
+ */
6451
+ minDuration?: number;
6452
+
6356
6453
  /**
6357
6454
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
6358
6455
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -7118,6 +7215,13 @@ export namespace WorkflowRunResponse {
7118
7215
  */
7119
7216
  min?: number;
7120
7217
 
7218
+ /**
7219
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
7220
+ * \`file_array\` input types for video and audio assets. Validated against
7221
+ * \`asset.properties.duration\` at job creation time.
7222
+ */
7223
+ minDuration?: number;
7224
+
7121
7225
  /**
7122
7226
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
7123
7227
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -7348,6 +7452,13 @@ export namespace WorkflowRunResponse {
7348
7452
  */
7349
7453
  min?: number;
7350
7454
 
7455
+ /**
7456
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
7457
+ * \`file_array\` input types for video and audio assets. Validated against
7458
+ * \`asset.properties.duration\` at job creation time.
7459
+ */
7460
+ minDuration?: number;
7461
+
7351
7462
  /**
7352
7463
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
7353
7464
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -7792,6 +7903,13 @@ export namespace WorkflowRunResponse {
7792
7903
  */
7793
7904
  min?: number;
7794
7905
 
7906
+ /**
7907
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
7908
+ * \`file_array\` input types for video and audio assets. Validated against
7909
+ * \`asset.properties.duration\` at job creation time.
7910
+ */
7911
+ minDuration?: number;
7912
+
7795
7913
  /**
7796
7914
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
7797
7915
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -8549,6 +8667,13 @@ export namespace WorkflowUserApprovalResponse {
8549
8667
  */
8550
8668
  min?: number;
8551
8669
 
8670
+ /**
8671
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
8672
+ * \`file_array\` input types for video and audio assets. Validated against
8673
+ * \`asset.properties.duration\` at job creation time.
8674
+ */
8675
+ minDuration?: number;
8676
+
8552
8677
  /**
8553
8678
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
8554
8679
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -8779,6 +8904,13 @@ export namespace WorkflowUserApprovalResponse {
8779
8904
  */
8780
8905
  min?: number;
8781
8906
 
8907
+ /**
8908
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
8909
+ * \`file_array\` input types for video and audio assets. Validated against
8910
+ * \`asset.properties.duration\` at job creation time.
8911
+ */
8912
+ minDuration?: number;
8913
+
8782
8914
  /**
8783
8915
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
8784
8916
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -9599,6 +9731,13 @@ export namespace WorkflowUserSelectionResponse {
9599
9731
  */
9600
9732
  min?: number;
9601
9733
 
9734
+ /**
9735
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
9736
+ * \`file_array\` input types for video and audio assets. Validated against
9737
+ * \`asset.properties.duration\` at job creation time.
9738
+ */
9739
+ minDuration?: number;
9740
+
9602
9741
  /**
9603
9742
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
9604
9743
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -9829,6 +9968,13 @@ export namespace WorkflowUserSelectionResponse {
9829
9968
  */
9830
9969
  min?: number;
9831
9970
 
9971
+ /**
9972
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
9973
+ * \`file_array\` input types for video and audio assets. Validated against
9974
+ * \`asset.properties.duration\` at job creation time.
9975
+ */
9976
+ minDuration?: number;
9977
+
9832
9978
  /**
9833
9979
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
9834
9980
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -10573,6 +10719,13 @@ export namespace WorkflowUpdateParams {
10573
10719
  */
10574
10720
  min?: number;
10575
10721
 
10722
+ /**
10723
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
10724
+ * \`file_array\` input types for video and audio assets. Validated against
10725
+ * \`asset.properties.duration\` at job creation time.
10726
+ */
10727
+ minDuration?: number;
10728
+
10576
10729
  /**
10577
10730
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
10578
10731
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -10803,6 +10956,13 @@ export namespace WorkflowUpdateParams {
10803
10956
  */
10804
10957
  min?: number;
10805
10958
 
10959
+ /**
10960
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
10961
+ * \`file_array\` input types for video and audio assets. Validated against
10962
+ * \`asset.properties.duration\` at job creation time.
10963
+ */
10964
+ minDuration?: number;
10965
+
10806
10966
  /**
10807
10967
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
10808
10968
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -11247,6 +11407,13 @@ export namespace WorkflowUpdateParams {
11247
11407
  */
11248
11408
  min?: number;
11249
11409
 
11410
+ /**
11411
+ * The minimum allowed media duration in seconds. Only applies to \`file\` and
11412
+ * \`file_array\` input types for video and audio assets. Validated against
11413
+ * \`asset.properties.duration\` at job creation time.
11414
+ */
11415
+ minDuration?: number;
11416
+
11250
11417
  /**
11251
11418
  * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
11252
11419
  * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
@@ -11507,9 +11674,9 @@ export interface WorkflowUserApprovalParams {
11507
11674
 
11508
11675
  /**
11509
11676
  * Body param: Decision taken on the approval node. "approve" marks it Success and
11510
- * advances the workflow; "reject" marks it Rejected and either cancels the
11511
- * workflow or — if the node is inside a ForEach iteration — cascades to the loop.
11512
- * Defaults to "approve" for backward compatibility.
11677
+ * advances the workflow; "reject" marks it Rejected and cancels the workflow, even
11678
+ * inside a ForEach iteration (other iterations are left as-is). Defaults to
11679
+ * "approve" for backward compatibility.
11513
11680
  */
11514
11681
  action?: 'approve' | 'reject';
11515
11682
  }
@@ -11565,9 +11732,9 @@ export interface WorkflowApproveUserParams {
11565
11732
 
11566
11733
  /**
11567
11734
  * Body param: Decision taken on the approval node. "approve" marks it Success and
11568
- * advances the workflow; "reject" marks it Rejected and either cancels the
11569
- * workflow or — if the node is inside a ForEach iteration — cascades to the loop.
11570
- * Defaults to "approve" for backward compatibility.
11735
+ * advances the workflow; "reject" marks it Rejected and cancels the workflow, even
11736
+ * inside a ForEach iteration (other iterations are left as-is). Defaults to
11737
+ * "approve" for backward compatibility.
11571
11738
  */
11572
11739
  action?: 'approve' | 'reject';
11573
11740
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.3.0'; // x-release-please-version
1
+ export const VERSION = '3.4.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.3.0";
1
+ export declare const VERSION = "3.4.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.3.0";
1
+ export declare const VERSION = "3.4.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 = '3.3.0'; // x-release-please-version
4
+ exports.VERSION = '3.4.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.3.0'; // x-release-please-version
1
+ export const VERSION = '3.4.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map