@comfyorg/comfyui-frontend-types 1.47.5 → 1.47.6
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 +96 -72
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -19,9 +19,6 @@ import { IFuseOptions } from 'fuse.js';
|
|
|
19
19
|
import { InputSpec } from '@comfyorg/object-info-parser';
|
|
20
20
|
import { MethodOptions } from 'vue';
|
|
21
21
|
import { ModelFile as ModelFile_2 } from '../workflow/validation/schemas/workflowSchema';
|
|
22
|
-
import { NodeId as NodeId_2 } from '../platform/workflow/validation/schemas/workflowSchema';
|
|
23
|
-
import { NodeId as NodeId_3 } from '../workflow/validation/schemas/workflowSchema';
|
|
24
|
-
import { NodeId as NodeId_4 } from '../../validation/schemas/workflowSchema';
|
|
25
22
|
import { objectOutputType } from 'zod';
|
|
26
23
|
import { Raw } from 'vue';
|
|
27
24
|
import { Ref } from 'vue';
|
|
@@ -89,7 +86,7 @@ declare type ApiEventTypes = ApiToEventType<ApiCalls>;
|
|
|
89
86
|
|
|
90
87
|
/** Handles differing event and API signatures. */
|
|
91
88
|
declare type ApiToEventType<T = ApiCalls> = {
|
|
92
|
-
[K in keyof T]: K extends 'status' ? StatusWsMessageStatus : K extends 'executing' ?
|
|
89
|
+
[K in keyof T]: K extends 'status' ? StatusWsMessageStatus : K extends 'executing' ? SerializedNodeId : T[K];
|
|
93
90
|
};
|
|
94
91
|
|
|
95
92
|
declare type AppMode = 'graph' | 'app' | 'builder:inputs' | 'builder:outputs' | 'builder:arrange';
|
|
@@ -805,7 +802,7 @@ declare interface ClipboardPasteResult {
|
|
|
805
802
|
/** All successfully created items */
|
|
806
803
|
created: Positionable[];
|
|
807
804
|
/** Map: original node IDs to newly created nodes */
|
|
808
|
-
nodes: Map<
|
|
805
|
+
nodes: Map<SerializedNodeId, LGraphNode>;
|
|
809
806
|
/** Map: original link IDs to new link IDs */
|
|
810
807
|
links: Map<LinkId, LLink>;
|
|
811
808
|
/** Map: original reroute IDs to newly created reroutes */
|
|
@@ -1283,7 +1280,7 @@ export declare class ComfyApp {
|
|
|
1283
1280
|
* The node errors from the previous execution.
|
|
1284
1281
|
* @deprecated Use app.extensionManager.lastNodeErrors instead
|
|
1285
1282
|
*/
|
|
1286
|
-
get lastNodeErrors(): Record<
|
|
1283
|
+
get lastNodeErrors(): Record<string, NodeError> | null;
|
|
1287
1284
|
/**
|
|
1288
1285
|
* The error from the previous execution.
|
|
1289
1286
|
* @deprecated Use app.extensionManager.lastExecutionError instead
|
|
@@ -1294,7 +1291,7 @@ export declare class ComfyApp {
|
|
|
1294
1291
|
* TODO: Update to support multiple executing nodes. This getter returns only the first executing node.
|
|
1295
1292
|
* Consider updating consumers to handle multiple nodes or use executingNodeIds array.
|
|
1296
1293
|
*/
|
|
1297
|
-
get runningNodeId():
|
|
1294
|
+
get runningNodeId(): SerializedNodeId | null;
|
|
1298
1295
|
/**
|
|
1299
1296
|
* @deprecated Use useWorkspaceStore().shiftDown instead
|
|
1300
1297
|
*/
|
|
@@ -2655,9 +2652,11 @@ export declare class ComfyApp {
|
|
|
2655
2652
|
/**
|
|
2656
2653
|
* Create a NodeExecutionId from an array of node IDs
|
|
2657
2654
|
* @param nodeIds Array of node IDs from root to target
|
|
2658
|
-
* @returns A properly formatted NodeExecutionId
|
|
2655
|
+
* @returns A properly formatted NodeExecutionId, or null when any segment is invalid
|
|
2659
2656
|
*/
|
|
2660
|
-
export declare function createNodeExecutionId<const T extends readonly
|
|
2657
|
+
export declare function createNodeExecutionId<const T extends readonly [SerializedNodeId, ...SerializedNodeId[]]>(nodeIds: T): NodeExecutionId;
|
|
2658
|
+
|
|
2659
|
+
export declare function createNodeExecutionId(nodeIds: readonly SerializedNodeId[]): NodeExecutionId | null;
|
|
2661
2660
|
|
|
2662
2661
|
/**
|
|
2663
2662
|
* Create a NodeLocatorId from components
|
|
@@ -2665,7 +2664,7 @@ export declare class ComfyApp {
|
|
|
2665
2664
|
* @param localNodeId The local node ID within that subgraph
|
|
2666
2665
|
* @returns A properly formatted NodeLocatorId
|
|
2667
2666
|
*/
|
|
2668
|
-
export declare function createNodeLocatorId(subgraphUuid: string | null, localNodeId:
|
|
2667
|
+
export declare function createNodeLocatorId(subgraphUuid: string | null, localNodeId: NodeId): NodeLocatorId;
|
|
2669
2668
|
|
|
2670
2669
|
/** Options for {@link LiteGraphGlobal.createNode}. Shallow-copied onto the new node. */
|
|
2671
2670
|
declare interface CreateNodeOptions {
|
|
@@ -3067,7 +3066,7 @@ export declare class ComfyApp {
|
|
|
3067
3066
|
/** The actual node that this DTO wraps. */
|
|
3068
3067
|
readonly node: LGraphNode | SubgraphNode;
|
|
3069
3068
|
/** A list of subgraph instance node IDs from the root graph to the containing instance. @see {@link id} */
|
|
3070
|
-
readonly subgraphNodePath: readonly
|
|
3069
|
+
readonly subgraphNodePath: readonly SerializedNodeId[];
|
|
3071
3070
|
/** A flattened map of all DTOs in this node network. Subgraph instances have been expanded into their inner nodes. */
|
|
3072
3071
|
readonly nodesByExecutionId: Map<ExecutionId, ExecutableLGraphNode>;
|
|
3073
3072
|
/** The actual subgraph instance that contains this node, otherwise undefined. */
|
|
@@ -3103,7 +3102,7 @@ export declare class ComfyApp {
|
|
|
3103
3102
|
/** The actual node that this DTO wraps. */
|
|
3104
3103
|
node: LGraphNode | SubgraphNode,
|
|
3105
3104
|
/** A list of subgraph instance node IDs from the root graph to the containing instance. @see {@link id} */
|
|
3106
|
-
subgraphNodePath: readonly
|
|
3105
|
+
subgraphNodePath: readonly SerializedNodeId[],
|
|
3107
3106
|
/** A flattened map of all DTOs in this node network. Subgraph instances have been expanded into their inner nodes. */
|
|
3108
3107
|
nodesByExecutionId: Map<ExecutionId, ExecutableLGraphNode>,
|
|
3109
3108
|
/** The actual subgraph instance that contains this node, otherwise undefined. */
|
|
@@ -3205,7 +3204,7 @@ export declare class ComfyApp {
|
|
|
3205
3204
|
}
|
|
3206
3205
|
|
|
3207
3206
|
declare interface ExportedSubgraphIONode {
|
|
3208
|
-
id:
|
|
3207
|
+
id: SerializedNodeId;
|
|
3209
3208
|
bounding: [number, number, number, number];
|
|
3210
3209
|
pinned?: boolean;
|
|
3211
3210
|
}
|
|
@@ -3213,7 +3212,7 @@ export declare class ComfyApp {
|
|
|
3213
3212
|
/** A reference to a node widget shown in the parent graph */
|
|
3214
3213
|
declare interface ExposedWidget {
|
|
3215
3214
|
/** The ID of the node (inside the subgraph) that the widget belongs to. */
|
|
3216
|
-
id:
|
|
3215
|
+
id: SerializedNodeId;
|
|
3217
3216
|
/** The name of the widget to show in the parent graph. */
|
|
3218
3217
|
name: string;
|
|
3219
3218
|
}
|
|
@@ -3230,7 +3229,7 @@ export declare class ComfyApp {
|
|
|
3230
3229
|
set: <T = unknown>(id: string, value: T) => void;
|
|
3231
3230
|
};
|
|
3232
3231
|
workflow: ReturnType<typeof useWorkflowStore>;
|
|
3233
|
-
lastNodeErrors: Record<
|
|
3232
|
+
lastNodeErrors: Record<string, NodeError> | null;
|
|
3234
3233
|
lastExecutionError: ExecutionErrorWsMessage | null;
|
|
3235
3234
|
/**
|
|
3236
3235
|
* Renders a markdown string to sanitized HTML.
|
|
@@ -4059,7 +4058,7 @@ export declare class ComfyApp {
|
|
|
4059
4058
|
* Maintained for backwards compat
|
|
4060
4059
|
*/
|
|
4061
4060
|
declare interface ISerialisedGraph extends BaseExportedGraph {
|
|
4062
|
-
last_node_id:
|
|
4061
|
+
last_node_id: SerializedNodeId;
|
|
4063
4062
|
last_link_id: LinkId;
|
|
4064
4063
|
nodes: ISerialisedNode[];
|
|
4065
4064
|
links: SerialisedLLinkArray[];
|
|
@@ -4082,7 +4081,7 @@ export declare class ComfyApp {
|
|
|
4082
4081
|
/** Serialised LGraphNode */
|
|
4083
4082
|
declare interface ISerialisedNode {
|
|
4084
4083
|
title?: string;
|
|
4085
|
-
id:
|
|
4084
|
+
id: SerializedNodeId;
|
|
4086
4085
|
type: string;
|
|
4087
4086
|
pos: Point;
|
|
4088
4087
|
size: Size;
|
|
@@ -5036,7 +5035,7 @@ export declare class ComfyApp {
|
|
|
5036
5035
|
dirty_canvas: boolean;
|
|
5037
5036
|
dirty_bgcanvas: boolean;
|
|
5038
5037
|
/** A map of nodes that require selective-redraw */
|
|
5039
|
-
dirty_nodes: Map<
|
|
5038
|
+
dirty_nodes: Map<SerializedNodeId, LGraphNode>;
|
|
5040
5039
|
dirty_area?: Rect | null;
|
|
5041
5040
|
/** @deprecated Unused */
|
|
5042
5041
|
node_in_panel?: LGraphNode | null;
|
|
@@ -5703,7 +5702,7 @@ export declare class ComfyApp {
|
|
|
5703
5702
|
/** Ghost placement mode has started or ended. */
|
|
5704
5703
|
'litegraph:ghost-placement': {
|
|
5705
5704
|
active: boolean;
|
|
5706
|
-
nodeId:
|
|
5705
|
+
nodeId: SerializedNodeId;
|
|
5707
5706
|
};
|
|
5708
5707
|
}
|
|
5709
5708
|
|
|
@@ -5725,7 +5724,7 @@ export declare class ComfyApp {
|
|
|
5725
5724
|
*/
|
|
5726
5725
|
selectionChanged: boolean;
|
|
5727
5726
|
/** ID of node currently in ghost placement mode (semi-transparent, following cursor). */
|
|
5728
|
-
ghostNodeId:
|
|
5727
|
+
ghostNodeId: SerializedNodeId | null;
|
|
5729
5728
|
}
|
|
5730
5729
|
|
|
5731
5730
|
/** Configuration used by {@link LGraph} `config`. */
|
|
@@ -5779,23 +5778,23 @@ export declare class ComfyApp {
|
|
|
5779
5778
|
node: LGraphNode;
|
|
5780
5779
|
};
|
|
5781
5780
|
'node:property:changed': {
|
|
5782
|
-
nodeId:
|
|
5781
|
+
nodeId: SerializedNodeId;
|
|
5783
5782
|
property: string;
|
|
5784
5783
|
oldValue: unknown;
|
|
5785
5784
|
newValue: unknown;
|
|
5786
5785
|
};
|
|
5787
5786
|
'node:slot-errors:changed': {
|
|
5788
|
-
nodeId:
|
|
5787
|
+
nodeId: SerializedNodeId;
|
|
5789
5788
|
};
|
|
5790
5789
|
'node:slot-links:changed': {
|
|
5791
|
-
nodeId:
|
|
5790
|
+
nodeId: SerializedNodeId;
|
|
5792
5791
|
slotType: NodeSlotType;
|
|
5793
5792
|
slotIndex: number;
|
|
5794
5793
|
connected: boolean;
|
|
5795
5794
|
linkId: number;
|
|
5796
5795
|
};
|
|
5797
5796
|
'node:slot-label:changed': {
|
|
5798
|
-
nodeId:
|
|
5797
|
+
nodeId: SerializedNodeId;
|
|
5799
5798
|
slotType?: NodeSlotType;
|
|
5800
5799
|
};
|
|
5801
5800
|
}
|
|
@@ -7633,7 +7632,7 @@ export declare class ComfyApp {
|
|
|
7633
7632
|
get originIsIoNode(): boolean;
|
|
7634
7633
|
/** `true` if this link is connected to a subgraph output node (the actual target is in a different graph). */
|
|
7635
7634
|
get targetIsIoNode(): boolean;
|
|
7636
|
-
constructor(id: LinkId, type: ISlotType, origin_id:
|
|
7635
|
+
constructor(id: LinkId, type: ISlotType, origin_id: SerializedNodeId, origin_slot: number, target_id: SerializedNodeId, target_slot: number, parentId?: RerouteId);
|
|
7637
7636
|
/** @deprecated Use {@link LLink.create} */
|
|
7638
7637
|
static createFromArray(data: SerialisedLLinkArray): LLink;
|
|
7639
7638
|
/**
|
|
@@ -7707,14 +7706,14 @@ export declare class ComfyApp {
|
|
|
7707
7706
|
* @param outputIndex The array index of the node output
|
|
7708
7707
|
* @returns `true` if the origin matches, otherwise `false`.
|
|
7709
7708
|
*/
|
|
7710
|
-
hasOrigin(nodeId:
|
|
7709
|
+
hasOrigin(nodeId: SerializedNodeId, outputIndex: number): boolean;
|
|
7711
7710
|
/**
|
|
7712
7711
|
* Checks if the specified node id and input index are this link's target (input side).
|
|
7713
7712
|
* @param nodeId ID of the node to check
|
|
7714
7713
|
* @param inputIndex The array index of the node input
|
|
7715
7714
|
* @returns `true` if the target matches, otherwise `false`.
|
|
7716
7715
|
*/
|
|
7717
|
-
hasTarget(nodeId:
|
|
7716
|
+
hasTarget(nodeId: SerializedNodeId, inputIndex: number): boolean;
|
|
7718
7717
|
/**
|
|
7719
7718
|
* Creates a floating link from this link.
|
|
7720
7719
|
* @param slotType The side of the link that is still connected
|
|
@@ -7803,7 +7802,7 @@ export declare class ComfyApp {
|
|
|
7803
7802
|
* The same file name may appear multiple times across different nodes.
|
|
7804
7803
|
*/
|
|
7805
7804
|
declare interface MissingMediaCandidate {
|
|
7806
|
-
nodeId:
|
|
7805
|
+
nodeId: SerializedNodeId;
|
|
7807
7806
|
nodeType: string;
|
|
7808
7807
|
widgetName: string;
|
|
7809
7808
|
mediaType: MediaType;
|
|
@@ -7825,7 +7824,8 @@ export declare class ComfyApp {
|
|
|
7825
7824
|
*/
|
|
7826
7825
|
declare interface MissingModelCandidate {
|
|
7827
7826
|
/** Undefined for workflow-level models not tied to a specific node. */
|
|
7828
|
-
nodeId?:
|
|
7827
|
+
nodeId?: SerializedNodeId;
|
|
7828
|
+
sourceExecutionId?: NodeExecutionId;
|
|
7829
7829
|
nodeType: string;
|
|
7830
7830
|
widgetName: string;
|
|
7831
7831
|
isAssetSupported: boolean;
|
|
@@ -8019,10 +8019,12 @@ export declare class ComfyApp {
|
|
|
8019
8019
|
readonly __brand: 'NodeExecutionId';
|
|
8020
8020
|
};
|
|
8021
8021
|
|
|
8022
|
-
declare type NodeId =
|
|
8022
|
+
export declare type NodeId = string & {
|
|
8023
|
+
readonly __brand: 'NodeId';
|
|
8024
|
+
};
|
|
8023
8025
|
|
|
8024
8026
|
declare interface NodeLike {
|
|
8025
|
-
id:
|
|
8027
|
+
id: SerializedNodeId;
|
|
8026
8028
|
canConnectTo(node: NodeLike, toSlot: INodeInputSlot | SubgraphIO, fromSlot: INodeOutputSlot | SubgraphIO): boolean;
|
|
8027
8029
|
}
|
|
8028
8030
|
|
|
@@ -8049,7 +8051,7 @@ export declare class ComfyApp {
|
|
|
8049
8051
|
|
|
8050
8052
|
declare interface NodePropertyChangedEvent {
|
|
8051
8053
|
type: 'node:property:changed';
|
|
8052
|
-
nodeId:
|
|
8054
|
+
nodeId: SerializedNodeId;
|
|
8053
8055
|
property: string;
|
|
8054
8056
|
oldValue: unknown;
|
|
8055
8057
|
newValue: unknown;
|
|
@@ -8065,18 +8067,18 @@ export declare class ComfyApp {
|
|
|
8065
8067
|
|
|
8066
8068
|
declare interface NodeSlotErrorsChangedEvent {
|
|
8067
8069
|
type: 'node:slot-errors:changed';
|
|
8068
|
-
nodeId:
|
|
8070
|
+
nodeId: SerializedNodeId;
|
|
8069
8071
|
}
|
|
8070
8072
|
|
|
8071
8073
|
declare interface NodeSlotLabelChangedEvent {
|
|
8072
8074
|
type: 'node:slot-label:changed';
|
|
8073
|
-
nodeId:
|
|
8075
|
+
nodeId: SerializedNodeId;
|
|
8074
8076
|
slotType?: NodeSlotType;
|
|
8075
8077
|
}
|
|
8076
8078
|
|
|
8077
8079
|
declare interface NodeSlotLinksChangedEvent {
|
|
8078
8080
|
type: 'node:slot-links:changed';
|
|
8079
|
-
nodeId:
|
|
8081
|
+
nodeId: SerializedNodeId;
|
|
8080
8082
|
slotType: NodeSlotType;
|
|
8081
8083
|
slotIndex: number;
|
|
8082
8084
|
connected: boolean;
|
|
@@ -8211,7 +8213,9 @@ export declare class ComfyApp {
|
|
|
8211
8213
|
* @param id The NodeExecutionId to parse
|
|
8212
8214
|
* @returns Array of node IDs from root to target, or null if not an execution ID
|
|
8213
8215
|
*/
|
|
8214
|
-
export declare function parseNodeExecutionId(id: string):
|
|
8216
|
+
export declare function parseNodeExecutionId(id: string): NodeId[] | null;
|
|
8217
|
+
|
|
8218
|
+
export declare function parseNodeId(value: unknown): NodeId | null;
|
|
8215
8219
|
|
|
8216
8220
|
/**
|
|
8217
8221
|
* Parse a NodeLocatorId into its components
|
|
@@ -8220,7 +8224,7 @@ export declare class ComfyApp {
|
|
|
8220
8224
|
*/
|
|
8221
8225
|
export declare function parseNodeLocatorId(id: string): {
|
|
8222
8226
|
subgraphUuid: string | null;
|
|
8223
|
-
localNodeId:
|
|
8227
|
+
localNodeId: NodeId;
|
|
8224
8228
|
} | null;
|
|
8225
8229
|
|
|
8226
8230
|
declare interface PendingWarnings {
|
|
@@ -8866,11 +8870,11 @@ export declare class ComfyApp {
|
|
|
8866
8870
|
/** Link ID */
|
|
8867
8871
|
id: LinkId;
|
|
8868
8872
|
/** Output node ID */
|
|
8869
|
-
origin_id:
|
|
8873
|
+
origin_id: SerializedNodeId;
|
|
8870
8874
|
/** Output slot index */
|
|
8871
8875
|
origin_slot: number;
|
|
8872
8876
|
/** Input node ID */
|
|
8873
|
-
target_id:
|
|
8877
|
+
target_id: SerializedNodeId;
|
|
8874
8878
|
/** Input slot index */
|
|
8875
8879
|
target_slot: number;
|
|
8876
8880
|
/** Data type of the link */
|
|
@@ -8889,13 +8893,15 @@ export declare class ComfyApp {
|
|
|
8889
8893
|
|
|
8890
8894
|
declare type SerialisedLLinkArray = [
|
|
8891
8895
|
id: LinkId,
|
|
8892
|
-
origin_id:
|
|
8896
|
+
origin_id: SerializedNodeId,
|
|
8893
8897
|
origin_slot: number,
|
|
8894
|
-
target_id:
|
|
8898
|
+
target_id: SerializedNodeId,
|
|
8895
8899
|
target_slot: number,
|
|
8896
8900
|
type: ISlotType
|
|
8897
8901
|
];
|
|
8898
8902
|
|
|
8903
|
+
export declare type SerializedNodeId = number | string;
|
|
8904
|
+
|
|
8899
8905
|
declare type SettingCustomRenderer = (name: string, setter: (v: unknown) => void, value: unknown, attrs?: Record<string, unknown>) => HTMLElement;
|
|
8900
8906
|
|
|
8901
8907
|
declare type SettingInputType = 'boolean' | 'number' | 'slider' | 'knob' | 'combo' | 'radio' | 'text' | 'image' | 'color' | 'url' | 'hidden' | 'backgroundImage';
|
|
@@ -9384,7 +9390,7 @@ export declare class ComfyApp {
|
|
|
9384
9390
|
* @returns The output node if found, otherwise undefined.
|
|
9385
9391
|
*/
|
|
9386
9392
|
resolveSubgraphOutputLink(slot: number): ResolvedConnection | undefined;
|
|
9387
|
-
getInnerNodes(executableNodes: Map<ExecutionId, ExecutableLGraphNode>, subgraphNodePath?: readonly
|
|
9393
|
+
getInnerNodes(executableNodes: Map<ExecutionId, ExecutableLGraphNode>, subgraphNodePath?: readonly SerializedNodeId[], nodes?: ExecutableLGraphNode[], visited?: Set<SubgraphNode>): ExecutableLGraphNode[];
|
|
9388
9394
|
removeWidget(widget: IBaseWidget): void;
|
|
9389
9395
|
ensureWidgetRemoved(widget: IBaseWidget): void;
|
|
9390
9396
|
onRemoved(): void;
|
|
@@ -9688,6 +9694,12 @@ export declare class ComfyApp {
|
|
|
9688
9694
|
connectToRerouteOutput(): void;
|
|
9689
9695
|
}
|
|
9690
9696
|
|
|
9697
|
+
export declare function toNodeId(value: ToNodeIdInput): NodeId;
|
|
9698
|
+
|
|
9699
|
+
declare type ToNodeIdInput = number | (string & {
|
|
9700
|
+
readonly __brand?: never;
|
|
9701
|
+
});
|
|
9702
|
+
|
|
9691
9703
|
/** Connecting TO an output slot. */
|
|
9692
9704
|
declare class ToOutputFromIoNodeLink implements RenderLink {
|
|
9693
9705
|
readonly network: LinkNetwork;
|
|
@@ -12258,7 +12270,8 @@ export declare class ComfyApp {
|
|
|
12258
12270
|
} | undefined;
|
|
12259
12271
|
})[] | undefined;
|
|
12260
12272
|
missingModelCandidates?: {
|
|
12261
|
-
nodeId?:
|
|
12273
|
+
nodeId?: SerializedNodeId | undefined;
|
|
12274
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
12262
12275
|
nodeType: string;
|
|
12263
12276
|
widgetName: string;
|
|
12264
12277
|
isAssetSupported: boolean;
|
|
@@ -12270,7 +12283,7 @@ export declare class ComfyApp {
|
|
|
12270
12283
|
isMissing: boolean | undefined;
|
|
12271
12284
|
}[] | undefined;
|
|
12272
12285
|
missingMediaCandidates?: {
|
|
12273
|
-
nodeId:
|
|
12286
|
+
nodeId: SerializedNodeId;
|
|
12274
12287
|
nodeType: string;
|
|
12275
12288
|
widgetName: string;
|
|
12276
12289
|
mediaType: MediaType;
|
|
@@ -16073,7 +16086,8 @@ export declare class ComfyApp {
|
|
|
16073
16086
|
} | undefined;
|
|
16074
16087
|
})[] | undefined;
|
|
16075
16088
|
missingModelCandidates?: {
|
|
16076
|
-
nodeId?:
|
|
16089
|
+
nodeId?: SerializedNodeId | undefined;
|
|
16090
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
16077
16091
|
nodeType: string;
|
|
16078
16092
|
widgetName: string;
|
|
16079
16093
|
isAssetSupported: boolean;
|
|
@@ -16085,7 +16099,7 @@ export declare class ComfyApp {
|
|
|
16085
16099
|
isMissing: boolean | undefined;
|
|
16086
16100
|
}[] | undefined;
|
|
16087
16101
|
missingMediaCandidates?: {
|
|
16088
|
-
nodeId:
|
|
16102
|
+
nodeId: SerializedNodeId;
|
|
16089
16103
|
nodeType: string;
|
|
16090
16104
|
widgetName: string;
|
|
16091
16105
|
mediaType: MediaType;
|
|
@@ -18395,7 +18409,8 @@ export declare class ComfyApp {
|
|
|
18395
18409
|
} | undefined;
|
|
18396
18410
|
})[] | undefined;
|
|
18397
18411
|
missingModelCandidates?: {
|
|
18398
|
-
nodeId?:
|
|
18412
|
+
nodeId?: SerializedNodeId | undefined;
|
|
18413
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
18399
18414
|
nodeType: string;
|
|
18400
18415
|
widgetName: string;
|
|
18401
18416
|
isAssetSupported: boolean;
|
|
@@ -18407,7 +18422,7 @@ export declare class ComfyApp {
|
|
|
18407
18422
|
isMissing: boolean | undefined;
|
|
18408
18423
|
}[] | undefined;
|
|
18409
18424
|
missingMediaCandidates?: {
|
|
18410
|
-
nodeId:
|
|
18425
|
+
nodeId: SerializedNodeId;
|
|
18411
18426
|
nodeType: string;
|
|
18412
18427
|
widgetName: string;
|
|
18413
18428
|
mediaType: MediaType;
|
|
@@ -22210,7 +22225,8 @@ export declare class ComfyApp {
|
|
|
22210
22225
|
} | undefined;
|
|
22211
22226
|
})[] | undefined;
|
|
22212
22227
|
missingModelCandidates?: {
|
|
22213
|
-
nodeId?:
|
|
22228
|
+
nodeId?: SerializedNodeId | undefined;
|
|
22229
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
22214
22230
|
nodeType: string;
|
|
22215
22231
|
widgetName: string;
|
|
22216
22232
|
isAssetSupported: boolean;
|
|
@@ -22222,7 +22238,7 @@ export declare class ComfyApp {
|
|
|
22222
22238
|
isMissing: boolean | undefined;
|
|
22223
22239
|
}[] | undefined;
|
|
22224
22240
|
missingMediaCandidates?: {
|
|
22225
|
-
nodeId:
|
|
22241
|
+
nodeId: SerializedNodeId;
|
|
22226
22242
|
nodeType: string;
|
|
22227
22243
|
widgetName: string;
|
|
22228
22244
|
mediaType: MediaType;
|
|
@@ -22288,9 +22304,9 @@ export declare class ComfyApp {
|
|
|
22288
22304
|
activeSubgraph: ShallowRef<Raw<Subgraph> | undefined, Raw<Subgraph> | undefined>;
|
|
22289
22305
|
updateActiveGraph: () => void;
|
|
22290
22306
|
executionIdToCurrentId: (id: string) => string | undefined;
|
|
22291
|
-
nodeIdToNodeLocatorId: (nodeId:
|
|
22307
|
+
nodeIdToNodeLocatorId: (nodeId: NodeId, subgraph?: Subgraph) => NodeLocatorId;
|
|
22292
22308
|
nodeToNodeLocatorId: (node: LGraphNode) => NodeLocatorId;
|
|
22293
|
-
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) =>
|
|
22309
|
+
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) => NodeId;
|
|
22294
22310
|
nodeLocatorIdToNodeExecutionId: (locatorId: NodeLocatorId, targetSubgraph?: Subgraph) => NodeExecutionId | null;
|
|
22295
22311
|
}, "activeWorkflow" | "isBusy" | "isSyncLoading" | "isSubgraphActive" | "activeSubgraph">, Pick<{
|
|
22296
22312
|
activeWorkflow: Ref< {
|
|
@@ -24570,7 +24586,8 @@ export declare class ComfyApp {
|
|
|
24570
24586
|
} | undefined;
|
|
24571
24587
|
})[] | undefined;
|
|
24572
24588
|
missingModelCandidates?: {
|
|
24573
|
-
nodeId?:
|
|
24589
|
+
nodeId?: SerializedNodeId | undefined;
|
|
24590
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
24574
24591
|
nodeType: string;
|
|
24575
24592
|
widgetName: string;
|
|
24576
24593
|
isAssetSupported: boolean;
|
|
@@ -24582,7 +24599,7 @@ export declare class ComfyApp {
|
|
|
24582
24599
|
isMissing: boolean | undefined;
|
|
24583
24600
|
}[] | undefined;
|
|
24584
24601
|
missingMediaCandidates?: {
|
|
24585
|
-
nodeId:
|
|
24602
|
+
nodeId: SerializedNodeId;
|
|
24586
24603
|
nodeType: string;
|
|
24587
24604
|
widgetName: string;
|
|
24588
24605
|
mediaType: MediaType;
|
|
@@ -28385,7 +28402,8 @@ export declare class ComfyApp {
|
|
|
28385
28402
|
} | undefined;
|
|
28386
28403
|
})[] | undefined;
|
|
28387
28404
|
missingModelCandidates?: {
|
|
28388
|
-
nodeId?:
|
|
28405
|
+
nodeId?: SerializedNodeId | undefined;
|
|
28406
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
28389
28407
|
nodeType: string;
|
|
28390
28408
|
widgetName: string;
|
|
28391
28409
|
isAssetSupported: boolean;
|
|
@@ -28397,7 +28415,7 @@ export declare class ComfyApp {
|
|
|
28397
28415
|
isMissing: boolean | undefined;
|
|
28398
28416
|
}[] | undefined;
|
|
28399
28417
|
missingMediaCandidates?: {
|
|
28400
|
-
nodeId:
|
|
28418
|
+
nodeId: SerializedNodeId;
|
|
28401
28419
|
nodeType: string;
|
|
28402
28420
|
widgetName: string;
|
|
28403
28421
|
mediaType: MediaType;
|
|
@@ -30707,7 +30725,8 @@ export declare class ComfyApp {
|
|
|
30707
30725
|
} | undefined;
|
|
30708
30726
|
})[] | undefined;
|
|
30709
30727
|
missingModelCandidates?: {
|
|
30710
|
-
nodeId?:
|
|
30728
|
+
nodeId?: SerializedNodeId | undefined;
|
|
30729
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
30711
30730
|
nodeType: string;
|
|
30712
30731
|
widgetName: string;
|
|
30713
30732
|
isAssetSupported: boolean;
|
|
@@ -30719,7 +30738,7 @@ export declare class ComfyApp {
|
|
|
30719
30738
|
isMissing: boolean | undefined;
|
|
30720
30739
|
}[] | undefined;
|
|
30721
30740
|
missingMediaCandidates?: {
|
|
30722
|
-
nodeId:
|
|
30741
|
+
nodeId: SerializedNodeId;
|
|
30723
30742
|
nodeType: string;
|
|
30724
30743
|
widgetName: string;
|
|
30725
30744
|
mediaType: MediaType;
|
|
@@ -34522,7 +34541,8 @@ export declare class ComfyApp {
|
|
|
34522
34541
|
} | undefined;
|
|
34523
34542
|
})[] | undefined;
|
|
34524
34543
|
missingModelCandidates?: {
|
|
34525
|
-
nodeId?:
|
|
34544
|
+
nodeId?: SerializedNodeId | undefined;
|
|
34545
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
34526
34546
|
nodeType: string;
|
|
34527
34547
|
widgetName: string;
|
|
34528
34548
|
isAssetSupported: boolean;
|
|
@@ -34534,7 +34554,7 @@ export declare class ComfyApp {
|
|
|
34534
34554
|
isMissing: boolean | undefined;
|
|
34535
34555
|
}[] | undefined;
|
|
34536
34556
|
missingMediaCandidates?: {
|
|
34537
|
-
nodeId:
|
|
34557
|
+
nodeId: SerializedNodeId;
|
|
34538
34558
|
nodeType: string;
|
|
34539
34559
|
widgetName: string;
|
|
34540
34560
|
mediaType: MediaType;
|
|
@@ -34600,9 +34620,9 @@ export declare class ComfyApp {
|
|
|
34600
34620
|
activeSubgraph: ShallowRef<Raw<Subgraph> | undefined, Raw<Subgraph> | undefined>;
|
|
34601
34621
|
updateActiveGraph: () => void;
|
|
34602
34622
|
executionIdToCurrentId: (id: string) => string | undefined;
|
|
34603
|
-
nodeIdToNodeLocatorId: (nodeId:
|
|
34623
|
+
nodeIdToNodeLocatorId: (nodeId: NodeId, subgraph?: Subgraph) => NodeLocatorId;
|
|
34604
34624
|
nodeToNodeLocatorId: (node: LGraphNode) => NodeLocatorId;
|
|
34605
|
-
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) =>
|
|
34625
|
+
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) => NodeId;
|
|
34606
34626
|
nodeLocatorIdToNodeExecutionId: (locatorId: NodeLocatorId, targetSubgraph?: Subgraph) => NodeExecutionId | null;
|
|
34607
34627
|
}, "openWorkflows" | "workflows" | "bookmarkedWorkflows" | "persistedWorkflows" | "modifiedWorkflows">, Pick<{
|
|
34608
34628
|
activeWorkflow: Ref< {
|
|
@@ -36882,7 +36902,8 @@ export declare class ComfyApp {
|
|
|
36882
36902
|
} | undefined;
|
|
36883
36903
|
})[] | undefined;
|
|
36884
36904
|
missingModelCandidates?: {
|
|
36885
|
-
nodeId?:
|
|
36905
|
+
nodeId?: SerializedNodeId | undefined;
|
|
36906
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
36886
36907
|
nodeType: string;
|
|
36887
36908
|
widgetName: string;
|
|
36888
36909
|
isAssetSupported: boolean;
|
|
@@ -36894,7 +36915,7 @@ export declare class ComfyApp {
|
|
|
36894
36915
|
isMissing: boolean | undefined;
|
|
36895
36916
|
}[] | undefined;
|
|
36896
36917
|
missingMediaCandidates?: {
|
|
36897
|
-
nodeId:
|
|
36918
|
+
nodeId: SerializedNodeId;
|
|
36898
36919
|
nodeType: string;
|
|
36899
36920
|
widgetName: string;
|
|
36900
36921
|
mediaType: MediaType;
|
|
@@ -40697,7 +40718,8 @@ export declare class ComfyApp {
|
|
|
40697
40718
|
} | undefined;
|
|
40698
40719
|
})[] | undefined;
|
|
40699
40720
|
missingModelCandidates?: {
|
|
40700
|
-
nodeId?:
|
|
40721
|
+
nodeId?: SerializedNodeId | undefined;
|
|
40722
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
40701
40723
|
nodeType: string;
|
|
40702
40724
|
widgetName: string;
|
|
40703
40725
|
isAssetSupported: boolean;
|
|
@@ -40709,7 +40731,7 @@ export declare class ComfyApp {
|
|
|
40709
40731
|
isMissing: boolean | undefined;
|
|
40710
40732
|
}[] | undefined;
|
|
40711
40733
|
missingMediaCandidates?: {
|
|
40712
|
-
nodeId:
|
|
40734
|
+
nodeId: SerializedNodeId;
|
|
40713
40735
|
nodeType: string;
|
|
40714
40736
|
widgetName: string;
|
|
40715
40737
|
mediaType: MediaType;
|
|
@@ -43019,7 +43041,8 @@ export declare class ComfyApp {
|
|
|
43019
43041
|
} | undefined;
|
|
43020
43042
|
})[] | undefined;
|
|
43021
43043
|
missingModelCandidates?: {
|
|
43022
|
-
nodeId?:
|
|
43044
|
+
nodeId?: SerializedNodeId | undefined;
|
|
43045
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
43023
43046
|
nodeType: string;
|
|
43024
43047
|
widgetName: string;
|
|
43025
43048
|
isAssetSupported: boolean;
|
|
@@ -43031,7 +43054,7 @@ export declare class ComfyApp {
|
|
|
43031
43054
|
isMissing: boolean | undefined;
|
|
43032
43055
|
}[] | undefined;
|
|
43033
43056
|
missingMediaCandidates?: {
|
|
43034
|
-
nodeId:
|
|
43057
|
+
nodeId: SerializedNodeId;
|
|
43035
43058
|
nodeType: string;
|
|
43036
43059
|
widgetName: string;
|
|
43037
43060
|
mediaType: MediaType;
|
|
@@ -46834,7 +46857,8 @@ export declare class ComfyApp {
|
|
|
46834
46857
|
} | undefined;
|
|
46835
46858
|
})[] | undefined;
|
|
46836
46859
|
missingModelCandidates?: {
|
|
46837
|
-
nodeId?:
|
|
46860
|
+
nodeId?: SerializedNodeId | undefined;
|
|
46861
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
46838
46862
|
nodeType: string;
|
|
46839
46863
|
widgetName: string;
|
|
46840
46864
|
isAssetSupported: boolean;
|
|
@@ -46846,7 +46870,7 @@ export declare class ComfyApp {
|
|
|
46846
46870
|
isMissing: boolean | undefined;
|
|
46847
46871
|
}[] | undefined;
|
|
46848
46872
|
missingMediaCandidates?: {
|
|
46849
|
-
nodeId:
|
|
46873
|
+
nodeId: SerializedNodeId;
|
|
46850
46874
|
nodeType: string;
|
|
46851
46875
|
widgetName: string;
|
|
46852
46876
|
mediaType: MediaType;
|
|
@@ -46912,9 +46936,9 @@ export declare class ComfyApp {
|
|
|
46912
46936
|
activeSubgraph: ShallowRef<Raw<Subgraph> | undefined, Raw<Subgraph> | undefined>;
|
|
46913
46937
|
updateActiveGraph: () => void;
|
|
46914
46938
|
executionIdToCurrentId: (id: string) => string | undefined;
|
|
46915
|
-
nodeIdToNodeLocatorId: (nodeId:
|
|
46939
|
+
nodeIdToNodeLocatorId: (nodeId: NodeId, subgraph?: Subgraph) => NodeLocatorId;
|
|
46916
46940
|
nodeToNodeLocatorId: (node: LGraphNode) => NodeLocatorId;
|
|
46917
|
-
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) =>
|
|
46941
|
+
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) => NodeId;
|
|
46918
46942
|
nodeLocatorIdToNodeExecutionId: (locatorId: NodeLocatorId, targetSubgraph?: Subgraph) => NodeExecutionId | null;
|
|
46919
46943
|
}, "attachWorkflow" | "isActive" | "openedWorkflowIndexShift" | "getMostRecentWorkflow" | "openWorkflow" | "openWorkflowsInBackground" | "isOpen" | "closeWorkflow" | "createTemporary" | "createNewTemporary" | "renameWorkflow" | "deleteWorkflow" | "saveWorkflow" | "getWorkflowByPath" | "syncWorkflows" | "reorderWorkflows" | "updateActiveGraph" | "executionIdToCurrentId" | "nodeIdToNodeLocatorId" | "nodeToNodeLocatorId" | "nodeLocatorIdToNodeId" | "nodeLocatorIdToNodeExecutionId" | "saveAs" | "loadWorkflows">>;
|
|
46920
46944
|
|