@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.
- package/comfyDesktopBridge.d.ts +3 -0
- package/package.json +1 -1
package/comfyDesktopBridge.d.ts
CHANGED
|
@@ -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
|
}
|