// This file is auto-generated by @hey-api/openapi-ts import { createClient, createConfig, type OptionsLegacyParser } from '@hey-api/client-fetch'; import type { GetV1NodesByUserJsonData, GetV1NodesByUserJsonError, GetV1NodesByUserJsonResponse, GetV1NodesByUserBySystemJsonData, GetV1NodesByUserBySystemJsonError, GetV1NodesByUserBySystemJsonResponse, GetV1NodesByUserBySystemByNodeIdby-.+jsonData, GetV1NodesByUserBySystemByNodeIdby-.+jsonError, GetV1NodesByUserBySystemByNodeIdby-.+jsonResponse, GetV1NodesByUserBySystemByNodeIdby-.+WasmData, GetV1NodesByUserBySystemByNodeIdby-.+WasmError, GetV1NodesByUserBySystemByNodeIdby-.+WasmResponse, PostV1NodesError, PostV1NodesResponse, GetV1UsersUsersJsonError, GetV1UsersUsersJsonResponse, GetV1UsersByUserIdJsonData, GetV1UsersByUserIdJsonError, GetV1UsersByUserIdJsonResponse } from './types.gen'; export const client = createClient(createConfig()); export const getV1NodesByUserJson = (options: OptionsLegacyParser) => { return (options?.client ?? client).get({ ...options, url: '/v1/nodes/{user}.json' }); }; export const getV1NodesByUserBySystemJson = (options: OptionsLegacyParser) => { return (options?.client ?? client).get({ ...options, url: '/v1/nodes/{user}/{system}.json' }); }; export const getV1NodesByUserBySystemByNodeIdby-.+Json = (options: OptionsLegacyParser) => { return (options?.client ?? client).get({ ...options, url: '/v1/nodes/{user}/{system}/{nodeId}{.+\\.json}' }); }; export const getV1NodesByUserBySystemByNodeIdby-.+Wasm = (options: OptionsLegacyParser) => { return (options?.client ?? client).get({ ...options, url: '/v1/nodes/{user}/{system}/{nodeId}{.+\\.wasm}' }); }; export const postV1Nodes = (options?: OptionsLegacyParser) => { return (options?.client ?? client).post({ ...options, url: '/v1/nodes' }); }; export const getV1UsersUsersJson = (options?: OptionsLegacyParser) => { return (options?.client ?? client).get({ ...options, url: '/v1/users/users.json' }); }; export const getV1UsersByUserIdJson = (options?: OptionsLegacyParser) => { return (options?.client ?? client).get({ ...options, url: '/v1/users/{userId}.json' }); };