@comfyorg/comfyui-frontend-types 1.41.12 → 1.42.0

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.
Files changed (2) hide show
  1. package/index.d.ts +58 -1
  2. 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
@@ -5010,7 +5017,6 @@ export declare class ComfyApp {
5010
5017
  * Called when a mouse wheel event has to be processed
5011
5018
  */
5012
5019
  processMouseWheel(e: WheelEvent): void;
5013
- private _noItemsSelected;
5014
5020
  /**
5015
5021
  * process a key event
5016
5022
  */
@@ -8471,6 +8477,8 @@ export declare class ComfyApp {
8471
8477
 
8472
8478
  export declare type Settings = z.infer<typeof zSettings>;
8473
8479
 
8480
+ declare type ShareableAssetsResponse = z.infer<typeof zShareableAssetsResponse>;
8481
+
8474
8482
  export declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
8475
8483
 
8476
8484
  /** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
@@ -8873,6 +8881,7 @@ export declare class ComfyApp {
8873
8881
  private _addSubgraphInputListeners;
8874
8882
  configure(info: ExportedSubgraphInstance): void;
8875
8883
  _internalConfigureAfterSlots(): void;
8884
+ private _resolveInputWidget;
8876
8885
  private _setWidget;
8877
8886
  private _flushPendingPromotions;
8878
8887
  onAdded(_graph: LGraph): void;
@@ -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<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.41.12",
3
+ "version": "1.42.0",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"