@comfyorg/comfyui-frontend-types 1.16.4 → 1.16.7

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 -18
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import { default as default_4 } from '../components/templates/TemplateWorkflowsC
10
10
  import { default as default_5 } from '../components/dialog/content/IssueReportDialogContent.vue';
11
11
  import { default as default_6 } from '../components/dialog/content/manager/ManagerDialogContent.vue';
12
12
  import { default as default_7 } from '../components/dialog/content/ManagerProgressDialogContent.vue';
13
+ import { DeviceStats } from '../schemas/apiSchema';
13
14
  import { DialogPassThroughMethodOptions } from 'primevue';
14
15
  import { DialogPassThroughOptionType } from 'primevue';
15
16
  import { DialogSharedPassThroughMethodOptions } from 'primevue';
@@ -27,7 +28,6 @@ import { FunctionalComponent } from 'vue';
27
28
  import { HistoryTaskItem } from '../schemas/apiSchema';
28
29
  import { IntlDateTimeFormat } from 'vue-i18n';
29
30
  import { IntlNumberFormat } from 'vue-i18n';
30
- import { ISerialisedGraph } from '@comfyorg/litegraph';
31
31
  import { IWidget } from '@comfyorg/litegraph';
32
32
  import { LGraph } from '@comfyorg/litegraph';
33
33
  import { LGraphCanvas } from '@comfyorg/litegraph';
@@ -36,6 +36,7 @@ import { LinkedModifiers } from 'vue-i18n';
36
36
  import { Locale } from 'vue-i18n';
37
37
  import { LocaleMessage } from '@intlify/core-base';
38
38
  import { LocaleMessages } from 'vue-i18n';
39
+ import { LogEntry } from '../schemas/apiSchema';
39
40
  import { LogsRawResponse } from '../schemas/apiSchema';
40
41
  import { LogsWsMessage } from '../schemas/apiSchema';
41
42
  import { LooseRequired } from '@vue/shared';
@@ -60,9 +61,11 @@ import { Slot } from 'vue';
60
61
  import { StatusWsMessage } from '../schemas/apiSchema';
61
62
  import { StatusWsMessageStatus } from '../schemas/apiSchema';
62
63
  import { SystemStats } from '../schemas/apiSchema';
64
+ import { TerminalSize } from '../schemas/apiSchema';
63
65
  import { TransitionProps } from 'vue';
64
66
  import { TypesConfig } from 'vue-router';
65
67
  import { User } from '../schemas/apiSchema';
68
+ import { UserData } from '../schemas/apiSchema';
66
69
  import { UserDataFullInfo } from '../schemas/apiSchema';
67
70
  import { Vector2 } from '@comfyorg/litegraph';
68
71
  import { VNode } from 'vue';
@@ -127,7 +130,7 @@ declare interface BaseSidebarTabExtension {
127
130
  tooltip?: string;
128
131
  }
129
132
 
130
- declare type BottomPanelExtension = VueBottomPanelExtension | CustomBottomPanelExtension;
133
+ export declare type BottomPanelExtension = VueBottomPanelExtension | CustomBottomPanelExtension;
131
134
 
132
135
  declare class ChangeTracker {
133
136
  /**
@@ -551,12 +554,6 @@ export declare class ComfyApp {
551
554
  showMissingModelsDialog?: boolean | undefined;
552
555
  checkForRerouteMigration?: boolean | undefined;
553
556
  }): Promise<void>;
554
- /**
555
- * Serializes a graph using preferred user settings.
556
- * @param graph The litegraph to serialize.
557
- * @returns A serialized graph (aka workflow) with preferred user settings.
558
- */
559
- serializeGraph(graph?: LGraph): ISerialisedGraph;
560
557
  graphToPrompt(graph?: LGraph): Promise<{
561
558
  workflow: ComfyWorkflowJSON;
562
559
  output: ComfyApiWorkflow;
@@ -656,11 +653,10 @@ export declare class ComfyApp {
656
653
  label?: string | (() => string);
657
654
  icon?: string | (() => string);
658
655
  tooltip?: string | (() => string);
659
- /** Menubar item label, if different from command label */
660
656
  menubarLabel?: string | (() => string);
661
657
  versionAdded?: string;
662
- /** If non-nullish, this command will prompt for confirmation. */
663
658
  confirmation?: string;
659
+ source?: string;
664
660
  }
665
661
 
666
662
  declare interface ComfyComponent<T extends HTMLElement = HTMLElement> {
@@ -797,7 +793,7 @@ export declare class ComfyApp {
797
793
  toggle(): boolean;
798
794
  }
799
795
 
800
- declare type ComfyNodeDef = z.infer<typeof zComfyNodeDef>;
796
+ export declare type ComfyNodeDef = z.infer<typeof zComfyNodeDef>;
801
797
 
802
798
  declare class ComfyPopup extends EventTarget {
803
799
  #private;
@@ -953,7 +949,7 @@ export declare class ComfyApp {
953
949
 
954
950
  declare type ComfyWorkflowJSON = z.infer<typeof zComfyWorkflow | typeof zComfyWorkflow1>;
955
951
 
956
- declare interface CommandManager {
952
+ export declare interface CommandManager {
957
953
  commands: ComfyCommand[];
958
954
  execute(command: string, errorHandler?: (error: any) => void): void;
959
955
  }
@@ -974,7 +970,11 @@ export declare class ComfyApp {
974
970
 
975
971
  declare type CustomSidebarTabExtension = BaseSidebarTabExtension & CustomExtension;
976
972
 
977
- declare interface ExtensionManager {
973
+ export { DeviceStats }
974
+
975
+ export { EmbeddingsResponse }
976
+
977
+ export declare interface ExtensionManager {
978
978
  registerSidebarTab(tab: SidebarTabExtension): void;
979
979
  unregisterSidebarTab(id: string): void;
980
980
  getSidebarTabs(): SidebarTabExtension[];
@@ -987,6 +987,8 @@ export declare class ComfyApp {
987
987
  };
988
988
  }
989
989
 
990
+ export { ExtensionsResponse }
991
+
990
992
  /**
991
993
  * The base form item for rendering in a form.
992
994
  */
@@ -1010,7 +1012,7 @@ export declare class ComfyApp {
1010
1012
  reconnected: never;
1011
1013
  }
1012
1014
 
1013
- declare type InputSpec = z.infer<typeof zInputSpec>;
1015
+ export declare type InputSpec = z.infer<typeof zInputSpec>;
1014
1016
 
1015
1017
  declare type Keybinding = z.infer<typeof zKeybinding>;
1016
1018
 
@@ -1029,6 +1031,10 @@ export declare class ComfyApp {
1029
1031
  content: string;
1030
1032
  }
1031
1033
 
1034
+ export { LogEntry }
1035
+
1036
+ export { LogsRawResponse }
1037
+
1032
1038
  declare type MenuCommandGroup = {
1033
1039
  /**
1034
1040
  * The path to the menu group.
@@ -1055,6 +1061,8 @@ export declare class ComfyApp {
1055
1061
  [K in keyof T as T[K] extends never ? never : K]: T[K];
1056
1062
  };
1057
1063
 
1064
+ export { NodeError }
1065
+
1058
1066
  declare type NodeId = z.infer<typeof zNodeId>;
1059
1067
 
1060
1068
  /** {@link Pick} only properties that evaluate to `never`. */
@@ -1062,6 +1070,8 @@ export declare class ComfyApp {
1062
1070
  [K in keyof T as T[K] extends never ? K : never]: T[K];
1063
1071
  };
1064
1072
 
1073
+ export { PromptResponse }
1074
+
1065
1075
  declare type SettingCustomRenderer = (name: string, setter: (v: any) => void, value: any, attrs: any) => HTMLElement;
1066
1076
 
1067
1077
  declare type SettingInputType = 'boolean' | 'number' | 'slider' | 'knob' | 'combo' | 'text' | 'image' | 'color' | 'url' | 'hidden';
@@ -1083,11 +1093,15 @@ export declare class ComfyApp {
1083
1093
  versionModified?: string;
1084
1094
  }
1085
1095
 
1086
- declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
1096
+ export { Settings }
1097
+
1098
+ export declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
1087
1099
 
1088
1100
  /** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
1089
1101
  declare type SimpleApiEvents = keyof PickNevers<ApiEventTypes>;
1090
1102
 
1103
+ export { SystemStats }
1104
+
1091
1105
  declare interface TemplateInfo {
1092
1106
  name: string;
1093
1107
  tutorialUrl?: string;
@@ -1097,7 +1111,9 @@ export declare class ComfyApp {
1097
1111
  description: string;
1098
1112
  }
1099
1113
 
1100
- declare type ToastManager = {
1114
+ export { TerminalSize }
1115
+
1116
+ export declare type ToastManager = {
1101
1117
  add(message: ToastMessageOptions): void;
1102
1118
  remove(message: ToastMessageOptions): void;
1103
1119
  removeAll(): void;
@@ -1106,7 +1122,7 @@ export declare class ComfyApp {
1106
1122
  /**
1107
1123
  * Defines message options in Toast component.
1108
1124
  */
1109
- declare interface ToastMessageOptions {
1125
+ export declare interface ToastMessageOptions {
1110
1126
  /**
1111
1127
  * Severity level of the message.
1112
1128
  * @defaultValue info
@@ -1660,7 +1676,7 @@ export declare class ComfyApp {
1660
1676
  onClose?: () => void;
1661
1677
  closable?: boolean;
1662
1678
  modal?: boolean;
1663
- position?: "left" | "top" | "right" | "bottom" | "center" | "topleft" | "topright" | "bottomleft" | "bottomright";
1679
+ position?: "left" | "right" | "top" | "bottom" | "center" | "topleft" | "topright" | "bottomleft" | "bottomright";
1664
1680
  pt?: {
1665
1681
  root?: DialogPassThroughOptionType<any>;
1666
1682
  header?: DialogPassThroughOptionType<any>;
@@ -1771,6 +1787,12 @@ export declare class ComfyApp {
1771
1787
  }) => Promise<boolean | null>;
1772
1788
  };
1773
1789
 
1790
+ export { User }
1791
+
1792
+ export { UserData }
1793
+
1794
+ export { UserDataFullInfo }
1795
+
1774
1796
  /**
1775
1797
  * Represents a file in the user's data directory.
1776
1798
  */
@@ -5222,6 +5244,7 @@ export declare class ComfyApp {
5222
5244
  1: z.ZodNumber;
5223
5245
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
5224
5246
  }, z.ZodTypeAny, "passthrough">>>;
5247
+ frontendVersion: z.ZodOptional<z.ZodString>;
5225
5248
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5226
5249
  id: z.ZodNumber;
5227
5250
  parentId: z.ZodNumber;
@@ -5352,6 +5375,7 @@ export declare class ComfyApp {
5352
5375
  1: z.ZodNumber;
5353
5376
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
5354
5377
  }, z.ZodTypeAny, "passthrough">>>;
5378
+ frontendVersion: z.ZodOptional<z.ZodString>;
5355
5379
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5356
5380
  id: z.ZodNumber;
5357
5381
  parentId: z.ZodNumber;
@@ -5482,6 +5506,7 @@ export declare class ComfyApp {
5482
5506
  1: z.ZodNumber;
5483
5507
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
5484
5508
  }, z.ZodTypeAny, "passthrough">>>;
5509
+ frontendVersion: z.ZodOptional<z.ZodString>;
5485
5510
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5486
5511
  id: z.ZodNumber;
5487
5512
  parentId: z.ZodNumber;
@@ -6168,6 +6193,7 @@ export declare class ComfyApp {
6168
6193
  1: z.ZodNumber;
6169
6194
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
6170
6195
  }, z.ZodTypeAny, "passthrough">>>;
6196
+ frontendVersion: z.ZodOptional<z.ZodString>;
6171
6197
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6172
6198
  id: z.ZodNumber;
6173
6199
  parentId: z.ZodNumber;
@@ -6298,6 +6324,7 @@ export declare class ComfyApp {
6298
6324
  1: z.ZodNumber;
6299
6325
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
6300
6326
  }, z.ZodTypeAny, "passthrough">>>;
6327
+ frontendVersion: z.ZodOptional<z.ZodString>;
6301
6328
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6302
6329
  id: z.ZodNumber;
6303
6330
  parentId: z.ZodNumber;
@@ -6428,6 +6455,7 @@ export declare class ComfyApp {
6428
6455
  1: z.ZodNumber;
6429
6456
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
6430
6457
  }, z.ZodTypeAny, "passthrough">>>;
6458
+ frontendVersion: z.ZodOptional<z.ZodString>;
6431
6459
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6432
6460
  id: z.ZodNumber;
6433
6461
  parentId: z.ZodNumber;
@@ -7114,6 +7142,7 @@ export declare class ComfyApp {
7114
7142
  1: z.ZodNumber;
7115
7143
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
7116
7144
  }, z.ZodTypeAny, "passthrough">>>;
7145
+ frontendVersion: z.ZodOptional<z.ZodString>;
7117
7146
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7118
7147
  id: z.ZodNumber;
7119
7148
  parentId: z.ZodNumber;
@@ -7244,6 +7273,7 @@ export declare class ComfyApp {
7244
7273
  1: z.ZodNumber;
7245
7274
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
7246
7275
  }, z.ZodTypeAny, "passthrough">>>;
7276
+ frontendVersion: z.ZodOptional<z.ZodString>;
7247
7277
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7248
7278
  id: z.ZodNumber;
7249
7279
  parentId: z.ZodNumber;
@@ -7374,6 +7404,7 @@ export declare class ComfyApp {
7374
7404
  1: z.ZodNumber;
7375
7405
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
7376
7406
  }, z.ZodTypeAny, "passthrough">>>;
7407
+ frontendVersion: z.ZodOptional<z.ZodString>;
7377
7408
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7378
7409
  id: z.ZodNumber;
7379
7410
  parentId: z.ZodNumber;
@@ -8175,6 +8206,7 @@ export declare class ComfyApp {
8175
8206
  1: z.ZodNumber;
8176
8207
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
8177
8208
  }, z.ZodTypeAny, "passthrough">>>;
8209
+ frontendVersion: z.ZodOptional<z.ZodString>;
8178
8210
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8179
8211
  id: z.ZodNumber;
8180
8212
  parentId: z.ZodNumber;
@@ -8305,6 +8337,7 @@ export declare class ComfyApp {
8305
8337
  1: z.ZodNumber;
8306
8338
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
8307
8339
  }, z.ZodTypeAny, "passthrough">>>;
8340
+ frontendVersion: z.ZodOptional<z.ZodString>;
8308
8341
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8309
8342
  id: z.ZodNumber;
8310
8343
  parentId: z.ZodNumber;
@@ -8435,6 +8468,7 @@ export declare class ComfyApp {
8435
8468
  1: z.ZodNumber;
8436
8469
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
8437
8470
  }, z.ZodTypeAny, "passthrough">>>;
8471
+ frontendVersion: z.ZodOptional<z.ZodString>;
8438
8472
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8439
8473
  id: z.ZodNumber;
8440
8474
  parentId: z.ZodNumber;
@@ -9232,6 +9266,7 @@ export declare class ComfyApp {
9232
9266
  1: z.ZodNumber;
9233
9267
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
9234
9268
  }, z.ZodTypeAny, "passthrough">>>;
9269
+ frontendVersion: z.ZodOptional<z.ZodString>;
9235
9270
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9236
9271
  id: z.ZodNumber;
9237
9272
  parentId: z.ZodNumber;
@@ -9362,6 +9397,7 @@ export declare class ComfyApp {
9362
9397
  1: z.ZodNumber;
9363
9398
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
9364
9399
  }, z.ZodTypeAny, "passthrough">>>;
9400
+ frontendVersion: z.ZodOptional<z.ZodString>;
9365
9401
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9366
9402
  id: z.ZodNumber;
9367
9403
  parentId: z.ZodNumber;
@@ -9492,6 +9528,7 @@ export declare class ComfyApp {
9492
9528
  1: z.ZodNumber;
9493
9529
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
9494
9530
  }, z.ZodTypeAny, "passthrough">>>;
9531
+ frontendVersion: z.ZodOptional<z.ZodString>;
9495
9532
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9496
9533
  id: z.ZodNumber;
9497
9534
  parentId: z.ZodNumber;
@@ -10289,6 +10326,7 @@ export declare class ComfyApp {
10289
10326
  1: z.ZodNumber;
10290
10327
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
10291
10328
  }, z.ZodTypeAny, "passthrough">>>;
10329
+ frontendVersion: z.ZodOptional<z.ZodString>;
10292
10330
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10293
10331
  id: z.ZodNumber;
10294
10332
  parentId: z.ZodNumber;
@@ -10419,6 +10457,7 @@ export declare class ComfyApp {
10419
10457
  1: z.ZodNumber;
10420
10458
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
10421
10459
  }, z.ZodTypeAny, "passthrough">>>;
10460
+ frontendVersion: z.ZodOptional<z.ZodString>;
10422
10461
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10423
10462
  id: z.ZodNumber;
10424
10463
  parentId: z.ZodNumber;
@@ -10549,6 +10588,7 @@ export declare class ComfyApp {
10549
10588
  1: z.ZodNumber;
10550
10589
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
10551
10590
  }, z.ZodTypeAny, "passthrough">>>;
10591
+ frontendVersion: z.ZodOptional<z.ZodString>;
10552
10592
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10553
10593
  id: z.ZodNumber;
10554
10594
  parentId: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.16.4",
3
+ "version": "1.16.7",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"