@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/resources/workflows.d.ts
CHANGED
|
@@ -301,7 +301,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
301
301
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
302
302
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
303
303
|
* not able to create the asset on the flight on API side with dataurl without
|
|
304
|
-
* data:kind, prefix
|
|
304
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
305
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
306
|
+
* generation time.
|
|
305
307
|
*/
|
|
306
308
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
307
309
|
/**
|
|
@@ -324,8 +326,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
324
326
|
*/
|
|
325
327
|
maxDuration?: number;
|
|
326
328
|
/**
|
|
327
|
-
* The maximum allowed length for \`string\`
|
|
328
|
-
* \`string_array
|
|
329
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
330
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
331
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
329
332
|
*/
|
|
330
333
|
maxLength?: number;
|
|
331
334
|
/**
|
|
@@ -339,8 +342,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
339
342
|
*/
|
|
340
343
|
min?: number;
|
|
341
344
|
/**
|
|
342
|
-
* The minimum allowed length for string
|
|
343
|
-
* \`string_array
|
|
345
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
346
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
347
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
344
348
|
*/
|
|
345
349
|
minLength?: number;
|
|
346
350
|
/**
|
|
@@ -459,7 +463,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
459
463
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
460
464
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
461
465
|
* not able to create the asset on the flight on API side with dataurl without
|
|
462
|
-
* data:kind, prefix
|
|
466
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
467
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
468
|
+
* generation time.
|
|
463
469
|
*/
|
|
464
470
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
465
471
|
/**
|
|
@@ -482,8 +488,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
482
488
|
*/
|
|
483
489
|
maxDuration?: number;
|
|
484
490
|
/**
|
|
485
|
-
* The maximum allowed length for \`string\`
|
|
486
|
-
* \`string_array
|
|
491
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
492
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
493
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
487
494
|
*/
|
|
488
495
|
maxLength?: number;
|
|
489
496
|
/**
|
|
@@ -497,8 +504,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
497
504
|
*/
|
|
498
505
|
min?: number;
|
|
499
506
|
/**
|
|
500
|
-
* The minimum allowed length for string
|
|
501
|
-
* \`string_array
|
|
507
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
508
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
509
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
502
510
|
*/
|
|
503
511
|
minLength?: number;
|
|
504
512
|
/**
|
|
@@ -778,7 +786,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
778
786
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
779
787
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
780
788
|
* not able to create the asset on the flight on API side with dataurl without
|
|
781
|
-
* data:kind, prefix
|
|
789
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
790
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
791
|
+
* generation time.
|
|
782
792
|
*/
|
|
783
793
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
784
794
|
/**
|
|
@@ -801,8 +811,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
801
811
|
*/
|
|
802
812
|
maxDuration?: number;
|
|
803
813
|
/**
|
|
804
|
-
* The maximum allowed length for \`string\`
|
|
805
|
-
* \`string_array
|
|
814
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
815
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
816
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
806
817
|
*/
|
|
807
818
|
maxLength?: number;
|
|
808
819
|
/**
|
|
@@ -816,8 +827,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
816
827
|
*/
|
|
817
828
|
min?: number;
|
|
818
829
|
/**
|
|
819
|
-
* The minimum allowed length for string
|
|
820
|
-
* \`string_array
|
|
830
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
831
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
832
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
821
833
|
*/
|
|
822
834
|
minLength?: number;
|
|
823
835
|
/**
|
|
@@ -954,6 +966,12 @@ export declare namespace WorkflowCreateResponse {
|
|
|
954
966
|
* Configuration for the loras component
|
|
955
967
|
*/
|
|
956
968
|
lorasComponent?: UiConfig.LorasComponent;
|
|
969
|
+
/**
|
|
970
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
971
|
+
*/
|
|
972
|
+
outputProperties?: {
|
|
973
|
+
[key: string]: UiConfig.OutputProperties;
|
|
974
|
+
};
|
|
957
975
|
/**
|
|
958
976
|
* Configuration for the presets
|
|
959
977
|
*/
|
|
@@ -1001,6 +1019,9 @@ export declare namespace WorkflowCreateResponse {
|
|
|
1001
1019
|
*/
|
|
1002
1020
|
modelIdInput?: string;
|
|
1003
1021
|
}
|
|
1022
|
+
interface OutputProperties {
|
|
1023
|
+
label: string;
|
|
1024
|
+
}
|
|
1004
1025
|
interface Preset {
|
|
1005
1026
|
fields: Array<string>;
|
|
1006
1027
|
presets: unknown;
|
|
@@ -1309,7 +1330,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1309
1330
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1310
1331
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1311
1332
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1312
|
-
* data:kind, prefix
|
|
1333
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1334
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1335
|
+
* generation time.
|
|
1313
1336
|
*/
|
|
1314
1337
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1315
1338
|
/**
|
|
@@ -1332,8 +1355,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1332
1355
|
*/
|
|
1333
1356
|
maxDuration?: number;
|
|
1334
1357
|
/**
|
|
1335
|
-
* The maximum allowed length for \`string\`
|
|
1336
|
-
* \`string_array
|
|
1358
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1359
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1360
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1337
1361
|
*/
|
|
1338
1362
|
maxLength?: number;
|
|
1339
1363
|
/**
|
|
@@ -1347,8 +1371,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1347
1371
|
*/
|
|
1348
1372
|
min?: number;
|
|
1349
1373
|
/**
|
|
1350
|
-
* The minimum allowed length for string
|
|
1351
|
-
* \`string_array
|
|
1374
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1375
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1376
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1352
1377
|
*/
|
|
1353
1378
|
minLength?: number;
|
|
1354
1379
|
/**
|
|
@@ -1467,7 +1492,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1467
1492
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1468
1493
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1469
1494
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1470
|
-
* data:kind, prefix
|
|
1495
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1496
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1497
|
+
* generation time.
|
|
1471
1498
|
*/
|
|
1472
1499
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1473
1500
|
/**
|
|
@@ -1490,8 +1517,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1490
1517
|
*/
|
|
1491
1518
|
maxDuration?: number;
|
|
1492
1519
|
/**
|
|
1493
|
-
* The maximum allowed length for \`string\`
|
|
1494
|
-
* \`string_array
|
|
1520
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1521
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1522
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1495
1523
|
*/
|
|
1496
1524
|
maxLength?: number;
|
|
1497
1525
|
/**
|
|
@@ -1505,8 +1533,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1505
1533
|
*/
|
|
1506
1534
|
min?: number;
|
|
1507
1535
|
/**
|
|
1508
|
-
* The minimum allowed length for string
|
|
1509
|
-
* \`string_array
|
|
1536
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1537
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1538
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1510
1539
|
*/
|
|
1511
1540
|
minLength?: number;
|
|
1512
1541
|
/**
|
|
@@ -1786,7 +1815,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1786
1815
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1787
1816
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1788
1817
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1789
|
-
* data:kind, prefix
|
|
1818
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1819
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1820
|
+
* generation time.
|
|
1790
1821
|
*/
|
|
1791
1822
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1792
1823
|
/**
|
|
@@ -1809,8 +1840,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1809
1840
|
*/
|
|
1810
1841
|
maxDuration?: number;
|
|
1811
1842
|
/**
|
|
1812
|
-
* The maximum allowed length for \`string\`
|
|
1813
|
-
* \`string_array
|
|
1843
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1844
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1845
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1814
1846
|
*/
|
|
1815
1847
|
maxLength?: number;
|
|
1816
1848
|
/**
|
|
@@ -1824,8 +1856,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1824
1856
|
*/
|
|
1825
1857
|
min?: number;
|
|
1826
1858
|
/**
|
|
1827
|
-
* The minimum allowed length for string
|
|
1828
|
-
* \`string_array
|
|
1859
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1860
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1861
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1829
1862
|
*/
|
|
1830
1863
|
minLength?: number;
|
|
1831
1864
|
/**
|
|
@@ -1962,6 +1995,12 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
1962
1995
|
* Configuration for the loras component
|
|
1963
1996
|
*/
|
|
1964
1997
|
lorasComponent?: UiConfig.LorasComponent;
|
|
1998
|
+
/**
|
|
1999
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
2000
|
+
*/
|
|
2001
|
+
outputProperties?: {
|
|
2002
|
+
[key: string]: UiConfig.OutputProperties;
|
|
2003
|
+
};
|
|
1965
2004
|
/**
|
|
1966
2005
|
* Configuration for the presets
|
|
1967
2006
|
*/
|
|
@@ -2009,6 +2048,9 @@ export declare namespace WorkflowRetrieveResponse {
|
|
|
2009
2048
|
*/
|
|
2010
2049
|
modelIdInput?: string;
|
|
2011
2050
|
}
|
|
2051
|
+
interface OutputProperties {
|
|
2052
|
+
label: string;
|
|
2053
|
+
}
|
|
2012
2054
|
interface Preset {
|
|
2013
2055
|
fields: Array<string>;
|
|
2014
2056
|
presets: unknown;
|
|
@@ -2317,7 +2359,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2317
2359
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2318
2360
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2319
2361
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2320
|
-
* data:kind, prefix
|
|
2362
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2363
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2364
|
+
* generation time.
|
|
2321
2365
|
*/
|
|
2322
2366
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2323
2367
|
/**
|
|
@@ -2340,8 +2384,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2340
2384
|
*/
|
|
2341
2385
|
maxDuration?: number;
|
|
2342
2386
|
/**
|
|
2343
|
-
* The maximum allowed length for \`string\`
|
|
2344
|
-
* \`string_array
|
|
2387
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2388
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2389
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2345
2390
|
*/
|
|
2346
2391
|
maxLength?: number;
|
|
2347
2392
|
/**
|
|
@@ -2355,8 +2400,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2355
2400
|
*/
|
|
2356
2401
|
min?: number;
|
|
2357
2402
|
/**
|
|
2358
|
-
* The minimum allowed length for string
|
|
2359
|
-
* \`string_array
|
|
2403
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2404
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2405
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2360
2406
|
*/
|
|
2361
2407
|
minLength?: number;
|
|
2362
2408
|
/**
|
|
@@ -2475,7 +2521,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2475
2521
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2476
2522
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2477
2523
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2478
|
-
* data:kind, prefix
|
|
2524
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2525
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2526
|
+
* generation time.
|
|
2479
2527
|
*/
|
|
2480
2528
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2481
2529
|
/**
|
|
@@ -2498,8 +2546,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2498
2546
|
*/
|
|
2499
2547
|
maxDuration?: number;
|
|
2500
2548
|
/**
|
|
2501
|
-
* The maximum allowed length for \`string\`
|
|
2502
|
-
* \`string_array
|
|
2549
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2550
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2551
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2503
2552
|
*/
|
|
2504
2553
|
maxLength?: number;
|
|
2505
2554
|
/**
|
|
@@ -2513,8 +2562,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2513
2562
|
*/
|
|
2514
2563
|
min?: number;
|
|
2515
2564
|
/**
|
|
2516
|
-
* The minimum allowed length for string
|
|
2517
|
-
* \`string_array
|
|
2565
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2566
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2567
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2518
2568
|
*/
|
|
2519
2569
|
minLength?: number;
|
|
2520
2570
|
/**
|
|
@@ -2794,7 +2844,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2794
2844
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2795
2845
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2796
2846
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2797
|
-
* data:kind, prefix
|
|
2847
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2848
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2849
|
+
* generation time.
|
|
2798
2850
|
*/
|
|
2799
2851
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2800
2852
|
/**
|
|
@@ -2817,8 +2869,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2817
2869
|
*/
|
|
2818
2870
|
maxDuration?: number;
|
|
2819
2871
|
/**
|
|
2820
|
-
* The maximum allowed length for \`string\`
|
|
2821
|
-
* \`string_array
|
|
2872
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2873
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2874
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2822
2875
|
*/
|
|
2823
2876
|
maxLength?: number;
|
|
2824
2877
|
/**
|
|
@@ -2832,8 +2885,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2832
2885
|
*/
|
|
2833
2886
|
min?: number;
|
|
2834
2887
|
/**
|
|
2835
|
-
* The minimum allowed length for string
|
|
2836
|
-
* \`string_array
|
|
2888
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2889
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2890
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2837
2891
|
*/
|
|
2838
2892
|
minLength?: number;
|
|
2839
2893
|
/**
|
|
@@ -2970,6 +3024,12 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
2970
3024
|
* Configuration for the loras component
|
|
2971
3025
|
*/
|
|
2972
3026
|
lorasComponent?: UiConfig.LorasComponent;
|
|
3027
|
+
/**
|
|
3028
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
3029
|
+
*/
|
|
3030
|
+
outputProperties?: {
|
|
3031
|
+
[key: string]: UiConfig.OutputProperties;
|
|
3032
|
+
};
|
|
2973
3033
|
/**
|
|
2974
3034
|
* Configuration for the presets
|
|
2975
3035
|
*/
|
|
@@ -3017,6 +3077,9 @@ export declare namespace WorkflowUpdateResponse {
|
|
|
3017
3077
|
*/
|
|
3018
3078
|
modelIdInput?: string;
|
|
3019
3079
|
}
|
|
3080
|
+
interface OutputProperties {
|
|
3081
|
+
label: string;
|
|
3082
|
+
}
|
|
3020
3083
|
interface Preset {
|
|
3021
3084
|
fields: Array<string>;
|
|
3022
3085
|
presets: unknown;
|
|
@@ -3254,7 +3317,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3254
3317
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3255
3318
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3256
3319
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3257
|
-
* data:kind, prefix
|
|
3320
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
3321
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
3322
|
+
* generation time.
|
|
3258
3323
|
*/
|
|
3259
3324
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3260
3325
|
/**
|
|
@@ -3277,8 +3342,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3277
3342
|
*/
|
|
3278
3343
|
maxDuration?: number;
|
|
3279
3344
|
/**
|
|
3280
|
-
* The maximum allowed length for \`string\`
|
|
3281
|
-
* \`string_array
|
|
3345
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3346
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3347
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3282
3348
|
*/
|
|
3283
3349
|
maxLength?: number;
|
|
3284
3350
|
/**
|
|
@@ -3292,8 +3358,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3292
3358
|
*/
|
|
3293
3359
|
min?: number;
|
|
3294
3360
|
/**
|
|
3295
|
-
* The minimum allowed length for string
|
|
3296
|
-
* \`string_array
|
|
3361
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3362
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3363
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3297
3364
|
*/
|
|
3298
3365
|
minLength?: number;
|
|
3299
3366
|
/**
|
|
@@ -3547,7 +3614,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3547
3614
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3548
3615
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3549
3616
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3550
|
-
* data:kind, prefix
|
|
3617
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
3618
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
3619
|
+
* generation time.
|
|
3551
3620
|
*/
|
|
3552
3621
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3553
3622
|
/**
|
|
@@ -3570,8 +3639,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3570
3639
|
*/
|
|
3571
3640
|
maxDuration?: number;
|
|
3572
3641
|
/**
|
|
3573
|
-
* The maximum allowed length for \`string\`
|
|
3574
|
-
* \`string_array
|
|
3642
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3643
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3644
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3575
3645
|
*/
|
|
3576
3646
|
maxLength?: number;
|
|
3577
3647
|
/**
|
|
@@ -3585,8 +3655,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3585
3655
|
*/
|
|
3586
3656
|
min?: number;
|
|
3587
3657
|
/**
|
|
3588
|
-
* The minimum allowed length for string
|
|
3589
|
-
* \`string_array
|
|
3658
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3659
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3660
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3590
3661
|
*/
|
|
3591
3662
|
minLength?: number;
|
|
3592
3663
|
/**
|
|
@@ -3705,7 +3776,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3705
3776
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3706
3777
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3707
3778
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3708
|
-
* data:kind, prefix
|
|
3779
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
3780
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
3781
|
+
* generation time.
|
|
3709
3782
|
*/
|
|
3710
3783
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3711
3784
|
/**
|
|
@@ -3728,8 +3801,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3728
3801
|
*/
|
|
3729
3802
|
maxDuration?: number;
|
|
3730
3803
|
/**
|
|
3731
|
-
* The maximum allowed length for \`string\`
|
|
3732
|
-
* \`string_array
|
|
3804
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3805
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3806
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3733
3807
|
*/
|
|
3734
3808
|
maxLength?: number;
|
|
3735
3809
|
/**
|
|
@@ -3743,8 +3817,9 @@ export declare namespace WorkflowListResponse {
|
|
|
3743
3817
|
*/
|
|
3744
3818
|
min?: number;
|
|
3745
3819
|
/**
|
|
3746
|
-
* The minimum allowed length for string
|
|
3747
|
-
* \`string_array
|
|
3820
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3821
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3822
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3748
3823
|
*/
|
|
3749
3824
|
minLength?: number;
|
|
3750
3825
|
/**
|
|
@@ -3985,6 +4060,12 @@ export declare namespace WorkflowListResponse {
|
|
|
3985
4060
|
* Configuration for the loras component
|
|
3986
4061
|
*/
|
|
3987
4062
|
lorasComponent?: UiConfig.LorasComponent;
|
|
4063
|
+
/**
|
|
4064
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
4065
|
+
*/
|
|
4066
|
+
outputProperties?: {
|
|
4067
|
+
[key: string]: UiConfig.OutputProperties;
|
|
4068
|
+
};
|
|
3988
4069
|
/**
|
|
3989
4070
|
* Configuration for the presets
|
|
3990
4071
|
*/
|
|
@@ -4032,6 +4113,9 @@ export declare namespace WorkflowListResponse {
|
|
|
4032
4113
|
*/
|
|
4033
4114
|
modelIdInput?: string;
|
|
4034
4115
|
}
|
|
4116
|
+
interface OutputProperties {
|
|
4117
|
+
label: string;
|
|
4118
|
+
}
|
|
4035
4119
|
interface Preset {
|
|
4036
4120
|
fields: Array<string>;
|
|
4037
4121
|
presets: unknown;
|
|
@@ -4351,7 +4435,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
4351
4435
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
4352
4436
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4353
4437
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4354
|
-
* data:kind, prefix
|
|
4438
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
4439
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
4440
|
+
* generation time.
|
|
4355
4441
|
*/
|
|
4356
4442
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4357
4443
|
/**
|
|
@@ -4374,8 +4460,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
4374
4460
|
*/
|
|
4375
4461
|
maxDuration?: number;
|
|
4376
4462
|
/**
|
|
4377
|
-
* The maximum allowed length for \`string\`
|
|
4378
|
-
* \`string_array
|
|
4463
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4464
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4465
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4379
4466
|
*/
|
|
4380
4467
|
maxLength?: number;
|
|
4381
4468
|
/**
|
|
@@ -4389,8 +4476,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
4389
4476
|
*/
|
|
4390
4477
|
min?: number;
|
|
4391
4478
|
/**
|
|
4392
|
-
* The minimum allowed length for string
|
|
4393
|
-
* \`string_array
|
|
4479
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4480
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4481
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4394
4482
|
*/
|
|
4395
4483
|
minLength?: number;
|
|
4396
4484
|
/**
|
|
@@ -4509,7 +4597,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
4509
4597
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
4510
4598
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4511
4599
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4512
|
-
* data:kind, prefix
|
|
4600
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
4601
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
4602
|
+
* generation time.
|
|
4513
4603
|
*/
|
|
4514
4604
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4515
4605
|
/**
|
|
@@ -4532,8 +4622,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
4532
4622
|
*/
|
|
4533
4623
|
maxDuration?: number;
|
|
4534
4624
|
/**
|
|
4535
|
-
* The maximum allowed length for \`string\`
|
|
4536
|
-
* \`string_array
|
|
4625
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4626
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4627
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4537
4628
|
*/
|
|
4538
4629
|
maxLength?: number;
|
|
4539
4630
|
/**
|
|
@@ -4547,8 +4638,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
4547
4638
|
*/
|
|
4548
4639
|
min?: number;
|
|
4549
4640
|
/**
|
|
4550
|
-
* The minimum allowed length for string
|
|
4551
|
-
* \`string_array
|
|
4641
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4642
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4643
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4552
4644
|
*/
|
|
4553
4645
|
minLength?: number;
|
|
4554
4646
|
/**
|
|
@@ -4778,7 +4870,7 @@ export declare namespace WorkflowRunResponse {
|
|
|
4778
4870
|
cuDiscount: number;
|
|
4779
4871
|
/**
|
|
4780
4872
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
4781
|
-
* top of the generation itself, such as `
|
|
4873
|
+
* top of the generation itself, such as `quality-gate`.
|
|
4782
4874
|
*
|
|
4783
4875
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
4784
4876
|
* values here.
|
|
@@ -4806,7 +4898,7 @@ export declare namespace WorkflowRunResponse {
|
|
|
4806
4898
|
namespace Billing {
|
|
4807
4899
|
/**
|
|
4808
4900
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
4809
|
-
* top of the generation itself, such as `
|
|
4901
|
+
* top of the generation itself, such as `quality-gate`.
|
|
4810
4902
|
*
|
|
4811
4903
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
4812
4904
|
* values here.
|
|
@@ -4825,7 +4917,7 @@ export declare namespace WorkflowRunResponse {
|
|
|
4825
4917
|
*/
|
|
4826
4918
|
interface CuCostDetails {
|
|
4827
4919
|
'ip-detection'?: number;
|
|
4828
|
-
'
|
|
4920
|
+
'quality-gate'?: number;
|
|
4829
4921
|
}
|
|
4830
4922
|
}
|
|
4831
4923
|
}
|
|
@@ -5081,7 +5173,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5081
5173
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5082
5174
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5083
5175
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5084
|
-
* data:kind, prefix
|
|
5176
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
5177
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
5178
|
+
* generation time.
|
|
5085
5179
|
*/
|
|
5086
5180
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5087
5181
|
/**
|
|
@@ -5104,8 +5198,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5104
5198
|
*/
|
|
5105
5199
|
maxDuration?: number;
|
|
5106
5200
|
/**
|
|
5107
|
-
* The maximum allowed length for \`string\`
|
|
5108
|
-
* \`string_array
|
|
5201
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5202
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5203
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5109
5204
|
*/
|
|
5110
5205
|
maxLength?: number;
|
|
5111
5206
|
/**
|
|
@@ -5119,8 +5214,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5119
5214
|
*/
|
|
5120
5215
|
min?: number;
|
|
5121
5216
|
/**
|
|
5122
|
-
* The minimum allowed length for string
|
|
5123
|
-
* \`string_array
|
|
5217
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5218
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5219
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5124
5220
|
*/
|
|
5125
5221
|
minLength?: number;
|
|
5126
5222
|
/**
|
|
@@ -5239,7 +5335,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5239
5335
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5240
5336
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5241
5337
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5242
|
-
* data:kind, prefix
|
|
5338
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
5339
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
5340
|
+
* generation time.
|
|
5243
5341
|
*/
|
|
5244
5342
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5245
5343
|
/**
|
|
@@ -5262,8 +5360,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5262
5360
|
*/
|
|
5263
5361
|
maxDuration?: number;
|
|
5264
5362
|
/**
|
|
5265
|
-
* The maximum allowed length for \`string\`
|
|
5266
|
-
* \`string_array
|
|
5363
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5364
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5365
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5267
5366
|
*/
|
|
5268
5367
|
maxLength?: number;
|
|
5269
5368
|
/**
|
|
@@ -5277,8 +5376,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5277
5376
|
*/
|
|
5278
5377
|
min?: number;
|
|
5279
5378
|
/**
|
|
5280
|
-
* The minimum allowed length for string
|
|
5281
|
-
* \`string_array
|
|
5379
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5380
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5381
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5282
5382
|
*/
|
|
5283
5383
|
minLength?: number;
|
|
5284
5384
|
/**
|
|
@@ -5558,7 +5658,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5558
5658
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5559
5659
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5560
5660
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5561
|
-
* data:kind, prefix
|
|
5661
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
5662
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
5663
|
+
* generation time.
|
|
5562
5664
|
*/
|
|
5563
5665
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5564
5666
|
/**
|
|
@@ -5581,8 +5683,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5581
5683
|
*/
|
|
5582
5684
|
maxDuration?: number;
|
|
5583
5685
|
/**
|
|
5584
|
-
* The maximum allowed length for \`string\`
|
|
5585
|
-
* \`string_array
|
|
5686
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5687
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5688
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5586
5689
|
*/
|
|
5587
5690
|
maxLength?: number;
|
|
5588
5691
|
/**
|
|
@@ -5596,8 +5699,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5596
5699
|
*/
|
|
5597
5700
|
min?: number;
|
|
5598
5701
|
/**
|
|
5599
|
-
* The minimum allowed length for string
|
|
5600
|
-
* \`string_array
|
|
5702
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
5703
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
5704
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5601
5705
|
*/
|
|
5602
5706
|
minLength?: number;
|
|
5603
5707
|
/**
|
|
@@ -5734,6 +5838,12 @@ export declare namespace WorkflowRunResponse {
|
|
|
5734
5838
|
* Configuration for the loras component
|
|
5735
5839
|
*/
|
|
5736
5840
|
lorasComponent?: UiConfig.LorasComponent;
|
|
5841
|
+
/**
|
|
5842
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
5843
|
+
*/
|
|
5844
|
+
outputProperties?: {
|
|
5845
|
+
[key: string]: UiConfig.OutputProperties;
|
|
5846
|
+
};
|
|
5737
5847
|
/**
|
|
5738
5848
|
* Configuration for the presets
|
|
5739
5849
|
*/
|
|
@@ -5781,6 +5891,9 @@ export declare namespace WorkflowRunResponse {
|
|
|
5781
5891
|
*/
|
|
5782
5892
|
modelIdInput?: string;
|
|
5783
5893
|
}
|
|
5894
|
+
interface OutputProperties {
|
|
5895
|
+
label: string;
|
|
5896
|
+
}
|
|
5784
5897
|
interface Preset {
|
|
5785
5898
|
fields: Array<string>;
|
|
5786
5899
|
presets: unknown;
|
|
@@ -6093,7 +6206,9 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6093
6206
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
6094
6207
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
6095
6208
|
* not able to create the asset on the flight on API side with dataurl without
|
|
6096
|
-
* data:kind, prefix
|
|
6209
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
6210
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
6211
|
+
* generation time.
|
|
6097
6212
|
*/
|
|
6098
6213
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
6099
6214
|
/**
|
|
@@ -6116,8 +6231,9 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6116
6231
|
*/
|
|
6117
6232
|
maxDuration?: number;
|
|
6118
6233
|
/**
|
|
6119
|
-
* The maximum allowed length for \`string\`
|
|
6120
|
-
* \`string_array
|
|
6234
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6235
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6236
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6121
6237
|
*/
|
|
6122
6238
|
maxLength?: number;
|
|
6123
6239
|
/**
|
|
@@ -6131,8 +6247,9 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6131
6247
|
*/
|
|
6132
6248
|
min?: number;
|
|
6133
6249
|
/**
|
|
6134
|
-
* The minimum allowed length for string
|
|
6135
|
-
* \`string_array
|
|
6250
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6251
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6252
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6136
6253
|
*/
|
|
6137
6254
|
minLength?: number;
|
|
6138
6255
|
/**
|
|
@@ -6251,7 +6368,9 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6251
6368
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
6252
6369
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
6253
6370
|
* not able to create the asset on the flight on API side with dataurl without
|
|
6254
|
-
* data:kind, prefix
|
|
6371
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
6372
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
6373
|
+
* generation time.
|
|
6255
6374
|
*/
|
|
6256
6375
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
6257
6376
|
/**
|
|
@@ -6274,8 +6393,9 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6274
6393
|
*/
|
|
6275
6394
|
maxDuration?: number;
|
|
6276
6395
|
/**
|
|
6277
|
-
* The maximum allowed length for \`string\`
|
|
6278
|
-
* \`string_array
|
|
6396
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6397
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6398
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6279
6399
|
*/
|
|
6280
6400
|
maxLength?: number;
|
|
6281
6401
|
/**
|
|
@@ -6289,8 +6409,9 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6289
6409
|
*/
|
|
6290
6410
|
min?: number;
|
|
6291
6411
|
/**
|
|
6292
|
-
* The minimum allowed length for string
|
|
6293
|
-
* \`string_array
|
|
6412
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6413
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6414
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6294
6415
|
*/
|
|
6295
6416
|
minLength?: number;
|
|
6296
6417
|
/**
|
|
@@ -6520,7 +6641,7 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6520
6641
|
cuDiscount: number;
|
|
6521
6642
|
/**
|
|
6522
6643
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
6523
|
-
* top of the generation itself, such as `
|
|
6644
|
+
* top of the generation itself, such as `quality-gate`.
|
|
6524
6645
|
*
|
|
6525
6646
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
6526
6647
|
* values here.
|
|
@@ -6548,7 +6669,7 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6548
6669
|
namespace Billing {
|
|
6549
6670
|
/**
|
|
6550
6671
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
6551
|
-
* top of the generation itself, such as `
|
|
6672
|
+
* top of the generation itself, such as `quality-gate`.
|
|
6552
6673
|
*
|
|
6553
6674
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
6554
6675
|
* values here.
|
|
@@ -6567,7 +6688,7 @@ export declare namespace WorkflowUserApprovalResponse {
|
|
|
6567
6688
|
*/
|
|
6568
6689
|
interface CuCostDetails {
|
|
6569
6690
|
'ip-detection'?: number;
|
|
6570
|
-
'
|
|
6691
|
+
'quality-gate'?: number;
|
|
6571
6692
|
}
|
|
6572
6693
|
}
|
|
6573
6694
|
}
|
|
@@ -6588,13 +6709,18 @@ export interface WorkflowCreateParams {
|
|
|
6588
6709
|
projectId?: string;
|
|
6589
6710
|
}
|
|
6590
6711
|
export interface WorkflowRetrieveParams {
|
|
6591
|
-
|
|
6712
|
+
/**
|
|
6713
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
6714
|
+
* or to set the owner of the resource(s)
|
|
6715
|
+
*/
|
|
6716
|
+
projectId?: string;
|
|
6592
6717
|
}
|
|
6593
6718
|
export interface WorkflowUpdateParams {
|
|
6594
6719
|
/**
|
|
6595
|
-
* Query param
|
|
6720
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
6721
|
+
* assert ownership or to set the owner of the resource(s)
|
|
6596
6722
|
*/
|
|
6597
|
-
projectId?:
|
|
6723
|
+
projectId?: string;
|
|
6598
6724
|
/**
|
|
6599
6725
|
* Body param: The after asset of the workflow. Set to null to unset the after
|
|
6600
6726
|
* asset.
|
|
@@ -6804,7 +6930,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
6804
6930
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
6805
6931
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
6806
6932
|
* not able to create the asset on the flight on API side with dataurl without
|
|
6807
|
-
* data:kind, prefix
|
|
6933
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
6934
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
6935
|
+
* generation time.
|
|
6808
6936
|
*/
|
|
6809
6937
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
6810
6938
|
/**
|
|
@@ -6827,8 +6955,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
6827
6955
|
*/
|
|
6828
6956
|
maxDuration?: number;
|
|
6829
6957
|
/**
|
|
6830
|
-
* The maximum allowed length for \`string\`
|
|
6831
|
-
* \`string_array
|
|
6958
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6959
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6960
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6832
6961
|
*/
|
|
6833
6962
|
maxLength?: number;
|
|
6834
6963
|
/**
|
|
@@ -6842,8 +6971,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
6842
6971
|
*/
|
|
6843
6972
|
min?: number;
|
|
6844
6973
|
/**
|
|
6845
|
-
* The minimum allowed length for string
|
|
6846
|
-
* \`string_array
|
|
6974
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6975
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6976
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6847
6977
|
*/
|
|
6848
6978
|
minLength?: number;
|
|
6849
6979
|
/**
|
|
@@ -6962,7 +7092,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
6962
7092
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
6963
7093
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
6964
7094
|
* not able to create the asset on the flight on API side with dataurl without
|
|
6965
|
-
* data:kind, prefix
|
|
7095
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
7096
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
7097
|
+
* generation time.
|
|
6966
7098
|
*/
|
|
6967
7099
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
6968
7100
|
/**
|
|
@@ -6985,8 +7117,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
6985
7117
|
*/
|
|
6986
7118
|
maxDuration?: number;
|
|
6987
7119
|
/**
|
|
6988
|
-
* The maximum allowed length for \`string\`
|
|
6989
|
-
* \`string_array
|
|
7120
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7121
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7122
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
6990
7123
|
*/
|
|
6991
7124
|
maxLength?: number;
|
|
6992
7125
|
/**
|
|
@@ -7000,8 +7133,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
7000
7133
|
*/
|
|
7001
7134
|
min?: number;
|
|
7002
7135
|
/**
|
|
7003
|
-
* The minimum allowed length for string
|
|
7004
|
-
* \`string_array
|
|
7136
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7137
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7138
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
7005
7139
|
*/
|
|
7006
7140
|
minLength?: number;
|
|
7007
7141
|
/**
|
|
@@ -7281,7 +7415,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
7281
7415
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
7282
7416
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
7283
7417
|
* not able to create the asset on the flight on API side with dataurl without
|
|
7284
|
-
* data:kind, prefix
|
|
7418
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
7419
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
7420
|
+
* generation time.
|
|
7285
7421
|
*/
|
|
7286
7422
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
7287
7423
|
/**
|
|
@@ -7304,8 +7440,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
7304
7440
|
*/
|
|
7305
7441
|
maxDuration?: number;
|
|
7306
7442
|
/**
|
|
7307
|
-
* The maximum allowed length for \`string\`
|
|
7308
|
-
* \`string_array
|
|
7443
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7444
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7445
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
7309
7446
|
*/
|
|
7310
7447
|
maxLength?: number;
|
|
7311
7448
|
/**
|
|
@@ -7319,8 +7456,9 @@ export declare namespace WorkflowUpdateParams {
|
|
|
7319
7456
|
*/
|
|
7320
7457
|
min?: number;
|
|
7321
7458
|
/**
|
|
7322
|
-
* The minimum allowed length for string
|
|
7323
|
-
* \`string_array
|
|
7459
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7460
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7461
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
7324
7462
|
*/
|
|
7325
7463
|
minLength?: number;
|
|
7326
7464
|
/**
|
|
@@ -7445,10 +7583,18 @@ export interface WorkflowListParams extends WorkflowsCursorParams {
|
|
|
7445
7583
|
* private, `ready` for public.
|
|
7446
7584
|
*/
|
|
7447
7585
|
status?: 'draft' | 'ready';
|
|
7448
|
-
|
|
7586
|
+
/**
|
|
7587
|
+
* The tags of the workflows to return, separated by commas. Example:
|
|
7588
|
+
* `tag1,tag2,tag3` or `tag1`. Optional.
|
|
7589
|
+
*/
|
|
7590
|
+
tags?: string;
|
|
7449
7591
|
}
|
|
7450
7592
|
export interface WorkflowDeleteParams {
|
|
7451
|
-
|
|
7593
|
+
/**
|
|
7594
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
7595
|
+
* or to set the owner of the resource(s)
|
|
7596
|
+
*/
|
|
7597
|
+
projectId?: string;
|
|
7452
7598
|
}
|
|
7453
7599
|
export interface WorkflowGetTagsParams {
|
|
7454
7600
|
/**
|
|
@@ -7456,7 +7602,10 @@ export interface WorkflowGetTagsParams {
|
|
|
7456
7602
|
* or to set the owner of the resource(s)
|
|
7457
7603
|
*/
|
|
7458
7604
|
projectId?: string;
|
|
7459
|
-
|
|
7605
|
+
/**
|
|
7606
|
+
* Only collect tags from workflows in this status. Default `ready`.
|
|
7607
|
+
*/
|
|
7608
|
+
status?: 'draft' | 'ready' | 'deleted';
|
|
7460
7609
|
}
|
|
7461
7610
|
export interface WorkflowRunParams {
|
|
7462
7611
|
/**
|
|
@@ -7465,19 +7614,22 @@ export interface WorkflowRunParams {
|
|
|
7465
7614
|
*/
|
|
7466
7615
|
body: unknown;
|
|
7467
7616
|
/**
|
|
7468
|
-
* Query param
|
|
7617
|
+
* Query param: Estimate the operation instead of running it: the call returns a
|
|
7618
|
+
* 269 response carrying the creative units cost. `api` estimates at the API tier.
|
|
7469
7619
|
*/
|
|
7470
|
-
dryRun?:
|
|
7620
|
+
dryRun?: 'true' | 'api';
|
|
7471
7621
|
/**
|
|
7472
|
-
* Query param
|
|
7622
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
7623
|
+
* assert ownership or to set the owner of the resource(s)
|
|
7473
7624
|
*/
|
|
7474
|
-
projectId?:
|
|
7625
|
+
projectId?: string;
|
|
7475
7626
|
}
|
|
7476
7627
|
export interface WorkflowUserApprovalParams {
|
|
7477
7628
|
/**
|
|
7478
|
-
* Query param
|
|
7629
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
7630
|
+
* assert ownership or to set the owner of the resource(s)
|
|
7479
7631
|
*/
|
|
7480
|
-
projectId:
|
|
7632
|
+
projectId: string;
|
|
7481
7633
|
/**
|
|
7482
7634
|
* Body param: The ID of the user approval node to act on in the workflow
|
|
7483
7635
|
*/
|
|
@@ -7496,9 +7648,10 @@ export interface WorkflowUserApprovalParams {
|
|
|
7496
7648
|
}
|
|
7497
7649
|
export interface WorkflowApproveUserParams {
|
|
7498
7650
|
/**
|
|
7499
|
-
* Query param
|
|
7651
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
7652
|
+
* assert ownership or to set the owner of the resource(s)
|
|
7500
7653
|
*/
|
|
7501
|
-
projectId:
|
|
7654
|
+
projectId: string;
|
|
7502
7655
|
/**
|
|
7503
7656
|
* Body param: The ID of the user approval node to act on in the workflow
|
|
7504
7657
|
*/
|