add button to clear stale 'active' calls

This commit is contained in:
Logan
2026-06-21 23:45:28 -04:00
parent d290b89736
commit 961cc6f36e
3 changed files with 130 additions and 3 deletions
+2
View File
@@ -63,6 +63,8 @@ export const c2api = {
},
patchTranscript: (callId: string, transcript: string) =>
request(`/calls/${callId}/transcript`, { method: "PATCH", body: JSON.stringify({ transcript }) }),
closeStallCalls: (olderThanMinutes: number, dryRun: boolean) =>
request<{ dry_run: boolean; older_than_minutes: number; count: number; call_ids: string[] }>(`/calls/close-stale?older_than_minutes=${olderThanMinutes}&dry_run=${dryRun}`, { method: "POST" }),
// Incidents
getIncidents: (params?: { status?: string; type?: string }) => {