diff --git a/core/control-plane/client.ts b/core/control-plane/client.ts index 77a3dc108..9fab604d4 100644 --- a/core/control-plane/client.ts +++ b/core/control-plane/client.ts @@ -99,22 +99,6 @@ export class ControlPlaneClient { return resp; } - public async listWorkspaces(): Promise { - const userId = await this.userId; - if (!userId) { - return []; - } - - try { - const resp = await this.request("workspaces", { - method: "GET", - }); - return (await resp.json()) as any; - } catch (e) { - return []; - } - } - public async listAssistants(organizationId: string | null): Promise< { configResult: ConfigResult; @@ -183,16 +167,4 @@ export class ControlPlaneClient { return null; } } - - async getSettingsForWorkspace(workspaceId: string): Promise { - const userId = await this.userId; - if (!userId) { - throw new Error("No user id"); - } - - const resp = await this.request(`workspaces/${workspaceId}`, { - method: "GET", - }); - return ((await resp.json()) as any).settings; - } }