@comfyorg/comfyui-frontend-types 1.5.0 → 1.5.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 +392 -16
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -15,8 +15,43 @@ declare interface AboutPageBadge {
|
|
|
15
15
|
|
|
16
16
|
declare function addStylesheet(urlOrFile: string, relativeTo?: string): Promise<void>;
|
|
17
17
|
|
|
18
|
+
/** Dictionary of all api calls */
|
|
19
|
+
declare interface ApiCalls extends BackendApiCalls, FrontendApiCalls {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Dictionary of API events: `[name]: CustomEvent<Type>` */
|
|
23
|
+
declare type ApiEvents = AsCustomEvents<ApiEventTypes>;
|
|
24
|
+
|
|
25
|
+
/** Dictionary of types used in the detail for a custom event */
|
|
26
|
+
declare type ApiEventTypes = ApiToEventType<ApiCalls>;
|
|
27
|
+
|
|
28
|
+
/** Handles differing event and API signatures. */
|
|
29
|
+
declare type ApiToEventType<T = ApiCalls> = {
|
|
30
|
+
[K in keyof T]: K extends 'status' ? StatusWsMessageStatus : K extends 'executing' ? NodeId : T[K];
|
|
31
|
+
};
|
|
32
|
+
|
|
18
33
|
declare function applyTextReplacements(app: ComfyApp, value: string): string;
|
|
19
34
|
|
|
35
|
+
/** Wraps all properties in {@link CustomEvent}. */
|
|
36
|
+
declare type AsCustomEvents<T> = {
|
|
37
|
+
readonly [K in keyof T]: CustomEvent<T[K]>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** Dictionary of calls originating from ComfyUI core */
|
|
41
|
+
declare interface BackendApiCalls {
|
|
42
|
+
progress: ProgressWsMessage;
|
|
43
|
+
executing: ExecutingWsMessage;
|
|
44
|
+
executed: ExecutedWsMessage;
|
|
45
|
+
status: StatusWsMessage;
|
|
46
|
+
execution_start: ExecutionStartWsMessage;
|
|
47
|
+
execution_success: never;
|
|
48
|
+
execution_error: ExecutionErrorWsMessage;
|
|
49
|
+
execution_cached: never;
|
|
50
|
+
logs: never;
|
|
51
|
+
/** Mr Blob Preview, I presume? */
|
|
52
|
+
b_preview: Blob;
|
|
53
|
+
}
|
|
54
|
+
|
|
20
55
|
declare interface BaseBottomPanelExtension {
|
|
21
56
|
id: string;
|
|
22
57
|
title: string;
|
|
@@ -112,6 +147,12 @@ declare type Clipspace = {
|
|
|
112
147
|
img_paste_mode: string;
|
|
113
148
|
};
|
|
114
149
|
|
|
150
|
+
/** EventTarget typing has no generic capability. This interface enables tsc strict. */
|
|
151
|
+
export declare interface ComfyApi extends EventTarget {
|
|
152
|
+
addEventListener<TEvent extends keyof ApiEvents>(type: TEvent, callback: ((event: ApiEvents[TEvent]) => void) | null, options?: AddEventListenerOptions | boolean): void;
|
|
153
|
+
removeEventListener<TEvent extends keyof ApiEvents>(type: TEvent, callback: ((event: ApiEvents[TEvent]) => void) | null, options?: EventListenerOptions | boolean): void;
|
|
154
|
+
}
|
|
155
|
+
|
|
115
156
|
export declare class ComfyApi extends EventTarget {
|
|
116
157
|
#private;
|
|
117
158
|
api_host: string;
|
|
@@ -124,6 +165,9 @@ export declare class ComfyApi extends EventTarget {
|
|
|
124
165
|
* The current client id from websocket status updates.
|
|
125
166
|
*/
|
|
126
167
|
clientId?: string;
|
|
168
|
+
/**
|
|
169
|
+
* The current user id.
|
|
170
|
+
*/
|
|
127
171
|
user: string;
|
|
128
172
|
socket: WebSocket | null;
|
|
129
173
|
reportedUnknownMessageTypes: Set<string>;
|
|
@@ -132,7 +176,16 @@ export declare class ComfyApi extends EventTarget {
|
|
|
132
176
|
apiURL(route: string): string;
|
|
133
177
|
fileURL(route: string): string;
|
|
134
178
|
fetchApi(route: string, options?: RequestInit): Promise<Response>;
|
|
135
|
-
|
|
179
|
+
/**
|
|
180
|
+
* Dispatches a custom event.
|
|
181
|
+
* Provides type safety for the contravariance issue with EventTarget (last checked TS 5.6).
|
|
182
|
+
* @param type The type of event to emit
|
|
183
|
+
* @param detail The detail property used for a custom event ({@link CustomEventInit.detail})
|
|
184
|
+
*/
|
|
185
|
+
dispatchCustomEvent<T extends SimpleApiEvents>(type: T): boolean;
|
|
186
|
+
dispatchCustomEvent<T extends ComplexApiEvents>(type: T, detail: ApiEventTypes[T] | null): boolean;
|
|
187
|
+
/** @deprecated Use {@link dispatchCustomEvent}. */
|
|
188
|
+
dispatchEvent(event: never): boolean;
|
|
136
189
|
/**
|
|
137
190
|
* Initialises sockets and realtime updates
|
|
138
191
|
*/
|
|
@@ -341,16 +394,16 @@ export declare class ComfyApp {
|
|
|
341
394
|
canvasEl: HTMLCanvasElement;
|
|
342
395
|
zoom_drag_start: [number, number, number] | null;
|
|
343
396
|
lastNodeErrors: any[] | null;
|
|
397
|
+
/** @type {ExecutionErrorWsMessage} */
|
|
344
398
|
lastExecutionError: {
|
|
345
|
-
node_id
|
|
399
|
+
node_id?: NodeId;
|
|
346
400
|
} | null;
|
|
401
|
+
/** @type {ProgressWsMessage} */
|
|
347
402
|
progress: {
|
|
348
|
-
value
|
|
349
|
-
max
|
|
403
|
+
value?: number;
|
|
404
|
+
max?: number;
|
|
350
405
|
} | null;
|
|
351
406
|
configuringGraph: boolean;
|
|
352
|
-
isNewUserSession: boolean;
|
|
353
|
-
storageLocation: StorageLocation;
|
|
354
407
|
ctx: CanvasRenderingContext2D;
|
|
355
408
|
bodyTop: HTMLElement;
|
|
356
409
|
bodyLeft: HTMLElement;
|
|
@@ -372,6 +425,15 @@ export declare class ComfyApp {
|
|
|
372
425
|
* @deprecated Use useWidgetStore().widgets instead
|
|
373
426
|
*/
|
|
374
427
|
get widgets(): Record<string, ComfyWidgetConstructor>;
|
|
428
|
+
/**
|
|
429
|
+
* @deprecated storageLocation is always 'server' since
|
|
430
|
+
* https://github.com/comfyanonymous/ComfyUI/commit/53c8a99e6c00b5e20425100f6680cd9ea2652218
|
|
431
|
+
*/
|
|
432
|
+
get storageLocation(): string;
|
|
433
|
+
/**
|
|
434
|
+
* @deprecated storage migration is no longer needed.
|
|
435
|
+
*/
|
|
436
|
+
get isNewUserSession(): boolean;
|
|
375
437
|
constructor();
|
|
376
438
|
get nodeOutputs(): Record<string, any>;
|
|
377
439
|
set nodeOutputs(value: Record<string, any>);
|
|
@@ -771,7 +833,6 @@ export declare class ComfyApp {
|
|
|
771
833
|
get settings(): Setting[];
|
|
772
834
|
private tryMigrateDeprecatedValue;
|
|
773
835
|
load(): Promise<void>;
|
|
774
|
-
getId(id: string): string;
|
|
775
836
|
getSettingValue<K extends keyof Settings>(id: K, defaultValue?: Settings[K]): Settings[K];
|
|
776
837
|
getSettingDefaultValue(id: string): any;
|
|
777
838
|
setSettingValueAsync<K extends keyof Settings>(id: K, value: Settings[K]): Promise<void>;
|
|
@@ -816,7 +877,7 @@ export declare class ComfyApp {
|
|
|
816
877
|
loadFile: () => void;
|
|
817
878
|
constructor(app: any);
|
|
818
879
|
setup(containerElement: HTMLElement): void;
|
|
819
|
-
setStatus(status:
|
|
880
|
+
setStatus(status: StatusWsMessageStatus | null): void;
|
|
820
881
|
}
|
|
821
882
|
|
|
822
883
|
declare type ComfyWidgetConstructor = (node: LGraphNode, inputName: string, inputData: InputSpec, app?: ComfyApp, widgetName?: string) => {
|
|
@@ -876,6 +937,9 @@ export declare class ComfyApp {
|
|
|
876
937
|
execute(command: string, errorHandler?: (error: any) => void): void;
|
|
877
938
|
}
|
|
878
939
|
|
|
940
|
+
/** Keys (names) of API events that pass a {@link CustomEvent} `detail` object. */
|
|
941
|
+
declare type ComplexApiEvents = keyof NeverNever<ApiEventTypes>;
|
|
942
|
+
|
|
879
943
|
declare type CustomBottomPanelExtension = BaseBottomPanelExtension & CustomExtension;
|
|
880
944
|
|
|
881
945
|
declare interface CustomExtension {
|
|
@@ -921,6 +985,14 @@ export declare class ComfyApp {
|
|
|
921
985
|
|
|
922
986
|
declare type EmbeddingsResponse = z.infer<typeof zEmbeddingsResponse>;
|
|
923
987
|
|
|
988
|
+
declare type ExecutedWsMessage = z.infer<typeof zExecutedWsMessage>;
|
|
989
|
+
|
|
990
|
+
declare type ExecutingWsMessage = z.infer<typeof zExecutingWsMessage>;
|
|
991
|
+
|
|
992
|
+
declare type ExecutionErrorWsMessage = z.infer<typeof zExecutionErrorWsMessage>;
|
|
993
|
+
|
|
994
|
+
declare type ExecutionStartWsMessage = z.infer<typeof zExecutionStartWsMessage>;
|
|
995
|
+
|
|
924
996
|
declare interface ExtensionManager {
|
|
925
997
|
registerSidebarTab(tab: SidebarTabExtension): void;
|
|
926
998
|
unregisterSidebarTab(id: string): void;
|
|
@@ -946,6 +1018,18 @@ export declare class ComfyApp {
|
|
|
946
1018
|
options?: Array<string | SettingOption> | ((value: any) => SettingOption[]);
|
|
947
1019
|
}
|
|
948
1020
|
|
|
1021
|
+
/** Dictionary of Frontend-generated API calls */
|
|
1022
|
+
declare interface FrontendApiCalls {
|
|
1023
|
+
graphChanged: ComfyWorkflowJSON;
|
|
1024
|
+
promptQueued: {
|
|
1025
|
+
number: number;
|
|
1026
|
+
batchCount: number;
|
|
1027
|
+
};
|
|
1028
|
+
graphCleared: never;
|
|
1029
|
+
reconnecting: never;
|
|
1030
|
+
reconnected: never;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
949
1033
|
declare type HistoryTaskItem = z.infer<typeof zHistoryTaskItem>;
|
|
950
1034
|
|
|
951
1035
|
declare type InputSpec = z.infer<typeof zInputSpec>;
|
|
@@ -990,6 +1074,11 @@ export declare class ComfyApp {
|
|
|
990
1074
|
};
|
|
991
1075
|
};
|
|
992
1076
|
|
|
1077
|
+
/** {@link Omit} all properties that evaluate to `never`. */
|
|
1078
|
+
declare type NeverNever<T> = {
|
|
1079
|
+
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
1080
|
+
};
|
|
1081
|
+
|
|
993
1082
|
declare type NodeId = z.infer<typeof zNodeId>;
|
|
994
1083
|
|
|
995
1084
|
declare type NodeSource = {
|
|
@@ -1007,6 +1096,13 @@ export declare class ComfyApp {
|
|
|
1007
1096
|
|
|
1008
1097
|
declare type PendingTaskItem = z.infer<typeof zPendingTaskItem>;
|
|
1009
1098
|
|
|
1099
|
+
/** {@link Pick} only properties that evaluate to `never`. */
|
|
1100
|
+
declare type PickNevers<T> = {
|
|
1101
|
+
[K in keyof T as T[K] extends never ? K : never]: T[K];
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
declare type ProgressWsMessage = z.infer<typeof zProgressWsMessage>;
|
|
1105
|
+
|
|
1010
1106
|
declare type PromptResponse = z.infer<typeof zPromptResponse>;
|
|
1011
1107
|
|
|
1012
1108
|
declare type RunningTaskItem = z.infer<typeof zRunningTaskItem>;
|
|
@@ -1045,7 +1141,12 @@ export declare class ComfyApp {
|
|
|
1045
1141
|
|
|
1046
1142
|
declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
|
|
1047
1143
|
|
|
1048
|
-
|
|
1144
|
+
/** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
|
|
1145
|
+
declare type SimpleApiEvents = keyof PickNevers<ApiEventTypes>;
|
|
1146
|
+
|
|
1147
|
+
declare type StatusWsMessage = z.infer<typeof zStatusWsMessage>;
|
|
1148
|
+
|
|
1149
|
+
declare type StatusWsMessageStatus = z.infer<typeof zStatusWsMessageStatus>;
|
|
1049
1150
|
|
|
1050
1151
|
declare type SystemStats = z.infer<typeof zSystemStats>;
|
|
1051
1152
|
|
|
@@ -7811,6 +7912,195 @@ export declare class ComfyApp {
|
|
|
7811
7912
|
|
|
7812
7913
|
declare const zEmbeddingsResponse: z.ZodArray<z.ZodString, "many">;
|
|
7813
7914
|
|
|
7915
|
+
declare const zExecutedWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
7916
|
+
node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7917
|
+
display_node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7918
|
+
prompt_id: z.ZodString;
|
|
7919
|
+
}, {
|
|
7920
|
+
output: z.ZodObject<{
|
|
7921
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7922
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7923
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7924
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7925
|
+
}, "strip", z.ZodTypeAny, {
|
|
7926
|
+
type?: string;
|
|
7927
|
+
filename?: string;
|
|
7928
|
+
subfolder?: string;
|
|
7929
|
+
}, {
|
|
7930
|
+
type?: string;
|
|
7931
|
+
filename?: string;
|
|
7932
|
+
subfolder?: string;
|
|
7933
|
+
}>, "many">>;
|
|
7934
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7935
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7936
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7937
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7938
|
+
}, "strip", z.ZodTypeAny, {
|
|
7939
|
+
type?: string;
|
|
7940
|
+
filename?: string;
|
|
7941
|
+
subfolder?: string;
|
|
7942
|
+
}, {
|
|
7943
|
+
type?: string;
|
|
7944
|
+
filename?: string;
|
|
7945
|
+
subfolder?: string;
|
|
7946
|
+
}>, "many">>;
|
|
7947
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
7948
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7949
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7950
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7951
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7952
|
+
}, "strip", z.ZodTypeAny, {
|
|
7953
|
+
type?: string;
|
|
7954
|
+
filename?: string;
|
|
7955
|
+
subfolder?: string;
|
|
7956
|
+
}, {
|
|
7957
|
+
type?: string;
|
|
7958
|
+
filename?: string;
|
|
7959
|
+
subfolder?: string;
|
|
7960
|
+
}>, "many">>;
|
|
7961
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7962
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7963
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7964
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7965
|
+
}, "strip", z.ZodTypeAny, {
|
|
7966
|
+
type?: string;
|
|
7967
|
+
filename?: string;
|
|
7968
|
+
subfolder?: string;
|
|
7969
|
+
}, {
|
|
7970
|
+
type?: string;
|
|
7971
|
+
filename?: string;
|
|
7972
|
+
subfolder?: string;
|
|
7973
|
+
}>, "many">>;
|
|
7974
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
7975
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7976
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7977
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7978
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7979
|
+
}, "strip", z.ZodTypeAny, {
|
|
7980
|
+
type?: string;
|
|
7981
|
+
filename?: string;
|
|
7982
|
+
subfolder?: string;
|
|
7983
|
+
}, {
|
|
7984
|
+
type?: string;
|
|
7985
|
+
filename?: string;
|
|
7986
|
+
subfolder?: string;
|
|
7987
|
+
}>, "many">>;
|
|
7988
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7989
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7990
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7991
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7992
|
+
}, "strip", z.ZodTypeAny, {
|
|
7993
|
+
type?: string;
|
|
7994
|
+
filename?: string;
|
|
7995
|
+
subfolder?: string;
|
|
7996
|
+
}, {
|
|
7997
|
+
type?: string;
|
|
7998
|
+
filename?: string;
|
|
7999
|
+
subfolder?: string;
|
|
8000
|
+
}>, "many">>;
|
|
8001
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
8002
|
+
merge: z.ZodOptional<z.ZodBoolean>;
|
|
8003
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8004
|
+
prompt_id?: string;
|
|
8005
|
+
node?: string | number;
|
|
8006
|
+
display_node?: string | number;
|
|
8007
|
+
output?: {
|
|
8008
|
+
audio?: {
|
|
8009
|
+
type?: string;
|
|
8010
|
+
filename?: string;
|
|
8011
|
+
subfolder?: string;
|
|
8012
|
+
}[];
|
|
8013
|
+
images?: {
|
|
8014
|
+
type?: string;
|
|
8015
|
+
filename?: string;
|
|
8016
|
+
subfolder?: string;
|
|
8017
|
+
}[];
|
|
8018
|
+
} & {
|
|
8019
|
+
[k: string]: unknown;
|
|
8020
|
+
};
|
|
8021
|
+
merge?: boolean;
|
|
8022
|
+
}, {
|
|
8023
|
+
prompt_id?: string;
|
|
8024
|
+
node?: string | number;
|
|
8025
|
+
display_node?: string | number;
|
|
8026
|
+
output?: {
|
|
8027
|
+
audio?: {
|
|
8028
|
+
type?: string;
|
|
8029
|
+
filename?: string;
|
|
8030
|
+
subfolder?: string;
|
|
8031
|
+
}[];
|
|
8032
|
+
images?: {
|
|
8033
|
+
type?: string;
|
|
8034
|
+
filename?: string;
|
|
8035
|
+
subfolder?: string;
|
|
8036
|
+
}[];
|
|
8037
|
+
} & {
|
|
8038
|
+
[k: string]: unknown;
|
|
8039
|
+
};
|
|
8040
|
+
merge?: boolean;
|
|
8041
|
+
}>;
|
|
8042
|
+
|
|
8043
|
+
declare const zExecutingWsMessage: z.ZodObject<{
|
|
8044
|
+
node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8045
|
+
display_node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8046
|
+
prompt_id: z.ZodString;
|
|
8047
|
+
}, "strip", z.ZodTypeAny, {
|
|
8048
|
+
prompt_id?: string;
|
|
8049
|
+
node?: string | number;
|
|
8050
|
+
display_node?: string | number;
|
|
8051
|
+
}, {
|
|
8052
|
+
prompt_id?: string;
|
|
8053
|
+
node?: string | number;
|
|
8054
|
+
display_node?: string | number;
|
|
8055
|
+
}>;
|
|
8056
|
+
|
|
8057
|
+
declare const zExecutionErrorWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
8058
|
+
prompt_id: z.ZodString;
|
|
8059
|
+
timestamp: z.ZodNumber;
|
|
8060
|
+
}, {
|
|
8061
|
+
node_id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8062
|
+
node_type: z.ZodString;
|
|
8063
|
+
executed: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
8064
|
+
exception_message: z.ZodString;
|
|
8065
|
+
exception_type: z.ZodString;
|
|
8066
|
+
traceback: z.ZodArray<z.ZodString, "many">;
|
|
8067
|
+
current_inputs: z.ZodAny;
|
|
8068
|
+
current_outputs: z.ZodAny;
|
|
8069
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8070
|
+
prompt_id?: string;
|
|
8071
|
+
timestamp?: number;
|
|
8072
|
+
node_id?: string | number;
|
|
8073
|
+
node_type?: string;
|
|
8074
|
+
executed?: (string | number)[];
|
|
8075
|
+
exception_message?: string;
|
|
8076
|
+
exception_type?: string;
|
|
8077
|
+
traceback?: string[];
|
|
8078
|
+
current_inputs?: any;
|
|
8079
|
+
current_outputs?: any;
|
|
8080
|
+
}, {
|
|
8081
|
+
prompt_id?: string;
|
|
8082
|
+
timestamp?: number;
|
|
8083
|
+
node_id?: string | number;
|
|
8084
|
+
node_type?: string;
|
|
8085
|
+
executed?: (string | number)[];
|
|
8086
|
+
exception_message?: string;
|
|
8087
|
+
exception_type?: string;
|
|
8088
|
+
traceback?: string[];
|
|
8089
|
+
current_inputs?: any;
|
|
8090
|
+
current_outputs?: any;
|
|
8091
|
+
}>;
|
|
8092
|
+
|
|
8093
|
+
declare const zExecutionStartWsMessage: z.ZodObject<{
|
|
8094
|
+
prompt_id: z.ZodString;
|
|
8095
|
+
timestamp: z.ZodNumber;
|
|
8096
|
+
}, "strip", z.ZodTypeAny, {
|
|
8097
|
+
prompt_id?: string;
|
|
8098
|
+
timestamp?: number;
|
|
8099
|
+
}, {
|
|
8100
|
+
prompt_id?: string;
|
|
8101
|
+
timestamp?: number;
|
|
8102
|
+
}>;
|
|
8103
|
+
|
|
7814
8104
|
declare const zExtensionsResponse: z.ZodArray<z.ZodString, "many">;
|
|
7815
8105
|
|
|
7816
8106
|
declare const zHistoryTaskItem: z.ZodObject<{
|
|
@@ -23127,6 +23417,23 @@ export declare class ComfyApp {
|
|
|
23127
23417
|
}, (string | number)[], ...unknown[]];
|
|
23128
23418
|
}>;
|
|
23129
23419
|
|
|
23420
|
+
declare const zProgressWsMessage: z.ZodObject<{
|
|
23421
|
+
value: z.ZodNumber;
|
|
23422
|
+
max: z.ZodNumber;
|
|
23423
|
+
prompt_id: z.ZodString;
|
|
23424
|
+
node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
23425
|
+
}, "strip", z.ZodTypeAny, {
|
|
23426
|
+
value?: number;
|
|
23427
|
+
max?: number;
|
|
23428
|
+
prompt_id?: string;
|
|
23429
|
+
node?: string | number;
|
|
23430
|
+
}, {
|
|
23431
|
+
value?: number;
|
|
23432
|
+
max?: number;
|
|
23433
|
+
prompt_id?: string;
|
|
23434
|
+
node?: string | number;
|
|
23435
|
+
}>;
|
|
23436
|
+
|
|
23130
23437
|
declare const zPromptResponse: z.ZodObject<{
|
|
23131
23438
|
node_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23132
23439
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
@@ -30587,6 +30894,7 @@ export declare class ComfyApp {
|
|
|
30587
30894
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30588
30895
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30589
30896
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30897
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30590
30898
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30591
30899
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30592
30900
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30612,6 +30920,7 @@ export declare class ComfyApp {
|
|
|
30612
30920
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30613
30921
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30614
30922
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30923
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30615
30924
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30616
30925
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30617
30926
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30637,6 +30946,7 @@ export declare class ComfyApp {
|
|
|
30637
30946
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30638
30947
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30639
30948
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30949
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30640
30950
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30641
30951
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30642
30952
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30795,6 +31105,7 @@ export declare class ComfyApp {
|
|
|
30795
31105
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30796
31106
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30797
31107
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31108
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30798
31109
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30799
31110
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30800
31111
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30820,6 +31131,7 @@ export declare class ComfyApp {
|
|
|
30820
31131
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30821
31132
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30822
31133
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31134
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30823
31135
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30824
31136
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30825
31137
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30845,6 +31157,7 @@ export declare class ComfyApp {
|
|
|
30845
31157
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30846
31158
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30847
31159
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31160
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30848
31161
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30849
31162
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30850
31163
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31003,6 +31316,7 @@ export declare class ComfyApp {
|
|
|
31003
31316
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31004
31317
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31005
31318
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31319
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31006
31320
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31007
31321
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31008
31322
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31028,6 +31342,7 @@ export declare class ComfyApp {
|
|
|
31028
31342
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31029
31343
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31030
31344
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31345
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31031
31346
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31032
31347
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31033
31348
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31053,6 +31368,7 @@ export declare class ComfyApp {
|
|
|
31053
31368
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31054
31369
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31055
31370
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31371
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31056
31372
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31057
31373
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31058
31374
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31165,6 +31481,7 @@ export declare class ComfyApp {
|
|
|
31165
31481
|
NODE_DEFAULT_SHAPE?: string;
|
|
31166
31482
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31167
31483
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31484
|
+
NODE_ERROR_COLOUR?: string;
|
|
31168
31485
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31169
31486
|
DEFAULT_GROUP_FONT?: number;
|
|
31170
31487
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31247,6 +31564,7 @@ export declare class ComfyApp {
|
|
|
31247
31564
|
NODE_DEFAULT_SHAPE?: string;
|
|
31248
31565
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31249
31566
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31567
|
+
NODE_ERROR_COLOUR?: string;
|
|
31250
31568
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31251
31569
|
DEFAULT_GROUP_FONT?: number;
|
|
31252
31570
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31436,6 +31754,7 @@ export declare class ComfyApp {
|
|
|
31436
31754
|
'Comfy.Node.SnapHighlightsNode': z.ZodBoolean;
|
|
31437
31755
|
'Comfy.Server.ServerConfigValues': z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
31438
31756
|
'Comfy.Server.LaunchArgs': z.ZodRecord<z.ZodString, z.ZodString>;
|
|
31757
|
+
'LiteGraph.Canvas.MaximumFps': z.ZodNumber;
|
|
31439
31758
|
}, "strip", z.ZodTypeAny, {
|
|
31440
31759
|
'Comfy.ColorPalette'?: string;
|
|
31441
31760
|
'Comfy.CustomColorPalettes'?: Record<string, {
|
|
@@ -31485,6 +31804,7 @@ export declare class ComfyApp {
|
|
|
31485
31804
|
NODE_DEFAULT_SHAPE?: string;
|
|
31486
31805
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31487
31806
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31807
|
+
NODE_ERROR_COLOUR?: string;
|
|
31488
31808
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31489
31809
|
DEFAULT_GROUP_FONT?: number;
|
|
31490
31810
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31604,6 +31924,7 @@ export declare class ComfyApp {
|
|
|
31604
31924
|
'Comfy.Node.SnapHighlightsNode'?: boolean;
|
|
31605
31925
|
'Comfy.Server.ServerConfigValues'?: Record<string, any>;
|
|
31606
31926
|
'Comfy.Server.LaunchArgs'?: Record<string, string>;
|
|
31927
|
+
'LiteGraph.Canvas.MaximumFps'?: number;
|
|
31607
31928
|
}, {
|
|
31608
31929
|
'Comfy.ColorPalette'?: string;
|
|
31609
31930
|
'Comfy.CustomColorPalettes'?: Record<string, {
|
|
@@ -31653,6 +31974,7 @@ export declare class ComfyApp {
|
|
|
31653
31974
|
NODE_DEFAULT_SHAPE?: string;
|
|
31654
31975
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31655
31976
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31977
|
+
NODE_ERROR_COLOUR?: string;
|
|
31656
31978
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31657
31979
|
DEFAULT_GROUP_FONT?: number;
|
|
31658
31980
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31772,8 +32094,62 @@ export declare class ComfyApp {
|
|
|
31772
32094
|
'Comfy.Node.SnapHighlightsNode'?: boolean;
|
|
31773
32095
|
'Comfy.Server.ServerConfigValues'?: Record<string, any>;
|
|
31774
32096
|
'Comfy.Server.LaunchArgs'?: Record<string, string>;
|
|
32097
|
+
'LiteGraph.Canvas.MaximumFps'?: number;
|
|
31775
32098
|
}>>>;
|
|
31776
32099
|
|
|
32100
|
+
declare const zStatusWsMessage: z.ZodObject<{
|
|
32101
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32102
|
+
exec_info: z.ZodObject<{
|
|
32103
|
+
queue_remaining: z.ZodNumber;
|
|
32104
|
+
}, "strip", z.ZodTypeAny, {
|
|
32105
|
+
queue_remaining?: number;
|
|
32106
|
+
}, {
|
|
32107
|
+
queue_remaining?: number;
|
|
32108
|
+
}>;
|
|
32109
|
+
}, "strip", z.ZodTypeAny, {
|
|
32110
|
+
exec_info?: {
|
|
32111
|
+
queue_remaining?: number;
|
|
32112
|
+
};
|
|
32113
|
+
}, {
|
|
32114
|
+
exec_info?: {
|
|
32115
|
+
queue_remaining?: number;
|
|
32116
|
+
};
|
|
32117
|
+
}>>>;
|
|
32118
|
+
sid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32119
|
+
}, "strip", z.ZodTypeAny, {
|
|
32120
|
+
status?: {
|
|
32121
|
+
exec_info?: {
|
|
32122
|
+
queue_remaining?: number;
|
|
32123
|
+
};
|
|
32124
|
+
};
|
|
32125
|
+
sid?: string;
|
|
32126
|
+
}, {
|
|
32127
|
+
status?: {
|
|
32128
|
+
exec_info?: {
|
|
32129
|
+
queue_remaining?: number;
|
|
32130
|
+
};
|
|
32131
|
+
};
|
|
32132
|
+
sid?: string;
|
|
32133
|
+
}>;
|
|
32134
|
+
|
|
32135
|
+
declare const zStatusWsMessageStatus: z.ZodObject<{
|
|
32136
|
+
exec_info: z.ZodObject<{
|
|
32137
|
+
queue_remaining: z.ZodNumber;
|
|
32138
|
+
}, "strip", z.ZodTypeAny, {
|
|
32139
|
+
queue_remaining?: number;
|
|
32140
|
+
}, {
|
|
32141
|
+
queue_remaining?: number;
|
|
32142
|
+
}>;
|
|
32143
|
+
}, "strip", z.ZodTypeAny, {
|
|
32144
|
+
exec_info?: {
|
|
32145
|
+
queue_remaining?: number;
|
|
32146
|
+
};
|
|
32147
|
+
}, {
|
|
32148
|
+
exec_info?: {
|
|
32149
|
+
queue_remaining?: number;
|
|
32150
|
+
};
|
|
32151
|
+
}>;
|
|
32152
|
+
|
|
31777
32153
|
declare const zSystemStats: z.ZodObject<{
|
|
31778
32154
|
system: z.ZodObject<{
|
|
31779
32155
|
os: z.ZodString;
|
|
@@ -31871,17 +32247,17 @@ export declare class ComfyApp {
|
|
|
31871
32247
|
}>;
|
|
31872
32248
|
|
|
31873
32249
|
declare const zUser: z.ZodObject<{
|
|
31874
|
-
storage: z.ZodEnum<["server"
|
|
31875
|
-
migrated: z.ZodBoolean
|
|
31876
|
-
users: z.ZodRecord<z.ZodString, z.
|
|
32250
|
+
storage: z.ZodEnum<["server"]>;
|
|
32251
|
+
migrated: z.ZodOptional<z.ZodBoolean>;
|
|
32252
|
+
users: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31877
32253
|
}, "strip", z.ZodTypeAny, {
|
|
31878
|
-
storage?: "server"
|
|
32254
|
+
storage?: "server";
|
|
31879
32255
|
migrated?: boolean;
|
|
31880
|
-
users?: Record<string,
|
|
32256
|
+
users?: Record<string, string>;
|
|
31881
32257
|
}, {
|
|
31882
|
-
storage?: "server"
|
|
32258
|
+
storage?: "server";
|
|
31883
32259
|
migrated?: boolean;
|
|
31884
|
-
users?: Record<string,
|
|
32260
|
+
users?: Record<string, string>;
|
|
31885
32261
|
}>;
|
|
31886
32262
|
|
|
31887
32263
|
declare const zUserDataFullInfo: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comfyorg/comfyui-frontend-types",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"types": "./index.d.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"index.d.ts"
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"repository": "https://github.com/
|
|
11
|
+
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
|
|
12
12
|
"homepage": "https://comfy.org",
|
|
13
13
|
"description": "TypeScript definitions for @comfyorg/comfyui-frontend",
|
|
14
14
|
"license": "GPL-3.0-only",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@comfyorg/litegraph": "^0.8.
|
|
16
|
+
"@comfyorg/litegraph": "^0.8.41"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.4.31",
|