@scenario-labs/sdk 3.0.0 → 3.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 +106 -2
- 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 +2 -2
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +8 -8
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +8 -8
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +8 -8
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +8 -8
- package/core/pagination.mjs.map +1 -1
- 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 +99 -12
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +99 -12
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +3 -1
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +3 -1
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +41 -1
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +41 -1
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +198 -115
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +198 -115
- 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/assets/download.d.mts +15 -0
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +15 -0
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +2 -2
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +2 -2
- package/resources/assets/download.mjs.map +1 -1
- package/resources/generate.d.mts +383 -225
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +383 -225
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +2 -6
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +2 -6
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- 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 +77 -46
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +77 -46
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +2 -6
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +2 -6
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +22 -4
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +22 -4
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/examples.d.mts +84 -50
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +84 -50
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/models.d.mts +131 -35
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +131 -35
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +6 -2
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +6 -2
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +78 -38
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +78 -38
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +2 -2
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +2 -2
- package/resources/models/train.mjs.map +1 -1
- package/resources/search.d.mts +168 -5
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +168 -5
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +15 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +15 -2
- package/resources/search.mjs.map +1 -1
- package/resources/uploads.d.mts +13 -3
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -3
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +2 -2
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +2 -2
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +36 -29
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +36 -29
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +283 -130
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +283 -130
- package/resources/workflows.d.ts.map +1 -1
- package/src/client.ts +10 -4
- package/src/core/pagination.ts +20 -20
- package/src/lib/workflow_converter.ts +126 -12
- package/src/lib/workflow_validator.ts +68 -1
- package/src/resources/assets/assets.ts +590 -115
- package/src/resources/assets/download.ts +19 -2
- package/src/resources/generate.ts +499 -240
- package/src/resources/index.ts +3 -0
- package/src/resources/jobs.ts +79 -53
- package/src/resources/models/description.ts +120 -4
- package/src/resources/models/examples.ts +182 -50
- package/src/resources/models/models.ts +138 -37
- package/src/resources/models/train.ts +82 -42
- package/src/resources/search.ts +218 -7
- package/src/resources/uploads.ts +16 -5
- package/src/resources/usages.ts +42 -29
- package/src/resources/workflows.ts +283 -130
- 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/src/resources/index.ts
CHANGED
|
@@ -102,10 +102,13 @@ export {
|
|
|
102
102
|
Search,
|
|
103
103
|
type SearchAssetSearchResponse,
|
|
104
104
|
type SearchModelSearchResponse,
|
|
105
|
+
type SearchWorkflowSearchResponse,
|
|
105
106
|
type SearchAssetSearchParams,
|
|
106
107
|
type SearchModelSearchParams,
|
|
108
|
+
type SearchWorkflowSearchParams,
|
|
107
109
|
type SearchAssetSearchResponsesSearchHitsOffset,
|
|
108
110
|
type SearchModelSearchResponsesSearchHitsOffset,
|
|
111
|
+
type SearchWorkflowSearchResponsesSearchHitsOffset,
|
|
109
112
|
} from './search';
|
|
110
113
|
export { Tags, type TagListResponse, type TagListParams, type TagListResponsesTagsCursor } from './tags';
|
|
111
114
|
export {
|
package/src/resources/jobs.ts
CHANGED
|
@@ -39,12 +39,8 @@ export class Jobs extends APIResource {
|
|
|
39
39
|
params: JobTriggerActionParams,
|
|
40
40
|
options?: RequestOptions,
|
|
41
41
|
): APIPromise<JobTriggerActionResponse> {
|
|
42
|
-
const {
|
|
43
|
-
return this._client.post(path`/jobs/${jobID}/action`, {
|
|
44
|
-
query: { originalAssets, projectId },
|
|
45
|
-
body,
|
|
46
|
-
...options,
|
|
47
|
-
});
|
|
42
|
+
const { projectId, ...body } = params;
|
|
43
|
+
return this._client.post(path`/jobs/${jobID}/action`, { query: { projectId }, body, ...options });
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
|
|
@@ -425,7 +421,9 @@ export namespace JobRetrieveResponse {
|
|
|
425
421
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
426
422
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
427
423
|
* not able to create the asset on the flight on API side with dataurl without
|
|
428
|
-
* data:kind, prefix
|
|
424
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
425
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
426
|
+
* generation time.
|
|
429
427
|
*/
|
|
430
428
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
431
429
|
|
|
@@ -453,8 +451,9 @@ export namespace JobRetrieveResponse {
|
|
|
453
451
|
maxDuration?: number;
|
|
454
452
|
|
|
455
453
|
/**
|
|
456
|
-
* The maximum allowed length for \`string\`
|
|
457
|
-
* \`string_array
|
|
454
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
455
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
456
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
458
457
|
*/
|
|
459
458
|
maxLength?: number;
|
|
460
459
|
|
|
@@ -471,8 +470,9 @@ export namespace JobRetrieveResponse {
|
|
|
471
470
|
min?: number;
|
|
472
471
|
|
|
473
472
|
/**
|
|
474
|
-
* The minimum allowed length for string
|
|
475
|
-
* \`string_array
|
|
473
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
474
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
475
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
476
476
|
*/
|
|
477
477
|
minLength?: number;
|
|
478
478
|
|
|
@@ -652,7 +652,9 @@ export namespace JobRetrieveResponse {
|
|
|
652
652
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
653
653
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
654
654
|
* not able to create the asset on the flight on API side with dataurl without
|
|
655
|
-
* data:kind, prefix
|
|
655
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
656
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
657
|
+
* generation time.
|
|
656
658
|
*/
|
|
657
659
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
658
660
|
|
|
@@ -680,8 +682,9 @@ export namespace JobRetrieveResponse {
|
|
|
680
682
|
maxDuration?: number;
|
|
681
683
|
|
|
682
684
|
/**
|
|
683
|
-
* The maximum allowed length for \`string\`
|
|
684
|
-
* \`string_array
|
|
685
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
686
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
687
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
685
688
|
*/
|
|
686
689
|
maxLength?: number;
|
|
687
690
|
|
|
@@ -698,8 +701,9 @@ export namespace JobRetrieveResponse {
|
|
|
698
701
|
min?: number;
|
|
699
702
|
|
|
700
703
|
/**
|
|
701
|
-
* The minimum allowed length for string
|
|
702
|
-
* \`string_array
|
|
704
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
705
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
706
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
703
707
|
*/
|
|
704
708
|
minLength?: number;
|
|
705
709
|
|
|
@@ -1004,7 +1008,7 @@ export namespace JobRetrieveResponse {
|
|
|
1004
1008
|
|
|
1005
1009
|
/**
|
|
1006
1010
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1007
|
-
* top of the generation itself, such as `
|
|
1011
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1008
1012
|
*
|
|
1009
1013
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1010
1014
|
* values here.
|
|
@@ -1034,7 +1038,7 @@ export namespace JobRetrieveResponse {
|
|
|
1034
1038
|
export namespace Billing {
|
|
1035
1039
|
/**
|
|
1036
1040
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1037
|
-
* top of the generation itself, such as `
|
|
1041
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1038
1042
|
*
|
|
1039
1043
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1040
1044
|
* values here.
|
|
@@ -1054,7 +1058,7 @@ export namespace JobRetrieveResponse {
|
|
|
1054
1058
|
export interface CuCostDetails {
|
|
1055
1059
|
'ip-detection'?: number;
|
|
1056
1060
|
|
|
1057
|
-
'
|
|
1061
|
+
'quality-gate'?: number;
|
|
1058
1062
|
}
|
|
1059
1063
|
}
|
|
1060
1064
|
}
|
|
@@ -1430,7 +1434,9 @@ export namespace JobListResponse {
|
|
|
1430
1434
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1431
1435
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1432
1436
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1433
|
-
* data:kind, prefix
|
|
1437
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1438
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1439
|
+
* generation time.
|
|
1434
1440
|
*/
|
|
1435
1441
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1436
1442
|
|
|
@@ -1458,8 +1464,9 @@ export namespace JobListResponse {
|
|
|
1458
1464
|
maxDuration?: number;
|
|
1459
1465
|
|
|
1460
1466
|
/**
|
|
1461
|
-
* The maximum allowed length for \`string\`
|
|
1462
|
-
* \`string_array
|
|
1467
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1468
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1469
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1463
1470
|
*/
|
|
1464
1471
|
maxLength?: number;
|
|
1465
1472
|
|
|
@@ -1476,8 +1483,9 @@ export namespace JobListResponse {
|
|
|
1476
1483
|
min?: number;
|
|
1477
1484
|
|
|
1478
1485
|
/**
|
|
1479
|
-
* The minimum allowed length for string
|
|
1480
|
-
* \`string_array
|
|
1486
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1487
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1488
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1481
1489
|
*/
|
|
1482
1490
|
minLength?: number;
|
|
1483
1491
|
|
|
@@ -1657,7 +1665,9 @@ export namespace JobListResponse {
|
|
|
1657
1665
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1658
1666
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1659
1667
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1660
|
-
* data:kind, prefix
|
|
1668
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1669
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1670
|
+
* generation time.
|
|
1661
1671
|
*/
|
|
1662
1672
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1663
1673
|
|
|
@@ -1685,8 +1695,9 @@ export namespace JobListResponse {
|
|
|
1685
1695
|
maxDuration?: number;
|
|
1686
1696
|
|
|
1687
1697
|
/**
|
|
1688
|
-
* The maximum allowed length for \`string\`
|
|
1689
|
-
* \`string_array
|
|
1698
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1699
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1700
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1690
1701
|
*/
|
|
1691
1702
|
maxLength?: number;
|
|
1692
1703
|
|
|
@@ -1703,8 +1714,9 @@ export namespace JobListResponse {
|
|
|
1703
1714
|
min?: number;
|
|
1704
1715
|
|
|
1705
1716
|
/**
|
|
1706
|
-
* The minimum allowed length for string
|
|
1707
|
-
* \`string_array
|
|
1717
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1718
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1719
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1708
1720
|
*/
|
|
1709
1721
|
minLength?: number;
|
|
1710
1722
|
|
|
@@ -2009,7 +2021,7 @@ export namespace JobListResponse {
|
|
|
2009
2021
|
|
|
2010
2022
|
/**
|
|
2011
2023
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2012
|
-
* top of the generation itself, such as `
|
|
2024
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2013
2025
|
*
|
|
2014
2026
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2015
2027
|
* values here.
|
|
@@ -2039,7 +2051,7 @@ export namespace JobListResponse {
|
|
|
2039
2051
|
export namespace Billing {
|
|
2040
2052
|
/**
|
|
2041
2053
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2042
|
-
* top of the generation itself, such as `
|
|
2054
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2043
2055
|
*
|
|
2044
2056
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2045
2057
|
* values here.
|
|
@@ -2059,7 +2071,7 @@ export namespace JobListResponse {
|
|
|
2059
2071
|
export interface CuCostDetails {
|
|
2060
2072
|
'ip-detection'?: number;
|
|
2061
2073
|
|
|
2062
|
-
'
|
|
2074
|
+
'quality-gate'?: number;
|
|
2063
2075
|
}
|
|
2064
2076
|
}
|
|
2065
2077
|
}
|
|
@@ -2439,7 +2451,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2439
2451
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2440
2452
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2441
2453
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2442
|
-
* data:kind, prefix
|
|
2454
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2455
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2456
|
+
* generation time.
|
|
2443
2457
|
*/
|
|
2444
2458
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2445
2459
|
|
|
@@ -2467,8 +2481,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2467
2481
|
maxDuration?: number;
|
|
2468
2482
|
|
|
2469
2483
|
/**
|
|
2470
|
-
* The maximum allowed length for \`string\`
|
|
2471
|
-
* \`string_array
|
|
2484
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2485
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2486
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2472
2487
|
*/
|
|
2473
2488
|
maxLength?: number;
|
|
2474
2489
|
|
|
@@ -2485,8 +2500,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2485
2500
|
min?: number;
|
|
2486
2501
|
|
|
2487
2502
|
/**
|
|
2488
|
-
* The minimum allowed length for string
|
|
2489
|
-
* \`string_array
|
|
2503
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2504
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2505
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2490
2506
|
*/
|
|
2491
2507
|
minLength?: number;
|
|
2492
2508
|
|
|
@@ -2666,7 +2682,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2666
2682
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2667
2683
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2668
2684
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2669
|
-
* data:kind, prefix
|
|
2685
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2686
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2687
|
+
* generation time.
|
|
2670
2688
|
*/
|
|
2671
2689
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2672
2690
|
|
|
@@ -2694,8 +2712,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2694
2712
|
maxDuration?: number;
|
|
2695
2713
|
|
|
2696
2714
|
/**
|
|
2697
|
-
* The maximum allowed length for \`string\`
|
|
2698
|
-
* \`string_array
|
|
2715
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2716
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2717
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2699
2718
|
*/
|
|
2700
2719
|
maxLength?: number;
|
|
2701
2720
|
|
|
@@ -2712,8 +2731,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2712
2731
|
min?: number;
|
|
2713
2732
|
|
|
2714
2733
|
/**
|
|
2715
|
-
* The minimum allowed length for string
|
|
2716
|
-
* \`string_array
|
|
2734
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2735
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2736
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2717
2737
|
*/
|
|
2718
2738
|
minLength?: number;
|
|
2719
2739
|
|
|
@@ -3018,7 +3038,7 @@ export namespace JobTriggerActionResponse {
|
|
|
3018
3038
|
|
|
3019
3039
|
/**
|
|
3020
3040
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
3021
|
-
* top of the generation itself, such as `
|
|
3041
|
+
* top of the generation itself, such as `quality-gate`.
|
|
3022
3042
|
*
|
|
3023
3043
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
3024
3044
|
* values here.
|
|
@@ -3048,7 +3068,7 @@ export namespace JobTriggerActionResponse {
|
|
|
3048
3068
|
export namespace Billing {
|
|
3049
3069
|
/**
|
|
3050
3070
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
3051
|
-
* top of the generation itself, such as `
|
|
3071
|
+
* top of the generation itself, such as `quality-gate`.
|
|
3052
3072
|
*
|
|
3053
3073
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
3054
3074
|
* values here.
|
|
@@ -3068,14 +3088,18 @@ export namespace JobTriggerActionResponse {
|
|
|
3068
3088
|
export interface CuCostDetails {
|
|
3069
3089
|
'ip-detection'?: number;
|
|
3070
3090
|
|
|
3071
|
-
'
|
|
3091
|
+
'quality-gate'?: number;
|
|
3072
3092
|
}
|
|
3073
3093
|
}
|
|
3074
3094
|
}
|
|
3075
3095
|
}
|
|
3076
3096
|
|
|
3077
3097
|
export interface JobRetrieveParams {
|
|
3078
|
-
|
|
3098
|
+
/**
|
|
3099
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
3100
|
+
* or to set the owner of the resource(s)
|
|
3101
|
+
*/
|
|
3102
|
+
projectId?: string;
|
|
3079
3103
|
}
|
|
3080
3104
|
|
|
3081
3105
|
export interface JobListParams extends JobsCursorParams {
|
|
@@ -3095,7 +3119,11 @@ export interface JobListParams extends JobsCursorParams {
|
|
|
3095
3119
|
*/
|
|
3096
3120
|
pageSize?: number;
|
|
3097
3121
|
|
|
3098
|
-
|
|
3122
|
+
/**
|
|
3123
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
3124
|
+
* or to set the owner of the resource(s)
|
|
3125
|
+
*/
|
|
3126
|
+
projectId?: string;
|
|
3099
3127
|
|
|
3100
3128
|
/**
|
|
3101
3129
|
* The status of the jobs to return. Optional.
|
|
@@ -3202,15 +3230,13 @@ export interface JobListParams extends JobsCursorParams {
|
|
|
3202
3230
|
| 'workflow'
|
|
3203
3231
|
>;
|
|
3204
3232
|
|
|
3205
|
-
workflowId?: unknown;
|
|
3206
|
-
}
|
|
3207
|
-
|
|
3208
|
-
export interface JobTriggerActionParams {
|
|
3209
3233
|
/**
|
|
3210
|
-
*
|
|
3234
|
+
* Only return the jobs produced by the given workflow. Optional.
|
|
3211
3235
|
*/
|
|
3212
|
-
|
|
3236
|
+
workflowId?: string;
|
|
3237
|
+
}
|
|
3213
3238
|
|
|
3239
|
+
export interface JobTriggerActionParams {
|
|
3214
3240
|
/**
|
|
3215
3241
|
* Query param: The projectId used for ownership resource management. Either to
|
|
3216
3242
|
* assert ownership or to set the owner of the resource(s)
|
|
@@ -194,6 +194,64 @@ export namespace DescriptionRetrieveResponse {
|
|
|
194
194
|
*/
|
|
195
195
|
originalFileUrl?: string;
|
|
196
196
|
|
|
197
|
+
/**
|
|
198
|
+
* The mime type of the original file url.
|
|
199
|
+
*
|
|
200
|
+
* The original file is stored under a key that carries no extension, so this is
|
|
201
|
+
* the only way to know which format `originalFileUrl` serves (e.g. an HDRi skybox
|
|
202
|
+
* exposes a JPEG preview as `url` and its `.exr` or `.hdr` file as the original).
|
|
203
|
+
* Omitted when the stored format could not be determined.
|
|
204
|
+
*/
|
|
205
|
+
originalMimeType?:
|
|
206
|
+
| 'application/gzip'
|
|
207
|
+
| 'application/json'
|
|
208
|
+
| 'application/octet-stream'
|
|
209
|
+
| 'application/pdf'
|
|
210
|
+
| 'application/safetensors'
|
|
211
|
+
| 'application/vnd.autodesk.fbx'
|
|
212
|
+
| 'application/x-authorware-bin'
|
|
213
|
+
| 'application/x-zip-compressed'
|
|
214
|
+
| 'application/x.autodesk.fbx'
|
|
215
|
+
| 'application/zip'
|
|
216
|
+
| 'audio/m4a'
|
|
217
|
+
| 'audio/mpeg'
|
|
218
|
+
| 'audio/ogg'
|
|
219
|
+
| 'audio/wav'
|
|
220
|
+
| 'image/aces'
|
|
221
|
+
| 'image/avif'
|
|
222
|
+
| 'image/bmp'
|
|
223
|
+
| 'image/gif'
|
|
224
|
+
| 'image/heic'
|
|
225
|
+
| 'image/jpeg'
|
|
226
|
+
| 'image/png'
|
|
227
|
+
| 'image/svg+xml'
|
|
228
|
+
| 'image/tiff'
|
|
229
|
+
| 'image/vnd.radiance'
|
|
230
|
+
| 'image/webp'
|
|
231
|
+
| 'image/x-exr'
|
|
232
|
+
| 'model/glb'
|
|
233
|
+
| 'model/gltf+json'
|
|
234
|
+
| 'model/gltf-binary'
|
|
235
|
+
| 'model/ksplat'
|
|
236
|
+
| 'model/mtl'
|
|
237
|
+
| 'model/obj'
|
|
238
|
+
| 'model/ply'
|
|
239
|
+
| 'model/sog'
|
|
240
|
+
| 'model/splat'
|
|
241
|
+
| 'model/spz'
|
|
242
|
+
| 'model/stl'
|
|
243
|
+
| 'model/vnd.collada+xml'
|
|
244
|
+
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
245
|
+
| 'model/x-3d-vox'
|
|
246
|
+
| 'model/x-fbx'
|
|
247
|
+
| 'model/x-maya-ascii'
|
|
248
|
+
| 'model/x-maya-binary'
|
|
249
|
+
| 'model/x3d+xml'
|
|
250
|
+
| 'text/plain'
|
|
251
|
+
| 'video/mp4'
|
|
252
|
+
| 'video/quicktime'
|
|
253
|
+
| 'video/webm';
|
|
254
|
+
|
|
197
255
|
/**
|
|
198
256
|
* The asset's preview.
|
|
199
257
|
*
|
|
@@ -372,12 +430,12 @@ export namespace DescriptionRetrieveResponse {
|
|
|
372
430
|
/**
|
|
373
431
|
* Camera eye position in the splat's world frame.
|
|
374
432
|
*/
|
|
375
|
-
position: Array<
|
|
433
|
+
position: Array<number>;
|
|
376
434
|
|
|
377
435
|
/**
|
|
378
436
|
* Look-at point in the splat's world frame.
|
|
379
437
|
*/
|
|
380
|
-
target: Array<
|
|
438
|
+
target: Array<number>;
|
|
381
439
|
|
|
382
440
|
/**
|
|
383
441
|
* Vertical field of view in degrees (defaults to 50 in the renderer).
|
|
@@ -647,6 +705,64 @@ export namespace DescriptionUpdateResponse {
|
|
|
647
705
|
*/
|
|
648
706
|
originalFileUrl?: string;
|
|
649
707
|
|
|
708
|
+
/**
|
|
709
|
+
* The mime type of the original file url.
|
|
710
|
+
*
|
|
711
|
+
* The original file is stored under a key that carries no extension, so this is
|
|
712
|
+
* the only way to know which format `originalFileUrl` serves (e.g. an HDRi skybox
|
|
713
|
+
* exposes a JPEG preview as `url` and its `.exr` or `.hdr` file as the original).
|
|
714
|
+
* Omitted when the stored format could not be determined.
|
|
715
|
+
*/
|
|
716
|
+
originalMimeType?:
|
|
717
|
+
| 'application/gzip'
|
|
718
|
+
| 'application/json'
|
|
719
|
+
| 'application/octet-stream'
|
|
720
|
+
| 'application/pdf'
|
|
721
|
+
| 'application/safetensors'
|
|
722
|
+
| 'application/vnd.autodesk.fbx'
|
|
723
|
+
| 'application/x-authorware-bin'
|
|
724
|
+
| 'application/x-zip-compressed'
|
|
725
|
+
| 'application/x.autodesk.fbx'
|
|
726
|
+
| 'application/zip'
|
|
727
|
+
| 'audio/m4a'
|
|
728
|
+
| 'audio/mpeg'
|
|
729
|
+
| 'audio/ogg'
|
|
730
|
+
| 'audio/wav'
|
|
731
|
+
| 'image/aces'
|
|
732
|
+
| 'image/avif'
|
|
733
|
+
| 'image/bmp'
|
|
734
|
+
| 'image/gif'
|
|
735
|
+
| 'image/heic'
|
|
736
|
+
| 'image/jpeg'
|
|
737
|
+
| 'image/png'
|
|
738
|
+
| 'image/svg+xml'
|
|
739
|
+
| 'image/tiff'
|
|
740
|
+
| 'image/vnd.radiance'
|
|
741
|
+
| 'image/webp'
|
|
742
|
+
| 'image/x-exr'
|
|
743
|
+
| 'model/glb'
|
|
744
|
+
| 'model/gltf+json'
|
|
745
|
+
| 'model/gltf-binary'
|
|
746
|
+
| 'model/ksplat'
|
|
747
|
+
| 'model/mtl'
|
|
748
|
+
| 'model/obj'
|
|
749
|
+
| 'model/ply'
|
|
750
|
+
| 'model/sog'
|
|
751
|
+
| 'model/splat'
|
|
752
|
+
| 'model/spz'
|
|
753
|
+
| 'model/stl'
|
|
754
|
+
| 'model/vnd.collada+xml'
|
|
755
|
+
| 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
|
|
756
|
+
| 'model/x-3d-vox'
|
|
757
|
+
| 'model/x-fbx'
|
|
758
|
+
| 'model/x-maya-ascii'
|
|
759
|
+
| 'model/x-maya-binary'
|
|
760
|
+
| 'model/x3d+xml'
|
|
761
|
+
| 'text/plain'
|
|
762
|
+
| 'video/mp4'
|
|
763
|
+
| 'video/quicktime'
|
|
764
|
+
| 'video/webm';
|
|
765
|
+
|
|
650
766
|
/**
|
|
651
767
|
* The asset's preview.
|
|
652
768
|
*
|
|
@@ -825,12 +941,12 @@ export namespace DescriptionUpdateResponse {
|
|
|
825
941
|
/**
|
|
826
942
|
* Camera eye position in the splat's world frame.
|
|
827
943
|
*/
|
|
828
|
-
position: Array<
|
|
944
|
+
position: Array<number>;
|
|
829
945
|
|
|
830
946
|
/**
|
|
831
947
|
* Look-at point in the splat's world frame.
|
|
832
948
|
*/
|
|
833
|
-
target: Array<
|
|
949
|
+
target: Array<number>;
|
|
834
950
|
|
|
835
951
|
/**
|
|
836
952
|
* Vertical field of view in degrees (defaults to 50 in the renderer).
|