@scenario-labs/sdk 1.2.0 → 2.0.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 (147) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/client.js +51 -38
  3. package/client.js.map +1 -1
  4. package/client.mjs +51 -39
  5. package/client.mjs.map +1 -1
  6. package/core/api-promise.js +7 -7
  7. package/core/api-promise.js.map +1 -1
  8. package/core/api-promise.mjs +7 -7
  9. package/core/api-promise.mjs.map +1 -1
  10. package/core/error.js +6 -0
  11. package/core/error.js.map +1 -1
  12. package/core/error.mjs +6 -0
  13. package/core/error.mjs.map +1 -1
  14. package/core/pagination.js +24 -6
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +24 -6
  17. package/core/pagination.mjs.map +1 -1
  18. package/core/resource.js +1 -0
  19. package/core/resource.js.map +1 -1
  20. package/core/resource.mjs +1 -0
  21. package/core/resource.mjs.map +1 -1
  22. package/index.d.mts +1 -0
  23. package/index.d.mts.map +1 -1
  24. package/index.d.ts +1 -0
  25. package/index.d.ts.map +1 -1
  26. package/index.js +3 -1
  27. package/index.js.map +1 -1
  28. package/index.mjs +1 -0
  29. package/index.mjs.map +1 -1
  30. package/internal/detect-platform.js +1 -1
  31. package/internal/detect-platform.js.map +1 -1
  32. package/internal/detect-platform.mjs +1 -1
  33. package/internal/detect-platform.mjs.map +1 -1
  34. package/internal/qs/stringify.js +1 -1
  35. package/internal/qs/stringify.js.map +1 -1
  36. package/internal/qs/stringify.mjs +1 -1
  37. package/internal/qs/stringify.mjs.map +1 -1
  38. package/internal/to-file.js +2 -2
  39. package/internal/to-file.js.map +1 -1
  40. package/internal/to-file.mjs +2 -2
  41. package/internal/to-file.mjs.map +1 -1
  42. package/internal/tslib.js +0 -18
  43. package/internal/tslib.mjs +1 -17
  44. package/internal/types.d.mts +6 -6
  45. package/internal/types.d.mts.map +1 -1
  46. package/internal/types.d.ts +6 -6
  47. package/internal/types.d.ts.map +1 -1
  48. package/internal/utils/log.d.mts.map +1 -1
  49. package/internal/utils/log.d.ts.map +1 -1
  50. package/internal/utils/log.js +2 -0
  51. package/internal/utils/log.js.map +1 -1
  52. package/internal/utils/log.mjs +2 -0
  53. package/internal/utils/log.mjs.map +1 -1
  54. package/lib/job.js +3 -3
  55. package/lib/job.js.map +1 -1
  56. package/lib/job.mjs +3 -3
  57. package/lib/job.mjs.map +1 -1
  58. package/lib/models.js +1 -4
  59. package/lib/models.js.map +1 -1
  60. package/lib/models.mjs +1 -4
  61. package/lib/models.mjs.map +1 -1
  62. package/lib/scenario.js +6 -9
  63. package/lib/scenario.js.map +1 -1
  64. package/lib/scenario.mjs +6 -9
  65. package/lib/scenario.mjs.map +1 -1
  66. package/lib/upload.js +6 -6
  67. package/lib/upload.js.map +1 -1
  68. package/lib/upload.mjs +6 -6
  69. package/lib/upload.mjs.map +1 -1
  70. package/lib/workflow_converter.d.mts +174 -0
  71. package/lib/workflow_converter.d.mts.map +1 -0
  72. package/lib/workflow_converter.d.ts +174 -0
  73. package/lib/workflow_converter.d.ts.map +1 -0
  74. package/lib/workflow_converter.js +995 -0
  75. package/lib/workflow_converter.js.map +1 -0
  76. package/lib/workflow_converter.mjs +992 -0
  77. package/lib/workflow_converter.mjs.map +1 -0
  78. package/package.json +1 -1
  79. package/resources/assets/assets.d.mts +12 -0
  80. package/resources/assets/assets.d.mts.map +1 -1
  81. package/resources/assets/assets.d.ts +12 -0
  82. package/resources/assets/assets.d.ts.map +1 -1
  83. package/resources/assets/assets.js +1 -4
  84. package/resources/assets/assets.js.map +1 -1
  85. package/resources/assets/assets.mjs +1 -4
  86. package/resources/assets/assets.mjs.map +1 -1
  87. package/resources/collections/collections.js +2 -5
  88. package/resources/collections/collections.js.map +1 -1
  89. package/resources/collections/collections.mjs +2 -5
  90. package/resources/collections/collections.mjs.map +1 -1
  91. package/resources/generate.d.mts +96 -0
  92. package/resources/generate.d.mts.map +1 -1
  93. package/resources/generate.d.ts +96 -0
  94. package/resources/generate.d.ts.map +1 -1
  95. package/resources/jobs.d.mts +36 -0
  96. package/resources/jobs.d.mts.map +1 -1
  97. package/resources/jobs.d.ts +36 -0
  98. package/resources/jobs.d.ts.map +1 -1
  99. package/resources/models/examples.d.mts +24 -0
  100. package/resources/models/examples.d.mts.map +1 -1
  101. package/resources/models/examples.d.ts +24 -0
  102. package/resources/models/examples.d.ts.map +1 -1
  103. package/resources/models/models.d.mts +42 -0
  104. package/resources/models/models.d.mts.map +1 -1
  105. package/resources/models/models.d.ts +42 -0
  106. package/resources/models/models.d.ts.map +1 -1
  107. package/resources/models/models.js +4 -7
  108. package/resources/models/models.js.map +1 -1
  109. package/resources/models/models.mjs +4 -7
  110. package/resources/models/models.mjs.map +1 -1
  111. package/resources/models/train.d.mts +24 -0
  112. package/resources/models/train.d.mts.map +1 -1
  113. package/resources/models/train.d.ts +24 -0
  114. package/resources/models/train.d.ts.map +1 -1
  115. package/resources/pricing/pricing.js +1 -4
  116. package/resources/pricing/pricing.js.map +1 -1
  117. package/resources/pricing/pricing.mjs +1 -4
  118. package/resources/pricing/pricing.mjs.map +1 -1
  119. package/resources/usages.d.mts +23 -0
  120. package/resources/usages.d.mts.map +1 -1
  121. package/resources/usages.d.ts +23 -0
  122. package/resources/usages.d.ts.map +1 -1
  123. package/resources/workflows.d.mts +132 -0
  124. package/resources/workflows.d.mts.map +1 -1
  125. package/resources/workflows.d.ts +132 -0
  126. package/resources/workflows.d.ts.map +1 -1
  127. package/resources/workflows.js +4 -7
  128. package/resources/workflows.js.map +1 -1
  129. package/resources/workflows.mjs +4 -7
  130. package/resources/workflows.mjs.map +1 -1
  131. package/src/index.ts +14 -0
  132. package/src/internal/types.ts +6 -8
  133. package/src/internal/utils/log.ts +2 -0
  134. package/src/lib/workflow_converter.ts +1250 -0
  135. package/src/resources/assets/assets.ts +14 -0
  136. package/src/resources/generate.ts +112 -0
  137. package/src/resources/jobs.ts +42 -0
  138. package/src/resources/models/examples.ts +28 -0
  139. package/src/resources/models/models.ts +49 -0
  140. package/src/resources/models/train.ts +28 -0
  141. package/src/resources/usages.ts +26 -0
  142. package/src/resources/workflows.ts +154 -0
  143. package/src/version.ts +1 -1
  144. package/version.d.mts +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/version.mjs +1 -1
@@ -9488,6 +9488,13 @@ export namespace AssetUploadResponse {
9488
9488
  */
9489
9489
  max?: number;
9490
9490
 
9491
+ /**
9492
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
9493
+ * \`file_array\` input types for video and audio assets. Validated against
9494
+ * \`asset.properties.duration\` at job creation time.
9495
+ */
9496
+ maxDuration?: number;
9497
+
9491
9498
  /**
9492
9499
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
9493
9500
  * \`string_array\`.
@@ -9714,6 +9721,13 @@ export namespace AssetUploadResponse {
9714
9721
  */
9715
9722
  max?: number;
9716
9723
 
9724
+ /**
9725
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
9726
+ * \`file_array\` input types for video and audio assets. Validated against
9727
+ * \`asset.properties.duration\` at job creation time.
9728
+ */
9729
+ maxDuration?: number;
9730
+
9717
9731
  /**
9718
9732
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
9719
9733
  * \`string_array\`.
@@ -509,6 +509,13 @@ export namespace GenerateCaptionResponse {
509
509
  */
510
510
  max?: number;
511
511
 
512
+ /**
513
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
514
+ * \`file_array\` input types for video and audio assets. Validated against
515
+ * \`asset.properties.duration\` at job creation time.
516
+ */
517
+ maxDuration?: number;
518
+
512
519
  /**
513
520
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
514
521
  * \`string_array\`.
@@ -735,6 +742,13 @@ export namespace GenerateCaptionResponse {
735
742
  */
736
743
  max?: number;
737
744
 
745
+ /**
746
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
747
+ * \`file_array\` input types for video and audio assets. Validated against
748
+ * \`asset.properties.duration\` at job creation time.
749
+ */
750
+ maxDuration?: number;
751
+
738
752
  /**
739
753
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
740
754
  * \`string_array\`.
@@ -1481,6 +1495,13 @@ export namespace GenerateDescribeStyleResponse {
1481
1495
  */
1482
1496
  max?: number;
1483
1497
 
1498
+ /**
1499
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1500
+ * \`file_array\` input types for video and audio assets. Validated against
1501
+ * \`asset.properties.duration\` at job creation time.
1502
+ */
1503
+ maxDuration?: number;
1504
+
1484
1505
  /**
1485
1506
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1486
1507
  * \`string_array\`.
@@ -1707,6 +1728,13 @@ export namespace GenerateDescribeStyleResponse {
1707
1728
  */
1708
1729
  max?: number;
1709
1730
 
1731
+ /**
1732
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1733
+ * \`file_array\` input types for video and audio assets. Validated against
1734
+ * \`asset.properties.duration\` at job creation time.
1735
+ */
1736
+ maxDuration?: number;
1737
+
1710
1738
  /**
1711
1739
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1712
1740
  * \`string_array\`.
@@ -2445,6 +2473,13 @@ export namespace GenerateDetectResponse {
2445
2473
  */
2446
2474
  max?: number;
2447
2475
 
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;
2482
+
2448
2483
  /**
2449
2484
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2450
2485
  * \`string_array\`.
@@ -2671,6 +2706,13 @@ export namespace GenerateDetectResponse {
2671
2706
  */
2672
2707
  max?: number;
2673
2708
 
2709
+ /**
2710
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2711
+ * \`file_array\` input types for video and audio assets. Validated against
2712
+ * \`asset.properties.duration\` at job creation time.
2713
+ */
2714
+ maxDuration?: number;
2715
+
2674
2716
  /**
2675
2717
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2676
2718
  * \`string_array\`.
@@ -4524,6 +4566,13 @@ export namespace GenerateEmbedResponse {
4524
4566
  */
4525
4567
  max?: number;
4526
4568
 
4569
+ /**
4570
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4571
+ * \`file_array\` input types for video and audio assets. Validated against
4572
+ * \`asset.properties.duration\` at job creation time.
4573
+ */
4574
+ maxDuration?: number;
4575
+
4527
4576
  /**
4528
4577
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4529
4578
  * \`string_array\`.
@@ -4750,6 +4799,13 @@ export namespace GenerateEmbedResponse {
4750
4799
  */
4751
4800
  max?: number;
4752
4801
 
4802
+ /**
4803
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4804
+ * \`file_array\` input types for video and audio assets. Validated against
4805
+ * \`asset.properties.duration\` at job creation time.
4806
+ */
4807
+ maxDuration?: number;
4808
+
4753
4809
  /**
4754
4810
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4755
4811
  * \`string_array\`.
@@ -5488,6 +5544,13 @@ export namespace GeneratePatchResponse {
5488
5544
  */
5489
5545
  max?: number;
5490
5546
 
5547
+ /**
5548
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5549
+ * \`file_array\` input types for video and audio assets. Validated against
5550
+ * \`asset.properties.duration\` at job creation time.
5551
+ */
5552
+ maxDuration?: number;
5553
+
5491
5554
  /**
5492
5555
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5493
5556
  * \`string_array\`.
@@ -5714,6 +5777,13 @@ export namespace GeneratePatchResponse {
5714
5777
  */
5715
5778
  max?: number;
5716
5779
 
5780
+ /**
5781
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5782
+ * \`file_array\` input types for video and audio assets. Validated against
5783
+ * \`asset.properties.duration\` at job creation time.
5784
+ */
5785
+ maxDuration?: number;
5786
+
5717
5787
  /**
5718
5788
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5719
5789
  * \`string_array\`.
@@ -7570,6 +7640,13 @@ export namespace GeneratePromptResponse {
7570
7640
  */
7571
7641
  max?: number;
7572
7642
 
7643
+ /**
7644
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
7645
+ * \`file_array\` input types for video and audio assets. Validated against
7646
+ * \`asset.properties.duration\` at job creation time.
7647
+ */
7648
+ maxDuration?: number;
7649
+
7573
7650
  /**
7574
7651
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
7575
7652
  * \`string_array\`.
@@ -7796,6 +7873,13 @@ export namespace GeneratePromptResponse {
7796
7873
  */
7797
7874
  max?: number;
7798
7875
 
7876
+ /**
7877
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
7878
+ * \`file_array\` input types for video and audio assets. Validated against
7879
+ * \`asset.properties.duration\` at job creation time.
7880
+ */
7881
+ maxDuration?: number;
7882
+
7799
7883
  /**
7800
7884
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
7801
7885
  * \`string_array\`.
@@ -8532,6 +8616,13 @@ export namespace GenerateRunModelResponse {
8532
8616
  */
8533
8617
  max?: number;
8534
8618
 
8619
+ /**
8620
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
8621
+ * \`file_array\` input types for video and audio assets. Validated against
8622
+ * \`asset.properties.duration\` at job creation time.
8623
+ */
8624
+ maxDuration?: number;
8625
+
8535
8626
  /**
8536
8627
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
8537
8628
  * \`string_array\`.
@@ -8758,6 +8849,13 @@ export namespace GenerateRunModelResponse {
8758
8849
  */
8759
8850
  max?: number;
8760
8851
 
8852
+ /**
8853
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
8854
+ * \`file_array\` input types for video and audio assets. Validated against
8855
+ * \`asset.properties.duration\` at job creation time.
8856
+ */
8857
+ maxDuration?: number;
8858
+
8761
8859
  /**
8762
8860
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
8763
8861
  * \`string_array\`.
@@ -9504,6 +9602,13 @@ export namespace GenerateTranslateResponse {
9504
9602
  */
9505
9603
  max?: number;
9506
9604
 
9605
+ /**
9606
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
9607
+ * \`file_array\` input types for video and audio assets. Validated against
9608
+ * \`asset.properties.duration\` at job creation time.
9609
+ */
9610
+ maxDuration?: number;
9611
+
9507
9612
  /**
9508
9613
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
9509
9614
  * \`string_array\`.
@@ -9730,6 +9835,13 @@ export namespace GenerateTranslateResponse {
9730
9835
  */
9731
9836
  max?: number;
9732
9837
 
9838
+ /**
9839
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
9840
+ * \`file_array\` input types for video and audio assets. Validated against
9841
+ * \`asset.properties.duration\` at job creation time.
9842
+ */
9843
+ maxDuration?: number;
9844
+
9733
9845
  /**
9734
9846
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
9735
9847
  * \`string_array\`.
@@ -436,6 +436,13 @@ export namespace JobRetrieveResponse {
436
436
  */
437
437
  max?: number;
438
438
 
439
+ /**
440
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
441
+ * \`file_array\` input types for video and audio assets. Validated against
442
+ * \`asset.properties.duration\` at job creation time.
443
+ */
444
+ maxDuration?: number;
445
+
439
446
  /**
440
447
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
441
448
  * \`string_array\`.
@@ -662,6 +669,13 @@ export namespace JobRetrieveResponse {
662
669
  */
663
670
  max?: number;
664
671
 
672
+ /**
673
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
674
+ * \`file_array\` input types for video and audio assets. Validated against
675
+ * \`asset.properties.duration\` at job creation time.
676
+ */
677
+ maxDuration?: number;
678
+
665
679
  /**
666
680
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
667
681
  * \`string_array\`.
@@ -1383,6 +1397,13 @@ export namespace JobListResponse {
1383
1397
  */
1384
1398
  max?: number;
1385
1399
 
1400
+ /**
1401
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1402
+ * \`file_array\` input types for video and audio assets. Validated against
1403
+ * \`asset.properties.duration\` at job creation time.
1404
+ */
1405
+ maxDuration?: number;
1406
+
1386
1407
  /**
1387
1408
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1388
1409
  * \`string_array\`.
@@ -1609,6 +1630,13 @@ export namespace JobListResponse {
1609
1630
  */
1610
1631
  max?: number;
1611
1632
 
1633
+ /**
1634
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1635
+ * \`file_array\` input types for video and audio assets. Validated against
1636
+ * \`asset.properties.duration\` at job creation time.
1637
+ */
1638
+ maxDuration?: number;
1639
+
1612
1640
  /**
1613
1641
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1614
1642
  * \`string_array\`.
@@ -2334,6 +2362,13 @@ export namespace JobTriggerActionResponse {
2334
2362
  */
2335
2363
  max?: number;
2336
2364
 
2365
+ /**
2366
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2367
+ * \`file_array\` input types for video and audio assets. Validated against
2368
+ * \`asset.properties.duration\` at job creation time.
2369
+ */
2370
+ maxDuration?: number;
2371
+
2337
2372
  /**
2338
2373
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2339
2374
  * \`string_array\`.
@@ -2560,6 +2595,13 @@ export namespace JobTriggerActionResponse {
2560
2595
  */
2561
2596
  max?: number;
2562
2597
 
2598
+ /**
2599
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2600
+ * \`file_array\` input types for video and audio assets. Validated against
2601
+ * \`asset.properties.duration\` at job creation time.
2602
+ */
2603
+ maxDuration?: number;
2604
+
2563
2605
  /**
2564
2606
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2565
2607
  * \`string_array\`.
@@ -1935,6 +1935,13 @@ export namespace ExampleUpdateResponse {
1935
1935
  */
1936
1936
  max?: number;
1937
1937
 
1938
+ /**
1939
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1940
+ * \`file_array\` input types for video and audio assets. Validated against
1941
+ * \`asset.properties.duration\` at job creation time.
1942
+ */
1943
+ maxDuration?: number;
1944
+
1938
1945
  /**
1939
1946
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1940
1947
  * \`string_array\`.
@@ -2161,6 +2168,13 @@ export namespace ExampleUpdateResponse {
2161
2168
  */
2162
2169
  max?: number;
2163
2170
 
2171
+ /**
2172
+ * The maximum 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
+ maxDuration?: number;
2177
+
2164
2178
  /**
2165
2179
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2166
2180
  * \`string_array\`.
@@ -4395,6 +4409,13 @@ export namespace ExampleListResponse {
4395
4409
  */
4396
4410
  max?: number;
4397
4411
 
4412
+ /**
4413
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4414
+ * \`file_array\` input types for video and audio assets. Validated against
4415
+ * \`asset.properties.duration\` at job creation time.
4416
+ */
4417
+ maxDuration?: number;
4418
+
4398
4419
  /**
4399
4420
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4400
4421
  * \`string_array\`.
@@ -4621,6 +4642,13 @@ export namespace ExampleListResponse {
4621
4642
  */
4622
4643
  max?: number;
4623
4644
 
4645
+ /**
4646
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4647
+ * \`file_array\` input types for video and audio assets. Validated against
4648
+ * \`asset.properties.duration\` at job creation time.
4649
+ */
4650
+ maxDuration?: number;
4651
+
4624
4652
  /**
4625
4653
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4626
4654
  * \`string_array\`.
@@ -638,6 +638,13 @@ export namespace ModelCreateResponse {
638
638
  */
639
639
  max?: number;
640
640
 
641
+ /**
642
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
643
+ * \`file_array\` input types for video and audio assets. Validated against
644
+ * \`asset.properties.duration\` at job creation time.
645
+ */
646
+ maxDuration?: number;
647
+
641
648
  /**
642
649
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
643
650
  * \`string_array\`.
@@ -1936,6 +1943,13 @@ export namespace ModelRetrieveResponse {
1936
1943
  */
1937
1944
  max?: number;
1938
1945
 
1946
+ /**
1947
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1948
+ * \`file_array\` input types for video and audio assets. Validated against
1949
+ * \`asset.properties.duration\` at job creation time.
1950
+ */
1951
+ maxDuration?: number;
1952
+
1939
1953
  /**
1940
1954
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1941
1955
  * \`string_array\`.
@@ -3234,6 +3248,13 @@ export namespace ModelUpdateResponse {
3234
3248
  */
3235
3249
  max?: number;
3236
3250
 
3251
+ /**
3252
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
3253
+ * \`file_array\` input types for video and audio assets. Validated against
3254
+ * \`asset.properties.duration\` at job creation time.
3255
+ */
3256
+ maxDuration?: number;
3257
+
3237
3258
  /**
3238
3259
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
3239
3260
  * \`string_array\`.
@@ -4527,6 +4548,13 @@ export namespace ModelListResponse {
4527
4548
  */
4528
4549
  max?: number;
4529
4550
 
4551
+ /**
4552
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
4553
+ * \`file_array\` input types for video and audio assets. Validated against
4554
+ * \`asset.properties.duration\` at job creation time.
4555
+ */
4556
+ maxDuration?: number;
4557
+
4530
4558
  /**
4531
4559
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
4532
4560
  * \`string_array\`.
@@ -5826,6 +5854,13 @@ export namespace ModelCopyResponse {
5826
5854
  */
5827
5855
  max?: number;
5828
5856
 
5857
+ /**
5858
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
5859
+ * \`file_array\` input types for video and audio assets. Validated against
5860
+ * \`asset.properties.duration\` at job creation time.
5861
+ */
5862
+ maxDuration?: number;
5863
+
5829
5864
  /**
5830
5865
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
5831
5866
  * \`string_array\`.
@@ -7133,6 +7168,13 @@ export namespace ModelGetBulkResponse {
7133
7168
  */
7134
7169
  max?: number;
7135
7170
 
7171
+ /**
7172
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
7173
+ * \`file_array\` input types for video and audio assets. Validated against
7174
+ * \`asset.properties.duration\` at job creation time.
7175
+ */
7176
+ maxDuration?: number;
7177
+
7136
7178
  /**
7137
7179
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
7138
7180
  * \`string_array\`.
@@ -8431,6 +8473,13 @@ export namespace ModelTransferResponse {
8431
8473
  */
8432
8474
  max?: number;
8433
8475
 
8476
+ /**
8477
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
8478
+ * \`file_array\` input types for video and audio assets. Validated against
8479
+ * \`asset.properties.duration\` at job creation time.
8480
+ */
8481
+ maxDuration?: number;
8482
+
8434
8483
  /**
8435
8484
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
8436
8485
  * \`string_array\`.
@@ -511,6 +511,13 @@ export namespace TrainActionResponse {
511
511
  */
512
512
  max?: number;
513
513
 
514
+ /**
515
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
516
+ * \`file_array\` input types for video and audio assets. Validated against
517
+ * \`asset.properties.duration\` at job creation time.
518
+ */
519
+ maxDuration?: number;
520
+
514
521
  /**
515
522
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
516
523
  * \`string_array\`.
@@ -1743,6 +1750,13 @@ export namespace TrainTriggerResponse {
1743
1750
  */
1744
1751
  max?: number;
1745
1752
 
1753
+ /**
1754
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1755
+ * \`file_array\` input types for video and audio assets. Validated against
1756
+ * \`asset.properties.duration\` at job creation time.
1757
+ */
1758
+ maxDuration?: number;
1759
+
1746
1760
  /**
1747
1761
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1748
1762
  * \`string_array\`.
@@ -1969,6 +1983,13 @@ export namespace TrainTriggerResponse {
1969
1983
  */
1970
1984
  max?: number;
1971
1985
 
1986
+ /**
1987
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1988
+ * \`file_array\` input types for video and audio assets. Validated against
1989
+ * \`asset.properties.duration\` at job creation time.
1990
+ */
1991
+ maxDuration?: number;
1992
+
1972
1993
  /**
1973
1994
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1974
1995
  * \`string_array\`.
@@ -2767,6 +2788,13 @@ export namespace TrainTriggerResponse {
2767
2788
  */
2768
2789
  max?: number;
2769
2790
 
2791
+ /**
2792
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
2793
+ * \`file_array\` input types for video and audio assets. Validated against
2794
+ * \`asset.properties.duration\` at job creation time.
2795
+ */
2796
+ maxDuration?: number;
2797
+
2770
2798
  /**
2771
2799
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
2772
2800
  * \`string_array\`.
@@ -964,6 +964,13 @@ export namespace UsageListResponse {
964
964
  */
965
965
  max?: number;
966
966
 
967
+ /**
968
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
969
+ * \`file_array\` input types for video and audio assets. Validated against
970
+ * \`asset.properties.duration\` at job creation time.
971
+ */
972
+ maxDuration?: number;
973
+
967
974
  /**
968
975
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
969
976
  * \`string_array\`.
@@ -1190,6 +1197,13 @@ export namespace UsageListResponse {
1190
1197
  */
1191
1198
  max?: number;
1192
1199
 
1200
+ /**
1201
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
1202
+ * \`file_array\` input types for video and audio assets. Validated against
1203
+ * \`asset.properties.duration\` at job creation time.
1204
+ */
1205
+ maxDuration?: number;
1206
+
1193
1207
  /**
1194
1208
  * The maximum allowed length for \`string\` inputs. Also applies to each item in
1195
1209
  * \`string_array\`.
@@ -1734,6 +1748,18 @@ export interface UsageListParams {
1734
1748
  */
1735
1749
  activityOffset?: number;
1736
1750
 
1751
+ /**
1752
+ * When set, points whose numeric fields are all zero are removed from `usages`,
1753
+ * `modelUsages`, `assetUsages` and `nsfwUsages`. The parent entry (model, kind,
1754
+ * label, usageName) is preserved with `points: []` so callers still see every row.
1755
+ * Useful on wide windows × fine granularities × many models, where the zero-fill
1756
+ * can push the response past the 6 MB API Gateway sync limit. The bare
1757
+ * `?dropZeroPoints` form, plus any value (`true`, `1`, `yes`, `on`, …) enables it;
1758
+ * absent or explicit falsy literals (`false`, `0`, `no`, `off`) disable it.
1759
+ * Default disabled for backwards compatibility.
1760
+ */
1761
+ dropZeroPoints?: boolean;
1762
+
1737
1763
  /**
1738
1764
  * The end date of the usage in ISO 8601 format. If not provided, use default
1739
1765
  * timeRange. If provided, startDate is required.