@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.
- package/CHANGELOG.md +34 -0
- 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.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.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.js +1 -0
- package/core/resource.js.map +1 -1
- package/core/resource.mjs +1 -0
- package/core/resource.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/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/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 +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.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/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.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.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.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_converter.d.mts +174 -0
- package/lib/workflow_converter.d.mts.map +1 -0
- package/lib/workflow_converter.d.ts +174 -0
- package/lib/workflow_converter.d.ts.map +1 -0
- package/lib/workflow_converter.js +995 -0
- package/lib/workflow_converter.js.map +1 -0
- package/lib/workflow_converter.mjs +992 -0
- package/lib/workflow_converter.mjs.map +1 -0
- package/package.json +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/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/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/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/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/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/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/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/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/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 +1250 -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/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/generate.d.ts
CHANGED
|
@@ -337,6 +337,12 @@ export declare namespace GenerateCaptionResponse {
|
|
|
337
337
|
* types.
|
|
338
338
|
*/
|
|
339
339
|
max?: number;
|
|
340
|
+
/**
|
|
341
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
342
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
343
|
+
* \`asset.properties.duration\` at job creation time.
|
|
344
|
+
*/
|
|
345
|
+
maxDuration?: number;
|
|
340
346
|
/**
|
|
341
347
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
342
348
|
* \`string_array\`.
|
|
@@ -489,6 +495,12 @@ export declare namespace GenerateCaptionResponse {
|
|
|
489
495
|
* types.
|
|
490
496
|
*/
|
|
491
497
|
max?: number;
|
|
498
|
+
/**
|
|
499
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
500
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
501
|
+
* \`asset.properties.duration\` at job creation time.
|
|
502
|
+
*/
|
|
503
|
+
maxDuration?: number;
|
|
492
504
|
/**
|
|
493
505
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
494
506
|
* \`string_array\`.
|
|
@@ -1029,6 +1041,12 @@ export declare namespace GenerateDescribeStyleResponse {
|
|
|
1029
1041
|
* types.
|
|
1030
1042
|
*/
|
|
1031
1043
|
max?: number;
|
|
1044
|
+
/**
|
|
1045
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
1046
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
1047
|
+
* \`asset.properties.duration\` at job creation time.
|
|
1048
|
+
*/
|
|
1049
|
+
maxDuration?: number;
|
|
1032
1050
|
/**
|
|
1033
1051
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
1034
1052
|
* \`string_array\`.
|
|
@@ -1181,6 +1199,12 @@ export declare namespace GenerateDescribeStyleResponse {
|
|
|
1181
1199
|
* types.
|
|
1182
1200
|
*/
|
|
1183
1201
|
max?: number;
|
|
1202
|
+
/**
|
|
1203
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
1204
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
1205
|
+
* \`asset.properties.duration\` at job creation time.
|
|
1206
|
+
*/
|
|
1207
|
+
maxDuration?: number;
|
|
1184
1208
|
/**
|
|
1185
1209
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
1186
1210
|
* \`string_array\`.
|
|
@@ -1714,6 +1738,12 @@ export declare namespace GenerateDetectResponse {
|
|
|
1714
1738
|
* types.
|
|
1715
1739
|
*/
|
|
1716
1740
|
max?: number;
|
|
1741
|
+
/**
|
|
1742
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
1743
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
1744
|
+
* \`asset.properties.duration\` at job creation time.
|
|
1745
|
+
*/
|
|
1746
|
+
maxDuration?: number;
|
|
1717
1747
|
/**
|
|
1718
1748
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
1719
1749
|
* \`string_array\`.
|
|
@@ -1866,6 +1896,12 @@ export declare namespace GenerateDetectResponse {
|
|
|
1866
1896
|
* types.
|
|
1867
1897
|
*/
|
|
1868
1898
|
max?: number;
|
|
1899
|
+
/**
|
|
1900
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
1901
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
1902
|
+
* \`asset.properties.duration\` at job creation time.
|
|
1903
|
+
*/
|
|
1904
|
+
maxDuration?: number;
|
|
1869
1905
|
/**
|
|
1870
1906
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
1871
1907
|
* \`string_array\`.
|
|
@@ -3106,6 +3142,12 @@ export declare namespace GenerateEmbedResponse {
|
|
|
3106
3142
|
* types.
|
|
3107
3143
|
*/
|
|
3108
3144
|
max?: number;
|
|
3145
|
+
/**
|
|
3146
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
3147
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
3148
|
+
* \`asset.properties.duration\` at job creation time.
|
|
3149
|
+
*/
|
|
3150
|
+
maxDuration?: number;
|
|
3109
3151
|
/**
|
|
3110
3152
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
3111
3153
|
* \`string_array\`.
|
|
@@ -3258,6 +3300,12 @@ export declare namespace GenerateEmbedResponse {
|
|
|
3258
3300
|
* types.
|
|
3259
3301
|
*/
|
|
3260
3302
|
max?: number;
|
|
3303
|
+
/**
|
|
3304
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
3305
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
3306
|
+
* \`asset.properties.duration\` at job creation time.
|
|
3307
|
+
*/
|
|
3308
|
+
maxDuration?: number;
|
|
3261
3309
|
/**
|
|
3262
3310
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
3263
3311
|
* \`string_array\`.
|
|
@@ -3791,6 +3839,12 @@ export declare namespace GeneratePatchResponse {
|
|
|
3791
3839
|
* types.
|
|
3792
3840
|
*/
|
|
3793
3841
|
max?: number;
|
|
3842
|
+
/**
|
|
3843
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
3844
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
3845
|
+
* \`asset.properties.duration\` at job creation time.
|
|
3846
|
+
*/
|
|
3847
|
+
maxDuration?: number;
|
|
3794
3848
|
/**
|
|
3795
3849
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
3796
3850
|
* \`string_array\`.
|
|
@@ -3943,6 +3997,12 @@ export declare namespace GeneratePatchResponse {
|
|
|
3943
3997
|
* types.
|
|
3944
3998
|
*/
|
|
3945
3999
|
max?: number;
|
|
4000
|
+
/**
|
|
4001
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
4002
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
4003
|
+
* \`asset.properties.duration\` at job creation time.
|
|
4004
|
+
*/
|
|
4005
|
+
maxDuration?: number;
|
|
3946
4006
|
/**
|
|
3947
4007
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
3948
4008
|
* \`string_array\`.
|
|
@@ -5185,6 +5245,12 @@ export declare namespace GeneratePromptResponse {
|
|
|
5185
5245
|
* types.
|
|
5186
5246
|
*/
|
|
5187
5247
|
max?: number;
|
|
5248
|
+
/**
|
|
5249
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
5250
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
5251
|
+
* \`asset.properties.duration\` at job creation time.
|
|
5252
|
+
*/
|
|
5253
|
+
maxDuration?: number;
|
|
5188
5254
|
/**
|
|
5189
5255
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
5190
5256
|
* \`string_array\`.
|
|
@@ -5337,6 +5403,12 @@ export declare namespace GeneratePromptResponse {
|
|
|
5337
5403
|
* types.
|
|
5338
5404
|
*/
|
|
5339
5405
|
max?: number;
|
|
5406
|
+
/**
|
|
5407
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
5408
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
5409
|
+
* \`asset.properties.duration\` at job creation time.
|
|
5410
|
+
*/
|
|
5411
|
+
maxDuration?: number;
|
|
5340
5412
|
/**
|
|
5341
5413
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
5342
5414
|
* \`string_array\`.
|
|
@@ -5869,6 +5941,12 @@ export declare namespace GenerateRunModelResponse {
|
|
|
5869
5941
|
* types.
|
|
5870
5942
|
*/
|
|
5871
5943
|
max?: number;
|
|
5944
|
+
/**
|
|
5945
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
5946
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
5947
|
+
* \`asset.properties.duration\` at job creation time.
|
|
5948
|
+
*/
|
|
5949
|
+
maxDuration?: number;
|
|
5872
5950
|
/**
|
|
5873
5951
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
5874
5952
|
* \`string_array\`.
|
|
@@ -6021,6 +6099,12 @@ export declare namespace GenerateRunModelResponse {
|
|
|
6021
6099
|
* types.
|
|
6022
6100
|
*/
|
|
6023
6101
|
max?: number;
|
|
6102
|
+
/**
|
|
6103
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
6104
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
6105
|
+
* \`asset.properties.duration\` at job creation time.
|
|
6106
|
+
*/
|
|
6107
|
+
maxDuration?: number;
|
|
6024
6108
|
/**
|
|
6025
6109
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
6026
6110
|
* \`string_array\`.
|
|
@@ -6561,6 +6645,12 @@ export declare namespace GenerateTranslateResponse {
|
|
|
6561
6645
|
* types.
|
|
6562
6646
|
*/
|
|
6563
6647
|
max?: number;
|
|
6648
|
+
/**
|
|
6649
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
6650
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
6651
|
+
* \`asset.properties.duration\` at job creation time.
|
|
6652
|
+
*/
|
|
6653
|
+
maxDuration?: number;
|
|
6564
6654
|
/**
|
|
6565
6655
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
6566
6656
|
* \`string_array\`.
|
|
@@ -6713,6 +6803,12 @@ export declare namespace GenerateTranslateResponse {
|
|
|
6713
6803
|
* types.
|
|
6714
6804
|
*/
|
|
6715
6805
|
max?: number;
|
|
6806
|
+
/**
|
|
6807
|
+
* The maximum allowed media duration in seconds. Only applies to \`file\` and
|
|
6808
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
6809
|
+
* \`asset.properties.duration\` at job creation time.
|
|
6810
|
+
*/
|
|
6811
|
+
maxDuration?: number;
|
|
6716
6812
|
/**
|
|
6717
6813
|
* The maximum allowed length for \`string\` inputs. Also applies to each item in
|
|
6718
6814
|
* \`string_array\`.
|