@scenario-labs/sdk 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- 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 +2 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/lib/user_selection_limits.d.mts +13 -0
- package/lib/user_selection_limits.d.mts.map +1 -0
- package/lib/user_selection_limits.d.ts +13 -0
- package/lib/user_selection_limits.d.ts.map +1 -0
- package/lib/user_selection_limits.js +16 -0
- package/lib/user_selection_limits.js.map +1 -0
- package/lib/user_selection_limits.mjs +13 -0
- package/lib/user_selection_limits.mjs.map +1 -0
- package/lib/workflow_converter.d.mts +6 -0
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +6 -0
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +154 -52
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +154 -52
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_import_validator.d.mts +17 -2
- package/lib/workflow_import_validator.d.mts.map +1 -1
- package/lib/workflow_import_validator.d.ts +17 -2
- package/lib/workflow_import_validator.d.ts.map +1 -1
- package/lib/workflow_import_validator.js +100 -1
- package/lib/workflow_import_validator.js.map +1 -1
- package/lib/workflow_import_validator.mjs +99 -1
- package/lib/workflow_import_validator.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +1 -1
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +1 -1
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +10 -11
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +7 -8
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +126 -30
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +126 -30
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +12 -0
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +12 -0
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/index.d.mts +1 -1
- package/resources/assets/index.d.mts.map +1 -1
- package/resources/assets/index.d.ts +1 -1
- package/resources/assets/index.d.ts.map +1 -1
- package/resources/assets/index.js.map +1 -1
- package/resources/assets/index.mjs.map +1 -1
- package/resources/generate.d.mts +120 -9
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +120 -9
- package/resources/generate.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.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/models/description.d.mts +4 -4
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +4 -4
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/examples.d.mts +40 -6
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +40 -6
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +1353 -199
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +1353 -199
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +13 -0
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +13 -0
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +36 -2
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +36 -2
- package/resources/models/train.d.ts.map +1 -1
- package/resources/recommendations.d.mts +16 -5
- package/resources/recommendations.d.mts.map +1 -1
- package/resources/recommendations.d.ts +16 -5
- package/resources/recommendations.d.ts.map +1 -1
- package/resources/usages.d.mts +14 -2
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +14 -2
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +152 -9
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +152 -9
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +2 -3
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +2 -3
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/index.ts +1 -0
- package/src/lib/user_selection_limits.ts +14 -0
- package/src/lib/workflow_converter.ts +173 -54
- package/src/lib/workflow_import_validator.ts +116 -1
- package/src/lib/workflow_validator.ts +12 -8
- package/src/resources/assets/assets.ts +164 -4
- package/src/resources/assets/index.ts +2 -0
- package/src/resources/generate.ts +142 -0
- package/src/resources/index.ts +4 -0
- package/src/resources/jobs.ts +42 -0
- package/src/resources/models/description.ts +6 -0
- package/src/resources/models/examples.ts +48 -0
- package/src/resources/models/index.ts +2 -0
- package/src/resources/models/models.ts +1610 -114
- package/src/resources/models/train.ts +42 -0
- package/src/resources/recommendations.ts +18 -3
- package/src/resources/usages.ts +16 -0
- package/src/resources/workflows.ts +176 -9
- 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
|
@@ -140,6 +140,22 @@ export class Assets extends APIResource {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Restore assets deleted in the last 30 days. Tags and collections are not
|
|
145
|
+
* restored. Max plan and above only.
|
|
146
|
+
*/
|
|
147
|
+
restoreMultiple(
|
|
148
|
+
params: AssetRestoreMultipleParams,
|
|
149
|
+
options?: RequestOptions,
|
|
150
|
+
): APIPromise<AssetRestoreMultipleResponse> {
|
|
151
|
+
const { projectId, ...body } = params;
|
|
152
|
+
return this._client.post('/assets/restore', {
|
|
153
|
+
body,
|
|
154
|
+
...options,
|
|
155
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
143
159
|
/**
|
|
144
160
|
* Unlock a canvas
|
|
145
161
|
*/
|
|
@@ -345,6 +361,7 @@ export namespace AssetRetrieveResponse {
|
|
|
345
361
|
| 'video23d'
|
|
346
362
|
| 'video2audio'
|
|
347
363
|
| 'video2img'
|
|
364
|
+
| 'video2txt'
|
|
348
365
|
| 'video2video'
|
|
349
366
|
| 'voice-clone';
|
|
350
367
|
|
|
@@ -374,6 +391,12 @@ export namespace AssetRetrieveResponse {
|
|
|
374
391
|
*/
|
|
375
392
|
automaticCaptioning?: string;
|
|
376
393
|
|
|
394
|
+
/**
|
|
395
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
396
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
397
|
+
*/
|
|
398
|
+
deletedAt?: string;
|
|
399
|
+
|
|
377
400
|
/**
|
|
378
401
|
* The description, it will contain in priority:
|
|
379
402
|
*
|
|
@@ -472,11 +495,13 @@ export namespace AssetRetrieveResponse {
|
|
|
472
495
|
| 'model/stl'
|
|
473
496
|
| 'model/vnd.collada+xml'
|
|
474
497
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
498
|
+
| 'model/vnd.usdz+zip'
|
|
475
499
|
| 'model/x-3d-vox'
|
|
476
500
|
| 'model/x-blender'
|
|
477
501
|
| 'model/x-fbx'
|
|
478
502
|
| 'model/x-maya-ascii'
|
|
479
503
|
| 'model/x-maya-binary'
|
|
504
|
+
| 'model/x-vsplat'
|
|
480
505
|
| 'model/x3d+xml'
|
|
481
506
|
| 'text/plain'
|
|
482
507
|
| 'video/mp4'
|
|
@@ -603,6 +628,7 @@ export namespace AssetRetrieveResponse {
|
|
|
603
628
|
| 'video23d'
|
|
604
629
|
| 'video2audio'
|
|
605
630
|
| 'video2img'
|
|
631
|
+
| 'video2txt'
|
|
606
632
|
| 'video2video'
|
|
607
633
|
| 'voice-clone';
|
|
608
634
|
|
|
@@ -1735,6 +1761,7 @@ export namespace AssetUpdateResponse {
|
|
|
1735
1761
|
| 'video23d'
|
|
1736
1762
|
| 'video2audio'
|
|
1737
1763
|
| 'video2img'
|
|
1764
|
+
| 'video2txt'
|
|
1738
1765
|
| 'video2video'
|
|
1739
1766
|
| 'voice-clone';
|
|
1740
1767
|
|
|
@@ -1764,6 +1791,12 @@ export namespace AssetUpdateResponse {
|
|
|
1764
1791
|
*/
|
|
1765
1792
|
automaticCaptioning?: string;
|
|
1766
1793
|
|
|
1794
|
+
/**
|
|
1795
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
1796
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
1797
|
+
*/
|
|
1798
|
+
deletedAt?: string;
|
|
1799
|
+
|
|
1767
1800
|
/**
|
|
1768
1801
|
* The description, it will contain in priority:
|
|
1769
1802
|
*
|
|
@@ -1862,11 +1895,13 @@ export namespace AssetUpdateResponse {
|
|
|
1862
1895
|
| 'model/stl'
|
|
1863
1896
|
| 'model/vnd.collada+xml'
|
|
1864
1897
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
1898
|
+
| 'model/vnd.usdz+zip'
|
|
1865
1899
|
| 'model/x-3d-vox'
|
|
1866
1900
|
| 'model/x-blender'
|
|
1867
1901
|
| 'model/x-fbx'
|
|
1868
1902
|
| 'model/x-maya-ascii'
|
|
1869
1903
|
| 'model/x-maya-binary'
|
|
1904
|
+
| 'model/x-vsplat'
|
|
1870
1905
|
| 'model/x3d+xml'
|
|
1871
1906
|
| 'text/plain'
|
|
1872
1907
|
| 'video/mp4'
|
|
@@ -1993,6 +2028,7 @@ export namespace AssetUpdateResponse {
|
|
|
1993
2028
|
| 'video23d'
|
|
1994
2029
|
| 'video2audio'
|
|
1995
2030
|
| 'video2img'
|
|
2031
|
+
| 'video2txt'
|
|
1996
2032
|
| 'video2video'
|
|
1997
2033
|
| 'voice-clone';
|
|
1998
2034
|
|
|
@@ -3120,6 +3156,7 @@ export interface AssetListResponse {
|
|
|
3120
3156
|
| 'video23d'
|
|
3121
3157
|
| 'video2audio'
|
|
3122
3158
|
| 'video2img'
|
|
3159
|
+
| 'video2txt'
|
|
3123
3160
|
| 'video2video'
|
|
3124
3161
|
| 'voice-clone';
|
|
3125
3162
|
|
|
@@ -3149,6 +3186,12 @@ export interface AssetListResponse {
|
|
|
3149
3186
|
*/
|
|
3150
3187
|
automaticCaptioning?: string;
|
|
3151
3188
|
|
|
3189
|
+
/**
|
|
3190
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
3191
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
3192
|
+
*/
|
|
3193
|
+
deletedAt?: string;
|
|
3194
|
+
|
|
3152
3195
|
/**
|
|
3153
3196
|
* The description, it will contain in priority:
|
|
3154
3197
|
*
|
|
@@ -3247,11 +3290,13 @@ export interface AssetListResponse {
|
|
|
3247
3290
|
| 'model/stl'
|
|
3248
3291
|
| 'model/vnd.collada+xml'
|
|
3249
3292
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
3293
|
+
| 'model/vnd.usdz+zip'
|
|
3250
3294
|
| 'model/x-3d-vox'
|
|
3251
3295
|
| 'model/x-blender'
|
|
3252
3296
|
| 'model/x-fbx'
|
|
3253
3297
|
| 'model/x-maya-ascii'
|
|
3254
3298
|
| 'model/x-maya-binary'
|
|
3299
|
+
| 'model/x-vsplat'
|
|
3255
3300
|
| 'model/x3d+xml'
|
|
3256
3301
|
| 'text/plain'
|
|
3257
3302
|
| 'video/mp4'
|
|
@@ -3378,6 +3423,7 @@ export namespace AssetListResponse {
|
|
|
3378
3423
|
| 'video23d'
|
|
3379
3424
|
| 'video2audio'
|
|
3380
3425
|
| 'video2img'
|
|
3426
|
+
| 'video2txt'
|
|
3381
3427
|
| 'video2video'
|
|
3382
3428
|
| 'voice-clone';
|
|
3383
3429
|
|
|
@@ -4511,6 +4557,7 @@ export namespace AssetDuplicateResponse {
|
|
|
4511
4557
|
| 'video23d'
|
|
4512
4558
|
| 'video2audio'
|
|
4513
4559
|
| 'video2img'
|
|
4560
|
+
| 'video2txt'
|
|
4514
4561
|
| 'video2video'
|
|
4515
4562
|
| 'voice-clone';
|
|
4516
4563
|
|
|
@@ -4540,6 +4587,12 @@ export namespace AssetDuplicateResponse {
|
|
|
4540
4587
|
*/
|
|
4541
4588
|
automaticCaptioning?: string;
|
|
4542
4589
|
|
|
4590
|
+
/**
|
|
4591
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
4592
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
4593
|
+
*/
|
|
4594
|
+
deletedAt?: string;
|
|
4595
|
+
|
|
4543
4596
|
/**
|
|
4544
4597
|
* The description, it will contain in priority:
|
|
4545
4598
|
*
|
|
@@ -4638,11 +4691,13 @@ export namespace AssetDuplicateResponse {
|
|
|
4638
4691
|
| 'model/stl'
|
|
4639
4692
|
| 'model/vnd.collada+xml'
|
|
4640
4693
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
4694
|
+
| 'model/vnd.usdz+zip'
|
|
4641
4695
|
| 'model/x-3d-vox'
|
|
4642
4696
|
| 'model/x-blender'
|
|
4643
4697
|
| 'model/x-fbx'
|
|
4644
4698
|
| 'model/x-maya-ascii'
|
|
4645
4699
|
| 'model/x-maya-binary'
|
|
4700
|
+
| 'model/x-vsplat'
|
|
4646
4701
|
| 'model/x3d+xml'
|
|
4647
4702
|
| 'text/plain'
|
|
4648
4703
|
| 'video/mp4'
|
|
@@ -4769,6 +4824,7 @@ export namespace AssetDuplicateResponse {
|
|
|
4769
4824
|
| 'video23d'
|
|
4770
4825
|
| 'video2audio'
|
|
4771
4826
|
| 'video2img'
|
|
4827
|
+
| 'video2txt'
|
|
4772
4828
|
| 'video2video'
|
|
4773
4829
|
| 'voice-clone';
|
|
4774
4830
|
|
|
@@ -5901,6 +5957,7 @@ export namespace AssetGetBulkResponse {
|
|
|
5901
5957
|
| 'video23d'
|
|
5902
5958
|
| 'video2audio'
|
|
5903
5959
|
| 'video2img'
|
|
5960
|
+
| 'video2txt'
|
|
5904
5961
|
| 'video2video'
|
|
5905
5962
|
| 'voice-clone';
|
|
5906
5963
|
|
|
@@ -5930,6 +5987,12 @@ export namespace AssetGetBulkResponse {
|
|
|
5930
5987
|
*/
|
|
5931
5988
|
automaticCaptioning?: string;
|
|
5932
5989
|
|
|
5990
|
+
/**
|
|
5991
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
5992
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
5993
|
+
*/
|
|
5994
|
+
deletedAt?: string;
|
|
5995
|
+
|
|
5933
5996
|
/**
|
|
5934
5997
|
* The description, it will contain in priority:
|
|
5935
5998
|
*
|
|
@@ -6028,11 +6091,13 @@ export namespace AssetGetBulkResponse {
|
|
|
6028
6091
|
| 'model/stl'
|
|
6029
6092
|
| 'model/vnd.collada+xml'
|
|
6030
6093
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
6094
|
+
| 'model/vnd.usdz+zip'
|
|
6031
6095
|
| 'model/x-3d-vox'
|
|
6032
6096
|
| 'model/x-blender'
|
|
6033
6097
|
| 'model/x-fbx'
|
|
6034
6098
|
| 'model/x-maya-ascii'
|
|
6035
6099
|
| 'model/x-maya-binary'
|
|
6100
|
+
| 'model/x-vsplat'
|
|
6036
6101
|
| 'model/x3d+xml'
|
|
6037
6102
|
| 'text/plain'
|
|
6038
6103
|
| 'video/mp4'
|
|
@@ -6159,6 +6224,7 @@ export namespace AssetGetBulkResponse {
|
|
|
6159
6224
|
| 'video23d'
|
|
6160
6225
|
| 'video2audio'
|
|
6161
6226
|
| 'video2img'
|
|
6227
|
+
| 'video2txt'
|
|
6162
6228
|
| 'video2video'
|
|
6163
6229
|
| 'voice-clone';
|
|
6164
6230
|
|
|
@@ -7306,6 +7372,7 @@ export namespace AssetLockResponse {
|
|
|
7306
7372
|
| 'video23d'
|
|
7307
7373
|
| 'video2audio'
|
|
7308
7374
|
| 'video2img'
|
|
7375
|
+
| 'video2txt'
|
|
7309
7376
|
| 'video2video'
|
|
7310
7377
|
| 'voice-clone';
|
|
7311
7378
|
|
|
@@ -7335,6 +7402,12 @@ export namespace AssetLockResponse {
|
|
|
7335
7402
|
*/
|
|
7336
7403
|
automaticCaptioning?: string;
|
|
7337
7404
|
|
|
7405
|
+
/**
|
|
7406
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
7407
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
7408
|
+
*/
|
|
7409
|
+
deletedAt?: string;
|
|
7410
|
+
|
|
7338
7411
|
/**
|
|
7339
7412
|
* The description, it will contain in priority:
|
|
7340
7413
|
*
|
|
@@ -7433,11 +7506,13 @@ export namespace AssetLockResponse {
|
|
|
7433
7506
|
| 'model/stl'
|
|
7434
7507
|
| 'model/vnd.collada+xml'
|
|
7435
7508
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
7509
|
+
| 'model/vnd.usdz+zip'
|
|
7436
7510
|
| 'model/x-3d-vox'
|
|
7437
7511
|
| 'model/x-blender'
|
|
7438
7512
|
| 'model/x-fbx'
|
|
7439
7513
|
| 'model/x-maya-ascii'
|
|
7440
7514
|
| 'model/x-maya-binary'
|
|
7515
|
+
| 'model/x-vsplat'
|
|
7441
7516
|
| 'model/x3d+xml'
|
|
7442
7517
|
| 'text/plain'
|
|
7443
7518
|
| 'video/mp4'
|
|
@@ -7564,6 +7639,7 @@ export namespace AssetLockResponse {
|
|
|
7564
7639
|
| 'video23d'
|
|
7565
7640
|
| 'video2audio'
|
|
7566
7641
|
| 'video2img'
|
|
7642
|
+
| 'video2txt'
|
|
7567
7643
|
| 'video2video'
|
|
7568
7644
|
| 'voice-clone';
|
|
7569
7645
|
|
|
@@ -8540,6 +8616,31 @@ export namespace AssetLockResponse {
|
|
|
8540
8616
|
}
|
|
8541
8617
|
}
|
|
8542
8618
|
|
|
8619
|
+
export interface AssetRestoreMultipleResponse {
|
|
8620
|
+
/**
|
|
8621
|
+
* The ids of the restored assets
|
|
8622
|
+
*/
|
|
8623
|
+
restoredAssetIds: Array<string>;
|
|
8624
|
+
|
|
8625
|
+
/**
|
|
8626
|
+
* The assets that were not restored, and why
|
|
8627
|
+
*/
|
|
8628
|
+
skippedAssets: Array<AssetRestoreMultipleResponse.SkippedAsset>;
|
|
8629
|
+
}
|
|
8630
|
+
|
|
8631
|
+
export namespace AssetRestoreMultipleResponse {
|
|
8632
|
+
export interface SkippedAsset {
|
|
8633
|
+
assetId: string;
|
|
8634
|
+
|
|
8635
|
+
/**
|
|
8636
|
+
* "not-found": no asset with this id. "not-deleted": the asset is not deleted.
|
|
8637
|
+
* "expired": deleted more than 30 days ago, or past the Free plan retention
|
|
8638
|
+
* period.
|
|
8639
|
+
*/
|
|
8640
|
+
reason: 'not-found' | 'not-deleted' | 'expired';
|
|
8641
|
+
}
|
|
8642
|
+
}
|
|
8643
|
+
|
|
8543
8644
|
export interface AssetUnlockResponse {
|
|
8544
8645
|
asset: AssetUnlockResponse.Asset;
|
|
8545
8646
|
}
|
|
@@ -8696,6 +8797,7 @@ export namespace AssetUnlockResponse {
|
|
|
8696
8797
|
| 'video23d'
|
|
8697
8798
|
| 'video2audio'
|
|
8698
8799
|
| 'video2img'
|
|
8800
|
+
| 'video2txt'
|
|
8699
8801
|
| 'video2video'
|
|
8700
8802
|
| 'voice-clone';
|
|
8701
8803
|
|
|
@@ -8725,6 +8827,12 @@ export namespace AssetUnlockResponse {
|
|
|
8725
8827
|
*/
|
|
8726
8828
|
automaticCaptioning?: string;
|
|
8727
8829
|
|
|
8830
|
+
/**
|
|
8831
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
8832
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
8833
|
+
*/
|
|
8834
|
+
deletedAt?: string;
|
|
8835
|
+
|
|
8728
8836
|
/**
|
|
8729
8837
|
* The description, it will contain in priority:
|
|
8730
8838
|
*
|
|
@@ -8823,11 +8931,13 @@ export namespace AssetUnlockResponse {
|
|
|
8823
8931
|
| 'model/stl'
|
|
8824
8932
|
| 'model/vnd.collada+xml'
|
|
8825
8933
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
8934
|
+
| 'model/vnd.usdz+zip'
|
|
8826
8935
|
| 'model/x-3d-vox'
|
|
8827
8936
|
| 'model/x-blender'
|
|
8828
8937
|
| 'model/x-fbx'
|
|
8829
8938
|
| 'model/x-maya-ascii'
|
|
8830
8939
|
| 'model/x-maya-binary'
|
|
8940
|
+
| 'model/x-vsplat'
|
|
8831
8941
|
| 'model/x3d+xml'
|
|
8832
8942
|
| 'text/plain'
|
|
8833
8943
|
| 'video/mp4'
|
|
@@ -8954,6 +9064,7 @@ export namespace AssetUnlockResponse {
|
|
|
8954
9064
|
| 'video23d'
|
|
8955
9065
|
| 'video2audio'
|
|
8956
9066
|
| 'video2img'
|
|
9067
|
+
| 'video2txt'
|
|
8957
9068
|
| 'video2video'
|
|
8958
9069
|
| 'voice-clone';
|
|
8959
9070
|
|
|
@@ -10100,6 +10211,7 @@ export namespace AssetUploadResponse {
|
|
|
10100
10211
|
| 'video23d'
|
|
10101
10212
|
| 'video2audio'
|
|
10102
10213
|
| 'video2img'
|
|
10214
|
+
| 'video2txt'
|
|
10103
10215
|
| 'video2video'
|
|
10104
10216
|
| 'voice-clone';
|
|
10105
10217
|
|
|
@@ -10129,6 +10241,12 @@ export namespace AssetUploadResponse {
|
|
|
10129
10241
|
*/
|
|
10130
10242
|
automaticCaptioning?: string;
|
|
10131
10243
|
|
|
10244
|
+
/**
|
|
10245
|
+
* The asset deletion date as an ISO string (example: "2023-02-03T11:19:41.579Z").
|
|
10246
|
+
* Only set on deleted assets, listed with `deleted=true`.
|
|
10247
|
+
*/
|
|
10248
|
+
deletedAt?: string;
|
|
10249
|
+
|
|
10132
10250
|
/**
|
|
10133
10251
|
* The description, it will contain in priority:
|
|
10134
10252
|
*
|
|
@@ -10227,11 +10345,13 @@ export namespace AssetUploadResponse {
|
|
|
10227
10345
|
| 'model/stl'
|
|
10228
10346
|
| 'model/vnd.collada+xml'
|
|
10229
10347
|
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
10348
|
+
| 'model/vnd.usdz+zip'
|
|
10230
10349
|
| 'model/x-3d-vox'
|
|
10231
10350
|
| 'model/x-blender'
|
|
10232
10351
|
| 'model/x-fbx'
|
|
10233
10352
|
| 'model/x-maya-ascii'
|
|
10234
10353
|
| 'model/x-maya-binary'
|
|
10354
|
+
| 'model/x-vsplat'
|
|
10235
10355
|
| 'model/x3d+xml'
|
|
10236
10356
|
| 'text/plain'
|
|
10237
10357
|
| 'video/mp4'
|
|
@@ -10358,6 +10478,7 @@ export namespace AssetUploadResponse {
|
|
|
10358
10478
|
| 'video23d'
|
|
10359
10479
|
| 'video2audio'
|
|
10360
10480
|
| 'video2img'
|
|
10481
|
+
| 'video2txt'
|
|
10361
10482
|
| 'video2video'
|
|
10362
10483
|
| 'voice-clone';
|
|
10363
10484
|
|
|
@@ -11753,6 +11874,13 @@ export namespace AssetUploadResponse {
|
|
|
11753
11874
|
*/
|
|
11754
11875
|
min?: number;
|
|
11755
11876
|
|
|
11877
|
+
/**
|
|
11878
|
+
* The minimum allowed media duration in seconds. Only applies to \`file\` and
|
|
11879
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
11880
|
+
* \`asset.properties.duration\` at job creation time.
|
|
11881
|
+
*/
|
|
11882
|
+
minDuration?: number;
|
|
11883
|
+
|
|
11756
11884
|
/**
|
|
11757
11885
|
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
11758
11886
|
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
@@ -11983,6 +12111,13 @@ export namespace AssetUploadResponse {
|
|
|
11983
12111
|
*/
|
|
11984
12112
|
min?: number;
|
|
11985
12113
|
|
|
12114
|
+
/**
|
|
12115
|
+
* The minimum allowed media duration in seconds. Only applies to \`file\` and
|
|
12116
|
+
* \`file_array\` input types for video and audio assets. Validated against
|
|
12117
|
+
* \`asset.properties.duration\` at job creation time.
|
|
12118
|
+
*/
|
|
12119
|
+
minDuration?: number;
|
|
12120
|
+
|
|
11986
12121
|
/**
|
|
11987
12122
|
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
11988
12123
|
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
@@ -12475,6 +12610,14 @@ export interface AssetListParams extends AssetsCursorParams {
|
|
|
12475
12610
|
*/
|
|
12476
12611
|
createdBefore?: string;
|
|
12477
12612
|
|
|
12613
|
+
/**
|
|
12614
|
+
* When true, list the assets deleted in the last 30 days, most recently deleted
|
|
12615
|
+
* first, each with its `deletedAt` date. Max plan and above only. Can only be
|
|
12616
|
+
* combined with "projectId", "teamId", "pageSize", "paginationToken" and
|
|
12617
|
+
* "originalAssets"
|
|
12618
|
+
*/
|
|
12619
|
+
deleted?: boolean;
|
|
12620
|
+
|
|
12478
12621
|
/**
|
|
12479
12622
|
* List assets generated from a specific inference
|
|
12480
12623
|
*/
|
|
@@ -12554,8 +12697,8 @@ export interface AssetListParams extends AssetsCursorParams {
|
|
|
12554
12697
|
* img2video, txt2audio, audio2audio, audio2video, video2audio, voice-clone,
|
|
12555
12698
|
* video2video, video2img, txt2img, img2img, txt2video, uploaded, uploaded-video,
|
|
12556
12699
|
* uploaded-audio, uploaded-3d, uploaded-avatar, upscale-video, uploaded-text,
|
|
12557
|
-
* audio2txt, txt2txt, img2txt, assets with a type starting with
|
|
12558
|
-
* be returned
|
|
12700
|
+
* audio2txt, txt2txt, img2txt, video2txt, assets with a type starting with
|
|
12701
|
+
* "inference-" will be returned
|
|
12559
12702
|
*/
|
|
12560
12703
|
type?:
|
|
12561
12704
|
| 'inference-txt2img'
|
|
@@ -12637,7 +12780,8 @@ export interface AssetListParams extends AssetsCursorParams {
|
|
|
12637
12780
|
| 'uploaded-text'
|
|
12638
12781
|
| 'audio2txt'
|
|
12639
12782
|
| 'txt2txt'
|
|
12640
|
-
| 'img2txt'
|
|
12783
|
+
| 'img2txt'
|
|
12784
|
+
| 'video2txt';
|
|
12641
12785
|
|
|
12642
12786
|
/**
|
|
12643
12787
|
* List of the asset types to request. The parameter "type" and "types" cannot be
|
|
@@ -12659,7 +12803,7 @@ export interface AssetListParams extends AssetsCursorParams {
|
|
|
12659
12803
|
* img2video, txt2audio, audio2audio, audio2video, video2audio, voice-clone,
|
|
12660
12804
|
* video2video, video2img, txt2img, img2img, txt2video, uploaded, uploaded-video,
|
|
12661
12805
|
* uploaded-audio, uploaded-3d, uploaded-avatar, upscale-video, uploaded-text,
|
|
12662
|
-
* audio2txt, txt2txt, img2txt
|
|
12806
|
+
* audio2txt, txt2txt, img2txt, video2txt
|
|
12663
12807
|
*/
|
|
12664
12808
|
types?: Array<
|
|
12665
12809
|
| 'inference-txt2img'
|
|
@@ -12742,6 +12886,7 @@ export interface AssetListParams extends AssetsCursorParams {
|
|
|
12742
12886
|
| 'audio2txt'
|
|
12743
12887
|
| 'txt2txt'
|
|
12744
12888
|
| 'img2txt'
|
|
12889
|
+
| 'video2txt'
|
|
12745
12890
|
>;
|
|
12746
12891
|
|
|
12747
12892
|
/**
|
|
@@ -12840,6 +12985,19 @@ export interface AssetLockParams {
|
|
|
12840
12985
|
projectId?: string;
|
|
12841
12986
|
}
|
|
12842
12987
|
|
|
12988
|
+
export interface AssetRestoreMultipleParams {
|
|
12989
|
+
/**
|
|
12990
|
+
* Body param: The ids of the deleted assets to restore. (Max 100 at once)
|
|
12991
|
+
*/
|
|
12992
|
+
assetIds: Array<string>;
|
|
12993
|
+
|
|
12994
|
+
/**
|
|
12995
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
12996
|
+
* assert ownership or to set the owner of the resource(s)
|
|
12997
|
+
*/
|
|
12998
|
+
projectId?: string;
|
|
12999
|
+
}
|
|
13000
|
+
|
|
12843
13001
|
export interface AssetUnlockParams {
|
|
12844
13002
|
/**
|
|
12845
13003
|
* Query param: If set to true, returns the original asset without transformation
|
|
@@ -12953,6 +13111,7 @@ export declare namespace Assets {
|
|
|
12953
13111
|
type AssetGetBulkResponse as AssetGetBulkResponse,
|
|
12954
13112
|
type AssetListSnapshotsResponse as AssetListSnapshotsResponse,
|
|
12955
13113
|
type AssetLockResponse as AssetLockResponse,
|
|
13114
|
+
type AssetRestoreMultipleResponse as AssetRestoreMultipleResponse,
|
|
12956
13115
|
type AssetUnlockResponse as AssetUnlockResponse,
|
|
12957
13116
|
type AssetUpdateTagsResponse as AssetUpdateTagsResponse,
|
|
12958
13117
|
type AssetUploadResponse as AssetUploadResponse,
|
|
@@ -12966,6 +13125,7 @@ export declare namespace Assets {
|
|
|
12966
13125
|
type AssetGetBulkParams as AssetGetBulkParams,
|
|
12967
13126
|
type AssetListSnapshotsParams as AssetListSnapshotsParams,
|
|
12968
13127
|
type AssetLockParams as AssetLockParams,
|
|
13128
|
+
type AssetRestoreMultipleParams as AssetRestoreMultipleParams,
|
|
12969
13129
|
type AssetUnlockParams as AssetUnlockParams,
|
|
12970
13130
|
type AssetUpdateTagsParams as AssetUpdateTagsParams,
|
|
12971
13131
|
type AssetUploadParams as AssetUploadParams,
|
|
@@ -10,6 +10,7 @@ export {
|
|
|
10
10
|
type AssetGetBulkResponse,
|
|
11
11
|
type AssetListSnapshotsResponse,
|
|
12
12
|
type AssetLockResponse,
|
|
13
|
+
type AssetRestoreMultipleResponse,
|
|
13
14
|
type AssetUnlockResponse,
|
|
14
15
|
type AssetUpdateTagsResponse,
|
|
15
16
|
type AssetUploadResponse,
|
|
@@ -21,6 +22,7 @@ export {
|
|
|
21
22
|
type AssetGetBulkParams,
|
|
22
23
|
type AssetListSnapshotsParams,
|
|
23
24
|
type AssetLockParams,
|
|
25
|
+
type AssetRestoreMultipleParams,
|
|
24
26
|
type AssetUnlockParams,
|
|
25
27
|
type AssetUpdateTagsParams,
|
|
26
28
|
type AssetUploadParams,
|