(key: string, sessionId: string, patch: { title?: string; status?: string })
| 66 | } |
| 67 | |
| 68 | export function patchSession(key: string, sessionId: string, patch: { title?: string; status?: string }) { |
| 69 | return fetchJson<SessionDetail>(`/sessions/${encodeURIComponent(sessionId)}`, key, { |
| 70 | method: "PATCH", |
| 71 | body: JSON.stringify(patch), |
| 72 | }); |
| 73 | } |
| 74 | |
| 75 | export function deleteSession(key: string, sessionId: string) { |
| 76 | return fetchJson<{ deleted: boolean; id: string }>(`/sessions/${encodeURIComponent(sessionId)}`, key, { |