@comfyorg/comfyui-frontend-types 1.5.1 → 1.5.3
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 +451 -9
- package/package.json +2 -2
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: ExecutionSuccessWsMessage;
|
|
48
|
+
execution_error: ExecutionErrorWsMessage;
|
|
49
|
+
execution_cached: ExecutionCachedWsMessage;
|
|
50
|
+
logs: LogsWsMessage;
|
|
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,12 +394,14 @@ 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
407
|
ctx: CanvasRenderingContext2D;
|
|
@@ -822,7 +877,7 @@ export declare class ComfyApp {
|
|
|
822
877
|
loadFile: () => void;
|
|
823
878
|
constructor(app: any);
|
|
824
879
|
setup(containerElement: HTMLElement): void;
|
|
825
|
-
setStatus(status:
|
|
880
|
+
setStatus(status: StatusWsMessageStatus | null): void;
|
|
826
881
|
}
|
|
827
882
|
|
|
828
883
|
declare type ComfyWidgetConstructor = (node: LGraphNode, inputName: string, inputData: InputSpec, app?: ComfyApp, widgetName?: string) => {
|
|
@@ -882,6 +937,9 @@ export declare class ComfyApp {
|
|
|
882
937
|
execute(command: string, errorHandler?: (error: any) => void): void;
|
|
883
938
|
}
|
|
884
939
|
|
|
940
|
+
/** Keys (names) of API events that pass a {@link CustomEvent} `detail` object. */
|
|
941
|
+
declare type ComplexApiEvents = keyof NeverNever<ApiEventTypes>;
|
|
942
|
+
|
|
885
943
|
declare type CustomBottomPanelExtension = BaseBottomPanelExtension & CustomExtension;
|
|
886
944
|
|
|
887
945
|
declare interface CustomExtension {
|
|
@@ -927,6 +985,18 @@ export declare class ComfyApp {
|
|
|
927
985
|
|
|
928
986
|
declare type EmbeddingsResponse = z.infer<typeof zEmbeddingsResponse>;
|
|
929
987
|
|
|
988
|
+
declare type ExecutedWsMessage = z.infer<typeof zExecutedWsMessage>;
|
|
989
|
+
|
|
990
|
+
declare type ExecutingWsMessage = z.infer<typeof zExecutingWsMessage>;
|
|
991
|
+
|
|
992
|
+
declare type ExecutionCachedWsMessage = z.infer<typeof zExecutionCachedWsMessage>;
|
|
993
|
+
|
|
994
|
+
declare type ExecutionErrorWsMessage = z.infer<typeof zExecutionErrorWsMessage>;
|
|
995
|
+
|
|
996
|
+
declare type ExecutionStartWsMessage = z.infer<typeof zExecutionStartWsMessage>;
|
|
997
|
+
|
|
998
|
+
declare type ExecutionSuccessWsMessage = z.infer<typeof zExecutionSuccessWsMessage>;
|
|
999
|
+
|
|
930
1000
|
declare interface ExtensionManager {
|
|
931
1001
|
registerSidebarTab(tab: SidebarTabExtension): void;
|
|
932
1002
|
unregisterSidebarTab(id: string): void;
|
|
@@ -952,6 +1022,18 @@ export declare class ComfyApp {
|
|
|
952
1022
|
options?: Array<string | SettingOption> | ((value: any) => SettingOption[]);
|
|
953
1023
|
}
|
|
954
1024
|
|
|
1025
|
+
/** Dictionary of Frontend-generated API calls */
|
|
1026
|
+
declare interface FrontendApiCalls {
|
|
1027
|
+
graphChanged: ComfyWorkflowJSON;
|
|
1028
|
+
promptQueued: {
|
|
1029
|
+
number: number;
|
|
1030
|
+
batchCount: number;
|
|
1031
|
+
};
|
|
1032
|
+
graphCleared: never;
|
|
1033
|
+
reconnecting: never;
|
|
1034
|
+
reconnected: never;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
955
1037
|
declare type HistoryTaskItem = z.infer<typeof zHistoryTaskItem>;
|
|
956
1038
|
|
|
957
1039
|
declare type InputSpec = z.infer<typeof zInputSpec>;
|
|
@@ -975,6 +1057,8 @@ export declare class ComfyApp {
|
|
|
975
1057
|
|
|
976
1058
|
declare type LogsRawResponse = z.infer<typeof zLogRawResponse>;
|
|
977
1059
|
|
|
1060
|
+
declare type LogsWsMessage = z.infer<typeof zLogsWsMessage>;
|
|
1061
|
+
|
|
978
1062
|
declare type MenuCommandGroup = {
|
|
979
1063
|
/**
|
|
980
1064
|
* The path to the menu group.
|
|
@@ -996,6 +1080,11 @@ export declare class ComfyApp {
|
|
|
996
1080
|
};
|
|
997
1081
|
};
|
|
998
1082
|
|
|
1083
|
+
/** {@link Omit} all properties that evaluate to `never`. */
|
|
1084
|
+
declare type NeverNever<T> = {
|
|
1085
|
+
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
1086
|
+
};
|
|
1087
|
+
|
|
999
1088
|
declare type NodeId = z.infer<typeof zNodeId>;
|
|
1000
1089
|
|
|
1001
1090
|
declare type NodeSource = {
|
|
@@ -1013,6 +1102,13 @@ export declare class ComfyApp {
|
|
|
1013
1102
|
|
|
1014
1103
|
declare type PendingTaskItem = z.infer<typeof zPendingTaskItem>;
|
|
1015
1104
|
|
|
1105
|
+
/** {@link Pick} only properties that evaluate to `never`. */
|
|
1106
|
+
declare type PickNevers<T> = {
|
|
1107
|
+
[K in keyof T as T[K] extends never ? K : never]: T[K];
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
declare type ProgressWsMessage = z.infer<typeof zProgressWsMessage>;
|
|
1111
|
+
|
|
1016
1112
|
declare type PromptResponse = z.infer<typeof zPromptResponse>;
|
|
1017
1113
|
|
|
1018
1114
|
declare type RunningTaskItem = z.infer<typeof zRunningTaskItem>;
|
|
@@ -1051,6 +1147,13 @@ export declare class ComfyApp {
|
|
|
1051
1147
|
|
|
1052
1148
|
declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
|
|
1053
1149
|
|
|
1150
|
+
/** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
|
|
1151
|
+
declare type SimpleApiEvents = keyof PickNevers<ApiEventTypes>;
|
|
1152
|
+
|
|
1153
|
+
declare type StatusWsMessage = z.infer<typeof zStatusWsMessage>;
|
|
1154
|
+
|
|
1155
|
+
declare type StatusWsMessageStatus = z.infer<typeof zStatusWsMessageStatus>;
|
|
1156
|
+
|
|
1054
1157
|
declare type SystemStats = z.infer<typeof zSystemStats>;
|
|
1055
1158
|
|
|
1056
1159
|
declare type ToastManager = {
|
|
@@ -7815,6 +7918,221 @@ export declare class ComfyApp {
|
|
|
7815
7918
|
|
|
7816
7919
|
declare const zEmbeddingsResponse: z.ZodArray<z.ZodString, "many">;
|
|
7817
7920
|
|
|
7921
|
+
declare const zExecutedWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
7922
|
+
node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7923
|
+
display_node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7924
|
+
prompt_id: z.ZodString;
|
|
7925
|
+
}, {
|
|
7926
|
+
output: z.ZodObject<{
|
|
7927
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7928
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7929
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7930
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7931
|
+
}, "strip", z.ZodTypeAny, {
|
|
7932
|
+
type?: string;
|
|
7933
|
+
filename?: string;
|
|
7934
|
+
subfolder?: string;
|
|
7935
|
+
}, {
|
|
7936
|
+
type?: string;
|
|
7937
|
+
filename?: string;
|
|
7938
|
+
subfolder?: string;
|
|
7939
|
+
}>, "many">>;
|
|
7940
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7941
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7942
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7943
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7944
|
+
}, "strip", z.ZodTypeAny, {
|
|
7945
|
+
type?: string;
|
|
7946
|
+
filename?: string;
|
|
7947
|
+
subfolder?: string;
|
|
7948
|
+
}, {
|
|
7949
|
+
type?: string;
|
|
7950
|
+
filename?: string;
|
|
7951
|
+
subfolder?: string;
|
|
7952
|
+
}>, "many">>;
|
|
7953
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
7954
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7955
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7956
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7957
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7958
|
+
}, "strip", z.ZodTypeAny, {
|
|
7959
|
+
type?: string;
|
|
7960
|
+
filename?: string;
|
|
7961
|
+
subfolder?: string;
|
|
7962
|
+
}, {
|
|
7963
|
+
type?: string;
|
|
7964
|
+
filename?: string;
|
|
7965
|
+
subfolder?: string;
|
|
7966
|
+
}>, "many">>;
|
|
7967
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7968
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7969
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7970
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7971
|
+
}, "strip", z.ZodTypeAny, {
|
|
7972
|
+
type?: string;
|
|
7973
|
+
filename?: string;
|
|
7974
|
+
subfolder?: string;
|
|
7975
|
+
}, {
|
|
7976
|
+
type?: string;
|
|
7977
|
+
filename?: string;
|
|
7978
|
+
subfolder?: string;
|
|
7979
|
+
}>, "many">>;
|
|
7980
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
7981
|
+
audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7982
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7983
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7984
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7985
|
+
}, "strip", z.ZodTypeAny, {
|
|
7986
|
+
type?: string;
|
|
7987
|
+
filename?: string;
|
|
7988
|
+
subfolder?: string;
|
|
7989
|
+
}, {
|
|
7990
|
+
type?: string;
|
|
7991
|
+
filename?: string;
|
|
7992
|
+
subfolder?: string;
|
|
7993
|
+
}>, "many">>;
|
|
7994
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7995
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7996
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
7997
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7998
|
+
}, "strip", z.ZodTypeAny, {
|
|
7999
|
+
type?: string;
|
|
8000
|
+
filename?: string;
|
|
8001
|
+
subfolder?: string;
|
|
8002
|
+
}, {
|
|
8003
|
+
type?: string;
|
|
8004
|
+
filename?: string;
|
|
8005
|
+
subfolder?: string;
|
|
8006
|
+
}>, "many">>;
|
|
8007
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
8008
|
+
merge: z.ZodOptional<z.ZodBoolean>;
|
|
8009
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8010
|
+
prompt_id?: string;
|
|
8011
|
+
node?: string | number;
|
|
8012
|
+
display_node?: string | number;
|
|
8013
|
+
output?: {
|
|
8014
|
+
audio?: {
|
|
8015
|
+
type?: string;
|
|
8016
|
+
filename?: string;
|
|
8017
|
+
subfolder?: string;
|
|
8018
|
+
}[];
|
|
8019
|
+
images?: {
|
|
8020
|
+
type?: string;
|
|
8021
|
+
filename?: string;
|
|
8022
|
+
subfolder?: string;
|
|
8023
|
+
}[];
|
|
8024
|
+
} & {
|
|
8025
|
+
[k: string]: unknown;
|
|
8026
|
+
};
|
|
8027
|
+
merge?: boolean;
|
|
8028
|
+
}, {
|
|
8029
|
+
prompt_id?: string;
|
|
8030
|
+
node?: string | number;
|
|
8031
|
+
display_node?: string | number;
|
|
8032
|
+
output?: {
|
|
8033
|
+
audio?: {
|
|
8034
|
+
type?: string;
|
|
8035
|
+
filename?: string;
|
|
8036
|
+
subfolder?: string;
|
|
8037
|
+
}[];
|
|
8038
|
+
images?: {
|
|
8039
|
+
type?: string;
|
|
8040
|
+
filename?: string;
|
|
8041
|
+
subfolder?: string;
|
|
8042
|
+
}[];
|
|
8043
|
+
} & {
|
|
8044
|
+
[k: string]: unknown;
|
|
8045
|
+
};
|
|
8046
|
+
merge?: boolean;
|
|
8047
|
+
}>;
|
|
8048
|
+
|
|
8049
|
+
declare const zExecutingWsMessage: z.ZodObject<{
|
|
8050
|
+
node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8051
|
+
display_node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8052
|
+
prompt_id: z.ZodString;
|
|
8053
|
+
}, "strip", z.ZodTypeAny, {
|
|
8054
|
+
prompt_id?: string;
|
|
8055
|
+
node?: string | number;
|
|
8056
|
+
display_node?: string | number;
|
|
8057
|
+
}, {
|
|
8058
|
+
prompt_id?: string;
|
|
8059
|
+
node?: string | number;
|
|
8060
|
+
display_node?: string | number;
|
|
8061
|
+
}>;
|
|
8062
|
+
|
|
8063
|
+
declare const zExecutionCachedWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
8064
|
+
prompt_id: z.ZodString;
|
|
8065
|
+
timestamp: z.ZodNumber;
|
|
8066
|
+
}, {
|
|
8067
|
+
nodes: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
8068
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8069
|
+
nodes?: (string | number)[];
|
|
8070
|
+
prompt_id?: string;
|
|
8071
|
+
timestamp?: number;
|
|
8072
|
+
}, {
|
|
8073
|
+
nodes?: (string | number)[];
|
|
8074
|
+
prompt_id?: string;
|
|
8075
|
+
timestamp?: number;
|
|
8076
|
+
}>;
|
|
8077
|
+
|
|
8078
|
+
declare const zExecutionErrorWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
8079
|
+
prompt_id: z.ZodString;
|
|
8080
|
+
timestamp: z.ZodNumber;
|
|
8081
|
+
}, {
|
|
8082
|
+
node_id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8083
|
+
node_type: z.ZodString;
|
|
8084
|
+
executed: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
8085
|
+
exception_message: z.ZodString;
|
|
8086
|
+
exception_type: z.ZodString;
|
|
8087
|
+
traceback: z.ZodArray<z.ZodString, "many">;
|
|
8088
|
+
current_inputs: z.ZodAny;
|
|
8089
|
+
current_outputs: z.ZodAny;
|
|
8090
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8091
|
+
prompt_id?: string;
|
|
8092
|
+
timestamp?: number;
|
|
8093
|
+
node_id?: string | number;
|
|
8094
|
+
node_type?: string;
|
|
8095
|
+
executed?: (string | number)[];
|
|
8096
|
+
exception_message?: string;
|
|
8097
|
+
exception_type?: string;
|
|
8098
|
+
traceback?: string[];
|
|
8099
|
+
current_inputs?: any;
|
|
8100
|
+
current_outputs?: any;
|
|
8101
|
+
}, {
|
|
8102
|
+
prompt_id?: string;
|
|
8103
|
+
timestamp?: number;
|
|
8104
|
+
node_id?: string | number;
|
|
8105
|
+
node_type?: string;
|
|
8106
|
+
executed?: (string | number)[];
|
|
8107
|
+
exception_message?: string;
|
|
8108
|
+
exception_type?: string;
|
|
8109
|
+
traceback?: string[];
|
|
8110
|
+
current_inputs?: any;
|
|
8111
|
+
current_outputs?: any;
|
|
8112
|
+
}>;
|
|
8113
|
+
|
|
8114
|
+
declare const zExecutionStartWsMessage: z.ZodObject<{
|
|
8115
|
+
prompt_id: z.ZodString;
|
|
8116
|
+
timestamp: z.ZodNumber;
|
|
8117
|
+
}, "strip", z.ZodTypeAny, {
|
|
8118
|
+
prompt_id?: string;
|
|
8119
|
+
timestamp?: number;
|
|
8120
|
+
}, {
|
|
8121
|
+
prompt_id?: string;
|
|
8122
|
+
timestamp?: number;
|
|
8123
|
+
}>;
|
|
8124
|
+
|
|
8125
|
+
declare const zExecutionSuccessWsMessage: z.ZodObject<{
|
|
8126
|
+
prompt_id: z.ZodString;
|
|
8127
|
+
timestamp: z.ZodNumber;
|
|
8128
|
+
}, "strip", z.ZodTypeAny, {
|
|
8129
|
+
prompt_id?: string;
|
|
8130
|
+
timestamp?: number;
|
|
8131
|
+
}, {
|
|
8132
|
+
prompt_id?: string;
|
|
8133
|
+
timestamp?: number;
|
|
8134
|
+
}>;
|
|
8135
|
+
|
|
7818
8136
|
declare const zExtensionsResponse: z.ZodArray<z.ZodString, "many">;
|
|
7819
8137
|
|
|
7820
8138
|
declare const zHistoryTaskItem: z.ZodObject<{
|
|
@@ -15810,6 +16128,47 @@ export declare class ComfyApp {
|
|
|
15810
16128
|
};
|
|
15811
16129
|
}>;
|
|
15812
16130
|
|
|
16131
|
+
declare const zLogsWsMessage: z.ZodObject<{
|
|
16132
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
16133
|
+
cols: z.ZodNumber;
|
|
16134
|
+
row: z.ZodNumber;
|
|
16135
|
+
}, "strip", z.ZodTypeAny, {
|
|
16136
|
+
cols?: number;
|
|
16137
|
+
row?: number;
|
|
16138
|
+
}, {
|
|
16139
|
+
cols?: number;
|
|
16140
|
+
row?: number;
|
|
16141
|
+
}>>;
|
|
16142
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
16143
|
+
t: z.ZodString;
|
|
16144
|
+
m: z.ZodString;
|
|
16145
|
+
}, "strip", z.ZodTypeAny, {
|
|
16146
|
+
t?: string;
|
|
16147
|
+
m?: string;
|
|
16148
|
+
}, {
|
|
16149
|
+
t?: string;
|
|
16150
|
+
m?: string;
|
|
16151
|
+
}>, "many">;
|
|
16152
|
+
}, "strip", z.ZodTypeAny, {
|
|
16153
|
+
entries?: {
|
|
16154
|
+
t?: string;
|
|
16155
|
+
m?: string;
|
|
16156
|
+
}[];
|
|
16157
|
+
size?: {
|
|
16158
|
+
cols?: number;
|
|
16159
|
+
row?: number;
|
|
16160
|
+
};
|
|
16161
|
+
}, {
|
|
16162
|
+
entries?: {
|
|
16163
|
+
t?: string;
|
|
16164
|
+
m?: string;
|
|
16165
|
+
}[];
|
|
16166
|
+
size?: {
|
|
16167
|
+
cols?: number;
|
|
16168
|
+
row?: number;
|
|
16169
|
+
};
|
|
16170
|
+
}>;
|
|
16171
|
+
|
|
15813
16172
|
declare const zNodeId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
15814
16173
|
|
|
15815
16174
|
declare const zPendingTaskItem: z.ZodObject<{
|
|
@@ -23131,6 +23490,23 @@ export declare class ComfyApp {
|
|
|
23131
23490
|
}, (string | number)[], ...unknown[]];
|
|
23132
23491
|
}>;
|
|
23133
23492
|
|
|
23493
|
+
declare const zProgressWsMessage: z.ZodObject<{
|
|
23494
|
+
value: z.ZodNumber;
|
|
23495
|
+
max: z.ZodNumber;
|
|
23496
|
+
prompt_id: z.ZodString;
|
|
23497
|
+
node: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
23498
|
+
}, "strip", z.ZodTypeAny, {
|
|
23499
|
+
value?: number;
|
|
23500
|
+
max?: number;
|
|
23501
|
+
prompt_id?: string;
|
|
23502
|
+
node?: string | number;
|
|
23503
|
+
}, {
|
|
23504
|
+
value?: number;
|
|
23505
|
+
max?: number;
|
|
23506
|
+
prompt_id?: string;
|
|
23507
|
+
node?: string | number;
|
|
23508
|
+
}>;
|
|
23509
|
+
|
|
23134
23510
|
declare const zPromptResponse: z.ZodObject<{
|
|
23135
23511
|
node_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23136
23512
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
@@ -30591,6 +30967,7 @@ export declare class ComfyApp {
|
|
|
30591
30967
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30592
30968
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30593
30969
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30970
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30594
30971
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30595
30972
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30596
30973
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30616,6 +30993,7 @@ export declare class ComfyApp {
|
|
|
30616
30993
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30617
30994
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30618
30995
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30996
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30619
30997
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30620
30998
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30621
30999
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30641,6 +31019,7 @@ export declare class ComfyApp {
|
|
|
30641
31019
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30642
31020
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30643
31021
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31022
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30644
31023
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30645
31024
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30646
31025
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30799,6 +31178,7 @@ export declare class ComfyApp {
|
|
|
30799
31178
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30800
31179
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30801
31180
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31181
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30802
31182
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30803
31183
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30804
31184
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30824,6 +31204,7 @@ export declare class ComfyApp {
|
|
|
30824
31204
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30825
31205
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30826
31206
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31207
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30827
31208
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30828
31209
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30829
31210
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30849,6 +31230,7 @@ export declare class ComfyApp {
|
|
|
30849
31230
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30850
31231
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30851
31232
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31233
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30852
31234
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30853
31235
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30854
31236
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31007,6 +31389,7 @@ export declare class ComfyApp {
|
|
|
31007
31389
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31008
31390
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31009
31391
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31392
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31010
31393
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31011
31394
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31012
31395
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31032,6 +31415,7 @@ export declare class ComfyApp {
|
|
|
31032
31415
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31033
31416
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31034
31417
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31418
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31035
31419
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31036
31420
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31037
31421
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31057,6 +31441,7 @@ export declare class ComfyApp {
|
|
|
31057
31441
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31058
31442
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31059
31443
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31444
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31060
31445
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31061
31446
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31062
31447
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31169,6 +31554,7 @@ export declare class ComfyApp {
|
|
|
31169
31554
|
NODE_DEFAULT_SHAPE?: string;
|
|
31170
31555
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31171
31556
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31557
|
+
NODE_ERROR_COLOUR?: string;
|
|
31172
31558
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31173
31559
|
DEFAULT_GROUP_FONT?: number;
|
|
31174
31560
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31251,6 +31637,7 @@ export declare class ComfyApp {
|
|
|
31251
31637
|
NODE_DEFAULT_SHAPE?: string;
|
|
31252
31638
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31253
31639
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31640
|
+
NODE_ERROR_COLOUR?: string;
|
|
31254
31641
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31255
31642
|
DEFAULT_GROUP_FONT?: number;
|
|
31256
31643
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31490,6 +31877,7 @@ export declare class ComfyApp {
|
|
|
31490
31877
|
NODE_DEFAULT_SHAPE?: string;
|
|
31491
31878
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31492
31879
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31880
|
+
NODE_ERROR_COLOUR?: string;
|
|
31493
31881
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31494
31882
|
DEFAULT_GROUP_FONT?: number;
|
|
31495
31883
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31659,6 +32047,7 @@ export declare class ComfyApp {
|
|
|
31659
32047
|
NODE_DEFAULT_SHAPE?: string;
|
|
31660
32048
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31661
32049
|
NODE_BYPASS_BGCOLOR?: string;
|
|
32050
|
+
NODE_ERROR_COLOUR?: string;
|
|
31662
32051
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31663
32052
|
DEFAULT_GROUP_FONT?: number;
|
|
31664
32053
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31781,6 +32170,59 @@ export declare class ComfyApp {
|
|
|
31781
32170
|
'LiteGraph.Canvas.MaximumFps'?: number;
|
|
31782
32171
|
}>>>;
|
|
31783
32172
|
|
|
32173
|
+
declare const zStatusWsMessage: z.ZodObject<{
|
|
32174
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32175
|
+
exec_info: z.ZodObject<{
|
|
32176
|
+
queue_remaining: z.ZodNumber;
|
|
32177
|
+
}, "strip", z.ZodTypeAny, {
|
|
32178
|
+
queue_remaining?: number;
|
|
32179
|
+
}, {
|
|
32180
|
+
queue_remaining?: number;
|
|
32181
|
+
}>;
|
|
32182
|
+
}, "strip", z.ZodTypeAny, {
|
|
32183
|
+
exec_info?: {
|
|
32184
|
+
queue_remaining?: number;
|
|
32185
|
+
};
|
|
32186
|
+
}, {
|
|
32187
|
+
exec_info?: {
|
|
32188
|
+
queue_remaining?: number;
|
|
32189
|
+
};
|
|
32190
|
+
}>>>;
|
|
32191
|
+
sid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32192
|
+
}, "strip", z.ZodTypeAny, {
|
|
32193
|
+
status?: {
|
|
32194
|
+
exec_info?: {
|
|
32195
|
+
queue_remaining?: number;
|
|
32196
|
+
};
|
|
32197
|
+
};
|
|
32198
|
+
sid?: string;
|
|
32199
|
+
}, {
|
|
32200
|
+
status?: {
|
|
32201
|
+
exec_info?: {
|
|
32202
|
+
queue_remaining?: number;
|
|
32203
|
+
};
|
|
32204
|
+
};
|
|
32205
|
+
sid?: string;
|
|
32206
|
+
}>;
|
|
32207
|
+
|
|
32208
|
+
declare const zStatusWsMessageStatus: z.ZodObject<{
|
|
32209
|
+
exec_info: z.ZodObject<{
|
|
32210
|
+
queue_remaining: z.ZodNumber;
|
|
32211
|
+
}, "strip", z.ZodTypeAny, {
|
|
32212
|
+
queue_remaining?: number;
|
|
32213
|
+
}, {
|
|
32214
|
+
queue_remaining?: number;
|
|
32215
|
+
}>;
|
|
32216
|
+
}, "strip", z.ZodTypeAny, {
|
|
32217
|
+
exec_info?: {
|
|
32218
|
+
queue_remaining?: number;
|
|
32219
|
+
};
|
|
32220
|
+
}, {
|
|
32221
|
+
exec_info?: {
|
|
32222
|
+
queue_remaining?: number;
|
|
32223
|
+
};
|
|
32224
|
+
}>;
|
|
32225
|
+
|
|
31784
32226
|
declare const zSystemStats: z.ZodObject<{
|
|
31785
32227
|
system: z.ZodObject<{
|
|
31786
32228
|
os: z.ZodString;
|
|
@@ -31879,16 +32321,16 @@ export declare class ComfyApp {
|
|
|
31879
32321
|
|
|
31880
32322
|
declare const zUser: z.ZodObject<{
|
|
31881
32323
|
storage: z.ZodEnum<["server"]>;
|
|
31882
|
-
migrated: z.ZodBoolean
|
|
31883
|
-
users: z.ZodRecord<z.ZodString, z.
|
|
32324
|
+
migrated: z.ZodOptional<z.ZodBoolean>;
|
|
32325
|
+
users: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31884
32326
|
}, "strip", z.ZodTypeAny, {
|
|
31885
32327
|
storage?: "server";
|
|
31886
32328
|
migrated?: boolean;
|
|
31887
|
-
users?: Record<string,
|
|
32329
|
+
users?: Record<string, string>;
|
|
31888
32330
|
}, {
|
|
31889
32331
|
storage?: "server";
|
|
31890
32332
|
migrated?: boolean;
|
|
31891
|
-
users?: Record<string,
|
|
32333
|
+
users?: Record<string, string>;
|
|
31892
32334
|
}>;
|
|
31893
32335
|
|
|
31894
32336
|
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.3",
|
|
4
4
|
"types": "./index.d.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"index.d.ts"
|
|
@@ -13,7 +13,7 @@
|
|
|
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.42"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.4.31",
|