@comfyorg/comfyui-frontend-types 1.41.12 → 1.41.14
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 +68 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -641,6 +641,14 @@ declare class ChangeTracker {
|
|
|
641
641
|
*/
|
|
642
642
|
initialState: ComfyWorkflowJSON;
|
|
643
643
|
static MAX_HISTORY: number;
|
|
644
|
+
/**
|
|
645
|
+
* Guard flag to prevent checkState from running during loadGraphData.
|
|
646
|
+
* Between rootGraph.configure() and afterLoadNewGraph(), the rootGraph
|
|
647
|
+
* contains the NEW workflow's data while activeWorkflow still points to
|
|
648
|
+
* the OLD workflow. Any checkState call in that window would serialize
|
|
649
|
+
* the wrong graph into the old workflow's activeState, corrupting it.
|
|
650
|
+
*/
|
|
651
|
+
static isLoadingGraph: boolean;
|
|
644
652
|
/**
|
|
645
653
|
* The active state of the workflow.
|
|
646
654
|
*/
|
|
@@ -916,6 +924,13 @@ export declare class ComfyApi extends EventTarget {
|
|
|
916
924
|
output: ComfyApiWorkflow;
|
|
917
925
|
workflow: ComfyWorkflowJSON;
|
|
918
926
|
}, options?: QueuePromptOptions): Promise<PromptResponse>;
|
|
927
|
+
/**
|
|
928
|
+
* Gets the list of assets and models referenced by a prompt that would
|
|
929
|
+
* need user consent before sharing.
|
|
930
|
+
*/
|
|
931
|
+
getShareableAssets(prompt: ComfyApiWorkflow, options?: {
|
|
932
|
+
owned?: boolean;
|
|
933
|
+
}): Promise<ShareableAssetsResponse>;
|
|
919
934
|
/**
|
|
920
935
|
* Gets a list of model folder keys (eg ['checkpoints', 'loras', ...])
|
|
921
936
|
* @returns The list of model folder keys
|
|
@@ -5010,7 +5025,6 @@ export declare class ComfyApp {
|
|
|
5010
5025
|
* Called when a mouse wheel event has to be processed
|
|
5011
5026
|
*/
|
|
5012
5027
|
processMouseWheel(e: WheelEvent): void;
|
|
5013
|
-
private _noItemsSelected;
|
|
5014
5028
|
/**
|
|
5015
5029
|
* process a key event
|
|
5016
5030
|
*/
|
|
@@ -8471,6 +8485,8 @@ export declare class ComfyApp {
|
|
|
8471
8485
|
|
|
8472
8486
|
export declare type Settings = z.infer<typeof zSettings>;
|
|
8473
8487
|
|
|
8488
|
+
declare type ShareableAssetsResponse = z.infer<typeof zShareableAssetsResponse>;
|
|
8489
|
+
|
|
8474
8490
|
export declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
|
|
8475
8491
|
|
|
8476
8492
|
/** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
|
|
@@ -8873,6 +8889,7 @@ export declare class ComfyApp {
|
|
|
8873
8889
|
private _addSubgraphInputListeners;
|
|
8874
8890
|
configure(info: ExportedSubgraphInstance): void;
|
|
8875
8891
|
_internalConfigureAfterSlots(): void;
|
|
8892
|
+
private _resolveInputWidget;
|
|
8876
8893
|
private _setWidget;
|
|
8877
8894
|
private _flushPendingPromotions;
|
|
8878
8895
|
onAdded(_graph: LGraph): void;
|
|
@@ -9478,18 +9495,18 @@ export declare class ComfyApp {
|
|
|
9478
9495
|
status: "running" | "completed" | "failed" | "created";
|
|
9479
9496
|
progress: number;
|
|
9480
9497
|
task_id: string;
|
|
9498
|
+
bytes_downloaded: number;
|
|
9481
9499
|
asset_name: string;
|
|
9482
9500
|
bytes_total: number;
|
|
9483
|
-
bytes_downloaded: number;
|
|
9484
9501
|
error?: string | undefined;
|
|
9485
9502
|
asset_id?: string | undefined;
|
|
9486
9503
|
}, {
|
|
9487
9504
|
status: "running" | "completed" | "failed" | "created";
|
|
9488
9505
|
progress: number;
|
|
9489
9506
|
task_id: string;
|
|
9507
|
+
bytes_downloaded: number;
|
|
9490
9508
|
asset_name: string;
|
|
9491
9509
|
bytes_total: number;
|
|
9492
|
-
bytes_downloaded: number;
|
|
9493
9510
|
error?: string | undefined;
|
|
9494
9511
|
asset_id?: string | undefined;
|
|
9495
9512
|
}>;
|
|
@@ -17731,6 +17748,54 @@ export declare class ComfyApp {
|
|
|
17731
17748
|
'single.setting'?: any;
|
|
17732
17749
|
}>;
|
|
17733
17750
|
|
|
17751
|
+
declare const zShareableAssetsResponse: z.ZodObject<{
|
|
17752
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
17753
|
+
id: z.ZodString;
|
|
17754
|
+
name: z.ZodString;
|
|
17755
|
+
preview_url: z.ZodString;
|
|
17756
|
+
storage_url: z.ZodString;
|
|
17757
|
+
model: z.ZodBoolean;
|
|
17758
|
+
public: z.ZodBoolean;
|
|
17759
|
+
in_library: z.ZodBoolean;
|
|
17760
|
+
}, "strip", z.ZodTypeAny, {
|
|
17761
|
+
name: string;
|
|
17762
|
+
id: string;
|
|
17763
|
+
model: boolean;
|
|
17764
|
+
preview_url: string;
|
|
17765
|
+
storage_url: string;
|
|
17766
|
+
public: boolean;
|
|
17767
|
+
in_library: boolean;
|
|
17768
|
+
}, {
|
|
17769
|
+
name: string;
|
|
17770
|
+
id: string;
|
|
17771
|
+
model: boolean;
|
|
17772
|
+
preview_url: string;
|
|
17773
|
+
storage_url: string;
|
|
17774
|
+
public: boolean;
|
|
17775
|
+
in_library: boolean;
|
|
17776
|
+
}>, "many">;
|
|
17777
|
+
}, "strip", z.ZodTypeAny, {
|
|
17778
|
+
assets: {
|
|
17779
|
+
name: string;
|
|
17780
|
+
id: string;
|
|
17781
|
+
model: boolean;
|
|
17782
|
+
preview_url: string;
|
|
17783
|
+
storage_url: string;
|
|
17784
|
+
public: boolean;
|
|
17785
|
+
in_library: boolean;
|
|
17786
|
+
}[];
|
|
17787
|
+
}, {
|
|
17788
|
+
assets: {
|
|
17789
|
+
name: string;
|
|
17790
|
+
id: string;
|
|
17791
|
+
model: boolean;
|
|
17792
|
+
preview_url: string;
|
|
17793
|
+
storage_url: string;
|
|
17794
|
+
public: boolean;
|
|
17795
|
+
in_library: boolean;
|
|
17796
|
+
}[];
|
|
17797
|
+
}>;
|
|
17798
|
+
|
|
17734
17799
|
declare const zStatusWsMessage: z.ZodObject<{
|
|
17735
17800
|
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17736
17801
|
exec_info: z.ZodObject<{
|