@comfyorg/comfyui-frontend-types 1.41.12 → 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 +57 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -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. */
|
|
@@ -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<{
|