remove unused ControlPlaneClient methods

This commit is contained in:
Nate 2025-05-17 21:28:34 -07:00
parent a7b0ff9cf7
commit c2fa11dd98

View file

@ -99,22 +99,6 @@ export class ControlPlaneClient {
return resp;
}
public async listWorkspaces(): Promise<ControlPlaneWorkspace[]> {
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<AssistantUnrolled>;
@ -183,16 +167,4 @@ export class ControlPlaneClient {
return null;
}
}
async getSettingsForWorkspace(workspaceId: string): Promise<ConfigJson> {
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;
}
}