( taskId: string, body: CreateTerminalSessionRequest, )
| 17 | } |
| 18 | |
| 19 | export function createTerminalSession( |
| 20 | taskId: string, |
| 21 | body: CreateTerminalSessionRequest, |
| 22 | ): Promise<CreateTerminalSessionResult> { |
| 23 | return apiFetch<CreateTerminalSessionResult>(`/tasks/${taskId}/terminals`, { |
| 24 | method: 'POST', |
| 25 | body: JSON.stringify(body), |
| 26 | }) |
| 27 | } |
| 28 | |
| 29 | export function listTerminalSessions( |
| 30 | taskId: string, |
no test coverage detected