INNER CODE UNIT · TypeScript
closeSession
apache/kyuubi · kyuubi-server/web-ui/src/api/data-agent/index.ts:44
export function closeSession(sessionHandle: string) {
return request({
url: `api/v1/sessions/${sessionHandle}`,
method: 'delete'
})
}
export function getSession(sessionHandle: string) {
return request({
url: `api/v1/sessions/${sessionHandle}`,
method: 'get'
})
}
export interface ApprovalResponse {
status: 'ok' | 'not_found'
action: 'approved' | 'denied'
requestId: string