@comfyorg/comfyui-frontend-types 1.59.0 → 1.59.1
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 +847 -204
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { BillingCycle } from '@comfyorg/account-core/billing';
|
|
2
2
|
import { BillingSource } from '@comfyorg/billing-contract';
|
|
3
3
|
import { BillingTierKey } from '@comfyorg/account-core/billing';
|
|
4
|
+
import { BlendFn } from '@comfyorg/layer-editor/mode';
|
|
5
|
+
import { ClassValue } from 'cva';
|
|
6
|
+
import { ComfyDesktop2AuthBridge } from '@comfyorg/comfyui-desktop-bridge-types';
|
|
4
7
|
import { ComfyDesktop2Bridge } from '@comfyorg/comfyui-desktop-bridge-types';
|
|
5
8
|
import { ComfyNodeDef } from '@comfyorg/object-info-parser';
|
|
6
9
|
import { Component } from 'vue';
|
|
7
10
|
import { ComponentAttrs } from 'vue-component-type-helpers';
|
|
8
|
-
import { ConfirmationDialogType } from '../components/dialog/content/confirmationDialogTypes';
|
|
9
|
-
import { CurveData } from '../../../../components/curve/types';
|
|
10
|
-
import { DialogContentSize } from '../components/ui/dialog/dialog.variants';
|
|
11
11
|
import { GetEmbeddingsResponse as EmbeddingsResponse } from '@comfyorg/ingest-types';
|
|
12
12
|
import { GetExtensionsResponse as ExtensionsResponse } from '@comfyorg/ingest-types';
|
|
13
13
|
import { GetI18nResponse } from '@comfyorg/ingest-types';
|
|
14
14
|
import { InputSpec } from '@comfyorg/object-info-parser';
|
|
15
|
+
import { LightInfoEntry } from '@comfyorg/viewport3d/lightInfo/types';
|
|
15
16
|
import { NodeBadgeMode } from '@comfyorg/object-info-parser';
|
|
16
17
|
import { PostAssetsFromWorkflowResponse } from '@comfyorg/ingest-types';
|
|
17
18
|
import { PreviewSubscribeResponse } from '@comfyorg/ingest-types';
|
|
@@ -22,7 +23,9 @@ import { Ref } from 'vue';
|
|
|
22
23
|
import { ShallowRef } from 'vue';
|
|
23
24
|
import { SubscribeResponse } from '@comfyorg/ingest-types';
|
|
24
25
|
import { SystemStatsResponse } from '@comfyorg/ingest-types';
|
|
26
|
+
import { Transform } from '@comfyorg/layer-editor/node';
|
|
25
27
|
import { UserDataResponseFull } from '@comfyorg/ingest-types';
|
|
28
|
+
import { VariantProps } from 'cva';
|
|
26
29
|
import { z } from 'zod';
|
|
27
30
|
|
|
28
31
|
declare interface AboutPageBadge {
|
|
@@ -240,7 +243,7 @@ declare interface BaseDOMWidget<V extends object | string = object | string> ext
|
|
|
240
243
|
/** The unique ID of the widget. */
|
|
241
244
|
readonly id: string;
|
|
242
245
|
/** The node that the widget belongs to. */
|
|
243
|
-
readonly node:
|
|
246
|
+
readonly node: RegisteredLGraphNode;
|
|
244
247
|
/** Whether the widget is visible. */
|
|
245
248
|
isVisible(): boolean;
|
|
246
249
|
/** The margin of the widget. */
|
|
@@ -327,6 +330,9 @@ declare abstract class BaseSteppedWidget<TWidget extends IBaseWidget = IBaseWidg
|
|
|
327
330
|
drawWidget(ctx: CanvasRenderingContext2D, options: DrawWidgetOptions): void;
|
|
328
331
|
}
|
|
329
332
|
|
|
333
|
+
declare interface BaseWidget extends IBaseWidget {
|
|
334
|
+
}
|
|
335
|
+
|
|
330
336
|
declare abstract class BaseWidget<TWidget extends IBaseWidget = IBaseWidget> implements IBaseWidget, NodeBindable {
|
|
331
337
|
/** From node edge to widget edge */
|
|
332
338
|
static margin: number;
|
|
@@ -485,8 +491,6 @@ declare abstract class BaseWidget<TWidget extends IBaseWidget = IBaseWidget> imp
|
|
|
485
491
|
|
|
486
492
|
declare type BasicReadonlyNetwork = Pick<ReadonlyLinkNetwork, 'getNodeById' | 'links' | 'getLink' | 'inputNode' | 'outputNode'>;
|
|
487
493
|
|
|
488
|
-
declare type BlendFn = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'linear-dodge' | 'linear-burn' | 'vivid-light' | 'pin-light' | 'linear-light' | 'hard-mix' | 'subtract' | 'divide' | 'grain-extract' | 'grain-merge' | 'hue' | 'saturation' | 'color' | 'luminosity';
|
|
489
|
-
|
|
490
494
|
declare type BookmarkCustomization = {
|
|
491
495
|
icon?: string;
|
|
492
496
|
color?: string;
|
|
@@ -554,7 +558,7 @@ declare type ButtonWidgetSource = Omit<IButtonWidget, 'options'> & {
|
|
|
554
558
|
options?: IButtonWidget['options'];
|
|
555
559
|
};
|
|
556
560
|
|
|
557
|
-
declare type CanvasColour = string | CanvasGradient | CanvasPattern;
|
|
561
|
+
export declare type CanvasColour = string | CanvasGradient | CanvasPattern;
|
|
558
562
|
|
|
559
563
|
/**
|
|
560
564
|
* Tells the canvas which interactions the host application allows right now.
|
|
@@ -792,7 +796,7 @@ declare class CanvasPointer {
|
|
|
792
796
|
}
|
|
793
797
|
|
|
794
798
|
/** PointerEvent with canvasX/Y and deltaX/Y properties */
|
|
795
|
-
declare interface CanvasPointerEvent extends PointerEvent, CanvasMouseEvent {
|
|
799
|
+
export declare interface CanvasPointerEvent extends PointerEvent, CanvasMouseEvent {
|
|
796
800
|
}
|
|
797
801
|
|
|
798
802
|
/** All properties added when converting a pointer event to a CanvasPointerEvent (via {@link LGraphCanvas.adjustMouseEvent}). */
|
|
@@ -842,7 +846,7 @@ declare type ColorFormat = 'hex' | 'rgb' | 'hsb';
|
|
|
842
846
|
* A color option to customize the color of {@link LGraphNode} or {@link LGraphGroup}.
|
|
843
847
|
* @see {@link LGraphCanvas.node_colors}
|
|
844
848
|
*/
|
|
845
|
-
declare interface ColorOption {
|
|
849
|
+
export declare interface ColorOption {
|
|
846
850
|
color: string;
|
|
847
851
|
bgcolor: string;
|
|
848
852
|
groupcolor: string;
|
|
@@ -889,12 +893,12 @@ declare class ComboWidget extends BaseSteppedWidget<IStringComboWidget | IComboW
|
|
|
889
893
|
onClick({ e, node, canvas }: WidgetEventOptions): void;
|
|
890
894
|
}
|
|
891
895
|
|
|
892
|
-
declare type ComboWidgetValues = (string | number)[] | Record<string, string> | ((widget?: IComboWidget, node?: RegisteredLGraphNode) => (string | number)[]);
|
|
896
|
+
export declare type ComboWidgetValues = (string | number)[] | Record<string, string> | ((widget?: IComboWidget, node?: RegisteredLGraphNode) => (string | number)[]);
|
|
893
897
|
|
|
894
898
|
/** EventTarget typing has no generic capability. */
|
|
895
899
|
export declare interface ComfyApi extends EventTarget {
|
|
896
|
-
addEventListener<TEvent extends keyof ApiEvents>(type: TEvent, callback: ((event: ApiEvents[TEvent]) => void) | null, options?: AddEventListenerOptions | boolean): void;
|
|
897
|
-
removeEventListener<TEvent extends keyof ApiEvents>(type: TEvent, callback: ((event: ApiEvents[TEvent]) => void) | null, options?: EventListenerOptions | boolean): void;
|
|
900
|
+
addEventListener<TEvent extends keyof ApiEvents>(type: TEvent, callback: ((event: ApiEvents[TEvent]) => void) | EventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
901
|
+
removeEventListener<TEvent extends keyof ApiEvents>(type: TEvent, callback: ((event: ApiEvents[TEvent]) => void) | EventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
898
902
|
}
|
|
899
903
|
|
|
900
904
|
export declare class ComfyApi extends EventTarget {
|
|
@@ -905,12 +909,7 @@ export declare class ComfyApi extends EventTarget {
|
|
|
905
909
|
* {@link addEventListener}. Keyed weakly so wrappers are GC'd with listeners.
|
|
906
910
|
*/
|
|
907
911
|
private _listenerWrappers;
|
|
908
|
-
|
|
909
|
-
api_base: string;
|
|
910
|
-
/**
|
|
911
|
-
* The client id from the initial session storage.
|
|
912
|
-
*/
|
|
913
|
-
initialClientId: string | null;
|
|
912
|
+
private launchContext?;
|
|
914
913
|
/**
|
|
915
914
|
* The current client id from websocket status updates.
|
|
916
915
|
*/
|
|
@@ -968,6 +967,19 @@ export declare class ComfyApi extends EventTarget {
|
|
|
968
967
|
*/
|
|
969
968
|
apiKey?: string;
|
|
970
969
|
constructor();
|
|
970
|
+
/**
|
|
971
|
+
* Snapshots the page host, base path, and stored client id. Runs on first
|
|
972
|
+
* use; the bootstrap calls it before routing can change the location.
|
|
973
|
+
*/
|
|
974
|
+
captureLaunchContext(): void;
|
|
975
|
+
private get capturedLaunchContext();
|
|
976
|
+
get api_host(): string;
|
|
977
|
+
set api_host(host: string);
|
|
978
|
+
get api_base(): string;
|
|
979
|
+
set api_base(base: string);
|
|
980
|
+
/** The client id from the initial session storage. */
|
|
981
|
+
get initialClientId(): string | null;
|
|
982
|
+
set initialClientId(initialClientId: string | null);
|
|
971
983
|
internalURL(route: string): string;
|
|
972
984
|
apiURL(route: string): string;
|
|
973
985
|
/** For requests whose headers already name the workspace. */
|
|
@@ -1080,6 +1092,9 @@ export declare class ComfyApi extends EventTarget {
|
|
|
1080
1092
|
* Loads node object definitions for the graph
|
|
1081
1093
|
* @returns The node definitions
|
|
1082
1094
|
*/
|
|
1095
|
+
private nodeDefsPrefetch?;
|
|
1096
|
+
/** Start fetching `/object_info` so the next `getNodeDefs()` can reuse it. */
|
|
1097
|
+
prefetchNodeDefs(): void;
|
|
1083
1098
|
getNodeDefs(): Promise<Record<string, ComfyNodeDef>>;
|
|
1084
1099
|
/**
|
|
1085
1100
|
* Queues a prompt to be executed
|
|
@@ -1148,7 +1163,7 @@ export declare class ComfyApi extends EventTarget {
|
|
|
1148
1163
|
* @param jobId The job ID
|
|
1149
1164
|
* @returns Full job details or undefined if not found
|
|
1150
1165
|
*/
|
|
1151
|
-
getJobDetail(jobId: string): Promise<JobDetail | undefined>;
|
|
1166
|
+
getJobDetail(jobId: string, signal?: AbortSignal): Promise<JobDetail | undefined>;
|
|
1152
1167
|
/**
|
|
1153
1168
|
* Gets a job's output assets, each resolved to a real asset entity with
|
|
1154
1169
|
* per-output node context. Returns an empty list when the endpoint is
|
|
@@ -1229,7 +1244,7 @@ export declare class ComfyApi extends EventTarget {
|
|
|
1229
1244
|
/**
|
|
1230
1245
|
* Stores a setting for the current user
|
|
1231
1246
|
*/
|
|
1232
|
-
storeSetting(id: keyof Settings, value: Settings[keyof Settings]): Promise<Response>;
|
|
1247
|
+
storeSetting(id: keyof Settings, value: Settings[keyof Settings], options?: Pick<RequestInit, 'keepalive'>): Promise<Response>;
|
|
1233
1248
|
/**
|
|
1234
1249
|
* Gets a user data file for the current user
|
|
1235
1250
|
*/
|
|
@@ -1662,6 +1677,8 @@ declare class ComfyList {
|
|
|
1662
1677
|
|
|
1663
1678
|
export { ComfyNodeDef }
|
|
1664
1679
|
|
|
1680
|
+
declare type ComfyNodeDef_2 = z.infer<typeof zComfyNodeDef>;
|
|
1681
|
+
|
|
1665
1682
|
declare class ComfyPopup extends EventTarget {
|
|
1666
1683
|
element: HTMLElement;
|
|
1667
1684
|
open: boolean;
|
|
@@ -1762,7 +1779,11 @@ declare class ComfyUI {
|
|
|
1762
1779
|
queueSize: Element;
|
|
1763
1780
|
restoreMenuPosition: () => void;
|
|
1764
1781
|
loadFile: () => void;
|
|
1782
|
+
private readonly lifetime;
|
|
1783
|
+
private fileInput;
|
|
1765
1784
|
constructor(app: LegacyUIApp, host: LegacyMenuHost);
|
|
1785
|
+
/** Removes the legacy menu and dialogs and stops their listeners. */
|
|
1786
|
+
dispose(): void;
|
|
1766
1787
|
setup(containerElement: HTMLElement): void;
|
|
1767
1788
|
setStatus(status: StatusWsMessageStatus | null): void;
|
|
1768
1789
|
}
|
|
@@ -2444,6 +2465,10 @@ declare class CompositorWidget extends VueOnlyWidget<ICompositorWidget> implemen
|
|
|
2444
2465
|
|
|
2445
2466
|
declare type CompositorWidgetValue = Partial<CompositorLayerState>;
|
|
2446
2467
|
|
|
2468
|
+
declare const CONFIG: unique symbol;
|
|
2469
|
+
|
|
2470
|
+
declare type ConfirmationDialogType = 'default' | 'overwrite' | 'overwriteBlueprint' | 'delete' | 'dirtyClose' | 'reinstall' | 'info';
|
|
2471
|
+
|
|
2447
2472
|
declare type ConfirmOptions = BaseConfirmOptions & ({
|
|
2448
2473
|
/** Pre-configured dialog type */
|
|
2449
2474
|
type: 'dirtyClose';
|
|
@@ -2466,7 +2491,7 @@ declare interface ConnectByTypeOptions {
|
|
|
2466
2491
|
afterRerouteId?: RerouteId;
|
|
2467
2492
|
}
|
|
2468
2493
|
|
|
2469
|
-
declare interface ConnectingLink extends IInputOrOutput {
|
|
2494
|
+
export declare interface ConnectingLink extends IInputOrOutput {
|
|
2470
2495
|
node: RegisteredLGraphNode;
|
|
2471
2496
|
slot: SlotIndex;
|
|
2472
2497
|
pos: Point;
|
|
@@ -2508,14 +2533,14 @@ declare class ConstrainedSize {
|
|
|
2508
2533
|
toSize(): Size;
|
|
2509
2534
|
}
|
|
2510
2535
|
|
|
2511
|
-
declare interface ContextMenu<TValue = unknown> {
|
|
2536
|
+
export declare interface ContextMenu<TValue = unknown> {
|
|
2512
2537
|
constructor: new (...args: ConstructorParameters<typeof ContextMenu<TValue>>) => ContextMenu<TValue>;
|
|
2513
2538
|
}
|
|
2514
2539
|
|
|
2515
2540
|
/**
|
|
2516
2541
|
* ContextMenu from LiteGUI
|
|
2517
2542
|
*/
|
|
2518
|
-
declare class ContextMenu<TValue = unknown> {
|
|
2543
|
+
export declare class ContextMenu<TValue = unknown> {
|
|
2519
2544
|
options: IContextMenuOptions<TValue>;
|
|
2520
2545
|
parentMenu?: ContextMenu<TValue>;
|
|
2521
2546
|
root: ContextMenuDivElement<TValue>;
|
|
@@ -2604,7 +2629,7 @@ export declare function createNodeExecutionId(nodeIds: readonly SerializedNodeId
|
|
|
2604
2629
|
export declare function createNodeLocatorId(subgraphUuid: string | null, localNodeId: SerializedNodeId): NodeLocatorId;
|
|
2605
2630
|
|
|
2606
2631
|
/** Options for {@link LiteGraphGlobal.createNode}. Shallow-copied onto the new node. */
|
|
2607
|
-
declare interface CreateNodeOptions {
|
|
2632
|
+
export declare interface CreateNodeOptions {
|
|
2608
2633
|
pos?: Point;
|
|
2609
2634
|
size?: Size;
|
|
2610
2635
|
properties?: Dictionary<NodeProperty | undefined>;
|
|
@@ -2632,6 +2657,13 @@ declare interface CreateNodeOptions {
|
|
|
2632
2657
|
*/
|
|
2633
2658
|
declare function createUuidv4(): UUID;
|
|
2634
2659
|
|
|
2660
|
+
declare const CURVE_INTERPOLATIONS: readonly ["monotone_cubic", "linear"];
|
|
2661
|
+
|
|
2662
|
+
declare interface CurveData {
|
|
2663
|
+
points: CurvePoint[];
|
|
2664
|
+
interpolation: CurveInterpolation;
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2635
2667
|
declare class CurveEditor {
|
|
2636
2668
|
points: Point[];
|
|
2637
2669
|
selected: number;
|
|
@@ -2649,6 +2681,10 @@ declare class CurveEditor {
|
|
|
2649
2681
|
getCloserPoint(pos: Point, max_dist: number): number;
|
|
2650
2682
|
}
|
|
2651
2683
|
|
|
2684
|
+
declare type CurveInterpolation = (typeof CURVE_INTERPOLATIONS)[number];
|
|
2685
|
+
|
|
2686
|
+
declare type CurvePoint = [x: number, y: number];
|
|
2687
|
+
|
|
2652
2688
|
declare class CurveWidget extends BaseWidget<ICurveWidget> implements ICurveWidget {
|
|
2653
2689
|
drawWidget(ctx: CanvasRenderingContext2D, options: DrawWidgetOptions): void;
|
|
2654
2690
|
onClick(_options: WidgetEventOptions): void;
|
|
@@ -2736,6 +2772,14 @@ declare interface DefaultConnectionColors {
|
|
|
2736
2772
|
getDisconnectedColor(type: ISlotType): CanvasColour;
|
|
2737
2773
|
}
|
|
2738
2774
|
|
|
2775
|
+
declare type DeselectAllOptions = {
|
|
2776
|
+
keepSelected?: Positionable;
|
|
2777
|
+
notify?: boolean;
|
|
2778
|
+
};
|
|
2779
|
+
|
|
2780
|
+
/** `switchWorkspace` is absent on Desktop builds before Comfy-Desktop #1671. */
|
|
2781
|
+
export declare type DesktopHostAuthBridge = Omit<ComfyDesktop2AuthBridge, 'switchWorkspace'> & Partial<Pick<ComfyDesktop2AuthBridge, 'switchWorkspace'>>;
|
|
2782
|
+
|
|
2739
2783
|
export declare type DeviceStats = Required<SystemStatsResponse['devices'][number]> & {
|
|
2740
2784
|
index: number;
|
|
2741
2785
|
torch_vram_total: number;
|
|
@@ -2771,6 +2815,22 @@ declare interface DialogComponentProps {
|
|
|
2771
2815
|
size?: DialogContentSize;
|
|
2772
2816
|
}
|
|
2773
2817
|
|
|
2818
|
+
declare type DialogContentSize = NonNullable<DialogContentVariants['size']>;
|
|
2819
|
+
|
|
2820
|
+
declare type DialogContentVariants = VariantProps<typeof dialogContentVariants>;
|
|
2821
|
+
|
|
2822
|
+
declare const dialogContentVariants: (props?: ({
|
|
2823
|
+
surface?: "card" | "none" | undefined;
|
|
2824
|
+
size?: "full" | "sm" | "md" | "lg" | "xl" | "fit" | undefined;
|
|
2825
|
+
maximized?: boolean | undefined;
|
|
2826
|
+
} & ({
|
|
2827
|
+
class?: ClassValue;
|
|
2828
|
+
className?: never;
|
|
2829
|
+
} | {
|
|
2830
|
+
class?: never;
|
|
2831
|
+
className?: ClassValue;
|
|
2832
|
+
})) | undefined) => string;
|
|
2833
|
+
|
|
2774
2834
|
declare interface DialogInstance {
|
|
2775
2835
|
key: string;
|
|
2776
2836
|
visible: boolean;
|
|
@@ -2833,8 +2893,8 @@ export declare interface DOMWidgetOptions<V extends object | string> extends IWi
|
|
|
2833
2893
|
* The resize logic has been upstreamed to litegraph in
|
|
2834
2894
|
* https://github.com/Comfy-Org/ComfyUI_frontend/pull/2557
|
|
2835
2895
|
*/
|
|
2836
|
-
beforeResize?: (this: BaseDOMWidget<V>, node:
|
|
2837
|
-
afterResize?: (this: BaseDOMWidget<V>, node:
|
|
2896
|
+
beforeResize?: (this: BaseDOMWidget<V>, node: RegisteredLGraphNode) => void;
|
|
2897
|
+
afterResize?: (this: BaseDOMWidget<V>, node: RegisteredLGraphNode) => void;
|
|
2838
2898
|
}
|
|
2839
2899
|
|
|
2840
2900
|
declare interface DowngradeToPersonalResult {
|
|
@@ -2842,7 +2902,7 @@ declare interface DowngradeToPersonalResult {
|
|
|
2842
2902
|
response: SettledSubscribeResponse;
|
|
2843
2903
|
}
|
|
2844
2904
|
|
|
2845
|
-
declare class DragAndScale {
|
|
2905
|
+
export declare class DragAndScale {
|
|
2846
2906
|
/**
|
|
2847
2907
|
* The state of this DragAndScale instance.
|
|
2848
2908
|
*
|
|
@@ -2954,7 +3014,7 @@ declare interface DrawWidgetsOptions {
|
|
|
2954
3014
|
editorAlpha?: number;
|
|
2955
3015
|
}
|
|
2956
3016
|
|
|
2957
|
-
declare enum EaseFunction {
|
|
3017
|
+
export declare enum EaseFunction {
|
|
2958
3018
|
EASE_IN_OUT_QUAD = "easeInOutQuad"
|
|
2959
3019
|
}
|
|
2960
3020
|
|
|
@@ -2989,7 +3049,7 @@ declare type EventListeners<T> = {
|
|
|
2989
3049
|
/**
|
|
2990
3050
|
* Interface describing the data transfer objects used when compiling a graph for execution.
|
|
2991
3051
|
*/
|
|
2992
|
-
declare type ExecutableLGraphNode = Omit<ExecutableNodeDTO, 'graph' | 'node' | 'subgraphNode'>;
|
|
3052
|
+
export declare type ExecutableLGraphNode = Omit<ExecutableNodeDTO, 'graph' | 'node' | 'subgraphNode'>;
|
|
2993
3053
|
|
|
2994
3054
|
/**
|
|
2995
3055
|
* Concrete implementation of {@link ExecutableLGraphNode}.
|
|
@@ -3004,7 +3064,7 @@ declare class ExecutableNodeDTO implements ExecutableLGraphNode {
|
|
|
3004
3064
|
readonly nodesByExecutionId: Map<ExecutionId, ExecutableLGraphNode>;
|
|
3005
3065
|
/** The actual subgraph instance that contains this node, otherwise undefined. */
|
|
3006
3066
|
readonly subgraphNode?: RegisteredSubgraphNode | undefined;
|
|
3007
|
-
applyToGraph?(...args: Parameters<NonNullable<
|
|
3067
|
+
applyToGraph?(...args: Parameters<NonNullable<RegisteredLGraphNode['applyToGraph']>>): ReturnType<NonNullable<RegisteredLGraphNode['applyToGraph']>>;
|
|
3008
3068
|
/** The graph that this node is a part of. */
|
|
3009
3069
|
readonly graph: RegisteredLGraph | RegisteredSubgraph;
|
|
3010
3070
|
inputs: {
|
|
@@ -3117,7 +3177,7 @@ declare interface ExecutionErrorWsMessage extends ExecutionWsMessageBase {
|
|
|
3117
3177
|
current_outputs?: unknown;
|
|
3118
3178
|
}
|
|
3119
3179
|
|
|
3120
|
-
declare type ExecutionId = string;
|
|
3180
|
+
export declare type ExecutionId = string;
|
|
3121
3181
|
|
|
3122
3182
|
declare interface ExecutionInterruptedWsMessage extends ExecutionWsMessageBase {
|
|
3123
3183
|
node_id: NodeId_2;
|
|
@@ -3142,7 +3202,7 @@ declare interface ExecutionWsMessageBase {
|
|
|
3142
3202
|
* Defines a subgraph and its contents.
|
|
3143
3203
|
* Can be referenced multiple times in a schema.
|
|
3144
3204
|
*/
|
|
3145
|
-
declare interface ExportedSubgraph extends SerialisableGraph {
|
|
3205
|
+
export declare interface ExportedSubgraph extends SerialisableGraph {
|
|
3146
3206
|
/** The display name of the subgraph. */
|
|
3147
3207
|
name: string;
|
|
3148
3208
|
/** Optional category for organizing subgraph blueprints in the node library. */
|
|
@@ -3160,7 +3220,7 @@ declare interface ExportedSubgraph extends SerialisableGraph {
|
|
|
3160
3220
|
}
|
|
3161
3221
|
|
|
3162
3222
|
/** A single instance of a subgraph; where it is used on a graph, any customisation to shape / colour etc. */
|
|
3163
|
-
declare interface ExportedSubgraphInstance extends NodeSubgraphSharedProps {
|
|
3223
|
+
export declare interface ExportedSubgraphInstance extends NodeSubgraphSharedProps {
|
|
3164
3224
|
/**
|
|
3165
3225
|
* The ID of the actual subgraph definition.
|
|
3166
3226
|
* @see {@link ExportedSubgraph.subgraphs}
|
|
@@ -3389,6 +3449,8 @@ declare interface GesturePolicy {
|
|
|
3389
3449
|
readonly doubleClickTime: number;
|
|
3390
3450
|
}
|
|
3391
3451
|
|
|
3452
|
+
declare const GET_CONFIG: unique symbol;
|
|
3453
|
+
|
|
3392
3454
|
declare type GlobalSubgraphData = {
|
|
3393
3455
|
name: string;
|
|
3394
3456
|
info: {
|
|
@@ -3466,7 +3528,7 @@ declare interface Hoverable extends HasBoundingRect {
|
|
|
3466
3528
|
onPointerLeave?(e?: CanvasPointerEvent): void;
|
|
3467
3529
|
}
|
|
3468
3530
|
|
|
3469
|
-
declare interface IAssetWidget extends IBaseWidget<string, 'asset', IWidgetAssetOptions> {
|
|
3531
|
+
export declare interface IAssetWidget extends IBaseWidget<string, 'asset', IWidgetAssetOptions> {
|
|
3470
3532
|
type: 'asset';
|
|
3471
3533
|
value: string;
|
|
3472
3534
|
}
|
|
@@ -3478,7 +3540,7 @@ declare interface IAssetWidget extends IBaseWidget<string, 'asset', IWidgetAsset
|
|
|
3478
3540
|
* @template TOptions The options for this widget.
|
|
3479
3541
|
* @see IWidget
|
|
3480
3542
|
*/
|
|
3481
|
-
declare interface IBaseWidget<TValue = WidgetValue, TType extends string = string, TOptions extends IWidgetOptions = IWidgetOptions> {
|
|
3543
|
+
export declare interface IBaseWidget<TValue = WidgetValue, TType extends string = string, TOptions extends IWidgetOptions = IWidgetOptions> {
|
|
3482
3544
|
[symbol: symbol]: boolean;
|
|
3483
3545
|
linkedWidgets?: IBaseWidget[];
|
|
3484
3546
|
readonly widgetId?: WidgetId;
|
|
@@ -3606,9 +3668,18 @@ declare interface IBaseWidget<TValue = WidgetValue, TType extends string = strin
|
|
|
3606
3668
|
* not process it any further.
|
|
3607
3669
|
*/
|
|
3608
3670
|
onPointerDown?(pointer: CanvasPointer, node: RegisteredLGraphNode, canvas: RegisteredLGraphCanvas): boolean;
|
|
3671
|
+
onRemove?(): void;
|
|
3672
|
+
beforeQueued?(options?: WidgetCallbackOptions): unknown;
|
|
3673
|
+
afterQueued?(options?: WidgetCallbackOptions): unknown;
|
|
3674
|
+
serializeValue?(node: RegisteredExecutableLGraphNode | RegisteredLGraphNode, index: number): unknown;
|
|
3675
|
+
/**
|
|
3676
|
+
* Refreshes the widget's value or options from its remote source.
|
|
3677
|
+
*/
|
|
3678
|
+
refresh?(): unknown;
|
|
3679
|
+
dynamicPrompts?: boolean;
|
|
3609
3680
|
}
|
|
3610
3681
|
|
|
3611
|
-
declare interface IBooleanWidget extends IBaseWidget<boolean, 'toggle'> {
|
|
3682
|
+
export declare interface IBooleanWidget extends IBaseWidget<boolean, 'toggle'> {
|
|
3612
3683
|
type: 'toggle';
|
|
3613
3684
|
value: boolean;
|
|
3614
3685
|
}
|
|
@@ -3620,18 +3691,18 @@ declare interface IBoundaryNodes {
|
|
|
3620
3691
|
left: RegisteredLGraphNode;
|
|
3621
3692
|
}
|
|
3622
3693
|
|
|
3623
|
-
declare interface IBoundingBoxesWidget extends IBaseWidget<BoundingBox[], 'boundingboxes'> {
|
|
3694
|
+
export declare interface IBoundingBoxesWidget extends IBaseWidget<BoundingBox[], 'boundingboxes'> {
|
|
3624
3695
|
type: 'boundingboxes';
|
|
3625
3696
|
value: BoundingBox[];
|
|
3626
3697
|
}
|
|
3627
3698
|
|
|
3628
3699
|
/** Bounding box widget for defining regions with numeric inputs */
|
|
3629
|
-
declare interface IBoundingBoxWidget extends IBaseWidget<Bounds, 'boundingbox'> {
|
|
3700
|
+
export declare interface IBoundingBoxWidget extends IBaseWidget<Bounds, 'boundingbox'> {
|
|
3630
3701
|
type: 'boundingbox';
|
|
3631
3702
|
value: Bounds;
|
|
3632
3703
|
}
|
|
3633
3704
|
|
|
3634
|
-
declare interface IButtonWidget extends IBaseWidget<string | undefined, 'button'> {
|
|
3705
|
+
export declare interface IButtonWidget extends IBaseWidget<string | undefined, 'button'> {
|
|
3635
3706
|
type: 'button';
|
|
3636
3707
|
value: string | undefined;
|
|
3637
3708
|
clicked: boolean;
|
|
@@ -3646,7 +3717,7 @@ declare interface ICanvasPosition {
|
|
|
3646
3717
|
}
|
|
3647
3718
|
|
|
3648
3719
|
/** Chart widget for displaying data visualizations */
|
|
3649
|
-
declare interface IChartWidget extends IBaseWidget<object, 'chart'> {
|
|
3720
|
+
export declare interface IChartWidget extends IBaseWidget<object, 'chart'> {
|
|
3650
3721
|
type: 'chart';
|
|
3651
3722
|
value: object;
|
|
3652
3723
|
}
|
|
@@ -3658,33 +3729,33 @@ declare interface ICloseable {
|
|
|
3658
3729
|
/**
|
|
3659
3730
|
* An object that can be colored with a {@link ColorOption}.
|
|
3660
3731
|
*/
|
|
3661
|
-
declare interface IColorable {
|
|
3732
|
+
export declare interface IColorable {
|
|
3662
3733
|
setColorOption(colorOption: ColorOption | null): void;
|
|
3663
3734
|
getColorOption(): ColorOption | null;
|
|
3664
3735
|
}
|
|
3665
3736
|
|
|
3666
|
-
declare interface IColorsWidget extends IBaseWidget<string[], 'colors'> {
|
|
3737
|
+
export declare interface IColorsWidget extends IBaseWidget<string[], 'colors'> {
|
|
3667
3738
|
type: 'colors';
|
|
3668
3739
|
value: string[];
|
|
3669
3740
|
}
|
|
3670
3741
|
|
|
3671
|
-
declare interface IColorWidget extends IBaseWidget<string | number, 'color', IColorWidgetOptions> {
|
|
3742
|
+
export declare interface IColorWidget extends IBaseWidget<string | number, 'color', IColorWidgetOptions> {
|
|
3672
3743
|
type: 'color';
|
|
3673
3744
|
value: string | number;
|
|
3674
3745
|
}
|
|
3675
3746
|
|
|
3676
3747
|
/** Color picker widget for selecting colors */
|
|
3677
|
-
declare interface IColorWidgetOptions extends IWidgetOptions {
|
|
3748
|
+
export declare interface IColorWidgetOptions extends IWidgetOptions {
|
|
3678
3749
|
format?: ColorFormat | 'int';
|
|
3679
3750
|
}
|
|
3680
3751
|
|
|
3681
3752
|
/** A combo-box widget (dropdown, select, etc) */
|
|
3682
|
-
declare interface IComboWidget extends IBaseWidget<string | number, 'combo', RequiredProps<IWidgetOptions<ComboWidgetValues>, 'values'>> {
|
|
3753
|
+
export declare interface IComboWidget extends IBaseWidget<string | number, 'combo', RequiredProps<IWidgetOptions<ComboWidgetValues>, 'values'>> {
|
|
3683
3754
|
type: 'combo';
|
|
3684
3755
|
value: string | number;
|
|
3685
3756
|
}
|
|
3686
3757
|
|
|
3687
|
-
declare interface ICompositorWidget extends IBaseWidget<CompositorWidgetValue, 'compositor'> {
|
|
3758
|
+
export declare interface ICompositorWidget extends IBaseWidget<CompositorWidgetValue, 'compositor'> {
|
|
3688
3759
|
type: 'compositor';
|
|
3689
3760
|
value: CompositorWidgetValue;
|
|
3690
3761
|
}
|
|
@@ -3694,7 +3765,7 @@ declare interface IContextMenuBase {
|
|
|
3694
3765
|
className?: string;
|
|
3695
3766
|
}
|
|
3696
3767
|
|
|
3697
|
-
declare interface IContextMenuOptions<TValue = unknown, TExtra = unknown> extends IContextMenuBase {
|
|
3768
|
+
export declare interface IContextMenuOptions<TValue = unknown, TExtra = unknown> extends IContextMenuBase {
|
|
3698
3769
|
ignore_item_callbacks?: boolean;
|
|
3699
3770
|
parentMenu?: RegisteredContextMenu<TValue>;
|
|
3700
3771
|
event?: MouseEvent;
|
|
@@ -3714,7 +3785,7 @@ declare interface IContextMenuSubmenu<TValue = unknown> extends IContextMenuOpti
|
|
|
3714
3785
|
options: ConstructorParameters<RegisteredContextMenu<TValue>['constructor']>[0];
|
|
3715
3786
|
}
|
|
3716
3787
|
|
|
3717
|
-
declare interface IContextMenuValue<TValue = unknown, TExtra = unknown, TCallbackValue = unknown> extends IContextMenuBase {
|
|
3788
|
+
export declare interface IContextMenuValue<TValue = unknown, TExtra = unknown, TCallbackValue = unknown> extends IContextMenuBase {
|
|
3718
3789
|
value?: TValue;
|
|
3719
3790
|
content: string | undefined;
|
|
3720
3791
|
has_submenu?: boolean;
|
|
@@ -3762,7 +3833,7 @@ declare interface ICreatePanelOptions {
|
|
|
3762
3833
|
height?: number | string;
|
|
3763
3834
|
}
|
|
3764
3835
|
|
|
3765
|
-
declare interface ICurveWidget extends IBaseWidget<CurveData, 'curve'> {
|
|
3836
|
+
export declare interface ICurveWidget extends IBaseWidget<CurveData, 'curve'> {
|
|
3766
3837
|
type: 'curve';
|
|
3767
3838
|
value: CurveData;
|
|
3768
3839
|
}
|
|
@@ -3825,7 +3896,7 @@ declare interface IDrawBoundingOptions {
|
|
|
3825
3896
|
}
|
|
3826
3897
|
|
|
3827
3898
|
/** File upload widget for selecting and uploading files */
|
|
3828
|
-
declare interface IFileUploadWidget extends IBaseWidget<string, 'fileupload'> {
|
|
3899
|
+
export declare interface IFileUploadWidget extends IBaseWidget<string, 'fileupload'> {
|
|
3829
3900
|
type: 'fileupload';
|
|
3830
3901
|
value: string;
|
|
3831
3902
|
label?: string;
|
|
@@ -3837,12 +3908,12 @@ declare interface IFoundSlot extends IInputOrOutput {
|
|
|
3837
3908
|
}
|
|
3838
3909
|
|
|
3839
3910
|
/** Gallery widget for displaying multiple images */
|
|
3840
|
-
declare interface IGalleriaWidget extends IBaseWidget<string[], 'galleria'> {
|
|
3911
|
+
export declare interface IGalleriaWidget extends IBaseWidget<string[], 'galleria'> {
|
|
3841
3912
|
type: 'galleria';
|
|
3842
3913
|
value: string[];
|
|
3843
3914
|
}
|
|
3844
3915
|
|
|
3845
|
-
declare interface IGradientSliderWidget extends IBaseWidget<number, 'gradientslider', IWidgetGradientSliderOptions> {
|
|
3916
|
+
export declare interface IGradientSliderWidget extends IBaseWidget<number, 'gradientslider', IWidgetGradientSliderOptions> {
|
|
3846
3917
|
type: 'gradientslider';
|
|
3847
3918
|
value: number;
|
|
3848
3919
|
}
|
|
@@ -3852,13 +3923,13 @@ declare interface IGraphGroupFlags extends Record<string, unknown> {
|
|
|
3852
3923
|
}
|
|
3853
3924
|
|
|
3854
3925
|
/** Image comparison widget for comparing two images side by side */
|
|
3855
|
-
declare interface IImageCompareWidget extends IBaseWidget<string[], 'imagecompare'> {
|
|
3926
|
+
export declare interface IImageCompareWidget extends IBaseWidget<string[], 'imagecompare'> {
|
|
3856
3927
|
type: 'imagecompare';
|
|
3857
3928
|
value: string[];
|
|
3858
3929
|
}
|
|
3859
3930
|
|
|
3860
3931
|
/** Image crop widget for cropping image */
|
|
3861
|
-
declare interface IImageCropWidget extends IBaseWidget<Bounds, 'imagecrop'> {
|
|
3932
|
+
export declare interface IImageCropWidget extends IBaseWidget<Bounds, 'imagecrop'> {
|
|
3862
3933
|
type: 'imagecrop';
|
|
3863
3934
|
value: Bounds;
|
|
3864
3935
|
}
|
|
@@ -3874,7 +3945,7 @@ declare interface IInputOrOutput {
|
|
|
3874
3945
|
output?: INodeOutputSlot | null;
|
|
3875
3946
|
}
|
|
3876
3947
|
|
|
3877
|
-
declare interface IKnobWidget extends IBaseWidget<number, 'knob', IWidgetKnobOptions> {
|
|
3948
|
+
export declare interface IKnobWidget extends IBaseWidget<number, 'knob', IWidgetKnobOptions> {
|
|
3878
3949
|
type: 'knob';
|
|
3879
3950
|
value: number;
|
|
3880
3951
|
options: IWidgetKnobOptions;
|
|
@@ -3903,7 +3974,7 @@ declare class ImageCropWidget extends BaseWidget<IImageCropWidget> implements II
|
|
|
3903
3974
|
}
|
|
3904
3975
|
|
|
3905
3976
|
/** Markdown widget for displaying formatted text */
|
|
3906
|
-
declare interface IMarkdownWidget extends IBaseWidget<string, 'markdown'> {
|
|
3977
|
+
export declare interface IMarkdownWidget extends IBaseWidget<string, 'markdown'> {
|
|
3907
3978
|
type: 'markdown';
|
|
3908
3979
|
value: string;
|
|
3909
3980
|
}
|
|
@@ -3915,12 +3986,12 @@ declare interface IMouseOverData {
|
|
|
3915
3986
|
}
|
|
3916
3987
|
|
|
3917
3988
|
/** Multi-select widget for selecting multiple options */
|
|
3918
|
-
declare interface IMultiSelectWidget extends IBaseWidget<string[], 'multiselect'> {
|
|
3989
|
+
export declare interface IMultiSelectWidget extends IBaseWidget<string[], 'multiselect'> {
|
|
3919
3990
|
type: 'multiselect';
|
|
3920
3991
|
value: string[];
|
|
3921
3992
|
}
|
|
3922
3993
|
|
|
3923
|
-
declare interface INodeFlags {
|
|
3994
|
+
export declare interface INodeFlags {
|
|
3924
3995
|
skip_repeated_outputs?: boolean;
|
|
3925
3996
|
allow_interaction?: boolean;
|
|
3926
3997
|
pinned?: boolean;
|
|
@@ -3931,7 +4002,7 @@ declare interface INodeFlags {
|
|
|
3931
4002
|
ghost?: boolean;
|
|
3932
4003
|
}
|
|
3933
4004
|
|
|
3934
|
-
declare interface INodeInputSlot extends INodeSlot {
|
|
4005
|
+
export declare interface INodeInputSlot extends INodeSlot {
|
|
3935
4006
|
/**
|
|
3936
4007
|
* @deprecated Id of the link targeting this slot, derived from the link
|
|
3937
4008
|
* store by a warning getter. Read via `node.isInputConnected(slot)` /
|
|
@@ -3954,7 +4025,7 @@ declare interface INodeInputSlot extends INodeSlot {
|
|
|
3954
4025
|
_pendingDemotionToken?: symbol;
|
|
3955
4026
|
}
|
|
3956
4027
|
|
|
3957
|
-
declare interface INodeOutputSlot extends INodeSlot {
|
|
4028
|
+
export declare interface INodeOutputSlot extends INodeSlot {
|
|
3958
4029
|
/**
|
|
3959
4030
|
* @deprecated Ids of the links leaving this slot, derived from the link
|
|
3960
4031
|
* store by a warning getter. Read via `node.isOutputConnected(slot)` /
|
|
@@ -3963,6 +4034,8 @@ declare interface INodeOutputSlot extends INodeSlot {
|
|
|
3963
4034
|
*/
|
|
3964
4035
|
links?: LinkId[] | null;
|
|
3965
4036
|
_data?: unknown;
|
|
4037
|
+
/** Widget config stored on its output by the Primitive node. */
|
|
4038
|
+
widget?: IWidgetLocator;
|
|
3966
4039
|
}
|
|
3967
4040
|
|
|
3968
4041
|
declare interface INodePropertyInfo {
|
|
@@ -3974,7 +4047,7 @@ declare interface INodePropertyInfo {
|
|
|
3974
4047
|
values?: string[] | Record<string, TWidgetValue>;
|
|
3975
4048
|
}
|
|
3976
4049
|
|
|
3977
|
-
declare interface INodeSlot extends HasBoundingRect {
|
|
4050
|
+
export declare interface INodeSlot extends HasBoundingRect {
|
|
3978
4051
|
/**
|
|
3979
4052
|
* The name of the slot in English.
|
|
3980
4053
|
* Will be included in the serialized data.
|
|
@@ -4078,7 +4151,7 @@ declare interface InputMapSetValue {
|
|
|
4078
4151
|
export { InputSpec }
|
|
4079
4152
|
|
|
4080
4153
|
/** Any widget that uses a numeric backing */
|
|
4081
|
-
declare interface INumericWidget extends IBaseWidget<number, 'number'> {
|
|
4154
|
+
export declare interface INumericWidget extends IBaseWidget<number, 'number'> {
|
|
4082
4155
|
type: 'number';
|
|
4083
4156
|
value: number;
|
|
4084
4157
|
}
|
|
@@ -4094,7 +4167,7 @@ declare interface IOffsetWorkaround {
|
|
|
4094
4167
|
safeOffsetY: number;
|
|
4095
4168
|
}
|
|
4096
4169
|
|
|
4097
|
-
declare interface IPainterWidget extends IBaseWidget<string, 'painter'> {
|
|
4170
|
+
export declare interface IPainterWidget extends IBaseWidget<string, 'painter'> {
|
|
4098
4171
|
type: 'painter';
|
|
4099
4172
|
value: string;
|
|
4100
4173
|
}
|
|
@@ -4118,30 +4191,30 @@ declare interface IPinnable {
|
|
|
4118
4191
|
unpin(): void;
|
|
4119
4192
|
}
|
|
4120
4193
|
|
|
4121
|
-
declare interface IRangeWidget extends IBaseWidget<RangeValue, 'range', IWidgetRangeOptions> {
|
|
4194
|
+
export declare interface IRangeWidget extends IBaseWidget<RangeValue, 'range', IWidgetRangeOptions> {
|
|
4122
4195
|
type: 'range';
|
|
4123
4196
|
value: RangeValue;
|
|
4124
4197
|
}
|
|
4125
4198
|
|
|
4126
|
-
declare interface IResolutionPreviewWidget extends IBaseWidget<null, 'resolutionpreview', IWidgetResolutionPreviewOptions> {
|
|
4199
|
+
export declare interface IResolutionPreviewWidget extends IBaseWidget<null, 'resolutionpreview', IWidgetResolutionPreviewOptions> {
|
|
4127
4200
|
type: 'resolutionpreview';
|
|
4128
4201
|
value: null;
|
|
4129
4202
|
}
|
|
4130
4203
|
|
|
4131
4204
|
/** Select button widget for selecting from a group of buttons */
|
|
4132
|
-
declare interface ISelectButtonWidget extends IBaseWidget<string, 'selectbutton', RequiredProps<IWidgetOptions<string[]>, 'values'>> {
|
|
4205
|
+
export declare interface ISelectButtonWidget extends IBaseWidget<string, 'selectbutton', RequiredProps<IWidgetOptions<string[]>, 'values'>> {
|
|
4133
4206
|
type: 'selectbutton';
|
|
4134
4207
|
value: string;
|
|
4135
4208
|
}
|
|
4136
4209
|
|
|
4137
|
-
declare type ISerialisableNodeInput = Omit<INodeInputSlot, 'boundingRect' | 'widget' | 'link'> & {
|
|
4210
|
+
export declare type ISerialisableNodeInput = Omit<INodeInputSlot, 'boundingRect' | 'widget' | 'link'> & {
|
|
4138
4211
|
link?: number | null;
|
|
4139
4212
|
widget?: {
|
|
4140
4213
|
name: string;
|
|
4141
4214
|
};
|
|
4142
4215
|
};
|
|
4143
4216
|
|
|
4144
|
-
declare type ISerialisableNodeOutput = Omit<INodeOutputSlot, 'boundingRect' | '_data' | 'links'> & {
|
|
4217
|
+
export declare type ISerialisableNodeOutput = Omit<INodeOutputSlot, 'boundingRect' | '_data' | 'links'> & {
|
|
4145
4218
|
links?: number[] | null;
|
|
4146
4219
|
widget?: {
|
|
4147
4220
|
name: string;
|
|
@@ -4152,7 +4225,7 @@ declare type ISerialisableNodeOutput = Omit<INodeOutputSlot, 'boundingRect' | '_
|
|
|
4152
4225
|
* Original implementation from static litegraph.d.ts
|
|
4153
4226
|
* Maintained for backwards compat
|
|
4154
4227
|
*/
|
|
4155
|
-
declare interface ISerialisedGraph extends BaseExportedGraph {
|
|
4228
|
+
export declare interface ISerialisedGraph extends BaseExportedGraph {
|
|
4156
4229
|
last_node_id: SerializedNodeId;
|
|
4157
4230
|
last_link_id: number;
|
|
4158
4231
|
nodes: ISerialisedNode[];
|
|
@@ -4164,7 +4237,7 @@ declare interface ISerialisedGraph extends BaseExportedGraph {
|
|
|
4164
4237
|
}
|
|
4165
4238
|
|
|
4166
4239
|
/** Serialised LGraphGroup */
|
|
4167
|
-
declare interface ISerialisedGroup {
|
|
4240
|
+
export declare interface ISerialisedGroup {
|
|
4168
4241
|
id: number;
|
|
4169
4242
|
title: string;
|
|
4170
4243
|
bounding: number[];
|
|
@@ -4174,7 +4247,7 @@ declare interface ISerialisedGroup {
|
|
|
4174
4247
|
}
|
|
4175
4248
|
|
|
4176
4249
|
/** Serialised LGraphNode */
|
|
4177
|
-
declare interface ISerialisedNode {
|
|
4250
|
+
export declare interface ISerialisedNode {
|
|
4178
4251
|
title?: string;
|
|
4179
4252
|
id: SerializedNodeId;
|
|
4180
4253
|
type: string;
|
|
@@ -4233,7 +4306,7 @@ declare interface IShowSearchOptions {
|
|
|
4233
4306
|
*/
|
|
4234
4307
|
declare function isInsideRectangle(x: number, y: number, left: number, top: number, width: number, height: number): boolean;
|
|
4235
4308
|
|
|
4236
|
-
declare interface ISliderWidget extends IBaseWidget<number, 'slider', IWidgetSliderOptions> {
|
|
4309
|
+
export declare interface ISliderWidget extends IBaseWidget<number, 'slider', IWidgetSliderOptions> {
|
|
4237
4310
|
type: 'slider';
|
|
4238
4311
|
value: number;
|
|
4239
4312
|
marker?: number;
|
|
@@ -4244,7 +4317,7 @@ declare interface ISliderWidget extends IBaseWidget<number, 'slider', IWidgetSli
|
|
|
4244
4317
|
*
|
|
4245
4318
|
* Multiple allowed types may be comma-delimited or stored as an array.
|
|
4246
4319
|
*/
|
|
4247
|
-
declare type ISlotType = number | string | string[];
|
|
4320
|
+
export declare type ISlotType = number | string | string[];
|
|
4248
4321
|
|
|
4249
4322
|
/**
|
|
4250
4323
|
* Type guard to check if a value is a NodeExecutionId
|
|
@@ -4257,13 +4330,13 @@ export declare function isNodeExecutionId(value: unknown): value is NodeExecutio
|
|
|
4257
4330
|
export declare function isNodeLocatorId(value: unknown): value is NodeLocatorId;
|
|
4258
4331
|
|
|
4259
4332
|
/** Avoids the type issues with the legacy IComboWidget type */
|
|
4260
|
-
declare interface IStringComboWidget extends IBaseWidget<string, 'combo', RequiredProps<IWidgetOptions<string[]>, 'values'>> {
|
|
4333
|
+
export declare interface IStringComboWidget extends IBaseWidget<string, 'combo', RequiredProps<IWidgetOptions<string[]>, 'values'>> {
|
|
4261
4334
|
type: 'combo';
|
|
4262
4335
|
value: string;
|
|
4263
4336
|
}
|
|
4264
4337
|
|
|
4265
4338
|
/** A widget with a string value */
|
|
4266
|
-
declare interface IStringWidget extends IBaseWidget<string, 'string' | 'text', IWidgetOptions<string[]>> {
|
|
4339
|
+
export declare interface IStringWidget extends IBaseWidget<string, 'string' | 'text', IWidgetOptions<string[]>> {
|
|
4267
4340
|
type: 'string' | 'text';
|
|
4268
4341
|
value: string;
|
|
4269
4342
|
}
|
|
@@ -4283,18 +4356,18 @@ declare interface ItemLocator {
|
|
|
4283
4356
|
}
|
|
4284
4357
|
|
|
4285
4358
|
/** Textarea widget for multi-line text input */
|
|
4286
|
-
declare interface ITextareaWidget extends IBaseWidget<string, 'textarea'> {
|
|
4359
|
+
export declare interface ITextareaWidget extends IBaseWidget<string, 'textarea'> {
|
|
4287
4360
|
type: 'textarea';
|
|
4288
4361
|
value: string;
|
|
4289
4362
|
}
|
|
4290
4363
|
|
|
4291
4364
|
/** Tree select widget for hierarchical selection */
|
|
4292
|
-
declare interface ITreeSelectWidget extends IBaseWidget<string | string[], 'treeselect'> {
|
|
4365
|
+
export declare interface ITreeSelectWidget extends IBaseWidget<string | string[], 'treeselect'> {
|
|
4293
4366
|
type: 'treeselect';
|
|
4294
4367
|
value: string | string[];
|
|
4295
4368
|
}
|
|
4296
4369
|
|
|
4297
|
-
declare interface IVideoEditWidget extends IBaseWidget<VideoEditValue, 'videoedit', IWidgetVideoEditOptions> {
|
|
4370
|
+
export declare interface IVideoEditWidget extends IBaseWidget<VideoEditValue, 'videoedit', IWidgetVideoEditOptions> {
|
|
4298
4371
|
type: 'videoedit';
|
|
4299
4372
|
value: VideoEditValue;
|
|
4300
4373
|
}
|
|
@@ -4307,13 +4380,13 @@ declare interface IVideoEditWidget extends IBaseWidget<VideoEditValue, 'videoedi
|
|
|
4307
4380
|
* Recommend declaration merging any properties that use IWidget (e.g. {@link LGraphNode.widgets}) with a new type alias.
|
|
4308
4381
|
* @see ICustomWidget
|
|
4309
4382
|
*/
|
|
4310
|
-
declare type IWidget = IBooleanWidget | INumericWidget | IStringWidget | IComboWidget | IStringComboWidget | ICustomWidget | ISliderWidget | IGradientSliderWidget | IButtonWidget | IKnobWidget | IFileUploadWidget | IColorWidget | IMarkdownWidget | IImageWidget | ITreeSelectWidget | IMultiSelectWidget | IChartWidget | IGalleriaWidget | IImageCompareWidget | ISelectButtonWidget | ITextareaWidget | IAssetWidget | IImageCropWidget | IBoundingBoxWidget | ICurveWidget | IPainterWidget | ICompositorWidget | IRangeWidget | IVideoEditWidget | IResolutionPreviewWidget | IBoundingBoxesWidget | ILightInfoWidget | IColorsWidget;
|
|
4383
|
+
export declare type IWidget = IBooleanWidget | INumericWidget | IStringWidget | IComboWidget | IStringComboWidget | ICustomWidget | ISliderWidget | IGradientSliderWidget | IButtonWidget | IKnobWidget | IFileUploadWidget | IColorWidget | IMarkdownWidget | IImageWidget | ITreeSelectWidget | IMultiSelectWidget | IChartWidget | IGalleriaWidget | IImageCompareWidget | ISelectButtonWidget | ITextareaWidget | IAssetWidget | IImageCropWidget | IBoundingBoxWidget | ICurveWidget | IPainterWidget | ICompositorWidget | IRangeWidget | IVideoEditWidget | IResolutionPreviewWidget | IBoundingBoxesWidget | ILightInfoWidget | IColorsWidget;
|
|
4311
4384
|
|
|
4312
|
-
declare interface IWidgetAssetOptions extends IWidgetOptions {
|
|
4385
|
+
export declare interface IWidgetAssetOptions extends IWidgetOptions {
|
|
4313
4386
|
openModal: (widget: IBaseWidget) => void;
|
|
4314
4387
|
}
|
|
4315
4388
|
|
|
4316
|
-
declare interface IWidgetGradientSliderOptions extends IWidgetOptions<number[]> {
|
|
4389
|
+
export declare interface IWidgetGradientSliderOptions extends IWidgetOptions<number[]> {
|
|
4317
4390
|
min: number;
|
|
4318
4391
|
max: number;
|
|
4319
4392
|
step2: number;
|
|
@@ -4329,18 +4402,15 @@ declare interface IWidgetKnobOptions extends IWidgetOptions<number[]> {
|
|
|
4329
4402
|
gradient_stops?: string;
|
|
4330
4403
|
}
|
|
4331
4404
|
|
|
4332
|
-
/**
|
|
4333
|
-
|
|
4334
|
-
*
|
|
4335
|
-
* This is set by the ComfyUI_frontend logic. See
|
|
4336
|
-
* https://github.com/Comfy-Org/ComfyUI_frontend/blob/b80e0e1a3c74040f328c4e344326c969c97f67e0/src/extensions/core/widgetInputs.ts#L659
|
|
4337
|
-
*/
|
|
4338
|
-
declare interface IWidgetLocator {
|
|
4405
|
+
/** Identifies the widget a slot is linked to. */
|
|
4406
|
+
export declare interface IWidgetLocator {
|
|
4339
4407
|
name: string;
|
|
4340
4408
|
type?: string;
|
|
4409
|
+
[CONFIG]?: InputSpec;
|
|
4410
|
+
[GET_CONFIG]?: () => InputSpec | undefined;
|
|
4341
4411
|
}
|
|
4342
4412
|
|
|
4343
|
-
declare interface IWidgetOptions<TValues = unknown> {
|
|
4413
|
+
export declare interface IWidgetOptions<TValues = unknown> {
|
|
4344
4414
|
on?: string;
|
|
4345
4415
|
off?: string;
|
|
4346
4416
|
max?: number;
|
|
@@ -4386,6 +4456,15 @@ declare interface IWidgetOptions<TValues = unknown> {
|
|
|
4386
4456
|
* @see IBaseWidget.serialize — workflow persistence
|
|
4387
4457
|
*/
|
|
4388
4458
|
serialize?: boolean;
|
|
4459
|
+
/**
|
|
4460
|
+
* Rounding value for numeric float widgets.
|
|
4461
|
+
*/
|
|
4462
|
+
round?: number;
|
|
4463
|
+
/**
|
|
4464
|
+
* The minimum size of the node if the widget is present.
|
|
4465
|
+
*/
|
|
4466
|
+
minNodeSize?: Size;
|
|
4467
|
+
advanced?: boolean;
|
|
4389
4468
|
values?: TValues;
|
|
4390
4469
|
/** Optional function to format values for display (e.g., hash → human-readable name) */
|
|
4391
4470
|
getOptionLabel?: (value?: string | null) => string;
|
|
@@ -4397,7 +4476,7 @@ declare interface IWidgetOptions<TValues = unknown> {
|
|
|
4397
4476
|
hidden?: boolean;
|
|
4398
4477
|
}
|
|
4399
4478
|
|
|
4400
|
-
declare interface IWidgetRangeOptions extends IWidgetOptions {
|
|
4479
|
+
export declare interface IWidgetRangeOptions extends IWidgetOptions {
|
|
4401
4480
|
display?: 'plain' | 'gradient' | 'histogram';
|
|
4402
4481
|
gradient_stops?: ColorStop[];
|
|
4403
4482
|
show_midpoint?: boolean;
|
|
@@ -4406,7 +4485,7 @@ declare interface IWidgetRangeOptions extends IWidgetOptions {
|
|
|
4406
4485
|
value_max?: number;
|
|
4407
4486
|
}
|
|
4408
4487
|
|
|
4409
|
-
declare interface IWidgetResolutionPreviewOptions extends IWidgetOptions {
|
|
4488
|
+
export declare interface IWidgetResolutionPreviewOptions extends IWidgetOptions {
|
|
4410
4489
|
ratio_widget?: string;
|
|
4411
4490
|
megapixels_widget?: string;
|
|
4412
4491
|
multiple_widget?: string;
|
|
@@ -4420,7 +4499,7 @@ declare interface IWidgetSliderOptions extends IWidgetOptions<number[]> {
|
|
|
4420
4499
|
marker_color?: CanvasColour;
|
|
4421
4500
|
}
|
|
4422
4501
|
|
|
4423
|
-
declare interface IWidgetVideoEditOptions extends IWidgetOptions {
|
|
4502
|
+
export declare interface IWidgetVideoEditOptions extends IWidgetOptions {
|
|
4424
4503
|
features?: VideoEditFeature[];
|
|
4425
4504
|
}
|
|
4426
4505
|
|
|
@@ -4517,7 +4596,7 @@ declare class LegacyWidget<TWidget extends IBaseWidget = IBaseWidget> extends Ba
|
|
|
4517
4596
|
onClick(): void;
|
|
4518
4597
|
}
|
|
4519
4598
|
|
|
4520
|
-
declare class LGraph implements LinkNetwork, BaseLGraph, Serialisable<SerialisableGraph> {
|
|
4599
|
+
export declare class LGraph implements LinkNetwork, BaseLGraph, Serialisable<SerialisableGraph> {
|
|
4521
4600
|
static serialisedSchemaVersion: 1;
|
|
4522
4601
|
static STATUS_STOPPED: number;
|
|
4523
4602
|
static STATUS_RUNNING: number;
|
|
@@ -4554,7 +4633,7 @@ declare class LGraph implements LinkNetwork, BaseLGraph, Serialisable<Serialisab
|
|
|
4554
4633
|
status: number;
|
|
4555
4634
|
get state(): LGraphState;
|
|
4556
4635
|
set state(value: LGraphState);
|
|
4557
|
-
readonly events: CustomEventTarget<LGraphEventMap, "
|
|
4636
|
+
readonly events: CustomEventTarget<LGraphEventMap, "configuring" | "configured" | "subgraph-created" | "convert-to-subgraph" | "open-subgraph" | "node:added" | "node:before-removed" | "node:removed" | "node:property:changed" | "node:slot-label:changed">;
|
|
4558
4637
|
readonly _subgraphs: Map<SubgraphId, Subgraph>;
|
|
4559
4638
|
_nodes: (LGraphNode | SubgraphNode)[];
|
|
4560
4639
|
_nodes_by_id: Partial<Record<NodeId, LGraphNode>>;
|
|
@@ -4953,7 +5032,7 @@ declare class LGraph implements LinkNetwork, BaseLGraph, Serialisable<Serialisab
|
|
|
4953
5032
|
load(url: string | Blob | URL | File, callback?: () => void): void;
|
|
4954
5033
|
}
|
|
4955
5034
|
|
|
4956
|
-
declare class
|
|
5035
|
+
export declare class LGraphBadge {
|
|
4957
5036
|
text: string;
|
|
4958
5037
|
fgColor: string;
|
|
4959
5038
|
bgColor: string;
|
|
@@ -4965,9 +5044,10 @@ declare class LGraphBadge_2 {
|
|
|
4965
5044
|
onClick?: (e: MouseEvent) => void;
|
|
4966
5045
|
xOffset: number;
|
|
4967
5046
|
yOffset: number;
|
|
5047
|
+
centerOnCapHeight: boolean;
|
|
4968
5048
|
readonly _boundingRect: [number, number, number, number];
|
|
4969
5049
|
get boundingRect(): ReadOnlyRect;
|
|
4970
|
-
constructor({ text, fgColor, bgColor, fontSize, padding, height, cornerRadius, iconOptions, onClick, xOffset, yOffset }: LGraphBadgeOptions);
|
|
5050
|
+
constructor({ text, fgColor, bgColor, fontSize, padding, height, cornerRadius, iconOptions, onClick, xOffset, yOffset, centerOnCapHeight }: LGraphBadgeOptions);
|
|
4971
5051
|
get visible(): boolean;
|
|
4972
5052
|
getWidth(ctx: CanvasRenderingContext2D): number;
|
|
4973
5053
|
draw(ctx: CanvasRenderingContext2D, x: number, y: number): void;
|
|
@@ -4985,9 +5065,11 @@ declare interface LGraphBadgeOptions {
|
|
|
4985
5065
|
onClick?: (e: MouseEvent) => void;
|
|
4986
5066
|
xOffset?: number;
|
|
4987
5067
|
yOffset?: number;
|
|
5068
|
+
/** Centres the text on its cap height instead of the em box. */
|
|
5069
|
+
centerOnCapHeight?: boolean;
|
|
4988
5070
|
}
|
|
4989
5071
|
|
|
4990
|
-
declare class LGraphButton extends
|
|
5072
|
+
declare class LGraphButton extends LGraphBadge {
|
|
4991
5073
|
name?: string;
|
|
4992
5074
|
_last_area: Rectangle;
|
|
4993
5075
|
constructor(options: LGraphButtonOptions);
|
|
@@ -5010,7 +5092,7 @@ declare interface LGraphButtonOptions extends LGraphBadgeOptions {
|
|
|
5010
5092
|
* This class is in charge of rendering one graph inside a canvas. And provides all the interaction required.
|
|
5011
5093
|
* Valid callbacks are: onNodeSelected, onNodeDeselected, onShowNodePanel, onNodeDblClicked
|
|
5012
5094
|
*/
|
|
5013
|
-
declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap> {
|
|
5095
|
+
export declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap> {
|
|
5014
5096
|
static DEFAULT_BACKGROUND_IMAGE: string;
|
|
5015
5097
|
static DEFAULT_EVENT_LINK_COLOR: string;
|
|
5016
5098
|
/** Link type to colour dictionary. */
|
|
@@ -5317,6 +5399,8 @@ declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap
|
|
|
5317
5399
|
onNodeMoved?: (node_dragged: LGraphNode | undefined) => void;
|
|
5318
5400
|
/** @deprecated Called with the deprecated {@link selected_nodes} when the selection changes. Replacement not yet impl. */
|
|
5319
5401
|
onSelectionChange?: (selected: Dictionary<Positionable>) => void;
|
|
5402
|
+
private selectionNotificationDepth;
|
|
5403
|
+
private withSelectionNotificationsSuppressed;
|
|
5320
5404
|
/** called when rendering a tooltip */
|
|
5321
5405
|
onDrawLinkTooltip?: (ctx: CanvasRenderingContext2D, link: LLink | null, canvas?: LGraphCanvas) => boolean;
|
|
5322
5406
|
/** to render foreground objects not affected by transform (for GUIs) */
|
|
@@ -5605,14 +5689,17 @@ declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap
|
|
|
5605
5689
|
* Selects a {@link Positionable} item.
|
|
5606
5690
|
* @param item The canvas item to add to the selection.
|
|
5607
5691
|
*/
|
|
5608
|
-
select<TPositionable extends Positionable = LGraphNode>(item: TPositionable, { selectGroupChildren }?: {
|
|
5692
|
+
select<TPositionable extends Positionable = LGraphNode>(item: TPositionable, { notify, selectGroupChildren }?: {
|
|
5693
|
+
notify?: boolean;
|
|
5609
5694
|
selectGroupChildren?: boolean;
|
|
5610
5695
|
}): void;
|
|
5611
5696
|
/**
|
|
5612
5697
|
* Deselects a {@link Positionable} item.
|
|
5613
5698
|
* @param item The canvas item to remove from the selection.
|
|
5614
5699
|
*/
|
|
5615
|
-
deselect<TPositionable extends Positionable = LGraphNode>(item: TPositionable
|
|
5700
|
+
deselect<TPositionable extends Positionable = LGraphNode>(item: TPositionable, { notify }?: {
|
|
5701
|
+
notify?: boolean;
|
|
5702
|
+
}): void;
|
|
5616
5703
|
/** @deprecated See {@link LGraphCanvas.processSelect} */
|
|
5617
5704
|
processNodeSelected(item: LGraphNode, e: CanvasPointerEvent): void;
|
|
5618
5705
|
/** @deprecated See {@link LGraphCanvas.select} */
|
|
@@ -5632,17 +5719,12 @@ declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap
|
|
|
5632
5719
|
selectNodes(nodes?: LGraphNode[], add_to_current_selection?: boolean): void;
|
|
5633
5720
|
/** @deprecated See {@link LGraphCanvas.deselect} */
|
|
5634
5721
|
deselectNode(node: LGraphNode): void;
|
|
5635
|
-
/**
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
*/
|
|
5722
|
+
/** Deselects all items on the canvas. */
|
|
5723
|
+
deselectAll(options?: DeselectAllOptions): void;
|
|
5724
|
+
/** @deprecated Pass `{ keepSelected }` instead. */
|
|
5639
5725
|
deselectAll(keepSelected?: Positionable): void;
|
|
5640
5726
|
/** @deprecated See {@link LGraphCanvas.deselectAll} */
|
|
5641
5727
|
deselectAllNodes(): void;
|
|
5642
|
-
/**
|
|
5643
|
-
* Deletes all selected items from the graph.
|
|
5644
|
-
* @todo Refactor deletion task to LGraph. Selection is a canvas property, delete is a graph action.
|
|
5645
|
-
*/
|
|
5646
5728
|
deleteSelected(): void;
|
|
5647
5729
|
/**
|
|
5648
5730
|
* deletes all nodes in the current selection from the graph
|
|
@@ -5759,6 +5841,7 @@ declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap
|
|
|
5759
5841
|
drawConnections(ctx: CanvasRenderingContext2D, nodesInFrameOrder?: LGraphNode[], nodesGraph?: RegisteredLGraph | RegisteredSubgraph | null): void;
|
|
5760
5842
|
private getNodeModeAlpha;
|
|
5761
5843
|
private _renderFloatingLinks;
|
|
5844
|
+
private _renderSnappingLink;
|
|
5762
5845
|
private _renderAllLinkSegments;
|
|
5763
5846
|
/**
|
|
5764
5847
|
* Build LinkRenderContext from canvas properties
|
|
@@ -5826,7 +5909,7 @@ declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap
|
|
|
5826
5909
|
showShowNodePanel(node: LGraphNode): void;
|
|
5827
5910
|
checkPanels(): void;
|
|
5828
5911
|
getCanvasMenuOptions(): (IContextMenuValue | null)[];
|
|
5829
|
-
getNodeMenuOptions(node: LGraphNode): (IContextMenuValue<INodeSlotContextItem, unknown, unknown> | IContextMenuValue<string | null, unknown, unknown> | IContextMenuValue<string, unknown, unknown> | IContextMenuValue<"
|
|
5912
|
+
getNodeMenuOptions(node: LGraphNode): (IContextMenuValue<INodeSlotContextItem, unknown, unknown> | IContextMenuValue<string | null, unknown, unknown> | IContextMenuValue<string, unknown, unknown> | IContextMenuValue<"round" | "default" | "card" | "box", unknown, unknown> | IContextMenuValue<unknown, LGraphNode, unknown> | null)[];
|
|
5830
5913
|
/** @deprecated */
|
|
5831
5914
|
getGroupMenuOptions(group: LGraphGroup): (IContextMenuValue<string | null, unknown, unknown> | IContextMenuValue<string, unknown, unknown> | null)[];
|
|
5832
5915
|
processContextMenu(node: LGraphNode | undefined, event: CanvasPointerEvent): void;
|
|
@@ -5854,12 +5937,12 @@ declare class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap
|
|
|
5854
5937
|
};
|
|
5855
5938
|
}
|
|
5856
5939
|
|
|
5857
|
-
declare interface LGraphCanvas {
|
|
5940
|
+
export declare interface LGraphCanvas {
|
|
5858
5941
|
/** @deprecated Use {@link LGraphCanvas.applyNodePositions} instead. */
|
|
5859
5942
|
repositionNodesVueMode(positions: NewNodePosition[]): void;
|
|
5860
5943
|
}
|
|
5861
5944
|
|
|
5862
|
-
declare interface LGraphCanvasEventMap {
|
|
5945
|
+
export declare interface LGraphCanvasEventMap {
|
|
5863
5946
|
/** The active graph has changed. */
|
|
5864
5947
|
'litegraph:set-graph': {
|
|
5865
5948
|
/** The new active graph. */
|
|
@@ -5943,7 +6026,7 @@ declare interface LGraphConfig {
|
|
|
5943
6026
|
links_ontop?: boolean;
|
|
5944
6027
|
}
|
|
5945
6028
|
|
|
5946
|
-
declare interface LGraphEventMap {
|
|
6029
|
+
export declare interface LGraphEventMap {
|
|
5947
6030
|
configuring: {
|
|
5948
6031
|
/** The data that was used to configure the graph. */
|
|
5949
6032
|
data: ISerialisedGraph | SerialisableGraph;
|
|
@@ -6014,7 +6097,7 @@ declare interface LGraphEventMap {
|
|
|
6014
6097
|
};
|
|
6015
6098
|
}
|
|
6016
6099
|
|
|
6017
|
-
declare enum LGraphEventMode {
|
|
6100
|
+
export declare enum LGraphEventMode {
|
|
6018
6101
|
ALWAYS = 0,
|
|
6019
6102
|
ON_EVENT = 1,
|
|
6020
6103
|
NEVER = 2,
|
|
@@ -6033,7 +6116,7 @@ declare interface LGraphExtra extends Dictionary<unknown> {
|
|
|
6033
6116
|
workflowRendererVersion?: RendererType;
|
|
6034
6117
|
}
|
|
6035
6118
|
|
|
6036
|
-
declare class LGraphGroup implements Positionable, IPinnable, IColorable {
|
|
6119
|
+
export declare class LGraphGroup implements Positionable, IPinnable, IColorable {
|
|
6037
6120
|
static minWidth: number;
|
|
6038
6121
|
static minHeight: number;
|
|
6039
6122
|
static resizeLength: number;
|
|
@@ -6163,11 +6246,12 @@ declare interface LGraphIconOptions {
|
|
|
6163
6246
|
yOffset?: number;
|
|
6164
6247
|
}
|
|
6165
6248
|
|
|
6166
|
-
declare interface LGraphNode {
|
|
6249
|
+
export declare interface LGraphNode {
|
|
6167
6250
|
constructor: LGraphNodeConstructor;
|
|
6251
|
+
addDOMWidget<T extends HTMLElement = HTMLElement, V extends object | string = string>(name: string, type: string, element: T, options?: DOMWidgetOptions<V>): DOMWidget<T, V>;
|
|
6168
6252
|
}
|
|
6169
6253
|
|
|
6170
|
-
declare class LGraphNode implements NodeLike, Positionable, IPinnable, IColorable {
|
|
6254
|
+
export declare class LGraphNode implements NodeLike, Positionable, IPinnable, IColorable {
|
|
6171
6255
|
static title?: string;
|
|
6172
6256
|
static MAX_CONSOLE?: number;
|
|
6173
6257
|
static type?: string;
|
|
@@ -6293,7 +6377,7 @@ declare class LGraphNode implements NodeLike, Positionable, IPinnable, IColorabl
|
|
|
6293
6377
|
* Extension-provided badges, drawn after the derived rows from
|
|
6294
6378
|
* {@link badgeRows}. Thunks are re-evaluated every frame.
|
|
6295
6379
|
*/
|
|
6296
|
-
badges: (
|
|
6380
|
+
badges: (LGraphBadge | (() => LGraphBadge))[];
|
|
6297
6381
|
/** @deprecated Badges always render top-right; assignment is ignored. */
|
|
6298
6382
|
get badgePosition(): string;
|
|
6299
6383
|
set badgePosition(_value: string);
|
|
@@ -6331,8 +6415,50 @@ declare class LGraphNode implements NodeLike, Positionable, IPinnable, IColorabl
|
|
|
6331
6415
|
set showAdvanced(value: boolean | undefined);
|
|
6332
6416
|
comfyDynamic?: Record<string, object>;
|
|
6333
6417
|
comfyClass?: string;
|
|
6418
|
+
/**
|
|
6419
|
+
* If the node is a frontend only node and should not be serialized into the prompt.
|
|
6420
|
+
*/
|
|
6334
6421
|
isVirtualNode?: boolean;
|
|
6422
|
+
/**
|
|
6423
|
+
* @deprecated Lets virtual nodes such as primitives write their values into
|
|
6424
|
+
* the graph before queueing.
|
|
6425
|
+
*/
|
|
6335
6426
|
applyToGraph?(extraLinks?: LLink[]): void;
|
|
6427
|
+
animatedImages?: boolean;
|
|
6428
|
+
imgs?: HTMLImageElement[];
|
|
6429
|
+
images?: ResultItem[];
|
|
6430
|
+
videoContainer?: HTMLElement;
|
|
6431
|
+
/** Whether the node's preview media is loading */
|
|
6432
|
+
isLoading?: boolean;
|
|
6433
|
+
isUploading?: boolean;
|
|
6434
|
+
previewMediaType?: 'image' | 'video' | 'audio' | 'model';
|
|
6435
|
+
/** If true, output images are stored but not rendered below the node */
|
|
6436
|
+
hideOutputImages?: boolean;
|
|
6437
|
+
preview?: string[];
|
|
6438
|
+
/** Index of the currently selected image on a multi-image node such as Preview Image */
|
|
6439
|
+
imageIndex?: number | null;
|
|
6440
|
+
imageRects?: Rect[];
|
|
6441
|
+
overIndex?: number | null;
|
|
6442
|
+
pointerDown?: {
|
|
6443
|
+
index: number | null;
|
|
6444
|
+
pos: Point;
|
|
6445
|
+
} | null;
|
|
6446
|
+
/** @deprecated Image previews size themselves. */
|
|
6447
|
+
setSizeForImage?(force?: boolean): void;
|
|
6448
|
+
/** @deprecated Unused */
|
|
6449
|
+
inputHeight?: unknown;
|
|
6450
|
+
/** The y offset of the image preview to the top of the node body. */
|
|
6451
|
+
imageOffset?: number;
|
|
6452
|
+
canvasHeight?: number;
|
|
6453
|
+
index?: number;
|
|
6454
|
+
runningInternalNodeId?: SerializedNodeId;
|
|
6455
|
+
/** Used internally for sizing the node during creation */
|
|
6456
|
+
_initialMinSize?: {
|
|
6457
|
+
width: number;
|
|
6458
|
+
height: number;
|
|
6459
|
+
};
|
|
6460
|
+
/** Raw widget values from the last `configure`; litegraph does not read it. */
|
|
6461
|
+
widgets_values?: TWidgetValue[];
|
|
6336
6462
|
isSubgraphNode(): this is RegisteredSubgraphNode;
|
|
6337
6463
|
/** @inheritdoc {@link renderArea} */
|
|
6338
6464
|
private _renderArea;
|
|
@@ -6396,6 +6522,27 @@ declare class LGraphNode implements NodeLike, Positionable, IPinnable, IColorabl
|
|
|
6396
6522
|
setTrigger?(this: LGraphNode, func?: () => void): void;
|
|
6397
6523
|
onDrawBackground?(this: LGraphNode, ctx: CanvasRenderingContext2D): void;
|
|
6398
6524
|
onNodeCreated?(this: LGraphNode): void;
|
|
6525
|
+
/**
|
|
6526
|
+
* Callback fired on each node after the graph is configured
|
|
6527
|
+
*/
|
|
6528
|
+
onAfterGraphConfigured?(): void;
|
|
6529
|
+
onGraphConfigured?(): void;
|
|
6530
|
+
/** Called with the node's execution output, which may carry custom keys. */
|
|
6531
|
+
onExecuted?(output: NodeExecutionOutput): void;
|
|
6532
|
+
onExecutionStart?(): unknown;
|
|
6533
|
+
refreshComboInNode?(defs?: Record<string, ComfyNodeDef>): void;
|
|
6534
|
+
/** Flattens a subgraph node into its executable inner nodes. */
|
|
6535
|
+
getInnerNodes?(nodesByExecutionId: Map<RegisteredExecutionId, RegisteredExecutableLGraphNode>, subgraphNodePath?: readonly SerializedNodeId[], nodes?: RegisteredExecutableLGraphNode[], subgraphs?: Set<LGraphNode>): RegisteredExecutableLGraphNode[];
|
|
6536
|
+
recreate?(): Promise<LGraphNode>;
|
|
6537
|
+
/** Returns true if this node handles an external drag (file or element). */
|
|
6538
|
+
onDragOver?(e: DragEvent): boolean;
|
|
6539
|
+
/** Returns true if this node handled an external drop (file or element). */
|
|
6540
|
+
onDragDrop?(e: DragEvent): Promise<boolean> | boolean;
|
|
6541
|
+
convertWidgetToInput?(): boolean;
|
|
6542
|
+
/** Callback for pasting an image file into the node */
|
|
6543
|
+
pasteFile?(file: File): void;
|
|
6544
|
+
/** Callback for pasting multiple files into the node */
|
|
6545
|
+
pasteFiles?(files: File[]): void;
|
|
6399
6546
|
/**
|
|
6400
6547
|
* Callback invoked by {@link connect} to override the target slot index.
|
|
6401
6548
|
* Its return value overrides the target index selection.
|
|
@@ -7110,7 +7257,7 @@ declare class LGraphNode implements NodeLike, Positionable, IPinnable, IColorabl
|
|
|
7110
7257
|
drawProgressBar(ctx: CanvasRenderingContext2D): void;
|
|
7111
7258
|
}
|
|
7112
7259
|
|
|
7113
|
-
declare interface LGraphNodeConstructor<T extends RegisteredLGraphNode = RegisteredLGraphNode> {
|
|
7260
|
+
export declare interface LGraphNodeConstructor<T extends RegisteredLGraphNode = RegisteredLGraphNode> {
|
|
7114
7261
|
new (title: string, type?: string): T;
|
|
7115
7262
|
title?: string;
|
|
7116
7263
|
desc?: string;
|
|
@@ -7130,6 +7277,11 @@ declare interface LGraphNodeConstructor<T extends RegisteredLGraphNode = Registe
|
|
|
7130
7277
|
keepAllLinksOnBypass: boolean;
|
|
7131
7278
|
resizeHandleSize?: number;
|
|
7132
7279
|
resizeEdgeSize?: number;
|
|
7280
|
+
comfyClass?: string;
|
|
7281
|
+
nodeData?: ComfyNodeDef & ComfyNodeDef_2 & {
|
|
7282
|
+
[key: symbol]: unknown;
|
|
7283
|
+
};
|
|
7284
|
+
category?: string;
|
|
7133
7285
|
}
|
|
7134
7286
|
|
|
7135
7287
|
declare interface LGraphState {
|
|
@@ -7152,27 +7304,6 @@ declare type LGraphTriggerParam<A extends LGraphTriggerAction> = Extract<LGraphT
|
|
|
7152
7304
|
type: A;
|
|
7153
7305
|
}>;
|
|
7154
7306
|
|
|
7155
|
-
declare interface LightInfoEntry {
|
|
7156
|
-
type: LightInfoType;
|
|
7157
|
-
color: string;
|
|
7158
|
-
intensity: number;
|
|
7159
|
-
position: LightInfoVec3;
|
|
7160
|
-
target?: LightInfoVec3;
|
|
7161
|
-
range?: number;
|
|
7162
|
-
innerConeAngle?: number;
|
|
7163
|
-
outerConeAngle?: number;
|
|
7164
|
-
radius?: number;
|
|
7165
|
-
castShadow?: boolean;
|
|
7166
|
-
}
|
|
7167
|
-
|
|
7168
|
-
declare type LightInfoType = 'directional' | 'point' | 'spot';
|
|
7169
|
-
|
|
7170
|
-
declare interface LightInfoVec3 {
|
|
7171
|
-
x: number;
|
|
7172
|
-
y: number;
|
|
7173
|
-
z: number;
|
|
7174
|
-
}
|
|
7175
|
-
|
|
7176
7307
|
declare class LightInfoWidget extends BaseWidget<ILightInfoWidget> implements ILightInfoWidget {
|
|
7177
7308
|
drawWidget(ctx: CanvasRenderingContext2D, options: DrawWidgetOptions): void;
|
|
7178
7309
|
onClick(_options: WidgetEventOptions): void;
|
|
@@ -7295,7 +7426,7 @@ declare class LinkConnector {
|
|
|
7295
7426
|
* @param eventName The event to listen for.
|
|
7296
7427
|
* @param listener The listener to call when the event is fired.
|
|
7297
7428
|
*/
|
|
7298
|
-
listenUntilReset<K extends keyof LinkConnectorEventMap>(eventName: K, listener:
|
|
7429
|
+
listenUntilReset<K extends keyof LinkConnectorEventMap>(eventName: K, listener: EventListeners<LinkConnectorEventMap>[K], options?: boolean | AddEventListenerOptions): void;
|
|
7299
7430
|
/**
|
|
7300
7431
|
* Resets everything to its initial state.
|
|
7301
7432
|
*
|
|
@@ -7368,7 +7499,7 @@ declare interface LinkConnectorState {
|
|
|
7368
7499
|
}
|
|
7369
7500
|
|
|
7370
7501
|
/** The direction that a link point will flow towards - e.g. horizontal outputs are right by default */
|
|
7371
|
-
declare enum LinkDirection {
|
|
7502
|
+
export declare enum LinkDirection {
|
|
7372
7503
|
NONE = 0,
|
|
7373
7504
|
UP = 1,
|
|
7374
7505
|
DOWN = 2,
|
|
@@ -7382,7 +7513,7 @@ export declare type LinkId = number & {
|
|
|
7382
7513
|
};
|
|
7383
7514
|
|
|
7384
7515
|
/** The marker in the middle of a link */
|
|
7385
|
-
declare enum LinkMarkerShape {
|
|
7516
|
+
export declare enum LinkMarkerShape {
|
|
7386
7517
|
/** Do not display markers */
|
|
7387
7518
|
None = 0,
|
|
7388
7519
|
/** Circles (default) */
|
|
@@ -7394,7 +7525,7 @@ declare enum LinkMarkerShape {
|
|
|
7394
7525
|
/**
|
|
7395
7526
|
* Contains a list of links, reroutes, and nodes.
|
|
7396
7527
|
*/
|
|
7397
|
-
declare interface LinkNetwork extends ReadonlyLinkNetwork {
|
|
7528
|
+
export declare interface LinkNetwork extends ReadonlyLinkNetwork {
|
|
7398
7529
|
readonly links: Map<LinkId, RegisteredLLink>;
|
|
7399
7530
|
readonly reroutes: Map<RerouteId, RegisteredReroute>;
|
|
7400
7531
|
addFloatingLink(link: RegisteredLLink): RegisteredLLink | undefined;
|
|
@@ -7431,7 +7562,7 @@ declare interface LinkRenderContext {
|
|
|
7431
7562
|
}
|
|
7432
7563
|
|
|
7433
7564
|
/** The path calculation that links follow */
|
|
7434
|
-
declare enum LinkRenderType {
|
|
7565
|
+
export declare enum LinkRenderType {
|
|
7435
7566
|
HIDDEN_LINK = -1,
|
|
7436
7567
|
/** Juts out from the input & output a little @see LinkDirection, then a straight line between them */
|
|
7437
7568
|
STRAIGHT_LINK = 0,
|
|
@@ -7483,7 +7614,7 @@ declare let LiteGraph_2: RegisteredLiteGraphGlobal;
|
|
|
7483
7614
|
/**
|
|
7484
7615
|
* The Global Scope. It contains all the registered node classes.
|
|
7485
7616
|
*/
|
|
7486
|
-
declare class LiteGraphGlobal {
|
|
7617
|
+
export declare class LiteGraphGlobal {
|
|
7487
7618
|
SlotShape: typeof SlotShape;
|
|
7488
7619
|
SlotDirection: typeof SlotDirection_2;
|
|
7489
7620
|
SlotType: typeof SlotType;
|
|
@@ -7532,7 +7663,7 @@ declare class LiteGraphGlobal {
|
|
|
7532
7663
|
/** default node position */
|
|
7533
7664
|
DEFAULT_POSITION: number[];
|
|
7534
7665
|
/** ,"circle" */
|
|
7535
|
-
VALID_SHAPES: ("
|
|
7666
|
+
VALID_SHAPES: ("round" | "default" | "card" | "box")[];
|
|
7536
7667
|
ROUND_RADIUS: number;
|
|
7537
7668
|
BOX_SHAPE: RenderShape;
|
|
7538
7669
|
ROUND_SHAPE: RenderShape;
|
|
@@ -7899,7 +8030,7 @@ declare class LitegraphLinkAdapter {
|
|
|
7899
8030
|
private calculateLinkBounds;
|
|
7900
8031
|
}
|
|
7901
8032
|
|
|
7902
|
-
declare class LLink implements LinkSegment, Serialisable<SerialisableLLink> {
|
|
8033
|
+
export declare class LLink implements LinkSegment, Serialisable<SerialisableLLink> {
|
|
7903
8034
|
static _drawDebug: boolean;
|
|
7904
8035
|
/**
|
|
7905
8036
|
* The link's topology state. Once registered with {@link useLinkStore},
|
|
@@ -8450,7 +8581,7 @@ declare interface NodeSlotLabelChangedEvent {
|
|
|
8450
8581
|
}
|
|
8451
8582
|
|
|
8452
8583
|
/** Node slot type - input or output */
|
|
8453
|
-
declare enum NodeSlotType {
|
|
8584
|
+
export declare enum NodeSlotType {
|
|
8454
8585
|
INPUT = 1,
|
|
8455
8586
|
OUTPUT = 2
|
|
8456
8587
|
}
|
|
@@ -8749,7 +8880,7 @@ declare type PickNevers_2<T> = {
|
|
|
8749
8880
|
};
|
|
8750
8881
|
|
|
8751
8882
|
/** A point represented as `[x, y]` co-ordinates */
|
|
8752
|
-
declare type Point = [x: number, y: number];
|
|
8883
|
+
export declare type Point = [x: number, y: number];
|
|
8753
8884
|
|
|
8754
8885
|
/**
|
|
8755
8886
|
* An object that can be positioned, selected, and moved.
|
|
@@ -8866,7 +8997,7 @@ declare interface QueuePromptOptions_2 {
|
|
|
8866
8997
|
intent?: WorkflowQueueIntent;
|
|
8867
8998
|
}
|
|
8868
8999
|
|
|
8869
|
-
declare interface RangeValue {
|
|
9000
|
+
export declare interface RangeValue {
|
|
8870
9001
|
min: number;
|
|
8871
9002
|
max: number;
|
|
8872
9003
|
midpoint?: number;
|
|
@@ -8879,7 +9010,7 @@ declare class RangeWidget extends BaseWidget<IRangeWidget> implements IRangeWidg
|
|
|
8879
9010
|
|
|
8880
9011
|
declare type RawJobListItem = z.infer<typeof zRawJobListItem>;
|
|
8881
9012
|
|
|
8882
|
-
declare interface ReadonlyLinkNetwork {
|
|
9013
|
+
export declare interface ReadonlyLinkNetwork {
|
|
8883
9014
|
readonly rootGraph: {
|
|
8884
9015
|
readonly id: UUID;
|
|
8885
9016
|
};
|
|
@@ -8896,14 +9027,14 @@ declare interface ReadonlyLinkNetwork {
|
|
|
8896
9027
|
}
|
|
8897
9028
|
|
|
8898
9029
|
/** A rectangle starting at top-left coordinates `[x, y, width, height]` that will not be modified */
|
|
8899
|
-
declare type ReadOnlyRect = readonly [x: number, y: number, width: number, height: number] | ReadOnlyTypedArray<Float64Array>;
|
|
9030
|
+
export declare type ReadOnlyRect = readonly [x: number, y: number, width: number, height: number] | ReadOnlyTypedArray<Float64Array>;
|
|
8900
9031
|
|
|
8901
9032
|
declare type ReadOnlyRectangle = Omit<ReadOnlyTypedArray<Rectangle>, 'setHeightBottomAnchored' | 'setWidthRightAnchored' | 'resizeTopLeft' | 'resizeBottomLeft' | 'resizeTopRight' | 'resizeBottomRight' | 'updateTo'>;
|
|
8902
9033
|
|
|
8903
9034
|
declare type ReadOnlyTypedArray<T extends Float64Array> = Omit<Readonly<T>, 'fill' | 'copyWithin' | 'reverse' | 'set' | 'sort' | 'subarray'>;
|
|
8904
9035
|
|
|
8905
9036
|
/** A rectangle starting at top-left coordinates `[x, y, width, height]` */
|
|
8906
|
-
declare type Rect = [x: number, y: number, width: number, height: number] | Float64Array;
|
|
9037
|
+
export declare type Rect = [x: number, y: number, width: number, height: number] | Float64Array;
|
|
8907
9038
|
|
|
8908
9039
|
/**
|
|
8909
9040
|
* A rectangle, represented as a float64 array of 4 numbers: [x, y, width, height].
|
|
@@ -8916,7 +9047,7 @@ declare type Rect = [x: number, y: number, width: number, height: number] | Floa
|
|
|
8916
9047
|
* - {@link pos}: The position of the top-left corner of the rectangle.
|
|
8917
9048
|
* - {@link size}: The size of the rectangle.
|
|
8918
9049
|
*/
|
|
8919
|
-
declare class Rectangle extends Float64Array {
|
|
9050
|
+
export declare class Rectangle extends Float64Array {
|
|
8920
9051
|
private _pos;
|
|
8921
9052
|
private _size;
|
|
8922
9053
|
constructor(x?: number, y?: number, width?: number, height?: number);
|
|
@@ -9070,6 +9201,10 @@ declare type RegisteredBaseLGraph = BaseLGraph;
|
|
|
9070
9201
|
|
|
9071
9202
|
declare type RegisteredContextMenu<TValue = unknown> = ContextMenu<TValue>;
|
|
9072
9203
|
|
|
9204
|
+
declare type RegisteredExecutableLGraphNode = ExecutableLGraphNode;
|
|
9205
|
+
|
|
9206
|
+
declare type RegisteredExecutionId = ExecutionId;
|
|
9207
|
+
|
|
9073
9208
|
declare type RegisteredFloatingRenderLink = FloatingRenderLink;
|
|
9074
9209
|
|
|
9075
9210
|
declare type RegisteredGraphOrSubgraph = GraphOrSubgraph;
|
|
@@ -9176,7 +9311,7 @@ declare interface RenderLink {
|
|
|
9176
9311
|
declare type RenderLinkUnion = MovingInputLink | MovingOutputLink | FloatingRenderLink | ToInputRenderLink | ToOutputRenderLink | ToInputFromIoNodeLink | ToOutputFromIoNodeLink;
|
|
9177
9312
|
|
|
9178
9313
|
/** Shape that an object will render as - used by nodes and slots */
|
|
9179
|
-
declare enum RenderShape {
|
|
9314
|
+
export declare enum RenderShape {
|
|
9180
9315
|
/** Rectangle with square corners */
|
|
9181
9316
|
BOX = 1,
|
|
9182
9317
|
/** Rounded rectangle */
|
|
@@ -9205,7 +9340,7 @@ declare type RequiredProps<T, Properties extends keyof T> = Omit<T, Properties>
|
|
|
9205
9340
|
* Stores only primitive values (IDs) to reference other items in its network,
|
|
9206
9341
|
* and a `WeakRef` to a {@link LinkNetwork} to resolve them.
|
|
9207
9342
|
*/
|
|
9208
|
-
declare class Reroute implements Positionable, LinkSegment, Serialisable<SerialisableReroute> {
|
|
9343
|
+
export declare class Reroute implements Positionable, LinkSegment, Serialisable<SerialisableReroute> {
|
|
9209
9344
|
static radius: number;
|
|
9210
9345
|
/** Maximum distance from reroutes to their bezier curve control points. */
|
|
9211
9346
|
static maxSplineOffset: number;
|
|
@@ -9445,6 +9580,8 @@ declare interface ResolvedSubgraphOutput {
|
|
|
9445
9580
|
subgraphInput: RegisteredSubgraphInput;
|
|
9446
9581
|
}
|
|
9447
9582
|
|
|
9583
|
+
declare type ResultItem = z.infer<typeof zResultItem>;
|
|
9584
|
+
|
|
9448
9585
|
declare interface RetrySignalLifecycle {
|
|
9449
9586
|
clearInitialTimeout: () => void;
|
|
9450
9587
|
createSignal: () => AbortSignal | undefined;
|
|
@@ -9480,7 +9617,7 @@ declare interface Serialisable<SerialisableObject> {
|
|
|
9480
9617
|
asSerialisable(): SerialisableObject;
|
|
9481
9618
|
}
|
|
9482
9619
|
|
|
9483
|
-
declare interface SerialisableGraph extends BaseExportedGraph {
|
|
9620
|
+
export declare interface SerialisableGraph extends BaseExportedGraph {
|
|
9484
9621
|
/** Schema version. @remarks Version bump should add to const union, which is used to narrow type during deserialise. */
|
|
9485
9622
|
version: 0 | 1;
|
|
9486
9623
|
state: SerialisableGraphState;
|
|
@@ -9500,7 +9637,7 @@ declare interface SerialisableGraphState {
|
|
|
9500
9637
|
lastRerouteId: number;
|
|
9501
9638
|
}
|
|
9502
9639
|
|
|
9503
|
-
declare interface SerialisableLLink extends LinkPresentation {
|
|
9640
|
+
export declare interface SerialisableLLink extends LinkPresentation {
|
|
9504
9641
|
/** Link ID */
|
|
9505
9642
|
id: number;
|
|
9506
9643
|
/** Output node ID */
|
|
@@ -9517,7 +9654,7 @@ declare interface SerialisableLLink extends LinkPresentation {
|
|
|
9517
9654
|
parentId?: number;
|
|
9518
9655
|
}
|
|
9519
9656
|
|
|
9520
|
-
declare interface SerialisableReroute {
|
|
9657
|
+
export declare interface SerialisableReroute {
|
|
9521
9658
|
id: number;
|
|
9522
9659
|
parentId?: number;
|
|
9523
9660
|
pos: Point;
|
|
@@ -9567,6 +9704,7 @@ declare interface SettingParams<TValue = unknown> extends FormItem {
|
|
|
9567
9704
|
}
|
|
9568
9705
|
|
|
9569
9706
|
export declare type Settings = {
|
|
9707
|
+
'Comfy.AgentPanel.ConsentOfferDeclined': boolean;
|
|
9570
9708
|
'Comfy.ColorPalette': string;
|
|
9571
9709
|
'Comfy.CustomColorPalettes': ColorPalettes;
|
|
9572
9710
|
'Comfy.Canvas.BackgroundImage'?: string;
|
|
@@ -9777,7 +9915,7 @@ export declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebar
|
|
|
9777
9915
|
declare type SimpleApiEvents = keyof PickNevers<ApiEventTypes>;
|
|
9778
9916
|
|
|
9779
9917
|
/** A size represented as `[width, height]` */
|
|
9780
|
-
declare type Size = [width: number, height: number];
|
|
9918
|
+
export declare type Size = [width: number, height: number];
|
|
9781
9919
|
|
|
9782
9920
|
declare class SliderWidget extends BaseWidget<ISliderWidget> implements ISliderWidget {
|
|
9783
9921
|
marker?: number;
|
|
@@ -9810,7 +9948,7 @@ declare abstract class SlotBase implements INodeSlot {
|
|
|
9810
9948
|
color_on?: CanvasColour;
|
|
9811
9949
|
locked?: boolean;
|
|
9812
9950
|
nameLocked?: boolean;
|
|
9813
|
-
widget?:
|
|
9951
|
+
widget?: INodeInputSlot['widget'];
|
|
9814
9952
|
hasErrors?: boolean;
|
|
9815
9953
|
/** The centre point of the slot. */
|
|
9816
9954
|
abstract pos?: Point;
|
|
@@ -9835,7 +9973,7 @@ export declare function slotId(nodeId: NodeId, direction: SlotDirection, index:
|
|
|
9835
9973
|
export declare type SlotIndex = number;
|
|
9836
9974
|
|
|
9837
9975
|
/** @see RenderShape */
|
|
9838
|
-
declare enum SlotShape {
|
|
9976
|
+
export declare enum SlotShape {
|
|
9839
9977
|
Box = 1,
|
|
9840
9978
|
Arrow = 5,
|
|
9841
9979
|
Grid = 6,
|
|
@@ -9843,7 +9981,7 @@ declare enum SlotShape {
|
|
|
9843
9981
|
HollowCircle = 7
|
|
9844
9982
|
}
|
|
9845
9983
|
|
|
9846
|
-
declare enum SlotType {
|
|
9984
|
+
export declare enum SlotType {
|
|
9847
9985
|
Array = "array",
|
|
9848
9986
|
Event = -1
|
|
9849
9987
|
}
|
|
@@ -9869,8 +10007,8 @@ declare interface StatusWsMessage {
|
|
|
9869
10007
|
declare type StatusWsMessageStatus = PromptInfo;
|
|
9870
10008
|
|
|
9871
10009
|
/** A subgraph definition. */
|
|
9872
|
-
declare class Subgraph extends LGraph implements BaseLGraph, Serialisable<ExportedSubgraph> {
|
|
9873
|
-
readonly events: CustomEventTarget<SubgraphEventMap, "
|
|
10010
|
+
export declare class Subgraph extends LGraph implements BaseLGraph, Serialisable<ExportedSubgraph> {
|
|
10011
|
+
readonly events: CustomEventTarget<SubgraphEventMap, "configuring" | "configured" | "subgraph-created" | "convert-to-subgraph" | "open-subgraph" | "node:added" | "node:before-removed" | "node:removed" | "node:property:changed" | "node:slot-label:changed" | "adding-input" | "adding-output" | "input-added" | "output-added" | "removing-input" | "removing-output" | "inputs-reordered" | "renaming-input" | "renaming-output" | "widget-promoted" | "widget-demoted">;
|
|
9874
10012
|
/** Limits the number of levels / depth that subgraphs may be nested. Prevents uncontrolled programmatic nesting. */
|
|
9875
10013
|
static MAX_NESTED_SUBGRAPHS: number;
|
|
9876
10014
|
/** The display name of the subgraph. */
|
|
@@ -10002,7 +10140,7 @@ declare interface SubgraphEventMap extends LGraphEventMap {
|
|
|
10002
10140
|
* Unique identifier for a subgraph definition. Structurally a {@link UUID};
|
|
10003
10141
|
* provided as a domain-specific alias for clarity at adoption sites.
|
|
10004
10142
|
*/
|
|
10005
|
-
declare type SubgraphId = UUID;
|
|
10143
|
+
export declare type SubgraphId = UUID;
|
|
10006
10144
|
|
|
10007
10145
|
/**
|
|
10008
10146
|
* An input "slot" from a parent graph into a subgraph.
|
|
@@ -10015,9 +10153,9 @@ declare type SubgraphId = UUID;
|
|
|
10015
10153
|
*
|
|
10016
10154
|
* Functionally, however, when editing a subgraph, that "subgraph input" is the "origin" or "output side" of a link.
|
|
10017
10155
|
*/
|
|
10018
|
-
declare class SubgraphInput extends SubgraphSlot {
|
|
10156
|
+
export declare class SubgraphInput extends SubgraphSlot {
|
|
10019
10157
|
parent: RegisteredSubgraphInputNode;
|
|
10020
|
-
events: CustomEventTarget<SubgraphInputEventMap, "
|
|
10158
|
+
events: CustomEventTarget<SubgraphInputEventMap, "configuring" | "configured" | "subgraph-created" | "convert-to-subgraph" | "open-subgraph" | "node:added" | "node:before-removed" | "node:removed" | "node:property:changed" | "node:slot-label:changed" | "input-connected" | "input-disconnected">;
|
|
10021
10159
|
/** The linked widget that this slot is connected to. */
|
|
10022
10160
|
private _widgetRef?;
|
|
10023
10161
|
get _widget(): IBaseWidget< WidgetValue, string, IWidgetOptions<unknown>> | undefined;
|
|
@@ -10182,7 +10320,7 @@ declare abstract class SubgraphIONodeBase<TSlot extends RegisteredSubgraphInput
|
|
|
10182
10320
|
/** Properties shared by subgraph and node I/O slots. */
|
|
10183
10321
|
declare type SubgraphIOShared = Omit<INodeSlot, 'boundingRect' | 'nameLocked' | 'locked' | 'removable'>;
|
|
10184
10322
|
|
|
10185
|
-
declare class SubgraphNode extends LGraphNode implements RegisteredBaseLGraph {
|
|
10323
|
+
export declare class SubgraphNode extends LGraphNode implements RegisteredBaseLGraph {
|
|
10186
10324
|
readonly subgraph: RegisteredSubgraph;
|
|
10187
10325
|
get inputs(): (INodeInputSlot & Partial<ISubgraphInput>)[];
|
|
10188
10326
|
set inputs(value: (INodeInputSlot & Partial<ISubgraphInput>)[]);
|
|
@@ -10277,7 +10415,7 @@ declare class SubgraphNode extends LGraphNode implements RegisteredBaseLGraph {
|
|
|
10277
10415
|
*
|
|
10278
10416
|
* Functionally, however, when editing a subgraph, that "subgraph output" is the "target" or "input side" of a link.
|
|
10279
10417
|
*/
|
|
10280
|
-
declare class SubgraphOutput extends SubgraphSlot {
|
|
10418
|
+
export declare class SubgraphOutput extends SubgraphSlot {
|
|
10281
10419
|
parent: RegisteredSubgraphOutputNode;
|
|
10282
10420
|
connect(slot: INodeOutputSlot, node: RegisteredLGraphNode, afterRerouteId?: RerouteId): LLink | undefined;
|
|
10283
10421
|
get labelPos(): Point;
|
|
@@ -10412,6 +10550,11 @@ declare interface TeamPlanSelection {
|
|
|
10412
10550
|
credits: number;
|
|
10413
10551
|
/** Cycle-adjusted discounted monthly price in USD — what the user actually pays. */
|
|
10414
10552
|
discountedUsd: number;
|
|
10553
|
+
/** What the server bills for one period of each cycle, in USD. */
|
|
10554
|
+
periodChargeUsd?: {
|
|
10555
|
+
monthly: number;
|
|
10556
|
+
yearly: number;
|
|
10557
|
+
};
|
|
10415
10558
|
}
|
|
10416
10559
|
|
|
10417
10560
|
declare enum TemplateIncludeOnDistributionEnum {
|
|
@@ -10518,7 +10661,7 @@ declare class TextWidget extends BaseWidget<IStringWidget> implements IStringWid
|
|
|
10518
10661
|
|
|
10519
10662
|
declare type TierKey = BillingTierKey;
|
|
10520
10663
|
|
|
10521
|
-
declare enum TitleMode {
|
|
10664
|
+
export declare enum TitleMode {
|
|
10522
10665
|
NORMAL_TITLE = 0,
|
|
10523
10666
|
NO_TITLE = 1,
|
|
10524
10667
|
TRANSPARENT_TITLE = 2,
|
|
@@ -10713,14 +10856,6 @@ declare type TopUpCreditsDialogOptions = {
|
|
|
10713
10856
|
|
|
10714
10857
|
export declare function toRerouteId(value: number): RerouteId;
|
|
10715
10858
|
|
|
10716
|
-
declare interface Transform {
|
|
10717
|
-
x: number;
|
|
10718
|
-
y: number;
|
|
10719
|
-
w: number;
|
|
10720
|
-
h: number;
|
|
10721
|
-
rotation: number;
|
|
10722
|
-
}
|
|
10723
|
-
|
|
10724
10859
|
/**
|
|
10725
10860
|
* Widget for hierarchical tree selection.
|
|
10726
10861
|
* This widget only has a Vue implementation.
|
|
@@ -10735,9 +10870,9 @@ declare class TreeSelectWidget extends BaseWidget<ITreeSelectWidget> implements
|
|
|
10735
10870
|
* Override linkedWidgets[]
|
|
10736
10871
|
* Values not in this list will not result in litegraph errors, however they will be treated the same as "custom".
|
|
10737
10872
|
*/
|
|
10738
|
-
declare type TWidgetType = IWidget['type'];
|
|
10873
|
+
export declare type TWidgetType = IWidget['type'];
|
|
10739
10874
|
|
|
10740
|
-
declare type TWidgetValue = WidgetValue;
|
|
10875
|
+
export declare type TWidgetValue = WidgetValue;
|
|
10741
10876
|
|
|
10742
10877
|
export declare type User = {
|
|
10743
10878
|
storage: 'server';
|
|
@@ -10837,14 +10972,14 @@ declare type UUID = string;
|
|
|
10837
10972
|
/** @deprecated Use {@link Point} instead. */
|
|
10838
10973
|
declare type Vector2 = Point;
|
|
10839
10974
|
|
|
10840
|
-
declare type VideoEditFeature = 'trim' | 'crop';
|
|
10975
|
+
export declare type VideoEditFeature = 'trim' | 'crop';
|
|
10841
10976
|
|
|
10842
|
-
declare interface VideoEditTrim {
|
|
10977
|
+
export declare interface VideoEditTrim {
|
|
10843
10978
|
start_time: number;
|
|
10844
10979
|
duration: number;
|
|
10845
10980
|
}
|
|
10846
10981
|
|
|
10847
|
-
declare interface VideoEditValue {
|
|
10982
|
+
export declare interface VideoEditValue {
|
|
10848
10983
|
trim?: VideoEditTrim;
|
|
10849
10984
|
crop?: Bounds;
|
|
10850
10985
|
}
|
|
@@ -10891,6 +11026,10 @@ declare const WIDGET_SURFACE_TIERS: readonly ["shown", "advanced", "never"];
|
|
|
10891
11026
|
*/
|
|
10892
11027
|
declare const WIDGET_SURFACES: readonly ["canvas", "vueNode", "panel"];
|
|
10893
11028
|
|
|
11029
|
+
export declare interface WidgetCallbackOptions {
|
|
11030
|
+
isPartialExecution?: boolean;
|
|
11031
|
+
}
|
|
11032
|
+
|
|
10894
11033
|
declare interface WidgetEventOptions {
|
|
10895
11034
|
e: CanvasPointerEvent;
|
|
10896
11035
|
node: RegisteredLGraphNode;
|
|
@@ -10919,7 +11058,7 @@ declare type WidgetSurfaces = Record<WidgetSurface, WidgetSurfaceTier>;
|
|
|
10919
11058
|
|
|
10920
11059
|
declare type WidgetSurfaceTier = (typeof WIDGET_SURFACE_TIERS)[number];
|
|
10921
11060
|
|
|
10922
|
-
declare type WidgetTypeMap = {
|
|
11061
|
+
export declare type WidgetTypeMap = {
|
|
10923
11062
|
button: ButtonWidget;
|
|
10924
11063
|
toggle: BooleanWidget;
|
|
10925
11064
|
slider: SliderWidget;
|
|
@@ -11153,11 +11292,501 @@ declare const zComfyNode: z.ZodObject<{
|
|
|
11153
11292
|
directory: z.ZodString;
|
|
11154
11293
|
}, z.core.$strip>>>;
|
|
11155
11294
|
}, z.core.$catchall<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>>;
|
|
11156
|
-
widgets_values: z.ZodOptional<z.ZodType<Record<string, WidgetValue
|
|
11295
|
+
widgets_values: z.ZodOptional<z.ZodType< WidgetValue[] | Record<string, WidgetValue>, unknown, z.core.$ZodTypeInternals< WidgetValue[] | Record<string, WidgetValue>, unknown>>>;
|
|
11157
11296
|
color: z.ZodOptional<z.ZodString>;
|
|
11158
11297
|
bgcolor: z.ZodOptional<z.ZodString>;
|
|
11159
11298
|
}, z.core.$loose>;
|
|
11160
11299
|
|
|
11300
|
+
declare const zComfyNodeDef: z.ZodObject<{
|
|
11301
|
+
inputs: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
11302
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11303
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11304
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11305
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11306
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11307
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11308
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11309
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11310
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11311
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11312
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
11313
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
11314
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
11315
|
+
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
11316
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
11317
|
+
number: "number";
|
|
11318
|
+
slider: "slider";
|
|
11319
|
+
knob: "knob";
|
|
11320
|
+
gradientslider: "gradientslider";
|
|
11321
|
+
color: "color";
|
|
11322
|
+
}>>;
|
|
11323
|
+
control_after_generate: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
11324
|
+
fixed: "fixed";
|
|
11325
|
+
increment: "increment";
|
|
11326
|
+
decrement: "decrement";
|
|
11327
|
+
randomize: "randomize";
|
|
11328
|
+
}>]>>;
|
|
11329
|
+
type: z.ZodLiteral<"INT">;
|
|
11330
|
+
name: z.ZodString;
|
|
11331
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11332
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11333
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11334
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11335
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11336
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11337
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11338
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11339
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11340
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11341
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11342
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11343
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
11344
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
11345
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
11346
|
+
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
11347
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
11348
|
+
number: "number";
|
|
11349
|
+
slider: "slider";
|
|
11350
|
+
knob: "knob";
|
|
11351
|
+
gradientslider: "gradientslider";
|
|
11352
|
+
}>>;
|
|
11353
|
+
round: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
11354
|
+
gradient_stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11355
|
+
offset: z.ZodNumber;
|
|
11356
|
+
color: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
11357
|
+
}, z.core.$strip>>>;
|
|
11358
|
+
type: z.ZodLiteral<"FLOAT">;
|
|
11359
|
+
name: z.ZodString;
|
|
11360
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11361
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11362
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11363
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11364
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11365
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11366
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11367
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11368
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11369
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11370
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11371
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11372
|
+
label_on: z.ZodOptional<z.ZodString>;
|
|
11373
|
+
label_off: z.ZodOptional<z.ZodString>;
|
|
11374
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
11375
|
+
type: z.ZodLiteral<"BOOLEAN">;
|
|
11376
|
+
name: z.ZodString;
|
|
11377
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11378
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11379
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11380
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11381
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11382
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11383
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11384
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11385
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11386
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11387
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11388
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11389
|
+
default: z.ZodOptional<z.ZodString>;
|
|
11390
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
11391
|
+
dynamicPrompts: z.ZodOptional<z.ZodBoolean>;
|
|
11392
|
+
defaultVal: z.ZodOptional<z.ZodString>;
|
|
11393
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11394
|
+
type: z.ZodLiteral<"STRING">;
|
|
11395
|
+
name: z.ZodString;
|
|
11396
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11397
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11398
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
11399
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11400
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11401
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11402
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11403
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11404
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11405
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11406
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11407
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11408
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11409
|
+
control_after_generate: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
11410
|
+
fixed: "fixed";
|
|
11411
|
+
increment: "increment";
|
|
11412
|
+
decrement: "decrement";
|
|
11413
|
+
randomize: "randomize";
|
|
11414
|
+
}>]>>;
|
|
11415
|
+
image_upload: z.ZodOptional<z.ZodBoolean>;
|
|
11416
|
+
image_folder: z.ZodOptional<z.ZodEnum<{
|
|
11417
|
+
input: "input";
|
|
11418
|
+
output: "output";
|
|
11419
|
+
temp: "temp";
|
|
11420
|
+
}>>;
|
|
11421
|
+
allow_batch: z.ZodOptional<z.ZodBoolean>;
|
|
11422
|
+
video_upload: z.ZodOptional<z.ZodBoolean>;
|
|
11423
|
+
audio_upload: z.ZodOptional<z.ZodBoolean>;
|
|
11424
|
+
mesh_upload: z.ZodOptional<z.ZodBoolean>;
|
|
11425
|
+
upload_subfolder: z.ZodOptional<z.ZodString>;
|
|
11426
|
+
animated_image_upload: z.ZodOptional<z.ZodBoolean>;
|
|
11427
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
11428
|
+
remote: z.ZodOptional<z.ZodObject<{
|
|
11429
|
+
route: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
11430
|
+
refresh: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNumber]>>;
|
|
11431
|
+
response_key: z.ZodOptional<z.ZodString>;
|
|
11432
|
+
query_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11433
|
+
refresh_button: z.ZodOptional<z.ZodBoolean>;
|
|
11434
|
+
control_after_refresh: z.ZodOptional<z.ZodEnum<{
|
|
11435
|
+
first: "first";
|
|
11436
|
+
last: "last";
|
|
11437
|
+
}>>;
|
|
11438
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
11439
|
+
max_retries: z.ZodOptional<z.ZodNumber>;
|
|
11440
|
+
}, z.core.$strip>>;
|
|
11441
|
+
multi_select: z.ZodOptional<z.ZodObject<{
|
|
11442
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
11443
|
+
chip: z.ZodOptional<z.ZodBoolean>;
|
|
11444
|
+
}, z.core.$strip>>;
|
|
11445
|
+
type: z.ZodLiteral<"COMBO">;
|
|
11446
|
+
name: z.ZodString;
|
|
11447
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11448
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11449
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11450
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11451
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11452
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11453
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11454
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11455
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11456
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11457
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11458
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11459
|
+
type: z.ZodLiteral<"COLOR">;
|
|
11460
|
+
name: z.ZodString;
|
|
11461
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11462
|
+
default: z.ZodOptional<z.ZodString>;
|
|
11463
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
11464
|
+
default: z.ZodOptional<z.ZodString>;
|
|
11465
|
+
}, z.core.$strip>>;
|
|
11466
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11467
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
11468
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11469
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11470
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11471
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11472
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11473
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11474
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11475
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11476
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11477
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11478
|
+
type: z.ZodLiteral<"IMAGE">;
|
|
11479
|
+
name: z.ZodString;
|
|
11480
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11481
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11482
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11483
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
11484
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11485
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11486
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11487
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11488
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11489
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11490
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11491
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11492
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11493
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11494
|
+
type: z.ZodLiteral<"IMAGECOMPARE">;
|
|
11495
|
+
name: z.ZodString;
|
|
11496
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11497
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11498
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11499
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11500
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11501
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11502
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11503
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11504
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11505
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11506
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11507
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11508
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11509
|
+
type: z.ZodLiteral<"BOUNDING_BOX">;
|
|
11510
|
+
name: z.ZodString;
|
|
11511
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11512
|
+
component: z.ZodOptional<z.ZodEnum<{
|
|
11513
|
+
ImageCrop: "ImageCrop";
|
|
11514
|
+
}>>;
|
|
11515
|
+
default: z.ZodOptional<z.ZodObject<{
|
|
11516
|
+
x: z.ZodNumber;
|
|
11517
|
+
y: z.ZodNumber;
|
|
11518
|
+
width: z.ZodNumber;
|
|
11519
|
+
height: z.ZodNumber;
|
|
11520
|
+
}, z.core.$strip>>;
|
|
11521
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11522
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11523
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11524
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11525
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11526
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11527
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11528
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11529
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11530
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11531
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11532
|
+
type: z.ZodLiteral<"MARKDOWN">;
|
|
11533
|
+
name: z.ZodString;
|
|
11534
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11535
|
+
default: z.ZodOptional<z.ZodString>;
|
|
11536
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11537
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
11538
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11539
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11540
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11541
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11542
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11543
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11544
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11545
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11546
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11547
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11548
|
+
type: z.ZodLiteral<"CHART">;
|
|
11549
|
+
name: z.ZodString;
|
|
11550
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11551
|
+
chartType: z.ZodOptional<z.ZodEnum<{
|
|
11552
|
+
line: "line";
|
|
11553
|
+
bar: "bar";
|
|
11554
|
+
}>>;
|
|
11555
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11556
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
11557
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
11558
|
+
line: "line";
|
|
11559
|
+
bar: "bar";
|
|
11560
|
+
}>>;
|
|
11561
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11562
|
+
}, z.core.$strip>>;
|
|
11563
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11564
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
11565
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11566
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11567
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11568
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11569
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11570
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11571
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11572
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11573
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11574
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11575
|
+
type: z.ZodLiteral<"GALLERIA">;
|
|
11576
|
+
name: z.ZodString;
|
|
11577
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11578
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11579
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
11580
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11581
|
+
}, z.core.$strip>>;
|
|
11582
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11583
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11584
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11585
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11586
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11587
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11588
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11589
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11590
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11591
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11592
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11593
|
+
type: z.ZodLiteral<"COLORS">;
|
|
11594
|
+
name: z.ZodString;
|
|
11595
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11596
|
+
default: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11597
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11598
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11599
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11600
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11601
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11602
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11603
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11604
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11605
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11606
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11607
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11608
|
+
type: z.ZodLiteral<"BOUNDING_BOXES">;
|
|
11609
|
+
name: z.ZodString;
|
|
11610
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11611
|
+
default: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11612
|
+
x: z.ZodNumber;
|
|
11613
|
+
y: z.ZodNumber;
|
|
11614
|
+
width: z.ZodNumber;
|
|
11615
|
+
height: z.ZodNumber;
|
|
11616
|
+
metadata: z.ZodObject<{
|
|
11617
|
+
type: z.ZodEnum<{
|
|
11618
|
+
obj: "obj";
|
|
11619
|
+
text: "text";
|
|
11620
|
+
}>;
|
|
11621
|
+
text: z.ZodString;
|
|
11622
|
+
desc: z.ZodString;
|
|
11623
|
+
palette: z.ZodArray<z.ZodString>;
|
|
11624
|
+
}, z.core.$strip>;
|
|
11625
|
+
}, z.core.$strip>>>;
|
|
11626
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11627
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11628
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11629
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11630
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11631
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11632
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11633
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11634
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11635
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11636
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11637
|
+
type: z.ZodLiteral<"TEXTAREA">;
|
|
11638
|
+
name: z.ZodString;
|
|
11639
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11640
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
11641
|
+
cols: z.ZodOptional<z.ZodNumber>;
|
|
11642
|
+
default: z.ZodOptional<z.ZodString>;
|
|
11643
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
11644
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
11645
|
+
cols: z.ZodOptional<z.ZodNumber>;
|
|
11646
|
+
default: z.ZodOptional<z.ZodString>;
|
|
11647
|
+
}, z.core.$strip>>;
|
|
11648
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11649
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11650
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11651
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11652
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11653
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11654
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11655
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11656
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11657
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11658
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11659
|
+
type: z.ZodLiteral<"CURVE">;
|
|
11660
|
+
name: z.ZodString;
|
|
11661
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11662
|
+
default: z.ZodOptional<z.ZodObject<{
|
|
11663
|
+
points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
11664
|
+
interpolation: z.ZodEnum<{
|
|
11665
|
+
linear: "linear";
|
|
11666
|
+
monotone_cubic: "monotone_cubic";
|
|
11667
|
+
}>;
|
|
11668
|
+
}, z.core.$strip>>;
|
|
11669
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11670
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11671
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11672
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11673
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11674
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11675
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11676
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11677
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11678
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11679
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11680
|
+
type: z.ZodLiteral<"RANGE">;
|
|
11681
|
+
name: z.ZodString;
|
|
11682
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11683
|
+
default: z.ZodOptional<z.ZodObject<{
|
|
11684
|
+
min: z.ZodNumber;
|
|
11685
|
+
max: z.ZodNumber;
|
|
11686
|
+
midpoint: z.ZodOptional<z.ZodNumber>;
|
|
11687
|
+
}, z.core.$strip>>;
|
|
11688
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
11689
|
+
plain: "plain";
|
|
11690
|
+
gradient: "gradient";
|
|
11691
|
+
histogram: "histogram";
|
|
11692
|
+
}>>;
|
|
11693
|
+
gradient_stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11694
|
+
offset: z.ZodNumber;
|
|
11695
|
+
color: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
11696
|
+
}, z.core.$strip>>>;
|
|
11697
|
+
show_midpoint: z.ZodOptional<z.ZodBoolean>;
|
|
11698
|
+
midpoint_scale: z.ZodOptional<z.ZodEnum<{
|
|
11699
|
+
linear: "linear";
|
|
11700
|
+
gamma: "gamma";
|
|
11701
|
+
}>>;
|
|
11702
|
+
value_min: z.ZodOptional<z.ZodNumber>;
|
|
11703
|
+
value_max: z.ZodOptional<z.ZodNumber>;
|
|
11704
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11705
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11706
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11707
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11708
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11709
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11710
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11711
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11712
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11713
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11714
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11715
|
+
type: z.ZodLiteral<"VIDEO_EDIT">;
|
|
11716
|
+
name: z.ZodString;
|
|
11717
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11718
|
+
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
11719
|
+
trim: "trim";
|
|
11720
|
+
crop: "crop";
|
|
11721
|
+
}>>>;
|
|
11722
|
+
default: z.ZodOptional<z.ZodObject<{
|
|
11723
|
+
trim: z.ZodOptional<z.ZodObject<{
|
|
11724
|
+
start_time: z.ZodNumber;
|
|
11725
|
+
duration: z.ZodNumber;
|
|
11726
|
+
}, z.core.$strip>>;
|
|
11727
|
+
crop: z.ZodOptional<z.ZodObject<{
|
|
11728
|
+
x: z.ZodNumber;
|
|
11729
|
+
y: z.ZodNumber;
|
|
11730
|
+
width: z.ZodNumber;
|
|
11731
|
+
height: z.ZodNumber;
|
|
11732
|
+
}, z.core.$strip>>;
|
|
11733
|
+
}, z.core.$strip>>;
|
|
11734
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11735
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
11736
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11737
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11738
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11739
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11740
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11741
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11742
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11743
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11744
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11745
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11746
|
+
type: z.ZodLiteral<"RESOLUTION_PREVIEW">;
|
|
11747
|
+
name: z.ZodString;
|
|
11748
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11749
|
+
ratio_widget: z.ZodOptional<z.ZodString>;
|
|
11750
|
+
megapixels_widget: z.ZodOptional<z.ZodString>;
|
|
11751
|
+
multiple_widget: z.ZodOptional<z.ZodString>;
|
|
11752
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11753
|
+
default: z.ZodOptional<z.ZodAny>;
|
|
11754
|
+
defaultInput: z.ZodOptional<z.ZodBoolean>;
|
|
11755
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
11756
|
+
forceInput: z.ZodOptional<z.ZodBoolean>;
|
|
11757
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11758
|
+
socketless: z.ZodOptional<z.ZodBoolean>;
|
|
11759
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
11760
|
+
advanced: z.ZodOptional<z.ZodBoolean>;
|
|
11761
|
+
widgetType: z.ZodOptional<z.ZodString>;
|
|
11762
|
+
rawLink: z.ZodOptional<z.ZodBoolean>;
|
|
11763
|
+
lazy: z.ZodOptional<z.ZodBoolean>;
|
|
11764
|
+
type: z.ZodString;
|
|
11765
|
+
name: z.ZodString;
|
|
11766
|
+
isOptional: z.ZodOptional<z.ZodBoolean>;
|
|
11767
|
+
}, z.core.$loose>]>>;
|
|
11768
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
11769
|
+
index: z.ZodNumber;
|
|
11770
|
+
name: z.ZodString;
|
|
11771
|
+
type: z.ZodString;
|
|
11772
|
+
is_list: z.ZodBoolean;
|
|
11773
|
+
options: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
11774
|
+
tooltip: z.ZodOptional<z.ZodString>;
|
|
11775
|
+
}, z.core.$strip>>;
|
|
11776
|
+
hidden: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11777
|
+
name: z.ZodString;
|
|
11778
|
+
display_name: z.ZodString;
|
|
11779
|
+
description: z.ZodString;
|
|
11780
|
+
help: z.ZodOptional<z.ZodString>;
|
|
11781
|
+
category: z.ZodString;
|
|
11782
|
+
output_node: z.ZodBoolean;
|
|
11783
|
+
python_module: z.ZodString;
|
|
11784
|
+
deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
11785
|
+
experimental: z.ZodOptional<z.ZodBoolean>;
|
|
11786
|
+
dev_only: z.ZodOptional<z.ZodBoolean>;
|
|
11787
|
+
api_node: z.ZodOptional<z.ZodBoolean>;
|
|
11788
|
+
}, z.core.$strip>;
|
|
11789
|
+
|
|
11161
11790
|
/** Schema version 0.4 */
|
|
11162
11791
|
declare const zComfyWorkflow: z.ZodObject<{
|
|
11163
11792
|
subgraphs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -11204,7 +11833,7 @@ declare const zComfyWorkflow: z.ZodObject<{
|
|
|
11204
11833
|
type: z.ZodString;
|
|
11205
11834
|
linkIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11206
11835
|
}, z.core.$loose>>>;
|
|
11207
|
-
widgets_values: z.ZodOptional<z.ZodType<Record<string, WidgetValue
|
|
11836
|
+
widgets_values: z.ZodOptional<z.ZodType< WidgetValue[] | Record<string, WidgetValue>, unknown, z.core.$ZodTypeInternals< WidgetValue[] | Record<string, WidgetValue>, unknown>>>;
|
|
11208
11837
|
color: z.ZodOptional<z.ZodString>;
|
|
11209
11838
|
bgcolor: z.ZodOptional<z.ZodString>;
|
|
11210
11839
|
}, z.core.$loose>>>;
|
|
@@ -11265,7 +11894,7 @@ declare const zComfyWorkflow: z.ZodObject<{
|
|
|
11265
11894
|
directory: z.ZodString;
|
|
11266
11895
|
}, z.core.$strip>>>;
|
|
11267
11896
|
}, z.core.$catchall<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>>;
|
|
11268
|
-
widgets_values: z.ZodOptional<z.ZodType<Record<string, WidgetValue
|
|
11897
|
+
widgets_values: z.ZodOptional<z.ZodType< WidgetValue[] | Record<string, WidgetValue>, unknown, z.core.$ZodTypeInternals< WidgetValue[] | Record<string, WidgetValue>, unknown>>>;
|
|
11269
11898
|
color: z.ZodOptional<z.ZodString>;
|
|
11270
11899
|
bgcolor: z.ZodOptional<z.ZodString>;
|
|
11271
11900
|
}, z.core.$loose>>;
|
|
@@ -11402,7 +12031,7 @@ declare const zComfyWorkflow: z.ZodObject<{
|
|
|
11402
12031
|
type: z.ZodString;
|
|
11403
12032
|
linkIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11404
12033
|
}, z.core.$loose>>>;
|
|
11405
|
-
widgets_values: z.ZodOptional<z.ZodType<Record<string, WidgetValue
|
|
12034
|
+
widgets_values: z.ZodOptional<z.ZodType< WidgetValue[] | Record<string, WidgetValue>, unknown, z.core.$ZodTypeInternals< WidgetValue[] | Record<string, WidgetValue>, unknown>>>;
|
|
11406
12035
|
color: z.ZodOptional<z.ZodString>;
|
|
11407
12036
|
bgcolor: z.ZodOptional<z.ZodString>;
|
|
11408
12037
|
}, z.core.$loose>>>;
|
|
@@ -11478,7 +12107,7 @@ declare const zComfyWorkflow: z.ZodObject<{
|
|
|
11478
12107
|
directory: z.ZodString;
|
|
11479
12108
|
}, z.core.$strip>>>;
|
|
11480
12109
|
}, z.core.$catchall<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>>;
|
|
11481
|
-
widgets_values: z.ZodOptional<z.ZodType<Record<string, WidgetValue
|
|
12110
|
+
widgets_values: z.ZodOptional<z.ZodType< WidgetValue[] | Record<string, WidgetValue>, unknown, z.core.$ZodTypeInternals< WidgetValue[] | Record<string, WidgetValue>, unknown>>>;
|
|
11482
12111
|
color: z.ZodOptional<z.ZodString>;
|
|
11483
12112
|
bgcolor: z.ZodOptional<z.ZodString>;
|
|
11484
12113
|
}, z.core.$loose>>;
|
|
@@ -11674,7 +12303,7 @@ declare const zComfyWorkflow1: z.ZodObject<{
|
|
|
11674
12303
|
type: z.ZodString;
|
|
11675
12304
|
linkIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11676
12305
|
}, z.core.$loose>>>;
|
|
11677
|
-
widgets_values: z.ZodOptional<z.ZodType<Record<string, WidgetValue
|
|
12306
|
+
widgets_values: z.ZodOptional<z.ZodType< WidgetValue[] | Record<string, WidgetValue>, unknown, z.core.$ZodTypeInternals< WidgetValue[] | Record<string, WidgetValue>, unknown>>>;
|
|
11678
12307
|
color: z.ZodOptional<z.ZodString>;
|
|
11679
12308
|
bgcolor: z.ZodOptional<z.ZodString>;
|
|
11680
12309
|
}, z.core.$loose>>>;
|
|
@@ -11752,7 +12381,7 @@ declare const zComfyWorkflow1: z.ZodObject<{
|
|
|
11752
12381
|
directory: z.ZodString;
|
|
11753
12382
|
}, z.core.$strip>>>;
|
|
11754
12383
|
}, z.core.$catchall<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>>;
|
|
11755
|
-
widgets_values: z.ZodOptional<z.ZodType<Record<string, WidgetValue
|
|
12384
|
+
widgets_values: z.ZodOptional<z.ZodType< WidgetValue[] | Record<string, WidgetValue>, unknown, z.core.$ZodTypeInternals< WidgetValue[] | Record<string, WidgetValue>, unknown>>>;
|
|
11756
12385
|
color: z.ZodOptional<z.ZodString>;
|
|
11757
12386
|
bgcolor: z.ZodOptional<z.ZodString>;
|
|
11758
12387
|
}, z.core.$loose>>;
|
|
@@ -11954,9 +12583,9 @@ declare const zGroup: z.ZodObject<{
|
|
|
11954
12583
|
declare const zJobDetail: z.ZodObject<{
|
|
11955
12584
|
id: z.ZodString;
|
|
11956
12585
|
status: z.ZodEnum<{
|
|
12586
|
+
cancelled: "cancelled";
|
|
11957
12587
|
completed: "completed";
|
|
11958
12588
|
failed: "failed";
|
|
11959
|
-
cancelled: "cancelled";
|
|
11960
12589
|
pending: "pending";
|
|
11961
12590
|
in_progress: "in_progress";
|
|
11962
12591
|
}>;
|
|
@@ -12132,9 +12761,9 @@ declare const zOutputs: z.ZodObject<{
|
|
|
12132
12761
|
declare const zRawJobListItem: z.ZodObject<{
|
|
12133
12762
|
id: z.ZodString;
|
|
12134
12763
|
status: z.ZodEnum<{
|
|
12764
|
+
cancelled: "cancelled";
|
|
12135
12765
|
completed: "completed";
|
|
12136
12766
|
failed: "failed";
|
|
12137
|
-
cancelled: "cancelled";
|
|
12138
12767
|
pending: "pending";
|
|
12139
12768
|
in_progress: "in_progress";
|
|
12140
12769
|
}>;
|
|
@@ -12192,6 +12821,19 @@ declare const zReroute: z.ZodObject<{
|
|
|
12192
12821
|
}, z.core.$strip>>;
|
|
12193
12822
|
}, z.core.$loose>;
|
|
12194
12823
|
|
|
12824
|
+
declare const zResultItem: z.ZodObject<{
|
|
12825
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
12826
|
+
subfolder: z.ZodOptional<z.ZodString>;
|
|
12827
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
12828
|
+
input: "input";
|
|
12829
|
+
output: "output";
|
|
12830
|
+
temp: "temp";
|
|
12831
|
+
}>>;
|
|
12832
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
12833
|
+
id: z.ZodOptional<z.ZodString>;
|
|
12834
|
+
preview_id: z.ZodOptional<z.ZodString>;
|
|
12835
|
+
}, z.core.$strip>;
|
|
12836
|
+
|
|
12195
12837
|
declare const zSubgraphIO: z.ZodObject<{
|
|
12196
12838
|
name: z.ZodString;
|
|
12197
12839
|
link: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -12238,7 +12880,7 @@ declare global {
|
|
|
12238
12880
|
app?: ComfyApp;
|
|
12239
12881
|
/** For use by extensions and in the browser console. Where possible, import `app` and access via `app.graph` instead. */
|
|
12240
12882
|
graph?: unknown;
|
|
12241
|
-
LiteGraph?:
|
|
12883
|
+
LiteGraph?: LiteGraphGlobal;
|
|
12242
12884
|
LGraph?: typeof LGraph;
|
|
12243
12885
|
LLink?: typeof LLink;
|
|
12244
12886
|
LGraphNode?: typeof LGraphNode;
|
|
@@ -12247,10 +12889,6 @@ declare global {
|
|
|
12247
12889
|
LGraphCanvas?: typeof LGraphCanvas;
|
|
12248
12890
|
ContextMenu?: typeof ContextMenu;
|
|
12249
12891
|
LGraphBadge?: typeof LGraphBadge;
|
|
12250
|
-
/** For use in tests to capture WebSocket messages */
|
|
12251
|
-
__capturedMessages?: CapturedMessages;
|
|
12252
|
-
/** For use in tests to track app initialization state */
|
|
12253
|
-
__appReadiness?: AppReadiness;
|
|
12254
12892
|
/**
|
|
12255
12893
|
* Set to `true` by Desktop builds predating the bridge's `isRemote()`;
|
|
12256
12894
|
* local installs of those builds leave it unset.
|
|
@@ -12265,19 +12903,24 @@ declare global {
|
|
|
12265
12903
|
|
|
12266
12904
|
|
|
12267
12905
|
declare global {
|
|
12268
|
-
|
|
12269
|
-
const __IS_NIGHTLY__: boolean;
|
|
12906
|
+
var __COMFY_LITEGRAPH_INSTANCE__: LiteGraphGlobal | undefined;
|
|
12270
12907
|
}
|
|
12271
12908
|
|
|
12272
|
-
|
|
12909
|
+
/**
|
|
12910
|
+
* Distribution types and compile-time constants for managing
|
|
12911
|
+
* multi-distribution builds (Desktop, Localhost, Cloud)
|
|
12912
|
+
*/
|
|
12273
12913
|
declare global {
|
|
12274
|
-
|
|
12914
|
+
const __DISTRIBUTION__: 'desktop' | 'localhost' | 'cloud';
|
|
12915
|
+
const __IS_NIGHTLY__: boolean;
|
|
12275
12916
|
}
|
|
12276
12917
|
|
|
12277
12918
|
|
|
12278
12919
|
declare global {
|
|
12279
12920
|
interface Window {
|
|
12280
|
-
tf?:
|
|
12921
|
+
tf?: {
|
|
12922
|
+
load?: () => void;
|
|
12923
|
+
};
|
|
12281
12924
|
}
|
|
12282
12925
|
}
|
|
12283
12926
|
|