@comfyorg/comfyui-frontend-types 1.41.11 → 1.41.13
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 +64 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ declare type ApiToEventType<T = ApiCalls> = {
|
|
|
78
78
|
[K in keyof T]: K extends 'status' ? StatusWsMessageStatus : K extends 'executing' ? NodeId_2 : T[K];
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
declare type AppMode = 'graph' | 'app' | 'builder:
|
|
81
|
+
declare type AppMode = 'graph' | 'app' | 'builder:inputs' | 'builder:outputs' | 'builder:arrange';
|
|
82
82
|
|
|
83
83
|
/** Wraps all properties in {@link CustomEvent}. */
|
|
84
84
|
declare type AsCustomEvents<T> = {
|
|
@@ -916,6 +916,13 @@ export declare class ComfyApi extends EventTarget {
|
|
|
916
916
|
output: ComfyApiWorkflow;
|
|
917
917
|
workflow: ComfyWorkflowJSON;
|
|
918
918
|
}, options?: QueuePromptOptions): Promise<PromptResponse>;
|
|
919
|
+
/**
|
|
920
|
+
* Gets the list of assets and models referenced by a prompt that would
|
|
921
|
+
* need user consent before sharing.
|
|
922
|
+
*/
|
|
923
|
+
getShareableAssets(prompt: ComfyApiWorkflow, options?: {
|
|
924
|
+
owned?: boolean;
|
|
925
|
+
}): Promise<ShareableAssetsResponse>;
|
|
919
926
|
/**
|
|
920
927
|
* Gets a list of model folder keys (eg ['checkpoints', 'loras', ...])
|
|
921
928
|
* @returns The list of model folder keys
|
|
@@ -8471,6 +8478,8 @@ export declare class ComfyApp {
|
|
|
8471
8478
|
|
|
8472
8479
|
export declare type Settings = z.infer<typeof zSettings>;
|
|
8473
8480
|
|
|
8481
|
+
declare type ShareableAssetsResponse = z.infer<typeof zShareableAssetsResponse>;
|
|
8482
|
+
|
|
8474
8483
|
export declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
|
|
8475
8484
|
|
|
8476
8485
|
/** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
|
|
@@ -15001,6 +15010,9 @@ export declare class ComfyApp {
|
|
|
15001
15010
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
15002
15011
|
};
|
|
15003
15012
|
prompt_id?: string | undefined;
|
|
15013
|
+
exec_info?: {
|
|
15014
|
+
queue_remaining?: number | undefined;
|
|
15015
|
+
} | undefined;
|
|
15004
15016
|
node_errors?: Record<string | number, {
|
|
15005
15017
|
class_type: string;
|
|
15006
15018
|
errors: {
|
|
@@ -15013,9 +15025,6 @@ export declare class ComfyApp {
|
|
|
15013
15025
|
}[];
|
|
15014
15026
|
dependent_outputs: any[];
|
|
15015
15027
|
}> | undefined;
|
|
15016
|
-
exec_info?: {
|
|
15017
|
-
queue_remaining?: number | undefined;
|
|
15018
|
-
} | undefined;
|
|
15019
15028
|
}, {
|
|
15020
15029
|
error: string | {
|
|
15021
15030
|
type: string;
|
|
@@ -15026,6 +15035,9 @@ export declare class ComfyApp {
|
|
|
15026
15035
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
15027
15036
|
};
|
|
15028
15037
|
prompt_id?: string | undefined;
|
|
15038
|
+
exec_info?: {
|
|
15039
|
+
queue_remaining?: number | undefined;
|
|
15040
|
+
} | undefined;
|
|
15029
15041
|
node_errors?: Record<string | number, {
|
|
15030
15042
|
class_type: string;
|
|
15031
15043
|
errors: {
|
|
@@ -15038,9 +15050,6 @@ export declare class ComfyApp {
|
|
|
15038
15050
|
}[];
|
|
15039
15051
|
dependent_outputs: any[];
|
|
15040
15052
|
}> | undefined;
|
|
15041
|
-
exec_info?: {
|
|
15042
|
-
queue_remaining?: number | undefined;
|
|
15043
|
-
} | undefined;
|
|
15044
15053
|
}>;
|
|
15045
15054
|
|
|
15046
15055
|
/**
|
|
@@ -17731,6 +17740,54 @@ export declare class ComfyApp {
|
|
|
17731
17740
|
'single.setting'?: any;
|
|
17732
17741
|
}>;
|
|
17733
17742
|
|
|
17743
|
+
declare const zShareableAssetsResponse: z.ZodObject<{
|
|
17744
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
17745
|
+
id: z.ZodString;
|
|
17746
|
+
name: z.ZodString;
|
|
17747
|
+
preview_url: z.ZodString;
|
|
17748
|
+
storage_url: z.ZodString;
|
|
17749
|
+
model: z.ZodBoolean;
|
|
17750
|
+
public: z.ZodBoolean;
|
|
17751
|
+
in_library: z.ZodBoolean;
|
|
17752
|
+
}, "strip", z.ZodTypeAny, {
|
|
17753
|
+
name: string;
|
|
17754
|
+
id: string;
|
|
17755
|
+
model: boolean;
|
|
17756
|
+
preview_url: string;
|
|
17757
|
+
storage_url: string;
|
|
17758
|
+
public: boolean;
|
|
17759
|
+
in_library: boolean;
|
|
17760
|
+
}, {
|
|
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
|
+
}>, "many">;
|
|
17769
|
+
}, "strip", z.ZodTypeAny, {
|
|
17770
|
+
assets: {
|
|
17771
|
+
name: string;
|
|
17772
|
+
id: string;
|
|
17773
|
+
model: boolean;
|
|
17774
|
+
preview_url: string;
|
|
17775
|
+
storage_url: string;
|
|
17776
|
+
public: boolean;
|
|
17777
|
+
in_library: boolean;
|
|
17778
|
+
}[];
|
|
17779
|
+
}, {
|
|
17780
|
+
assets: {
|
|
17781
|
+
name: string;
|
|
17782
|
+
id: string;
|
|
17783
|
+
model: boolean;
|
|
17784
|
+
preview_url: string;
|
|
17785
|
+
storage_url: string;
|
|
17786
|
+
public: boolean;
|
|
17787
|
+
in_library: boolean;
|
|
17788
|
+
}[];
|
|
17789
|
+
}>;
|
|
17790
|
+
|
|
17734
17791
|
declare const zStatusWsMessage: z.ZodObject<{
|
|
17735
17792
|
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17736
17793
|
exec_info: z.ZodObject<{
|