@civitai/orchestration-client 0.3.0 → 0.3.1
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.
|
@@ -2380,6 +2380,7 @@ export {
|
|
|
2380
2380
|
type WorkflowEventDetails,
|
|
2381
2381
|
type WorkflowEventStepDetails,
|
|
2382
2382
|
type WorkflowEventWritable,
|
|
2383
|
+
type WorkflowPayment,
|
|
2383
2384
|
WorkflowStatus,
|
|
2384
2385
|
type WorkflowStep,
|
|
2385
2386
|
type WorkflowStepEvent,
|
|
@@ -2401,6 +2402,7 @@ export {
|
|
|
2401
2402
|
WorkflowUpgradeMode,
|
|
2402
2403
|
WorkflowWaitUntil,
|
|
2403
2404
|
type WorkflowWritable,
|
|
2405
|
+
type X402Payment,
|
|
2404
2406
|
type XGuardCustomSignalMetadata,
|
|
2405
2407
|
type XGuardCustomSignalMetadataWritable,
|
|
2406
2408
|
type XGuardLabelConfiguration,
|
|
@@ -649,16 +649,6 @@ export declare const invokeChatCompletionStepTemplate: <ThrowOnError extends boo
|
|
|
649
649
|
ThrowOnError,
|
|
650
650
|
'fields'
|
|
651
651
|
>;
|
|
652
|
-
export declare const invokeComfyNodepackSnapshotStepTemplate: <
|
|
653
|
-
ThrowOnError extends boolean = false,
|
|
654
|
-
>(
|
|
655
|
-
options?: Options<InvokeComfyNodepackSnapshotStepTemplateData, ThrowOnError>
|
|
656
|
-
) => import('./client/types.gen.js').RequestResult<
|
|
657
|
-
InvokeComfyNodepackSnapshotStepTemplateResponses,
|
|
658
|
-
InvokeComfyNodepackSnapshotStepTemplateErrors,
|
|
659
|
-
ThrowOnError,
|
|
660
|
-
'fields'
|
|
661
|
-
>;
|
|
662
652
|
/**
|
|
663
653
|
* Comfy workflows
|
|
664
654
|
*
|
|
@@ -672,6 +662,16 @@ export declare const invokeComfyStepTemplate: <ThrowOnError extends boolean = fa
|
|
|
672
662
|
ThrowOnError,
|
|
673
663
|
'fields'
|
|
674
664
|
>;
|
|
665
|
+
export declare const invokeComfyNodepackSnapshotStepTemplate: <
|
|
666
|
+
ThrowOnError extends boolean = false,
|
|
667
|
+
>(
|
|
668
|
+
options?: Options<InvokeComfyNodepackSnapshotStepTemplateData, ThrowOnError>
|
|
669
|
+
) => import('./client/types.gen.js').RequestResult<
|
|
670
|
+
InvokeComfyNodepackSnapshotStepTemplateResponses,
|
|
671
|
+
InvokeComfyNodepackSnapshotStepTemplateErrors,
|
|
672
|
+
ThrowOnError,
|
|
673
|
+
'fields'
|
|
674
|
+
>;
|
|
675
675
|
/**
|
|
676
676
|
* Compose Media
|
|
677
677
|
*
|
|
@@ -323,10 +323,15 @@ export const invokeChatCompletionStepTemplate = (options) => {
|
|
|
323
323
|
},
|
|
324
324
|
});
|
|
325
325
|
};
|
|
326
|
-
|
|
326
|
+
/**
|
|
327
|
+
* Comfy workflows
|
|
328
|
+
*
|
|
329
|
+
* Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
|
|
330
|
+
*/
|
|
331
|
+
export const invokeComfyStepTemplate = (options) => {
|
|
327
332
|
var _a;
|
|
328
333
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
329
|
-
url: '/v2/consumer/recipes/
|
|
334
|
+
url: '/v2/consumer/recipes/comfy',
|
|
330
335
|
...options,
|
|
331
336
|
headers: {
|
|
332
337
|
'Content-Type': 'application/json',
|
|
@@ -334,15 +339,10 @@ export const invokeComfyNodepackSnapshotStepTemplate = (options) => {
|
|
|
334
339
|
},
|
|
335
340
|
});
|
|
336
341
|
};
|
|
337
|
-
|
|
338
|
-
* Comfy workflows
|
|
339
|
-
*
|
|
340
|
-
* Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
|
|
341
|
-
*/
|
|
342
|
-
export const invokeComfyStepTemplate = (options) => {
|
|
342
|
+
export const invokeComfyNodepackSnapshotStepTemplate = (options) => {
|
|
343
343
|
var _a;
|
|
344
344
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
345
|
-
url: '/v2/consumer/recipes/
|
|
345
|
+
url: '/v2/consumer/recipes/comfyNodepackSnapshot',
|
|
346
346
|
...options,
|
|
347
347
|
headers: {
|
|
348
348
|
'Content-Type': 'application/json',
|
|
@@ -7629,6 +7629,10 @@ export type Flux3CreateFalImageGenInput = {
|
|
|
7629
7629
|
| '1:2';
|
|
7630
7630
|
enhancePrompt?: boolean;
|
|
7631
7631
|
safetyTolerance?: number;
|
|
7632
|
+
/**
|
|
7633
|
+
* FLUX 3.1 offers 1k, 2k and 4k.
|
|
7634
|
+
*/
|
|
7635
|
+
version?: '3' | '3.1';
|
|
7632
7636
|
};
|
|
7633
7637
|
export type Flux3EditFalImageGenInput = {
|
|
7634
7638
|
engine: 'fal';
|
|
@@ -7666,6 +7670,10 @@ export type Flux3EditFalImageGenInput = {
|
|
|
7666
7670
|
| '1:2';
|
|
7667
7671
|
enhancePrompt?: boolean;
|
|
7668
7672
|
safetyTolerance?: number;
|
|
7673
|
+
/**
|
|
7674
|
+
* FLUX 3.1 offers 1k, 2k and 4k.
|
|
7675
|
+
*/
|
|
7676
|
+
version?: '3' | '3.1';
|
|
7669
7677
|
/**
|
|
7670
7678
|
* One to ten ordered references, each at least 256 pixels per side and at most 4 MP.
|
|
7671
7679
|
*/
|
|
@@ -21173,6 +21181,10 @@ export type Workflow = {
|
|
|
21173
21181
|
*/
|
|
21174
21182
|
tier: WorkflowTier;
|
|
21175
21183
|
fund?: null | string;
|
|
21184
|
+
/**
|
|
21185
|
+
* What pays for a workflow. When unset, the workflow's fund pays if it has one, and otherwise the submitting user's Buzz.
|
|
21186
|
+
*/
|
|
21187
|
+
payment?: WorkflowPayment;
|
|
21176
21188
|
};
|
|
21177
21189
|
export type WorkflowCallback = {
|
|
21178
21190
|
url: string;
|
|
@@ -21287,6 +21299,12 @@ export type WorkflowEventStepDetails = {
|
|
|
21287
21299
|
output?: unknown;
|
|
21288
21300
|
cost?: null | number;
|
|
21289
21301
|
};
|
|
21302
|
+
/**
|
|
21303
|
+
* What pays for a workflow. When unset, the workflow's fund pays if it has one, and otherwise the submitting user's Buzz.
|
|
21304
|
+
*/
|
|
21305
|
+
export type WorkflowPayment = {
|
|
21306
|
+
$type: 'x402';
|
|
21307
|
+
} & X402Payment;
|
|
21290
21308
|
export declare const WorkflowStatus: {
|
|
21291
21309
|
readonly UNASSIGNED: 'unassigned';
|
|
21292
21310
|
readonly PREPARING: 'preparing';
|
|
@@ -21323,12 +21341,12 @@ export type WorkflowStep =
|
|
|
21323
21341
|
| ({
|
|
21324
21342
|
$type: 'chatCompletion';
|
|
21325
21343
|
} & ChatCompletionStep)
|
|
21326
|
-
| ({
|
|
21327
|
-
$type: 'comfyNodepackSnapshot';
|
|
21328
|
-
} & ComfyNodepackSnapshotStep)
|
|
21329
21344
|
| ({
|
|
21330
21345
|
$type: 'comfy';
|
|
21331
21346
|
} & ComfyStep)
|
|
21347
|
+
| ({
|
|
21348
|
+
$type: 'comfyNodepackSnapshot';
|
|
21349
|
+
} & ComfyNodepackSnapshotStep)
|
|
21332
21350
|
| ({
|
|
21333
21351
|
$type: 'composeMedia';
|
|
21334
21352
|
} & ComposeMediaStep)
|
|
@@ -21604,12 +21622,12 @@ export type WorkflowStepTemplate =
|
|
|
21604
21622
|
| ({
|
|
21605
21623
|
$type: 'chatCompletion';
|
|
21606
21624
|
} & ChatCompletionStepTemplate)
|
|
21607
|
-
| ({
|
|
21608
|
-
$type: 'comfyNodepackSnapshot';
|
|
21609
|
-
} & ComfyNodepackSnapshotStepTemplate)
|
|
21610
21625
|
| ({
|
|
21611
21626
|
$type: 'comfy';
|
|
21612
21627
|
} & ComfyStepTemplate)
|
|
21628
|
+
| ({
|
|
21629
|
+
$type: 'comfyNodepackSnapshot';
|
|
21630
|
+
} & ComfyNodepackSnapshotStepTemplate)
|
|
21613
21631
|
| ({
|
|
21614
21632
|
$type: 'composeMedia';
|
|
21615
21633
|
} & ComposeMediaStepTemplate)
|
|
@@ -21916,6 +21934,24 @@ export declare const WorkflowWaitUntil: {
|
|
|
21916
21934
|
* What a held read of a workflow waits for before it returns.
|
|
21917
21935
|
*/
|
|
21918
21936
|
export type WorkflowWaitUntil = (typeof WorkflowWaitUntil)[keyof typeof WorkflowWaitUntil];
|
|
21937
|
+
/**
|
|
21938
|
+
* An x402 payment a workflow is paid with instead of Buzz: held when the workflow is submitted, and charged what the
|
|
21939
|
+
* workflow cost, in the asset's atomic units at one per Buzz, once it ends.
|
|
21940
|
+
*/
|
|
21941
|
+
export type X402Payment = {
|
|
21942
|
+
$type: 'x402';
|
|
21943
|
+
network: string;
|
|
21944
|
+
asset: string;
|
|
21945
|
+
payer?: null | string;
|
|
21946
|
+
held: number;
|
|
21947
|
+
holdTransaction: string;
|
|
21948
|
+
charged?: null | number;
|
|
21949
|
+
chargeTransaction?: null | string;
|
|
21950
|
+
/**
|
|
21951
|
+
* Why the facilitator refused the charge; the hold then goes back to the payer when it expires.
|
|
21952
|
+
*/
|
|
21953
|
+
chargeError?: null | string;
|
|
21954
|
+
};
|
|
21919
21955
|
export type XGuardCustomSignalMetadata = {
|
|
21920
21956
|
name: string;
|
|
21921
21957
|
positiveSignals: {
|
|
@@ -29503,6 +29539,10 @@ export type Flux3CreateFalImageGenInputWritable = {
|
|
|
29503
29539
|
| StepReference;
|
|
29504
29540
|
enhancePrompt?: boolean | StepReference;
|
|
29505
29541
|
safetyTolerance?: number | StepReference;
|
|
29542
|
+
/**
|
|
29543
|
+
* FLUX 3.1 offers 1k, 2k and 4k.
|
|
29544
|
+
*/
|
|
29545
|
+
version?: '3' | '3.1' | StepReference;
|
|
29506
29546
|
};
|
|
29507
29547
|
export type Flux3EditFalImageGenInputWritable = {
|
|
29508
29548
|
engine: 'fal';
|
|
@@ -29541,6 +29581,10 @@ export type Flux3EditFalImageGenInputWritable = {
|
|
|
29541
29581
|
| StepReference;
|
|
29542
29582
|
enhancePrompt?: boolean | StepReference;
|
|
29543
29583
|
safetyTolerance?: number | StepReference;
|
|
29584
|
+
/**
|
|
29585
|
+
* FLUX 3.1 offers 1k, 2k and 4k.
|
|
29586
|
+
*/
|
|
29587
|
+
version?: '3' | '3.1' | StepReference;
|
|
29544
29588
|
/**
|
|
29545
29589
|
* One to ten ordered references, each at least 256 pixels per side and at most 4 MP.
|
|
29546
29590
|
*/
|
|
@@ -40455,6 +40499,10 @@ export type WorkflowWritable = {
|
|
|
40455
40499
|
*/
|
|
40456
40500
|
tier: WorkflowTier;
|
|
40457
40501
|
fund?: null | string;
|
|
40502
|
+
/**
|
|
40503
|
+
* What pays for a workflow. When unset, the workflow's fund pays if it has one, and otherwise the submitting user's Buzz.
|
|
40504
|
+
*/
|
|
40505
|
+
payment?: WorkflowPayment;
|
|
40458
40506
|
};
|
|
40459
40507
|
export type WorkflowCostWritable = {
|
|
40460
40508
|
/**
|
|
@@ -40522,12 +40570,12 @@ export type WorkflowStepWritable =
|
|
|
40522
40570
|
| ({
|
|
40523
40571
|
$type: 'chatCompletion';
|
|
40524
40572
|
} & ChatCompletionStepWritable)
|
|
40525
|
-
| ({
|
|
40526
|
-
$type: 'comfyNodepackSnapshot';
|
|
40527
|
-
} & ComfyNodepackSnapshotStepWritable)
|
|
40528
40573
|
| ({
|
|
40529
40574
|
$type: 'comfy';
|
|
40530
40575
|
} & ComfyStepWritable)
|
|
40576
|
+
| ({
|
|
40577
|
+
$type: 'comfyNodepackSnapshot';
|
|
40578
|
+
} & ComfyNodepackSnapshotStepWritable)
|
|
40531
40579
|
| ({
|
|
40532
40580
|
$type: 'composeMedia';
|
|
40533
40581
|
} & ComposeMediaStepWritable)
|
|
@@ -40753,12 +40801,12 @@ export type WorkflowStepTemplateWritable =
|
|
|
40753
40801
|
| ({
|
|
40754
40802
|
$type: 'chatCompletion';
|
|
40755
40803
|
} & ChatCompletionStepTemplateWritable)
|
|
40756
|
-
| ({
|
|
40757
|
-
$type: 'comfyNodepackSnapshot';
|
|
40758
|
-
} & ComfyNodepackSnapshotStepTemplateWritable)
|
|
40759
40804
|
| ({
|
|
40760
40805
|
$type: 'comfy';
|
|
40761
40806
|
} & ComfyStepTemplateWritable)
|
|
40807
|
+
| ({
|
|
40808
|
+
$type: 'comfyNodepackSnapshot';
|
|
40809
|
+
} & ComfyNodepackSnapshotStepTemplateWritable)
|
|
40762
40810
|
| ({
|
|
40763
40811
|
$type: 'composeMedia';
|
|
40764
40812
|
} & ComposeMediaStepTemplateWritable)
|
|
@@ -42646,12 +42694,8 @@ export type InvokeChatCompletionStepTemplateResponses = {
|
|
|
42646
42694
|
};
|
|
42647
42695
|
export type InvokeChatCompletionStepTemplateResponse =
|
|
42648
42696
|
InvokeChatCompletionStepTemplateResponses[keyof InvokeChatCompletionStepTemplateResponses];
|
|
42649
|
-
export type
|
|
42650
|
-
|
|
42651
|
-
* Installs ComfyUI custom nodepacks on a comfy image and captures the resolved install and editor metadata as
|
|
42652
|
-
* reusable blobs. Runs on a real worker so compiled deps match the fleet the consumer will run on.
|
|
42653
|
-
*/
|
|
42654
|
-
body?: ComfyNodepackSnapshotInputWritable;
|
|
42697
|
+
export type InvokeComfyStepTemplateData = {
|
|
42698
|
+
body?: ComfyInputWritable;
|
|
42655
42699
|
path?: never;
|
|
42656
42700
|
query?: {
|
|
42657
42701
|
experimental?: boolean;
|
|
@@ -42664,9 +42708,9 @@ export type InvokeComfyNodepackSnapshotStepTemplateData = {
|
|
|
42664
42708
|
tier?: WorkflowTier;
|
|
42665
42709
|
tags?: Array<string>;
|
|
42666
42710
|
};
|
|
42667
|
-
url: '/v2/consumer/recipes/
|
|
42711
|
+
url: '/v2/consumer/recipes/comfy';
|
|
42668
42712
|
};
|
|
42669
|
-
export type
|
|
42713
|
+
export type InvokeComfyStepTemplateErrors = {
|
|
42670
42714
|
/**
|
|
42671
42715
|
* Bad Request
|
|
42672
42716
|
*/
|
|
@@ -42680,19 +42724,22 @@ export type InvokeComfyNodepackSnapshotStepTemplateErrors = {
|
|
|
42680
42724
|
*/
|
|
42681
42725
|
403: ProblemDetails;
|
|
42682
42726
|
};
|
|
42683
|
-
export type
|
|
42684
|
-
|
|
42685
|
-
export type
|
|
42727
|
+
export type InvokeComfyStepTemplateError =
|
|
42728
|
+
InvokeComfyStepTemplateErrors[keyof InvokeComfyStepTemplateErrors];
|
|
42729
|
+
export type InvokeComfyStepTemplateResponses = {
|
|
42686
42730
|
/**
|
|
42687
|
-
*
|
|
42688
|
-
* blobs that consumers read directly from orchestrator blob storage.
|
|
42731
|
+
* OK
|
|
42689
42732
|
*/
|
|
42690
|
-
200:
|
|
42733
|
+
200: ComfyOutput;
|
|
42691
42734
|
};
|
|
42692
|
-
export type
|
|
42693
|
-
|
|
42694
|
-
export type
|
|
42695
|
-
|
|
42735
|
+
export type InvokeComfyStepTemplateResponse =
|
|
42736
|
+
InvokeComfyStepTemplateResponses[keyof InvokeComfyStepTemplateResponses];
|
|
42737
|
+
export type InvokeComfyNodepackSnapshotStepTemplateData = {
|
|
42738
|
+
/**
|
|
42739
|
+
* Installs ComfyUI custom nodepacks on a comfy image and captures the resolved install and editor metadata as
|
|
42740
|
+
* reusable blobs. Runs on a real worker so compiled deps match the fleet the consumer will run on.
|
|
42741
|
+
*/
|
|
42742
|
+
body?: ComfyNodepackSnapshotInputWritable;
|
|
42696
42743
|
path?: never;
|
|
42697
42744
|
query?: {
|
|
42698
42745
|
experimental?: boolean;
|
|
@@ -42705,9 +42752,9 @@ export type InvokeComfyStepTemplateData = {
|
|
|
42705
42752
|
tier?: WorkflowTier;
|
|
42706
42753
|
tags?: Array<string>;
|
|
42707
42754
|
};
|
|
42708
|
-
url: '/v2/consumer/recipes/
|
|
42755
|
+
url: '/v2/consumer/recipes/comfyNodepackSnapshot';
|
|
42709
42756
|
};
|
|
42710
|
-
export type
|
|
42757
|
+
export type InvokeComfyNodepackSnapshotStepTemplateErrors = {
|
|
42711
42758
|
/**
|
|
42712
42759
|
* Bad Request
|
|
42713
42760
|
*/
|
|
@@ -42721,16 +42768,17 @@ export type InvokeComfyStepTemplateErrors = {
|
|
|
42721
42768
|
*/
|
|
42722
42769
|
403: ProblemDetails;
|
|
42723
42770
|
};
|
|
42724
|
-
export type
|
|
42725
|
-
|
|
42726
|
-
export type
|
|
42771
|
+
export type InvokeComfyNodepackSnapshotStepTemplateError =
|
|
42772
|
+
InvokeComfyNodepackSnapshotStepTemplateErrors[keyof InvokeComfyNodepackSnapshotStepTemplateErrors];
|
|
42773
|
+
export type InvokeComfyNodepackSnapshotStepTemplateResponses = {
|
|
42727
42774
|
/**
|
|
42728
|
-
*
|
|
42775
|
+
* One result per installed pack, each carrying the captured install layer, full /object_info and web assets as
|
|
42776
|
+
* blobs that consumers read directly from orchestrator blob storage.
|
|
42729
42777
|
*/
|
|
42730
|
-
200:
|
|
42778
|
+
200: ComfyNodepackSnapshotOutput;
|
|
42731
42779
|
};
|
|
42732
|
-
export type
|
|
42733
|
-
|
|
42780
|
+
export type InvokeComfyNodepackSnapshotStepTemplateResponse =
|
|
42781
|
+
InvokeComfyNodepackSnapshotStepTemplateResponses[keyof InvokeComfyNodepackSnapshotStepTemplateResponses];
|
|
42734
42782
|
export type InvokeComposeMediaStepTemplateData = {
|
|
42735
42783
|
body?: ComposeMediaInputWritable;
|
|
42736
42784
|
path?: never;
|