@comfyorg/comfyui-frontend-types 1.5.1 → 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 +378 -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: 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,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,14 @@ 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 ExecutionErrorWsMessage = z.infer<typeof zExecutionErrorWsMessage>;
|
|
993
|
+
|
|
994
|
+
declare type ExecutionStartWsMessage = z.infer<typeof zExecutionStartWsMessage>;
|
|
995
|
+
|
|
930
996
|
declare interface ExtensionManager {
|
|
931
997
|
registerSidebarTab(tab: SidebarTabExtension): void;
|
|
932
998
|
unregisterSidebarTab(id: string): void;
|
|
@@ -952,6 +1018,18 @@ export declare class ComfyApp {
|
|
|
952
1018
|
options?: Array<string | SettingOption> | ((value: any) => SettingOption[]);
|
|
953
1019
|
}
|
|
954
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
|
+
|
|
955
1033
|
declare type HistoryTaskItem = z.infer<typeof zHistoryTaskItem>;
|
|
956
1034
|
|
|
957
1035
|
declare type InputSpec = z.infer<typeof zInputSpec>;
|
|
@@ -996,6 +1074,11 @@ export declare class ComfyApp {
|
|
|
996
1074
|
};
|
|
997
1075
|
};
|
|
998
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
|
+
|
|
999
1082
|
declare type NodeId = z.infer<typeof zNodeId>;
|
|
1000
1083
|
|
|
1001
1084
|
declare type NodeSource = {
|
|
@@ -1013,6 +1096,13 @@ export declare class ComfyApp {
|
|
|
1013
1096
|
|
|
1014
1097
|
declare type PendingTaskItem = z.infer<typeof zPendingTaskItem>;
|
|
1015
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
|
+
|
|
1016
1106
|
declare type PromptResponse = z.infer<typeof zPromptResponse>;
|
|
1017
1107
|
|
|
1018
1108
|
declare type RunningTaskItem = z.infer<typeof zRunningTaskItem>;
|
|
@@ -1051,6 +1141,13 @@ export declare class ComfyApp {
|
|
|
1051
1141
|
|
|
1052
1142
|
declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
|
|
1053
1143
|
|
|
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>;
|
|
1150
|
+
|
|
1054
1151
|
declare type SystemStats = z.infer<typeof zSystemStats>;
|
|
1055
1152
|
|
|
1056
1153
|
declare type ToastManager = {
|
|
@@ -7815,6 +7912,195 @@ export declare class ComfyApp {
|
|
|
7815
7912
|
|
|
7816
7913
|
declare const zEmbeddingsResponse: z.ZodArray<z.ZodString, "many">;
|
|
7817
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
|
+
|
|
7818
8104
|
declare const zExtensionsResponse: z.ZodArray<z.ZodString, "many">;
|
|
7819
8105
|
|
|
7820
8106
|
declare const zHistoryTaskItem: z.ZodObject<{
|
|
@@ -23131,6 +23417,23 @@ export declare class ComfyApp {
|
|
|
23131
23417
|
}, (string | number)[], ...unknown[]];
|
|
23132
23418
|
}>;
|
|
23133
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
|
+
|
|
23134
23437
|
declare const zPromptResponse: z.ZodObject<{
|
|
23135
23438
|
node_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23136
23439
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
@@ -30591,6 +30894,7 @@ export declare class ComfyApp {
|
|
|
30591
30894
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30592
30895
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30593
30896
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30897
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30594
30898
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30595
30899
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30596
30900
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30616,6 +30920,7 @@ export declare class ComfyApp {
|
|
|
30616
30920
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30617
30921
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30618
30922
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30923
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30619
30924
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30620
30925
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30621
30926
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30641,6 +30946,7 @@ export declare class ComfyApp {
|
|
|
30641
30946
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30642
30947
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30643
30948
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
30949
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30644
30950
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30645
30951
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30646
30952
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30799,6 +31105,7 @@ export declare class ComfyApp {
|
|
|
30799
31105
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30800
31106
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30801
31107
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31108
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30802
31109
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30803
31110
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30804
31111
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30824,6 +31131,7 @@ export declare class ComfyApp {
|
|
|
30824
31131
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30825
31132
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30826
31133
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31134
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30827
31135
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30828
31136
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30829
31137
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -30849,6 +31157,7 @@ export declare class ComfyApp {
|
|
|
30849
31157
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
30850
31158
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
30851
31159
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31160
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
30852
31161
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
30853
31162
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
30854
31163
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31007,6 +31316,7 @@ export declare class ComfyApp {
|
|
|
31007
31316
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31008
31317
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31009
31318
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31319
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31010
31320
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31011
31321
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31012
31322
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31032,6 +31342,7 @@ export declare class ComfyApp {
|
|
|
31032
31342
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31033
31343
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31034
31344
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31345
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31035
31346
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31036
31347
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31037
31348
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31057,6 +31368,7 @@ export declare class ComfyApp {
|
|
|
31057
31368
|
NODE_DEFAULT_SHAPE: z.ZodString;
|
|
31058
31369
|
NODE_BOX_OUTLINE_COLOR: z.ZodString;
|
|
31059
31370
|
NODE_BYPASS_BGCOLOR: z.ZodString;
|
|
31371
|
+
NODE_ERROR_COLOUR: z.ZodString;
|
|
31060
31372
|
DEFAULT_SHADOW_COLOR: z.ZodString;
|
|
31061
31373
|
DEFAULT_GROUP_FONT: z.ZodNumber;
|
|
31062
31374
|
WIDGET_BGCOLOR: z.ZodString;
|
|
@@ -31169,6 +31481,7 @@ export declare class ComfyApp {
|
|
|
31169
31481
|
NODE_DEFAULT_SHAPE?: string;
|
|
31170
31482
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31171
31483
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31484
|
+
NODE_ERROR_COLOUR?: string;
|
|
31172
31485
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31173
31486
|
DEFAULT_GROUP_FONT?: number;
|
|
31174
31487
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31251,6 +31564,7 @@ export declare class ComfyApp {
|
|
|
31251
31564
|
NODE_DEFAULT_SHAPE?: string;
|
|
31252
31565
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31253
31566
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31567
|
+
NODE_ERROR_COLOUR?: string;
|
|
31254
31568
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31255
31569
|
DEFAULT_GROUP_FONT?: number;
|
|
31256
31570
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31490,6 +31804,7 @@ export declare class ComfyApp {
|
|
|
31490
31804
|
NODE_DEFAULT_SHAPE?: string;
|
|
31491
31805
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31492
31806
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31807
|
+
NODE_ERROR_COLOUR?: string;
|
|
31493
31808
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31494
31809
|
DEFAULT_GROUP_FONT?: number;
|
|
31495
31810
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31659,6 +31974,7 @@ export declare class ComfyApp {
|
|
|
31659
31974
|
NODE_DEFAULT_SHAPE?: string;
|
|
31660
31975
|
NODE_BOX_OUTLINE_COLOR?: string;
|
|
31661
31976
|
NODE_BYPASS_BGCOLOR?: string;
|
|
31977
|
+
NODE_ERROR_COLOUR?: string;
|
|
31662
31978
|
DEFAULT_SHADOW_COLOR?: string;
|
|
31663
31979
|
DEFAULT_GROUP_FONT?: number;
|
|
31664
31980
|
WIDGET_BGCOLOR?: string;
|
|
@@ -31781,6 +32097,59 @@ export declare class ComfyApp {
|
|
|
31781
32097
|
'LiteGraph.Canvas.MaximumFps'?: number;
|
|
31782
32098
|
}>>>;
|
|
31783
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
|
+
|
|
31784
32153
|
declare const zSystemStats: z.ZodObject<{
|
|
31785
32154
|
system: z.ZodObject<{
|
|
31786
32155
|
os: z.ZodString;
|
|
@@ -31879,16 +32248,16 @@ export declare class ComfyApp {
|
|
|
31879
32248
|
|
|
31880
32249
|
declare const zUser: z.ZodObject<{
|
|
31881
32250
|
storage: z.ZodEnum<["server"]>;
|
|
31882
|
-
migrated: z.ZodBoolean
|
|
31883
|
-
users: z.ZodRecord<z.ZodString, z.
|
|
32251
|
+
migrated: z.ZodOptional<z.ZodBoolean>;
|
|
32252
|
+
users: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31884
32253
|
}, "strip", z.ZodTypeAny, {
|
|
31885
32254
|
storage?: "server";
|
|
31886
32255
|
migrated?: boolean;
|
|
31887
|
-
users?: Record<string,
|
|
32256
|
+
users?: Record<string, string>;
|
|
31888
32257
|
}, {
|
|
31889
32258
|
storage?: "server";
|
|
31890
32259
|
migrated?: boolean;
|
|
31891
|
-
users?: Record<string,
|
|
32260
|
+
users?: Record<string, string>;
|
|
31892
32261
|
}>;
|
|
31893
32262
|
|
|
31894
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"
|
|
@@ -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.41"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.4.31",
|