@scenario-labs/sdk 2.1.0 → 2.2.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 +21 -0
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/lib/workflow_converter.d.mts +47 -2
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +47 -2
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +235 -27
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +230 -27
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_import_validator.d.mts +1 -1
- package/lib/workflow_import_validator.d.mts.map +1 -1
- package/lib/workflow_import_validator.d.ts +1 -1
- package/lib/workflow_import_validator.d.ts.map +1 -1
- package/lib/workflow_import_validator.js +1 -0
- package/lib/workflow_import_validator.js.map +1 -1
- package/lib/workflow_import_validator.mjs +1 -0
- package/lib/workflow_import_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +289 -135
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +289 -135
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/generate.d.mts +86 -48
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +86 -48
- package/resources/generate.d.ts.map +1 -1
- package/resources/jobs.d.mts +6 -6
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +6 -6
- package/resources/jobs.d.ts.map +1 -1
- package/resources/models/description.d.mts +54 -4
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +54 -4
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/examples.d.mts +74 -36
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +74 -36
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/models.d.mts +21 -21
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +21 -21
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +8 -8
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +8 -8
- package/resources/models/train.d.ts.map +1 -1
- package/resources/search.d.mts +6 -0
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +6 -0
- package/resources/search.d.ts.map +1 -1
- package/resources/uploads.d.mts +4 -4
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +4 -4
- package/resources/uploads.d.ts.map +1 -1
- package/resources/usages.d.mts +31 -6
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +31 -6
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +36 -36
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +36 -36
- package/resources/workflows.d.ts.map +1 -1
- package/src/index.ts +9 -0
- package/src/lib/workflow_converter.ts +327 -20
- package/src/lib/workflow_import_validator.ts +2 -0
- package/src/resources/assets/assets.ts +376 -118
- package/src/resources/generate.ts +106 -44
- package/src/resources/jobs.ts +6 -6
- package/src/resources/models/description.ts +68 -2
- package/src/resources/models/examples.ts +94 -32
- package/src/resources/models/models.ts +21 -14
- package/src/resources/models/train.ts +8 -6
- package/src/resources/search.ts +7 -0
- package/src/resources/uploads.ts +4 -4
- package/src/resources/usages.ts +41 -4
- package/src/resources/workflows.ts +36 -36
- 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
|
@@ -184,6 +184,7 @@ export namespace ModelCreateResponse {
|
|
|
184
184
|
capabilities: Array<
|
|
185
185
|
| '3d23d'
|
|
186
186
|
| 'audio2audio'
|
|
187
|
+
| 'audio2txt'
|
|
187
188
|
| 'audio2video'
|
|
188
189
|
| 'controlnet'
|
|
189
190
|
| 'controlnet_img2img'
|
|
@@ -540,7 +541,7 @@ export namespace ModelCreateResponse {
|
|
|
540
541
|
* Defines the input parameters for a model. Use this to understand the available
|
|
541
542
|
* input parameters for a given `modelId` when calling
|
|
542
543
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
543
|
-
* https://docs.scenario.com/
|
|
544
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
544
545
|
*/
|
|
545
546
|
export interface Input {
|
|
546
547
|
/**
|
|
@@ -620,7 +621,7 @@ export namespace ModelCreateResponse {
|
|
|
620
621
|
* not able to create the asset on the flight on API side with dataurl without
|
|
621
622
|
* data:kind, prefix
|
|
622
623
|
*/
|
|
623
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
624
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
624
625
|
|
|
625
626
|
/**
|
|
626
627
|
* The label displayed in the UI for this input
|
|
@@ -1489,6 +1490,7 @@ export namespace ModelRetrieveResponse {
|
|
|
1489
1490
|
capabilities: Array<
|
|
1490
1491
|
| '3d23d'
|
|
1491
1492
|
| 'audio2audio'
|
|
1493
|
+
| 'audio2txt'
|
|
1492
1494
|
| 'audio2video'
|
|
1493
1495
|
| 'controlnet'
|
|
1494
1496
|
| 'controlnet_img2img'
|
|
@@ -1845,7 +1847,7 @@ export namespace ModelRetrieveResponse {
|
|
|
1845
1847
|
* Defines the input parameters for a model. Use this to understand the available
|
|
1846
1848
|
* input parameters for a given `modelId` when calling
|
|
1847
1849
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
1848
|
-
* https://docs.scenario.com/
|
|
1850
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
1849
1851
|
*/
|
|
1850
1852
|
export interface Input {
|
|
1851
1853
|
/**
|
|
@@ -1925,7 +1927,7 @@ export namespace ModelRetrieveResponse {
|
|
|
1925
1927
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1926
1928
|
* data:kind, prefix
|
|
1927
1929
|
*/
|
|
1928
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1930
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1929
1931
|
|
|
1930
1932
|
/**
|
|
1931
1933
|
* The label displayed in the UI for this input
|
|
@@ -2794,6 +2796,7 @@ export namespace ModelUpdateResponse {
|
|
|
2794
2796
|
capabilities: Array<
|
|
2795
2797
|
| '3d23d'
|
|
2796
2798
|
| 'audio2audio'
|
|
2799
|
+
| 'audio2txt'
|
|
2797
2800
|
| 'audio2video'
|
|
2798
2801
|
| 'controlnet'
|
|
2799
2802
|
| 'controlnet_img2img'
|
|
@@ -3150,7 +3153,7 @@ export namespace ModelUpdateResponse {
|
|
|
3150
3153
|
* Defines the input parameters for a model. Use this to understand the available
|
|
3151
3154
|
* input parameters for a given `modelId` when calling
|
|
3152
3155
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
3153
|
-
* https://docs.scenario.com/
|
|
3156
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
3154
3157
|
*/
|
|
3155
3158
|
export interface Input {
|
|
3156
3159
|
/**
|
|
@@ -3230,7 +3233,7 @@ export namespace ModelUpdateResponse {
|
|
|
3230
3233
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3231
3234
|
* data:kind, prefix
|
|
3232
3235
|
*/
|
|
3233
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
3236
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3234
3237
|
|
|
3235
3238
|
/**
|
|
3236
3239
|
* The label displayed in the UI for this input
|
|
@@ -4094,6 +4097,7 @@ export interface ModelListResponse {
|
|
|
4094
4097
|
capabilities: Array<
|
|
4095
4098
|
| '3d23d'
|
|
4096
4099
|
| 'audio2audio'
|
|
4100
|
+
| 'audio2txt'
|
|
4097
4101
|
| 'audio2video'
|
|
4098
4102
|
| 'controlnet'
|
|
4099
4103
|
| 'controlnet_img2img'
|
|
@@ -4450,7 +4454,7 @@ export namespace ModelListResponse {
|
|
|
4450
4454
|
* Defines the input parameters for a model. Use this to understand the available
|
|
4451
4455
|
* input parameters for a given `modelId` when calling
|
|
4452
4456
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
4453
|
-
* https://docs.scenario.com/
|
|
4457
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
4454
4458
|
*/
|
|
4455
4459
|
export interface Input {
|
|
4456
4460
|
/**
|
|
@@ -4530,7 +4534,7 @@ export namespace ModelListResponse {
|
|
|
4530
4534
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4531
4535
|
* data:kind, prefix
|
|
4532
4536
|
*/
|
|
4533
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
4537
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4534
4538
|
|
|
4535
4539
|
/**
|
|
4536
4540
|
* The label displayed in the UI for this input
|
|
@@ -5400,6 +5404,7 @@ export namespace ModelCopyResponse {
|
|
|
5400
5404
|
capabilities: Array<
|
|
5401
5405
|
| '3d23d'
|
|
5402
5406
|
| 'audio2audio'
|
|
5407
|
+
| 'audio2txt'
|
|
5403
5408
|
| 'audio2video'
|
|
5404
5409
|
| 'controlnet'
|
|
5405
5410
|
| 'controlnet_img2img'
|
|
@@ -5756,7 +5761,7 @@ export namespace ModelCopyResponse {
|
|
|
5756
5761
|
* Defines the input parameters for a model. Use this to understand the available
|
|
5757
5762
|
* input parameters for a given `modelId` when calling
|
|
5758
5763
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
5759
|
-
* https://docs.scenario.com/
|
|
5764
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
5760
5765
|
*/
|
|
5761
5766
|
export interface Input {
|
|
5762
5767
|
/**
|
|
@@ -5836,7 +5841,7 @@ export namespace ModelCopyResponse {
|
|
|
5836
5841
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5837
5842
|
* data:kind, prefix
|
|
5838
5843
|
*/
|
|
5839
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
5844
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5840
5845
|
|
|
5841
5846
|
/**
|
|
5842
5847
|
* The label displayed in the UI for this input
|
|
@@ -6772,6 +6777,7 @@ export namespace ModelGetBulkResponse {
|
|
|
6772
6777
|
capabilities?: Array<
|
|
6773
6778
|
| '3d23d'
|
|
6774
6779
|
| 'audio2audio'
|
|
6780
|
+
| 'audio2txt'
|
|
6775
6781
|
| 'audio2video'
|
|
6776
6782
|
| 'controlnet'
|
|
6777
6783
|
| 'controlnet_img2img'
|
|
@@ -7070,7 +7076,7 @@ export namespace ModelGetBulkResponse {
|
|
|
7070
7076
|
* Defines the input parameters for a model. Use this to understand the available
|
|
7071
7077
|
* input parameters for a given `modelId` when calling
|
|
7072
7078
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
7073
|
-
* https://docs.scenario.com/
|
|
7079
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
7074
7080
|
*/
|
|
7075
7081
|
export interface Input {
|
|
7076
7082
|
/**
|
|
@@ -7150,7 +7156,7 @@ export namespace ModelGetBulkResponse {
|
|
|
7150
7156
|
* not able to create the asset on the flight on API side with dataurl without
|
|
7151
7157
|
* data:kind, prefix
|
|
7152
7158
|
*/
|
|
7153
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
7159
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
7154
7160
|
|
|
7155
7161
|
/**
|
|
7156
7162
|
* The label displayed in the UI for this input
|
|
@@ -8019,6 +8025,7 @@ export namespace ModelTransferResponse {
|
|
|
8019
8025
|
capabilities: Array<
|
|
8020
8026
|
| '3d23d'
|
|
8021
8027
|
| 'audio2audio'
|
|
8028
|
+
| 'audio2txt'
|
|
8022
8029
|
| 'audio2video'
|
|
8023
8030
|
| 'controlnet'
|
|
8024
8031
|
| 'controlnet_img2img'
|
|
@@ -8375,7 +8382,7 @@ export namespace ModelTransferResponse {
|
|
|
8375
8382
|
* Defines the input parameters for a model. Use this to understand the available
|
|
8376
8383
|
* input parameters for a given `modelId` when calling
|
|
8377
8384
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
8378
|
-
* https://docs.scenario.com/
|
|
8385
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
8379
8386
|
*/
|
|
8380
8387
|
export interface Input {
|
|
8381
8388
|
/**
|
|
@@ -8455,7 +8462,7 @@ export namespace ModelTransferResponse {
|
|
|
8455
8462
|
* not able to create the asset on the flight on API side with dataurl without
|
|
8456
8463
|
* data:kind, prefix
|
|
8457
8464
|
*/
|
|
8458
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
8465
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
8459
8466
|
|
|
8460
8467
|
/**
|
|
8461
8468
|
* The label displayed in the UI for this input
|
|
@@ -57,6 +57,7 @@ export namespace TrainActionResponse {
|
|
|
57
57
|
capabilities: Array<
|
|
58
58
|
| '3d23d'
|
|
59
59
|
| 'audio2audio'
|
|
60
|
+
| 'audio2txt'
|
|
60
61
|
| 'audio2video'
|
|
61
62
|
| 'controlnet'
|
|
62
63
|
| 'controlnet_img2img'
|
|
@@ -413,7 +414,7 @@ export namespace TrainActionResponse {
|
|
|
413
414
|
* Defines the input parameters for a model. Use this to understand the available
|
|
414
415
|
* input parameters for a given `modelId` when calling
|
|
415
416
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
416
|
-
* https://docs.scenario.com/
|
|
417
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
417
418
|
*/
|
|
418
419
|
export interface Input {
|
|
419
420
|
/**
|
|
@@ -493,7 +494,7 @@ export namespace TrainActionResponse {
|
|
|
493
494
|
* not able to create the asset on the flight on API side with dataurl without
|
|
494
495
|
* data:kind, prefix
|
|
495
496
|
*/
|
|
496
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
497
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
497
498
|
|
|
498
499
|
/**
|
|
499
500
|
* The label displayed in the UI for this input
|
|
@@ -1732,7 +1733,7 @@ export namespace TrainTriggerResponse {
|
|
|
1732
1733
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1733
1734
|
* data:kind, prefix
|
|
1734
1735
|
*/
|
|
1735
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1736
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1736
1737
|
|
|
1737
1738
|
/**
|
|
1738
1739
|
* The label displayed in the UI for this input
|
|
@@ -1965,7 +1966,7 @@ export namespace TrainTriggerResponse {
|
|
|
1965
1966
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1966
1967
|
* data:kind, prefix
|
|
1967
1968
|
*/
|
|
1968
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1969
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1969
1970
|
|
|
1970
1971
|
/**
|
|
1971
1972
|
* The label displayed in the UI for this input
|
|
@@ -2334,6 +2335,7 @@ export namespace TrainTriggerResponse {
|
|
|
2334
2335
|
capabilities: Array<
|
|
2335
2336
|
| '3d23d'
|
|
2336
2337
|
| 'audio2audio'
|
|
2338
|
+
| 'audio2txt'
|
|
2337
2339
|
| 'audio2video'
|
|
2338
2340
|
| 'controlnet'
|
|
2339
2341
|
| 'controlnet_img2img'
|
|
@@ -2690,7 +2692,7 @@ export namespace TrainTriggerResponse {
|
|
|
2690
2692
|
* Defines the input parameters for a model. Use this to understand the available
|
|
2691
2693
|
* input parameters for a given `modelId` when calling
|
|
2692
2694
|
* `POST /generate/custom/{modelId}`. See {@link
|
|
2693
|
-
* https://docs.scenario.com/
|
|
2695
|
+
* https://docs.scenario.com/get-started/generation/video-generation} for examples.
|
|
2694
2696
|
*/
|
|
2695
2697
|
export interface Input {
|
|
2696
2698
|
/**
|
|
@@ -2770,7 +2772,7 @@ export namespace TrainTriggerResponse {
|
|
|
2770
2772
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2771
2773
|
* data:kind, prefix
|
|
2772
2774
|
*/
|
|
2773
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
2775
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2774
2776
|
|
|
2775
2777
|
/**
|
|
2776
2778
|
* The label displayed in the UI for this input
|
package/src/resources/search.ts
CHANGED
|
@@ -116,6 +116,13 @@ export interface SearchAssetSearchResponse {
|
|
|
116
116
|
*/
|
|
117
117
|
url: string;
|
|
118
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Indexed body for text assets (`AssetKind.Text`). The full content lives in S3;
|
|
121
|
+
* this field carries up to TEXT_INDEX_MAX_BYTES of UTF-8 for BM25 lookup. Always
|
|
122
|
+
* undefined for non-text assets.
|
|
123
|
+
*/
|
|
124
|
+
content?: string;
|
|
125
|
+
|
|
119
126
|
/**
|
|
120
127
|
* Textual description of the asset. Can be either:
|
|
121
128
|
*
|
package/src/resources/uploads.ts
CHANGED
|
@@ -50,7 +50,7 @@ export namespace UploadCreateResponse {
|
|
|
50
50
|
/**
|
|
51
51
|
* The kind of the file once validated (example: "model")
|
|
52
52
|
*/
|
|
53
|
-
kind: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'video';
|
|
53
|
+
kind: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'text' | 'video';
|
|
54
54
|
|
|
55
55
|
ownerId: string;
|
|
56
56
|
|
|
@@ -130,7 +130,7 @@ export namespace UploadRetrieveResponse {
|
|
|
130
130
|
/**
|
|
131
131
|
* The kind of the file once validated (example: "model")
|
|
132
132
|
*/
|
|
133
|
-
kind: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'video';
|
|
133
|
+
kind: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'text' | 'video';
|
|
134
134
|
|
|
135
135
|
ownerId: string;
|
|
136
136
|
|
|
@@ -210,7 +210,7 @@ export namespace UploadTriggerActionResponse {
|
|
|
210
210
|
/**
|
|
211
211
|
* The kind of the file once validated (example: "model")
|
|
212
212
|
*/
|
|
213
|
-
kind: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'video';
|
|
213
|
+
kind: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'text' | 'video';
|
|
214
214
|
|
|
215
215
|
ownerId: string;
|
|
216
216
|
|
|
@@ -313,7 +313,7 @@ export interface UploadCreateParams {
|
|
|
313
313
|
* Required for multipart upload and url. The purpose of the file once validated
|
|
314
314
|
* (example: "model")
|
|
315
315
|
*/
|
|
316
|
-
kind?: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'video';
|
|
316
|
+
kind?: '3d' | 'asset' | 'audio' | 'avatar' | 'image' | 'model' | 'text' | 'video';
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
319
|
* Required for multipart upload. The number of parts the file will be uploaded in
|
package/src/resources/usages.ts
CHANGED
|
@@ -223,7 +223,7 @@ export namespace UsageListResponse {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
export interface AssetUsage {
|
|
226
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
226
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* The data points
|
|
@@ -299,7 +299,7 @@ export namespace UsageListResponse {
|
|
|
299
299
|
/**
|
|
300
300
|
* The kind of the asset
|
|
301
301
|
*/
|
|
302
|
-
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
302
|
+
kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* Partial metadata of the asset
|
|
@@ -324,6 +324,7 @@ export namespace UsageListResponse {
|
|
|
324
324
|
| '3d:texture:normal'
|
|
325
325
|
| '3d:texture:roughness'
|
|
326
326
|
| 'audio2audio'
|
|
327
|
+
| 'audio2txt'
|
|
327
328
|
| 'audio2video'
|
|
328
329
|
| 'background-removal'
|
|
329
330
|
| 'canvas'
|
|
@@ -334,6 +335,7 @@ export namespace UsageListResponse {
|
|
|
334
335
|
| 'image-prompt-editing'
|
|
335
336
|
| 'img23d'
|
|
336
337
|
| 'img2img'
|
|
338
|
+
| 'img2txt'
|
|
337
339
|
| 'img2video'
|
|
338
340
|
| 'inference-control-net'
|
|
339
341
|
| 'inference-control-net-img'
|
|
@@ -373,12 +375,14 @@ export namespace UsageListResponse {
|
|
|
373
375
|
| 'txt23d'
|
|
374
376
|
| 'txt2audio'
|
|
375
377
|
| 'txt2img'
|
|
378
|
+
| 'txt2txt'
|
|
376
379
|
| 'txt2video'
|
|
377
380
|
| 'unknown'
|
|
378
381
|
| 'uploaded'
|
|
379
382
|
| 'uploaded-3d'
|
|
380
383
|
| 'uploaded-audio'
|
|
381
384
|
| 'uploaded-avatar'
|
|
385
|
+
| 'uploaded-text'
|
|
382
386
|
| 'uploaded-video'
|
|
383
387
|
| 'upscale'
|
|
384
388
|
| 'upscale-skybox'
|
|
@@ -410,6 +414,7 @@ export namespace UsageListResponse {
|
|
|
410
414
|
| '3d23d'
|
|
411
415
|
| '3d23d-texture'
|
|
412
416
|
| 'audio2audio'
|
|
417
|
+
| 'audio2txt'
|
|
413
418
|
| 'audio2video'
|
|
414
419
|
| 'background-removal'
|
|
415
420
|
| 'canvas'
|
|
@@ -420,6 +425,7 @@ export namespace UsageListResponse {
|
|
|
420
425
|
| 'image-prompt-editing'
|
|
421
426
|
| 'img23d'
|
|
422
427
|
| 'img2img'
|
|
428
|
+
| 'img2txt'
|
|
423
429
|
| 'img2video'
|
|
424
430
|
| 'inference-controlnet'
|
|
425
431
|
| 'inference-controlnet-img2img'
|
|
@@ -459,12 +465,14 @@ export namespace UsageListResponse {
|
|
|
459
465
|
| 'txt23d'
|
|
460
466
|
| 'txt2audio'
|
|
461
467
|
| 'txt2img'
|
|
468
|
+
| 'txt2txt'
|
|
462
469
|
| 'txt2video'
|
|
463
470
|
| 'unknown'
|
|
464
471
|
| 'uploaded'
|
|
465
472
|
| 'uploaded-3d'
|
|
466
473
|
| 'uploaded-audio'
|
|
467
474
|
| 'uploaded-avatar'
|
|
475
|
+
| 'uploaded-text'
|
|
468
476
|
| 'uploaded-video'
|
|
469
477
|
| 'upscale'
|
|
470
478
|
| 'upscale-skybox'
|
|
@@ -504,6 +512,13 @@ export namespace UsageListResponse {
|
|
|
504
512
|
*/
|
|
505
513
|
channels?: number;
|
|
506
514
|
|
|
515
|
+
/**
|
|
516
|
+
* Number of Unicode code points in the text. Code-point-aware (so a non-BMP emoji
|
|
517
|
+
* counts as 1) but not full grapheme-cluster aware (a ZWJ sequence still counts as
|
|
518
|
+
* several).
|
|
519
|
+
*/
|
|
520
|
+
charCount?: number;
|
|
521
|
+
|
|
507
522
|
/**
|
|
508
523
|
* Classification of the audio
|
|
509
524
|
*/
|
|
@@ -549,6 +564,14 @@ export namespace UsageListResponse {
|
|
|
549
564
|
*/
|
|
550
565
|
hasAnimations?: boolean;
|
|
551
566
|
|
|
567
|
+
/**
|
|
568
|
+
* True when `preview` holds the entire content unmodified — consumers can use it
|
|
569
|
+
* directly without fetching `asset.url`. False or undefined means the content
|
|
570
|
+
* exceeds the preview budget and consumers must fetch the full body from S3 to
|
|
571
|
+
* read past the preview.
|
|
572
|
+
*/
|
|
573
|
+
hasFullPreview?: boolean;
|
|
574
|
+
|
|
552
575
|
/**
|
|
553
576
|
* Whether the mesh has normal vectors
|
|
554
577
|
*/
|
|
@@ -571,6 +594,15 @@ export namespace UsageListResponse {
|
|
|
571
594
|
*/
|
|
572
595
|
nbFrames?: number;
|
|
573
596
|
|
|
597
|
+
/**
|
|
598
|
+
* Leading slice of the content used for inline UI display and as a search
|
|
599
|
+
* shortcut. Capped at TEXT_PREVIEW_MAX_BYTES (UTF-8) and always cut on a
|
|
600
|
+
* code-point boundary so no character is split. Number of characters in the
|
|
601
|
+
* preview varies by script (around 1024 for ASCII, ~340 for CJK, ~256 for
|
|
602
|
+
* emoji-heavy text at the default 1 KB budget).
|
|
603
|
+
*/
|
|
604
|
+
preview?: string;
|
|
605
|
+
|
|
574
606
|
/**
|
|
575
607
|
* Sample rate of the media in Hz
|
|
576
608
|
*/
|
|
@@ -587,6 +619,11 @@ export namespace UsageListResponse {
|
|
|
587
619
|
vertexCount?: number;
|
|
588
620
|
|
|
589
621
|
width?: number;
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Number of whitespace-separated words in the text
|
|
625
|
+
*/
|
|
626
|
+
wordCount?: number;
|
|
590
627
|
}
|
|
591
628
|
|
|
592
629
|
export namespace Properties {
|
|
@@ -946,7 +983,7 @@ export namespace UsageListResponse {
|
|
|
946
983
|
* not able to create the asset on the flight on API side with dataurl without
|
|
947
984
|
* data:kind, prefix
|
|
948
985
|
*/
|
|
949
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
986
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
950
987
|
|
|
951
988
|
/**
|
|
952
989
|
* The label displayed in the UI for this input
|
|
@@ -1179,7 +1216,7 @@ export namespace UsageListResponse {
|
|
|
1179
1216
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1180
1217
|
* data:kind, prefix
|
|
1181
1218
|
*/
|
|
1182
|
-
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1219
|
+
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1183
1220
|
|
|
1184
1221
|
/**
|
|
1185
1222
|
* The label displayed in the UI for this input
|