@comfyorg/comfyui-frontend-types 1.16.6 → 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 +40 -11
  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';
@@ -35,6 +36,7 @@ import { LinkedModifiers } from 'vue-i18n';
35
36
  import { Locale } from 'vue-i18n';
36
37
  import { LocaleMessage } from '@intlify/core-base';
37
38
  import { LocaleMessages } from 'vue-i18n';
39
+ import { LogEntry } from '../schemas/apiSchema';
38
40
  import { LogsRawResponse } from '../schemas/apiSchema';
39
41
  import { LogsWsMessage } from '../schemas/apiSchema';
40
42
  import { LooseRequired } from '@vue/shared';
@@ -59,9 +61,11 @@ import { Slot } from 'vue';
59
61
  import { StatusWsMessage } from '../schemas/apiSchema';
60
62
  import { StatusWsMessageStatus } from '../schemas/apiSchema';
61
63
  import { SystemStats } from '../schemas/apiSchema';
64
+ import { TerminalSize } from '../schemas/apiSchema';
62
65
  import { TransitionProps } from 'vue';
63
66
  import { TypesConfig } from 'vue-router';
64
67
  import { User } from '../schemas/apiSchema';
68
+ import { UserData } from '../schemas/apiSchema';
65
69
  import { UserDataFullInfo } from '../schemas/apiSchema';
66
70
  import { Vector2 } from '@comfyorg/litegraph';
67
71
  import { VNode } from 'vue';
@@ -126,7 +130,7 @@ declare interface BaseSidebarTabExtension {
126
130
  tooltip?: string;
127
131
  }
128
132
 
129
- declare type BottomPanelExtension = VueBottomPanelExtension | CustomBottomPanelExtension;
133
+ export declare type BottomPanelExtension = VueBottomPanelExtension | CustomBottomPanelExtension;
130
134
 
131
135
  declare class ChangeTracker {
132
136
  /**
@@ -649,11 +653,10 @@ export declare class ComfyApp {
649
653
  label?: string | (() => string);
650
654
  icon?: string | (() => string);
651
655
  tooltip?: string | (() => string);
652
- /** Menubar item label, if different from command label */
653
656
  menubarLabel?: string | (() => string);
654
657
  versionAdded?: string;
655
- /** If non-nullish, this command will prompt for confirmation. */
656
658
  confirmation?: string;
659
+ source?: string;
657
660
  }
658
661
 
659
662
  declare interface ComfyComponent<T extends HTMLElement = HTMLElement> {
@@ -790,7 +793,7 @@ export declare class ComfyApp {
790
793
  toggle(): boolean;
791
794
  }
792
795
 
793
- declare type ComfyNodeDef = z.infer<typeof zComfyNodeDef>;
796
+ export declare type ComfyNodeDef = z.infer<typeof zComfyNodeDef>;
794
797
 
795
798
  declare class ComfyPopup extends EventTarget {
796
799
  #private;
@@ -946,7 +949,7 @@ export declare class ComfyApp {
946
949
 
947
950
  declare type ComfyWorkflowJSON = z.infer<typeof zComfyWorkflow | typeof zComfyWorkflow1>;
948
951
 
949
- declare interface CommandManager {
952
+ export declare interface CommandManager {
950
953
  commands: ComfyCommand[];
951
954
  execute(command: string, errorHandler?: (error: any) => void): void;
952
955
  }
@@ -967,7 +970,11 @@ export declare class ComfyApp {
967
970
 
968
971
  declare type CustomSidebarTabExtension = BaseSidebarTabExtension & CustomExtension;
969
972
 
970
- declare interface ExtensionManager {
973
+ export { DeviceStats }
974
+
975
+ export { EmbeddingsResponse }
976
+
977
+ export declare interface ExtensionManager {
971
978
  registerSidebarTab(tab: SidebarTabExtension): void;
972
979
  unregisterSidebarTab(id: string): void;
973
980
  getSidebarTabs(): SidebarTabExtension[];
@@ -980,6 +987,8 @@ export declare class ComfyApp {
980
987
  };
981
988
  }
982
989
 
990
+ export { ExtensionsResponse }
991
+
983
992
  /**
984
993
  * The base form item for rendering in a form.
985
994
  */
@@ -1003,7 +1012,7 @@ export declare class ComfyApp {
1003
1012
  reconnected: never;
1004
1013
  }
1005
1014
 
1006
- declare type InputSpec = z.infer<typeof zInputSpec>;
1015
+ export declare type InputSpec = z.infer<typeof zInputSpec>;
1007
1016
 
1008
1017
  declare type Keybinding = z.infer<typeof zKeybinding>;
1009
1018
 
@@ -1022,6 +1031,10 @@ export declare class ComfyApp {
1022
1031
  content: string;
1023
1032
  }
1024
1033
 
1034
+ export { LogEntry }
1035
+
1036
+ export { LogsRawResponse }
1037
+
1025
1038
  declare type MenuCommandGroup = {
1026
1039
  /**
1027
1040
  * The path to the menu group.
@@ -1048,6 +1061,8 @@ export declare class ComfyApp {
1048
1061
  [K in keyof T as T[K] extends never ? never : K]: T[K];
1049
1062
  };
1050
1063
 
1064
+ export { NodeError }
1065
+
1051
1066
  declare type NodeId = z.infer<typeof zNodeId>;
1052
1067
 
1053
1068
  /** {@link Pick} only properties that evaluate to `never`. */
@@ -1055,6 +1070,8 @@ export declare class ComfyApp {
1055
1070
  [K in keyof T as T[K] extends never ? K : never]: T[K];
1056
1071
  };
1057
1072
 
1073
+ export { PromptResponse }
1074
+
1058
1075
  declare type SettingCustomRenderer = (name: string, setter: (v: any) => void, value: any, attrs: any) => HTMLElement;
1059
1076
 
1060
1077
  declare type SettingInputType = 'boolean' | 'number' | 'slider' | 'knob' | 'combo' | 'text' | 'image' | 'color' | 'url' | 'hidden';
@@ -1076,11 +1093,15 @@ export declare class ComfyApp {
1076
1093
  versionModified?: string;
1077
1094
  }
1078
1095
 
1079
- declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
1096
+ export { Settings }
1097
+
1098
+ export declare type SidebarTabExtension = VueSidebarTabExtension | CustomSidebarTabExtension;
1080
1099
 
1081
1100
  /** Keys (names) of API events that _do not_ pass a {@link CustomEvent} `detail` object. */
1082
1101
  declare type SimpleApiEvents = keyof PickNevers<ApiEventTypes>;
1083
1102
 
1103
+ export { SystemStats }
1104
+
1084
1105
  declare interface TemplateInfo {
1085
1106
  name: string;
1086
1107
  tutorialUrl?: string;
@@ -1090,7 +1111,9 @@ export declare class ComfyApp {
1090
1111
  description: string;
1091
1112
  }
1092
1113
 
1093
- declare type ToastManager = {
1114
+ export { TerminalSize }
1115
+
1116
+ export declare type ToastManager = {
1094
1117
  add(message: ToastMessageOptions): void;
1095
1118
  remove(message: ToastMessageOptions): void;
1096
1119
  removeAll(): void;
@@ -1099,7 +1122,7 @@ export declare class ComfyApp {
1099
1122
  /**
1100
1123
  * Defines message options in Toast component.
1101
1124
  */
1102
- declare interface ToastMessageOptions {
1125
+ export declare interface ToastMessageOptions {
1103
1126
  /**
1104
1127
  * Severity level of the message.
1105
1128
  * @defaultValue info
@@ -1653,7 +1676,7 @@ export declare class ComfyApp {
1653
1676
  onClose?: () => void;
1654
1677
  closable?: boolean;
1655
1678
  modal?: boolean;
1656
- position?: "left" | "top" | "right" | "bottom" | "center" | "topleft" | "topright" | "bottomleft" | "bottomright";
1679
+ position?: "left" | "right" | "top" | "bottom" | "center" | "topleft" | "topright" | "bottomleft" | "bottomright";
1657
1680
  pt?: {
1658
1681
  root?: DialogPassThroughOptionType<any>;
1659
1682
  header?: DialogPassThroughOptionType<any>;
@@ -1764,6 +1787,12 @@ export declare class ComfyApp {
1764
1787
  }) => Promise<boolean | null>;
1765
1788
  };
1766
1789
 
1790
+ export { User }
1791
+
1792
+ export { UserData }
1793
+
1794
+ export { UserDataFullInfo }
1795
+
1767
1796
  /**
1768
1797
  * Represents a file in the user's data directory.
1769
1798
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.16.6",
3
+ "version": "1.16.7",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"