@civitai/orchestration-client 0.2.0-beta.103 → 0.2.0-beta.105
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/dist/generated/index.d.ts +20 -0
- package/dist/generated/types.gen.d.ts +314 -10
- package/package.json +1 -1
|
@@ -200,11 +200,17 @@ export {
|
|
|
200
200
|
type ComfyErnieTurboCreateImageGenInput,
|
|
201
201
|
type ComfyErnieTurboImageGenInput,
|
|
202
202
|
type ComfyFlux1CreateImageGenInput,
|
|
203
|
+
type ComfyFlux1EditImageGenInput,
|
|
203
204
|
type ComfyFlux1ImageGenInput,
|
|
204
205
|
type ComfyFlux1VariantImageGenInput,
|
|
205
206
|
type ComfyFlux2DevCreateImageInput,
|
|
206
207
|
type ComfyFlux2DevEditImageInput,
|
|
207
208
|
type ComfyFlux2DevImageGenInput,
|
|
209
|
+
type ComfyFlux2DevVariantImageGenInput,
|
|
210
|
+
type ComfyFlux2KleinCreateImageInput,
|
|
211
|
+
type ComfyFlux2KleinEditImageInput,
|
|
212
|
+
type ComfyFlux2KleinImageGenInput,
|
|
213
|
+
type ComfyFlux2KleinVariantImageGenInput,
|
|
208
214
|
type ComfyHiDreamImageGenInput,
|
|
209
215
|
type ComfyHiDreamO1CreateImageGenInput,
|
|
210
216
|
type ComfyHiDreamO1DevCreateImageGenInput,
|
|
@@ -269,6 +275,13 @@ export {
|
|
|
269
275
|
type ComfyNodepackSnapshotStepTemplate,
|
|
270
276
|
type ComfyOutput,
|
|
271
277
|
type ComfyPolyGenInput,
|
|
278
|
+
type ComfyQwen20bCreateImageGenInput,
|
|
279
|
+
type ComfyQwen20bEditImageGenInput,
|
|
280
|
+
type ComfyQwen20bEditImageGenInputWritable,
|
|
281
|
+
type ComfyQwen20bImageGenInput,
|
|
282
|
+
type ComfyQwen20bVariantImageGenInput,
|
|
283
|
+
type ComfyQwen20bVariantImageGenInputWritable,
|
|
284
|
+
type ComfyQwenImageGenInput,
|
|
272
285
|
ComfySampler,
|
|
273
286
|
ComfyScheduler,
|
|
274
287
|
type ComfySd1CreateImageGenInput,
|
|
@@ -281,6 +294,11 @@ export {
|
|
|
281
294
|
type ComfyStepTemplate,
|
|
282
295
|
type ComfyTrainingInput,
|
|
283
296
|
type ComfyTrainingInputWritable,
|
|
297
|
+
type ComfyZImageBaseCreateImageGenInput,
|
|
298
|
+
type ComfyZImageBaseImageGenInput,
|
|
299
|
+
type ComfyZImageImageGenInput,
|
|
300
|
+
type ComfyZImageTurboCreateImageGenInput,
|
|
301
|
+
type ComfyZImageTurboImageGenInput,
|
|
284
302
|
type ComposeMediaElementInput,
|
|
285
303
|
type ComposeMediaInput,
|
|
286
304
|
type ComposeMediaOutput,
|
|
@@ -1080,6 +1098,7 @@ export {
|
|
|
1080
1098
|
type QueryWorkflowsErrors,
|
|
1081
1099
|
type QueryWorkflowsResponse,
|
|
1082
1100
|
type QueryWorkflowsResponses,
|
|
1101
|
+
type QueuedResourceAvailability,
|
|
1083
1102
|
type Qwen20bCreateImageGenInput,
|
|
1084
1103
|
type Qwen20bEditImageGenInput,
|
|
1085
1104
|
type Qwen20bEditImageGenInputWritable,
|
|
@@ -1366,6 +1385,7 @@ export {
|
|
|
1366
1385
|
type WorkflowStepJobEvent,
|
|
1367
1386
|
type WorkflowStepJobEventWritable,
|
|
1368
1387
|
type WorkflowStepPreparation,
|
|
1388
|
+
type WorkflowStepPreparationResource,
|
|
1369
1389
|
type WorkflowStepQueuePosition,
|
|
1370
1390
|
type WorkflowStepTemplate,
|
|
1371
1391
|
type WorkflowStepTemplateWritable,
|
|
@@ -1339,7 +1339,7 @@ export type ComfyAnimaCreateImageGenInput = Omit<
|
|
|
1339
1339
|
engine: 'comfy';
|
|
1340
1340
|
};
|
|
1341
1341
|
export type ComfyAnimaImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1342
|
-
operation: string;
|
|
1342
|
+
operation: null | string;
|
|
1343
1343
|
prompt: string;
|
|
1344
1344
|
negativePrompt?: null | string;
|
|
1345
1345
|
sampler?: ComfySampler;
|
|
@@ -1586,8 +1586,27 @@ export type ComfyFlux1CreateImageGenInput = Omit<
|
|
|
1586
1586
|
ecosystem: 'flux1';
|
|
1587
1587
|
engine: 'comfy';
|
|
1588
1588
|
};
|
|
1589
|
+
/**
|
|
1590
|
+
* Compatibility route for sdcpp Flux 1 editing: ordinary image-to-image using only
|
|
1591
|
+
* the first source image, or text-to-image when the image list is empty.
|
|
1592
|
+
*/
|
|
1593
|
+
export type ComfyFlux1EditImageGenInput = Omit<
|
|
1594
|
+
ComfyFlux1ImageGenInput,
|
|
1595
|
+
'engine' | 'ecosystem' | 'operation'
|
|
1596
|
+
> & {
|
|
1597
|
+
width?: number;
|
|
1598
|
+
height?: number;
|
|
1599
|
+
steps?: number;
|
|
1600
|
+
/**
|
|
1601
|
+
* Uses only the first image for image-to-image at denoise strength 0.7. An empty list generates from text, matching sdcpp Flux 1 editImage.
|
|
1602
|
+
*/
|
|
1603
|
+
images?: Array<string>;
|
|
1604
|
+
operation: 'editImage';
|
|
1605
|
+
ecosystem: 'flux1';
|
|
1606
|
+
engine: 'comfy';
|
|
1607
|
+
};
|
|
1589
1608
|
export type ComfyFlux1ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1590
|
-
operation: string;
|
|
1609
|
+
operation: null | string;
|
|
1591
1610
|
prompt: string;
|
|
1592
1611
|
sampler?: ComfySampler;
|
|
1593
1612
|
scheduler?: ComfyScheduler;
|
|
@@ -1654,6 +1673,71 @@ export type ComfyFlux2DevImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ec
|
|
|
1654
1673
|
ecosystem: 'flux2Dev';
|
|
1655
1674
|
engine: 'comfy';
|
|
1656
1675
|
};
|
|
1676
|
+
export type ComfyFlux2DevVariantImageGenInput = Omit<
|
|
1677
|
+
ComfyFlux2DevImageGenInput,
|
|
1678
|
+
'engine' | 'ecosystem' | 'operation'
|
|
1679
|
+
> & {
|
|
1680
|
+
/**
|
|
1681
|
+
* Either A URL, A DataURL or a Base64 string
|
|
1682
|
+
*/
|
|
1683
|
+
image: string;
|
|
1684
|
+
strength?: number;
|
|
1685
|
+
operation: 'createVariant';
|
|
1686
|
+
ecosystem: 'flux2Dev';
|
|
1687
|
+
engine: 'comfy';
|
|
1688
|
+
};
|
|
1689
|
+
export type ComfyFlux2KleinCreateImageInput = Omit<
|
|
1690
|
+
ComfyFlux2KleinImageGenInput,
|
|
1691
|
+
'engine' | 'ecosystem' | 'operation'
|
|
1692
|
+
> & {
|
|
1693
|
+
operation: 'createImage';
|
|
1694
|
+
ecosystem: 'flux2Klein';
|
|
1695
|
+
engine: 'comfy';
|
|
1696
|
+
};
|
|
1697
|
+
export type ComfyFlux2KleinEditImageInput = Omit<
|
|
1698
|
+
ComfyFlux2KleinImageGenInput,
|
|
1699
|
+
'engine' | 'ecosystem' | 'operation'
|
|
1700
|
+
> & {
|
|
1701
|
+
images?: Array<string>;
|
|
1702
|
+
operation: 'editImage';
|
|
1703
|
+
ecosystem: 'flux2Klein';
|
|
1704
|
+
engine: 'comfy';
|
|
1705
|
+
};
|
|
1706
|
+
export type ComfyFlux2KleinImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1707
|
+
operation: string;
|
|
1708
|
+
prompt: string;
|
|
1709
|
+
width?: number;
|
|
1710
|
+
height?: number;
|
|
1711
|
+
seed?: null | number;
|
|
1712
|
+
quantity?: number;
|
|
1713
|
+
cfgScale?: number;
|
|
1714
|
+
steps?: number;
|
|
1715
|
+
sampler?: ComfySampler;
|
|
1716
|
+
scheduler?: ComfyScheduler;
|
|
1717
|
+
negativePrompt?: null | string;
|
|
1718
|
+
loras?: {
|
|
1719
|
+
[key: string]: number;
|
|
1720
|
+
};
|
|
1721
|
+
/**
|
|
1722
|
+
* Klein model variant. Both 9b and 9b-kv always use the 9B KV checkpoint and reference-image caching. 4B and Base variants use their original checkpoints.
|
|
1723
|
+
*/
|
|
1724
|
+
modelVersion?: '4b' | '4b-base' | '9b' | '9b-base' | '9b-kv';
|
|
1725
|
+
ecosystem: 'flux2Klein';
|
|
1726
|
+
engine: 'comfy';
|
|
1727
|
+
};
|
|
1728
|
+
export type ComfyFlux2KleinVariantImageGenInput = Omit<
|
|
1729
|
+
ComfyFlux2KleinImageGenInput,
|
|
1730
|
+
'engine' | 'ecosystem' | 'operation'
|
|
1731
|
+
> & {
|
|
1732
|
+
/**
|
|
1733
|
+
* Either A URL, A DataURL or a Base64 string
|
|
1734
|
+
*/
|
|
1735
|
+
image: string;
|
|
1736
|
+
strength?: number;
|
|
1737
|
+
operation: 'createVariant';
|
|
1738
|
+
ecosystem: 'flux2Klein';
|
|
1739
|
+
engine: 'comfy';
|
|
1740
|
+
};
|
|
1657
1741
|
export type ComfyHiDreamImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1658
1742
|
model: string;
|
|
1659
1743
|
ecosystem: 'hidream-o1';
|
|
@@ -2539,6 +2623,73 @@ export type ComfyPolyGenInput = Omit<PolyGenInput, 'engine'> & {
|
|
|
2539
2623
|
model: string;
|
|
2540
2624
|
engine: 'comfy';
|
|
2541
2625
|
};
|
|
2626
|
+
export type ComfyQwen20bCreateImageGenInput = Omit<
|
|
2627
|
+
ComfyQwen20bImageGenInput,
|
|
2628
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
2629
|
+
> & {
|
|
2630
|
+
version?: 'latest' | '2509' | '2512';
|
|
2631
|
+
width?: number;
|
|
2632
|
+
height?: number;
|
|
2633
|
+
operation: 'createImage';
|
|
2634
|
+
model: '20b';
|
|
2635
|
+
ecosystem: 'qwen';
|
|
2636
|
+
engine: 'comfy';
|
|
2637
|
+
};
|
|
2638
|
+
export type ComfyQwen20bEditImageGenInput = Omit<
|
|
2639
|
+
ComfyQwen20bImageGenInput,
|
|
2640
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
2641
|
+
> & {
|
|
2642
|
+
version?: 'latest' | '2509' | '2511';
|
|
2643
|
+
images: Array<string>;
|
|
2644
|
+
readonly width: number;
|
|
2645
|
+
readonly height: number;
|
|
2646
|
+
operation: 'editImage';
|
|
2647
|
+
model: '20b';
|
|
2648
|
+
ecosystem: 'qwen';
|
|
2649
|
+
engine: 'comfy';
|
|
2650
|
+
};
|
|
2651
|
+
export type ComfyQwen20bImageGenInput = Omit<
|
|
2652
|
+
ComfyQwenImageGenInput,
|
|
2653
|
+
'engine' | 'ecosystem' | 'model'
|
|
2654
|
+
> & {
|
|
2655
|
+
operation: string;
|
|
2656
|
+
prompt: string;
|
|
2657
|
+
negativePrompt?: null | string;
|
|
2658
|
+
sampler?: ComfySampler;
|
|
2659
|
+
scheduler?: ComfyScheduler;
|
|
2660
|
+
steps?: number;
|
|
2661
|
+
cfgScale?: number;
|
|
2662
|
+
seed?: null | number;
|
|
2663
|
+
quantity?: number;
|
|
2664
|
+
loras?: {
|
|
2665
|
+
[key: string]: number;
|
|
2666
|
+
};
|
|
2667
|
+
model: '20b';
|
|
2668
|
+
ecosystem: 'qwen';
|
|
2669
|
+
engine: 'comfy';
|
|
2670
|
+
};
|
|
2671
|
+
export type ComfyQwen20bVariantImageGenInput = Omit<
|
|
2672
|
+
ComfyQwen20bImageGenInput,
|
|
2673
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
2674
|
+
> & {
|
|
2675
|
+
version?: 'latest' | '2509' | '2512';
|
|
2676
|
+
/**
|
|
2677
|
+
* Either A URL, A DataURL or a Base64 string
|
|
2678
|
+
*/
|
|
2679
|
+
image: string;
|
|
2680
|
+
strength?: number;
|
|
2681
|
+
readonly width: number;
|
|
2682
|
+
readonly height: number;
|
|
2683
|
+
operation: 'createVariant';
|
|
2684
|
+
model: '20b';
|
|
2685
|
+
ecosystem: 'qwen';
|
|
2686
|
+
engine: 'comfy';
|
|
2687
|
+
};
|
|
2688
|
+
export type ComfyQwenImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
2689
|
+
model: null | string;
|
|
2690
|
+
ecosystem: 'qwen';
|
|
2691
|
+
engine: 'comfy';
|
|
2692
|
+
};
|
|
2542
2693
|
export declare const ComfySampler: {
|
|
2543
2694
|
readonly EULER: 'euler';
|
|
2544
2695
|
readonly EULER_ANCESTRAL: 'euler_ancestral';
|
|
@@ -2836,6 +2987,76 @@ export type ComfyTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
2836
2987
|
readonly maxBatchSize: number;
|
|
2837
2988
|
engine: 'comfy';
|
|
2838
2989
|
};
|
|
2990
|
+
export type ComfyZImageBaseCreateImageGenInput = Omit<
|
|
2991
|
+
ComfyZImageBaseImageGenInput,
|
|
2992
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
2993
|
+
> & {
|
|
2994
|
+
width?: number;
|
|
2995
|
+
height?: number;
|
|
2996
|
+
operation: 'createImage';
|
|
2997
|
+
model: 'base';
|
|
2998
|
+
ecosystem: 'zImage';
|
|
2999
|
+
engine: 'comfy';
|
|
3000
|
+
};
|
|
3001
|
+
export type ComfyZImageBaseImageGenInput = Omit<
|
|
3002
|
+
ComfyZImageImageGenInput,
|
|
3003
|
+
'engine' | 'ecosystem' | 'model'
|
|
3004
|
+
> & {
|
|
3005
|
+
operation: null | string;
|
|
3006
|
+
prompt: string;
|
|
3007
|
+
negativePrompt?: null | string;
|
|
3008
|
+
sampler?: ComfySampler;
|
|
3009
|
+
scheduler?: ComfyScheduler;
|
|
3010
|
+
steps?: number;
|
|
3011
|
+
cfgScale?: number;
|
|
3012
|
+
seed?: null | number;
|
|
3013
|
+
quantity?: number;
|
|
3014
|
+
loras?: {
|
|
3015
|
+
[key: string]: number;
|
|
3016
|
+
};
|
|
3017
|
+
controlNets?: Array<ImageJobControlNet>;
|
|
3018
|
+
model: 'base';
|
|
3019
|
+
ecosystem: 'zImage';
|
|
3020
|
+
engine: 'comfy';
|
|
3021
|
+
};
|
|
3022
|
+
export type ComfyZImageImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
3023
|
+
model: null | string;
|
|
3024
|
+
diffuserModel?: string;
|
|
3025
|
+
ecosystem: 'zImage';
|
|
3026
|
+
engine: 'comfy';
|
|
3027
|
+
};
|
|
3028
|
+
export type ComfyZImageTurboCreateImageGenInput = Omit<
|
|
3029
|
+
ComfyZImageTurboImageGenInput,
|
|
3030
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
3031
|
+
> & {
|
|
3032
|
+
width?: number;
|
|
3033
|
+
height?: number;
|
|
3034
|
+
operation: 'createImage';
|
|
3035
|
+
model: 'turbo';
|
|
3036
|
+
ecosystem: 'zImage';
|
|
3037
|
+
engine: 'comfy';
|
|
3038
|
+
};
|
|
3039
|
+
export type ComfyZImageTurboImageGenInput = Omit<
|
|
3040
|
+
ComfyZImageImageGenInput,
|
|
3041
|
+
'engine' | 'ecosystem' | 'model'
|
|
3042
|
+
> & {
|
|
3043
|
+
operation: null | string;
|
|
3044
|
+
prompt: string;
|
|
3045
|
+
negativePrompt?: null | string;
|
|
3046
|
+
sampler?: ComfySampler;
|
|
3047
|
+
scheduler?: ComfyScheduler;
|
|
3048
|
+
steps?: number;
|
|
3049
|
+
cfgScale?: number;
|
|
3050
|
+
seed?: null | number;
|
|
3051
|
+
quantity?: number;
|
|
3052
|
+
loras?: {
|
|
3053
|
+
[key: string]: number;
|
|
3054
|
+
};
|
|
3055
|
+
controlNets?: Array<ImageJobControlNet>;
|
|
3056
|
+
model: 'turbo';
|
|
3057
|
+
ecosystem: 'zImage';
|
|
3058
|
+
engine: 'comfy';
|
|
3059
|
+
};
|
|
2839
3060
|
/**
|
|
2840
3061
|
* A single audio or video element participating in a composition.
|
|
2841
3062
|
*/
|
|
@@ -5368,12 +5589,20 @@ export type LightricksVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
5368
5589
|
expandPrompt?: boolean;
|
|
5369
5590
|
engine: 'lightricks';
|
|
5370
5591
|
};
|
|
5592
|
+
/**
|
|
5593
|
+
* Transferring. No queue position — it is no longer waiting.
|
|
5594
|
+
*/
|
|
5371
5595
|
export type LoadingResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
5372
5596
|
progress: number;
|
|
5373
5597
|
workers: number;
|
|
5374
5598
|
startedAt?: null | string;
|
|
5375
5599
|
lastProgressAt?: null | string;
|
|
5376
5600
|
etaSeconds?: null | number;
|
|
5601
|
+
lane?: Priority;
|
|
5602
|
+
/**
|
|
5603
|
+
* Inferred from reported progress over elapsed time; the worker's byte counters never leave it.
|
|
5604
|
+
*/
|
|
5605
|
+
bytesPerSecond?: null | number;
|
|
5377
5606
|
status: 'loading';
|
|
5378
5607
|
};
|
|
5379
5608
|
/**
|
|
@@ -6604,7 +6833,7 @@ export type OpenAiGpt25FlareImageGenInput = Omit<OpenApiImageGenInput, 'engine'
|
|
|
6604
6833
|
width?: null | number;
|
|
6605
6834
|
height?: null | number;
|
|
6606
6835
|
quantity?: number;
|
|
6607
|
-
quality?: 'low' | 'medium' | 'high';
|
|
6836
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
6608
6837
|
model: 'gpt-image-2.5-flare';
|
|
6609
6838
|
engine: 'openai';
|
|
6610
6839
|
};
|
|
@@ -6649,7 +6878,7 @@ export type OpenAiGpt25SunburstImageGenInput = Omit<OpenApiImageGenInput, 'engin
|
|
|
6649
6878
|
width?: null | number;
|
|
6650
6879
|
height?: null | number;
|
|
6651
6880
|
quantity?: number;
|
|
6652
|
-
quality?: 'low' | 'medium' | 'high';
|
|
6881
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
6653
6882
|
model: 'gpt-image-2.5-sunburst';
|
|
6654
6883
|
engine: 'openai';
|
|
6655
6884
|
};
|
|
@@ -7115,6 +7344,19 @@ export type PromptIssue = {
|
|
|
7115
7344
|
*/
|
|
7116
7345
|
severity?: null | string;
|
|
7117
7346
|
};
|
|
7347
|
+
/**
|
|
7348
|
+
* Waiting in a download lane. No progress or speed — nothing is transferring yet.
|
|
7349
|
+
*/
|
|
7350
|
+
export type QueuedResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
7351
|
+
queuePosition: number;
|
|
7352
|
+
lane: Priority;
|
|
7353
|
+
etaSeconds?: null | number;
|
|
7354
|
+
/**
|
|
7355
|
+
* What Civitai.Orchestration.Grains.Resources.QueuedResourceAvailability.EtaSeconds would become in the High lane. Null when already High.
|
|
7356
|
+
*/
|
|
7357
|
+
boostedEtaSeconds?: null | number;
|
|
7358
|
+
status: 'queued';
|
|
7359
|
+
};
|
|
7118
7360
|
export type Qwen20bCreateImageGenInput = Omit<
|
|
7119
7361
|
Qwen20bImageGenInput,
|
|
7120
7362
|
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
@@ -8658,8 +8900,11 @@ export type TryOnUInput = {
|
|
|
8658
8900
|
export type TryOnUOutput = {
|
|
8659
8901
|
blob: Blob;
|
|
8660
8902
|
};
|
|
8903
|
+
/**
|
|
8904
|
+
* Eligible, but nothing is pulling it. A resource waiting in a download lane reports
|
|
8905
|
+
* Civitai.Orchestration.Grains.Resources.QueuedResourceAvailability instead.
|
|
8906
|
+
*/
|
|
8661
8907
|
export type UnavailableResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
8662
|
-
queuePosition?: null | number;
|
|
8663
8908
|
status: 'unavailable';
|
|
8664
8909
|
};
|
|
8665
8910
|
export type UnsupportedResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
@@ -8684,6 +8929,7 @@ export type UpdateWorkflowRequest = {
|
|
|
8684
8929
|
* Set to true to remove the mature content restriction on the workflow.
|
|
8685
8930
|
*/
|
|
8686
8931
|
allowMatureContent?: null | boolean;
|
|
8932
|
+
downloadPriority?: Priority;
|
|
8687
8933
|
};
|
|
8688
8934
|
/**
|
|
8689
8935
|
* Available statuses for updating workflows.
|
|
@@ -9881,6 +10127,7 @@ export type Workflow = {
|
|
|
9881
10127
|
* consumer reads and queries treat the workflow as gone.
|
|
9882
10128
|
*/
|
|
9883
10129
|
deletedAt?: null | string;
|
|
10130
|
+
downloadPriority?: Priority;
|
|
9884
10131
|
};
|
|
9885
10132
|
/**
|
|
9886
10133
|
* Details of a callback setup for a workflow.
|
|
@@ -10199,7 +10446,8 @@ export type WorkflowStepJobEvent = {
|
|
|
10199
10446
|
matureContent?: null | boolean;
|
|
10200
10447
|
};
|
|
10201
10448
|
/**
|
|
10202
|
-
* The resource
|
|
10449
|
+
* The resource downloads a step is waiting on while its status is preparing. Absent rather than
|
|
10450
|
+
* partially filled: without a resource and its place in the queue it says nothing the status doesn't.
|
|
10203
10451
|
*/
|
|
10204
10452
|
export type WorkflowStepPreparation = {
|
|
10205
10453
|
/**
|
|
@@ -10215,9 +10463,32 @@ export type WorkflowStepPreparation = {
|
|
|
10215
10463
|
*/
|
|
10216
10464
|
progress?: null | number;
|
|
10217
10465
|
/**
|
|
10218
|
-
* Estimated seconds until the download completes.
|
|
10466
|
+
* Estimated seconds until the download completes.
|
|
10467
|
+
*/
|
|
10468
|
+
etaSeconds?: null | number;
|
|
10469
|
+
lane: Priority;
|
|
10470
|
+
/**
|
|
10471
|
+
* What Civitai.Orchestration.Grains.Workflows.WorkflowStepPreparation.EtaSeconds would become in the High lane. Null when already High.
|
|
10219
10472
|
*/
|
|
10473
|
+
boostedEtaSeconds?: null | number;
|
|
10474
|
+
/**
|
|
10475
|
+
* Every resource this step is waiting on, gating resource first.
|
|
10476
|
+
*/
|
|
10477
|
+
resources: Array<WorkflowStepPreparationResource>;
|
|
10478
|
+
};
|
|
10479
|
+
/**
|
|
10480
|
+
* One resource a step is waiting on. A queued resource reports a position and no progress; one that
|
|
10481
|
+
* is transferring reports the reverse.
|
|
10482
|
+
*/
|
|
10483
|
+
export type WorkflowStepPreparationResource = {
|
|
10484
|
+
resource: string;
|
|
10485
|
+
sizeBytes: number;
|
|
10486
|
+
lane: Priority;
|
|
10487
|
+
queuePosition?: null | number;
|
|
10488
|
+
progress?: null | number;
|
|
10489
|
+
bytesPerSecond?: null | number;
|
|
10220
10490
|
etaSeconds?: null | number;
|
|
10491
|
+
boostedEtaSeconds?: null | number;
|
|
10221
10492
|
};
|
|
10222
10493
|
/**
|
|
10223
10494
|
* Details of a workflow step's position in the queue.
|
|
@@ -10294,6 +10565,7 @@ export type WorkflowTemplate = {
|
|
|
10294
10565
|
[key: string]: unknown;
|
|
10295
10566
|
};
|
|
10296
10567
|
nsfwLevel?: NsfwLevel;
|
|
10568
|
+
downloadPriority?: Priority;
|
|
10297
10569
|
/**
|
|
10298
10570
|
* Get or set whether this workflow is experimental
|
|
10299
10571
|
*/
|
|
@@ -10938,6 +11210,32 @@ export type ChromaAiToolkitTrainingInputWritable = Omit<
|
|
|
10938
11210
|
*/
|
|
10939
11211
|
batchSize?: null | number;
|
|
10940
11212
|
};
|
|
11213
|
+
export type ComfyQwen20bEditImageGenInputWritable = Omit<
|
|
11214
|
+
ComfyQwen20bImageGenInput,
|
|
11215
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
11216
|
+
> & {
|
|
11217
|
+
version?: 'latest' | '2509' | '2511';
|
|
11218
|
+
images: Array<string>;
|
|
11219
|
+
operation: 'ComfyQwen20bEditImageGenInputWritable';
|
|
11220
|
+
model: '20b';
|
|
11221
|
+
ecosystem: 'qwen';
|
|
11222
|
+
engine: 'comfy';
|
|
11223
|
+
};
|
|
11224
|
+
export type ComfyQwen20bVariantImageGenInputWritable = Omit<
|
|
11225
|
+
ComfyQwen20bImageGenInput,
|
|
11226
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
11227
|
+
> & {
|
|
11228
|
+
version?: 'latest' | '2509' | '2512';
|
|
11229
|
+
/**
|
|
11230
|
+
* Either A URL, A DataURL or a Base64 string
|
|
11231
|
+
*/
|
|
11232
|
+
image: string;
|
|
11233
|
+
strength?: number;
|
|
11234
|
+
operation: 'ComfyQwen20bVariantImageGenInputWritable';
|
|
11235
|
+
model: '20b';
|
|
11236
|
+
ecosystem: 'qwen';
|
|
11237
|
+
engine: 'comfy';
|
|
11238
|
+
};
|
|
10941
11239
|
/**
|
|
10942
11240
|
* Input for model-family-driven Comfy-backed LoRA training.
|
|
10943
11241
|
*/
|
|
@@ -11960,6 +12258,7 @@ export type WorkflowWritable = {
|
|
|
11960
12258
|
* consumer reads and queries treat the workflow as gone.
|
|
11961
12259
|
*/
|
|
11962
12260
|
deletedAt?: null | string;
|
|
12261
|
+
downloadPriority?: Priority;
|
|
11963
12262
|
};
|
|
11964
12263
|
export type WorkflowCostWritable = {
|
|
11965
12264
|
/**
|
|
@@ -14627,7 +14926,12 @@ export type UpdateWorkflowData = {
|
|
|
14627
14926
|
*/
|
|
14628
14927
|
workflowId: string;
|
|
14629
14928
|
};
|
|
14630
|
-
query?:
|
|
14929
|
+
query?: {
|
|
14930
|
+
/**
|
|
14931
|
+
* Whether to apply the update or return what it would cost.
|
|
14932
|
+
*/
|
|
14933
|
+
whatif?: boolean;
|
|
14934
|
+
};
|
|
14631
14935
|
url: '/v2/consumer/workflows/{workflowId}';
|
|
14632
14936
|
};
|
|
14633
14937
|
export type UpdateWorkflowErrors = {
|
|
@@ -14647,9 +14951,9 @@ export type UpdateWorkflowErrors = {
|
|
|
14647
14951
|
export type UpdateWorkflowError = UpdateWorkflowErrors[keyof UpdateWorkflowErrors];
|
|
14648
14952
|
export type UpdateWorkflowResponses = {
|
|
14649
14953
|
/**
|
|
14650
|
-
*
|
|
14954
|
+
* OK
|
|
14651
14955
|
*/
|
|
14652
|
-
|
|
14956
|
+
200: Workflow;
|
|
14653
14957
|
};
|
|
14654
14958
|
export type UpdateWorkflowResponse = UpdateWorkflowResponses[keyof UpdateWorkflowResponses];
|
|
14655
14959
|
export type RemoveAllWorkflowTagsData = {
|
package/package.json
CHANGED