@comfyorg/comfyui-frontend-types 1.5.2 → 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 +76 -3
- 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
|
}
|
|
@@ -989,10 +989,14 @@ export declare class ComfyApp {
|
|
|
989
989
|
|
|
990
990
|
declare type ExecutingWsMessage = z.infer<typeof zExecutingWsMessage>;
|
|
991
991
|
|
|
992
|
+
declare type ExecutionCachedWsMessage = z.infer<typeof zExecutionCachedWsMessage>;
|
|
993
|
+
|
|
992
994
|
declare type ExecutionErrorWsMessage = z.infer<typeof zExecutionErrorWsMessage>;
|
|
993
995
|
|
|
994
996
|
declare type ExecutionStartWsMessage = z.infer<typeof zExecutionStartWsMessage>;
|
|
995
997
|
|
|
998
|
+
declare type ExecutionSuccessWsMessage = z.infer<typeof zExecutionSuccessWsMessage>;
|
|
999
|
+
|
|
996
1000
|
declare interface ExtensionManager {
|
|
997
1001
|
registerSidebarTab(tab: SidebarTabExtension): void;
|
|
998
1002
|
unregisterSidebarTab(id: string): void;
|
|
@@ -1053,6 +1057,8 @@ export declare class ComfyApp {
|
|
|
1053
1057
|
|
|
1054
1058
|
declare type LogsRawResponse = z.infer<typeof zLogRawResponse>;
|
|
1055
1059
|
|
|
1060
|
+
declare type LogsWsMessage = z.infer<typeof zLogsWsMessage>;
|
|
1061
|
+
|
|
1056
1062
|
declare type MenuCommandGroup = {
|
|
1057
1063
|
/**
|
|
1058
1064
|
* The path to the menu group.
|
|
@@ -8054,6 +8060,21 @@ export declare class ComfyApp {
|
|
|
8054
8060
|
display_node?: string | number;
|
|
8055
8061
|
}>;
|
|
8056
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
|
+
|
|
8057
8078
|
declare const zExecutionErrorWsMessage: z.ZodObject<z.objectUtil.extendShape<{
|
|
8058
8079
|
prompt_id: z.ZodString;
|
|
8059
8080
|
timestamp: z.ZodNumber;
|
|
@@ -8101,6 +8122,17 @@ export declare class ComfyApp {
|
|
|
8101
8122
|
timestamp?: number;
|
|
8102
8123
|
}>;
|
|
8103
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
|
+
|
|
8104
8136
|
declare const zExtensionsResponse: z.ZodArray<z.ZodString, "many">;
|
|
8105
8137
|
|
|
8106
8138
|
declare const zHistoryTaskItem: z.ZodObject<{
|
|
@@ -16096,6 +16128,47 @@ export declare class ComfyApp {
|
|
|
16096
16128
|
};
|
|
16097
16129
|
}>;
|
|
16098
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
|
+
|
|
16099
16172
|
declare const zNodeId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
16100
16173
|
|
|
16101
16174
|
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.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",
|