@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.
- package/CHANGELOG.md +53 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +51 -38
- package/client.js.map +1 -1
- package/client.mjs +51 -39
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +7 -7
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +7 -7
- package/core/api-promise.mjs.map +1 -1
- package/core/error.js +6 -0
- package/core/error.js.map +1 -1
- package/core/error.mjs +6 -0
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +24 -6
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +24 -6
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js +1 -0
- package/core/resource.js.map +1 -1
- package/core/resource.mjs +1 -0
- package/core/resource.mjs.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +1 -1
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +2 -2
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +2 -2
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +0 -18
- package/internal/tslib.mjs +1 -17
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/asset.d.mts.map +1 -1
- package/lib/asset.d.ts.map +1 -1
- package/lib/asset.mjs.map +1 -1
- package/lib/generate.d.mts.map +1 -1
- package/lib/generate.d.ts.map +1 -1
- package/lib/generate.mjs.map +1 -1
- package/lib/job.d.mts.map +1 -1
- package/lib/job.d.ts.map +1 -1
- package/lib/job.js +3 -3
- package/lib/job.js.map +1 -1
- package/lib/job.mjs +3 -3
- package/lib/job.mjs.map +1 -1
- package/lib/models.d.mts.map +1 -1
- package/lib/models.d.ts.map +1 -1
- package/lib/models.js +1 -4
- package/lib/models.js.map +1 -1
- package/lib/models.mjs +1 -4
- package/lib/models.mjs.map +1 -1
- package/lib/scenario.d.mts.map +1 -1
- package/lib/scenario.d.ts.map +1 -1
- package/lib/scenario.js +6 -9
- package/lib/scenario.js.map +1 -1
- package/lib/scenario.mjs +6 -9
- package/lib/scenario.mjs.map +1 -1
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts.map +1 -1
- package/lib/upload.js +6 -6
- package/lib/upload.js.map +1 -1
- package/lib/upload.mjs +6 -6
- package/lib/upload.mjs.map +1 -1
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_converter.d.mts +185 -0
- package/lib/workflow_converter.d.mts.map +1 -0
- package/lib/workflow_converter.d.ts +185 -0
- package/lib/workflow_converter.d.ts.map +1 -0
- package/lib/workflow_converter.js +1102 -0
- package/lib/workflow_converter.js.map +1 -0
- package/lib/workflow_converter.mjs +1099 -0
- package/lib/workflow_converter.mjs.map +1 -0
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/assets/assets.d.mts +12 -0
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +12 -0
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +1 -4
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +1 -4
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.mjs.map +1 -1
- package/resources/assets/index.d.mts.map +1 -1
- package/resources/assets/index.d.ts.map +1 -1
- package/resources/assets/index.mjs.map +1 -1
- package/resources/assets.d.mts.map +1 -1
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.mjs.map +1 -1
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js +2 -5
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs +2 -5
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/index.d.mts.map +1 -1
- package/resources/collections/index.d.ts.map +1 -1
- package/resources/collections/index.mjs.map +1 -1
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.mjs.map +1 -1
- package/resources/collections.d.mts.map +1 -1
- package/resources/collections.d.ts.map +1 -1
- package/resources/collections.mjs.map +1 -1
- package/resources/generate.d.mts +96 -0
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +96 -0
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +36 -0
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +36 -0
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/description.mjs.map +1 -1
- package/resources/models/examples.d.mts +24 -0
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +24 -0
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/examples.mjs.map +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +42 -0
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +42 -0
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +4 -7
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +4 -7
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +24 -0
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +24 -0
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/models/training-images.mjs.map +1 -1
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts.map +1 -1
- package/resources/models.mjs.map +1 -1
- package/resources/oscu.d.mts.map +1 -1
- package/resources/oscu.d.ts.map +1 -1
- package/resources/oscu.mjs.map +1 -1
- package/resources/pricing/index.d.mts.map +1 -1
- package/resources/pricing/index.d.ts.map +1 -1
- package/resources/pricing/index.mjs.map +1 -1
- package/resources/pricing/oscu.d.mts.map +1 -1
- package/resources/pricing/oscu.d.ts.map +1 -1
- package/resources/pricing/oscu.mjs.map +1 -1
- package/resources/pricing/pricing.d.mts.map +1 -1
- package/resources/pricing/pricing.d.ts.map +1 -1
- package/resources/pricing/pricing.js +1 -4
- package/resources/pricing/pricing.js.map +1 -1
- package/resources/pricing/pricing.mjs +1 -4
- package/resources/pricing/pricing.mjs.map +1 -1
- package/resources/pricing.d.mts.map +1 -1
- package/resources/pricing.d.ts.map +1 -1
- package/resources/pricing.mjs.map +1 -1
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.mjs.map +1 -1
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +23 -0
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +23 -0
- package/resources/usages.d.ts.map +1 -1
- package/resources/usages.mjs.map +1 -1
- package/resources/workflows.d.mts +132 -0
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +132 -0
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +4 -7
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +4 -7
- package/resources/workflows.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/index.ts +14 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/lib/workflow_converter.ts +1402 -0
- package/src/resources/assets/assets.ts +14 -0
- package/src/resources/generate.ts +112 -0
- package/src/resources/jobs.ts +42 -0
- package/src/resources/models/examples.ts +28 -0
- package/src/resources/models/models.ts +49 -0
- package/src/resources/models/train.ts +28 -0
- package/src/resources/usages.ts +26 -0
- package/src/resources/workflows.ts +154 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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\`.
|
package/src/resources/jobs.ts
CHANGED
|
@@ -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\`.
|
package/src/resources/usages.ts
CHANGED
|
@@ -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.
|