// 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 = (options?: Options) => { return (options?.client ?? client).get({ ...options, url: '/' }); }; /** * Health Check * Detailed health check. */ export const healthCheckHealthGet = (options?: Options) => { return (options?.client ?? client).get({ ...options, url: '/health' }); }; /** * List Policies * List supported policy types. */ export const listPoliciesPoliciesGet = (options?: Options) => { return (options?.client ?? client).get({ ...options, url: '/policies' }); }; /** * List Sessions * List all sessions. */ export const listSessionsSessionsGet = (options?: Options) => { return (options?.client ?? client).get({ ...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 = (options: Options) => { return (options?.client ?? client).post({ ...options, url: '/sessions' }); }; /** * Get Session Status * Get status of a specific session. */ export const getSessionStatusSessionsSessionIdGet = (options: Options) => { return (options?.client ?? client).get({ ...options, url: '/sessions/{session_id}' }); }; /** * Delete Session * Delete a session. */ export const deleteSessionSessionsSessionIdDelete = (options: Options) => { return (options?.client ?? client).delete({ ...options, url: '/sessions/{session_id}' }); }; /** * Start Inference * Start inference for a session. */ export const startInferenceSessionsSessionIdStartPost = (options: Options) => { return (options?.client ?? client).post({ ...options, url: '/sessions/{session_id}/start' }); }; /** * Stop Inference * Stop inference for a session. */ export const stopInferenceSessionsSessionIdStopPost = (options: Options) => { return (options?.client ?? client).post({ ...options, url: '/sessions/{session_id}/stop' }); }; /** * Restart Inference * Restart inference for a session. */ export const restartInferenceSessionsSessionIdRestartPost = (options: Options) => { return (options?.client ?? client).post({ ...options, url: '/sessions/{session_id}/restart' }); }; /** * Get System Info * Get system information for debugging. */ export const getSystemInfoDebugSystemGet = (options?: Options) => { return (options?.client ?? client).get({ ...options, url: '/debug/system' }); }; /** * Get Recent Logs * Get recent log entries for debugging. */ export const getRecentLogsDebugLogsGet = (options?: Options) => { return (options?.client ?? client).get({ ...options, url: '/debug/logs' }); }; /** * Debug Reset Session * Reset a session's internal state for debugging. */ export const debugResetSessionDebugSessionsSessionIdResetPost = (options: Options) => { return (options?.client ?? client).post({ ...options, url: '/debug/sessions/{session_id}/reset' }); }; /** * Get Session Queue Info * Get detailed information about a session's action queue. */ export const getSessionQueueInfoDebugSessionsSessionIdQueueGet = (options: Options) => { return (options?.client ?? client).get({ ...options, url: '/debug/sessions/{session_id}/queue' }); };