@comfyorg/comfyui-frontend-types 1.5.2 → 1.5.4
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 +77 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -44,10 +44,10 @@ declare interface BackendApiCalls {
|
|
|
44
44
|
executed: ExecutedWsMessage;
|
|
45
45
|
status: StatusWsMessage;
|
|
46
46
|
execution_start: ExecutionStartWsMessage;
|
|
47
|
-
execution_success:
|
|
47
|
+
execution_success: ExecutionSuccessWsMessage;
|
|
48
48
|
execution_error: ExecutionErrorWsMessage;
|
|
49
|
-
execution_cached:
|
|
50
|
-
logs:
|
|
49
|
+
execution_cached: ExecutionCachedWsMessage;
|
|
50
|
+
logs: LogsWsMessage;
|
|
51
51
|
/** Mr Blob Preview, I presume? */
|
|
52
52
|
b_preview: Blob;
|
|
53
53
|
}
|
|
@@ -388,7 +388,6 @@ export declare class ComfyApp {
|
|
|
388
388
|
_nodeOutputs: Record<string, any>;
|
|
389
389
|
nodePreviewImages: Record<string, typeof Image>;
|
|
390
390
|
graph: LGraph;
|
|
391
|
-
enableWorkflowViewRestore: any;
|
|
392
391
|
canvas: LGraphCanvas;
|
|
393
392
|
dragOverNode: LGraphNode | null;
|
|
394
393
|
canvasEl: HTMLCanvasElement;
|
|
@@ -989,10 +988,14 @@ export declare class ComfyApp {
|
|
|
989
988
|
|
|
990
989
|
declare type ExecutingWsMessage = z.infer<typeof zExecutingWsMessage>;
|
|
991
990
|
|
|
991
|
+
declare type ExecutionCachedWsMessage = z.infer<typeof zExecutionCachedWsMessage>;
|
|
992
|
+
|
|
992
993
|
declare type ExecutionErrorWsMessage = z.infer<typeof zExecutionErrorWsMessage>;
|
|
993
994
|
|
|
994
995
|
declare type ExecutionStartWsMessage = z.infer<typeof zExecutionStartWsMessage>;
|
|
995
996
|
|
|
997
|
+
declare type ExecutionSuccessWsMessage = z.infer<typeof zExecutionSuccessWsMessage>;
|
|
998
|
+
|
|
996
999
|
declare interface ExtensionManager {
|
|
997
1000
|
registerSidebarTab(tab: SidebarTabExtension): void;
|
|
998
1001
|
unregisterSidebarTab(id: string): void;
|
|
@@ -1053,6 +1056,8 @@ export declare class ComfyApp {
|
|
|
1053
1056
|
|
|
1054
1057
|
declare type LogsRawResponse = z.infer<typeof zLogRawResponse>;
|
|
1055
1058
|
|
|
1059
|
+
declare type LogsWsMessage = z.infer<typeof zLogsWsMessage>;
|
|
1060
|
+
|
|
1056
1061
|
declare type MenuCommandGroup = {
|
|
1057
1062
|
/**
|
|
1058
1063
|
* The path to the menu group.
|
|
@@ -1127,7 +1132,7 @@ export declare class ComfyApp {
|
|
|
1127
1132
|
|
|
1128
1133
|
declare interface SettingParams extends FormItem {
|
|
1129
1134
|
id: keyof Settings;
|
|
1130
|
-
defaultValue: any;
|
|
1135
|
+
defaultValue: any | (() => any);
|
|
1131
1136
|
onChange?: (newValue: any, oldValue?: any) => void;
|
|
1132
1137
|
category?: string[];
|
|
1133
1138
|
experimental?: boolean;
|
|
@@ -8054,6 +8059,21 @@ export declare class ComfyApp {
|
|
|
8054
8059
|
display_node?: string | number;
|
|
8055
8060
|
}>;
|
|
8056
8061
|
|
|
8062
|
+
declare const zExecutionCachedWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
8063
|
+
prompt_id: z.ZodString;
|
|
8064
|
+
timestamp: z.ZodNumber;
|
|
8065
|
+
}, {
|
|
8066
|
+
nodes: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
8067
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8068
|
+
nodes?: (string | number)[];
|
|
8069
|
+
prompt_id?: string;
|
|
8070
|
+
timestamp?: number;
|
|
8071
|
+
}, {
|
|
8072
|
+
nodes?: (string | number)[];
|
|
8073
|
+
prompt_id?: string;
|
|
8074
|
+
timestamp?: number;
|
|
8075
|
+
}>;
|
|
8076
|
+
|
|
8057
8077
|
declare const zExecutionErrorWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
8058
8078
|
prompt_id: z.ZodString;
|
|
8059
8079
|
timestamp: z.ZodNumber;
|
|
@@ -8101,6 +8121,17 @@ export declare class ComfyApp {
|
|
|
8101
8121
|
timestamp?: number;
|
|
8102
8122
|
}>;
|
|
8103
8123
|
|
|
8124
|
+
declare const zExecutionSuccessWsMessage: z.ZodObject<{
|
|
8125
|
+
prompt_id: z.ZodString;
|
|
8126
|
+
timestamp: z.ZodNumber;
|
|
8127
|
+
}, "strip", z.ZodTypeAny, {
|
|
8128
|
+
prompt_id?: string;
|
|
8129
|
+
timestamp?: number;
|
|
8130
|
+
}, {
|
|
8131
|
+
prompt_id?: string;
|
|
8132
|
+
timestamp?: number;
|
|
8133
|
+
}>;
|
|
8134
|
+
|
|
8104
8135
|
declare const zExtensionsResponse: z.ZodArray<z.ZodString, "many">;
|
|
8105
8136
|
|
|
8106
8137
|
declare const zHistoryTaskItem: z.ZodObject<{
|
|
@@ -16096,6 +16127,47 @@ export declare class ComfyApp {
|
|
|
16096
16127
|
};
|
|
16097
16128
|
}>;
|
|
16098
16129
|
|
|
16130
|
+
declare const zLogsWsMessage: z.ZodObject<{
|
|
16131
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
16132
|
+
cols: z.ZodNumber;
|
|
16133
|
+
row: z.ZodNumber;
|
|
16134
|
+
}, "strip", z.ZodTypeAny, {
|
|
16135
|
+
cols?: number;
|
|
16136
|
+
row?: number;
|
|
16137
|
+
}, {
|
|
16138
|
+
cols?: number;
|
|
16139
|
+
row?: number;
|
|
16140
|
+
}>>;
|
|
16141
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
16142
|
+
t: z.ZodString;
|
|
16143
|
+
m: z.ZodString;
|
|
16144
|
+
}, "strip", z.ZodTypeAny, {
|
|
16145
|
+
t?: string;
|
|
16146
|
+
m?: string;
|
|
16147
|
+
}, {
|
|
16148
|
+
t?: string;
|
|
16149
|
+
m?: string;
|
|
16150
|
+
}>, "many">;
|
|
16151
|
+
}, "strip", z.ZodTypeAny, {
|
|
16152
|
+
entries?: {
|
|
16153
|
+
t?: string;
|
|
16154
|
+
m?: string;
|
|
16155
|
+
}[];
|
|
16156
|
+
size?: {
|
|
16157
|
+
cols?: number;
|
|
16158
|
+
row?: number;
|
|
16159
|
+
};
|
|
16160
|
+
}, {
|
|
16161
|
+
entries?: {
|
|
16162
|
+
t?: string;
|
|
16163
|
+
m?: string;
|
|
16164
|
+
}[];
|
|
16165
|
+
size?: {
|
|
16166
|
+
cols?: number;
|
|
16167
|
+
row?: number;
|
|
16168
|
+
};
|
|
16169
|
+
}>;
|
|
16170
|
+
|
|
16099
16171
|
declare const zNodeId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
16100
16172
|
|
|
16101
16173
|
declare const zPendingTaskItem: 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.4",
|
|
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",
|