@comfyorg/comfyui-frontend-types 1.5.18 → 1.6.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.
Files changed (2) hide show
  1. package/index.d.ts +19 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -214,13 +214,19 @@ export declare class ComfyApi extends EventTarget {
214
214
  * Gets a list of model folder keys (eg ['checkpoints', 'loras', ...])
215
215
  * @returns The list of model folder keys
216
216
  */
217
- getModelFolders(): Promise<string[]>;
217
+ getModelFolders(): Promise<{
218
+ name: string;
219
+ folders: string[];
220
+ }[]>;
218
221
  /**
219
222
  * Gets a list of models in the specified folder
220
223
  * @param {string} folder The folder to list models from, such as 'checkpoints'
221
224
  * @returns The list of model filenames within the specified folder
222
225
  */
223
- getModels(folder: string): Promise<string[]>;
226
+ getModels(folder: string): Promise<{
227
+ name: string;
228
+ pathIndex: number;
229
+ }[]>;
224
230
  /**
225
231
  * Gets the metadata for a model
226
232
  * @param {string} folder The folder containing the model
@@ -377,7 +383,7 @@ export declare class ComfyApp {
377
383
  extensions: ComfyExtension[];
378
384
  extensionManager: ExtensionManager;
379
385
  _nodeOutputs: Record<string, any>;
380
- nodePreviewImages: Record<string, typeof Image>;
386
+ nodePreviewImages: Record<string, string[]>;
381
387
  graph: LGraph;
382
388
  canvas: LGraphCanvas;
383
389
  dragOverNode: LGraphNode | null;
@@ -7902,6 +7908,7 @@ export declare class ComfyApp {
7902
7908
  filename?: string;
7903
7909
  subfolder?: string;
7904
7910
  }>, "many">>;
7911
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
7905
7912
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7906
7913
  audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
7907
7914
  filename: z.ZodOptional<z.ZodString>;
@@ -7929,6 +7936,7 @@ export declare class ComfyApp {
7929
7936
  filename?: string;
7930
7937
  subfolder?: string;
7931
7938
  }>, "many">>;
7939
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
7932
7940
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7933
7941
  audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
7934
7942
  filename: z.ZodOptional<z.ZodString>;
@@ -7956,6 +7964,7 @@ export declare class ComfyApp {
7956
7964
  filename?: string;
7957
7965
  subfolder?: string;
7958
7966
  }>, "many">>;
7967
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
7959
7968
  }, z.ZodTypeAny, "passthrough">>;
7960
7969
  merge: z.ZodOptional<z.ZodBoolean>;
7961
7970
  }>, "strip", z.ZodTypeAny, {
@@ -7973,6 +7982,7 @@ export declare class ComfyApp {
7973
7982
  filename?: string;
7974
7983
  subfolder?: string;
7975
7984
  }[];
7985
+ animated?: boolean[];
7976
7986
  } & {
7977
7987
  [k: string]: unknown;
7978
7988
  };
@@ -7992,6 +8002,7 @@ export declare class ComfyApp {
7992
8002
  filename?: string;
7993
8003
  subfolder?: string;
7994
8004
  }[];
8005
+ animated?: boolean[];
7995
8006
  } & {
7996
8007
  [k: string]: unknown;
7997
8008
  };
@@ -15227,6 +15238,7 @@ export declare class ComfyApp {
15227
15238
  filename?: string;
15228
15239
  subfolder?: string;
15229
15240
  }>, "many">>;
15241
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
15230
15242
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15231
15243
  audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
15232
15244
  filename: z.ZodOptional<z.ZodString>;
@@ -15254,6 +15266,7 @@ export declare class ComfyApp {
15254
15266
  filename?: string;
15255
15267
  subfolder?: string;
15256
15268
  }>, "many">>;
15269
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
15257
15270
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15258
15271
  audio: z.ZodOptional<z.ZodArray<z.ZodObject<{
15259
15272
  filename: z.ZodOptional<z.ZodString>;
@@ -15281,6 +15294,7 @@ export declare class ComfyApp {
15281
15294
  filename?: string;
15282
15295
  subfolder?: string;
15283
15296
  }>, "many">>;
15297
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
15284
15298
  }, z.ZodTypeAny, "passthrough">>>;
15285
15299
  }, "strip", z.ZodTypeAny, {
15286
15300
  status?: {
@@ -15342,6 +15356,7 @@ export declare class ComfyApp {
15342
15356
  filename?: string;
15343
15357
  subfolder?: string;
15344
15358
  }>, "many">>;
15359
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
15345
15360
  }, z.ZodTypeAny, "passthrough">>;
15346
15361
  taskType?: "History";
15347
15362
  prompt?: [number, string, Record<string, {
@@ -15578,6 +15593,7 @@ export declare class ComfyApp {
15578
15593
  filename?: string;
15579
15594
  subfolder?: string;
15580
15595
  }>, "many">>;
15596
+ animated: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
15581
15597
  }, z.ZodTypeAny, "passthrough">>;
15582
15598
  taskType?: "History";
15583
15599
  prompt?: [number, string, Record<string, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.5.18",
3
+ "version": "1.6.1",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"