(id: string)
| 402 | } |
| 403 | |
| 404 | export async function deleteWorkspace(id: string): Promise<boolean> { |
| 405 | const res = await fetch(`/api/workspaces/${encodeURIComponent(id)}`, { |
| 406 | method: 'DELETE', |
| 407 | }); |
| 408 | return res.ok; |
| 409 | } |
| 410 | |
| 411 | export type WorkspaceMetadataPatch = { displayName?: string | null; description?: string | null }; |
| 412 |
no test coverage detected