Spaces:
Sleeping
Sleeping
// This file is auto-generated by @hey-api/openapi-ts | |
import { createClient, createConfig, type Options } from '@hey-api/client-fetch'; | |
import type { RootGetError, RootGetResponse, HealthCheckHealthGetError, HealthCheckHealthGetResponse, ListPoliciesPoliciesGetError, ListPoliciesPoliciesGetResponse, ListSessionsSessionsGetError, ListSessionsSessionsGetResponse, CreateSessionSessionsPostData, CreateSessionSessionsPostError, CreateSessionSessionsPostResponse, GetSessionStatusSessionsSessionIdGetData, GetSessionStatusSessionsSessionIdGetError, GetSessionStatusSessionsSessionIdGetResponse, DeleteSessionSessionsSessionIdDeleteData, DeleteSessionSessionsSessionIdDeleteError, DeleteSessionSessionsSessionIdDeleteResponse, StartInferenceSessionsSessionIdStartPostData, StartInferenceSessionsSessionIdStartPostError, StartInferenceSessionsSessionIdStartPostResponse, StopInferenceSessionsSessionIdStopPostData, StopInferenceSessionsSessionIdStopPostError, StopInferenceSessionsSessionIdStopPostResponse, RestartInferenceSessionsSessionIdRestartPostData, RestartInferenceSessionsSessionIdRestartPostError, RestartInferenceSessionsSessionIdRestartPostResponse, GetSystemInfoDebugSystemGetError, GetSystemInfoDebugSystemGetResponse, GetRecentLogsDebugLogsGetError, GetRecentLogsDebugLogsGetResponse, DebugResetSessionDebugSessionsSessionIdResetPostData, DebugResetSessionDebugSessionsSessionIdResetPostError, DebugResetSessionDebugSessionsSessionIdResetPostResponse, GetSessionQueueInfoDebugSessionsSessionIdQueueGetData, GetSessionQueueInfoDebugSessionsSessionIdQueueGetError, GetSessionQueueInfoDebugSessionsSessionIdQueueGetResponse } from './types.gen'; | |
export const client = createClient(createConfig()); | |
/** | |
* Root | |
* Health check endpoint. | |
*/ | |
export const rootGet = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { | |
return (options?.client ?? client).get<RootGetResponse, RootGetError, ThrowOnError>({ | |
...options, | |
url: '/' | |
}); | |
}; | |
/** | |
* Health Check | |
* Detailed health check. | |
*/ | |
export const healthCheckHealthGet = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { | |
return (options?.client ?? client).get<HealthCheckHealthGetResponse, HealthCheckHealthGetError, ThrowOnError>({ | |
...options, | |
url: '/health' | |
}); | |
}; | |
/** | |
* List Policies | |
* List supported policy types. | |
*/ | |
export const listPoliciesPoliciesGet = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { | |
return (options?.client ?? client).get<ListPoliciesPoliciesGetResponse, ListPoliciesPoliciesGetError, ThrowOnError>({ | |
...options, | |
url: '/policies' | |
}); | |
}; | |
/** | |
* List Sessions | |
* List all sessions. | |
*/ | |
export const listSessionsSessionsGet = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { | |
return (options?.client ?? client).get<ListSessionsSessionsGetResponse, ListSessionsSessionsGetError, ThrowOnError>({ | |
...options, | |
url: '/sessions' | |
}); | |
}; | |
/** | |
* Create Session | |
* Create a new inference session. | |
* | |
* If workspace_id is provided, all rooms will be created in that workspace. | |
* If workspace_id is not provided, a new workspace will be generated automatically. | |
* All rooms for a session (cameras + joints) are always created in the same workspace. | |
*/ | |
export const createSessionSessionsPost = <ThrowOnError extends boolean = false>(options: Options<CreateSessionSessionsPostData, ThrowOnError>) => { | |
return (options?.client ?? client).post<CreateSessionSessionsPostResponse, CreateSessionSessionsPostError, ThrowOnError>({ | |
...options, | |
url: '/sessions' | |
}); | |
}; | |
/** | |
* Get Session Status | |
* Get status of a specific session. | |
*/ | |
export const getSessionStatusSessionsSessionIdGet = <ThrowOnError extends boolean = false>(options: Options<GetSessionStatusSessionsSessionIdGetData, ThrowOnError>) => { | |
return (options?.client ?? client).get<GetSessionStatusSessionsSessionIdGetResponse, GetSessionStatusSessionsSessionIdGetError, ThrowOnError>({ | |
...options, | |
url: '/sessions/{session_id}' | |
}); | |
}; | |
/** | |
* Delete Session | |
* Delete a session. | |
*/ | |
export const deleteSessionSessionsSessionIdDelete = <ThrowOnError extends boolean = false>(options: Options<DeleteSessionSessionsSessionIdDeleteData, ThrowOnError>) => { | |
return (options?.client ?? client).delete<DeleteSessionSessionsSessionIdDeleteResponse, DeleteSessionSessionsSessionIdDeleteError, ThrowOnError>({ | |
...options, | |
url: '/sessions/{session_id}' | |
}); | |
}; | |
/** | |
* Start Inference | |
* Start inference for a session. | |
*/ | |
export const startInferenceSessionsSessionIdStartPost = <ThrowOnError extends boolean = false>(options: Options<StartInferenceSessionsSessionIdStartPostData, ThrowOnError>) => { | |
return (options?.client ?? client).post<StartInferenceSessionsSessionIdStartPostResponse, StartInferenceSessionsSessionIdStartPostError, ThrowOnError>({ | |
...options, | |
url: '/sessions/{session_id}/start' | |
}); | |
}; | |
/** | |
* Stop Inference | |
* Stop inference for a session. | |
*/ | |
export const stopInferenceSessionsSessionIdStopPost = <ThrowOnError extends boolean = false>(options: Options<StopInferenceSessionsSessionIdStopPostData, ThrowOnError>) => { | |
return (options?.client ?? client).post<StopInferenceSessionsSessionIdStopPostResponse, StopInferenceSessionsSessionIdStopPostError, ThrowOnError>({ | |
...options, | |
url: '/sessions/{session_id}/stop' | |
}); | |
}; | |
/** | |
* Restart Inference | |
* Restart inference for a session. | |
*/ | |
export const restartInferenceSessionsSessionIdRestartPost = <ThrowOnError extends boolean = false>(options: Options<RestartInferenceSessionsSessionIdRestartPostData, ThrowOnError>) => { | |
return (options?.client ?? client).post<RestartInferenceSessionsSessionIdRestartPostResponse, RestartInferenceSessionsSessionIdRestartPostError, ThrowOnError>({ | |
...options, | |
url: '/sessions/{session_id}/restart' | |
}); | |
}; | |
/** | |
* Get System Info | |
* Get system information for debugging. | |
*/ | |
export const getSystemInfoDebugSystemGet = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { | |
return (options?.client ?? client).get<GetSystemInfoDebugSystemGetResponse, GetSystemInfoDebugSystemGetError, ThrowOnError>({ | |
...options, | |
url: '/debug/system' | |
}); | |
}; | |
/** | |
* Get Recent Logs | |
* Get recent log entries for debugging. | |
*/ | |
export const getRecentLogsDebugLogsGet = <ThrowOnError extends boolean = false>(options?: Options<unknown, ThrowOnError>) => { | |
return (options?.client ?? client).get<GetRecentLogsDebugLogsGetResponse, GetRecentLogsDebugLogsGetError, ThrowOnError>({ | |
...options, | |
url: '/debug/logs' | |
}); | |
}; | |
/** | |
* Debug Reset Session | |
* Reset a session's internal state for debugging. | |
*/ | |
export const debugResetSessionDebugSessionsSessionIdResetPost = <ThrowOnError extends boolean = false>(options: Options<DebugResetSessionDebugSessionsSessionIdResetPostData, ThrowOnError>) => { | |
return (options?.client ?? client).post<DebugResetSessionDebugSessionsSessionIdResetPostResponse, DebugResetSessionDebugSessionsSessionIdResetPostError, ThrowOnError>({ | |
...options, | |
url: '/debug/sessions/{session_id}/reset' | |
}); | |
}; | |
/** | |
* Get Session Queue Info | |
* Get detailed information about a session's action queue. | |
*/ | |
export const getSessionQueueInfoDebugSessionsSessionIdQueueGet = <ThrowOnError extends boolean = false>(options: Options<GetSessionQueueInfoDebugSessionsSessionIdQueueGetData, ThrowOnError>) => { | |
return (options?.client ?? client).get<GetSessionQueueInfoDebugSessionsSessionIdQueueGetResponse, GetSessionQueueInfoDebugSessionsSessionIdQueueGetError, ThrowOnError>({ | |
...options, | |
url: '/debug/sessions/{session_id}/queue' | |
}); | |
}; |