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