@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
|
@@ -443,7 +443,9 @@ export namespace WorkflowCreateResponse {
|
|
|
443
443
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
444
444
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
445
445
|
* not able to create the asset on the flight on API side with dataurl without
|
|
446
|
-
* data:kind, prefix
|
|
446
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
447
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
448
|
+
* generation time.
|
|
447
449
|
*/
|
|
448
450
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
449
451
|
|
|
@@ -471,8 +473,9 @@ export namespace WorkflowCreateResponse {
|
|
|
471
473
|
maxDuration?: number;
|
|
472
474
|
|
|
473
475
|
/**
|
|
474
|
-
* The maximum allowed length for \`string\`
|
|
475
|
-
* \`string_array
|
|
476
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
477
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
478
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
476
479
|
*/
|
|
477
480
|
maxLength?: number;
|
|
478
481
|
|
|
@@ -489,8 +492,9 @@ export namespace WorkflowCreateResponse {
|
|
|
489
492
|
min?: number;
|
|
490
493
|
|
|
491
494
|
/**
|
|
492
|
-
* The minimum allowed length for string
|
|
493
|
-
* \`string_array
|
|
495
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
496
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
497
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
494
498
|
*/
|
|
495
499
|
minLength?: number;
|
|
496
500
|
|
|
@@ -670,7 +674,9 @@ export namespace WorkflowCreateResponse {
|
|
|
670
674
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
671
675
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
672
676
|
* not able to create the asset on the flight on API side with dataurl without
|
|
673
|
-
* data:kind, prefix
|
|
677
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
678
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
679
|
+
* generation time.
|
|
674
680
|
*/
|
|
675
681
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
676
682
|
|
|
@@ -698,8 +704,9 @@ export namespace WorkflowCreateResponse {
|
|
|
698
704
|
maxDuration?: number;
|
|
699
705
|
|
|
700
706
|
/**
|
|
701
|
-
* The maximum allowed length for \`string\`
|
|
702
|
-
* \`string_array
|
|
707
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
708
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
709
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
703
710
|
*/
|
|
704
711
|
maxLength?: number;
|
|
705
712
|
|
|
@@ -716,8 +723,9 @@ export namespace WorkflowCreateResponse {
|
|
|
716
723
|
min?: number;
|
|
717
724
|
|
|
718
725
|
/**
|
|
719
|
-
* The minimum allowed length for string
|
|
720
|
-
* \`string_array
|
|
726
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
727
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
728
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
721
729
|
*/
|
|
722
730
|
minLength?: number;
|
|
723
731
|
|
|
@@ -1079,7 +1087,9 @@ export namespace WorkflowCreateResponse {
|
|
|
1079
1087
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1080
1088
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1081
1089
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1082
|
-
* data:kind, prefix
|
|
1090
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1091
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1092
|
+
* generation time.
|
|
1083
1093
|
*/
|
|
1084
1094
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1085
1095
|
|
|
@@ -1107,8 +1117,9 @@ export namespace WorkflowCreateResponse {
|
|
|
1107
1117
|
maxDuration?: number;
|
|
1108
1118
|
|
|
1109
1119
|
/**
|
|
1110
|
-
* The maximum allowed length for \`string\`
|
|
1111
|
-
* \`string_array
|
|
1120
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1121
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1122
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1112
1123
|
*/
|
|
1113
1124
|
maxLength?: number;
|
|
1114
1125
|
|
|
@@ -1125,8 +1136,9 @@ export namespace WorkflowCreateResponse {
|
|
|
1125
1136
|
min?: number;
|
|
1126
1137
|
|
|
1127
1138
|
/**
|
|
1128
|
-
* The minimum allowed length for string
|
|
1129
|
-
* \`string_array
|
|
1139
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1140
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1141
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1130
1142
|
*/
|
|
1131
1143
|
minLength?: number;
|
|
1132
1144
|
|
|
@@ -1313,6 +1325,11 @@ export namespace WorkflowCreateResponse {
|
|
|
1313
1325
|
*/
|
|
1314
1326
|
lorasComponent?: UiConfig.LorasComponent;
|
|
1315
1327
|
|
|
1328
|
+
/**
|
|
1329
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
1330
|
+
*/
|
|
1331
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
1332
|
+
|
|
1316
1333
|
/**
|
|
1317
1334
|
* Configuration for the presets
|
|
1318
1335
|
*/
|
|
@@ -1367,6 +1384,10 @@ export namespace WorkflowCreateResponse {
|
|
|
1367
1384
|
modelIdInput?: string;
|
|
1368
1385
|
}
|
|
1369
1386
|
|
|
1387
|
+
export interface OutputProperties {
|
|
1388
|
+
label: string;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1370
1391
|
export interface Preset {
|
|
1371
1392
|
fields: Array<string>;
|
|
1372
1393
|
|
|
@@ -1757,7 +1778,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
1757
1778
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1758
1779
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1759
1780
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1760
|
-
* data:kind, prefix
|
|
1781
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1782
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1783
|
+
* generation time.
|
|
1761
1784
|
*/
|
|
1762
1785
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1763
1786
|
|
|
@@ -1785,8 +1808,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
1785
1808
|
maxDuration?: number;
|
|
1786
1809
|
|
|
1787
1810
|
/**
|
|
1788
|
-
* The maximum allowed length for \`string\`
|
|
1789
|
-
* \`string_array
|
|
1811
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1812
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1813
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1790
1814
|
*/
|
|
1791
1815
|
maxLength?: number;
|
|
1792
1816
|
|
|
@@ -1803,8 +1827,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
1803
1827
|
min?: number;
|
|
1804
1828
|
|
|
1805
1829
|
/**
|
|
1806
|
-
* The minimum allowed length for string
|
|
1807
|
-
* \`string_array
|
|
1830
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1831
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1832
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1808
1833
|
*/
|
|
1809
1834
|
minLength?: number;
|
|
1810
1835
|
|
|
@@ -1984,7 +2009,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
1984
2009
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1985
2010
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1986
2011
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1987
|
-
* data:kind, prefix
|
|
2012
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2013
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2014
|
+
* generation time.
|
|
1988
2015
|
*/
|
|
1989
2016
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1990
2017
|
|
|
@@ -2012,8 +2039,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
2012
2039
|
maxDuration?: number;
|
|
2013
2040
|
|
|
2014
2041
|
/**
|
|
2015
|
-
* The maximum allowed length for \`string\`
|
|
2016
|
-
* \`string_array
|
|
2042
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2043
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2044
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2017
2045
|
*/
|
|
2018
2046
|
maxLength?: number;
|
|
2019
2047
|
|
|
@@ -2030,8 +2058,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
2030
2058
|
min?: number;
|
|
2031
2059
|
|
|
2032
2060
|
/**
|
|
2033
|
-
* The minimum allowed length for string
|
|
2034
|
-
* \`string_array
|
|
2061
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2062
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2063
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2035
2064
|
*/
|
|
2036
2065
|
minLength?: number;
|
|
2037
2066
|
|
|
@@ -2393,7 +2422,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
2393
2422
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2394
2423
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2395
2424
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2396
|
-
* data:kind, prefix
|
|
2425
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2426
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2427
|
+
* generation time.
|
|
2397
2428
|
*/
|
|
2398
2429
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2399
2430
|
|
|
@@ -2421,8 +2452,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
2421
2452
|
maxDuration?: number;
|
|
2422
2453
|
|
|
2423
2454
|
/**
|
|
2424
|
-
* The maximum allowed length for \`string\`
|
|
2425
|
-
* \`string_array
|
|
2455
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2456
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2457
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2426
2458
|
*/
|
|
2427
2459
|
maxLength?: number;
|
|
2428
2460
|
|
|
@@ -2439,8 +2471,9 @@ export namespace WorkflowRetrieveResponse {
|
|
|
2439
2471
|
min?: number;
|
|
2440
2472
|
|
|
2441
2473
|
/**
|
|
2442
|
-
* The minimum allowed length for string
|
|
2443
|
-
* \`string_array
|
|
2474
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2475
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2476
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2444
2477
|
*/
|
|
2445
2478
|
minLength?: number;
|
|
2446
2479
|
|
|
@@ -2627,6 +2660,11 @@ export namespace WorkflowRetrieveResponse {
|
|
|
2627
2660
|
*/
|
|
2628
2661
|
lorasComponent?: UiConfig.LorasComponent;
|
|
2629
2662
|
|
|
2663
|
+
/**
|
|
2664
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
2665
|
+
*/
|
|
2666
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
2667
|
+
|
|
2630
2668
|
/**
|
|
2631
2669
|
* Configuration for the presets
|
|
2632
2670
|
*/
|
|
@@ -2681,6 +2719,10 @@ export namespace WorkflowRetrieveResponse {
|
|
|
2681
2719
|
modelIdInput?: string;
|
|
2682
2720
|
}
|
|
2683
2721
|
|
|
2722
|
+
export interface OutputProperties {
|
|
2723
|
+
label: string;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2684
2726
|
export interface Preset {
|
|
2685
2727
|
fields: Array<string>;
|
|
2686
2728
|
|
|
@@ -3071,7 +3113,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3071
3113
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3072
3114
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3073
3115
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3074
|
-
* data:kind, prefix
|
|
3116
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
3117
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
3118
|
+
* generation time.
|
|
3075
3119
|
*/
|
|
3076
3120
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3077
3121
|
|
|
@@ -3099,8 +3143,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3099
3143
|
maxDuration?: number;
|
|
3100
3144
|
|
|
3101
3145
|
/**
|
|
3102
|
-
* The maximum allowed length for \`string\`
|
|
3103
|
-
* \`string_array
|
|
3146
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3147
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3148
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3104
3149
|
*/
|
|
3105
3150
|
maxLength?: number;
|
|
3106
3151
|
|
|
@@ -3117,8 +3162,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3117
3162
|
min?: number;
|
|
3118
3163
|
|
|
3119
3164
|
/**
|
|
3120
|
-
* The minimum allowed length for string
|
|
3121
|
-
* \`string_array
|
|
3165
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3166
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3167
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3122
3168
|
*/
|
|
3123
3169
|
minLength?: number;
|
|
3124
3170
|
|
|
@@ -3298,7 +3344,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3298
3344
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3299
3345
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3300
3346
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3301
|
-
* data:kind, prefix
|
|
3347
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
3348
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
3349
|
+
* generation time.
|
|
3302
3350
|
*/
|
|
3303
3351
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3304
3352
|
|
|
@@ -3326,8 +3374,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3326
3374
|
maxDuration?: number;
|
|
3327
3375
|
|
|
3328
3376
|
/**
|
|
3329
|
-
* The maximum allowed length for \`string\`
|
|
3330
|
-
* \`string_array
|
|
3377
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3378
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3379
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3331
3380
|
*/
|
|
3332
3381
|
maxLength?: number;
|
|
3333
3382
|
|
|
@@ -3344,8 +3393,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3344
3393
|
min?: number;
|
|
3345
3394
|
|
|
3346
3395
|
/**
|
|
3347
|
-
* The minimum allowed length for string
|
|
3348
|
-
* \`string_array
|
|
3396
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3397
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3398
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3349
3399
|
*/
|
|
3350
3400
|
minLength?: number;
|
|
3351
3401
|
|
|
@@ -3707,7 +3757,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3707
3757
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3708
3758
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3709
3759
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3710
|
-
* data:kind, prefix
|
|
3760
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
3761
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
3762
|
+
* generation time.
|
|
3711
3763
|
*/
|
|
3712
3764
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3713
3765
|
|
|
@@ -3735,8 +3787,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3735
3787
|
maxDuration?: number;
|
|
3736
3788
|
|
|
3737
3789
|
/**
|
|
3738
|
-
* The maximum allowed length for \`string\`
|
|
3739
|
-
* \`string_array
|
|
3790
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3791
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3792
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3740
3793
|
*/
|
|
3741
3794
|
maxLength?: number;
|
|
3742
3795
|
|
|
@@ -3753,8 +3806,9 @@ export namespace WorkflowUpdateResponse {
|
|
|
3753
3806
|
min?: number;
|
|
3754
3807
|
|
|
3755
3808
|
/**
|
|
3756
|
-
* The minimum allowed length for string
|
|
3757
|
-
* \`string_array
|
|
3809
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3810
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3811
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3758
3812
|
*/
|
|
3759
3813
|
minLength?: number;
|
|
3760
3814
|
|
|
@@ -3941,6 +3995,11 @@ export namespace WorkflowUpdateResponse {
|
|
|
3941
3995
|
*/
|
|
3942
3996
|
lorasComponent?: UiConfig.LorasComponent;
|
|
3943
3997
|
|
|
3998
|
+
/**
|
|
3999
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
4000
|
+
*/
|
|
4001
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
4002
|
+
|
|
3944
4003
|
/**
|
|
3945
4004
|
* Configuration for the presets
|
|
3946
4005
|
*/
|
|
@@ -3995,6 +4054,10 @@ export namespace WorkflowUpdateResponse {
|
|
|
3995
4054
|
modelIdInput?: string;
|
|
3996
4055
|
}
|
|
3997
4056
|
|
|
4057
|
+
export interface OutputProperties {
|
|
4058
|
+
label: string;
|
|
4059
|
+
}
|
|
4060
|
+
|
|
3998
4061
|
export interface Preset {
|
|
3999
4062
|
fields: Array<string>;
|
|
4000
4063
|
|
|
@@ -4288,7 +4351,9 @@ export namespace WorkflowListResponse {
|
|
|
4288
4351
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
4289
4352
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4290
4353
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4291
|
-
* data:kind, prefix
|
|
4354
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
4355
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
4356
|
+
* generation time.
|
|
4292
4357
|
*/
|
|
4293
4358
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4294
4359
|
|
|
@@ -4316,8 +4381,9 @@ export namespace WorkflowListResponse {
|
|
|
4316
4381
|
maxDuration?: number;
|
|
4317
4382
|
|
|
4318
4383
|
/**
|
|
4319
|
-
* The maximum allowed length for \`string\`
|
|
4320
|
-
* \`string_array
|
|
4384
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4385
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4386
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4321
4387
|
*/
|
|
4322
4388
|
maxLength?: number;
|
|
4323
4389
|
|
|
@@ -4334,8 +4400,9 @@ export namespace WorkflowListResponse {
|
|
|
4334
4400
|
min?: number;
|
|
4335
4401
|
|
|
4336
4402
|
/**
|
|
4337
|
-
* The minimum allowed length for string
|
|
4338
|
-
* \`string_array
|
|
4403
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4404
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4405
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4339
4406
|
*/
|
|
4340
4407
|
minLength?: number;
|
|
4341
4408
|
|
|
@@ -4681,7 +4748,9 @@ export namespace WorkflowListResponse {
|
|
|
4681
4748
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
4682
4749
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4683
4750
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4684
|
-
* data:kind, prefix
|
|
4751
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
4752
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
4753
|
+
* generation time.
|
|
4685
4754
|
*/
|
|
4686
4755
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4687
4756
|
|
|
@@ -4709,8 +4778,9 @@ export namespace WorkflowListResponse {
|
|
|
4709
4778
|
maxDuration?: number;
|
|
4710
4779
|
|
|
4711
4780
|
/**
|
|
4712
|
-
* The maximum allowed length for \`string\`
|
|
4713
|
-
* \`string_array
|
|
4781
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4782
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4783
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4714
4784
|
*/
|
|
4715
4785
|
maxLength?: number;
|
|
4716
4786
|
|
|
@@ -4727,8 +4797,9 @@ export namespace WorkflowListResponse {
|
|
|
4727
4797
|
min?: number;
|
|
4728
4798
|
|
|
4729
4799
|
/**
|
|
4730
|
-
* The minimum allowed length for string
|
|
4731
|
-
* \`string_array
|
|
4800
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4801
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4802
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4732
4803
|
*/
|
|
4733
4804
|
minLength?: number;
|
|
4734
4805
|
|
|
@@ -4908,7 +4979,9 @@ export namespace WorkflowListResponse {
|
|
|
4908
4979
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
4909
4980
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4910
4981
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4911
|
-
* data:kind, prefix
|
|
4982
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
4983
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
4984
|
+
* generation time.
|
|
4912
4985
|
*/
|
|
4913
4986
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4914
4987
|
|
|
@@ -4936,8 +5009,9 @@ export namespace WorkflowListResponse {
|
|
|
4936
5009
|
maxDuration?: number;
|
|
4937
5010
|
|
|
4938
5011
|
/**
|
|
4939
|
-
* The maximum allowed length for \`string\`
|
|
4940
|
-
* \`string_array
|
|
5012
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5013
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5014
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4941
5015
|
*/
|
|
4942
5016
|
maxLength?: number;
|
|
4943
5017
|
|
|
@@ -4954,8 +5028,9 @@ export namespace WorkflowListResponse {
|
|
|
4954
5028
|
min?: number;
|
|
4955
5029
|
|
|
4956
5030
|
/**
|
|
4957
|
-
* The minimum allowed length for string
|
|
4958
|
-
* \`string_array
|
|
5031
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5032
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5033
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4959
5034
|
*/
|
|
4960
5035
|
minLength?: number;
|
|
4961
5036
|
|
|
@@ -5262,6 +5337,11 @@ export namespace WorkflowListResponse {
|
|
|
5262
5337
|
*/
|
|
5263
5338
|
lorasComponent?: UiConfig.LorasComponent;
|
|
5264
5339
|
|
|
5340
|
+
/**
|
|
5341
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
5342
|
+
*/
|
|
5343
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
5344
|
+
|
|
5265
5345
|
/**
|
|
5266
5346
|
* Configuration for the presets
|
|
5267
5347
|
*/
|
|
@@ -5316,6 +5396,10 @@ export namespace WorkflowListResponse {
|
|
|
5316
5396
|
modelIdInput?: string;
|
|
5317
5397
|
}
|
|
5318
5398
|
|
|
5399
|
+
export interface OutputProperties {
|
|
5400
|
+
label: string;
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5319
5403
|
export interface Preset {
|
|
5320
5404
|
fields: Array<string>;
|
|
5321
5405
|
|
|
@@ -5765,7 +5849,9 @@ export namespace WorkflowRunResponse {
|
|
|
5765
5849
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5766
5850
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5767
5851
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5768
|
-
* data:kind, prefix
|
|
5852
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
5853
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
5854
|
+
* generation time.
|
|
5769
5855
|
*/
|
|
5770
5856
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5771
5857
|
|
|
@@ -5793,8 +5879,9 @@ export namespace WorkflowRunResponse {
|
|
|
5793
5879
|
maxDuration?: number;
|
|
5794
5880
|
|
|
5795
5881
|
/**
|
|
5796
|
-
* The maximum allowed length for \`string\`
|
|
5797
|
-
* \`string_array
|
|
5882
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5883
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5884
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5798
5885
|
*/
|
|
5799
5886
|
maxLength?: number;
|
|
5800
5887
|
|
|
@@ -5811,8 +5898,9 @@ export namespace WorkflowRunResponse {
|
|
|
5811
5898
|
min?: number;
|
|
5812
5899
|
|
|
5813
5900
|
/**
|
|
5814
|
-
* The minimum allowed length for string
|
|
5815
|
-
* \`string_array
|
|
5901
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5902
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5903
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5816
5904
|
*/
|
|
5817
5905
|
minLength?: number;
|
|
5818
5906
|
|
|
@@ -5992,7 +6080,9 @@ export namespace WorkflowRunResponse {
|
|
|
5992
6080
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5993
6081
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5994
6082
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5995
|
-
* data:kind, prefix
|
|
6083
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
6084
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
6085
|
+
* generation time.
|
|
5996
6086
|
*/
|
|
5997
6087
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5998
6088
|
|
|
@@ -6020,8 +6110,9 @@ export namespace WorkflowRunResponse {
|
|
|
6020
6110
|
maxDuration?: number;
|
|
6021
6111
|
|
|
6022
6112
|
/**
|
|
6023
|
-
* The maximum allowed length for \`string\`
|
|
6024
|
-
* \`string_array
|
|
6113
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6114
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6115
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6025
6116
|
*/
|
|
6026
6117
|
maxLength?: number;
|
|
6027
6118
|
|
|
@@ -6038,8 +6129,9 @@ export namespace WorkflowRunResponse {
|
|
|
6038
6129
|
min?: number;
|
|
6039
6130
|
|
|
6040
6131
|
/**
|
|
6041
|
-
* The minimum allowed length for string
|
|
6042
|
-
* \`string_array
|
|
6132
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6133
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6134
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6043
6135
|
*/
|
|
6044
6136
|
minLength?: number;
|
|
6045
6137
|
|
|
@@ -6344,7 +6436,7 @@ export namespace WorkflowRunResponse {
|
|
|
6344
6436
|
|
|
6345
6437
|
/**
|
|
6346
6438
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
6347
|
-
* top of the generation itself, such as `
|
|
6439
|
+
* top of the generation itself, such as `quality-gate`.
|
|
6348
6440
|
*
|
|
6349
6441
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
6350
6442
|
* values here.
|
|
@@ -6374,7 +6466,7 @@ export namespace WorkflowRunResponse {
|
|
|
6374
6466
|
export namespace Billing {
|
|
6375
6467
|
/**
|
|
6376
6468
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
6377
|
-
* top of the generation itself, such as `
|
|
6469
|
+
* top of the generation itself, such as `quality-gate`.
|
|
6378
6470
|
*
|
|
6379
6471
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
6380
6472
|
* values here.
|
|
@@ -6394,7 +6486,7 @@ export namespace WorkflowRunResponse {
|
|
|
6394
6486
|
export interface CuCostDetails {
|
|
6395
6487
|
'ip-detection'?: number;
|
|
6396
6488
|
|
|
6397
|
-
'
|
|
6489
|
+
'quality-gate'?: number;
|
|
6398
6490
|
}
|
|
6399
6491
|
}
|
|
6400
6492
|
}
|
|
@@ -6720,7 +6812,9 @@ export namespace WorkflowRunResponse {
|
|
|
6720
6812
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
6721
6813
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
6722
6814
|
* not able to create the asset on the flight on API side with dataurl without
|
|
6723
|
-
* data:kind, prefix
|
|
6815
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
6816
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
6817
|
+
* generation time.
|
|
6724
6818
|
*/
|
|
6725
6819
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
6726
6820
|
|
|
@@ -6748,8 +6842,9 @@ export namespace WorkflowRunResponse {
|
|
|
6748
6842
|
maxDuration?: number;
|
|
6749
6843
|
|
|
6750
6844
|
/**
|
|
6751
|
-
* The maximum allowed length for \`string\`
|
|
6752
|
-
* \`string_array
|
|
6845
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6846
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6847
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6753
6848
|
*/
|
|
6754
6849
|
maxLength?: number;
|
|
6755
6850
|
|
|
@@ -6766,8 +6861,9 @@ export namespace WorkflowRunResponse {
|
|
|
6766
6861
|
min?: number;
|
|
6767
6862
|
|
|
6768
6863
|
/**
|
|
6769
|
-
* The minimum allowed length for string
|
|
6770
|
-
* \`string_array
|
|
6864
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6865
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6866
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6771
6867
|
*/
|
|
6772
6868
|
minLength?: number;
|
|
6773
6869
|
|
|
@@ -6947,7 +7043,9 @@ export namespace WorkflowRunResponse {
|
|
|
6947
7043
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
6948
7044
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
6949
7045
|
* not able to create the asset on the flight on API side with dataurl without
|
|
6950
|
-
* data:kind, prefix
|
|
7046
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
7047
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
7048
|
+
* generation time.
|
|
6951
7049
|
*/
|
|
6952
7050
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
6953
7051
|
|
|
@@ -6975,8 +7073,9 @@ export namespace WorkflowRunResponse {
|
|
|
6975
7073
|
maxDuration?: number;
|
|
6976
7074
|
|
|
6977
7075
|
/**
|
|
6978
|
-
* The maximum allowed length for \`string\`
|
|
6979
|
-
* \`string_array
|
|
7076
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7077
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7078
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6980
7079
|
*/
|
|
6981
7080
|
maxLength?: number;
|
|
6982
7081
|
|
|
@@ -6993,8 +7092,9 @@ export namespace WorkflowRunResponse {
|
|
|
6993
7092
|
min?: number;
|
|
6994
7093
|
|
|
6995
7094
|
/**
|
|
6996
|
-
* The minimum allowed length for string
|
|
6997
|
-
* \`string_array
|
|
7095
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7096
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7097
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6998
7098
|
*/
|
|
6999
7099
|
minLength?: number;
|
|
7000
7100
|
|
|
@@ -7356,7 +7456,9 @@ export namespace WorkflowRunResponse {
|
|
|
7356
7456
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
7357
7457
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
7358
7458
|
* not able to create the asset on the flight on API side with dataurl without
|
|
7359
|
-
* data:kind, prefix
|
|
7459
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
7460
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
7461
|
+
* generation time.
|
|
7360
7462
|
*/
|
|
7361
7463
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
7362
7464
|
|
|
@@ -7384,8 +7486,9 @@ export namespace WorkflowRunResponse {
|
|
|
7384
7486
|
maxDuration?: number;
|
|
7385
7487
|
|
|
7386
7488
|
/**
|
|
7387
|
-
* The maximum allowed length for \`string\`
|
|
7388
|
-
* \`string_array
|
|
7489
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7490
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7491
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
7389
7492
|
*/
|
|
7390
7493
|
maxLength?: number;
|
|
7391
7494
|
|
|
@@ -7402,8 +7505,9 @@ export namespace WorkflowRunResponse {
|
|
|
7402
7505
|
min?: number;
|
|
7403
7506
|
|
|
7404
7507
|
/**
|
|
7405
|
-
* The minimum allowed length for string
|
|
7406
|
-
* \`string_array
|
|
7508
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7509
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7510
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
7407
7511
|
*/
|
|
7408
7512
|
minLength?: number;
|
|
7409
7513
|
|
|
@@ -7590,6 +7694,11 @@ export namespace WorkflowRunResponse {
|
|
|
7590
7694
|
*/
|
|
7591
7695
|
lorasComponent?: UiConfig.LorasComponent;
|
|
7592
7696
|
|
|
7697
|
+
/**
|
|
7698
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
7699
|
+
*/
|
|
7700
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
7701
|
+
|
|
7593
7702
|
/**
|
|
7594
7703
|
* Configuration for the presets
|
|
7595
7704
|
*/
|
|
@@ -7644,6 +7753,10 @@ export namespace WorkflowRunResponse {
|
|
|
7644
7753
|
modelIdInput?: string;
|
|
7645
7754
|
}
|
|
7646
7755
|
|
|
7756
|
+
export interface OutputProperties {
|
|
7757
|
+
label: string;
|
|
7758
|
+
}
|
|
7759
|
+
|
|
7647
7760
|
export interface Preset {
|
|
7648
7761
|
fields: Array<string>;
|
|
7649
7762
|
|
|
@@ -8083,7 +8196,9 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8083
8196
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
8084
8197
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
8085
8198
|
* not able to create the asset on the flight on API side with dataurl without
|
|
8086
|
-
* data:kind, prefix
|
|
8199
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
8200
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
8201
|
+
* generation time.
|
|
8087
8202
|
*/
|
|
8088
8203
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
8089
8204
|
|
|
@@ -8111,8 +8226,9 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8111
8226
|
maxDuration?: number;
|
|
8112
8227
|
|
|
8113
8228
|
/**
|
|
8114
|
-
* The maximum allowed length for \`string\`
|
|
8115
|
-
* \`string_array
|
|
8229
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
8230
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
8231
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
8116
8232
|
*/
|
|
8117
8233
|
maxLength?: number;
|
|
8118
8234
|
|
|
@@ -8129,8 +8245,9 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8129
8245
|
min?: number;
|
|
8130
8246
|
|
|
8131
8247
|
/**
|
|
8132
|
-
* The minimum allowed length for string
|
|
8133
|
-
* \`string_array
|
|
8248
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
8249
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
8250
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
8134
8251
|
*/
|
|
8135
8252
|
minLength?: number;
|
|
8136
8253
|
|
|
@@ -8310,7 +8427,9 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8310
8427
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
8311
8428
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
8312
8429
|
* not able to create the asset on the flight on API side with dataurl without
|
|
8313
|
-
* data:kind, prefix
|
|
8430
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
8431
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
8432
|
+
* generation time.
|
|
8314
8433
|
*/
|
|
8315
8434
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
8316
8435
|
|
|
@@ -8338,8 +8457,9 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8338
8457
|
maxDuration?: number;
|
|
8339
8458
|
|
|
8340
8459
|
/**
|
|
8341
|
-
* The maximum allowed length for \`string\`
|
|
8342
|
-
* \`string_array
|
|
8460
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
8461
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
8462
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
8343
8463
|
*/
|
|
8344
8464
|
maxLength?: number;
|
|
8345
8465
|
|
|
@@ -8356,8 +8476,9 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8356
8476
|
min?: number;
|
|
8357
8477
|
|
|
8358
8478
|
/**
|
|
8359
|
-
* The minimum allowed length for string
|
|
8360
|
-
* \`string_array
|
|
8479
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
8480
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
8481
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
8361
8482
|
*/
|
|
8362
8483
|
minLength?: number;
|
|
8363
8484
|
|
|
@@ -8662,7 +8783,7 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8662
8783
|
|
|
8663
8784
|
/**
|
|
8664
8785
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
8665
|
-
* top of the generation itself, such as `
|
|
8786
|
+
* top of the generation itself, such as `quality-gate`.
|
|
8666
8787
|
*
|
|
8667
8788
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
8668
8789
|
* values here.
|
|
@@ -8692,7 +8813,7 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8692
8813
|
export namespace Billing {
|
|
8693
8814
|
/**
|
|
8694
8815
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
8695
|
-
* top of the generation itself, such as `
|
|
8816
|
+
* top of the generation itself, such as `quality-gate`.
|
|
8696
8817
|
*
|
|
8697
8818
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
8698
8819
|
* values here.
|
|
@@ -8712,7 +8833,7 @@ export namespace WorkflowUserApprovalResponse {
|
|
|
8712
8833
|
export interface CuCostDetails {
|
|
8713
8834
|
'ip-detection'?: number;
|
|
8714
8835
|
|
|
8715
|
-
'
|
|
8836
|
+
'quality-gate'?: number;
|
|
8716
8837
|
}
|
|
8717
8838
|
}
|
|
8718
8839
|
}
|
|
@@ -8737,14 +8858,19 @@ export interface WorkflowCreateParams {
|
|
|
8737
8858
|
}
|
|
8738
8859
|
|
|
8739
8860
|
export interface WorkflowRetrieveParams {
|
|
8740
|
-
|
|
8861
|
+
/**
|
|
8862
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
8863
|
+
* or to set the owner of the resource(s)
|
|
8864
|
+
*/
|
|
8865
|
+
projectId?: string;
|
|
8741
8866
|
}
|
|
8742
8867
|
|
|
8743
8868
|
export interface WorkflowUpdateParams {
|
|
8744
8869
|
/**
|
|
8745
|
-
* Query param
|
|
8870
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
8871
|
+
* assert ownership or to set the owner of the resource(s)
|
|
8746
8872
|
*/
|
|
8747
|
-
projectId?:
|
|
8873
|
+
projectId?: string;
|
|
8748
8874
|
|
|
8749
8875
|
/**
|
|
8750
8876
|
* Body param: The after asset of the workflow. Set to null to unset the after
|
|
@@ -9012,7 +9138,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9012
9138
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
9013
9139
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
9014
9140
|
* not able to create the asset on the flight on API side with dataurl without
|
|
9015
|
-
* data:kind, prefix
|
|
9141
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
9142
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
9143
|
+
* generation time.
|
|
9016
9144
|
*/
|
|
9017
9145
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
9018
9146
|
|
|
@@ -9040,8 +9168,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9040
9168
|
maxDuration?: number;
|
|
9041
9169
|
|
|
9042
9170
|
/**
|
|
9043
|
-
* The maximum allowed length for \`string\`
|
|
9044
|
-
* \`string_array
|
|
9171
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
9172
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
9173
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
9045
9174
|
*/
|
|
9046
9175
|
maxLength?: number;
|
|
9047
9176
|
|
|
@@ -9058,8 +9187,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9058
9187
|
min?: number;
|
|
9059
9188
|
|
|
9060
9189
|
/**
|
|
9061
|
-
* The minimum allowed length for string
|
|
9062
|
-
* \`string_array
|
|
9190
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
9191
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
9192
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
9063
9193
|
*/
|
|
9064
9194
|
minLength?: number;
|
|
9065
9195
|
|
|
@@ -9239,7 +9369,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9239
9369
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
9240
9370
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
9241
9371
|
* not able to create the asset on the flight on API side with dataurl without
|
|
9242
|
-
* data:kind, prefix
|
|
9372
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
9373
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
9374
|
+
* generation time.
|
|
9243
9375
|
*/
|
|
9244
9376
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
9245
9377
|
|
|
@@ -9267,8 +9399,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9267
9399
|
maxDuration?: number;
|
|
9268
9400
|
|
|
9269
9401
|
/**
|
|
9270
|
-
* The maximum allowed length for \`string\`
|
|
9271
|
-
* \`string_array
|
|
9402
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
9403
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
9404
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
9272
9405
|
*/
|
|
9273
9406
|
maxLength?: number;
|
|
9274
9407
|
|
|
@@ -9285,8 +9418,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9285
9418
|
min?: number;
|
|
9286
9419
|
|
|
9287
9420
|
/**
|
|
9288
|
-
* The minimum allowed length for string
|
|
9289
|
-
* \`string_array
|
|
9421
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
9422
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
9423
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
9290
9424
|
*/
|
|
9291
9425
|
minLength?: number;
|
|
9292
9426
|
|
|
@@ -9648,7 +9782,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9648
9782
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
9649
9783
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
9650
9784
|
* not able to create the asset on the flight on API side with dataurl without
|
|
9651
|
-
* data:kind, prefix
|
|
9785
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
9786
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
9787
|
+
* generation time.
|
|
9652
9788
|
*/
|
|
9653
9789
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
9654
9790
|
|
|
@@ -9676,8 +9812,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9676
9812
|
maxDuration?: number;
|
|
9677
9813
|
|
|
9678
9814
|
/**
|
|
9679
|
-
* The maximum allowed length for \`string\`
|
|
9680
|
-
* \`string_array
|
|
9815
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
9816
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
9817
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
9681
9818
|
*/
|
|
9682
9819
|
maxLength?: number;
|
|
9683
9820
|
|
|
@@ -9694,8 +9831,9 @@ export namespace WorkflowUpdateParams {
|
|
|
9694
9831
|
min?: number;
|
|
9695
9832
|
|
|
9696
9833
|
/**
|
|
9697
|
-
* The minimum allowed length for string
|
|
9698
|
-
* \`string_array
|
|
9834
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
9835
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
9836
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
9699
9837
|
*/
|
|
9700
9838
|
minLength?: number;
|
|
9701
9839
|
|
|
@@ -9870,11 +10008,19 @@ export interface WorkflowListParams extends WorkflowsCursorParams {
|
|
|
9870
10008
|
*/
|
|
9871
10009
|
status?: 'draft' | 'ready';
|
|
9872
10010
|
|
|
9873
|
-
|
|
10011
|
+
/**
|
|
10012
|
+
* The tags of the workflows to return, separated by commas. Example:
|
|
10013
|
+
* `tag1,tag2,tag3` or `tag1`. Optional.
|
|
10014
|
+
*/
|
|
10015
|
+
tags?: string;
|
|
9874
10016
|
}
|
|
9875
10017
|
|
|
9876
10018
|
export interface WorkflowDeleteParams {
|
|
9877
|
-
|
|
10019
|
+
/**
|
|
10020
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
10021
|
+
* or to set the owner of the resource(s)
|
|
10022
|
+
*/
|
|
10023
|
+
projectId?: string;
|
|
9878
10024
|
}
|
|
9879
10025
|
|
|
9880
10026
|
export interface WorkflowGetTagsParams {
|
|
@@ -9884,7 +10030,10 @@ export interface WorkflowGetTagsParams {
|
|
|
9884
10030
|
*/
|
|
9885
10031
|
projectId?: string;
|
|
9886
10032
|
|
|
9887
|
-
|
|
10033
|
+
/**
|
|
10034
|
+
* Only collect tags from workflows in this status. Default `ready`.
|
|
10035
|
+
*/
|
|
10036
|
+
status?: 'draft' | 'ready' | 'deleted';
|
|
9888
10037
|
}
|
|
9889
10038
|
|
|
9890
10039
|
export interface WorkflowRunParams {
|
|
@@ -9895,21 +10044,24 @@ export interface WorkflowRunParams {
|
|
|
9895
10044
|
body: unknown;
|
|
9896
10045
|
|
|
9897
10046
|
/**
|
|
9898
|
-
* Query param
|
|
10047
|
+
* Query param: Estimate the operation instead of running it: the call returns a
|
|
10048
|
+
* 269 response carrying the creative units cost. `api` estimates at the API tier.
|
|
9899
10049
|
*/
|
|
9900
|
-
dryRun?:
|
|
10050
|
+
dryRun?: 'true' | 'api';
|
|
9901
10051
|
|
|
9902
10052
|
/**
|
|
9903
|
-
* Query param
|
|
10053
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
10054
|
+
* assert ownership or to set the owner of the resource(s)
|
|
9904
10055
|
*/
|
|
9905
|
-
projectId?:
|
|
10056
|
+
projectId?: string;
|
|
9906
10057
|
}
|
|
9907
10058
|
|
|
9908
10059
|
export interface WorkflowUserApprovalParams {
|
|
9909
10060
|
/**
|
|
9910
|
-
* Query param
|
|
10061
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
10062
|
+
* assert ownership or to set the owner of the resource(s)
|
|
9911
10063
|
*/
|
|
9912
|
-
projectId:
|
|
10064
|
+
projectId: string;
|
|
9913
10065
|
|
|
9914
10066
|
/**
|
|
9915
10067
|
* Body param: The ID of the user approval node to act on in the workflow
|
|
@@ -9932,9 +10084,10 @@ export interface WorkflowUserApprovalParams {
|
|
|
9932
10084
|
|
|
9933
10085
|
export interface WorkflowApproveUserParams {
|
|
9934
10086
|
/**
|
|
9935
|
-
* Query param
|
|
10087
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
10088
|
+
* assert ownership or to set the owner of the resource(s)
|
|
9936
10089
|
*/
|
|
9937
|
-
projectId:
|
|
10090
|
+
projectId: string;
|
|
9938
10091
|
|
|
9939
10092
|
/**
|
|
9940
10093
|
* Body param: The ID of the user approval node to act on in the workflow
|