@comfyorg/comfyui-frontend-types 1.48.0 → 1.48.2
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/index.d.ts +167 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { DialogPassThroughOptions } from 'primevue/dialog';
|
|
|
15
15
|
import { DialogPassThroughOptions as DialogPassThroughOptions_2 } from 'primevue';
|
|
16
16
|
import { FunctionalComponent } from 'vue';
|
|
17
17
|
import { HTMLAttributes } from 'vue';
|
|
18
|
-
import { IFuseOptions } from 'fuse.js';
|
|
19
18
|
import { InputSpec } from '@comfyorg/object-info-parser';
|
|
20
19
|
import { MethodOptions } from 'vue';
|
|
21
20
|
import { ModelFile as ModelFile_2 } from '../workflow/validation/schemas/workflowSchema';
|
|
@@ -1227,7 +1226,6 @@ export declare class ComfyApi extends EventTarget {
|
|
|
1227
1226
|
* @returns Copy of all server feature flags
|
|
1228
1227
|
*/
|
|
1229
1228
|
getServerFeatures(): Record<string, unknown>;
|
|
1230
|
-
getFuseOptions(): Promise<IFuseOptions<TemplateInfo> | null>;
|
|
1231
1229
|
}
|
|
1232
1230
|
|
|
1233
1231
|
export declare class ComfyApp {
|
|
@@ -1785,6 +1783,7 @@ export declare class ComfyApp {
|
|
|
1785
1783
|
* This is an experimental API and may be changed or removed in the future.
|
|
1786
1784
|
*/
|
|
1787
1785
|
onAuthUserLogout?(): Promise<void> | void;
|
|
1786
|
+
onNodeOutputsUpdated?(nodeOutputs: Record<NodeLocatorId, NodeExecutionOutput>): void;
|
|
1788
1787
|
[key: string]: unknown;
|
|
1789
1788
|
}
|
|
1790
1789
|
|
|
@@ -2727,6 +2726,14 @@ export declare class ComfyApp {
|
|
|
2727
2726
|
pt?: DialogPassThroughOptions;
|
|
2728
2727
|
closeOnEscape?: boolean;
|
|
2729
2728
|
dismissableMask?: boolean;
|
|
2729
|
+
/**
|
|
2730
|
+
* When `false`, the Reka dialog does not dismiss when focus leaves its
|
|
2731
|
+
* content. Set on container dialogs (e.g. Settings) that host nested dialogs,
|
|
2732
|
+
* where a nested dialog closing can move focus onto an ordinary app element
|
|
2733
|
+
* — a programmatic shift that must not be read as a dismiss. Escape and
|
|
2734
|
+
* outside-pointer dismissal are unaffected. Defaults to `true`.
|
|
2735
|
+
*/
|
|
2736
|
+
dismissOnFocusOutside?: boolean;
|
|
2730
2737
|
unstyled?: boolean;
|
|
2731
2738
|
headless?: boolean;
|
|
2732
2739
|
renderer?: DialogRenderer;
|
|
@@ -8030,6 +8037,8 @@ export declare class ComfyApp {
|
|
|
8030
8037
|
readonly __brand: 'NodeExecutionId';
|
|
8031
8038
|
};
|
|
8032
8039
|
|
|
8040
|
+
declare type NodeExecutionOutput = z.infer<typeof zOutputs>;
|
|
8041
|
+
|
|
8033
8042
|
export declare type NodeId = string & {
|
|
8034
8043
|
readonly __brand: 'NodeId';
|
|
8035
8044
|
};
|
|
@@ -9892,6 +9901,7 @@ export declare class ComfyApp {
|
|
|
9892
9901
|
position?: "left" | "top" | "right" | "bottom" | "center" | "topleft" | "topright" | "bottomleft" | "bottomright";
|
|
9893
9902
|
closeOnEscape: boolean;
|
|
9894
9903
|
dismissableMask: boolean;
|
|
9904
|
+
dismissOnFocusOutside?: boolean;
|
|
9895
9905
|
unstyled?: boolean;
|
|
9896
9906
|
headless?: boolean;
|
|
9897
9907
|
renderer: "primevue" | "reka";
|
|
@@ -48407,6 +48417,161 @@ export declare class ComfyApp {
|
|
|
48407
48417
|
id?: string | undefined;
|
|
48408
48418
|
}>;
|
|
48409
48419
|
|
|
48420
|
+
declare const zOutputs: z.ZodObject<{
|
|
48421
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48422
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48423
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48424
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48425
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48426
|
+
}, "strip", z.ZodTypeAny, {
|
|
48427
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48428
|
+
filename?: string | undefined;
|
|
48429
|
+
display_name?: string | undefined;
|
|
48430
|
+
subfolder?: string | undefined;
|
|
48431
|
+
}, {
|
|
48432
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48433
|
+
filename?: string | undefined;
|
|
48434
|
+
display_name?: string | undefined;
|
|
48435
|
+
subfolder?: string | undefined;
|
|
48436
|
+
}>, "many">>;
|
|
48437
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48438
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48439
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48440
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48441
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48442
|
+
}, "strip", z.ZodTypeAny, {
|
|
48443
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48444
|
+
filename?: string | undefined;
|
|
48445
|
+
display_name?: string | undefined;
|
|
48446
|
+
subfolder?: string | undefined;
|
|
48447
|
+
}, {
|
|
48448
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48449
|
+
filename?: string | undefined;
|
|
48450
|
+
display_name?: string | undefined;
|
|
48451
|
+
subfolder?: string | undefined;
|
|
48452
|
+
}>, "many">>;
|
|
48453
|
+
video: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48454
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48455
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48456
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48457
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48458
|
+
}, "strip", z.ZodTypeAny, {
|
|
48459
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48460
|
+
filename?: string | undefined;
|
|
48461
|
+
display_name?: string | undefined;
|
|
48462
|
+
subfolder?: string | undefined;
|
|
48463
|
+
}, {
|
|
48464
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48465
|
+
filename?: string | undefined;
|
|
48466
|
+
display_name?: string | undefined;
|
|
48467
|
+
subfolder?: string | undefined;
|
|
48468
|
+
}>, "many">>;
|
|
48469
|
+
animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
|
|
48470
|
+
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
48471
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
48472
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48473
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48474
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48475
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48476
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48477
|
+
}, "strip", z.ZodTypeAny, {
|
|
48478
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48479
|
+
filename?: string | undefined;
|
|
48480
|
+
display_name?: string | undefined;
|
|
48481
|
+
subfolder?: string | undefined;
|
|
48482
|
+
}, {
|
|
48483
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48484
|
+
filename?: string | undefined;
|
|
48485
|
+
display_name?: string | undefined;
|
|
48486
|
+
subfolder?: string | undefined;
|
|
48487
|
+
}>, "many">>;
|
|
48488
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48489
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48490
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48491
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48492
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48493
|
+
}, "strip", z.ZodTypeAny, {
|
|
48494
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48495
|
+
filename?: string | undefined;
|
|
48496
|
+
display_name?: string | undefined;
|
|
48497
|
+
subfolder?: string | undefined;
|
|
48498
|
+
}, {
|
|
48499
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48500
|
+
filename?: string | undefined;
|
|
48501
|
+
display_name?: string | undefined;
|
|
48502
|
+
subfolder?: string | undefined;
|
|
48503
|
+
}>, "many">>;
|
|
48504
|
+
video: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48505
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48506
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48507
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48508
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48509
|
+
}, "strip", z.ZodTypeAny, {
|
|
48510
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48511
|
+
filename?: string | undefined;
|
|
48512
|
+
display_name?: string | undefined;
|
|
48513
|
+
subfolder?: string | undefined;
|
|
48514
|
+
}, {
|
|
48515
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48516
|
+
filename?: string | undefined;
|
|
48517
|
+
display_name?: string | undefined;
|
|
48518
|
+
subfolder?: string | undefined;
|
|
48519
|
+
}>, "many">>;
|
|
48520
|
+
animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
|
|
48521
|
+
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
48522
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
48523
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48524
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48525
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48526
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48527
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48528
|
+
}, "strip", z.ZodTypeAny, {
|
|
48529
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48530
|
+
filename?: string | undefined;
|
|
48531
|
+
display_name?: string | undefined;
|
|
48532
|
+
subfolder?: string | undefined;
|
|
48533
|
+
}, {
|
|
48534
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48535
|
+
filename?: string | undefined;
|
|
48536
|
+
display_name?: string | undefined;
|
|
48537
|
+
subfolder?: string | undefined;
|
|
48538
|
+
}>, "many">>;
|
|
48539
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48540
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48541
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48542
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48543
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48544
|
+
}, "strip", z.ZodTypeAny, {
|
|
48545
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48546
|
+
filename?: string | undefined;
|
|
48547
|
+
display_name?: string | undefined;
|
|
48548
|
+
subfolder?: string | undefined;
|
|
48549
|
+
}, {
|
|
48550
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48551
|
+
filename?: string | undefined;
|
|
48552
|
+
display_name?: string | undefined;
|
|
48553
|
+
subfolder?: string | undefined;
|
|
48554
|
+
}>, "many">>;
|
|
48555
|
+
video: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48556
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
48557
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
48558
|
+
type: z.ZodOptional<z.ZodEnum<["input", "output", "temp"]>>;
|
|
48559
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
48560
|
+
}, "strip", z.ZodTypeAny, {
|
|
48561
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48562
|
+
filename?: string | undefined;
|
|
48563
|
+
display_name?: string | undefined;
|
|
48564
|
+
subfolder?: string | undefined;
|
|
48565
|
+
}, {
|
|
48566
|
+
type?: "input" | "output" | "temp" | undefined;
|
|
48567
|
+
filename?: string | undefined;
|
|
48568
|
+
display_name?: string | undefined;
|
|
48569
|
+
subfolder?: string | undefined;
|
|
48570
|
+
}>, "many">>;
|
|
48571
|
+
animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
|
|
48572
|
+
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
48573
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
48574
|
+
|
|
48410
48575
|
declare const zPreviewMethod: z.ZodEnum<["default", "none", "auto", "latent2rgb", "taesd"]>;
|
|
48411
48576
|
|
|
48412
48577
|
declare const zProgressStateWsMessage: z.ZodObject<{
|