// 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, ListSessionsSessionsGetError, ListSessionsSessionsGetResponse, CreateSessionSessionsPostData, CreateSessionSessionsPostError, CreateSessionSessionsPostResponse, StartInferenceSessionsSessionIdStartPostData, StartInferenceSessionsSessionIdStartPostError, StartInferenceSessionsSessionIdStartPostResponse, StopInferenceSessionsSessionIdStopPostData, StopInferenceSessionsSessionIdStopPostError, StopInferenceSessionsSessionIdStopPostResponse, RestartInferenceSessionsSessionIdRestartPostData, RestartInferenceSessionsSessionIdRestartPostError, RestartInferenceSessionsSessionIdRestartPostResponse, DeleteSessionSessionsSessionIdDeleteData, DeleteSessionSessionsSessionIdDeleteError, DeleteSessionSessionsSessionIdDeleteResponse } 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 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' }); }; /** * 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' }); }; /** * Delete Session * Delete a session. */ export const deleteSessionSessionsSessionIdDelete = (options: Options) => { return (options?.client ?? client).delete({ ...options, url: '/sessions/{session_id}' }); };