@comfyorg/comfyui-frontend-types 1.47.5 → 1.47.7
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 +172 -103
- 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
|
*/
|
|
@@ -2343,7 +2340,6 @@ export declare class ComfyApp {
|
|
|
2343
2340
|
'Comfy.Canvas.MouseWheelScroll'?: string | undefined;
|
|
2344
2341
|
'Comfy.VueNodes.Enabled'?: boolean | undefined;
|
|
2345
2342
|
'Comfy.AppBuilder.VueNodeSwitchDismissed'?: boolean | undefined;
|
|
2346
|
-
'Comfy.VueNodes.AutoScaleLayout'?: boolean | undefined;
|
|
2347
2343
|
'Comfy.Assets.UseAssetAPI'?: boolean | undefined;
|
|
2348
2344
|
'Comfy.Queue.QPOV2'?: boolean | undefined;
|
|
2349
2345
|
'Comfy.Queue.ShowRunProgressBar'?: boolean | undefined;
|
|
@@ -2655,9 +2651,11 @@ export declare class ComfyApp {
|
|
|
2655
2651
|
/**
|
|
2656
2652
|
* Create a NodeExecutionId from an array of node IDs
|
|
2657
2653
|
* @param nodeIds Array of node IDs from root to target
|
|
2658
|
-
* @returns A properly formatted NodeExecutionId
|
|
2654
|
+
* @returns A properly formatted NodeExecutionId, or null when any segment is invalid
|
|
2659
2655
|
*/
|
|
2660
|
-
export declare function createNodeExecutionId<const T extends readonly
|
|
2656
|
+
export declare function createNodeExecutionId<const T extends readonly [SerializedNodeId, ...SerializedNodeId[]]>(nodeIds: T): NodeExecutionId;
|
|
2657
|
+
|
|
2658
|
+
export declare function createNodeExecutionId(nodeIds: readonly SerializedNodeId[]): NodeExecutionId | null;
|
|
2661
2659
|
|
|
2662
2660
|
/**
|
|
2663
2661
|
* Create a NodeLocatorId from components
|
|
@@ -2665,7 +2663,7 @@ export declare class ComfyApp {
|
|
|
2665
2663
|
* @param localNodeId The local node ID within that subgraph
|
|
2666
2664
|
* @returns A properly formatted NodeLocatorId
|
|
2667
2665
|
*/
|
|
2668
|
-
export declare function createNodeLocatorId(subgraphUuid: string | null, localNodeId:
|
|
2666
|
+
export declare function createNodeLocatorId(subgraphUuid: string | null, localNodeId: NodeId): NodeLocatorId;
|
|
2669
2667
|
|
|
2670
2668
|
/** Options for {@link LiteGraphGlobal.createNode}. Shallow-copied onto the new node. */
|
|
2671
2669
|
declare interface CreateNodeOptions {
|
|
@@ -3067,7 +3065,7 @@ export declare class ComfyApp {
|
|
|
3067
3065
|
/** The actual node that this DTO wraps. */
|
|
3068
3066
|
readonly node: LGraphNode | SubgraphNode;
|
|
3069
3067
|
/** A list of subgraph instance node IDs from the root graph to the containing instance. @see {@link id} */
|
|
3070
|
-
readonly subgraphNodePath: readonly
|
|
3068
|
+
readonly subgraphNodePath: readonly SerializedNodeId[];
|
|
3071
3069
|
/** A flattened map of all DTOs in this node network. Subgraph instances have been expanded into their inner nodes. */
|
|
3072
3070
|
readonly nodesByExecutionId: Map<ExecutionId, ExecutableLGraphNode>;
|
|
3073
3071
|
/** The actual subgraph instance that contains this node, otherwise undefined. */
|
|
@@ -3103,7 +3101,7 @@ export declare class ComfyApp {
|
|
|
3103
3101
|
/** The actual node that this DTO wraps. */
|
|
3104
3102
|
node: LGraphNode | SubgraphNode,
|
|
3105
3103
|
/** A list of subgraph instance node IDs from the root graph to the containing instance. @see {@link id} */
|
|
3106
|
-
subgraphNodePath: readonly
|
|
3104
|
+
subgraphNodePath: readonly SerializedNodeId[],
|
|
3107
3105
|
/** A flattened map of all DTOs in this node network. Subgraph instances have been expanded into their inner nodes. */
|
|
3108
3106
|
nodesByExecutionId: Map<ExecutionId, ExecutableLGraphNode>,
|
|
3109
3107
|
/** The actual subgraph instance that contains this node, otherwise undefined. */
|
|
@@ -3205,7 +3203,7 @@ export declare class ComfyApp {
|
|
|
3205
3203
|
}
|
|
3206
3204
|
|
|
3207
3205
|
declare interface ExportedSubgraphIONode {
|
|
3208
|
-
id:
|
|
3206
|
+
id: SerializedNodeId;
|
|
3209
3207
|
bounding: [number, number, number, number];
|
|
3210
3208
|
pinned?: boolean;
|
|
3211
3209
|
}
|
|
@@ -3213,7 +3211,7 @@ export declare class ComfyApp {
|
|
|
3213
3211
|
/** A reference to a node widget shown in the parent graph */
|
|
3214
3212
|
declare interface ExposedWidget {
|
|
3215
3213
|
/** The ID of the node (inside the subgraph) that the widget belongs to. */
|
|
3216
|
-
id:
|
|
3214
|
+
id: SerializedNodeId;
|
|
3217
3215
|
/** The name of the widget to show in the parent graph. */
|
|
3218
3216
|
name: string;
|
|
3219
3217
|
}
|
|
@@ -3230,7 +3228,7 @@ export declare class ComfyApp {
|
|
|
3230
3228
|
set: <T = unknown>(id: string, value: T) => void;
|
|
3231
3229
|
};
|
|
3232
3230
|
workflow: ReturnType<typeof useWorkflowStore>;
|
|
3233
|
-
lastNodeErrors: Record<
|
|
3231
|
+
lastNodeErrors: Record<string, NodeError> | null;
|
|
3234
3232
|
lastExecutionError: ExecutionErrorWsMessage | null;
|
|
3235
3233
|
/**
|
|
3236
3234
|
* Renders a markdown string to sanitized HTML.
|
|
@@ -4042,13 +4040,15 @@ export declare class ComfyApp {
|
|
|
4042
4040
|
value: string;
|
|
4043
4041
|
}
|
|
4044
4042
|
|
|
4045
|
-
declare type ISerialisableNodeInput = Omit<INodeInputSlot, 'boundingRect' | 'widget'> & {
|
|
4043
|
+
declare type ISerialisableNodeInput = Omit<INodeInputSlot, 'boundingRect' | 'widget' | 'link' | '_floatingLinks'> & {
|
|
4044
|
+
link?: number | null;
|
|
4046
4045
|
widget?: {
|
|
4047
4046
|
name: string;
|
|
4048
4047
|
};
|
|
4049
4048
|
};
|
|
4050
4049
|
|
|
4051
|
-
declare type ISerialisableNodeOutput = Omit<INodeOutputSlot, 'boundingRect' | '_data'> & {
|
|
4050
|
+
declare type ISerialisableNodeOutput = Omit<INodeOutputSlot, 'boundingRect' | '_data' | 'links' | '_floatingLinks'> & {
|
|
4051
|
+
links?: number[] | null;
|
|
4052
4052
|
widget?: {
|
|
4053
4053
|
name: string;
|
|
4054
4054
|
};
|
|
@@ -4059,8 +4059,8 @@ export declare class ComfyApp {
|
|
|
4059
4059
|
* Maintained for backwards compat
|
|
4060
4060
|
*/
|
|
4061
4061
|
declare interface ISerialisedGraph extends BaseExportedGraph {
|
|
4062
|
-
last_node_id:
|
|
4063
|
-
last_link_id:
|
|
4062
|
+
last_node_id: SerializedNodeId;
|
|
4063
|
+
last_link_id: number;
|
|
4064
4064
|
nodes: ISerialisedNode[];
|
|
4065
4065
|
links: SerialisedLLinkArray[];
|
|
4066
4066
|
floatingLinks?: SerialisableLLink[];
|
|
@@ -4082,7 +4082,7 @@ export declare class ComfyApp {
|
|
|
4082
4082
|
/** Serialised LGraphNode */
|
|
4083
4083
|
declare interface ISerialisedNode {
|
|
4084
4084
|
title?: string;
|
|
4085
|
-
id:
|
|
4085
|
+
id: SerializedNodeId;
|
|
4086
4086
|
type: string;
|
|
4087
4087
|
pos: Point;
|
|
4088
4088
|
size: Size;
|
|
@@ -4262,6 +4262,14 @@ export declare class ComfyApp {
|
|
|
4262
4262
|
socketless?: boolean;
|
|
4263
4263
|
/** If `true`, the widget will not be rendered by the Vue renderer. */
|
|
4264
4264
|
canvasOnly?: boolean;
|
|
4265
|
+
/**
|
|
4266
|
+
* If `true`, the widget still renders on the node but is omitted from the
|
|
4267
|
+
* right side panel. Unlike {@link IWidgetOptions.canvasOnly}, the node body
|
|
4268
|
+
* keeps rendering it via the Vue renderer. Used for widgets that hold
|
|
4269
|
+
* non-syncable state (e.g. a Three.js viewport) where a second instance in
|
|
4270
|
+
* the panel would diverge from the one on the node.
|
|
4271
|
+
*/
|
|
4272
|
+
hideInPanel?: boolean;
|
|
4265
4273
|
/** Used as a temporary override for determining the asset type in vue mode*/
|
|
4266
4274
|
nodeType?: string;
|
|
4267
4275
|
/**
|
|
@@ -4447,8 +4455,8 @@ export declare class ComfyApp {
|
|
|
4447
4455
|
get last_node_id(): number;
|
|
4448
4456
|
set last_node_id(value: number);
|
|
4449
4457
|
/** @deprecated See {@link state}.{@link LGraphState.lastLinkId lastLinkId} */
|
|
4450
|
-
get last_link_id():
|
|
4451
|
-
set last_link_id(value:
|
|
4458
|
+
get last_link_id(): LinkId;
|
|
4459
|
+
set last_link_id(value: LinkId);
|
|
4452
4460
|
onNodeAdded?(node: LGraphNode): void;
|
|
4453
4461
|
onNodeRemoved?(node: LGraphNode): void;
|
|
4454
4462
|
onTrigger?: LGraphTriggerHandler;
|
|
@@ -4688,9 +4696,9 @@ export declare class ComfyApp {
|
|
|
4688
4696
|
* @param pos Position in graph space
|
|
4689
4697
|
* @param before The existing link segment (reroute, link) that will be after this reroute,
|
|
4690
4698
|
* going from the node output to input.
|
|
4691
|
-
* @returns The newly created reroute
|
|
4699
|
+
* @returns The newly created reroute, or undefined when the segment cannot be resolved.
|
|
4692
4700
|
*/
|
|
4693
|
-
createReroute(pos: Point, before: LinkSegment): Reroute;
|
|
4701
|
+
createReroute(pos: Point, before: LinkSegment): Reroute | undefined;
|
|
4694
4702
|
/**
|
|
4695
4703
|
* Removes a reroute from the graph
|
|
4696
4704
|
* @param id ID of reroute to remove
|
|
@@ -5036,7 +5044,7 @@ export declare class ComfyApp {
|
|
|
5036
5044
|
dirty_canvas: boolean;
|
|
5037
5045
|
dirty_bgcanvas: boolean;
|
|
5038
5046
|
/** A map of nodes that require selective-redraw */
|
|
5039
|
-
dirty_nodes: Map<
|
|
5047
|
+
dirty_nodes: Map<SerializedNodeId, LGraphNode>;
|
|
5040
5048
|
dirty_area?: Rect | null;
|
|
5041
5049
|
/** @deprecated Unused */
|
|
5042
5050
|
node_in_panel?: LGraphNode | null;
|
|
@@ -5703,7 +5711,7 @@ export declare class ComfyApp {
|
|
|
5703
5711
|
/** Ghost placement mode has started or ended. */
|
|
5704
5712
|
'litegraph:ghost-placement': {
|
|
5705
5713
|
active: boolean;
|
|
5706
|
-
nodeId:
|
|
5714
|
+
nodeId: SerializedNodeId;
|
|
5707
5715
|
};
|
|
5708
5716
|
}
|
|
5709
5717
|
|
|
@@ -5725,7 +5733,7 @@ export declare class ComfyApp {
|
|
|
5725
5733
|
*/
|
|
5726
5734
|
selectionChanged: boolean;
|
|
5727
5735
|
/** ID of node currently in ghost placement mode (semi-transparent, following cursor). */
|
|
5728
|
-
ghostNodeId:
|
|
5736
|
+
ghostNodeId: SerializedNodeId | null;
|
|
5729
5737
|
}
|
|
5730
5738
|
|
|
5731
5739
|
/** Configuration used by {@link LGraph} `config`. */
|
|
@@ -5779,23 +5787,23 @@ export declare class ComfyApp {
|
|
|
5779
5787
|
node: LGraphNode;
|
|
5780
5788
|
};
|
|
5781
5789
|
'node:property:changed': {
|
|
5782
|
-
nodeId:
|
|
5790
|
+
nodeId: SerializedNodeId;
|
|
5783
5791
|
property: string;
|
|
5784
5792
|
oldValue: unknown;
|
|
5785
5793
|
newValue: unknown;
|
|
5786
5794
|
};
|
|
5787
5795
|
'node:slot-errors:changed': {
|
|
5788
|
-
nodeId:
|
|
5796
|
+
nodeId: SerializedNodeId;
|
|
5789
5797
|
};
|
|
5790
5798
|
'node:slot-links:changed': {
|
|
5791
|
-
nodeId:
|
|
5799
|
+
nodeId: SerializedNodeId;
|
|
5792
5800
|
slotType: NodeSlotType;
|
|
5793
5801
|
slotIndex: number;
|
|
5794
5802
|
connected: boolean;
|
|
5795
5803
|
linkId: number;
|
|
5796
5804
|
};
|
|
5797
5805
|
'node:slot-label:changed': {
|
|
5798
|
-
nodeId:
|
|
5806
|
+
nodeId: SerializedNodeId;
|
|
5799
5807
|
slotType?: NodeSlotType;
|
|
5800
5808
|
};
|
|
5801
5809
|
}
|
|
@@ -7107,7 +7115,9 @@ export declare class ComfyApp {
|
|
|
7107
7115
|
CENTER = 5
|
|
7108
7116
|
}
|
|
7109
7117
|
|
|
7110
|
-
declare type LinkId = number
|
|
7118
|
+
export declare type LinkId = number & {
|
|
7119
|
+
readonly __brand: 'LinkId';
|
|
7120
|
+
};
|
|
7111
7121
|
|
|
7112
7122
|
/** The marker in the middle of a link */
|
|
7113
7123
|
declare enum LinkMarkerShape {
|
|
@@ -7186,7 +7196,7 @@ export declare class ComfyApp {
|
|
|
7186
7196
|
*/
|
|
7187
7197
|
declare class LiteGraphGlobal {
|
|
7188
7198
|
SlotShape: typeof SlotShape;
|
|
7189
|
-
SlotDirection: typeof
|
|
7199
|
+
SlotDirection: typeof SlotDirection_2;
|
|
7190
7200
|
SlotType: typeof SlotType;
|
|
7191
7201
|
LabelPosition: typeof LabelPosition;
|
|
7192
7202
|
/** Used in serialised graphs at one point. */
|
|
@@ -7633,7 +7643,7 @@ export declare class ComfyApp {
|
|
|
7633
7643
|
get originIsIoNode(): boolean;
|
|
7634
7644
|
/** `true` if this link is connected to a subgraph output node (the actual target is in a different graph). */
|
|
7635
7645
|
get targetIsIoNode(): boolean;
|
|
7636
|
-
constructor(id: LinkId, type: ISlotType, origin_id:
|
|
7646
|
+
constructor(id: LinkId, type: ISlotType, origin_id: SerializedNodeId, origin_slot: number, target_id: SerializedNodeId, target_slot: number, parentId?: RerouteId);
|
|
7637
7647
|
/** @deprecated Use {@link LLink.create} */
|
|
7638
7648
|
static createFromArray(data: SerialisedLLinkArray): LLink;
|
|
7639
7649
|
/**
|
|
@@ -7707,14 +7717,14 @@ export declare class ComfyApp {
|
|
|
7707
7717
|
* @param outputIndex The array index of the node output
|
|
7708
7718
|
* @returns `true` if the origin matches, otherwise `false`.
|
|
7709
7719
|
*/
|
|
7710
|
-
hasOrigin(nodeId:
|
|
7720
|
+
hasOrigin(nodeId: SerializedNodeId, outputIndex: number): boolean;
|
|
7711
7721
|
/**
|
|
7712
7722
|
* Checks if the specified node id and input index are this link's target (input side).
|
|
7713
7723
|
* @param nodeId ID of the node to check
|
|
7714
7724
|
* @param inputIndex The array index of the node input
|
|
7715
7725
|
* @returns `true` if the target matches, otherwise `false`.
|
|
7716
7726
|
*/
|
|
7717
|
-
hasTarget(nodeId:
|
|
7727
|
+
hasTarget(nodeId: SerializedNodeId, inputIndex: number): boolean;
|
|
7718
7728
|
/**
|
|
7719
7729
|
* Creates a floating link from this link.
|
|
7720
7730
|
* @param slotType The side of the link that is still connected
|
|
@@ -7803,7 +7813,7 @@ export declare class ComfyApp {
|
|
|
7803
7813
|
* The same file name may appear multiple times across different nodes.
|
|
7804
7814
|
*/
|
|
7805
7815
|
declare interface MissingMediaCandidate {
|
|
7806
|
-
nodeId:
|
|
7816
|
+
nodeId: SerializedNodeId;
|
|
7807
7817
|
nodeType: string;
|
|
7808
7818
|
widgetName: string;
|
|
7809
7819
|
mediaType: MediaType;
|
|
@@ -7825,7 +7835,8 @@ export declare class ComfyApp {
|
|
|
7825
7835
|
*/
|
|
7826
7836
|
declare interface MissingModelCandidate {
|
|
7827
7837
|
/** Undefined for workflow-level models not tied to a specific node. */
|
|
7828
|
-
nodeId?:
|
|
7838
|
+
nodeId?: SerializedNodeId;
|
|
7839
|
+
sourceExecutionId?: NodeExecutionId;
|
|
7829
7840
|
nodeType: string;
|
|
7830
7841
|
widgetName: string;
|
|
7831
7842
|
isAssetSupported: boolean;
|
|
@@ -8019,10 +8030,12 @@ export declare class ComfyApp {
|
|
|
8019
8030
|
readonly __brand: 'NodeExecutionId';
|
|
8020
8031
|
};
|
|
8021
8032
|
|
|
8022
|
-
declare type NodeId =
|
|
8033
|
+
export declare type NodeId = string & {
|
|
8034
|
+
readonly __brand: 'NodeId';
|
|
8035
|
+
};
|
|
8023
8036
|
|
|
8024
8037
|
declare interface NodeLike {
|
|
8025
|
-
id:
|
|
8038
|
+
id: SerializedNodeId;
|
|
8026
8039
|
canConnectTo(node: NodeLike, toSlot: INodeInputSlot | SubgraphIO, fromSlot: INodeOutputSlot | SubgraphIO): boolean;
|
|
8027
8040
|
}
|
|
8028
8041
|
|
|
@@ -8049,7 +8062,7 @@ export declare class ComfyApp {
|
|
|
8049
8062
|
|
|
8050
8063
|
declare interface NodePropertyChangedEvent {
|
|
8051
8064
|
type: 'node:property:changed';
|
|
8052
|
-
nodeId:
|
|
8065
|
+
nodeId: SerializedNodeId;
|
|
8053
8066
|
property: string;
|
|
8054
8067
|
oldValue: unknown;
|
|
8055
8068
|
newValue: unknown;
|
|
@@ -8065,18 +8078,18 @@ export declare class ComfyApp {
|
|
|
8065
8078
|
|
|
8066
8079
|
declare interface NodeSlotErrorsChangedEvent {
|
|
8067
8080
|
type: 'node:slot-errors:changed';
|
|
8068
|
-
nodeId:
|
|
8081
|
+
nodeId: SerializedNodeId;
|
|
8069
8082
|
}
|
|
8070
8083
|
|
|
8071
8084
|
declare interface NodeSlotLabelChangedEvent {
|
|
8072
8085
|
type: 'node:slot-label:changed';
|
|
8073
|
-
nodeId:
|
|
8086
|
+
nodeId: SerializedNodeId;
|
|
8074
8087
|
slotType?: NodeSlotType;
|
|
8075
8088
|
}
|
|
8076
8089
|
|
|
8077
8090
|
declare interface NodeSlotLinksChangedEvent {
|
|
8078
8091
|
type: 'node:slot-links:changed';
|
|
8079
|
-
nodeId:
|
|
8092
|
+
nodeId: SerializedNodeId;
|
|
8080
8093
|
slotType: NodeSlotType;
|
|
8081
8094
|
slotIndex: number;
|
|
8082
8095
|
connected: boolean;
|
|
@@ -8211,7 +8224,9 @@ export declare class ComfyApp {
|
|
|
8211
8224
|
* @param id The NodeExecutionId to parse
|
|
8212
8225
|
* @returns Array of node IDs from root to target, or null if not an execution ID
|
|
8213
8226
|
*/
|
|
8214
|
-
export declare function parseNodeExecutionId(id: string):
|
|
8227
|
+
export declare function parseNodeExecutionId(id: string): NodeId[] | null;
|
|
8228
|
+
|
|
8229
|
+
export declare function parseNodeId(value: unknown): NodeId | null;
|
|
8215
8230
|
|
|
8216
8231
|
/**
|
|
8217
8232
|
* Parse a NodeLocatorId into its components
|
|
@@ -8220,9 +8235,11 @@ export declare class ComfyApp {
|
|
|
8220
8235
|
*/
|
|
8221
8236
|
export declare function parseNodeLocatorId(id: string): {
|
|
8222
8237
|
subgraphUuid: string | null;
|
|
8223
|
-
localNodeId:
|
|
8238
|
+
localNodeId: NodeId;
|
|
8224
8239
|
} | null;
|
|
8225
8240
|
|
|
8241
|
+
declare type PaymentIntentSource = 'subscription_required' | 'out_of_credits' | 'top_up_blocked' | 'deep_link' | 'subscribe_to_run' | 'subscribe_now_button' | 'upgrade_to_add_credits' | 'settings_billing_panel' | 'avatar_menu_plans' | 'team_members_panel' | 'invite_member_upsell' | 'upload_model_upgrade' | 'team_upgrade_resume';
|
|
8242
|
+
|
|
8226
8243
|
declare interface PendingWarnings {
|
|
8227
8244
|
missingNodeTypes?: MissingNodeType[];
|
|
8228
8245
|
missingModelCandidates?: MissingModelCandidate[];
|
|
@@ -8251,7 +8268,7 @@ export declare class ComfyApp {
|
|
|
8251
8268
|
* May contain other {@link Positionable} objects.
|
|
8252
8269
|
*/
|
|
8253
8270
|
declare interface Positionable extends Parent<Positionable>, HasBoundingRect {
|
|
8254
|
-
readonly id: NodeId | RerouteId |
|
|
8271
|
+
readonly id: NodeId | RerouteId | GroupId;
|
|
8255
8272
|
/**
|
|
8256
8273
|
* Position in graph coordinates. This may be the top-left corner,
|
|
8257
8274
|
* the centre, or another point depending on concrete type.
|
|
@@ -8596,7 +8613,6 @@ export declare class ComfyApp {
|
|
|
8596
8613
|
* and a `WeakRef` to a {@link LinkNetwork} to resolve them.
|
|
8597
8614
|
*/
|
|
8598
8615
|
declare class Reroute implements Positionable, LinkSegment, Serialisable<SerialisableReroute> {
|
|
8599
|
-
readonly id: RerouteId;
|
|
8600
8616
|
static radius: number;
|
|
8601
8617
|
/** Maximum distance from reroutes to their bezier curve control points. */
|
|
8602
8618
|
static maxSplineOffset: number;
|
|
@@ -8604,6 +8620,7 @@ export declare class ComfyApp {
|
|
|
8604
8620
|
static slotRadius: number;
|
|
8605
8621
|
/** Distance from reroute centre to slot centre. */
|
|
8606
8622
|
static get slotOffset(): number;
|
|
8623
|
+
readonly id: RerouteId;
|
|
8607
8624
|
/** The network this reroute belongs to. Contains all valid links and reroutes. */
|
|
8608
8625
|
private readonly network;
|
|
8609
8626
|
private parentIdInternal?;
|
|
@@ -8780,7 +8797,9 @@ export declare class ComfyApp {
|
|
|
8780
8797
|
asSerialisable(): SerialisableReroute;
|
|
8781
8798
|
}
|
|
8782
8799
|
|
|
8783
|
-
declare type RerouteId = number
|
|
8800
|
+
export declare type RerouteId = number & {
|
|
8801
|
+
readonly __brand: 'RerouteId';
|
|
8802
|
+
};
|
|
8784
8803
|
|
|
8785
8804
|
declare type ResolvedConnection = BaseResolvedConnection & ((ResolvedSubgraphInput & ResolvedNormalOutput) | (ResolvedNormalInput & ResolvedSubgraphOutput) | (ResolvedNormalInput & ResolvedNormalOutput));
|
|
8786
8805
|
|
|
@@ -8853,7 +8872,7 @@ export declare class ComfyApp {
|
|
|
8853
8872
|
declare interface SerialisableGraph extends BaseExportedGraph {
|
|
8854
8873
|
/** Schema version. @remarks Version bump should add to const union, which is used to narrow type during deserialise. */
|
|
8855
8874
|
version: 0 | 1;
|
|
8856
|
-
state:
|
|
8875
|
+
state: SerialisableGraphState;
|
|
8857
8876
|
groups?: ISerialisedGroup[];
|
|
8858
8877
|
nodes?: ISerialisedNode[];
|
|
8859
8878
|
links?: SerialisableLLink[];
|
|
@@ -8862,40 +8881,49 @@ export declare class ComfyApp {
|
|
|
8862
8881
|
extra?: LGraphExtra;
|
|
8863
8882
|
}
|
|
8864
8883
|
|
|
8884
|
+
declare interface SerialisableGraphState {
|
|
8885
|
+
lastGroupId: GroupId;
|
|
8886
|
+
lastNodeId: number;
|
|
8887
|
+
lastLinkId: number;
|
|
8888
|
+
lastRerouteId: number;
|
|
8889
|
+
}
|
|
8890
|
+
|
|
8865
8891
|
declare interface SerialisableLLink {
|
|
8866
8892
|
/** Link ID */
|
|
8867
|
-
id:
|
|
8893
|
+
id: number;
|
|
8868
8894
|
/** Output node ID */
|
|
8869
|
-
origin_id:
|
|
8895
|
+
origin_id: SerializedNodeId;
|
|
8870
8896
|
/** Output slot index */
|
|
8871
8897
|
origin_slot: number;
|
|
8872
8898
|
/** Input node ID */
|
|
8873
|
-
target_id:
|
|
8899
|
+
target_id: SerializedNodeId;
|
|
8874
8900
|
/** Input slot index */
|
|
8875
8901
|
target_slot: number;
|
|
8876
8902
|
/** Data type of the link */
|
|
8877
8903
|
type: ISlotType;
|
|
8878
8904
|
/** ID of the last reroute (from input to output) that this link passes through, otherwise `undefined` */
|
|
8879
|
-
parentId?:
|
|
8905
|
+
parentId?: number;
|
|
8880
8906
|
}
|
|
8881
8907
|
|
|
8882
8908
|
declare interface SerialisableReroute {
|
|
8883
|
-
id:
|
|
8884
|
-
parentId?:
|
|
8909
|
+
id: number;
|
|
8910
|
+
parentId?: number;
|
|
8885
8911
|
pos: Point;
|
|
8886
|
-
linkIds:
|
|
8912
|
+
linkIds: number[];
|
|
8887
8913
|
floating?: FloatingRerouteSlot;
|
|
8888
8914
|
}
|
|
8889
8915
|
|
|
8890
8916
|
declare type SerialisedLLinkArray = [
|
|
8891
|
-
id:
|
|
8892
|
-
origin_id:
|
|
8917
|
+
id: number,
|
|
8918
|
+
origin_id: SerializedNodeId,
|
|
8893
8919
|
origin_slot: number,
|
|
8894
|
-
target_id:
|
|
8920
|
+
target_id: SerializedNodeId,
|
|
8895
8921
|
target_slot: number,
|
|
8896
8922
|
type: ISlotType
|
|
8897
8923
|
];
|
|
8898
8924
|
|
|
8925
|
+
export declare type SerializedNodeId = number | string;
|
|
8926
|
+
|
|
8899
8927
|
declare type SettingCustomRenderer = (name: string, setter: (v: unknown) => void, value: unknown, attrs?: Record<string, unknown>) => HTMLElement;
|
|
8900
8928
|
|
|
8901
8929
|
declare type SettingInputType = 'boolean' | 'number' | 'slider' | 'knob' | 'combo' | 'radio' | 'text' | 'image' | 'color' | 'url' | 'hidden' | 'backgroundImage';
|
|
@@ -8910,6 +8938,7 @@ export declare class ComfyApp {
|
|
|
8910
8938
|
defaultValue: TValue | (() => TValue);
|
|
8911
8939
|
defaultsByInstallVersion?: Record<`${number}.${number}.${number}`, TValue>;
|
|
8912
8940
|
onChange?(newValue: TValue, oldValue?: TValue): void;
|
|
8941
|
+
telemetry?: SettingTelemetryOptions;
|
|
8913
8942
|
category?: string[];
|
|
8914
8943
|
experimental?: boolean;
|
|
8915
8944
|
deprecated?: boolean;
|
|
@@ -8922,6 +8951,14 @@ export declare class ComfyApp {
|
|
|
8922
8951
|
|
|
8923
8952
|
export declare type Settings = z.infer<typeof zSettings>;
|
|
8924
8953
|
|
|
8954
|
+
declare type SettingTelemetryOptions = {
|
|
8955
|
+
trackChanges: false;
|
|
8956
|
+
includeValues?: never;
|
|
8957
|
+
} | {
|
|
8958
|
+
trackChanges?: true;
|
|
8959
|
+
includeValues?: boolean;
|
|
8960
|
+
};
|
|
8961
|
+
|
|
8925
8962
|
declare type ShareableAssetsResponse = z.infer<typeof zShareableAssetsResponse>;
|
|
8926
8963
|
|
|
8927
8964
|
declare interface ShowDialogOptions<H extends Component = Component, B extends Component = Component, F extends Component = Component> {
|
|
@@ -8993,12 +9030,19 @@ export declare class ComfyApp {
|
|
|
8993
9030
|
renderingColor(colorContext: DefaultConnectionColors): CanvasColour;
|
|
8994
9031
|
}
|
|
8995
9032
|
|
|
9033
|
+
export declare type SlotDirection = 'input' | 'output';
|
|
9034
|
+
|
|
8996
9035
|
/** @see LinkDirection */
|
|
8997
|
-
declare enum
|
|
9036
|
+
declare enum SlotDirection_2 {
|
|
8998
9037
|
}
|
|
8999
9038
|
|
|
9000
|
-
|
|
9001
|
-
|
|
9039
|
+
export declare type SlotId = string & {
|
|
9040
|
+
readonly __brand: 'SlotId';
|
|
9041
|
+
};
|
|
9042
|
+
|
|
9043
|
+
export declare function slotId(nodeId: NodeId, direction: SlotDirection, index: SlotIndex): SlotId;
|
|
9044
|
+
|
|
9045
|
+
export declare type SlotIndex = number;
|
|
9002
9046
|
|
|
9003
9047
|
/** @see RenderShape */
|
|
9004
9048
|
declare enum SlotShape {
|
|
@@ -9222,7 +9266,7 @@ export declare class ComfyApp {
|
|
|
9222
9266
|
/** The data type this slot uses. Unlike nodes, this does not support legacy numeric types. */
|
|
9223
9267
|
type: string;
|
|
9224
9268
|
/** Links connected to this slot, or `undefined` if not connected. An output slot should only ever have one link. */
|
|
9225
|
-
linkIds?:
|
|
9269
|
+
linkIds?: number[];
|
|
9226
9270
|
}
|
|
9227
9271
|
|
|
9228
9272
|
declare abstract class SubgraphIONodeBase<TSlot extends SubgraphInput | SubgraphOutput> implements Positionable, Hoverable, Serialisable<ExportedSubgraphIONode> {
|
|
@@ -9384,7 +9428,7 @@ export declare class ComfyApp {
|
|
|
9384
9428
|
* @returns The output node if found, otherwise undefined.
|
|
9385
9429
|
*/
|
|
9386
9430
|
resolveSubgraphOutputLink(slot: number): ResolvedConnection | undefined;
|
|
9387
|
-
getInnerNodes(executableNodes: Map<ExecutionId, ExecutableLGraphNode>, subgraphNodePath?: readonly
|
|
9431
|
+
getInnerNodes(executableNodes: Map<ExecutionId, ExecutableLGraphNode>, subgraphNodePath?: readonly SerializedNodeId[], nodes?: ExecutableLGraphNode[], visited?: Set<SubgraphNode>): ExecutableLGraphNode[];
|
|
9388
9432
|
removeWidget(widget: IBaseWidget): void;
|
|
9389
9433
|
ensureWidgetRemoved(widget: IBaseWidget): void;
|
|
9390
9434
|
onRemoved(): void;
|
|
@@ -9487,7 +9531,15 @@ export declare class ComfyApp {
|
|
|
9487
9531
|
editorAlpha?: number;
|
|
9488
9532
|
}
|
|
9489
9533
|
|
|
9490
|
-
declare
|
|
9534
|
+
declare interface SubscriptionDialogOptions {
|
|
9535
|
+
reason?: PaymentIntentSource;
|
|
9536
|
+
/**
|
|
9537
|
+
* Forces the unified pricing dialog to open on a specific plan tab,
|
|
9538
|
+
* overriding the workspace-derived default (e.g. an "Upgrade to Team" CTA
|
|
9539
|
+
* always lands on the team tab even from a personal workspace).
|
|
9540
|
+
*/
|
|
9541
|
+
planMode?: 'personal' | 'team';
|
|
9542
|
+
}
|
|
9491
9543
|
|
|
9492
9544
|
export declare type SystemStats = z.infer<typeof zSystemStats>;
|
|
9493
9545
|
|
|
@@ -9688,6 +9740,14 @@ export declare class ComfyApp {
|
|
|
9688
9740
|
connectToRerouteOutput(): void;
|
|
9689
9741
|
}
|
|
9690
9742
|
|
|
9743
|
+
export declare function toLinkId(value: number): LinkId;
|
|
9744
|
+
|
|
9745
|
+
export declare function toNodeId(value: ToNodeIdInput): NodeId;
|
|
9746
|
+
|
|
9747
|
+
declare type ToNodeIdInput = number | (string & {
|
|
9748
|
+
readonly __brand?: never;
|
|
9749
|
+
});
|
|
9750
|
+
|
|
9691
9751
|
/** Connecting TO an output slot. */
|
|
9692
9752
|
declare class ToOutputFromIoNodeLink implements RenderLink {
|
|
9693
9753
|
readonly network: LinkNetwork;
|
|
@@ -9760,6 +9820,8 @@ export declare class ComfyApp {
|
|
|
9760
9820
|
tooltip?: string;
|
|
9761
9821
|
}
|
|
9762
9822
|
|
|
9823
|
+
export declare function toRerouteId(value: number): RerouteId;
|
|
9824
|
+
|
|
9763
9825
|
/**
|
|
9764
9826
|
* Widget for hierarchical tree selection.
|
|
9765
9827
|
* This widget only has a Vue implementation.
|
|
@@ -9784,9 +9846,7 @@ export declare class ComfyApp {
|
|
|
9784
9846
|
showApiNodesSignInDialog: (apiNodeNames: string[]) => Promise<boolean>;
|
|
9785
9847
|
showSignInDialog: () => Promise<boolean>;
|
|
9786
9848
|
showPublishDialog: () => Promise<void>;
|
|
9787
|
-
showSubscriptionRequiredDialog: (options?:
|
|
9788
|
-
reason?: SubscriptionDialogReason;
|
|
9789
|
-
}) => Promise<void>;
|
|
9849
|
+
showSubscriptionRequiredDialog: (options?: SubscriptionDialogOptions) => Promise<void>;
|
|
9790
9850
|
showTopUpCreditsDialog: (options?: {
|
|
9791
9851
|
isInsufficientCredits?: boolean;
|
|
9792
9852
|
}) => Promise<DialogInstance | undefined>;
|
|
@@ -12258,7 +12318,8 @@ export declare class ComfyApp {
|
|
|
12258
12318
|
} | undefined;
|
|
12259
12319
|
})[] | undefined;
|
|
12260
12320
|
missingModelCandidates?: {
|
|
12261
|
-
nodeId?:
|
|
12321
|
+
nodeId?: SerializedNodeId | undefined;
|
|
12322
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
12262
12323
|
nodeType: string;
|
|
12263
12324
|
widgetName: string;
|
|
12264
12325
|
isAssetSupported: boolean;
|
|
@@ -12270,7 +12331,7 @@ export declare class ComfyApp {
|
|
|
12270
12331
|
isMissing: boolean | undefined;
|
|
12271
12332
|
}[] | undefined;
|
|
12272
12333
|
missingMediaCandidates?: {
|
|
12273
|
-
nodeId:
|
|
12334
|
+
nodeId: SerializedNodeId;
|
|
12274
12335
|
nodeType: string;
|
|
12275
12336
|
widgetName: string;
|
|
12276
12337
|
mediaType: MediaType;
|
|
@@ -16073,7 +16134,8 @@ export declare class ComfyApp {
|
|
|
16073
16134
|
} | undefined;
|
|
16074
16135
|
})[] | undefined;
|
|
16075
16136
|
missingModelCandidates?: {
|
|
16076
|
-
nodeId?:
|
|
16137
|
+
nodeId?: SerializedNodeId | undefined;
|
|
16138
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
16077
16139
|
nodeType: string;
|
|
16078
16140
|
widgetName: string;
|
|
16079
16141
|
isAssetSupported: boolean;
|
|
@@ -16085,7 +16147,7 @@ export declare class ComfyApp {
|
|
|
16085
16147
|
isMissing: boolean | undefined;
|
|
16086
16148
|
}[] | undefined;
|
|
16087
16149
|
missingMediaCandidates?: {
|
|
16088
|
-
nodeId:
|
|
16150
|
+
nodeId: SerializedNodeId;
|
|
16089
16151
|
nodeType: string;
|
|
16090
16152
|
widgetName: string;
|
|
16091
16153
|
mediaType: MediaType;
|
|
@@ -18395,7 +18457,8 @@ export declare class ComfyApp {
|
|
|
18395
18457
|
} | undefined;
|
|
18396
18458
|
})[] | undefined;
|
|
18397
18459
|
missingModelCandidates?: {
|
|
18398
|
-
nodeId?:
|
|
18460
|
+
nodeId?: SerializedNodeId | undefined;
|
|
18461
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
18399
18462
|
nodeType: string;
|
|
18400
18463
|
widgetName: string;
|
|
18401
18464
|
isAssetSupported: boolean;
|
|
@@ -18407,7 +18470,7 @@ export declare class ComfyApp {
|
|
|
18407
18470
|
isMissing: boolean | undefined;
|
|
18408
18471
|
}[] | undefined;
|
|
18409
18472
|
missingMediaCandidates?: {
|
|
18410
|
-
nodeId:
|
|
18473
|
+
nodeId: SerializedNodeId;
|
|
18411
18474
|
nodeType: string;
|
|
18412
18475
|
widgetName: string;
|
|
18413
18476
|
mediaType: MediaType;
|
|
@@ -22210,7 +22273,8 @@ export declare class ComfyApp {
|
|
|
22210
22273
|
} | undefined;
|
|
22211
22274
|
})[] | undefined;
|
|
22212
22275
|
missingModelCandidates?: {
|
|
22213
|
-
nodeId?:
|
|
22276
|
+
nodeId?: SerializedNodeId | undefined;
|
|
22277
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
22214
22278
|
nodeType: string;
|
|
22215
22279
|
widgetName: string;
|
|
22216
22280
|
isAssetSupported: boolean;
|
|
@@ -22222,7 +22286,7 @@ export declare class ComfyApp {
|
|
|
22222
22286
|
isMissing: boolean | undefined;
|
|
22223
22287
|
}[] | undefined;
|
|
22224
22288
|
missingMediaCandidates?: {
|
|
22225
|
-
nodeId:
|
|
22289
|
+
nodeId: SerializedNodeId;
|
|
22226
22290
|
nodeType: string;
|
|
22227
22291
|
widgetName: string;
|
|
22228
22292
|
mediaType: MediaType;
|
|
@@ -22288,9 +22352,9 @@ export declare class ComfyApp {
|
|
|
22288
22352
|
activeSubgraph: ShallowRef<Raw<Subgraph> | undefined, Raw<Subgraph> | undefined>;
|
|
22289
22353
|
updateActiveGraph: () => void;
|
|
22290
22354
|
executionIdToCurrentId: (id: string) => string | undefined;
|
|
22291
|
-
nodeIdToNodeLocatorId: (nodeId:
|
|
22355
|
+
nodeIdToNodeLocatorId: (nodeId: NodeId, subgraph?: Subgraph) => NodeLocatorId;
|
|
22292
22356
|
nodeToNodeLocatorId: (node: LGraphNode) => NodeLocatorId;
|
|
22293
|
-
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) =>
|
|
22357
|
+
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) => NodeId;
|
|
22294
22358
|
nodeLocatorIdToNodeExecutionId: (locatorId: NodeLocatorId, targetSubgraph?: Subgraph) => NodeExecutionId | null;
|
|
22295
22359
|
}, "activeWorkflow" | "isBusy" | "isSyncLoading" | "isSubgraphActive" | "activeSubgraph">, Pick<{
|
|
22296
22360
|
activeWorkflow: Ref< {
|
|
@@ -24570,7 +24634,8 @@ export declare class ComfyApp {
|
|
|
24570
24634
|
} | undefined;
|
|
24571
24635
|
})[] | undefined;
|
|
24572
24636
|
missingModelCandidates?: {
|
|
24573
|
-
nodeId?:
|
|
24637
|
+
nodeId?: SerializedNodeId | undefined;
|
|
24638
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
24574
24639
|
nodeType: string;
|
|
24575
24640
|
widgetName: string;
|
|
24576
24641
|
isAssetSupported: boolean;
|
|
@@ -24582,7 +24647,7 @@ export declare class ComfyApp {
|
|
|
24582
24647
|
isMissing: boolean | undefined;
|
|
24583
24648
|
}[] | undefined;
|
|
24584
24649
|
missingMediaCandidates?: {
|
|
24585
|
-
nodeId:
|
|
24650
|
+
nodeId: SerializedNodeId;
|
|
24586
24651
|
nodeType: string;
|
|
24587
24652
|
widgetName: string;
|
|
24588
24653
|
mediaType: MediaType;
|
|
@@ -28385,7 +28450,8 @@ export declare class ComfyApp {
|
|
|
28385
28450
|
} | undefined;
|
|
28386
28451
|
})[] | undefined;
|
|
28387
28452
|
missingModelCandidates?: {
|
|
28388
|
-
nodeId?:
|
|
28453
|
+
nodeId?: SerializedNodeId | undefined;
|
|
28454
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
28389
28455
|
nodeType: string;
|
|
28390
28456
|
widgetName: string;
|
|
28391
28457
|
isAssetSupported: boolean;
|
|
@@ -28397,7 +28463,7 @@ export declare class ComfyApp {
|
|
|
28397
28463
|
isMissing: boolean | undefined;
|
|
28398
28464
|
}[] | undefined;
|
|
28399
28465
|
missingMediaCandidates?: {
|
|
28400
|
-
nodeId:
|
|
28466
|
+
nodeId: SerializedNodeId;
|
|
28401
28467
|
nodeType: string;
|
|
28402
28468
|
widgetName: string;
|
|
28403
28469
|
mediaType: MediaType;
|
|
@@ -30707,7 +30773,8 @@ export declare class ComfyApp {
|
|
|
30707
30773
|
} | undefined;
|
|
30708
30774
|
})[] | undefined;
|
|
30709
30775
|
missingModelCandidates?: {
|
|
30710
|
-
nodeId?:
|
|
30776
|
+
nodeId?: SerializedNodeId | undefined;
|
|
30777
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
30711
30778
|
nodeType: string;
|
|
30712
30779
|
widgetName: string;
|
|
30713
30780
|
isAssetSupported: boolean;
|
|
@@ -30719,7 +30786,7 @@ export declare class ComfyApp {
|
|
|
30719
30786
|
isMissing: boolean | undefined;
|
|
30720
30787
|
}[] | undefined;
|
|
30721
30788
|
missingMediaCandidates?: {
|
|
30722
|
-
nodeId:
|
|
30789
|
+
nodeId: SerializedNodeId;
|
|
30723
30790
|
nodeType: string;
|
|
30724
30791
|
widgetName: string;
|
|
30725
30792
|
mediaType: MediaType;
|
|
@@ -34522,7 +34589,8 @@ export declare class ComfyApp {
|
|
|
34522
34589
|
} | undefined;
|
|
34523
34590
|
})[] | undefined;
|
|
34524
34591
|
missingModelCandidates?: {
|
|
34525
|
-
nodeId?:
|
|
34592
|
+
nodeId?: SerializedNodeId | undefined;
|
|
34593
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
34526
34594
|
nodeType: string;
|
|
34527
34595
|
widgetName: string;
|
|
34528
34596
|
isAssetSupported: boolean;
|
|
@@ -34534,7 +34602,7 @@ export declare class ComfyApp {
|
|
|
34534
34602
|
isMissing: boolean | undefined;
|
|
34535
34603
|
}[] | undefined;
|
|
34536
34604
|
missingMediaCandidates?: {
|
|
34537
|
-
nodeId:
|
|
34605
|
+
nodeId: SerializedNodeId;
|
|
34538
34606
|
nodeType: string;
|
|
34539
34607
|
widgetName: string;
|
|
34540
34608
|
mediaType: MediaType;
|
|
@@ -34600,9 +34668,9 @@ export declare class ComfyApp {
|
|
|
34600
34668
|
activeSubgraph: ShallowRef<Raw<Subgraph> | undefined, Raw<Subgraph> | undefined>;
|
|
34601
34669
|
updateActiveGraph: () => void;
|
|
34602
34670
|
executionIdToCurrentId: (id: string) => string | undefined;
|
|
34603
|
-
nodeIdToNodeLocatorId: (nodeId:
|
|
34671
|
+
nodeIdToNodeLocatorId: (nodeId: NodeId, subgraph?: Subgraph) => NodeLocatorId;
|
|
34604
34672
|
nodeToNodeLocatorId: (node: LGraphNode) => NodeLocatorId;
|
|
34605
|
-
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) =>
|
|
34673
|
+
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) => NodeId;
|
|
34606
34674
|
nodeLocatorIdToNodeExecutionId: (locatorId: NodeLocatorId, targetSubgraph?: Subgraph) => NodeExecutionId | null;
|
|
34607
34675
|
}, "openWorkflows" | "workflows" | "bookmarkedWorkflows" | "persistedWorkflows" | "modifiedWorkflows">, Pick<{
|
|
34608
34676
|
activeWorkflow: Ref< {
|
|
@@ -36882,7 +36950,8 @@ export declare class ComfyApp {
|
|
|
36882
36950
|
} | undefined;
|
|
36883
36951
|
})[] | undefined;
|
|
36884
36952
|
missingModelCandidates?: {
|
|
36885
|
-
nodeId?:
|
|
36953
|
+
nodeId?: SerializedNodeId | undefined;
|
|
36954
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
36886
36955
|
nodeType: string;
|
|
36887
36956
|
widgetName: string;
|
|
36888
36957
|
isAssetSupported: boolean;
|
|
@@ -36894,7 +36963,7 @@ export declare class ComfyApp {
|
|
|
36894
36963
|
isMissing: boolean | undefined;
|
|
36895
36964
|
}[] | undefined;
|
|
36896
36965
|
missingMediaCandidates?: {
|
|
36897
|
-
nodeId:
|
|
36966
|
+
nodeId: SerializedNodeId;
|
|
36898
36967
|
nodeType: string;
|
|
36899
36968
|
widgetName: string;
|
|
36900
36969
|
mediaType: MediaType;
|
|
@@ -40697,7 +40766,8 @@ export declare class ComfyApp {
|
|
|
40697
40766
|
} | undefined;
|
|
40698
40767
|
})[] | undefined;
|
|
40699
40768
|
missingModelCandidates?: {
|
|
40700
|
-
nodeId?:
|
|
40769
|
+
nodeId?: SerializedNodeId | undefined;
|
|
40770
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
40701
40771
|
nodeType: string;
|
|
40702
40772
|
widgetName: string;
|
|
40703
40773
|
isAssetSupported: boolean;
|
|
@@ -40709,7 +40779,7 @@ export declare class ComfyApp {
|
|
|
40709
40779
|
isMissing: boolean | undefined;
|
|
40710
40780
|
}[] | undefined;
|
|
40711
40781
|
missingMediaCandidates?: {
|
|
40712
|
-
nodeId:
|
|
40782
|
+
nodeId: SerializedNodeId;
|
|
40713
40783
|
nodeType: string;
|
|
40714
40784
|
widgetName: string;
|
|
40715
40785
|
mediaType: MediaType;
|
|
@@ -43019,7 +43089,8 @@ export declare class ComfyApp {
|
|
|
43019
43089
|
} | undefined;
|
|
43020
43090
|
})[] | undefined;
|
|
43021
43091
|
missingModelCandidates?: {
|
|
43022
|
-
nodeId?:
|
|
43092
|
+
nodeId?: SerializedNodeId | undefined;
|
|
43093
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
43023
43094
|
nodeType: string;
|
|
43024
43095
|
widgetName: string;
|
|
43025
43096
|
isAssetSupported: boolean;
|
|
@@ -43031,7 +43102,7 @@ export declare class ComfyApp {
|
|
|
43031
43102
|
isMissing: boolean | undefined;
|
|
43032
43103
|
}[] | undefined;
|
|
43033
43104
|
missingMediaCandidates?: {
|
|
43034
|
-
nodeId:
|
|
43105
|
+
nodeId: SerializedNodeId;
|
|
43035
43106
|
nodeType: string;
|
|
43036
43107
|
widgetName: string;
|
|
43037
43108
|
mediaType: MediaType;
|
|
@@ -46834,7 +46905,8 @@ export declare class ComfyApp {
|
|
|
46834
46905
|
} | undefined;
|
|
46835
46906
|
})[] | undefined;
|
|
46836
46907
|
missingModelCandidates?: {
|
|
46837
|
-
nodeId?:
|
|
46908
|
+
nodeId?: SerializedNodeId | undefined;
|
|
46909
|
+
sourceExecutionId?: NodeExecutionId | undefined;
|
|
46838
46910
|
nodeType: string;
|
|
46839
46911
|
widgetName: string;
|
|
46840
46912
|
isAssetSupported: boolean;
|
|
@@ -46846,7 +46918,7 @@ export declare class ComfyApp {
|
|
|
46846
46918
|
isMissing: boolean | undefined;
|
|
46847
46919
|
}[] | undefined;
|
|
46848
46920
|
missingMediaCandidates?: {
|
|
46849
|
-
nodeId:
|
|
46921
|
+
nodeId: SerializedNodeId;
|
|
46850
46922
|
nodeType: string;
|
|
46851
46923
|
widgetName: string;
|
|
46852
46924
|
mediaType: MediaType;
|
|
@@ -46912,9 +46984,9 @@ export declare class ComfyApp {
|
|
|
46912
46984
|
activeSubgraph: ShallowRef<Raw<Subgraph> | undefined, Raw<Subgraph> | undefined>;
|
|
46913
46985
|
updateActiveGraph: () => void;
|
|
46914
46986
|
executionIdToCurrentId: (id: string) => string | undefined;
|
|
46915
|
-
nodeIdToNodeLocatorId: (nodeId:
|
|
46987
|
+
nodeIdToNodeLocatorId: (nodeId: NodeId, subgraph?: Subgraph) => NodeLocatorId;
|
|
46916
46988
|
nodeToNodeLocatorId: (node: LGraphNode) => NodeLocatorId;
|
|
46917
|
-
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) =>
|
|
46989
|
+
nodeLocatorIdToNodeId: (locatorId: NodeLocatorId) => NodeId;
|
|
46918
46990
|
nodeLocatorIdToNodeExecutionId: (locatorId: NodeLocatorId, targetSubgraph?: Subgraph) => NodeExecutionId | null;
|
|
46919
46991
|
}, "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
46992
|
|
|
@@ -50075,7 +50147,6 @@ export declare class ComfyApp {
|
|
|
50075
50147
|
'Comfy.Canvas.MouseWheelScroll': z.ZodString;
|
|
50076
50148
|
'Comfy.VueNodes.Enabled': z.ZodBoolean;
|
|
50077
50149
|
'Comfy.AppBuilder.VueNodeSwitchDismissed': z.ZodBoolean;
|
|
50078
|
-
'Comfy.VueNodes.AutoScaleLayout': z.ZodBoolean;
|
|
50079
50150
|
'Comfy.Assets.UseAssetAPI': z.ZodBoolean;
|
|
50080
50151
|
'Comfy.Queue.QPOV2': z.ZodBoolean;
|
|
50081
50152
|
'Comfy.Queue.ShowRunProgressBar': z.ZodBoolean;
|
|
@@ -50620,7 +50691,6 @@ export declare class ComfyApp {
|
|
|
50620
50691
|
'Comfy.Canvas.MouseWheelScroll': string;
|
|
50621
50692
|
'Comfy.VueNodes.Enabled': boolean;
|
|
50622
50693
|
'Comfy.AppBuilder.VueNodeSwitchDismissed': boolean;
|
|
50623
|
-
'Comfy.VueNodes.AutoScaleLayout': boolean;
|
|
50624
50694
|
'Comfy.Assets.UseAssetAPI': boolean;
|
|
50625
50695
|
'Comfy.Queue.QPOV2': boolean;
|
|
50626
50696
|
'Comfy.Queue.ShowRunProgressBar': boolean;
|
|
@@ -51162,7 +51232,6 @@ export declare class ComfyApp {
|
|
|
51162
51232
|
'Comfy.Canvas.MouseWheelScroll': string;
|
|
51163
51233
|
'Comfy.VueNodes.Enabled': boolean;
|
|
51164
51234
|
'Comfy.AppBuilder.VueNodeSwitchDismissed': boolean;
|
|
51165
|
-
'Comfy.VueNodes.AutoScaleLayout': boolean;
|
|
51166
51235
|
'Comfy.Assets.UseAssetAPI': boolean;
|
|
51167
51236
|
'Comfy.Queue.QPOV2': boolean;
|
|
51168
51237
|
'Comfy.Queue.ShowRunProgressBar': boolean;
|