@comfyorg/comfyui-desktop-bridge-types 0.4.0 → 0.5.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.
@@ -135,6 +135,9 @@ export interface ComfyDesktop2AuthBridge {
135
135
  /** Signs Desktop out of its account (every view follows) and resolves with
136
136
  * the resulting state; Desktop may keep the session if an install needs it. */
137
137
  signOut(): Promise<ComfyDesktop2AuthState>
138
+ /** Re-scopes Desktop's session to `workspaceId` (browser consent the first
139
+ * time) and resolves with the resulting state; every view follows. */
140
+ switchWorkspace(workspaceId: string): Promise<ComfyDesktop2AuthState>
138
141
  /** Fires when Desktop signs in, signs out or switches workspace. */
139
142
  onChanged(callback: (state: ComfyDesktop2AuthState) => void): () => void
140
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-desktop-bridge-types",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript definitions for the Comfy Desktop hosted frontend bridge",
5
5
  "type": "module",
6
6
  "main": "./index.js",