@gpt-platform/admin 0.3.4 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/_internal/core/bodySerializer.gen.ts","../src/_internal/core/serverSentEvents.gen.ts","../src/_internal/core/pathSerializer.gen.ts","../src/_internal/core/utils.gen.ts","../src/_internal/core/auth.gen.ts","../src/_internal/client/utils.gen.ts","../src/_internal/client/client.gen.ts","../src/version.ts","../src/base-client.ts","../src/errors/index.ts","../src/streaming.ts","../src/request-builder.ts","../src/_internal/client.gen.ts","../src/_internal/sdk.gen.ts","../src/namespaces/accounts.ts","../src/namespaces/apiKeys.ts","../src/namespaces/documents.ts","../src/namespaces/executions.ts","../src/namespaces/storage.ts","../src/namespaces/webhooks-ns.ts","../src/gpt-admin.ts","../src/index.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type {\n ArrayStyle,\n ObjectStyle,\n SerializerOptions,\n} from \"./pathSerializer.gen.js\";\n\nexport type QuerySerializer = (query: Record<string, unknown>) => string;\n\nexport type BodySerializer = (body: any) => any;\n\ntype QuerySerializerOptionsObject = {\n allowReserved?: boolean;\n array?: Partial<SerializerOptions<ArrayStyle>>;\n object?: Partial<SerializerOptions<ObjectStyle>>;\n};\n\nexport type QuerySerializerOptions = QuerySerializerOptionsObject & {\n /**\n * Per-parameter serialization overrides. When provided, these settings\n * override the global array/object settings for specific parameter names.\n */\n parameters?: Record<string, QuerySerializerOptionsObject>;\n};\n\nconst serializeFormDataPair = (\n data: FormData,\n key: string,\n value: unknown,\n): void => {\n if (typeof value === \"string\" || value instanceof Blob) {\n data.append(key, value);\n } else if (value instanceof Date) {\n data.append(key, value.toISOString());\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nconst serializeUrlSearchParamsPair = (\n data: URLSearchParams,\n key: string,\n value: unknown,\n): void => {\n if (typeof value === \"string\") {\n data.append(key, value);\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nexport const formDataBodySerializer = {\n bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(\n body: T,\n ): FormData => {\n const data = new FormData();\n\n Object.entries(body).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeFormDataPair(data, key, v));\n } else {\n serializeFormDataPair(data, key, value);\n }\n });\n\n return data;\n },\n};\n\nexport const jsonBodySerializer = {\n bodySerializer: <T>(body: T): string =>\n JSON.stringify(body, (_key, value) =>\n typeof value === \"bigint\" ? value.toString() : value,\n ),\n};\n\nexport const urlSearchParamsBodySerializer = {\n bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(\n body: T,\n ): string => {\n const data = new URLSearchParams();\n\n Object.entries(body).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeUrlSearchParamsPair(data, key, v));\n } else {\n serializeUrlSearchParamsPair(data, key, value);\n }\n });\n\n return data.toString();\n },\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Config } from \"./types.gen.js\";\n\nexport type ServerSentEventsOptions<TData = unknown> = Omit<\n RequestInit,\n \"method\"\n> &\n Pick<Config, \"method\" | \"responseTransformer\" | \"responseValidator\"> & {\n /**\n * Fetch API implementation. You can use this option to provide a custom\n * fetch instance.\n *\n * @default globalThis.fetch\n */\n fetch?: typeof fetch;\n /**\n * Implementing clients can call request interceptors inside this hook.\n */\n onRequest?: (url: string, init: RequestInit) => Promise<Request>;\n /**\n * Callback invoked when a network or parsing error occurs during streaming.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param error The error that occurred.\n */\n onSseError?: (error: unknown) => void;\n /**\n * Callback invoked when an event is streamed from the server.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param event Event streamed from the server.\n * @returns Nothing (void).\n */\n onSseEvent?: (event: StreamEvent<TData>) => void;\n serializedBody?: RequestInit[\"body\"];\n /**\n * Default retry delay in milliseconds.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 3000\n */\n sseDefaultRetryDelay?: number;\n /**\n * Maximum number of retry attempts before giving up.\n */\n sseMaxRetryAttempts?: number;\n /**\n * Maximum retry delay in milliseconds.\n *\n * Applies only when exponential backoff is used.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 30000\n */\n sseMaxRetryDelay?: number;\n /**\n * Optional sleep function for retry backoff.\n *\n * Defaults to using `setTimeout`.\n */\n sseSleepFn?: (ms: number) => Promise<void>;\n url: string;\n };\n\nexport interface StreamEvent<TData = unknown> {\n data: TData;\n event?: string;\n id?: string;\n retry?: number;\n}\n\nexport type ServerSentEventsResult<\n TData = unknown,\n TReturn = void,\n TNext = unknown,\n> = {\n stream: AsyncGenerator<\n TData extends Record<string, unknown> ? TData[keyof TData] : TData,\n TReturn,\n TNext\n >;\n};\n\nexport const createSseClient = <TData = unknown>({\n onRequest,\n onSseError,\n onSseEvent,\n responseTransformer,\n responseValidator,\n sseDefaultRetryDelay,\n sseMaxRetryAttempts,\n sseMaxRetryDelay,\n sseSleepFn,\n url,\n ...options\n}: ServerSentEventsOptions): ServerSentEventsResult<TData> => {\n let lastEventId: string | undefined;\n\n const sleep =\n sseSleepFn ??\n ((ms: number) => new Promise((resolve) => setTimeout(resolve, ms)));\n\n const createStream = async function* () {\n let retryDelay: number = sseDefaultRetryDelay ?? 3000;\n let attempt = 0;\n const signal = options.signal ?? new AbortController().signal;\n\n while (true) {\n if (signal.aborted) break;\n\n attempt++;\n\n const headers =\n options.headers instanceof Headers\n ? options.headers\n : new Headers(options.headers as Record<string, string> | undefined);\n\n if (lastEventId !== undefined) {\n headers.set(\"Last-Event-ID\", lastEventId);\n }\n\n try {\n const requestInit: RequestInit = {\n redirect: \"follow\",\n ...options,\n body: options.serializedBody,\n headers,\n signal,\n };\n let request = new Request(url, requestInit);\n if (onRequest) {\n request = await onRequest(url, requestInit);\n }\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = options.fetch ?? globalThis.fetch;\n const response = await _fetch(request);\n\n if (!response.ok)\n throw new Error(\n `SSE failed: ${response.status} ${response.statusText}`,\n );\n\n if (!response.body) throw new Error(\"No body in SSE response\");\n\n const reader = response.body\n .pipeThrough(new TextDecoderStream())\n .getReader();\n\n let buffer = \"\";\n\n const abortHandler = () => {\n try {\n reader.cancel();\n } catch {\n // noop\n }\n };\n\n signal.addEventListener(\"abort\", abortHandler);\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n buffer += value;\n // Normalize line endings: CRLF -> LF, then CR -> LF\n buffer = buffer.replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\");\n\n const chunks = buffer.split(\"\\n\\n\");\n buffer = chunks.pop() ?? \"\";\n\n for (const chunk of chunks) {\n const lines = chunk.split(\"\\n\");\n const dataLines: Array<string> = [];\n let eventName: string | undefined;\n\n for (const line of lines) {\n if (line.startsWith(\"data:\")) {\n dataLines.push(line.replace(/^data:\\s*/, \"\"));\n } else if (line.startsWith(\"event:\")) {\n eventName = line.replace(/^event:\\s*/, \"\");\n } else if (line.startsWith(\"id:\")) {\n lastEventId = line.replace(/^id:\\s*/, \"\");\n } else if (line.startsWith(\"retry:\")) {\n const parsed = Number.parseInt(\n line.replace(/^retry:\\s*/, \"\"),\n 10,\n );\n if (!Number.isNaN(parsed)) {\n retryDelay = parsed;\n }\n }\n }\n\n let data: unknown;\n let parsedJson = false;\n\n if (dataLines.length) {\n const rawData = dataLines.join(\"\\n\");\n try {\n data = JSON.parse(rawData);\n parsedJson = true;\n } catch {\n data = rawData;\n }\n }\n\n if (parsedJson) {\n if (responseValidator) {\n await responseValidator(data);\n }\n\n if (responseTransformer) {\n data = await responseTransformer(data);\n }\n }\n\n onSseEvent?.({\n data,\n event: eventName,\n id: lastEventId,\n retry: retryDelay,\n });\n\n if (dataLines.length) {\n yield data as any;\n }\n }\n }\n } finally {\n signal.removeEventListener(\"abort\", abortHandler);\n reader.releaseLock();\n }\n\n break; // exit loop on normal completion\n } catch (error) {\n // connection failed or aborted; retry after delay\n onSseError?.(error);\n\n if (\n sseMaxRetryAttempts !== undefined &&\n attempt >= sseMaxRetryAttempts\n ) {\n break; // stop after firing error\n }\n\n // exponential backoff: double retry each attempt, cap at 30s\n const backoff = Math.min(\n retryDelay * 2 ** (attempt - 1),\n sseMaxRetryDelay ?? 30000,\n );\n await sleep(backoff);\n }\n }\n };\n\n const stream = createStream();\n\n return { stream };\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\ninterface SerializeOptions<T>\n extends SerializePrimitiveOptions, SerializerOptions<T> {}\n\ninterface SerializePrimitiveOptions {\n allowReserved?: boolean;\n name: string;\n}\n\nexport interface SerializerOptions<T> {\n /**\n * @default true\n */\n explode: boolean;\n style: T;\n}\n\nexport type ArrayStyle = \"form\" | \"spaceDelimited\" | \"pipeDelimited\";\nexport type ArraySeparatorStyle = ArrayStyle | MatrixStyle;\ntype MatrixStyle = \"label\" | \"matrix\" | \"simple\";\nexport type ObjectStyle = \"form\" | \"deepObject\";\ntype ObjectSeparatorStyle = ObjectStyle | MatrixStyle;\n\ninterface SerializePrimitiveParam extends SerializePrimitiveOptions {\n value: string;\n}\n\nexport const separatorArrayExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case \"label\":\n return \".\";\n case \"matrix\":\n return \";\";\n case \"simple\":\n return \",\";\n default:\n return \"&\";\n }\n};\n\nexport const separatorArrayNoExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case \"form\":\n return \",\";\n case \"pipeDelimited\":\n return \"|\";\n case \"spaceDelimited\":\n return \"%20\";\n default:\n return \",\";\n }\n};\n\nexport const separatorObjectExplode = (style: ObjectSeparatorStyle) => {\n switch (style) {\n case \"label\":\n return \".\";\n case \"matrix\":\n return \";\";\n case \"simple\":\n return \",\";\n default:\n return \"&\";\n }\n};\n\nexport const serializeArrayParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n}: SerializeOptions<ArraySeparatorStyle> & {\n value: unknown[];\n}) => {\n if (!explode) {\n const joinedValues = (\n allowReserved ? value : value.map((v) => encodeURIComponent(v as string))\n ).join(separatorArrayNoExplode(style));\n switch (style) {\n case \"label\":\n return `.${joinedValues}`;\n case \"matrix\":\n return `;${name}=${joinedValues}`;\n case \"simple\":\n return joinedValues;\n default:\n return `${name}=${joinedValues}`;\n }\n }\n\n const separator = separatorArrayExplode(style);\n const joinedValues = value\n .map((v) => {\n if (style === \"label\" || style === \"simple\") {\n return allowReserved ? v : encodeURIComponent(v as string);\n }\n\n return serializePrimitiveParam({\n allowReserved,\n name,\n value: v as string,\n });\n })\n .join(separator);\n return style === \"label\" || style === \"matrix\"\n ? separator + joinedValues\n : joinedValues;\n};\n\nexport const serializePrimitiveParam = ({\n allowReserved,\n name,\n value,\n}: SerializePrimitiveParam) => {\n if (value === undefined || value === null) {\n return \"\";\n }\n\n if (typeof value === \"object\") {\n throw new Error(\n \"Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.\",\n );\n }\n\n return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;\n};\n\nexport const serializeObjectParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n valueOnly,\n}: SerializeOptions<ObjectSeparatorStyle> & {\n value: Record<string, unknown> | Date;\n valueOnly?: boolean;\n}) => {\n if (value instanceof Date) {\n return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;\n }\n\n if (style !== \"deepObject\" && !explode) {\n let values: string[] = [];\n Object.entries(value).forEach(([key, v]) => {\n values = [\n ...values,\n key,\n allowReserved ? (v as string) : encodeURIComponent(v as string),\n ];\n });\n const joinedValues = values.join(\",\");\n switch (style) {\n case \"form\":\n return `${name}=${joinedValues}`;\n case \"label\":\n return `.${joinedValues}`;\n case \"matrix\":\n return `;${name}=${joinedValues}`;\n default:\n return joinedValues;\n }\n }\n\n const separator = separatorObjectExplode(style);\n const joinedValues = Object.entries(value)\n .map(([key, v]) =>\n serializePrimitiveParam({\n allowReserved,\n name: style === \"deepObject\" ? `${name}[${key}]` : key,\n value: v as string,\n }),\n )\n .join(separator);\n return style === \"label\" || style === \"matrix\"\n ? separator + joinedValues\n : joinedValues;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { BodySerializer, QuerySerializer } from \"./bodySerializer.gen.js\";\nimport {\n type ArraySeparatorStyle,\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from \"./pathSerializer.gen.js\";\n\nexport interface PathSerializer {\n path: Record<string, unknown>;\n url: string;\n}\n\nexport const PATH_PARAM_RE = /\\{[^{}]+\\}/g;\n\nexport const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {\n let url = _url;\n const matches = _url.match(PATH_PARAM_RE);\n if (matches) {\n for (const match of matches) {\n let explode = false;\n let name = match.substring(1, match.length - 1);\n let style: ArraySeparatorStyle = \"simple\";\n\n if (name.endsWith(\"*\")) {\n explode = true;\n name = name.substring(0, name.length - 1);\n }\n\n if (name.startsWith(\".\")) {\n name = name.substring(1);\n style = \"label\";\n } else if (name.startsWith(\";\")) {\n name = name.substring(1);\n style = \"matrix\";\n }\n\n const value = path[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n if (Array.isArray(value)) {\n url = url.replace(\n match,\n serializeArrayParam({ explode, name, style, value }),\n );\n continue;\n }\n\n if (typeof value === \"object\") {\n url = url.replace(\n match,\n serializeObjectParam({\n explode,\n name,\n style,\n value: value as Record<string, unknown>,\n valueOnly: true,\n }),\n );\n continue;\n }\n\n if (style === \"matrix\") {\n url = url.replace(\n match,\n `;${serializePrimitiveParam({\n name,\n value: value as string,\n })}`,\n );\n continue;\n }\n\n const replaceValue = encodeURIComponent(\n style === \"label\" ? `.${value as string}` : (value as string),\n );\n url = url.replace(match, replaceValue);\n }\n }\n return url;\n};\n\nexport const getUrl = ({\n baseUrl,\n path,\n query,\n querySerializer,\n url: _url,\n}: {\n baseUrl?: string;\n path?: Record<string, unknown>;\n query?: Record<string, unknown>;\n querySerializer: QuerySerializer;\n url: string;\n}) => {\n const pathUrl = _url.startsWith(\"/\") ? _url : `/${_url}`;\n let url = (baseUrl ?? \"\") + pathUrl;\n if (path) {\n url = defaultPathSerializer({ path, url });\n }\n let search = query ? querySerializer(query) : \"\";\n if (search.startsWith(\"?\")) {\n search = search.substring(1);\n }\n if (search) {\n url += `?${search}`;\n }\n return url;\n};\n\nexport function getValidRequestBody(options: {\n body?: unknown;\n bodySerializer?: BodySerializer | null;\n serializedBody?: unknown;\n}) {\n const hasBody = options.body !== undefined;\n const isSerializedBody = hasBody && options.bodySerializer;\n\n if (isSerializedBody) {\n if (\"serializedBody\" in options) {\n const hasSerializedBody =\n options.serializedBody !== undefined && options.serializedBody !== \"\";\n\n return hasSerializedBody ? options.serializedBody : null;\n }\n\n // not all clients implement a serializedBody property (i.e. client-axios)\n return options.body !== \"\" ? options.body : null;\n }\n\n // plain/text body\n if (hasBody) {\n return options.body;\n }\n\n // no body was provided\n return undefined;\n}\n","// This file is auto-generated by @hey-api/openapi-ts\n\nexport type AuthToken = string | undefined;\n\nexport interface Auth {\n /**\n * Which part of the request do we use to send the auth?\n *\n * @default 'header'\n */\n in?: \"header\" | \"query\" | \"cookie\";\n /**\n * Header or query parameter name.\n *\n * @default 'Authorization'\n */\n name?: string;\n scheme?: \"basic\" | \"bearer\";\n type: \"apiKey\" | \"http\";\n}\n\nexport const getAuthToken = async (\n auth: Auth,\n callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken,\n): Promise<string | undefined> => {\n const token =\n typeof callback === \"function\" ? await callback(auth) : callback;\n\n if (!token) {\n return;\n }\n\n if (auth.scheme === \"bearer\") {\n return `Bearer ${token}`;\n }\n\n if (auth.scheme === \"basic\") {\n return `Basic ${btoa(token)}`;\n }\n\n return token;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { getAuthToken } from \"../core/auth.gen.js\";\nimport type { QuerySerializerOptions } from \"../core/bodySerializer.gen.js\";\nimport { jsonBodySerializer } from \"../core/bodySerializer.gen.js\";\nimport {\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from \"../core/pathSerializer.gen.js\";\nimport { getUrl } from \"../core/utils.gen.js\";\nimport type {\n Client,\n ClientOptions,\n Config,\n RequestOptions,\n} from \"./types.gen.js\";\n\nexport const createQuerySerializer = <T = unknown>({\n parameters = {},\n ...args\n}: QuerySerializerOptions = {}) => {\n const querySerializer = (queryParams: T) => {\n const search: string[] = [];\n if (queryParams && typeof queryParams === \"object\") {\n for (const name in queryParams) {\n const value = queryParams[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n const options = parameters[name] || args;\n\n if (Array.isArray(value)) {\n const serializedArray = serializeArrayParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: \"form\",\n value,\n ...options.array,\n });\n if (serializedArray) search.push(serializedArray);\n } else if (typeof value === \"object\") {\n const serializedObject = serializeObjectParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: \"deepObject\",\n value: value as Record<string, unknown>,\n ...options.object,\n });\n if (serializedObject) search.push(serializedObject);\n } else {\n const serializedPrimitive = serializePrimitiveParam({\n allowReserved: options.allowReserved,\n name,\n value: value as string,\n });\n if (serializedPrimitive) search.push(serializedPrimitive);\n }\n }\n }\n return search.join(\"&\");\n };\n return querySerializer;\n};\n\n/**\n * Infers parseAs value from provided Content-Type header.\n */\nexport const getParseAs = (\n contentType: string | null,\n): Exclude<Config[\"parseAs\"], \"auto\"> => {\n if (!contentType) {\n // If no Content-Type header is provided, the best we can do is return the raw response body,\n // which is effectively the same as the 'stream' option.\n return \"stream\";\n }\n\n const cleanContent = contentType.split(\";\")[0]?.trim();\n\n if (!cleanContent) {\n return;\n }\n\n if (\n cleanContent.startsWith(\"application/json\") ||\n cleanContent.endsWith(\"+json\")\n ) {\n return \"json\";\n }\n\n if (cleanContent === \"multipart/form-data\") {\n return \"formData\";\n }\n\n if (\n [\"application/\", \"audio/\", \"image/\", \"video/\"].some((type) =>\n cleanContent.startsWith(type),\n )\n ) {\n return \"blob\";\n }\n\n if (cleanContent.startsWith(\"text/\")) {\n return \"text\";\n }\n\n return;\n};\n\nconst checkForExistence = (\n options: Pick<RequestOptions, \"auth\" | \"query\"> & {\n headers: Headers;\n },\n name?: string,\n): boolean => {\n if (!name) {\n return false;\n }\n if (\n options.headers.has(name) ||\n options.query?.[name] ||\n options.headers.get(\"Cookie\")?.includes(`${name}=`)\n ) {\n return true;\n }\n return false;\n};\n\nexport const setAuthParams = async ({\n security,\n ...options\n}: Pick<Required<RequestOptions>, \"security\"> &\n Pick<RequestOptions, \"auth\" | \"query\"> & {\n headers: Headers;\n }) => {\n for (const auth of security) {\n if (checkForExistence(options, auth.name)) {\n continue;\n }\n\n const token = await getAuthToken(auth, options.auth);\n\n if (!token) {\n continue;\n }\n\n const name = auth.name ?? \"Authorization\";\n\n switch (auth.in) {\n case \"query\":\n if (!options.query) {\n options.query = {};\n }\n options.query[name] = token;\n break;\n case \"cookie\":\n options.headers.append(\"Cookie\", `${name}=${token}`);\n break;\n case \"header\":\n default:\n options.headers.set(name, token);\n break;\n }\n }\n};\n\nexport const buildUrl: Client[\"buildUrl\"] = (options) =>\n getUrl({\n baseUrl: options.baseUrl as string,\n path: options.path,\n query: options.query,\n querySerializer:\n typeof options.querySerializer === \"function\"\n ? options.querySerializer\n : createQuerySerializer(options.querySerializer),\n url: options.url,\n });\n\nexport const mergeConfigs = (a: Config, b: Config): Config => {\n const config = { ...a, ...b };\n if (config.baseUrl?.endsWith(\"/\")) {\n config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);\n }\n config.headers = mergeHeaders(a.headers, b.headers);\n return config;\n};\n\nconst headersEntries = (headers: Headers): Array<[string, string]> => {\n const entries: Array<[string, string]> = [];\n headers.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n};\n\nexport const mergeHeaders = (\n ...headers: Array<Required<Config>[\"headers\"] | undefined>\n): Headers => {\n const mergedHeaders = new Headers();\n for (const header of headers) {\n if (!header) {\n continue;\n }\n\n const iterator =\n header instanceof Headers\n ? headersEntries(header)\n : Object.entries(header);\n\n for (const [key, value] of iterator) {\n if (value === null) {\n mergedHeaders.delete(key);\n } else if (Array.isArray(value)) {\n for (const v of value) {\n mergedHeaders.append(key, v as string);\n }\n } else if (value !== undefined) {\n // assume object headers are meant to be JSON stringified, i.e. their\n // content value in OpenAPI specification is 'application/json'\n mergedHeaders.set(\n key,\n typeof value === \"object\" ? JSON.stringify(value) : (value as string),\n );\n }\n }\n }\n return mergedHeaders;\n};\n\ntype ErrInterceptor<Err, Res, Req, Options> = (\n error: Err,\n response: Res,\n request: Req,\n options: Options,\n) => Err | Promise<Err>;\n\ntype ReqInterceptor<Req, Options> = (\n request: Req,\n options: Options,\n) => Req | Promise<Req>;\n\ntype ResInterceptor<Res, Req, Options> = (\n response: Res,\n request: Req,\n options: Options,\n) => Res | Promise<Res>;\n\nclass Interceptors<Interceptor> {\n fns: Array<Interceptor | null> = [];\n\n clear(): void {\n this.fns = [];\n }\n\n eject(id: number | Interceptor): void {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = null;\n }\n }\n\n exists(id: number | Interceptor): boolean {\n const index = this.getInterceptorIndex(id);\n return Boolean(this.fns[index]);\n }\n\n getInterceptorIndex(id: number | Interceptor): number {\n if (typeof id === \"number\") {\n return this.fns[id] ? id : -1;\n }\n return this.fns.indexOf(id);\n }\n\n update(\n id: number | Interceptor,\n fn: Interceptor,\n ): number | Interceptor | false {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = fn;\n return id;\n }\n return false;\n }\n\n use(fn: Interceptor): number {\n this.fns.push(fn);\n return this.fns.length - 1;\n }\n}\n\nexport interface Middleware<Req, Res, Err, Options> {\n error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;\n request: Interceptors<ReqInterceptor<Req, Options>>;\n response: Interceptors<ResInterceptor<Res, Req, Options>>;\n}\n\nexport const createInterceptors = <Req, Res, Err, Options>(): Middleware<\n Req,\n Res,\n Err,\n Options\n> => ({\n error: new Interceptors<ErrInterceptor<Err, Res, Req, Options>>(),\n request: new Interceptors<ReqInterceptor<Req, Options>>(),\n response: new Interceptors<ResInterceptor<Res, Req, Options>>(),\n});\n\nconst defaultQuerySerializer = createQuerySerializer({\n allowReserved: false,\n array: {\n explode: true,\n style: \"form\",\n },\n object: {\n explode: true,\n style: \"deepObject\",\n },\n});\n\nconst defaultHeaders = {\n \"Content-Type\": \"application/json\",\n};\n\nexport const createConfig = <T extends ClientOptions = ClientOptions>(\n override: Config<Omit<ClientOptions, keyof T> & T> = {},\n): Config<Omit<ClientOptions, keyof T> & T> => ({\n ...jsonBodySerializer,\n headers: defaultHeaders,\n parseAs: \"auto\",\n querySerializer: defaultQuerySerializer,\n ...override,\n});\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { createSseClient } from \"../core/serverSentEvents.gen.js\";\nimport type { HttpMethod } from \"../core/types.gen.js\";\nimport { getValidRequestBody } from \"../core/utils.gen.js\";\nimport type {\n Client,\n Config,\n RequestOptions,\n ResolvedRequestOptions,\n} from \"./types.gen.js\";\nimport {\n buildUrl,\n createConfig,\n createInterceptors,\n getParseAs,\n mergeConfigs,\n mergeHeaders,\n setAuthParams,\n} from \"./utils.gen.js\";\n\ntype ReqInit = Omit<RequestInit, \"body\" | \"headers\"> & {\n body?: any;\n headers: ReturnType<typeof mergeHeaders>;\n};\n\nexport const createClient = (config: Config = {}): Client => {\n let _config = mergeConfigs(createConfig(), config);\n\n const getConfig = (): Config => ({ ..._config });\n\n const setConfig = (config: Config): Config => {\n _config = mergeConfigs(_config, config);\n return getConfig();\n };\n\n const interceptors = createInterceptors<\n Request,\n Response,\n unknown,\n ResolvedRequestOptions\n >();\n\n const beforeRequest = async (options: RequestOptions) => {\n const opts = {\n ..._config,\n ...options,\n fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,\n headers: mergeHeaders(_config.headers, options.headers),\n serializedBody: undefined,\n };\n\n if (opts.security) {\n await setAuthParams({\n ...opts,\n security: opts.security,\n });\n }\n\n if (opts.requestValidator) {\n await opts.requestValidator(opts);\n }\n\n if (opts.body !== undefined && opts.bodySerializer) {\n opts.serializedBody = opts.bodySerializer(opts.body);\n }\n\n // remove Content-Type header if body is empty to avoid sending invalid requests\n if (opts.body === undefined || opts.serializedBody === \"\") {\n opts.headers.delete(\"Content-Type\");\n }\n\n const url = buildUrl(opts);\n\n return { opts, url };\n };\n\n const request: Client[\"request\"] = async (options) => {\n // @ts-expect-error\n const { opts, url } = await beforeRequest(options);\n const requestInit: ReqInit = {\n redirect: \"follow\",\n ...opts,\n body: getValidRequestBody(opts),\n };\n\n let request = new Request(url, requestInit);\n\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = opts.fetch!;\n let response: Response;\n\n try {\n response = await _fetch(request);\n } catch (error) {\n // Handle fetch exceptions (AbortError, network errors, etc.)\n let finalError = error;\n\n for (const fn of interceptors.error.fns) {\n if (fn) {\n finalError = (await fn(\n error,\n undefined as any,\n request,\n opts,\n )) as unknown;\n }\n }\n\n finalError = finalError || ({} as unknown);\n\n if (opts.throwOnError) {\n throw finalError;\n }\n\n // Return error response\n return opts.responseStyle === \"data\"\n ? undefined\n : {\n error: finalError,\n request,\n response: undefined as any,\n };\n }\n\n for (const fn of interceptors.response.fns) {\n if (fn) {\n response = await fn(response, request, opts);\n }\n }\n\n const result = {\n request,\n response,\n };\n\n if (response.ok) {\n const parseAs =\n (opts.parseAs === \"auto\"\n ? getParseAs(response.headers.get(\"Content-Type\"))\n : opts.parseAs) ?? \"json\";\n\n if (\n response.status === 204 ||\n response.headers.get(\"Content-Length\") === \"0\"\n ) {\n let emptyData: any;\n switch (parseAs) {\n case \"arrayBuffer\":\n case \"blob\":\n case \"text\":\n emptyData = await response[parseAs]();\n break;\n case \"formData\":\n emptyData = new FormData();\n break;\n case \"stream\":\n emptyData = response.body;\n break;\n case \"json\":\n default:\n emptyData = {};\n break;\n }\n return opts.responseStyle === \"data\"\n ? emptyData\n : {\n data: emptyData,\n ...result,\n };\n }\n\n let data: any;\n switch (parseAs) {\n case \"arrayBuffer\":\n case \"blob\":\n case \"formData\":\n case \"json\":\n case \"text\":\n data = await response[parseAs]();\n break;\n case \"stream\":\n return opts.responseStyle === \"data\"\n ? response.body\n : {\n data: response.body,\n ...result,\n };\n }\n\n if (parseAs === \"json\") {\n if (opts.responseValidator) {\n await opts.responseValidator(data);\n }\n\n if (opts.responseTransformer) {\n data = await opts.responseTransformer(data);\n }\n }\n\n return opts.responseStyle === \"data\"\n ? data\n : {\n data,\n ...result,\n };\n }\n\n const textError = await response.text();\n let jsonError: unknown;\n\n try {\n jsonError = JSON.parse(textError);\n } catch {\n // noop\n }\n\n const error = jsonError ?? textError;\n let finalError = error;\n\n for (const fn of interceptors.error.fns) {\n if (fn) {\n finalError = (await fn(error, response, request, opts)) as string;\n }\n }\n\n finalError = finalError || ({} as string);\n\n if (opts.throwOnError) {\n throw finalError;\n }\n\n // TODO: we probably want to return error and improve types\n return opts.responseStyle === \"data\"\n ? undefined\n : {\n error: finalError,\n ...result,\n };\n };\n\n const makeMethodFn =\n (method: Uppercase<HttpMethod>) => (options: RequestOptions) =>\n request({ ...options, method });\n\n const makeSseFn =\n (method: Uppercase<HttpMethod>) => async (options: RequestOptions) => {\n const { opts, url } = await beforeRequest(options);\n return createSseClient({\n ...opts,\n body: opts.body as BodyInit | null | undefined,\n headers: opts.headers as unknown as Record<string, string>,\n method,\n onRequest: async (url, init) => {\n let request = new Request(url, init);\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n return request;\n },\n url,\n });\n };\n\n return {\n buildUrl,\n connect: makeMethodFn(\"CONNECT\"),\n delete: makeMethodFn(\"DELETE\"),\n get: makeMethodFn(\"GET\"),\n getConfig,\n head: makeMethodFn(\"HEAD\"),\n interceptors,\n options: makeMethodFn(\"OPTIONS\"),\n patch: makeMethodFn(\"PATCH\"),\n post: makeMethodFn(\"POST\"),\n put: makeMethodFn(\"PUT\"),\n request,\n setConfig,\n sse: {\n connect: makeSseFn(\"CONNECT\"),\n delete: makeSseFn(\"DELETE\"),\n get: makeSseFn(\"GET\"),\n head: makeSseFn(\"HEAD\"),\n options: makeSseFn(\"OPTIONS\"),\n patch: makeSseFn(\"PATCH\"),\n post: makeSseFn(\"POST\"),\n put: makeSseFn(\"PUT\"),\n trace: makeSseFn(\"TRACE\"),\n },\n trace: makeMethodFn(\"TRACE\"),\n } as Client;\n};\n","/** SDK version — updated automatically by mix update.sdks */\nexport const SDK_VERSION = \"0.3.4\";\n\n/** Default API version sent in every request — updated automatically by mix update.sdks */\nexport const DEFAULT_API_VERSION = \"2026-02-27\";\n","import { createClient, createConfig } from \"./_internal/client/index\";\nimport type { Client } from \"./_internal/client/index\";\n\n/** SDK version and default API version — sourced from generated version.ts */\nimport { SDK_VERSION, DEFAULT_API_VERSION } from \"./version\";\nexport { SDK_VERSION, DEFAULT_API_VERSION };\n\nexport interface BaseClientConfig {\n /** Base URL of the GPT Core API */\n baseUrl?: string;\n /** User JWT token (Bearer auth) */\n token?: string;\n /** Application API key (x-application-key header) */\n apiKey?: string;\n /** Application ID (x-application-id header) */\n applicationId?: string;\n /**\n * API version date to use for requests (e.g., \"2025-12-03\").\n * Defaults to the version this SDK was built against.\n * Pin this to a specific date to prevent breaking changes\n * when upgrading the SDK.\n */\n apiVersion?: string;\n}\n\nexport interface RequestOptions {\n /** AbortSignal for cancellation */\n signal?: AbortSignal;\n /** Idempotency key override */\n idempotencyKey?: string;\n /** Additional headers for this request */\n headers?: Record<string, string>;\n}\n\n/**\n * Check if a URL is considered secure for transmitting credentials.\n * Localhost and 127.0.0.1 are allowed for development.\n */\nfunction isSecureUrl(url: string): boolean {\n try {\n const parsed = new URL(url);\n if (parsed.protocol === \"https:\") return true;\n if (parsed.hostname === \"localhost\" || parsed.hostname === \"127.0.0.1\")\n return true;\n return false;\n } catch {\n return false;\n }\n}\n\nexport abstract class BaseClient {\n protected config: BaseClientConfig;\n\n /** Per-instance HTTP client — isolated from all other BaseClient instances */\n protected clientInstance: Client;\n\n /** The effective API version used by this client instance */\n public readonly apiVersion: string;\n\n constructor(config: BaseClientConfig = {}) {\n this.config = config;\n this.apiVersion = config.apiVersion ?? DEFAULT_API_VERSION;\n\n // Security: Warn if using non-HTTPS URL in non-localhost environment\n if (config.baseUrl && !isSecureUrl(config.baseUrl)) {\n console.warn(\n \"[GPT Core SDK] Warning: Using non-HTTPS URL. \" +\n \"Credentials may be transmitted insecurely. \" +\n \"Use HTTPS in production environments.\",\n );\n }\n\n // Create an isolated client instance — not the module-level singleton.\n // This prevents multiple GptAdmin instances from sharing interceptor lists\n // or overwriting each other's baseUrl configuration.\n const clientConfig: Record<string, unknown> = {};\n if (config.baseUrl) clientConfig[\"baseUrl\"] = config.baseUrl;\n\n this.clientInstance = createClient(createConfig(clientConfig));\n\n this.clientInstance.interceptors.request.use((req) => {\n // Security: Verify HTTPS before attaching credentials\n const requestUrl = req.url || config.baseUrl || \"\";\n if ((config.apiKey || config.token) && !isSecureUrl(requestUrl)) {\n console.warn(\n \"[GPT Core SDK] Warning: Sending credentials over non-HTTPS connection.\",\n );\n }\n\n req.headers.set(\n \"Accept\",\n `application/vnd.api+json; version=${this.apiVersion}`,\n );\n req.headers.set(\"Content-Type\", \"application/vnd.api+json\");\n\n if (config.apiKey) {\n req.headers.set(\"x-application-key\", config.apiKey);\n }\n if (config.applicationId) {\n req.headers.set(\"x-application-id\", config.applicationId);\n }\n if (config.token) {\n req.headers.set(\"Authorization\", `Bearer ${config.token}`);\n }\n return req;\n });\n }\n\n protected async requestWithRetry<T>(fn: () => Promise<T>): Promise<T> {\n return fn();\n }\n\n protected unwrap<T>(resource: unknown): T {\n if (!resource) return null as T;\n // If the resource is wrapped in { data: ... }, extract it.\n const obj = resource as Record<string, unknown>;\n if (obj.data && !obj.id && !obj.type) {\n return obj.data as T;\n }\n return resource as T;\n }\n\n protected getHeaders() {\n return {\n \"x-application-key\": this.config.apiKey || \"\",\n };\n }\n}\n","/**\n * Base error class for all GPT Core SDK errors\n */\nexport class GptCoreError extends Error {\n public readonly name: string;\n public readonly statusCode?: number;\n public readonly code?: string;\n public readonly requestId?: string;\n public readonly headers?: Record<string, string>;\n public readonly body?: unknown;\n public cause?: Error;\n\n constructor(\n message: string,\n options?: {\n statusCode?: number;\n code?: string;\n requestId?: string;\n headers?: Record<string, string>;\n body?: unknown;\n cause?: Error;\n },\n ) {\n super(message);\n this.name = this.constructor.name;\n this.statusCode = options?.statusCode;\n this.code = options?.code;\n this.requestId = options?.requestId;\n this.headers = options?.headers;\n this.body = options?.body;\n this.cause = options?.cause;\n\n // Maintains proper stack trace for where our error was thrown (only available on V8)\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n\n/**\n * Authentication errors (401)\n */\nexport class AuthenticationError extends GptCoreError {\n constructor(\n message = \"Authentication failed\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 401, ...options });\n }\n}\n\n/**\n * Authorization/Permission errors (403)\n */\nexport class AuthorizationError extends GptCoreError {\n constructor(\n message = \"Permission denied\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 403, ...options });\n }\n}\n\n/**\n * Resource not found errors (404)\n */\nexport class NotFoundError extends GptCoreError {\n constructor(\n message = \"Resource not found\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 404, ...options });\n }\n}\n\n/**\n * Validation errors (400, 422)\n */\nexport class ValidationError extends GptCoreError {\n public readonly errors?: Array<{\n field?: string;\n message: string;\n }>;\n\n constructor(\n message = \"Validation failed\",\n errors?: Array<{ field?: string; message: string }>,\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 422, ...options });\n this.errors = errors;\n }\n}\n\n/**\n * Rate limiting errors (429)\n */\nexport class RateLimitError extends GptCoreError {\n public readonly retryAfter?: number;\n\n constructor(\n message = \"Rate limit exceeded\",\n retryAfter?: number,\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 429, ...options });\n this.retryAfter = retryAfter;\n }\n}\n\n/**\n * Network/connection errors\n */\nexport class NetworkError extends GptCoreError {\n constructor(\n message = \"Network request failed\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, options);\n }\n}\n\n/**\n * Timeout errors\n */\nexport class TimeoutError extends GptCoreError {\n constructor(\n message = \"Request timeout\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, options);\n }\n}\n\n/**\n * Server errors (500+)\n */\nexport class ServerError extends GptCoreError {\n constructor(\n message = \"Internal server error\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 500, ...options });\n }\n}\n\n/**\n * Parse error response and throw appropriate error class\n */\nexport function handleApiError(error: unknown): never {\n const err = error as Record<string, unknown>;\n\n // Extract error details from response - handle generated client structure\n const response = (err?.response || err) as Record<string, unknown>;\n const statusCode = (response?.status || err?.status || err?.statusCode) as\n | number\n | undefined;\n const headers = (response?.headers || err?.headers) as\n | Headers\n | Record<string, string>\n | null\n | undefined;\n const requestId = ((headers as Headers)?.get?.(\"x-request-id\") ||\n (headers as Record<string, string>)?.[\"x-request-id\"]) as\n | string\n | undefined;\n\n // The body might be in different locations depending on the error structure\n const body = (response?.body ||\n response?.data ||\n err?.body ||\n err?.data ||\n err) as Record<string, unknown> | string | undefined;\n\n // Try to extract error message from JSON:API error format\n let message = \"An error occurred\";\n let errors: Array<{ field?: string; message: string }> | undefined;\n\n const bodyObj = body as Record<string, unknown> | undefined;\n if (bodyObj?.errors && Array.isArray(bodyObj.errors)) {\n // JSON:API error format\n const firstError = bodyObj.errors[0] as\n | { title?: string; detail?: string }\n | undefined;\n message = firstError?.title || firstError?.detail || message;\n errors = (\n bodyObj.errors as Array<{\n source?: { pointer?: string };\n detail?: string;\n title?: string;\n }>\n ).map((e) => ({\n field: e.source?.pointer?.split(\"/\").pop(),\n message: e.detail || e.title || \"Unknown error\",\n }));\n } else if (bodyObj?.message) {\n message = bodyObj.message as string;\n } else if (typeof body === \"string\") {\n message = body;\n } else if (err?.message) {\n message = err.message as string;\n }\n\n // Security: Filter sensitive headers to prevent information disclosure\n const sensitiveHeaderPatterns = [\n \"set-cookie\",\n \"authorization\",\n \"x-application-key\",\n \"cookie\",\n \"x-forwarded-for\",\n \"x-real-ip\",\n ];\n\n const filterSensitiveHeaders = (\n hdrs: Headers | Record<string, string> | null | undefined,\n ): Record<string, string> | undefined => {\n if (!hdrs) return undefined;\n\n const entries: [string, string][] =\n hdrs instanceof Headers\n ? Array.from(hdrs.entries())\n : Object.entries(hdrs);\n\n const filtered = entries.filter(([key]) => {\n const lowerKey = key.toLowerCase();\n return !sensitiveHeaderPatterns.some((pattern) =>\n lowerKey.includes(pattern),\n );\n });\n\n return filtered.length > 0 ? Object.fromEntries(filtered) : undefined;\n };\n\n const errorOptions = {\n statusCode,\n requestId,\n headers: filterSensitiveHeaders(headers),\n body,\n cause: error instanceof Error ? error : undefined,\n };\n\n // Throw appropriate error based on status code\n switch (statusCode) {\n case 401:\n throw new AuthenticationError(message, errorOptions);\n case 403:\n throw new AuthorizationError(message, errorOptions);\n case 404:\n throw new NotFoundError(message, errorOptions);\n case 400:\n case 422:\n throw new ValidationError(message, errors, errorOptions);\n case 429: {\n const retryAfter =\n (headers as Headers)?.get?.(\"retry-after\") ||\n (headers as Record<string, string>)?.[\"retry-after\"];\n throw new RateLimitError(\n message,\n retryAfter ? parseInt(retryAfter, 10) : undefined,\n errorOptions,\n );\n }\n case 500:\n case 502:\n case 503:\n case 504:\n throw new ServerError(message, errorOptions);\n default:\n if (statusCode && statusCode >= 400) {\n throw new GptCoreError(message, errorOptions);\n }\n // Network/connection errors\n throw new NetworkError(message, errorOptions);\n }\n}\n","import { GptCoreError, TimeoutError } from \"./errors\";\n\n/**\n * Security defaults for streaming\n */\nconst DEFAULT_STREAM_TIMEOUT = 300000; // 5 minutes\nconst DEFAULT_MAX_CHUNKS = 10000;\nconst DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024; // 10MB\n\n/**\n * Options for streaming requests\n */\nexport interface StreamOptions {\n signal?: AbortSignal;\n onError?: (error: Error) => void;\n timeout?: number;\n maxChunks?: number;\n maxBufferSize?: number;\n}\n\n/**\n * Chunk shape from execution SSE stream\n */\nexport interface StreamMessageChunk {\n type: \"content\" | \"done\" | \"error\";\n content?: string;\n error?: string;\n metadata?: Record<string, unknown>;\n}\n\n/**\n * Parse Server-Sent Events (SSE) stream into typed chunks.\n * Security: Enforces timeout, chunk count, and buffer size limits.\n */\nexport async function* streamSSE<T = unknown>(\n response: Response,\n options: StreamOptions = {},\n): AsyncIterableIterator<T> {\n if (!response.body) {\n throw new GptCoreError(\"Response body is null\", { code: \"stream_error\" });\n }\n\n const reader = response.body.getReader();\n const decoder = new TextDecoder();\n let buffer = \"\";\n\n const timeout = options.timeout ?? DEFAULT_STREAM_TIMEOUT;\n const maxChunks = options.maxChunks ?? DEFAULT_MAX_CHUNKS;\n const maxBufferSize = options.maxBufferSize ?? DEFAULT_MAX_BUFFER_SIZE;\n\n const startTime = Date.now();\n let chunkCount = 0;\n let bufferSize = 0;\n\n try {\n while (true) {\n const elapsed = Date.now() - startTime;\n if (elapsed > timeout) {\n reader.cancel();\n throw new TimeoutError(\n `Stream timeout exceeded after ${elapsed}ms (limit: ${timeout}ms)`,\n );\n }\n\n if (chunkCount >= maxChunks) {\n reader.cancel();\n throw new GptCoreError(`Maximum chunk limit exceeded (${maxChunks})`, {\n code: \"stream_limit_exceeded\",\n });\n }\n\n const { done, value } = await reader.read();\n\n if (done) break;\n\n if (options.signal?.aborted) {\n reader.cancel();\n throw new Error(\"Stream aborted\");\n }\n\n bufferSize += value.length;\n if (bufferSize > maxBufferSize) {\n reader.cancel();\n throw new GptCoreError(\n `Stream buffer size exceeded (${bufferSize} bytes, limit: ${maxBufferSize})`,\n { code: \"stream_limit_exceeded\" },\n );\n }\n\n buffer += decoder.decode(value, { stream: true });\n const lines = buffer.split(\"\\n\");\n buffer = lines.pop() || \"\";\n\n for (const line of lines) {\n if (line.startsWith(\"data: \")) {\n const data = line.slice(6);\n if (data === \"[DONE]\" || data.trim() === \"\") continue;\n\n chunkCount++;\n\n try {\n yield JSON.parse(data) as T;\n } catch {\n yield {\n type: \"error\",\n error: `Malformed SSE data: ${data.substring(0, 200)}`,\n } as T;\n }\n }\n }\n }\n } catch (error) {\n if (options.onError) options.onError(error as Error);\n throw error;\n } finally {\n reader.releaseLock();\n }\n}\n\n/**\n * Parse streaming message response — stops on \"done\" or \"error\" chunk.\n */\nexport async function* streamMessage(\n response: Response,\n options: StreamOptions = {},\n): AsyncIterableIterator<StreamMessageChunk> {\n for await (const chunk of streamSSE<StreamMessageChunk>(response, options)) {\n yield chunk;\n if (chunk.type === \"done\" || chunk.type === \"error\") break;\n }\n}\n","import type { Client } from \"./_internal/client/index\";\nimport type { RequestOptions } from \"./base-client\";\nimport { handleApiError, ServerError, GptCoreError } from \"./errors\";\nimport {\n streamMessage,\n type StreamMessageChunk,\n type StreamOptions,\n} from \"./streaming\";\nimport type { PaginatedResponse, PaginationLinks } from \"./pagination\";\n\n/**\n * Shape of API response envelope (from openapi-ts generated client)\n */\ninterface ApiResponseEnvelope {\n data?: unknown;\n links?: PaginationLinks;\n [key: string]: unknown;\n}\n\n/**\n * Shape of stream response from client.post with parseAs: 'stream'\n */\ninterface StreamResponseEnvelope {\n data?: ReadableStream | Response;\n response?: Response;\n [key: string]: unknown;\n}\n\n/**\n * Build headers for SDK requests.\n * Merges base headers with per-request overrides and idempotency keys.\n */\nexport function buildHeaders(\n getHeaders: () => Record<string, string>,\n options?: RequestOptions,\n): Record<string, string> {\n const headers: Record<string, string> = { ...getHeaders() };\n if (options?.headers) {\n Object.assign(headers, options.headers);\n }\n if (options?.idempotencyKey) {\n headers[\"Idempotency-Key\"] = options.idempotencyKey;\n }\n return headers;\n}\n\n/**\n * RequestBuilder provides a type-safe way to execute SDK requests\n * with consistent header merging, error handling, retry, and unwrapping.\n */\nexport class RequestBuilder {\n constructor(\n private clientInstance: Client,\n private getHeaders: () => Record<string, string>,\n private unwrap: <T>(d: unknown) => T,\n private requestWithRetry: <T>(fn: () => Promise<T>) => Promise<T>,\n ) {}\n\n /** Get auth headers for manual requests (used by streaming extensions) */\n getRequestHeaders(): Record<string, string> {\n return this.getHeaders();\n }\n\n /**\n * Execute a generated SDK function with full middleware pipeline.\n * Handles headers, retry, unwrapping, and error conversion.\n */\n async execute<TResponse>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: (...args: any[]) => Promise<any>,\n params: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<TResponse> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n const { data } = await this.requestWithRetry(() =>\n fn({\n client: this.clientInstance,\n headers,\n ...params,\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return this.unwrap<TResponse>((data as Record<string, unknown>)?.data);\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Execute a delete operation that returns true on success.\n */\n async executeDelete(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: (...args: any[]) => Promise<any>,\n params: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<true> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n await this.requestWithRetry(() =>\n fn({\n client: this.clientInstance,\n headers,\n ...params,\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return true;\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Execute a raw GET request to a custom (non-generated) endpoint.\n * Used for endpoints implemented as custom Phoenix controllers.\n */\n async rawGet<TResponse>(\n url: string,\n options?: RequestOptions,\n ): Promise<TResponse> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n const { data } = await this.requestWithRetry(() =>\n this.clientInstance.get({\n url,\n headers,\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return this.unwrap<TResponse>((data as Record<string, unknown>)?.data);\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Execute a raw POST request to a custom (non-generated) endpoint.\n * Used for endpoints implemented as custom Phoenix controllers.\n */\n async rawPost<TResponse>(\n url: string,\n body?: unknown,\n options?: RequestOptions,\n ): Promise<TResponse> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n const { data } = await this.requestWithRetry(() =>\n this.clientInstance.post({\n url,\n headers,\n ...(body !== undefined && { body: JSON.stringify(body) }),\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return this.unwrap<TResponse>((data as Record<string, unknown>)?.data);\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Create a paginated fetcher function for listAll operations.\n * Encapsulates the pattern of calling a generated SDK function with pagination params.\n *\n * @param fn - The generated SDK function (e.g., getAgents)\n * @param queryBuilder - Function that builds the query object with page params\n * @param options - Request options (headers, signal, etc.)\n * @returns A fetcher function for use with paginateToArray\n */\n createPaginatedFetcher<T>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: (...args: any[]) => Promise<any>,\n queryBuilder: (page: number, pageSize: number) => Record<string, unknown>,\n options?: RequestOptions,\n ): (page: number, pageSize: number) => Promise<PaginatedResponse<T>> {\n return async (\n page: number,\n pageSize: number,\n ): Promise<PaginatedResponse<T>> => {\n const headers = buildHeaders(this.getHeaders, options);\n const { data } = await this.requestWithRetry(() =>\n fn({\n client: this.clientInstance,\n headers,\n ...(options?.signal && { signal: options.signal }),\n ...queryBuilder(page, pageSize),\n }),\n );\n const envelope = data as ApiResponseEnvelope;\n const items = this.unwrap<T[]>(envelope.data) || [];\n return { data: items, links: envelope.links };\n };\n }\n\n /**\n * Make a streaming POST request through the client instance,\n * ensuring all interceptors (auth, events, API version, etc.) fire.\n *\n * Uses the client's `post()` method with `parseAs: 'stream'` so the\n * request/response interceptors execute, then wraps the stream body\n * into an SSE message iterator.\n */\n async streamRequest(\n url: string,\n body: unknown,\n options?: RequestOptions,\n streamOptions?: StreamOptions,\n ): Promise<AsyncIterableIterator<StreamMessageChunk>> {\n const headers = buildHeaders(this.getHeaders, options);\n // Override Accept for SSE streaming\n headers[\"Accept\"] = \"text/event-stream\";\n\n const result = await this.clientInstance.post({\n url,\n headers,\n body: JSON.stringify({ data: { type: \"message\", attributes: body } }),\n parseAs: \"stream\",\n ...(options?.signal && { signal: options.signal }),\n });\n\n // The result shape with default responseStyle 'fields' is { data, response }\n const envelope = result as StreamResponseEnvelope;\n const streamBody = envelope.data ?? result;\n const response = envelope.response;\n\n // If we got a response object, check status\n if (response && !response.ok) {\n throw new ServerError(`Stream request failed: ${response.status}`, {\n statusCode: response.status,\n });\n }\n\n // If the result is a ReadableStream, wrap it in a Response for streamMessage\n if (streamBody instanceof ReadableStream) {\n const syntheticResponse = new Response(streamBody, {\n headers: { \"Content-Type\": \"text/event-stream\" },\n });\n return streamMessage(syntheticResponse, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n // If we somehow got a Response back directly\n if (streamBody instanceof Response) {\n if (!streamBody.ok) {\n throw new ServerError(`Stream request failed: ${streamBody.status}`, {\n statusCode: streamBody.status,\n });\n }\n return streamMessage(streamBody, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n throw new GptCoreError(\"Unexpected stream response format\", {\n code: \"stream_error\",\n });\n }\n\n /**\n * Make a streaming GET request through the client instance.\n * Used for subscribing to SSE event streams (e.g., execution streaming).\n */\n async streamGetRequest(\n url: string,\n options?: RequestOptions,\n streamOptions?: StreamOptions,\n ): Promise<AsyncIterableIterator<StreamMessageChunk>> {\n const headers = buildHeaders(this.getHeaders, options);\n headers[\"Accept\"] = \"text/event-stream\";\n\n const result = await this.clientInstance.get({\n url,\n headers,\n parseAs: \"stream\",\n ...(options?.signal && { signal: options.signal }),\n });\n\n const envelope = result as StreamResponseEnvelope;\n const streamBody = envelope.data ?? result;\n const response = envelope.response;\n\n if (response && !response.ok) {\n throw new ServerError(`Stream request failed: ${response.status}`, {\n statusCode: response.status,\n });\n }\n\n if (streamBody instanceof ReadableStream) {\n const syntheticResponse = new Response(streamBody, {\n headers: { \"Content-Type\": \"text/event-stream\" },\n });\n return streamMessage(syntheticResponse, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n if (streamBody instanceof Response) {\n if (!streamBody.ok) {\n throw new ServerError(`Stream request failed: ${streamBody.status}`, {\n statusCode: streamBody.status,\n });\n }\n return streamMessage(streamBody, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n throw new GptCoreError(\"Unexpected stream response format\", {\n code: \"stream_error\",\n });\n }\n}\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport {\n type ClientOptions,\n type Config,\n createClient,\n createConfig,\n} from \"./client/index.js\";\nimport type { ClientOptions as ClientOptions2 } from \"./types.gen.js\";\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (\n override?: Config<ClientOptions & T>,\n) => Config<Required<ClientOptions> & T>;\n\nexport const client = createClient(\n createConfig<ClientOptions2>({ baseUrl: \"http://localhost:33333\" }),\n);\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { client } from \"./client.gen.js\";\nimport type {\n Client,\n Options as Options2,\n TDataShape,\n} from \"./client/index.js\";\nimport type {\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdData,\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdErrors,\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdResponses,\n DeleteAdminAgentVersionsByIdData,\n DeleteAdminAgentVersionsByIdErrors,\n DeleteAdminAgentVersionsByIdResponses,\n DeleteAdminAiConversationsByIdData,\n DeleteAdminAiConversationsByIdErrors,\n DeleteAdminAiConversationsByIdResponses,\n DeleteAdminAiGraphNodesByIdData,\n DeleteAdminAiGraphNodesByIdErrors,\n DeleteAdminAiGraphNodesByIdResponses,\n DeleteAdminAiMessagesByIdData,\n DeleteAdminAiMessagesByIdErrors,\n DeleteAdminAiMessagesByIdResponses,\n DeleteAdminApiKeysByIdData,\n DeleteAdminApiKeysByIdErrors,\n DeleteAdminApiKeysByIdResponses,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n DeleteAdminApplicationsByIdData,\n DeleteAdminApplicationsByIdErrors,\n DeleteAdminApplicationsByIdResponses,\n DeleteAdminBucketsByIdData,\n DeleteAdminBucketsByIdErrors,\n DeleteAdminBucketsByIdResponses,\n DeleteAdminCatalogOptionTypesByIdData,\n DeleteAdminCatalogOptionTypesByIdErrors,\n DeleteAdminCatalogOptionTypesByIdResponses,\n DeleteAdminCatalogOptionValuesByIdData,\n DeleteAdminCatalogOptionValuesByIdErrors,\n DeleteAdminCatalogOptionValuesByIdResponses,\n DeleteAdminCatalogPriceListEntriesByIdData,\n DeleteAdminCatalogPriceListEntriesByIdErrors,\n DeleteAdminCatalogPriceListEntriesByIdResponses,\n DeleteAdminCatalogPriceListsByIdData,\n DeleteAdminCatalogPriceListsByIdErrors,\n DeleteAdminCatalogPriceListsByIdResponses,\n DeleteAdminCatalogProductClassificationsByIdData,\n DeleteAdminCatalogProductClassificationsByIdErrors,\n DeleteAdminCatalogProductClassificationsByIdResponses,\n DeleteAdminCatalogProductsByIdData,\n DeleteAdminCatalogProductsByIdErrors,\n DeleteAdminCatalogProductsByIdResponses,\n DeleteAdminCatalogProductVariantsByIdData,\n DeleteAdminCatalogProductVariantsByIdErrors,\n DeleteAdminCatalogProductVariantsByIdResponses,\n DeleteAdminCatalogTaxonomiesByIdData,\n DeleteAdminCatalogTaxonomiesByIdErrors,\n DeleteAdminCatalogTaxonomiesByIdResponses,\n DeleteAdminCatalogTaxonomyNodesByIdData,\n DeleteAdminCatalogTaxonomyNodesByIdErrors,\n DeleteAdminCatalogTaxonomyNodesByIdResponses,\n DeleteAdminCatalogVariantOptionValuesByIdData,\n DeleteAdminCatalogVariantOptionValuesByIdErrors,\n DeleteAdminCatalogVariantOptionValuesByIdResponses,\n DeleteAdminCatalogViewOverridesByIdData,\n DeleteAdminCatalogViewOverridesByIdErrors,\n DeleteAdminCatalogViewOverridesByIdResponses,\n DeleteAdminCatalogViewRulesByIdData,\n DeleteAdminCatalogViewRulesByIdErrors,\n DeleteAdminCatalogViewRulesByIdResponses,\n DeleteAdminCatalogViewsByIdData,\n DeleteAdminCatalogViewsByIdErrors,\n DeleteAdminCatalogViewsByIdResponses,\n DeleteAdminConnectorsByIdData,\n DeleteAdminConnectorsByIdErrors,\n DeleteAdminConnectorsByIdResponses,\n DeleteAdminCrawlerJobsByIdData,\n DeleteAdminCrawlerJobsByIdErrors,\n DeleteAdminCrawlerJobsByIdResponses,\n DeleteAdminCrawlerSchedulesByIdData,\n DeleteAdminCrawlerSchedulesByIdErrors,\n DeleteAdminCrawlerSchedulesByIdResponses,\n DeleteAdminCrawlerSiteConfigsByIdData,\n DeleteAdminCrawlerSiteConfigsByIdErrors,\n DeleteAdminCrawlerSiteConfigsByIdResponses,\n DeleteAdminCreditPackagesByIdData,\n DeleteAdminCreditPackagesByIdErrors,\n DeleteAdminCreditPackagesByIdResponses,\n DeleteAdminCrmActivitiesByIdData,\n DeleteAdminCrmActivitiesByIdErrors,\n DeleteAdminCrmActivitiesByIdResponses,\n DeleteAdminCrmCompaniesByIdData,\n DeleteAdminCrmCompaniesByIdErrors,\n DeleteAdminCrmCompaniesByIdResponses,\n DeleteAdminCrmContactsByIdData,\n DeleteAdminCrmContactsByIdErrors,\n DeleteAdminCrmContactsByIdResponses,\n DeleteAdminCrmCustomEntitiesByIdData,\n DeleteAdminCrmCustomEntitiesByIdErrors,\n DeleteAdminCrmCustomEntitiesByIdResponses,\n DeleteAdminCrmDealProductsByIdData,\n DeleteAdminCrmDealProductsByIdErrors,\n DeleteAdminCrmDealProductsByIdResponses,\n DeleteAdminCrmDealsByIdData,\n DeleteAdminCrmDealsByIdErrors,\n DeleteAdminCrmDealsByIdResponses,\n DeleteAdminCrmPipelinesByIdData,\n DeleteAdminCrmPipelinesByIdErrors,\n DeleteAdminCrmPipelinesByIdResponses,\n DeleteAdminCrmPipelineStagesByIdData,\n DeleteAdminCrmPipelineStagesByIdErrors,\n DeleteAdminCrmPipelineStagesByIdResponses,\n DeleteAdminCrmRelationshipsByIdData,\n DeleteAdminCrmRelationshipsByIdErrors,\n DeleteAdminCrmRelationshipsByIdResponses,\n DeleteAdminCrmRelationshipTypesByIdData,\n DeleteAdminCrmRelationshipTypesByIdErrors,\n DeleteAdminCrmRelationshipTypesByIdResponses,\n DeleteAdminCustomersByIdData,\n DeleteAdminCustomersByIdErrors,\n DeleteAdminCustomersByIdResponses,\n DeleteAdminEmailMarketingCampaignsByIdData,\n DeleteAdminEmailMarketingCampaignsByIdErrors,\n DeleteAdminEmailMarketingCampaignsByIdResponses,\n DeleteAdminEmailMarketingSenderProfilesByIdData,\n DeleteAdminEmailMarketingSenderProfilesByIdErrors,\n DeleteAdminEmailMarketingSenderProfilesByIdResponses,\n DeleteAdminEmailMarketingSequencesByIdData,\n DeleteAdminEmailMarketingSequencesByIdErrors,\n DeleteAdminEmailMarketingSequencesByIdResponses,\n DeleteAdminEmailMarketingSequenceStepsByIdData,\n DeleteAdminEmailMarketingSequenceStepsByIdErrors,\n DeleteAdminEmailMarketingSequenceStepsByIdResponses,\n DeleteAdminEmailMarketingTemplatesByIdData,\n DeleteAdminEmailMarketingTemplatesByIdErrors,\n DeleteAdminEmailMarketingTemplatesByIdResponses,\n DeleteAdminExtractionBatchesByIdData,\n DeleteAdminExtractionBatchesByIdErrors,\n DeleteAdminExtractionBatchesByIdResponses,\n DeleteAdminExtractionDocumentsByIdData,\n DeleteAdminExtractionDocumentsByIdErrors,\n DeleteAdminExtractionDocumentsByIdResponses,\n DeleteAdminExtractionResultsByIdData,\n DeleteAdminExtractionResultsByIdErrors,\n DeleteAdminExtractionResultsByIdResponses,\n DeleteAdminExtractionWorkflowsByIdData,\n DeleteAdminExtractionWorkflowsByIdErrors,\n DeleteAdminExtractionWorkflowsByIdResponses,\n DeleteAdminFieldTemplatesByIdData,\n DeleteAdminFieldTemplatesByIdErrors,\n DeleteAdminFieldTemplatesByIdResponses,\n DeleteAdminIsvCrmEntityTypesByIdData,\n DeleteAdminIsvCrmEntityTypesByIdErrors,\n DeleteAdminIsvCrmEntityTypesByIdResponses,\n DeleteAdminIsvCrmFieldDefinitionsByIdData,\n DeleteAdminIsvCrmFieldDefinitionsByIdErrors,\n DeleteAdminIsvCrmFieldDefinitionsByIdResponses,\n DeleteAdminIsvCrmSyncConfigsByIdData,\n DeleteAdminIsvCrmSyncConfigsByIdErrors,\n DeleteAdminIsvCrmSyncConfigsByIdResponses,\n DeleteAdminLegalDocumentsByIdData,\n DeleteAdminLegalDocumentsByIdErrors,\n DeleteAdminLegalDocumentsByIdResponses,\n DeleteAdminMessagesByIdData,\n DeleteAdminMessagesByIdErrors,\n DeleteAdminMessagesByIdResponses,\n DeleteAdminNotificationMethodsByIdData,\n DeleteAdminNotificationMethodsByIdErrors,\n DeleteAdminNotificationMethodsByIdResponses,\n DeleteAdminNotificationPreferencesByIdData,\n DeleteAdminNotificationPreferencesByIdErrors,\n DeleteAdminNotificationPreferencesByIdResponses,\n DeleteAdminPaymentMethodsByIdData,\n DeleteAdminPaymentMethodsByIdErrors,\n DeleteAdminPaymentMethodsByIdResponses,\n DeleteAdminPlansByIdData,\n DeleteAdminPlansByIdErrors,\n DeleteAdminPlansByIdResponses,\n DeleteAdminPlatformPricingConfigsByIdData,\n DeleteAdminPlatformPricingConfigsByIdErrors,\n DeleteAdminPlatformPricingConfigsByIdResponses,\n DeleteAdminPostProcessingHooksByIdData,\n DeleteAdminPostProcessingHooksByIdErrors,\n DeleteAdminPostProcessingHooksByIdResponses,\n DeleteAdminProcessingActivitiesByIdData,\n DeleteAdminProcessingActivitiesByIdErrors,\n DeleteAdminProcessingActivitiesByIdResponses,\n DeleteAdminRetentionPoliciesByIdData,\n DeleteAdminRetentionPoliciesByIdErrors,\n DeleteAdminRetentionPoliciesByIdResponses,\n DeleteAdminRolesByIdData,\n DeleteAdminRolesByIdErrors,\n DeleteAdminRolesByIdResponses,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n DeleteAdminSearchSavedByIdData,\n DeleteAdminSearchSavedByIdErrors,\n DeleteAdminSearchSavedByIdResponses,\n DeleteAdminSubscriptionsByIdData,\n DeleteAdminSubscriptionsByIdErrors,\n DeleteAdminSubscriptionsByIdResponses,\n DeleteAdminSystemMessagesByIdData,\n DeleteAdminSystemMessagesByIdErrors,\n DeleteAdminSystemMessagesByIdResponses,\n DeleteAdminTenantMembershipsByTenantIdByUserIdData,\n DeleteAdminTenantMembershipsByTenantIdByUserIdErrors,\n DeleteAdminTenantMembershipsByTenantIdByUserIdResponses,\n DeleteAdminTenantPricingOverridesByIdData,\n DeleteAdminTenantPricingOverridesByIdErrors,\n DeleteAdminTenantPricingOverridesByIdResponses,\n DeleteAdminTenantsByIdData,\n DeleteAdminTenantsByIdErrors,\n DeleteAdminTenantsByIdResponses,\n DeleteAdminThreadsByIdData,\n DeleteAdminThreadsByIdErrors,\n DeleteAdminThreadsByIdResponses,\n DeleteAdminTrainingExamplesByIdData,\n DeleteAdminTrainingExamplesByIdErrors,\n DeleteAdminTrainingExamplesByIdResponses,\n DeleteAdminTrainingSessionsByIdData,\n DeleteAdminTrainingSessionsByIdErrors,\n DeleteAdminTrainingSessionsByIdResponses,\n DeleteAdminUserProfilesByIdData,\n DeleteAdminUserProfilesByIdErrors,\n DeleteAdminUserProfilesByIdResponses,\n DeleteAdminUsersByIdData,\n DeleteAdminUsersByIdErrors,\n DeleteAdminUsersByIdResponses,\n DeleteAdminWebhookConfigsByIdData,\n DeleteAdminWebhookConfigsByIdErrors,\n DeleteAdminWebhookConfigsByIdResponses,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n DeleteAdminWorkspacesByIdData,\n DeleteAdminWorkspacesByIdErrors,\n DeleteAdminWorkspacesByIdResponses,\n GetAdminAccessLogsByIdData,\n GetAdminAccessLogsByIdErrors,\n GetAdminAccessLogsByIdResponses,\n GetAdminAccessLogsData,\n GetAdminAccessLogsErrors,\n GetAdminAccessLogsResponses,\n GetAdminAccountsByIdData,\n GetAdminAccountsByIdErrors,\n GetAdminAccountsByIdResponses,\n GetAdminAccountsByTenantByTenantIdData,\n GetAdminAccountsByTenantByTenantIdErrors,\n GetAdminAccountsByTenantByTenantIdResponses,\n GetAdminAccountsData,\n GetAdminAccountsErrors,\n GetAdminAccountsResponses,\n GetAdminAgentsByIdData,\n GetAdminAgentsByIdErrors,\n GetAdminAgentsByIdResponses,\n GetAdminAgentsByIdSchemaVersionsData,\n GetAdminAgentsByIdSchemaVersionsErrors,\n GetAdminAgentsByIdSchemaVersionsResponses,\n GetAdminAgentsByIdStatsData,\n GetAdminAgentsByIdStatsErrors,\n GetAdminAgentsByIdStatsResponses,\n GetAdminAgentsByIdTrainingExamplesData,\n GetAdminAgentsByIdTrainingExamplesErrors,\n GetAdminAgentsByIdTrainingExamplesResponses,\n GetAdminAgentsByIdTrainingStatsData,\n GetAdminAgentsByIdTrainingStatsErrors,\n GetAdminAgentsByIdTrainingStatsResponses,\n GetAdminAgentsByIdUsageData,\n GetAdminAgentsByIdUsageErrors,\n GetAdminAgentsByIdUsageResponses,\n GetAdminAgentsData,\n GetAdminAgentsErrors,\n GetAdminAgentsResponses,\n GetAdminAgentsUsageData,\n GetAdminAgentsUsageErrors,\n GetAdminAgentsUsageResponses,\n GetAdminAgentVersionRevisionsByIdData,\n GetAdminAgentVersionRevisionsByIdErrors,\n GetAdminAgentVersionRevisionsByIdResponses,\n GetAdminAgentVersionRevisionsData,\n GetAdminAgentVersionRevisionsErrors,\n GetAdminAgentVersionRevisionsResponses,\n GetAdminAgentVersionsByIdData,\n GetAdminAgentVersionsByIdErrors,\n GetAdminAgentVersionsByIdMetricsData,\n GetAdminAgentVersionsByIdMetricsErrors,\n GetAdminAgentVersionsByIdMetricsResponses,\n GetAdminAgentVersionsByIdResponses,\n GetAdminAgentVersionsByIdRevisionsData,\n GetAdminAgentVersionsByIdRevisionsErrors,\n GetAdminAgentVersionsByIdRevisionsResponses,\n GetAdminAgentVersionsData,\n GetAdminAgentVersionsErrors,\n GetAdminAgentVersionsResponses,\n GetAdminAiChunksDocumentByDocumentIdData,\n GetAdminAiChunksDocumentByDocumentIdErrors,\n GetAdminAiChunksDocumentByDocumentIdResponses,\n GetAdminAiConversationsByIdData,\n GetAdminAiConversationsByIdErrors,\n GetAdminAiConversationsByIdResponses,\n GetAdminAiConversationsData,\n GetAdminAiConversationsErrors,\n GetAdminAiConversationsResponses,\n GetAdminAiGraphNodesData,\n GetAdminAiGraphNodesErrors,\n GetAdminAiGraphNodesLabelByLabelData,\n GetAdminAiGraphNodesLabelByLabelErrors,\n GetAdminAiGraphNodesLabelByLabelResponses,\n GetAdminAiGraphNodesResponses,\n GetAdminAiMessagesData,\n GetAdminAiMessagesErrors,\n GetAdminAiMessagesResponses,\n GetAdminApiKeysActiveData,\n GetAdminApiKeysActiveErrors,\n GetAdminApiKeysActiveResponses,\n GetAdminApiKeysByIdData,\n GetAdminApiKeysByIdErrors,\n GetAdminApiKeysByIdResponses,\n GetAdminApiKeysData,\n GetAdminApiKeysErrors,\n GetAdminApiKeysResponses,\n GetAdminApiKeysStatsData,\n GetAdminApiKeysStatsErrors,\n GetAdminApiKeysStatsResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesData,\n GetAdminApplicationsByApplicationIdEmailTemplatesErrors,\n GetAdminApplicationsByApplicationIdEmailTemplatesResponses,\n GetAdminApplicationsByIdData,\n GetAdminApplicationsByIdErrors,\n GetAdminApplicationsByIdResponses,\n GetAdminApplicationsBySlugBySlugData,\n GetAdminApplicationsBySlugBySlugErrors,\n GetAdminApplicationsBySlugBySlugResponses,\n GetAdminApplicationsCurrentData,\n GetAdminApplicationsCurrentErrors,\n GetAdminApplicationsCurrentResponses,\n GetAdminApplicationsData,\n GetAdminApplicationsErrors,\n GetAdminApplicationsResponses,\n GetAdminAuditChainEntriesByIdData,\n GetAdminAuditChainEntriesByIdErrors,\n GetAdminAuditChainEntriesByIdResponses,\n GetAdminAuditChainEntriesData,\n GetAdminAuditChainEntriesErrors,\n GetAdminAuditChainEntriesResponses,\n GetAdminAuditLogsActivityData,\n GetAdminAuditLogsActivityErrors,\n GetAdminAuditLogsActivityResponses,\n GetAdminAuditLogsData,\n GetAdminAuditLogsErrors,\n GetAdminAuditLogsResponses,\n GetAdminBalancesByIdData,\n GetAdminBalancesByIdErrors,\n GetAdminBalancesByIdResponses,\n GetAdminBalancesData,\n GetAdminBalancesErrors,\n GetAdminBalancesResponses,\n GetAdminBreachIncidentsByIdData,\n GetAdminBreachIncidentsByIdErrors,\n GetAdminBreachIncidentsByIdResponses,\n GetAdminBreachIncidentsData,\n GetAdminBreachIncidentsErrors,\n GetAdminBreachIncidentsResponses,\n GetAdminBreachNotificationsByIdData,\n GetAdminBreachNotificationsByIdErrors,\n GetAdminBreachNotificationsByIdResponses,\n GetAdminBreachNotificationsData,\n GetAdminBreachNotificationsErrors,\n GetAdminBreachNotificationsResponses,\n GetAdminBucketsAllData,\n GetAdminBucketsAllErrors,\n GetAdminBucketsAllResponses,\n GetAdminBucketsByIdData,\n GetAdminBucketsByIdErrors,\n GetAdminBucketsByIdResponses,\n GetAdminBucketsByIdStatsData,\n GetAdminBucketsByIdStatsErrors,\n GetAdminBucketsByIdStatsResponses,\n GetAdminBucketsData,\n GetAdminBucketsErrors,\n GetAdminBucketsResponses,\n GetAdminCatalogClassificationSuggestionsByIdData,\n GetAdminCatalogClassificationSuggestionsByIdErrors,\n GetAdminCatalogClassificationSuggestionsByIdResponses,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingData,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingErrors,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingResponses,\n GetAdminCatalogOptionTypesApplicationByApplicationIdData,\n GetAdminCatalogOptionTypesApplicationByApplicationIdErrors,\n GetAdminCatalogOptionTypesApplicationByApplicationIdResponses,\n GetAdminCatalogOptionTypesByIdData,\n GetAdminCatalogOptionTypesByIdErrors,\n GetAdminCatalogOptionTypesByIdResponses,\n GetAdminCatalogOptionValuesByIdData,\n GetAdminCatalogOptionValuesByIdErrors,\n GetAdminCatalogOptionValuesByIdResponses,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdData,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdErrors,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdResponses,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdData,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdErrors,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdResponses,\n GetAdminCatalogPriceListsApplicationByApplicationIdData,\n GetAdminCatalogPriceListsApplicationByApplicationIdErrors,\n GetAdminCatalogPriceListsApplicationByApplicationIdResponses,\n GetAdminCatalogPriceListsByIdData,\n GetAdminCatalogPriceListsByIdErrors,\n GetAdminCatalogPriceListsByIdResponses,\n GetAdminCatalogPriceSuggestionsByIdData,\n GetAdminCatalogPriceSuggestionsByIdErrors,\n GetAdminCatalogPriceSuggestionsByIdResponses,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdData,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogProductsByIdData,\n GetAdminCatalogProductsByIdErrors,\n GetAdminCatalogProductsByIdResponses,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdData,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogProductVariantsByIdData,\n GetAdminCatalogProductVariantsByIdErrors,\n GetAdminCatalogProductVariantsByIdResponses,\n GetAdminCatalogProductVariantsProductByProductIdData,\n GetAdminCatalogProductVariantsProductByProductIdErrors,\n GetAdminCatalogProductVariantsProductByProductIdResponses,\n GetAdminCatalogStockLocationsByIdData,\n GetAdminCatalogStockLocationsByIdErrors,\n GetAdminCatalogStockLocationsByIdResponses,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdData,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogStockMovementsByIdData,\n GetAdminCatalogStockMovementsByIdErrors,\n GetAdminCatalogStockMovementsByIdResponses,\n GetAdminCatalogStockMovementsTransactionByTransactionIdData,\n GetAdminCatalogStockMovementsTransactionByTransactionIdErrors,\n GetAdminCatalogStockMovementsTransactionByTransactionIdResponses,\n GetAdminCatalogStockRecordsByIdData,\n GetAdminCatalogStockRecordsByIdErrors,\n GetAdminCatalogStockRecordsByIdResponses,\n GetAdminCatalogStockRecordsLocationByStockLocationIdData,\n GetAdminCatalogStockRecordsLocationByStockLocationIdErrors,\n GetAdminCatalogStockRecordsLocationByStockLocationIdResponses,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdData,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdErrors,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdResponses,\n GetAdminCatalogTaxonomiesByIdData,\n GetAdminCatalogTaxonomiesByIdErrors,\n GetAdminCatalogTaxonomiesByIdResponses,\n GetAdminCatalogTaxonomyNodesByIdData,\n GetAdminCatalogTaxonomyNodesByIdErrors,\n GetAdminCatalogTaxonomyNodesByIdResponses,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdData,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdErrors,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdResponses,\n GetAdminCatalogViewsByIdData,\n GetAdminCatalogViewsByIdErrors,\n GetAdminCatalogViewsByIdResponses,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdData,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdResponses,\n GetAdminConfigsData,\n GetAdminConfigsErrors,\n GetAdminConfigsResponses,\n GetAdminConnectorsByIdData,\n GetAdminConnectorsByIdErrors,\n GetAdminConnectorsByIdResponses,\n GetAdminConnectorsCredentialsByIdData,\n GetAdminConnectorsCredentialsByIdErrors,\n GetAdminConnectorsCredentialsByIdResponses,\n GetAdminConnectorsCredentialsData,\n GetAdminConnectorsCredentialsErrors,\n GetAdminConnectorsCredentialsResponses,\n GetAdminConnectorsData,\n GetAdminConnectorsErrors,\n GetAdminConnectorsResponses,\n GetAdminConsentRecordsActiveData,\n GetAdminConsentRecordsActiveErrors,\n GetAdminConsentRecordsActiveResponses,\n GetAdminConsentRecordsByIdData,\n GetAdminConsentRecordsByIdErrors,\n GetAdminConsentRecordsByIdResponses,\n GetAdminConsentRecordsData,\n GetAdminConsentRecordsErrors,\n GetAdminConsentRecordsResponses,\n GetAdminCrawlerJobsByIdData,\n GetAdminCrawlerJobsByIdErrors,\n GetAdminCrawlerJobsByIdResponses,\n GetAdminCrawlerJobsData,\n GetAdminCrawlerJobsErrors,\n GetAdminCrawlerJobsResponses,\n GetAdminCrawlerResultsByIdData,\n GetAdminCrawlerResultsByIdErrors,\n GetAdminCrawlerResultsByIdResponses,\n GetAdminCrawlerResultsData,\n GetAdminCrawlerResultsErrors,\n GetAdminCrawlerResultsResponses,\n GetAdminCrawlerSchedulesByIdData,\n GetAdminCrawlerSchedulesByIdErrors,\n GetAdminCrawlerSchedulesByIdResponses,\n GetAdminCrawlerSchedulesData,\n GetAdminCrawlerSchedulesErrors,\n GetAdminCrawlerSchedulesResponses,\n GetAdminCrawlerSiteConfigsByIdData,\n GetAdminCrawlerSiteConfigsByIdErrors,\n GetAdminCrawlerSiteConfigsByIdResponses,\n GetAdminCrawlerSiteConfigsData,\n GetAdminCrawlerSiteConfigsErrors,\n GetAdminCrawlerSiteConfigsResponses,\n GetAdminCreditPackagesByIdData,\n GetAdminCreditPackagesByIdErrors,\n GetAdminCreditPackagesByIdResponses,\n GetAdminCreditPackagesData,\n GetAdminCreditPackagesErrors,\n GetAdminCreditPackagesResponses,\n GetAdminCreditPackagesSlugBySlugData,\n GetAdminCreditPackagesSlugBySlugErrors,\n GetAdminCreditPackagesSlugBySlugResponses,\n GetAdminCrmActivitiesByIdData,\n GetAdminCrmActivitiesByIdErrors,\n GetAdminCrmActivitiesByIdResponses,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdData,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCompaniesByIdData,\n GetAdminCrmCompaniesByIdErrors,\n GetAdminCrmCompaniesByIdResponses,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdData,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmContactsByIdData,\n GetAdminCrmContactsByIdErrors,\n GetAdminCrmContactsByIdResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedData,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedErrors,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdData,\n GetAdminCrmContactsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmContactsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdData,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdErrors,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsData,\n GetAdminCrmCustomEntitiesByEntityIdVersionsErrors,\n GetAdminCrmCustomEntitiesByEntityIdVersionsResponses,\n GetAdminCrmCustomEntitiesByIdData,\n GetAdminCrmCustomEntitiesByIdErrors,\n GetAdminCrmCustomEntitiesByIdResponses,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdData,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmDealProductsData,\n GetAdminCrmDealProductsErrors,\n GetAdminCrmDealProductsResponses,\n GetAdminCrmDealsByIdData,\n GetAdminCrmDealsByIdErrors,\n GetAdminCrmDealsByIdResponses,\n GetAdminCrmDealsWorkspaceByWorkspaceIdData,\n GetAdminCrmDealsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmDealsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmExportsByIdData,\n GetAdminCrmExportsByIdErrors,\n GetAdminCrmExportsByIdResponses,\n GetAdminCrmExportsWorkspaceByWorkspaceIdData,\n GetAdminCrmExportsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmExportsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmPipelinesByIdData,\n GetAdminCrmPipelinesByIdErrors,\n GetAdminCrmPipelinesByIdResponses,\n GetAdminCrmPipelineStagesByIdData,\n GetAdminCrmPipelineStagesByIdErrors,\n GetAdminCrmPipelineStagesByIdResponses,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdData,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmRelationshipsByIdData,\n GetAdminCrmRelationshipsByIdErrors,\n GetAdminCrmRelationshipsByIdResponses,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdData,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmRelationshipTypesByIdData,\n GetAdminCrmRelationshipTypesByIdErrors,\n GetAdminCrmRelationshipTypesByIdResponses,\n GetAdminCrmRelationshipTypesData,\n GetAdminCrmRelationshipTypesErrors,\n GetAdminCrmRelationshipTypesResponses,\n GetAdminCustomersByIdData,\n GetAdminCustomersByIdErrors,\n GetAdminCustomersByIdResponses,\n GetAdminDataSubjectRequestsByIdData,\n GetAdminDataSubjectRequestsByIdErrors,\n GetAdminDataSubjectRequestsByIdResponses,\n GetAdminDataSubjectRequestsData,\n GetAdminDataSubjectRequestsErrors,\n GetAdminDataSubjectRequestsResponses,\n GetAdminDocumentsStatsData,\n GetAdminDocumentsStatsErrors,\n GetAdminDocumentsStatsResponses,\n GetAdminEmailMarketingCampaignsByIdData,\n GetAdminEmailMarketingCampaignsByIdErrors,\n GetAdminEmailMarketingCampaignsByIdResponses,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingGeneratedEmailsByIdData,\n GetAdminEmailMarketingGeneratedEmailsByIdErrors,\n GetAdminEmailMarketingGeneratedEmailsByIdResponses,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdData,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdErrors,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingRecipientsByIdData,\n GetAdminEmailMarketingRecipientsByIdErrors,\n GetAdminEmailMarketingRecipientsByIdResponses,\n GetAdminEmailMarketingRecipientsCampaignByCampaignIdData,\n GetAdminEmailMarketingRecipientsCampaignByCampaignIdErrors,\n GetAdminEmailMarketingRecipientsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingSenderProfilesByIdData,\n GetAdminEmailMarketingSenderProfilesByIdErrors,\n GetAdminEmailMarketingSenderProfilesByIdResponses,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingSendLimitsByIdData,\n GetAdminEmailMarketingSendLimitsByIdErrors,\n GetAdminEmailMarketingSendLimitsByIdResponses,\n GetAdminEmailMarketingSendLimitsWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingSendLimitsWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingSendLimitsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingSequencesByIdData,\n GetAdminEmailMarketingSequencesByIdErrors,\n GetAdminEmailMarketingSequencesByIdResponses,\n GetAdminEmailMarketingSequenceStepsByIdData,\n GetAdminEmailMarketingSequenceStepsByIdErrors,\n GetAdminEmailMarketingSequenceStepsByIdResponses,\n GetAdminEmailMarketingSequenceStepsSequenceBySequenceIdData,\n GetAdminEmailMarketingSequenceStepsSequenceBySequenceIdErrors,\n GetAdminEmailMarketingSequenceStepsSequenceBySequenceIdResponses,\n GetAdminEmailMarketingSequencesWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingSequencesWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingSequencesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingTemplatesByIdData,\n GetAdminEmailMarketingTemplatesByIdErrors,\n GetAdminEmailMarketingTemplatesByIdResponses,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingTrackingEventsByIdData,\n GetAdminEmailMarketingTrackingEventsByIdErrors,\n GetAdminEmailMarketingTrackingEventsByIdResponses,\n GetAdminEmailMarketingTrackingEventsCampaignByCampaignIdData,\n GetAdminEmailMarketingTrackingEventsCampaignByCampaignIdErrors,\n GetAdminEmailMarketingTrackingEventsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingUnsubscribersByIdData,\n GetAdminEmailMarketingUnsubscribersByIdErrors,\n GetAdminEmailMarketingUnsubscribersByIdResponses,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionBatchesByIdData,\n GetAdminExtractionBatchesByIdErrors,\n GetAdminExtractionBatchesByIdResponses,\n GetAdminExtractionBatchesByIdUploadUrlsData,\n GetAdminExtractionBatchesByIdUploadUrlsErrors,\n GetAdminExtractionBatchesByIdUploadUrlsResponses,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdData,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdErrors,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionConfigEnumsByIdData,\n GetAdminExtractionConfigEnumsByIdErrors,\n GetAdminExtractionConfigEnumsByIdResponses,\n GetAdminExtractionConfigEnumsData,\n GetAdminExtractionConfigEnumsErrors,\n GetAdminExtractionConfigEnumsResponses,\n GetAdminExtractionDocumentsByIdData,\n GetAdminExtractionDocumentsByIdErrors,\n GetAdminExtractionDocumentsByIdResponses,\n GetAdminExtractionDocumentsByIdStatusData,\n GetAdminExtractionDocumentsByIdStatusErrors,\n GetAdminExtractionDocumentsByIdStatusResponses,\n GetAdminExtractionDocumentsByIdViewData,\n GetAdminExtractionDocumentsByIdViewErrors,\n GetAdminExtractionDocumentsByIdViewResponses,\n GetAdminExtractionDocumentsData,\n GetAdminExtractionDocumentsErrors,\n GetAdminExtractionDocumentsResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedResponses,\n GetAdminExtractionResultsByIdData,\n GetAdminExtractionResultsByIdErrors,\n GetAdminExtractionResultsByIdResponses,\n GetAdminExtractionResultsData,\n GetAdminExtractionResultsDocumentByDocumentIdData,\n GetAdminExtractionResultsDocumentByDocumentIdErrors,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryData,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryErrors,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryResponses,\n GetAdminExtractionResultsDocumentByDocumentIdPartialData,\n GetAdminExtractionResultsDocumentByDocumentIdPartialErrors,\n GetAdminExtractionResultsDocumentByDocumentIdPartialResponses,\n GetAdminExtractionResultsDocumentByDocumentIdResponses,\n GetAdminExtractionResultsErrors,\n GetAdminExtractionResultsResponses,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdData,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdErrors,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionSchemaDiscoveriesByIdData,\n GetAdminExtractionSchemaDiscoveriesByIdErrors,\n GetAdminExtractionSchemaDiscoveriesByIdResponses,\n GetAdminExtractionWorkflowsByIdData,\n GetAdminExtractionWorkflowsByIdErrors,\n GetAdminExtractionWorkflowsByIdResponses,\n GetAdminExtractionWorkflowsData,\n GetAdminExtractionWorkflowsErrors,\n GetAdminExtractionWorkflowsResponses,\n GetAdminFieldTemplatesByIdData,\n GetAdminFieldTemplatesByIdErrors,\n GetAdminFieldTemplatesByIdResponses,\n GetAdminFieldTemplatesData,\n GetAdminFieldTemplatesErrors,\n GetAdminFieldTemplatesResponses,\n GetAdminImpactAssessmentsByIdData,\n GetAdminImpactAssessmentsByIdErrors,\n GetAdminImpactAssessmentsByIdResponses,\n GetAdminImpactAssessmentsData,\n GetAdminImpactAssessmentsErrors,\n GetAdminImpactAssessmentsResponses,\n GetAdminInvitationsConsumeByTokenData,\n GetAdminInvitationsConsumeByTokenErrors,\n GetAdminInvitationsConsumeByTokenResponses,\n GetAdminInvitationsData,\n GetAdminInvitationsErrors,\n GetAdminInvitationsMeData,\n GetAdminInvitationsMeErrors,\n GetAdminInvitationsMeResponses,\n GetAdminInvitationsResponses,\n GetAdminIsvCrmChannelCaptureConfigByIdData,\n GetAdminIsvCrmChannelCaptureConfigByIdErrors,\n GetAdminIsvCrmChannelCaptureConfigByIdResponses,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdData,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdErrors,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdResponses,\n GetAdminIsvCrmEntityTypesByIdData,\n GetAdminIsvCrmEntityTypesByIdErrors,\n GetAdminIsvCrmEntityTypesByIdResponses,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeData,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeErrors,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeResponses,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdData,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdErrors,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdResponses,\n GetAdminIsvRevenueByIdData,\n GetAdminIsvRevenueByIdErrors,\n GetAdminIsvRevenueByIdResponses,\n GetAdminIsvRevenueData,\n GetAdminIsvRevenueErrors,\n GetAdminIsvRevenueResponses,\n GetAdminIsvSettlementsByIdData,\n GetAdminIsvSettlementsByIdErrors,\n GetAdminIsvSettlementsByIdResponses,\n GetAdminIsvSettlementsData,\n GetAdminIsvSettlementsErrors,\n GetAdminIsvSettlementsResponses,\n GetAdminLedgerByAccountByAccountIdData,\n GetAdminLedgerByAccountByAccountIdErrors,\n GetAdminLedgerByAccountByAccountIdResponses,\n GetAdminLedgerByIdData,\n GetAdminLedgerByIdErrors,\n GetAdminLedgerByIdResponses,\n GetAdminLedgerData,\n GetAdminLedgerErrors,\n GetAdminLedgerResponses,\n GetAdminLegalAcceptancesByIdData,\n GetAdminLegalAcceptancesByIdErrors,\n GetAdminLegalAcceptancesByIdResponses,\n GetAdminLegalAcceptancesData,\n GetAdminLegalAcceptancesErrors,\n GetAdminLegalAcceptancesLatestData,\n GetAdminLegalAcceptancesLatestErrors,\n GetAdminLegalAcceptancesLatestResponses,\n GetAdminLegalAcceptancesResponses,\n GetAdminLegalDocumentsByIdData,\n GetAdminLegalDocumentsByIdErrors,\n GetAdminLegalDocumentsByIdResponses,\n GetAdminLegalDocumentsByLocaleData,\n GetAdminLegalDocumentsByLocaleErrors,\n GetAdminLegalDocumentsByLocaleResponses,\n GetAdminLegalDocumentsData,\n GetAdminLegalDocumentsErrors,\n GetAdminLegalDocumentsForApplicationData,\n GetAdminLegalDocumentsForApplicationErrors,\n GetAdminLegalDocumentsForApplicationResponses,\n GetAdminLegalDocumentsResponses,\n GetAdminLlmAnalyticsByIdData,\n GetAdminLlmAnalyticsByIdErrors,\n GetAdminLlmAnalyticsByIdResponses,\n GetAdminLlmAnalyticsCostsData,\n GetAdminLlmAnalyticsCostsErrors,\n GetAdminLlmAnalyticsCostsResponses,\n GetAdminLlmAnalyticsData,\n GetAdminLlmAnalyticsErrors,\n GetAdminLlmAnalyticsPlatformData,\n GetAdminLlmAnalyticsPlatformErrors,\n GetAdminLlmAnalyticsPlatformResponses,\n GetAdminLlmAnalyticsResponses,\n GetAdminLlmAnalyticsSummaryData,\n GetAdminLlmAnalyticsSummaryErrors,\n GetAdminLlmAnalyticsSummaryResponses,\n GetAdminLlmAnalyticsUsageData,\n GetAdminLlmAnalyticsUsageErrors,\n GetAdminLlmAnalyticsUsageResponses,\n GetAdminLlmAnalyticsWorkspaceData,\n GetAdminLlmAnalyticsWorkspaceErrors,\n GetAdminLlmAnalyticsWorkspaceResponses,\n GetAdminMessagesByIdData,\n GetAdminMessagesByIdErrors,\n GetAdminMessagesByIdResponses,\n GetAdminMessagesData,\n GetAdminMessagesErrors,\n GetAdminMessagesResponses,\n GetAdminMessagesSearchData,\n GetAdminMessagesSearchErrors,\n GetAdminMessagesSearchResponses,\n GetAdminMessagesSemanticSearchData,\n GetAdminMessagesSemanticSearchErrors,\n GetAdminMessagesSemanticSearchResponses,\n GetAdminNotificationLogsByIdData,\n GetAdminNotificationLogsByIdErrors,\n GetAdminNotificationLogsByIdResponses,\n GetAdminNotificationLogsData,\n GetAdminNotificationLogsErrors,\n GetAdminNotificationLogsResponses,\n GetAdminNotificationLogsStatsData,\n GetAdminNotificationLogsStatsErrors,\n GetAdminNotificationLogsStatsResponses,\n GetAdminNotificationMethodsByIdData,\n GetAdminNotificationMethodsByIdErrors,\n GetAdminNotificationMethodsByIdResponses,\n GetAdminNotificationMethodsData,\n GetAdminNotificationMethodsErrors,\n GetAdminNotificationMethodsResponses,\n GetAdminNotificationPreferencesByIdData,\n GetAdminNotificationPreferencesByIdErrors,\n GetAdminNotificationPreferencesByIdResponses,\n GetAdminNotificationPreferencesData,\n GetAdminNotificationPreferencesErrors,\n GetAdminNotificationPreferencesResponses,\n GetAdminPaymentMethodsByIdData,\n GetAdminPaymentMethodsByIdErrors,\n GetAdminPaymentMethodsByIdResponses,\n GetAdminPaymentMethodsData,\n GetAdminPaymentMethodsErrors,\n GetAdminPaymentMethodsResponses,\n GetAdminPermissionsByIdData,\n GetAdminPermissionsByIdErrors,\n GetAdminPermissionsByIdResponses,\n GetAdminPermissionsData,\n GetAdminPermissionsErrors,\n GetAdminPermissionsMetaData,\n GetAdminPermissionsMetaErrors,\n GetAdminPermissionsMetaResponses,\n GetAdminPermissionsPresetsByIdData,\n GetAdminPermissionsPresetsByIdErrors,\n GetAdminPermissionsPresetsByIdResponses,\n GetAdminPermissionsPresetsData,\n GetAdminPermissionsPresetsErrors,\n GetAdminPermissionsPresetsResponses,\n GetAdminPermissionsResponses,\n GetAdminPlansByIdData,\n GetAdminPlansByIdErrors,\n GetAdminPlansByIdResponses,\n GetAdminPlansData,\n GetAdminPlansErrors,\n GetAdminPlansResponses,\n GetAdminPlansSlugBySlugData,\n GetAdminPlansSlugBySlugErrors,\n GetAdminPlansSlugBySlugResponses,\n GetAdminPlatformPricingConfigsByIdData,\n GetAdminPlatformPricingConfigsByIdErrors,\n GetAdminPlatformPricingConfigsByIdResponses,\n GetAdminPlatformPricingConfigsData,\n GetAdminPlatformPricingConfigsErrors,\n GetAdminPlatformPricingConfigsResponses,\n GetAdminPostProcessingHooksByIdData,\n GetAdminPostProcessingHooksByIdErrors,\n GetAdminPostProcessingHooksByIdResponses,\n GetAdminPostProcessingHooksData,\n GetAdminPostProcessingHooksErrors,\n GetAdminPostProcessingHooksResponses,\n GetAdminPricingRulesByIdData,\n GetAdminPricingRulesByIdErrors,\n GetAdminPricingRulesByIdResponses,\n GetAdminPricingRulesData,\n GetAdminPricingRulesErrors,\n GetAdminPricingRulesResolveData,\n GetAdminPricingRulesResolveErrors,\n GetAdminPricingRulesResolveResponses,\n GetAdminPricingRulesResponses,\n GetAdminPricingStrategiesByIdData,\n GetAdminPricingStrategiesByIdErrors,\n GetAdminPricingStrategiesByIdResponses,\n GetAdminPricingStrategiesData,\n GetAdminPricingStrategiesErrors,\n GetAdminPricingStrategiesResponses,\n GetAdminProcessingActivitiesByIdData,\n GetAdminProcessingActivitiesByIdErrors,\n GetAdminProcessingActivitiesByIdResponses,\n GetAdminProcessingActivitiesData,\n GetAdminProcessingActivitiesErrors,\n GetAdminProcessingActivitiesResponses,\n GetAdminRetentionPoliciesByIdData,\n GetAdminRetentionPoliciesByIdErrors,\n GetAdminRetentionPoliciesByIdResponses,\n GetAdminRetentionPoliciesData,\n GetAdminRetentionPoliciesErrors,\n GetAdminRetentionPoliciesResponses,\n GetAdminRolesData,\n GetAdminRolesErrors,\n GetAdminRolesResponses,\n GetAdminScanResultsByIdData,\n GetAdminScanResultsByIdErrors,\n GetAdminScanResultsByIdResponses,\n GetAdminScanResultsData,\n GetAdminScanResultsErrors,\n GetAdminScanResultsResponses,\n GetAdminSchedulingAvailabilityRulesByIdData,\n GetAdminSchedulingAvailabilityRulesByIdErrors,\n GetAdminSchedulingAvailabilityRulesByIdResponses,\n GetAdminSchedulingAvailabilityRulesData,\n GetAdminSchedulingAvailabilityRulesErrors,\n GetAdminSchedulingAvailabilityRulesResponses,\n GetAdminSchedulingBookingsByIdData,\n GetAdminSchedulingBookingsByIdErrors,\n GetAdminSchedulingBookingsByIdResponses,\n GetAdminSchedulingBookingsData,\n GetAdminSchedulingBookingsErrors,\n GetAdminSchedulingBookingsResponses,\n GetAdminSchedulingCalendarSyncsByIdData,\n GetAdminSchedulingCalendarSyncsByIdErrors,\n GetAdminSchedulingCalendarSyncsByIdResponses,\n GetAdminSchedulingCalendarSyncsData,\n GetAdminSchedulingCalendarSyncsErrors,\n GetAdminSchedulingCalendarSyncsResponses,\n GetAdminSchedulingEventsByIdData,\n GetAdminSchedulingEventsByIdErrors,\n GetAdminSchedulingEventsByIdResponses,\n GetAdminSchedulingEventsData,\n GetAdminSchedulingEventsErrors,\n GetAdminSchedulingEventsResponses,\n GetAdminSchedulingEventTypesByIdData,\n GetAdminSchedulingEventTypesByIdErrors,\n GetAdminSchedulingEventTypesByIdResponses,\n GetAdminSchedulingEventTypesData,\n GetAdminSchedulingEventTypesErrors,\n GetAdminSchedulingEventTypesResponses,\n GetAdminSchedulingLocationsByIdData,\n GetAdminSchedulingLocationsByIdErrors,\n GetAdminSchedulingLocationsByIdResponses,\n GetAdminSchedulingLocationsData,\n GetAdminSchedulingLocationsErrors,\n GetAdminSchedulingLocationsResponses,\n GetAdminSchedulingParticipantsByIdData,\n GetAdminSchedulingParticipantsByIdErrors,\n GetAdminSchedulingParticipantsByIdResponses,\n GetAdminSchedulingParticipantsData,\n GetAdminSchedulingParticipantsErrors,\n GetAdminSchedulingParticipantsResponses,\n GetAdminSchedulingRemindersByIdData,\n GetAdminSchedulingRemindersByIdErrors,\n GetAdminSchedulingRemindersByIdResponses,\n GetAdminSchedulingRemindersData,\n GetAdminSchedulingRemindersErrors,\n GetAdminSchedulingRemindersResponses,\n GetAdminSearchAnalyticsData,\n GetAdminSearchAnalyticsErrors,\n GetAdminSearchAnalyticsResponses,\n GetAdminSearchAnalyticsSummaryData,\n GetAdminSearchAnalyticsSummaryErrors,\n GetAdminSearchAnalyticsSummaryResponses,\n GetAdminSearchData,\n GetAdminSearchErrors,\n GetAdminSearchHealthData,\n GetAdminSearchHealthErrors,\n GetAdminSearchHealthResponses,\n GetAdminSearchIndexesData,\n GetAdminSearchIndexesErrors,\n GetAdminSearchIndexesResponses,\n GetAdminSearchResponses,\n GetAdminSearchSavedData,\n GetAdminSearchSavedErrors,\n GetAdminSearchSavedResponses,\n GetAdminSearchSemanticData,\n GetAdminSearchSemanticErrors,\n GetAdminSearchSemanticResponses,\n GetAdminSearchStatsData,\n GetAdminSearchStatsErrors,\n GetAdminSearchStatsResponses,\n GetAdminSearchStatusData,\n GetAdminSearchStatusErrors,\n GetAdminSearchStatusResponses,\n GetAdminSearchSuggestData,\n GetAdminSearchSuggestErrors,\n GetAdminSearchSuggestResponses,\n GetAdminSettlementsByIdData,\n GetAdminSettlementsByIdErrors,\n GetAdminSettlementsByIdResponses,\n GetAdminSettlementsData,\n GetAdminSettlementsErrors,\n GetAdminSettlementsResponses,\n GetAdminStorageFilesByIdData,\n GetAdminStorageFilesByIdErrors,\n GetAdminStorageFilesByIdResponses,\n GetAdminStorageFilesData,\n GetAdminStorageFilesErrors,\n GetAdminStorageFilesResponses,\n GetAdminStorageStatsData,\n GetAdminStorageStatsErrors,\n GetAdminStorageStatsResponses,\n GetAdminStorageStatsTenantByTenantIdData,\n GetAdminStorageStatsTenantByTenantIdErrors,\n GetAdminStorageStatsTenantByTenantIdResponses,\n GetAdminSubscriptionsByIdData,\n GetAdminSubscriptionsByIdErrors,\n GetAdminSubscriptionsByIdResponses,\n GetAdminSubscriptionsByTenantByTenantIdData,\n GetAdminSubscriptionsByTenantByTenantIdErrors,\n GetAdminSubscriptionsByTenantByTenantIdResponses,\n GetAdminSubscriptionsData,\n GetAdminSubscriptionsErrors,\n GetAdminSubscriptionsResponses,\n GetAdminSysAiConfigByIdData,\n GetAdminSysAiConfigByIdErrors,\n GetAdminSysAiConfigByIdResponses,\n GetAdminSysAiConfigData,\n GetAdminSysAiConfigErrors,\n GetAdminSysAiConfigResponses,\n GetAdminSysSemanticCacheByIdData,\n GetAdminSysSemanticCacheByIdErrors,\n GetAdminSysSemanticCacheByIdResponses,\n GetAdminSystemMessagesByIdData,\n GetAdminSystemMessagesByIdErrors,\n GetAdminSystemMessagesByIdResponses,\n GetAdminSystemMessagesData,\n GetAdminSystemMessagesErrors,\n GetAdminSystemMessagesResponses,\n GetAdminTenantMembershipsData,\n GetAdminTenantMembershipsErrors,\n GetAdminTenantMembershipsResponses,\n GetAdminTenantPricingOverridesByIdData,\n GetAdminTenantPricingOverridesByIdErrors,\n GetAdminTenantPricingOverridesByIdResponses,\n GetAdminTenantPricingOverridesData,\n GetAdminTenantPricingOverridesErrors,\n GetAdminTenantPricingOverridesResponses,\n GetAdminTenantsByIdData,\n GetAdminTenantsByIdErrors,\n GetAdminTenantsByIdResponses,\n GetAdminTenantsByTenantIdDocumentStatsData,\n GetAdminTenantsByTenantIdDocumentStatsErrors,\n GetAdminTenantsByTenantIdDocumentStatsResponses,\n GetAdminTenantsByTenantIdStatsData,\n GetAdminTenantsByTenantIdStatsErrors,\n GetAdminTenantsByTenantIdStatsResponses,\n GetAdminTenantsByTenantIdWorkspaceStatsData,\n GetAdminTenantsByTenantIdWorkspaceStatsErrors,\n GetAdminTenantsByTenantIdWorkspaceStatsResponses,\n GetAdminTenantsData,\n GetAdminTenantsErrors,\n GetAdminTenantsResponses,\n GetAdminThreadsByIdData,\n GetAdminThreadsByIdErrors,\n GetAdminThreadsByIdMessagesData,\n GetAdminThreadsByIdMessagesErrors,\n GetAdminThreadsByIdMessagesResponses,\n GetAdminThreadsByIdResponses,\n GetAdminThreadsData,\n GetAdminThreadsErrors,\n GetAdminThreadsResponses,\n GetAdminThreadsSearchData,\n GetAdminThreadsSearchErrors,\n GetAdminThreadsSearchResponses,\n GetAdminThreadsStatsData,\n GetAdminThreadsStatsErrors,\n GetAdminThreadsStatsResponses,\n GetAdminThreadsWorkspaceStatsData,\n GetAdminThreadsWorkspaceStatsErrors,\n GetAdminThreadsWorkspaceStatsResponses,\n GetAdminTrainingExamplesByIdData,\n GetAdminTrainingExamplesByIdErrors,\n GetAdminTrainingExamplesByIdResponses,\n GetAdminTrainingExamplesData,\n GetAdminTrainingExamplesErrors,\n GetAdminTrainingExamplesResponses,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsData,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsErrors,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsResponses,\n GetAdminTrainingSessionsByIdData,\n GetAdminTrainingSessionsByIdErrors,\n GetAdminTrainingSessionsByIdResponses,\n GetAdminTransactionsByIdData,\n GetAdminTransactionsByIdErrors,\n GetAdminTransactionsByIdResponses,\n GetAdminTransactionsData,\n GetAdminTransactionsErrors,\n GetAdminTransactionsResponses,\n GetAdminTransfersByIdData,\n GetAdminTransfersByIdErrors,\n GetAdminTransfersByIdResponses,\n GetAdminTransfersData,\n GetAdminTransfersErrors,\n GetAdminTransfersResponses,\n GetAdminUserProfilesByIdData,\n GetAdminUserProfilesByIdErrors,\n GetAdminUserProfilesByIdResponses,\n GetAdminUserProfilesData,\n GetAdminUserProfilesErrors,\n GetAdminUserProfilesMeData,\n GetAdminUserProfilesMeErrors,\n GetAdminUserProfilesMeResponses,\n GetAdminUserProfilesResponses,\n GetAdminUsersByEmailData,\n GetAdminUsersByEmailErrors,\n GetAdminUsersByEmailResponses,\n GetAdminUsersByIdData,\n GetAdminUsersByIdErrors,\n GetAdminUsersByIdResponses,\n GetAdminUsersData,\n GetAdminUsersErrors,\n GetAdminUsersMeActivityData,\n GetAdminUsersMeActivityErrors,\n GetAdminUsersMeActivityResponses,\n GetAdminUsersMeDashboardData,\n GetAdminUsersMeDashboardErrors,\n GetAdminUsersMeDashboardResponses,\n GetAdminUsersMeData,\n GetAdminUsersMeErrors,\n GetAdminUsersMeResponses,\n GetAdminUsersMeStatsData,\n GetAdminUsersMeStatsErrors,\n GetAdminUsersMeStatsResponses,\n GetAdminUsersMeTenantsData,\n GetAdminUsersMeTenantsErrors,\n GetAdminUsersMeTenantsResponses,\n GetAdminUsersResponses,\n GetAdminVoiceSessionsByIdData,\n GetAdminVoiceSessionsByIdErrors,\n GetAdminVoiceSessionsByIdResponses,\n GetAdminVoiceSessionsData,\n GetAdminVoiceSessionsErrors,\n GetAdminVoiceSessionsMineData,\n GetAdminVoiceSessionsMineErrors,\n GetAdminVoiceSessionsMineResponses,\n GetAdminVoiceSessionsResponses,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdData,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdErrors,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdResponses,\n GetAdminWalletData,\n GetAdminWalletErrors,\n GetAdminWalletResponses,\n GetAdminWalletStorageBreakdownData,\n GetAdminWalletStorageBreakdownErrors,\n GetAdminWalletStorageBreakdownResponses,\n GetAdminWalletUsageBreakdownData,\n GetAdminWalletUsageBreakdownErrors,\n GetAdminWalletUsageBreakdownResponses,\n GetAdminWalletUsageData,\n GetAdminWalletUsageErrors,\n GetAdminWalletUsageResponses,\n GetAdminWebhookConfigsByIdData,\n GetAdminWebhookConfigsByIdErrors,\n GetAdminWebhookConfigsByIdEventsData,\n GetAdminWebhookConfigsByIdEventsErrors,\n GetAdminWebhookConfigsByIdEventsResponses,\n GetAdminWebhookConfigsByIdResponses,\n GetAdminWebhookConfigsData,\n GetAdminWebhookConfigsErrors,\n GetAdminWebhookConfigsResponses,\n GetAdminWebhookConfigsStatsData,\n GetAdminWebhookConfigsStatsErrors,\n GetAdminWebhookConfigsStatsResponses,\n GetAdminWebhookDeliveriesByIdData,\n GetAdminWebhookDeliveriesByIdErrors,\n GetAdminWebhookDeliveriesByIdResponses,\n GetAdminWebhookDeliveriesData,\n GetAdminWebhookDeliveriesErrors,\n GetAdminWebhookDeliveriesResponses,\n GetAdminWebhookDeliveriesStatsData,\n GetAdminWebhookDeliveriesStatsErrors,\n GetAdminWebhookDeliveriesStatsResponses,\n GetAdminWholesaleAgreementsByIdData,\n GetAdminWholesaleAgreementsByIdErrors,\n GetAdminWholesaleAgreementsByIdResponses,\n GetAdminWholesaleAgreementsData,\n GetAdminWholesaleAgreementsErrors,\n GetAdminWholesaleAgreementsResponses,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n GetAdminWorkspaceMembershipsData,\n GetAdminWorkspaceMembershipsErrors,\n GetAdminWorkspaceMembershipsInheritedData,\n GetAdminWorkspaceMembershipsInheritedErrors,\n GetAdminWorkspaceMembershipsInheritedResponses,\n GetAdminWorkspaceMembershipsResponses,\n GetAdminWorkspacesAnalyticsBatchData,\n GetAdminWorkspacesAnalyticsBatchErrors,\n GetAdminWorkspacesAnalyticsBatchResponses,\n GetAdminWorkspacesByIdData,\n GetAdminWorkspacesByIdErrors,\n GetAdminWorkspacesByIdMembersData,\n GetAdminWorkspacesByIdMembersErrors,\n GetAdminWorkspacesByIdMembersResponses,\n GetAdminWorkspacesByIdResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdData,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdErrors,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsData,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsData,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsErrors,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsResponses,\n GetAdminWorkspacesData,\n GetAdminWorkspacesErrors,\n GetAdminWorkspacesMineData,\n GetAdminWorkspacesMineErrors,\n GetAdminWorkspacesMineResponses,\n GetAdminWorkspacesResponses,\n GetAdminWorkspacesSharedData,\n GetAdminWorkspacesSharedErrors,\n GetAdminWorkspacesSharedResponses,\n PatchAdminAccountsByIdCreditData,\n PatchAdminAccountsByIdCreditErrors,\n PatchAdminAccountsByIdCreditResponses,\n PatchAdminAccountsByIdDebitData,\n PatchAdminAccountsByIdDebitErrors,\n PatchAdminAccountsByIdDebitResponses,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdData,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdErrors,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdResponses,\n PatchAdminAiConversationsByIdData,\n PatchAdminAiConversationsByIdErrors,\n PatchAdminAiConversationsByIdResponses,\n PatchAdminApiKeysByIdAllocateData,\n PatchAdminApiKeysByIdAllocateErrors,\n PatchAdminApiKeysByIdAllocateResponses,\n PatchAdminApiKeysByIdData,\n PatchAdminApiKeysByIdErrors,\n PatchAdminApiKeysByIdResetPeriodData,\n PatchAdminApiKeysByIdResetPeriodErrors,\n PatchAdminApiKeysByIdResetPeriodResponses,\n PatchAdminApiKeysByIdResponses,\n PatchAdminApiKeysByIdRevokeData,\n PatchAdminApiKeysByIdRevokeErrors,\n PatchAdminApiKeysByIdRevokeResponses,\n PatchAdminApiKeysByIdRotateData,\n PatchAdminApiKeysByIdRotateErrors,\n PatchAdminApiKeysByIdRotateResponses,\n PatchAdminApiKeysByIdSetBudgetData,\n PatchAdminApiKeysByIdSetBudgetErrors,\n PatchAdminApiKeysByIdSetBudgetResponses,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n PatchAdminApplicationsByIdAllocateCreditsData,\n PatchAdminApplicationsByIdAllocateCreditsErrors,\n PatchAdminApplicationsByIdAllocateCreditsResponses,\n PatchAdminApplicationsByIdData,\n PatchAdminApplicationsByIdErrors,\n PatchAdminApplicationsByIdGrantCreditsData,\n PatchAdminApplicationsByIdGrantCreditsErrors,\n PatchAdminApplicationsByIdGrantCreditsResponses,\n PatchAdminApplicationsByIdResponses,\n PatchAdminBreachIncidentsByIdStatusData,\n PatchAdminBreachIncidentsByIdStatusErrors,\n PatchAdminBreachIncidentsByIdStatusResponses,\n PatchAdminBucketsByIdData,\n PatchAdminBucketsByIdErrors,\n PatchAdminBucketsByIdResponses,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptData,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptErrors,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptResponses,\n PatchAdminCatalogClassificationSuggestionsByIdRejectData,\n PatchAdminCatalogClassificationSuggestionsByIdRejectErrors,\n PatchAdminCatalogClassificationSuggestionsByIdRejectResponses,\n PatchAdminCatalogOptionTypesByIdData,\n PatchAdminCatalogOptionTypesByIdErrors,\n PatchAdminCatalogOptionTypesByIdResponses,\n PatchAdminCatalogOptionValuesByIdData,\n PatchAdminCatalogOptionValuesByIdErrors,\n PatchAdminCatalogOptionValuesByIdResponses,\n PatchAdminCatalogPriceListEntriesByIdData,\n PatchAdminCatalogPriceListEntriesByIdErrors,\n PatchAdminCatalogPriceListEntriesByIdResponses,\n PatchAdminCatalogPriceListsByIdData,\n PatchAdminCatalogPriceListsByIdErrors,\n PatchAdminCatalogPriceListsByIdResponses,\n PatchAdminCatalogPriceSuggestionsByIdAcceptData,\n PatchAdminCatalogPriceSuggestionsByIdAcceptErrors,\n PatchAdminCatalogPriceSuggestionsByIdAcceptResponses,\n PatchAdminCatalogPriceSuggestionsByIdRejectData,\n PatchAdminCatalogPriceSuggestionsByIdRejectErrors,\n PatchAdminCatalogPriceSuggestionsByIdRejectResponses,\n PatchAdminCatalogProductsByIdData,\n PatchAdminCatalogProductsByIdErrors,\n PatchAdminCatalogProductsByIdResponses,\n PatchAdminCatalogProductVariantsByIdData,\n PatchAdminCatalogProductVariantsByIdErrors,\n PatchAdminCatalogProductVariantsByIdResponses,\n PatchAdminCatalogStockLocationsByIdData,\n PatchAdminCatalogStockLocationsByIdErrors,\n PatchAdminCatalogStockLocationsByIdResponses,\n PatchAdminCatalogTaxonomiesByIdData,\n PatchAdminCatalogTaxonomiesByIdErrors,\n PatchAdminCatalogTaxonomiesByIdResponses,\n PatchAdminCatalogTaxonomyNodesByIdData,\n PatchAdminCatalogTaxonomyNodesByIdErrors,\n PatchAdminCatalogTaxonomyNodesByIdResponses,\n PatchAdminCatalogViewOverridesByIdData,\n PatchAdminCatalogViewOverridesByIdErrors,\n PatchAdminCatalogViewOverridesByIdResponses,\n PatchAdminCatalogViewsByIdData,\n PatchAdminCatalogViewsByIdErrors,\n PatchAdminCatalogViewsByIdResponses,\n PatchAdminConfigsByKeyData,\n PatchAdminConfigsByKeyErrors,\n PatchAdminConfigsByKeyResponses,\n PatchAdminConnectorsByIdData,\n PatchAdminConnectorsByIdErrors,\n PatchAdminConnectorsByIdResponses,\n PatchAdminConsentRecordsByIdWithdrawData,\n PatchAdminConsentRecordsByIdWithdrawErrors,\n PatchAdminConsentRecordsByIdWithdrawResponses,\n PatchAdminCrawlerJobsByIdCancelData,\n PatchAdminCrawlerJobsByIdCancelErrors,\n PatchAdminCrawlerJobsByIdCancelResponses,\n PatchAdminCrawlerSchedulesByIdData,\n PatchAdminCrawlerSchedulesByIdDisableData,\n PatchAdminCrawlerSchedulesByIdDisableErrors,\n PatchAdminCrawlerSchedulesByIdDisableResponses,\n PatchAdminCrawlerSchedulesByIdEnableData,\n PatchAdminCrawlerSchedulesByIdEnableErrors,\n PatchAdminCrawlerSchedulesByIdEnableResponses,\n PatchAdminCrawlerSchedulesByIdErrors,\n PatchAdminCrawlerSchedulesByIdResponses,\n PatchAdminCrawlerSchedulesByIdTriggerData,\n PatchAdminCrawlerSchedulesByIdTriggerErrors,\n PatchAdminCrawlerSchedulesByIdTriggerResponses,\n PatchAdminCrawlerSiteConfigsByIdData,\n PatchAdminCrawlerSiteConfigsByIdErrors,\n PatchAdminCrawlerSiteConfigsByIdResponses,\n PatchAdminCreditPackagesByIdData,\n PatchAdminCreditPackagesByIdErrors,\n PatchAdminCreditPackagesByIdResponses,\n PatchAdminCrmCompaniesByIdData,\n PatchAdminCrmCompaniesByIdErrors,\n PatchAdminCrmCompaniesByIdResponses,\n PatchAdminCrmContactsByIdArchiveData,\n PatchAdminCrmContactsByIdArchiveErrors,\n PatchAdminCrmContactsByIdArchiveResponses,\n PatchAdminCrmContactsByIdData,\n PatchAdminCrmContactsByIdErrors,\n PatchAdminCrmContactsByIdResponses,\n PatchAdminCrmCustomEntitiesByIdData,\n PatchAdminCrmCustomEntitiesByIdErrors,\n PatchAdminCrmCustomEntitiesByIdResponses,\n PatchAdminCrmDealsByIdData,\n PatchAdminCrmDealsByIdErrors,\n PatchAdminCrmDealsByIdResponses,\n PatchAdminCrmPipelinesByIdData,\n PatchAdminCrmPipelinesByIdErrors,\n PatchAdminCrmPipelinesByIdResponses,\n PatchAdminCrmPipelineStagesByIdData,\n PatchAdminCrmPipelineStagesByIdErrors,\n PatchAdminCrmPipelineStagesByIdResponses,\n PatchAdminCrmRelationshipTypesByIdData,\n PatchAdminCrmRelationshipTypesByIdErrors,\n PatchAdminCrmRelationshipTypesByIdResponses,\n PatchAdminCustomersByIdData,\n PatchAdminCustomersByIdErrors,\n PatchAdminCustomersByIdResponses,\n PatchAdminDataSubjectRequestsByIdStatusData,\n PatchAdminDataSubjectRequestsByIdStatusErrors,\n PatchAdminDataSubjectRequestsByIdStatusResponses,\n PatchAdminEmailMarketingCampaignsByIdData,\n PatchAdminEmailMarketingCampaignsByIdErrors,\n PatchAdminEmailMarketingCampaignsByIdResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveData,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdData,\n PatchAdminEmailMarketingGeneratedEmailsByIdErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectData,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleData,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleResponses,\n PatchAdminEmailMarketingSenderProfilesByIdData,\n PatchAdminEmailMarketingSenderProfilesByIdErrors,\n PatchAdminEmailMarketingSenderProfilesByIdResponses,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsData,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsErrors,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsResponses,\n PatchAdminEmailMarketingSequencesByIdActivateData,\n PatchAdminEmailMarketingSequencesByIdActivateErrors,\n PatchAdminEmailMarketingSequencesByIdActivateResponses,\n PatchAdminEmailMarketingSequencesByIdCompleteData,\n PatchAdminEmailMarketingSequencesByIdCompleteErrors,\n PatchAdminEmailMarketingSequencesByIdCompleteResponses,\n PatchAdminEmailMarketingSequencesByIdData,\n PatchAdminEmailMarketingSequencesByIdErrors,\n PatchAdminEmailMarketingSequencesByIdPauseData,\n PatchAdminEmailMarketingSequencesByIdPauseErrors,\n PatchAdminEmailMarketingSequencesByIdPauseResponses,\n PatchAdminEmailMarketingSequencesByIdResponses,\n PatchAdminEmailMarketingSequencesByIdResumeData,\n PatchAdminEmailMarketingSequencesByIdResumeErrors,\n PatchAdminEmailMarketingSequencesByIdResumeResponses,\n PatchAdminEmailMarketingSequenceStepsByIdData,\n PatchAdminEmailMarketingSequenceStepsByIdErrors,\n PatchAdminEmailMarketingSequenceStepsByIdResponses,\n PatchAdminEmailMarketingTemplatesByIdArchiveData,\n PatchAdminEmailMarketingTemplatesByIdArchiveErrors,\n PatchAdminEmailMarketingTemplatesByIdArchiveResponses,\n PatchAdminEmailMarketingTemplatesByIdData,\n PatchAdminEmailMarketingTemplatesByIdErrors,\n PatchAdminEmailMarketingTemplatesByIdResponses,\n PatchAdminEmailMarketingTemplatesByIdRestoreData,\n PatchAdminEmailMarketingTemplatesByIdRestoreErrors,\n PatchAdminEmailMarketingTemplatesByIdRestoreResponses,\n PatchAdminExtractionConfigEnumsByIdData,\n PatchAdminExtractionConfigEnumsByIdErrors,\n PatchAdminExtractionConfigEnumsByIdResponses,\n PatchAdminExtractionDocumentsByIdCancelData,\n PatchAdminExtractionDocumentsByIdCancelErrors,\n PatchAdminExtractionDocumentsByIdCancelResponses,\n PatchAdminExtractionDocumentsByIdDismissData,\n PatchAdminExtractionDocumentsByIdDismissErrors,\n PatchAdminExtractionDocumentsByIdDismissResponses,\n PatchAdminExtractionDocumentsByIdDismissTrainingData,\n PatchAdminExtractionDocumentsByIdDismissTrainingErrors,\n PatchAdminExtractionDocumentsByIdDismissTrainingResponses,\n PatchAdminExtractionDocumentsByIdExcludeData,\n PatchAdminExtractionDocumentsByIdExcludeErrors,\n PatchAdminExtractionDocumentsByIdExcludeResponses,\n PatchAdminExtractionDocumentsByIdFinishUploadData,\n PatchAdminExtractionDocumentsByIdFinishUploadErrors,\n PatchAdminExtractionDocumentsByIdFinishUploadResponses,\n PatchAdminExtractionDocumentsByIdIncludeData,\n PatchAdminExtractionDocumentsByIdIncludeErrors,\n PatchAdminExtractionDocumentsByIdIncludeResponses,\n PatchAdminExtractionDocumentsByIdMarkTrainedData,\n PatchAdminExtractionDocumentsByIdMarkTrainedErrors,\n PatchAdminExtractionDocumentsByIdMarkTrainedResponses,\n PatchAdminExtractionDocumentsByIdReprocessData,\n PatchAdminExtractionDocumentsByIdReprocessErrors,\n PatchAdminExtractionDocumentsByIdReprocessResponses,\n PatchAdminExtractionDocumentsByIdRestoreData,\n PatchAdminExtractionDocumentsByIdRestoreErrors,\n PatchAdminExtractionDocumentsByIdRestoreResponses,\n PatchAdminExtractionDocumentsByIdStatusData,\n PatchAdminExtractionDocumentsByIdStatusErrors,\n PatchAdminExtractionDocumentsByIdStatusResponses,\n PatchAdminExtractionDocumentsByIdVerificationData,\n PatchAdminExtractionDocumentsByIdVerificationErrors,\n PatchAdminExtractionDocumentsByIdVerificationResponses,\n PatchAdminExtractionResultsByIdData,\n PatchAdminExtractionResultsByIdErrors,\n PatchAdminExtractionResultsByIdRegenerateData,\n PatchAdminExtractionResultsByIdRegenerateErrors,\n PatchAdminExtractionResultsByIdRegenerateResponses,\n PatchAdminExtractionResultsByIdResponses,\n PatchAdminExtractionResultsByIdSaveCorrectionsData,\n PatchAdminExtractionResultsByIdSaveCorrectionsErrors,\n PatchAdminExtractionResultsByIdSaveCorrectionsResponses,\n PatchAdminExtractionWorkflowsByIdData,\n PatchAdminExtractionWorkflowsByIdErrors,\n PatchAdminExtractionWorkflowsByIdResponses,\n PatchAdminImpactAssessmentsByIdApproveData,\n PatchAdminImpactAssessmentsByIdApproveErrors,\n PatchAdminImpactAssessmentsByIdApproveResponses,\n PatchAdminImpactAssessmentsByIdData,\n PatchAdminImpactAssessmentsByIdErrors,\n PatchAdminImpactAssessmentsByIdResponses,\n PatchAdminInvitationsByIdAcceptByUserData,\n PatchAdminInvitationsByIdAcceptByUserErrors,\n PatchAdminInvitationsByIdAcceptByUserResponses,\n PatchAdminInvitationsByIdAcceptData,\n PatchAdminInvitationsByIdAcceptErrors,\n PatchAdminInvitationsByIdAcceptResponses,\n PatchAdminInvitationsByIdDeclineData,\n PatchAdminInvitationsByIdDeclineErrors,\n PatchAdminInvitationsByIdDeclineResponses,\n PatchAdminInvitationsByIdResendData,\n PatchAdminInvitationsByIdResendErrors,\n PatchAdminInvitationsByIdResendResponses,\n PatchAdminInvitationsByIdRevokeData,\n PatchAdminInvitationsByIdRevokeErrors,\n PatchAdminInvitationsByIdRevokeResponses,\n PatchAdminIsvCrmChannelCaptureConfigByIdData,\n PatchAdminIsvCrmChannelCaptureConfigByIdErrors,\n PatchAdminIsvCrmChannelCaptureConfigByIdResponses,\n PatchAdminIsvCrmEntityTypesByIdData,\n PatchAdminIsvCrmEntityTypesByIdErrors,\n PatchAdminIsvCrmEntityTypesByIdResponses,\n PatchAdminIsvCrmFieldDefinitionsByIdData,\n PatchAdminIsvCrmFieldDefinitionsByIdErrors,\n PatchAdminIsvCrmFieldDefinitionsByIdResponses,\n PatchAdminIsvCrmSyncConfigsByIdData,\n PatchAdminIsvCrmSyncConfigsByIdErrors,\n PatchAdminIsvCrmSyncConfigsByIdResponses,\n PatchAdminIsvSettlementsByIdData,\n PatchAdminIsvSettlementsByIdErrors,\n PatchAdminIsvSettlementsByIdResponses,\n PatchAdminLegalDocumentsByIdData,\n PatchAdminLegalDocumentsByIdErrors,\n PatchAdminLegalDocumentsByIdPublishData,\n PatchAdminLegalDocumentsByIdPublishErrors,\n PatchAdminLegalDocumentsByIdPublishResponses,\n PatchAdminLegalDocumentsByIdResponses,\n PatchAdminLegalDocumentsByIdUnpublishData,\n PatchAdminLegalDocumentsByIdUnpublishErrors,\n PatchAdminLegalDocumentsByIdUnpublishResponses,\n PatchAdminMessagesByIdData,\n PatchAdminMessagesByIdErrors,\n PatchAdminMessagesByIdResponses,\n PatchAdminNotificationMethodsByIdData,\n PatchAdminNotificationMethodsByIdErrors,\n PatchAdminNotificationMethodsByIdResponses,\n PatchAdminNotificationMethodsByIdSendVerificationData,\n PatchAdminNotificationMethodsByIdSendVerificationErrors,\n PatchAdminNotificationMethodsByIdSendVerificationResponses,\n PatchAdminNotificationMethodsByIdSetPrimaryData,\n PatchAdminNotificationMethodsByIdSetPrimaryErrors,\n PatchAdminNotificationMethodsByIdSetPrimaryResponses,\n PatchAdminNotificationMethodsByIdVerifyData,\n PatchAdminNotificationMethodsByIdVerifyErrors,\n PatchAdminNotificationMethodsByIdVerifyResponses,\n PatchAdminNotificationPreferencesByIdData,\n PatchAdminNotificationPreferencesByIdErrors,\n PatchAdminNotificationPreferencesByIdResponses,\n PatchAdminPaymentMethodsByIdData,\n PatchAdminPaymentMethodsByIdDefaultData,\n PatchAdminPaymentMethodsByIdDefaultErrors,\n PatchAdminPaymentMethodsByIdDefaultResponses,\n PatchAdminPaymentMethodsByIdErrors,\n PatchAdminPaymentMethodsByIdResponses,\n PatchAdminPlansByIdData,\n PatchAdminPlansByIdErrors,\n PatchAdminPlansByIdResponses,\n PatchAdminPlatformPricingConfigsByIdData,\n PatchAdminPlatformPricingConfigsByIdErrors,\n PatchAdminPlatformPricingConfigsByIdResponses,\n PatchAdminPostProcessingHooksByIdData,\n PatchAdminPostProcessingHooksByIdErrors,\n PatchAdminPostProcessingHooksByIdResponses,\n PatchAdminPricingRulesByIdData,\n PatchAdminPricingRulesByIdErrors,\n PatchAdminPricingRulesByIdResponses,\n PatchAdminPricingStrategiesByIdData,\n PatchAdminPricingStrategiesByIdErrors,\n PatchAdminPricingStrategiesByIdResponses,\n PatchAdminRetentionPoliciesByIdData,\n PatchAdminRetentionPoliciesByIdErrors,\n PatchAdminRetentionPoliciesByIdResponses,\n PatchAdminRolesByIdData,\n PatchAdminRolesByIdErrors,\n PatchAdminRolesByIdResponses,\n PatchAdminSchedulingAvailabilityRulesByIdData,\n PatchAdminSchedulingAvailabilityRulesByIdErrors,\n PatchAdminSchedulingAvailabilityRulesByIdResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelData,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelErrors,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmData,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmErrors,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleData,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleErrors,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseData,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseErrors,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeData,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeErrors,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeResponses,\n PatchAdminSchedulingEventsByIdData,\n PatchAdminSchedulingEventsByIdErrors,\n PatchAdminSchedulingEventsByIdResponses,\n PatchAdminSchedulingEventTypesByIdData,\n PatchAdminSchedulingEventTypesByIdErrors,\n PatchAdminSchedulingEventTypesByIdResponses,\n PatchAdminSchedulingLocationsByIdData,\n PatchAdminSchedulingLocationsByIdErrors,\n PatchAdminSchedulingLocationsByIdResponses,\n PatchAdminSchedulingParticipantsByIdData,\n PatchAdminSchedulingParticipantsByIdErrors,\n PatchAdminSchedulingParticipantsByIdResponses,\n PatchAdminSearchSavedByIdData,\n PatchAdminSearchSavedByIdErrors,\n PatchAdminSearchSavedByIdResponses,\n PatchAdminStorageFilesByIdData,\n PatchAdminStorageFilesByIdErrors,\n PatchAdminStorageFilesByIdResponses,\n PatchAdminStorageFilesByIdSoftDeleteData,\n PatchAdminStorageFilesByIdSoftDeleteErrors,\n PatchAdminStorageFilesByIdSoftDeleteResponses,\n PatchAdminSubscriptionsByIdCancelData,\n PatchAdminSubscriptionsByIdCancelErrors,\n PatchAdminSubscriptionsByIdCancelResponses,\n PatchAdminSubscriptionsByIdData,\n PatchAdminSubscriptionsByIdErrors,\n PatchAdminSubscriptionsByIdResponses,\n PatchAdminSysAiConfigByIdData,\n PatchAdminSysAiConfigByIdErrors,\n PatchAdminSysAiConfigByIdResponses,\n PatchAdminSystemMessagesByIdData,\n PatchAdminSystemMessagesByIdErrors,\n PatchAdminSystemMessagesByIdPublishData,\n PatchAdminSystemMessagesByIdPublishErrors,\n PatchAdminSystemMessagesByIdPublishResponses,\n PatchAdminSystemMessagesByIdResponses,\n PatchAdminSystemMessagesByIdUnpublishData,\n PatchAdminSystemMessagesByIdUnpublishErrors,\n PatchAdminSystemMessagesByIdUnpublishResponses,\n PatchAdminTenantMembershipsByTenantIdByUserIdData,\n PatchAdminTenantMembershipsByTenantIdByUserIdErrors,\n PatchAdminTenantMembershipsByTenantIdByUserIdResponses,\n PatchAdminTenantPricingOverridesByIdData,\n PatchAdminTenantPricingOverridesByIdErrors,\n PatchAdminTenantPricingOverridesByIdResponses,\n PatchAdminTenantsByIdData,\n PatchAdminTenantsByIdErrors,\n PatchAdminTenantsByIdResponses,\n PatchAdminThreadsByIdArchiveData,\n PatchAdminThreadsByIdArchiveErrors,\n PatchAdminThreadsByIdArchiveResponses,\n PatchAdminThreadsByIdData,\n PatchAdminThreadsByIdErrors,\n PatchAdminThreadsByIdResponses,\n PatchAdminThreadsByIdUnarchiveData,\n PatchAdminThreadsByIdUnarchiveErrors,\n PatchAdminThreadsByIdUnarchiveResponses,\n PatchAdminTrainingExamplesByIdData,\n PatchAdminTrainingExamplesByIdErrors,\n PatchAdminTrainingExamplesByIdResponses,\n PatchAdminUserProfilesByIdAcceptTosData,\n PatchAdminUserProfilesByIdAcceptTosErrors,\n PatchAdminUserProfilesByIdAcceptTosResponses,\n PatchAdminUserProfilesByIdData,\n PatchAdminUserProfilesByIdDismissAnnouncementData,\n PatchAdminUserProfilesByIdDismissAnnouncementErrors,\n PatchAdminUserProfilesByIdDismissAnnouncementResponses,\n PatchAdminUserProfilesByIdDismissWelcomeData,\n PatchAdminUserProfilesByIdDismissWelcomeErrors,\n PatchAdminUserProfilesByIdDismissWelcomeResponses,\n PatchAdminUserProfilesByIdErrors,\n PatchAdminUserProfilesByIdResponses,\n PatchAdminUsersAuthPasswordChangeData,\n PatchAdminUsersAuthPasswordChangeErrors,\n PatchAdminUsersAuthPasswordChangeResponses,\n PatchAdminUsersAuthResetPasswordData,\n PatchAdminUsersAuthResetPasswordErrors,\n PatchAdminUsersAuthResetPasswordResponses,\n PatchAdminUsersByIdAdminData,\n PatchAdminUsersByIdAdminEmailData,\n PatchAdminUsersByIdAdminEmailErrors,\n PatchAdminUsersByIdAdminEmailResponses,\n PatchAdminUsersByIdAdminErrors,\n PatchAdminUsersByIdAdminResponses,\n PatchAdminUsersByIdConfirmEmailData,\n PatchAdminUsersByIdConfirmEmailErrors,\n PatchAdminUsersByIdConfirmEmailResponses,\n PatchAdminUsersByIdResetPasswordData,\n PatchAdminUsersByIdResetPasswordErrors,\n PatchAdminUsersByIdResetPasswordResponses,\n PatchAdminVoiceSessionsByIdFinalizeData,\n PatchAdminVoiceSessionsByIdFinalizeErrors,\n PatchAdminVoiceSessionsByIdFinalizeResponses,\n PatchAdminVoiceSessionsByIdStopData,\n PatchAdminVoiceSessionsByIdStopErrors,\n PatchAdminVoiceSessionsByIdStopResponses,\n PatchAdminWalletAddonsByAddonSlugCancelData,\n PatchAdminWalletAddonsByAddonSlugCancelErrors,\n PatchAdminWalletAddonsByAddonSlugCancelResponses,\n PatchAdminWalletAddonsData,\n PatchAdminWalletAddonsErrors,\n PatchAdminWalletAddonsResponses,\n PatchAdminWalletCreditsData,\n PatchAdminWalletCreditsErrors,\n PatchAdminWalletCreditsResponses,\n PatchAdminWalletPlanData,\n PatchAdminWalletPlanErrors,\n PatchAdminWalletPlanResponses,\n PatchAdminWebhookConfigsByIdData,\n PatchAdminWebhookConfigsByIdErrors,\n PatchAdminWebhookConfigsByIdResponses,\n PatchAdminWebhookConfigsByIdRotateSecretData,\n PatchAdminWebhookConfigsByIdRotateSecretErrors,\n PatchAdminWebhookConfigsByIdRotateSecretResponses,\n PatchAdminWholesaleAgreementsByIdData,\n PatchAdminWholesaleAgreementsByIdErrors,\n PatchAdminWholesaleAgreementsByIdResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileData,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileErrors,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n PatchAdminWorkspacesByIdAllocateData,\n PatchAdminWorkspacesByIdAllocateErrors,\n PatchAdminWorkspacesByIdAllocateResponses,\n PatchAdminWorkspacesByIdData,\n PatchAdminWorkspacesByIdErrors,\n PatchAdminWorkspacesByIdPopulateHashesData,\n PatchAdminWorkspacesByIdPopulateHashesErrors,\n PatchAdminWorkspacesByIdPopulateHashesResponses,\n PatchAdminWorkspacesByIdResponses,\n PatchAdminWorkspacesByIdStorageSettingsData,\n PatchAdminWorkspacesByIdStorageSettingsErrors,\n PatchAdminWorkspacesByIdStorageSettingsResponses,\n PostAdminAgentsByIdAnalyzeTrainingData,\n PostAdminAgentsByIdAnalyzeTrainingErrors,\n PostAdminAgentsByIdAnalyzeTrainingResponses,\n PostAdminAgentsByIdCloneData,\n PostAdminAgentsByIdCloneErrors,\n PostAdminAgentsByIdCloneResponses,\n PostAdminAgentsByIdExportData,\n PostAdminAgentsByIdExportErrors,\n PostAdminAgentsByIdExportResponses,\n PostAdminAgentsByIdPublishVersionData,\n PostAdminAgentsByIdPublishVersionErrors,\n PostAdminAgentsByIdPublishVersionResponses,\n PostAdminAgentsByIdRestoreVersionData,\n PostAdminAgentsByIdRestoreVersionErrors,\n PostAdminAgentsByIdRestoreVersionResponses,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateData,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateErrors,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateResponses,\n PostAdminAgentsByIdSchemaVersionsData,\n PostAdminAgentsByIdSchemaVersionsErrors,\n PostAdminAgentsByIdSchemaVersionsResponses,\n PostAdminAgentsByIdTeachData,\n PostAdminAgentsByIdTeachErrors,\n PostAdminAgentsByIdTeachResponses,\n PostAdminAgentsByIdTestData,\n PostAdminAgentsByIdTestErrors,\n PostAdminAgentsByIdTestResponses,\n PostAdminAgentsByIdValidateData,\n PostAdminAgentsByIdValidateErrors,\n PostAdminAgentsByIdValidateResponses,\n PostAdminAgentsCloneForWorkspaceData,\n PostAdminAgentsCloneForWorkspaceErrors,\n PostAdminAgentsCloneForWorkspaceResponses,\n PostAdminAgentsImportData,\n PostAdminAgentsImportErrors,\n PostAdminAgentsImportResponses,\n PostAdminAgentsPredictData,\n PostAdminAgentsPredictErrors,\n PostAdminAgentsPredictResponses,\n PostAdminAgentTestResultsData,\n PostAdminAgentTestResultsErrors,\n PostAdminAgentTestResultsResponses,\n PostAdminAgentVersionComparisonsData,\n PostAdminAgentVersionComparisonsErrors,\n PostAdminAgentVersionComparisonsResponses,\n PostAdminAgentVersionsByIdAddSystemFieldData,\n PostAdminAgentVersionsByIdAddSystemFieldErrors,\n PostAdminAgentVersionsByIdAddSystemFieldResponses,\n PostAdminAgentVersionsByIdRemoveSystemFieldData,\n PostAdminAgentVersionsByIdRemoveSystemFieldErrors,\n PostAdminAgentVersionsByIdRemoveSystemFieldResponses,\n PostAdminAgentVersionsByIdSetSystemFieldsData,\n PostAdminAgentVersionsByIdSetSystemFieldsErrors,\n PostAdminAgentVersionsByIdSetSystemFieldsResponses,\n PostAdminAgentVersionsData,\n PostAdminAgentVersionsErrors,\n PostAdminAgentVersionsResponses,\n PostAdminAiChunksSearchData,\n PostAdminAiChunksSearchErrors,\n PostAdminAiChunksSearchResponses,\n PostAdminAiConversationsData,\n PostAdminAiConversationsErrors,\n PostAdminAiConversationsResponses,\n PostAdminAiEmbedData,\n PostAdminAiEmbedErrors,\n PostAdminAiEmbedResponses,\n PostAdminAiGraphNodesData,\n PostAdminAiGraphNodesErrors,\n PostAdminAiGraphNodesResponses,\n PostAdminAiMessagesData,\n PostAdminAiMessagesErrors,\n PostAdminAiMessagesResponses,\n PostAdminAiSearchAdvancedData,\n PostAdminAiSearchAdvancedErrors,\n PostAdminAiSearchAdvancedResponses,\n PostAdminAiSearchData,\n PostAdminAiSearchErrors,\n PostAdminAiSearchResponses,\n PostAdminApiKeysData,\n PostAdminApiKeysErrors,\n PostAdminApiKeysResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewData,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewErrors,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestData,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestErrors,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesData,\n PostAdminApplicationsByApplicationIdEmailTemplatesErrors,\n PostAdminApplicationsByApplicationIdEmailTemplatesResponses,\n PostAdminApplicationsData,\n PostAdminApplicationsErrors,\n PostAdminApplicationsResponses,\n PostAdminBreachIncidentsData,\n PostAdminBreachIncidentsErrors,\n PostAdminBreachIncidentsResponses,\n PostAdminBucketsData,\n PostAdminBucketsErrors,\n PostAdminBucketsResponses,\n PostAdminCatalogOptionTypesData,\n PostAdminCatalogOptionTypesErrors,\n PostAdminCatalogOptionTypesResponses,\n PostAdminCatalogOptionValuesData,\n PostAdminCatalogOptionValuesErrors,\n PostAdminCatalogOptionValuesResponses,\n PostAdminCatalogPriceListEntriesData,\n PostAdminCatalogPriceListEntriesErrors,\n PostAdminCatalogPriceListEntriesResponses,\n PostAdminCatalogPriceListsData,\n PostAdminCatalogPriceListsErrors,\n PostAdminCatalogPriceListsResponses,\n PostAdminCatalogProductClassificationsData,\n PostAdminCatalogProductClassificationsErrors,\n PostAdminCatalogProductClassificationsResponses,\n PostAdminCatalogProductsData,\n PostAdminCatalogProductsErrors,\n PostAdminCatalogProductsResponses,\n PostAdminCatalogProductVariantsData,\n PostAdminCatalogProductVariantsErrors,\n PostAdminCatalogProductVariantsResponses,\n PostAdminCatalogStockLocationsData,\n PostAdminCatalogStockLocationsErrors,\n PostAdminCatalogStockLocationsResponses,\n PostAdminCatalogTaxonomiesData,\n PostAdminCatalogTaxonomiesErrors,\n PostAdminCatalogTaxonomiesResponses,\n PostAdminCatalogTaxonomyNodesData,\n PostAdminCatalogTaxonomyNodesErrors,\n PostAdminCatalogTaxonomyNodesResponses,\n PostAdminCatalogVariantOptionValuesData,\n PostAdminCatalogVariantOptionValuesErrors,\n PostAdminCatalogVariantOptionValuesResponses,\n PostAdminCatalogViewOverridesData,\n PostAdminCatalogViewOverridesErrors,\n PostAdminCatalogViewOverridesResponses,\n PostAdminCatalogViewRulesData,\n PostAdminCatalogViewRulesErrors,\n PostAdminCatalogViewRulesResponses,\n PostAdminCatalogViewsData,\n PostAdminCatalogViewsErrors,\n PostAdminCatalogViewsResponses,\n PostAdminConfigsData,\n PostAdminConfigsErrors,\n PostAdminConfigsResponses,\n PostAdminConnectorsByIdEdamamRecipesGetData,\n PostAdminConnectorsByIdEdamamRecipesGetErrors,\n PostAdminConnectorsByIdEdamamRecipesGetResponses,\n PostAdminConnectorsByIdEdamamRecipesSearchData,\n PostAdminConnectorsByIdEdamamRecipesSearchErrors,\n PostAdminConnectorsByIdEdamamRecipesSearchResponses,\n PostAdminConnectorsCredentialsByIdRefreshData,\n PostAdminConnectorsCredentialsByIdRefreshErrors,\n PostAdminConnectorsCredentialsByIdRefreshResponses,\n PostAdminConnectorsData,\n PostAdminConnectorsErrors,\n PostAdminConnectorsFullscriptCheckPatientData,\n PostAdminConnectorsFullscriptCheckPatientErrors,\n PostAdminConnectorsFullscriptCheckPatientResponses,\n PostAdminConnectorsFullscriptCreatePatientData,\n PostAdminConnectorsFullscriptCreatePatientErrors,\n PostAdminConnectorsFullscriptCreatePatientResponses,\n PostAdminConnectorsFullscriptSessionGrantData,\n PostAdminConnectorsFullscriptSessionGrantErrors,\n PostAdminConnectorsFullscriptSessionGrantResponses,\n PostAdminConnectorsOauthCallbackData,\n PostAdminConnectorsOauthCallbackErrors,\n PostAdminConnectorsOauthCallbackResponses,\n PostAdminConnectorsOauthInitiateData,\n PostAdminConnectorsOauthInitiateErrors,\n PostAdminConnectorsOauthInitiateResponses,\n PostAdminConnectorsResponses,\n PostAdminConsentRecordsData,\n PostAdminConsentRecordsErrors,\n PostAdminConsentRecordsResponses,\n PostAdminCrawlerJobsData,\n PostAdminCrawlerJobsErrors,\n PostAdminCrawlerJobsResponses,\n PostAdminCrawlerSchedulesData,\n PostAdminCrawlerSchedulesErrors,\n PostAdminCrawlerSchedulesResponses,\n PostAdminCrawlerSiteConfigsData,\n PostAdminCrawlerSiteConfigsErrors,\n PostAdminCrawlerSiteConfigsResponses,\n PostAdminCreditPackagesData,\n PostAdminCreditPackagesErrors,\n PostAdminCreditPackagesResponses,\n PostAdminCrmActivitiesData,\n PostAdminCrmActivitiesErrors,\n PostAdminCrmActivitiesResponses,\n PostAdminCrmCompaniesData,\n PostAdminCrmCompaniesErrors,\n PostAdminCrmCompaniesResponses,\n PostAdminCrmContactsByIdUnarchiveData,\n PostAdminCrmContactsByIdUnarchiveErrors,\n PostAdminCrmContactsByIdUnarchiveResponses,\n PostAdminCrmContactsData,\n PostAdminCrmContactsErrors,\n PostAdminCrmContactsResponses,\n PostAdminCrmCustomEntitiesData,\n PostAdminCrmCustomEntitiesErrors,\n PostAdminCrmCustomEntitiesResponses,\n PostAdminCrmDealProductsData,\n PostAdminCrmDealProductsErrors,\n PostAdminCrmDealProductsResponses,\n PostAdminCrmDealsData,\n PostAdminCrmDealsErrors,\n PostAdminCrmDealsResponses,\n PostAdminCrmExportsData,\n PostAdminCrmExportsErrors,\n PostAdminCrmExportsResponses,\n PostAdminCrmPipelinesData,\n PostAdminCrmPipelinesErrors,\n PostAdminCrmPipelinesResponses,\n PostAdminCrmPipelineStagesData,\n PostAdminCrmPipelineStagesErrors,\n PostAdminCrmPipelineStagesResponses,\n PostAdminCrmRelationshipsData,\n PostAdminCrmRelationshipsErrors,\n PostAdminCrmRelationshipsResponses,\n PostAdminCrmRelationshipTypesData,\n PostAdminCrmRelationshipTypesErrors,\n PostAdminCrmRelationshipTypesResponses,\n PostAdminCustomersData,\n PostAdminCustomersErrors,\n PostAdminCustomersResponses,\n PostAdminDataSubjectRequestsData,\n PostAdminDataSubjectRequestsErrors,\n PostAdminDataSubjectRequestsResponses,\n PostAdminDocumentsBulkDeleteData,\n PostAdminDocumentsBulkDeleteErrors,\n PostAdminDocumentsBulkDeleteResponses,\n PostAdminDocumentsPresignedUploadData,\n PostAdminDocumentsPresignedUploadErrors,\n PostAdminDocumentsPresignedUploadResponses,\n PostAdminEmailMarketingCampaignsByIdAnalyzeData,\n PostAdminEmailMarketingCampaignsByIdAnalyzeErrors,\n PostAdminEmailMarketingCampaignsByIdAnalyzeResponses,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupData,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupErrors,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupResponses,\n PostAdminEmailMarketingCampaignsByIdExportData,\n PostAdminEmailMarketingCampaignsByIdExportErrors,\n PostAdminEmailMarketingCampaignsByIdExportResponses,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsData,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsErrors,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsResponses,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsData,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsErrors,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesData,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesErrors,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsData,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsErrors,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsResponses,\n PostAdminEmailMarketingCampaignsByIdSendData,\n PostAdminEmailMarketingCampaignsByIdSendErrors,\n PostAdminEmailMarketingCampaignsByIdSendResponses,\n PostAdminEmailMarketingCampaignsData,\n PostAdminEmailMarketingCampaignsErrors,\n PostAdminEmailMarketingCampaignsResponses,\n PostAdminEmailMarketingSenderProfilesData,\n PostAdminEmailMarketingSenderProfilesErrors,\n PostAdminEmailMarketingSenderProfilesResponses,\n PostAdminEmailMarketingSequencesData,\n PostAdminEmailMarketingSequencesErrors,\n PostAdminEmailMarketingSequencesResponses,\n PostAdminEmailMarketingSequenceStepsData,\n PostAdminEmailMarketingSequenceStepsErrors,\n PostAdminEmailMarketingSequenceStepsResponses,\n PostAdminEmailMarketingTemplatesData,\n PostAdminEmailMarketingTemplatesErrors,\n PostAdminEmailMarketingTemplatesResponses,\n PostAdminExtractionBatchesData,\n PostAdminExtractionBatchesErrors,\n PostAdminExtractionBatchesResponses,\n PostAdminExtractionConfigEnumsData,\n PostAdminExtractionConfigEnumsErrors,\n PostAdminExtractionConfigEnumsResponses,\n PostAdminExtractionDocumentsBeginUploadData,\n PostAdminExtractionDocumentsBeginUploadErrors,\n PostAdminExtractionDocumentsBeginUploadResponses,\n PostAdminExtractionDocumentsBulkReprocessData,\n PostAdminExtractionDocumentsBulkReprocessErrors,\n PostAdminExtractionDocumentsBulkReprocessResponses,\n PostAdminExtractionDocumentsFindOrBeginUploadData,\n PostAdminExtractionDocumentsFindOrBeginUploadErrors,\n PostAdminExtractionDocumentsFindOrBeginUploadResponses,\n PostAdminExtractionDocumentsUploadData,\n PostAdminExtractionDocumentsUploadErrors,\n PostAdminExtractionDocumentsUploadResponses,\n PostAdminExtractionSchemaDiscoveriesBootstrapData,\n PostAdminExtractionSchemaDiscoveriesBootstrapErrors,\n PostAdminExtractionSchemaDiscoveriesBootstrapResponses,\n PostAdminExtractionSchemaDiscoveriesData,\n PostAdminExtractionSchemaDiscoveriesErrors,\n PostAdminExtractionSchemaDiscoveriesResponses,\n PostAdminExtractionWorkflowsData,\n PostAdminExtractionWorkflowsErrors,\n PostAdminExtractionWorkflowsResponses,\n PostAdminFieldTemplatesData,\n PostAdminFieldTemplatesErrors,\n PostAdminFieldTemplatesResponses,\n PostAdminImpactAssessmentsData,\n PostAdminImpactAssessmentsErrors,\n PostAdminImpactAssessmentsResponses,\n PostAdminInvitationsAcceptByTokenData,\n PostAdminInvitationsAcceptByTokenErrors,\n PostAdminInvitationsAcceptByTokenResponses,\n PostAdminInvitationsData,\n PostAdminInvitationsErrors,\n PostAdminInvitationsResponses,\n PostAdminIsvCrmChannelCaptureConfigData,\n PostAdminIsvCrmChannelCaptureConfigErrors,\n PostAdminIsvCrmChannelCaptureConfigResponses,\n PostAdminIsvCrmEntityTypesData,\n PostAdminIsvCrmEntityTypesErrors,\n PostAdminIsvCrmEntityTypesResponses,\n PostAdminIsvCrmFieldDefinitionsData,\n PostAdminIsvCrmFieldDefinitionsErrors,\n PostAdminIsvCrmFieldDefinitionsResponses,\n PostAdminIsvCrmSyncConfigsData,\n PostAdminIsvCrmSyncConfigsErrors,\n PostAdminIsvCrmSyncConfigsResponses,\n PostAdminIsvRevenueData,\n PostAdminIsvRevenueErrors,\n PostAdminIsvRevenueResponses,\n PostAdminIsvSettlementsData,\n PostAdminIsvSettlementsErrors,\n PostAdminIsvSettlementsResponses,\n PostAdminLegalDocumentsData,\n PostAdminLegalDocumentsErrors,\n PostAdminLegalDocumentsResponses,\n PostAdminLlmAnalyticsData,\n PostAdminLlmAnalyticsErrors,\n PostAdminLlmAnalyticsResponses,\n PostAdminMessagesData,\n PostAdminMessagesErrors,\n PostAdminMessagesResponses,\n PostAdminNotificationMethodsData,\n PostAdminNotificationMethodsErrors,\n PostAdminNotificationMethodsResponses,\n PostAdminNotificationPreferencesData,\n PostAdminNotificationPreferencesErrors,\n PostAdminNotificationPreferencesResponses,\n PostAdminPaymentMethodsData,\n PostAdminPaymentMethodsErrors,\n PostAdminPaymentMethodsResponses,\n PostAdminPaymentMethodsTokenizeData,\n PostAdminPaymentMethodsTokenizeErrors,\n PostAdminPaymentMethodsTokenizeResponses,\n PostAdminPaymentsData,\n PostAdminPaymentsErrors,\n PostAdminPaymentsResponses,\n PostAdminPlansData,\n PostAdminPlansErrors,\n PostAdminPlansResponses,\n PostAdminPlatformPricingConfigsData,\n PostAdminPlatformPricingConfigsErrors,\n PostAdminPlatformPricingConfigsResponses,\n PostAdminPostProcessingHooksData,\n PostAdminPostProcessingHooksErrors,\n PostAdminPostProcessingHooksResponses,\n PostAdminPricingRulesData,\n PostAdminPricingRulesErrors,\n PostAdminPricingRulesResponses,\n PostAdminPricingStrategiesData,\n PostAdminPricingStrategiesErrors,\n PostAdminPricingStrategiesResponses,\n PostAdminProcessingActivitiesData,\n PostAdminProcessingActivitiesErrors,\n PostAdminProcessingActivitiesResponses,\n PostAdminRetentionPoliciesData,\n PostAdminRetentionPoliciesErrors,\n PostAdminRetentionPoliciesResponses,\n PostAdminRolesData,\n PostAdminRolesErrors,\n PostAdminRolesResponses,\n PostAdminSchedulingAvailabilityRulesData,\n PostAdminSchedulingAvailabilityRulesErrors,\n PostAdminSchedulingAvailabilityRulesResponses,\n PostAdminSchedulingBookingsData,\n PostAdminSchedulingBookingsErrors,\n PostAdminSchedulingBookingsResponses,\n PostAdminSchedulingCalendarSyncsData,\n PostAdminSchedulingCalendarSyncsErrors,\n PostAdminSchedulingCalendarSyncsResponses,\n PostAdminSchedulingEventsData,\n PostAdminSchedulingEventsErrors,\n PostAdminSchedulingEventsResponses,\n PostAdminSchedulingEventTypesData,\n PostAdminSchedulingEventTypesErrors,\n PostAdminSchedulingEventTypesResponses,\n PostAdminSchedulingLocationsData,\n PostAdminSchedulingLocationsErrors,\n PostAdminSchedulingLocationsResponses,\n PostAdminSchedulingParticipantsData,\n PostAdminSchedulingParticipantsErrors,\n PostAdminSchedulingParticipantsResponses,\n PostAdminSchedulingRemindersData,\n PostAdminSchedulingRemindersErrors,\n PostAdminSchedulingRemindersResponses,\n PostAdminSearchBatchData,\n PostAdminSearchBatchErrors,\n PostAdminSearchBatchResponses,\n PostAdminSearchReindexData,\n PostAdminSearchReindexErrors,\n PostAdminSearchReindexResponses,\n PostAdminSearchSavedByIdRunData,\n PostAdminSearchSavedByIdRunErrors,\n PostAdminSearchSavedByIdRunResponses,\n PostAdminSearchSavedData,\n PostAdminSearchSavedErrors,\n PostAdminSearchSavedResponses,\n PostAdminSettlementsData,\n PostAdminSettlementsErrors,\n PostAdminSettlementsResponses,\n PostAdminStorageFilesData,\n PostAdminStorageFilesErrors,\n PostAdminStorageFilesResponses,\n PostAdminSubscriptionsData,\n PostAdminSubscriptionsErrors,\n PostAdminSubscriptionsResponses,\n PostAdminSysAiConfigData,\n PostAdminSysAiConfigErrors,\n PostAdminSysAiConfigResponses,\n PostAdminSysSemanticCacheClearData,\n PostAdminSysSemanticCacheClearErrors,\n PostAdminSysSemanticCacheClearResponses,\n PostAdminSystemMessagesData,\n PostAdminSystemMessagesErrors,\n PostAdminSystemMessagesResponses,\n PostAdminTenantMembershipsData,\n PostAdminTenantMembershipsErrors,\n PostAdminTenantMembershipsResponses,\n PostAdminTenantPricingOverridesData,\n PostAdminTenantPricingOverridesErrors,\n PostAdminTenantPricingOverridesResponses,\n PostAdminTenantsByIdCreditData,\n PostAdminTenantsByIdCreditErrors,\n PostAdminTenantsByIdCreditResponses,\n PostAdminTenantsByIdSchedulePurgeData,\n PostAdminTenantsByIdSchedulePurgeErrors,\n PostAdminTenantsByIdSchedulePurgeResponses,\n PostAdminTenantsData,\n PostAdminTenantsErrors,\n PostAdminTenantsIsvData,\n PostAdminTenantsIsvErrors,\n PostAdminTenantsIsvResponses,\n PostAdminTenantsResponses,\n PostAdminThreadsActiveData,\n PostAdminThreadsActiveErrors,\n PostAdminThreadsActiveResponses,\n PostAdminThreadsByIdExportData,\n PostAdminThreadsByIdExportErrors,\n PostAdminThreadsByIdExportResponses,\n PostAdminThreadsByIdForkData,\n PostAdminThreadsByIdForkErrors,\n PostAdminThreadsByIdForkResponses,\n PostAdminThreadsByIdMessagesData,\n PostAdminThreadsByIdMessagesErrors,\n PostAdminThreadsByIdMessagesResponses,\n PostAdminThreadsByIdSummarizeData,\n PostAdminThreadsByIdSummarizeErrors,\n PostAdminThreadsByIdSummarizeResponses,\n PostAdminThreadsData,\n PostAdminThreadsErrors,\n PostAdminThreadsResponses,\n PostAdminTokensData,\n PostAdminTokensErrors,\n PostAdminTokensResponses,\n PostAdminTrainingExamplesBulkData,\n PostAdminTrainingExamplesBulkDeleteData,\n PostAdminTrainingExamplesBulkDeleteErrors,\n PostAdminTrainingExamplesBulkDeleteResponses,\n PostAdminTrainingExamplesBulkErrors,\n PostAdminTrainingExamplesBulkResponses,\n PostAdminTrainingExamplesData,\n PostAdminTrainingExamplesErrors,\n PostAdminTrainingExamplesResponses,\n PostAdminTrainingExamplesSearchData,\n PostAdminTrainingExamplesSearchErrors,\n PostAdminTrainingExamplesSearchResponses,\n PostAdminUserProfilesData,\n PostAdminUserProfilesErrors,\n PostAdminUserProfilesResponses,\n PostAdminUsersAuthConfirmData,\n PostAdminUsersAuthConfirmErrors,\n PostAdminUsersAuthConfirmResponses,\n PostAdminUsersAuthLoginData,\n PostAdminUsersAuthLoginErrors,\n PostAdminUsersAuthLoginResponses,\n PostAdminUsersAuthMagicLinkLoginData,\n PostAdminUsersAuthMagicLinkLoginErrors,\n PostAdminUsersAuthMagicLinkLoginResponses,\n PostAdminUsersAuthMagicLinkRequestData,\n PostAdminUsersAuthMagicLinkRequestErrors,\n PostAdminUsersAuthMagicLinkRequestResponses,\n PostAdminUsersAuthRegisterData,\n PostAdminUsersAuthRegisterErrors,\n PostAdminUsersAuthRegisterResponses,\n PostAdminUsersAuthRegisterWithOidcData,\n PostAdminUsersAuthRegisterWithOidcErrors,\n PostAdminUsersAuthRegisterWithOidcResponses,\n PostAdminUsersAuthResendConfirmationData,\n PostAdminUsersAuthResendConfirmationErrors,\n PostAdminUsersAuthResendConfirmationResponses,\n PostAdminUsersAuthResetPasswordRequestData,\n PostAdminUsersAuthResetPasswordRequestErrors,\n PostAdminUsersAuthResetPasswordRequestResponses,\n PostAdminUsersRegisterIsvData,\n PostAdminUsersRegisterIsvErrors,\n PostAdminUsersRegisterIsvResponses,\n PostAdminVoiceSessionsData,\n PostAdminVoiceSessionsErrors,\n PostAdminVoiceSessionsResponses,\n PostAdminWebhookConfigsBulkDisableData,\n PostAdminWebhookConfigsBulkDisableErrors,\n PostAdminWebhookConfigsBulkDisableResponses,\n PostAdminWebhookConfigsBulkEnableData,\n PostAdminWebhookConfigsBulkEnableErrors,\n PostAdminWebhookConfigsBulkEnableResponses,\n PostAdminWebhookConfigsByIdReplayData,\n PostAdminWebhookConfigsByIdReplayErrors,\n PostAdminWebhookConfigsByIdReplayResponses,\n PostAdminWebhookConfigsByIdTestData,\n PostAdminWebhookConfigsByIdTestErrors,\n PostAdminWebhookConfigsByIdTestResponses,\n PostAdminWebhookConfigsData,\n PostAdminWebhookConfigsErrors,\n PostAdminWebhookConfigsResponses,\n PostAdminWebhookDeliveriesBulkRetryData,\n PostAdminWebhookDeliveriesBulkRetryErrors,\n PostAdminWebhookDeliveriesBulkRetryResponses,\n PostAdminWebhookDeliveriesByIdRetryData,\n PostAdminWebhookDeliveriesByIdRetryErrors,\n PostAdminWebhookDeliveriesByIdRetryResponses,\n PostAdminWholesaleAgreementsData,\n PostAdminWholesaleAgreementsErrors,\n PostAdminWholesaleAgreementsResponses,\n PostAdminWorkspaceMembershipsData,\n PostAdminWorkspaceMembershipsErrors,\n PostAdminWorkspaceMembershipsResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedData,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedErrors,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsData,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n PostAdminWorkspacesData,\n PostAdminWorkspacesErrors,\n PostAdminWorkspacesResponses,\n} from \"./types.gen.js\";\n\nexport type Options<\n TData extends TDataShape = TDataShape,\n ThrowOnError extends boolean = boolean,\n> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * List workspaces\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspaces = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesResponses,\n GetAdminWorkspacesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces\",\n ...options,\n });\n\n/**\n * Create workspaces\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWorkspaces = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminWorkspacesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspacesResponses,\n PostAdminWorkspacesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List audit chain entries\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAuditChainEntries = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAuditChainEntriesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditChainEntriesResponses,\n GetAdminAuditChainEntriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-chain-entries\",\n ...options,\n });\n\n/**\n * List wallet\n *\n * Reads the wallet for the current tenant\n */\nexport const getAdminWallet = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWalletData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletResponses,\n GetAdminWalletErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet\",\n ...options,\n });\n\n/**\n * Update dismiss welcome\n *\n * Dismiss welcome message - merges with existing preferences\n */\nexport const patchAdminUserProfilesByIdDismissWelcome = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUserProfilesByIdDismissWelcomeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdDismissWelcomeResponses,\n PatchAdminUserProfilesByIdDismissWelcomeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}/dismiss-welcome\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List stats\n *\n * Get notification log statistics\n */\nexport const getAdminNotificationLogsStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationLogsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationLogsStatsResponses,\n GetAdminNotificationLogsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-logs/stats\",\n ...options,\n });\n\n/**\n * Delete batches\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminExtractionBatchesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionBatchesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionBatchesByIdResponses,\n DeleteAdminExtractionBatchesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/{id}\",\n ...options,\n });\n\n/**\n * Get batches\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionBatchesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionBatchesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionBatchesByIdResponses,\n GetAdminExtractionBatchesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/{id}\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogPriceSuggestionsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Create option values\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogOptionValues = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogOptionValuesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogOptionValuesResponses,\n PostAdminCatalogOptionValuesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List applications\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminApplications = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApplicationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsResponses,\n GetAdminApplicationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications\",\n ...options,\n });\n\n/**\n * Create applications\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminApplications = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminApplicationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsResponses,\n PostAdminApplicationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update status\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminDataSubjectRequestsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminDataSubjectRequestsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminDataSubjectRequestsByIdStatusResponses,\n PatchAdminDataSubjectRequestsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests/{id}/status\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete products\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogProductsByIdResponses,\n DeleteAdminCatalogProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/{id}\",\n ...options,\n });\n\n/**\n * Get products\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductsByIdResponses,\n GetAdminCatalogProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/{id}\",\n ...options,\n });\n\n/**\n * Update products\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogProductsByIdResponses,\n PatchAdminCatalogProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get participants\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingParticipantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingParticipantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingParticipantsByIdResponses,\n GetAdminSchedulingParticipantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants/{id}\",\n ...options,\n });\n\n/**\n * Update participants\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingParticipantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingParticipantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingParticipantsByIdResponses,\n PatchAdminSchedulingParticipantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List messages\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminMessages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesResponses,\n GetAdminMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages\",\n ...options,\n });\n\n/**\n * Create messages\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminMessages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminMessagesResponses,\n PostAdminMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List access logs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAccessLogs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccessLogsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccessLogsResponses,\n GetAdminAccessLogsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/access-logs\",\n ...options,\n });\n\n/**\n * List field templates\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminFieldTemplates = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminFieldTemplatesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminFieldTemplatesResponses,\n GetAdminFieldTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates\",\n ...options,\n });\n\n/**\n * Create field templates\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminFieldTemplates = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminFieldTemplatesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminFieldTemplatesResponses,\n PostAdminFieldTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List connectors\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConnectors = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConnectorsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsResponses,\n GetAdminConnectorsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors\",\n ...options,\n });\n\n/**\n * Create connectors\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminConnectors = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminConnectorsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsResponses,\n PostAdminConnectorsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete view overrides\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogViewOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogViewOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogViewOverridesByIdResponses,\n DeleteAdminCatalogViewOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-overrides/{id}\",\n ...options,\n });\n\n/**\n * Update view overrides\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogViewOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogViewOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogViewOverridesByIdResponses,\n PatchAdminCatalogViewOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-overrides/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create view overrides\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogViewOverrides = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogViewOverridesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogViewOverridesResponses,\n PostAdminCatalogViewOverridesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-overrides\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete relationship types\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmRelationshipTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmRelationshipTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmRelationshipTypesByIdResponses,\n DeleteAdminCrmRelationshipTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types/{id}\",\n ...options,\n });\n\n/**\n * Get relationship types\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmRelationshipTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmRelationshipTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipTypesByIdResponses,\n GetAdminCrmRelationshipTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types/{id}\",\n ...options,\n });\n\n/**\n * Update relationship types\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrmRelationshipTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmRelationshipTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmRelationshipTypesByIdResponses,\n PatchAdminCrmRelationshipTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update resume\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSequencesByIdResume = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSequencesByIdResumeData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSequencesByIdResumeResponses,\n PatchAdminEmailMarketingSequencesByIdResumeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/{id}/resume\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete price list entries\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogPriceListEntriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogPriceListEntriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogPriceListEntriesByIdResponses,\n DeleteAdminCatalogPriceListEntriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries/{id}\",\n ...options,\n });\n\n/**\n * Update price list entries\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogPriceListEntriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogPriceListEntriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceListEntriesByIdResponses,\n PatchAdminCatalogPriceListEntriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create callback\n *\n * Exchange OAuth authorization code for credential.\n */\nexport const postAdminConnectorsOauthCallback = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsOauthCallbackData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsOauthCallbackResponses,\n PostAdminConnectorsOauthCallbackErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/oauth/callback\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create views\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogViews = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCatalogViewsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogViewsResponses,\n PostAdminCatalogViewsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List agents\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgents = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsResponses,\n GetAdminAgentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents\",\n ...options,\n });\n\n/**\n * Delete agent versions\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminAgentVersionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminAgentVersionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAgentVersionsByIdResponses,\n DeleteAdminAgentVersionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}\",\n ...options,\n });\n\n/**\n * Get agent versions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentVersionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentVersionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsByIdResponses,\n GetAdminAgentVersionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}\",\n ...options,\n });\n\n/**\n * Get by account\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLedgerByAccountByAccountId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLedgerByAccountByAccountIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLedgerByAccountByAccountIdResponses,\n GetAdminLedgerByAccountByAccountIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ledger/by-account/{account_id}\",\n ...options,\n });\n\n/**\n * Delete relationships\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmRelationshipsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmRelationshipsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmRelationshipsByIdResponses,\n DeleteAdminCrmRelationshipsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships/{id}\",\n ...options,\n });\n\n/**\n * Get relationships\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmRelationshipsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmRelationshipsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipsByIdResponses,\n GetAdminCrmRelationshipsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships/{id}\",\n ...options,\n });\n\n/**\n * Delete notification methods\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminNotificationMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminNotificationMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminNotificationMethodsByIdResponses,\n DeleteAdminNotificationMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}\",\n ...options,\n });\n\n/**\n * Get notification methods\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminNotificationMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationMethodsByIdResponses,\n GetAdminNotificationMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}\",\n ...options,\n });\n\n/**\n * Update notification methods\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminNotificationMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminNotificationMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdResponses,\n PatchAdminNotificationMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create create followup\n *\n * Create a re-engagement campaign for non-engaged recipients\n */\nexport const postAdminEmailMarketingCampaignsByIdCreateFollowup = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdCreateFollowupData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdCreateFollowupResponses,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/create-followup\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get history\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionResultsDocumentByDocumentIdHistory = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsDocumentByDocumentIdHistoryData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsDocumentByDocumentIdHistoryResponses,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/document/{document_id}/history\",\n ...options,\n });\n\n/**\n * Update soft delete\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminStorageFilesByIdSoftDelete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminStorageFilesByIdSoftDeleteData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminStorageFilesByIdSoftDeleteResponses,\n PatchAdminStorageFilesByIdSoftDeleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files/{id}/soft-delete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create deals\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmDeals = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmDealsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmDealsResponses,\n PostAdminCrmDealsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update resume\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResume =\n <ThrowOnError extends boolean = false>(\n options: Options<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}/resume\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List events\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingEvents = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSchedulingEventsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventsResponses,\n GetAdminSchedulingEventsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events\",\n ...options,\n });\n\n/**\n * Create events\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingEvents = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSchedulingEventsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingEventsResponses,\n PostAdminSchedulingEventsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete tenant memberships\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminTenantMembershipsByTenantIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminTenantMembershipsByTenantIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTenantMembershipsByTenantIdByUserIdResponses,\n DeleteAdminTenantMembershipsByTenantIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships/{tenant_id}/{user_id}\",\n ...options,\n });\n\n/**\n * Update tenant memberships\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminTenantMembershipsByTenantIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminTenantMembershipsByTenantIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminTenantMembershipsByTenantIdByUserIdResponses,\n PatchAdminTenantMembershipsByTenantIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships/{tenant_id}/{user_id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update accept\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogPriceSuggestionsByIdAccept = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogPriceSuggestionsByIdAcceptData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceSuggestionsByIdAcceptResponses,\n PatchAdminCatalogPriceSuggestionsByIdAcceptErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/{id}/accept\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List analytics\n *\n * List search analytics with tenant-based filtering\n */\nexport const getAdminSearchAnalytics = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchAnalyticsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchAnalyticsResponses,\n GetAdminSearchAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/analytics\",\n ...options,\n });\n\n/**\n * Get trained\n *\n * List documents that have been trained and not dismissed\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrained = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/trained\",\n ...options,\n });\n\n/**\n * List workspace stats\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminThreadsWorkspaceStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminThreadsWorkspaceStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsWorkspaceStatsResponses,\n GetAdminThreadsWorkspaceStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/workspace-stats\",\n ...options,\n });\n\n/**\n * Create preview\n *\n * Preview email template with sample data\n */\nexport const postAdminApplicationsByApplicationIdEmailTemplatesBySlugPreview = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}/preview\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete notification preferences\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminNotificationPreferencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminNotificationPreferencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminNotificationPreferencesByIdResponses,\n DeleteAdminNotificationPreferencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences/{id}\",\n ...options,\n });\n\n/**\n * Get notification preferences\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminNotificationPreferencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationPreferencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationPreferencesByIdResponses,\n GetAdminNotificationPreferencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences/{id}\",\n ...options,\n });\n\n/**\n * Update notification preferences\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminNotificationPreferencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminNotificationPreferencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationPreferencesByIdResponses,\n PatchAdminNotificationPreferencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create request\n *\n * Public action for users to request a password reset email\n */\nexport const postAdminUsersAuthResetPasswordRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthResetPasswordRequestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthResetPasswordRequestResponses,\n PostAdminUsersAuthResetPasswordRequestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/reset-password/request\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List calendar syncs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingCalendarSyncs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingCalendarSyncsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingCalendarSyncsResponses,\n GetAdminSchedulingCalendarSyncsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs\",\n ...options,\n });\n\n/**\n * Create calendar syncs\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingCalendarSyncs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingCalendarSyncsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingCalendarSyncsResponses,\n PostAdminSchedulingCalendarSyncsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create analyze\n *\n * Run post-campaign AI analysis with insights and recommendations\n */\nexport const postAdminEmailMarketingCampaignsByIdAnalyze = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdAnalyzeData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdAnalyzeResponses,\n PostAdminEmailMarketingCampaignsByIdAnalyzeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/analyze\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create custom entities\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmCustomEntities = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmCustomEntitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmCustomEntitiesResponses,\n PostAdminCrmCustomEntitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update credit\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminAccountsByIdCredit = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminAccountsByIdCreditData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminAccountsByIdCreditResponses,\n PatchAdminAccountsByIdCreditErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/{id}/credit\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create presigned upload\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminDocumentsPresignedUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminDocumentsPresignedUploadData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminDocumentsPresignedUploadResponses,\n PostAdminDocumentsPresignedUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/documents/presigned-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete workspaces\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminWorkspacesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminWorkspacesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminWorkspacesByIdResponses,\n DeleteAdminWorkspacesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}\",\n ...options,\n });\n\n/**\n * Get workspaces\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspacesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByIdResponses,\n GetAdminWorkspacesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}\",\n ...options,\n });\n\n/**\n * Update workspaces\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminWorkspacesById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWorkspacesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdResponses,\n PatchAdminWorkspacesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete entity types\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminIsvCrmEntityTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminIsvCrmEntityTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminIsvCrmEntityTypesByIdResponses,\n DeleteAdminIsvCrmEntityTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/{id}\",\n ...options,\n });\n\n/**\n * Get entity types\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvCrmEntityTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminIsvCrmEntityTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmEntityTypesByIdResponses,\n GetAdminIsvCrmEntityTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/{id}\",\n ...options,\n });\n\n/**\n * Update entity types\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminIsvCrmEntityTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmEntityTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmEntityTypesByIdResponses,\n PatchAdminIsvCrmEntityTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get analytics\n *\n * Get training analytics for a specific workspace\n */\nexport const getAdminWorkspacesByWorkspaceIdTrainingAnalytics = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsResponses,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/training/analytics\",\n ...options,\n });\n\n/**\n * List nodes\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAiGraphNodes = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAiGraphNodesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiGraphNodesResponses,\n GetAdminAiGraphNodesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes\",\n ...options,\n });\n\n/**\n * Create nodes\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAiGraphNodes = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiGraphNodesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiGraphNodesResponses,\n PostAdminAiGraphNodesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update reject\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingGeneratedEmailsByIdReject = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}/reject\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update profile\n *\n * Update the member's profile_attributes field\n */\nexport const patchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfile = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}/profile\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create resend confirmation\n *\n * Resend confirmation email to an unconfirmed user\n */\nexport const postAdminUsersAuthResendConfirmation = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthResendConfirmationData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthResendConfirmationResponses,\n PostAdminUsersAuthResendConfirmationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/resend-confirmation\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get sessions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTrainingSessionsAgentsByAgentIdSessions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminTrainingSessionsAgentsByAgentIdSessionsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingSessionsAgentsByAgentIdSessionsResponses,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-sessions/agents/{agent_id}/sessions\",\n ...options,\n });\n\n/**\n * Update cancel\n *\n * Cancel a processing document\n */\nexport const patchAdminExtractionDocumentsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdCancelResponses,\n PatchAdminExtractionDocumentsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List tenant pricing overrides\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenantPricingOverrides = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantPricingOverridesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantPricingOverridesResponses,\n GetAdminTenantPricingOverridesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides\",\n ...options,\n });\n\n/**\n * Create tenant pricing overrides\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTenantPricingOverrides = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantPricingOverridesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantPricingOverridesResponses,\n PostAdminTenantPricingOverridesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List status\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearchStatus = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchStatusResponses,\n GetAdminSearchStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/status\",\n ...options,\n });\n\n/**\n * List platform\n *\n * Platform-wide analytics summary (platform admin only)\n */\nexport const getAdminLlmAnalyticsPlatform = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLlmAnalyticsPlatformData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsPlatformResponses,\n GetAdminLlmAnalyticsPlatformErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/platform\",\n ...options,\n });\n\n/**\n * Create agent test results\n *\n * Run an agent version against a document and return the test result\n */\nexport const postAdminAgentTestResults = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentTestResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentTestResultsResponses,\n PostAdminAgentTestResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-test-results\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create replay\n *\n * Replay historical events to this webhook\n */\nexport const postAdminWebhookConfigsByIdReplay = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsByIdReplayData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsByIdReplayResponses,\n PostAdminWebhookConfigsByIdReplayErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/replay\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List me\n *\n * Get the currently authenticated user\n */\nexport const getAdminUsersMe = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeResponses,\n GetAdminUsersMeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me\",\n ...options,\n });\n\n/**\n * Update accept\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogClassificationSuggestionsByIdAccept = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogClassificationSuggestionsByIdAcceptData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogClassificationSuggestionsByIdAcceptResponses,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/{id}/accept\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update set budget\n *\n * Set or remove credit budget for this API key\n */\nexport const patchAdminApiKeysByIdSetBudget = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdSetBudgetData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdSetBudgetResponses,\n PatchAdminApiKeysByIdSetBudgetErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/set-budget\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete schedules\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrawlerSchedulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrawlerSchedulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrawlerSchedulesByIdResponses,\n DeleteAdminCrawlerSchedulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}\",\n ...options,\n });\n\n/**\n * Get schedules\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerSchedulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerSchedulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSchedulesByIdResponses,\n GetAdminCrawlerSchedulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}\",\n ...options,\n });\n\n/**\n * Update schedules\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrawlerSchedulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdResponses,\n PatchAdminCrawlerSchedulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List shared\n *\n * Workspaces where user has membership but NOT tenant membership (shared from external orgs)\n */\nexport const getAdminWorkspacesShared = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesSharedData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesSharedResponses,\n GetAdminWorkspacesSharedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/shared\",\n ...options,\n });\n\n/**\n * Get revisions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentVersionsByIdRevisions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionsByIdRevisionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsByIdRevisionsResponses,\n GetAdminAgentVersionsByIdRevisionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/revisions\",\n ...options,\n });\n\n/**\n * Get access logs\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAccessLogsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccessLogsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccessLogsByIdResponses,\n GetAdminAccessLogsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/access-logs/{id}\",\n ...options,\n });\n\n/**\n * Update archive\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingTemplatesByIdArchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdArchiveData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdArchiveResponses,\n PatchAdminEmailMarketingTemplatesByIdArchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/archive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List inherited\n *\n * List workspace members including inherited org owners/admins\n */\nexport const getAdminWorkspaceMembershipsInherited = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspaceMembershipsInheritedData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspaceMembershipsInheritedResponses,\n GetAdminWorkspaceMembershipsInheritedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/inherited\",\n ...options,\n });\n\n/**\n * Create bulk enable\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWebhookConfigsBulkEnable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsBulkEnableData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsBulkEnableResponses,\n PostAdminWebhookConfigsBulkEnableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/bulk-enable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get review queue\n *\n * Get prioritized review queue for active learning\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/review-queue\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogStockLocationsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * List data subject requests\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminDataSubjectRequests = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminDataSubjectRequestsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminDataSubjectRequestsResponses,\n GetAdminDataSubjectRequestsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests\",\n ...options,\n });\n\n/**\n * Create data subject requests\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminDataSubjectRequests = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminDataSubjectRequestsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminDataSubjectRequestsResponses,\n PostAdminDataSubjectRequestsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List transfers\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTransfers = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransfersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransfersResponses,\n GetAdminTransfersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transfers\",\n ...options,\n });\n\n/**\n * Get price list\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogPriceListEntriesPriceListByPriceListId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdResponses,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries/price-list/{price_list_id}\",\n ...options,\n });\n\n/**\n * Create clone for workspace\n *\n * Clone a system agent for workspace-specific customization\n */\nexport const postAdminAgentsCloneForWorkspace = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsCloneForWorkspaceData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsCloneForWorkspaceResponses,\n PostAdminAgentsCloneForWorkspaceErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/clone-for-workspace\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update status\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminBreachIncidentsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminBreachIncidentsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminBreachIncidentsByIdStatusResponses,\n PatchAdminBreachIncidentsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents/{id}/status\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete option types\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogOptionTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogOptionTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogOptionTypesByIdResponses,\n DeleteAdminCatalogOptionTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/{id}\",\n ...options,\n });\n\n/**\n * Get option types\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogOptionTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogOptionTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionTypesByIdResponses,\n GetAdminCatalogOptionTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/{id}\",\n ...options,\n });\n\n/**\n * Update option types\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogOptionTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogOptionTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogOptionTypesByIdResponses,\n PatchAdminCatalogOptionTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create credit\n *\n * Allocate credits to the tenant's liability account\n */\nexport const postAdminTenantsByIdCredit = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantsByIdCreditData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsByIdCreditResponses,\n PostAdminTenantsByIdCreditErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}/credit\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update include\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdInclude = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdIncludeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdIncludeResponses,\n PatchAdminExtractionDocumentsByIdIncludeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/include\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete customers\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCustomersById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminCustomersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCustomersByIdResponses,\n DeleteAdminCustomersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers/{id}\",\n ...options,\n });\n\n/**\n * Get customers\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCustomersById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCustomersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCustomersByIdResponses,\n GetAdminCustomersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers/{id}\",\n ...options,\n });\n\n/**\n * Update customers\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCustomersById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminCustomersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCustomersByIdResponses,\n PatchAdminCustomersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Delete deal products\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmDealProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmDealProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmDealProductsByIdResponses,\n DeleteAdminCrmDealProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deal-products/{id}\",\n ...options,\n });\n\n/**\n * Create view rules\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogViewRules = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCatalogViewRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogViewRulesResponses,\n PostAdminCatalogViewRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-rules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get agents\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdResponses,\n GetAdminAgentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}\",\n ...options,\n });\n\n/**\n * List settlements\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSettlements = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSettlementsResponses,\n GetAdminSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/settlements\",\n ...options,\n });\n\n/**\n * Create settlements\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSettlements = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSettlementsResponses,\n PostAdminSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/settlements\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get credentials\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConnectorsCredentialsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConnectorsCredentialsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsCredentialsByIdResponses,\n GetAdminConnectorsCredentialsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/credentials/{id}\",\n ...options,\n });\n\n/**\n * Create batches\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminExtractionBatches = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionBatchesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionBatchesResponses,\n PostAdminExtractionBatchesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update reprocess\n *\n * Re-extract document with current or specified schema version\n */\nexport const patchAdminExtractionDocumentsByIdReprocess = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdReprocessData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdReprocessResponses,\n PatchAdminExtractionDocumentsByIdReprocessErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/reprocess\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create export\n *\n * Export agent configuration and training examples\n */\nexport const postAdminAgentsByIdExport = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdExportData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdExportResponses,\n PostAdminAgentsByIdExportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/export\",\n ...options,\n });\n\n/**\n * List workspace memberships\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspaceMemberships = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspaceMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspaceMembershipsResponses,\n GetAdminWorkspaceMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships\",\n ...options,\n });\n\n/**\n * Create workspace memberships\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWorkspaceMemberships = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWorkspaceMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspaceMembershipsResponses,\n PostAdminWorkspaceMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete saved\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminSearchSavedById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminSearchSavedByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSearchSavedByIdResponses,\n DeleteAdminSearchSavedByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved/{id}\",\n ...options,\n });\n\n/**\n * Update saved\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSearchSavedById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminSearchSavedByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSearchSavedByIdResponses,\n PatchAdminSearchSavedByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update grant credits\n *\n * Allocates promotional credits to a specific tenant on behalf of the application\n */\nexport const patchAdminApplicationsByIdGrantCredits = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApplicationsByIdGrantCreditsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByIdGrantCreditsResponses,\n PatchAdminApplicationsByIdGrantCreditsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}/grant-credits\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get transfers\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTransfersById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransfersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransfersByIdResponses,\n GetAdminTransfersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transfers/{id}\",\n ...options,\n });\n\n/**\n * List platform pricing configs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPlatformPricingConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPlatformPricingConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlatformPricingConfigsResponses,\n GetAdminPlatformPricingConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs\",\n ...options,\n });\n\n/**\n * Create platform pricing configs\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminPlatformPricingConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPlatformPricingConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPlatformPricingConfigsResponses,\n PostAdminPlatformPricingConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List workspace\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLlmAnalyticsWorkspace = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLlmAnalyticsWorkspaceData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsWorkspaceResponses,\n GetAdminLlmAnalyticsWorkspaceErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/workspace\",\n ...options,\n });\n\n/**\n * Update cancel\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminWalletAddonsByAddonSlugCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWalletAddonsByAddonSlugCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletAddonsByAddonSlugCancelResponses,\n PatchAdminWalletAddonsByAddonSlugCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/addons/{addon_slug}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get events\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingEventsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingEventsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventsByIdResponses,\n GetAdminSchedulingEventsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events/{id}\",\n ...options,\n });\n\n/**\n * Update events\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingEventsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingEventsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingEventsByIdResponses,\n PatchAdminSchedulingEventsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update trigger\n *\n * Manually trigger a scheduled crawl immediately.\n */\nexport const patchAdminCrawlerSchedulesByIdTrigger = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdTriggerData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdTriggerResponses,\n PatchAdminCrawlerSchedulesByIdTriggerErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}/trigger\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create taxonomy nodes\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogTaxonomyNodes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogTaxonomyNodesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogTaxonomyNodesResponses,\n PostAdminCatalogTaxonomyNodesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get settlements\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSettlementsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSettlementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSettlementsByIdResponses,\n GetAdminSettlementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/settlements/{id}\",\n ...options,\n });\n\n/**\n * Create restore version\n *\n * Restore agent to a specific version\n */\nexport const postAdminAgentsByIdRestoreVersion = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdRestoreVersionData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdRestoreVersionResponses,\n PostAdminAgentsByIdRestoreVersionErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/restore-version\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List search\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminThreadsSearch = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsSearchResponses,\n GetAdminThreadsSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/search\",\n ...options,\n });\n\n/**\n * Get training examples\n *\n * List training examples for this agent\n */\nexport const getAdminAgentsByIdTrainingExamples = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentsByIdTrainingExamplesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdTrainingExamplesResponses,\n GetAdminAgentsByIdTrainingExamplesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/training-examples\",\n ...options,\n });\n\n/**\n * Delete calendar syncs\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}\",\n ...options,\n });\n\n/**\n * Update calendar syncs\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update change\n *\n * Change password for authenticated user with current password verification\n */\nexport const patchAdminUsersAuthPasswordChange = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersAuthPasswordChangeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersAuthPasswordChangeResponses,\n PatchAdminUsersAuthPasswordChangeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/password/change\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete views\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogViewsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogViewsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogViewsByIdResponses,\n DeleteAdminCatalogViewsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/{id}\",\n ...options,\n });\n\n/**\n * Get views\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogViewsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCatalogViewsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogViewsByIdResponses,\n GetAdminCatalogViewsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/{id}\",\n ...options,\n });\n\n/**\n * Update views\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogViewsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogViewsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogViewsByIdResponses,\n PatchAdminCatalogViewsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List tenant memberships\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenantMemberships = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTenantMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantMembershipsResponses,\n GetAdminTenantMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships\",\n ...options,\n });\n\n/**\n * Create tenant memberships\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTenantMemberships = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantMembershipsResponses,\n PostAdminTenantMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete product variants\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogProductVariantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogProductVariantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogProductVariantsByIdResponses,\n DeleteAdminCatalogProductVariantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/{id}\",\n ...options,\n });\n\n/**\n * Get product variants\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogProductVariantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogProductVariantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductVariantsByIdResponses,\n GetAdminCatalogProductVariantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/{id}\",\n ...options,\n });\n\n/**\n * Update product variants\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogProductVariantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogProductVariantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogProductVariantsByIdResponses,\n PatchAdminCatalogProductVariantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete tenant pricing overrides\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminTenantPricingOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminTenantPricingOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTenantPricingOverridesByIdResponses,\n DeleteAdminTenantPricingOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides/{id}\",\n ...options,\n });\n\n/**\n * Get tenant pricing overrides\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenantPricingOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantPricingOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantPricingOverridesByIdResponses,\n GetAdminTenantPricingOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides/{id}\",\n ...options,\n });\n\n/**\n * Update tenant pricing overrides\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminTenantPricingOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminTenantPricingOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminTenantPricingOverridesByIdResponses,\n PatchAdminTenantPricingOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete campaigns\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminEmailMarketingCampaignsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailMarketingCampaignsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingCampaignsByIdResponses,\n DeleteAdminEmailMarketingCampaignsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}\",\n ...options,\n });\n\n/**\n * Get campaigns\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingCampaignsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingCampaignsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingCampaignsByIdResponses,\n GetAdminEmailMarketingCampaignsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}\",\n ...options,\n });\n\n/**\n * Update campaigns\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingCampaignsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailMarketingCampaignsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingCampaignsByIdResponses,\n PatchAdminEmailMarketingCampaignsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete variant option values\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogVariantOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogVariantOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogVariantOptionValuesByIdResponses,\n DeleteAdminCatalogVariantOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/variant-option-values/{id}\",\n ...options,\n });\n\n/**\n * Create register\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Not required (public endpoint)\n * **Rate Limit:** 20 requests per minute\n *\n */\nexport const postAdminUsersAuthRegister = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthRegisterData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthRegisterResponses,\n PostAdminUsersAuthRegisterErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/register\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get webhook deliveries\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWebhookDeliveriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookDeliveriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookDeliveriesByIdResponses,\n GetAdminWebhookDeliveriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/{id}\",\n ...options,\n });\n\n/**\n * Update unarchive\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminThreadsByIdUnarchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminThreadsByIdUnarchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminThreadsByIdUnarchiveResponses,\n PatchAdminThreadsByIdUnarchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/unarchive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List resolve\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPricingRulesResolve = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPricingRulesResolveData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingRulesResolveResponses,\n GetAdminPricingRulesResolveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules/resolve\",\n ...options,\n });\n\n/**\n * Create activate\n *\n * Activate a specific schema version\n */\nexport const postAdminAgentsByIdSchemaVersionsByVersionIdActivate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateResponses,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions/{version_id}/activate\",\n ...options,\n });\n\n/**\n * List locations\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingLocations = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingLocationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingLocationsResponses,\n GetAdminSchedulingLocationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations\",\n ...options,\n });\n\n/**\n * Create locations\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingLocations = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingLocationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingLocationsResponses,\n PostAdminSchedulingLocationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get schema discoveries\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionSchemaDiscoveriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionSchemaDiscoveriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionSchemaDiscoveriesByIdResponses,\n GetAdminExtractionSchemaDiscoveriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/schema-discoveries/{id}\",\n ...options,\n });\n\n/**\n * Get calendar syncs\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingCalendarSyncsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingCalendarSyncsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingCalendarSyncsByIdResponses,\n GetAdminSchedulingCalendarSyncsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/{id}\",\n ...options,\n });\n\n/**\n * List results\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerResults = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerResultsResponses,\n GetAdminCrawlerResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/results\",\n ...options,\n });\n\n/**\n * List permissions\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPermissions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPermissionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsResponses,\n GetAdminPermissionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions\",\n ...options,\n });\n\n/**\n * Create predict\n *\n * Predicts the best agents for a given input\n */\nexport const postAdminAgentsPredict = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsPredictData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsPredictResponses,\n PostAdminAgentsPredictErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/predict\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update disable\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrawlerSchedulesByIdDisable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdDisableData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdDisableResponses,\n PatchAdminCrawlerSchedulesByIdDisableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}/disable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete api keys\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminApiKeysById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminApiKeysByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminApiKeysByIdResponses,\n DeleteAdminApiKeysByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}\",\n ...options,\n });\n\n/**\n * Get api keys\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminApiKeysById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysByIdResponses,\n GetAdminApiKeysByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}\",\n ...options,\n });\n\n/**\n * Update api keys\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminApiKeysById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminApiKeysByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdResponses,\n PatchAdminApiKeysByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create unarchive\n *\n * Restore an archived contact (clears deleted_at)\n */\nexport const postAdminCrmContactsByIdUnarchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmContactsByIdUnarchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmContactsByIdUnarchiveResponses,\n PostAdminCrmContactsByIdUnarchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}/unarchive\",\n ...options,\n });\n\n/**\n * Get isv settlements\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvSettlementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminIsvSettlementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvSettlementsByIdResponses,\n GetAdminIsvSettlementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements/{id}\",\n ...options,\n });\n\n/**\n * Update isv settlements\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminIsvSettlementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvSettlementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvSettlementsByIdResponses,\n PatchAdminIsvSettlementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete roles\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminRolesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminRolesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminRolesByIdResponses,\n DeleteAdminRolesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles/{id}\",\n ...options,\n });\n\n/**\n * Update roles\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminRolesById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminRolesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminRolesByIdResponses,\n PatchAdminRolesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete post processing hooks\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminPostProcessingHooksById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminPostProcessingHooksByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPostProcessingHooksByIdResponses,\n DeleteAdminPostProcessingHooksByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks/{id}\",\n ...options,\n });\n\n/**\n * Get post processing hooks\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPostProcessingHooksById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPostProcessingHooksByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPostProcessingHooksByIdResponses,\n GetAdminPostProcessingHooksByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks/{id}\",\n ...options,\n });\n\n/**\n * Update post processing hooks\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminPostProcessingHooksById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPostProcessingHooksByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPostProcessingHooksByIdResponses,\n PatchAdminPostProcessingHooksByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create run\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSearchSavedByIdRun = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSearchSavedByIdRunData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchSavedByIdRunResponses,\n PostAdminSearchSavedByIdRunErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved/{id}/run\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update complete\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSequencesByIdComplete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSequencesByIdCompleteData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSequencesByIdCompleteResponses,\n PatchAdminEmailMarketingSequencesByIdCompleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/{id}/complete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List invitations\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminInvitations = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminInvitationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminInvitationsResponses,\n GetAdminInvitationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations\",\n ...options,\n });\n\n/**\n * Create invitations\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminInvitations = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminInvitationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminInvitationsResponses,\n PostAdminInvitationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get classification suggestions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogClassificationSuggestionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogClassificationSuggestionsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogClassificationSuggestionsByIdResponses,\n GetAdminCatalogClassificationSuggestionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/{id}\",\n ...options,\n });\n\n/**\n * List storage breakdown\n *\n * Get storage breakdown by workspace\n */\nexport const getAdminWalletStorageBreakdown = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWalletStorageBreakdownData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletStorageBreakdownResponses,\n GetAdminWalletStorageBreakdownErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/storage-breakdown\",\n ...options,\n });\n\n/**\n * Get messages\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminThreadsByIdMessages = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminThreadsByIdMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsByIdMessagesResponses,\n GetAdminThreadsByIdMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/messages\",\n ...options,\n });\n\n/**\n * Create messages\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminThreadsByIdMessages = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminThreadsByIdMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdMessagesResponses,\n PostAdminThreadsByIdMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List participants\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingParticipants = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingParticipantsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingParticipantsResponses,\n GetAdminSchedulingParticipantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants\",\n ...options,\n });\n\n/**\n * Create participants\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingParticipants = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingParticipantsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingParticipantsResponses,\n PostAdminSchedulingParticipantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List tenants\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenants = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTenantsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsResponses,\n GetAdminTenantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants\",\n ...options,\n });\n\n/**\n * Create tenants\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTenants = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTenantsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsResponses,\n PostAdminTenantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete taxonomy nodes\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogTaxonomyNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogTaxonomyNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogTaxonomyNodesByIdResponses,\n DeleteAdminCatalogTaxonomyNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/{id}\",\n ...options,\n });\n\n/**\n * Get taxonomy nodes\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogTaxonomyNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogTaxonomyNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomyNodesByIdResponses,\n GetAdminCatalogTaxonomyNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/{id}\",\n ...options,\n });\n\n/**\n * Update taxonomy nodes\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogTaxonomyNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogTaxonomyNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogTaxonomyNodesByIdResponses,\n PatchAdminCatalogTaxonomyNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete training examples\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminTrainingExamplesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminTrainingExamplesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTrainingExamplesByIdResponses,\n DeleteAdminTrainingExamplesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/{id}\",\n ...options,\n });\n\n/**\n * Get training examples\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTrainingExamplesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTrainingExamplesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingExamplesByIdResponses,\n GetAdminTrainingExamplesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/{id}\",\n ...options,\n });\n\n/**\n * Update training examples\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminTrainingExamplesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminTrainingExamplesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminTrainingExamplesByIdResponses,\n PatchAdminTrainingExamplesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create contacts\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmContacts = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmContactsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmContactsResponses,\n PostAdminCrmContactsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create channel capture config\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminIsvCrmChannelCaptureConfig = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmChannelCaptureConfigData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmChannelCaptureConfigResponses,\n PostAdminIsvCrmChannelCaptureConfigErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/channel-capture-config\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmPipelinesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Delete results\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminExtractionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionResultsByIdResponses,\n DeleteAdminExtractionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}\",\n ...options,\n });\n\n/**\n * Get results\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsByIdResponses,\n GetAdminExtractionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}\",\n ...options,\n });\n\n/**\n * Update results\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionResultsByIdResponses,\n PatchAdminExtractionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List jobs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerJobs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerJobsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerJobsResponses,\n GetAdminCrawlerJobsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs\",\n ...options,\n });\n\n/**\n * Create jobs\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrawlerJobs = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrawlerJobsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrawlerJobsResponses,\n PostAdminCrawlerJobsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete contacts\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmContactsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmContactsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmContactsByIdResponses,\n DeleteAdminCrmContactsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}\",\n ...options,\n });\n\n/**\n * Get contacts\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmContactsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmContactsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmContactsByIdResponses,\n GetAdminCrmContactsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}\",\n ...options,\n });\n\n/**\n * Update contacts\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrmContactsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminCrmContactsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmContactsByIdResponses,\n PatchAdminCrmContactsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create confirm\n *\n * Confirm a user's email address using a confirmation token\n */\nexport const postAdminUsersAuthConfirm = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUsersAuthConfirmData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthConfirmResponses,\n PostAdminUsersAuthConfirmErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/confirm\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get recipients\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingRecipientsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingRecipientsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingRecipientsByIdResponses,\n GetAdminEmailMarketingRecipientsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/recipients/{id}\",\n ...options,\n });\n\n/**\n * Delete custom entities\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmCustomEntitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmCustomEntitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmCustomEntitiesByIdResponses,\n DeleteAdminCrmCustomEntitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{id}\",\n ...options,\n });\n\n/**\n * Get custom entities\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmCustomEntitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmCustomEntitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesByIdResponses,\n GetAdminCrmCustomEntitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{id}\",\n ...options,\n });\n\n/**\n * Update custom entities\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrmCustomEntitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmCustomEntitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmCustomEntitiesByIdResponses,\n PatchAdminCrmCustomEntitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List notification preferences\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminNotificationPreferences = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationPreferencesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationPreferencesResponses,\n GetAdminNotificationPreferencesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences\",\n ...options,\n });\n\n/**\n * Create notification preferences\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminNotificationPreferences = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminNotificationPreferencesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminNotificationPreferencesResponses,\n PostAdminNotificationPreferencesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create bulk delete\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTrainingExamplesBulkDelete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTrainingExamplesBulkDeleteData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesBulkDeleteResponses,\n PostAdminTrainingExamplesBulkDeleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/bulk-delete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete credit packages\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCreditPackagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCreditPackagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCreditPackagesByIdResponses,\n DeleteAdminCreditPackagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/{id}\",\n ...options,\n });\n\n/**\n * Get credit packages\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCreditPackagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCreditPackagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCreditPackagesByIdResponses,\n GetAdminCreditPackagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/{id}\",\n ...options,\n });\n\n/**\n * Update credit packages\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCreditPackagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCreditPackagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCreditPackagesByIdResponses,\n PatchAdminCreditPackagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete extraction workflows\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminExtractionWorkflowsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionWorkflowsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionWorkflowsByIdResponses,\n DeleteAdminExtractionWorkflowsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows/{id}\",\n ...options,\n });\n\n/**\n * Get extraction workflows\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionWorkflowsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionWorkflowsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionWorkflowsByIdResponses,\n GetAdminExtractionWorkflowsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows/{id}\",\n ...options,\n });\n\n/**\n * Update extraction workflows\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionWorkflowsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionWorkflowsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionWorkflowsByIdResponses,\n PatchAdminExtractionWorkflowsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create schema discoveries\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminExtractionSchemaDiscoveries = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionSchemaDiscoveriesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionSchemaDiscoveriesResponses,\n PostAdminExtractionSchemaDiscoveriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/schema-discoveries\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create product classifications\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogProductClassifications = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogProductClassificationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogProductClassificationsResponses,\n PostAdminCatalogProductClassificationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-classifications\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get tracking events\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingTrackingEventsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingTrackingEventsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingTrackingEventsByIdResponses,\n GetAdminEmailMarketingTrackingEventsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/tracking-events/{id}\",\n ...options,\n });\n\n/**\n * List sessions\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminVoiceSessions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminVoiceSessionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsResponses,\n GetAdminVoiceSessionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions\",\n ...options,\n });\n\n/**\n * Create sessions\n *\n * Start a new voice session with LiveKit room provisioning\n */\nexport const postAdminVoiceSessions = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminVoiceSessionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminVoiceSessionsResponses,\n PostAdminVoiceSessionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get document\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAiChunksDocumentByDocumentId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAiChunksDocumentByDocumentIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiChunksDocumentByDocumentIdResponses,\n GetAdminAiChunksDocumentByDocumentIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/chunks/document/{document_id}\",\n ...options,\n });\n\n/**\n * Update publish\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSystemMessagesByIdPublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSystemMessagesByIdPublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSystemMessagesByIdPublishResponses,\n PatchAdminSystemMessagesByIdPublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}/publish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create optimize subjects\n *\n * Generate A/B test subject line variants using AI\n */\nexport const postAdminEmailMarketingCampaignsByIdOptimizeSubjects = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/optimize-subjects\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmActivitiesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * List stats\n *\n * Get webhook configuration statistics\n */\nexport const getAdminWebhookConfigsStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookConfigsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsStatsResponses,\n GetAdminWebhookConfigsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/stats\",\n ...options,\n });\n\n/**\n * Get permissions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPermissionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPermissionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsByIdResponses,\n GetAdminPermissionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/{id}\",\n ...options,\n });\n\n/**\n * Get channel capture config\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvCrmChannelCaptureConfigById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminIsvCrmChannelCaptureConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmChannelCaptureConfigByIdResponses,\n GetAdminIsvCrmChannelCaptureConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/channel-capture-config/{id}\",\n ...options,\n });\n\n/**\n * Update channel capture config\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminIsvCrmChannelCaptureConfigById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmChannelCaptureConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmChannelCaptureConfigByIdResponses,\n PatchAdminIsvCrmChannelCaptureConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/channel-capture-config/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get transaction\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogStockMovementsTransactionByTransactionId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogStockMovementsTransactionByTransactionIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockMovementsTransactionByTransactionIdResponses,\n GetAdminCatalogStockMovementsTransactionByTransactionIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-movements/transaction/{transaction_id}\",\n ...options,\n });\n\n/**\n * Update verify\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminNotificationMethodsByIdVerify = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminNotificationMethodsByIdVerifyData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdVerifyResponses,\n PatchAdminNotificationMethodsByIdVerifyErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}/verify\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List users\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminUsers = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersResponses,\n GetAdminUsersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users\",\n ...options,\n });\n\n/**\n * Create export\n *\n * Export thread with messages to JSON, Markdown, or plain text format\n */\nexport const postAdminThreadsByIdExport = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminThreadsByIdExportData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdExportResponses,\n PostAdminThreadsByIdExportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/export\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update archive\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminThreadsByIdArchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminThreadsByIdArchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminThreadsByIdArchiveResponses,\n PatchAdminThreadsByIdArchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/archive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List semantic\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearchSemantic = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchSemanticData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchSemanticResponses,\n GetAdminSearchSemanticErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/semantic\",\n ...options,\n });\n\n/**\n * List transactions\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTransactions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransactionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransactionsResponses,\n GetAdminTransactionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transactions\",\n ...options,\n });\n\n/**\n * List usage breakdown\n *\n * Get usage breakdown by workspace\n */\nexport const getAdminWalletUsageBreakdown = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWalletUsageBreakdownData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletUsageBreakdownResponses,\n GetAdminWalletUsageBreakdownErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/usage-breakdown\",\n ...options,\n });\n\n/**\n * List dashboard\n *\n * Get dashboard data for the user's tenant context\n */\nexport const getAdminUsersMeDashboard = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeDashboardData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeDashboardResponses,\n GetAdminUsersMeDashboardErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/dashboard\",\n ...options,\n });\n\n/**\n * Get metrics\n *\n * Get performance metrics for this version\n */\nexport const getAdminAgentVersionsByIdMetrics = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionsByIdMetricsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsByIdMetricsResponses,\n GetAdminAgentVersionsByIdMetricsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/metrics\",\n ...options,\n });\n\n/**\n * Update reject\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogClassificationSuggestionsByIdReject = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogClassificationSuggestionsByIdRejectData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogClassificationSuggestionsByIdRejectResponses,\n PatchAdminCatalogClassificationSuggestionsByIdRejectErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/{id}/reject\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create set system fields\n *\n * Set which system fields are included in this version's schema (batch operation)\n */\nexport const postAdminAgentVersionsByIdSetSystemFields = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentVersionsByIdSetSystemFieldsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsByIdSetSystemFieldsResponses,\n PostAdminAgentVersionsByIdSetSystemFieldsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/set-system-fields\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List consent records\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConsentRecords = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConsentRecordsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConsentRecordsResponses,\n GetAdminConsentRecordsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records\",\n ...options,\n });\n\n/**\n * Create consent records\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminConsentRecords = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminConsentRecordsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConsentRecordsResponses,\n PostAdminConsentRecordsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete field definitions\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminIsvCrmFieldDefinitionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminIsvCrmFieldDefinitionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminIsvCrmFieldDefinitionsByIdResponses,\n DeleteAdminIsvCrmFieldDefinitionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions/{id}\",\n ...options,\n });\n\n/**\n * Update field definitions\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminIsvCrmFieldDefinitionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmFieldDefinitionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmFieldDefinitionsByIdResponses,\n PatchAdminIsvCrmFieldDefinitionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create campaigns\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminEmailMarketingCampaigns = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingCampaignsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsResponses,\n PostAdminEmailMarketingCampaignsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update activate\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSequencesByIdActivate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSequencesByIdActivateData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSequencesByIdActivateResponses,\n PatchAdminEmailMarketingSequencesByIdActivateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/{id}/activate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get versions\n *\n * Fetch a single version by ID, scoped to a specific entity (IDOR-safe)\n */\nexport const getAdminCrmCustomEntitiesByEntityIdVersionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{entity_id}/versions/{id}\",\n ...options,\n });\n\n/**\n * List semantic search\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminMessagesSemanticSearch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminMessagesSemanticSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesSemanticSearchResponses,\n GetAdminMessagesSemanticSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/semantic-search\",\n ...options,\n });\n\n/**\n * List stats\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearchStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchStatsResponses,\n GetAdminSearchStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/stats\",\n ...options,\n });\n\n/**\n * List active\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConsentRecordsActive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConsentRecordsActiveData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConsentRecordsActiveResponses,\n GetAdminConsentRecordsActiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records/active\",\n ...options,\n });\n\n/**\n * Create pipeline stages\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmPipelineStages = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmPipelineStagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmPipelineStagesResponses,\n PostAdminCrmPipelineStagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create add system field\n *\n * Add a predefined system field to this version's schema\n */\nexport const postAdminAgentVersionsByIdAddSystemField = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentVersionsByIdAddSystemFieldData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsByIdAddSystemFieldResponses,\n PostAdminAgentVersionsByIdAddSystemFieldErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/add-system-field\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List mine\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspacesMine = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesMineData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesMineResponses,\n GetAdminWorkspacesMineErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/mine\",\n ...options,\n });\n\n/**\n * Get sequence\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSequenceStepsSequenceBySequenceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingSequenceStepsSequenceBySequenceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSequenceStepsSequenceBySequenceIdResponses,\n GetAdminEmailMarketingSequenceStepsSequenceBySequenceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequence-steps/sequence/{sequence_id}\",\n ...options,\n });\n\n/**\n * Delete field templates\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminFieldTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminFieldTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminFieldTemplatesByIdResponses,\n DeleteAdminFieldTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates/{id}\",\n ...options,\n });\n\n/**\n * Get field templates\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminFieldTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminFieldTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminFieldTemplatesByIdResponses,\n GetAdminFieldTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates/{id}\",\n ...options,\n });\n\n/**\n * Get availability rules\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingAvailabilityRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingAvailabilityRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingAvailabilityRulesByIdResponses,\n GetAdminSchedulingAvailabilityRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules/{id}\",\n ...options,\n });\n\n/**\n * Update availability rules\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingAvailabilityRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingAvailabilityRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingAvailabilityRulesByIdResponses,\n PatchAdminSchedulingAvailabilityRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List plans\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPlans = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPlansData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlansResponses,\n GetAdminPlansErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans\",\n ...options,\n });\n\n/**\n * Create plans\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminPlans = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPlansData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPlansResponses,\n PostAdminPlansErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create begin upload\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminExtractionDocumentsBeginUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionDocumentsBeginUploadData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsBeginUploadResponses,\n PostAdminExtractionDocumentsBeginUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/begin-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create initiate\n *\n * Initiate OAuth flow for a connector type. Returns auth_url and state.\n */\nexport const postAdminConnectorsOauthInitiate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsOauthInitiateData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsOauthInitiateResponses,\n PostAdminConnectorsOauthInitiateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/oauth/initiate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get sessions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminVoiceSessionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminVoiceSessionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsByIdResponses,\n GetAdminVoiceSessionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/{id}\",\n ...options,\n });\n\n/**\n * Delete sequences\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminEmailMarketingSequencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailMarketingSequencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingSequencesByIdResponses,\n DeleteAdminEmailMarketingSequencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/{id}\",\n ...options,\n });\n\n/**\n * Get sequences\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSequencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingSequencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSequencesByIdResponses,\n GetAdminEmailMarketingSequencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/{id}\",\n ...options,\n });\n\n/**\n * Update sequences\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSequencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailMarketingSequencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSequencesByIdResponses,\n PatchAdminEmailMarketingSequencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create reindex\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSearchReindex = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSearchReindexData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchReindexResponses,\n PostAdminSearchReindexErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/reindex\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete webhook configs\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminWebhookConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminWebhookConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminWebhookConfigsByIdResponses,\n DeleteAdminWebhookConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}\",\n ...options,\n });\n\n/**\n * Get webhook configs\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWebhookConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsByIdResponses,\n GetAdminWebhookConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}\",\n ...options,\n });\n\n/**\n * Update webhook configs\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminWebhookConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWebhookConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWebhookConfigsByIdResponses,\n PatchAdminWebhookConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update reschedule\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingBookingsSchedulingBookingsByIdReschedule = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/scheduling/bookings/{id}/reschedule\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create variant option values\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogVariantOptionValues = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogVariantOptionValuesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogVariantOptionValuesResponses,\n PostAdminCatalogVariantOptionValuesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/variant-option-values\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List reminders\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingReminders = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingRemindersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingRemindersResponses,\n GetAdminSchedulingRemindersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/reminders\",\n ...options,\n });\n\n/**\n * Create reminders\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingReminders = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingRemindersData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingRemindersResponses,\n PostAdminSchedulingRemindersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/reminders\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update email\n *\n * Admin-only email update\n */\nexport const patchAdminUsersByIdAdminEmail = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersByIdAdminEmailData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdAdminEmailResponses,\n PatchAdminUsersByIdAdminEmailErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/admin/email\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create search\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTrainingExamplesSearch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTrainingExamplesSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesSearchResponses,\n PostAdminTrainingExamplesSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update debit\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminAccountsByIdDebit = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminAccountsByIdDebitData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminAccountsByIdDebitResponses,\n PatchAdminAccountsByIdDebitErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/{id}/debit\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get price suggestions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogPriceSuggestionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogPriceSuggestionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceSuggestionsByIdResponses,\n GetAdminCatalogPriceSuggestionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/{id}\",\n ...options,\n });\n\n/**\n * Delete payment methods\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminPaymentMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminPaymentMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPaymentMethodsByIdResponses,\n DeleteAdminPaymentMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}\",\n ...options,\n });\n\n/**\n * Get payment methods\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPaymentMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPaymentMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPaymentMethodsByIdResponses,\n GetAdminPaymentMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}\",\n ...options,\n });\n\n/**\n * Update payment methods\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminPaymentMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPaymentMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPaymentMethodsByIdResponses,\n PatchAdminPaymentMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create option types\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogOptionTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogOptionTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogOptionTypesResponses,\n PostAdminCatalogOptionTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete subscriptions\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminSubscriptionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminSubscriptionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSubscriptionsByIdResponses,\n DeleteAdminSubscriptionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}\",\n ...options,\n });\n\n/**\n * Get subscriptions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSubscriptionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSubscriptionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSubscriptionsByIdResponses,\n GetAdminSubscriptionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}\",\n ...options,\n });\n\n/**\n * Update subscriptions\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSubscriptionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSubscriptionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSubscriptionsByIdResponses,\n PatchAdminSubscriptionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete user profiles\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminUserProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminUserProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminUserProfilesByIdResponses,\n DeleteAdminUserProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}\",\n ...options,\n });\n\n/**\n * Get user profiles\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminUserProfilesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUserProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUserProfilesByIdResponses,\n GetAdminUserProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}\",\n ...options,\n });\n\n/**\n * Update user profiles\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminUserProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUserProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdResponses,\n PatchAdminUserProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create get\n *\n * Get full details for a single recipe by Edamam recipe ID\n */\nexport const postAdminConnectorsByIdEdamamRecipesGet = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsByIdEdamamRecipesGetData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsByIdEdamamRecipesGetResponses,\n PostAdminConnectorsByIdEdamamRecipesGetErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}/edamam/recipes/get\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create sequence steps\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminEmailMarketingSequenceSteps = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingSequenceStepsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingSequenceStepsResponses,\n PostAdminEmailMarketingSequenceStepsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequence-steps\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List pricing strategies\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPricingStrategies = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPricingStrategiesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingStrategiesResponses,\n GetAdminPricingStrategiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies\",\n ...options,\n });\n\n/**\n * Create pricing strategies\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminPricingStrategies = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPricingStrategiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPricingStrategiesResponses,\n PostAdminPricingStrategiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get view\n *\n * Get a document with its presigned view URL\n */\nexport const getAdminExtractionDocumentsByIdView = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsByIdViewData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsByIdViewResponses,\n GetAdminExtractionDocumentsByIdViewErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/view\",\n ...options,\n });\n\n/**\n * List api keys\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminApiKeys = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysResponses,\n GetAdminApiKeysErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys\",\n ...options,\n });\n\n/**\n * Create api keys\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminApiKeys = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminApiKeysData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminApiKeysResponses,\n PostAdminApiKeysErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List suggest\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearchSuggest = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchSuggestData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchSuggestResponses,\n GetAdminSearchSuggestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/suggest\",\n ...options,\n });\n\n/**\n * Get config enums\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionConfigEnumsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionConfigEnumsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionConfigEnumsByIdResponses,\n GetAdminExtractionConfigEnumsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums/{id}\",\n ...options,\n });\n\n/**\n * Update config enums\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionConfigEnumsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionConfigEnumsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionConfigEnumsByIdResponses,\n PatchAdminExtractionConfigEnumsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete documents\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminExtractionDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionDocumentsByIdResponses,\n DeleteAdminExtractionDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}\",\n ...options,\n });\n\n/**\n * Get documents\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsByIdResponses,\n GetAdminExtractionDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}\",\n ...options,\n });\n\n/**\n * Delete product classifications\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogProductClassificationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminCatalogProductClassificationsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogProductClassificationsByIdResponses,\n DeleteAdminCatalogProductClassificationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-classifications/{id}\",\n ...options,\n });\n\n/**\n * Update credits\n *\n * Purchase credits (Top-up)\n */\nexport const patchAdminWalletCredits = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWalletCreditsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletCreditsResponses,\n PatchAdminWalletCreditsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/credits\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List for application\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLegalDocumentsForApplication = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalDocumentsForApplicationData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsForApplicationResponses,\n GetAdminLegalDocumentsForApplicationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/for-application\",\n ...options,\n });\n\n/**\n * Get slug\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCreditPackagesSlugBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCreditPackagesSlugBySlugData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCreditPackagesSlugBySlugResponses,\n GetAdminCreditPackagesSlugBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/slug/{slug}\",\n ...options,\n });\n\n/**\n * List accounts\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAccounts = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccountsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccountsResponses,\n GetAdminAccountsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts\",\n ...options,\n });\n\n/**\n * List stats\n *\n * Get platform-wide storage statistics\n */\nexport const getAdminStorageStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminStorageStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageStatsResponses,\n GetAdminStorageStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage/stats\",\n ...options,\n });\n\n/**\n * Update cancel\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrawlerJobsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerJobsByIdCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerJobsByIdCancelResponses,\n PatchAdminCrawlerJobsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get partial\n *\n * Get the latest extraction result for a document including partial (in-progress) results with per-field status. Unlike get_by_document, this action skips FilterHiddenFields and always includes field_status and extraction metadata for progress tracking.\n */\nexport const getAdminExtractionResultsDocumentByDocumentIdPartial = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsDocumentByDocumentIdPartialData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsDocumentByDocumentIdPartialResponses,\n GetAdminExtractionResultsDocumentByDocumentIdPartialErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/document/{document_id}/partial\",\n ...options,\n });\n\n/**\n * Get breach incidents\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBreachIncidentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminBreachIncidentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachIncidentsByIdResponses,\n GetAdminBreachIncidentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents/{id}\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmDealsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmDealsWorkspaceByWorkspaceIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmDealsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmDealsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Get event types\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingEventTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingEventTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventTypesByIdResponses,\n GetAdminSchedulingEventTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types/{id}\",\n ...options,\n });\n\n/**\n * Update event types\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingEventTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingEventTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingEventTypesByIdResponses,\n PatchAdminSchedulingEventTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get application\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogPriceListsApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogPriceListsApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceListsApplicationByApplicationIdResponses,\n GetAdminCatalogPriceListsApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/application/{application_id}\",\n ...options,\n });\n\n/**\n * Get stats\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentsByIdStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsByIdStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdStatsResponses,\n GetAdminAgentsByIdStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/stats\",\n ...options,\n });\n\n/**\n * Get trashed\n *\n * List soft-deleted (trashed) documents\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashed = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/trashed\",\n ...options,\n });\n\n/**\n * List isv settlements\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvSettlements = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminIsvSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvSettlementsResponses,\n GetAdminIsvSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements\",\n ...options,\n });\n\n/**\n * Create isv settlements\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminIsvSettlements = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminIsvSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvSettlementsResponses,\n PostAdminIsvSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update confirm email\n *\n * Admin manually confirms user's email\n */\nexport const patchAdminUsersByIdConfirmEmail = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersByIdConfirmEmailData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdConfirmEmailResponses,\n PatchAdminUsersByIdConfirmEmailErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/confirm-email\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get events\n *\n * List available events that can be subscribed to\n */\nexport const getAdminWebhookConfigsByIdEvents = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookConfigsByIdEventsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsByIdEventsResponses,\n GetAdminWebhookConfigsByIdEventsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/events\",\n ...options,\n });\n\n/**\n * Create templates\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminEmailMarketingTemplates = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingTemplatesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingTemplatesResponses,\n PostAdminEmailMarketingTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionResultsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Delete activities\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmActivitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmActivitiesByIdResponses,\n DeleteAdminCrmActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities/{id}\",\n ...options,\n });\n\n/**\n * Get activities\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmActivitiesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmActivitiesByIdResponses,\n GetAdminCrmActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities/{id}\",\n ...options,\n });\n\n/**\n * Get campaign\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingTrackingEventsCampaignByCampaignId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingTrackingEventsCampaignByCampaignIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingTrackingEventsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingTrackingEventsCampaignByCampaignIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/tracking-events/campaign/{campaign_id}\",\n ...options,\n });\n\n/**\n * Update verification\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdVerificationData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdVerificationResponses,\n PatchAdminExtractionDocumentsByIdVerificationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/verification\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update allocate credits\n *\n * Allocate credits to the account associated with this Application\n */\nexport const patchAdminApplicationsByIdAllocateCredits = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApplicationsByIdAllocateCreditsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByIdAllocateCreditsResponses,\n PatchAdminApplicationsByIdAllocateCreditsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}/allocate-credits\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete retention policies\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminRetentionPoliciesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminRetentionPoliciesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminRetentionPoliciesByIdResponses,\n DeleteAdminRetentionPoliciesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies/{id}\",\n ...options,\n });\n\n/**\n * Get retention policies\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminRetentionPoliciesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminRetentionPoliciesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminRetentionPoliciesByIdResponses,\n GetAdminRetentionPoliciesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies/{id}\",\n ...options,\n });\n\n/**\n * Update retention policies\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminRetentionPoliciesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminRetentionPoliciesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminRetentionPoliciesByIdResponses,\n PatchAdminRetentionPoliciesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Get archived\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmContactsWorkspaceByWorkspaceIdArchived = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/workspace/{workspace_id}/archived\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingCampaignsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Update accept by user\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminInvitationsByIdAcceptByUser = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdAcceptByUserData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdAcceptByUserResponses,\n PatchAdminInvitationsByIdAcceptByUserErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/accept-by-user\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update unpublish\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSystemMessagesByIdUnpublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSystemMessagesByIdUnpublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSystemMessagesByIdUnpublishResponses,\n PatchAdminSystemMessagesByIdUnpublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}/unpublish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get by status\n *\n * Filter documents by workspace_id and processing status\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatus =\n <ThrowOnError extends boolean = false>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/by-status/{status}\",\n ...options,\n });\n\n/**\n * Create sync configs\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminIsvCrmSyncConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmSyncConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmSyncConfigsResponses,\n PostAdminIsvCrmSyncConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List threads\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminThreads = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsResponses,\n GetAdminThreadsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads\",\n ...options,\n });\n\n/**\n * Create threads\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminThreads = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminThreadsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsResponses,\n PostAdminThreadsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get application\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvCrmEntityTypesApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdResponses,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/application/{application_id}\",\n ...options,\n });\n\n/**\n * List activity\n *\n * Get activity feed for the user's tenant context\n */\nexport const getAdminUsersMeActivity = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeActivityData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeActivityResponses,\n GetAdminUsersMeActivityErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/activity\",\n ...options,\n });\n\n/**\n * Get accounts\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAccountsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccountsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccountsByIdResponses,\n GetAdminAccountsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/{id}\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingTemplatesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * List messages\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAiMessages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAiMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiMessagesResponses,\n GetAdminAiMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/messages\",\n ...options,\n });\n\n/**\n * Create messages\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAiMessages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiMessagesResponses,\n PostAdminAiMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create tokenize\n *\n * Create a payment method via direct proxy tokenization (S2S)\n */\nexport const postAdminPaymentMethodsTokenize = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPaymentMethodsTokenizeData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPaymentMethodsTokenizeResponses,\n PostAdminPaymentMethodsTokenizeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/tokenize\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get ai config\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - System admin token\n * **Rate Limit:** No limit (system admin)\n *\n */\nexport const getAdminSysAiConfigById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSysAiConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSysAiConfigByIdResponses,\n GetAdminSysAiConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config/{id}\",\n ...options,\n });\n\n/**\n * Update ai config\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - System admin token\n * **Rate Limit:** No limit (system admin)\n *\n */\nexport const patchAdminSysAiConfigById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminSysAiConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSysAiConfigByIdResponses,\n PatchAdminSysAiConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List activity\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAuditLogsActivity = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAuditLogsActivityData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditLogsActivityResponses,\n GetAdminAuditLogsActivityErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-logs/activity\",\n ...options,\n });\n\n/**\n * Update restore\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingTemplatesByIdRestore = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdRestoreData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdRestoreResponses,\n PatchAdminEmailMarketingTemplatesByIdRestoreErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/restore\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update accept tos\n *\n * Accept Terms of Service - merges with existing preferences\n */\nexport const patchAdminUserProfilesByIdAcceptTos = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUserProfilesByIdAcceptTosData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdAcceptTosResponses,\n PatchAdminUserProfilesByIdAcceptTosErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}/accept-tos\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update plan\n *\n * Change the main plan for the wallet\n */\nexport const patchAdminWalletPlan = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWalletPlanData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletPlanResponses,\n PatchAdminWalletPlanErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/plan\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get members\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspacesByIdMembers = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspacesByIdMembersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByIdMembersResponses,\n GetAdminWorkspacesByIdMembersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/members\",\n ...options,\n });\n\n/**\n * List stats\n *\n * Get stats for the user's tenant context\n */\nexport const getAdminUsersMeStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeStatsResponses,\n GetAdminUsersMeStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/stats\",\n ...options,\n });\n\n/**\n * Update revoke\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminInvitationsByIdRevoke = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdRevokeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdRevokeResponses,\n PatchAdminInvitationsByIdRevokeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/revoke\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete users\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminUsersById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminUsersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminUsersByIdResponses,\n DeleteAdminUsersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}\",\n ...options,\n });\n\n/**\n * Get users\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminUsersById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersByIdResponses,\n GetAdminUsersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}\",\n ...options,\n });\n\n/**\n * Create bulk disable\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWebhookConfigsBulkDisable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsBulkDisableData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsBulkDisableResponses,\n PostAdminWebhookConfigsBulkDisableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/bulk-disable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get breach notifications\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBreachNotificationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminBreachNotificationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachNotificationsByIdResponses,\n GetAdminBreachNotificationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-notifications/{id}\",\n ...options,\n });\n\n/**\n * List legal documents\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLegalDocuments = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLegalDocumentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsResponses,\n GetAdminLegalDocumentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents\",\n ...options,\n });\n\n/**\n * Create legal documents\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminLegalDocuments = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminLegalDocumentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminLegalDocumentsResponses,\n PostAdminLegalDocumentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get usage\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentsByIdUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsByIdUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdUsageResponses,\n GetAdminAgentsByIdUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/usage\",\n ...options,\n });\n\n/**\n * Update schedule\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingGeneratedEmailsByIdSchedule = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}/schedule\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get stock locations\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogStockLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogStockLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockLocationsByIdResponses,\n GetAdminCatalogStockLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations/{id}\",\n ...options,\n });\n\n/**\n * Update stock locations\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogStockLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogStockLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogStockLocationsByIdResponses,\n PatchAdminCatalogStockLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete sender profiles\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminEmailMarketingSenderProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminEmailMarketingSenderProfilesByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingSenderProfilesByIdResponses,\n DeleteAdminEmailMarketingSenderProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}\",\n ...options,\n });\n\n/**\n * Get sender profiles\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSenderProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingSenderProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSenderProfilesByIdResponses,\n GetAdminEmailMarketingSenderProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}\",\n ...options,\n });\n\n/**\n * Update sender profiles\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSenderProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSenderProfilesByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSenderProfilesByIdResponses,\n PatchAdminEmailMarketingSenderProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get stock records\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogStockRecordsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogStockRecordsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockRecordsByIdResponses,\n GetAdminCatalogStockRecordsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-records/{id}\",\n ...options,\n });\n\n/**\n * Update unpublish\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminLegalDocumentsByIdUnpublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminLegalDocumentsByIdUnpublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminLegalDocumentsByIdUnpublishResponses,\n PatchAdminLegalDocumentsByIdUnpublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}/unpublish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get legal acceptances\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLegalAcceptancesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalAcceptancesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalAcceptancesByIdResponses,\n GetAdminLegalAcceptancesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-acceptances/{id}\",\n ...options,\n });\n\n/**\n * Create session grant\n *\n * Get a Fullscript embed session grant token for the prescribing widget\n */\nexport const postAdminConnectorsFullscriptSessionGrant = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsFullscriptSessionGrantData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsFullscriptSessionGrantResponses,\n PostAdminConnectorsFullscriptSessionGrantErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/fullscript/session-grant\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get pricing rules\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPricingRulesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPricingRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingRulesByIdResponses,\n GetAdminPricingRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules/{id}\",\n ...options,\n });\n\n/**\n * Update pricing rules\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminPricingRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPricingRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPricingRulesByIdResponses,\n PatchAdminPricingRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List usage\n *\n * Get daily credit usage history\n */\nexport const getAdminWalletUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWalletUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletUsageResponses,\n GetAdminWalletUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/usage\",\n ...options,\n });\n\n/**\n * Delete email templates\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminApplicationsByApplicationIdEmailTemplatesBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}\",\n ...options,\n });\n\n/**\n * Get email templates\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminApplicationsByApplicationIdEmailTemplatesBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}\",\n ...options,\n });\n\n/**\n * Update email templates\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminApplicationsByApplicationIdEmailTemplatesBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create advanced\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAiSearchAdvanced = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiSearchAdvancedData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiSearchAdvancedResponses,\n PostAdminAiSearchAdvancedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/search/advanced\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update storage settings\n *\n * Update workspace storage settings - tenant admin/owner only\n */\nexport const patchAdminWorkspacesByIdStorageSettings = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWorkspacesByIdStorageSettingsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdStorageSettingsResponses,\n PatchAdminWorkspacesByIdStorageSettingsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/storage-settings\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update publish\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminLegalDocumentsByIdPublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminLegalDocumentsByIdPublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminLegalDocumentsByIdPublishResponses,\n PatchAdminLegalDocumentsByIdPublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}/publish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create batch\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSearchBatch = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSearchBatchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchBatchResponses,\n PostAdminSearchBatchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/batch\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create stock locations\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogStockLocations = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogStockLocationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogStockLocationsResponses,\n PostAdminCatalogStockLocationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionBatchesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Create fork\n *\n * Fork a thread by cloning it with all its messages\n */\nexport const postAdminThreadsByIdFork = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminThreadsByIdForkData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdForkResponses,\n PostAdminThreadsByIdForkErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/fork\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get generated emails\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingGeneratedEmailsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingGeneratedEmailsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingGeneratedEmailsByIdResponses,\n GetAdminEmailMarketingGeneratedEmailsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}\",\n ...options,\n });\n\n/**\n * Update generated emails\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingGeneratedEmailsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List me\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminInvitationsMe = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminInvitationsMeData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminInvitationsMeResponses,\n GetAdminInvitationsMeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/me\",\n ...options,\n });\n\n/**\n * List scan results\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminScanResults = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminScanResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminScanResultsResponses,\n GetAdminScanResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scan-results\",\n ...options,\n });\n\n/**\n * List credentials\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConnectorsCredentials = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConnectorsCredentialsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsCredentialsResponses,\n GetAdminConnectorsCredentialsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/credentials\",\n ...options,\n });\n\n/**\n * List notification logs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminNotificationLogs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminNotificationLogsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationLogsResponses,\n GetAdminNotificationLogsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-logs\",\n ...options,\n });\n\n/**\n * Get application\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogOptionTypesApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogOptionTypesApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionTypesApplicationByApplicationIdResponses,\n GetAdminCatalogOptionTypesApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/application/{application_id}\",\n ...options,\n });\n\n/**\n * List agent versions\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentVersions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsResponses,\n GetAdminAgentVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions\",\n ...options,\n });\n\n/**\n * Create agent versions\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAgentVersions = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsResponses,\n PostAdminAgentVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * List all voice sessions in a workspace (ISV admin)\n */\nexport const getAdminVoiceSessionsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdResponses,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Get consume\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminInvitationsConsumeByToken = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminInvitationsConsumeByTokenData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminInvitationsConsumeByTokenResponses,\n GetAdminInvitationsConsumeByTokenErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/consume/{token}\",\n ...options,\n });\n\n/**\n * List search\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearch = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchResponses,\n GetAdminSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search\",\n ...options,\n });\n\n/**\n * Get semantic cache\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - System admin token\n * **Rate Limit:** No limit (system admin)\n *\n */\nexport const getAdminSysSemanticCacheById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSysSemanticCacheByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSysSemanticCacheByIdResponses,\n GetAdminSysSemanticCacheByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/semantic-cache/{id}\",\n ...options,\n });\n\n/**\n * List balances\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBalances = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBalancesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBalancesResponses,\n GetAdminBalancesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/balances\",\n ...options,\n });\n\n/**\n * Get unsubscribers\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingUnsubscribersById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingUnsubscribersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingUnsubscribersByIdResponses,\n GetAdminEmailMarketingUnsubscribersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/unsubscribers/{id}\",\n ...options,\n });\n\n/**\n * Get notification logs\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminNotificationLogsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationLogsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationLogsByIdResponses,\n GetAdminNotificationLogsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-logs/{id}\",\n ...options,\n });\n\n/**\n * Get ledger\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLedgerById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLedgerByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLedgerByIdResponses,\n GetAdminLedgerByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ledger/{id}\",\n ...options,\n });\n\n/**\n * Create optimize send times\n *\n * Predict optimal send times per recipient using AI\n */\nexport const postAdminEmailMarketingCampaignsByIdOptimizeSendTimes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/optimize-send-times\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create register isv\n *\n * Platform Admin action to register a new ISV (User + Tenant + App)\n */\nexport const postAdminUsersRegisterIsv = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUsersRegisterIsvData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersRegisterIsvResponses,\n PostAdminUsersRegisterIsvErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/register-isv\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update reject\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogPriceSuggestionsByIdReject = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogPriceSuggestionsByIdRejectData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceSuggestionsByIdRejectResponses,\n PatchAdminCatalogPriceSuggestionsByIdRejectErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/{id}/reject\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get by tenant\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAccountsByTenantByTenantId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAccountsByTenantByTenantIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccountsByTenantByTenantIdResponses,\n GetAdminAccountsByTenantByTenantIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/by-tenant/{tenant_id}\",\n ...options,\n });\n\n/**\n * Create price lists\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogPriceLists = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogPriceListsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogPriceListsResponses,\n PostAdminCatalogPriceListsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get mapping\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/{document_id}/mapping\",\n ...options,\n });\n\n/**\n * Create mapping\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/{document_id}/mapping\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get document stats\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenantsByTenantIdDocumentStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantsByTenantIdDocumentStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByTenantIdDocumentStatsResponses,\n GetAdminTenantsByTenantIdDocumentStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{tenant_id}/document_stats\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSequencesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingSequencesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSequencesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingSequencesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Get location\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogStockRecordsLocationByStockLocationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogStockRecordsLocationByStockLocationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockRecordsLocationByStockLocationIdResponses,\n GetAdminCatalogStockRecordsLocationByStockLocationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-records/location/{stock_location_id}\",\n ...options,\n });\n\n/**\n * List usage\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLlmAnalyticsUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsUsageResponses,\n GetAdminLlmAnalyticsUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/usage\",\n ...options,\n });\n\n/**\n * Create bulk reprocess\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminExtractionDocumentsBulkReprocess = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionDocumentsBulkReprocessData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsBulkReprocessResponses,\n PostAdminExtractionDocumentsBulkReprocessErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/bulk-reprocess\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create generate emails\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminEmailMarketingCampaignsByIdGenerateEmails = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsResponses,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/generate-emails\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get stats\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBucketsByIdStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsByIdStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsByIdStatsResponses,\n GetAdminBucketsByIdStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}/stats\",\n ...options,\n });\n\n/**\n * List by email\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminUsersByEmail = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersByEmailData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersByEmailResponses,\n GetAdminUsersByEmailErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/by-email\",\n ...options,\n });\n\n/**\n * List indexes\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearchIndexes = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchIndexesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchIndexesResponses,\n GetAdminSearchIndexesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/indexes\",\n ...options,\n });\n\n/**\n * Get results\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerResultsByIdResponses,\n GetAdminCrawlerResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/results/{id}\",\n ...options,\n });\n\n/**\n * Update stop\n *\n * End a voice session and release the LiveKit room\n */\nexport const patchAdminVoiceSessionsByIdStop = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminVoiceSessionsByIdStopData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminVoiceSessionsByIdStopResponses,\n PatchAdminVoiceSessionsByIdStopErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/{id}/stop\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete training examples\n *\n * Delete a training example belonging to this agent\n */\nexport const deleteAdminAgentsByIdTrainingExamplesByExampleId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdResponses,\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/training-examples/{example_id}\",\n ...options,\n });\n\n/**\n * Create import\n *\n * Import agent from exported JSON\n */\nexport const postAdminAgentsImport = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsImportData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsImportResponses,\n PostAdminAgentsImportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/import\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List results\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionResults = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminExtractionResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsResponses,\n GetAdminExtractionResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results\",\n ...options,\n });\n\n/**\n * List summary\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLlmAnalyticsSummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLlmAnalyticsSummaryData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsSummaryResponses,\n GetAdminLlmAnalyticsSummaryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/summary\",\n ...options,\n });\n\n/**\n * Update rotate secret\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminWebhookConfigsByIdRotateSecret = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWebhookConfigsByIdRotateSecretData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWebhookConfigsByIdRotateSecretResponses,\n PatchAdminWebhookConfigsByIdRotateSecretErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/rotate-secret\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update regenerate\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionResultsByIdRegenerate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionResultsByIdRegenerateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionResultsByIdRegenerateResponses,\n PatchAdminExtractionResultsByIdRegenerateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}/regenerate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create dismiss all trained\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained =\n <ThrowOnError extends boolean = false>(\n options: Options<\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).post<\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/documents/dismiss-all-trained\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List impact assessments\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminImpactAssessments = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminImpactAssessmentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminImpactAssessmentsResponses,\n GetAdminImpactAssessmentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments\",\n ...options,\n });\n\n/**\n * Create impact assessments\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminImpactAssessments = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminImpactAssessmentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminImpactAssessmentsResponses,\n PostAdminImpactAssessmentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List site configs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerSiteConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerSiteConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSiteConfigsResponses,\n GetAdminCrawlerSiteConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs\",\n ...options,\n });\n\n/**\n * Create site configs\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrawlerSiteConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrawlerSiteConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrawlerSiteConfigsResponses,\n PostAdminCrawlerSiteConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmContactsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmContactsWorkspaceByWorkspaceIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmContactsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Get document\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionResultsDocumentByDocumentId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsDocumentByDocumentIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsDocumentByDocumentIdResponses,\n GetAdminExtractionResultsDocumentByDocumentIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/document/{document_id}\",\n ...options,\n });\n\n/**\n * List meta\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPermissionsMeta = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPermissionsMetaData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsMetaResponses,\n GetAdminPermissionsMetaErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/meta\",\n ...options,\n });\n\n/**\n * Create publish version\n *\n * Create a new immutable version from current agent state\n */\nexport const postAdminAgentsByIdPublishVersion = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdPublishVersionData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdPublishVersionResponses,\n PostAdminAgentsByIdPublishVersionErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/publish-version\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create search\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAiSearch = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiSearchResponses,\n PostAdminAiSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List credit packages\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCreditPackages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCreditPackagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCreditPackagesResponses,\n GetAdminCreditPackagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages\",\n ...options,\n });\n\n/**\n * Create credit packages\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCreditPackages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCreditPackagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCreditPackagesResponses,\n PostAdminCreditPackagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List saved\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearchSaved = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchSavedData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchSavedResponses,\n GetAdminSearchSavedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved\",\n ...options,\n });\n\n/**\n * Create saved\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSearchSaved = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSearchSavedData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchSavedResponses,\n PostAdminSearchSavedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete templates\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminEmailMarketingTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailMarketingTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingTemplatesByIdResponses,\n DeleteAdminEmailMarketingTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}\",\n ...options,\n });\n\n/**\n * Get templates\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingTemplatesByIdResponses,\n GetAdminEmailMarketingTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}\",\n ...options,\n });\n\n/**\n * Update templates\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailMarketingTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdResponses,\n PatchAdminEmailMarketingTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List stats\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminDocumentsStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminDocumentsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminDocumentsStatsResponses,\n GetAdminDocumentsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/documents/stats\",\n ...options,\n });\n\n/**\n * List webhook deliveries\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWebhookDeliveries = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWebhookDeliveriesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookDeliveriesResponses,\n GetAdminWebhookDeliveriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries\",\n ...options,\n });\n\n/**\n * List documents\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionDocuments = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsResponses,\n GetAdminExtractionDocumentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents\",\n ...options,\n });\n\n/**\n * Get agent version revisions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentVersionRevisionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionRevisionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionRevisionsByIdResponses,\n GetAdminAgentVersionRevisionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-version-revisions/{id}\",\n ...options,\n });\n\n/**\n * Get email templates\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminApplicationsByApplicationIdEmailTemplates = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminApplicationsByApplicationIdEmailTemplatesData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsByApplicationIdEmailTemplatesResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates\",\n ...options,\n });\n\n/**\n * Create email templates\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminApplicationsByApplicationIdEmailTemplates = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminApplicationsByApplicationIdEmailTemplatesData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsByApplicationIdEmailTemplatesResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get impact assessments\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminImpactAssessmentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminImpactAssessmentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminImpactAssessmentsByIdResponses,\n GetAdminImpactAssessmentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments/{id}\",\n ...options,\n });\n\n/**\n * Update impact assessments\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminImpactAssessmentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminImpactAssessmentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminImpactAssessmentsByIdResponses,\n PatchAdminImpactAssessmentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get pending\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPending =\n <ThrowOnError extends boolean = false>(\n options: Options<\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).get<\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingResponses,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/workspace/{workspace_id}/pending\",\n ...options,\n });\n\n/**\n * Get llm analytics\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLlmAnalyticsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsByIdResponses,\n GetAdminLlmAnalyticsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/{id}\",\n ...options,\n });\n\n/**\n * Create active\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminThreadsActive = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminThreadsActiveData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsActiveResponses,\n PostAdminThreadsActiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/active\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get slug\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPlansSlugBySlug = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPlansSlugBySlugData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlansSlugBySlugResponses,\n GetAdminPlansSlugBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/slug/{slug}\",\n ...options,\n });\n\n/**\n * List agent version revisions\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentVersionRevisions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionRevisionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionRevisionsResponses,\n GetAdminAgentVersionRevisionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-version-revisions\",\n ...options,\n });\n\n/**\n * Get isv revenue\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvRevenueById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminIsvRevenueByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvRevenueByIdResponses,\n GetAdminIsvRevenueByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-revenue/{id}\",\n ...options,\n });\n\n/**\n * Get product\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogProductVariantsProductByProductId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogProductVariantsProductByProductIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductVariantsProductByProductIdResponses,\n GetAdminCatalogProductVariantsProductByProductIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/product/{product_id}\",\n ...options,\n });\n\n/**\n * Delete option values\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogOptionValuesByIdResponses,\n DeleteAdminCatalogOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/{id}\",\n ...options,\n });\n\n/**\n * Get option values\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionValuesByIdResponses,\n GetAdminCatalogOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/{id}\",\n ...options,\n });\n\n/**\n * Update option values\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogOptionValuesByIdResponses,\n PatchAdminCatalogOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create schedule purge\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTenantsByIdSchedulePurge = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantsByIdSchedulePurgeData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsByIdSchedulePurgeResponses,\n PostAdminTenantsByIdSchedulePurgeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}/schedule-purge\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create bulk delete\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminDocumentsBulkDelete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminDocumentsBulkDeleteData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminDocumentsBulkDeleteResponses,\n PostAdminDocumentsBulkDeleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/documents/bulk-delete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update allocate\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminWorkspacesByIdAllocate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWorkspacesByIdAllocateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdAllocateResponses,\n PatchAdminWorkspacesByIdAllocateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/allocate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create bootstrap\n *\n * Bootstrap schema discovery without an agent\n */\nexport const postAdminExtractionSchemaDiscoveriesBootstrap = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminExtractionSchemaDiscoveriesBootstrapData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionSchemaDiscoveriesBootstrapResponses,\n PostAdminExtractionSchemaDiscoveriesBootstrapErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/schema-discoveries/bootstrap\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSendLimitsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingSendLimitsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSendLimitsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingSendLimitsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/send-limits/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Update exclude\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdExclude = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdExcludeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdExcludeResponses,\n PatchAdminExtractionDocumentsByIdExcludeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/exclude\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update resend\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminInvitationsByIdResend = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdResendData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdResendResponses,\n PatchAdminInvitationsByIdResendErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/resend\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete processing activities\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminProcessingActivitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminProcessingActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminProcessingActivitiesByIdResponses,\n DeleteAdminProcessingActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities/{id}\",\n ...options,\n });\n\n/**\n * Get processing activities\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminProcessingActivitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminProcessingActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminProcessingActivitiesByIdResponses,\n GetAdminProcessingActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities/{id}\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvCrmSyncConfigsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdResponses,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * List webhook configs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWebhookConfigs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWebhookConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsResponses,\n GetAdminWebhookConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs\",\n ...options,\n });\n\n/**\n * Create webhook configs\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWebhookConfigs = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminWebhookConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsResponses,\n PostAdminWebhookConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get transactions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTransactionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransactionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransactionsByIdResponses,\n GetAdminTransactionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transactions/{id}\",\n ...options,\n });\n\n/**\n * Create search\n *\n * Search for recipes using the Edamam Recipe API\n */\nexport const postAdminConnectorsByIdEdamamRecipesSearch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminConnectorsByIdEdamamRecipesSearchData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsByIdEdamamRecipesSearchResponses,\n PostAdminConnectorsByIdEdamamRecipesSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}/edamam/recipes/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List analytics batch\n *\n * Get training analytics for multiple workspaces in a single request (max 50)\n */\nexport const getAdminWorkspacesAnalyticsBatch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspacesAnalyticsBatchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesAnalyticsBatchResponses,\n GetAdminWorkspacesAnalyticsBatchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/analytics-batch\",\n ...options,\n });\n\n/**\n * Create price list entries\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogPriceListEntries = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogPriceListEntriesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogPriceListEntriesResponses,\n PostAdminCatalogPriceListEntriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List config enums\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionConfigEnums = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionConfigEnumsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionConfigEnumsResponses,\n GetAdminExtractionConfigEnumsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums\",\n ...options,\n });\n\n/**\n * Create config enums\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminExtractionConfigEnums = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionConfigEnumsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionConfigEnumsResponses,\n PostAdminExtractionConfigEnumsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get audit chain entries\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAuditChainEntriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAuditChainEntriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditChainEntriesByIdResponses,\n GetAdminAuditChainEntriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-chain-entries/{id}\",\n ...options,\n });\n\n/**\n * Delete training sessions\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminTrainingSessionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminTrainingSessionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTrainingSessionsByIdResponses,\n DeleteAdminTrainingSessionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-sessions/{id}\",\n ...options,\n });\n\n/**\n * Get training sessions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTrainingSessionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTrainingSessionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingSessionsByIdResponses,\n GetAdminTrainingSessionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-sessions/{id}\",\n ...options,\n });\n\n/**\n * Delete conversations\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminAiConversationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminAiConversationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAiConversationsByIdResponses,\n DeleteAdminAiConversationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations/{id}\",\n ...options,\n });\n\n/**\n * Get conversations\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAiConversationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAiConversationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiConversationsByIdResponses,\n GetAdminAiConversationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations/{id}\",\n ...options,\n });\n\n/**\n * Update conversations\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminAiConversationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminAiConversationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminAiConversationsByIdResponses,\n PatchAdminAiConversationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List payment methods\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPaymentMethods = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPaymentMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPaymentMethodsResponses,\n GetAdminPaymentMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods\",\n ...options,\n });\n\n/**\n * Create payment methods\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminPaymentMethods = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPaymentMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPaymentMethodsResponses,\n PostAdminPaymentMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmExportsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmExportsWorkspaceByWorkspaceIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmExportsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmExportsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/exports/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Create import recipients\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminEmailMarketingCampaignsByIdImportRecipients = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdImportRecipientsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdImportRecipientsResponses,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/import-recipients\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get send limits\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSendLimitsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingSendLimitsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSendLimitsByIdResponses,\n GetAdminEmailMarketingSendLimitsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/send-limits/{id}\",\n ...options,\n });\n\n/**\n * Update dismiss\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdDismiss = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdDismissData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdDismissResponses,\n PatchAdminExtractionDocumentsByIdDismissErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/dismiss\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get exports\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspacesByWorkspaceIdExtractionExportsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/exports/{id}\",\n ...options,\n });\n\n/**\n * Get campaign\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingGeneratedEmailsCampaignByCampaignId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/campaign/{campaign_id}\",\n ...options,\n });\n\n/**\n * Create login\n *\n * Attempt to sign in using a username and password.\n */\nexport const postAdminUsersAuthLogin = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUsersAuthLoginData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthLoginResponses,\n PostAdminUsersAuthLoginErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/login\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete view rules\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogViewRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogViewRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogViewRulesByIdResponses,\n DeleteAdminCatalogViewRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-rules/{id}\",\n ...options,\n });\n\n/**\n * Update admin\n *\n * Admin-only user management (platform admins) - promotes/demotes admin status\n */\nexport const patchAdminUsersByIdAdmin = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminUsersByIdAdminData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdAdminResponses,\n PatchAdminUsersByIdAdminErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/admin\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get tenant\n *\n * Get storage stats for a specific tenant\n */\nexport const getAdminStorageStatsTenantByTenantId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminStorageStatsTenantByTenantIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageStatsTenantByTenantIdResponses,\n GetAdminStorageStatsTenantByTenantIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage/stats/tenant/{tenant_id}\",\n ...options,\n });\n\n/**\n * Update allocate\n *\n * DEPRECATED: Use set_budget instead. Allocate credits to the account associated with this API Key\n */\nexport const patchAdminApiKeysByIdAllocate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdAllocateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdAllocateResponses,\n PatchAdminApiKeysByIdAllocateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/allocate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create activities\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmActivities = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmActivitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmActivitiesResponses,\n PostAdminCrmActivitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List audit logs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAuditLogs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAuditLogsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditLogsResponses,\n GetAdminAuditLogsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-logs\",\n ...options,\n });\n\n/**\n * Get wholesale agreements\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWholesaleAgreementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWholesaleAgreementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWholesaleAgreementsByIdResponses,\n GetAdminWholesaleAgreementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements/{id}\",\n ...options,\n });\n\n/**\n * Update wholesale agreements\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminWholesaleAgreementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWholesaleAgreementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWholesaleAgreementsByIdResponses,\n PatchAdminWholesaleAgreementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get pricing strategies\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPricingStrategiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPricingStrategiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingStrategiesByIdResponses,\n GetAdminPricingStrategiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies/{id}\",\n ...options,\n });\n\n/**\n * Update pricing strategies\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminPricingStrategiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPricingStrategiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPricingStrategiesByIdResponses,\n PatchAdminPricingStrategiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update dismiss announcement\n *\n * Dismiss announcement - merges with existing preferences\n */\nexport const patchAdminUserProfilesByIdDismissAnnouncement = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminUserProfilesByIdDismissAnnouncementData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdDismissAnnouncementResponses,\n PatchAdminUserProfilesByIdDismissAnnouncementErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}/dismiss-announcement\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get taxonomy\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogTaxonomyNodesTaxonomyByTaxonomyId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdResponses,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}\",\n ...options,\n });\n\n/**\n * Create export\n *\n * Export campaign data (recipients, results, or tracking) as CSV. Returns job ID.\n */\nexport const postAdminEmailMarketingCampaignsByIdExport = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdExportData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdExportResponses,\n PostAdminEmailMarketingCampaignsByIdExportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/export\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update set primary\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminNotificationMethodsByIdSetPrimary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminNotificationMethodsByIdSetPrimaryData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdSetPrimaryResponses,\n PatchAdminNotificationMethodsByIdSetPrimaryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}/set-primary\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmRelationshipsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Get exports\n *\n * List exports for a workspace, filtered by status\n */\nexport const getAdminWorkspacesByWorkspaceIdExtractionExports = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/exports\",\n ...options,\n });\n\n/**\n * Create exports\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWorkspacesByWorkspaceIdExtractionExports = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminWorkspacesByWorkspaceIdExtractionExportsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/exports\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List current\n *\n * Get the current application based on x-application-key header context\n */\nexport const getAdminApplicationsCurrent = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminApplicationsCurrentData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsCurrentResponses,\n GetAdminApplicationsCurrentErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/current\",\n ...options,\n });\n\n/**\n * Get training stats\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAgentsByIdTrainingStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentsByIdTrainingStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdTrainingStatsResponses,\n GetAdminAgentsByIdTrainingStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/training-stats\",\n ...options,\n });\n\n/**\n * Update archive\n *\n * Soft-archive a contact (sets deleted_at)\n */\nexport const patchAdminCrmContactsByIdArchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmContactsByIdArchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmContactsByIdArchiveResponses,\n PatchAdminCrmContactsByIdArchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}/archive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace stats\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenantsByTenantIdWorkspaceStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantsByTenantIdWorkspaceStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByTenantIdWorkspaceStatsResponses,\n GetAdminTenantsByTenantIdWorkspaceStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{tenant_id}/workspace_stats\",\n ...options,\n });\n\n/**\n * List stats\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWebhookDeliveriesStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookDeliveriesStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookDeliveriesStatsResponses,\n GetAdminWebhookDeliveriesStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/stats\",\n ...options,\n });\n\n/**\n * Update approve\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminImpactAssessmentsByIdApprove = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminImpactAssessmentsByIdApproveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminImpactAssessmentsByIdApproveResponses,\n PatchAdminImpactAssessmentsByIdApproveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments/{id}/approve\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create test\n *\n * Run the agent against sample input\n */\nexport const postAdminAgentsByIdTest = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdTestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdTestResponses,\n PostAdminAgentsByIdTestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/test\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update withdraw\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminConsentRecordsByIdWithdraw = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminConsentRecordsByIdWithdrawData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminConsentRecordsByIdWithdrawResponses,\n PatchAdminConsentRecordsByIdWithdrawErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records/{id}/withdraw\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get locations\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingLocationsByIdResponses,\n GetAdminSchedulingLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations/{id}\",\n ...options,\n });\n\n/**\n * Update locations\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingLocationsByIdResponses,\n PatchAdminSchedulingLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create exports\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmExports = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmExportsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmExportsResponses,\n PostAdminCrmExportsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/exports\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List llm analytics\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLlmAnalytics = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsResponses,\n GetAdminLlmAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics\",\n ...options,\n });\n\n/**\n * Create llm analytics\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminLlmAnalytics = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminLlmAnalyticsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminLlmAnalyticsResponses,\n PostAdminLlmAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete messages\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminAiMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminAiMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAiMessagesByIdResponses,\n DeleteAdminAiMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/messages/{id}\",\n ...options,\n });\n\n/**\n * Create products\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogProducts = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCatalogProductsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogProductsResponses,\n PostAdminCatalogProductsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create create patient\n *\n * Create a patient in Fullscript\n */\nexport const postAdminConnectorsFullscriptCreatePatient = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminConnectorsFullscriptCreatePatientData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsFullscriptCreatePatientResponses,\n PostAdminConnectorsFullscriptCreatePatientErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/fullscript/create-patient\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List bookings\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingBookings = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingBookingsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingBookingsResponses,\n GetAdminSchedulingBookingsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings\",\n ...options,\n });\n\n/**\n * Create bookings\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingBookings = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingBookingsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingBookingsResponses,\n PostAdminSchedulingBookingsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update restore\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdRestore = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdRestoreData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdRestoreResponses,\n PatchAdminExtractionDocumentsByIdRestoreErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/restore\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get balances\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBalancesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBalancesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBalancesByIdResponses,\n GetAdminBalancesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/balances/{id}\",\n ...options,\n });\n\n/**\n * Create field definitions\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminIsvCrmFieldDefinitions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmFieldDefinitionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmFieldDefinitionsResponses,\n PostAdminIsvCrmFieldDefinitionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create upload\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminExtractionDocumentsUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionDocumentsUploadData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsUploadResponses,\n PostAdminExtractionDocumentsUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete system messages\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminSystemMessagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminSystemMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSystemMessagesByIdResponses,\n DeleteAdminSystemMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}\",\n ...options,\n });\n\n/**\n * Get system messages\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSystemMessagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSystemMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSystemMessagesByIdResponses,\n GetAdminSystemMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}\",\n ...options,\n });\n\n/**\n * Update system messages\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSystemMessagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSystemMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSystemMessagesByIdResponses,\n PatchAdminSystemMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create pipelines\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmPipelines = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmPipelinesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmPipelinesResponses,\n PostAdminCrmPipelinesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get stock movements\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogStockMovementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogStockMovementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockMovementsByIdResponses,\n GetAdminCatalogStockMovementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-movements/{id}\",\n ...options,\n });\n\n/**\n * Delete site configs\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrawlerSiteConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrawlerSiteConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrawlerSiteConfigsByIdResponses,\n DeleteAdminCrawlerSiteConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs/{id}\",\n ...options,\n });\n\n/**\n * Get site configs\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerSiteConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerSiteConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSiteConfigsByIdResponses,\n GetAdminCrawlerSiteConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs/{id}\",\n ...options,\n });\n\n/**\n * Update site configs\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrawlerSiteConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSiteConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSiteConfigsByIdResponses,\n PatchAdminCrawlerSiteConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List relationship types\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmRelationshipTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmRelationshipTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipTypesResponses,\n GetAdminCrmRelationshipTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types\",\n ...options,\n });\n\n/**\n * Create relationship types\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmRelationshipTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmRelationshipTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmRelationshipTypesResponses,\n PostAdminCrmRelationshipTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update confirm\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingBookingsSchedulingBookingsByIdConfirm = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/scheduling/bookings/{id}/confirm\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List stats\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminThreadsStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsStatsResponses,\n GetAdminThreadsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/stats\",\n ...options,\n });\n\n/**\n * Create tokens\n *\n * Create a payment token\n */\nexport const postAdminTokens = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTokensData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTokensResponses,\n PostAdminTokensErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tokens\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List presets\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPermissionsPresets = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPermissionsPresetsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsPresetsResponses,\n GetAdminPermissionsPresetsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/presets\",\n ...options,\n });\n\n/**\n * Create isv\n *\n * Create an ISV tenant with initial credits\n */\nexport const postAdminTenantsIsv = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTenantsIsvData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsIsvResponses,\n PostAdminTenantsIsvErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/isv\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create taxonomies\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogTaxonomies = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogTaxonomiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogTaxonomiesResponses,\n PostAdminCatalogTaxonomiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List breach notifications\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBreachNotifications = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminBreachNotificationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachNotificationsResponses,\n GetAdminBreachNotificationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-notifications\",\n ...options,\n });\n\n/**\n * Update cancel\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingBookingsSchedulingBookingsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/scheduling/bookings/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update pause\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPause =\n <ThrowOnError extends boolean = false>(\n options: Options<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}/pause\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update finalize\n *\n * Dispatch accumulated transcript to the blueprint/chat pipeline\n */\nexport const patchAdminVoiceSessionsByIdFinalize = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminVoiceSessionsByIdFinalizeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminVoiceSessionsByIdFinalizeResponses,\n PatchAdminVoiceSessionsByIdFinalizeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/{id}/finalize\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List search\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminMessagesSearch = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminMessagesSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesSearchResponses,\n GetAdminMessagesSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/search\",\n ...options,\n });\n\n/**\n * Update reset period\n *\n * Reset budget period (for testing or manual reset)\n */\nexport const patchAdminApiKeysByIdResetPeriod = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdResetPeriodData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdResetPeriodResponses,\n PatchAdminApiKeysByIdResetPeriodErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/reset-period\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get storage files\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminStorageFilesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminStorageFilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageFilesByIdResponses,\n GetAdminStorageFilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files/{id}\",\n ...options,\n });\n\n/**\n * Update storage files\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminStorageFilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminStorageFilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminStorageFilesByIdResponses,\n PatchAdminStorageFilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create find or begin upload\n *\n * Dedup-aware upload: returns existing document if file_hash matches, otherwise creates new document\n */\nexport const postAdminExtractionDocumentsFindOrBeginUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminExtractionDocumentsFindOrBeginUploadData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsFindOrBeginUploadResponses,\n PostAdminExtractionDocumentsFindOrBeginUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/find-or-begin-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete sequence steps\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminEmailMarketingSequenceStepsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminEmailMarketingSequenceStepsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingSequenceStepsByIdResponses,\n DeleteAdminEmailMarketingSequenceStepsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequence-steps/{id}\",\n ...options,\n });\n\n/**\n * Get sequence steps\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingSequenceStepsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingSequenceStepsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSequenceStepsByIdResponses,\n GetAdminEmailMarketingSequenceStepsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequence-steps/{id}\",\n ...options,\n });\n\n/**\n * Update sequence steps\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSequenceStepsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailMarketingSequenceStepsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSequenceStepsByIdResponses,\n PatchAdminEmailMarketingSequenceStepsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequence-steps/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create remove system field\n *\n * Remove a system field from this version's schema\n */\nexport const postAdminAgentVersionsByIdRemoveSystemField = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminAgentVersionsByIdRemoveSystemFieldData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsByIdRemoveSystemFieldResponses,\n PostAdminAgentVersionsByIdRemoveSystemFieldErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/remove-system-field\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get option type\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogOptionValuesOptionTypeByOptionTypeId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdResponses,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/option-type/{option_type_id}\",\n ...options,\n });\n\n/**\n * List stats\n *\n * Get API keys with usage statistics for a tenant\n */\nexport const getAdminApiKeysStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysStatsResponses,\n GetAdminApiKeysStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/stats\",\n ...options,\n });\n\n/**\n * List event types\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingEventTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingEventTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventTypesResponses,\n GetAdminSchedulingEventTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types\",\n ...options,\n });\n\n/**\n * Create event types\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingEventTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingEventTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingEventTypesResponses,\n PostAdminSchedulingEventTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get entity type\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvCrmFieldDefinitionsEntityTypeByEntityType = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeResponses,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions/entity-type/{entity_type}\",\n ...options,\n });\n\n/**\n * List mine\n *\n * List current user's voice sessions\n */\nexport const getAdminVoiceSessionsMine = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminVoiceSessionsMineData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsMineResponses,\n GetAdminVoiceSessionsMineErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/mine\",\n ...options,\n });\n\n/**\n * List breach incidents\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBreachIncidents = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBreachIncidentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachIncidentsResponses,\n GetAdminBreachIncidentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents\",\n ...options,\n });\n\n/**\n * Create breach incidents\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminBreachIncidents = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminBreachIncidentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminBreachIncidentsResponses,\n PostAdminBreachIncidentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get reminders\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingRemindersById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingRemindersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingRemindersByIdResponses,\n GetAdminSchedulingRemindersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/reminders/{id}\",\n ...options,\n });\n\n/**\n * Update configs\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminConfigsByKey = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminConfigsByKeyData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminConfigsByKeyResponses,\n PatchAdminConfigsByKeyErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/configs/{key}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List isv revenue\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminIsvRevenue = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminIsvRevenueData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvRevenueResponses,\n GetAdminIsvRevenueErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-revenue\",\n ...options,\n });\n\n/**\n * Create isv revenue\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminIsvRevenue = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminIsvRevenueData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvRevenueResponses,\n PostAdminIsvRevenueErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-revenue\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create request\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 20 requests per minute\n *\n */\nexport const postAdminUsersAuthMagicLinkRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthMagicLinkRequestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthMagicLinkRequestResponses,\n PostAdminUsersAuthMagicLinkRequestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/magic-link/request\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update reset password\n *\n * Reset password using admin-issued reset token\n */\nexport const patchAdminUsersAuthResetPassword = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersAuthResetPasswordData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersAuthResetPasswordResponses,\n PatchAdminUsersAuthResetPasswordErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/reset-password\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List extraction workflows\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionWorkflows = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionWorkflowsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionWorkflowsResponses,\n GetAdminExtractionWorkflowsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows\",\n ...options,\n });\n\n/**\n * Create extraction workflows\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminExtractionWorkflows = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionWorkflowsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionWorkflowsResponses,\n PostAdminExtractionWorkflowsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create teach\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAgentsByIdTeach = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdTeachData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdTeachResponses,\n PostAdminAgentsByIdTeachErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/teach\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get status\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminExtractionDocumentsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsByIdStatusResponses,\n GetAdminExtractionDocumentsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/status\",\n ...options,\n });\n\n/**\n * Update status\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdStatusResponses,\n PatchAdminExtractionDocumentsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/status\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List availability rules\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingAvailabilityRules = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingAvailabilityRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingAvailabilityRulesResponses,\n GetAdminSchedulingAvailabilityRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules\",\n ...options,\n });\n\n/**\n * Create availability rules\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSchedulingAvailabilityRules = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingAvailabilityRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingAvailabilityRulesResponses,\n PostAdminSchedulingAvailabilityRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List wholesale agreements\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWholesaleAgreements = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWholesaleAgreementsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWholesaleAgreementsResponses,\n GetAdminWholesaleAgreementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements\",\n ...options,\n });\n\n/**\n * Create wholesale agreements\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWholesaleAgreements = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWholesaleAgreementsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWholesaleAgreementsResponses,\n PostAdminWholesaleAgreementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogProductsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogProductsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Delete pipeline stages\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmPipelineStagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmPipelineStagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmPipelineStagesByIdResponses,\n DeleteAdminCrmPipelineStagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages/{id}\",\n ...options,\n });\n\n/**\n * Get pipeline stages\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmPipelineStagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmPipelineStagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmPipelineStagesByIdResponses,\n GetAdminCrmPipelineStagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages/{id}\",\n ...options,\n });\n\n/**\n * Update pipeline stages\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrmPipelineStagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmPipelineStagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmPipelineStagesByIdResponses,\n PatchAdminCrmPipelineStagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete sync configs\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminIsvCrmSyncConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminIsvCrmSyncConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminIsvCrmSyncConfigsByIdResponses,\n DeleteAdminIsvCrmSyncConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs/{id}\",\n ...options,\n });\n\n/**\n * Update sync configs\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminIsvCrmSyncConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmSyncConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmSyncConfigsByIdResponses,\n PatchAdminIsvCrmSyncConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create summarize\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminThreadsByIdSummarize = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminThreadsByIdSummarizeData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdSummarizeResponses,\n PostAdminThreadsByIdSummarizeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/summarize\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update pause\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSequencesByIdPause = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSequencesByIdPauseData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSequencesByIdPauseResponses,\n PatchAdminEmailMarketingSequencesByIdPauseErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences/{id}/pause\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update schema versions\n *\n * Update a schema version without creating a new version\n */\nexport const patchAdminAgentsByIdSchemaVersionsByVersionId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminAgentsByIdSchemaVersionsByVersionIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminAgentsByIdSchemaVersionsByVersionIdResponses,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions/{version_id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update mark trained\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdMarkTrained = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdMarkTrainedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdMarkTrainedResponses,\n PatchAdminExtractionDocumentsByIdMarkTrainedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/mark-trained\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update approve\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingGeneratedEmailsByIdApprove = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}/approve\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete taxonomies\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogTaxonomiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogTaxonomiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogTaxonomiesByIdResponses,\n DeleteAdminCatalogTaxonomiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/{id}\",\n ...options,\n });\n\n/**\n * Get taxonomies\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogTaxonomiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogTaxonomiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomiesByIdResponses,\n GetAdminCatalogTaxonomiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/{id}\",\n ...options,\n });\n\n/**\n * Update taxonomies\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogTaxonomiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogTaxonomiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogTaxonomiesByIdResponses,\n PatchAdminCatalogTaxonomiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update cancel\n *\n * Cancel a subscription\n */\nexport const patchAdminSubscriptionsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSubscriptionsByIdCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSubscriptionsByIdCancelResponses,\n PatchAdminSubscriptionsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update revoke\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminApiKeysByIdRevoke = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdRevokeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdRevokeResponses,\n PatchAdminApiKeysByIdRevokeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/revoke\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get label\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAiGraphNodesLabelByLabel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAiGraphNodesLabelByLabelData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiGraphNodesLabelByLabelResponses,\n GetAdminAiGraphNodesLabelByLabelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes/label/{label}\",\n ...options,\n });\n\n/**\n * List ai config\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - System admin token\n * **Rate Limit:** No limit (system admin)\n *\n */\nexport const getAdminSysAiConfig = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSysAiConfigData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSysAiConfigResponses,\n GetAdminSysAiConfigErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config\",\n ...options,\n });\n\n/**\n * Create ai config\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - System admin token\n * **Rate Limit:** No limit (system admin)\n *\n */\nexport const postAdminSysAiConfig = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSysAiConfigData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSysAiConfigResponses,\n PostAdminSysAiConfigErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List ledger\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLedger = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLedgerData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLedgerResponses,\n GetAdminLedgerErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ledger\",\n ...options,\n });\n\n/**\n * List me\n *\n * Get the current user's profile\n */\nexport const getAdminUserProfilesMe = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUserProfilesMeData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUserProfilesMeResponses,\n GetAdminUserProfilesMeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/me\",\n ...options,\n });\n\n/**\n * Get application\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogTaxonomiesApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogTaxonomiesApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomiesApplicationByApplicationIdResponses,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/application/{application_id}\",\n ...options,\n });\n\n/**\n * List system messages\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSystemMessages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSystemMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSystemMessagesResponses,\n GetAdminSystemMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages\",\n ...options,\n });\n\n/**\n * Create system messages\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSystemMessages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSystemMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSystemMessagesResponses,\n PostAdminSystemMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List buckets\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBuckets = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsResponses,\n GetAdminBucketsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets\",\n ...options,\n });\n\n/**\n * Create buckets\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminBuckets = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminBucketsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminBucketsResponses,\n PostAdminBucketsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get data subject requests\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminDataSubjectRequestsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminDataSubjectRequestsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminDataSubjectRequestsByIdResponses,\n GetAdminDataSubjectRequestsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests/{id}\",\n ...options,\n });\n\n/**\n * List health\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSearchHealth = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchHealthData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchHealthResponses,\n GetAdminSearchHealthErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/health\",\n ...options,\n });\n\n/**\n * Get campaign\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingRecipientsCampaignByCampaignId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingRecipientsCampaignByCampaignIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingRecipientsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingRecipientsCampaignByCampaignIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/recipients/campaign/{campaign_id}\",\n ...options,\n });\n\n/**\n * Create accept by token\n *\n * Accept an invitation using only the token\n */\nexport const postAdminInvitationsAcceptByToken = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminInvitationsAcceptByTokenData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminInvitationsAcceptByTokenResponses,\n PostAdminInvitationsAcceptByTokenErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/accept-by-token\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update send verification\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminNotificationMethodsByIdSendVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminNotificationMethodsByIdSendVerificationData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdSendVerificationResponses,\n PatchAdminNotificationMethodsByIdSendVerificationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}/send-verification\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete jobs\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrawlerJobsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrawlerJobsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrawlerJobsByIdResponses,\n DeleteAdminCrawlerJobsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs/{id}\",\n ...options,\n });\n\n/**\n * Get jobs\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerJobsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerJobsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerJobsByIdResponses,\n GetAdminCrawlerJobsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs/{id}\",\n ...options,\n });\n\n/**\n * Delete connectors\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminConnectorsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminConnectorsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminConnectorsByIdResponses,\n DeleteAdminConnectorsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}\",\n ...options,\n });\n\n/**\n * Get connectors\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConnectorsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConnectorsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsByIdResponses,\n GetAdminConnectorsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}\",\n ...options,\n });\n\n/**\n * Update connectors\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminConnectorsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminConnectorsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminConnectorsByIdResponses,\n PatchAdminConnectorsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create bulk retry\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWebhookDeliveriesBulkRetry = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookDeliveriesBulkRetryData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookDeliveriesBulkRetryResponses,\n PostAdminWebhookDeliveriesBulkRetryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/bulk-retry\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update dismiss training\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdDismissTraining = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdDismissTrainingData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdDismissTrainingResponses,\n PatchAdminExtractionDocumentsByIdDismissTrainingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/dismiss-training\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create clear\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - System admin token\n * **Rate Limit:** No limit (system admin)\n *\n */\nexport const postAdminSysSemanticCacheClear = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSysSemanticCacheClearData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSysSemanticCacheClearResponses,\n PostAdminSysSemanticCacheClearErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/semantic-cache/clear\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create check patient\n *\n * Check if a patient exists in Fullscript by email\n */\nexport const postAdminConnectorsFullscriptCheckPatient = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsFullscriptCheckPatientData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsFullscriptCheckPatientResponses,\n PostAdminConnectorsFullscriptCheckPatientErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/fullscript/check-patient\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List notification methods\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminNotificationMethods = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationMethodsResponses,\n GetAdminNotificationMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods\",\n ...options,\n });\n\n/**\n * Create notification methods\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminNotificationMethods = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminNotificationMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminNotificationMethodsResponses,\n PostAdminNotificationMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get schema versions\n *\n * List all schema versions for this agent\n */\nexport const getAdminAgentsByIdSchemaVersions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentsByIdSchemaVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdSchemaVersionsResponses,\n GetAdminAgentsByIdSchemaVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions\",\n ...options,\n });\n\n/**\n * Create schema versions\n *\n * Create a new schema version for this agent\n */\nexport const postAdminAgentsByIdSchemaVersions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdSchemaVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdSchemaVersionsResponses,\n PostAdminAgentsByIdSchemaVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get excluded\n *\n * List excluded documents\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdExcluded = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/excluded\",\n ...options,\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmCustomEntitiesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Update rotate\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminApiKeysByIdRotate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdRotateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdRotateResponses,\n PatchAdminApiKeysByIdRotateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/rotate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List deal products\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmDealProducts = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmDealProductsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmDealProductsResponses,\n GetAdminCrmDealProductsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deal-products\",\n ...options,\n });\n\n/**\n * Create deal products\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmDealProducts = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmDealProductsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmDealProductsResponses,\n PostAdminCrmDealProductsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deal-products\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete nodes\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminAiGraphNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminAiGraphNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAiGraphNodesByIdResponses,\n DeleteAdminAiGraphNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes/{id}\",\n ...options,\n });\n\n/**\n * Delete buckets\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminBucketsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminBucketsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminBucketsByIdResponses,\n DeleteAdminBucketsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}\",\n ...options,\n });\n\n/**\n * Get buckets\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminBucketsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsByIdResponses,\n GetAdminBucketsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}\",\n ...options,\n });\n\n/**\n * Update buckets\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminBucketsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminBucketsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminBucketsByIdResponses,\n PatchAdminBucketsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List latest\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLegalAcceptancesLatest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalAcceptancesLatestData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalAcceptancesLatestResponses,\n GetAdminLegalAcceptancesLatestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-acceptances/latest\",\n ...options,\n });\n\n/**\n * List configs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConfigs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConfigsResponses,\n GetAdminConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/configs\",\n ...options,\n });\n\n/**\n * Create configs\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminConfigs = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConfigsResponses,\n PostAdminConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete threads\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminThreadsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminThreadsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminThreadsByIdResponses,\n DeleteAdminThreadsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}\",\n ...options,\n });\n\n/**\n * Get threads\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminThreadsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsByIdResponses,\n GetAdminThreadsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}\",\n ...options,\n });\n\n/**\n * Update threads\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminThreadsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminThreadsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminThreadsByIdResponses,\n PatchAdminThreadsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create entity types\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminIsvCrmEntityTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmEntityTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmEntityTypesResponses,\n PostAdminIsvCrmEntityTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update addons\n *\n * Purchase an add-on for the wallet\n */\nexport const patchAdminWalletAddons = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWalletAddonsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletAddonsResponses,\n PatchAdminWalletAddonsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/addons\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create product variants\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCatalogProductVariants = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogProductVariantsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogProductVariantsResponses,\n PostAdminCatalogProductVariantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete messages\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminMessagesByIdResponses,\n DeleteAdminMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/{id}\",\n ...options,\n });\n\n/**\n * Get messages\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesByIdResponses,\n GetAdminMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/{id}\",\n ...options,\n });\n\n/**\n * Update messages\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminMessagesByIdResponses,\n PatchAdminMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete platform pricing configs\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminPlatformPricingConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminPlatformPricingConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPlatformPricingConfigsByIdResponses,\n DeleteAdminPlatformPricingConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs/{id}\",\n ...options,\n });\n\n/**\n * Get platform pricing configs\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPlatformPricingConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPlatformPricingConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlatformPricingConfigsByIdResponses,\n GetAdminPlatformPricingConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs/{id}\",\n ...options,\n });\n\n/**\n * Update platform pricing configs\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminPlatformPricingConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPlatformPricingConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPlatformPricingConfigsByIdResponses,\n PatchAdminPlatformPricingConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete tenants\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminTenantsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminTenantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTenantsByIdResponses,\n DeleteAdminTenantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}\",\n ...options,\n });\n\n/**\n * Get tenants\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenantsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTenantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByIdResponses,\n GetAdminTenantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}\",\n ...options,\n });\n\n/**\n * Update tenants\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminTenantsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminTenantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminTenantsByIdResponses,\n PatchAdminTenantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmCompaniesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Create search\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAiChunksSearch = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiChunksSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiChunksSearchResponses,\n PostAdminAiChunksSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/chunks/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List storage files\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminStorageFiles = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminStorageFilesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageFilesResponses,\n GetAdminStorageFilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files\",\n ...options,\n });\n\n/**\n * Create storage files\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminStorageFiles = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminStorageFilesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminStorageFilesResponses,\n PostAdminStorageFilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get by slug\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminApplicationsBySlugBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminApplicationsBySlugBySlugData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsBySlugBySlugResponses,\n GetAdminApplicationsBySlugBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/by-slug/{slug}\",\n ...options,\n });\n\n/**\n * Get by tenant\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSubscriptionsByTenantByTenantId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSubscriptionsByTenantByTenantIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSubscriptionsByTenantByTenantIdResponses,\n GetAdminSubscriptionsByTenantByTenantIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/by-tenant/{tenant_id}\",\n ...options,\n });\n\n/**\n * List all\n *\n * Read all buckets including system/processing buckets\n */\nexport const getAdminBucketsAll = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsAllData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsAllResponses,\n GetAdminBucketsAllErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/all\",\n ...options,\n });\n\n/**\n * Delete legal documents\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminLegalDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminLegalDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminLegalDocumentsByIdResponses,\n DeleteAdminLegalDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}\",\n ...options,\n });\n\n/**\n * Get legal documents\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLegalDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsByIdResponses,\n GetAdminLegalDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}\",\n ...options,\n });\n\n/**\n * Update legal documents\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminLegalDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminLegalDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminLegalDocumentsByIdResponses,\n PatchAdminLegalDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete plans\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminPlansById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminPlansByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPlansByIdResponses,\n DeleteAdminPlansByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/{id}\",\n ...options,\n });\n\n/**\n * Get plans\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPlansById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPlansByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlansByIdResponses,\n GetAdminPlansByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/{id}\",\n ...options,\n });\n\n/**\n * Update plans\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminPlansById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminPlansByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPlansByIdResponses,\n PatchAdminPlansByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List legal acceptances\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLegalAcceptances = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLegalAcceptancesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalAcceptancesResponses,\n GetAdminLegalAcceptancesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-acceptances\",\n ...options,\n });\n\n/**\n * Update reset password\n *\n * Admin triggers password reset email for user\n */\nexport const patchAdminUsersByIdResetPassword = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersByIdResetPasswordData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdResetPasswordResponses,\n PatchAdminUsersByIdResetPasswordErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/reset-password\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update accept\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminInvitationsByIdAccept = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdAcceptData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdAcceptResponses,\n PatchAdminInvitationsByIdAcceptErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/accept\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get consent records\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminConsentRecordsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConsentRecordsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConsentRecordsByIdResponses,\n GetAdminConsentRecordsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records/{id}\",\n ...options,\n });\n\n/**\n * Delete workspace memberships\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminWorkspaceMembershipsByWorkspaceIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}\",\n ...options,\n });\n\n/**\n * Get workspace memberships\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminWorkspaceMembershipsByWorkspaceIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}\",\n ...options,\n });\n\n/**\n * Update workspace memberships\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminWorkspaceMembershipsByWorkspaceIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List training examples\n *\n * List training examples with filtering support\n */\nexport const getAdminTrainingExamples = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTrainingExamplesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingExamplesResponses,\n GetAdminTrainingExamplesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples\",\n ...options,\n });\n\n/**\n * Create training examples\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTrainingExamples = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTrainingExamplesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesResponses,\n PostAdminTrainingExamplesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete price lists\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCatalogPriceListsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogPriceListsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogPriceListsByIdResponses,\n DeleteAdminCatalogPriceListsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/{id}\",\n ...options,\n });\n\n/**\n * Get price lists\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogPriceListsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogPriceListsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceListsByIdResponses,\n GetAdminCatalogPriceListsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/{id}\",\n ...options,\n });\n\n/**\n * Update price lists\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCatalogPriceListsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogPriceListsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceListsByIdResponses,\n PatchAdminCatalogPriceListsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create login\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Not required (public endpoint)\n * **Rate Limit:** 20 requests per minute\n *\n */\nexport const postAdminUsersAuthMagicLinkLogin = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthMagicLinkLoginData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthMagicLinkLoginResponses,\n PostAdminUsersAuthMagicLinkLoginErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/magic-link/login\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List active\n *\n * List only active API keys\n */\nexport const getAdminApiKeysActive = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysActiveData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysActiveResponses,\n GetAdminApiKeysActiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/active\",\n ...options,\n });\n\n/**\n * Create sequences\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminEmailMarketingSequences = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingSequencesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingSequencesResponses,\n PostAdminEmailMarketingSequencesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sequences\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get versions\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmCustomEntitiesByEntityIdVersions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCustomEntitiesByEntityIdVersionsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesByEntityIdVersionsResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{entity_id}/versions\",\n ...options,\n });\n\n/**\n * Update enable\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrawlerSchedulesByIdEnable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdEnableData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdEnableResponses,\n PatchAdminCrawlerSchedulesByIdEnableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}/enable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List post processing hooks\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPostProcessingHooks = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPostProcessingHooksData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPostProcessingHooksResponses,\n GetAdminPostProcessingHooksErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks\",\n ...options,\n });\n\n/**\n * Create post processing hooks\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminPostProcessingHooks = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPostProcessingHooksData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPostProcessingHooksResponses,\n PostAdminPostProcessingHooksErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create analyze training\n *\n * Analyze training examples for conflicts, coverage, and quality\n */\nexport const postAdminAgentsByIdAnalyzeTraining = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdAnalyzeTrainingData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdAnalyzeTrainingResponses,\n PostAdminAgentsByIdAnalyzeTrainingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/analyze-training\",\n ...options,\n });\n\n/**\n * Create relationships\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmRelationships = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmRelationshipsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmRelationshipsResponses,\n PostAdminCrmRelationshipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List summary\n *\n * Aggregated search analytics summary (platform admin only)\n */\nexport const getAdminSearchAnalyticsSummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSearchAnalyticsSummaryData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchAnalyticsSummaryResponses,\n GetAdminSearchAnalyticsSummaryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/analytics/summary\",\n ...options,\n });\n\n/**\n * Create bulk\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminTrainingExamplesBulk = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTrainingExamplesBulkData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesBulkResponses,\n PostAdminTrainingExamplesBulkErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/bulk\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create clone\n *\n * Clone the agent to a new one with a new name\n */\nexport const postAdminAgentsByIdClone = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdCloneData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdCloneResponses,\n PostAdminAgentsByIdCloneErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/clone\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get exports\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmExportsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmExportsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmExportsByIdResponses,\n GetAdminCrmExportsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/exports/{id}\",\n ...options,\n });\n\n/**\n * List subscriptions\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSubscriptions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSubscriptionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSubscriptionsResponses,\n GetAdminSubscriptionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions\",\n ...options,\n });\n\n/**\n * Create subscriptions\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminSubscriptions = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSubscriptionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSubscriptionsResponses,\n PostAdminSubscriptionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create test\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWebhookConfigsByIdTest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsByIdTestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsByIdTestResponses,\n PostAdminWebhookConfigsByIdTestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/test\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete companies\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmCompaniesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmCompaniesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmCompaniesByIdResponses,\n DeleteAdminCrmCompaniesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/{id}\",\n ...options,\n });\n\n/**\n * Get companies\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmCompaniesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmCompaniesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCompaniesByIdResponses,\n GetAdminCrmCompaniesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/{id}\",\n ...options,\n });\n\n/**\n * Update companies\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrmCompaniesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmCompaniesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmCompaniesByIdResponses,\n PatchAdminCrmCompaniesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create agent version comparisons\n *\n * Compare two agent versions and return the differences\n */\nexport const postAdminAgentVersionComparisons = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentVersionComparisonsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionComparisonsResponses,\n PostAdminAgentVersionComparisonsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-version-comparisons\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete deals\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmDealsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminCrmDealsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmDealsByIdResponses,\n DeleteAdminCrmDealsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/{id}\",\n ...options,\n });\n\n/**\n * Get deals\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmDealsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmDealsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmDealsByIdResponses,\n GetAdminCrmDealsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/{id}\",\n ...options,\n });\n\n/**\n * Update deals\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrmDealsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminCrmDealsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmDealsByIdResponses,\n PatchAdminCrmDealsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List pricing rules\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPricingRules = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPricingRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingRulesResponses,\n GetAdminPricingRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules\",\n ...options,\n });\n\n/**\n * Create pricing rules\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminPricingRules = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPricingRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPricingRulesResponses,\n PostAdminPricingRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/unsubscribers/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Create retry\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminWebhookDeliveriesByIdRetry = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookDeliveriesByIdRetryData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookDeliveriesByIdRetryResponses,\n PostAdminWebhookDeliveriesByIdRetryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/{id}/retry\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update validate dns\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminEmailMarketingSenderProfilesByIdValidateDns = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsResponses,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}/validate-dns\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List tenants\n *\n * List all tenants the current user belongs to with their roles and permissions\n */\nexport const getAdminUsersMeTenants = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeTenantsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeTenantsResponses,\n GetAdminUsersMeTenantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/tenants\",\n ...options,\n });\n\n/**\n * Create payments\n *\n * Process a payment (Auth + Capture)\n */\nexport const postAdminPayments = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPaymentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPaymentsResponses,\n PostAdminPaymentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payments\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List user profiles\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminUserProfiles = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUserProfilesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUserProfilesResponses,\n GetAdminUserProfilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles\",\n ...options,\n });\n\n/**\n * Create user profiles\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminUserProfiles = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUserProfilesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUserProfilesResponses,\n PostAdminUserProfilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create companies\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrmCompanies = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmCompaniesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmCompaniesResponses,\n PostAdminCrmCompaniesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List by locale\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLegalDocumentsByLocale = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalDocumentsByLocaleData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsByLocaleResponses,\n GetAdminLegalDocumentsByLocaleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/by-locale\",\n ...options,\n });\n\n/**\n * Get bookings\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminSchedulingBookingsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingBookingsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingBookingsByIdResponses,\n GetAdminSchedulingBookingsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/{id}\",\n ...options,\n });\n\n/**\n * Create customers\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCustomers = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCustomersData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCustomersResponses,\n PostAdminCustomersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update save corrections\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionResultsByIdSaveCorrections = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionResultsByIdSaveCorrectionsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionResultsByIdSaveCorrectionsResponses,\n PatchAdminExtractionResultsByIdSaveCorrectionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}/save-corrections\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete pipelines\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminCrmPipelinesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmPipelinesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmPipelinesByIdResponses,\n DeleteAdminCrmPipelinesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/{id}\",\n ...options,\n });\n\n/**\n * Get pipelines\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrmPipelinesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmPipelinesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmPipelinesByIdResponses,\n GetAdminCrmPipelinesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/{id}\",\n ...options,\n });\n\n/**\n * Update pipelines\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminCrmPipelinesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmPipelinesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmPipelinesByIdResponses,\n PatchAdminCrmPipelinesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create refresh\n *\n * Refresh OAuth credential token.\n */\nexport const postAdminConnectorsCredentialsByIdRefresh = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsCredentialsByIdRefreshData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsCredentialsByIdRefreshResponses,\n PostAdminConnectorsCredentialsByIdRefreshErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/credentials/{id}/refresh\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List usage\n *\n * Batch read usage for all accessible agents\n */\nexport const getAdminAgentsUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsUsageResponses,\n GetAdminAgentsUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/usage\",\n ...options,\n });\n\n/**\n * Update populate hashes\n *\n * Enqueue a background job to populate file hashes for documents missing them\n */\nexport const patchAdminWorkspacesByIdPopulateHashes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWorkspacesByIdPopulateHashesData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdPopulateHashesResponses,\n PatchAdminWorkspacesByIdPopulateHashesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/populate-hashes\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get presets\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminPermissionsPresetsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPermissionsPresetsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsPresetsByIdResponses,\n GetAdminPermissionsPresetsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/presets/{id}\",\n ...options,\n });\n\n/**\n * List costs\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminLlmAnalyticsCosts = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsCostsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsCostsResponses,\n GetAdminLlmAnalyticsCostsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/costs\",\n ...options,\n });\n\n/**\n * Create validate\n *\n * Validate sample output against agent schema\n */\nexport const postAdminAgentsByIdValidate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdValidateData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdValidateResponses,\n PostAdminAgentsByIdValidateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/validate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create test\n *\n * Send a test email using this template\n */\nexport const postAdminApplicationsByApplicationIdEmailTemplatesBySlugTest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}/test\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete applications\n *\n * Deletes a resource permanently. This action cannot be undone.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const deleteAdminApplicationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminApplicationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminApplicationsByIdResponses,\n DeleteAdminApplicationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}\",\n ...options,\n });\n\n/**\n * Get applications\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminApplicationsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApplicationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsByIdResponses,\n GetAdminApplicationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}\",\n ...options,\n });\n\n/**\n * Update applications\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminApplicationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApplicationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByIdResponses,\n PatchAdminApplicationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update decline\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminInvitationsByIdDecline = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdDeclineData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdDeclineResponses,\n PatchAdminInvitationsByIdDeclineErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/decline\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create send\n *\n * Triggers batch sending for approved emails\n */\nexport const postAdminEmailMarketingCampaignsByIdSend = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingCampaignsByIdSendData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdSendResponses,\n PostAdminEmailMarketingCampaignsByIdSendErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/send\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get scan results\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminScanResultsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminScanResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminScanResultsByIdResponses,\n GetAdminScanResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scan-results/{id}\",\n ...options,\n });\n\n/**\n * List processing activities\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminProcessingActivities = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminProcessingActivitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminProcessingActivitiesResponses,\n GetAdminProcessingActivitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities\",\n ...options,\n });\n\n/**\n * Create processing activities\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminProcessingActivities = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminProcessingActivitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminProcessingActivitiesResponses,\n PostAdminProcessingActivitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create sender profiles\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminEmailMarketingSenderProfiles = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingSenderProfilesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingSenderProfilesResponses,\n PostAdminEmailMarketingSenderProfilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update default\n *\n * Set this payment method as default for the customer\n */\nexport const patchAdminPaymentMethodsByIdDefault = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPaymentMethodsByIdDefaultData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPaymentMethodsByIdDefaultResponses,\n PatchAdminPaymentMethodsByIdDefaultErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}/default\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get upload urls\n *\n * Generate presigned URLs for batch document upload\n */\nexport const getAdminExtractionBatchesByIdUploadUrls = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionBatchesByIdUploadUrlsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionBatchesByIdUploadUrlsResponses,\n GetAdminExtractionBatchesByIdUploadUrlsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/{id}/upload-urls\",\n ...options,\n });\n\n/**\n * Get stats\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminTenantsByTenantIdStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantsByTenantIdStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByTenantIdStatsResponses,\n GetAdminTenantsByTenantIdStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{tenant_id}/stats\",\n ...options,\n });\n\n/**\n * Create register with oidc\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Not required (public endpoint)\n * **Rate Limit:** 20 requests per minute\n *\n */\nexport const postAdminUsersAuthRegisterWithOidc = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthRegisterWithOidcData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthRegisterWithOidcResponses,\n PostAdminUsersAuthRegisterWithOidcErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/register-with-oidc\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get workspace\n *\n * Retrieves a single resource by ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCatalogViewsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogViewsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogViewsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * List conversations\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminAiConversations = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAiConversationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiConversationsResponses,\n GetAdminAiConversationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations\",\n ...options,\n });\n\n/**\n * Create conversations\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAiConversations = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiConversationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiConversationsResponses,\n PostAdminAiConversationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update finish upload\n *\n * Updates specific fields of an existing resource.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const patchAdminExtractionDocumentsByIdFinishUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdFinishUploadData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdFinishUploadResponses,\n PatchAdminExtractionDocumentsByIdFinishUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/finish-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List retention policies\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminRetentionPolicies = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminRetentionPoliciesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminRetentionPoliciesResponses,\n GetAdminRetentionPoliciesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies\",\n ...options,\n });\n\n/**\n * Create retention policies\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminRetentionPolicies = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminRetentionPoliciesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminRetentionPoliciesResponses,\n PostAdminRetentionPoliciesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List schedules\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminCrawlerSchedules = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerSchedulesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSchedulesResponses,\n GetAdminCrawlerSchedulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules\",\n ...options,\n });\n\n/**\n * Create schedules\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminCrawlerSchedules = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrawlerSchedulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrawlerSchedulesResponses,\n PostAdminCrawlerSchedulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create embed\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminAiEmbed = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiEmbedData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiEmbedResponses,\n PostAdminAiEmbedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/embed\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List roles\n *\n * Lists resources with optional filtering, sorting, and pagination.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const getAdminRoles = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminRolesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminRolesResponses,\n GetAdminRolesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles\",\n ...options,\n });\n\n/**\n * Create roles\n *\n * Creates a new resource. Returns the created resource with generated ID.\n *\n * **Authentication:** Required - Admin API key\n * **Rate Limit:** 1000 requests per minute\n *\n */\nexport const postAdminRoles = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminRolesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminRolesResponses,\n PostAdminRolesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n","import {\n getAdminAccounts,\n getAdminAccountsById,\n patchAdminAccountsByIdCredit,\n patchAdminAccountsByIdDebit,\n} from \"../_internal/sdk.gen\";\nimport type { Account } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\nexport function createAccountsNamespace(rb: RequestBuilder) {\n return {\n list: async (options?: RequestOptions): Promise<Account[]> => {\n return rb.execute<Account[]>(getAdminAccounts, {}, options);\n },\n\n get: async (id: string, options?: RequestOptions): Promise<Account> => {\n return rb.execute<Account>(\n getAdminAccountsById,\n { path: { id } },\n options,\n );\n },\n\n credit: async (\n id: string,\n amount: number,\n description?: string,\n options?: RequestOptions,\n ): Promise<Account> => {\n if (amount <= 0) {\n throw new Error(\"Credit amount must be positive\");\n }\n return rb.execute<Account>(\n patchAdminAccountsByIdCredit,\n {\n path: { id },\n body: {\n data: { type: \"account\", attributes: { amount, description } },\n },\n },\n options,\n );\n },\n\n debit: async (\n id: string,\n amount: number,\n description?: string,\n options?: RequestOptions,\n ): Promise<Account> => {\n if (amount <= 0) {\n throw new Error(\"Debit amount must be positive\");\n }\n return rb.execute<Account>(\n patchAdminAccountsByIdDebit,\n {\n path: { id },\n body: {\n data: { type: \"account\", attributes: { amount, description } },\n },\n },\n options,\n );\n },\n };\n}\n","import {\n getAdminApiKeys,\n getAdminApiKeysById,\n patchAdminApiKeysByIdAllocate,\n patchAdminApiKeysByIdRevoke,\n patchAdminApiKeysByIdRotate,\n} from \"../_internal/sdk.gen\";\nimport type { ApiKey } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\nexport function createApiKeysNamespace(rb: RequestBuilder) {\n return {\n list: async (options?: RequestOptions): Promise<ApiKey[]> => {\n return rb.execute<ApiKey[]>(getAdminApiKeys, {}, options);\n },\n\n get: async (id: string, options?: RequestOptions): Promise<ApiKey> => {\n return rb.execute<ApiKey>(getAdminApiKeysById, { path: { id } }, options);\n },\n\n allocate: async (\n id: string,\n amount: number,\n description?: string,\n options?: RequestOptions,\n ): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysByIdAllocate,\n {\n path: { id },\n body: {\n data: { type: \"api_key\", attributes: { amount, description } },\n },\n },\n options,\n );\n },\n\n revoke: async (id: string, options?: RequestOptions): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysByIdRevoke,\n { path: { id }, body: {} },\n options,\n );\n },\n\n rotate: async (id: string, options?: RequestOptions): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysByIdRotate,\n { path: { id }, body: {} },\n options,\n );\n },\n };\n}\n","import {\n getAdminExtractionDocuments,\n getAdminExtractionDocumentsById,\n postAdminDocumentsBulkDelete,\n getAdminDocumentsStats,\n} from \"../_internal/sdk.gen\";\nimport type { ExtractionDocument } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\nexport function createDocumentsNamespace(rb: RequestBuilder) {\n return {\n list: async (options?: RequestOptions): Promise<ExtractionDocument[]> => {\n return rb.execute<ExtractionDocument[]>(\n getAdminExtractionDocuments,\n {},\n options,\n );\n },\n\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<ExtractionDocument> => {\n return rb.execute<ExtractionDocument>(\n getAdminExtractionDocumentsById,\n { path: { id } },\n options,\n );\n },\n\n bulkDelete: async (\n ids: string[],\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n if (ids.length === 0) {\n throw new Error(\"At least one document ID is required\");\n }\n if (ids.length > 100) {\n throw new Error(\"Maximum 100 documents per bulk operation\");\n }\n return rb.execute<Record<string, unknown>>(\n postAdminDocumentsBulkDelete,\n { body: { data: { type: \"bulk_delete\", attributes: { ids } } } },\n options,\n );\n },\n\n stats: async (\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminDocumentsStats,\n {},\n options,\n );\n },\n };\n}\n","// AUTO-GENERATED by GptCore.Sdk — DO NOT EDIT\n// Regenerate with: mix update.sdks\n\nimport { RequestBuilder } from \"../request-builder\";\n\nexport function createExecutionsNamespace(_rb: RequestBuilder) {\n return {};\n}\n","import {\n getAdminStorageStats,\n getAdminBuckets,\n getAdminBucketsById,\n getAdminBucketsByIdStats,\n} from \"../_internal/sdk.gen\";\nimport type { Bucket } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\nexport function createStorageNamespace(rb: RequestBuilder) {\n return {\n stats: async (\n workspaceId?: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n const params = workspaceId\n ? { query: { \"filter[workspace_id]\": workspaceId } }\n : {};\n return rb.execute<Record<string, unknown>>(\n getAdminStorageStats,\n params,\n options,\n );\n },\n\n buckets: {\n list: async (options?: RequestOptions): Promise<Bucket[]> => {\n return rb.execute<Bucket[]>(getAdminBuckets, {}, options);\n },\n\n get: async (id: string, options?: RequestOptions): Promise<Bucket> => {\n return rb.execute<Bucket>(\n getAdminBucketsById,\n { path: { id } },\n options,\n );\n },\n\n stats: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminBucketsByIdStats,\n { path: { id } },\n options,\n );\n },\n },\n };\n}\n","import {\n getAdminWebhookConfigs,\n postAdminWebhookConfigs,\n getAdminWebhookConfigsById,\n patchAdminWebhookConfigsById,\n deleteAdminWebhookConfigsById,\n postAdminWebhookConfigsByIdTest,\n getAdminWebhookDeliveries,\n getAdminWebhookDeliveriesById,\n postAdminWebhookDeliveriesByIdRetry,\n} from \"../_internal/sdk.gen\";\nimport type { WebhookConfig, WebhookDelivery } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\nexport function createWebhooksNamespace(rb: RequestBuilder) {\n return {\n configs: {\n list: async (options?: RequestOptions): Promise<WebhookConfig[]> => {\n return rb.execute<WebhookConfig[]>(getAdminWebhookConfigs, {}, options);\n },\n\n create: async (\n name: string,\n url: string,\n events: string[],\n applicationId?: string,\n secret?: string,\n options?: RequestOptions,\n ): Promise<WebhookConfig> => {\n return rb.execute<WebhookConfig>(\n postAdminWebhookConfigs,\n {\n body: {\n data: {\n type: \"webhook_config\",\n attributes: {\n name,\n url,\n events,\n application_id: applicationId,\n secret,\n },\n },\n },\n },\n options,\n );\n },\n\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<WebhookConfig> => {\n return rb.execute<WebhookConfig>(\n getAdminWebhookConfigsById,\n { path: { id } },\n options,\n );\n },\n\n update: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<WebhookConfig> => {\n return rb.execute<WebhookConfig>(\n patchAdminWebhookConfigsById,\n {\n path: { id },\n body: { data: { id, type: \"webhook_config\", attributes } },\n },\n options,\n );\n },\n\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminWebhookConfigsById,\n { path: { id } },\n options,\n );\n },\n\n test: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminWebhookConfigsByIdTest,\n { path: { id }, body: {} },\n options,\n );\n },\n },\n\n deliveries: {\n list: async (options?: RequestOptions): Promise<WebhookDelivery[]> => {\n return rb.execute<WebhookDelivery[]>(\n getAdminWebhookDeliveries,\n {},\n options,\n );\n },\n\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<WebhookDelivery> => {\n return rb.execute<WebhookDelivery>(\n getAdminWebhookDeliveriesById,\n { path: { id } },\n options,\n );\n },\n\n retry: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminWebhookDeliveriesByIdRetry,\n { path: { id }, body: {} },\n options,\n );\n },\n },\n };\n}\n","// AUTO-GENERATED by GptCore.Sdk — DO NOT EDIT\n// Regenerate with: mix update.sdks\n\nimport { BaseClient, type BaseClientConfig } from \"./base-client\";\nimport { RequestBuilder } from \"./request-builder\";\nimport { createAccountsNamespace } from \"./namespaces/accounts\";\nimport { createApiKeysNamespace } from \"./namespaces/apiKeys\";\nimport { createDocumentsNamespace } from \"./namespaces/documents\";\nimport { createExecutionsNamespace } from \"./namespaces/executions\";\nimport { createStorageNamespace } from \"./namespaces/storage\";\nimport { createWebhooksNamespace } from \"./namespaces/webhooks-ns\";\n\nexport class GptAdmin extends BaseClient {\n /** Billing account management */\n public readonly accounts;\n /** API key management */\n public readonly apiKeys;\n /** Document administration */\n public readonly documents;\n /** Agent execution management and streaming */\n public readonly executions;\n /** Storage operations and bucket management */\n public readonly storage;\n /** Webhook configuration and delivery management */\n public readonly webhooks;\n\n constructor(config?: BaseClientConfig) {\n super(config);\n const rb = new RequestBuilder(\n this.clientInstance,\n () => this.getHeaders(),\n <T>(d: unknown) => this.unwrap<T>(d),\n <T>(fn: () => Promise<T>) => this.requestWithRetry(fn),\n );\n\n this.accounts = createAccountsNamespace(rb);\n this.apiKeys = createApiKeysNamespace(rb);\n this.documents = createDocumentsNamespace(rb);\n this.executions = createExecutionsNamespace(rb);\n this.storage = createStorageNamespace(rb);\n this.webhooks = createWebhooksNamespace(rb);\n }\n}\n","export * from \"./gpt-admin\";\nexport * from \"./_internal/types.gen\";\nexport { DEFAULT_API_VERSION, SDK_VERSION } from \"./base-client\";\nexport * from \"./errors\";\nexport type { StreamOptions, StreamMessageChunk } from \"./streaming\";\n\n// Re-export GptAdmin as default export for ESM compatibility\n// This allows: import GptAdmin from '@gpt-platform/admin'\nimport { GptAdmin } from \"./gpt-admin\";\nexport default GptAdmin;\n"],"mappings":";AAyEO,IAAM,qBAAqB;AAAA,EAChC,gBAAgB,CAAI,SAClB,KAAK;AAAA,IAAU;AAAA,IAAM,CAAC,MAAM,UAC1B,OAAO,UAAU,WAAW,MAAM,SAAS,IAAI;AAAA,EACjD;AACJ;;;ACUO,IAAM,kBAAkB,CAAkB;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA8D;AAC5D,MAAI;AAEJ,QAAM,QACJ,eACC,CAAC,OAAe,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,EAAE,CAAC;AAEnE,QAAM,eAAe,mBAAmB;AACtC,QAAI,aAAqB,wBAAwB;AACjD,QAAI,UAAU;AACd,UAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,EAAE;AAEvD,WAAO,MAAM;AACX,UAAI,OAAO,QAAS;AAEpB;AAEA,YAAM,UACJ,QAAQ,mBAAmB,UACvB,QAAQ,UACR,IAAI,QAAQ,QAAQ,OAA6C;AAEvE,UAAI,gBAAgB,QAAW;AAC7B,gBAAQ,IAAI,iBAAiB,WAAW;AAAA,MAC1C;AAEA,UAAI;AACF,cAAM,cAA2B;AAAA,UAC/B,UAAU;AAAA,UACV,GAAG;AAAA,UACH,MAAM,QAAQ;AAAA,UACd;AAAA,UACA;AAAA,QACF;AACA,YAAI,UAAU,IAAI,QAAQ,KAAK,WAAW;AAC1C,YAAI,WAAW;AACb,oBAAU,MAAM,UAAU,KAAK,WAAW;AAAA,QAC5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]}
1
+ {"version":3,"sources":["../src/_internal/core/bodySerializer.gen.ts","../src/_internal/core/serverSentEvents.gen.ts","../src/_internal/core/pathSerializer.gen.ts","../src/_internal/core/utils.gen.ts","../src/_internal/core/auth.gen.ts","../src/_internal/client/utils.gen.ts","../src/_internal/client/client.gen.ts","../src/version.ts","../src/base-client.ts","../src/errors/index.ts","../src/streaming.ts","../src/request-builder.ts","../src/_internal/client.gen.ts","../src/_internal/sdk.gen.ts","../src/namespaces/agents.ts","../src/namespaces/accounts.ts","../src/namespaces/capabilities.ts","../src/namespaces/apiKeys.ts","../src/namespaces/documents.ts","../src/namespaces/executions.ts","../src/namespaces/storage.ts","../src/pagination.ts","../src/namespace-types.ts","../src/namespaces/users.ts","../src/namespaces/voice.ts","../src/namespaces/audit.ts","../src/namespaces/webhooks-ns.ts","../src/namespaces/campaigns.ts","../src/namespaces/email.ts","../src/gpt-admin.ts","../src/index.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type {\n ArrayStyle,\n ObjectStyle,\n SerializerOptions,\n} from \"./pathSerializer.gen.js\";\n\nexport type QuerySerializer = (query: Record<string, unknown>) => string;\n\nexport type BodySerializer = (body: any) => any;\n\ntype QuerySerializerOptionsObject = {\n allowReserved?: boolean;\n array?: Partial<SerializerOptions<ArrayStyle>>;\n object?: Partial<SerializerOptions<ObjectStyle>>;\n};\n\nexport type QuerySerializerOptions = QuerySerializerOptionsObject & {\n /**\n * Per-parameter serialization overrides. When provided, these settings\n * override the global array/object settings for specific parameter names.\n */\n parameters?: Record<string, QuerySerializerOptionsObject>;\n};\n\nconst serializeFormDataPair = (\n data: FormData,\n key: string,\n value: unknown,\n): void => {\n if (typeof value === \"string\" || value instanceof Blob) {\n data.append(key, value);\n } else if (value instanceof Date) {\n data.append(key, value.toISOString());\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nconst serializeUrlSearchParamsPair = (\n data: URLSearchParams,\n key: string,\n value: unknown,\n): void => {\n if (typeof value === \"string\") {\n data.append(key, value);\n } else {\n data.append(key, JSON.stringify(value));\n }\n};\n\nexport const formDataBodySerializer = {\n bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(\n body: T,\n ): FormData => {\n const data = new FormData();\n\n Object.entries(body).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeFormDataPair(data, key, v));\n } else {\n serializeFormDataPair(data, key, value);\n }\n });\n\n return data;\n },\n};\n\nexport const jsonBodySerializer = {\n bodySerializer: <T>(body: T): string =>\n JSON.stringify(body, (_key, value) =>\n typeof value === \"bigint\" ? value.toString() : value,\n ),\n};\n\nexport const urlSearchParamsBodySerializer = {\n bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(\n body: T,\n ): string => {\n const data = new URLSearchParams();\n\n Object.entries(body).forEach(([key, value]) => {\n if (value === undefined || value === null) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach((v) => serializeUrlSearchParamsPair(data, key, v));\n } else {\n serializeUrlSearchParamsPair(data, key, value);\n }\n });\n\n return data.toString();\n },\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Config } from \"./types.gen.js\";\n\nexport type ServerSentEventsOptions<TData = unknown> = Omit<\n RequestInit,\n \"method\"\n> &\n Pick<Config, \"method\" | \"responseTransformer\" | \"responseValidator\"> & {\n /**\n * Fetch API implementation. You can use this option to provide a custom\n * fetch instance.\n *\n * @default globalThis.fetch\n */\n fetch?: typeof fetch;\n /**\n * Implementing clients can call request interceptors inside this hook.\n */\n onRequest?: (url: string, init: RequestInit) => Promise<Request>;\n /**\n * Callback invoked when a network or parsing error occurs during streaming.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param error The error that occurred.\n */\n onSseError?: (error: unknown) => void;\n /**\n * Callback invoked when an event is streamed from the server.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param event Event streamed from the server.\n * @returns Nothing (void).\n */\n onSseEvent?: (event: StreamEvent<TData>) => void;\n serializedBody?: RequestInit[\"body\"];\n /**\n * Default retry delay in milliseconds.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 3000\n */\n sseDefaultRetryDelay?: number;\n /**\n * Maximum number of retry attempts before giving up.\n */\n sseMaxRetryAttempts?: number;\n /**\n * Maximum retry delay in milliseconds.\n *\n * Applies only when exponential backoff is used.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 30000\n */\n sseMaxRetryDelay?: number;\n /**\n * Optional sleep function for retry backoff.\n *\n * Defaults to using `setTimeout`.\n */\n sseSleepFn?: (ms: number) => Promise<void>;\n url: string;\n };\n\nexport interface StreamEvent<TData = unknown> {\n data: TData;\n event?: string;\n id?: string;\n retry?: number;\n}\n\nexport type ServerSentEventsResult<\n TData = unknown,\n TReturn = void,\n TNext = unknown,\n> = {\n stream: AsyncGenerator<\n TData extends Record<string, unknown> ? TData[keyof TData] : TData,\n TReturn,\n TNext\n >;\n};\n\nexport const createSseClient = <TData = unknown>({\n onRequest,\n onSseError,\n onSseEvent,\n responseTransformer,\n responseValidator,\n sseDefaultRetryDelay,\n sseMaxRetryAttempts,\n sseMaxRetryDelay,\n sseSleepFn,\n url,\n ...options\n}: ServerSentEventsOptions): ServerSentEventsResult<TData> => {\n let lastEventId: string | undefined;\n\n const sleep =\n sseSleepFn ??\n ((ms: number) => new Promise((resolve) => setTimeout(resolve, ms)));\n\n const createStream = async function* () {\n let retryDelay: number = sseDefaultRetryDelay ?? 3000;\n let attempt = 0;\n const signal = options.signal ?? new AbortController().signal;\n\n while (true) {\n if (signal.aborted) break;\n\n attempt++;\n\n const headers =\n options.headers instanceof Headers\n ? options.headers\n : new Headers(options.headers as Record<string, string> | undefined);\n\n if (lastEventId !== undefined) {\n headers.set(\"Last-Event-ID\", lastEventId);\n }\n\n try {\n const requestInit: RequestInit = {\n redirect: \"follow\",\n ...options,\n body: options.serializedBody,\n headers,\n signal,\n };\n let request = new Request(url, requestInit);\n if (onRequest) {\n request = await onRequest(url, requestInit);\n }\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = options.fetch ?? globalThis.fetch;\n const response = await _fetch(request);\n\n if (!response.ok)\n throw new Error(\n `SSE failed: ${response.status} ${response.statusText}`,\n );\n\n if (!response.body) throw new Error(\"No body in SSE response\");\n\n const reader = response.body\n .pipeThrough(new TextDecoderStream())\n .getReader();\n\n let buffer = \"\";\n\n const abortHandler = () => {\n try {\n reader.cancel();\n } catch {\n // noop\n }\n };\n\n signal.addEventListener(\"abort\", abortHandler);\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n buffer += value;\n // Normalize line endings: CRLF -> LF, then CR -> LF\n buffer = buffer.replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\");\n\n const chunks = buffer.split(\"\\n\\n\");\n buffer = chunks.pop() ?? \"\";\n\n for (const chunk of chunks) {\n const lines = chunk.split(\"\\n\");\n const dataLines: Array<string> = [];\n let eventName: string | undefined;\n\n for (const line of lines) {\n if (line.startsWith(\"data:\")) {\n dataLines.push(line.replace(/^data:\\s*/, \"\"));\n } else if (line.startsWith(\"event:\")) {\n eventName = line.replace(/^event:\\s*/, \"\");\n } else if (line.startsWith(\"id:\")) {\n lastEventId = line.replace(/^id:\\s*/, \"\");\n } else if (line.startsWith(\"retry:\")) {\n const parsed = Number.parseInt(\n line.replace(/^retry:\\s*/, \"\"),\n 10,\n );\n if (!Number.isNaN(parsed)) {\n retryDelay = parsed;\n }\n }\n }\n\n let data: unknown;\n let parsedJson = false;\n\n if (dataLines.length) {\n const rawData = dataLines.join(\"\\n\");\n try {\n data = JSON.parse(rawData);\n parsedJson = true;\n } catch {\n data = rawData;\n }\n }\n\n if (parsedJson) {\n if (responseValidator) {\n await responseValidator(data);\n }\n\n if (responseTransformer) {\n data = await responseTransformer(data);\n }\n }\n\n onSseEvent?.({\n data,\n event: eventName,\n id: lastEventId,\n retry: retryDelay,\n });\n\n if (dataLines.length) {\n yield data as any;\n }\n }\n }\n } finally {\n signal.removeEventListener(\"abort\", abortHandler);\n reader.releaseLock();\n }\n\n break; // exit loop on normal completion\n } catch (error) {\n // connection failed or aborted; retry after delay\n onSseError?.(error);\n\n if (\n sseMaxRetryAttempts !== undefined &&\n attempt >= sseMaxRetryAttempts\n ) {\n break; // stop after firing error\n }\n\n // exponential backoff: double retry each attempt, cap at 30s\n const backoff = Math.min(\n retryDelay * 2 ** (attempt - 1),\n sseMaxRetryDelay ?? 30000,\n );\n await sleep(backoff);\n }\n }\n };\n\n const stream = createStream();\n\n return { stream };\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\ninterface SerializeOptions<T>\n extends SerializePrimitiveOptions, SerializerOptions<T> {}\n\ninterface SerializePrimitiveOptions {\n allowReserved?: boolean;\n name: string;\n}\n\nexport interface SerializerOptions<T> {\n /**\n * @default true\n */\n explode: boolean;\n style: T;\n}\n\nexport type ArrayStyle = \"form\" | \"spaceDelimited\" | \"pipeDelimited\";\nexport type ArraySeparatorStyle = ArrayStyle | MatrixStyle;\ntype MatrixStyle = \"label\" | \"matrix\" | \"simple\";\nexport type ObjectStyle = \"form\" | \"deepObject\";\ntype ObjectSeparatorStyle = ObjectStyle | MatrixStyle;\n\ninterface SerializePrimitiveParam extends SerializePrimitiveOptions {\n value: string;\n}\n\nexport const separatorArrayExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case \"label\":\n return \".\";\n case \"matrix\":\n return \";\";\n case \"simple\":\n return \",\";\n default:\n return \"&\";\n }\n};\n\nexport const separatorArrayNoExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case \"form\":\n return \",\";\n case \"pipeDelimited\":\n return \"|\";\n case \"spaceDelimited\":\n return \"%20\";\n default:\n return \",\";\n }\n};\n\nexport const separatorObjectExplode = (style: ObjectSeparatorStyle) => {\n switch (style) {\n case \"label\":\n return \".\";\n case \"matrix\":\n return \";\";\n case \"simple\":\n return \",\";\n default:\n return \"&\";\n }\n};\n\nexport const serializeArrayParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n}: SerializeOptions<ArraySeparatorStyle> & {\n value: unknown[];\n}) => {\n if (!explode) {\n const joinedValues = (\n allowReserved ? value : value.map((v) => encodeURIComponent(v as string))\n ).join(separatorArrayNoExplode(style));\n switch (style) {\n case \"label\":\n return `.${joinedValues}`;\n case \"matrix\":\n return `;${name}=${joinedValues}`;\n case \"simple\":\n return joinedValues;\n default:\n return `${name}=${joinedValues}`;\n }\n }\n\n const separator = separatorArrayExplode(style);\n const joinedValues = value\n .map((v) => {\n if (style === \"label\" || style === \"simple\") {\n return allowReserved ? v : encodeURIComponent(v as string);\n }\n\n return serializePrimitiveParam({\n allowReserved,\n name,\n value: v as string,\n });\n })\n .join(separator);\n return style === \"label\" || style === \"matrix\"\n ? separator + joinedValues\n : joinedValues;\n};\n\nexport const serializePrimitiveParam = ({\n allowReserved,\n name,\n value,\n}: SerializePrimitiveParam) => {\n if (value === undefined || value === null) {\n return \"\";\n }\n\n if (typeof value === \"object\") {\n throw new Error(\n \"Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.\",\n );\n }\n\n return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;\n};\n\nexport const serializeObjectParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n valueOnly,\n}: SerializeOptions<ObjectSeparatorStyle> & {\n value: Record<string, unknown> | Date;\n valueOnly?: boolean;\n}) => {\n if (value instanceof Date) {\n return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;\n }\n\n if (style !== \"deepObject\" && !explode) {\n let values: string[] = [];\n Object.entries(value).forEach(([key, v]) => {\n values = [\n ...values,\n key,\n allowReserved ? (v as string) : encodeURIComponent(v as string),\n ];\n });\n const joinedValues = values.join(\",\");\n switch (style) {\n case \"form\":\n return `${name}=${joinedValues}`;\n case \"label\":\n return `.${joinedValues}`;\n case \"matrix\":\n return `;${name}=${joinedValues}`;\n default:\n return joinedValues;\n }\n }\n\n const separator = separatorObjectExplode(style);\n const joinedValues = Object.entries(value)\n .map(([key, v]) =>\n serializePrimitiveParam({\n allowReserved,\n name: style === \"deepObject\" ? `${name}[${key}]` : key,\n value: v as string,\n }),\n )\n .join(separator);\n return style === \"label\" || style === \"matrix\"\n ? separator + joinedValues\n : joinedValues;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { BodySerializer, QuerySerializer } from \"./bodySerializer.gen.js\";\nimport {\n type ArraySeparatorStyle,\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from \"./pathSerializer.gen.js\";\n\nexport interface PathSerializer {\n path: Record<string, unknown>;\n url: string;\n}\n\nexport const PATH_PARAM_RE = /\\{[^{}]+\\}/g;\n\nexport const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {\n let url = _url;\n const matches = _url.match(PATH_PARAM_RE);\n if (matches) {\n for (const match of matches) {\n let explode = false;\n let name = match.substring(1, match.length - 1);\n let style: ArraySeparatorStyle = \"simple\";\n\n if (name.endsWith(\"*\")) {\n explode = true;\n name = name.substring(0, name.length - 1);\n }\n\n if (name.startsWith(\".\")) {\n name = name.substring(1);\n style = \"label\";\n } else if (name.startsWith(\";\")) {\n name = name.substring(1);\n style = \"matrix\";\n }\n\n const value = path[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n if (Array.isArray(value)) {\n url = url.replace(\n match,\n serializeArrayParam({ explode, name, style, value }),\n );\n continue;\n }\n\n if (typeof value === \"object\") {\n url = url.replace(\n match,\n serializeObjectParam({\n explode,\n name,\n style,\n value: value as Record<string, unknown>,\n valueOnly: true,\n }),\n );\n continue;\n }\n\n if (style === \"matrix\") {\n url = url.replace(\n match,\n `;${serializePrimitiveParam({\n name,\n value: value as string,\n })}`,\n );\n continue;\n }\n\n const replaceValue = encodeURIComponent(\n style === \"label\" ? `.${value as string}` : (value as string),\n );\n url = url.replace(match, replaceValue);\n }\n }\n return url;\n};\n\nexport const getUrl = ({\n baseUrl,\n path,\n query,\n querySerializer,\n url: _url,\n}: {\n baseUrl?: string;\n path?: Record<string, unknown>;\n query?: Record<string, unknown>;\n querySerializer: QuerySerializer;\n url: string;\n}) => {\n const pathUrl = _url.startsWith(\"/\") ? _url : `/${_url}`;\n let url = (baseUrl ?? \"\") + pathUrl;\n if (path) {\n url = defaultPathSerializer({ path, url });\n }\n let search = query ? querySerializer(query) : \"\";\n if (search.startsWith(\"?\")) {\n search = search.substring(1);\n }\n if (search) {\n url += `?${search}`;\n }\n return url;\n};\n\nexport function getValidRequestBody(options: {\n body?: unknown;\n bodySerializer?: BodySerializer | null;\n serializedBody?: unknown;\n}) {\n const hasBody = options.body !== undefined;\n const isSerializedBody = hasBody && options.bodySerializer;\n\n if (isSerializedBody) {\n if (\"serializedBody\" in options) {\n const hasSerializedBody =\n options.serializedBody !== undefined && options.serializedBody !== \"\";\n\n return hasSerializedBody ? options.serializedBody : null;\n }\n\n // not all clients implement a serializedBody property (i.e. client-axios)\n return options.body !== \"\" ? options.body : null;\n }\n\n // plain/text body\n if (hasBody) {\n return options.body;\n }\n\n // no body was provided\n return undefined;\n}\n","// This file is auto-generated by @hey-api/openapi-ts\n\nexport type AuthToken = string | undefined;\n\nexport interface Auth {\n /**\n * Which part of the request do we use to send the auth?\n *\n * @default 'header'\n */\n in?: \"header\" | \"query\" | \"cookie\";\n /**\n * Header or query parameter name.\n *\n * @default 'Authorization'\n */\n name?: string;\n scheme?: \"basic\" | \"bearer\";\n type: \"apiKey\" | \"http\";\n}\n\nexport const getAuthToken = async (\n auth: Auth,\n callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken,\n): Promise<string | undefined> => {\n const token =\n typeof callback === \"function\" ? await callback(auth) : callback;\n\n if (!token) {\n return;\n }\n\n if (auth.scheme === \"bearer\") {\n return `Bearer ${token}`;\n }\n\n if (auth.scheme === \"basic\") {\n return `Basic ${btoa(token)}`;\n }\n\n return token;\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { getAuthToken } from \"../core/auth.gen.js\";\nimport type { QuerySerializerOptions } from \"../core/bodySerializer.gen.js\";\nimport { jsonBodySerializer } from \"../core/bodySerializer.gen.js\";\nimport {\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from \"../core/pathSerializer.gen.js\";\nimport { getUrl } from \"../core/utils.gen.js\";\nimport type {\n Client,\n ClientOptions,\n Config,\n RequestOptions,\n} from \"./types.gen.js\";\n\nexport const createQuerySerializer = <T = unknown>({\n parameters = {},\n ...args\n}: QuerySerializerOptions = {}) => {\n const querySerializer = (queryParams: T) => {\n const search: string[] = [];\n if (queryParams && typeof queryParams === \"object\") {\n for (const name in queryParams) {\n const value = queryParams[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n const options = parameters[name] || args;\n\n if (Array.isArray(value)) {\n const serializedArray = serializeArrayParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: \"form\",\n value,\n ...options.array,\n });\n if (serializedArray) search.push(serializedArray);\n } else if (typeof value === \"object\") {\n const serializedObject = serializeObjectParam({\n allowReserved: options.allowReserved,\n explode: true,\n name,\n style: \"deepObject\",\n value: value as Record<string, unknown>,\n ...options.object,\n });\n if (serializedObject) search.push(serializedObject);\n } else {\n const serializedPrimitive = serializePrimitiveParam({\n allowReserved: options.allowReserved,\n name,\n value: value as string,\n });\n if (serializedPrimitive) search.push(serializedPrimitive);\n }\n }\n }\n return search.join(\"&\");\n };\n return querySerializer;\n};\n\n/**\n * Infers parseAs value from provided Content-Type header.\n */\nexport const getParseAs = (\n contentType: string | null,\n): Exclude<Config[\"parseAs\"], \"auto\"> => {\n if (!contentType) {\n // If no Content-Type header is provided, the best we can do is return the raw response body,\n // which is effectively the same as the 'stream' option.\n return \"stream\";\n }\n\n const cleanContent = contentType.split(\";\")[0]?.trim();\n\n if (!cleanContent) {\n return;\n }\n\n if (\n cleanContent.startsWith(\"application/json\") ||\n cleanContent.endsWith(\"+json\")\n ) {\n return \"json\";\n }\n\n if (cleanContent === \"multipart/form-data\") {\n return \"formData\";\n }\n\n if (\n [\"application/\", \"audio/\", \"image/\", \"video/\"].some((type) =>\n cleanContent.startsWith(type),\n )\n ) {\n return \"blob\";\n }\n\n if (cleanContent.startsWith(\"text/\")) {\n return \"text\";\n }\n\n return;\n};\n\nconst checkForExistence = (\n options: Pick<RequestOptions, \"auth\" | \"query\"> & {\n headers: Headers;\n },\n name?: string,\n): boolean => {\n if (!name) {\n return false;\n }\n if (\n options.headers.has(name) ||\n options.query?.[name] ||\n options.headers.get(\"Cookie\")?.includes(`${name}=`)\n ) {\n return true;\n }\n return false;\n};\n\nexport const setAuthParams = async ({\n security,\n ...options\n}: Pick<Required<RequestOptions>, \"security\"> &\n Pick<RequestOptions, \"auth\" | \"query\"> & {\n headers: Headers;\n }) => {\n for (const auth of security) {\n if (checkForExistence(options, auth.name)) {\n continue;\n }\n\n const token = await getAuthToken(auth, options.auth);\n\n if (!token) {\n continue;\n }\n\n const name = auth.name ?? \"Authorization\";\n\n switch (auth.in) {\n case \"query\":\n if (!options.query) {\n options.query = {};\n }\n options.query[name] = token;\n break;\n case \"cookie\":\n options.headers.append(\"Cookie\", `${name}=${token}`);\n break;\n case \"header\":\n default:\n options.headers.set(name, token);\n break;\n }\n }\n};\n\nexport const buildUrl: Client[\"buildUrl\"] = (options) =>\n getUrl({\n baseUrl: options.baseUrl as string,\n path: options.path,\n query: options.query,\n querySerializer:\n typeof options.querySerializer === \"function\"\n ? options.querySerializer\n : createQuerySerializer(options.querySerializer),\n url: options.url,\n });\n\nexport const mergeConfigs = (a: Config, b: Config): Config => {\n const config = { ...a, ...b };\n if (config.baseUrl?.endsWith(\"/\")) {\n config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);\n }\n config.headers = mergeHeaders(a.headers, b.headers);\n return config;\n};\n\nconst headersEntries = (headers: Headers): Array<[string, string]> => {\n const entries: Array<[string, string]> = [];\n headers.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n};\n\nexport const mergeHeaders = (\n ...headers: Array<Required<Config>[\"headers\"] | undefined>\n): Headers => {\n const mergedHeaders = new Headers();\n for (const header of headers) {\n if (!header) {\n continue;\n }\n\n const iterator =\n header instanceof Headers\n ? headersEntries(header)\n : Object.entries(header);\n\n for (const [key, value] of iterator) {\n if (value === null) {\n mergedHeaders.delete(key);\n } else if (Array.isArray(value)) {\n for (const v of value) {\n mergedHeaders.append(key, v as string);\n }\n } else if (value !== undefined) {\n // assume object headers are meant to be JSON stringified, i.e. their\n // content value in OpenAPI specification is 'application/json'\n mergedHeaders.set(\n key,\n typeof value === \"object\" ? JSON.stringify(value) : (value as string),\n );\n }\n }\n }\n return mergedHeaders;\n};\n\ntype ErrInterceptor<Err, Res, Req, Options> = (\n error: Err,\n response: Res,\n request: Req,\n options: Options,\n) => Err | Promise<Err>;\n\ntype ReqInterceptor<Req, Options> = (\n request: Req,\n options: Options,\n) => Req | Promise<Req>;\n\ntype ResInterceptor<Res, Req, Options> = (\n response: Res,\n request: Req,\n options: Options,\n) => Res | Promise<Res>;\n\nclass Interceptors<Interceptor> {\n fns: Array<Interceptor | null> = [];\n\n clear(): void {\n this.fns = [];\n }\n\n eject(id: number | Interceptor): void {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = null;\n }\n }\n\n exists(id: number | Interceptor): boolean {\n const index = this.getInterceptorIndex(id);\n return Boolean(this.fns[index]);\n }\n\n getInterceptorIndex(id: number | Interceptor): number {\n if (typeof id === \"number\") {\n return this.fns[id] ? id : -1;\n }\n return this.fns.indexOf(id);\n }\n\n update(\n id: number | Interceptor,\n fn: Interceptor,\n ): number | Interceptor | false {\n const index = this.getInterceptorIndex(id);\n if (this.fns[index]) {\n this.fns[index] = fn;\n return id;\n }\n return false;\n }\n\n use(fn: Interceptor): number {\n this.fns.push(fn);\n return this.fns.length - 1;\n }\n}\n\nexport interface Middleware<Req, Res, Err, Options> {\n error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;\n request: Interceptors<ReqInterceptor<Req, Options>>;\n response: Interceptors<ResInterceptor<Res, Req, Options>>;\n}\n\nexport const createInterceptors = <Req, Res, Err, Options>(): Middleware<\n Req,\n Res,\n Err,\n Options\n> => ({\n error: new Interceptors<ErrInterceptor<Err, Res, Req, Options>>(),\n request: new Interceptors<ReqInterceptor<Req, Options>>(),\n response: new Interceptors<ResInterceptor<Res, Req, Options>>(),\n});\n\nconst defaultQuerySerializer = createQuerySerializer({\n allowReserved: false,\n array: {\n explode: true,\n style: \"form\",\n },\n object: {\n explode: true,\n style: \"deepObject\",\n },\n});\n\nconst defaultHeaders = {\n \"Content-Type\": \"application/json\",\n};\n\nexport const createConfig = <T extends ClientOptions = ClientOptions>(\n override: Config<Omit<ClientOptions, keyof T> & T> = {},\n): Config<Omit<ClientOptions, keyof T> & T> => ({\n ...jsonBodySerializer,\n headers: defaultHeaders,\n parseAs: \"auto\",\n querySerializer: defaultQuerySerializer,\n ...override,\n});\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { createSseClient } from \"../core/serverSentEvents.gen.js\";\nimport type { HttpMethod } from \"../core/types.gen.js\";\nimport { getValidRequestBody } from \"../core/utils.gen.js\";\nimport type {\n Client,\n Config,\n RequestOptions,\n ResolvedRequestOptions,\n} from \"./types.gen.js\";\nimport {\n buildUrl,\n createConfig,\n createInterceptors,\n getParseAs,\n mergeConfigs,\n mergeHeaders,\n setAuthParams,\n} from \"./utils.gen.js\";\n\ntype ReqInit = Omit<RequestInit, \"body\" | \"headers\"> & {\n body?: any;\n headers: ReturnType<typeof mergeHeaders>;\n};\n\nexport const createClient = (config: Config = {}): Client => {\n let _config = mergeConfigs(createConfig(), config);\n\n const getConfig = (): Config => ({ ..._config });\n\n const setConfig = (config: Config): Config => {\n _config = mergeConfigs(_config, config);\n return getConfig();\n };\n\n const interceptors = createInterceptors<\n Request,\n Response,\n unknown,\n ResolvedRequestOptions\n >();\n\n const beforeRequest = async (options: RequestOptions) => {\n const opts = {\n ..._config,\n ...options,\n fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,\n headers: mergeHeaders(_config.headers, options.headers),\n serializedBody: undefined,\n };\n\n if (opts.security) {\n await setAuthParams({\n ...opts,\n security: opts.security,\n });\n }\n\n if (opts.requestValidator) {\n await opts.requestValidator(opts);\n }\n\n if (opts.body !== undefined && opts.bodySerializer) {\n opts.serializedBody = opts.bodySerializer(opts.body);\n }\n\n // remove Content-Type header if body is empty to avoid sending invalid requests\n if (opts.body === undefined || opts.serializedBody === \"\") {\n opts.headers.delete(\"Content-Type\");\n }\n\n const url = buildUrl(opts);\n\n return { opts, url };\n };\n\n const request: Client[\"request\"] = async (options) => {\n // @ts-expect-error\n const { opts, url } = await beforeRequest(options);\n const requestInit: ReqInit = {\n redirect: \"follow\",\n ...opts,\n body: getValidRequestBody(opts),\n };\n\n let request = new Request(url, requestInit);\n\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = opts.fetch!;\n let response: Response;\n\n try {\n response = await _fetch(request);\n } catch (error) {\n // Handle fetch exceptions (AbortError, network errors, etc.)\n let finalError = error;\n\n for (const fn of interceptors.error.fns) {\n if (fn) {\n finalError = (await fn(\n error,\n undefined as any,\n request,\n opts,\n )) as unknown;\n }\n }\n\n finalError = finalError || ({} as unknown);\n\n if (opts.throwOnError) {\n throw finalError;\n }\n\n // Return error response\n return opts.responseStyle === \"data\"\n ? undefined\n : {\n error: finalError,\n request,\n response: undefined as any,\n };\n }\n\n for (const fn of interceptors.response.fns) {\n if (fn) {\n response = await fn(response, request, opts);\n }\n }\n\n const result = {\n request,\n response,\n };\n\n if (response.ok) {\n const parseAs =\n (opts.parseAs === \"auto\"\n ? getParseAs(response.headers.get(\"Content-Type\"))\n : opts.parseAs) ?? \"json\";\n\n if (\n response.status === 204 ||\n response.headers.get(\"Content-Length\") === \"0\"\n ) {\n let emptyData: any;\n switch (parseAs) {\n case \"arrayBuffer\":\n case \"blob\":\n case \"text\":\n emptyData = await response[parseAs]();\n break;\n case \"formData\":\n emptyData = new FormData();\n break;\n case \"stream\":\n emptyData = response.body;\n break;\n case \"json\":\n default:\n emptyData = {};\n break;\n }\n return opts.responseStyle === \"data\"\n ? emptyData\n : {\n data: emptyData,\n ...result,\n };\n }\n\n let data: any;\n switch (parseAs) {\n case \"arrayBuffer\":\n case \"blob\":\n case \"formData\":\n case \"json\":\n case \"text\":\n data = await response[parseAs]();\n break;\n case \"stream\":\n return opts.responseStyle === \"data\"\n ? response.body\n : {\n data: response.body,\n ...result,\n };\n }\n\n if (parseAs === \"json\") {\n if (opts.responseValidator) {\n await opts.responseValidator(data);\n }\n\n if (opts.responseTransformer) {\n data = await opts.responseTransformer(data);\n }\n }\n\n return opts.responseStyle === \"data\"\n ? data\n : {\n data,\n ...result,\n };\n }\n\n const textError = await response.text();\n let jsonError: unknown;\n\n try {\n jsonError = JSON.parse(textError);\n } catch {\n // noop\n }\n\n const error = jsonError ?? textError;\n let finalError = error;\n\n for (const fn of interceptors.error.fns) {\n if (fn) {\n finalError = (await fn(error, response, request, opts)) as string;\n }\n }\n\n finalError = finalError || ({} as string);\n\n if (opts.throwOnError) {\n throw finalError;\n }\n\n // TODO: we probably want to return error and improve types\n return opts.responseStyle === \"data\"\n ? undefined\n : {\n error: finalError,\n ...result,\n };\n };\n\n const makeMethodFn =\n (method: Uppercase<HttpMethod>) => (options: RequestOptions) =>\n request({ ...options, method });\n\n const makeSseFn =\n (method: Uppercase<HttpMethod>) => async (options: RequestOptions) => {\n const { opts, url } = await beforeRequest(options);\n return createSseClient({\n ...opts,\n body: opts.body as BodyInit | null | undefined,\n headers: opts.headers as unknown as Record<string, string>,\n method,\n onRequest: async (url, init) => {\n let request = new Request(url, init);\n for (const fn of interceptors.request.fns) {\n if (fn) {\n request = await fn(request, opts);\n }\n }\n return request;\n },\n url,\n });\n };\n\n return {\n buildUrl,\n connect: makeMethodFn(\"CONNECT\"),\n delete: makeMethodFn(\"DELETE\"),\n get: makeMethodFn(\"GET\"),\n getConfig,\n head: makeMethodFn(\"HEAD\"),\n interceptors,\n options: makeMethodFn(\"OPTIONS\"),\n patch: makeMethodFn(\"PATCH\"),\n post: makeMethodFn(\"POST\"),\n put: makeMethodFn(\"PUT\"),\n request,\n setConfig,\n sse: {\n connect: makeSseFn(\"CONNECT\"),\n delete: makeSseFn(\"DELETE\"),\n get: makeSseFn(\"GET\"),\n head: makeSseFn(\"HEAD\"),\n options: makeSseFn(\"OPTIONS\"),\n patch: makeSseFn(\"PATCH\"),\n post: makeSseFn(\"POST\"),\n put: makeSseFn(\"PUT\"),\n trace: makeSseFn(\"TRACE\"),\n },\n trace: makeMethodFn(\"TRACE\"),\n } as Client;\n};\n","/** SDK version — updated automatically by mix update.sdks */\nexport const SDK_VERSION = \"0.4.1\";\n\n/** Default API version sent in every request — updated automatically by mix update.sdks */\nexport const DEFAULT_API_VERSION = \"2026-02-27\";\n","import { createClient, createConfig } from \"./_internal/client/index\";\nimport type { Client } from \"./_internal/client/index\";\n\n/** SDK version and default API version — sourced from generated version.ts */\nimport { SDK_VERSION, DEFAULT_API_VERSION } from \"./version\";\nexport { SDK_VERSION, DEFAULT_API_VERSION };\n\nexport interface BaseClientConfig {\n /** Base URL of the GPT Core API */\n baseUrl?: string;\n /** User JWT token (Bearer auth) */\n token?: string;\n /** Application API key (x-application-key header) */\n apiKey?: string;\n /** Application ID (x-application-id header) */\n applicationId?: string;\n /**\n * API version date to use for requests (e.g., \"2025-12-03\").\n * Defaults to the version this SDK was built against.\n * Pin this to a specific date to prevent breaking changes\n * when upgrading the SDK.\n */\n apiVersion?: string;\n}\n\nexport interface RequestOptions {\n /** AbortSignal for cancellation */\n signal?: AbortSignal;\n /** Idempotency key override */\n idempotencyKey?: string;\n /** Additional headers for this request */\n headers?: Record<string, string>;\n}\n\n/**\n * Check if a URL is considered secure for transmitting credentials.\n * Localhost and 127.0.0.1 are allowed for development.\n */\nfunction isSecureUrl(url: string): boolean {\n try {\n const parsed = new URL(url);\n if (parsed.protocol === \"https:\") return true;\n if (parsed.hostname === \"localhost\" || parsed.hostname === \"127.0.0.1\")\n return true;\n return false;\n } catch {\n return false;\n }\n}\n\nexport abstract class BaseClient {\n protected config: BaseClientConfig;\n\n /** Per-instance HTTP client — isolated from all other BaseClient instances */\n protected clientInstance: Client;\n\n /** The effective API version used by this client instance */\n public readonly apiVersion: string;\n\n constructor(config: BaseClientConfig = {}) {\n this.config = config;\n this.apiVersion = config.apiVersion ?? DEFAULT_API_VERSION;\n\n // Security: Warn if using non-HTTPS URL in non-localhost environment\n if (config.baseUrl && !isSecureUrl(config.baseUrl)) {\n console.warn(\n \"[GPT Core SDK] Warning: Using non-HTTPS URL. \" +\n \"Credentials may be transmitted insecurely. \" +\n \"Use HTTPS in production environments.\",\n );\n }\n\n // Create an isolated client instance — not the module-level singleton.\n // This prevents multiple GptAdmin instances from sharing interceptor lists\n // or overwriting each other's baseUrl configuration.\n const clientConfig: Record<string, unknown> = {};\n if (config.baseUrl) clientConfig[\"baseUrl\"] = config.baseUrl;\n\n this.clientInstance = createClient(createConfig(clientConfig));\n\n this.clientInstance.interceptors.request.use((req) => {\n // Security: Verify HTTPS before attaching credentials\n const requestUrl = req.url || config.baseUrl || \"\";\n if ((config.apiKey || config.token) && !isSecureUrl(requestUrl)) {\n console.warn(\n \"[GPT Core SDK] Warning: Sending credentials over non-HTTPS connection.\",\n );\n }\n\n req.headers.set(\n \"Accept\",\n `application/vnd.api+json; version=${this.apiVersion}`,\n );\n req.headers.set(\"Content-Type\", \"application/vnd.api+json\");\n\n if (config.apiKey) {\n req.headers.set(\"x-application-key\", config.apiKey);\n }\n if (config.applicationId) {\n req.headers.set(\"x-application-id\", config.applicationId);\n }\n if (config.token) {\n req.headers.set(\"Authorization\", `Bearer ${config.token}`);\n }\n return req;\n });\n }\n\n protected async requestWithRetry<T>(fn: () => Promise<T>): Promise<T> {\n return fn();\n }\n\n protected unwrap<T>(resource: unknown): T {\n if (!resource) return null as T;\n // If the resource is wrapped in { data: ... }, extract it.\n const obj = resource as Record<string, unknown>;\n if (obj.data && !obj.id && !obj.type) {\n return obj.data as T;\n }\n return resource as T;\n }\n\n protected getHeaders() {\n return {\n \"x-application-key\": this.config.apiKey || \"\",\n };\n }\n}\n","/**\n * Base error class for all GPT Core SDK errors\n */\nexport class GptCoreError extends Error {\n public readonly name: string;\n public readonly statusCode?: number;\n public readonly code?: string;\n public readonly requestId?: string;\n public readonly headers?: Record<string, string>;\n public readonly body?: unknown;\n public cause?: Error;\n\n constructor(\n message: string,\n options?: {\n statusCode?: number;\n code?: string;\n requestId?: string;\n headers?: Record<string, string>;\n body?: unknown;\n cause?: Error;\n },\n ) {\n super(message);\n this.name = this.constructor.name;\n this.statusCode = options?.statusCode;\n this.code = options?.code;\n this.requestId = options?.requestId;\n this.headers = options?.headers;\n this.body = options?.body;\n this.cause = options?.cause;\n\n // Maintains proper stack trace for where our error was thrown (only available on V8)\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n\n/**\n * Authentication errors (401)\n */\nexport class AuthenticationError extends GptCoreError {\n constructor(\n message = \"Authentication failed\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 401, ...options });\n }\n}\n\n/**\n * Authorization/Permission errors (403)\n */\nexport class AuthorizationError extends GptCoreError {\n constructor(\n message = \"Permission denied\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 403, ...options });\n }\n}\n\n/**\n * Resource not found errors (404)\n */\nexport class NotFoundError extends GptCoreError {\n constructor(\n message = \"Resource not found\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 404, ...options });\n }\n}\n\n/**\n * Validation errors (400, 422)\n */\nexport class ValidationError extends GptCoreError {\n public readonly errors?: Array<{\n field?: string;\n message: string;\n }>;\n\n constructor(\n message = \"Validation failed\",\n errors?: Array<{ field?: string; message: string }>,\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 422, ...options });\n this.errors = errors;\n }\n}\n\n/**\n * Rate limiting errors (429)\n */\nexport class RateLimitError extends GptCoreError {\n public readonly retryAfter?: number;\n\n constructor(\n message = \"Rate limit exceeded\",\n retryAfter?: number,\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 429, ...options });\n this.retryAfter = retryAfter;\n }\n}\n\n/**\n * Network/connection errors\n */\nexport class NetworkError extends GptCoreError {\n constructor(\n message = \"Network request failed\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, options);\n }\n}\n\n/**\n * Timeout errors\n */\nexport class TimeoutError extends GptCoreError {\n constructor(\n message = \"Request timeout\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, options);\n }\n}\n\n/**\n * Server errors (500+)\n */\nexport class ServerError extends GptCoreError {\n constructor(\n message = \"Internal server error\",\n options?: ConstructorParameters<typeof GptCoreError>[1],\n ) {\n super(message, { statusCode: 500, ...options });\n }\n}\n\n/**\n * Parse error response and throw appropriate error class\n */\nexport function handleApiError(error: unknown): never {\n const err = error as Record<string, unknown>;\n\n // Extract error details from response - handle generated client structure\n const response = (err?.response || err) as Record<string, unknown>;\n const statusCode = (response?.status || err?.status || err?.statusCode) as\n | number\n | undefined;\n const headers = (response?.headers || err?.headers) as\n | Headers\n | Record<string, string>\n | null\n | undefined;\n const requestId = ((headers as Headers)?.get?.(\"x-request-id\") ||\n (headers as Record<string, string>)?.[\"x-request-id\"]) as\n | string\n | undefined;\n\n // The body might be in different locations depending on the error structure\n const body = (response?.body ||\n response?.data ||\n err?.body ||\n err?.data ||\n err) as Record<string, unknown> | string | undefined;\n\n // Try to extract error message from JSON:API error format\n let message = \"An error occurred\";\n let errors: Array<{ field?: string; message: string }> | undefined;\n\n const bodyObj = body as Record<string, unknown> | undefined;\n if (bodyObj?.errors && Array.isArray(bodyObj.errors)) {\n // JSON:API error format\n const firstError = bodyObj.errors[0] as\n | { title?: string; detail?: string }\n | undefined;\n message = firstError?.title || firstError?.detail || message;\n errors = (\n bodyObj.errors as Array<{\n source?: { pointer?: string };\n detail?: string;\n title?: string;\n }>\n ).map((e) => ({\n field: e.source?.pointer?.split(\"/\").pop(),\n message: e.detail || e.title || \"Unknown error\",\n }));\n } else if (bodyObj?.message) {\n message = bodyObj.message as string;\n } else if (typeof body === \"string\") {\n message = body;\n } else if (err?.message) {\n message = err.message as string;\n }\n\n // Security: Filter sensitive headers to prevent information disclosure\n const sensitiveHeaderPatterns = [\n \"set-cookie\",\n \"authorization\",\n \"x-application-key\",\n \"cookie\",\n \"x-forwarded-for\",\n \"x-real-ip\",\n ];\n\n const filterSensitiveHeaders = (\n hdrs: Headers | Record<string, string> | null | undefined,\n ): Record<string, string> | undefined => {\n if (!hdrs) return undefined;\n\n const entries: [string, string][] =\n hdrs instanceof Headers\n ? Array.from(hdrs.entries())\n : Object.entries(hdrs);\n\n const filtered = entries.filter(([key]) => {\n const lowerKey = key.toLowerCase();\n return !sensitiveHeaderPatterns.some((pattern) =>\n lowerKey.includes(pattern),\n );\n });\n\n return filtered.length > 0 ? Object.fromEntries(filtered) : undefined;\n };\n\n const errorOptions = {\n statusCode,\n requestId,\n headers: filterSensitiveHeaders(headers),\n body,\n cause: error instanceof Error ? error : undefined,\n };\n\n // Throw appropriate error based on status code\n switch (statusCode) {\n case 401:\n throw new AuthenticationError(message, errorOptions);\n case 403:\n throw new AuthorizationError(message, errorOptions);\n case 404:\n throw new NotFoundError(message, errorOptions);\n case 400:\n case 422:\n throw new ValidationError(message, errors, errorOptions);\n case 429: {\n const retryAfter =\n (headers as Headers)?.get?.(\"retry-after\") ||\n (headers as Record<string, string>)?.[\"retry-after\"];\n throw new RateLimitError(\n message,\n retryAfter ? parseInt(retryAfter, 10) : undefined,\n errorOptions,\n );\n }\n case 500:\n case 502:\n case 503:\n case 504:\n throw new ServerError(message, errorOptions);\n default:\n if (statusCode && statusCode >= 400) {\n throw new GptCoreError(message, errorOptions);\n }\n // Network/connection errors\n throw new NetworkError(message, errorOptions);\n }\n}\n","import { GptCoreError, TimeoutError } from \"./errors\";\n\n/**\n * Security defaults for streaming\n */\nconst DEFAULT_STREAM_TIMEOUT = 300000; // 5 minutes\nconst DEFAULT_MAX_CHUNKS = 10000;\nconst DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024; // 10MB\n\n/**\n * Options for streaming requests\n */\nexport interface StreamOptions {\n signal?: AbortSignal;\n onError?: (error: Error) => void;\n timeout?: number;\n maxChunks?: number;\n maxBufferSize?: number;\n}\n\n/**\n * Chunk shape from execution SSE stream\n */\nexport interface StreamMessageChunk {\n type: \"content\" | \"done\" | \"error\";\n content?: string;\n error?: string;\n metadata?: Record<string, unknown>;\n}\n\n/**\n * Parse Server-Sent Events (SSE) stream into typed chunks.\n * Security: Enforces timeout, chunk count, and buffer size limits.\n */\nexport async function* streamSSE<T = unknown>(\n response: Response,\n options: StreamOptions = {},\n): AsyncIterableIterator<T> {\n if (!response.body) {\n throw new GptCoreError(\"Response body is null\", { code: \"stream_error\" });\n }\n\n const reader = response.body.getReader();\n const decoder = new TextDecoder();\n let buffer = \"\";\n\n const timeout = options.timeout ?? DEFAULT_STREAM_TIMEOUT;\n const maxChunks = options.maxChunks ?? DEFAULT_MAX_CHUNKS;\n const maxBufferSize = options.maxBufferSize ?? DEFAULT_MAX_BUFFER_SIZE;\n\n const startTime = Date.now();\n let chunkCount = 0;\n let bufferSize = 0;\n\n try {\n while (true) {\n const elapsed = Date.now() - startTime;\n if (elapsed > timeout) {\n reader.cancel();\n throw new TimeoutError(\n `Stream timeout exceeded after ${elapsed}ms (limit: ${timeout}ms)`,\n );\n }\n\n if (chunkCount >= maxChunks) {\n reader.cancel();\n throw new GptCoreError(`Maximum chunk limit exceeded (${maxChunks})`, {\n code: \"stream_limit_exceeded\",\n });\n }\n\n const { done, value } = await reader.read();\n\n if (done) break;\n\n if (options.signal?.aborted) {\n reader.cancel();\n throw new Error(\"Stream aborted\");\n }\n\n bufferSize += value.length;\n if (bufferSize > maxBufferSize) {\n reader.cancel();\n throw new GptCoreError(\n `Stream buffer size exceeded (${bufferSize} bytes, limit: ${maxBufferSize})`,\n { code: \"stream_limit_exceeded\" },\n );\n }\n\n buffer += decoder.decode(value, { stream: true });\n const lines = buffer.split(\"\\n\");\n buffer = lines.pop() || \"\";\n\n for (const line of lines) {\n if (line.startsWith(\"data: \")) {\n const data = line.slice(6);\n if (data === \"[DONE]\" || data.trim() === \"\") continue;\n\n chunkCount++;\n\n try {\n yield JSON.parse(data) as T;\n } catch {\n yield {\n type: \"error\",\n error: `Malformed SSE data: ${data.substring(0, 200)}`,\n } as T;\n }\n }\n }\n }\n } catch (error) {\n if (options.onError) options.onError(error as Error);\n throw error;\n } finally {\n reader.releaseLock();\n }\n}\n\n/**\n * Parse streaming message response — stops on \"done\" or \"error\" chunk.\n */\nexport async function* streamMessage(\n response: Response,\n options: StreamOptions = {},\n): AsyncIterableIterator<StreamMessageChunk> {\n for await (const chunk of streamSSE<StreamMessageChunk>(response, options)) {\n yield chunk;\n if (chunk.type === \"done\" || chunk.type === \"error\") break;\n }\n}\n","import type { Client } from \"./_internal/client/index\";\nimport type { RequestOptions } from \"./base-client\";\nimport { handleApiError, ServerError, GptCoreError } from \"./errors\";\nimport {\n streamMessage,\n type StreamMessageChunk,\n type StreamOptions,\n} from \"./streaming\";\nimport type { PaginatedResponse, PaginationLinks } from \"./pagination\";\n\n/**\n * Shape of API response envelope (from openapi-ts generated client)\n */\ninterface ApiResponseEnvelope {\n data?: unknown;\n links?: PaginationLinks;\n [key: string]: unknown;\n}\n\n/**\n * Shape of stream response from client.post with parseAs: 'stream'\n */\ninterface StreamResponseEnvelope {\n data?: ReadableStream | Response;\n response?: Response;\n [key: string]: unknown;\n}\n\n/**\n * Build headers for SDK requests.\n * Merges base headers with per-request overrides and idempotency keys.\n */\nexport function buildHeaders(\n getHeaders: () => Record<string, string>,\n options?: RequestOptions,\n): Record<string, string> {\n const headers: Record<string, string> = { ...getHeaders() };\n if (options?.headers) {\n Object.assign(headers, options.headers);\n }\n if (options?.idempotencyKey) {\n headers[\"Idempotency-Key\"] = options.idempotencyKey;\n }\n return headers;\n}\n\n/**\n * RequestBuilder provides a type-safe way to execute SDK requests\n * with consistent header merging, error handling, retry, and unwrapping.\n */\nexport class RequestBuilder {\n constructor(\n private clientInstance: Client,\n private getHeaders: () => Record<string, string>,\n private unwrap: <T>(d: unknown) => T,\n private requestWithRetry: <T>(fn: () => Promise<T>) => Promise<T>,\n ) {}\n\n /** Get auth headers for manual requests (used by streaming extensions) */\n getRequestHeaders(): Record<string, string> {\n return this.getHeaders();\n }\n\n /**\n * Execute a generated SDK function with full middleware pipeline.\n * Handles headers, retry, unwrapping, and error conversion.\n */\n async execute<TResponse>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: (...args: any[]) => Promise<any>,\n params: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<TResponse> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n const { data } = await this.requestWithRetry(() =>\n fn({\n client: this.clientInstance,\n throwOnError: true,\n headers,\n ...params,\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return this.unwrap<TResponse>((data as Record<string, unknown>)?.data);\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Execute a delete operation that returns true on success.\n */\n async executeDelete(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: (...args: any[]) => Promise<any>,\n params: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<true> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n await this.requestWithRetry(() =>\n fn({\n client: this.clientInstance,\n throwOnError: true,\n headers,\n ...params,\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return true;\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Execute a raw GET request to a custom (non-generated) endpoint.\n * Used for endpoints implemented as custom Phoenix controllers.\n */\n async rawGet<TResponse>(\n url: string,\n options?: RequestOptions,\n ): Promise<TResponse> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n const { data } = await this.requestWithRetry(() =>\n this.clientInstance.get({\n url,\n headers,\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return this.unwrap<TResponse>((data as Record<string, unknown>)?.data);\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Execute a raw POST request to a custom (non-generated) endpoint.\n * Used for endpoints implemented as custom Phoenix controllers.\n */\n async rawPost<TResponse>(\n url: string,\n body?: unknown,\n options?: RequestOptions,\n ): Promise<TResponse> {\n const headers = buildHeaders(this.getHeaders, options);\n\n try {\n const { data } = await this.requestWithRetry(() =>\n this.clientInstance.post({\n url,\n headers,\n ...(body !== undefined && { body: JSON.stringify(body) }),\n ...(options?.signal && { signal: options.signal }),\n }),\n );\n return this.unwrap<TResponse>((data as Record<string, unknown>)?.data);\n } catch (error) {\n throw handleApiError(error);\n }\n }\n\n /**\n * Create a paginated fetcher function for listAll operations.\n * Encapsulates the pattern of calling a generated SDK function with pagination params.\n *\n * @param fn - The generated SDK function (e.g., getAgents)\n * @param queryBuilder - Function that builds the query object with page params\n * @param options - Request options (headers, signal, etc.)\n * @returns A fetcher function for use with paginateToArray\n */\n createPaginatedFetcher<T>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: (...args: any[]) => Promise<any>,\n queryBuilder: (page: number, pageSize: number) => Record<string, unknown>,\n options?: RequestOptions,\n ): (page: number, pageSize: number) => Promise<PaginatedResponse<T>> {\n return async (\n page: number,\n pageSize: number,\n ): Promise<PaginatedResponse<T>> => {\n const headers = buildHeaders(this.getHeaders, options);\n const { data } = await this.requestWithRetry(() =>\n fn({\n client: this.clientInstance,\n headers,\n ...(options?.signal && { signal: options.signal }),\n ...queryBuilder(page, pageSize),\n }),\n );\n const envelope = data as ApiResponseEnvelope;\n const items = this.unwrap<T[]>(envelope.data) || [];\n return { data: items, links: envelope.links };\n };\n }\n\n /**\n * Make a streaming POST request through the client instance,\n * ensuring all interceptors (auth, events, API version, etc.) fire.\n *\n * Uses the client's `post()` method with `parseAs: 'stream'` so the\n * request/response interceptors execute, then wraps the stream body\n * into an SSE message iterator.\n */\n async streamRequest(\n url: string,\n body: unknown,\n options?: RequestOptions,\n streamOptions?: StreamOptions,\n ): Promise<AsyncIterableIterator<StreamMessageChunk>> {\n const headers = buildHeaders(this.getHeaders, options);\n // Override Accept for SSE streaming\n headers[\"Accept\"] = \"text/event-stream\";\n\n const result = await this.clientInstance.post({\n url,\n headers,\n body: JSON.stringify({ data: { type: \"message\", attributes: body } }),\n parseAs: \"stream\",\n ...(options?.signal && { signal: options.signal }),\n });\n\n // The result shape with default responseStyle 'fields' is { data, response }\n const envelope = result as StreamResponseEnvelope;\n const streamBody = envelope.data ?? result;\n const response = envelope.response;\n\n // If we got a response object, check status\n if (response && !response.ok) {\n throw new ServerError(`Stream request failed: ${response.status}`, {\n statusCode: response.status,\n });\n }\n\n // If the result is a ReadableStream, wrap it in a Response for streamMessage\n if (streamBody instanceof ReadableStream) {\n const syntheticResponse = new Response(streamBody, {\n headers: { \"Content-Type\": \"text/event-stream\" },\n });\n return streamMessage(syntheticResponse, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n // If we somehow got a Response back directly\n if (streamBody instanceof Response) {\n if (!streamBody.ok) {\n throw new ServerError(`Stream request failed: ${streamBody.status}`, {\n statusCode: streamBody.status,\n });\n }\n return streamMessage(streamBody, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n throw new GptCoreError(\"Unexpected stream response format\", {\n code: \"stream_error\",\n });\n }\n\n /**\n * Make a streaming GET request through the client instance.\n * Used for subscribing to SSE event streams (e.g., execution streaming).\n */\n async streamGetRequest(\n url: string,\n options?: RequestOptions,\n streamOptions?: StreamOptions,\n ): Promise<AsyncIterableIterator<StreamMessageChunk>> {\n const headers = buildHeaders(this.getHeaders, options);\n headers[\"Accept\"] = \"text/event-stream\";\n\n const result = await this.clientInstance.get({\n url,\n headers,\n parseAs: \"stream\",\n ...(options?.signal && { signal: options.signal }),\n });\n\n const envelope = result as StreamResponseEnvelope;\n const streamBody = envelope.data ?? result;\n const response = envelope.response;\n\n if (response && !response.ok) {\n throw new ServerError(`Stream request failed: ${response.status}`, {\n statusCode: response.status,\n });\n }\n\n if (streamBody instanceof ReadableStream) {\n const syntheticResponse = new Response(streamBody, {\n headers: { \"Content-Type\": \"text/event-stream\" },\n });\n return streamMessage(syntheticResponse, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n if (streamBody instanceof Response) {\n if (!streamBody.ok) {\n throw new ServerError(`Stream request failed: ${streamBody.status}`, {\n statusCode: streamBody.status,\n });\n }\n return streamMessage(streamBody, {\n signal: options?.signal,\n ...streamOptions,\n });\n }\n\n throw new GptCoreError(\"Unexpected stream response format\", {\n code: \"stream_error\",\n });\n }\n}\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport {\n type ClientOptions,\n type Config,\n createClient,\n createConfig,\n} from \"./client/index.js\";\nimport type { ClientOptions as ClientOptions2 } from \"./types.gen.js\";\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (\n override?: Config<ClientOptions & T>,\n) => Config<Required<ClientOptions> & T>;\n\nexport const client = createClient(\n createConfig<ClientOptions2>({ baseUrl: \"http://localhost:33333\" }),\n);\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport { client } from \"./client.gen.js\";\nimport type {\n Client,\n Options as Options2,\n TDataShape,\n} from \"./client/index.js\";\nimport type {\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdData,\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdErrors,\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdResponses,\n DeleteAdminAgentVersionsByIdData,\n DeleteAdminAgentVersionsByIdErrors,\n DeleteAdminAgentVersionsByIdResponses,\n DeleteAdminAiConversationsByIdData,\n DeleteAdminAiConversationsByIdErrors,\n DeleteAdminAiConversationsByIdResponses,\n DeleteAdminAiGraphNodesByIdData,\n DeleteAdminAiGraphNodesByIdErrors,\n DeleteAdminAiGraphNodesByIdResponses,\n DeleteAdminAiMessagesByIdData,\n DeleteAdminAiMessagesByIdErrors,\n DeleteAdminAiMessagesByIdResponses,\n DeleteAdminApiKeysByIdData,\n DeleteAdminApiKeysByIdErrors,\n DeleteAdminApiKeysByIdResponses,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n DeleteAdminApplicationsByIdData,\n DeleteAdminApplicationsByIdErrors,\n DeleteAdminApplicationsByIdResponses,\n DeleteAdminBucketsByIdData,\n DeleteAdminBucketsByIdErrors,\n DeleteAdminBucketsByIdResponses,\n DeleteAdminCampaignsSequencesByIdData,\n DeleteAdminCampaignsSequencesByIdErrors,\n DeleteAdminCampaignsSequencesByIdResponses,\n DeleteAdminCampaignsSequenceStepsByIdData,\n DeleteAdminCampaignsSequenceStepsByIdErrors,\n DeleteAdminCampaignsSequenceStepsByIdResponses,\n DeleteAdminCatalogOptionTypesByIdData,\n DeleteAdminCatalogOptionTypesByIdErrors,\n DeleteAdminCatalogOptionTypesByIdResponses,\n DeleteAdminCatalogOptionValuesByIdData,\n DeleteAdminCatalogOptionValuesByIdErrors,\n DeleteAdminCatalogOptionValuesByIdResponses,\n DeleteAdminCatalogPriceListEntriesByIdData,\n DeleteAdminCatalogPriceListEntriesByIdErrors,\n DeleteAdminCatalogPriceListEntriesByIdResponses,\n DeleteAdminCatalogPriceListsByIdData,\n DeleteAdminCatalogPriceListsByIdErrors,\n DeleteAdminCatalogPriceListsByIdResponses,\n DeleteAdminCatalogProductClassificationsByIdData,\n DeleteAdminCatalogProductClassificationsByIdErrors,\n DeleteAdminCatalogProductClassificationsByIdResponses,\n DeleteAdminCatalogProductsByIdData,\n DeleteAdminCatalogProductsByIdErrors,\n DeleteAdminCatalogProductsByIdResponses,\n DeleteAdminCatalogProductVariantsByIdData,\n DeleteAdminCatalogProductVariantsByIdErrors,\n DeleteAdminCatalogProductVariantsByIdResponses,\n DeleteAdminCatalogTaxonomiesByIdData,\n DeleteAdminCatalogTaxonomiesByIdErrors,\n DeleteAdminCatalogTaxonomiesByIdResponses,\n DeleteAdminCatalogTaxonomyNodesByIdData,\n DeleteAdminCatalogTaxonomyNodesByIdErrors,\n DeleteAdminCatalogTaxonomyNodesByIdResponses,\n DeleteAdminCatalogVariantOptionValuesByIdData,\n DeleteAdminCatalogVariantOptionValuesByIdErrors,\n DeleteAdminCatalogVariantOptionValuesByIdResponses,\n DeleteAdminCatalogViewOverridesByIdData,\n DeleteAdminCatalogViewOverridesByIdErrors,\n DeleteAdminCatalogViewOverridesByIdResponses,\n DeleteAdminCatalogViewRulesByIdData,\n DeleteAdminCatalogViewRulesByIdErrors,\n DeleteAdminCatalogViewRulesByIdResponses,\n DeleteAdminCatalogViewsByIdData,\n DeleteAdminCatalogViewsByIdErrors,\n DeleteAdminCatalogViewsByIdResponses,\n DeleteAdminConnectorsByIdData,\n DeleteAdminConnectorsByIdErrors,\n DeleteAdminConnectorsByIdResponses,\n DeleteAdminCrawlerJobsByIdData,\n DeleteAdminCrawlerJobsByIdErrors,\n DeleteAdminCrawlerJobsByIdResponses,\n DeleteAdminCrawlerSchedulesByIdData,\n DeleteAdminCrawlerSchedulesByIdErrors,\n DeleteAdminCrawlerSchedulesByIdResponses,\n DeleteAdminCrawlerSiteConfigsByIdData,\n DeleteAdminCrawlerSiteConfigsByIdErrors,\n DeleteAdminCrawlerSiteConfigsByIdResponses,\n DeleteAdminCreditPackagesByIdData,\n DeleteAdminCreditPackagesByIdErrors,\n DeleteAdminCreditPackagesByIdResponses,\n DeleteAdminCrmActivitiesByIdData,\n DeleteAdminCrmActivitiesByIdErrors,\n DeleteAdminCrmActivitiesByIdResponses,\n DeleteAdminCrmCompaniesByIdData,\n DeleteAdminCrmCompaniesByIdErrors,\n DeleteAdminCrmCompaniesByIdResponses,\n DeleteAdminCrmContactsByIdData,\n DeleteAdminCrmContactsByIdErrors,\n DeleteAdminCrmContactsByIdResponses,\n DeleteAdminCrmCustomEntitiesByIdData,\n DeleteAdminCrmCustomEntitiesByIdErrors,\n DeleteAdminCrmCustomEntitiesByIdResponses,\n DeleteAdminCrmDealProductsByIdData,\n DeleteAdminCrmDealProductsByIdErrors,\n DeleteAdminCrmDealProductsByIdResponses,\n DeleteAdminCrmDealsByIdData,\n DeleteAdminCrmDealsByIdErrors,\n DeleteAdminCrmDealsByIdResponses,\n DeleteAdminCrmPipelinesByIdData,\n DeleteAdminCrmPipelinesByIdErrors,\n DeleteAdminCrmPipelinesByIdResponses,\n DeleteAdminCrmPipelineStagesByIdData,\n DeleteAdminCrmPipelineStagesByIdErrors,\n DeleteAdminCrmPipelineStagesByIdResponses,\n DeleteAdminCrmRelationshipsByIdData,\n DeleteAdminCrmRelationshipsByIdErrors,\n DeleteAdminCrmRelationshipsByIdResponses,\n DeleteAdminCrmRelationshipTypesByIdData,\n DeleteAdminCrmRelationshipTypesByIdErrors,\n DeleteAdminCrmRelationshipTypesByIdResponses,\n DeleteAdminCustomersByIdData,\n DeleteAdminCustomersByIdErrors,\n DeleteAdminCustomersByIdResponses,\n DeleteAdminEmailInclusionsByIdData,\n DeleteAdminEmailInclusionsByIdErrors,\n DeleteAdminEmailInclusionsByIdResponses,\n DeleteAdminEmailMarketingCampaignsByIdData,\n DeleteAdminEmailMarketingCampaignsByIdErrors,\n DeleteAdminEmailMarketingCampaignsByIdResponses,\n DeleteAdminEmailMarketingSenderProfilesByIdData,\n DeleteAdminEmailMarketingSenderProfilesByIdErrors,\n DeleteAdminEmailMarketingSenderProfilesByIdResponses,\n DeleteAdminEmailMarketingTemplatesByIdData,\n DeleteAdminEmailMarketingTemplatesByIdErrors,\n DeleteAdminEmailMarketingTemplatesByIdResponses,\n DeleteAdminEmailOutboundEmailsByIdData,\n DeleteAdminEmailOutboundEmailsByIdErrors,\n DeleteAdminEmailOutboundEmailsByIdResponses,\n DeleteAdminEmailRecipientsByIdData,\n DeleteAdminEmailRecipientsByIdErrors,\n DeleteAdminEmailRecipientsByIdResponses,\n DeleteAdminExtractionBatchesByIdData,\n DeleteAdminExtractionBatchesByIdErrors,\n DeleteAdminExtractionBatchesByIdResponses,\n DeleteAdminExtractionDocumentsByIdData,\n DeleteAdminExtractionDocumentsByIdErrors,\n DeleteAdminExtractionDocumentsByIdResponses,\n DeleteAdminExtractionResultsByIdData,\n DeleteAdminExtractionResultsByIdErrors,\n DeleteAdminExtractionResultsByIdResponses,\n DeleteAdminExtractionWorkflowsByIdData,\n DeleteAdminExtractionWorkflowsByIdErrors,\n DeleteAdminExtractionWorkflowsByIdResponses,\n DeleteAdminFieldTemplatesByIdData,\n DeleteAdminFieldTemplatesByIdErrors,\n DeleteAdminFieldTemplatesByIdResponses,\n DeleteAdminIsvCrmEntityTypesByIdData,\n DeleteAdminIsvCrmEntityTypesByIdErrors,\n DeleteAdminIsvCrmEntityTypesByIdResponses,\n DeleteAdminIsvCrmFieldDefinitionsByIdData,\n DeleteAdminIsvCrmFieldDefinitionsByIdErrors,\n DeleteAdminIsvCrmFieldDefinitionsByIdResponses,\n DeleteAdminIsvCrmSyncConfigsByIdData,\n DeleteAdminIsvCrmSyncConfigsByIdErrors,\n DeleteAdminIsvCrmSyncConfigsByIdResponses,\n DeleteAdminLegalDocumentsByIdData,\n DeleteAdminLegalDocumentsByIdErrors,\n DeleteAdminLegalDocumentsByIdResponses,\n DeleteAdminMessagesByIdData,\n DeleteAdminMessagesByIdErrors,\n DeleteAdminMessagesByIdResponses,\n DeleteAdminNotificationMethodsByIdData,\n DeleteAdminNotificationMethodsByIdErrors,\n DeleteAdminNotificationMethodsByIdResponses,\n DeleteAdminNotificationPreferencesByIdData,\n DeleteAdminNotificationPreferencesByIdErrors,\n DeleteAdminNotificationPreferencesByIdResponses,\n DeleteAdminPaymentMethodsByIdData,\n DeleteAdminPaymentMethodsByIdErrors,\n DeleteAdminPaymentMethodsByIdResponses,\n DeleteAdminPlansByIdData,\n DeleteAdminPlansByIdErrors,\n DeleteAdminPlansByIdResponses,\n DeleteAdminPlatformPricingConfigsByIdData,\n DeleteAdminPlatformPricingConfigsByIdErrors,\n DeleteAdminPlatformPricingConfigsByIdResponses,\n DeleteAdminPostProcessingHooksByIdData,\n DeleteAdminPostProcessingHooksByIdErrors,\n DeleteAdminPostProcessingHooksByIdResponses,\n DeleteAdminProcessingActivitiesByIdData,\n DeleteAdminProcessingActivitiesByIdErrors,\n DeleteAdminProcessingActivitiesByIdResponses,\n DeleteAdminRetentionPoliciesByIdData,\n DeleteAdminRetentionPoliciesByIdErrors,\n DeleteAdminRetentionPoliciesByIdResponses,\n DeleteAdminRolesByIdData,\n DeleteAdminRolesByIdErrors,\n DeleteAdminRolesByIdResponses,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n DeleteAdminSearchSavedByIdData,\n DeleteAdminSearchSavedByIdErrors,\n DeleteAdminSearchSavedByIdResponses,\n DeleteAdminSubscriptionsByIdData,\n DeleteAdminSubscriptionsByIdErrors,\n DeleteAdminSubscriptionsByIdResponses,\n DeleteAdminSystemMessagesByIdData,\n DeleteAdminSystemMessagesByIdErrors,\n DeleteAdminSystemMessagesByIdResponses,\n DeleteAdminTenantMembershipsByTenantIdByUserIdData,\n DeleteAdminTenantMembershipsByTenantIdByUserIdErrors,\n DeleteAdminTenantMembershipsByTenantIdByUserIdResponses,\n DeleteAdminTenantPricingOverridesByIdData,\n DeleteAdminTenantPricingOverridesByIdErrors,\n DeleteAdminTenantPricingOverridesByIdResponses,\n DeleteAdminTenantsByIdData,\n DeleteAdminTenantsByIdErrors,\n DeleteAdminTenantsByIdResponses,\n DeleteAdminThreadsByIdData,\n DeleteAdminThreadsByIdErrors,\n DeleteAdminThreadsByIdResponses,\n DeleteAdminTrainingExamplesByIdData,\n DeleteAdminTrainingExamplesByIdErrors,\n DeleteAdminTrainingExamplesByIdResponses,\n DeleteAdminTrainingSessionsByIdData,\n DeleteAdminTrainingSessionsByIdErrors,\n DeleteAdminTrainingSessionsByIdResponses,\n DeleteAdminUserProfilesByIdData,\n DeleteAdminUserProfilesByIdErrors,\n DeleteAdminUserProfilesByIdResponses,\n DeleteAdminUsersByIdData,\n DeleteAdminUsersByIdErrors,\n DeleteAdminUsersByIdResponses,\n DeleteAdminVoiceSessionsByIdData,\n DeleteAdminVoiceSessionsByIdErrors,\n DeleteAdminVoiceSessionsByIdResponses,\n DeleteAdminVoiceTranscriptionResultsByIdData,\n DeleteAdminVoiceTranscriptionResultsByIdErrors,\n DeleteAdminVoiceTranscriptionResultsByIdResponses,\n DeleteAdminWebhookConfigsByIdData,\n DeleteAdminWebhookConfigsByIdErrors,\n DeleteAdminWebhookConfigsByIdResponses,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n DeleteAdminWorkspacesByIdData,\n DeleteAdminWorkspacesByIdErrors,\n DeleteAdminWorkspacesByIdResponses,\n GetAdminAccessLogsByIdData,\n GetAdminAccessLogsByIdErrors,\n GetAdminAccessLogsByIdResponses,\n GetAdminAccessLogsData,\n GetAdminAccessLogsErrors,\n GetAdminAccessLogsResponses,\n GetAdminAccountsByIdData,\n GetAdminAccountsByIdErrors,\n GetAdminAccountsByIdResponses,\n GetAdminAccountsByTenantByTenantIdData,\n GetAdminAccountsByTenantByTenantIdErrors,\n GetAdminAccountsByTenantByTenantIdResponses,\n GetAdminAccountsData,\n GetAdminAccountsErrors,\n GetAdminAccountsResponses,\n GetAdminAgentsByIdData,\n GetAdminAgentsByIdErrors,\n GetAdminAgentsByIdResponses,\n GetAdminAgentsByIdSchemaVersionsData,\n GetAdminAgentsByIdSchemaVersionsErrors,\n GetAdminAgentsByIdSchemaVersionsResponses,\n GetAdminAgentsByIdStatsData,\n GetAdminAgentsByIdStatsErrors,\n GetAdminAgentsByIdStatsResponses,\n GetAdminAgentsByIdTrainingExamplesData,\n GetAdminAgentsByIdTrainingExamplesErrors,\n GetAdminAgentsByIdTrainingExamplesResponses,\n GetAdminAgentsByIdTrainingStatsData,\n GetAdminAgentsByIdTrainingStatsErrors,\n GetAdminAgentsByIdTrainingStatsResponses,\n GetAdminAgentsByIdUsageData,\n GetAdminAgentsByIdUsageErrors,\n GetAdminAgentsByIdUsageResponses,\n GetAdminAgentsData,\n GetAdminAgentsErrors,\n GetAdminAgentsResponses,\n GetAdminAgentsUsageData,\n GetAdminAgentsUsageErrors,\n GetAdminAgentsUsageResponses,\n GetAdminAgentVersionRevisionsByIdData,\n GetAdminAgentVersionRevisionsByIdErrors,\n GetAdminAgentVersionRevisionsByIdResponses,\n GetAdminAgentVersionRevisionsData,\n GetAdminAgentVersionRevisionsErrors,\n GetAdminAgentVersionRevisionsResponses,\n GetAdminAgentVersionsByIdData,\n GetAdminAgentVersionsByIdErrors,\n GetAdminAgentVersionsByIdMetricsData,\n GetAdminAgentVersionsByIdMetricsErrors,\n GetAdminAgentVersionsByIdMetricsResponses,\n GetAdminAgentVersionsByIdResponses,\n GetAdminAgentVersionsByIdRevisionsData,\n GetAdminAgentVersionsByIdRevisionsErrors,\n GetAdminAgentVersionsByIdRevisionsResponses,\n GetAdminAgentVersionsData,\n GetAdminAgentVersionsErrors,\n GetAdminAgentVersionsResponses,\n GetAdminAiChunksDocumentByDocumentIdData,\n GetAdminAiChunksDocumentByDocumentIdErrors,\n GetAdminAiChunksDocumentByDocumentIdResponses,\n GetAdminAiConversationsByIdData,\n GetAdminAiConversationsByIdErrors,\n GetAdminAiConversationsByIdResponses,\n GetAdminAiConversationsData,\n GetAdminAiConversationsErrors,\n GetAdminAiConversationsResponses,\n GetAdminAiGraphNodesData,\n GetAdminAiGraphNodesErrors,\n GetAdminAiGraphNodesLabelByLabelData,\n GetAdminAiGraphNodesLabelByLabelErrors,\n GetAdminAiGraphNodesLabelByLabelResponses,\n GetAdminAiGraphNodesResponses,\n GetAdminAiMessagesData,\n GetAdminAiMessagesErrors,\n GetAdminAiMessagesResponses,\n GetAdminApiKeysActiveData,\n GetAdminApiKeysActiveErrors,\n GetAdminApiKeysActiveResponses,\n GetAdminApiKeysByIdData,\n GetAdminApiKeysByIdErrors,\n GetAdminApiKeysByIdResponses,\n GetAdminApiKeysData,\n GetAdminApiKeysErrors,\n GetAdminApiKeysResponses,\n GetAdminApiKeysStatsData,\n GetAdminApiKeysStatsErrors,\n GetAdminApiKeysStatsResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesData,\n GetAdminApplicationsByApplicationIdEmailTemplatesErrors,\n GetAdminApplicationsByApplicationIdEmailTemplatesResponses,\n GetAdminApplicationsByIdData,\n GetAdminApplicationsByIdErrors,\n GetAdminApplicationsByIdResponses,\n GetAdminApplicationsBySlugBySlugData,\n GetAdminApplicationsBySlugBySlugErrors,\n GetAdminApplicationsBySlugBySlugResponses,\n GetAdminApplicationsCurrentData,\n GetAdminApplicationsCurrentErrors,\n GetAdminApplicationsCurrentResponses,\n GetAdminApplicationsData,\n GetAdminApplicationsErrors,\n GetAdminApplicationsResponses,\n GetAdminAuditChainEntriesByIdData,\n GetAdminAuditChainEntriesByIdErrors,\n GetAdminAuditChainEntriesByIdResponses,\n GetAdminAuditChainEntriesData,\n GetAdminAuditChainEntriesErrors,\n GetAdminAuditChainEntriesResponses,\n GetAdminAuditLogsActivityData,\n GetAdminAuditLogsActivityErrors,\n GetAdminAuditLogsActivityResponses,\n GetAdminAuditLogsCountByActionData,\n GetAdminAuditLogsCountByActionErrors,\n GetAdminAuditLogsCountByActionResponses,\n GetAdminAuditLogsData,\n GetAdminAuditLogsErrors,\n GetAdminAuditLogsResponses,\n GetAdminBalancesByIdData,\n GetAdminBalancesByIdErrors,\n GetAdminBalancesByIdResponses,\n GetAdminBalancesData,\n GetAdminBalancesErrors,\n GetAdminBalancesResponses,\n GetAdminBreachIncidentsByIdData,\n GetAdminBreachIncidentsByIdErrors,\n GetAdminBreachIncidentsByIdResponses,\n GetAdminBreachIncidentsData,\n GetAdminBreachIncidentsErrors,\n GetAdminBreachIncidentsResponses,\n GetAdminBreachNotificationsByIdData,\n GetAdminBreachNotificationsByIdErrors,\n GetAdminBreachNotificationsByIdResponses,\n GetAdminBreachNotificationsData,\n GetAdminBreachNotificationsErrors,\n GetAdminBreachNotificationsResponses,\n GetAdminBucketsAllData,\n GetAdminBucketsAllErrors,\n GetAdminBucketsAllResponses,\n GetAdminBucketsByIdData,\n GetAdminBucketsByIdErrors,\n GetAdminBucketsByIdResponses,\n GetAdminBucketsByIdStatsData,\n GetAdminBucketsByIdStatsErrors,\n GetAdminBucketsByIdStatsResponses,\n GetAdminBucketsData,\n GetAdminBucketsErrors,\n GetAdminBucketsResponses,\n GetAdminCampaignsRecipientsByIdData,\n GetAdminCampaignsRecipientsByIdErrors,\n GetAdminCampaignsRecipientsByIdResponses,\n GetAdminCampaignsRecipientsCampaignByCampaignIdData,\n GetAdminCampaignsRecipientsCampaignByCampaignIdErrors,\n GetAdminCampaignsRecipientsCampaignByCampaignIdResponses,\n GetAdminCampaignsSequencesByIdData,\n GetAdminCampaignsSequencesByIdErrors,\n GetAdminCampaignsSequencesByIdResponses,\n GetAdminCampaignsSequenceStepsByIdData,\n GetAdminCampaignsSequenceStepsByIdErrors,\n GetAdminCampaignsSequenceStepsByIdResponses,\n GetAdminCampaignsSequenceStepsSequenceBySequenceIdData,\n GetAdminCampaignsSequenceStepsSequenceBySequenceIdErrors,\n GetAdminCampaignsSequenceStepsSequenceBySequenceIdResponses,\n GetAdminCampaignsSequencesWorkspaceByWorkspaceIdData,\n GetAdminCampaignsSequencesWorkspaceByWorkspaceIdErrors,\n GetAdminCampaignsSequencesWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogClassificationSuggestionsByIdData,\n GetAdminCatalogClassificationSuggestionsByIdErrors,\n GetAdminCatalogClassificationSuggestionsByIdResponses,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingData,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingErrors,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingResponses,\n GetAdminCatalogOptionTypesApplicationByApplicationIdData,\n GetAdminCatalogOptionTypesApplicationByApplicationIdErrors,\n GetAdminCatalogOptionTypesApplicationByApplicationIdResponses,\n GetAdminCatalogOptionTypesByIdData,\n GetAdminCatalogOptionTypesByIdErrors,\n GetAdminCatalogOptionTypesByIdResponses,\n GetAdminCatalogOptionValuesByIdData,\n GetAdminCatalogOptionValuesByIdErrors,\n GetAdminCatalogOptionValuesByIdResponses,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdData,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdErrors,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdResponses,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdData,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdErrors,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdResponses,\n GetAdminCatalogPriceListsApplicationByApplicationIdData,\n GetAdminCatalogPriceListsApplicationByApplicationIdErrors,\n GetAdminCatalogPriceListsApplicationByApplicationIdResponses,\n GetAdminCatalogPriceListsByIdData,\n GetAdminCatalogPriceListsByIdErrors,\n GetAdminCatalogPriceListsByIdResponses,\n GetAdminCatalogPriceSuggestionsByIdData,\n GetAdminCatalogPriceSuggestionsByIdErrors,\n GetAdminCatalogPriceSuggestionsByIdResponses,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdData,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogProductsByIdData,\n GetAdminCatalogProductsByIdErrors,\n GetAdminCatalogProductsByIdResponses,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdData,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogProductVariantsByIdData,\n GetAdminCatalogProductVariantsByIdErrors,\n GetAdminCatalogProductVariantsByIdResponses,\n GetAdminCatalogProductVariantsProductByProductIdData,\n GetAdminCatalogProductVariantsProductByProductIdErrors,\n GetAdminCatalogProductVariantsProductByProductIdResponses,\n GetAdminCatalogStockLocationsByIdData,\n GetAdminCatalogStockLocationsByIdErrors,\n GetAdminCatalogStockLocationsByIdResponses,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdData,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogStockMovementsByIdData,\n GetAdminCatalogStockMovementsByIdErrors,\n GetAdminCatalogStockMovementsByIdResponses,\n GetAdminCatalogStockMovementsTransactionByTransactionIdData,\n GetAdminCatalogStockMovementsTransactionByTransactionIdErrors,\n GetAdminCatalogStockMovementsTransactionByTransactionIdResponses,\n GetAdminCatalogStockRecordsByIdData,\n GetAdminCatalogStockRecordsByIdErrors,\n GetAdminCatalogStockRecordsByIdResponses,\n GetAdminCatalogStockRecordsLocationByStockLocationIdData,\n GetAdminCatalogStockRecordsLocationByStockLocationIdErrors,\n GetAdminCatalogStockRecordsLocationByStockLocationIdResponses,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdData,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdErrors,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdResponses,\n GetAdminCatalogTaxonomiesByIdData,\n GetAdminCatalogTaxonomiesByIdErrors,\n GetAdminCatalogTaxonomiesByIdResponses,\n GetAdminCatalogTaxonomyNodesByIdData,\n GetAdminCatalogTaxonomyNodesByIdErrors,\n GetAdminCatalogTaxonomyNodesByIdResponses,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdData,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdErrors,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdResponses,\n GetAdminCatalogViewsByIdData,\n GetAdminCatalogViewsByIdErrors,\n GetAdminCatalogViewsByIdResponses,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdData,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdErrors,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdResponses,\n GetAdminConfigsData,\n GetAdminConfigsErrors,\n GetAdminConfigsResponses,\n GetAdminConnectorsByIdData,\n GetAdminConnectorsByIdErrors,\n GetAdminConnectorsByIdResponses,\n GetAdminConnectorsCredentialsByIdData,\n GetAdminConnectorsCredentialsByIdErrors,\n GetAdminConnectorsCredentialsByIdResponses,\n GetAdminConnectorsCredentialsData,\n GetAdminConnectorsCredentialsErrors,\n GetAdminConnectorsCredentialsResponses,\n GetAdminConnectorsData,\n GetAdminConnectorsErrors,\n GetAdminConnectorsResponses,\n GetAdminConsentRecordsActiveData,\n GetAdminConsentRecordsActiveErrors,\n GetAdminConsentRecordsActiveResponses,\n GetAdminConsentRecordsByIdData,\n GetAdminConsentRecordsByIdErrors,\n GetAdminConsentRecordsByIdResponses,\n GetAdminConsentRecordsData,\n GetAdminConsentRecordsErrors,\n GetAdminConsentRecordsResponses,\n GetAdminCrawlerJobsByIdData,\n GetAdminCrawlerJobsByIdErrors,\n GetAdminCrawlerJobsByIdResponses,\n GetAdminCrawlerJobsData,\n GetAdminCrawlerJobsErrors,\n GetAdminCrawlerJobsResponses,\n GetAdminCrawlerResultsByIdData,\n GetAdminCrawlerResultsByIdErrors,\n GetAdminCrawlerResultsByIdResponses,\n GetAdminCrawlerResultsData,\n GetAdminCrawlerResultsErrors,\n GetAdminCrawlerResultsResponses,\n GetAdminCrawlerSchedulesByIdData,\n GetAdminCrawlerSchedulesByIdErrors,\n GetAdminCrawlerSchedulesByIdResponses,\n GetAdminCrawlerSchedulesData,\n GetAdminCrawlerSchedulesErrors,\n GetAdminCrawlerSchedulesResponses,\n GetAdminCrawlerSiteConfigsByIdData,\n GetAdminCrawlerSiteConfigsByIdErrors,\n GetAdminCrawlerSiteConfigsByIdResponses,\n GetAdminCrawlerSiteConfigsData,\n GetAdminCrawlerSiteConfigsErrors,\n GetAdminCrawlerSiteConfigsResponses,\n GetAdminCreditPackagesByIdData,\n GetAdminCreditPackagesByIdErrors,\n GetAdminCreditPackagesByIdResponses,\n GetAdminCreditPackagesData,\n GetAdminCreditPackagesErrors,\n GetAdminCreditPackagesResponses,\n GetAdminCreditPackagesSlugBySlugData,\n GetAdminCreditPackagesSlugBySlugErrors,\n GetAdminCreditPackagesSlugBySlugResponses,\n GetAdminCrmActivitiesByIdData,\n GetAdminCrmActivitiesByIdErrors,\n GetAdminCrmActivitiesByIdResponses,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdData,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCompaniesByIdData,\n GetAdminCrmCompaniesByIdErrors,\n GetAdminCrmCompaniesByIdResponses,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdData,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmContactsByIdData,\n GetAdminCrmContactsByIdErrors,\n GetAdminCrmContactsByIdResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedData,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedErrors,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdData,\n GetAdminCrmContactsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmContactsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdData,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdErrors,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsData,\n GetAdminCrmCustomEntitiesByEntityIdVersionsErrors,\n GetAdminCrmCustomEntitiesByEntityIdVersionsResponses,\n GetAdminCrmCustomEntitiesByIdData,\n GetAdminCrmCustomEntitiesByIdErrors,\n GetAdminCrmCustomEntitiesByIdResponses,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdData,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmDealProductsData,\n GetAdminCrmDealProductsErrors,\n GetAdminCrmDealProductsResponses,\n GetAdminCrmDealsByIdData,\n GetAdminCrmDealsByIdErrors,\n GetAdminCrmDealsByIdResponses,\n GetAdminCrmDealsWorkspaceByWorkspaceIdData,\n GetAdminCrmDealsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmDealsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmExportsByIdData,\n GetAdminCrmExportsByIdErrors,\n GetAdminCrmExportsByIdResponses,\n GetAdminCrmExportsWorkspaceByWorkspaceIdData,\n GetAdminCrmExportsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmExportsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmPipelinesByIdData,\n GetAdminCrmPipelinesByIdErrors,\n GetAdminCrmPipelinesByIdResponses,\n GetAdminCrmPipelineStagesByIdData,\n GetAdminCrmPipelineStagesByIdErrors,\n GetAdminCrmPipelineStagesByIdResponses,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdData,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdErrors,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmRelationshipsByIdData,\n GetAdminCrmRelationshipsByIdErrors,\n GetAdminCrmRelationshipsByIdResponses,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdData,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdErrors,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmRelationshipTypesByIdData,\n GetAdminCrmRelationshipTypesByIdErrors,\n GetAdminCrmRelationshipTypesByIdResponses,\n GetAdminCrmRelationshipTypesData,\n GetAdminCrmRelationshipTypesErrors,\n GetAdminCrmRelationshipTypesResponses,\n GetAdminCustomersByIdData,\n GetAdminCustomersByIdErrors,\n GetAdminCustomersByIdResponses,\n GetAdminDataSubjectRequestsByIdData,\n GetAdminDataSubjectRequestsByIdErrors,\n GetAdminDataSubjectRequestsByIdResponses,\n GetAdminDataSubjectRequestsData,\n GetAdminDataSubjectRequestsErrors,\n GetAdminDataSubjectRequestsResponses,\n GetAdminDocumentsStatsData,\n GetAdminDocumentsStatsErrors,\n GetAdminDocumentsStatsResponses,\n GetAdminEmailInclusionsByIdData,\n GetAdminEmailInclusionsByIdErrors,\n GetAdminEmailInclusionsByIdResponses,\n GetAdminEmailInclusionsEmailByOutboundEmailIdData,\n GetAdminEmailInclusionsEmailByOutboundEmailIdErrors,\n GetAdminEmailInclusionsEmailByOutboundEmailIdResponses,\n GetAdminEmailMarketingCampaignsByIdData,\n GetAdminEmailMarketingCampaignsByIdErrors,\n GetAdminEmailMarketingCampaignsByIdResponses,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingGeneratedEmailsByIdData,\n GetAdminEmailMarketingGeneratedEmailsByIdErrors,\n GetAdminEmailMarketingGeneratedEmailsByIdResponses,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdData,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdErrors,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingSenderProfilesByIdData,\n GetAdminEmailMarketingSenderProfilesByIdErrors,\n GetAdminEmailMarketingSenderProfilesByIdResponses,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingTemplatesByIdData,\n GetAdminEmailMarketingTemplatesByIdErrors,\n GetAdminEmailMarketingTemplatesByIdResponses,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingUnsubscribersByIdData,\n GetAdminEmailMarketingUnsubscribersByIdErrors,\n GetAdminEmailMarketingUnsubscribersByIdResponses,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdData,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdErrors,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdResponses,\n GetAdminEmailOutboundEmailsByIdData,\n GetAdminEmailOutboundEmailsByIdErrors,\n GetAdminEmailOutboundEmailsByIdResponses,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdContactByContactRefIdData,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdContactByContactRefIdErrors,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdContactByContactRefIdResponses,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdData,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdErrors,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailRecipientsByIdData,\n GetAdminEmailRecipientsByIdErrors,\n GetAdminEmailRecipientsByIdResponses,\n GetAdminEmailRecipientsEmailByOutboundEmailIdData,\n GetAdminEmailRecipientsEmailByOutboundEmailIdErrors,\n GetAdminEmailRecipientsEmailByOutboundEmailIdResponses,\n GetAdminEmailSendLimitsByIdData,\n GetAdminEmailSendLimitsByIdErrors,\n GetAdminEmailSendLimitsByIdResponses,\n GetAdminEmailSendLimitsWorkspaceByWorkspaceIdData,\n GetAdminEmailSendLimitsWorkspaceByWorkspaceIdErrors,\n GetAdminEmailSendLimitsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailTemplateVersionsByTemplateIdVersionsByVersionNumberData,\n GetAdminEmailTemplateVersionsByTemplateIdVersionsByVersionNumberErrors,\n GetAdminEmailTemplateVersionsByTemplateIdVersionsByVersionNumberResponses,\n GetAdminEmailTemplateVersionsTemplateByTemplateIdData,\n GetAdminEmailTemplateVersionsTemplateByTemplateIdErrors,\n GetAdminEmailTemplateVersionsTemplateByTemplateIdResponses,\n GetAdminEmailTrackingEventsByIdData,\n GetAdminEmailTrackingEventsByIdErrors,\n GetAdminEmailTrackingEventsByIdResponses,\n GetAdminEmailTrackingEventsWorkspaceByWorkspaceIdData,\n GetAdminEmailTrackingEventsWorkspaceByWorkspaceIdErrors,\n GetAdminEmailTrackingEventsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionBatchesByIdData,\n GetAdminExtractionBatchesByIdErrors,\n GetAdminExtractionBatchesByIdResponses,\n GetAdminExtractionBatchesByIdUploadUrlsData,\n GetAdminExtractionBatchesByIdUploadUrlsErrors,\n GetAdminExtractionBatchesByIdUploadUrlsResponses,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdData,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdErrors,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionConfigEnumsByIdData,\n GetAdminExtractionConfigEnumsByIdErrors,\n GetAdminExtractionConfigEnumsByIdResponses,\n GetAdminExtractionConfigEnumsData,\n GetAdminExtractionConfigEnumsErrors,\n GetAdminExtractionConfigEnumsResponses,\n GetAdminExtractionDocumentsByIdData,\n GetAdminExtractionDocumentsByIdErrors,\n GetAdminExtractionDocumentsByIdResponses,\n GetAdminExtractionDocumentsByIdStatusData,\n GetAdminExtractionDocumentsByIdStatusErrors,\n GetAdminExtractionDocumentsByIdStatusResponses,\n GetAdminExtractionDocumentsByIdViewData,\n GetAdminExtractionDocumentsByIdViewErrors,\n GetAdminExtractionDocumentsByIdViewResponses,\n GetAdminExtractionDocumentsData,\n GetAdminExtractionDocumentsErrors,\n GetAdminExtractionDocumentsResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedData,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedErrors,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedResponses,\n GetAdminExtractionResultsByIdData,\n GetAdminExtractionResultsByIdErrors,\n GetAdminExtractionResultsByIdResponses,\n GetAdminExtractionResultsData,\n GetAdminExtractionResultsDocumentByDocumentIdData,\n GetAdminExtractionResultsDocumentByDocumentIdErrors,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryData,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryErrors,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryResponses,\n GetAdminExtractionResultsDocumentByDocumentIdPartialData,\n GetAdminExtractionResultsDocumentByDocumentIdPartialErrors,\n GetAdminExtractionResultsDocumentByDocumentIdPartialResponses,\n GetAdminExtractionResultsDocumentByDocumentIdResponses,\n GetAdminExtractionResultsErrors,\n GetAdminExtractionResultsResponses,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdData,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdErrors,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionSchemaDiscoveriesByIdData,\n GetAdminExtractionSchemaDiscoveriesByIdErrors,\n GetAdminExtractionSchemaDiscoveriesByIdResponses,\n GetAdminExtractionWorkflowsByIdData,\n GetAdminExtractionWorkflowsByIdErrors,\n GetAdminExtractionWorkflowsByIdResponses,\n GetAdminExtractionWorkflowsData,\n GetAdminExtractionWorkflowsErrors,\n GetAdminExtractionWorkflowsResponses,\n GetAdminFieldTemplatesByIdData,\n GetAdminFieldTemplatesByIdErrors,\n GetAdminFieldTemplatesByIdResponses,\n GetAdminFieldTemplatesData,\n GetAdminFieldTemplatesErrors,\n GetAdminFieldTemplatesResponses,\n GetAdminImpactAssessmentsByIdData,\n GetAdminImpactAssessmentsByIdErrors,\n GetAdminImpactAssessmentsByIdResponses,\n GetAdminImpactAssessmentsData,\n GetAdminImpactAssessmentsErrors,\n GetAdminImpactAssessmentsResponses,\n GetAdminInvitationsConsumeByTokenData,\n GetAdminInvitationsConsumeByTokenErrors,\n GetAdminInvitationsConsumeByTokenResponses,\n GetAdminInvitationsData,\n GetAdminInvitationsErrors,\n GetAdminInvitationsMeData,\n GetAdminInvitationsMeErrors,\n GetAdminInvitationsMeResponses,\n GetAdminInvitationsResponses,\n GetAdminIsvCrmChannelCaptureConfigByIdData,\n GetAdminIsvCrmChannelCaptureConfigByIdErrors,\n GetAdminIsvCrmChannelCaptureConfigByIdResponses,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdData,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdErrors,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdResponses,\n GetAdminIsvCrmEntityTypesByIdData,\n GetAdminIsvCrmEntityTypesByIdErrors,\n GetAdminIsvCrmEntityTypesByIdResponses,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeData,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeErrors,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeResponses,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdData,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdErrors,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdResponses,\n GetAdminIsvRevenueByIdData,\n GetAdminIsvRevenueByIdErrors,\n GetAdminIsvRevenueByIdResponses,\n GetAdminIsvRevenueData,\n GetAdminIsvRevenueErrors,\n GetAdminIsvRevenueResponses,\n GetAdminIsvSettlementsByIdData,\n GetAdminIsvSettlementsByIdErrors,\n GetAdminIsvSettlementsByIdResponses,\n GetAdminIsvSettlementsData,\n GetAdminIsvSettlementsErrors,\n GetAdminIsvSettlementsResponses,\n GetAdminLedgerByAccountByAccountIdData,\n GetAdminLedgerByAccountByAccountIdErrors,\n GetAdminLedgerByAccountByAccountIdResponses,\n GetAdminLedgerByIdData,\n GetAdminLedgerByIdErrors,\n GetAdminLedgerByIdResponses,\n GetAdminLedgerData,\n GetAdminLedgerErrors,\n GetAdminLedgerResponses,\n GetAdminLegalAcceptancesByIdData,\n GetAdminLegalAcceptancesByIdErrors,\n GetAdminLegalAcceptancesByIdResponses,\n GetAdminLegalAcceptancesData,\n GetAdminLegalAcceptancesErrors,\n GetAdminLegalAcceptancesLatestData,\n GetAdminLegalAcceptancesLatestErrors,\n GetAdminLegalAcceptancesLatestResponses,\n GetAdminLegalAcceptancesResponses,\n GetAdminLegalDocumentsByIdData,\n GetAdminLegalDocumentsByIdErrors,\n GetAdminLegalDocumentsByIdResponses,\n GetAdminLegalDocumentsByLocaleData,\n GetAdminLegalDocumentsByLocaleErrors,\n GetAdminLegalDocumentsByLocaleResponses,\n GetAdminLegalDocumentsData,\n GetAdminLegalDocumentsErrors,\n GetAdminLegalDocumentsForApplicationData,\n GetAdminLegalDocumentsForApplicationErrors,\n GetAdminLegalDocumentsForApplicationResponses,\n GetAdminLegalDocumentsResponses,\n GetAdminLlmAnalyticsByIdData,\n GetAdminLlmAnalyticsByIdErrors,\n GetAdminLlmAnalyticsByIdResponses,\n GetAdminLlmAnalyticsCostsData,\n GetAdminLlmAnalyticsCostsErrors,\n GetAdminLlmAnalyticsCostsResponses,\n GetAdminLlmAnalyticsData,\n GetAdminLlmAnalyticsErrors,\n GetAdminLlmAnalyticsPlatformData,\n GetAdminLlmAnalyticsPlatformErrors,\n GetAdminLlmAnalyticsPlatformResponses,\n GetAdminLlmAnalyticsResponses,\n GetAdminLlmAnalyticsSummaryData,\n GetAdminLlmAnalyticsSummaryErrors,\n GetAdminLlmAnalyticsSummaryResponses,\n GetAdminLlmAnalyticsUsageData,\n GetAdminLlmAnalyticsUsageErrors,\n GetAdminLlmAnalyticsUsageResponses,\n GetAdminLlmAnalyticsWorkspaceData,\n GetAdminLlmAnalyticsWorkspaceErrors,\n GetAdminLlmAnalyticsWorkspaceResponses,\n GetAdminMessagesByIdData,\n GetAdminMessagesByIdErrors,\n GetAdminMessagesByIdResponses,\n GetAdminMessagesData,\n GetAdminMessagesErrors,\n GetAdminMessagesResponses,\n GetAdminMessagesSearchData,\n GetAdminMessagesSearchErrors,\n GetAdminMessagesSearchResponses,\n GetAdminMessagesSemanticSearchData,\n GetAdminMessagesSemanticSearchErrors,\n GetAdminMessagesSemanticSearchResponses,\n GetAdminNotificationLogsByIdData,\n GetAdminNotificationLogsByIdErrors,\n GetAdminNotificationLogsByIdResponses,\n GetAdminNotificationLogsData,\n GetAdminNotificationLogsErrors,\n GetAdminNotificationLogsResponses,\n GetAdminNotificationLogsStatsData,\n GetAdminNotificationLogsStatsErrors,\n GetAdminNotificationLogsStatsResponses,\n GetAdminNotificationMethodsByIdData,\n GetAdminNotificationMethodsByIdErrors,\n GetAdminNotificationMethodsByIdResponses,\n GetAdminNotificationMethodsData,\n GetAdminNotificationMethodsErrors,\n GetAdminNotificationMethodsResponses,\n GetAdminNotificationPreferencesByIdData,\n GetAdminNotificationPreferencesByIdErrors,\n GetAdminNotificationPreferencesByIdResponses,\n GetAdminNotificationPreferencesData,\n GetAdminNotificationPreferencesErrors,\n GetAdminNotificationPreferencesResponses,\n GetAdminPaymentMethodsByIdData,\n GetAdminPaymentMethodsByIdErrors,\n GetAdminPaymentMethodsByIdResponses,\n GetAdminPaymentMethodsData,\n GetAdminPaymentMethodsErrors,\n GetAdminPaymentMethodsResponses,\n GetAdminPermissionsByIdData,\n GetAdminPermissionsByIdErrors,\n GetAdminPermissionsByIdResponses,\n GetAdminPermissionsData,\n GetAdminPermissionsErrors,\n GetAdminPermissionsMetaData,\n GetAdminPermissionsMetaErrors,\n GetAdminPermissionsMetaResponses,\n GetAdminPermissionsPresetsByIdData,\n GetAdminPermissionsPresetsByIdErrors,\n GetAdminPermissionsPresetsByIdResponses,\n GetAdminPermissionsPresetsData,\n GetAdminPermissionsPresetsErrors,\n GetAdminPermissionsPresetsResponses,\n GetAdminPermissionsResponses,\n GetAdminPlansByIdData,\n GetAdminPlansByIdErrors,\n GetAdminPlansByIdResponses,\n GetAdminPlansData,\n GetAdminPlansErrors,\n GetAdminPlansResponses,\n GetAdminPlansSlugBySlugData,\n GetAdminPlansSlugBySlugErrors,\n GetAdminPlansSlugBySlugResponses,\n GetAdminPlatformPricingConfigsByIdData,\n GetAdminPlatformPricingConfigsByIdErrors,\n GetAdminPlatformPricingConfigsByIdResponses,\n GetAdminPlatformPricingConfigsData,\n GetAdminPlatformPricingConfigsErrors,\n GetAdminPlatformPricingConfigsResponses,\n GetAdminPostProcessingHooksByIdData,\n GetAdminPostProcessingHooksByIdErrors,\n GetAdminPostProcessingHooksByIdResponses,\n GetAdminPostProcessingHooksData,\n GetAdminPostProcessingHooksErrors,\n GetAdminPostProcessingHooksResponses,\n GetAdminPricingRulesByIdData,\n GetAdminPricingRulesByIdErrors,\n GetAdminPricingRulesByIdResponses,\n GetAdminPricingRulesData,\n GetAdminPricingRulesErrors,\n GetAdminPricingRulesResolveData,\n GetAdminPricingRulesResolveErrors,\n GetAdminPricingRulesResolveResponses,\n GetAdminPricingRulesResponses,\n GetAdminPricingStrategiesByIdData,\n GetAdminPricingStrategiesByIdErrors,\n GetAdminPricingStrategiesByIdResponses,\n GetAdminPricingStrategiesData,\n GetAdminPricingStrategiesErrors,\n GetAdminPricingStrategiesResponses,\n GetAdminProcessingActivitiesByIdData,\n GetAdminProcessingActivitiesByIdErrors,\n GetAdminProcessingActivitiesByIdResponses,\n GetAdminProcessingActivitiesData,\n GetAdminProcessingActivitiesErrors,\n GetAdminProcessingActivitiesResponses,\n GetAdminRetentionPoliciesByIdData,\n GetAdminRetentionPoliciesByIdErrors,\n GetAdminRetentionPoliciesByIdResponses,\n GetAdminRetentionPoliciesData,\n GetAdminRetentionPoliciesErrors,\n GetAdminRetentionPoliciesResponses,\n GetAdminRolesData,\n GetAdminRolesErrors,\n GetAdminRolesResponses,\n GetAdminScanResultsByIdData,\n GetAdminScanResultsByIdErrors,\n GetAdminScanResultsByIdResponses,\n GetAdminScanResultsData,\n GetAdminScanResultsErrors,\n GetAdminScanResultsResponses,\n GetAdminSchedulingAvailabilityRulesByIdData,\n GetAdminSchedulingAvailabilityRulesByIdErrors,\n GetAdminSchedulingAvailabilityRulesByIdResponses,\n GetAdminSchedulingAvailabilityRulesData,\n GetAdminSchedulingAvailabilityRulesErrors,\n GetAdminSchedulingAvailabilityRulesResponses,\n GetAdminSchedulingBookingsByIdData,\n GetAdminSchedulingBookingsByIdErrors,\n GetAdminSchedulingBookingsByIdResponses,\n GetAdminSchedulingBookingsData,\n GetAdminSchedulingBookingsErrors,\n GetAdminSchedulingBookingsResponses,\n GetAdminSchedulingCalendarSyncsByIdData,\n GetAdminSchedulingCalendarSyncsByIdErrors,\n GetAdminSchedulingCalendarSyncsByIdResponses,\n GetAdminSchedulingCalendarSyncsData,\n GetAdminSchedulingCalendarSyncsErrors,\n GetAdminSchedulingCalendarSyncsResponses,\n GetAdminSchedulingEventsByIdData,\n GetAdminSchedulingEventsByIdErrors,\n GetAdminSchedulingEventsByIdResponses,\n GetAdminSchedulingEventsData,\n GetAdminSchedulingEventsErrors,\n GetAdminSchedulingEventsResponses,\n GetAdminSchedulingEventTypesByIdData,\n GetAdminSchedulingEventTypesByIdErrors,\n GetAdminSchedulingEventTypesByIdResponses,\n GetAdminSchedulingEventTypesData,\n GetAdminSchedulingEventTypesErrors,\n GetAdminSchedulingEventTypesResponses,\n GetAdminSchedulingLocationsByIdData,\n GetAdminSchedulingLocationsByIdErrors,\n GetAdminSchedulingLocationsByIdResponses,\n GetAdminSchedulingLocationsData,\n GetAdminSchedulingLocationsErrors,\n GetAdminSchedulingLocationsResponses,\n GetAdminSchedulingParticipantsByIdData,\n GetAdminSchedulingParticipantsByIdErrors,\n GetAdminSchedulingParticipantsByIdResponses,\n GetAdminSchedulingParticipantsData,\n GetAdminSchedulingParticipantsErrors,\n GetAdminSchedulingParticipantsResponses,\n GetAdminSchedulingRemindersByIdData,\n GetAdminSchedulingRemindersByIdErrors,\n GetAdminSchedulingRemindersByIdResponses,\n GetAdminSchedulingRemindersData,\n GetAdminSchedulingRemindersErrors,\n GetAdminSchedulingRemindersResponses,\n GetAdminSearchAnalyticsData,\n GetAdminSearchAnalyticsErrors,\n GetAdminSearchAnalyticsResponses,\n GetAdminSearchAnalyticsSummaryData,\n GetAdminSearchAnalyticsSummaryErrors,\n GetAdminSearchAnalyticsSummaryResponses,\n GetAdminSearchData,\n GetAdminSearchErrors,\n GetAdminSearchHealthData,\n GetAdminSearchHealthErrors,\n GetAdminSearchHealthResponses,\n GetAdminSearchIndexesData,\n GetAdminSearchIndexesErrors,\n GetAdminSearchIndexesResponses,\n GetAdminSearchResponses,\n GetAdminSearchSavedData,\n GetAdminSearchSavedErrors,\n GetAdminSearchSavedResponses,\n GetAdminSearchSemanticData,\n GetAdminSearchSemanticErrors,\n GetAdminSearchSemanticResponses,\n GetAdminSearchStatsData,\n GetAdminSearchStatsErrors,\n GetAdminSearchStatsResponses,\n GetAdminSearchStatusData,\n GetAdminSearchStatusErrors,\n GetAdminSearchStatusResponses,\n GetAdminSearchSuggestData,\n GetAdminSearchSuggestErrors,\n GetAdminSearchSuggestResponses,\n GetAdminSettlementsByIdData,\n GetAdminSettlementsByIdErrors,\n GetAdminSettlementsByIdResponses,\n GetAdminSettlementsData,\n GetAdminSettlementsErrors,\n GetAdminSettlementsResponses,\n GetAdminStorageFilesByIdData,\n GetAdminStorageFilesByIdErrors,\n GetAdminStorageFilesByIdResponses,\n GetAdminStorageFilesData,\n GetAdminStorageFilesErrors,\n GetAdminStorageFilesResponses,\n GetAdminStorageStatsData,\n GetAdminStorageStatsErrors,\n GetAdminStorageStatsResponses,\n GetAdminStorageStatsTenantByTenantIdData,\n GetAdminStorageStatsTenantByTenantIdErrors,\n GetAdminStorageStatsTenantByTenantIdResponses,\n GetAdminSubscriptionsByIdData,\n GetAdminSubscriptionsByIdErrors,\n GetAdminSubscriptionsByIdResponses,\n GetAdminSubscriptionsByTenantByTenantIdData,\n GetAdminSubscriptionsByTenantByTenantIdErrors,\n GetAdminSubscriptionsByTenantByTenantIdResponses,\n GetAdminSubscriptionsData,\n GetAdminSubscriptionsErrors,\n GetAdminSubscriptionsResponses,\n GetAdminSysAiConfigByIdData,\n GetAdminSysAiConfigByIdErrors,\n GetAdminSysAiConfigByIdResponses,\n GetAdminSysAiConfigData,\n GetAdminSysAiConfigErrors,\n GetAdminSysAiConfigResponses,\n GetAdminSysSemanticCacheByIdData,\n GetAdminSysSemanticCacheByIdErrors,\n GetAdminSysSemanticCacheByIdResponses,\n GetAdminSystemMessagesByIdData,\n GetAdminSystemMessagesByIdErrors,\n GetAdminSystemMessagesByIdResponses,\n GetAdminSystemMessagesData,\n GetAdminSystemMessagesErrors,\n GetAdminSystemMessagesResponses,\n GetAdminTenantMembershipsData,\n GetAdminTenantMembershipsErrors,\n GetAdminTenantMembershipsResponses,\n GetAdminTenantPricingOverridesByIdData,\n GetAdminTenantPricingOverridesByIdErrors,\n GetAdminTenantPricingOverridesByIdResponses,\n GetAdminTenantPricingOverridesData,\n GetAdminTenantPricingOverridesErrors,\n GetAdminTenantPricingOverridesResponses,\n GetAdminTenantsByIdData,\n GetAdminTenantsByIdErrors,\n GetAdminTenantsByIdResponses,\n GetAdminTenantsByTenantIdDocumentStatsData,\n GetAdminTenantsByTenantIdDocumentStatsErrors,\n GetAdminTenantsByTenantIdDocumentStatsResponses,\n GetAdminTenantsByTenantIdStatsData,\n GetAdminTenantsByTenantIdStatsErrors,\n GetAdminTenantsByTenantIdStatsResponses,\n GetAdminTenantsByTenantIdWorkspaceStatsData,\n GetAdminTenantsByTenantIdWorkspaceStatsErrors,\n GetAdminTenantsByTenantIdWorkspaceStatsResponses,\n GetAdminTenantsData,\n GetAdminTenantsErrors,\n GetAdminTenantsResponses,\n GetAdminThreadsByIdData,\n GetAdminThreadsByIdErrors,\n GetAdminThreadsByIdMessagesData,\n GetAdminThreadsByIdMessagesErrors,\n GetAdminThreadsByIdMessagesResponses,\n GetAdminThreadsByIdResponses,\n GetAdminThreadsData,\n GetAdminThreadsErrors,\n GetAdminThreadsResponses,\n GetAdminThreadsSearchData,\n GetAdminThreadsSearchErrors,\n GetAdminThreadsSearchResponses,\n GetAdminThreadsStatsData,\n GetAdminThreadsStatsErrors,\n GetAdminThreadsStatsResponses,\n GetAdminThreadsWorkspaceStatsData,\n GetAdminThreadsWorkspaceStatsErrors,\n GetAdminThreadsWorkspaceStatsResponses,\n GetAdminTrainingExamplesByIdData,\n GetAdminTrainingExamplesByIdErrors,\n GetAdminTrainingExamplesByIdResponses,\n GetAdminTrainingExamplesData,\n GetAdminTrainingExamplesErrors,\n GetAdminTrainingExamplesResponses,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsData,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsErrors,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsResponses,\n GetAdminTrainingSessionsByIdData,\n GetAdminTrainingSessionsByIdErrors,\n GetAdminTrainingSessionsByIdResponses,\n GetAdminTransactionsByIdData,\n GetAdminTransactionsByIdErrors,\n GetAdminTransactionsByIdResponses,\n GetAdminTransactionsData,\n GetAdminTransactionsErrors,\n GetAdminTransactionsResponses,\n GetAdminTransfersByIdData,\n GetAdminTransfersByIdErrors,\n GetAdminTransfersByIdResponses,\n GetAdminTransfersData,\n GetAdminTransfersErrors,\n GetAdminTransfersResponses,\n GetAdminUserProfilesByIdData,\n GetAdminUserProfilesByIdErrors,\n GetAdminUserProfilesByIdResponses,\n GetAdminUserProfilesData,\n GetAdminUserProfilesErrors,\n GetAdminUserProfilesMeData,\n GetAdminUserProfilesMeErrors,\n GetAdminUserProfilesMeResponses,\n GetAdminUserProfilesResponses,\n GetAdminUsersByEmailData,\n GetAdminUsersByEmailErrors,\n GetAdminUsersByEmailResponses,\n GetAdminUsersByIdData,\n GetAdminUsersByIdErrors,\n GetAdminUsersByIdResponses,\n GetAdminUsersData,\n GetAdminUsersErrors,\n GetAdminUsersMeActivityData,\n GetAdminUsersMeActivityErrors,\n GetAdminUsersMeActivityResponses,\n GetAdminUsersMeDashboardData,\n GetAdminUsersMeDashboardErrors,\n GetAdminUsersMeDashboardResponses,\n GetAdminUsersMeData,\n GetAdminUsersMeErrors,\n GetAdminUsersMeResponses,\n GetAdminUsersMeStatsData,\n GetAdminUsersMeStatsErrors,\n GetAdminUsersMeStatsResponses,\n GetAdminUsersMeTenantsData,\n GetAdminUsersMeTenantsErrors,\n GetAdminUsersMeTenantsResponses,\n GetAdminUsersResponses,\n GetAdminVoiceRecordingsByIdData,\n GetAdminVoiceRecordingsByIdErrors,\n GetAdminVoiceRecordingsByIdResponses,\n GetAdminVoiceRecordingsData,\n GetAdminVoiceRecordingsErrors,\n GetAdminVoiceRecordingsResponses,\n GetAdminVoiceRecordingsSessionBySessionIdData,\n GetAdminVoiceRecordingsSessionBySessionIdErrors,\n GetAdminVoiceRecordingsSessionBySessionIdResponses,\n GetAdminVoiceSessionsByIdData,\n GetAdminVoiceSessionsByIdErrors,\n GetAdminVoiceSessionsByIdResponses,\n GetAdminVoiceSessionsData,\n GetAdminVoiceSessionsErrors,\n GetAdminVoiceSessionsMineData,\n GetAdminVoiceSessionsMineErrors,\n GetAdminVoiceSessionsMineResponses,\n GetAdminVoiceSessionsResponses,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdData,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdErrors,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdResponses,\n GetAdminVoiceTranscriptionResultsByIdData,\n GetAdminVoiceTranscriptionResultsByIdErrors,\n GetAdminVoiceTranscriptionResultsByIdResponses,\n GetAdminVoiceTranscriptionResultsData,\n GetAdminVoiceTranscriptionResultsErrors,\n GetAdminVoiceTranscriptionResultsResponses,\n GetAdminVoiceTranscriptionResultsSessionBySessionIdData,\n GetAdminVoiceTranscriptionResultsSessionBySessionIdErrors,\n GetAdminVoiceTranscriptionResultsSessionBySessionIdResponses,\n GetAdminWalletData,\n GetAdminWalletErrors,\n GetAdminWalletResponses,\n GetAdminWalletStorageBreakdownData,\n GetAdminWalletStorageBreakdownErrors,\n GetAdminWalletStorageBreakdownResponses,\n GetAdminWalletUsageBreakdownData,\n GetAdminWalletUsageBreakdownErrors,\n GetAdminWalletUsageBreakdownResponses,\n GetAdminWalletUsageData,\n GetAdminWalletUsageErrors,\n GetAdminWalletUsageResponses,\n GetAdminWebhookConfigsByIdData,\n GetAdminWebhookConfigsByIdErrors,\n GetAdminWebhookConfigsByIdEventsData,\n GetAdminWebhookConfigsByIdEventsErrors,\n GetAdminWebhookConfigsByIdEventsResponses,\n GetAdminWebhookConfigsByIdResponses,\n GetAdminWebhookConfigsData,\n GetAdminWebhookConfigsErrors,\n GetAdminWebhookConfigsResponses,\n GetAdminWebhookConfigsStatsData,\n GetAdminWebhookConfigsStatsErrors,\n GetAdminWebhookConfigsStatsResponses,\n GetAdminWebhookDeliveriesByIdData,\n GetAdminWebhookDeliveriesByIdErrors,\n GetAdminWebhookDeliveriesByIdResponses,\n GetAdminWebhookDeliveriesData,\n GetAdminWebhookDeliveriesErrors,\n GetAdminWebhookDeliveriesResponses,\n GetAdminWebhookDeliveriesStatsData,\n GetAdminWebhookDeliveriesStatsErrors,\n GetAdminWebhookDeliveriesStatsResponses,\n GetAdminWholesaleAgreementsByIdData,\n GetAdminWholesaleAgreementsByIdErrors,\n GetAdminWholesaleAgreementsByIdResponses,\n GetAdminWholesaleAgreementsData,\n GetAdminWholesaleAgreementsErrors,\n GetAdminWholesaleAgreementsResponses,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n GetAdminWorkspaceMembershipsData,\n GetAdminWorkspaceMembershipsErrors,\n GetAdminWorkspaceMembershipsInheritedData,\n GetAdminWorkspaceMembershipsInheritedErrors,\n GetAdminWorkspaceMembershipsInheritedResponses,\n GetAdminWorkspaceMembershipsResponses,\n GetAdminWorkspacesAnalyticsBatchData,\n GetAdminWorkspacesAnalyticsBatchErrors,\n GetAdminWorkspacesAnalyticsBatchResponses,\n GetAdminWorkspacesByIdData,\n GetAdminWorkspacesByIdErrors,\n GetAdminWorkspacesByIdMembersData,\n GetAdminWorkspacesByIdMembersErrors,\n GetAdminWorkspacesByIdMembersResponses,\n GetAdminWorkspacesByIdResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdData,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdErrors,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsData,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsData,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsErrors,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsResponses,\n GetAdminWorkspacesData,\n GetAdminWorkspacesErrors,\n GetAdminWorkspacesMineData,\n GetAdminWorkspacesMineErrors,\n GetAdminWorkspacesMineResponses,\n GetAdminWorkspacesResponses,\n GetAdminWorkspacesSharedData,\n GetAdminWorkspacesSharedErrors,\n GetAdminWorkspacesSharedResponses,\n PatchAdminAccountsByIdCreditData,\n PatchAdminAccountsByIdCreditErrors,\n PatchAdminAccountsByIdCreditResponses,\n PatchAdminAccountsByIdDebitData,\n PatchAdminAccountsByIdDebitErrors,\n PatchAdminAccountsByIdDebitResponses,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdData,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdErrors,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdResponses,\n PatchAdminAiConversationsByIdData,\n PatchAdminAiConversationsByIdErrors,\n PatchAdminAiConversationsByIdResponses,\n PatchAdminApiKeysByIdData,\n PatchAdminApiKeysByIdErrors,\n PatchAdminApiKeysByIdResetPeriodData,\n PatchAdminApiKeysByIdResetPeriodErrors,\n PatchAdminApiKeysByIdResetPeriodResponses,\n PatchAdminApiKeysByIdResponses,\n PatchAdminApiKeysByIdRevokeData,\n PatchAdminApiKeysByIdRevokeErrors,\n PatchAdminApiKeysByIdRevokeResponses,\n PatchAdminApiKeysByIdRotateData,\n PatchAdminApiKeysByIdRotateErrors,\n PatchAdminApiKeysByIdRotateResponses,\n PatchAdminApiKeysByIdSetBudgetData,\n PatchAdminApiKeysByIdSetBudgetErrors,\n PatchAdminApiKeysByIdSetBudgetResponses,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n PatchAdminApplicationsByIdAllocateCreditsData,\n PatchAdminApplicationsByIdAllocateCreditsErrors,\n PatchAdminApplicationsByIdAllocateCreditsResponses,\n PatchAdminApplicationsByIdData,\n PatchAdminApplicationsByIdErrors,\n PatchAdminApplicationsByIdGrantCreditsData,\n PatchAdminApplicationsByIdGrantCreditsErrors,\n PatchAdminApplicationsByIdGrantCreditsResponses,\n PatchAdminApplicationsByIdResponses,\n PatchAdminBreachIncidentsByIdStatusData,\n PatchAdminBreachIncidentsByIdStatusErrors,\n PatchAdminBreachIncidentsByIdStatusResponses,\n PatchAdminBucketsByIdData,\n PatchAdminBucketsByIdErrors,\n PatchAdminBucketsByIdResponses,\n PatchAdminCampaignsSequencesByIdActivateData,\n PatchAdminCampaignsSequencesByIdActivateErrors,\n PatchAdminCampaignsSequencesByIdActivateResponses,\n PatchAdminCampaignsSequencesByIdCompleteData,\n PatchAdminCampaignsSequencesByIdCompleteErrors,\n PatchAdminCampaignsSequencesByIdCompleteResponses,\n PatchAdminCampaignsSequencesByIdData,\n PatchAdminCampaignsSequencesByIdErrors,\n PatchAdminCampaignsSequencesByIdPauseData,\n PatchAdminCampaignsSequencesByIdPauseErrors,\n PatchAdminCampaignsSequencesByIdPauseResponses,\n PatchAdminCampaignsSequencesByIdResponses,\n PatchAdminCampaignsSequencesByIdResumeData,\n PatchAdminCampaignsSequencesByIdResumeErrors,\n PatchAdminCampaignsSequencesByIdResumeResponses,\n PatchAdminCampaignsSequenceStepsByIdData,\n PatchAdminCampaignsSequenceStepsByIdErrors,\n PatchAdminCampaignsSequenceStepsByIdResponses,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptData,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptErrors,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptResponses,\n PatchAdminCatalogClassificationSuggestionsByIdRejectData,\n PatchAdminCatalogClassificationSuggestionsByIdRejectErrors,\n PatchAdminCatalogClassificationSuggestionsByIdRejectResponses,\n PatchAdminCatalogOptionTypesByIdData,\n PatchAdminCatalogOptionTypesByIdErrors,\n PatchAdminCatalogOptionTypesByIdResponses,\n PatchAdminCatalogOptionValuesByIdData,\n PatchAdminCatalogOptionValuesByIdErrors,\n PatchAdminCatalogOptionValuesByIdResponses,\n PatchAdminCatalogPriceListEntriesByIdData,\n PatchAdminCatalogPriceListEntriesByIdErrors,\n PatchAdminCatalogPriceListEntriesByIdResponses,\n PatchAdminCatalogPriceListsByIdData,\n PatchAdminCatalogPriceListsByIdErrors,\n PatchAdminCatalogPriceListsByIdResponses,\n PatchAdminCatalogPriceSuggestionsByIdAcceptData,\n PatchAdminCatalogPriceSuggestionsByIdAcceptErrors,\n PatchAdminCatalogPriceSuggestionsByIdAcceptResponses,\n PatchAdminCatalogPriceSuggestionsByIdRejectData,\n PatchAdminCatalogPriceSuggestionsByIdRejectErrors,\n PatchAdminCatalogPriceSuggestionsByIdRejectResponses,\n PatchAdminCatalogProductsByIdData,\n PatchAdminCatalogProductsByIdErrors,\n PatchAdminCatalogProductsByIdResponses,\n PatchAdminCatalogProductVariantsByIdData,\n PatchAdminCatalogProductVariantsByIdErrors,\n PatchAdminCatalogProductVariantsByIdResponses,\n PatchAdminCatalogStockLocationsByIdData,\n PatchAdminCatalogStockLocationsByIdErrors,\n PatchAdminCatalogStockLocationsByIdResponses,\n PatchAdminCatalogTaxonomiesByIdData,\n PatchAdminCatalogTaxonomiesByIdErrors,\n PatchAdminCatalogTaxonomiesByIdResponses,\n PatchAdminCatalogTaxonomyNodesByIdData,\n PatchAdminCatalogTaxonomyNodesByIdErrors,\n PatchAdminCatalogTaxonomyNodesByIdResponses,\n PatchAdminCatalogViewOverridesByIdData,\n PatchAdminCatalogViewOverridesByIdErrors,\n PatchAdminCatalogViewOverridesByIdResponses,\n PatchAdminCatalogViewsByIdData,\n PatchAdminCatalogViewsByIdErrors,\n PatchAdminCatalogViewsByIdResponses,\n PatchAdminConfigsByKeyData,\n PatchAdminConfigsByKeyErrors,\n PatchAdminConfigsByKeyResponses,\n PatchAdminConnectorsByIdData,\n PatchAdminConnectorsByIdErrors,\n PatchAdminConnectorsByIdResponses,\n PatchAdminConsentRecordsByIdWithdrawData,\n PatchAdminConsentRecordsByIdWithdrawErrors,\n PatchAdminConsentRecordsByIdWithdrawResponses,\n PatchAdminCrawlerJobsByIdCancelData,\n PatchAdminCrawlerJobsByIdCancelErrors,\n PatchAdminCrawlerJobsByIdCancelResponses,\n PatchAdminCrawlerSchedulesByIdData,\n PatchAdminCrawlerSchedulesByIdDisableData,\n PatchAdminCrawlerSchedulesByIdDisableErrors,\n PatchAdminCrawlerSchedulesByIdDisableResponses,\n PatchAdminCrawlerSchedulesByIdEnableData,\n PatchAdminCrawlerSchedulesByIdEnableErrors,\n PatchAdminCrawlerSchedulesByIdEnableResponses,\n PatchAdminCrawlerSchedulesByIdErrors,\n PatchAdminCrawlerSchedulesByIdResponses,\n PatchAdminCrawlerSchedulesByIdTriggerData,\n PatchAdminCrawlerSchedulesByIdTriggerErrors,\n PatchAdminCrawlerSchedulesByIdTriggerResponses,\n PatchAdminCrawlerSiteConfigsByIdData,\n PatchAdminCrawlerSiteConfigsByIdErrors,\n PatchAdminCrawlerSiteConfigsByIdResponses,\n PatchAdminCreditPackagesByIdData,\n PatchAdminCreditPackagesByIdErrors,\n PatchAdminCreditPackagesByIdResponses,\n PatchAdminCrmCompaniesByIdData,\n PatchAdminCrmCompaniesByIdErrors,\n PatchAdminCrmCompaniesByIdResponses,\n PatchAdminCrmContactsByIdArchiveData,\n PatchAdminCrmContactsByIdArchiveErrors,\n PatchAdminCrmContactsByIdArchiveResponses,\n PatchAdminCrmContactsByIdData,\n PatchAdminCrmContactsByIdErrors,\n PatchAdminCrmContactsByIdResponses,\n PatchAdminCrmCustomEntitiesByIdData,\n PatchAdminCrmCustomEntitiesByIdErrors,\n PatchAdminCrmCustomEntitiesByIdResponses,\n PatchAdminCrmDealsByIdData,\n PatchAdminCrmDealsByIdErrors,\n PatchAdminCrmDealsByIdResponses,\n PatchAdminCrmPipelinesByIdData,\n PatchAdminCrmPipelinesByIdErrors,\n PatchAdminCrmPipelinesByIdResponses,\n PatchAdminCrmPipelineStagesByIdData,\n PatchAdminCrmPipelineStagesByIdErrors,\n PatchAdminCrmPipelineStagesByIdResponses,\n PatchAdminCrmRelationshipTypesByIdData,\n PatchAdminCrmRelationshipTypesByIdErrors,\n PatchAdminCrmRelationshipTypesByIdResponses,\n PatchAdminCustomersByIdData,\n PatchAdminCustomersByIdErrors,\n PatchAdminCustomersByIdResponses,\n PatchAdminDataSubjectRequestsByIdStatusData,\n PatchAdminDataSubjectRequestsByIdStatusErrors,\n PatchAdminDataSubjectRequestsByIdStatusResponses,\n PatchAdminEmailInclusionsByIdData,\n PatchAdminEmailInclusionsByIdErrors,\n PatchAdminEmailInclusionsByIdResponses,\n PatchAdminEmailMarketingCampaignsByIdData,\n PatchAdminEmailMarketingCampaignsByIdErrors,\n PatchAdminEmailMarketingCampaignsByIdResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveData,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdData,\n PatchAdminEmailMarketingGeneratedEmailsByIdErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectData,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleData,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleErrors,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleResponses,\n PatchAdminEmailMarketingSenderProfilesByIdData,\n PatchAdminEmailMarketingSenderProfilesByIdErrors,\n PatchAdminEmailMarketingSenderProfilesByIdResponses,\n PatchAdminEmailMarketingSenderProfilesByIdSetDefaultData,\n PatchAdminEmailMarketingSenderProfilesByIdSetDefaultErrors,\n PatchAdminEmailMarketingSenderProfilesByIdSetDefaultResponses,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsData,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsErrors,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsResponses,\n PatchAdminEmailMarketingTemplatesByIdArchiveData,\n PatchAdminEmailMarketingTemplatesByIdArchiveErrors,\n PatchAdminEmailMarketingTemplatesByIdArchiveResponses,\n PatchAdminEmailMarketingTemplatesByIdData,\n PatchAdminEmailMarketingTemplatesByIdErrors,\n PatchAdminEmailMarketingTemplatesByIdPreviewData,\n PatchAdminEmailMarketingTemplatesByIdPreviewErrors,\n PatchAdminEmailMarketingTemplatesByIdPreviewResponses,\n PatchAdminEmailMarketingTemplatesByIdPublishData,\n PatchAdminEmailMarketingTemplatesByIdPublishErrors,\n PatchAdminEmailMarketingTemplatesByIdPublishResponses,\n PatchAdminEmailMarketingTemplatesByIdResponses,\n PatchAdminEmailMarketingTemplatesByIdRestoreData,\n PatchAdminEmailMarketingTemplatesByIdRestoreErrors,\n PatchAdminEmailMarketingTemplatesByIdRestoreResponses,\n PatchAdminEmailMarketingTemplatesByIdRollbackData,\n PatchAdminEmailMarketingTemplatesByIdRollbackErrors,\n PatchAdminEmailMarketingTemplatesByIdRollbackResponses,\n PatchAdminEmailMarketingTemplatesByIdUnpublishData,\n PatchAdminEmailMarketingTemplatesByIdUnpublishErrors,\n PatchAdminEmailMarketingTemplatesByIdUnpublishResponses,\n PatchAdminEmailOutboundEmailsByIdCancelScheduleData,\n PatchAdminEmailOutboundEmailsByIdCancelScheduleErrors,\n PatchAdminEmailOutboundEmailsByIdCancelScheduleResponses,\n PatchAdminEmailOutboundEmailsByIdData,\n PatchAdminEmailOutboundEmailsByIdErrors,\n PatchAdminEmailOutboundEmailsByIdResponses,\n PatchAdminEmailOutboundEmailsByIdScheduleData,\n PatchAdminEmailOutboundEmailsByIdScheduleErrors,\n PatchAdminEmailOutboundEmailsByIdScheduleResponses,\n PatchAdminEmailOutboundEmailsByIdSendData,\n PatchAdminEmailOutboundEmailsByIdSendErrors,\n PatchAdminEmailOutboundEmailsByIdSendResponses,\n PatchAdminExtractionConfigEnumsByIdData,\n PatchAdminExtractionConfigEnumsByIdErrors,\n PatchAdminExtractionConfigEnumsByIdResponses,\n PatchAdminExtractionDocumentsByIdCancelData,\n PatchAdminExtractionDocumentsByIdCancelErrors,\n PatchAdminExtractionDocumentsByIdCancelResponses,\n PatchAdminExtractionDocumentsByIdDismissData,\n PatchAdminExtractionDocumentsByIdDismissErrors,\n PatchAdminExtractionDocumentsByIdDismissResponses,\n PatchAdminExtractionDocumentsByIdDismissTrainingData,\n PatchAdminExtractionDocumentsByIdDismissTrainingErrors,\n PatchAdminExtractionDocumentsByIdDismissTrainingResponses,\n PatchAdminExtractionDocumentsByIdExcludeData,\n PatchAdminExtractionDocumentsByIdExcludeErrors,\n PatchAdminExtractionDocumentsByIdExcludeResponses,\n PatchAdminExtractionDocumentsByIdFinishUploadData,\n PatchAdminExtractionDocumentsByIdFinishUploadErrors,\n PatchAdminExtractionDocumentsByIdFinishUploadResponses,\n PatchAdminExtractionDocumentsByIdIncludeData,\n PatchAdminExtractionDocumentsByIdIncludeErrors,\n PatchAdminExtractionDocumentsByIdIncludeResponses,\n PatchAdminExtractionDocumentsByIdMarkTrainedData,\n PatchAdminExtractionDocumentsByIdMarkTrainedErrors,\n PatchAdminExtractionDocumentsByIdMarkTrainedResponses,\n PatchAdminExtractionDocumentsByIdReprocessData,\n PatchAdminExtractionDocumentsByIdReprocessErrors,\n PatchAdminExtractionDocumentsByIdReprocessResponses,\n PatchAdminExtractionDocumentsByIdRestoreData,\n PatchAdminExtractionDocumentsByIdRestoreErrors,\n PatchAdminExtractionDocumentsByIdRestoreResponses,\n PatchAdminExtractionDocumentsByIdStatusData,\n PatchAdminExtractionDocumentsByIdStatusErrors,\n PatchAdminExtractionDocumentsByIdStatusResponses,\n PatchAdminExtractionDocumentsByIdVerificationData,\n PatchAdminExtractionDocumentsByIdVerificationErrors,\n PatchAdminExtractionDocumentsByIdVerificationResponses,\n PatchAdminExtractionResultsByIdData,\n PatchAdminExtractionResultsByIdErrors,\n PatchAdminExtractionResultsByIdRegenerateData,\n PatchAdminExtractionResultsByIdRegenerateErrors,\n PatchAdminExtractionResultsByIdRegenerateResponses,\n PatchAdminExtractionResultsByIdResponses,\n PatchAdminExtractionResultsByIdSaveCorrectionsData,\n PatchAdminExtractionResultsByIdSaveCorrectionsErrors,\n PatchAdminExtractionResultsByIdSaveCorrectionsResponses,\n PatchAdminExtractionWorkflowsByIdData,\n PatchAdminExtractionWorkflowsByIdErrors,\n PatchAdminExtractionWorkflowsByIdResponses,\n PatchAdminImpactAssessmentsByIdApproveData,\n PatchAdminImpactAssessmentsByIdApproveErrors,\n PatchAdminImpactAssessmentsByIdApproveResponses,\n PatchAdminImpactAssessmentsByIdData,\n PatchAdminImpactAssessmentsByIdErrors,\n PatchAdminImpactAssessmentsByIdResponses,\n PatchAdminInvitationsByIdAcceptByUserData,\n PatchAdminInvitationsByIdAcceptByUserErrors,\n PatchAdminInvitationsByIdAcceptByUserResponses,\n PatchAdminInvitationsByIdAcceptData,\n PatchAdminInvitationsByIdAcceptErrors,\n PatchAdminInvitationsByIdAcceptResponses,\n PatchAdminInvitationsByIdDeclineData,\n PatchAdminInvitationsByIdDeclineErrors,\n PatchAdminInvitationsByIdDeclineResponses,\n PatchAdminInvitationsByIdResendData,\n PatchAdminInvitationsByIdResendErrors,\n PatchAdminInvitationsByIdResendResponses,\n PatchAdminInvitationsByIdRevokeData,\n PatchAdminInvitationsByIdRevokeErrors,\n PatchAdminInvitationsByIdRevokeResponses,\n PatchAdminIsvCrmChannelCaptureConfigByIdData,\n PatchAdminIsvCrmChannelCaptureConfigByIdErrors,\n PatchAdminIsvCrmChannelCaptureConfigByIdResponses,\n PatchAdminIsvCrmEntityTypesByIdData,\n PatchAdminIsvCrmEntityTypesByIdErrors,\n PatchAdminIsvCrmEntityTypesByIdResponses,\n PatchAdminIsvCrmFieldDefinitionsByIdData,\n PatchAdminIsvCrmFieldDefinitionsByIdErrors,\n PatchAdminIsvCrmFieldDefinitionsByIdResponses,\n PatchAdminIsvCrmSyncConfigsByIdData,\n PatchAdminIsvCrmSyncConfigsByIdErrors,\n PatchAdminIsvCrmSyncConfigsByIdResponses,\n PatchAdminIsvSettlementsByIdData,\n PatchAdminIsvSettlementsByIdErrors,\n PatchAdminIsvSettlementsByIdResponses,\n PatchAdminLegalDocumentsByIdData,\n PatchAdminLegalDocumentsByIdErrors,\n PatchAdminLegalDocumentsByIdPublishData,\n PatchAdminLegalDocumentsByIdPublishErrors,\n PatchAdminLegalDocumentsByIdPublishResponses,\n PatchAdminLegalDocumentsByIdResponses,\n PatchAdminLegalDocumentsByIdUnpublishData,\n PatchAdminLegalDocumentsByIdUnpublishErrors,\n PatchAdminLegalDocumentsByIdUnpublishResponses,\n PatchAdminMessagesByIdData,\n PatchAdminMessagesByIdErrors,\n PatchAdminMessagesByIdResponses,\n PatchAdminNotificationMethodsByIdData,\n PatchAdminNotificationMethodsByIdErrors,\n PatchAdminNotificationMethodsByIdResponses,\n PatchAdminNotificationMethodsByIdSendVerificationData,\n PatchAdminNotificationMethodsByIdSendVerificationErrors,\n PatchAdminNotificationMethodsByIdSendVerificationResponses,\n PatchAdminNotificationMethodsByIdSetPrimaryData,\n PatchAdminNotificationMethodsByIdSetPrimaryErrors,\n PatchAdminNotificationMethodsByIdSetPrimaryResponses,\n PatchAdminNotificationMethodsByIdVerifyData,\n PatchAdminNotificationMethodsByIdVerifyErrors,\n PatchAdminNotificationMethodsByIdVerifyResponses,\n PatchAdminNotificationPreferencesByIdData,\n PatchAdminNotificationPreferencesByIdErrors,\n PatchAdminNotificationPreferencesByIdResponses,\n PatchAdminPaymentMethodsByIdData,\n PatchAdminPaymentMethodsByIdDefaultData,\n PatchAdminPaymentMethodsByIdDefaultErrors,\n PatchAdminPaymentMethodsByIdDefaultResponses,\n PatchAdminPaymentMethodsByIdErrors,\n PatchAdminPaymentMethodsByIdResponses,\n PatchAdminPlansByIdData,\n PatchAdminPlansByIdErrors,\n PatchAdminPlansByIdResponses,\n PatchAdminPlatformPricingConfigsByIdData,\n PatchAdminPlatformPricingConfigsByIdErrors,\n PatchAdminPlatformPricingConfigsByIdResponses,\n PatchAdminPostProcessingHooksByIdData,\n PatchAdminPostProcessingHooksByIdErrors,\n PatchAdminPostProcessingHooksByIdResponses,\n PatchAdminPricingRulesByIdData,\n PatchAdminPricingRulesByIdErrors,\n PatchAdminPricingRulesByIdResponses,\n PatchAdminPricingStrategiesByIdData,\n PatchAdminPricingStrategiesByIdErrors,\n PatchAdminPricingStrategiesByIdResponses,\n PatchAdminRetentionPoliciesByIdData,\n PatchAdminRetentionPoliciesByIdErrors,\n PatchAdminRetentionPoliciesByIdResponses,\n PatchAdminRolesByIdData,\n PatchAdminRolesByIdErrors,\n PatchAdminRolesByIdResponses,\n PatchAdminSchedulingAvailabilityRulesByIdData,\n PatchAdminSchedulingAvailabilityRulesByIdErrors,\n PatchAdminSchedulingAvailabilityRulesByIdResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelData,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelErrors,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmData,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmErrors,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleData,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleErrors,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseData,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseErrors,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeData,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeErrors,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeResponses,\n PatchAdminSchedulingEventsByIdData,\n PatchAdminSchedulingEventsByIdErrors,\n PatchAdminSchedulingEventsByIdResponses,\n PatchAdminSchedulingEventTypesByIdData,\n PatchAdminSchedulingEventTypesByIdErrors,\n PatchAdminSchedulingEventTypesByIdResponses,\n PatchAdminSchedulingLocationsByIdData,\n PatchAdminSchedulingLocationsByIdErrors,\n PatchAdminSchedulingLocationsByIdResponses,\n PatchAdminSchedulingParticipantsByIdData,\n PatchAdminSchedulingParticipantsByIdErrors,\n PatchAdminSchedulingParticipantsByIdResponses,\n PatchAdminSearchSavedByIdData,\n PatchAdminSearchSavedByIdErrors,\n PatchAdminSearchSavedByIdResponses,\n PatchAdminStorageFilesByIdData,\n PatchAdminStorageFilesByIdErrors,\n PatchAdminStorageFilesByIdResponses,\n PatchAdminStorageFilesByIdSoftDeleteData,\n PatchAdminStorageFilesByIdSoftDeleteErrors,\n PatchAdminStorageFilesByIdSoftDeleteResponses,\n PatchAdminSubscriptionsByIdCancelData,\n PatchAdminSubscriptionsByIdCancelErrors,\n PatchAdminSubscriptionsByIdCancelResponses,\n PatchAdminSubscriptionsByIdData,\n PatchAdminSubscriptionsByIdErrors,\n PatchAdminSubscriptionsByIdResponses,\n PatchAdminSysAiConfigByIdData,\n PatchAdminSysAiConfigByIdErrors,\n PatchAdminSysAiConfigByIdResponses,\n PatchAdminSystemMessagesByIdData,\n PatchAdminSystemMessagesByIdErrors,\n PatchAdminSystemMessagesByIdPublishData,\n PatchAdminSystemMessagesByIdPublishErrors,\n PatchAdminSystemMessagesByIdPublishResponses,\n PatchAdminSystemMessagesByIdResponses,\n PatchAdminSystemMessagesByIdUnpublishData,\n PatchAdminSystemMessagesByIdUnpublishErrors,\n PatchAdminSystemMessagesByIdUnpublishResponses,\n PatchAdminTenantMembershipsByTenantIdByUserIdData,\n PatchAdminTenantMembershipsByTenantIdByUserIdErrors,\n PatchAdminTenantMembershipsByTenantIdByUserIdResponses,\n PatchAdminTenantPricingOverridesByIdData,\n PatchAdminTenantPricingOverridesByIdErrors,\n PatchAdminTenantPricingOverridesByIdResponses,\n PatchAdminTenantsByIdData,\n PatchAdminTenantsByIdErrors,\n PatchAdminTenantsByIdResponses,\n PatchAdminThreadsByIdArchiveData,\n PatchAdminThreadsByIdArchiveErrors,\n PatchAdminThreadsByIdArchiveResponses,\n PatchAdminThreadsByIdData,\n PatchAdminThreadsByIdErrors,\n PatchAdminThreadsByIdResponses,\n PatchAdminThreadsByIdUnarchiveData,\n PatchAdminThreadsByIdUnarchiveErrors,\n PatchAdminThreadsByIdUnarchiveResponses,\n PatchAdminTrainingExamplesByIdData,\n PatchAdminTrainingExamplesByIdErrors,\n PatchAdminTrainingExamplesByIdResponses,\n PatchAdminUserProfilesByIdAcceptTosData,\n PatchAdminUserProfilesByIdAcceptTosErrors,\n PatchAdminUserProfilesByIdAcceptTosResponses,\n PatchAdminUserProfilesByIdData,\n PatchAdminUserProfilesByIdDismissAnnouncementData,\n PatchAdminUserProfilesByIdDismissAnnouncementErrors,\n PatchAdminUserProfilesByIdDismissAnnouncementResponses,\n PatchAdminUserProfilesByIdDismissWelcomeData,\n PatchAdminUserProfilesByIdDismissWelcomeErrors,\n PatchAdminUserProfilesByIdDismissWelcomeResponses,\n PatchAdminUserProfilesByIdErrors,\n PatchAdminUserProfilesByIdResponses,\n PatchAdminUsersAuthPasswordChangeData,\n PatchAdminUsersAuthPasswordChangeErrors,\n PatchAdminUsersAuthPasswordChangeResponses,\n PatchAdminUsersAuthResetPasswordData,\n PatchAdminUsersAuthResetPasswordErrors,\n PatchAdminUsersAuthResetPasswordResponses,\n PatchAdminUsersByIdAdminData,\n PatchAdminUsersByIdAdminEmailData,\n PatchAdminUsersByIdAdminEmailErrors,\n PatchAdminUsersByIdAdminEmailResponses,\n PatchAdminUsersByIdAdminErrors,\n PatchAdminUsersByIdAdminResponses,\n PatchAdminUsersByIdConfirmEmailData,\n PatchAdminUsersByIdConfirmEmailErrors,\n PatchAdminUsersByIdConfirmEmailResponses,\n PatchAdminUsersByIdResetPasswordData,\n PatchAdminUsersByIdResetPasswordErrors,\n PatchAdminUsersByIdResetPasswordResponses,\n PatchAdminVoiceSessionsByIdFinalizeData,\n PatchAdminVoiceSessionsByIdFinalizeErrors,\n PatchAdminVoiceSessionsByIdFinalizeResponses,\n PatchAdminVoiceSessionsByIdStopData,\n PatchAdminVoiceSessionsByIdStopErrors,\n PatchAdminVoiceSessionsByIdStopResponses,\n PatchAdminVoiceTranscriptionResultsByIdData,\n PatchAdminVoiceTranscriptionResultsByIdErrors,\n PatchAdminVoiceTranscriptionResultsByIdResponses,\n PatchAdminWalletAddonsByAddonSlugCancelData,\n PatchAdminWalletAddonsByAddonSlugCancelErrors,\n PatchAdminWalletAddonsByAddonSlugCancelResponses,\n PatchAdminWalletAddonsData,\n PatchAdminWalletAddonsErrors,\n PatchAdminWalletAddonsResponses,\n PatchAdminWalletCreditsData,\n PatchAdminWalletCreditsErrors,\n PatchAdminWalletCreditsResponses,\n PatchAdminWalletPlanData,\n PatchAdminWalletPlanErrors,\n PatchAdminWalletPlanResponses,\n PatchAdminWebhookConfigsByIdData,\n PatchAdminWebhookConfigsByIdErrors,\n PatchAdminWebhookConfigsByIdResponses,\n PatchAdminWebhookConfigsByIdRotateSecretData,\n PatchAdminWebhookConfigsByIdRotateSecretErrors,\n PatchAdminWebhookConfigsByIdRotateSecretResponses,\n PatchAdminWholesaleAgreementsByIdData,\n PatchAdminWholesaleAgreementsByIdErrors,\n PatchAdminWholesaleAgreementsByIdResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileData,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileErrors,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n PatchAdminWorkspacesByIdAllocateData,\n PatchAdminWorkspacesByIdAllocateErrors,\n PatchAdminWorkspacesByIdAllocateResponses,\n PatchAdminWorkspacesByIdData,\n PatchAdminWorkspacesByIdErrors,\n PatchAdminWorkspacesByIdPopulateHashesData,\n PatchAdminWorkspacesByIdPopulateHashesErrors,\n PatchAdminWorkspacesByIdPopulateHashesResponses,\n PatchAdminWorkspacesByIdResponses,\n PatchAdminWorkspacesByIdStorageSettingsData,\n PatchAdminWorkspacesByIdStorageSettingsErrors,\n PatchAdminWorkspacesByIdStorageSettingsResponses,\n PostAdminAgentsByIdAnalyzeTrainingData,\n PostAdminAgentsByIdAnalyzeTrainingErrors,\n PostAdminAgentsByIdAnalyzeTrainingResponses,\n PostAdminAgentsByIdCloneData,\n PostAdminAgentsByIdCloneErrors,\n PostAdminAgentsByIdCloneResponses,\n PostAdminAgentsByIdExportData,\n PostAdminAgentsByIdExportErrors,\n PostAdminAgentsByIdExportResponses,\n PostAdminAgentsByIdPublishVersionData,\n PostAdminAgentsByIdPublishVersionErrors,\n PostAdminAgentsByIdPublishVersionResponses,\n PostAdminAgentsByIdRestoreVersionData,\n PostAdminAgentsByIdRestoreVersionErrors,\n PostAdminAgentsByIdRestoreVersionResponses,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateData,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateErrors,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateResponses,\n PostAdminAgentsByIdSchemaVersionsData,\n PostAdminAgentsByIdSchemaVersionsErrors,\n PostAdminAgentsByIdSchemaVersionsResponses,\n PostAdminAgentsByIdTeachData,\n PostAdminAgentsByIdTeachErrors,\n PostAdminAgentsByIdTeachResponses,\n PostAdminAgentsByIdTestData,\n PostAdminAgentsByIdTestErrors,\n PostAdminAgentsByIdTestResponses,\n PostAdminAgentsByIdValidateData,\n PostAdminAgentsByIdValidateErrors,\n PostAdminAgentsByIdValidateResponses,\n PostAdminAgentsCloneForWorkspaceData,\n PostAdminAgentsCloneForWorkspaceErrors,\n PostAdminAgentsCloneForWorkspaceResponses,\n PostAdminAgentsImportData,\n PostAdminAgentsImportErrors,\n PostAdminAgentsImportResponses,\n PostAdminAgentsPredictData,\n PostAdminAgentsPredictErrors,\n PostAdminAgentsPredictResponses,\n PostAdminAgentTestResultsData,\n PostAdminAgentTestResultsErrors,\n PostAdminAgentTestResultsResponses,\n PostAdminAgentVersionComparisonsData,\n PostAdminAgentVersionComparisonsErrors,\n PostAdminAgentVersionComparisonsResponses,\n PostAdminAgentVersionsByIdAddSystemFieldData,\n PostAdminAgentVersionsByIdAddSystemFieldErrors,\n PostAdminAgentVersionsByIdAddSystemFieldResponses,\n PostAdminAgentVersionsByIdRemoveSystemFieldData,\n PostAdminAgentVersionsByIdRemoveSystemFieldErrors,\n PostAdminAgentVersionsByIdRemoveSystemFieldResponses,\n PostAdminAgentVersionsByIdSetSystemFieldsData,\n PostAdminAgentVersionsByIdSetSystemFieldsErrors,\n PostAdminAgentVersionsByIdSetSystemFieldsResponses,\n PostAdminAgentVersionsData,\n PostAdminAgentVersionsErrors,\n PostAdminAgentVersionsResponses,\n PostAdminAiChunksSearchData,\n PostAdminAiChunksSearchErrors,\n PostAdminAiChunksSearchResponses,\n PostAdminAiConversationsData,\n PostAdminAiConversationsErrors,\n PostAdminAiConversationsResponses,\n PostAdminAiEmbedData,\n PostAdminAiEmbedErrors,\n PostAdminAiEmbedResponses,\n PostAdminAiGraphNodesData,\n PostAdminAiGraphNodesErrors,\n PostAdminAiGraphNodesResponses,\n PostAdminAiMessagesData,\n PostAdminAiMessagesErrors,\n PostAdminAiMessagesResponses,\n PostAdminAiSearchAdvancedData,\n PostAdminAiSearchAdvancedErrors,\n PostAdminAiSearchAdvancedResponses,\n PostAdminAiSearchData,\n PostAdminAiSearchErrors,\n PostAdminAiSearchResponses,\n PostAdminApiKeysData,\n PostAdminApiKeysErrors,\n PostAdminApiKeysResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewData,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewErrors,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestData,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestErrors,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesData,\n PostAdminApplicationsByApplicationIdEmailTemplatesErrors,\n PostAdminApplicationsByApplicationIdEmailTemplatesResponses,\n PostAdminApplicationsData,\n PostAdminApplicationsErrors,\n PostAdminApplicationsResponses,\n PostAdminAuditLogsExportData,\n PostAdminAuditLogsExportErrors,\n PostAdminAuditLogsExportResponses,\n PostAdminBreachIncidentsData,\n PostAdminBreachIncidentsErrors,\n PostAdminBreachIncidentsResponses,\n PostAdminBucketsData,\n PostAdminBucketsErrors,\n PostAdminBucketsResponses,\n PostAdminCampaignsSequencesData,\n PostAdminCampaignsSequencesErrors,\n PostAdminCampaignsSequencesResponses,\n PostAdminCampaignsSequenceStepsData,\n PostAdminCampaignsSequenceStepsErrors,\n PostAdminCampaignsSequenceStepsResponses,\n PostAdminCatalogOptionTypesData,\n PostAdminCatalogOptionTypesErrors,\n PostAdminCatalogOptionTypesResponses,\n PostAdminCatalogOptionValuesData,\n PostAdminCatalogOptionValuesErrors,\n PostAdminCatalogOptionValuesResponses,\n PostAdminCatalogPriceListEntriesData,\n PostAdminCatalogPriceListEntriesErrors,\n PostAdminCatalogPriceListEntriesResponses,\n PostAdminCatalogPriceListsData,\n PostAdminCatalogPriceListsErrors,\n PostAdminCatalogPriceListsResponses,\n PostAdminCatalogProductClassificationsData,\n PostAdminCatalogProductClassificationsErrors,\n PostAdminCatalogProductClassificationsResponses,\n PostAdminCatalogProductsData,\n PostAdminCatalogProductsErrors,\n PostAdminCatalogProductsResponses,\n PostAdminCatalogProductVariantsData,\n PostAdminCatalogProductVariantsErrors,\n PostAdminCatalogProductVariantsResponses,\n PostAdminCatalogStockLocationsData,\n PostAdminCatalogStockLocationsErrors,\n PostAdminCatalogStockLocationsResponses,\n PostAdminCatalogTaxonomiesData,\n PostAdminCatalogTaxonomiesErrors,\n PostAdminCatalogTaxonomiesResponses,\n PostAdminCatalogTaxonomyNodesData,\n PostAdminCatalogTaxonomyNodesErrors,\n PostAdminCatalogTaxonomyNodesResponses,\n PostAdminCatalogVariantOptionValuesData,\n PostAdminCatalogVariantOptionValuesErrors,\n PostAdminCatalogVariantOptionValuesResponses,\n PostAdminCatalogViewOverridesData,\n PostAdminCatalogViewOverridesErrors,\n PostAdminCatalogViewOverridesResponses,\n PostAdminCatalogViewRulesData,\n PostAdminCatalogViewRulesErrors,\n PostAdminCatalogViewRulesResponses,\n PostAdminCatalogViewsData,\n PostAdminCatalogViewsErrors,\n PostAdminCatalogViewsResponses,\n PostAdminConfigsData,\n PostAdminConfigsErrors,\n PostAdminConfigsResponses,\n PostAdminConnectorsByIdEdamamRecipesGetData,\n PostAdminConnectorsByIdEdamamRecipesGetErrors,\n PostAdminConnectorsByIdEdamamRecipesGetResponses,\n PostAdminConnectorsByIdEdamamRecipesSearchData,\n PostAdminConnectorsByIdEdamamRecipesSearchErrors,\n PostAdminConnectorsByIdEdamamRecipesSearchResponses,\n PostAdminConnectorsCredentialsByIdRefreshData,\n PostAdminConnectorsCredentialsByIdRefreshErrors,\n PostAdminConnectorsCredentialsByIdRefreshResponses,\n PostAdminConnectorsData,\n PostAdminConnectorsErrors,\n PostAdminConnectorsFullscriptCheckPatientData,\n PostAdminConnectorsFullscriptCheckPatientErrors,\n PostAdminConnectorsFullscriptCheckPatientResponses,\n PostAdminConnectorsFullscriptCreatePatientData,\n PostAdminConnectorsFullscriptCreatePatientErrors,\n PostAdminConnectorsFullscriptCreatePatientResponses,\n PostAdminConnectorsFullscriptSessionGrantData,\n PostAdminConnectorsFullscriptSessionGrantErrors,\n PostAdminConnectorsFullscriptSessionGrantResponses,\n PostAdminConnectorsOauthCallbackData,\n PostAdminConnectorsOauthCallbackErrors,\n PostAdminConnectorsOauthCallbackResponses,\n PostAdminConnectorsOauthInitiateData,\n PostAdminConnectorsOauthInitiateErrors,\n PostAdminConnectorsOauthInitiateResponses,\n PostAdminConnectorsResponses,\n PostAdminConsentRecordsData,\n PostAdminConsentRecordsErrors,\n PostAdminConsentRecordsResponses,\n PostAdminCrawlerJobsData,\n PostAdminCrawlerJobsErrors,\n PostAdminCrawlerJobsResponses,\n PostAdminCrawlerSchedulesData,\n PostAdminCrawlerSchedulesErrors,\n PostAdminCrawlerSchedulesResponses,\n PostAdminCrawlerSiteConfigsData,\n PostAdminCrawlerSiteConfigsErrors,\n PostAdminCrawlerSiteConfigsResponses,\n PostAdminCreditPackagesData,\n PostAdminCreditPackagesErrors,\n PostAdminCreditPackagesResponses,\n PostAdminCrmActivitiesData,\n PostAdminCrmActivitiesErrors,\n PostAdminCrmActivitiesResponses,\n PostAdminCrmCompaniesData,\n PostAdminCrmCompaniesErrors,\n PostAdminCrmCompaniesResponses,\n PostAdminCrmContactsByIdUnarchiveData,\n PostAdminCrmContactsByIdUnarchiveErrors,\n PostAdminCrmContactsByIdUnarchiveResponses,\n PostAdminCrmContactsData,\n PostAdminCrmContactsErrors,\n PostAdminCrmContactsResponses,\n PostAdminCrmCustomEntitiesData,\n PostAdminCrmCustomEntitiesErrors,\n PostAdminCrmCustomEntitiesResponses,\n PostAdminCrmDealProductsData,\n PostAdminCrmDealProductsErrors,\n PostAdminCrmDealProductsResponses,\n PostAdminCrmDealsData,\n PostAdminCrmDealsErrors,\n PostAdminCrmDealsResponses,\n PostAdminCrmExportsData,\n PostAdminCrmExportsErrors,\n PostAdminCrmExportsResponses,\n PostAdminCrmPipelinesData,\n PostAdminCrmPipelinesErrors,\n PostAdminCrmPipelinesResponses,\n PostAdminCrmPipelineStagesData,\n PostAdminCrmPipelineStagesErrors,\n PostAdminCrmPipelineStagesResponses,\n PostAdminCrmRelationshipsData,\n PostAdminCrmRelationshipsErrors,\n PostAdminCrmRelationshipsResponses,\n PostAdminCrmRelationshipTypesData,\n PostAdminCrmRelationshipTypesErrors,\n PostAdminCrmRelationshipTypesResponses,\n PostAdminCustomersData,\n PostAdminCustomersErrors,\n PostAdminCustomersResponses,\n PostAdminDataSubjectRequestsData,\n PostAdminDataSubjectRequestsErrors,\n PostAdminDataSubjectRequestsResponses,\n PostAdminDocumentsBulkDeleteData,\n PostAdminDocumentsBulkDeleteErrors,\n PostAdminDocumentsBulkDeleteResponses,\n PostAdminDocumentsPresignedUploadData,\n PostAdminDocumentsPresignedUploadErrors,\n PostAdminDocumentsPresignedUploadResponses,\n PostAdminEmailInclusionsData,\n PostAdminEmailInclusionsErrors,\n PostAdminEmailInclusionsResponses,\n PostAdminEmailMarketingCampaignsByIdAnalyzeData,\n PostAdminEmailMarketingCampaignsByIdAnalyzeErrors,\n PostAdminEmailMarketingCampaignsByIdAnalyzeResponses,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupData,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupErrors,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupResponses,\n PostAdminEmailMarketingCampaignsByIdExportData,\n PostAdminEmailMarketingCampaignsByIdExportErrors,\n PostAdminEmailMarketingCampaignsByIdExportResponses,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsData,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsErrors,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsResponses,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsData,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsErrors,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesData,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesErrors,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsData,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsErrors,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsResponses,\n PostAdminEmailMarketingCampaignsByIdSendData,\n PostAdminEmailMarketingCampaignsByIdSendErrors,\n PostAdminEmailMarketingCampaignsByIdSendResponses,\n PostAdminEmailMarketingCampaignsData,\n PostAdminEmailMarketingCampaignsErrors,\n PostAdminEmailMarketingCampaignsResponses,\n PostAdminEmailMarketingSenderProfilesData,\n PostAdminEmailMarketingSenderProfilesErrors,\n PostAdminEmailMarketingSenderProfilesResponses,\n PostAdminEmailMarketingTemplatesCompileData,\n PostAdminEmailMarketingTemplatesCompileErrors,\n PostAdminEmailMarketingTemplatesCompileResponses,\n PostAdminEmailMarketingTemplatesData,\n PostAdminEmailMarketingTemplatesErrors,\n PostAdminEmailMarketingTemplatesResponses,\n PostAdminEmailOutboundEmailsComposeWithAiData,\n PostAdminEmailOutboundEmailsComposeWithAiErrors,\n PostAdminEmailOutboundEmailsComposeWithAiResponses,\n PostAdminEmailOutboundEmailsData,\n PostAdminEmailOutboundEmailsErrors,\n PostAdminEmailOutboundEmailsResponses,\n PostAdminEmailRecipientsData,\n PostAdminEmailRecipientsErrors,\n PostAdminEmailRecipientsResponses,\n PostAdminExtractionBatchesData,\n PostAdminExtractionBatchesErrors,\n PostAdminExtractionBatchesResponses,\n PostAdminExtractionConfigEnumsData,\n PostAdminExtractionConfigEnumsErrors,\n PostAdminExtractionConfigEnumsResponses,\n PostAdminExtractionDocumentsBeginUploadData,\n PostAdminExtractionDocumentsBeginUploadErrors,\n PostAdminExtractionDocumentsBeginUploadResponses,\n PostAdminExtractionDocumentsBulkReprocessData,\n PostAdminExtractionDocumentsBulkReprocessErrors,\n PostAdminExtractionDocumentsBulkReprocessResponses,\n PostAdminExtractionDocumentsFindOrBeginUploadData,\n PostAdminExtractionDocumentsFindOrBeginUploadErrors,\n PostAdminExtractionDocumentsFindOrBeginUploadResponses,\n PostAdminExtractionDocumentsUploadData,\n PostAdminExtractionDocumentsUploadErrors,\n PostAdminExtractionDocumentsUploadResponses,\n PostAdminExtractionSchemaDiscoveriesBootstrapData,\n PostAdminExtractionSchemaDiscoveriesBootstrapErrors,\n PostAdminExtractionSchemaDiscoveriesBootstrapResponses,\n PostAdminExtractionSchemaDiscoveriesData,\n PostAdminExtractionSchemaDiscoveriesErrors,\n PostAdminExtractionSchemaDiscoveriesResponses,\n PostAdminExtractionWorkflowsData,\n PostAdminExtractionWorkflowsErrors,\n PostAdminExtractionWorkflowsResponses,\n PostAdminFieldTemplatesData,\n PostAdminFieldTemplatesErrors,\n PostAdminFieldTemplatesResponses,\n PostAdminImpactAssessmentsData,\n PostAdminImpactAssessmentsErrors,\n PostAdminImpactAssessmentsResponses,\n PostAdminInvitationsAcceptByTokenData,\n PostAdminInvitationsAcceptByTokenErrors,\n PostAdminInvitationsAcceptByTokenResponses,\n PostAdminInvitationsData,\n PostAdminInvitationsErrors,\n PostAdminInvitationsResponses,\n PostAdminIsvCrmChannelCaptureConfigData,\n PostAdminIsvCrmChannelCaptureConfigErrors,\n PostAdminIsvCrmChannelCaptureConfigResponses,\n PostAdminIsvCrmEntityTypesData,\n PostAdminIsvCrmEntityTypesErrors,\n PostAdminIsvCrmEntityTypesResponses,\n PostAdminIsvCrmFieldDefinitionsData,\n PostAdminIsvCrmFieldDefinitionsErrors,\n PostAdminIsvCrmFieldDefinitionsResponses,\n PostAdminIsvCrmSyncConfigsData,\n PostAdminIsvCrmSyncConfigsErrors,\n PostAdminIsvCrmSyncConfigsResponses,\n PostAdminIsvRevenueData,\n PostAdminIsvRevenueErrors,\n PostAdminIsvRevenueResponses,\n PostAdminIsvSettlementsData,\n PostAdminIsvSettlementsErrors,\n PostAdminIsvSettlementsResponses,\n PostAdminLegalDocumentsData,\n PostAdminLegalDocumentsErrors,\n PostAdminLegalDocumentsResponses,\n PostAdminLlmAnalyticsData,\n PostAdminLlmAnalyticsErrors,\n PostAdminLlmAnalyticsResponses,\n PostAdminMessagesData,\n PostAdminMessagesErrors,\n PostAdminMessagesResponses,\n PostAdminNotificationMethodsData,\n PostAdminNotificationMethodsErrors,\n PostAdminNotificationMethodsResponses,\n PostAdminNotificationPreferencesData,\n PostAdminNotificationPreferencesErrors,\n PostAdminNotificationPreferencesResponses,\n PostAdminPaymentMethodsData,\n PostAdminPaymentMethodsErrors,\n PostAdminPaymentMethodsResponses,\n PostAdminPaymentMethodsTokenizeData,\n PostAdminPaymentMethodsTokenizeErrors,\n PostAdminPaymentMethodsTokenizeResponses,\n PostAdminPaymentsData,\n PostAdminPaymentsErrors,\n PostAdminPaymentsResponses,\n PostAdminPlansData,\n PostAdminPlansErrors,\n PostAdminPlansResponses,\n PostAdminPlatformPricingConfigsData,\n PostAdminPlatformPricingConfigsErrors,\n PostAdminPlatformPricingConfigsResponses,\n PostAdminPostProcessingHooksData,\n PostAdminPostProcessingHooksErrors,\n PostAdminPostProcessingHooksResponses,\n PostAdminPricingRulesData,\n PostAdminPricingRulesErrors,\n PostAdminPricingRulesResponses,\n PostAdminPricingStrategiesData,\n PostAdminPricingStrategiesErrors,\n PostAdminPricingStrategiesResponses,\n PostAdminProcessingActivitiesData,\n PostAdminProcessingActivitiesErrors,\n PostAdminProcessingActivitiesResponses,\n PostAdminRetentionPoliciesData,\n PostAdminRetentionPoliciesErrors,\n PostAdminRetentionPoliciesResponses,\n PostAdminRolesData,\n PostAdminRolesErrors,\n PostAdminRolesResponses,\n PostAdminSchedulingAvailabilityRulesData,\n PostAdminSchedulingAvailabilityRulesErrors,\n PostAdminSchedulingAvailabilityRulesResponses,\n PostAdminSchedulingBookingsData,\n PostAdminSchedulingBookingsErrors,\n PostAdminSchedulingBookingsResponses,\n PostAdminSchedulingCalendarSyncsData,\n PostAdminSchedulingCalendarSyncsErrors,\n PostAdminSchedulingCalendarSyncsResponses,\n PostAdminSchedulingEventsData,\n PostAdminSchedulingEventsErrors,\n PostAdminSchedulingEventsResponses,\n PostAdminSchedulingEventTypesData,\n PostAdminSchedulingEventTypesErrors,\n PostAdminSchedulingEventTypesResponses,\n PostAdminSchedulingLocationsData,\n PostAdminSchedulingLocationsErrors,\n PostAdminSchedulingLocationsResponses,\n PostAdminSchedulingParticipantsData,\n PostAdminSchedulingParticipantsErrors,\n PostAdminSchedulingParticipantsResponses,\n PostAdminSchedulingRemindersData,\n PostAdminSchedulingRemindersErrors,\n PostAdminSchedulingRemindersResponses,\n PostAdminSearchBatchData,\n PostAdminSearchBatchErrors,\n PostAdminSearchBatchResponses,\n PostAdminSearchReindexData,\n PostAdminSearchReindexErrors,\n PostAdminSearchReindexResponses,\n PostAdminSearchSavedByIdRunData,\n PostAdminSearchSavedByIdRunErrors,\n PostAdminSearchSavedByIdRunResponses,\n PostAdminSearchSavedData,\n PostAdminSearchSavedErrors,\n PostAdminSearchSavedResponses,\n PostAdminSettlementsData,\n PostAdminSettlementsErrors,\n PostAdminSettlementsResponses,\n PostAdminStorageFilesData,\n PostAdminStorageFilesErrors,\n PostAdminStorageFilesResponses,\n PostAdminSubscriptionsData,\n PostAdminSubscriptionsErrors,\n PostAdminSubscriptionsResponses,\n PostAdminSysAiConfigData,\n PostAdminSysAiConfigErrors,\n PostAdminSysAiConfigResponses,\n PostAdminSysSemanticCacheClearData,\n PostAdminSysSemanticCacheClearErrors,\n PostAdminSysSemanticCacheClearResponses,\n PostAdminSystemMessagesData,\n PostAdminSystemMessagesErrors,\n PostAdminSystemMessagesResponses,\n PostAdminTenantMembershipsData,\n PostAdminTenantMembershipsErrors,\n PostAdminTenantMembershipsResponses,\n PostAdminTenantPricingOverridesData,\n PostAdminTenantPricingOverridesErrors,\n PostAdminTenantPricingOverridesResponses,\n PostAdminTenantsByIdCreditData,\n PostAdminTenantsByIdCreditErrors,\n PostAdminTenantsByIdCreditResponses,\n PostAdminTenantsByIdSchedulePurgeData,\n PostAdminTenantsByIdSchedulePurgeErrors,\n PostAdminTenantsByIdSchedulePurgeResponses,\n PostAdminTenantsData,\n PostAdminTenantsErrors,\n PostAdminTenantsIsvData,\n PostAdminTenantsIsvErrors,\n PostAdminTenantsIsvResponses,\n PostAdminTenantsResponses,\n PostAdminThreadsActiveData,\n PostAdminThreadsActiveErrors,\n PostAdminThreadsActiveResponses,\n PostAdminThreadsByIdCompleteData,\n PostAdminThreadsByIdCompleteErrors,\n PostAdminThreadsByIdCompleteResponses,\n PostAdminThreadsByIdExportData,\n PostAdminThreadsByIdExportErrors,\n PostAdminThreadsByIdExportResponses,\n PostAdminThreadsByIdForkData,\n PostAdminThreadsByIdForkErrors,\n PostAdminThreadsByIdForkResponses,\n PostAdminThreadsByIdMessagesData,\n PostAdminThreadsByIdMessagesErrors,\n PostAdminThreadsByIdMessagesResponses,\n PostAdminThreadsByIdSummarizeData,\n PostAdminThreadsByIdSummarizeErrors,\n PostAdminThreadsByIdSummarizeResponses,\n PostAdminThreadsData,\n PostAdminThreadsErrors,\n PostAdminThreadsResponses,\n PostAdminTokensData,\n PostAdminTokensErrors,\n PostAdminTokensResponses,\n PostAdminTrainingExamplesBulkData,\n PostAdminTrainingExamplesBulkDeleteData,\n PostAdminTrainingExamplesBulkDeleteErrors,\n PostAdminTrainingExamplesBulkDeleteResponses,\n PostAdminTrainingExamplesBulkErrors,\n PostAdminTrainingExamplesBulkResponses,\n PostAdminTrainingExamplesData,\n PostAdminTrainingExamplesErrors,\n PostAdminTrainingExamplesResponses,\n PostAdminTrainingExamplesSearchData,\n PostAdminTrainingExamplesSearchErrors,\n PostAdminTrainingExamplesSearchResponses,\n PostAdminUserProfilesData,\n PostAdminUserProfilesErrors,\n PostAdminUserProfilesResponses,\n PostAdminUsersAuthConfirmData,\n PostAdminUsersAuthConfirmErrors,\n PostAdminUsersAuthConfirmResponses,\n PostAdminUsersAuthLoginData,\n PostAdminUsersAuthLoginErrors,\n PostAdminUsersAuthLoginResponses,\n PostAdminUsersAuthMagicLinkLoginData,\n PostAdminUsersAuthMagicLinkLoginErrors,\n PostAdminUsersAuthMagicLinkLoginResponses,\n PostAdminUsersAuthMagicLinkRequestData,\n PostAdminUsersAuthMagicLinkRequestErrors,\n PostAdminUsersAuthMagicLinkRequestResponses,\n PostAdminUsersAuthRegisterData,\n PostAdminUsersAuthRegisterErrors,\n PostAdminUsersAuthRegisterResponses,\n PostAdminUsersAuthRegisterWithOidcData,\n PostAdminUsersAuthRegisterWithOidcErrors,\n PostAdminUsersAuthRegisterWithOidcResponses,\n PostAdminUsersAuthResendConfirmationData,\n PostAdminUsersAuthResendConfirmationErrors,\n PostAdminUsersAuthResendConfirmationResponses,\n PostAdminUsersAuthResetPasswordRequestData,\n PostAdminUsersAuthResetPasswordRequestErrors,\n PostAdminUsersAuthResetPasswordRequestResponses,\n PostAdminUsersRegisterIsvData,\n PostAdminUsersRegisterIsvErrors,\n PostAdminUsersRegisterIsvResponses,\n PostAdminVoiceSessionsData,\n PostAdminVoiceSessionsErrors,\n PostAdminVoiceSessionsResponses,\n PostAdminVoiceTranscriptionResultsData,\n PostAdminVoiceTranscriptionResultsErrors,\n PostAdminVoiceTranscriptionResultsResponses,\n PostAdminWebhookConfigsBulkDisableData,\n PostAdminWebhookConfigsBulkDisableErrors,\n PostAdminWebhookConfigsBulkDisableResponses,\n PostAdminWebhookConfigsBulkEnableData,\n PostAdminWebhookConfigsBulkEnableErrors,\n PostAdminWebhookConfigsBulkEnableResponses,\n PostAdminWebhookConfigsByIdReplayData,\n PostAdminWebhookConfigsByIdReplayErrors,\n PostAdminWebhookConfigsByIdReplayResponses,\n PostAdminWebhookConfigsByIdTestData,\n PostAdminWebhookConfigsByIdTestErrors,\n PostAdminWebhookConfigsByIdTestResponses,\n PostAdminWebhookConfigsData,\n PostAdminWebhookConfigsErrors,\n PostAdminWebhookConfigsResponses,\n PostAdminWebhookDeliveriesBulkRetryData,\n PostAdminWebhookDeliveriesBulkRetryErrors,\n PostAdminWebhookDeliveriesBulkRetryResponses,\n PostAdminWebhookDeliveriesByIdRetryData,\n PostAdminWebhookDeliveriesByIdRetryErrors,\n PostAdminWebhookDeliveriesByIdRetryResponses,\n PostAdminWholesaleAgreementsData,\n PostAdminWholesaleAgreementsErrors,\n PostAdminWholesaleAgreementsResponses,\n PostAdminWorkspaceMembershipsData,\n PostAdminWorkspaceMembershipsErrors,\n PostAdminWorkspaceMembershipsResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedData,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedErrors,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsData,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n PostAdminWorkspacesData,\n PostAdminWorkspacesErrors,\n PostAdminWorkspacesResponses,\n} from \"./types.gen.js\";\n\nexport type Options<\n TData extends TDataShape = TDataShape,\n ThrowOnError extends boolean = boolean,\n> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * /email/template-versions/template/:template_id operation on email-template-version resource\n *\n * /email/template-versions/template/:template_id operation on email-template-version resource\n */\nexport const getAdminEmailTemplateVersionsTemplateByTemplateId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailTemplateVersionsTemplateByTemplateIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailTemplateVersionsTemplateByTemplateIdResponses,\n GetAdminEmailTemplateVersionsTemplateByTemplateIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/template-versions/template/{template_id}\",\n ...options,\n });\n\n/**\n * List workspaces visible to the actor\n *\n * List workspaces visible to the actor. By default excludes archived (soft-deleted)\n * workspaces; pass include_archived: true to include them. Returns workspaces where\n * the actor has a direct workspace membership or is a tenant admin/owner. Use :mine\n * for a user-scoped list, or :read_shared for cross-org shared workspaces.\n *\n */\nexport const getAdminWorkspaces = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesResponses,\n GetAdminWorkspacesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces\",\n ...options,\n });\n\n/**\n * Create a new workspace under a tenant\n *\n * Create a new workspace under a tenant. Infers application_id from the\n * x-application-key header context if not explicitly provided. After creation:\n * adds the creating actor as a workspace admin member (if not a system actor),\n * creates a billing liability account, and optionally allocates initial_credits\n * from the tenant's wallet. Records a workspace_created activity event.\n *\n * Returns the created workspace record.\n *\n */\nexport const postAdminWorkspaces = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminWorkspacesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspacesResponses,\n PostAdminWorkspacesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /audit-chain-entries operation on audit_chain_entry resource\n *\n * /audit-chain-entries operation on audit_chain_entry resource\n */\nexport const getAdminAuditChainEntries = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAuditChainEntriesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditChainEntriesResponses,\n GetAdminAuditChainEntriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-chain-entries\",\n ...options,\n });\n\n/**\n * Reads the wallet for the current tenant\n *\n * Reads the wallet for the current tenant\n */\nexport const getAdminWallet = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWalletData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletResponses,\n GetAdminWalletErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet\",\n ...options,\n });\n\n/**\n * Dismiss welcome message - merges with existing preferences\n *\n * Dismiss welcome message - merges with existing preferences\n */\nexport const patchAdminUserProfilesByIdDismissWelcome = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUserProfilesByIdDismissWelcomeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdDismissWelcomeResponses,\n PatchAdminUserProfilesByIdDismissWelcomeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}/dismiss-welcome\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get notification log statistics\n *\n * Get notification log statistics\n */\nexport const getAdminNotificationLogsStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationLogsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationLogsStatsResponses,\n GetAdminNotificationLogsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-logs/stats\",\n ...options,\n });\n\n/**\n * /extraction/batches/:id operation on extraction_batch resource\n *\n * /extraction/batches/:id operation on extraction_batch resource\n */\nexport const deleteAdminExtractionBatchesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionBatchesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionBatchesByIdResponses,\n DeleteAdminExtractionBatchesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/{id}\",\n ...options,\n });\n\n/**\n * /extraction/batches/:id operation on extraction_batch resource\n *\n * /extraction/batches/:id operation on extraction_batch resource\n */\nexport const getAdminExtractionBatchesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionBatchesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionBatchesByIdResponses,\n GetAdminExtractionBatchesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/{id}\",\n ...options,\n });\n\n/**\n * List all price suggestions for a workspace (all statuses)\n *\n * List all price suggestions for a workspace (all statuses). Returns a paginated list.\n */\nexport const getAdminCatalogPriceSuggestionsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogPriceSuggestionsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Create a specific option value (e.g., 'Large', 'Red') within an option type\n *\n * Create a specific option value (e.g., 'Large', 'Red') within an option type. Returns the created option value.\n */\nexport const postAdminCatalogOptionValues = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogOptionValuesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogOptionValuesResponses,\n PostAdminCatalogOptionValuesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/send-limits/workspace/:workspace_id operation on email-send-limit resource\n *\n * /email/send-limits/workspace/:workspace_id operation on email-send-limit resource\n */\nexport const getAdminEmailSendLimitsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailSendLimitsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailSendLimitsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailSendLimitsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/send-limits/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /applications operation on application resource\n *\n * /applications operation on application resource\n */\nexport const getAdminApplications = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApplicationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsResponses,\n GetAdminApplicationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications\",\n ...options,\n });\n\n/**\n * Register a new ISV application on the platform\n *\n * Register a new ISV application on the platform. Auto-generates a unique slug\n * from name if not provided. Validates enabled_capabilities and their dependency\n * graph. After creation: creates a billing liability account, auto-generates a\n * default sk_app_ API key (returned once in generated_api_key), and creates system\n * email templates for the application. Restricted to platform admins or ISV tenant\n * owners.\n *\n * Returns the application with generated_api_key populated (only available once).\n *\n */\nexport const postAdminApplications = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminApplicationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsResponses,\n PostAdminApplicationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Advance a data subject request through its lifecycle (pending → in_progress → completed / rejected / expired) and record notes or a completion timestamp.\n *\n * Advance a data subject request through its lifecycle (pending → in_progress → completed / rejected / expired) and record notes or a completion timestamp.\n */\nexport const patchAdminDataSubjectRequestsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminDataSubjectRequestsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminDataSubjectRequestsByIdStatusResponses,\n PatchAdminDataSubjectRequestsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests/{id}/status\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a product by stamping deleted_at; excluded from all future reads\n *\n * Soft-delete a product by stamping deleted_at; excluded from all future reads. Use update with status :archived to preserve searchability.\n */\nexport const deleteAdminCatalogProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogProductsByIdResponses,\n DeleteAdminCatalogProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/{id}\",\n ...options,\n });\n\n/**\n * /catalog/products/:id operation on catalog_product resource\n *\n * /catalog/products/:id operation on catalog_product resource\n */\nexport const getAdminCatalogProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductsByIdResponses,\n GetAdminCatalogProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/{id}\",\n ...options,\n });\n\n/**\n * Update a product's attributes; triggers search re-indexing and embedding refresh\n *\n * Update a product's attributes; triggers search re-indexing and embedding refresh. Returns the updated product.\n */\nexport const patchAdminCatalogProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogProductsByIdResponses,\n PatchAdminCatalogProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single participant by ID\n *\n * Fetch a single participant by ID. Returns RSVP status, role, contact_id, and responded_at timestamp.\n */\nexport const getAdminSchedulingParticipantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingParticipantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingParticipantsByIdResponses,\n GetAdminSchedulingParticipantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants/{id}\",\n ...options,\n });\n\n/**\n * Update participant metadata: name, phone, role, or custom metadata\n *\n * Update participant metadata: name, phone, role, or custom metadata. Use :respond to update RSVP status — status cannot be changed via :update.\n */\nexport const patchAdminSchedulingParticipantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingParticipantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingParticipantsByIdResponses,\n PatchAdminSchedulingParticipantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /messages operation on message resource\n *\n * /messages operation on message resource\n */\nexport const getAdminMessages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesResponses,\n GetAdminMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages\",\n ...options,\n });\n\n/**\n * Add a new message turn to a thread\n *\n * Add a new message turn to a thread. Automatically runs PII compliance scan on the content and enqueues an async Oban job to generate a 1024-dim BGE-M3 embedding for semantic search. Use Thread.process_message instead if you want the AI reply in the same call.\n */\nexport const postAdminMessages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminMessagesResponses,\n PostAdminMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /access-logs operation on access_log resource\n *\n * /access-logs operation on access_log resource\n */\nexport const getAdminAccessLogs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccessLogsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccessLogsResponses,\n GetAdminAccessLogsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/access-logs\",\n ...options,\n });\n\n/**\n * /field-templates operation on field_template resource\n *\n * /field-templates operation on field_template resource\n */\nexport const getAdminFieldTemplates = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminFieldTemplatesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminFieldTemplatesResponses,\n GetAdminFieldTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates\",\n ...options,\n });\n\n/**\n * /field-templates operation on field_template resource\n *\n * /field-templates operation on field_template resource\n */\nexport const postAdminFieldTemplates = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminFieldTemplatesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminFieldTemplatesResponses,\n PostAdminFieldTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /connectors operation on connector_instance resource\n *\n * /connectors operation on connector_instance resource\n */\nexport const getAdminConnectors = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConnectorsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsResponses,\n GetAdminConnectorsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors\",\n ...options,\n });\n\n/**\n * Install a new connector instance in a workspace\n *\n * Install a new connector instance in a workspace. Registers a connector adapter (e.g.,\n * Salesforce, HubSpot, Slack) with its configuration and sync interval. The connector type\n * must match a registered adapter in AdapterRegistry or the action fails. OAuth credentials\n * are stored separately via the Credential resource after completing the OAuth flow.\n *\n * Returns the created connector instance record with health_status: :unknown.\n *\n */\nexport const postAdminConnectors = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminConnectorsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsResponses,\n PostAdminConnectorsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Remove a product override from a view; the product reverts to standard rule-based inclusion/exclusion on next resolution.\n *\n * Remove a product override from a view; the product reverts to standard rule-based inclusion/exclusion on next resolution.\n */\nexport const deleteAdminCatalogViewOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogViewOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogViewOverridesByIdResponses,\n DeleteAdminCatalogViewOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-overrides/{id}\",\n ...options,\n });\n\n/**\n * Update the action (pin/exclude), position, or display overrides for an existing view override\n *\n * Update the action (pin/exclude), position, or display overrides for an existing view override. Returns the updated override.\n */\nexport const patchAdminCatalogViewOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogViewOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogViewOverridesByIdResponses,\n PatchAdminCatalogViewOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-overrides/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /campaigns/sequences/:id operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/:id operation on email-marketing-sequence resource\n */\nexport const deleteAdminCampaignsSequencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCampaignsSequencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCampaignsSequencesByIdResponses,\n DeleteAdminCampaignsSequencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/{id}\",\n ...options,\n });\n\n/**\n * /campaigns/sequences/:id operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/:id operation on email-marketing-sequence resource\n */\nexport const getAdminCampaignsSequencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCampaignsSequencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCampaignsSequencesByIdResponses,\n GetAdminCampaignsSequencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/{id}\",\n ...options,\n });\n\n/**\n * /campaigns/sequences/:id operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/:id operation on email-marketing-sequence resource\n */\nexport const patchAdminCampaignsSequencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCampaignsSequencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCampaignsSequencesByIdResponses,\n PatchAdminCampaignsSequencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Pin or exclude a product in a specific view with optional display overrides (name, description, media)\n *\n * Pin or exclude a product in a specific view with optional display overrides (name, description, media). Returns the created override.\n */\nexport const postAdminCatalogViewOverrides = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogViewOverridesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogViewOverridesResponses,\n PostAdminCatalogViewOverridesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-overrides\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crm/relationship-types/:id operation on crm_relationship_type resource\n *\n * /crm/relationship-types/:id operation on crm_relationship_type resource\n */\nexport const deleteAdminCrmRelationshipTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmRelationshipTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmRelationshipTypesByIdResponses,\n DeleteAdminCrmRelationshipTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types/{id}\",\n ...options,\n });\n\n/**\n * /crm/relationship-types/:id operation on crm_relationship_type resource\n *\n * /crm/relationship-types/:id operation on crm_relationship_type resource\n */\nexport const getAdminCrmRelationshipTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmRelationshipTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipTypesByIdResponses,\n GetAdminCrmRelationshipTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types/{id}\",\n ...options,\n });\n\n/**\n * Update a relationship type's display name, allowed entity types, or properties schema\n *\n * Update a relationship type's display name, allowed entity types, or properties schema. Slug cannot be changed after creation.\n */\nexport const patchAdminCrmRelationshipTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmRelationshipTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmRelationshipTypesByIdResponses,\n PatchAdminCrmRelationshipTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/recipients/email/:outbound_email_id operation on email-recipient resource\n *\n * /email/recipients/email/:outbound_email_id operation on email-recipient resource\n */\nexport const getAdminEmailRecipientsEmailByOutboundEmailId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailRecipientsEmailByOutboundEmailIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailRecipientsEmailByOutboundEmailIdResponses,\n GetAdminEmailRecipientsEmailByOutboundEmailIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/recipients/email/{outbound_email_id}\",\n ...options,\n });\n\n/**\n * Permanently delete a price list entry\n *\n * Permanently delete a price list entry. Removes the override — product falls back to base price resolution.\n */\nexport const deleteAdminCatalogPriceListEntriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogPriceListEntriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogPriceListEntriesByIdResponses,\n DeleteAdminCatalogPriceListEntriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries/{id}\",\n ...options,\n });\n\n/**\n * Update the price, modifier, tiers, or floor price for an existing entry\n *\n * Update the price, modifier, tiers, or floor price for an existing entry. Returns the updated entry.\n */\nexport const patchAdminCatalogPriceListEntriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogPriceListEntriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceListEntriesByIdResponses,\n PatchAdminCatalogPriceListEntriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Exchange OAuth authorization code for credential.\n *\n * Exchange OAuth authorization code for credential.\n */\nexport const postAdminConnectorsOauthCallback = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsOauthCallbackData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsOauthCallbackResponses,\n PostAdminConnectorsOauthCallbackErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/oauth/callback\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a catalog view (named product lens) in a workspace; enforces max_catalog_views quota\n *\n * Create a catalog view (named product lens) in a workspace; enforces max_catalog_views quota. Returns the created view.\n */\nexport const postAdminCatalogViews = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCatalogViewsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogViewsResponses,\n PostAdminCatalogViewsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /agents operation on agent resource\n *\n * /agents operation on agent resource\n */\nexport const getAdminAgents = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsResponses,\n GetAdminAgentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents\",\n ...options,\n });\n\n/**\n * Delete an AgentVersion\n *\n * Delete an AgentVersion. Blocked if `usage_count > 0` (the version has been used for\n * extraction) to preserve audit integrity — unless called with `cascade_from_agent: true`\n * in the changeset context (i.e., during agent deletion).\n *\n * Side effects: deletes all associated `AgentVersionRevision` records before destroying the\n * version. Cache invalidation for the persistent_term schema cache is handled asynchronously\n * via the `VersionDestroyed` event consumed by `Extraction.EventHandler`.\n *\n * Returns the deleted version struct.\n *\n */\nexport const deleteAdminAgentVersionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminAgentVersionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAgentVersionsByIdResponses,\n DeleteAdminAgentVersionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single AgentVersion by ID\n *\n * Fetch a single AgentVersion by ID. Returns all public attributes including schema fields, prompt template, and usage count.\n */\nexport const getAdminAgentVersionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentVersionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsByIdResponses,\n GetAdminAgentVersionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}\",\n ...options,\n });\n\n/**\n * /ledger/by-account/:account_id operation on ledger resource\n *\n * /ledger/by-account/:account_id operation on ledger resource\n */\nexport const getAdminLedgerByAccountByAccountId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLedgerByAccountByAccountIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLedgerByAccountByAccountIdResponses,\n GetAdminLedgerByAccountByAccountIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ledger/by-account/{account_id}\",\n ...options,\n });\n\n/**\n * Permanently remove a relationship edge (hard delete)\n *\n * Permanently remove a relationship edge (hard delete). Publishes a RelationshipRemoved event and removes the graph edge from Neo4j.\n */\nexport const deleteAdminCrmRelationshipsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmRelationshipsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmRelationshipsByIdResponses,\n DeleteAdminCrmRelationshipsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single CRM relationship by ID\n *\n * Fetch a single CRM relationship by ID. Use :list_by_workspace to discover relationships for a workspace.\n */\nexport const getAdminCrmRelationshipsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmRelationshipsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipsByIdResponses,\n GetAdminCrmRelationshipsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships/{id}\",\n ...options,\n });\n\n/**\n * /notification-methods/:id operation on notification_method resource\n *\n * /notification-methods/:id operation on notification_method resource\n */\nexport const deleteAdminNotificationMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminNotificationMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminNotificationMethodsByIdResponses,\n DeleteAdminNotificationMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}\",\n ...options,\n });\n\n/**\n * /notification-methods/:id operation on notification_method resource\n *\n * /notification-methods/:id operation on notification_method resource\n */\nexport const getAdminNotificationMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationMethodsByIdResponses,\n GetAdminNotificationMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}\",\n ...options,\n });\n\n/**\n * Update the display name or connection config for an existing notification method\n *\n * Update the display name or connection config for an existing notification method. Use :send_verification and :verify after changing config to re-validate the endpoint.\n */\nexport const patchAdminNotificationMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminNotificationMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdResponses,\n PatchAdminNotificationMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a re-engagement campaign for non-engaged recipients\n *\n * Create a re-engagement campaign for non-engaged recipients\n */\nexport const postAdminEmailMarketingCampaignsByIdCreateFollowup = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdCreateFollowupData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdCreateFollowupResponses,\n PostAdminEmailMarketingCampaignsByIdCreateFollowupErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/create-followup\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all ExtractionResults for a document in reverse-chronological order (newest first)\n *\n * List all ExtractionResults for a document in reverse-chronological order (newest first).\n * Returns the full extraction history — useful when a document has been reprocessed or\n * regenerated multiple times. Hidden system fields are filtered. Paginated: default 20, max 100.\n *\n */\nexport const getAdminExtractionResultsDocumentByDocumentIdHistory = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsDocumentByDocumentIdHistoryData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsDocumentByDocumentIdHistoryResponses,\n GetAdminExtractionResultsDocumentByDocumentIdHistoryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/document/{document_id}/history\",\n ...options,\n });\n\n/**\n * Mark an active file as pending_deletion; the S3 object is deleted by PendingDeletionWorker after the grace period\n *\n * Mark an active file as pending_deletion; the S3 object is deleted by PendingDeletionWorker after the grace period. Use Storage.delete_file/2 for archived files.\n */\nexport const patchAdminStorageFilesByIdSoftDelete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminStorageFilesByIdSoftDeleteData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminStorageFilesByIdSoftDeleteResponses,\n PatchAdminStorageFilesByIdSoftDeleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files/{id}/soft-delete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a new CRM deal and place it in a pipeline stage\n *\n * Create a new CRM deal and place it in a pipeline stage. Validates against\n * workspace deal quota and custom field definitions. Triggers Meilisearch indexing.\n * Returns the created Deal struct.\n *\n */\nexport const postAdminCrmDeals = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmDealsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmDealsResponses,\n PostAdminCrmDealsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Resume a paused or errored calendar sync\n *\n * Resume a paused or errored calendar sync. Resets error_count to 0 and error_message to nil, setting sync_status to :active. Use after resolving the underlying connection issue.\n */\nexport const patchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResume =\n <ThrowOnError extends boolean = false>(\n options: Options<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResumeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}/resume\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all events in a workspace, newest first\n *\n * List all events in a workspace, newest first. Use :list_by_date_range for calendar views bounded by start/end time.\n */\nexport const getAdminSchedulingEvents = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSchedulingEventsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventsResponses,\n GetAdminSchedulingEventsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events\",\n ...options,\n });\n\n/**\n * Create a scheduled event occurrence\n *\n * Create a scheduled event occurrence. Validates for time conflicts via ValidateNoConflict\n * (backed by PostgreSQL exclusion constraint). Auto-schedules reminders via ScheduleReminders.\n * Indexes in Meilisearch. Returns the created Event. Use :reschedule to change the time,\n * :cancel to cancel — do not update start_time/end_time directly via :update.\n *\n */\nexport const postAdminSchedulingEvents = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSchedulingEventsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingEventsResponses,\n PostAdminSchedulingEventsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /tenant-memberships/:tenant_id/:user_id operation on tenant-membership resource\n *\n * /tenant-memberships/:tenant_id/:user_id operation on tenant-membership resource\n */\nexport const deleteAdminTenantMembershipsByTenantIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminTenantMembershipsByTenantIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTenantMembershipsByTenantIdByUserIdResponses,\n DeleteAdminTenantMembershipsByTenantIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships/{tenant_id}/{user_id}\",\n ...options,\n });\n\n/**\n * /tenant-memberships/:tenant_id/:user_id operation on tenant-membership resource\n *\n * /tenant-memberships/:tenant_id/:user_id operation on tenant-membership resource\n */\nexport const patchAdminTenantMembershipsByTenantIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminTenantMembershipsByTenantIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminTenantMembershipsByTenantIdByUserIdResponses,\n PatchAdminTenantMembershipsByTenantIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships/{tenant_id}/{user_id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Accept a pending price suggestion; publishes PriceSuggestionAccepted and PriceChanged events, cascading to update the product's effective price.\n *\n * Accept a pending price suggestion; publishes PriceSuggestionAccepted and PriceChanged events, cascading to update the product's effective price.\n */\nexport const patchAdminCatalogPriceSuggestionsByIdAccept = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogPriceSuggestionsByIdAcceptData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceSuggestionsByIdAcceptResponses,\n PatchAdminCatalogPriceSuggestionsByIdAcceptErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/{id}/accept\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List search analytics with tenant-based filtering\n *\n * List search analytics with tenant-based filtering\n */\nexport const getAdminSearchAnalytics = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchAnalyticsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchAnalyticsResponses,\n GetAdminSearchAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/analytics\",\n ...options,\n });\n\n/**\n * /campaigns/sequences/:id/activate operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/:id/activate operation on email-marketing-sequence resource\n */\nexport const patchAdminCampaignsSequencesByIdActivate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCampaignsSequencesByIdActivateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCampaignsSequencesByIdActivateResponses,\n PatchAdminCampaignsSequencesByIdActivateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/{id}/activate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List documents that have been trained and not dismissed\n *\n * List documents that have been trained and not dismissed\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrained = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrainedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/trained\",\n ...options,\n });\n\n/**\n * /campaigns/sequences/:id/resume operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/:id/resume operation on email-marketing-sequence resource\n */\nexport const patchAdminCampaignsSequencesByIdResume = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCampaignsSequencesByIdResumeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCampaignsSequencesByIdResumeResponses,\n PatchAdminCampaignsSequencesByIdResumeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/{id}/resume\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Return aggregated chat statistics for the actor's current workspace: total threads, total messages, activity counts for 24h and 7d windows, and message distribution by role\n *\n * Return aggregated chat statistics for the actor's current workspace: total threads, total messages, activity counts for 24h and 7d windows, and message distribution by role. Uses database-level GROUP BY for efficiency. Returns a single virtual record keyed by workspace_id.\n */\nexport const getAdminThreadsWorkspaceStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminThreadsWorkspaceStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsWorkspaceStatsResponses,\n GetAdminThreadsWorkspaceStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/workspace-stats\",\n ...options,\n });\n\n/**\n * Preview email template with sample data\n *\n * Preview email template with sample data\n */\nexport const postAdminApplicationsByApplicationIdEmailTemplatesBySlugPreview = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugPreviewErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}/preview\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /notification-preferences/:id operation on notification_preference resource\n *\n * /notification-preferences/:id operation on notification_preference resource\n */\nexport const deleteAdminNotificationPreferencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminNotificationPreferencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminNotificationPreferencesByIdResponses,\n DeleteAdminNotificationPreferencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences/{id}\",\n ...options,\n });\n\n/**\n * /notification-preferences/:id operation on notification_preference resource\n *\n * /notification-preferences/:id operation on notification_preference resource\n */\nexport const getAdminNotificationPreferencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationPreferencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationPreferencesByIdResponses,\n GetAdminNotificationPreferencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences/{id}\",\n ...options,\n });\n\n/**\n * Update a user's notification channel list or per-category preferences\n *\n * Update a user's notification channel list or per-category preferences. Use this when the user opts out of a notification category or adds a new delivery channel.\n */\nexport const patchAdminNotificationPreferencesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminNotificationPreferencesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationPreferencesByIdResponses,\n PatchAdminNotificationPreferencesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Public action for users to request a password reset email\n *\n * Public action for users to request a password reset email\n */\nexport const postAdminUsersAuthResetPasswordRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthResetPasswordRequestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthResetPasswordRequestResponses,\n PostAdminUsersAuthResetPasswordRequestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/reset-password/request\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all calendar sync configurations for a specific user\n *\n * List all calendar sync configurations for a specific user. Used to show the user their connected calendars. Each record represents one external calendar connection.\n */\nexport const getAdminSchedulingCalendarSyncs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingCalendarSyncsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingCalendarSyncsResponses,\n GetAdminSchedulingCalendarSyncsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs\",\n ...options,\n });\n\n/**\n * Link a user's external calendar for bi-directional sync\n *\n * Link a user's external calendar for bi-directional sync. Requires a connector_id (OAuth credential from Connectors domain). sync_direction controls push/pull/bidirectional behavior. Returns the created CalendarSync with :active status.\n */\nexport const postAdminSchedulingCalendarSyncs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingCalendarSyncsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingCalendarSyncsResponses,\n PostAdminSchedulingCalendarSyncsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Run post-campaign AI analysis with insights and recommendations\n *\n * Run post-campaign AI analysis with insights and recommendations\n */\nexport const postAdminEmailMarketingCampaignsByIdAnalyze = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdAnalyzeData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdAnalyzeResponses,\n PostAdminEmailMarketingCampaignsByIdAnalyzeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/analyze\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create an instance of a custom entity type\n *\n * Create an instance of a custom entity type. Properties are validated against\n * the parent type's field_definitions. Returns the created CustomEntity struct.\n *\n */\nexport const postAdminCrmCustomEntities = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmCustomEntitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmCustomEntitiesResponses,\n PostAdminCrmCustomEntitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /accounts/:id/credit operation on account resource\n *\n * /accounts/:id/credit operation on account resource\n */\nexport const patchAdminAccountsByIdCredit = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminAccountsByIdCreditData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminAccountsByIdCreditResponses,\n PatchAdminAccountsByIdCreditErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/{id}/credit\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /documents/presigned-upload operation on presigned_url resource\n *\n * /documents/presigned-upload operation on presigned_url resource\n */\nexport const postAdminDocumentsPresignedUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminDocumentsPresignedUploadData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminDocumentsPresignedUploadResponses,\n PostAdminDocumentsPresignedUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/documents/presigned-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a workspace by setting archived_at to the current timestamp\n *\n * Soft-delete a workspace by setting archived_at to the current timestamp. The\n * workspace record is retained in the database and can be retrieved by passing\n * include_archived: true to read actions. Records a workspace_deleted activity\n * event. Restricted to the tenant owner. Use :archive as an equivalent alias.\n *\n */\nexport const deleteAdminWorkspacesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminWorkspacesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminWorkspacesByIdResponses,\n DeleteAdminWorkspacesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single workspace by its primary key\n *\n * Fetch a single workspace by its primary key. Excludes archived workspaces by default; pass include_archived: true to also fetch archived records.\n */\nexport const getAdminWorkspacesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByIdResponses,\n GetAdminWorkspacesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}\",\n ...options,\n });\n\n/**\n * Update workspace metadata and settings\n *\n * Update workspace metadata and settings. Validates that deduplication is ready\n * before enabling it (all documents must have file_hash). Also validates unique\n * folder paths within the tenant. Records a workspace_updated activity event.\n * Use :update_storage_settings for a storage-only change (separate policy:\n * storage managers can use that action without full update access).\n *\n */\nexport const patchAdminWorkspacesById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWorkspacesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdResponses,\n PatchAdminWorkspacesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /isv/crm/entity-types/:id operation on crm_custom_entity_type resource\n *\n * /isv/crm/entity-types/:id operation on crm_custom_entity_type resource\n */\nexport const deleteAdminIsvCrmEntityTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminIsvCrmEntityTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminIsvCrmEntityTypesByIdResponses,\n DeleteAdminIsvCrmEntityTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/{id}\",\n ...options,\n });\n\n/**\n * /isv/crm/entity-types/:id operation on crm_custom_entity_type resource\n *\n * /isv/crm/entity-types/:id operation on crm_custom_entity_type resource\n */\nexport const getAdminIsvCrmEntityTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminIsvCrmEntityTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmEntityTypesByIdResponses,\n GetAdminIsvCrmEntityTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/{id}\",\n ...options,\n });\n\n/**\n * Update a custom entity type's display name, field schema, or capability flags\n *\n * Update a custom entity type's display name, field schema, or capability flags. Slug cannot be changed after creation.\n */\nexport const patchAdminIsvCrmEntityTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmEntityTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmEntityTypesByIdResponses,\n PatchAdminIsvCrmEntityTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get training analytics for a specific workspace\n *\n * Get training analytics for a specific workspace\n */\nexport const getAdminWorkspacesByWorkspaceIdTrainingAnalytics = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsResponses,\n GetAdminWorkspacesByWorkspaceIdTrainingAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/training/analytics\",\n ...options,\n });\n\n/**\n * /campaigns/sequence-steps operation on email-marketing-sequence-step resource\n *\n * /campaigns/sequence-steps operation on email-marketing-sequence-step resource\n */\nexport const postAdminCampaignsSequenceSteps = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCampaignsSequenceStepsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCampaignsSequenceStepsResponses,\n PostAdminCampaignsSequenceStepsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequence-steps\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Paginate Entity vertices for the caller's tenant; returns up to 50 nodes per page by default.\n *\n * Paginate Entity vertices for the caller's tenant; returns up to 50 nodes per page by default.\n */\nexport const getAdminAiGraphNodes = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAiGraphNodesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiGraphNodesResponses,\n GetAdminAiGraphNodesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes\",\n ...options,\n });\n\n/**\n * Create an Entity vertex in the knowledge graph; tenant_id is always forced from the actor and cannot be supplied by the caller\n *\n * Create an Entity vertex in the knowledge graph; tenant_id is always forced from the actor and cannot be supplied by the caller. Returns the created node.\n */\nexport const postAdminAiGraphNodes = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiGraphNodesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiGraphNodesResponses,\n PostAdminAiGraphNodesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/generated-emails/:id/reject operation on email-marketing-generated-email resource\n *\n * /email-marketing/generated-emails/:id/reject operation on email-marketing-generated-email resource\n */\nexport const patchAdminEmailMarketingGeneratedEmailsByIdReject = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdRejectErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}/reject\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update the member's profile_attributes field\n *\n * Update the member's profile_attributes field\n */\nexport const patchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfile = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdProfileErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}/profile\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Resend confirmation email to an unconfirmed user\n *\n * Resend confirmation email to an unconfirmed user\n */\nexport const postAdminUsersAuthResendConfirmation = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthResendConfirmationData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthResendConfirmationResponses,\n PostAdminUsersAuthResendConfirmationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/resend-confirmation\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /training-sessions/agents/:agent_id/sessions operation on training_session resource\n *\n * /training-sessions/agents/:agent_id/sessions operation on training_session resource\n */\nexport const getAdminTrainingSessionsAgentsByAgentIdSessions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminTrainingSessionsAgentsByAgentIdSessionsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingSessionsAgentsByAgentIdSessionsResponses,\n GetAdminTrainingSessionsAgentsByAgentIdSessionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-sessions/agents/{agent_id}/sessions\",\n ...options,\n });\n\n/**\n * Cancel a processing document\n *\n * Cancel a processing document\n */\nexport const patchAdminExtractionDocumentsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdCancelResponses,\n PatchAdminExtractionDocumentsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /tenant-pricing-overrides operation on tenant_pricing_override resource\n *\n * /tenant-pricing-overrides operation on tenant_pricing_override resource\n */\nexport const getAdminTenantPricingOverrides = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantPricingOverridesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantPricingOverridesResponses,\n GetAdminTenantPricingOverridesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides\",\n ...options,\n });\n\n/**\n * /tenant-pricing-overrides operation on tenant_pricing_override resource\n *\n * /tenant-pricing-overrides operation on tenant_pricing_override resource\n */\nexport const postAdminTenantPricingOverrides = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantPricingOverridesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantPricingOverridesResponses,\n PostAdminTenantPricingOverridesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Return the current status and tenant context for the search indexes\n *\n * Return the current status and tenant context for the search indexes. Use :health for Meilisearch server health and latency.\n */\nexport const getAdminSearchStatus = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchStatusResponses,\n GetAdminSearchStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/status\",\n ...options,\n });\n\n/**\n * Platform-wide analytics summary (platform admin only)\n *\n * Platform-wide analytics summary (platform admin only)\n */\nexport const getAdminLlmAnalyticsPlatform = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLlmAnalyticsPlatformData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsPlatformResponses,\n GetAdminLlmAnalyticsPlatformErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/platform\",\n ...options,\n });\n\n/**\n * Run an agent version against a document and return the test result\n *\n * Run an agent version against a document and return the test result\n */\nexport const postAdminAgentTestResults = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentTestResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentTestResultsResponses,\n PostAdminAgentTestResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-test-results\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Clears published_at — template reverts to draft state.\n *\n * Clears published_at — template reverts to draft state.\n */\nexport const patchAdminEmailMarketingTemplatesByIdUnpublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdUnpublishData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdUnpublishResponses,\n PatchAdminEmailMarketingTemplatesByIdUnpublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/unpublish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Replay historical events to this webhook\n *\n * Replay historical events to this webhook\n */\nexport const postAdminWebhookConfigsByIdReplay = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsByIdReplayData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsByIdReplayResponses,\n PostAdminWebhookConfigsByIdReplayErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/replay\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get the currently authenticated user\n *\n * Get the currently authenticated user\n */\nexport const getAdminUsersMe = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeResponses,\n GetAdminUsersMeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me\",\n ...options,\n });\n\n/**\n * Accept a pending classification suggestion; publishes ClassificationAccepted event and increments taxonomy node product_count.\n *\n * Accept a pending classification suggestion; publishes ClassificationAccepted event and increments taxonomy node product_count.\n */\nexport const patchAdminCatalogClassificationSuggestionsByIdAccept = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogClassificationSuggestionsByIdAcceptData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogClassificationSuggestionsByIdAcceptResponses,\n PatchAdminCatalogClassificationSuggestionsByIdAcceptErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/{id}/accept\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Set or remove credit budget for this API key\n *\n * Set or remove credit budget for this API key\n */\nexport const patchAdminApiKeysByIdSetBudget = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdSetBudgetData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdSetBudgetResponses,\n PatchAdminApiKeysByIdSetBudgetErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/set-budget\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crawler/schedules/:id operation on crawler_schedule resource\n *\n * /crawler/schedules/:id operation on crawler_schedule resource\n */\nexport const deleteAdminCrawlerSchedulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrawlerSchedulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrawlerSchedulesByIdResponses,\n DeleteAdminCrawlerSchedulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}\",\n ...options,\n });\n\n/**\n * /crawler/schedules/:id operation on crawler_schedule resource\n *\n * /crawler/schedules/:id operation on crawler_schedule resource\n */\nexport const getAdminCrawlerSchedulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerSchedulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSchedulesByIdResponses,\n GetAdminCrawlerSchedulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}\",\n ...options,\n });\n\n/**\n * Update schedule configuration, URL, frequency, or notification settings\n *\n * Update schedule configuration, URL, frequency, or notification settings. Returns the updated schedule.\n */\nexport const patchAdminCrawlerSchedulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdResponses,\n PatchAdminCrawlerSchedulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Workspaces where user has membership but NOT tenant membership (shared from external orgs)\n *\n * Workspaces where user has membership but NOT tenant membership (shared from external orgs)\n */\nexport const getAdminWorkspacesShared = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesSharedData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesSharedResponses,\n GetAdminWorkspacesSharedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/shared\",\n ...options,\n });\n\n/**\n * List all revisions for a specific AgentVersion, sorted by revision number descending\n *\n * List all revisions for a specific AgentVersion, sorted by revision number descending.\n * Revisions capture incremental prompt and field-description changes within a schema version.\n * Authorization is checked manually inside the action via `Ash.get` with `authorize?: true`.\n *\n * Returns a JSON:API-shaped map `%{data: [%{id, type, attributes: {...}}]}`.\n *\n */\nexport const getAdminAgentVersionsByIdRevisions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionsByIdRevisionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsByIdRevisionsResponses,\n GetAdminAgentVersionsByIdRevisionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/revisions\",\n ...options,\n });\n\n/**\n * /access-logs/:id operation on access_log resource\n *\n * /access-logs/:id operation on access_log resource\n */\nexport const getAdminAccessLogsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccessLogsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccessLogsByIdResponses,\n GetAdminAccessLogsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/access-logs/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/templates/:id/archive operation on email-marketing-template resource\n *\n * /email-marketing/templates/:id/archive operation on email-marketing-template resource\n */\nexport const patchAdminEmailMarketingTemplatesByIdArchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdArchiveData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdArchiveResponses,\n PatchAdminEmailMarketingTemplatesByIdArchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/archive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List workspace members including inherited org owners/admins\n *\n * List workspace members including inherited org owners/admins\n */\nexport const getAdminWorkspaceMembershipsInherited = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspaceMembershipsInheritedData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspaceMembershipsInheritedResponses,\n GetAdminWorkspaceMembershipsInheritedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/inherited\",\n ...options,\n });\n\n/**\n * Enable multiple webhook configs by ID in a single call\n *\n * Enable multiple webhook configs by ID in a single call. Only configs the actor is authorized to update are affected; returns `{success: true, count: N}` indicating how many were enabled.\n */\nexport const postAdminWebhookConfigsBulkEnable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsBulkEnableData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsBulkEnableResponses,\n PostAdminWebhookConfigsBulkEnableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/bulk-enable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get prioritized review queue for active learning\n *\n * Get prioritized review queue for active learning\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueueErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/review-queue\",\n ...options,\n });\n\n/**\n * List all stock locations in a workspace\n *\n * List all stock locations in a workspace. Returns a paginated list including virtual locations.\n */\nexport const getAdminCatalogStockLocationsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogStockLocationsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /data-subject-requests operation on data_subject_request resource\n *\n * /data-subject-requests operation on data_subject_request resource\n */\nexport const getAdminDataSubjectRequests = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminDataSubjectRequestsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminDataSubjectRequestsResponses,\n GetAdminDataSubjectRequestsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests\",\n ...options,\n });\n\n/**\n * Open a new GDPR/CCPA data subject request (access, erasure, portability, rectification, or restriction)\n *\n * Open a new GDPR/CCPA data subject request (access, erasure, portability, rectification, or restriction). Automatically sets a 30-day response `deadline` from the current time. A DataSubjectRequestWorker Oban job is responsible for processing the request.\n */\nexport const postAdminDataSubjectRequests = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminDataSubjectRequestsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminDataSubjectRequestsResponses,\n PostAdminDataSubjectRequestsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /transfers operation on transfer resource\n *\n * /transfers operation on transfer resource\n */\nexport const getAdminTransfers = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransfersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransfersResponses,\n GetAdminTransfersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transfers\",\n ...options,\n });\n\n/**\n * List all entries in a price list\n *\n * List all entries in a price list. Returns a paginated list of product/variant overrides.\n */\nexport const getAdminCatalogPriceListEntriesPriceListByPriceListId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdResponses,\n GetAdminCatalogPriceListEntriesPriceListByPriceListIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries/price-list/{price_list_id}\",\n ...options,\n });\n\n/**\n * Clone a system agent for workspace-specific customization\n *\n * Clone a system agent for workspace-specific customization\n */\nexport const postAdminAgentsCloneForWorkspace = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsCloneForWorkspaceData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsCloneForWorkspaceResponses,\n PostAdminAgentsCloneForWorkspaceErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/clone-for-workspace\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Advance a breach incident through its lifecycle (identified → investigating → notifying → resolved / false_positive) and record officer notification and remediation notes.\n *\n * Advance a breach incident through its lifecycle (identified → investigating → notifying → resolved / false_positive) and record officer notification and remediation notes.\n */\nexport const patchAdminBreachIncidentsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminBreachIncidentsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminBreachIncidentsByIdStatusResponses,\n PatchAdminBreachIncidentsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents/{id}/status\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete an option type and all its values; cascades to variant_option_values\n *\n * Permanently delete an option type and all its values; cascades to variant_option_values. Use with caution.\n */\nexport const deleteAdminCatalogOptionTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogOptionTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogOptionTypesByIdResponses,\n DeleteAdminCatalogOptionTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/{id}\",\n ...options,\n });\n\n/**\n * /catalog/option-types/:id operation on catalog_option_type resource\n *\n * /catalog/option-types/:id operation on catalog_option_type resource\n */\nexport const getAdminCatalogOptionTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogOptionTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionTypesByIdResponses,\n GetAdminCatalogOptionTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/{id}\",\n ...options,\n });\n\n/**\n * Update the name, slug, or display position of an option type\n *\n * Update the name, slug, or display position of an option type. Returns the updated option type.\n */\nexport const patchAdminCatalogOptionTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogOptionTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogOptionTypesByIdResponses,\n PatchAdminCatalogOptionTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Allocate credits to the tenant's liability account\n *\n * Allocate credits to the tenant's liability account\n */\nexport const postAdminTenantsByIdCredit = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantsByIdCreditData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsByIdCreditResponses,\n PostAdminTenantsByIdCreditErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}/credit\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Reverse an exclusion: allow a previously excluded document to contribute training examples\n * again\n *\n * Reverse an exclusion: allow a previously excluded document to contribute training examples\n * again. Clears `excluded_from_training`, `excluded_at`, `excluded_by`, and\n * `training_metadata` so the document appears in normal training queries.\n *\n * Side effects: synchronously clears the `document_excluded` flag on all associated\n * `TrainingExample` records, making them eligible for semantic search and few-shot selection.\n *\n * This action is also registered under the `/restore` route as a semantic alias.\n *\n */\nexport const patchAdminExtractionDocumentsByIdInclude = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdIncludeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdIncludeResponses,\n PatchAdminExtractionDocumentsByIdIncludeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/include\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /customers/:id operation on customer resource\n *\n * /customers/:id operation on customer resource\n */\nexport const deleteAdminCustomersById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminCustomersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCustomersByIdResponses,\n DeleteAdminCustomersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers/{id}\",\n ...options,\n });\n\n/**\n * /customers/:id operation on customer resource\n *\n * /customers/:id operation on customer resource\n */\nexport const getAdminCustomersById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCustomersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCustomersByIdResponses,\n GetAdminCustomersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers/{id}\",\n ...options,\n });\n\n/**\n * /customers/:id operation on customer resource\n *\n * /customers/:id operation on customer resource\n */\nexport const patchAdminCustomersById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminCustomersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCustomersByIdResponses,\n PatchAdminCustomersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List active (non-deleted) documents in a workspace, sorted by creation date\n *\n * List active (non-deleted) documents in a workspace, sorted by creation date.\n * Optionally filters to a specific batch via `batch_id`. Use this instead of the primary `:read`\n * action when the workspace is known — it applies the workspace and soft-delete filters together.\n *\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /crm/deal-products/:id operation on crm_deal_product resource\n *\n * /crm/deal-products/:id operation on crm_deal_product resource\n */\nexport const deleteAdminCrmDealProductsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmDealProductsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmDealProductsByIdResponses,\n DeleteAdminCrmDealProductsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deal-products/{id}\",\n ...options,\n });\n\n/**\n * Add a filter rule to a catalog view; rules in the same group are AND'd, multiple groups are OR'd\n *\n * Add a filter rule to a catalog view; rules in the same group are AND'd, multiple groups are OR'd. Returns the created rule.\n */\nexport const postAdminCatalogViewRules = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCatalogViewRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogViewRulesResponses,\n PostAdminCatalogViewRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-rules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /agents/:id operation on agent resource\n *\n * /agents/:id operation on agent resource\n */\nexport const getAdminAgentsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdResponses,\n GetAdminAgentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}\",\n ...options,\n });\n\n/**\n * /settlements operation on settlement resource\n *\n * /settlements operation on settlement resource\n */\nexport const getAdminSettlements = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSettlementsResponses,\n GetAdminSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/settlements\",\n ...options,\n });\n\n/**\n * /settlements operation on settlement resource\n *\n * /settlements operation on settlement resource\n */\nexport const postAdminSettlements = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSettlementsResponses,\n PostAdminSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/settlements\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/inclusions/email/:outbound_email_id operation on email-inclusion resource\n *\n * /email/inclusions/email/:outbound_email_id operation on email-inclusion resource\n */\nexport const getAdminEmailInclusionsEmailByOutboundEmailId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailInclusionsEmailByOutboundEmailIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailInclusionsEmailByOutboundEmailIdResponses,\n GetAdminEmailInclusionsEmailByOutboundEmailIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/inclusions/email/{outbound_email_id}\",\n ...options,\n });\n\n/**\n * /connectors/credentials/:id operation on credential resource\n *\n * /connectors/credentials/:id operation on credential resource\n */\nexport const getAdminConnectorsCredentialsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConnectorsCredentialsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsCredentialsByIdResponses,\n GetAdminConnectorsCredentialsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/credentials/{id}\",\n ...options,\n });\n\n/**\n * Create a new extraction batch to group related documents\n *\n * Create a new extraction batch to group related documents. After creating a batch, use\n * `:generate_upload_urls` to get presigned S3 PUT URLs for each file, then upload files\n * directly from the client and call `Document.begin_upload`/`finish_upload` with the\n * returned `batch_id` to associate documents.\n *\n * Returns the created batch with `status: :processing` (no documents yet, so all aggregates\n * are zero and calculated status resolves to `:completed` until documents are added).\n *\n */\nexport const postAdminExtractionBatches = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionBatchesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionBatchesResponses,\n PostAdminExtractionBatchesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Re-extract document with current or specified schema version\n *\n * Re-extract document with current or specified schema version\n */\nexport const patchAdminExtractionDocumentsByIdReprocess = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdReprocessData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdReprocessResponses,\n PatchAdminExtractionDocumentsByIdReprocessErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/reprocess\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Export agent configuration and training examples\n *\n * Export agent configuration and training examples\n */\nexport const postAdminAgentsByIdExport = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdExportData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdExportResponses,\n PostAdminAgentsByIdExportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/export\",\n ...options,\n });\n\n/**\n * /workspace-memberships operation on workspace-membership resource\n *\n * /workspace-memberships operation on workspace-membership resource\n */\nexport const getAdminWorkspaceMemberships = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspaceMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspaceMembershipsResponses,\n GetAdminWorkspaceMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships\",\n ...options,\n });\n\n/**\n * /workspace-memberships operation on workspace-membership resource\n *\n * /workspace-memberships operation on workspace-membership resource\n */\nexport const postAdminWorkspaceMemberships = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWorkspaceMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspaceMembershipsResponses,\n PostAdminWorkspaceMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /search/saved/:id operation on saved_search resource\n *\n * /search/saved/:id operation on saved_search resource\n */\nexport const deleteAdminSearchSavedById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminSearchSavedByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSearchSavedByIdResponses,\n DeleteAdminSearchSavedByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved/{id}\",\n ...options,\n });\n\n/**\n * Modify the name, query string, search type, filters, or sharing status of an existing saved search\n *\n * Modify the name, query string, search type, filters, or sharing status of an existing saved search. Only the owning user can update their own saved searches. Validates the filters map for allowed keys (document_types, date_from, date_to, workspace_ids, tags). Returns the updated SavedSearch.\n */\nexport const patchAdminSearchSavedById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminSearchSavedByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSearchSavedByIdResponses,\n PatchAdminSearchSavedByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Allocates promotional credits to a specific tenant on behalf of the application\n *\n * Allocates promotional credits to a specific tenant on behalf of the application\n */\nexport const patchAdminApplicationsByIdGrantCredits = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApplicationsByIdGrantCreditsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByIdGrantCreditsResponses,\n PatchAdminApplicationsByIdGrantCreditsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}/grant-credits\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /transfers/:id operation on transfer resource\n *\n * /transfers/:id operation on transfer resource\n */\nexport const getAdminTransfersById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransfersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransfersByIdResponses,\n GetAdminTransfersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transfers/{id}\",\n ...options,\n });\n\n/**\n * /platform-pricing-configs operation on platform-pricing-config resource\n *\n * /platform-pricing-configs operation on platform-pricing-config resource\n */\nexport const getAdminPlatformPricingConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPlatformPricingConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlatformPricingConfigsResponses,\n GetAdminPlatformPricingConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs\",\n ...options,\n });\n\n/**\n * /platform-pricing-configs operation on platform-pricing-config resource\n *\n * /platform-pricing-configs operation on platform-pricing-config resource\n */\nexport const postAdminPlatformPricingConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPlatformPricingConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPlatformPricingConfigsResponses,\n PostAdminPlatformPricingConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch LLM analytics scoped to a single workspace; use for per-workspace usage dashboards and cost attribution.\n *\n * Fetch LLM analytics scoped to a single workspace; use for per-workspace usage dashboards and cost attribution.\n */\nexport const getAdminLlmAnalyticsWorkspace = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLlmAnalyticsWorkspaceData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsWorkspaceResponses,\n GetAdminLlmAnalyticsWorkspaceErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/workspace\",\n ...options,\n });\n\n/**\n * Cancel an active add-on subscription on the wallet\n *\n * Cancel an active add-on subscription on the wallet. Cancellation takes effect\n * immediately — the add-on is removed from the active add-ons list on return.\n * Any remaining credits associated with the add-on are not refunded.\n *\n * Use :buy_addon to purchase or top up an add-on. Returns the updated wallet\n * with the cancelled add-on removed from the addons list.\n *\n */\nexport const patchAdminWalletAddonsByAddonSlugCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWalletAddonsByAddonSlugCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletAddonsByAddonSlugCancelResponses,\n PatchAdminWalletAddonsByAddonSlugCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/addons/{addon_slug}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /campaigns/sequences/workspace/:workspace_id operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/workspace/:workspace_id operation on email-marketing-sequence resource\n */\nexport const getAdminCampaignsSequencesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCampaignsSequencesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCampaignsSequencesWorkspaceByWorkspaceIdResponses,\n GetAdminCampaignsSequencesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Fetch a single event by ID\n *\n * Fetch a single event by ID. Returns full event with location embed, recurrence data, and organizer info.\n */\nexport const getAdminSchedulingEventsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingEventsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventsByIdResponses,\n GetAdminSchedulingEventsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events/{id}\",\n ...options,\n });\n\n/**\n * Update event metadata: title, description, timezone, location, notes, or custom metadata\n *\n * Update event metadata: title, description, timezone, location, notes, or custom metadata. Does not change time — use :reschedule for that. Re-indexes in Meilisearch.\n */\nexport const patchAdminSchedulingEventsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingEventsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingEventsByIdResponses,\n PatchAdminSchedulingEventsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/events/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Manually trigger a scheduled crawl immediately.\n *\n * Manually trigger a scheduled crawl immediately.\n */\nexport const patchAdminCrawlerSchedulesByIdTrigger = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdTriggerData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdTriggerResponses,\n PatchAdminCrawlerSchedulesByIdTriggerErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}/trigger\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a taxonomy node (category) at the given position in the tree; validates hierarchy depth\n *\n * Create a taxonomy node (category) at the given position in the tree; validates hierarchy depth. Returns the created node.\n */\nexport const postAdminCatalogTaxonomyNodes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogTaxonomyNodesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogTaxonomyNodesResponses,\n PostAdminCatalogTaxonomyNodesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /settlements/:id operation on settlement resource\n *\n * /settlements/:id operation on settlement resource\n */\nexport const getAdminSettlementsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSettlementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSettlementsByIdResponses,\n GetAdminSettlementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/settlements/{id}\",\n ...options,\n });\n\n/**\n * Restore the agent to a previously used version by activating it\n *\n * Restore the agent to a previously used version by activating it. This deactivates the\n * currently active version and sets the target version as active. Use this to roll back after\n * a bad schema or prompt change. The restored version becomes the new active version used for\n * all subsequent document processing.\n *\n * Returns a map with the activated version data.\n *\n */\nexport const postAdminAgentsByIdRestoreVersion = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdRestoreVersionData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdRestoreVersionResponses,\n PostAdminAgentsByIdRestoreVersionErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/restore-version\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Full-text search threads by title or context summary within the actor's accessible workspace\n *\n * Full-text search threads by title or context summary within the actor's accessible workspace. Use Message.semantic_search for vector-based message content search.\n */\nexport const getAdminThreadsSearch = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsSearchResponses,\n GetAdminThreadsSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/search\",\n ...options,\n });\n\n/**\n * List training examples for this agent\n *\n * List training examples for this agent\n */\nexport const getAdminAgentsByIdTrainingExamples = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentsByIdTrainingExamplesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdTrainingExamplesResponses,\n GetAdminAgentsByIdTrainingExamplesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/training-examples\",\n ...options,\n });\n\n/**\n * Hard-delete a calendar sync configuration, stopping all future sync runs for this calendar\n *\n * Hard-delete a calendar sync configuration, stopping all future sync runs for this calendar. Oban jobs for this sync will still complete their current run before stopping.\n */\nexport const deleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n DeleteAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}\",\n ...options,\n });\n\n/**\n * Update calendar sync settings: name, direction, poll interval, or custom metadata\n *\n * Update calendar sync settings: name, direction, poll interval, or custom metadata. Use :pause/:resume to control sync status — sync_status cannot be changed via :update.\n */\nexport const patchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Change password for authenticated user with current password verification\n *\n * Change password for authenticated user with current password verification\n */\nexport const patchAdminUsersAuthPasswordChange = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersAuthPasswordChangeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersAuthPasswordChangeResponses,\n PatchAdminUsersAuthPasswordChangeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/password/change\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete a catalog view and its rules and overrides\n *\n * Permanently delete a catalog view and its rules and overrides. Prefer setting status to :archived to retain history.\n */\nexport const deleteAdminCatalogViewsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogViewsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogViewsByIdResponses,\n DeleteAdminCatalogViewsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/{id}\",\n ...options,\n });\n\n/**\n * /catalog/views/:id operation on catalog_view resource\n *\n * /catalog/views/:id operation on catalog_view resource\n */\nexport const getAdminCatalogViewsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCatalogViewsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogViewsByIdResponses,\n GetAdminCatalogViewsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/{id}\",\n ...options,\n });\n\n/**\n * Update view metadata, filtering rules, or pricing association\n *\n * Update view metadata, filtering rules, or pricing association. Returns the updated view.\n */\nexport const patchAdminCatalogViewsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogViewsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogViewsByIdResponses,\n PatchAdminCatalogViewsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /tenant-memberships operation on tenant-membership resource\n *\n * /tenant-memberships operation on tenant-membership resource\n */\nexport const getAdminTenantMemberships = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTenantMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantMembershipsResponses,\n GetAdminTenantMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships\",\n ...options,\n });\n\n/**\n * /tenant-memberships operation on tenant-membership resource\n *\n * /tenant-memberships operation on tenant-membership resource\n */\nexport const postAdminTenantMemberships = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantMembershipsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantMembershipsResponses,\n PostAdminTenantMembershipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-memberships\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a variant by setting deleted_at; excluded from future reads\n *\n * Soft-delete a variant by setting deleted_at; excluded from future reads. Prefer archiving via status update to preserve audit history.\n */\nexport const deleteAdminCatalogProductVariantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogProductVariantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogProductVariantsByIdResponses,\n DeleteAdminCatalogProductVariantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/{id}\",\n ...options,\n });\n\n/**\n * /catalog/product-variants/:id operation on catalog_product_variant resource\n *\n * /catalog/product-variants/:id operation on catalog_product_variant resource\n */\nexport const getAdminCatalogProductVariantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogProductVariantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductVariantsByIdResponses,\n GetAdminCatalogProductVariantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/{id}\",\n ...options,\n });\n\n/**\n * Update a variant's SKU, pricing, properties, or media\n *\n * Update a variant's SKU, pricing, properties, or media. Returns the updated variant.\n */\nexport const patchAdminCatalogProductVariantsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogProductVariantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogProductVariantsByIdResponses,\n PatchAdminCatalogProductVariantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /tenant-pricing-overrides/:id operation on tenant_pricing_override resource\n *\n * /tenant-pricing-overrides/:id operation on tenant_pricing_override resource\n */\nexport const deleteAdminTenantPricingOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminTenantPricingOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTenantPricingOverridesByIdResponses,\n DeleteAdminTenantPricingOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides/{id}\",\n ...options,\n });\n\n/**\n * /tenant-pricing-overrides/:id operation on tenant_pricing_override resource\n *\n * /tenant-pricing-overrides/:id operation on tenant_pricing_override resource\n */\nexport const getAdminTenantPricingOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantPricingOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantPricingOverridesByIdResponses,\n GetAdminTenantPricingOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides/{id}\",\n ...options,\n });\n\n/**\n * /tenant-pricing-overrides/:id operation on tenant_pricing_override resource\n *\n * /tenant-pricing-overrides/:id operation on tenant_pricing_override resource\n */\nexport const patchAdminTenantPricingOverridesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminTenantPricingOverridesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminTenantPricingOverridesByIdResponses,\n PatchAdminTenantPricingOverridesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenant-pricing-overrides/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/campaigns/:id operation on campaign resource\n *\n * /email-marketing/campaigns/:id operation on campaign resource\n */\nexport const deleteAdminEmailMarketingCampaignsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailMarketingCampaignsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingCampaignsByIdResponses,\n DeleteAdminEmailMarketingCampaignsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/campaigns/:id operation on campaign resource\n *\n * /email-marketing/campaigns/:id operation on campaign resource\n */\nexport const getAdminEmailMarketingCampaignsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingCampaignsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingCampaignsByIdResponses,\n GetAdminEmailMarketingCampaignsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/campaigns/:id operation on campaign resource\n *\n * /email-marketing/campaigns/:id operation on campaign resource\n */\nexport const patchAdminEmailMarketingCampaignsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailMarketingCampaignsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingCampaignsByIdResponses,\n PatchAdminEmailMarketingCampaignsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /catalog/variant-option-values/:id operation on catalog_variant_option_value resource\n *\n * /catalog/variant-option-values/:id operation on catalog_variant_option_value resource\n */\nexport const deleteAdminCatalogVariantOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogVariantOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogVariantOptionValuesByIdResponses,\n DeleteAdminCatalogVariantOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/variant-option-values/{id}\",\n ...options,\n });\n\n/**\n * Register a new user account with email and password\n *\n * Register a new user account with email and password. Validates password\n * confirmation and accepted legal documents. Creates a personal tenant, default\n * workspace, billing account, and user profile via HandleRegistrationContext.\n * Sends a confirmation email; the account cannot use scoped API actions until\n * confirmed (unless require_email_verification is false on the Application).\n *\n * Use :register_via_invitation when the user has an invitation token, or\n * :register_with_oidc for OAuth/SSO flows.\n *\n * Returns the created user with a JWT token in the token field if\n * sign_in_tokens_enabled? is true, otherwise token is nil.\n *\n */\nexport const postAdminUsersAuthRegister = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthRegisterData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthRegisterResponses,\n PostAdminUsersAuthRegisterErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/register\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /webhook-deliveries/:id operation on webhook_delivery resource\n *\n * /webhook-deliveries/:id operation on webhook_delivery resource\n */\nexport const getAdminWebhookDeliveriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookDeliveriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookDeliveriesByIdResponses,\n GetAdminWebhookDeliveriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/{id}\",\n ...options,\n });\n\n/**\n * Restore an archived thread by clearing `archived_at`, making it visible in the default thread list again.\n *\n * Restore an archived thread by clearing `archived_at`, making it visible in the default thread list again.\n */\nexport const patchAdminThreadsByIdUnarchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminThreadsByIdUnarchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminThreadsByIdUnarchiveResponses,\n PatchAdminThreadsByIdUnarchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/unarchive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /pricing-rules/resolve operation on pricing_rule resource\n *\n * /pricing-rules/resolve operation on pricing_rule resource\n */\nexport const getAdminPricingRulesResolve = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPricingRulesResolveData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingRulesResolveResponses,\n GetAdminPricingRulesResolveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules/resolve\",\n ...options,\n });\n\n/**\n * Activate a specific schema version\n *\n * Activate a specific schema version\n */\nexport const postAdminAgentsByIdSchemaVersionsByVersionIdActivate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateResponses,\n PostAdminAgentsByIdSchemaVersionsByVersionIdActivateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions/{version_id}/activate\",\n ...options,\n });\n\n/**\n * List all locations for a workspace (both active and inactive)\n *\n * List all locations for a workspace (both active and inactive). Use :list_by_type to filter by venue type.\n */\nexport const getAdminSchedulingLocations = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingLocationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingLocationsResponses,\n GetAdminSchedulingLocationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations\",\n ...options,\n });\n\n/**\n * Create a reusable location record (venue, room, virtual link, or resource)\n *\n * Create a reusable location record (venue, room, virtual link, or resource). Location data is copied into LocationEmbed on Event/EventType via CopyLocationToEmbed change at write time. Returns the created Location.\n */\nexport const postAdminSchedulingLocations = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingLocationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingLocationsResponses,\n PostAdminSchedulingLocationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /extraction/schema-discoveries/:id operation on schema_discovery resource\n *\n * /extraction/schema-discoveries/:id operation on schema_discovery resource\n */\nexport const getAdminExtractionSchemaDiscoveriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionSchemaDiscoveriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionSchemaDiscoveriesByIdResponses,\n GetAdminExtractionSchemaDiscoveriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/schema-discoveries/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single calendar sync configuration by ID\n *\n * Fetch a single calendar sync configuration by ID. sync_token is excluded (sensitive? true) — never returned in API responses.\n */\nexport const getAdminSchedulingCalendarSyncsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingCalendarSyncsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingCalendarSyncsByIdResponses,\n GetAdminSchedulingCalendarSyncsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/{id}\",\n ...options,\n });\n\n/**\n * /crawler/results operation on crawler_result resource\n *\n * /crawler/results operation on crawler_result resource\n */\nexport const getAdminCrawlerResults = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerResultsResponses,\n GetAdminCrawlerResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/results\",\n ...options,\n });\n\n/**\n * List all platform permissions for a given context (:tenant or :workspace); returns permission metadata from the PermissionRegistry for use in permission-picker UIs.\n *\n * List all platform permissions for a given context (:tenant or :workspace); returns permission metadata from the PermissionRegistry for use in permission-picker UIs.\n */\nexport const getAdminPermissions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPermissionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsResponses,\n GetAdminPermissionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions\",\n ...options,\n });\n\n/**\n * Predicts the best agents for a given input\n *\n * Predicts the best agents for a given input\n */\nexport const postAdminAgentsPredict = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsPredictData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsPredictResponses,\n PostAdminAgentsPredictErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/predict\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/send-limits/:id operation on email-send-limit resource\n *\n * /email/send-limits/:id operation on email-send-limit resource\n */\nexport const getAdminEmailSendLimitsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailSendLimitsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailSendLimitsByIdResponses,\n GetAdminEmailSendLimitsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/send-limits/{id}\",\n ...options,\n });\n\n/**\n * Disable a schedule to pause automatic crawling without deleting the configuration.\n *\n * Disable a schedule to pause automatic crawling without deleting the configuration.\n */\nexport const patchAdminCrawlerSchedulesByIdDisable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdDisableData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdDisableResponses,\n PatchAdminCrawlerSchedulesByIdDisableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}/disable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete an API key record\n *\n * Permanently delete an API key record. Invalidates the Redis auth cache entry.\n * Use :revoke instead when you want to deactivate a key while preserving the audit\n * trail and reclaiming unused credits back to the tenant wallet.\n *\n */\nexport const deleteAdminApiKeysById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminApiKeysByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminApiKeysByIdResponses,\n DeleteAdminApiKeysByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}\",\n ...options,\n });\n\n/**\n * List or fetch API keys\n *\n * List or fetch API keys. Supports keyset and offset pagination. Returns keys\n * scoped to the actor — users see only their own keys, ISV owners see keys for\n * their application. Use :active to restrict to non-revoked keys, or :usage_stats\n * for tenant-scoped usage analytics.\n *\n */\nexport const getAdminApiKeysById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysByIdResponses,\n GetAdminApiKeysByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}\",\n ...options,\n });\n\n/**\n * Update mutable API key properties: name, scopes, rate limit, and credit limit\n *\n * Update mutable API key properties: name, scopes, rate limit, and credit limit.\n * Server keys require at least one scope; application keys always receive all\n * available scopes regardless of the provided value. Invalidates the Redis auth\n * cache on success.\n *\n */\nexport const patchAdminApiKeysById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminApiKeysByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdResponses,\n PatchAdminApiKeysByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Restore an archived contact (clears deleted_at)\n *\n * Restore an archived contact (clears deleted_at)\n */\nexport const postAdminCrmContactsByIdUnarchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmContactsByIdUnarchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmContactsByIdUnarchiveResponses,\n PostAdminCrmContactsByIdUnarchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}/unarchive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /isv-settlements/:id operation on isv_settlement resource\n *\n * /isv-settlements/:id operation on isv_settlement resource\n */\nexport const getAdminIsvSettlementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminIsvSettlementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvSettlementsByIdResponses,\n GetAdminIsvSettlementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements/{id}\",\n ...options,\n });\n\n/**\n * /isv-settlements/:id operation on isv_settlement resource\n *\n * /isv-settlements/:id operation on isv_settlement resource\n */\nexport const patchAdminIsvSettlementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvSettlementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvSettlementsByIdResponses,\n PatchAdminIsvSettlementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete a role; emits a RoleDeleted audit event\n *\n * Delete a role; emits a RoleDeleted audit event. Existing TenantMemberships that reference this role retain their snapshotted permissions.\n */\nexport const deleteAdminRolesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminRolesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminRolesByIdResponses,\n DeleteAdminRolesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles/{id}\",\n ...options,\n });\n\n/**\n * Update a role's name, description, or permission list; does NOT retroactively update existing TenantMemberships — use bulk_refresh_memberships for that\n *\n * Update a role's name, description, or permission list; does NOT retroactively update existing TenantMemberships — use bulk_refresh_memberships for that. Emits a RoleUpdated audit event.\n */\nexport const patchAdminRolesById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminRolesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminRolesByIdResponses,\n PatchAdminRolesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /post-processing-hooks/:id operation on post_processing_hook resource\n *\n * /post-processing-hooks/:id operation on post_processing_hook resource\n */\nexport const deleteAdminPostProcessingHooksById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminPostProcessingHooksByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPostProcessingHooksByIdResponses,\n DeleteAdminPostProcessingHooksByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks/{id}\",\n ...options,\n });\n\n/**\n * /post-processing-hooks/:id operation on post_processing_hook resource\n *\n * /post-processing-hooks/:id operation on post_processing_hook resource\n */\nexport const getAdminPostProcessingHooksById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPostProcessingHooksByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPostProcessingHooksByIdResponses,\n GetAdminPostProcessingHooksByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks/{id}\",\n ...options,\n });\n\n/**\n * /post-processing-hooks/:id operation on post_processing_hook resource\n *\n * /post-processing-hooks/:id operation on post_processing_hook resource\n */\nexport const patchAdminPostProcessingHooksById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPostProcessingHooksByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPostProcessingHooksByIdResponses,\n PatchAdminPostProcessingHooksByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Re-execute a saved search by ID and return the saved search metadata enriched with an `executed_at` ISO-8601 timestamp\n *\n * Re-execute a saved search by ID and return the saved search metadata enriched with an `executed_at` ISO-8601 timestamp. Authorization is delegated to the standard :read policy — only the owner or shared searches are accessible. Use this instead of :search when the query is already stored and you want a re-run audit trail.\n */\nexport const postAdminSearchSavedByIdRun = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSearchSavedByIdRunData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchSavedByIdRunResponses,\n PostAdminSearchSavedByIdRunErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved/{id}/run\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List recordings for a specific voice session\n *\n * List recordings for a specific voice session\n */\nexport const getAdminVoiceRecordingsSessionBySessionId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminVoiceRecordingsSessionBySessionIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceRecordingsSessionBySessionIdResponses,\n GetAdminVoiceRecordingsSessionBySessionIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/recordings/session/{session_id}\",\n ...options,\n });\n\n/**\n * List invitations visible to the actor\n *\n * List invitations visible to the actor. Returns invitations where the actor is the inviter, the tenant owner, or the recipient (matched by email).\n */\nexport const getAdminInvitations = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminInvitationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminInvitationsResponses,\n GetAdminInvitationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations\",\n ...options,\n });\n\n/**\n * Send an invitation to a user to join a tenant or workspace\n *\n * Send an invitation to a user to join a tenant or workspace. Applies rate limiting\n * per inviter, prevents self-invitation, enforces the tenant's member limit (based\n * on plan_tier), and validates custom permissions against the target scope. Generates\n * a signed token (valid 7 days), persists the invitation, and enqueues\n * SendInvitationEmail to deliver the invite email asynchronously. Logs an audit event.\n *\n * Returns the invitation with the raw_token in metadata (one-time only).\n *\n */\nexport const postAdminInvitations = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminInvitationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminInvitationsResponses,\n PostAdminInvitationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/tracking-events/workspace/:workspace_id operation on email-tracking-event resource\n *\n * /email/tracking-events/workspace/:workspace_id operation on email-tracking-event resource\n */\nexport const getAdminEmailTrackingEventsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailTrackingEventsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailTrackingEventsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailTrackingEventsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/tracking-events/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /catalog/classification-suggestions/:id operation on catalog_classification_suggestion resource\n *\n * /catalog/classification-suggestions/:id operation on catalog_classification_suggestion resource\n */\nexport const getAdminCatalogClassificationSuggestionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogClassificationSuggestionsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogClassificationSuggestionsByIdResponses,\n GetAdminCatalogClassificationSuggestionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/{id}\",\n ...options,\n });\n\n/**\n * Get storage breakdown by workspace\n *\n * Get storage breakdown by workspace\n */\nexport const getAdminWalletStorageBreakdown = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWalletStorageBreakdownData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletStorageBreakdownResponses,\n GetAdminWalletStorageBreakdownErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/storage-breakdown\",\n ...options,\n });\n\n/**\n * /threads/:id/messages operation on message resource\n *\n * /threads/:id/messages operation on message resource\n */\nexport const getAdminThreadsByIdMessages = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminThreadsByIdMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsByIdMessagesResponses,\n GetAdminThreadsByIdMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/messages\",\n ...options,\n });\n\n/**\n * Submit a user message to a thread and receive the AI response synchronously\n *\n * Submit a user message to a thread and receive the AI response synchronously. Saves the\n * user message, runs the full RAG pipeline via ChatService (intent classification, vector\n * search, graph lookup, LLM synthesis, billing charge), saves the assistant reply, and\n * returns the updated Thread. Use this instead of :create on Message when you want the\n * full AI response in one call.\n *\n */\nexport const postAdminThreadsByIdMessages = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminThreadsByIdMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdMessagesResponses,\n PostAdminThreadsByIdMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all participants for a specific event, including organizer and attendees\n *\n * List all participants for a specific event, including organizer and attendees. Use to render RSVP lists or build reminder recipient lists.\n */\nexport const getAdminSchedulingParticipants = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingParticipantsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingParticipantsResponses,\n GetAdminSchedulingParticipantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants\",\n ...options,\n });\n\n/**\n * Add a participant to an event\n *\n * Add a participant to an event. Unique per (event_id, email) — duplicate adds are rejected. Auto-called during booking creation for the booker. Returns the created Participant.\n */\nexport const postAdminSchedulingParticipants = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingParticipantsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingParticipantsResponses,\n PostAdminSchedulingParticipantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/participants\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /tenants operation on tenant resource\n *\n * /tenants operation on tenant resource\n */\nexport const getAdminTenants = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTenantsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsResponses,\n GetAdminTenantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants\",\n ...options,\n });\n\n/**\n * Create a new tenant organization\n *\n * Create a new tenant organization. Auto-generates a unique slug from name if\n * not provided. After creation: provisions storage buckets synchronously, creates\n * a default workspace (if application_id is set), adds the owner as a workspace\n * admin member, and ensures the tenant's billing liability account exists.\n *\n * Use :create_isv for ISV tenants that need an initial credit allocation.\n *\n * Returns the created tenant record.\n *\n */\nexport const postAdminTenants = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTenantsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsResponses,\n PostAdminTenantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a taxonomy node by stamping deleted_at; child nodes are not auto-deleted\n *\n * Soft-delete a taxonomy node by stamping deleted_at; child nodes are not auto-deleted. Remove children before deleting a parent.\n */\nexport const deleteAdminCatalogTaxonomyNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogTaxonomyNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogTaxonomyNodesByIdResponses,\n DeleteAdminCatalogTaxonomyNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/{id}\",\n ...options,\n });\n\n/**\n * /catalog/taxonomy-nodes/:id operation on catalog_taxonomy_node resource\n *\n * /catalog/taxonomy-nodes/:id operation on catalog_taxonomy_node resource\n */\nexport const getAdminCatalogTaxonomyNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogTaxonomyNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomyNodesByIdResponses,\n GetAdminCatalogTaxonomyNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/{id}\",\n ...options,\n });\n\n/**\n * Update a node's name, slug, position, or parent; re-validates tree depth\n *\n * Update a node's name, slug, position, or parent; re-validates tree depth. Returns the updated node.\n */\nexport const patchAdminCatalogTaxonomyNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogTaxonomyNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogTaxonomyNodesByIdResponses,\n PatchAdminCatalogTaxonomyNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /training-examples/:id operation on training_example resource\n *\n * /training-examples/:id operation on training_example resource\n */\nexport const deleteAdminTrainingExamplesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminTrainingExamplesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTrainingExamplesByIdResponses,\n DeleteAdminTrainingExamplesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single TrainingExample by ID.\n *\n * Fetch a single TrainingExample by ID.\n */\nexport const getAdminTrainingExamplesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTrainingExamplesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingExamplesByIdResponses,\n GetAdminTrainingExamplesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/{id}\",\n ...options,\n });\n\n/**\n * Update an existing training example's input text, expected output JSON, notes,\n * correction reasons, or image reference\n *\n * Update an existing training example's input text, expected output JSON, notes,\n * correction reasons, or image reference. Updating `input_text` will trigger re-vectorization\n * via AshAi, replacing the stored embedding with the new text's representation.\n *\n */\nexport const patchAdminTrainingExamplesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminTrainingExamplesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminTrainingExamplesByIdResponses,\n PatchAdminTrainingExamplesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a new CRM contact\n *\n * Create a new CRM contact. Validates against workspace contact quota and any\n * custom field definitions. Triggers Meilisearch indexing as a side effect.\n * Returns the created Contact struct.\n *\n */\nexport const postAdminCrmContacts = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmContactsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmContactsResponses,\n PostAdminCrmContactsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a channel capture configuration for a workspace\n *\n * Create a channel capture configuration for a workspace. One config per workspace —\n * use :update if a config already exists. When absent, defaults apply: all channel types\n * captured, no PII scanning, indefinite retention.\n *\n */\nexport const postAdminIsvCrmChannelCaptureConfig = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmChannelCaptureConfigData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmChannelCaptureConfigResponses,\n PostAdminIsvCrmChannelCaptureConfigErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/channel-capture-config\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List pipelines available to a workspace — includes both workspace-specific pipelines and application-level templates (workspace_id IS NULL).\n *\n * List pipelines available to a workspace — includes both workspace-specific pipelines and application-level templates (workspace_id IS NULL).\n */\nexport const getAdminCrmPipelinesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmPipelinesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Delete an ExtractionResult record\n *\n * Delete an ExtractionResult record. Use only when cleaning up failed or superseded results.\n */\nexport const deleteAdminExtractionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionResultsByIdResponses,\n DeleteAdminExtractionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single ExtractionResult by ID\n *\n * Fetch a single ExtractionResult by ID. Filters hidden system fields from the response.\n */\nexport const getAdminExtractionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsByIdResponses,\n GetAdminExtractionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}\",\n ...options,\n });\n\n/**\n * General-purpose update for an ExtractionResult\n *\n * General-purpose update for an ExtractionResult. Accepts status, credits, processing time,\n * extracted fields, and classification metadata. Used internally by workers to mark results\n * as `:completed` or `:failed`. For user-initiated field corrections, use `:save_corrections`\n * which also updates document confidence and recalculates summary statistics.\n *\n */\nexport const patchAdminExtractionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionResultsByIdResponses,\n PatchAdminExtractionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crawler/jobs operation on crawler_job resource\n *\n * /crawler/jobs operation on crawler_job resource\n */\nexport const getAdminCrawlerJobs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerJobsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerJobsResponses,\n GetAdminCrawlerJobsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs\",\n ...options,\n });\n\n/**\n * Create a crawl job for a URL with the specified mode and strategy; performs a credit pre-check and enqueues execution\n *\n * Create a crawl job for a URL with the specified mode and strategy; performs a credit pre-check and enqueues execution. Returns the created job.\n */\nexport const postAdminCrawlerJobs = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrawlerJobsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrawlerJobsResponses,\n PostAdminCrawlerJobsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a contact by setting deleted_at\n *\n * Soft-delete a contact by setting deleted_at. The record remains in the database\n * for audit purposes but is excluded from all standard reads. Enqueues a Meilisearch\n * deletion job as a side effect. Use :archive instead to preserve the record visibly.\n *\n */\nexport const deleteAdminCrmContactsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmContactsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmContactsByIdResponses,\n DeleteAdminCrmContactsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single active contact by ID; excludes soft-deleted records.\n *\n * Fetch a single active contact by ID; excludes soft-deleted records.\n */\nexport const getAdminCrmContactsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmContactsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmContactsByIdResponses,\n GetAdminCrmContactsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}\",\n ...options,\n });\n\n/**\n * Update mutable fields on an existing contact\n *\n * Update mutable fields on an existing contact. Validates custom field definitions\n * and re-indexes the record in Meilisearch. Use instead of :create when the contact\n * already exists. Returns the updated Contact struct.\n *\n */\nexport const patchAdminCrmContactsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminCrmContactsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmContactsByIdResponses,\n PatchAdminCrmContactsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Confirm a user's email address using a confirmation token\n *\n * Confirm a user's email address using a confirmation token\n */\nexport const postAdminUsersAuthConfirm = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUsersAuthConfirmData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthConfirmResponses,\n PostAdminUsersAuthConfirmErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/confirm\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Enqueue a bulk export job for audit logs\n *\n * Enqueue a bulk export job for audit logs. Returns job_id and enqueued status. Requires audit:write scope.\n */\nexport const postAdminAuditLogsExport = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAuditLogsExportData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAuditLogsExportResponses,\n PostAdminAuditLogsExportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-logs/export\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a custom entity by setting deleted_at\n *\n * Soft-delete a custom entity by setting deleted_at. Excluded from standard reads after deletion. Version history is preserved.\n */\nexport const deleteAdminCrmCustomEntitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmCustomEntitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmCustomEntitiesByIdResponses,\n DeleteAdminCrmCustomEntitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single active custom entity by ID; excludes soft-deleted records.\n *\n * Fetch a single active custom entity by ID; excludes soft-deleted records.\n */\nexport const getAdminCrmCustomEntitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmCustomEntitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesByIdResponses,\n GetAdminCrmCustomEntitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{id}\",\n ...options,\n });\n\n/**\n * Update a custom entity's properties and pipeline assignment\n *\n * Update a custom entity's properties and pipeline assignment. Validates properties\n * against the type schema. Automatically creates a version snapshot via CreateEntityVersion\n * before persisting changes. Use :restore_version to roll back to a prior snapshot.\n *\n */\nexport const patchAdminCrmCustomEntitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmCustomEntitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmCustomEntitiesByIdResponses,\n PatchAdminCrmCustomEntitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /notification-preferences operation on notification_preference resource\n *\n * /notification-preferences operation on notification_preference resource\n */\nexport const getAdminNotificationPreferences = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationPreferencesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationPreferencesResponses,\n GetAdminNotificationPreferencesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences\",\n ...options,\n });\n\n/**\n * Create notification preferences for a user, specifying which delivery channels are enabled (e.g., email, SMS) and category-level opt-in/out settings\n *\n * Create notification preferences for a user, specifying which delivery channels are enabled (e.g., email, SMS) and category-level opt-in/out settings. Each user has at most one preference record (enforced by unique identity).\n */\nexport const postAdminNotificationPreferences = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminNotificationPreferencesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminNotificationPreferencesResponses,\n PostAdminNotificationPreferencesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-preferences\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete multiple training examples by ID in a single transaction\n *\n * Delete multiple training examples by ID in a single transaction. Filters by both `ids` and\n * `agent_id` to prevent cross-agent deletions. All deletes use SystemActor after the\n * action-level policy has already verified the caller has `extract:agent:train:all` permission.\n *\n * Returns `%{success: true}` on success.\n *\n */\nexport const postAdminTrainingExamplesBulkDelete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTrainingExamplesBulkDeleteData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesBulkDeleteResponses,\n PostAdminTrainingExamplesBulkDeleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/bulk-delete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /credit-packages/:id operation on credit_package resource\n *\n * /credit-packages/:id operation on credit_package resource\n */\nexport const deleteAdminCreditPackagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCreditPackagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCreditPackagesByIdResponses,\n DeleteAdminCreditPackagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single credit package by its UUID\n *\n * Fetch a single credit package by its UUID. Use when you already know the package ID\n * (e.g., after the user selects a package in the UI). Use read_by_slug when looking up\n * by human-readable identifier. Returns the full package record including price and credit amount.\n *\n */\nexport const getAdminCreditPackagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCreditPackagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCreditPackagesByIdResponses,\n GetAdminCreditPackagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/{id}\",\n ...options,\n });\n\n/**\n * Update an existing credit package's name, price, or credit amount\n *\n * Update an existing credit package's name, price, or credit amount. Use when repricing a\n * bundle or correcting a catalog entry. Changes take effect for future purchases immediately;\n * past transactions are not affected.\n *\n * Requires Platform Admin role. The slug is immutable after creation.\n *\n */\nexport const patchAdminCreditPackagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCreditPackagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCreditPackagesByIdResponses,\n PatchAdminCreditPackagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /extraction-workflows/:id operation on extraction_workflow resource\n *\n * /extraction-workflows/:id operation on extraction_workflow resource\n */\nexport const deleteAdminExtractionWorkflowsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionWorkflowsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionWorkflowsByIdResponses,\n DeleteAdminExtractionWorkflowsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows/{id}\",\n ...options,\n });\n\n/**\n * /extraction-workflows/:id operation on extraction_workflow resource\n *\n * /extraction-workflows/:id operation on extraction_workflow resource\n */\nexport const getAdminExtractionWorkflowsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionWorkflowsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionWorkflowsByIdResponses,\n GetAdminExtractionWorkflowsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows/{id}\",\n ...options,\n });\n\n/**\n * /extraction-workflows/:id operation on extraction_workflow resource\n *\n * /extraction-workflows/:id operation on extraction_workflow resource\n */\nexport const patchAdminExtractionWorkflowsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionWorkflowsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionWorkflowsByIdResponses,\n PatchAdminExtractionWorkflowsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /extraction/schema-discoveries operation on schema_discovery resource\n *\n * /extraction/schema-discoveries operation on schema_discovery resource\n */\nexport const postAdminExtractionSchemaDiscoveries = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionSchemaDiscoveriesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionSchemaDiscoveriesResponses,\n PostAdminExtractionSchemaDiscoveriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/schema-discoveries\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Assign a product to a taxonomy node with source tracking (manual, ai_suggested, or ai_auto)\n *\n * Assign a product to a taxonomy node with source tracking (manual, ai_suggested, or ai_auto). Returns the created classification.\n */\nexport const postAdminCatalogProductClassifications = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogProductClassificationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogProductClassificationsResponses,\n PostAdminCatalogProductClassificationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-classifications\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /campaigns/sequences/:id/pause operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/:id/pause operation on email-marketing-sequence resource\n */\nexport const patchAdminCampaignsSequencesByIdPause = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCampaignsSequencesByIdPauseData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCampaignsSequencesByIdPauseResponses,\n PatchAdminCampaignsSequencesByIdPauseErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/{id}/pause\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /voice/sessions operation on voice_session resource\n *\n * /voice/sessions operation on voice_session resource\n */\nexport const getAdminVoiceSessions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminVoiceSessionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsResponses,\n GetAdminVoiceSessionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions\",\n ...options,\n });\n\n/**\n * Start a new voice session with LiveKit room provisioning\n *\n * Start a new voice session with LiveKit room provisioning\n */\nexport const postAdminVoiceSessions = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminVoiceSessionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminVoiceSessionsResponses,\n PostAdminVoiceSessionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch all chunks for a document sorted by chunk_index ascending; equivalent to read_by_document — use for JSON:API access via /ai/chunks/document/:document_id.\n *\n * Fetch all chunks for a document sorted by chunk_index ascending; equivalent to read_by_document — use for JSON:API access via /ai/chunks/document/:document_id.\n */\nexport const getAdminAiChunksDocumentByDocumentId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAiChunksDocumentByDocumentIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiChunksDocumentByDocumentIdResponses,\n GetAdminAiChunksDocumentByDocumentIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/chunks/document/{document_id}\",\n ...options,\n });\n\n/**\n * Activate a system message so it is visible to all authenticated users\n *\n * Activate a system message so it is visible to all authenticated users. Sets `is_active: true` and records `published_at` on first publish (preserved on subsequent re-activations).\n */\nexport const patchAdminSystemMessagesByIdPublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSystemMessagesByIdPublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSystemMessagesByIdPublishResponses,\n PatchAdminSystemMessagesByIdPublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}/publish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Generate A/B test subject line variants using AI\n *\n * Generate A/B test subject line variants using AI\n */\nexport const postAdminEmailMarketingCampaignsByIdOptimizeSubjects = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSubjectsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/optimize-subjects\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List active activities in a workspace with offset pagination\n *\n * List active activities in a workspace with offset pagination. Use instead of :read for workspace-scoped paginated listings.\n */\nexport const getAdminCrmActivitiesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmActivitiesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Get webhook configuration statistics\n *\n * Get webhook configuration statistics\n */\nexport const getAdminWebhookConfigsStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookConfigsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsStatsResponses,\n GetAdminWebhookConfigsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/stats\",\n ...options,\n });\n\n/**\n * /email/recipients/:id operation on email-recipient resource\n *\n * /email/recipients/:id operation on email-recipient resource\n */\nexport const deleteAdminEmailRecipientsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailRecipientsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailRecipientsByIdResponses,\n DeleteAdminEmailRecipientsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/recipients/{id}\",\n ...options,\n });\n\n/**\n * /email/recipients/:id operation on email-recipient resource\n *\n * /email/recipients/:id operation on email-recipient resource\n */\nexport const getAdminEmailRecipientsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailRecipientsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailRecipientsByIdResponses,\n GetAdminEmailRecipientsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/recipients/{id}\",\n ...options,\n });\n\n/**\n * List transcription results for a voice session\n *\n * List transcription results for a voice session\n */\nexport const getAdminVoiceTranscriptionResultsSessionBySessionId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminVoiceTranscriptionResultsSessionBySessionIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceTranscriptionResultsSessionBySessionIdResponses,\n GetAdminVoiceTranscriptionResultsSessionBySessionIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/transcription-results/session/{session_id}\",\n ...options,\n });\n\n/**\n * Fetch all permissions and apply any query filters supplied by the caller; use :by_id for single-record lookup by permission ID string.\n *\n * Fetch all permissions and apply any query filters supplied by the caller; use :by_id for single-record lookup by permission ID string.\n */\nexport const getAdminPermissionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPermissionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsByIdResponses,\n GetAdminPermissionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/{id}\",\n ...options,\n });\n\n/**\n * /isv/crm/channel-capture-config/:id operation on crm_channel_capture_config resource\n *\n * /isv/crm/channel-capture-config/:id operation on crm_channel_capture_config resource\n */\nexport const getAdminIsvCrmChannelCaptureConfigById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminIsvCrmChannelCaptureConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmChannelCaptureConfigByIdResponses,\n GetAdminIsvCrmChannelCaptureConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/channel-capture-config/{id}\",\n ...options,\n });\n\n/**\n * Update channel capture settings for a workspace\n *\n * Update channel capture settings for a workspace. Invalidates the 60-second CRM cache after the update so CaptureInteractionWorker picks up the new config.\n */\nexport const patchAdminIsvCrmChannelCaptureConfigById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmChannelCaptureConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmChannelCaptureConfigByIdResponses,\n PatchAdminIsvCrmChannelCaptureConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/channel-capture-config/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch both legs of a double-entry transaction by transaction_id\n *\n * Fetch both legs of a double-entry transaction by transaction_id. Returns the paired movements.\n */\nexport const getAdminCatalogStockMovementsTransactionByTransactionId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogStockMovementsTransactionByTransactionIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockMovementsTransactionByTransactionIdResponses,\n GetAdminCatalogStockMovementsTransactionByTransactionIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-movements/transaction/{transaction_id}\",\n ...options,\n });\n\n/**\n * Mark the notification method as verified by setting `verified_at` to the current timestamp\n *\n * Mark the notification method as verified by setting `verified_at` to the current timestamp. Call this after the user submits the code received via :send_verification.\n */\nexport const patchAdminNotificationMethodsByIdVerify = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminNotificationMethodsByIdVerifyData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdVerifyResponses,\n PatchAdminNotificationMethodsByIdVerifyErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}/verify\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /users operation on user resource\n *\n * /users operation on user resource\n */\nexport const getAdminUsers = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersResponses,\n GetAdminUsersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users\",\n ...options,\n });\n\n/**\n * Export thread with messages to JSON, Markdown, or plain text format\n *\n * Export thread with messages to JSON, Markdown, or plain text format\n */\nexport const postAdminThreadsByIdExport = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminThreadsByIdExportData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdExportResponses,\n PostAdminThreadsByIdExportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/export\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Archive a thread by setting `archived_at` to the current timestamp\n *\n * Archive a thread by setting `archived_at` to the current timestamp. Archived threads are hidden from the default list but remain readable. Use :unarchive to restore.\n */\nexport const patchAdminThreadsByIdArchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminThreadsByIdArchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminThreadsByIdArchiveResponses,\n PatchAdminThreadsByIdArchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/archive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Vector similarity search across document chunks using a generated embedding of the query\n *\n * Vector similarity search across document chunks using a generated embedding of the query. Results are ranked by cosine similarity. Use this for natural-language queries; use :search for keyword-based lookups.\n */\nexport const getAdminSearchSemantic = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchSemanticData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchSemanticResponses,\n GetAdminSearchSemanticErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/semantic\",\n ...options,\n });\n\n/**\n * List all transactions belonging to the current tenant, filtered to the actor's tenant\n * context\n *\n * List all transactions belonging to the current tenant, filtered to the actor's tenant\n * context. Use this for a tenant's transaction history page (subscriptions, top-ups, refunds).\n * Returns transactions in reverse-chronological order with status, amount, and operation type.\n * Requires Tenant Owner role.\n *\n */\nexport const getAdminTransactions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransactionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransactionsResponses,\n GetAdminTransactionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transactions\",\n ...options,\n });\n\n/**\n * Get usage breakdown by workspace\n *\n * Get usage breakdown by workspace\n */\nexport const getAdminWalletUsageBreakdown = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWalletUsageBreakdownData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletUsageBreakdownResponses,\n GetAdminWalletUsageBreakdownErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/usage-breakdown\",\n ...options,\n });\n\n/**\n * Get dashboard data for the user's tenant context\n *\n * Get dashboard data for the user's tenant context\n */\nexport const getAdminUsersMeDashboard = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeDashboardData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeDashboardResponses,\n GetAdminUsersMeDashboardErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/dashboard\",\n ...options,\n });\n\n/**\n * Get performance metrics for this version\n *\n * Get performance metrics for this version\n */\nexport const getAdminAgentVersionsByIdMetrics = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionsByIdMetricsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsByIdMetricsResponses,\n GetAdminAgentVersionsByIdMetricsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/metrics\",\n ...options,\n });\n\n/**\n * Reject a pending classification suggestion; sets status to :rejected with no cascading effects.\n *\n * Reject a pending classification suggestion; sets status to :rejected with no cascading effects.\n */\nexport const patchAdminCatalogClassificationSuggestionsByIdReject = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogClassificationSuggestionsByIdRejectData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogClassificationSuggestionsByIdRejectResponses,\n PatchAdminCatalogClassificationSuggestionsByIdRejectErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/{id}/reject\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Set which system fields are included in this version's schema (batch operation)\n *\n * Set which system fields are included in this version's schema (batch operation)\n */\nexport const postAdminAgentVersionsByIdSetSystemFields = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentVersionsByIdSetSystemFieldsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsByIdSetSystemFieldsResponses,\n PostAdminAgentVersionsByIdSetSystemFieldsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/set-system-fields\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /consent-records operation on consent_record resource\n *\n * /consent-records operation on consent_record resource\n */\nexport const getAdminConsentRecords = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConsentRecordsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConsentRecordsResponses,\n GetAdminConsentRecordsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records\",\n ...options,\n });\n\n/**\n * Record a new consent grant for a specific processing purpose (AI document processing, analytics, marketing, or third-party sharing)\n *\n * Record a new consent grant for a specific processing purpose (AI document processing, analytics, marketing, or third-party sharing). Sets status to `:granted` with the current timestamp. Use :withdraw when the user revokes consent.\n */\nexport const postAdminConsentRecords = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminConsentRecordsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConsentRecordsResponses,\n PostAdminConsentRecordsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /isv/crm/field-definitions/:id operation on crm_custom_field_definition resource\n *\n * /isv/crm/field-definitions/:id operation on crm_custom_field_definition resource\n */\nexport const deleteAdminIsvCrmFieldDefinitionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminIsvCrmFieldDefinitionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminIsvCrmFieldDefinitionsByIdResponses,\n DeleteAdminIsvCrmFieldDefinitionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions/{id}\",\n ...options,\n });\n\n/**\n * Update display metadata and validation rules for an existing custom field\n *\n * Update display metadata and validation rules for an existing custom field. Name and entity_type are immutable after creation.\n */\nexport const patchAdminIsvCrmFieldDefinitionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmFieldDefinitionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmFieldDefinitionsByIdResponses,\n PatchAdminIsvCrmFieldDefinitionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/campaigns operation on campaign resource\n *\n * /email-marketing/campaigns operation on campaign resource\n */\nexport const postAdminEmailMarketingCampaigns = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingCampaignsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsResponses,\n PostAdminEmailMarketingCampaignsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single version by ID, scoped to a specific entity (IDOR-safe)\n *\n * Fetch a single version by ID, scoped to a specific entity (IDOR-safe)\n */\nexport const getAdminCrmCustomEntitiesByEntityIdVersionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{entity_id}/versions/{id}\",\n ...options,\n });\n\n/**\n * Vector similarity search across messages using a generated embedding of the query string\n *\n * Vector similarity search across messages using a generated embedding of the query string. Returns up to `limit` messages ranked by cosine similarity (threshold > 0.6). Requires embeddings to have been generated via the async vectorization pipeline.\n */\nexport const getAdminMessagesSemanticSearch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminMessagesSemanticSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesSemanticSearchResponses,\n GetAdminMessagesSemanticSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/semantic-search\",\n ...options,\n });\n\n/**\n * /campaigns/sequence-steps/sequence/:sequence_id operation on email-marketing-sequence-step resource\n *\n * /campaigns/sequence-steps/sequence/:sequence_id operation on email-marketing-sequence-step resource\n */\nexport const getAdminCampaignsSequenceStepsSequenceBySequenceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCampaignsSequenceStepsSequenceBySequenceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCampaignsSequenceStepsSequenceBySequenceIdResponses,\n GetAdminCampaignsSequenceStepsSequenceBySequenceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequence-steps/sequence/{sequence_id}\",\n ...options,\n });\n\n/**\n * Return Meilisearch database size and per-index document counts\n *\n * Return Meilisearch database size and per-index document counts. Useful for capacity planning and verifying indexing completeness.\n */\nexport const getAdminSearchStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchStatsResponses,\n GetAdminSearchStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/stats\",\n ...options,\n });\n\n/**\n * List all currently granted (non-withdrawn) consents for a given user\n *\n * List all currently granted (non-withdrawn) consents for a given user. Use this to determine which processing activities the user has authorized before performing them.\n */\nexport const getAdminConsentRecordsActive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConsentRecordsActiveData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConsentRecordsActiveResponses,\n GetAdminConsentRecordsActiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records/active\",\n ...options,\n });\n\n/**\n * Add a stage to a pipeline with an explicit sort order, optional win probability, and forecast category\n *\n * Add a stage to a pipeline with an explicit sort order, optional win probability, and forecast category. Order must be unique within the pipeline.\n */\nexport const postAdminCrmPipelineStages = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmPipelineStagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmPipelineStagesResponses,\n PostAdminCrmPipelineStagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Add a predefined system field to this version's schema\n *\n * Add a predefined system field to this version's schema\n */\nexport const postAdminAgentVersionsByIdAddSystemField = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentVersionsByIdAddSystemFieldData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsByIdAddSystemFieldResponses,\n PostAdminAgentVersionsByIdAddSystemFieldErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/add-system-field\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all workspaces where the authenticated user has a direct workspace membership\n *\n * List all workspaces where the authenticated user has a direct workspace membership. Excludes archived workspaces. Use :read_shared for workspaces from external organizations.\n */\nexport const getAdminWorkspacesMine = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWorkspacesMineData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesMineResponses,\n GetAdminWorkspacesMineErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/mine\",\n ...options,\n });\n\n/**\n * /field-templates/:id operation on field_template resource\n *\n * /field-templates/:id operation on field_template resource\n */\nexport const deleteAdminFieldTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminFieldTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminFieldTemplatesByIdResponses,\n DeleteAdminFieldTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates/{id}\",\n ...options,\n });\n\n/**\n * /field-templates/:id operation on field_template resource\n *\n * /field-templates/:id operation on field_template resource\n */\nexport const getAdminFieldTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminFieldTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminFieldTemplatesByIdResponses,\n GetAdminFieldTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/field-templates/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single availability rule by ID\n *\n * Fetch a single availability rule by ID. Returns full rule with weekly_schedule and date_overrides embeds.\n */\nexport const getAdminSchedulingAvailabilityRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingAvailabilityRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingAvailabilityRulesByIdResponses,\n GetAdminSchedulingAvailabilityRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules/{id}\",\n ...options,\n });\n\n/**\n * Update an availability rule's schedule, date overrides, or active period\n *\n * Update an availability rule's schedule, date overrides, or active period. Use :set_weekly_hours/:add_date_override/:remove_date_override for structured schedule management via AI tools.\n */\nexport const patchAdminSchedulingAvailabilityRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingAvailabilityRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingAvailabilityRulesByIdResponses,\n PatchAdminSchedulingAvailabilityRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all subscription plans and add-ons available in the system\n *\n * List all subscription plans and add-ons available in the system. Use this to display a\n * plan selection UI or to enumerate all plans for management. Returns both base plans\n * (is_addon: false) and add-ons (is_addon: true), scoped to the calling application.\n *\n * Supports keyset and offset pagination. Readable by anyone (unauthenticated).\n *\n */\nexport const getAdminPlans = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPlansData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlansResponses,\n GetAdminPlansErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans\",\n ...options,\n });\n\n/**\n * Create a new subscription plan or add-on for an application\n *\n * Create a new subscription plan or add-on for an application. Sets pricing, monthly credit\n * allocation, storage limits, and billing interval. Use this during ISV onboarding or when\n * launching a new pricing tier. Scoped to an application via application_id (inferred from\n * the x-application-key header when not provided).\n *\n * Requires Platform Admin or Application Owner role. Returns the created plan record.\n *\n */\nexport const postAdminPlans = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPlansData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPlansResponses,\n PostAdminPlansErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Step 1 of 2 in the two-step upload flow\n *\n * Step 1 of 2 in the two-step upload flow. Reserves a presigned S3 PUT URL for the client to\n * upload the file directly to object storage. Credits are checked at this point (Layer 1 of\n * the three-layer credit defense). Hash validation normalizes the `file_hash` to prefixed\n * format (e.g., `blake3:...` or `sha256:...`).\n *\n * Call `:finish_upload` after the client has PUT the file to the returned URL to enqueue\n * processing. For deduplication, prefer `:find_or_begin_upload` which returns an existing\n * document instead of creating a new one if the content hash already exists.\n *\n * Side effects: creates a StorageFile record in the processing bucket, captures actor and\n * request context (IP, UA, request ID) for the audit trail.\n *\n * Returns the document struct with `status: :queued` and an `upload_url` calculation populated.\n *\n */\nexport const postAdminExtractionDocumentsBeginUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionDocumentsBeginUploadData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsBeginUploadResponses,\n PostAdminExtractionDocumentsBeginUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/begin-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Initiate OAuth flow for a connector type\n *\n * Initiate OAuth flow for a connector type. Returns auth_url and state.\n */\nexport const postAdminConnectorsOauthInitiate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsOauthInitiateData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsOauthInitiateResponses,\n PostAdminConnectorsOauthInitiateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/oauth/initiate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /campaigns/recipients/:id operation on email-marketing-recipient resource\n *\n * /campaigns/recipients/:id operation on email-marketing-recipient resource\n */\nexport const getAdminCampaignsRecipientsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCampaignsRecipientsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCampaignsRecipientsByIdResponses,\n GetAdminCampaignsRecipientsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/recipients/{id}\",\n ...options,\n });\n\n/**\n * /voice/sessions/:id operation on voice_session resource\n *\n * /voice/sessions/:id operation on voice_session resource\n */\nexport const deleteAdminVoiceSessionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminVoiceSessionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminVoiceSessionsByIdResponses,\n DeleteAdminVoiceSessionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/{id}\",\n ...options,\n });\n\n/**\n * /voice/sessions/:id operation on voice_session resource\n *\n * /voice/sessions/:id operation on voice_session resource\n */\nexport const getAdminVoiceSessionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminVoiceSessionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsByIdResponses,\n GetAdminVoiceSessionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/{id}\",\n ...options,\n });\n\n/**\n * Trigger a Meilisearch reindex for all or a specific subset of indexes (users, tenants, documents)\n *\n * Trigger a Meilisearch reindex for all or a specific subset of indexes (users, tenants, documents). Platform admin access only. No-op in test environment. Returns a status acknowledgement.\n */\nexport const postAdminSearchReindex = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSearchReindexData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchReindexResponses,\n PostAdminSearchReindexErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/reindex\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /webhook-configs/:id operation on webhook_config resource\n *\n * /webhook-configs/:id operation on webhook_config resource\n */\nexport const deleteAdminWebhookConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminWebhookConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminWebhookConfigsByIdResponses,\n DeleteAdminWebhookConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}\",\n ...options,\n });\n\n/**\n * /webhook-configs/:id operation on webhook_config resource\n *\n * /webhook-configs/:id operation on webhook_config resource\n */\nexport const getAdminWebhookConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsByIdResponses,\n GetAdminWebhookConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}\",\n ...options,\n });\n\n/**\n * Update webhook endpoint settings such as URL, subscribed events, and enabled state\n *\n * Update webhook endpoint settings such as URL, subscribed events, and enabled state. Use :rotate_secret instead to change the HMAC signing secret.\n */\nexport const patchAdminWebhookConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWebhookConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWebhookConfigsByIdResponses,\n PatchAdminWebhookConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Reschedule a booking by moving its linked Event to new_start_time/new_end_time\n *\n * Reschedule a booking by moving its linked Event to new_start_time/new_end_time. Propagates rescheduling to the Event (which validates for conflicts). Publishes EventRescheduled event.\n */\nexport const patchAdminSchedulingBookingsSchedulingBookingsByIdReschedule = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdRescheduleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/scheduling/bookings/{id}/reschedule\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Link a product variant to an option value (e.g., assign 'Red' to a specific variant)\n *\n * Link a product variant to an option value (e.g., assign 'Red' to a specific variant). Returns the created join record.\n */\nexport const postAdminCatalogVariantOptionValues = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogVariantOptionValuesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogVariantOptionValuesResponses,\n PostAdminCatalogVariantOptionValuesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/variant-option-values\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all pending reminders across all workspaces\n *\n * List all pending reminders across all workspaces. Used by ReminderWorker to find reminders due for delivery. No workspace scoping — called with system actor only.\n */\nexport const getAdminSchedulingReminders = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingRemindersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingRemindersResponses,\n GetAdminSchedulingRemindersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/reminders\",\n ...options,\n });\n\n/**\n * Create a scheduled reminder for an event participant\n *\n * Create a scheduled reminder for an event participant. scheduled_at must be precomputed (event.start_time - minutes_before). Auto-called by ScheduleReminders change on Event create. Returns the created Reminder with :pending status.\n */\nexport const postAdminSchedulingReminders = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingRemindersData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingRemindersResponses,\n PostAdminSchedulingRemindersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/reminders\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Admin-only email update\n *\n * Admin-only email update\n */\nexport const patchAdminUsersByIdAdminEmail = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersByIdAdminEmailData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdAdminEmailResponses,\n PatchAdminUsersByIdAdminEmailErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/admin/email\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Public entry point for semantic similarity search over training examples\n *\n * Public entry point for semantic similarity search over training examples. Delegates to\n * `:semantic_search` using the provided pre-computed embedding vector. Filters to the specified\n * agent, excludes examples from excluded documents, and returns up to `limit` results ordered\n * by cosine similarity (highest first).\n *\n * Used internally by the extraction pipeline to retrieve relevant few-shot examples.\n *\n */\nexport const postAdminTrainingExamplesSearch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTrainingExamplesSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesSearchResponses,\n PostAdminTrainingExamplesSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /accounts/:id/debit operation on account resource\n *\n * /accounts/:id/debit operation on account resource\n */\nexport const patchAdminAccountsByIdDebit = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminAccountsByIdDebitData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminAccountsByIdDebitResponses,\n PatchAdminAccountsByIdDebitErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/{id}/debit\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /catalog/price-suggestions/:id operation on catalog_price_suggestion resource\n *\n * /catalog/price-suggestions/:id operation on catalog_price_suggestion resource\n */\nexport const getAdminCatalogPriceSuggestionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogPriceSuggestionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceSuggestionsByIdResponses,\n GetAdminCatalogPriceSuggestionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/{id}\",\n ...options,\n });\n\n/**\n * /payment-methods/:id operation on payment_method resource\n *\n * /payment-methods/:id operation on payment_method resource\n */\nexport const deleteAdminPaymentMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminPaymentMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPaymentMethodsByIdResponses,\n DeleteAdminPaymentMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}\",\n ...options,\n });\n\n/**\n * /payment-methods/:id operation on payment_method resource\n *\n * /payment-methods/:id operation on payment_method resource\n */\nexport const getAdminPaymentMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPaymentMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPaymentMethodsByIdResponses,\n GetAdminPaymentMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}\",\n ...options,\n });\n\n/**\n * Update a saved payment method's nickname or default status\n *\n * Update a saved payment method's nickname or default status. Use this to rename a card\n * (e.g., \"Personal Visa\") or to mark it as the default payment method. When is_default is\n * set to true, all other payment methods for the same customer are automatically unset.\n *\n * Requires Tenant Owner role. Returns the updated payment method record.\n *\n */\nexport const patchAdminPaymentMethodsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPaymentMethodsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPaymentMethodsByIdResponses,\n PatchAdminPaymentMethodsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create an option type (e.g., Size, Color) for an application; shared across all tenants\n *\n * Create an option type (e.g., Size, Color) for an application; shared across all tenants. Returns the created option type.\n */\nexport const postAdminCatalogOptionTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogOptionTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogOptionTypesResponses,\n PostAdminCatalogOptionTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /subscriptions/:id operation on subscription resource\n *\n * /subscriptions/:id operation on subscription resource\n */\nexport const deleteAdminSubscriptionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminSubscriptionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSubscriptionsByIdResponses,\n DeleteAdminSubscriptionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}\",\n ...options,\n });\n\n/**\n * /subscriptions/:id operation on subscription resource\n *\n * /subscriptions/:id operation on subscription resource\n */\nexport const getAdminSubscriptionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSubscriptionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSubscriptionsByIdResponses,\n GetAdminSubscriptionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}\",\n ...options,\n });\n\n/**\n * /subscriptions/:id operation on subscription resource\n *\n * /subscriptions/:id operation on subscription resource\n */\nexport const patchAdminSubscriptionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSubscriptionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSubscriptionsByIdResponses,\n PatchAdminSubscriptionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /user-profiles/:id operation on user_profile resource\n *\n * /user-profiles/:id operation on user_profile resource\n */\nexport const deleteAdminUserProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminUserProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminUserProfilesByIdResponses,\n DeleteAdminUserProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}\",\n ...options,\n });\n\n/**\n * /user-profiles/:id operation on user_profile resource\n *\n * /user-profiles/:id operation on user_profile resource\n */\nexport const getAdminUserProfilesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUserProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUserProfilesByIdResponses,\n GetAdminUserProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}\",\n ...options,\n });\n\n/**\n * Update the user's display profile fields: name, avatar, bio, social links, and\n * raw preferences map\n *\n * Update the user's display profile fields: name, avatar, bio, social links, and\n * raw preferences map. Users can only update their own profile. Does not handle\n * ToS acceptance, welcome dismissal, or announcement dismissal — use the dedicated\n * :accept_tos, :dismiss_welcome, and :dismiss_announcement actions for those.\n *\n * Returns the updated UserProfile record.\n *\n */\nexport const patchAdminUserProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUserProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdResponses,\n PatchAdminUserProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get full details for a single recipe by Edamam recipe ID\n *\n * Get full details for a single recipe by Edamam recipe ID\n */\nexport const postAdminConnectorsByIdEdamamRecipesGet = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsByIdEdamamRecipesGetData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsByIdEdamamRecipesGetResponses,\n PostAdminConnectorsByIdEdamamRecipesGetErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}/edamam/recipes/get\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /voice/transcription-results/:id operation on voice_transcription_result resource\n *\n * /voice/transcription-results/:id operation on voice_transcription_result resource\n */\nexport const deleteAdminVoiceTranscriptionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminVoiceTranscriptionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminVoiceTranscriptionResultsByIdResponses,\n DeleteAdminVoiceTranscriptionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/transcription-results/{id}\",\n ...options,\n });\n\n/**\n * /voice/transcription-results/:id operation on voice_transcription_result resource\n *\n * /voice/transcription-results/:id operation on voice_transcription_result resource\n */\nexport const getAdminVoiceTranscriptionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminVoiceTranscriptionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceTranscriptionResultsByIdResponses,\n GetAdminVoiceTranscriptionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/transcription-results/{id}\",\n ...options,\n });\n\n/**\n * Correct or annotate a transcript's text, segments, or metadata.\n *\n * Correct or annotate a transcript's text, segments, or metadata.\n */\nexport const patchAdminVoiceTranscriptionResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminVoiceTranscriptionResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminVoiceTranscriptionResultsByIdResponses,\n PatchAdminVoiceTranscriptionResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/transcription-results/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /pricing-strategies operation on pricing_strategy resource\n *\n * /pricing-strategies operation on pricing_strategy resource\n */\nexport const getAdminPricingStrategies = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPricingStrategiesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingStrategiesResponses,\n GetAdminPricingStrategiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies\",\n ...options,\n });\n\n/**\n * /pricing-strategies operation on pricing_strategy resource\n *\n * /pricing-strategies operation on pricing_strategy resource\n */\nexport const postAdminPricingStrategies = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPricingStrategiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPricingStrategiesResponses,\n PostAdminPricingStrategiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get a document with its presigned view URL\n *\n * Get a document with its presigned view URL\n */\nexport const getAdminExtractionDocumentsByIdView = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsByIdViewData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsByIdViewResponses,\n GetAdminExtractionDocumentsByIdViewErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/view\",\n ...options,\n });\n\n/**\n * List or fetch API keys\n *\n * List or fetch API keys. Supports keyset and offset pagination. Returns keys\n * scoped to the actor — users see only their own keys, ISV owners see keys for\n * their application. Use :active to restrict to non-revoked keys, or :usage_stats\n * for tenant-scoped usage analytics.\n *\n */\nexport const getAdminApiKeys = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysResponses,\n GetAdminApiKeysErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys\",\n ...options,\n });\n\n/**\n * Create a new API key for the authenticated actor\n *\n * Create a new API key for the authenticated actor. The raw token value is returned\n * once in the generated_api_key calculation and never retrievable again. Key type\n * determines the prefix: :user → sk_tenant_, :server → sk_srv_, :application →\n * sk_app_, :system → sk_sys_. Application keys automatically receive all available\n * scopes. Server keys require at least one explicit scope and validate that the\n * creator can only delegate scopes they possess (scope delegation rule). A billing\n * liability account is created for the key after_action. Requires a valid\n * application context (x-application-key header or explicit application_id).\n *\n */\nexport const postAdminApiKeys = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminApiKeysData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminApiKeysResponses,\n PostAdminApiKeysErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Return typeahead suggestions for a query prefix\n *\n * Return typeahead suggestions for a query prefix. Requires at least 2 characters; returns an empty list for shorter inputs. Scoped to the current tenant.\n */\nexport const getAdminSearchSuggest = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchSuggestData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchSuggestResponses,\n GetAdminSearchSuggestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/suggest\",\n ...options,\n });\n\n/**\n * /extraction/config-enums/:id operation on config_enum resource\n *\n * /extraction/config-enums/:id operation on config_enum resource\n */\nexport const getAdminExtractionConfigEnumsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionConfigEnumsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionConfigEnumsByIdResponses,\n GetAdminExtractionConfigEnumsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums/{id}\",\n ...options,\n });\n\n/**\n * /extraction/config-enums/:id operation on config_enum resource\n *\n * /extraction/config-enums/:id operation on config_enum resource\n */\nexport const patchAdminExtractionConfigEnumsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionConfigEnumsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionConfigEnumsByIdResponses,\n PatchAdminExtractionConfigEnumsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a document and enqueue storage cleanup\n *\n * Soft-delete a document and enqueue storage cleanup. Sets `deleted_at` rather than removing\n * the database row, so the document is hidden from all standard reads but preserves the audit\n * trail. Use `:read_trashed` to query soft-deleted documents.\n *\n * Side effects: enqueues `CleanupDocument` Oban job to remove files from object storage\n * (queue/active/output/errors paths). Also marks any associated ingestion watcher claim as\n * `document_deleted` so the same file can be re-uploaded without a duplicate-claim error.\n *\n * Returns the soft-deleted document struct with `deleted_at` set.\n *\n */\nexport const deleteAdminExtractionDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminExtractionDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminExtractionDocumentsByIdResponses,\n DeleteAdminExtractionDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}\",\n ...options,\n });\n\n/**\n * Primary read for active (non-deleted) documents\n *\n * Primary read for active (non-deleted) documents. Excludes soft-deleted documents.\n * Use `:read_trashed` to list deleted documents, or `:list_by_workspace` for a workspace-scoped\n * listing with optional batch filtering.\n *\n */\nexport const getAdminExtractionDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsByIdResponses,\n GetAdminExtractionDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}\",\n ...options,\n });\n\n/**\n * /catalog/product-classifications/:id operation on catalog_product_classification resource\n *\n * /catalog/product-classifications/:id operation on catalog_product_classification resource\n */\nexport const deleteAdminCatalogProductClassificationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminCatalogProductClassificationsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogProductClassificationsByIdResponses,\n DeleteAdminCatalogProductClassificationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-classifications/{id}\",\n ...options,\n });\n\n/**\n * Purchase credits (Top-up)\n *\n * Purchase credits (Top-up)\n */\nexport const patchAdminWalletCredits = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWalletCreditsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletCreditsResponses,\n PatchAdminWalletCreditsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/credits\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List legal documents scoped to the current application context, including platform-level documents (null application_id) and application-specific overrides\n *\n * List legal documents scoped to the current application context, including platform-level documents (null application_id) and application-specific overrides. Use this action to show an ISV's custom legal documents alongside platform defaults.\n */\nexport const getAdminLegalDocumentsForApplication = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalDocumentsForApplicationData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsForApplicationResponses,\n GetAdminLegalDocumentsForApplicationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/for-application\",\n ...options,\n });\n\n/**\n * Look up a credit package by its unique slug within an application (e.g., \"starter-100\",\n * \"pro-500\")\n *\n * Look up a credit package by its unique slug within an application (e.g., \"starter-100\",\n * \"pro-500\"). Use this for direct deep-linking into a purchase flow. Use read_one when\n * you have the UUID. Returns a single package or an error if the slug is not found.\n *\n */\nexport const getAdminCreditPackagesSlugBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCreditPackagesSlugBySlugData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCreditPackagesSlugBySlugResponses,\n GetAdminCreditPackagesSlugBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages/slug/{slug}\",\n ...options,\n });\n\n/**\n * /accounts operation on account resource\n *\n * /accounts operation on account resource\n */\nexport const getAdminAccounts = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccountsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccountsResponses,\n GetAdminAccountsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts\",\n ...options,\n });\n\n/**\n * Get platform-wide storage statistics\n *\n * Get platform-wide storage statistics\n */\nexport const getAdminStorageStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminStorageStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageStatsResponses,\n GetAdminStorageStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage/stats\",\n ...options,\n });\n\n/**\n * Cancel a pending or running job; sets status to :cancelled with completed_at timestamp\n *\n * Cancel a pending or running job; sets status to :cancelled with completed_at timestamp. No content is collected after cancellation.\n */\nexport const patchAdminCrawlerJobsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerJobsByIdCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerJobsByIdCancelResponses,\n PatchAdminCrawlerJobsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /campaigns/sequences/:id/complete operation on email-marketing-sequence resource\n *\n * /campaigns/sequences/:id/complete operation on email-marketing-sequence resource\n */\nexport const patchAdminCampaignsSequencesByIdComplete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCampaignsSequencesByIdCompleteData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCampaignsSequencesByIdCompleteResponses,\n PatchAdminCampaignsSequencesByIdCompleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences/{id}/complete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get the latest extraction result for a document including partial (in-progress) results with per-field status\n *\n * Get the latest extraction result for a document including partial (in-progress) results with per-field status. Unlike get_by_document, this action skips FilterHiddenFields and always includes field_status and extraction metadata for progress tracking.\n */\nexport const getAdminExtractionResultsDocumentByDocumentIdPartial = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsDocumentByDocumentIdPartialData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsDocumentByDocumentIdPartialResponses,\n GetAdminExtractionResultsDocumentByDocumentIdPartialErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/document/{document_id}/partial\",\n ...options,\n });\n\n/**\n * /breach-incidents/:id operation on breach_incident resource\n *\n * /breach-incidents/:id operation on breach_incident resource\n */\nexport const getAdminBreachIncidentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminBreachIncidentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachIncidentsByIdResponses,\n GetAdminBreachIncidentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents/{id}\",\n ...options,\n });\n\n/**\n * List active deals in a workspace with offset pagination\n *\n * List active deals in a workspace with offset pagination. Use instead of :read for workspace-scoped paginated listings.\n */\nexport const getAdminCrmDealsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmDealsWorkspaceByWorkspaceIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmDealsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmDealsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Fetch a single event type by ID\n *\n * Fetch a single event type by ID. Returns full configuration including location embed, buffer times, capacity, and intake form schema.\n */\nexport const getAdminSchedulingEventTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingEventTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventTypesByIdResponses,\n GetAdminSchedulingEventTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types/{id}\",\n ...options,\n });\n\n/**\n * Update event type configuration including duration, buffers, location, capacity, and intake form\n *\n * Update event type configuration including duration, buffers, location, capacity, and intake form. Location data is denormalized into LocationEmbed on write. Re-indexes in Meilisearch.\n */\nexport const patchAdminSchedulingEventTypesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingEventTypesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingEventTypesByIdResponses,\n PatchAdminSchedulingEventTypesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all price lists for an application, ordered by priority\n *\n * List all price lists for an application, ordered by priority. Returns a paginated list.\n */\nexport const getAdminCatalogPriceListsApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogPriceListsApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceListsApplicationByApplicationIdResponses,\n GetAdminCatalogPriceListsApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/application/{application_id}\",\n ...options,\n });\n\n/**\n * /agents/:id/stats operation on agent_stats resource\n *\n * /agents/:id/stats operation on agent_stats resource\n */\nexport const getAdminAgentsByIdStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsByIdStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdStatsResponses,\n GetAdminAgentsByIdStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/stats\",\n ...options,\n });\n\n/**\n * List soft-deleted (trashed) documents\n *\n * List soft-deleted (trashed) documents\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashed = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdTrashedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/trashed\",\n ...options,\n });\n\n/**\n * /isv-settlements operation on isv_settlement resource\n *\n * /isv-settlements operation on isv_settlement resource\n */\nexport const getAdminIsvSettlements = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminIsvSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvSettlementsResponses,\n GetAdminIsvSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements\",\n ...options,\n });\n\n/**\n * /isv-settlements operation on isv_settlement resource\n *\n * /isv-settlements operation on isv_settlement resource\n */\nexport const postAdminIsvSettlements = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminIsvSettlementsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvSettlementsResponses,\n PostAdminIsvSettlementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-settlements\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Admin manually confirms user's email\n *\n * Admin manually confirms user's email\n */\nexport const patchAdminUsersByIdConfirmEmail = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersByIdConfirmEmailData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdConfirmEmailResponses,\n PatchAdminUsersByIdConfirmEmailErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/confirm-email\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List available events that can be subscribed to\n *\n * List available events that can be subscribed to\n */\nexport const getAdminWebhookConfigsByIdEvents = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookConfigsByIdEventsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsByIdEventsResponses,\n GetAdminWebhookConfigsByIdEventsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/events\",\n ...options,\n });\n\n/**\n * /email-marketing/templates operation on email-marketing-template resource\n *\n * /email-marketing/templates operation on email-marketing-template resource\n */\nexport const postAdminEmailMarketingTemplates = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingTemplatesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingTemplatesResponses,\n PostAdminEmailMarketingTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all ExtractionResults in a workspace, sorted newest first\n *\n * List all ExtractionResults in a workspace, sorted newest first. Useful for building a\n * workspace-level results dashboard. Hidden system fields are filtered.\n * Paginated: default 20, max 100 per page.\n *\n */\nexport const getAdminExtractionResultsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionResultsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Soft-delete an activity by setting deleted_at\n *\n * Soft-delete an activity by setting deleted_at. Excluded from standard reads after deletion. Publishes an ActivityDeleted event.\n */\nexport const deleteAdminCrmActivitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmActivitiesByIdResponses,\n DeleteAdminCrmActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single active activity by ID; excludes soft-deleted records.\n *\n * Fetch a single active activity by ID; excludes soft-deleted records.\n */\nexport const getAdminCrmActivitiesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmActivitiesByIdResponses,\n GetAdminCrmActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities/{id}\",\n ...options,\n });\n\n/**\n * Update the human verification status of a completed document\n *\n * Update the human verification status of a completed document. Used after a reviewer\n * has confirmed or partially verified extracted fields. Sets `verification_status` to\n * `:partially_verified` or `:fully_verified`, records the verifying user, and updates\n * `avg_confidence` to reflect the post-correction confidence.\n *\n * Called internally by `ExtractionResult.save_corrections` after applying field corrections.\n *\n */\nexport const patchAdminExtractionDocumentsByIdVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdVerificationData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdVerificationResponses,\n PatchAdminExtractionDocumentsByIdVerificationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/verification\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Allocate credits to the account associated with this Application\n *\n * Allocate credits to the account associated with this Application\n */\nexport const patchAdminApplicationsByIdAllocateCredits = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApplicationsByIdAllocateCreditsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByIdAllocateCreditsResponses,\n PatchAdminApplicationsByIdAllocateCreditsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}/allocate-credits\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /retention-policies/:id operation on retention_policy resource\n *\n * /retention-policies/:id operation on retention_policy resource\n */\nexport const deleteAdminRetentionPoliciesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminRetentionPoliciesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminRetentionPoliciesByIdResponses,\n DeleteAdminRetentionPoliciesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies/{id}\",\n ...options,\n });\n\n/**\n * /retention-policies/:id operation on retention_policy resource\n *\n * /retention-policies/:id operation on retention_policy resource\n */\nexport const getAdminRetentionPoliciesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminRetentionPoliciesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminRetentionPoliciesByIdResponses,\n GetAdminRetentionPoliciesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies/{id}\",\n ...options,\n });\n\n/**\n * Modify the retention period, expiry action, or enabled state of an existing policy\n *\n * Modify the retention period, expiry action, or enabled state of an existing policy. Changes take effect on the next daily enforcement run.\n */\nexport const patchAdminRetentionPoliciesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminRetentionPoliciesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminRetentionPoliciesByIdResponses,\n PatchAdminRetentionPoliciesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/sender-profiles/workspace/:workspace_id operation on email-marketing-sender-profile resource\n *\n * /email-marketing/sender-profiles/workspace/:workspace_id operation on email-marketing-sender-profile resource\n */\nexport const getAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * List contacts that have been soft-archived (deleted_at is set) in a workspace.\n *\n * List contacts that have been soft-archived (deleted_at is set) in a workspace.\n */\nexport const getAdminCrmContactsWorkspaceByWorkspaceIdArchived = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdArchivedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/workspace/{workspace_id}/archived\",\n ...options,\n });\n\n/**\n * /email-marketing/campaigns/workspace/:workspace_id operation on campaign resource\n *\n * /email-marketing/campaigns/workspace/:workspace_id operation on campaign resource\n */\nexport const getAdminEmailMarketingCampaignsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingCampaignsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Accept an invitation on behalf of a specific user (by user_id)\n *\n * Accept an invitation on behalf of a specific user (by user_id). Verifies that\n * the user's email matches the invitation email and the invitation is still pending\n * and not expired. Creates or upgrades tenant/workspace memberships using\n * highest-privilege-wins semantics. Logs an invitation_accepted audit event.\n * Use :accept for token-based acceptance by the authenticated actor, or\n * :accept_by_token for token-only flows (registration redirect).\n *\n */\nexport const patchAdminInvitationsByIdAcceptByUser = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdAcceptByUserData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdAcceptByUserResponses,\n PatchAdminInvitationsByIdAcceptByUserErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/accept-by-user\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Deactivate a system message, removing it from the live feed without deleting it\n *\n * Deactivate a system message, removing it from the live feed without deleting it. Use :publish to re-activate.\n */\nexport const patchAdminSystemMessagesByIdUnpublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSystemMessagesByIdUnpublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSystemMessagesByIdUnpublishResponses,\n PatchAdminSystemMessagesByIdUnpublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}/unpublish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Filter documents by workspace_id and processing status\n *\n * Filter documents by workspace_id and processing status\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatus =\n <ThrowOnError extends boolean = false>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/by-status/{status}\",\n ...options,\n });\n\n/**\n * Create a CRM sync configuration for a workspace+connector pair\n *\n * Create a CRM sync configuration for a workspace+connector pair. One config per\n * workspace+connector_instance_id. When absent, sync runs with default settings\n * (enabled, no PII scan, no auto-create contacts).\n *\n */\nexport const postAdminIsvCrmSyncConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmSyncConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmSyncConfigsResponses,\n PostAdminIsvCrmSyncConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /threads operation on thread resource\n *\n * /threads operation on thread resource\n */\nexport const getAdminThreads = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsResponses,\n GetAdminThreadsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads\",\n ...options,\n });\n\n/**\n * Create a new conversation thread scoped to a tenant, workspace, and user\n *\n * Create a new conversation thread scoped to a tenant, workspace, and user. Optionally set `previous_thread_id` to link to an expired thread for context carryover. Returns the new Thread resource.\n */\nexport const postAdminThreads = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminThreadsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsResponses,\n PostAdminThreadsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all custom entity types defined for an application\n *\n * List all custom entity types defined for an application. Use to discover available entity schemas for dynamic UI rendering.\n */\nexport const getAdminIsvCrmEntityTypesApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdResponses,\n GetAdminIsvCrmEntityTypesApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types/application/{application_id}\",\n ...options,\n });\n\n/**\n * Get activity feed for the user's tenant context\n *\n * Get activity feed for the user's tenant context\n */\nexport const getAdminUsersMeActivity = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeActivityData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeActivityResponses,\n GetAdminUsersMeActivityErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/activity\",\n ...options,\n });\n\n/**\n * /accounts/:id operation on account resource\n *\n * /accounts/:id operation on account resource\n */\nexport const getAdminAccountsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAccountsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccountsByIdResponses,\n GetAdminAccountsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/templates/workspace/:workspace_id operation on email-marketing-template resource\n *\n * /email-marketing/templates/workspace/:workspace_id operation on email-marketing-template resource\n */\nexport const getAdminEmailMarketingTemplatesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingTemplatesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /ai/messages operation on message resource\n *\n * /ai/messages operation on message resource\n */\nexport const getAdminAiMessages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAiMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiMessagesResponses,\n GetAdminAiMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/messages\",\n ...options,\n });\n\n/**\n * Append a new message turn (system, user, or assistant) to a Conversation\n *\n * Append a new message turn (system, user, or assistant) to a Conversation. Requires that the actor owns the parent conversation. Returns the created AiMessage.\n */\nexport const postAdminAiMessages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiMessagesResponses,\n PostAdminAiMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a payment method via direct proxy tokenization (S2S)\n *\n * Create a payment method via direct proxy tokenization (S2S)\n */\nexport const postAdminPaymentMethodsTokenize = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPaymentMethodsTokenizeData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPaymentMethodsTokenizeResponses,\n PostAdminPaymentMethodsTokenizeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/tokenize\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /sys/ai-config/:id operation on ai_config resource\n *\n * /sys/ai-config/:id operation on ai_config resource\n */\nexport const getAdminSysAiConfigById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSysAiConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSysAiConfigByIdResponses,\n GetAdminSysAiConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config/{id}\",\n ...options,\n });\n\n/**\n * Update platform or application-level LLM provider config (default model, embedding model, domain overrides, fallback chains, pricing floor); validates fallback chain structure\n *\n * Update platform or application-level LLM provider config (default model, embedding model, domain overrides, fallback chains, pricing floor); validates fallback chain structure. Returns the updated config.\n */\nexport const patchAdminSysAiConfigById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminSysAiConfigByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSysAiConfigByIdResponses,\n PatchAdminSysAiConfigByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a scoped, paginated activity feed for a tenant; optionally filter by workspace_id, activity_type, date range, or actor\n *\n * Fetch a scoped, paginated activity feed for a tenant; optionally filter by workspace_id, activity_type, date range, or actor. Sorted by created_at descending.\n */\nexport const getAdminAuditLogsActivity = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAuditLogsActivityData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditLogsActivityResponses,\n GetAdminAuditLogsActivityErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-logs/activity\",\n ...options,\n });\n\n/**\n * /email-marketing/templates/:id/restore operation on email-marketing-template resource\n *\n * /email-marketing/templates/:id/restore operation on email-marketing-template resource\n */\nexport const patchAdminEmailMarketingTemplatesByIdRestore = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdRestoreData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdRestoreResponses,\n PatchAdminEmailMarketingTemplatesByIdRestoreErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/restore\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Accept Terms of Service - merges with existing preferences\n *\n * Accept Terms of Service - merges with existing preferences\n */\nexport const patchAdminUserProfilesByIdAcceptTos = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUserProfilesByIdAcceptTosData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdAcceptTosResponses,\n PatchAdminUserProfilesByIdAcceptTosErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}/accept-tos\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Change the main plan for the wallet\n *\n * Change the main plan for the wallet\n */\nexport const patchAdminWalletPlan = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWalletPlanData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletPlanResponses,\n PatchAdminWalletPlanErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/plan\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /workspaces/:id/members operation on workspace-membership resource\n *\n * /workspaces/:id/members operation on workspace-membership resource\n */\nexport const getAdminWorkspacesByIdMembers = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspacesByIdMembersData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByIdMembersResponses,\n GetAdminWorkspacesByIdMembersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/members\",\n ...options,\n });\n\n/**\n * Get stats for the user's tenant context\n *\n * Get stats for the user's tenant context\n */\nexport const getAdminUsersMeStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeStatsResponses,\n GetAdminUsersMeStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/stats\",\n ...options,\n });\n\n/**\n * Cancel a pending invitation by setting its status to :revoked\n *\n * Cancel a pending invitation by setting its status to :revoked. Only the original\n * inviter or the tenant owner can revoke. Logs an invitation_revoked audit event.\n * The token becomes invalid immediately. Use :expire for system-driven expiration.\n *\n */\nexport const patchAdminInvitationsByIdRevoke = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdRevokeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdRevokeResponses,\n PatchAdminInvitationsByIdRevokeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/revoke\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/recipients operation on email-recipient resource\n *\n * /email/recipients operation on email-recipient resource\n */\nexport const postAdminEmailRecipients = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminEmailRecipientsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailRecipientsResponses,\n PostAdminEmailRecipientsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/recipients\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete a user account\n *\n * Permanently delete a user account. Cascades destruction of: owned tenants (which\n * in turn destroy their workspaces, applications, API keys, and billing accounts),\n * the user profile, user-owned API keys, all tenant memberships, all tokens, all\n * workspace memberships, notification preferences, and audit logs where the user was\n * the actor. Finally deletes the user row. Restricted to platform admins only.\n *\n */\nexport const deleteAdminUsersById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminUsersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminUsersByIdResponses,\n DeleteAdminUsersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}\",\n ...options,\n });\n\n/**\n * /users/:id operation on user resource\n *\n * /users/:id operation on user resource\n */\nexport const getAdminUsersById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersByIdResponses,\n GetAdminUsersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}\",\n ...options,\n });\n\n/**\n * Disable multiple webhook configs by ID in a single call\n *\n * Disable multiple webhook configs by ID in a single call. Only configs the actor is authorized to update are affected; returns `{success: true, count: N}` indicating how many were disabled.\n */\nexport const postAdminWebhookConfigsBulkDisable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsBulkDisableData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsBulkDisableResponses,\n PostAdminWebhookConfigsBulkDisableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/bulk-disable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /breach-notifications/:id operation on breach_notification resource\n *\n * /breach-notifications/:id operation on breach_notification resource\n */\nexport const getAdminBreachNotificationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminBreachNotificationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachNotificationsByIdResponses,\n GetAdminBreachNotificationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-notifications/{id}\",\n ...options,\n });\n\n/**\n * /legal-documents operation on legal_document resource\n *\n * /legal-documents operation on legal_document resource\n */\nexport const getAdminLegalDocuments = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLegalDocumentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsResponses,\n GetAdminLegalDocumentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents\",\n ...options,\n });\n\n/**\n * Create a new versioned legal document (Terms of Service, Privacy Policy, BAA, DPA, or SCC)\n *\n * Create a new versioned legal document (Terms of Service, Privacy Policy, BAA, DPA, or SCC).\n * Setting `is_active: true` at creation time automatically records `published_at`. Use :publish\n * after drafting to activate with side effects (cache invalidation, user notification job).\n *\n */\nexport const postAdminLegalDocuments = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminLegalDocumentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminLegalDocumentsResponses,\n PostAdminLegalDocumentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /agents/:id/usage operation on agent_usage resource\n *\n * /agents/:id/usage operation on agent_usage resource\n */\nexport const getAdminAgentsByIdUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsByIdUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdUsageResponses,\n GetAdminAgentsByIdUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/usage\",\n ...options,\n });\n\n/**\n * /email-marketing/generated-emails/:id/schedule operation on email-marketing-generated-email resource\n *\n * /email-marketing/generated-emails/:id/schedule operation on email-marketing-generated-email resource\n */\nexport const patchAdminEmailMarketingGeneratedEmailsByIdSchedule = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdScheduleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}/schedule\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /catalog/stock-locations/:id operation on catalog_stock_location resource\n *\n * /catalog/stock-locations/:id operation on catalog_stock_location resource\n */\nexport const getAdminCatalogStockLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogStockLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockLocationsByIdResponses,\n GetAdminCatalogStockLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations/{id}\",\n ...options,\n });\n\n/**\n * Update a location's name, address, default flag, status, or valuation method\n *\n * Update a location's name, address, default flag, status, or valuation method. Returns the updated location.\n */\nexport const patchAdminCatalogStockLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogStockLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogStockLocationsByIdResponses,\n PatchAdminCatalogStockLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/tracking-events/:id operation on email-tracking-event resource\n *\n * /email/tracking-events/:id operation on email-tracking-event resource\n */\nexport const getAdminEmailTrackingEventsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailTrackingEventsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailTrackingEventsByIdResponses,\n GetAdminEmailTrackingEventsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/tracking-events/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/sender-profiles/:id operation on email-marketing-sender-profile resource\n *\n * /email-marketing/sender-profiles/:id operation on email-marketing-sender-profile resource\n */\nexport const deleteAdminEmailMarketingSenderProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminEmailMarketingSenderProfilesByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingSenderProfilesByIdResponses,\n DeleteAdminEmailMarketingSenderProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/sender-profiles/:id operation on email-marketing-sender-profile resource\n *\n * /email-marketing/sender-profiles/:id operation on email-marketing-sender-profile resource\n */\nexport const getAdminEmailMarketingSenderProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingSenderProfilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingSenderProfilesByIdResponses,\n GetAdminEmailMarketingSenderProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/sender-profiles/:id operation on email-marketing-sender-profile resource\n *\n * /email-marketing/sender-profiles/:id operation on email-marketing-sender-profile resource\n */\nexport const patchAdminEmailMarketingSenderProfilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSenderProfilesByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSenderProfilesByIdResponses,\n PatchAdminEmailMarketingSenderProfilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /catalog/stock-records/:id operation on catalog_stock_record resource\n *\n * /catalog/stock-records/:id operation on catalog_stock_record resource\n */\nexport const getAdminCatalogStockRecordsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogStockRecordsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockRecordsByIdResponses,\n GetAdminCatalogStockRecordsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-records/{id}\",\n ...options,\n });\n\n/**\n * Deactivate a legal document without deleting it\n *\n * Deactivate a legal document without deleting it. Invalidates the RequireLegalAcceptance cache so the plug re-evaluates which document users must accept.\n */\nexport const patchAdminLegalDocumentsByIdUnpublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminLegalDocumentsByIdUnpublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminLegalDocumentsByIdUnpublishResponses,\n PatchAdminLegalDocumentsByIdUnpublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}/unpublish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /legal-acceptances/:id operation on legal_acceptance resource\n *\n * /legal-acceptances/:id operation on legal_acceptance resource\n */\nexport const getAdminLegalAcceptancesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalAcceptancesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalAcceptancesByIdResponses,\n GetAdminLegalAcceptancesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-acceptances/{id}\",\n ...options,\n });\n\n/**\n * Get a Fullscript embed session grant token for the prescribing widget\n *\n * Get a Fullscript embed session grant token for the prescribing widget\n */\nexport const postAdminConnectorsFullscriptSessionGrant = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsFullscriptSessionGrantData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsFullscriptSessionGrantResponses,\n PostAdminConnectorsFullscriptSessionGrantErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/fullscript/session-grant\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /pricing-rules/:id operation on pricing_rule resource\n *\n * /pricing-rules/:id operation on pricing_rule resource\n */\nexport const getAdminPricingRulesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPricingRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingRulesByIdResponses,\n GetAdminPricingRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules/{id}\",\n ...options,\n });\n\n/**\n * /pricing-rules/:id operation on pricing_rule resource\n *\n * /pricing-rules/:id operation on pricing_rule resource\n */\nexport const patchAdminPricingRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPricingRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPricingRulesByIdResponses,\n PatchAdminPricingRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get daily credit usage history\n *\n * Get daily credit usage history\n */\nexport const getAdminWalletUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWalletUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWalletUsageResponses,\n GetAdminWalletUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/usage\",\n ...options,\n });\n\n/**\n * /email/inclusions operation on email-inclusion resource\n *\n * /email/inclusions operation on email-inclusion resource\n */\nexport const postAdminEmailInclusions = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminEmailInclusionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailInclusionsResponses,\n PostAdminEmailInclusionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/inclusions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /applications/:application_id/email-templates/:slug operation on email_template resource\n *\n * /applications/:application_id/email-templates/:slug operation on email_template resource\n */\nexport const deleteAdminApplicationsByApplicationIdEmailTemplatesBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n DeleteAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}\",\n ...options,\n });\n\n/**\n * Fetch a single email template by its slug within the given application\n *\n * Fetch a single email template by its slug within the given application. Returns the template for rendering or editing; use :preview to render it with sample data.\n */\nexport const getAdminApplicationsByApplicationIdEmailTemplatesBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}\",\n ...options,\n });\n\n/**\n * Update the display name, subject, body, branding color, or enabled state of an existing template\n *\n * Update the display name, subject, body, branding color, or enabled state of an existing template. Works for both system and custom templates; the slug cannot be changed after creation.\n */\nexport const patchAdminApplicationsByApplicationIdEmailTemplatesBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugResponses,\n PatchAdminApplicationsByApplicationIdEmailTemplatesBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Run a filtered semantic search with additional constraints on document type, date range, or specific workspace IDs; use when basic search results need to be scoped to a subset of the tenant's content.\n *\n * Run a filtered semantic search with additional constraints on document type, date range, or specific workspace IDs; use when basic search results need to be scoped to a subset of the tenant's content.\n */\nexport const postAdminAiSearchAdvanced = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiSearchAdvancedData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiSearchAdvancedResponses,\n PostAdminAiSearchAdvancedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/search/advanced\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Return a per-action count for a tenant's audit logs\n *\n * Return a per-action count for a tenant's audit logs. Optionally scoped to a workspace.\n */\nexport const getAdminAuditLogsCountByAction = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAuditLogsCountByActionData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditLogsCountByActionResponses,\n GetAdminAuditLogsCountByActionErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-logs/count-by-action\",\n ...options,\n });\n\n/**\n * Update workspace storage settings - tenant admin/owner only\n *\n * Update workspace storage settings - tenant admin/owner only\n */\nexport const patchAdminWorkspacesByIdStorageSettings = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWorkspacesByIdStorageSettingsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdStorageSettingsResponses,\n PatchAdminWorkspacesByIdStorageSettingsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/storage-settings\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Make a legal document live\n *\n * Make a legal document live. Sets `is_active: true`, records `published_at` and `published_by_user_id`, invalidates the RequireLegalAcceptance cache, and enqueues a NotifyTosUpdate Oban job to notify affected users.\n */\nexport const patchAdminLegalDocumentsByIdPublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminLegalDocumentsByIdPublishData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminLegalDocumentsByIdPublishResponses,\n PatchAdminLegalDocumentsByIdPublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}/publish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Execute multiple search queries in a single request and return the combined results\n *\n * Execute multiple search queries in a single request and return the combined results. Useful for populating dashboard sections with different query terms simultaneously.\n */\nexport const postAdminSearchBatch = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSearchBatchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchBatchResponses,\n PostAdminSearchBatchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/batch\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a stock location (warehouse, store, drop-ship, etc.) in a workspace; enforces max_stock_locations quota\n *\n * Create a stock location (warehouse, store, drop-ship, etc.) in a workspace; enforces max_stock_locations quota. Returns the created location.\n */\nexport const postAdminCatalogStockLocations = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogStockLocationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogStockLocationsResponses,\n PostAdminCatalogStockLocationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-locations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all batches for a workspace, unfiltered and unpaginated\n *\n * List all batches for a workspace, unfiltered and unpaginated. Use this to populate a batch picker or dashboard.\n */\nexport const getAdminExtractionBatchesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdResponses,\n GetAdminExtractionBatchesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Fork a thread by cloning it with all its messages\n *\n * Fork a thread by cloning it with all its messages\n */\nexport const postAdminThreadsByIdFork = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminThreadsByIdForkData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdForkResponses,\n PostAdminThreadsByIdForkErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/fork\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/generated-emails/:id operation on email-marketing-generated-email resource\n *\n * /email-marketing/generated-emails/:id operation on email-marketing-generated-email resource\n */\nexport const getAdminEmailMarketingGeneratedEmailsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingGeneratedEmailsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingGeneratedEmailsByIdResponses,\n GetAdminEmailMarketingGeneratedEmailsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/generated-emails/:id operation on email-marketing-generated-email resource\n *\n * /email-marketing/generated-emails/:id operation on email-marketing-generated-email resource\n */\nexport const patchAdminEmailMarketingGeneratedEmailsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all pending invitations addressed to the authenticated actor's email\n *\n * List all pending invitations addressed to the authenticated actor's email.\n * Always uses the actor's identity for scoping regardless of user_id argument\n * to prevent data leakage. Returns an empty list if the actor is not found or\n * has no pending invitations.\n *\n */\nexport const getAdminInvitationsMe = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminInvitationsMeData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminInvitationsMeResponses,\n GetAdminInvitationsMeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/me\",\n ...options,\n });\n\n/**\n * /scan-results operation on scan_result resource\n *\n * /scan-results operation on scan_result resource\n */\nexport const getAdminScanResults = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminScanResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminScanResultsResponses,\n GetAdminScanResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scan-results\",\n ...options,\n });\n\n/**\n * /connectors/credentials operation on credential resource\n *\n * /connectors/credentials operation on credential resource\n */\nexport const getAdminConnectorsCredentials = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConnectorsCredentialsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsCredentialsResponses,\n GetAdminConnectorsCredentialsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/credentials\",\n ...options,\n });\n\n/**\n * /notification-logs operation on notification_log resource\n *\n * /notification-logs operation on notification_log resource\n */\nexport const getAdminNotificationLogs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminNotificationLogsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationLogsResponses,\n GetAdminNotificationLogsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-logs\",\n ...options,\n });\n\n/**\n * List all option types for an application ordered by position\n *\n * List all option types for an application ordered by position. Returns a paginated list.\n */\nexport const getAdminCatalogOptionTypesApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogOptionTypesApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionTypesApplicationByApplicationIdResponses,\n GetAdminCatalogOptionTypesApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-types/application/{application_id}\",\n ...options,\n });\n\n/**\n * List AgentVersions, optionally filtered to a specific agent\n *\n * List AgentVersions, optionally filtered to a specific agent. Includes all versions regardless of active or draft status.\n */\nexport const getAdminAgentVersions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionsResponses,\n GetAdminAgentVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions\",\n ...options,\n });\n\n/**\n * Create a new AgentVersion snapshot\n *\n * Create a new AgentVersion snapshot. Accepts the schema fields, prompt template, version\n * number, and optional parent version for lineage tracking. New versions are created with\n * `is_active: false` — call `:activate` (via `AgentVersion.activate`) or\n * `Agent.activate_schema_version` to make this version live.\n *\n * Draft versions can be created with `is_draft: true` (used by `Agent.get_or_create_draft`).\n * Cache invalidation for the schema cache is handled via the `VersionMutated` event.\n *\n * Returns the created version with `is_active: false`.\n *\n */\nexport const postAdminAgentVersions = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsResponses,\n PostAdminAgentVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all voice sessions in a workspace (ISV admin)\n *\n * List all voice sessions in a workspace (ISV admin)\n */\nexport const getAdminVoiceSessionsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdResponses,\n GetAdminVoiceSessionsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /campaigns/recipients/campaign/:campaign_id operation on email-marketing-recipient resource\n *\n * /campaigns/recipients/campaign/:campaign_id operation on email-marketing-recipient resource\n */\nexport const getAdminCampaignsRecipientsCampaignByCampaignId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCampaignsRecipientsCampaignByCampaignIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCampaignsRecipientsCampaignByCampaignIdResponses,\n GetAdminCampaignsRecipientsCampaignByCampaignIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/recipients/campaign/{campaign_id}\",\n ...options,\n });\n\n/**\n * Look up a pending, non-expired invitation by its raw token\n *\n * Look up a pending, non-expired invitation by its raw token. Hashes the token\n * before querying so the raw value is never stored. Returns nil if the token is\n * invalid, already used, or expired. Used by invitation acceptance flows to display\n * invitation details before the user commits.\n *\n */\nexport const getAdminInvitationsConsumeByToken = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminInvitationsConsumeByTokenData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminInvitationsConsumeByTokenResponses,\n GetAdminInvitationsConsumeByTokenErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/consume/{token}\",\n ...options,\n });\n\n/**\n * Full-text keyword search via Meilisearch across users, tenants, and documents\n *\n * Full-text keyword search via Meilisearch across users, tenants, and documents. Non-admin actors are silently restricted to tenant scope regardless of the `scope` argument. Returns a single result struct with `users`, `tenants`, and `documents` arrays.\n */\nexport const getAdminSearch = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchResponses,\n GetAdminSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search\",\n ...options,\n });\n\n/**\n * Fetch aggregate statistics for the semantic cache (platform admin only)\n *\n * Fetch aggregate statistics for the semantic cache (platform admin only). Returns a single summary record.\n */\nexport const getAdminSysSemanticCacheById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSysSemanticCacheByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSysSemanticCacheByIdResponses,\n GetAdminSysSemanticCacheByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/semantic-cache/{id}\",\n ...options,\n });\n\n/**\n * /balances operation on balance resource\n *\n * /balances operation on balance resource\n */\nexport const getAdminBalances = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBalancesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBalancesResponses,\n GetAdminBalancesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/balances\",\n ...options,\n });\n\n/**\n * /email-marketing/unsubscribers/:id operation on email-unsubscriber resource\n *\n * /email-marketing/unsubscribers/:id operation on email-unsubscriber resource\n */\nexport const getAdminEmailMarketingUnsubscribersById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingUnsubscribersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingUnsubscribersByIdResponses,\n GetAdminEmailMarketingUnsubscribersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/unsubscribers/{id}\",\n ...options,\n });\n\n/**\n * /notification-logs/:id operation on notification_log resource\n *\n * /notification-logs/:id operation on notification_log resource\n */\nexport const getAdminNotificationLogsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationLogsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationLogsByIdResponses,\n GetAdminNotificationLogsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-logs/{id}\",\n ...options,\n });\n\n/**\n * /ledger/:id operation on ledger resource\n *\n * /ledger/:id operation on ledger resource\n */\nexport const getAdminLedgerById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLedgerByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLedgerByIdResponses,\n GetAdminLedgerByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ledger/{id}\",\n ...options,\n });\n\n/**\n * /email/template-versions/:template_id/versions/:version_number operation on email-template-version resource\n *\n * /email/template-versions/:template_id/versions/:version_number operation on email-template-version resource\n */\nexport const getAdminEmailTemplateVersionsByTemplateIdVersionsByVersionNumber =\n <ThrowOnError extends boolean = false>(\n options: Options<\n GetAdminEmailTemplateVersionsByTemplateIdVersionsByVersionNumberData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).get<\n GetAdminEmailTemplateVersionsByTemplateIdVersionsByVersionNumberResponses,\n GetAdminEmailTemplateVersionsByTemplateIdVersionsByVersionNumberErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/template-versions/{template_id}/versions/{version_number}\",\n ...options,\n });\n\n/**\n * Predict optimal send times per recipient using AI\n *\n * Predict optimal send times per recipient using AI\n */\nexport const postAdminEmailMarketingCampaignsByIdOptimizeSendTimes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesResponses,\n PostAdminEmailMarketingCampaignsByIdOptimizeSendTimesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/optimize-send-times\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Platform Admin action to register a new ISV (User + Tenant + App)\n *\n * Platform Admin action to register a new ISV (User + Tenant + App)\n */\nexport const postAdminUsersRegisterIsv = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUsersRegisterIsvData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersRegisterIsvResponses,\n PostAdminUsersRegisterIsvErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/register-isv\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Reject a pending price suggestion; sets status to :rejected with no cascading effects.\n *\n * Reject a pending price suggestion; sets status to :rejected with no cascading effects.\n */\nexport const patchAdminCatalogPriceSuggestionsByIdReject = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminCatalogPriceSuggestionsByIdRejectData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceSuggestionsByIdRejectResponses,\n PatchAdminCatalogPriceSuggestionsByIdRejectErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-suggestions/{id}/reject\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /accounts/by-tenant/:tenant_id operation on account resource\n *\n * /accounts/by-tenant/:tenant_id operation on account resource\n */\nexport const getAdminAccountsByTenantByTenantId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAccountsByTenantByTenantIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAccountsByTenantByTenantIdResponses,\n GetAdminAccountsByTenantByTenantIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/accounts/by-tenant/{tenant_id}\",\n ...options,\n });\n\n/**\n * Create a named price list for an application with a strategy (fixed, percentage_discount, or tiered)\n *\n * Create a named price list for an application with a strategy (fixed, percentage_discount, or tiered). Returns the created price list.\n */\nexport const postAdminCatalogPriceLists = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogPriceListsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogPriceListsResponses,\n PostAdminCatalogPriceListsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/outbound-emails operation on email-outbound-email resource\n *\n * /email/outbound-emails operation on email-outbound-email resource\n */\nexport const postAdminEmailOutboundEmails = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailOutboundEmailsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailOutboundEmailsResponses,\n PostAdminEmailOutboundEmailsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /workspaces/:workspace_id/extraction/:document_id/mapping operation on field_mapping_result resource\n *\n * /workspaces/:workspace_id/extraction/:document_id/mapping operation on field_mapping_result resource\n */\nexport const getAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/{document_id}/mapping\",\n ...options,\n });\n\n/**\n * /workspaces/:workspace_id/extraction/:document_id/mapping operation on field_mapping_confirmation resource\n *\n * /workspaces/:workspace_id/extraction/:document_id/mapping operation on field_mapping_confirmation resource\n */\nexport const postAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMapping = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionByDocumentIdMappingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/{document_id}/mapping\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /tenants/:tenant_id/document_stats operation on tenant_document_stats resource\n *\n * /tenants/:tenant_id/document_stats operation on tenant_document_stats resource\n */\nexport const getAdminTenantsByTenantIdDocumentStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantsByTenantIdDocumentStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByTenantIdDocumentStatsResponses,\n GetAdminTenantsByTenantIdDocumentStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{tenant_id}/document_stats\",\n ...options,\n });\n\n/**\n * List all stock records at a location\n *\n * List all stock records at a location. Returns a paginated list with quantity_available calculation.\n */\nexport const getAdminCatalogStockRecordsLocationByStockLocationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogStockRecordsLocationByStockLocationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockRecordsLocationByStockLocationIdResponses,\n GetAdminCatalogStockRecordsLocationByStockLocationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-records/location/{stock_location_id}\",\n ...options,\n });\n\n/**\n * Return token usage summary analytics for the caller's tenant; useful for quota monitoring and capacity planning.\n *\n * Return token usage summary analytics for the caller's tenant; useful for quota monitoring and capacity planning.\n */\nexport const getAdminLlmAnalyticsUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsUsageResponses,\n GetAdminLlmAnalyticsUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/usage\",\n ...options,\n });\n\n/**\n * /extraction/documents/bulk-reprocess operation on bulk_reprocess_result resource\n *\n * /extraction/documents/bulk-reprocess operation on bulk_reprocess_result resource\n */\nexport const postAdminExtractionDocumentsBulkReprocess = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionDocumentsBulkReprocessData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsBulkReprocessResponses,\n PostAdminExtractionDocumentsBulkReprocessErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/bulk-reprocess\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/campaigns/:id/generate-emails operation on campaign resource\n *\n * /email-marketing/campaigns/:id/generate-emails operation on campaign resource\n */\nexport const postAdminEmailMarketingCampaignsByIdGenerateEmails = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsResponses,\n PostAdminEmailMarketingCampaignsByIdGenerateEmailsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/generate-emails\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/outbound-emails/workspace/:workspace_id operation on email-outbound-email resource\n *\n * /email/outbound-emails/workspace/:workspace_id operation on email-outbound-email resource\n */\nexport const getAdminEmailOutboundEmailsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdResponses,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Fetch a single bucket with the storage_used calculation (total bytes across all workspace files in this bucket).\n *\n * Fetch a single bucket with the storage_used calculation (total bytes across all workspace files in this bucket).\n */\nexport const getAdminBucketsByIdStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsByIdStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsByIdStatsResponses,\n GetAdminBucketsByIdStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}/stats\",\n ...options,\n });\n\n/**\n * Look up a single user by their email address (case-insensitive)\n *\n * Look up a single user by their email address (case-insensitive). Restricted to\n * platform admins — use :me for authenticated self-lookup. Returns a single user\n * or nil; never raises on not-found.\n *\n */\nexport const getAdminUsersByEmail = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersByEmailData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersByEmailResponses,\n GetAdminUsersByEmailErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/by-email\",\n ...options,\n });\n\n/**\n * Return the names of all configured Meilisearch indexes\n *\n * Return the names of all configured Meilisearch indexes. Platform admin access only.\n */\nexport const getAdminSearchIndexes = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchIndexesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchIndexesResponses,\n GetAdminSearchIndexesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/indexes\",\n ...options,\n });\n\n/**\n * /crawler/results/:id operation on crawler_result resource\n *\n * /crawler/results/:id operation on crawler_result resource\n */\nexport const getAdminCrawlerResultsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerResultsByIdResponses,\n GetAdminCrawlerResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/results/{id}\",\n ...options,\n });\n\n/**\n * End a voice session and release the LiveKit room\n *\n * End a voice session and release the LiveKit room\n */\nexport const patchAdminVoiceSessionsByIdStop = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminVoiceSessionsByIdStopData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminVoiceSessionsByIdStopResponses,\n PatchAdminVoiceSessionsByIdStopErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/{id}/stop\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/sender-profiles/:id/set-default operation on email-marketing-sender-profile resource\n *\n * /email-marketing/sender-profiles/:id/set-default operation on email-marketing-sender-profile resource\n */\nexport const patchAdminEmailMarketingSenderProfilesByIdSetDefault = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSenderProfilesByIdSetDefaultData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSenderProfilesByIdSetDefaultResponses,\n PatchAdminEmailMarketingSenderProfilesByIdSetDefaultErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}/set-default\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Delete a training example belonging to this agent\n *\n * Delete a training example belonging to this agent\n */\nexport const deleteAdminAgentsByIdTrainingExamplesByExampleId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdResponses,\n DeleteAdminAgentsByIdTrainingExamplesByExampleIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/training-examples/{example_id}\",\n ...options,\n });\n\n/**\n * Import an agent from a JSON payload produced by `:export`\n *\n * Import an agent from a JSON payload produced by `:export`. Creates the agent record with\n * name, description, domain, and workspace from the payload, then bulk-creates all embedded\n * training examples. Uses the `:create` action internally (including `CreateInitialVersion`),\n * then overwrites the schema from the exported `schema_definition`.\n *\n * Use `:export` to produce the importable payload. Returns the created agent struct.\n *\n */\nexport const postAdminAgentsImport = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsImportData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsImportResponses,\n PostAdminAgentsImportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/import\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Primary read for extraction results\n *\n * Primary read for extraction results. Filters hidden system fields (e.g., `_ip_address`,\n * `_llm_model`) from the response via `FilterHiddenFields`. Use `:read_one` for single-record\n * JSON:API GET, `:get_by_document` to fetch the latest result for a document, or\n * `:list_by_document` for full history.\n *\n */\nexport const getAdminExtractionResults = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminExtractionResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsResponses,\n GetAdminExtractionResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results\",\n ...options,\n });\n\n/**\n * Aggregate LLM usage and cost statistics optionally filtered by a date range; returns a single summary record.\n *\n * Aggregate LLM usage and cost statistics optionally filtered by a date range; returns a single summary record.\n */\nexport const getAdminLlmAnalyticsSummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLlmAnalyticsSummaryData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsSummaryResponses,\n GetAdminLlmAnalyticsSummaryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/summary\",\n ...options,\n });\n\n/**\n * Generate a new `whsec_`-prefixed HMAC secret for this webhook, invalidating the previous secret immediately\n *\n * Generate a new `whsec_`-prefixed HMAC secret for this webhook, invalidating the previous secret immediately. Callers must update their signature verification logic with the new secret returned in the response.\n */\nexport const patchAdminWebhookConfigsByIdRotateSecret = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWebhookConfigsByIdRotateSecretData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWebhookConfigsByIdRotateSecretResponses,\n PatchAdminWebhookConfigsByIdRotateSecretErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/rotate-secret\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Re-run extraction on an existing result, optionally with user feedback or targeting specific\n * fields\n *\n * Re-run extraction on an existing result, optionally with user feedback or targeting specific\n * fields. Use this when the initial extraction was incorrect and you want the AI to try again\n * with additional context. Supports partial re-extraction: `fields_to_retry` limits which\n * fields are re-extracted, and `schema_version_id` pins a specific agent version.\n *\n * Side effects: synchronously sets the parent Document status to `:queued` (progress 0),\n * then enqueues a `RegenerateExtraction` Oban job with the feedback and field targets.\n * The job transitions the document to `:processing` when it starts.\n *\n * Returns the ExtractionResult as-is (extraction output is updated asynchronously by the job).\n *\n */\nexport const patchAdminExtractionResultsByIdRegenerate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionResultsByIdRegenerateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionResultsByIdRegenerateResponses,\n PatchAdminExtractionResultsByIdRegenerateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}/regenerate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Renders published_body_html with variable substitutions for preview\n *\n * Renders published_body_html with variable substitutions for preview. Does not save.\n */\nexport const patchAdminEmailMarketingTemplatesByIdPreview = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdPreviewData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdPreviewResponses,\n PatchAdminEmailMarketingTemplatesByIdPreviewErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/preview\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /workspaces/:workspace_id/extraction/documents/dismiss-all-trained operation on bulk_dismissal_result resource\n *\n * /workspaces/:workspace_id/extraction/documents/dismiss-all-trained operation on bulk_dismissal_result resource\n */\nexport const postAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrained =\n <ThrowOnError extends boolean = false>(\n options: Options<\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).post<\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionDocumentsDismissAllTrainedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/documents/dismiss-all-trained\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /impact-assessments operation on data_protection_impact_assessment resource\n *\n * /impact-assessments operation on data_protection_impact_assessment resource\n */\nexport const getAdminImpactAssessments = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminImpactAssessmentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminImpactAssessmentsResponses,\n GetAdminImpactAssessmentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments\",\n ...options,\n });\n\n/**\n * Open a new GDPR Article 35 Data Protection Impact Assessment for a high-risk processing activity\n *\n * Open a new GDPR Article 35 Data Protection Impact Assessment for a high-risk processing activity. The DPIA starts in `:draft` status and must be approved via :approve before it is considered complete.\n */\nexport const postAdminImpactAssessments = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminImpactAssessmentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminImpactAssessmentsResponses,\n PostAdminImpactAssessmentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crawler/site-configs operation on crawler_site_config resource\n *\n * /crawler/site-configs operation on crawler_site_config resource\n */\nexport const getAdminCrawlerSiteConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerSiteConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSiteConfigsResponses,\n GetAdminCrawlerSiteConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs\",\n ...options,\n });\n\n/**\n * Create per-domain crawl settings (rate limit, strategy, custom headers, robots.txt preference) for a workspace\n *\n * Create per-domain crawl settings (rate limit, strategy, custom headers, robots.txt preference) for a workspace. Returns the created config.\n */\nexport const postAdminCrawlerSiteConfigs = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrawlerSiteConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrawlerSiteConfigsResponses,\n PostAdminCrawlerSiteConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List active contacts in a workspace with optional lifecycle_stage, tag, and\n * property filters applied Elixir-side\n *\n * List active contacts in a workspace with optional lifecycle_stage, tag, and\n * property filters applied Elixir-side. Use instead of :read when you need\n * workspace-scoped paginated results or attribute-level filtering.\n *\n */\nexport const getAdminCrmContactsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmContactsWorkspaceByWorkspaceIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmContactsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmContactsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Fetch the latest ExtractionResult for a given document\n *\n * Fetch the latest ExtractionResult for a given document. Returns the most recently created\n * result (sorted by `inserted_at` descending, limit 1). Hidden system fields are filtered.\n * Use `:get_partial_by_document` if you need per-field `field_status` for in-progress tracking.\n *\n */\nexport const getAdminExtractionResultsDocumentByDocumentId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionResultsDocumentByDocumentIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionResultsDocumentByDocumentIdResponses,\n GetAdminExtractionResultsDocumentByDocumentIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/document/{document_id}\",\n ...options,\n });\n\n/**\n * Fetch a single metadata record describing the permission system — schema version, available apps, scopes, categories, and suggested client cache TTL\n *\n * Fetch a single metadata record describing the permission system — schema version, available apps, scopes, categories, and suggested client cache TTL. Use to seed permission-picker UI configuration.\n */\nexport const getAdminPermissionsMeta = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPermissionsMetaData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsMetaResponses,\n GetAdminPermissionsMetaErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/meta\",\n ...options,\n });\n\n/**\n * Deliver this email immediately via connected account.\n *\n * Deliver this email immediately via connected account.\n */\nexport const patchAdminEmailOutboundEmailsByIdSend = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailOutboundEmailsByIdSendData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailOutboundEmailsByIdSendResponses,\n PatchAdminEmailOutboundEmailsByIdSendErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/{id}/send\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a new immutable version from current agent state\n *\n * Create a new immutable version from current agent state\n */\nexport const postAdminAgentsByIdPublishVersion = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdPublishVersionData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdPublishVersionResponses,\n PostAdminAgentsByIdPublishVersionErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/publish-version\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Run a semantic similarity search against vectorized document chunks for the caller's tenant; embeds the query text and returns the top-k most relevant chunks ranked by cosine similarity.\n *\n * Run a semantic similarity search against vectorized document chunks for the caller's tenant; embeds the query text and returns the top-k most relevant chunks ranked by cosine similarity.\n */\nexport const postAdminAiSearch = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiSearchResponses,\n PostAdminAiSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all credit packages available for purchase in the calling application\n *\n * List all credit packages available for purchase in the calling application. Use this to\n * populate a top-up UI showing available bundle options (e.g., \"1,000 credits for $10\").\n * Returns packages scoped to the application inferred from the request context.\n *\n * Supports keyset and offset pagination. Readable by anyone (unauthenticated).\n *\n */\nexport const getAdminCreditPackages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCreditPackagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCreditPackagesResponses,\n GetAdminCreditPackagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages\",\n ...options,\n });\n\n/**\n * Create a new credit package (purchasable top-up bundle) for an application\n *\n * Create a new credit package (purchasable top-up bundle) for an application. Defines the\n * package name, slug, price, and how many credits are granted upon purchase. Use this when\n * setting up or expanding the top-up catalog for an ISV application.\n *\n * Scoped to an application via application_id (inferred from the x-application-key header when\n * not provided). Requires Platform Admin role. Returns the created credit package record.\n *\n */\nexport const postAdminCreditPackages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCreditPackagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCreditPackagesResponses,\n PostAdminCreditPackagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/credit-packages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List saved searches accessible to the current actor: the actor's own searches and any searches marked `is_shared` within the same tenant.\n *\n * List saved searches accessible to the current actor: the actor's own searches and any searches marked `is_shared` within the same tenant.\n */\nexport const getAdminSearchSaved = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchSavedData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchSavedResponses,\n GetAdminSearchSavedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved\",\n ...options,\n });\n\n/**\n * Persist a named search query for reuse\n *\n * Persist a named search query for reuse. The `user_id` and `tenant_id` are set from the actor and request context. Set `is_shared: true` to make the search visible to all tenant members.\n */\nexport const postAdminSearchSaved = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSearchSavedData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSearchSavedResponses,\n PostAdminSearchSavedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/saved\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/templates/:id operation on email-marketing-template resource\n *\n * /email-marketing/templates/:id operation on email-marketing-template resource\n */\nexport const deleteAdminEmailMarketingTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailMarketingTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailMarketingTemplatesByIdResponses,\n DeleteAdminEmailMarketingTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/templates/:id operation on email-marketing-template resource\n *\n * /email-marketing/templates/:id operation on email-marketing-template resource\n */\nexport const getAdminEmailMarketingTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailMarketingTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingTemplatesByIdResponses,\n GetAdminEmailMarketingTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/templates/:id operation on email-marketing-template resource\n *\n * /email-marketing/templates/:id operation on email-marketing-template resource\n */\nexport const patchAdminEmailMarketingTemplatesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailMarketingTemplatesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdResponses,\n PatchAdminEmailMarketingTemplatesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /documents/stats operation on document_stats resource\n *\n * /documents/stats operation on document_stats resource\n */\nexport const getAdminDocumentsStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminDocumentsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminDocumentsStatsResponses,\n GetAdminDocumentsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/documents/stats\",\n ...options,\n });\n\n/**\n * /webhook-deliveries operation on webhook_delivery resource\n *\n * /webhook-deliveries operation on webhook_delivery resource\n */\nexport const getAdminWebhookDeliveries = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWebhookDeliveriesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookDeliveriesResponses,\n GetAdminWebhookDeliveriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries\",\n ...options,\n });\n\n/**\n * Primary read for active (non-deleted) documents\n *\n * Primary read for active (non-deleted) documents. Excludes soft-deleted documents.\n * Use `:read_trashed` to list deleted documents, or `:list_by_workspace` for a workspace-scoped\n * listing with optional batch filtering.\n *\n */\nexport const getAdminExtractionDocuments = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsResponses,\n GetAdminExtractionDocumentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents\",\n ...options,\n });\n\n/**\n * /agent-version-revisions/:id operation on agent_version_revision resource\n *\n * /agent-version-revisions/:id operation on agent_version_revision resource\n */\nexport const getAdminAgentVersionRevisionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionRevisionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionRevisionsByIdResponses,\n GetAdminAgentVersionRevisionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-version-revisions/{id}\",\n ...options,\n });\n\n/**\n * List all email templates for the application, including both system and custom templates\n *\n * List all email templates for the application, including both system and custom templates. Use :get_by_slug to fetch a specific template by its slug identifier.\n */\nexport const getAdminApplicationsByApplicationIdEmailTemplates = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminApplicationsByApplicationIdEmailTemplatesData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsByApplicationIdEmailTemplatesResponses,\n GetAdminApplicationsByApplicationIdEmailTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates\",\n ...options,\n });\n\n/**\n * Create a new custom email template for the application\n *\n * Create a new custom email template for the application. Slugs matching system-reserved names (verification, password_reset, magic_link, invitation, invitation_accepted) are rejected; use :update on system templates instead.\n */\nexport const postAdminApplicationsByApplicationIdEmailTemplates = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminApplicationsByApplicationIdEmailTemplatesData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsByApplicationIdEmailTemplatesResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /impact-assessments/:id operation on data_protection_impact_assessment resource\n *\n * /impact-assessments/:id operation on data_protection_impact_assessment resource\n */\nexport const getAdminImpactAssessmentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminImpactAssessmentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminImpactAssessmentsByIdResponses,\n GetAdminImpactAssessmentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments/{id}\",\n ...options,\n });\n\n/**\n * Update the DPIA's title, description, risk level, findings, or mitigations while it is in draft or in_review status\n *\n * Update the DPIA's title, description, risk level, findings, or mitigations while it is in draft or in_review status. Use :approve to finalize the assessment.\n */\nexport const patchAdminImpactAssessmentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminImpactAssessmentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminImpactAssessmentsByIdResponses,\n PatchAdminImpactAssessmentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List pending AI classification suggestions for a workspace awaiting ISV review\n *\n * List pending AI classification suggestions for a workspace awaiting ISV review. Returns a paginated list.\n */\nexport const getAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPending =\n <ThrowOnError extends boolean = false>(\n options: Options<\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).get<\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingResponses,\n GetAdminCatalogClassificationSuggestionsWorkspaceByWorkspaceIdPendingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/classification-suggestions/workspace/{workspace_id}/pending\",\n ...options,\n });\n\n/**\n * /llm_analytics/:id operation on llm_analytics resource\n *\n * /llm_analytics/:id operation on llm_analytics resource\n */\nexport const getAdminLlmAnalyticsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsByIdResponses,\n GetAdminLlmAnalyticsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/{id}\",\n ...options,\n });\n\n/**\n * Return the current user's active thread for their workspace, creating a new one if none exists or the existing thread has expired (>24h inactive)\n *\n * Return the current user's active thread for their workspace, creating a new one if none exists or the existing thread has expired (>24h inactive). The new thread inherits context from the expired one via `previous_thread_id`.\n */\nexport const postAdminThreadsActive = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminThreadsActiveData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsActiveResponses,\n PostAdminThreadsActiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/active\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Look up a plan by its unique slug within an application (e.g., \"pro\", \"business\", \"free\")\n *\n * Look up a plan by its unique slug within an application (e.g., \"pro\", \"business\", \"free\").\n * Use this for plan selection flows where the slug is known from config or the UI.\n * Use read_one when you have the UUID. Returns a single plan or an error if the slug is not found.\n *\n */\nexport const getAdminPlansSlugBySlug = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPlansSlugBySlugData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlansSlugBySlugResponses,\n GetAdminPlansSlugBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/slug/{slug}\",\n ...options,\n });\n\n/**\n * /agent-version-revisions operation on agent_version_revision resource\n *\n * /agent-version-revisions operation on agent_version_revision resource\n */\nexport const getAdminAgentVersionRevisions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentVersionRevisionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentVersionRevisionsResponses,\n GetAdminAgentVersionRevisionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-version-revisions\",\n ...options,\n });\n\n/**\n * /isv-revenue/:id operation on isv_revenue resource\n *\n * /isv-revenue/:id operation on isv_revenue resource\n */\nexport const getAdminIsvRevenueById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminIsvRevenueByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvRevenueByIdResponses,\n GetAdminIsvRevenueByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-revenue/{id}\",\n ...options,\n });\n\n/**\n * List all active variants for a given product, sorted by position\n *\n * List all active variants for a given product, sorted by position. Returns a paginated list.\n */\nexport const getAdminCatalogProductVariantsProductByProductId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogProductVariantsProductByProductIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductVariantsProductByProductIdResponses,\n GetAdminCatalogProductVariantsProductByProductIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants/product/{product_id}\",\n ...options,\n });\n\n/**\n * Permanently delete an option value; removes associated variant_option_values\n *\n * Permanently delete an option value; removes associated variant_option_values. Ensure no active variants reference this value.\n */\nexport const deleteAdminCatalogOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogOptionValuesByIdResponses,\n DeleteAdminCatalogOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/{id}\",\n ...options,\n });\n\n/**\n * /catalog/option-values/:id operation on catalog_option_value resource\n *\n * /catalog/option-values/:id operation on catalog_option_value resource\n */\nexport const getAdminCatalogOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionValuesByIdResponses,\n GetAdminCatalogOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/{id}\",\n ...options,\n });\n\n/**\n * Update the name, slug, position, or metadata of an option value\n *\n * Update the name, slug, position, or metadata of an option value. Returns the updated option value.\n */\nexport const patchAdminCatalogOptionValuesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogOptionValuesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogOptionValuesByIdResponses,\n PatchAdminCatalogOptionValuesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Schedule an Oban job to purge all storage objects for the given tenant\n *\n * Schedule an Oban job to purge all storage objects for the given tenant. Used\n * by platform admins to queue asynchronous data purges after account termination.\n * The actual file deletion runs in the background via Storage facade workers.\n *\n * Returns the tenant record.\n *\n */\nexport const postAdminTenantsByIdSchedulePurge = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTenantsByIdSchedulePurgeData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsByIdSchedulePurgeResponses,\n PostAdminTenantsByIdSchedulePurgeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}/schedule-purge\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /documents/bulk-delete operation on operation_success resource\n *\n * /documents/bulk-delete operation on operation_success resource\n */\nexport const postAdminDocumentsBulkDelete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminDocumentsBulkDeleteData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminDocumentsBulkDeleteResponses,\n PostAdminDocumentsBulkDeleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/documents/bulk-delete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Transfer credits from the tenant's liability account to this workspace's\n * liability account\n *\n * Transfer credits from the tenant's liability account to this workspace's\n * liability account. Capped at 100,000 credits per call. Restricted to tenant\n * admins and workspace billing managers. Use for manual credit allocation;\n * automatic allocation happens at workspace creation via initial_credits.\n *\n * Returns the workspace record after allocation.\n *\n */\nexport const patchAdminWorkspacesByIdAllocate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWorkspacesByIdAllocateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdAllocateResponses,\n PatchAdminWorkspacesByIdAllocateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/allocate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Bootstrap schema discovery without an agent\n *\n * Bootstrap schema discovery without an agent\n */\nexport const postAdminExtractionSchemaDiscoveriesBootstrap = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminExtractionSchemaDiscoveriesBootstrapData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionSchemaDiscoveriesBootstrapResponses,\n PostAdminExtractionSchemaDiscoveriesBootstrapErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/schema-discoveries/bootstrap\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Mark a document as excluded from agent training\n *\n * Mark a document as excluded from agent training. Prevents its associated extraction results\n * from being used as few-shot training examples. Sets `excluded_from_training: true`,\n * records the timestamp and the actor who performed the exclusion.\n *\n * Side effects: synchronously updates the `document_excluded` denormalized flag on all\n * associated `TrainingExample` records so they are filtered out of semantic search.\n *\n * Use `:include_in_training` to reverse this. See the `:excluded` read action to list\n * currently excluded documents.\n *\n */\nexport const patchAdminExtractionDocumentsByIdExclude = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdExcludeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdExcludeResponses,\n PatchAdminExtractionDocumentsByIdExcludeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/exclude\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Resend an invitation email with a refreshed token and a new 7-day expiry\n *\n * Resend an invitation email with a refreshed token and a new 7-day expiry. Only\n * pending invitations can be resent. Generates a new token (invalidating the old\n * one) and enqueues SendInvitationEmail. Callable by the original inviter or the\n * tenant owner.\n *\n */\nexport const patchAdminInvitationsByIdResend = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdResendData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdResendResponses,\n PatchAdminInvitationsByIdResendErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/resend\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /processing-activities/:id operation on processing_activity resource\n *\n * /processing-activities/:id operation on processing_activity resource\n */\nexport const deleteAdminProcessingActivitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminProcessingActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminProcessingActivitiesByIdResponses,\n DeleteAdminProcessingActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities/{id}\",\n ...options,\n });\n\n/**\n * /processing-activities/:id operation on processing_activity resource\n *\n * /processing-activities/:id operation on processing_activity resource\n */\nexport const getAdminProcessingActivitiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminProcessingActivitiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminProcessingActivitiesByIdResponses,\n GetAdminProcessingActivitiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities/{id}\",\n ...options,\n });\n\n/**\n * List all sync configurations for a workspace, one per connector instance\n *\n * List all sync configurations for a workspace, one per connector instance. Use to audit which connectors have custom sync settings configured.\n */\nexport const getAdminIsvCrmSyncConfigsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdResponses,\n GetAdminIsvCrmSyncConfigsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /webhook-configs operation on webhook_config resource\n *\n * /webhook-configs operation on webhook_config resource\n */\nexport const getAdminWebhookConfigs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminWebhookConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookConfigsResponses,\n GetAdminWebhookConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs\",\n ...options,\n });\n\n/**\n * Register a new webhook endpoint to receive platform events\n *\n * Register a new webhook endpoint to receive platform events. Use this instead of :update\n * when you need to set the application scope — the application_id is inferred from the API key\n * or supplied explicitly. Generates a `whsec_`-prefixed HMAC secret automatically if not\n * provided. Returns the created WebhookConfig including the secret (shown only once).\n *\n */\nexport const postAdminWebhookConfigs = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminWebhookConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsResponses,\n PostAdminWebhookConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single transaction by its UUID\n *\n * Fetch a single transaction by its UUID. Use for transaction detail views or to verify\n * payment status after a sale. The result is not tenant-scoped at the query level;\n * the caller must ensure the actor has access to this transaction's tenant.\n *\n * Returns the full transaction record including status, amount, provider_reference, and credits.\n *\n */\nexport const getAdminTransactionsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTransactionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTransactionsByIdResponses,\n GetAdminTransactionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/transactions/{id}\",\n ...options,\n });\n\n/**\n * Search for recipes using the Edamam Recipe API\n *\n * Search for recipes using the Edamam Recipe API\n */\nexport const postAdminConnectorsByIdEdamamRecipesSearch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminConnectorsByIdEdamamRecipesSearchData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsByIdEdamamRecipesSearchResponses,\n PostAdminConnectorsByIdEdamamRecipesSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}/edamam/recipes/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get training analytics for multiple workspaces in a single request (max 50)\n *\n * Get training analytics for multiple workspaces in a single request (max 50)\n */\nexport const getAdminWorkspacesAnalyticsBatch = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWorkspacesAnalyticsBatchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesAnalyticsBatchResponses,\n GetAdminWorkspacesAnalyticsBatchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/analytics-batch\",\n ...options,\n });\n\n/**\n * Add a pricing entry to a price list for a product or variant; supply a fixed price, modifier, or tiered structure\n *\n * Add a pricing entry to a price list for a product or variant; supply a fixed price, modifier, or tiered structure. Returns the created entry.\n */\nexport const postAdminCatalogPriceListEntries = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogPriceListEntriesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogPriceListEntriesResponses,\n PostAdminCatalogPriceListEntriesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-list-entries\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /extraction/config-enums operation on config_enum resource\n *\n * /extraction/config-enums operation on config_enum resource\n */\nexport const getAdminExtractionConfigEnums = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionConfigEnumsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionConfigEnumsResponses,\n GetAdminExtractionConfigEnumsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums\",\n ...options,\n });\n\n/**\n * /extraction/config-enums operation on config_enum resource\n *\n * /extraction/config-enums operation on config_enum resource\n */\nexport const postAdminExtractionConfigEnums = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionConfigEnumsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionConfigEnumsResponses,\n PostAdminExtractionConfigEnumsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/config-enums\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /audit-chain-entries/:id operation on audit_chain_entry resource\n *\n * /audit-chain-entries/:id operation on audit_chain_entry resource\n */\nexport const getAdminAuditChainEntriesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAuditChainEntriesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditChainEntriesByIdResponses,\n GetAdminAuditChainEntriesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-chain-entries/{id}\",\n ...options,\n });\n\n/**\n * /training-sessions/:id operation on training_session resource\n *\n * /training-sessions/:id operation on training_session resource\n */\nexport const deleteAdminTrainingSessionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminTrainingSessionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTrainingSessionsByIdResponses,\n DeleteAdminTrainingSessionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-sessions/{id}\",\n ...options,\n });\n\n/**\n * /training-sessions/:id operation on training_session resource\n *\n * /training-sessions/:id operation on training_session resource\n */\nexport const getAdminTrainingSessionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTrainingSessionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingSessionsByIdResponses,\n GetAdminTrainingSessionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-sessions/{id}\",\n ...options,\n });\n\n/**\n * /ai/conversations/:id operation on conversation resource\n *\n * /ai/conversations/:id operation on conversation resource\n */\nexport const deleteAdminAiConversationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminAiConversationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAiConversationsByIdResponses,\n DeleteAdminAiConversationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations/{id}\",\n ...options,\n });\n\n/**\n * /ai/conversations/:id operation on conversation resource\n *\n * /ai/conversations/:id operation on conversation resource\n */\nexport const getAdminAiConversationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAiConversationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiConversationsByIdResponses,\n GetAdminAiConversationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations/{id}\",\n ...options,\n });\n\n/**\n * Update the conversation title or replace the context data map\n *\n * Update the conversation title or replace the context data map. Use this to attach updated prediction results or structured context before the next AI turn.\n */\nexport const patchAdminAiConversationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminAiConversationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminAiConversationsByIdResponses,\n PatchAdminAiConversationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /payment-methods operation on payment_method resource\n *\n * /payment-methods operation on payment_method resource\n */\nexport const getAdminPaymentMethods = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPaymentMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPaymentMethodsResponses,\n GetAdminPaymentMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods\",\n ...options,\n });\n\n/**\n * Save a pre-tokenized payment method for a customer\n *\n * Save a pre-tokenized payment method for a customer. Use this when the client has already\n * obtained a provider token (e.g., via a hosted fields iframe) and needs to store it for\n * future charges. The customer is resolved from the actor's context or an explicit customer_id.\n * If this is the first payment method, it is automatically set as the default.\n *\n * No side effects beyond database persistence. Returns the saved payment method record.\n *\n */\nexport const postAdminPaymentMethods = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPaymentMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPaymentMethodsResponses,\n PostAdminPaymentMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all export jobs for a workspace, sorted newest first\n *\n * List all export jobs for a workspace, sorted newest first. Use to show export history or find a recent job by entity type and format.\n */\nexport const getAdminCrmExportsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmExportsWorkspaceByWorkspaceIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmExportsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmExportsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/exports/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /email-marketing/campaigns/:id/import-recipients operation on campaign resource\n *\n * /email-marketing/campaigns/:id/import-recipients operation on campaign resource\n */\nexport const postAdminEmailMarketingCampaignsByIdImportRecipients = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdImportRecipientsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdImportRecipientsResponses,\n PostAdminEmailMarketingCampaignsByIdImportRecipientsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/import-recipients\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Alias for `:dismiss_training`\n *\n * Alias for `:dismiss_training`. Sets `training_metadata[\"dismissed_at\"]` on the document.\n * Exposed as the `/dismiss` route; functionally identical to `:dismiss_training`.\n *\n */\nexport const patchAdminExtractionDocumentsByIdDismiss = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdDismissData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdDismissResponses,\n PatchAdminExtractionDocumentsByIdDismissErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/dismiss\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /workspaces/:workspace_id/extraction/exports/:id operation on extraction_export resource\n *\n * /workspaces/:workspace_id/extraction/exports/:id operation on extraction_export resource\n */\nexport const getAdminWorkspacesByWorkspaceIdExtractionExportsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/exports/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/generated-emails/campaign/:campaign_id operation on email-marketing-generated-email resource\n *\n * /email-marketing/generated-emails/campaign/:campaign_id operation on email-marketing-generated-email resource\n */\nexport const getAdminEmailMarketingGeneratedEmailsCampaignByCampaignId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdResponses,\n GetAdminEmailMarketingGeneratedEmailsCampaignByCampaignIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/campaign/{campaign_id}\",\n ...options,\n });\n\n/**\n * Attempt to sign in using a username and password.\n *\n * Attempt to sign in using a username and password.\n */\nexport const postAdminUsersAuthLogin = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUsersAuthLoginData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthLoginResponses,\n PostAdminUsersAuthLoginErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/login\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete a view rule; the view is re-evaluated without this rule on next resolution.\n *\n * Permanently delete a view rule; the view is re-evaluated without this rule on next resolution.\n */\nexport const deleteAdminCatalogViewRulesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogViewRulesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogViewRulesByIdResponses,\n DeleteAdminCatalogViewRulesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/view-rules/{id}\",\n ...options,\n });\n\n/**\n * Admin-only user management (platform admins) - promotes/demotes admin status\n *\n * Admin-only user management (platform admins) - promotes/demotes admin status\n */\nexport const patchAdminUsersByIdAdmin = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminUsersByIdAdminData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdAdminResponses,\n PatchAdminUsersByIdAdminErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/admin\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get storage stats for a specific tenant\n *\n * Get storage stats for a specific tenant\n */\nexport const getAdminStorageStatsTenantByTenantId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminStorageStatsTenantByTenantIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageStatsTenantByTenantIdResponses,\n GetAdminStorageStatsTenantByTenantIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage/stats/tenant/{tenant_id}\",\n ...options,\n });\n\n/**\n * /campaigns/sequences operation on email-marketing-sequence resource\n *\n * /campaigns/sequences operation on email-marketing-sequence resource\n */\nexport const postAdminCampaignsSequences = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCampaignsSequencesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCampaignsSequencesResponses,\n PostAdminCampaignsSequencesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequences\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Log a CRM activity (call, email, meeting, note, etc.) linked to the workspace\n *\n * Log a CRM activity (call, email, meeting, note, etc.) linked to the workspace.\n * Validates custom properties and indexes the activity body into the Memory domain\n * for semantic search. Publishes an ActivityLogged event as a side effect.\n *\n */\nexport const postAdminCrmActivities = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmActivitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmActivitiesResponses,\n PostAdminCrmActivitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/activities\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List audit log entries\n *\n * List audit log entries. Supports keyset and offset pagination. Default limit: 50.\n */\nexport const getAdminAuditLogs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAuditLogsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAuditLogsResponses,\n GetAdminAuditLogsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/audit-logs\",\n ...options,\n });\n\n/**\n * /wholesale-agreements/:id operation on wholesale-agreement resource\n *\n * /wholesale-agreements/:id operation on wholesale-agreement resource\n */\nexport const getAdminWholesaleAgreementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWholesaleAgreementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWholesaleAgreementsByIdResponses,\n GetAdminWholesaleAgreementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements/{id}\",\n ...options,\n });\n\n/**\n * /wholesale-agreements/:id operation on wholesale-agreement resource\n *\n * /wholesale-agreements/:id operation on wholesale-agreement resource\n */\nexport const patchAdminWholesaleAgreementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWholesaleAgreementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWholesaleAgreementsByIdResponses,\n PatchAdminWholesaleAgreementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /pricing-strategies/:id operation on pricing_strategy resource\n *\n * /pricing-strategies/:id operation on pricing_strategy resource\n */\nexport const getAdminPricingStrategiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPricingStrategiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingStrategiesByIdResponses,\n GetAdminPricingStrategiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies/{id}\",\n ...options,\n });\n\n/**\n * /pricing-strategies/:id operation on pricing_strategy resource\n *\n * /pricing-strategies/:id operation on pricing_strategy resource\n */\nexport const patchAdminPricingStrategiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPricingStrategiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPricingStrategiesByIdResponses,\n PatchAdminPricingStrategiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-strategies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/outbound-emails/workspace/:workspace_id/contact/:contact_ref_id operation on email-outbound-email resource\n *\n * /email/outbound-emails/workspace/:workspace_id/contact/:contact_ref_id operation on email-outbound-email resource\n */\nexport const getAdminEmailOutboundEmailsWorkspaceByWorkspaceIdContactByContactRefId =\n <ThrowOnError extends boolean = false>(\n options: Options<\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdContactByContactRefIdData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).get<\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdContactByContactRefIdResponses,\n GetAdminEmailOutboundEmailsWorkspaceByWorkspaceIdContactByContactRefIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/workspace/{workspace_id}/contact/{contact_ref_id}\",\n ...options,\n });\n\n/**\n * Dismiss announcement - merges with existing preferences\n *\n * Dismiss announcement - merges with existing preferences\n */\nexport const patchAdminUserProfilesByIdDismissAnnouncement = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminUserProfilesByIdDismissAnnouncementData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminUserProfilesByIdDismissAnnouncementResponses,\n PatchAdminUserProfilesByIdDismissAnnouncementErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/{id}/dismiss-announcement\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all active nodes in a taxonomy\n *\n * List all active nodes in a taxonomy. Use roots_by_taxonomy to get only top-level nodes for tree rendering.\n */\nexport const getAdminCatalogTaxonomyNodesTaxonomyByTaxonomyId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdResponses,\n GetAdminCatalogTaxonomyNodesTaxonomyByTaxonomyIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}\",\n ...options,\n });\n\n/**\n * Export campaign data (recipients, results, or tracking) as CSV\n *\n * Export campaign data (recipients, results, or tracking) as CSV. Returns job ID.\n */\nexport const postAdminEmailMarketingCampaignsByIdExport = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminEmailMarketingCampaignsByIdExportData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdExportResponses,\n PostAdminEmailMarketingCampaignsByIdExportErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/export\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Mark this notification method as the primary channel for its type, used when multiple methods of the same type exist.\n *\n * Mark this notification method as the primary channel for its type, used when multiple methods of the same type exist.\n */\nexport const patchAdminNotificationMethodsByIdSetPrimary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminNotificationMethodsByIdSetPrimaryData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdSetPrimaryResponses,\n PatchAdminNotificationMethodsByIdSetPrimaryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}/set-primary\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all relationship edges in a workspace\n *\n * List all relationship edges in a workspace. Use to traverse connections between CRM entities or seed graph traversal queries.\n */\nexport const getAdminCrmRelationshipsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdResponses,\n GetAdminCrmRelationshipsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * List exports for a workspace, filtered by status\n *\n * List exports for a workspace, filtered by status\n */\nexport const getAdminWorkspacesByWorkspaceIdExtractionExports = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n GetAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/exports\",\n ...options,\n });\n\n/**\n * /workspaces/:workspace_id/extraction/exports operation on extraction_export resource\n *\n * /workspaces/:workspace_id/extraction/exports operation on extraction_export resource\n */\nexport const postAdminWorkspacesByWorkspaceIdExtractionExports = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminWorkspacesByWorkspaceIdExtractionExportsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminWorkspacesByWorkspaceIdExtractionExportsResponses,\n PostAdminWorkspacesByWorkspaceIdExtractionExportsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{workspace_id}/extraction/exports\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Get the current application based on x-application-key header context\n *\n * Get the current application based on x-application-key header context\n */\nexport const getAdminApplicationsCurrent = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminApplicationsCurrentData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsCurrentResponses,\n GetAdminApplicationsCurrentErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/current\",\n ...options,\n });\n\n/**\n * /agents/:id/training-stats operation on agent_training_stats resource\n *\n * /agents/:id/training-stats operation on agent_training_stats resource\n */\nexport const getAdminAgentsByIdTrainingStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentsByIdTrainingStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdTrainingStatsResponses,\n GetAdminAgentsByIdTrainingStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/training-stats\",\n ...options,\n });\n\n/**\n * Soft-archive a contact (sets deleted_at)\n *\n * Soft-archive a contact (sets deleted_at)\n */\nexport const patchAdminCrmContactsByIdArchive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmContactsByIdArchiveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmContactsByIdArchiveResponses,\n PatchAdminCrmContactsByIdArchiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/contacts/{id}/archive\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /tenants/:tenant_id/workspace_stats operation on workspace_document_stats resource\n *\n * /tenants/:tenant_id/workspace_stats operation on workspace_document_stats resource\n */\nexport const getAdminTenantsByTenantIdWorkspaceStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantsByTenantIdWorkspaceStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByTenantIdWorkspaceStatsResponses,\n GetAdminTenantsByTenantIdWorkspaceStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{tenant_id}/workspace_stats\",\n ...options,\n });\n\n/**\n * Return aggregate delivery counts by status (total, delivered, failed, retrying)\n *\n * Return aggregate delivery counts by status (total, delivered, failed, retrying). Useful for monitoring dashboards; no side effects.\n */\nexport const getAdminWebhookDeliveriesStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWebhookDeliveriesStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWebhookDeliveriesStatsResponses,\n GetAdminWebhookDeliveriesStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/stats\",\n ...options,\n });\n\n/**\n * Approve a completed DPIA by recording the approver's name and setting `approved_at` to the current timestamp\n *\n * Approve a completed DPIA by recording the approver's name and setting `approved_at` to the current timestamp. Changes status to `:approved`; use :update to add additional findings after the fact.\n */\nexport const patchAdminImpactAssessmentsByIdApprove = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminImpactAssessmentsByIdApproveData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminImpactAssessmentsByIdApproveResponses,\n PatchAdminImpactAssessmentsByIdApproveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/impact-assessments/{id}/approve\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Run the agent against sample input\n *\n * Run the agent against sample input\n */\nexport const postAdminAgentsByIdTest = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdTestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdTestResponses,\n PostAdminAgentsByIdTestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/test\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Revoke an existing consent grant\n *\n * Revoke an existing consent grant. Sets status to `:withdrawn` and records `withdrawn_at`. Returns an error if the record is already withdrawn. The record is preserved for audit trail purposes.\n */\nexport const patchAdminConsentRecordsByIdWithdraw = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminConsentRecordsByIdWithdrawData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminConsentRecordsByIdWithdrawResponses,\n PatchAdminConsentRecordsByIdWithdrawErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records/{id}/withdraw\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/outbound-emails/:id/cancel-schedule operation on email-outbound-email resource\n *\n * /email/outbound-emails/:id/cancel-schedule operation on email-outbound-email resource\n */\nexport const patchAdminEmailOutboundEmailsByIdCancelSchedule = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailOutboundEmailsByIdCancelScheduleData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailOutboundEmailsByIdCancelScheduleResponses,\n PatchAdminEmailOutboundEmailsByIdCancelScheduleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/{id}/cancel-schedule\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single location by ID\n *\n * Fetch a single location by ID. Note: location data is denormalized into LocationEmbed on Event/EventType at write time — reads typically use the embed, not this action.\n */\nexport const getAdminSchedulingLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingLocationsByIdResponses,\n GetAdminSchedulingLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations/{id}\",\n ...options,\n });\n\n/**\n * Update location details\n *\n * Update location details. Changes here do NOT retroactively update LocationEmbed in Events/EventTypes — those were denormalized at write time. Use :deactivate to retire a location.\n */\nexport const patchAdminSchedulingLocationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSchedulingLocationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingLocationsByIdResponses,\n PatchAdminSchedulingLocationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/locations/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Enqueue an async CRM data export job\n *\n * Enqueue an async CRM data export job. Validates include keys and entity_type compatibility,\n * then enqueues DataExportWorker via Oban. Returns a pending DataExportJob — poll :get until\n * status is :complete or :failed. Publishes DataExportJobCreated event. Costs 5 credits.\n *\n */\nexport const postAdminCrmExports = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmExportsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmExportsResponses,\n PostAdminCrmExportsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/exports\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List LLM analytics records sorted by created_at descending; scoped to the caller's tenant.\n *\n * List LLM analytics records sorted by created_at descending; scoped to the caller's tenant.\n */\nexport const getAdminLlmAnalytics = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsResponses,\n GetAdminLlmAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics\",\n ...options,\n });\n\n/**\n * Append a single LLM call analytics record (model, tokens, latency, cost); called by the billing/analytics pipeline after each LLM invocation\n *\n * Append a single LLM call analytics record (model, tokens, latency, cost); called by the billing/analytics pipeline after each LLM invocation. Returns the created record.\n */\nexport const postAdminLlmAnalytics = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminLlmAnalyticsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminLlmAnalyticsResponses,\n PostAdminLlmAnalyticsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /ai/messages/:id operation on message resource\n *\n * /ai/messages/:id operation on message resource\n */\nexport const deleteAdminAiMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminAiMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAiMessagesByIdResponses,\n DeleteAdminAiMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/messages/{id}\",\n ...options,\n });\n\n/**\n * Create a new catalog product in a workspace; triggers search indexing and enqueues embedding generation\n *\n * Create a new catalog product in a workspace; triggers search indexing and enqueues embedding generation. Returns the created product.\n */\nexport const postAdminCatalogProducts = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCatalogProductsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogProductsResponses,\n PostAdminCatalogProductsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a patient in Fullscript\n *\n * Create a patient in Fullscript\n */\nexport const postAdminConnectorsFullscriptCreatePatient = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminConnectorsFullscriptCreatePatientData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsFullscriptCreatePatientResponses,\n PostAdminConnectorsFullscriptCreatePatientErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/fullscript/create-patient\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all bookings for a workspace\n *\n * List all bookings for a workspace. Use to view pending approvals or booking history. Filter by status in the caller.\n */\nexport const getAdminSchedulingBookings = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingBookingsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingBookingsResponses,\n GetAdminSchedulingBookingsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings\",\n ...options,\n });\n\n/**\n * Create a booking for an external party claiming a time slot\n *\n * Create a booking for an external party claiming a time slot. Validates honeypot field,\n * booking cooldown, and event type capacity. Atomically creates a linked Event and Participant\n * in before_action. Status is :confirmed if EventType.requires_approval is false, else\n * :pending_approval. Publishes BookingCreated event.\n *\n */\nexport const postAdminSchedulingBookings = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingBookingsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingBookingsResponses,\n PostAdminSchedulingBookingsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Reverse an exclusion: allow a previously excluded document to contribute training examples\n * again\n *\n * Reverse an exclusion: allow a previously excluded document to contribute training examples\n * again. Clears `excluded_from_training`, `excluded_at`, `excluded_by`, and\n * `training_metadata` so the document appears in normal training queries.\n *\n * Side effects: synchronously clears the `document_excluded` flag on all associated\n * `TrainingExample` records, making them eligible for semantic search and few-shot selection.\n *\n * This action is also registered under the `/restore` route as a semantic alias.\n *\n */\nexport const patchAdminExtractionDocumentsByIdRestore = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdRestoreData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdRestoreResponses,\n PatchAdminExtractionDocumentsByIdRestoreErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/restore\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /balances/:id operation on balance resource\n *\n * /balances/:id operation on balance resource\n */\nexport const getAdminBalancesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBalancesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBalancesByIdResponses,\n GetAdminBalancesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/balances/{id}\",\n ...options,\n });\n\n/**\n * Define a custom field for a core CRM entity type (contact, company, deal, activity)\n *\n * Define a custom field for a core CRM entity type (contact, company, deal, activity).\n * Field values are stored in the entity's properties JSONB column. Name must be\n * lowercase alphanumeric (no underscore prefix) and unique per application+entity_type.\n *\n */\nexport const postAdminIsvCrmFieldDefinitions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmFieldDefinitionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmFieldDefinitionsResponses,\n PostAdminIsvCrmFieldDefinitionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Legacy single-step upload: create a document record and immediately enqueue processing\n *\n * Legacy single-step upload: create a document record and immediately enqueue processing.\n * Use this when the file is already stored at `storage_path` (e.g., from the Ingestion domain).\n * For new client-initiated uploads, prefer `:begin_upload` + `:finish_upload` which provides\n * deduplication, presigned URL generation, and defense-in-depth credit checks.\n *\n * Side effects: enqueues `ProcessDocument` (or `ProcessAudio` for audio files) Oban job.\n * Captures actor and request context (IP, UA) for audit trail.\n *\n * Returns the created document with status `:queued`.\n *\n */\nexport const postAdminExtractionDocumentsUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionDocumentsUploadData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsUploadResponses,\n PostAdminExtractionDocumentsUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /system-messages/:id operation on system_message resource\n *\n * /system-messages/:id operation on system_message resource\n */\nexport const deleteAdminSystemMessagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminSystemMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminSystemMessagesByIdResponses,\n DeleteAdminSystemMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}\",\n ...options,\n });\n\n/**\n * /system-messages/:id operation on system_message resource\n *\n * /system-messages/:id operation on system_message resource\n */\nexport const getAdminSystemMessagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSystemMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSystemMessagesByIdResponses,\n GetAdminSystemMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}\",\n ...options,\n });\n\n/**\n * Edit a system message's content, title, or version\n *\n * Edit a system message's content, title, or version. Use :publish / :unpublish for lifecycle transitions rather than toggling `is_active` via this action.\n */\nexport const patchAdminSystemMessagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSystemMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSystemMessagesByIdResponses,\n PatchAdminSystemMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a pipeline scoped to an application (template) or a specific workspace\n *\n * Create a pipeline scoped to an application (template) or a specific workspace. Returns the created Pipeline with its ordered stages.\n */\nexport const postAdminCrmPipelines = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmPipelinesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmPipelinesResponses,\n PostAdminCrmPipelinesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /catalog/stock-movements/:id operation on catalog_stock_movement resource\n *\n * /catalog/stock-movements/:id operation on catalog_stock_movement resource\n */\nexport const getAdminCatalogStockMovementsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogStockMovementsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogStockMovementsByIdResponses,\n GetAdminCatalogStockMovementsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/stock-movements/{id}\",\n ...options,\n });\n\n/**\n * /crawler/site-configs/:id operation on crawler_site_config resource\n *\n * /crawler/site-configs/:id operation on crawler_site_config resource\n */\nexport const deleteAdminCrawlerSiteConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrawlerSiteConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrawlerSiteConfigsByIdResponses,\n DeleteAdminCrawlerSiteConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs/{id}\",\n ...options,\n });\n\n/**\n * /crawler/site-configs/:id operation on crawler_site_config resource\n *\n * /crawler/site-configs/:id operation on crawler_site_config resource\n */\nexport const getAdminCrawlerSiteConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrawlerSiteConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSiteConfigsByIdResponses,\n GetAdminCrawlerSiteConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs/{id}\",\n ...options,\n });\n\n/**\n * Update rate limits, strategy preference, JS requirement, or headers for an existing site config\n *\n * Update rate limits, strategy preference, JS requirement, or headers for an existing site config. Returns the updated config.\n */\nexport const patchAdminCrawlerSiteConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSiteConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSiteConfigsByIdResponses,\n PatchAdminCrawlerSiteConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/site-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crm/relationship-types operation on crm_relationship_type resource\n *\n * /crm/relationship-types operation on crm_relationship_type resource\n */\nexport const getAdminCrmRelationshipTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmRelationshipTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmRelationshipTypesResponses,\n GetAdminCrmRelationshipTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types\",\n ...options,\n });\n\n/**\n * Define a named relationship category for an application\n *\n * Define a named relationship category for an application. Slug must be unique per\n * application and will be used as the Neo4j edge label (uppercased). System types\n * are created automatically when the :crm capability is enabled.\n *\n */\nexport const postAdminCrmRelationshipTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCrmRelationshipTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmRelationshipTypesResponses,\n PostAdminCrmRelationshipTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationship-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Approve a pending booking, setting status to :confirmed and confirmed_at timestamp\n *\n * Approve a pending booking, setting status to :confirmed and confirmed_at timestamp. Propagates confirmation to the linked Event. Requires scheduling:manage scope. Publishes BookingApproved event.\n */\nexport const patchAdminSchedulingBookingsSchedulingBookingsByIdConfirm = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdConfirmErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/scheduling/bookings/{id}/confirm\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Return platform-wide chat statistics including total threads, total messages, threads active in the last 24h and 7d, message distribution by role, and top 10 workspaces by thread count\n *\n * Return platform-wide chat statistics including total threads, total messages, threads active in the last 24h and 7d, message distribution by role, and top 10 workspaces by thread count. Platform admin access only; returns the single virtual 'platform' record.\n */\nexport const getAdminThreadsStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsStatsResponses,\n GetAdminThreadsStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/stats\",\n ...options,\n });\n\n/**\n * Create a payment token\n *\n * Create a payment token\n */\nexport const postAdminTokens = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTokensData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTokensResponses,\n PostAdminTokensErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tokens\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List role presets (admin, member, viewer, etc.) for a given context (:tenant or :workspace); each preset includes its name, description, and the full permission list it grants.\n *\n * List role presets (admin, member, viewer, etc.) for a given context (:tenant or :workspace); each preset includes its name, description, and the full permission list it grants.\n */\nexport const getAdminPermissionsPresets = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPermissionsPresetsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsPresetsResponses,\n GetAdminPermissionsPresetsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/presets\",\n ...options,\n });\n\n/**\n * Create an ISV tenant with initial credits\n *\n * Create an ISV tenant with initial credits\n */\nexport const postAdminTenantsIsv = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTenantsIsvData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTenantsIsvResponses,\n PostAdminTenantsIsvErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/isv\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a new taxonomy (classification axis) for an application; enforces max_taxonomies quota\n *\n * Create a new taxonomy (classification axis) for an application; enforces max_taxonomies quota. Returns the created taxonomy.\n */\nexport const postAdminCatalogTaxonomies = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogTaxonomiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogTaxonomiesResponses,\n PostAdminCatalogTaxonomiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /breach-notifications operation on breach_notification resource\n *\n * /breach-notifications operation on breach_notification resource\n */\nexport const getAdminBreachNotifications = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminBreachNotificationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachNotificationsResponses,\n GetAdminBreachNotificationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-notifications\",\n ...options,\n });\n\n/**\n * Cancel a booking, recording cancellation_reason and cancelled_by (:booker/:organizer/:system)\n *\n * Cancel a booking, recording cancellation_reason and cancelled_by (:booker/:organizer/:system). Propagates cancellation to the linked Event. Publishes BookingCancelled event.\n */\nexport const patchAdminSchedulingBookingsSchedulingBookingsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelResponses,\n PatchAdminSchedulingBookingsSchedulingBookingsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/scheduling/bookings/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Pause calendar sync by setting sync_status to :paused\n *\n * Pause calendar sync by setting sync_status to :paused. SyncWorker and CalendarPollWorker skip paused syncs. Use :resume to re-enable.\n */\nexport const patchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPause =\n <ThrowOnError extends boolean = false>(\n options: Options<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseData,\n ThrowOnError\n >,\n ) =>\n (options.client ?? client).patch<\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseResponses,\n PatchAdminSchedulingCalendarSyncsSchedulingCalendarSyncsByIdPauseErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/calendar-syncs/scheduling/calendar-syncs/{id}/pause\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Dispatch accumulated transcript to the blueprint/chat pipeline\n *\n * Dispatch accumulated transcript to the blueprint/chat pipeline\n */\nexport const patchAdminVoiceSessionsByIdFinalize = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminVoiceSessionsByIdFinalizeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminVoiceSessionsByIdFinalizeResponses,\n PatchAdminVoiceSessionsByIdFinalizeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/{id}/finalize\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Full-text search messages by substring match on content within the actor's accessible threads\n *\n * Full-text search messages by substring match on content within the actor's accessible threads. For AI-powered similarity search, use :semantic_search instead.\n */\nexport const getAdminMessagesSearch = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminMessagesSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesSearchResponses,\n GetAdminMessagesSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/search\",\n ...options,\n });\n\n/**\n * Reset budget period (for testing or manual reset)\n *\n * Reset budget period (for testing or manual reset)\n */\nexport const patchAdminApiKeysByIdResetPeriod = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdResetPeriodData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdResetPeriodResponses,\n PatchAdminApiKeysByIdResetPeriodErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/reset-period\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /voice/transcription-results operation on voice_transcription_result resource\n *\n * /voice/transcription-results operation on voice_transcription_result resource\n */\nexport const getAdminVoiceTranscriptionResults = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminVoiceTranscriptionResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceTranscriptionResultsResponses,\n GetAdminVoiceTranscriptionResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/transcription-results\",\n ...options,\n });\n\n/**\n * /voice/transcription-results operation on voice_transcription_result resource\n *\n * /voice/transcription-results operation on voice_transcription_result resource\n */\nexport const postAdminVoiceTranscriptionResults = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminVoiceTranscriptionResultsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminVoiceTranscriptionResultsResponses,\n PostAdminVoiceTranscriptionResultsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/transcription-results\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /storage-files/:id operation on storage_file resource\n *\n * /storage-files/:id operation on storage_file resource\n */\nexport const getAdminStorageFilesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminStorageFilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageFilesByIdResponses,\n GetAdminStorageFilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files/{id}\",\n ...options,\n });\n\n/**\n * Update file metadata, tags, visibility, key, namespace, or status\n *\n * Update file metadata, tags, visibility, key, namespace, or status. Returns the updated file.\n */\nexport const patchAdminStorageFilesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminStorageFilesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminStorageFilesByIdResponses,\n PatchAdminStorageFilesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Dedup-aware upload: returns existing document if file_hash matches, otherwise creates new document\n *\n * Dedup-aware upload: returns existing document if file_hash matches, otherwise creates new document\n */\nexport const postAdminExtractionDocumentsFindOrBeginUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminExtractionDocumentsFindOrBeginUploadData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionDocumentsFindOrBeginUploadResponses,\n PostAdminExtractionDocumentsFindOrBeginUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/find-or-begin-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Remove a system field from this version's schema\n *\n * Remove a system field from this version's schema\n */\nexport const postAdminAgentVersionsByIdRemoveSystemField = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminAgentVersionsByIdRemoveSystemFieldData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionsByIdRemoveSystemFieldResponses,\n PostAdminAgentVersionsByIdRemoveSystemFieldErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-versions/{id}/remove-system-field\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all values for an option type ordered by position\n *\n * List all values for an option type ordered by position. Returns a paginated list.\n */\nexport const getAdminCatalogOptionValuesOptionTypeByOptionTypeId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdResponses,\n GetAdminCatalogOptionValuesOptionTypeByOptionTypeIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/option-values/option-type/{option_type_id}\",\n ...options,\n });\n\n/**\n * Get API keys with usage statistics for a tenant\n *\n * Get API keys with usage statistics for a tenant\n */\nexport const getAdminApiKeysStats = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysStatsResponses,\n GetAdminApiKeysStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/stats\",\n ...options,\n });\n\n/**\n * List all active event types for a workspace\n *\n * List all active event types for a workspace. Excludes archived types. Use :by_slug for public booking page resolution.\n */\nexport const getAdminSchedulingEventTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingEventTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingEventTypesResponses,\n GetAdminSchedulingEventTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types\",\n ...options,\n });\n\n/**\n * Create an event type template for a workspace\n *\n * Create an event type template for a workspace. Sets slug (unique per workspace), duration,\n * buffer times, location, approval requirements, and intake form. Indexes in Meilisearch for\n * search. Returns the created EventType. Use :update to change it later — slug cannot be changed.\n *\n */\nexport const postAdminSchedulingEventTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingEventTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingEventTypesResponses,\n PostAdminSchedulingEventTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/event-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * AI-draft an email from a prompt and context map.\n *\n * AI-draft an email from a prompt and context map.\n */\nexport const postAdminEmailOutboundEmailsComposeWithAi = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailOutboundEmailsComposeWithAiData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailOutboundEmailsComposeWithAiResponses,\n PostAdminEmailOutboundEmailsComposeWithAiErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/compose-with-ai\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all custom field definitions for a given application and entity type\n *\n * List all custom field definitions for a given application and entity type. Use to build dynamic UI forms or validate entity properties.\n */\nexport const getAdminIsvCrmFieldDefinitionsEntityTypeByEntityType = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeResponses,\n GetAdminIsvCrmFieldDefinitionsEntityTypeByEntityTypeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/field-definitions/entity-type/{entity_type}\",\n ...options,\n });\n\n/**\n * List current user's voice sessions\n *\n * List current user's voice sessions\n */\nexport const getAdminVoiceSessionsMine = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminVoiceSessionsMineData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceSessionsMineResponses,\n GetAdminVoiceSessionsMineErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/sessions/mine\",\n ...options,\n });\n\n/**\n * /breach-incidents operation on breach_incident resource\n *\n * /breach-incidents operation on breach_incident resource\n */\nexport const getAdminBreachIncidents = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBreachIncidentsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBreachIncidentsResponses,\n GetAdminBreachIncidentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents\",\n ...options,\n });\n\n/**\n * Report a new data breach or security incident\n *\n * Report a new data breach or security incident. Automatically calculates the 72-hour GDPR notification deadline from `discovery_date`. Returns the created incident with the computed deadline.\n */\nexport const postAdminBreachIncidents = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminBreachIncidentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminBreachIncidentsResponses,\n PostAdminBreachIncidentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/breach-incidents\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single reminder by ID\n *\n * Fetch a single reminder by ID. Returns channel, status, scheduled_at, and recipient_participant_id.\n */\nexport const getAdminSchedulingRemindersById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingRemindersByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingRemindersByIdResponses,\n GetAdminSchedulingRemindersByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/reminders/{id}\",\n ...options,\n });\n\n/**\n * Update the value, description, or sensitivity flag for an existing config entry; automatically invalidates the FetchConfig cache for the key\n *\n * Update the value, description, or sensitivity flag for an existing config entry; automatically invalidates the FetchConfig cache for the key. Returns the updated config.\n */\nexport const patchAdminConfigsByKey = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminConfigsByKeyData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminConfigsByKeyResponses,\n PatchAdminConfigsByKeyErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/configs/{key}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /isv-revenue operation on isv_revenue resource\n *\n * /isv-revenue operation on isv_revenue resource\n */\nexport const getAdminIsvRevenue = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminIsvRevenueData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminIsvRevenueResponses,\n GetAdminIsvRevenueErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-revenue\",\n ...options,\n });\n\n/**\n * /isv-revenue operation on isv_revenue resource\n *\n * /isv-revenue operation on isv_revenue resource\n */\nexport const postAdminIsvRevenue = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminIsvRevenueData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvRevenueResponses,\n PostAdminIsvRevenueErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv-revenue\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /users/auth/magic-link/request operation on user resource\n *\n * /users/auth/magic-link/request operation on user resource\n */\nexport const postAdminUsersAuthMagicLinkRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthMagicLinkRequestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthMagicLinkRequestResponses,\n PostAdminUsersAuthMagicLinkRequestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/magic-link/request\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Reset password using admin-issued reset token\n *\n * Reset password using admin-issued reset token\n */\nexport const patchAdminUsersAuthResetPassword = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersAuthResetPasswordData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersAuthResetPasswordResponses,\n PatchAdminUsersAuthResetPasswordErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/reset-password\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /extraction-workflows operation on extraction_workflow resource\n *\n * /extraction-workflows operation on extraction_workflow resource\n */\nexport const getAdminExtractionWorkflows = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionWorkflowsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionWorkflowsResponses,\n GetAdminExtractionWorkflowsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows\",\n ...options,\n });\n\n/**\n * /extraction-workflows operation on extraction_workflow resource\n *\n * /extraction-workflows operation on extraction_workflow resource\n */\nexport const postAdminExtractionWorkflows = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminExtractionWorkflowsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminExtractionWorkflowsResponses,\n PostAdminExtractionWorkflowsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction-workflows\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Submit human corrections to improve agent training\n *\n * Submit human corrections to improve agent training. Delegates to the registered training\n * handler (provided by the Extraction domain at boot via `RegistryCoordinator`). The handler\n * creates a `TrainingSession`, applies corrections to the `ExtractionResult` via\n * `:save_corrections`, and creates `TrainingExample` records for few-shot learning.\n *\n * Cannot be called on system agents (`is_system: true`). The `verify_remaining` flag (default\n * `true`) implicitly marks untouched fields as verified.\n *\n * Returns the agent struct with updated training metadata.\n *\n */\nexport const postAdminAgentsByIdTeach = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdTeachData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdTeachResponses,\n PostAdminAgentsByIdTeachErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/teach\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Lightweight poll endpoint: fetches only `id`, `status`, `progress`, and `error_message` for\n * a single document\n *\n * Lightweight poll endpoint: fetches only `id`, `status`, `progress`, and `error_message` for\n * a single document. Use this to check processing progress without loading the full record.\n * For real-time updates, subscribe to the `extraction:document` PubSub topic instead.\n *\n */\nexport const getAdminExtractionDocumentsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionDocumentsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsByIdStatusResponses,\n GetAdminExtractionDocumentsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/status\",\n ...options,\n });\n\n/**\n * Internal-facing status update used by the web layer and API to set processing state\n *\n * Internal-facing status update used by the web layer and API to set processing state.\n * Accepts a broad set of fields including status, progress, classification results, and\n * agent tracking metadata. Broadcasts a document status update to the workspace WebSocket\n * channel after every change so connected clients receive live progress updates.\n *\n * Use `:report_progress` for worker-internal progress reporting (same fields, no broadcast).\n *\n */\nexport const patchAdminExtractionDocumentsByIdStatus = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminExtractionDocumentsByIdStatusData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdStatusResponses,\n PatchAdminExtractionDocumentsByIdStatusErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/status\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all active availability rules for a workspace\n *\n * List all active availability rules for a workspace. Excludes deactivated rules. Use :list_by_user or :list_by_event_type to narrow by owner.\n */\nexport const getAdminSchedulingAvailabilityRules = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingAvailabilityRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingAvailabilityRulesResponses,\n GetAdminSchedulingAvailabilityRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules\",\n ...options,\n });\n\n/**\n * Create an availability rule for a user or event type\n *\n * Create an availability rule for a user or event type. Type :recurring defines weekly windows; type :override modifies a specific date. Use :set_weekly_hours/:add_date_override for AI tool access to this action.\n */\nexport const postAdminSchedulingAvailabilityRules = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSchedulingAvailabilityRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSchedulingAvailabilityRulesResponses,\n PostAdminSchedulingAvailabilityRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/availability-rules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /wholesale-agreements operation on wholesale-agreement resource\n *\n * /wholesale-agreements operation on wholesale-agreement resource\n */\nexport const getAdminWholesaleAgreements = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminWholesaleAgreementsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminWholesaleAgreementsResponses,\n GetAdminWholesaleAgreementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements\",\n ...options,\n });\n\n/**\n * /wholesale-agreements operation on wholesale-agreement resource\n *\n * /wholesale-agreements operation on wholesale-agreement resource\n */\nexport const postAdminWholesaleAgreements = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWholesaleAgreementsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWholesaleAgreementsResponses,\n PostAdminWholesaleAgreementsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wholesale-agreements\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all active (non-deleted) products in a workspace\n *\n * List all active (non-deleted) products in a workspace. Use search for full-text or semantic filtering.\n */\nexport const getAdminCatalogProductsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogProductsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogProductsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogProductsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/products/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /crm/pipeline-stages/:id operation on crm_pipeline_stage resource\n *\n * /crm/pipeline-stages/:id operation on crm_pipeline_stage resource\n */\nexport const deleteAdminCrmPipelineStagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmPipelineStagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmPipelineStagesByIdResponses,\n DeleteAdminCrmPipelineStagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages/{id}\",\n ...options,\n });\n\n/**\n * /crm/pipeline-stages/:id operation on crm_pipeline_stage resource\n *\n * /crm/pipeline-stages/:id operation on crm_pipeline_stage resource\n */\nexport const getAdminCrmPipelineStagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCrmPipelineStagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmPipelineStagesByIdResponses,\n GetAdminCrmPipelineStagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages/{id}\",\n ...options,\n });\n\n/**\n * Update a pipeline stage's name, order, probability, or closed flag\n *\n * Update a pipeline stage's name, order, probability, or closed flag. Re-ordering requires ensuring uniqueness across sibling stages.\n */\nexport const patchAdminCrmPipelineStagesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmPipelineStagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmPipelineStagesByIdResponses,\n PatchAdminCrmPipelineStagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipeline-stages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /isv/crm/sync-configs/:id operation on crm_sync_config resource\n *\n * /isv/crm/sync-configs/:id operation on crm_sync_config resource\n */\nexport const deleteAdminIsvCrmSyncConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminIsvCrmSyncConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminIsvCrmSyncConfigsByIdResponses,\n DeleteAdminIsvCrmSyncConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs/{id}\",\n ...options,\n });\n\n/**\n * Update connector sync settings\n *\n * Update connector sync settings. Invalidates the sync config cache for the workspace+connector pair after the update.\n */\nexport const patchAdminIsvCrmSyncConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminIsvCrmSyncConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminIsvCrmSyncConfigsByIdResponses,\n PatchAdminIsvCrmSyncConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/sync-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Generate a 2-3 sentence LLM summary of the thread's message history and persist it as `context_summary`\n *\n * Generate a 2-3 sentence LLM summary of the thread's message history and persist it as `context_summary`. Returns the updated Thread. If LLM fails, returns the thread unchanged without erroring.\n */\nexport const postAdminThreadsByIdSummarize = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminThreadsByIdSummarizeData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdSummarizeResponses,\n PostAdminThreadsByIdSummarizeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/summarize\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Update a schema version without creating a new version\n *\n * Update a schema version without creating a new version\n */\nexport const patchAdminAgentsByIdSchemaVersionsByVersionId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminAgentsByIdSchemaVersionsByVersionIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminAgentsByIdSchemaVersionsByVersionIdResponses,\n PatchAdminAgentsByIdSchemaVersionsByVersionIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions/{version_id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Record that a document has been used for agent training\n *\n * Record that a document has been used for agent training. Sets `training_metadata[\"trained_at\"]`\n * and `training_metadata[\"trained_by_user_id\"]` and clears any prior `dismissed_at` so the\n * document reappears in the `:list_trained` view.\n *\n * Use this to manually mark a document as trained when the automatic training flow (via\n * `save_corrections`) was not used.\n *\n */\nexport const patchAdminExtractionDocumentsByIdMarkTrained = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdMarkTrainedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdMarkTrainedResponses,\n PatchAdminExtractionDocumentsByIdMarkTrainedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/mark-trained\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /voice/recordings/:id operation on voice_recording resource\n *\n * /voice/recordings/:id operation on voice_recording resource\n */\nexport const getAdminVoiceRecordingsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminVoiceRecordingsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceRecordingsByIdResponses,\n GetAdminVoiceRecordingsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/recordings/{id}\",\n ...options,\n });\n\n/**\n * /email-marketing/generated-emails/:id/approve operation on email-marketing-generated-email resource\n *\n * /email-marketing/generated-emails/:id/approve operation on email-marketing-generated-email resource\n */\nexport const patchAdminEmailMarketingGeneratedEmailsByIdApprove = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveResponses,\n PatchAdminEmailMarketingGeneratedEmailsByIdApproveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/generated-emails/{id}/approve\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a taxonomy by setting deleted_at; cascades to exclude nodes from future reads\n *\n * Soft-delete a taxonomy by setting deleted_at; cascades to exclude nodes from future reads. Irreversible via API.\n */\nexport const deleteAdminCatalogTaxonomiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogTaxonomiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogTaxonomiesByIdResponses,\n DeleteAdminCatalogTaxonomiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/{id}\",\n ...options,\n });\n\n/**\n * /catalog/taxonomies/:id operation on catalog_taxonomy resource\n *\n * /catalog/taxonomies/:id operation on catalog_taxonomy resource\n */\nexport const getAdminCatalogTaxonomiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogTaxonomiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomiesByIdResponses,\n GetAdminCatalogTaxonomiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/{id}\",\n ...options,\n });\n\n/**\n * Update taxonomy metadata (name, slug, hierarchy settings)\n *\n * Update taxonomy metadata (name, slug, hierarchy settings). Returns the updated taxonomy.\n */\nexport const patchAdminCatalogTaxonomiesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogTaxonomiesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogTaxonomiesByIdResponses,\n PatchAdminCatalogTaxonomiesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Cancel a subscription\n *\n * Cancel a subscription\n */\nexport const patchAdminSubscriptionsByIdCancel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminSubscriptionsByIdCancelData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminSubscriptionsByIdCancelResponses,\n PatchAdminSubscriptionsByIdCancelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/{id}/cancel\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Revoke an API key, setting its status to :revoked and recording the revocation\n * timestamp\n *\n * Revoke an API key, setting its status to :revoked and recording the revocation\n * timestamp. Triggers smart credit reclaim: any unspent credits allocated to this\n * key are returned to the App Treasury or Tenant Wallet. Invalidates the Redis\n * auth cache. Revoked keys cannot be re-activated; rotate to issue a replacement.\n *\n */\nexport const patchAdminApiKeysByIdRevoke = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdRevokeData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdRevokeResponses,\n PatchAdminApiKeysByIdRevokeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/revoke\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /campaigns/sequence-steps/:id operation on email-marketing-sequence-step resource\n *\n * /campaigns/sequence-steps/:id operation on email-marketing-sequence-step resource\n */\nexport const deleteAdminCampaignsSequenceStepsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCampaignsSequenceStepsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCampaignsSequenceStepsByIdResponses,\n DeleteAdminCampaignsSequenceStepsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequence-steps/{id}\",\n ...options,\n });\n\n/**\n * /campaigns/sequence-steps/:id operation on email-marketing-sequence-step resource\n *\n * /campaigns/sequence-steps/:id operation on email-marketing-sequence-step resource\n */\nexport const getAdminCampaignsSequenceStepsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCampaignsSequenceStepsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCampaignsSequenceStepsByIdResponses,\n GetAdminCampaignsSequenceStepsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequence-steps/{id}\",\n ...options,\n });\n\n/**\n * /campaigns/sequence-steps/:id operation on email-marketing-sequence-step resource\n *\n * /campaigns/sequence-steps/:id operation on email-marketing-sequence-step resource\n */\nexport const patchAdminCampaignsSequenceStepsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCampaignsSequenceStepsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCampaignsSequenceStepsByIdResponses,\n PatchAdminCampaignsSequenceStepsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/campaigns/sequence-steps/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Find all Entity vertices with an exact label match; use to look up a specific named entity in the knowledge graph.\n *\n * Find all Entity vertices with an exact label match; use to look up a specific named entity in the knowledge graph.\n */\nexport const getAdminAiGraphNodesLabelByLabel = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAiGraphNodesLabelByLabelData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiGraphNodesLabelByLabelResponses,\n GetAdminAiGraphNodesLabelByLabelErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes/label/{label}\",\n ...options,\n });\n\n/**\n * /sys/ai-config operation on ai_config resource\n *\n * /sys/ai-config operation on ai_config resource\n */\nexport const getAdminSysAiConfig = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSysAiConfigData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSysAiConfigResponses,\n GetAdminSysAiConfigErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config\",\n ...options,\n });\n\n/**\n * Upsert a provider config record; if a record with the same id already exists, its fields are updated\n *\n * Upsert a provider config record; if a record with the same id already exists, its fields are updated. Use id='global' for platform defaults or id='app:<application_id>' for per-application overrides.\n */\nexport const postAdminSysAiConfig = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSysAiConfigData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSysAiConfigResponses,\n PostAdminSysAiConfigErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/ai-config\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /ledger operation on ledger resource\n *\n * /ledger operation on ledger resource\n */\nexport const getAdminLedger = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLedgerData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLedgerResponses,\n GetAdminLedgerErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ledger\",\n ...options,\n });\n\n/**\n * Get the current user's profile\n *\n * Get the current user's profile\n */\nexport const getAdminUserProfilesMe = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUserProfilesMeData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUserProfilesMeResponses,\n GetAdminUserProfilesMeErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles/me\",\n ...options,\n });\n\n/**\n * List active taxonomies for an application\n *\n * List active taxonomies for an application. Returns a paginated list of classification axes.\n */\nexport const getAdminCatalogTaxonomiesApplicationByApplicationId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogTaxonomiesApplicationByApplicationIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogTaxonomiesApplicationByApplicationIdResponses,\n GetAdminCatalogTaxonomiesApplicationByApplicationIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/taxonomies/application/{application_id}\",\n ...options,\n });\n\n/**\n * /system-messages operation on system_message resource\n *\n * /system-messages operation on system_message resource\n */\nexport const getAdminSystemMessages = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSystemMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSystemMessagesResponses,\n GetAdminSystemMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages\",\n ...options,\n });\n\n/**\n * Create a new platform-wide system message (ToS, privacy policy, welcome, or announcement)\n *\n * Create a new platform-wide system message (ToS, privacy policy, welcome, or announcement). If `is_active` is true at creation time, `published_at` is automatically set. Only platform admins can successfully create records; all other actors are denied by policy.\n */\nexport const postAdminSystemMessages = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSystemMessagesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSystemMessagesResponses,\n PostAdminSystemMessagesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/system-messages\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List or fetch buckets; excludes processing-type buckets by default\n *\n * List or fetch buckets; excludes processing-type buckets by default. Use read_all to include system buckets.\n */\nexport const getAdminBuckets = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsResponses,\n GetAdminBucketsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets\",\n ...options,\n });\n\n/**\n * Create a bucket record and provision it in object storage (GCS in prod, MinIO in dev); sets lifecycle rules and public policy if type is :public\n *\n * Create a bucket record and provision it in object storage (GCS in prod, MinIO in dev); sets lifecycle rules and public policy if type is :public. Returns the created bucket.\n */\nexport const postAdminBuckets = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminBucketsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminBucketsResponses,\n PostAdminBucketsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /data-subject-requests/:id operation on data_subject_request resource\n *\n * /data-subject-requests/:id operation on data_subject_request resource\n */\nexport const getAdminDataSubjectRequestsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminDataSubjectRequestsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminDataSubjectRequestsByIdResponses,\n GetAdminDataSubjectRequestsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/data-subject-requests/{id}\",\n ...options,\n });\n\n/**\n * Check Meilisearch server health, returning status and latency\n *\n * Check Meilisearch server health, returning status and latency. Use this for monitoring and readiness checks; returns `{status: 'available', latency_ms: N}` on success.\n */\nexport const getAdminSearchHealth = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSearchHealthData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchHealthResponses,\n GetAdminSearchHealthErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/health\",\n ...options,\n });\n\n/**\n * Stateless MJML → HTML compilation\n *\n * Stateless MJML → HTML compilation. Does not save. Returns %{html, variables, errors}.\n */\nexport const postAdminEmailMarketingTemplatesCompile = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingTemplatesCompileData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingTemplatesCompileResponses,\n PostAdminEmailMarketingTemplatesCompileErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/compile\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Accept an invitation using only the token\n *\n * Accept an invitation using only the token\n */\nexport const postAdminInvitationsAcceptByToken = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminInvitationsAcceptByTokenData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminInvitationsAcceptByTokenResponses,\n PostAdminInvitationsAcceptByTokenErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/accept-by-token\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Generate a 6-digit verification code, store it as `verification_token`, and record `verification_sent_at`\n *\n * Generate a 6-digit verification code, store it as `verification_token`, and record `verification_sent_at`. The caller is responsible for delivering the code to the user via the configured channel.\n */\nexport const patchAdminNotificationMethodsByIdSendVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminNotificationMethodsByIdSendVerificationData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminNotificationMethodsByIdSendVerificationResponses,\n PatchAdminNotificationMethodsByIdSendVerificationErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods/{id}/send-verification\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crawler/jobs/:id operation on crawler_job resource\n *\n * /crawler/jobs/:id operation on crawler_job resource\n */\nexport const deleteAdminCrawlerJobsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrawlerJobsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrawlerJobsByIdResponses,\n DeleteAdminCrawlerJobsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs/{id}\",\n ...options,\n });\n\n/**\n * /crawler/jobs/:id operation on crawler_job resource\n *\n * /crawler/jobs/:id operation on crawler_job resource\n */\nexport const getAdminCrawlerJobsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerJobsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerJobsByIdResponses,\n GetAdminCrawlerJobsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/jobs/{id}\",\n ...options,\n });\n\n/**\n * /connectors/:id operation on connector_instance resource\n *\n * /connectors/:id operation on connector_instance resource\n */\nexport const deleteAdminConnectorsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminConnectorsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminConnectorsByIdResponses,\n DeleteAdminConnectorsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}\",\n ...options,\n });\n\n/**\n * /connectors/:id operation on connector_instance resource\n *\n * /connectors/:id operation on connector_instance resource\n */\nexport const getAdminConnectorsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConnectorsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConnectorsByIdResponses,\n GetAdminConnectorsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}\",\n ...options,\n });\n\n/**\n * Update a connector instance's name, configuration, sync interval, health status, or metadata\n *\n * Update a connector instance's name, configuration, sync interval, health status, or metadata.\n * Use this to modify the connector's connection config after installation (e.g., changing sync\n * frequency or updating API base URL). Does not affect stored credentials or tool definitions.\n *\n * Returns the updated connector instance record.\n *\n */\nexport const patchAdminConnectorsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminConnectorsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminConnectorsByIdResponses,\n PatchAdminConnectorsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Set multiple delivery records to `:retrying` status in bulk\n *\n * Set multiple delivery records to `:retrying` status in bulk. Authorization is actor-scoped — only deliveries the actor can update are affected. Returns `{success: true, count: N}`.\n */\nexport const postAdminWebhookDeliveriesBulkRetry = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookDeliveriesBulkRetryData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookDeliveriesBulkRetryResponses,\n PostAdminWebhookDeliveriesBulkRetryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/bulk-retry\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Dismiss a trained document from the active-learning training dashboard without excluding it\n * from future training\n *\n * Dismiss a trained document from the active-learning training dashboard without excluding it\n * from future training. Sets `training_metadata[\"dismissed_at\"]` so the document no longer\n * appears in the `:list_trained` view, but it can still be found via `:read` or `:list_by_workspace`.\n *\n * Use `:mark_trained` to record that a document was trained, or `:exclude_from_training` to\n * prevent it from being used for training entirely.\n *\n */\nexport const patchAdminExtractionDocumentsByIdDismissTraining = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdDismissTrainingData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdDismissTrainingResponses,\n PatchAdminExtractionDocumentsByIdDismissTrainingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/dismiss-training\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Bulk-destroy all semantic cache entries (platform admin only); requires confirm: true as a safety gate\n *\n * Bulk-destroy all semantic cache entries (platform admin only); requires confirm: true as a safety gate. Returns a dummy struct on success.\n */\nexport const postAdminSysSemanticCacheClear = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminSysSemanticCacheClearData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSysSemanticCacheClearResponses,\n PostAdminSysSemanticCacheClearErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/sys/semantic-cache/clear\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Check if a patient exists in Fullscript by email\n *\n * Check if a patient exists in Fullscript by email\n */\nexport const postAdminConnectorsFullscriptCheckPatient = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsFullscriptCheckPatientData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsFullscriptCheckPatientResponses,\n PostAdminConnectorsFullscriptCheckPatientErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/fullscript/check-patient\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Restores body_mjml from a previously published TemplateVersion snapshot.\n *\n * Restores body_mjml from a previously published TemplateVersion snapshot.\n */\nexport const patchAdminEmailMarketingTemplatesByIdRollback = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdRollbackData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdRollbackResponses,\n PatchAdminEmailMarketingTemplatesByIdRollbackErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/rollback\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /notification-methods operation on notification_method resource\n *\n * /notification-methods operation on notification_method resource\n */\nexport const getAdminNotificationMethods = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminNotificationMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminNotificationMethodsResponses,\n GetAdminNotificationMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods\",\n ...options,\n });\n\n/**\n * Register a new notification delivery channel for a user (email address, phone number, Slack webhook, or generic webhook URL)\n *\n * Register a new notification delivery channel for a user (email address, phone number, Slack webhook, or generic webhook URL). The method starts unverified; call :send_verification then :verify to activate it.\n */\nexport const postAdminNotificationMethods = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminNotificationMethodsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminNotificationMethodsResponses,\n PostAdminNotificationMethodsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/notification-methods\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all schema versions for this agent\n *\n * List all schema versions for this agent\n */\nexport const getAdminAgentsByIdSchemaVersions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminAgentsByIdSchemaVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsByIdSchemaVersionsResponses,\n GetAdminAgentsByIdSchemaVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions\",\n ...options,\n });\n\n/**\n * Create a new schema version for this agent\n *\n * Create a new schema version for this agent\n */\nexport const postAdminAgentsByIdSchemaVersions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdSchemaVersionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdSchemaVersionsResponses,\n PostAdminAgentsByIdSchemaVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/schema-versions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List excluded documents\n *\n * List excluded documents\n */\nexport const getAdminExtractionDocumentsWorkspaceByWorkspaceIdExcluded = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedResponses,\n GetAdminExtractionDocumentsWorkspaceByWorkspaceIdExcludedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/workspace/{workspace_id}/excluded\",\n ...options,\n });\n\n/**\n * List active custom entities in a workspace, optionally filtered by type slug and\n * attribute-level property filters\n *\n * List active custom entities in a workspace, optionally filtered by type slug and\n * attribute-level property filters. Filters are applied Elixir-side on the properties\n * JSONB field after fetch.\n *\n */\nexport const getAdminCrmCustomEntitiesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCustomEntitiesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Rotate an API key by generating a new token while preserving the key's id,\n * metadata, and configuration\n *\n * Rotate an API key by generating a new token while preserving the key's id,\n * metadata, and configuration. The new raw token is returned once in the\n * generated_api_key calculation field and cannot be retrieved again. Preserves\n * the existing prefix type (sk_tenant_, sk_app_, etc.) and ensures application\n * keys retain all scopes. Invalidates the Redis auth cache for the old token.\n * Use :revoke if the key should be permanently deactivated instead.\n *\n */\nexport const patchAdminApiKeysByIdRotate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApiKeysByIdRotateData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApiKeysByIdRotateResponses,\n PatchAdminApiKeysByIdRotateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/{id}/rotate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/inclusions/:id operation on email-inclusion resource\n *\n * /email/inclusions/:id operation on email-inclusion resource\n */\nexport const deleteAdminEmailInclusionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailInclusionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailInclusionsByIdResponses,\n DeleteAdminEmailInclusionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/inclusions/{id}\",\n ...options,\n });\n\n/**\n * /email/inclusions/:id operation on email-inclusion resource\n *\n * /email/inclusions/:id operation on email-inclusion resource\n */\nexport const getAdminEmailInclusionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailInclusionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailInclusionsByIdResponses,\n GetAdminEmailInclusionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/inclusions/{id}\",\n ...options,\n });\n\n/**\n * /email/inclusions/:id operation on email-inclusion resource\n *\n * /email/inclusions/:id operation on email-inclusion resource\n */\nexport const patchAdminEmailInclusionsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailInclusionsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailInclusionsByIdResponses,\n PatchAdminEmailInclusionsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/inclusions/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crm/deal-products operation on crm_deal_product resource\n *\n * /crm/deal-products operation on crm_deal_product resource\n */\nexport const getAdminCrmDealProducts = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmDealProductsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmDealProductsResponses,\n GetAdminCrmDealProductsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deal-products\",\n ...options,\n });\n\n/**\n * Link a catalog product to a deal with quantity and negotiated unit price\n *\n * Link a catalog product to a deal with quantity and negotiated unit price. product_id is a weak UUID reference (no FK constraint). Returns the created DealProduct record.\n */\nexport const postAdminCrmDealProducts = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmDealProductsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmDealProductsResponses,\n PostAdminCrmDealProductsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deal-products\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /ai/graph/nodes/:id operation on graph_node resource\n *\n * /ai/graph/nodes/:id operation on graph_node resource\n */\nexport const deleteAdminAiGraphNodesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminAiGraphNodesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminAiGraphNodesByIdResponses,\n DeleteAdminAiGraphNodesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/graph/nodes/{id}\",\n ...options,\n });\n\n/**\n * Delete a bucket from the database and attempt to remove it from object storage; fails if any StorageFile records still reference this bucket.\n *\n * Delete a bucket from the database and attempt to remove it from object storage; fails if any StorageFile records still reference this bucket.\n */\nexport const deleteAdminBucketsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminBucketsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminBucketsByIdResponses,\n DeleteAdminBucketsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}\",\n ...options,\n });\n\n/**\n * List or fetch buckets; excludes processing-type buckets by default\n *\n * List or fetch buckets; excludes processing-type buckets by default. Use read_all to include system buckets.\n */\nexport const getAdminBucketsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsByIdResponses,\n GetAdminBucketsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}\",\n ...options,\n });\n\n/**\n * Update the region of an existing bucket\n *\n * Update the region of an existing bucket. Returns the updated bucket.\n */\nexport const patchAdminBucketsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminBucketsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminBucketsByIdResponses,\n PatchAdminBucketsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch the most recent acceptance record for a given user and document type\n *\n * Fetch the most recent acceptance record for a given user and document type. Use this to check whether a user has accepted the current version of a ToS or Privacy Policy before gating access.\n */\nexport const getAdminLegalAcceptancesLatest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalAcceptancesLatestData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalAcceptancesLatestResponses,\n GetAdminLegalAcceptancesLatestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-acceptances/latest\",\n ...options,\n });\n\n/**\n * /configs operation on config resource\n *\n * /configs operation on config resource\n */\nexport const getAdminConfigs = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConfigsResponses,\n GetAdminConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/configs\",\n ...options,\n });\n\n/**\n * Create or upsert a platform config entry by key; if the key already exists its value, description, and sensitivity flag are updated\n *\n * Create or upsert a platform config entry by key; if the key already exists its value, description, and sensitivity flag are updated. Automatically invalidates the FetchConfig cache. Returns the record.\n */\nexport const postAdminConfigs = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminConfigsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConfigsResponses,\n PostAdminConfigsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/configs\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /threads/:id operation on thread resource\n *\n * /threads/:id operation on thread resource\n */\nexport const deleteAdminThreadsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminThreadsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminThreadsByIdResponses,\n DeleteAdminThreadsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}\",\n ...options,\n });\n\n/**\n * /threads/:id operation on thread resource\n *\n * /threads/:id operation on thread resource\n */\nexport const getAdminThreadsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminThreadsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminThreadsByIdResponses,\n GetAdminThreadsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}\",\n ...options,\n });\n\n/**\n * Update the thread's title or context summary\n *\n * Update the thread's title or context summary. Use :archive/:unarchive for lifecycle state changes and :process_message to add turns.\n */\nexport const patchAdminThreadsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminThreadsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminThreadsByIdResponses,\n PatchAdminThreadsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Define a new custom entity type for the application (e.g., 'client_goals', 'session')\n *\n * Define a new custom entity type for the application (e.g., 'client_goals', 'session').\n * Slug must not conflict with core types and is limited to 3-50 characters. Max 20 types\n * per application; max 100 field definitions per type. Returns the created CustomEntityType.\n *\n */\nexport const postAdminIsvCrmEntityTypes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminIsvCrmEntityTypesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminIsvCrmEntityTypesResponses,\n PostAdminIsvCrmEntityTypesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/isv/crm/entity-types\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Purchase an add-on for the wallet\n *\n * Purchase an add-on for the wallet\n */\nexport const patchAdminWalletAddons = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminWalletAddonsData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWalletAddonsResponses,\n PatchAdminWalletAddonsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/wallet/addons\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a product variant (SKU, price override, option values); enforces max_variants_per_product quota\n *\n * Create a product variant (SKU, price override, option values); enforces max_variants_per_product quota. Returns the created variant.\n */\nexport const postAdminCatalogProductVariants = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminCatalogProductVariantsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCatalogProductVariantsResponses,\n PostAdminCatalogProductVariantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/product-variants\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Compiles MJML, snapshots to published_body_html, creates TemplateVersion, bumps current_version.\n *\n * Compiles MJML, snapshots to published_body_html, creates TemplateVersion, bumps current_version.\n */\nexport const patchAdminEmailMarketingTemplatesByIdPublish = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingTemplatesByIdPublishData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingTemplatesByIdPublishResponses,\n PatchAdminEmailMarketingTemplatesByIdPublishErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/templates/{id}/publish\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /messages/:id operation on message resource\n *\n * /messages/:id operation on message resource\n */\nexport const deleteAdminMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminMessagesByIdResponses,\n DeleteAdminMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/{id}\",\n ...options,\n });\n\n/**\n * /messages/:id operation on message resource\n *\n * /messages/:id operation on message resource\n */\nexport const getAdminMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminMessagesByIdResponses,\n GetAdminMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/{id}\",\n ...options,\n });\n\n/**\n * Edit a message's content, role, or metadata\n *\n * Edit a message's content, role, or metadata. Re-enqueues vectorization so the embedding stays current with the new content.\n */\nexport const patchAdminMessagesById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminMessagesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminMessagesByIdResponses,\n PatchAdminMessagesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/messages/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /platform-pricing-configs/:id operation on platform-pricing-config resource\n *\n * /platform-pricing-configs/:id operation on platform-pricing-config resource\n */\nexport const deleteAdminPlatformPricingConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminPlatformPricingConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPlatformPricingConfigsByIdResponses,\n DeleteAdminPlatformPricingConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs/{id}\",\n ...options,\n });\n\n/**\n * /platform-pricing-configs/:id operation on platform-pricing-config resource\n *\n * /platform-pricing-configs/:id operation on platform-pricing-config resource\n */\nexport const getAdminPlatformPricingConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPlatformPricingConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlatformPricingConfigsByIdResponses,\n GetAdminPlatformPricingConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs/{id}\",\n ...options,\n });\n\n/**\n * /platform-pricing-configs/:id operation on platform-pricing-config resource\n *\n * /platform-pricing-configs/:id operation on platform-pricing-config resource\n */\nexport const patchAdminPlatformPricingConfigsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPlatformPricingConfigsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPlatformPricingConfigsByIdResponses,\n PatchAdminPlatformPricingConfigsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/platform-pricing-configs/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete a tenant and all associated data\n *\n * Permanently delete a tenant and all associated data. Cascades destruction of:\n * storage buckets (including S3/GCS cleanup), workspace memberships, workspace\n * billing accounts, workspaces, applications (which destroy their API keys,\n * transactions, plans, credit packages, and billing accounts), tenant memberships,\n * and all tenant billing accounts. Finally deletes the tenant row. Restricted to\n * the tenant owner or platform admins.\n *\n */\nexport const deleteAdminTenantsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminTenantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminTenantsByIdResponses,\n DeleteAdminTenantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single tenant by its UUID\n *\n * Fetch a single tenant by its UUID. Returns nil if not found or the actor lacks read access.\n */\nexport const getAdminTenantsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTenantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByIdResponses,\n GetAdminTenantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}\",\n ...options,\n });\n\n/**\n * Update general tenant settings: name, slug, kind, branding URLs, training price,\n * plan tier, vanity slug, and storage spending cap\n *\n * Update general tenant settings: name, slug, kind, branding URLs, training price,\n * plan tier, vanity slug, and storage spending cap. Re-indexes the tenant in search\n * after update. Use :update_branding for branding-only changes (owner-only policy),\n * :update_auto_top_up_config for billing auto top-up settings, or\n * :transfer_ownership to change the owner.\n *\n */\nexport const patchAdminTenantsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminTenantsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminTenantsByIdResponses,\n PatchAdminTenantsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List active companies in a workspace with offset pagination\n *\n * List active companies in a workspace with offset pagination. Use instead of :read for workspace-scoped paginated listings.\n */\nexport const getAdminCrmCompaniesWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdResponses,\n GetAdminCrmCompaniesWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Run a similarity search and return matching chunks via the JSON:API endpoint (/ai/chunks/search); internally calls the :search read action and wraps results in a metadata envelope.\n *\n * Run a similarity search and return matching chunks via the JSON:API endpoint (/ai/chunks/search); internally calls the :search read action and wraps results in a metadata envelope.\n */\nexport const postAdminAiChunksSearch = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiChunksSearchData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiChunksSearchResponses,\n PostAdminAiChunksSearchErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/chunks/search\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /storage-files operation on storage_file resource\n *\n * /storage-files operation on storage_file resource\n */\nexport const getAdminStorageFiles = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminStorageFilesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminStorageFilesResponses,\n GetAdminStorageFilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files\",\n ...options,\n });\n\n/**\n * Create a StorageFile tracking record; use Storage.request_upload/5 via the facade for the full two-phase upload flow with presigned URLs.\n *\n * Create a StorageFile tracking record; use Storage.request_upload/5 via the facade for the full two-phase upload flow with presigned URLs.\n */\nexport const postAdminStorageFiles = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminStorageFilesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminStorageFilesResponses,\n PostAdminStorageFilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/storage-files\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single application by its unique slug\n *\n * Fetch a single application by its unique slug. Returns nil if not found. Use :read_current to get the application from the x-application-key header context.\n */\nexport const getAdminApplicationsBySlugBySlug = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminApplicationsBySlugBySlugData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsBySlugBySlugResponses,\n GetAdminApplicationsBySlugBySlugErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/by-slug/{slug}\",\n ...options,\n });\n\n/**\n * /subscriptions/by-tenant/:tenant_id operation on subscription resource\n *\n * /subscriptions/by-tenant/:tenant_id operation on subscription resource\n */\nexport const getAdminSubscriptionsByTenantByTenantId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSubscriptionsByTenantByTenantIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSubscriptionsByTenantByTenantIdResponses,\n GetAdminSubscriptionsByTenantByTenantIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions/by-tenant/{tenant_id}\",\n ...options,\n });\n\n/**\n * Read all buckets including system/processing buckets\n *\n * Read all buckets including system/processing buckets\n */\nexport const getAdminBucketsAll = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminBucketsAllData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminBucketsAllResponses,\n GetAdminBucketsAllErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/buckets/all\",\n ...options,\n });\n\n/**\n * /legal-documents/:id operation on legal_document resource\n *\n * /legal-documents/:id operation on legal_document resource\n */\nexport const deleteAdminLegalDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminLegalDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminLegalDocumentsByIdResponses,\n DeleteAdminLegalDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}\",\n ...options,\n });\n\n/**\n * /legal-documents/:id operation on legal_document resource\n *\n * /legal-documents/:id operation on legal_document resource\n */\nexport const getAdminLegalDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsByIdResponses,\n GetAdminLegalDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}\",\n ...options,\n });\n\n/**\n * Edit draft document content, locale, region, or scheduling fields\n *\n * Edit draft document content, locale, region, or scheduling fields. Automatically sets `published_at` on first activation transition; use :publish / :unpublish for lifecycle transitions.\n */\nexport const patchAdminLegalDocumentsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminLegalDocumentsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminLegalDocumentsByIdResponses,\n PatchAdminLegalDocumentsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /plans/:id operation on plan resource\n *\n * /plans/:id operation on plan resource\n */\nexport const deleteAdminPlansById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminPlansByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminPlansByIdResponses,\n DeleteAdminPlansByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single plan by its UUID\n *\n * Fetch a single plan by its UUID. Use when you already know the plan's ID (e.g., from a\n * wallet or subscription record). Use read_by_slug instead when looking up by human-readable\n * identifier. Returns the full plan record including pricing, credits, and storage limits.\n *\n */\nexport const getAdminPlansById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPlansByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPlansByIdResponses,\n GetAdminPlansByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/{id}\",\n ...options,\n });\n\n/**\n * Update an existing plan's pricing, credit allocation, or storage limits\n *\n * Update an existing plan's pricing, credit allocation, or storage limits. Use this to adjust\n * plan configuration after launch (e.g., changing monthly price or credit quantity). Changes\n * take effect for new subscriptions; existing subscribers are unaffected until their next renewal.\n *\n * Requires Platform Admin or Application Owner role. The slug and type are immutable after creation.\n *\n */\nexport const patchAdminPlansById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminPlansByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPlansByIdResponses,\n PatchAdminPlansByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/plans/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /legal-acceptances operation on legal_acceptance resource\n *\n * /legal-acceptances operation on legal_acceptance resource\n */\nexport const getAdminLegalAcceptances = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLegalAcceptancesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalAcceptancesResponses,\n GetAdminLegalAcceptancesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-acceptances\",\n ...options,\n });\n\n/**\n * Admin triggers password reset email for user\n *\n * Admin triggers password reset email for user\n */\nexport const patchAdminUsersByIdResetPassword = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminUsersByIdResetPasswordData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminUsersByIdResetPasswordResponses,\n PatchAdminUsersByIdResetPasswordErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/{id}/reset-password\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Accept a pending invitation using a token and the authenticated actor's identity\n *\n * Accept a pending invitation using a token and the authenticated actor's identity.\n * Validates the token hash and expiry. Creates or upgrades tenant/workspace\n * memberships (highest-privilege-wins). Enqueues SendInvitationAcceptedEmail to\n * notify the inviter asynchronously. Logs an invitation_accepted audit event.\n * Use :accept_by_token for unauthenticated token-only acceptance (e.g. after\n * registration redirect), or :accept_by_user for system-initiated acceptance.\n *\n */\nexport const patchAdminInvitationsByIdAccept = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdAcceptData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdAcceptResponses,\n PatchAdminInvitationsByIdAcceptErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/accept\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /consent-records/:id operation on consent_record resource\n *\n * /consent-records/:id operation on consent_record resource\n */\nexport const getAdminConsentRecordsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminConsentRecordsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminConsentRecordsByIdResponses,\n GetAdminConsentRecordsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/consent-records/{id}\",\n ...options,\n });\n\n/**\n * /workspace-memberships/:workspace_id/:user_id operation on workspace-membership resource\n *\n * /workspace-memberships/:workspace_id/:user_id operation on workspace-membership resource\n */\nexport const deleteAdminWorkspaceMembershipsByWorkspaceIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).delete<\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n DeleteAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}\",\n ...options,\n });\n\n/**\n * /workspace-memberships/:workspace_id/:user_id operation on workspace-membership resource\n *\n * /workspace-memberships/:workspace_id/:user_id operation on workspace-membership resource\n */\nexport const getAdminWorkspaceMembershipsByWorkspaceIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n GetAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}\",\n ...options,\n });\n\n/**\n * /workspace-memberships/:workspace_id/:user_id operation on workspace-membership resource\n *\n * /workspace-memberships/:workspace_id/:user_id operation on workspace-membership resource\n */\nexport const patchAdminWorkspaceMembershipsByWorkspaceIdByUserId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses,\n PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspace-memberships/{workspace_id}/{user_id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/outbound-emails/:id operation on email-outbound-email resource\n *\n * /email/outbound-emails/:id operation on email-outbound-email resource\n */\nexport const deleteAdminEmailOutboundEmailsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminEmailOutboundEmailsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminEmailOutboundEmailsByIdResponses,\n DeleteAdminEmailOutboundEmailsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/{id}\",\n ...options,\n });\n\n/**\n * /email/outbound-emails/:id operation on email-outbound-email resource\n *\n * /email/outbound-emails/:id operation on email-outbound-email resource\n */\nexport const getAdminEmailOutboundEmailsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminEmailOutboundEmailsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminEmailOutboundEmailsByIdResponses,\n GetAdminEmailOutboundEmailsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/{id}\",\n ...options,\n });\n\n/**\n * /email/outbound-emails/:id operation on email-outbound-email resource\n *\n * /email/outbound-emails/:id operation on email-outbound-email resource\n */\nexport const patchAdminEmailOutboundEmailsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailOutboundEmailsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailOutboundEmailsByIdResponses,\n PatchAdminEmailOutboundEmailsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List training examples with filtering support\n *\n * List training examples with filtering support\n */\nexport const getAdminTrainingExamples = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminTrainingExamplesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTrainingExamplesResponses,\n GetAdminTrainingExamplesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples\",\n ...options,\n });\n\n/**\n * Create a single training example (golden example for few-shot learning)\n *\n * Create a single training example (golden example for few-shot learning). The `input_text`\n * is automatically vectorized via AshAi after creation using the configured embedding model,\n * enabling semantic retrieval via `:semantic_search`. Validates that `input_image_ref` is a\n * valid S3 path if provided.\n *\n * Use `:bulk_create` for ingesting multiple examples at once. Returns the created record;\n * the embedding vector is populated asynchronously after the action commits.\n *\n */\nexport const postAdminTrainingExamples = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminTrainingExamplesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesResponses,\n PostAdminTrainingExamplesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email/outbound-emails/:id/schedule operation on email-outbound-email resource\n *\n * /email/outbound-emails/:id/schedule operation on email-outbound-email resource\n */\nexport const patchAdminEmailOutboundEmailsByIdSchedule = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminEmailOutboundEmailsByIdScheduleData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailOutboundEmailsByIdScheduleResponses,\n PatchAdminEmailOutboundEmailsByIdScheduleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email/outbound-emails/{id}/schedule\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete a price list and all its entries\n *\n * Permanently delete a price list and all its entries. Prefer setting status to :expired to preserve history.\n */\nexport const deleteAdminCatalogPriceListsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCatalogPriceListsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCatalogPriceListsByIdResponses,\n DeleteAdminCatalogPriceListsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/{id}\",\n ...options,\n });\n\n/**\n * /catalog/price-lists/:id operation on catalog_price_list resource\n *\n * /catalog/price-lists/:id operation on catalog_price_list resource\n */\nexport const getAdminCatalogPriceListsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminCatalogPriceListsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogPriceListsByIdResponses,\n GetAdminCatalogPriceListsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/{id}\",\n ...options,\n });\n\n/**\n * Update price list metadata, strategy, or validity period\n *\n * Update price list metadata, strategy, or validity period. Returns the updated price list.\n */\nexport const patchAdminCatalogPriceListsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCatalogPriceListsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCatalogPriceListsByIdResponses,\n PatchAdminCatalogPriceListsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/price-lists/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /users/auth/magic-link/login operation on user resource\n *\n * /users/auth/magic-link/login operation on user resource\n */\nexport const postAdminUsersAuthMagicLinkLogin = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthMagicLinkLoginData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthMagicLinkLoginResponses,\n PostAdminUsersAuthMagicLinkLoginErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/magic-link/login\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List only active API keys\n *\n * List only active API keys\n */\nexport const getAdminApiKeysActive = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApiKeysActiveData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApiKeysActiveResponses,\n GetAdminApiKeysActiveErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/api-keys/active\",\n ...options,\n });\n\n/**\n * /crm/custom-entities/:entity_id/versions operation on crm_custom_entity_version resource\n *\n * /crm/custom-entities/:entity_id/versions operation on crm_custom_entity_version resource\n */\nexport const getAdminCrmCustomEntitiesByEntityIdVersions = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCrmCustomEntitiesByEntityIdVersionsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCustomEntitiesByEntityIdVersionsResponses,\n GetAdminCrmCustomEntitiesByEntityIdVersionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/custom-entities/{entity_id}/versions\",\n ...options,\n });\n\n/**\n * Enable a disabled schedule so it resumes automatic crawling on its next_run_at.\n *\n * Enable a disabled schedule so it resumes automatic crawling on its next_run_at.\n */\nexport const patchAdminCrawlerSchedulesByIdEnable = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrawlerSchedulesByIdEnableData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrawlerSchedulesByIdEnableResponses,\n PatchAdminCrawlerSchedulesByIdEnableErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules/{id}/enable\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /post-processing-hooks operation on post_processing_hook resource\n *\n * /post-processing-hooks operation on post_processing_hook resource\n */\nexport const getAdminPostProcessingHooks = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPostProcessingHooksData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPostProcessingHooksResponses,\n GetAdminPostProcessingHooksErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks\",\n ...options,\n });\n\n/**\n * /post-processing-hooks operation on post_processing_hook resource\n *\n * /post-processing-hooks operation on post_processing_hook resource\n */\nexport const postAdminPostProcessingHooks = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminPostProcessingHooksData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPostProcessingHooksResponses,\n PostAdminPostProcessingHooksErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/post-processing-hooks\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Analyze training examples for conflicts, coverage, and quality\n *\n * Analyze training examples for conflicts, coverage, and quality\n */\nexport const postAdminAgentsByIdAnalyzeTraining = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdAnalyzeTrainingData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdAnalyzeTrainingResponses,\n PostAdminAgentsByIdAnalyzeTrainingErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/analyze-training\",\n ...options,\n });\n\n/**\n * Create a typed relationship edge between two CRM entities\n *\n * Create a typed relationship edge between two CRM entities. Publishes a\n * RelationshipCreated event and enqueues graph projection to Neo4j as side effects.\n * Returns the created Relationship struct.\n *\n */\nexport const postAdminCrmRelationships = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmRelationshipsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmRelationshipsResponses,\n PostAdminCrmRelationshipsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/relationships\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Aggregated search analytics summary (platform admin only)\n *\n * Aggregated search analytics summary (platform admin only)\n */\nexport const getAdminSearchAnalyticsSummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSearchAnalyticsSummaryData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSearchAnalyticsSummaryResponses,\n GetAdminSearchAnalyticsSummaryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/search/analytics/summary\",\n ...options,\n });\n\n/**\n * Create multiple training examples in a single transaction using `Ash.bulk_create`\n *\n * Create multiple training examples in a single transaction using `Ash.bulk_create`. Each\n * example requires `input_text` and `output_json`; `is_confirmed` defaults to false. Embeddings\n * are generated asynchronously by AshAi after each record is inserted.\n *\n * Returns `%{results: [%{id, input_text, output_json, agent_id}]}` on success,\n * or `{:error, errors}` if any record fails validation.\n *\n */\nexport const postAdminTrainingExamplesBulk = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminTrainingExamplesBulkData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminTrainingExamplesBulkResponses,\n PostAdminTrainingExamplesBulkErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/training-examples/bulk\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Clone the agent to a new one with a new name\n *\n * Clone the agent to a new one with a new name\n */\nexport const postAdminAgentsByIdClone = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAgentsByIdCloneData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdCloneResponses,\n PostAdminAgentsByIdCloneErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/clone\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single export job by ID\n *\n * Fetch a single export job by ID. Use to poll job status after creating — returns :complete with file_url when ready, :failed with error message on failure.\n */\nexport const getAdminCrmExportsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmExportsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmExportsByIdResponses,\n GetAdminCrmExportsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/exports/{id}\",\n ...options,\n });\n\n/**\n * /subscriptions operation on subscription resource\n *\n * /subscriptions operation on subscription resource\n */\nexport const getAdminSubscriptions = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminSubscriptionsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSubscriptionsResponses,\n GetAdminSubscriptionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions\",\n ...options,\n });\n\n/**\n * /subscriptions operation on subscription resource\n *\n * /subscriptions operation on subscription resource\n */\nexport const postAdminSubscriptions = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminSubscriptionsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminSubscriptionsResponses,\n PostAdminSubscriptionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/subscriptions\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Send a realistic sample payload to the webhook URL to verify connectivity and signature verification\n *\n * Send a realistic sample payload to the webhook URL to verify connectivity and signature verification. Enqueues a WebhookSender Oban job tagged with `test: true`; returns the WebhookConfig on success.\n */\nexport const postAdminWebhookConfigsByIdTest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookConfigsByIdTestData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookConfigsByIdTestResponses,\n PostAdminWebhookConfigsByIdTestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-configs/{id}/test\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a company by setting deleted_at\n *\n * Soft-delete a company by setting deleted_at. Excluded from standard reads after\n * deletion. Enqueues a Meilisearch deletion job as a side effect.\n *\n */\nexport const deleteAdminCrmCompaniesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmCompaniesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmCompaniesByIdResponses,\n DeleteAdminCrmCompaniesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single active company by ID; excludes soft-deleted records.\n *\n * Fetch a single active company by ID; excludes soft-deleted records.\n */\nexport const getAdminCrmCompaniesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmCompaniesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmCompaniesByIdResponses,\n GetAdminCrmCompaniesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/{id}\",\n ...options,\n });\n\n/**\n * Update mutable fields on an existing company\n *\n * Update mutable fields on an existing company. Validates custom field definitions\n * and re-indexes the record in Meilisearch. Returns the updated Company struct.\n *\n */\nexport const patchAdminCrmCompaniesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmCompaniesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmCompaniesByIdResponses,\n PatchAdminCrmCompaniesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Compare two agent versions and return the differences\n *\n * Compare two agent versions and return the differences\n */\nexport const postAdminAgentVersionComparisons = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentVersionComparisonsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentVersionComparisonsResponses,\n PostAdminAgentVersionComparisonsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agent-version-comparisons\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Soft-delete a deal by setting deleted_at\n *\n * Soft-delete a deal by setting deleted_at. Excluded from standard reads after\n * deletion. Enqueues a Meilisearch deletion job as a side effect.\n *\n */\nexport const deleteAdminCrmDealsById = <ThrowOnError extends boolean = false>(\n options: Options<DeleteAdminCrmDealsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmDealsByIdResponses,\n DeleteAdminCrmDealsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/{id}\",\n ...options,\n });\n\n/**\n * Fetch a single active deal by ID; excludes soft-deleted records.\n *\n * Fetch a single active deal by ID; excludes soft-deleted records.\n */\nexport const getAdminCrmDealsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmDealsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmDealsByIdResponses,\n GetAdminCrmDealsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/{id}\",\n ...options,\n });\n\n/**\n * Update deal fields including status, AI scores, and pipeline assignment\n *\n * Update deal fields including status, AI scores, and pipeline assignment. Records\n * changed fields in metadata for downstream event processing (DealWon/DealLost\n * detection). Re-indexes in Meilisearch. Use :move_stage to change pipeline stage atomically.\n *\n */\nexport const patchAdminCrmDealsById = <ThrowOnError extends boolean = false>(\n options: Options<PatchAdminCrmDealsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmDealsByIdResponses,\n PatchAdminCrmDealsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/deals/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /pricing-rules operation on pricing_rule resource\n *\n * /pricing-rules operation on pricing_rule resource\n */\nexport const getAdminPricingRules = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminPricingRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPricingRulesResponses,\n GetAdminPricingRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules\",\n ...options,\n });\n\n/**\n * /pricing-rules operation on pricing_rule resource\n *\n * /pricing-rules operation on pricing_rule resource\n */\nexport const postAdminPricingRules = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPricingRulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPricingRulesResponses,\n PostAdminPricingRulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/pricing-rules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/unsubscribers/workspace/:workspace_id operation on email-unsubscriber resource\n *\n * /email-marketing/unsubscribers/workspace/:workspace_id operation on email-unsubscriber resource\n */\nexport const getAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdResponses,\n GetAdminEmailMarketingUnsubscribersWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/unsubscribers/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * Re-enqueue a failed or pending delivery for immediate re-dispatch\n *\n * Re-enqueue a failed or pending delivery for immediate re-dispatch. Sets the delivery status to `:retrying` and inserts a new WebhookSender Oban job. Returns the updated WebhookDelivery.\n */\nexport const postAdminWebhookDeliveriesByIdRetry = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminWebhookDeliveriesByIdRetryData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminWebhookDeliveriesByIdRetryResponses,\n PostAdminWebhookDeliveriesByIdRetryErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/webhook-deliveries/{id}/retry\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/sender-profiles/:id/validate-dns operation on email-marketing-sender-profile resource\n *\n * /email-marketing/sender-profiles/:id/validate-dns operation on email-marketing-sender-profile resource\n */\nexport const patchAdminEmailMarketingSenderProfilesByIdValidateDns = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsResponses,\n PatchAdminEmailMarketingSenderProfilesByIdValidateDnsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles/{id}/validate-dns\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all tenants the current user belongs to with their roles and permissions\n *\n * List all tenants the current user belongs to with their roles and permissions\n */\nexport const getAdminUsersMeTenants = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUsersMeTenantsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUsersMeTenantsResponses,\n GetAdminUsersMeTenantsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/me/tenants\",\n ...options,\n });\n\n/**\n * Process a payment (Auth + Capture)\n *\n * Process a payment (Auth + Capture)\n */\nexport const postAdminPayments = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminPaymentsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminPaymentsResponses,\n PostAdminPaymentsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payments\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /user-profiles operation on user_profile resource\n *\n * /user-profiles operation on user_profile resource\n */\nexport const getAdminUserProfiles = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminUserProfilesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminUserProfilesResponses,\n GetAdminUserProfilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles\",\n ...options,\n });\n\n/**\n * Create a user profile record linked to an existing user\n *\n * Create a user profile record linked to an existing user. Typically called\n * automatically during user registration via CreatePersonalTenant. Callers should\n * use :update for subsequent edits. user_id must correspond to the authenticated\n * actor's own account unless called via a system actor.\n *\n * Returns the created UserProfile record.\n *\n */\nexport const postAdminUserProfiles = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminUserProfilesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUserProfilesResponses,\n PostAdminUserProfilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/user-profiles\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Create a new CRM company\n *\n * Create a new CRM company. Validates against workspace company quota and custom\n * field definitions. Triggers Meilisearch indexing as a side effect. Returns the\n * created Company struct.\n *\n */\nexport const postAdminCrmCompanies = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrmCompaniesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrmCompaniesResponses,\n PostAdminCrmCompaniesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/companies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch active legal documents filtered by locale and optional region, used to display the appropriate ToS or Privacy Policy to a user based on their location.\n *\n * Fetch active legal documents filtered by locale and optional region, used to display the appropriate ToS or Privacy Policy to a user based on their location.\n */\nexport const getAdminLegalDocumentsByLocale = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminLegalDocumentsByLocaleData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLegalDocumentsByLocaleResponses,\n GetAdminLegalDocumentsByLocaleErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/legal-documents/by-locale\",\n ...options,\n });\n\n/**\n * Fetch a single booking by ID\n *\n * Fetch a single booking by ID. Returns status, booker info, and linked event_id. Note: verification_token and sync_token are excluded (sensitive? true).\n */\nexport const getAdminSchedulingBookingsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminSchedulingBookingsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminSchedulingBookingsByIdResponses,\n GetAdminSchedulingBookingsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scheduling/bookings/{id}\",\n ...options,\n });\n\n/**\n * Trigger AI inference on an existing thread without providing new user message content\n *\n * Trigger AI inference on an existing thread without providing new user message content.\n * Uses the last user message as RAG context query. Runs the full pipeline:\n * VectorSearch + GraphLookup + SynthesizeResponse + ChargeTenant.\n * Saves the synthesized assistant reply as a Message and returns the updated Thread.\n * Use this to let the AI proactively continue a conversation.\n *\n */\nexport const postAdminThreadsByIdComplete = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminThreadsByIdCompleteData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminThreadsByIdCompleteResponses,\n PostAdminThreadsByIdCompleteErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/threads/{id}/complete\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /customers operation on customer resource\n *\n * /customers operation on customer resource\n */\nexport const postAdminCustomers = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCustomersData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCustomersResponses,\n PostAdminCustomersErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/customers\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Apply human corrections to extracted field values\n *\n * Apply human corrections to extracted field values. Each correction sets the field's\n * `confidence` to 1.0 and `_source` to `\"user\"`, overriding the AI-extracted value.\n * Recalculates the `summary` statistics after applying all corrections.\n *\n * Side effects: synchronously updates the parent Document's `verification_status` to\n * `:partially_verified` and `avg_confidence` to the recalculated value via\n * `:update_verification`. This action is the entry point for the active-learning feedback loop.\n *\n * Returns the updated ExtractionResult with corrected fields and recalculated summary.\n *\n */\nexport const patchAdminExtractionResultsByIdSaveCorrections = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionResultsByIdSaveCorrectionsData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionResultsByIdSaveCorrectionsResponses,\n PatchAdminExtractionResultsByIdSaveCorrectionsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/results/{id}/save-corrections\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crm/pipelines/:id operation on crm_pipeline resource\n *\n * /crm/pipelines/:id operation on crm_pipeline resource\n */\nexport const deleteAdminCrmPipelinesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminCrmPipelinesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminCrmPipelinesByIdResponses,\n DeleteAdminCrmPipelinesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/{id}\",\n ...options,\n });\n\n/**\n * /crm/pipelines/:id operation on crm_pipeline resource\n *\n * /crm/pipelines/:id operation on crm_pipeline resource\n */\nexport const getAdminCrmPipelinesById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrmPipelinesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrmPipelinesByIdResponses,\n GetAdminCrmPipelinesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/{id}\",\n ...options,\n });\n\n/**\n * Update a pipeline's name or default status\n *\n * Update a pipeline's name or default status. Returns the updated Pipeline struct.\n */\nexport const patchAdminCrmPipelinesById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminCrmPipelinesByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminCrmPipelinesByIdResponses,\n PatchAdminCrmPipelinesByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crm/pipelines/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Refresh OAuth credential token.\n *\n * Refresh OAuth credential token.\n */\nexport const postAdminConnectorsCredentialsByIdRefresh = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminConnectorsCredentialsByIdRefreshData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminConnectorsCredentialsByIdRefreshResponses,\n PostAdminConnectorsCredentialsByIdRefreshErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/connectors/credentials/{id}/refresh\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Batch read usage for all accessible agents\n *\n * Batch read usage for all accessible agents\n */\nexport const getAdminAgentsUsage = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAgentsUsageData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAgentsUsageResponses,\n GetAdminAgentsUsageErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/usage\",\n ...options,\n });\n\n/**\n * Enqueue a background job to populate file hashes for documents missing them\n *\n * Enqueue a background job to populate file hashes for documents missing them\n */\nexport const patchAdminWorkspacesByIdPopulateHashes = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminWorkspacesByIdPopulateHashesData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminWorkspacesByIdPopulateHashesResponses,\n PatchAdminWorkspacesByIdPopulateHashesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/workspaces/{id}/populate-hashes\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Fetch a single permission preset by its composite ID (e.g., 'workspace:org:admin'); returns the preset with its full permission list or a not-found error.\n *\n * Fetch a single permission preset by its composite ID (e.g., 'workspace:org:admin'); returns the preset with its full permission list or a not-found error.\n */\nexport const getAdminPermissionsPresetsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminPermissionsPresetsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminPermissionsPresetsByIdResponses,\n GetAdminPermissionsPresetsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/permissions/presets/{id}\",\n ...options,\n });\n\n/**\n * Retrieve cost-focused analytics records for the caller's tenant; use for billing reconciliation and cost analysis.\n *\n * Retrieve cost-focused analytics records for the caller's tenant; use for billing reconciliation and cost analysis.\n */\nexport const getAdminLlmAnalyticsCosts = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminLlmAnalyticsCostsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminLlmAnalyticsCostsResponses,\n GetAdminLlmAnalyticsCostsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/llm_analytics/costs\",\n ...options,\n });\n\n/**\n * Validate sample output against agent schema\n *\n * Validate sample output against agent schema\n */\nexport const postAdminAgentsByIdValidate = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminAgentsByIdValidateData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAgentsByIdValidateResponses,\n PostAdminAgentsByIdValidateErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/agents/{id}/validate\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Send a test email using this template\n *\n * Send a test email using this template\n */\nexport const postAdminApplicationsByApplicationIdEmailTemplatesBySlugTest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).post<\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestResponses,\n PostAdminApplicationsByApplicationIdEmailTemplatesBySlugTestErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{application_id}/email-templates/{slug}/test\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Permanently delete an application and all associated data\n *\n * Permanently delete an application and all associated data. Cascades bulk\n * destruction of: email templates, API keys, transactions, billing plans, credit\n * packages, and the application billing account. Finally deletes the application\n * row. Restricted to platform admins or the application owner.\n *\n */\nexport const deleteAdminApplicationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteAdminApplicationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).delete<\n DeleteAdminApplicationsByIdResponses,\n DeleteAdminApplicationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}\",\n ...options,\n });\n\n/**\n * /applications/:id operation on application resource\n *\n * /applications/:id operation on application resource\n */\nexport const getAdminApplicationsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminApplicationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminApplicationsByIdResponses,\n GetAdminApplicationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}\",\n ...options,\n });\n\n/**\n * Update application configuration including branding, email settings, capability\n * flags, workspace mode, and execution limits\n *\n * Update application configuration including branding, email settings, capability\n * flags, workspace mode, and execution limits. Validates enabled_capabilities and\n * their dependency graph. Use :update_compliance_tags (platform admin only) for\n * compliance tag changes, and :allocate_credits for funding the application account.\n *\n */\nexport const patchAdminApplicationsById = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminApplicationsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminApplicationsByIdResponses,\n PatchAdminApplicationsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/applications/{id}\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Decline a pending invitation\n *\n * Decline a pending invitation. Only the recipient (authenticated user whose email\n * matches the invitation email) can decline. Sets status to :declined and logs an\n * audit event. A declined invitation cannot be re-accepted; the inviter must create\n * a new invitation if the recipient changes their mind.\n *\n */\nexport const patchAdminInvitationsByIdDecline = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminInvitationsByIdDeclineData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminInvitationsByIdDeclineResponses,\n PatchAdminInvitationsByIdDeclineErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/invitations/{id}/decline\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Triggers batch sending for approved emails\n *\n * Triggers batch sending for approved emails\n */\nexport const postAdminEmailMarketingCampaignsByIdSend = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingCampaignsByIdSendData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingCampaignsByIdSendResponses,\n PostAdminEmailMarketingCampaignsByIdSendErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/campaigns/{id}/send\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /scan-results/:id operation on scan_result resource\n *\n * /scan-results/:id operation on scan_result resource\n */\nexport const getAdminScanResultsById = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminScanResultsByIdData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminScanResultsByIdResponses,\n GetAdminScanResultsByIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/scan-results/{id}\",\n ...options,\n });\n\n/**\n * /processing-activities operation on processing_activity resource\n *\n * /processing-activities operation on processing_activity resource\n */\nexport const getAdminProcessingActivities = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminProcessingActivitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminProcessingActivitiesResponses,\n GetAdminProcessingActivitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities\",\n ...options,\n });\n\n/**\n * Add a new GDPR Article 30 Record of Processing Activities (ROPA) entry, documenting a processing purpose, the categories of personal data processed, data subjects, recipients, and legal basis for the workspace.\n *\n * Add a new GDPR Article 30 Record of Processing Activities (ROPA) entry, documenting a processing purpose, the categories of personal data processed, data subjects, recipients, and legal basis for the workspace.\n */\nexport const postAdminProcessingActivities = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminProcessingActivitiesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminProcessingActivitiesResponses,\n PostAdminProcessingActivitiesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/processing-activities\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /email-marketing/sender-profiles operation on email-marketing-sender-profile resource\n *\n * /email-marketing/sender-profiles operation on email-marketing-sender-profile resource\n */\nexport const postAdminEmailMarketingSenderProfiles = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminEmailMarketingSenderProfilesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminEmailMarketingSenderProfilesResponses,\n PostAdminEmailMarketingSenderProfilesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/email-marketing/sender-profiles\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Set this payment method as default for the customer\n *\n * Set this payment method as default for the customer\n */\nexport const patchAdminPaymentMethodsByIdDefault = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchAdminPaymentMethodsByIdDefaultData, ThrowOnError>,\n) =>\n (options.client ?? client).patch<\n PatchAdminPaymentMethodsByIdDefaultResponses,\n PatchAdminPaymentMethodsByIdDefaultErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/payment-methods/{id}/default\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Generate presigned URLs for batch document upload\n *\n * Generate presigned URLs for batch document upload\n */\nexport const getAdminExtractionBatchesByIdUploadUrls = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminExtractionBatchesByIdUploadUrlsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminExtractionBatchesByIdUploadUrlsResponses,\n GetAdminExtractionBatchesByIdUploadUrlsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/batches/{id}/upload-urls\",\n ...options,\n });\n\n/**\n * /tenants/:tenant_id/stats operation on tenant_stats resource\n *\n * /tenants/:tenant_id/stats operation on tenant_stats resource\n */\nexport const getAdminTenantsByTenantIdStats = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetAdminTenantsByTenantIdStatsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminTenantsByTenantIdStatsResponses,\n GetAdminTenantsByTenantIdStatsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/tenants/{tenant_id}/stats\",\n ...options,\n });\n\n/**\n * Register or sign in a user via an OAuth/OIDC provider (Google, GitHub, Salesforce,\n * Microsoft)\n *\n * Register or sign in a user via an OAuth/OIDC provider (Google, GitHub, Salesforce,\n * Microsoft). Upserts on the unique_email identity, so existing accounts are updated\n * rather than duplicated. Automatically confirms the email (provider already verified\n * it), generates a random hashed password (OAuth users never use password login), and\n * creates a personal tenant via CreatePersonalTenant. Returns the user with a JWT token\n * in the token field.\n *\n */\nexport const postAdminUsersAuthRegisterWithOidc = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminUsersAuthRegisterWithOidcData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminUsersAuthRegisterWithOidcResponses,\n PostAdminUsersAuthRegisterWithOidcErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/users/auth/register-with-oidc\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * List all catalog views in a workspace\n *\n * List all catalog views in a workspace. Returns a paginated list including draft and active views.\n */\nexport const getAdminCatalogViewsWorkspaceByWorkspaceId = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetAdminCatalogViewsWorkspaceByWorkspaceIdData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).get<\n GetAdminCatalogViewsWorkspaceByWorkspaceIdResponses,\n GetAdminCatalogViewsWorkspaceByWorkspaceIdErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/catalog/views/workspace/{workspace_id}\",\n ...options,\n });\n\n/**\n * /ai/conversations operation on conversation resource\n *\n * /ai/conversations operation on conversation resource\n */\nexport const getAdminAiConversations = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminAiConversationsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminAiConversationsResponses,\n GetAdminAiConversationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations\",\n ...options,\n });\n\n/**\n * Start a new AI conversation session with optional structured context data (e.g., prediction results to discuss)\n *\n * Start a new AI conversation session with optional structured context data (e.g., prediction results to discuss). The `user_id` and `tenant_id` are automatically set from the actor; any supplied values are overridden.\n */\nexport const postAdminAiConversations = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiConversationsData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiConversationsResponses,\n PostAdminAiConversationsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/conversations\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Step 2 of 2 in the two-step upload flow\n *\n * Step 2 of 2 in the two-step upload flow. Call this after the client has PUT the file to the\n * presigned URL returned by `:begin_upload`. Performs a second credit check (Layer 2 of the\n * three-layer credit defense) before enqueueing the processing job.\n *\n * Side effects: enqueues `ProcessDocument` (or `ProcessAudio` for audio files) Oban job.\n * If credits are insufficient at this point, the action fails — the document remains in\n * `:queued` status and no job is created.\n *\n * Returns the updated document struct.\n *\n */\nexport const patchAdminExtractionDocumentsByIdFinishUpload = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n PatchAdminExtractionDocumentsByIdFinishUploadData,\n ThrowOnError\n >,\n) =>\n (options.client ?? client).patch<\n PatchAdminExtractionDocumentsByIdFinishUploadResponses,\n PatchAdminExtractionDocumentsByIdFinishUploadErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/extraction/documents/{id}/finish-upload\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /retention-policies operation on retention_policy resource\n *\n * /retention-policies operation on retention_policy resource\n */\nexport const getAdminRetentionPolicies = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminRetentionPoliciesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminRetentionPoliciesResponses,\n GetAdminRetentionPoliciesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies\",\n ...options,\n });\n\n/**\n * Define a data retention rule for a specific data category in a workspace\n *\n * Define a data retention rule for a specific data category in a workspace. Each workspace/data_type pair is unique — the RetentionEnforcementWorker runs daily to delete, archive, or anonymize data older than `retention_days`.\n */\nexport const postAdminRetentionPolicies = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAdminRetentionPoliciesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminRetentionPoliciesResponses,\n PostAdminRetentionPoliciesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/retention-policies\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /crawler/schedules operation on crawler_schedule resource\n *\n * /crawler/schedules operation on crawler_schedule resource\n */\nexport const getAdminCrawlerSchedules = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminCrawlerSchedulesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminCrawlerSchedulesResponses,\n GetAdminCrawlerSchedulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules\",\n ...options,\n });\n\n/**\n * Create a recurring crawl schedule for a URL; sets frequency, cron expression, and notification preferences\n *\n * Create a recurring crawl schedule for a URL; sets frequency, cron expression, and notification preferences. Returns the created schedule.\n */\nexport const postAdminCrawlerSchedules = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminCrawlerSchedulesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminCrawlerSchedulesResponses,\n PostAdminCrawlerSchedulesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/crawler/schedules\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * Generate a 1024-dim vector embedding for the given text via the LlmTriage sidecar; validates workspace membership, estimates token cost, charges credits, and returns the embedding with usage stats.\n *\n * Generate a 1024-dim vector embedding for the given text via the LlmTriage sidecar; validates workspace membership, estimates token cost, charges credits, and returns the embedding with usage stats.\n */\nexport const postAdminAiEmbed = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminAiEmbedData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminAiEmbedResponses,\n PostAdminAiEmbedErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/ai/embed\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /roles operation on role resource\n *\n * /roles operation on role resource\n */\nexport const getAdminRoles = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminRolesData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminRolesResponses,\n GetAdminRolesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles\",\n ...options,\n });\n\n/**\n * Create a new role (permission bundle); creates a system default if application_id is nil, or an ISV application role if application_id is supplied\n *\n * Create a new role (permission bundle); creates a system default if application_id is nil, or an ISV application role if application_id is supplied. Emits a RoleCreated audit event. Returns the created role.\n */\nexport const postAdminRoles = <ThrowOnError extends boolean = false>(\n options: Options<PostAdminRolesData, ThrowOnError>,\n) =>\n (options.client ?? client).post<\n PostAdminRolesResponses,\n PostAdminRolesErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/roles\",\n ...options,\n headers: {\n \"Content-Type\": \"application/vnd.api+json\",\n ...options.headers,\n },\n });\n\n/**\n * /voice/recordings operation on voice_recording resource\n *\n * /voice/recordings operation on voice_recording resource\n */\nexport const getAdminVoiceRecordings = <ThrowOnError extends boolean = false>(\n options: Options<GetAdminVoiceRecordingsData, ThrowOnError>,\n) =>\n (options.client ?? client).get<\n GetAdminVoiceRecordingsResponses,\n GetAdminVoiceRecordingsErrors,\n ThrowOnError\n >({\n security: [{ scheme: \"bearer\", type: \"http\" }],\n url: \"/admin/voice/recordings\",\n ...options,\n });\n","// Hand-maintained — override generation\nimport {\n getAdminAgents,\n getAdminAgentsById,\n postAdminAgentsByIdClone,\n postAdminAgentsCloneForWorkspace,\n postAdminAgentsByIdExport,\n postAdminAgentsImport,\n postAdminAgentsPredict,\n postAdminAgentsByIdTest,\n postAdminAgentsByIdValidate,\n postAdminAgentsByIdTeach,\n postAdminAgentsByIdPublishVersion,\n postAdminAgentsByIdRestoreVersion,\n postAdminAgentsByIdAnalyzeTraining,\n getAdminAgentsByIdStats,\n getAdminAgentsByIdUsage,\n getAdminAgentsUsage,\n getAdminAgentsByIdTrainingStats,\n getAdminAgentVersions,\n getAdminAgentVersionsById,\n deleteAdminAgentVersionsById,\n postAdminAgentVersions,\n postAdminAgentVersionsByIdAddSystemField,\n postAdminAgentVersionsByIdRemoveSystemField,\n postAdminAgentVersionsByIdSetSystemFields,\n getAdminAgentVersionsByIdMetrics,\n getAdminAgentVersionsByIdRevisions,\n getAdminAgentVersionRevisionsById,\n getAdminAgentVersionRevisions,\n getAdminAgentsByIdSchemaVersions,\n postAdminAgentsByIdSchemaVersions,\n postAdminAgentsByIdSchemaVersionsByVersionIdActivate,\n patchAdminAgentsByIdSchemaVersionsByVersionId,\n postAdminAgentVersionComparisons,\n getAdminTrainingExamples,\n getAdminTrainingExamplesById,\n postAdminTrainingExamples,\n patchAdminTrainingExamplesById,\n deleteAdminTrainingExamplesById,\n postAdminTrainingExamplesBulk,\n postAdminTrainingExamplesBulkDelete,\n postAdminTrainingExamplesSearch,\n getAdminAgentsByIdTrainingExamples,\n deleteAdminAgentsByIdTrainingExamplesByExampleId,\n getAdminTrainingSessionsAgentsByAgentIdSessions,\n getAdminTrainingSessionsById,\n deleteAdminTrainingSessionsById,\n getAdminFieldTemplates,\n getAdminFieldTemplatesById,\n postAdminFieldTemplates,\n deleteAdminFieldTemplatesById,\n} from \"../_internal/sdk.gen\";\nimport type {\n Agent,\n AgentVersion,\n TrainingExample,\n} from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Creates the `agents` namespace for the admin SDK.\n *\n * Provides full platform-level access to agents, versions, training,\n * schema management, and field templates across all workspaces.\n *\n * @param rb - The RequestBuilder bound to the authenticated admin client.\n * @returns An object with all agent-related methods and sub-namespaces.\n *\n * @example\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const agents = await admin.agents.list();\n */\nexport function createAgentsNamespace(rb: RequestBuilder) {\n return {\n /**\n * Lists all agents (platform-wide, no workspace filter).\n *\n * @param options - Optional request options.\n * @returns Array of Agent objects.\n *\n * @example\n * const agents = await admin.agents.list();\n */\n list: async (options?: RequestOptions): Promise<Agent[]> => {\n return rb.execute<Agent[]>(getAdminAgents, {}, options);\n },\n\n /**\n * Fetches a single agent by ID.\n *\n * @param id - The UUID of the agent.\n * @param options - Optional request options.\n * @returns The Agent record.\n *\n * @example\n * const agent = await admin.agents.get('agt_01...');\n */\n get: async (id: string, options?: RequestOptions): Promise<Agent> => {\n return rb.execute<Agent>(getAdminAgentsById, { path: { id } }, options);\n },\n\n /**\n * Clones an agent within the same workspace.\n *\n * @param id - The UUID of the agent to clone.\n * @param attributes - Optional attributes for the clone (name, description).\n * @param options - Optional request options.\n * @returns The cloned Agent.\n *\n * @example\n * const clone = await admin.agents.clone('agt_01...', { name: 'Clone of Bot' });\n */\n clone: async (\n id: string,\n attributes: Record<string, unknown> = {},\n options?: RequestOptions,\n ): Promise<Agent> => {\n return rb.execute<Agent>(\n postAdminAgentsByIdClone,\n { path: { id }, body: { data: { type: \"agent\", attributes } } },\n options,\n );\n },\n\n /**\n * Clones an agent into a different workspace.\n *\n * @param agentId - The UUID of the agent to clone.\n * @param targetWorkspaceId - The UUID of the destination workspace.\n * @param options - Optional request options.\n * @returns The cloned Agent in the target workspace.\n *\n * @example\n * const cloned = await admin.agents.cloneForWorkspace('agt_01...', 'ws_02...');\n */\n cloneForWorkspace: async (\n agentId: string,\n targetWorkspaceId: string,\n options?: RequestOptions,\n ): Promise<Agent> => {\n return rb.execute<Agent>(\n postAdminAgentsCloneForWorkspace,\n {\n body: {\n data: {\n type: \"agent\",\n attributes: {\n agent_id: agentId,\n target_workspace_id: targetWorkspaceId,\n },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Exports an agent to a portable JSON bundle.\n *\n * @param id - The UUID of the agent to export.\n * @param options - Optional request options.\n * @returns The export bundle payload.\n *\n * @example\n * const bundle = await admin.agents.export('agt_01...');\n */\n export: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminAgentsByIdExport,\n { path: { id }, body: {} },\n options,\n );\n },\n\n /**\n * Imports an agent from a portable export bundle.\n *\n * @param data - The export bundle object.\n * @param options - Optional request options.\n * @returns The newly created Agent.\n *\n * @example\n * const imported = await admin.agents.import(exportBundle);\n */\n import: async (\n data: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<Agent> => {\n return rb.execute<Agent>(\n postAdminAgentsImport,\n { body: { data: { type: \"agent\", attributes: { data } } } },\n options,\n );\n },\n\n /**\n * Runs prediction/inference on an agent.\n *\n * @param agentId - The UUID of the agent.\n * @param input - Input data for prediction.\n * @param options - Optional request options.\n * @returns Prediction result.\n *\n * @example\n * const result = await admin.agents.predict('agt_01...', { text: 'Classify this' });\n */\n predict: async (\n agentId: string,\n input: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminAgentsPredict,\n {\n body: {\n data: {\n type: \"agent\",\n attributes: { agent_id: agentId, ...input },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Runs an agent against a test input and returns the result.\n *\n * @param id - The UUID of the agent.\n * @param attributes - Test attributes (input, expected_output, etc.).\n * @param options - Optional request options.\n * @returns Test result payload.\n *\n * @example\n * const result = await admin.agents.test('agt_01...', { input: { text: '...' } });\n */\n test: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminAgentsByIdTest,\n { path: { id }, body: { data: { type: \"agent\", attributes } } },\n options,\n );\n },\n\n /**\n * Validates an agent's configuration without publishing.\n *\n * @param id - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Validation result with any errors or warnings.\n *\n * @example\n * const result = await admin.agents.validate('agt_01...');\n */\n validate: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminAgentsByIdValidate,\n { path: { id }, body: {} },\n options,\n );\n },\n\n /**\n * Runs a training job (fine-tuning) on the agent using its examples.\n *\n * @param id - The UUID of the agent.\n * @param attributes - Training configuration attributes.\n * @param options - Optional request options.\n * @returns Training job status payload.\n *\n * @example\n * await admin.agents.teach('agt_01...', { epochs: 3 });\n */\n teach: async (\n id: string,\n attributes: Record<string, unknown> = {},\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminAgentsByIdTeach,\n { path: { id }, body: { data: { type: \"agent\", attributes } } },\n options,\n );\n },\n\n /**\n * Publishes a new immutable version from the agent's current state.\n *\n * @param id - The UUID of the agent.\n * @param options - Optional request options.\n * @returns The newly created AgentVersion.\n *\n * @example\n * const version = await admin.agents.publishVersion('agt_01...');\n */\n publishVersion: async (\n id: string,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentsByIdPublishVersion,\n { path: { id }, body: {} },\n options,\n );\n },\n\n /**\n * Restores a previously published version as the active version.\n *\n * @param id - The UUID of the agent.\n * @param attributes - Must include `version_id` of the version to restore.\n * @param options - Optional request options.\n * @returns The restored AgentVersion.\n *\n * @example\n * const version = await admin.agents.restoreVersion('agt_01...', { version_id: 'ver_01...' });\n */\n restoreVersion: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentsByIdRestoreVersion,\n { path: { id }, body: { data: { type: \"agent\", attributes } } },\n options,\n );\n },\n\n /**\n * Analyzes training examples and returns insights.\n *\n * @param id - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Training analysis result.\n *\n * @example\n * const analysis = await admin.agents.analyzeTraining('agt_01...');\n */\n analyzeTraining: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminAgentsByIdAnalyzeTraining,\n { path: { id }, body: {} },\n options,\n );\n },\n\n /**\n * Retrieves usage statistics for a single agent.\n *\n * @param id - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Usage data for the agent.\n *\n * @example\n * const usage = await admin.agents.usage('agt_01...');\n */\n usage: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminAgentsByIdUsage,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Retrieves usage information for all agents.\n *\n * @param options - Optional request options.\n * @returns Array of usage data for all agents.\n *\n * @example\n * const allUsage = await admin.agents.usageAll();\n */\n usageAll: async (\n options?: RequestOptions,\n ): Promise<Record<string, unknown>[]> => {\n return rb.execute<Record<string, unknown>[]>(\n getAdminAgentsUsage,\n {},\n options,\n );\n },\n\n /**\n * Retrieves execution and performance statistics for an agent.\n *\n * @param id - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Statistics payload.\n *\n * @example\n * const stats = await admin.agents.stats('agt_01...');\n */\n stats: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminAgentsByIdStats,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Retrieves training statistics for a single agent.\n *\n * @param id - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Training statistics data.\n *\n * @example\n * const stats = await admin.agents.trainingStats('agt_01...');\n */\n trainingStats: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminAgentsByIdTrainingStats,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Sub-namespace for managing immutable agent versions.\n */\n versions: {\n /**\n * Lists all agent versions.\n *\n * @param options - Optional request options.\n * @returns Array of AgentVersion objects.\n *\n * @example\n * const versions = await admin.agents.versions.list();\n */\n list: async (options?: RequestOptions): Promise<AgentVersion[]> => {\n return rb.execute<AgentVersion[]>(getAdminAgentVersions, {}, options);\n },\n\n /**\n * Fetches a single agent version by ID.\n *\n * @param id - The UUID of the agent version.\n * @param options - Optional request options.\n * @returns The AgentVersion record.\n *\n * @example\n * const version = await admin.agents.versions.get('ver_01...');\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n getAdminAgentVersionsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Permanently deletes an agent version.\n *\n * @param id - The UUID of the version to delete.\n * @param options - Optional request options.\n * @returns True on successful deletion.\n *\n * @example\n * await admin.agents.versions.delete('ver_01...');\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminAgentVersionsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Creates a new agent version snapshot.\n *\n * @param attributes - Version attributes (agent_id, prompt_template, fields, etc.).\n * @param options - Optional request options.\n * @returns The newly created AgentVersion.\n *\n * @example\n * const version = await admin.agents.versions.create({ agent_id: 'agt_01...', ... });\n */\n create: async (\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentVersions,\n { body: { data: { type: \"agent_version\", attributes } } },\n options,\n );\n },\n\n /**\n * Marks a system field as selected for this version.\n *\n * @param id - The UUID of the agent version.\n * @param fieldName - The name of the system field to add (e.g. `_filename`).\n * @param options - Optional request options.\n * @returns The updated AgentVersion.\n *\n * @example\n * await admin.agents.versions.addSystemField('ver_01...', '_filename');\n */\n addSystemField: async (\n id: string,\n fieldName: string,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentVersionsByIdAddSystemField,\n {\n path: { id },\n body: {\n data: {\n type: \"agent_version\",\n attributes: { system_field_name: fieldName },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Removes a system field from the selected set for this version.\n *\n * @param id - The UUID of the agent version.\n * @param fieldName - The name of the system field to remove (e.g. `_filename`).\n * @param options - Optional request options.\n * @returns The updated AgentVersion.\n *\n * @example\n * await admin.agents.versions.removeSystemField('ver_01...', '_filename');\n */\n removeSystemField: async (\n id: string,\n fieldName: string,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentVersionsByIdRemoveSystemField,\n {\n path: { id },\n body: {\n data: {\n type: \"agent_version\",\n attributes: { system_field_name: fieldName },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Sets the full list of selected system fields for this version.\n *\n * @param id - The UUID of the agent version.\n * @param fieldNames - Array of system field names to set (e.g. `['_filename', '_pages']`).\n * @param options - Optional request options.\n * @returns The updated AgentVersion.\n *\n * @example\n * await admin.agents.versions.setSystemFields('ver_01...', ['_filename', '_pages']);\n */\n setSystemFields: async (\n id: string,\n fieldNames: string[],\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentVersionsByIdSetSystemFields,\n {\n path: { id },\n body: {\n data: {\n type: \"agent_version\",\n attributes: { system_field_names: fieldNames },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Retrieves performance metrics for an agent version.\n *\n * @param id - The UUID of the agent version.\n * @param options - Optional request options.\n * @returns Metrics data for the version.\n *\n * @example\n * const metrics = await admin.agents.versions.metrics('ver_01...');\n */\n metrics: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminAgentVersionsByIdMetrics,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Lists revision history for an agent version.\n *\n * @param id - The UUID of the agent version.\n * @param options - Optional request options.\n * @returns Array of revision records.\n *\n * @example\n * const revisions = await admin.agents.versions.revisions('ver_01...');\n */\n revisions: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>[]> => {\n return rb.execute<Record<string, unknown>[]>(\n getAdminAgentVersionsByIdRevisions,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Fetches a single revision record by ID.\n *\n * @param id - The UUID of the revision.\n * @param options - Optional request options.\n * @returns The revision record.\n *\n * @example\n * const revision = await admin.agents.versions.getRevision('rev_01...');\n */\n getRevision: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminAgentVersionRevisionsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Lists all revisions across all agent versions.\n *\n * @param options - Optional request options.\n * @returns Array of revision records.\n *\n * @example\n * const revisions = await admin.agents.versions.listAllRevisions();\n */\n listAllRevisions: async (\n options?: RequestOptions,\n ): Promise<Record<string, unknown>[]> => {\n return rb.execute<Record<string, unknown>[]>(\n getAdminAgentVersionRevisions,\n {},\n options,\n );\n },\n\n /**\n * Compares two agent versions side-by-side.\n *\n * @param versionAId - UUID of the first version.\n * @param versionBId - UUID of the second version.\n * @param options - Optional request options.\n * @returns Comparison result with schema_diff and prompt_diff.\n *\n * @example\n * const diff = await admin.agents.versions.compare('ver_A...', 'ver_B...');\n */\n compare: async (\n versionAId: string,\n versionBId: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminAgentVersionComparisons,\n {\n body: {\n data: {\n type: \"agent_version_comparison\",\n attributes: {\n version_a_id: versionAId,\n version_b_id: versionBId,\n },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Sub-namespace for managing schema versions within an agent.\n */\n schemaVersions: {\n /**\n * Lists all schema versions for an agent.\n *\n * @param agentId - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Array of schema version records.\n *\n * @example\n * const versions = await admin.agents.versions.schemaVersions.list('agt_01...');\n */\n list: async (\n agentId: string,\n options?: RequestOptions,\n ): Promise<AgentVersion[]> => {\n return rb.execute<AgentVersion[]>(\n getAdminAgentsByIdSchemaVersions,\n { path: { id: agentId } },\n options,\n );\n },\n\n /**\n * Creates a new schema version for an agent.\n *\n * @param agentId - The UUID of the agent.\n * @param attributes - Schema version attributes.\n * @param options - Optional request options.\n * @returns The newly created schema version.\n *\n * @example\n * const sv = await admin.agents.versions.schemaVersions.create('agt_01...', { fields: [...] });\n */\n create: async (\n agentId: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentsByIdSchemaVersions,\n {\n path: { id: agentId },\n body: { data: { type: \"agent_version\", attributes } },\n },\n options,\n );\n },\n\n /**\n * Activates a schema version, making it the live version.\n *\n * @param agentId - The UUID of the agent.\n * @param versionId - The UUID of the schema version to activate.\n * @param options - Optional request options.\n * @returns The activated schema version.\n *\n * @example\n * await admin.agents.versions.schemaVersions.activate('agt_01...', 'ver_01...');\n */\n activate: async (\n agentId: string,\n versionId: string,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n postAdminAgentsByIdSchemaVersionsByVersionIdActivate,\n { path: { id: agentId, version_id: versionId }, body: {} },\n options,\n );\n },\n\n /**\n * Updates an existing schema version.\n *\n * @param agentId - The UUID of the agent.\n * @param versionId - The UUID of the schema version to update.\n * @param attributes - Attributes to update.\n * @param options - Optional request options.\n * @returns The updated schema version.\n *\n * @example\n * await admin.agents.versions.schemaVersions.update('agt_01...', 'ver_01...', { fields: [...] });\n */\n update: async (\n agentId: string,\n versionId: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<AgentVersion> => {\n return rb.execute<AgentVersion>(\n patchAdminAgentsByIdSchemaVersionsByVersionId,\n {\n path: { id: agentId, version_id: versionId },\n body: { data: { type: \"agent_version\", attributes } },\n },\n options,\n );\n },\n },\n },\n\n /**\n * Sub-namespace for managing training examples attached to agents.\n */\n training: {\n /**\n * Lists all training examples.\n *\n * @param options - Optional request options.\n * @returns Array of TrainingExample objects.\n *\n * @example\n * const examples = await admin.agents.training.list();\n */\n list: async (options?: RequestOptions): Promise<TrainingExample[]> => {\n return rb.execute<TrainingExample[]>(\n getAdminTrainingExamples,\n {},\n options,\n );\n },\n\n /**\n * Fetches a single training example by ID.\n *\n * @param id - The UUID of the training example.\n * @param options - Optional request options.\n * @returns The TrainingExample record.\n *\n * @example\n * const example = await admin.agents.training.get('tex_01...');\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<TrainingExample> => {\n return rb.execute<TrainingExample>(\n getAdminTrainingExamplesById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Creates a new training example.\n *\n * @param attributes - Training example attributes (agent_id, input_text, output_json, etc.).\n * @param options - Optional request options.\n * @returns The created TrainingExample.\n *\n * @example\n * const example = await admin.agents.training.create({ agent_id: 'agt_01...', input_text: '...', output_json: {} });\n */\n create: async (\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<TrainingExample> => {\n return rb.execute<TrainingExample>(\n postAdminTrainingExamples,\n { body: { data: { type: \"training_example\", attributes } } },\n options,\n );\n },\n\n /**\n * Updates a training example's attributes.\n *\n * @param id - The UUID of the training example.\n * @param attributes - Attributes to update.\n * @param options - Optional request options.\n * @returns The updated TrainingExample.\n *\n * @example\n * const updated = await admin.agents.training.update('tex_01...', { label: 'reviewed' });\n */\n update: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<TrainingExample> => {\n return rb.execute<TrainingExample>(\n patchAdminTrainingExamplesById,\n {\n path: { id },\n body: { data: { id, type: \"training_example\", attributes } },\n },\n options,\n );\n },\n\n /**\n * Deletes a training example.\n *\n * @param id - The UUID of the training example to delete.\n * @param options - Optional request options.\n * @returns True on successful deletion.\n *\n * @example\n * await admin.agents.training.delete('tex_01...');\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminTrainingExamplesById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Creates multiple training examples in a single batch operation.\n *\n * @param examples - Array of training example attribute objects.\n * @param options - Optional request options.\n * @returns Array of created TrainingExample objects.\n *\n * @example\n * const created = await admin.agents.training.bulkCreate([\n * { agent_id: 'agt_01...', input_text: '...', output_json: {} },\n * ]);\n */\n bulkCreate: async (\n examples: Record<string, unknown>[],\n options?: RequestOptions,\n ): Promise<TrainingExample[]> => {\n return rb.execute<TrainingExample[]>(\n postAdminTrainingExamplesBulk,\n {\n body: {\n data: examples.map((attrs) => ({\n type: \"training_example\",\n attributes: attrs,\n })),\n },\n },\n options,\n );\n },\n\n /**\n * Deletes multiple training examples in a single batch operation.\n *\n * @param ids - Array of training example UUIDs to delete.\n * @param options - Optional request options.\n * @returns Deletion result payload.\n *\n * @example\n * await admin.agents.training.bulkDelete(['tex_01...', 'tex_02...']);\n */\n bulkDelete: async (\n ids: string[],\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminTrainingExamplesBulkDelete,\n {\n body: { data: ids.map((id) => ({ type: \"training_example\", id })) },\n },\n options,\n );\n },\n\n /**\n * Searches training examples by semantic similarity.\n *\n * @param query - The search query text.\n * @param options - Optional request options.\n * @returns Array of matching TrainingExample objects.\n *\n * @example\n * const results = await admin.agents.training.search('invoice total');\n */\n search: async (\n query: string,\n options?: RequestOptions,\n ): Promise<TrainingExample[]> => {\n return rb.execute<TrainingExample[]>(\n postAdminTrainingExamplesSearch,\n {\n body: {\n data: { type: \"training_example\", attributes: { query } },\n },\n },\n options,\n );\n },\n\n /**\n * Lists training examples for a specific agent.\n *\n * @param agentId - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Array of training examples for the agent.\n *\n * @example\n * const examples = await admin.agents.training.listForAgent('agt_01...');\n */\n listForAgent: async (\n agentId: string,\n options?: RequestOptions,\n ): Promise<TrainingExample[]> => {\n return rb.execute<TrainingExample[]>(\n getAdminAgentsByIdTrainingExamples,\n { path: { id: agentId } },\n options,\n );\n },\n\n /**\n * Deletes a training example for a specific agent.\n *\n * @param agentId - The UUID of the agent.\n * @param exampleId - The UUID of the training example.\n * @param options - Optional request options.\n * @returns True on successful deletion.\n *\n * @example\n * await admin.agents.training.deleteForAgent('agt_01...', 'tex_01...');\n */\n deleteForAgent: async (\n agentId: string,\n exampleId: string,\n options?: RequestOptions,\n ): Promise<true> => {\n return rb.executeDelete(\n deleteAdminAgentsByIdTrainingExamplesByExampleId,\n { path: { id: agentId, example_id: exampleId } },\n options,\n );\n },\n\n /**\n * Sub-namespace for managing training sessions.\n */\n sessions: {\n /**\n * Lists training sessions for a specific agent.\n *\n * @param agentId - The UUID of the agent.\n * @param options - Optional request options.\n * @returns Array of training session records.\n *\n * @example\n * const sessions = await admin.agents.training.sessions.list('agt_01...');\n */\n list: async (\n agentId: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>[]> => {\n return rb.execute<Record<string, unknown>[]>(\n getAdminTrainingSessionsAgentsByAgentIdSessions,\n { path: { agent_id: agentId } },\n options,\n );\n },\n\n /**\n * Fetches a single training session by ID.\n *\n * @param id - The UUID of the training session.\n * @param options - Optional request options.\n * @returns The training session record.\n *\n * @example\n * const session = await admin.agents.training.sessions.get('ts_01...');\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminTrainingSessionsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Deletes a training session.\n *\n * @param id - The UUID of the training session.\n * @param options - Optional request options.\n * @returns True on successful deletion.\n *\n * @example\n * await admin.agents.training.sessions.delete('ts_01...');\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminTrainingSessionsById,\n { path: { id } },\n options,\n );\n },\n },\n },\n\n /**\n * Sub-namespace for field templates — reusable field definitions.\n */\n fieldTemplates: {\n /**\n * Lists all available field templates.\n *\n * @param options - Optional request options.\n * @returns Array of field template objects.\n *\n * @example\n * const templates = await admin.agents.fieldTemplates.list();\n */\n list: async (\n options?: RequestOptions,\n ): Promise<Record<string, unknown>[]> => {\n return rb.execute<Record<string, unknown>[]>(\n getAdminFieldTemplates,\n {},\n options,\n );\n },\n\n /**\n * Fetches a single field template by ID.\n *\n * @param id - The UUID of the field template.\n * @param options - Optional request options.\n * @returns The field template object.\n *\n * @example\n * const template = await admin.agents.fieldTemplates.get('ftpl_01...');\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminFieldTemplatesById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Creates a new field template.\n *\n * @param attributes - Field template attributes (name, category, field_type, etc.).\n * @param options - Optional request options.\n * @returns The created field template object.\n *\n * @example\n * const template = await admin.agents.fieldTemplates.create({ name: 'Invoice Total', category: 'finance', field_type: 'currency' });\n */\n create: async (\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminFieldTemplates,\n { body: { data: { type: \"field_template\", attributes } } },\n options,\n );\n },\n\n /**\n * Permanently deletes a field template by ID.\n *\n * @param id - The UUID of the field template to delete.\n * @param options - Optional request options.\n * @returns True on successful deletion.\n *\n * @example\n * await admin.agents.fieldTemplates.delete('ftpl_01...');\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminFieldTemplatesById,\n { path: { id } },\n options,\n );\n },\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n getAdminAccounts,\n getAdminAccountsById,\n patchAdminAccountsByIdCredit,\n patchAdminAccountsByIdDebit,\n} from \"../_internal/sdk.gen\";\nimport type { Account } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Manages platform billing accounts.\n *\n * Each account tracks the credit balance and currency for an API key or workspace.\n * Admin access only — these operations bypass tenant-level authorization.\n */\nexport function createAccountsNamespace(rb: RequestBuilder) {\n return {\n /**\n * Lists all billing accounts across the platform.\n *\n * @param options - Optional request options (headers, abort signal).\n * @returns Array of Account objects with current balances.\n */\n list: async (options?: RequestOptions): Promise<Account[]> => {\n return rb.execute<Account[]>(getAdminAccounts, {}, options);\n },\n\n /**\n * Fetches a single billing account by ID.\n *\n * @param id - Account ID.\n * @param options - Optional request options.\n * @returns The Account record.\n */\n get: async (id: string, options?: RequestOptions): Promise<Account> => {\n return rb.execute<Account>(\n getAdminAccountsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Adds credits to an account balance.\n *\n * Use for manual top-ups, promotional credits, or correction adjustments.\n * The amount must be a positive number greater than zero.\n *\n * @param id - Account ID.\n * @param amount - Number of credits to add (must be > 0).\n * @param description - Optional human-readable reason for the credit.\n * @param options - Optional request options.\n * @returns Updated Account with the new balance.\n */\n credit: async (\n id: string,\n amount: number,\n description?: string,\n options?: RequestOptions,\n ): Promise<Account> => {\n if (amount <= 0) {\n throw new Error(\"Credit amount must be positive\");\n }\n return rb.execute<Account>(\n patchAdminAccountsByIdCredit,\n {\n path: { id },\n body: {\n data: { type: \"account\", attributes: { amount, description } },\n },\n },\n options,\n );\n },\n\n /**\n * Deducts credits from an account balance.\n *\n * Use for charge-backs, manual usage adjustments, or corrections.\n * The amount must be a positive number greater than zero.\n *\n * @param id - Account ID.\n * @param amount - Number of credits to deduct (must be > 0).\n * @param description - Optional human-readable reason for the debit.\n * @param options - Optional request options.\n * @returns Updated Account with the new balance.\n */\n debit: async (\n id: string,\n amount: number,\n description?: string,\n options?: RequestOptions,\n ): Promise<Account> => {\n if (amount <= 0) {\n throw new Error(\"Debit amount must be positive\");\n }\n return rb.execute<Account>(\n patchAdminAccountsByIdDebit,\n {\n path: { id },\n body: {\n data: { type: \"account\", attributes: { amount, description } },\n },\n },\n options,\n );\n },\n };\n}\n","// Hand-written — this namespace calls plain Phoenix routes (GET /sys/capabilities\n// and GET /isv/capabilities), not Ash JSON:API resources. Do NOT regenerate\n// with mix update.sdks.\n\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/** Raw platform catalog entry — no per-application annotations. */\nexport interface AdminCapabilityEntry {\n key: string;\n name: string;\n description: string;\n category: string;\n domain: string;\n /** \"core\" | \"standard\" | \"premium\" */\n tier: string;\n /** \"ga\" | \"beta\" | \"preview\" */\n status: string;\n tags: string[];\n requires: string[];\n requires_any: string[];\n /** Optional URL linking to the capability's documentation page. */\n docs_url: string | null;\n}\n\n/**\n * ISV-annotated catalog entry — extends the raw entry with per-application\n * enablement state returned by `GET /isv/capabilities`.\n */\nexport interface AnnotatedCapabilityEntry extends AdminCapabilityEntry {\n /** Whether the authenticated application currently has this capability enabled. */\n enabled: boolean;\n /**\n * Whether this capability can be enabled right now. `true` when both\n * conditions are met: (1) the plan covers the capability's tier, and\n * (2) all hard required dependencies are already enabled.\n * `false` means either an upgrade is needed or required deps are missing.\n */\n can_enable: boolean;\n /** Required capabilities not yet enabled on the application. */\n missing_requires: string[];\n /** `requires_any` alternatives not yet enabled (empty when constraint is met). */\n missing_requires_any: string[];\n}\n\nexport function createCapabilitiesNamespace(rb: RequestBuilder) {\n return {\n /**\n * List the full capability catalog (platform admin view — no app annotations).\n *\n * Returns all capabilities with their tier, dependency, and metadata\n * information. No per-application annotations (`enabled`, `can_enable`,\n * etc.) — this view shows the raw platform catalog.\n *\n * Requires a platform admin key (`sk_sys_`).\n *\n * @param options - Optional request options (signal for cancellation, etc.).\n * @returns Array of `AdminCapabilityEntry` objects.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_sys_...' });\n * const catalog = await admin.capabilities.list();\n * const premium = catalog.filter(c => c.tier === \"premium\");\n * ```\n */\n list: async (options?: RequestOptions): Promise<AdminCapabilityEntry[]> => {\n return rb.rawGet<AdminCapabilityEntry[]>(\"/sys/capabilities\", options);\n },\n\n /**\n * List the capability catalog annotated for the authenticated application\n * (ISV view).\n *\n * Returns the full catalog with per-application state:\n * - `enabled` — whether the app currently has this capability active\n * - `can_enable` — whether the plan tier allows enabling it\n * - `missing_requires` — required capabilities not yet enabled\n * - `missing_requires_any` — `requires_any` alternatives not yet enabled\n *\n * Requires an ISV application key (`sk_app_`, `sk_srv_`). Use this method\n * to build plan upgrade flows and capability management UIs.\n *\n * @param options - Optional request options (signal for cancellation, etc.).\n * @returns Array of `AnnotatedCapabilityEntry` objects.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const catalog = await admin.capabilities.listForApplication();\n * const upgradeable = catalog.filter(c => !c.enabled && c.can_enable);\n * ```\n */\n listForApplication: async (\n options?: RequestOptions,\n ): Promise<AnnotatedCapabilityEntry[]> => {\n return rb.rawGet<AnnotatedCapabilityEntry[]>(\n \"/isv/capabilities\",\n options,\n );\n },\n\n /**\n * Get a single capability by key from the platform admin catalog.\n *\n * Convenience method that fetches the full catalog and returns the entry\n * matching `key`, or `null` if not found.\n *\n * Requires a platform admin key (`sk_sys_`).\n *\n * @param key - The capability atom key as a string (e.g., `\"salesforce_bulk\"`).\n * @param options - Optional request options.\n * @returns The matching `AdminCapabilityEntry`, or `null`.\n *\n * @example\n * ```typescript\n * const entry = await admin.capabilities.get(\"salesforce_bulk\");\n * if (entry) console.log(entry.tier); // \"premium\"\n * ```\n */\n get: async (\n key: string,\n options?: RequestOptions,\n ): Promise<AdminCapabilityEntry | null> => {\n const all = await rb.rawGet<AdminCapabilityEntry[]>(\n \"/sys/capabilities\",\n options,\n );\n return all.find((c) => c.key === key) ?? null;\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n deleteAdminApiKeysById,\n getAdminApiKeys,\n getAdminApiKeysActive,\n getAdminApiKeysById,\n getAdminApiKeysStats,\n patchAdminApiKeysById,\n patchAdminApiKeysByIdResetPeriod,\n patchAdminApiKeysByIdRevoke,\n patchAdminApiKeysByIdRotate,\n patchAdminApiKeysByIdSetBudget,\n postAdminApiKeys,\n} from \"../_internal/sdk.gen\";\nimport type { ApiKey } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Manages API keys across all tenants.\n *\n * Provides platform-level key administration including allocation of credits,\n * revocation (with credit reclaim), and rotation (new token, same metadata).\n * Keys returned are scoped to the actor's authorization level.\n */\nexport function createApiKeysNamespace(rb: RequestBuilder) {\n return {\n /**\n * Lists API keys. Supports keyset and offset pagination.\n *\n * Returns keys scoped to the actor — users see only their own keys,\n * ISV owners see keys for their application.\n *\n * @param options - Optional request options.\n * @returns Array of ApiKey objects.\n */\n list: async (options?: RequestOptions): Promise<ApiKey[]> => {\n return rb.execute<ApiKey[]>(getAdminApiKeys, {}, options);\n },\n\n /**\n * Fetches a single API key by ID.\n *\n * @param id - API key ID.\n * @param options - Optional request options.\n * @returns The ApiKey record.\n */\n get: async (id: string, options?: RequestOptions): Promise<ApiKey> => {\n return rb.execute<ApiKey>(getAdminApiKeysById, { path: { id } }, options);\n },\n\n /**\n * Revokes an API key, setting its status to `revoked` and recording the\n * revocation timestamp.\n *\n * Triggers smart credit reclaim: any unspent credits allocated to this key\n * are returned to the App Treasury or Tenant Wallet. Prefer this over\n * hard deletion to preserve the audit trail.\n *\n * @param id - API key ID.\n * @param options - Optional request options.\n * @returns Updated ApiKey with status `revoked`.\n */\n revoke: async (id: string, options?: RequestOptions): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysByIdRevoke,\n { path: { id }, body: {} },\n options,\n );\n },\n\n /**\n * Rotates an API key by generating a new token while preserving the key's\n * ID, metadata, and configuration.\n *\n * The new raw token is returned once in the `generated_api_key` field and\n * cannot be retrieved again. All active sessions using the old token are\n * immediately invalidated.\n *\n * @param id - API key ID.\n * @param options - Optional request options.\n * @returns Updated ApiKey with the new token in `generated_api_key`.\n */\n rotate: async (id: string, options?: RequestOptions): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysByIdRotate,\n { path: { id }, body: {} },\n options,\n );\n },\n\n /**\n * Create a new API key.\n * @param attributes - Key attributes (name, key_type, scopes, etc.)\n * @returns Created API key with generated token\n */\n create: async (\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n postAdminApiKeys,\n { body: { data: { type: \"api_key\", attributes } } },\n options,\n );\n },\n\n /**\n * Update an API key's configuration.\n * @param id - API key ID\n * @param attributes - Attributes to update (name, scopes, rate limits)\n * @returns Updated API key\n */\n update: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysById,\n { path: { id }, body: { data: { id, type: \"api_key\", attributes } } },\n options,\n );\n },\n\n /**\n * Delete an API key permanently.\n * @param id - API key ID\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminApiKeysById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Set or remove a credit budget for an API key.\n * @param id - API key ID\n * @param creditLimit - Max credits per period (null to remove)\n * @param creditLimitPeriod - Budget period (null to remove)\n * @returns Updated API key\n */\n setBudget: async (\n id: string,\n creditLimit: number | null,\n creditLimitPeriod: string | null,\n options?: RequestOptions,\n ): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysByIdSetBudget,\n {\n path: { id },\n body: {\n data: {\n id,\n type: \"api_key\",\n attributes: {\n credit_limit: creditLimit,\n credit_limit_period: creditLimitPeriod,\n },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Get API key usage statistics grouped by key type.\n * @returns Array of usage stat records\n */\n usageStats: async (\n options?: RequestOptions,\n ): Promise<Record<string, unknown>[]> => {\n return rb.execute<Record<string, unknown>[]>(\n getAdminApiKeysStats,\n {},\n options,\n );\n },\n\n /**\n * List only active (non-revoked) API keys.\n * @returns Array of active API keys\n */\n active: async (options?: RequestOptions): Promise<ApiKey[]> => {\n return rb.execute<ApiKey[]>(getAdminApiKeysActive, {}, options);\n },\n\n /**\n * Reset the budget period for an API key (resets period_credits_used to 0).\n * @param id - API key ID\n * @returns Updated API key\n */\n resetBudgetPeriod: async (\n id: string,\n options?: RequestOptions,\n ): Promise<ApiKey> => {\n return rb.execute<ApiKey>(\n patchAdminApiKeysByIdResetPeriod,\n {\n path: { id },\n body: { data: { id, type: \"api_key\", attributes: {} } },\n },\n options,\n );\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n getAdminExtractionDocuments,\n getAdminExtractionDocumentsById,\n postAdminDocumentsBulkDelete,\n getAdminDocumentsStats,\n} from \"../_internal/sdk.gen\";\nimport type { ExtractionDocument } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Platform-level access to extraction documents across all workspaces.\n *\n * Provides admin read and bulk deletion operations. Soft-deleted documents are\n * hidden from all standard reads but their database rows are preserved for audit.\n */\nexport function createDocumentsNamespace(rb: RequestBuilder) {\n return {\n /**\n * Lists active (non-deleted) documents across the platform.\n *\n * Excludes soft-deleted documents. To list deleted documents, call the\n * API directly with the `read_trashed` action.\n *\n * @param options - Optional request options.\n * @returns Array of ExtractionDocument objects.\n */\n list: async (options?: RequestOptions): Promise<ExtractionDocument[]> => {\n return rb.execute<ExtractionDocument[]>(\n getAdminExtractionDocuments,\n {},\n options,\n );\n },\n\n /**\n * Fetches a single active document by ID.\n *\n * Returns a 404 error for soft-deleted documents.\n *\n * @param id - Document ID.\n * @param options - Optional request options.\n * @returns The ExtractionDocument.\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<ExtractionDocument> => {\n return rb.execute<ExtractionDocument>(\n getAdminExtractionDocumentsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Soft-deletes up to 100 documents in a single operation.\n *\n * Sets `deleted_at` on each document without removing the database rows,\n * preserving the audit trail. Throws synchronously if the array is empty\n * or exceeds 100 items.\n *\n * @param ids - Array of document IDs to delete (1–100 items).\n * @param options - Optional request options.\n * @returns Result metadata for the bulk operation.\n */\n bulkDelete: async (\n ids: string[],\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n if (ids.length === 0) {\n throw new Error(\"At least one document ID is required\");\n }\n if (ids.length > 100) {\n throw new Error(\"Maximum 100 documents per bulk operation\");\n }\n return rb.execute<Record<string, unknown>>(\n postAdminDocumentsBulkDelete,\n { body: { data: { type: \"bulk_delete\", attributes: { ids } } } },\n options,\n );\n },\n\n /**\n * Returns platform-wide document statistics.\n *\n * Includes total counts by status (uploaded, processing, complete, failed)\n * and aggregate storage usage.\n *\n * @param options - Optional request options.\n * @returns Statistics record.\n */\n stats: async (\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminDocumentsStats,\n {},\n options,\n );\n },\n };\n}\n","// Hand-maintained — override generation\nimport type { ExecutionEvent } from \"../execution-events\";\nimport type { RequestOptions } from \"../base-client\";\nimport type { StreamOptions } from \"../streaming\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Execution record returned by the agent execution API.\n */\nexport interface Execution {\n id: string;\n agent_id: string;\n workspace_id: string;\n status:\n | \"pending\"\n | \"running\"\n | \"completed\"\n | \"failed\"\n | \"cancelled\"\n | \"awaiting_approval\";\n input: Record<string, unknown>;\n result: Record<string, unknown> | null;\n triggered_by_user_id: string | null;\n total_tokens: number | null;\n total_credits_charged: string | null;\n started_at: string | null;\n completed_at: string | null;\n created_at: string;\n}\n\n/**\n * Agent execution namespace factory.\n *\n * Provides full lifecycle management for agent executions via the ISV API.\n * Supports starting executions, streaming SSE events, human-in-the-loop\n * approval/denial, cancellation, and multi-agent delegation tree queries.\n *\n * @param rb - The request builder used for API communication.\n * @returns Executions namespace with full lifecycle methods.\n */\nexport function createExecutionsNamespace(rb: RequestBuilder) {\n return {\n /**\n * Start a new agent execution.\n *\n * @param agentId - The UUID of the agent to execute.\n * @param input - Input data for the agent (task description, documents, etc.).\n * @param options - Optional request options. Use `idempotencyKey` to prevent duplicate executions.\n * @returns The created execution record with status `pending`.\n *\n * @example\n * const exec = await admin.executions.start('agt_01...', {\n * task: 'Process invoice batch',\n * });\n * console.log(`Execution ${exec.id} started, status: ${exec.status}`);\n */\n async start(\n agentId: string,\n input: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<Execution> {\n return rb.rawPost<Execution>(\n `/isv/agents/${agentId}/execute`,\n { input },\n options,\n );\n },\n\n /**\n * Estimate credits required for an execution without running it.\n *\n * @param agentId - The UUID of the agent.\n * @param input - The input the agent would process.\n * @param options - Optional request options.\n * @returns Cost estimate with min/max credit ranges.\n *\n * @example\n * const estimate = await admin.executions.estimate('agt_01...', {\n * task: 'Process batch',\n * });\n * console.log(`Estimated: ${estimate.min_credits} - ${estimate.max_credits}`);\n */\n async estimate(\n agentId: string,\n input: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n return rb.rawPost<Record<string, unknown>>(\n `/isv/agents/${agentId}/estimate`,\n { input },\n options,\n );\n },\n\n /**\n * List agent executions.\n *\n * @param options - Optional request options.\n * @returns Array of execution records.\n *\n * @example\n * const executions = await admin.executions.list();\n */\n async list(options?: RequestOptions): Promise<Execution[]> {\n return rb.rawGet<Execution[]>(\"/isv/agent-executions\", options);\n },\n\n /**\n * Get a single execution by ID.\n *\n * @param id - Execution UUID.\n * @param options - Optional request options.\n * @returns The execution record.\n *\n * @example\n * const exec = await admin.executions.get('exec_01...');\n * console.log(exec.status, exec.total_tokens);\n */\n async get(id: string, options?: RequestOptions): Promise<Execution> {\n return rb.rawGet<Execution>(`/isv/agent-executions/${id}`, options);\n },\n\n /**\n * Stream execution events via Server-Sent Events.\n * Returns an async iterator of typed execution events.\n *\n * @param id - Execution UUID to stream.\n * @param options - Optional request and stream options.\n * @returns Async iterator of ExecutionEvent objects.\n *\n * @example\n * const stream = await admin.executions.stream(exec.id);\n * for await (const event of stream) {\n * if (event.type === 'token_delta') process.stdout.write(event.data.content);\n * if (event.type === 'done') console.log('Complete');\n * }\n */\n async stream(\n id: string,\n options?: RequestOptions & StreamOptions,\n ): Promise<AsyncIterableIterator<ExecutionEvent>> {\n return rb.streamGetRequest(\n `/isv/agent-executions/${id}/stream`,\n options,\n ) as Promise<AsyncIterableIterator<ExecutionEvent>>;\n },\n\n /**\n * Approve a pending human-in-the-loop tool call.\n *\n * @param id - Execution UUID awaiting approval.\n * @param options - Optional request options.\n * @returns The updated execution record.\n *\n * @example\n * await admin.executions.approve('exec_01...');\n */\n async approve(id: string, options?: RequestOptions): Promise<Execution> {\n return rb.rawPost<Execution>(\n `/isv/agent-executions/${id}/approve`,\n undefined,\n options,\n );\n },\n\n /**\n * Deny a pending human-in-the-loop tool call.\n *\n * @param id - Execution UUID awaiting approval.\n * @param reason - Human-readable reason for rejection.\n * @param options - Optional request options.\n * @returns The updated execution record.\n *\n * @example\n * await admin.executions.deny('exec_01...', 'Not authorized to send emails');\n */\n async deny(\n id: string,\n reason: string,\n options?: RequestOptions,\n ): Promise<Execution> {\n return rb.rawPost<Execution>(\n `/isv/agent-executions/${id}/deny`,\n { reason },\n options,\n );\n },\n\n /**\n * Cancel an in-progress execution.\n *\n * @param id - Execution UUID to cancel.\n * @param options - Optional request options.\n * @returns The updated execution record with `cancelled` status.\n *\n * @example\n * await admin.executions.cancel('exec_01...');\n */\n async cancel(id: string, options?: RequestOptions): Promise<Execution> {\n return rb.rawPost<Execution>(\n `/isv/agent-executions/${id}/cancel`,\n undefined,\n options,\n );\n },\n\n /**\n * List child executions spawned by a parent execution (multi-agent delegation).\n *\n * @param id - Parent execution UUID.\n * @param options - Optional request options.\n * @returns Array of child execution records.\n *\n * @example\n * const children = await admin.executions.children('exec_01...');\n */\n async children(id: string, options?: RequestOptions): Promise<Execution[]> {\n return rb.rawGet<Execution[]>(\n `/isv/agent-executions/${id}/children`,\n options,\n );\n },\n\n /**\n * Get the full execution tree for a root execution.\n * Includes all nested child executions and their statuses.\n *\n * @param id - Root execution UUID.\n * @param options - Optional request options.\n * @returns Hierarchical execution tree structure.\n *\n * @example\n * const tree = await admin.executions.tree('exec_01...');\n */\n async tree(\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n return rb.rawGet<Record<string, unknown>>(\n `/isv/agent-executions/${id}/tree`,\n options,\n );\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n getAdminStorageStats,\n getAdminBuckets,\n getAdminBucketsById,\n getAdminBucketsByIdStats,\n} from \"../_internal/sdk.gen\";\nimport type { Bucket } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Platform-level storage management.\n *\n * Provides access to global storage statistics and bucket administration.\n * Buckets are provisioned in GCS (production) or MinIO (development).\n * Processing-type (internal) buckets are excluded from listings by default.\n */\nexport function createStorageNamespace(rb: RequestBuilder) {\n return {\n /**\n * Retrieves platform-wide storage statistics.\n *\n * Pass a `workspaceId` to scope results to a single workspace.\n *\n * @param workspaceId - Optional workspace ID to filter statistics.\n * @param options - Optional request options.\n * @returns Storage statistics record with byte counts and file totals.\n */\n stats: async (\n workspaceId?: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n const params = workspaceId\n ? { query: { \"filter[workspace_id]\": workspaceId } }\n : {};\n return rb.execute<Record<string, unknown>>(\n getAdminStorageStats,\n params,\n options,\n );\n },\n\n buckets: {\n /**\n * Lists all storage buckets, excluding processing-type buckets by default.\n *\n * @param options - Optional request options.\n * @returns Array of Bucket objects.\n */\n list: async (options?: RequestOptions): Promise<Bucket[]> => {\n return rb.execute<Bucket[]>(getAdminBuckets, {}, options);\n },\n\n /**\n * Fetches a single bucket by ID.\n *\n * @param id - Bucket ID.\n * @param options - Optional request options.\n * @returns The Bucket record.\n */\n get: async (id: string, options?: RequestOptions): Promise<Bucket> => {\n return rb.execute<Bucket>(\n getAdminBucketsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Fetches a bucket with the `storage_used` calculation.\n *\n * Returns total bytes across all workspace files stored in this bucket.\n *\n * @param id - Bucket ID.\n * @param options - Optional request options.\n * @returns Bucket record including computed `storage_used` field.\n */\n stats: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n getAdminBucketsByIdStats,\n { path: { id } },\n options,\n );\n },\n },\n };\n}\n","/**\n * JSON:API pagination links\n */\nexport interface PaginationLinks {\n self?: string;\n first?: string;\n last?: string;\n prev?: string | null;\n next?: string | null;\n}\n\n/**\n * JSON:API response with pagination\n */\nexport interface PaginatedResponse<T> {\n data: T[];\n links?: PaginationLinks;\n meta?: {\n total_count?: number;\n page_count?: number;\n current_page?: number;\n };\n}\n\n/**\n * Options for paginated requests\n */\nexport interface PaginationOptions {\n /**\n * Page size (number of items per page)\n */\n pageSize?: number;\n\n /**\n * Maximum total items to fetch (default: unlimited for paginateAll, 10000 for paginateToArray)\n */\n limit?: number;\n\n /**\n * Maximum number of pages to fetch (default: 500)\n * Safety limit to prevent infinite pagination loops\n */\n maxPages?: number;\n\n /**\n * Optional logger for warnings. If not provided, falls back to console.\n */\n logger?: { warn: (...args: unknown[]) => void };\n}\n\n/**\n * Default maximum pages to prevent infinite pagination loops\n */\nconst DEFAULT_MAX_PAGES = 500;\n\n/**\n * Async iterator for paginated results.\n * Security: Enforces max pages limit to prevent infinite pagination loops.\n */\nexport async function* paginateAll<T>(\n fetcher: (page: number, pageSize: number) => Promise<PaginatedResponse<T>>,\n options: PaginationOptions = {},\n): AsyncIterableIterator<T> {\n const pageSize = options.pageSize || 20;\n const limit = options.limit;\n const maxPages = options.maxPages ?? DEFAULT_MAX_PAGES;\n const logger =\n options.logger ?? (typeof console !== \"undefined\" ? console : undefined);\n let page = 1;\n let totalYielded = 0;\n\n while (true) {\n // Security: Check page count to prevent infinite loops\n if (page > maxPages) {\n logger?.warn(\n `[GPT Core SDK] Pagination stopped: reached maximum page limit (${maxPages}). ` +\n `Use options.maxPages to increase or options.limit to cap total items.`,\n );\n return;\n }\n\n const response = await fetcher(page, pageSize);\n\n // Yield each item\n for (const item of response.data) {\n yield item;\n totalYielded++;\n\n // Stop if we've hit the limit\n if (limit && totalYielded >= limit) {\n return;\n }\n }\n\n // Stop if no more pages\n if (!response.links?.next || response.data.length === 0) {\n break;\n }\n\n page++;\n }\n}\n\n/**\n * Default maximum items to prevent memory exhaustion\n */\nconst DEFAULT_LIMIT = 10000;\n\n/**\n * Helper to collect all paginated results into an array\n * Security: Enforces default limit to prevent DoS via infinite pagination\n */\nexport async function paginateToArray<T>(\n fetcher: (page: number, pageSize: number) => Promise<PaginatedResponse<T>>,\n options: PaginationOptions = {},\n): Promise<T[]> {\n const safeOptions = {\n pageSize: options.pageSize || 20,\n // Security: Apply default limit to prevent unbounded memory usage\n limit: options.limit ?? DEFAULT_LIMIT,\n logger: options.logger,\n };\n\n const results: T[] = [];\n for await (const item of paginateAll(fetcher, safeOptions)) {\n results.push(item);\n }\n return results;\n}\n","/**\n * Type utilities for namespace implementations.\n * These types bridge the gap between our ergonomic namespace APIs\n * and the OpenAPI-generated generic types.\n */\n\n/**\n * JSON:API page parameter structure\n */\nexport type JsonApiPageParams = {\n number?: number;\n size?: number;\n [key: string]: unknown;\n};\n\n/**\n * JSON:API query parameters with pagination\n */\nexport type JsonApiQueryWithPage = {\n query: {\n page?: JsonApiPageParams;\n [key: string]: unknown;\n };\n [key: string]: unknown;\n};\n\n/**\n * JSON:API data envelope for POST/PATCH requests\n */\nexport type JsonApiDataEnvelope<T extends string = string> = {\n data: {\n type: T;\n attributes: Record<string, unknown>;\n [key: string]: unknown;\n };\n [key: string]: unknown;\n};\n\n/**\n * JSON:API body parameter\n */\nexport type JsonApiBody<T extends string = string> = {\n body: JsonApiDataEnvelope<T>;\n [key: string]: unknown;\n};\n\n/**\n * Empty body (for endpoints that require a body but no data)\n */\nexport type EmptyBody = {\n body: Record<string, never>;\n [key: string]: unknown;\n};\n\n/**\n * Path parameters\n */\nexport type PathParams = {\n path: Record<string, string>;\n [key: string]: unknown;\n};\n\n/**\n * Query parameter dictionary (generic index signature)\n */\nexport type QueryParamDict = { [key: string]: unknown };\n\n/**\n * File upload body (File, Blob, or FormData)\n * This is cast as unknown because the OpenAPI generated types expect JSON:API structure,\n * but file uploads use multipart/form-data or binary content.\n */\nexport type FileUploadBody = {\n body: File | Blob | FormData;\n [key: string]: unknown;\n};\n\n/**\n * Helper to construct query params with page\n */\nexport function buildPageQuery(\n page?: number,\n pageSize?: number,\n): JsonApiQueryWithPage {\n return {\n query: {\n page: {\n ...(page && { number: page }),\n ...(pageSize && { size: pageSize }),\n },\n },\n };\n}\n\n/**\n * Helper to construct JSON:API body\n */\nexport function buildJsonApiBody<T extends string>(\n type: T,\n attributes: Record<string, unknown>,\n): JsonApiBody<T> {\n return {\n body: {\n data: {\n type,\n attributes,\n },\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n deleteAdminUsersById,\n getAdminUsers,\n getAdminUsersById,\n getAdminUsersByEmail,\n patchAdminUsersByIdAdmin,\n patchAdminUsersByIdAdminEmail,\n patchAdminUsersByIdConfirmEmail,\n patchAdminUsersByIdResetPassword,\n} from \"../_internal/sdk.gen\";\nimport type { User } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\nimport { paginateToArray } from \"../pagination\";\nimport { buildPageQuery } from \"../namespace-types\";\nimport type { JsonApiQueryWithPage } from \"../namespace-types\";\n\nexport function createUsersNamespace(rb: RequestBuilder) {\n return {\n /**\n * List all users (paginated).\n * @param options - Optional page and pageSize along with request options\n * @returns Array of users\n */\n list: async (\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<User[]> => {\n return rb.execute<User[]>(\n getAdminUsers,\n buildPageQuery(options?.page, options?.pageSize),\n options,\n );\n },\n\n /**\n * List all users (fetches all pages automatically).\n * @returns Complete array of all users\n */\n listAll: async (options?: RequestOptions): Promise<User[]> => {\n return paginateToArray(\n rb.createPaginatedFetcher<User>(\n getAdminUsers,\n (page, pageSize): JsonApiQueryWithPage => ({\n query: { page: { number: page, size: pageSize } },\n }),\n options,\n ),\n );\n },\n\n /**\n * Get a user by ID.\n * @param id - User ID\n * @returns User object\n */\n get: async (id: string, options?: RequestOptions): Promise<User> => {\n return rb.execute<User>(getAdminUsersById, { path: { id } }, options);\n },\n\n /**\n * Look up a user by email address.\n * @param email - Email address to search\n * @returns User object\n */\n getByEmail: async (\n email: string,\n options?: RequestOptions,\n ): Promise<User> => {\n return rb.execute<User>(\n getAdminUsersByEmail,\n { query: { email } },\n options,\n );\n },\n\n /**\n * Update a user's admin-level attributes (is_platform_admin, is_app_admin).\n * @param id - User ID\n * @param attributes - Admin attributes to update\n * @returns Updated user\n */\n adminUpdate: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<User> => {\n return rb.execute<User>(\n patchAdminUsersByIdAdmin,\n { path: { id }, body: { data: { id, type: \"user\", attributes } } },\n options,\n );\n },\n\n /**\n * Change a user's email address (admin action).\n * @param id - User ID\n * @param email - New email address\n * @returns Updated user\n */\n adminUpdateEmail: async (\n id: string,\n email: string,\n options?: RequestOptions,\n ): Promise<User> => {\n return rb.execute<User>(\n patchAdminUsersByIdAdminEmail,\n {\n path: { id },\n body: { data: { id, type: \"user\", attributes: { email } } },\n },\n options,\n );\n },\n\n /**\n * Confirm a user's email address (admin bypass).\n * @param id - User ID\n * @returns Updated user\n */\n confirmEmail: async (\n id: string,\n options?: RequestOptions,\n ): Promise<User> => {\n return rb.execute<User>(\n patchAdminUsersByIdConfirmEmail,\n { path: { id }, body: { data: { id, type: \"user\", attributes: {} } } },\n options,\n );\n },\n\n /**\n * Trigger a password reset email for a user (admin action).\n * @param id - User ID\n * @returns Updated user\n */\n triggerPasswordReset: async (\n id: string,\n options?: RequestOptions,\n ): Promise<User> => {\n return rb.execute<User>(\n patchAdminUsersByIdResetPassword,\n { path: { id }, body: { data: { id, type: \"user\", attributes: {} } } },\n options,\n );\n },\n\n /**\n * Delete a user and all associated data.\n * @param id - User ID\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(deleteAdminUsersById, { path: { id } }, options);\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n getAdminVoiceRecordings,\n getAdminVoiceRecordingsById,\n getAdminVoiceRecordingsSessionBySessionId,\n getAdminVoiceSessions,\n getAdminVoiceSessionsById,\n getAdminVoiceSessionsWorkspaceByWorkspaceId,\n getAdminVoiceTranscriptionResults,\n getAdminVoiceTranscriptionResultsById,\n getAdminVoiceTranscriptionResultsSessionBySessionId,\n} from \"../_internal/sdk.gen\";\nimport type {\n VoiceRecording,\n VoiceSession,\n VoiceTranscriptionResult,\n} from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { buildPageQuery } from \"../namespace-types\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Admin-level voice session, recording, and transcription management.\n *\n * Provides cross-workspace visibility into voice sessions, recordings,\n * and transcription results for ISV administrators and platform operators.\n */\nexport function createVoiceNamespace(rb: RequestBuilder) {\n return {\n /**\n * Voice session management — admin view across all workspaces.\n */\n sessions: {\n /**\n * List voice sessions across all workspaces.\n *\n * @param options - Optional pagination, filter, and request options.\n * @returns Array of VoiceSession objects.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * // List all active sessions\n * const activeSessions = await admin.voice.sessions.list({ status: \"active\" });\n * // List sessions from the last 24 hours\n * const recentSessions = await admin.voice.sessions.list({\n * insertedAfter: new Date(Date.now() - 86400000).toISOString()\n * });\n * ```\n */\n list: async (\n options?: {\n page?: number;\n pageSize?: number;\n status?: \"active\" | \"ended\" | \"failed\" | \"timed_out\";\n insertedAfter?: string;\n insertedBefore?: string;\n } & RequestOptions,\n ): Promise<VoiceSession[]> => {\n const filters: Record<string, string> = {};\n if (options?.status) filters[\"filter[status]\"] = options.status;\n if (options?.insertedAfter)\n filters[\"filter[inserted_after]\"] = options.insertedAfter;\n if (options?.insertedBefore)\n filters[\"filter[inserted_before]\"] = options.insertedBefore;\n return rb.execute<VoiceSession[]>(\n getAdminVoiceSessions,\n {\n ...buildPageQuery(options?.page, options?.pageSize),\n query: filters,\n },\n options,\n );\n },\n\n /**\n * Retrieve a single voice session by ID.\n *\n * @param id - The UUID of the voice session.\n * @param options - Optional request options.\n * @returns The VoiceSession.\n *\n * @example\n * ```typescript\n * const session = await admin.voice.sessions.get('session-uuid');\n * ```\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<VoiceSession> => {\n return rb.execute<VoiceSession>(\n getAdminVoiceSessionsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * List voice sessions in a specific workspace.\n *\n * @param workspaceId - The UUID of the workspace.\n * @param options - Optional pagination and request options.\n * @returns Array of VoiceSession objects in the workspace.\n *\n * @example\n * ```typescript\n * const sessions = await admin.voice.sessions.listByWorkspace('ws-uuid');\n * ```\n */\n listByWorkspace: async (\n workspaceId: string,\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<VoiceSession[]> => {\n return rb.execute<VoiceSession[]>(\n getAdminVoiceSessionsWorkspaceByWorkspaceId,\n {\n path: { workspace_id: workspaceId },\n ...buildPageQuery(options?.page, options?.pageSize),\n },\n options,\n );\n },\n },\n\n /**\n * Voice recording management — admin view.\n */\n recordings: {\n /**\n * List voice recordings.\n *\n * @param options - Optional pagination and request options.\n * @returns Array of VoiceRecording objects.\n *\n * @example\n * ```typescript\n * const recordings = await admin.voice.recordings.list();\n * ```\n */\n list: async (\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<VoiceRecording[]> => {\n return rb.execute<VoiceRecording[]>(\n getAdminVoiceRecordings,\n buildPageQuery(options?.page, options?.pageSize),\n options,\n );\n },\n\n /**\n * Retrieve a single recording by ID.\n *\n * @param id - The UUID of the recording.\n * @param options - Optional request options.\n * @returns The VoiceRecording.\n *\n * @example\n * ```typescript\n * const recording = await admin.voice.recordings.get('recording-uuid');\n * ```\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<VoiceRecording> => {\n return rb.execute<VoiceRecording>(\n getAdminVoiceRecordingsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * List all recordings for a specific voice session.\n *\n * @param sessionId - The UUID of the voice session.\n * @param options - Optional request options.\n * @returns Array of VoiceRecording objects for the session.\n *\n * @example\n * ```typescript\n * const recordings = await admin.voice.recordings.bySession('session-uuid');\n * ```\n */\n bySession: async (\n sessionId: string,\n options?: RequestOptions,\n ): Promise<VoiceRecording[]> => {\n return rb.execute<VoiceRecording[]>(\n getAdminVoiceRecordingsSessionBySessionId,\n { path: { session_id: sessionId } },\n options,\n );\n },\n },\n\n /**\n * Transcription result management — admin view.\n */\n transcriptionResults: {\n /**\n * List transcription results.\n *\n * @param options - Optional pagination and request options.\n * @returns Array of VoiceTranscriptionResult objects.\n *\n * @example\n * ```typescript\n * const results = await admin.voice.transcriptionResults.list();\n * ```\n */\n list: async (\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<VoiceTranscriptionResult[]> => {\n return rb.execute<VoiceTranscriptionResult[]>(\n getAdminVoiceTranscriptionResults,\n buildPageQuery(options?.page, options?.pageSize),\n options,\n );\n },\n\n /**\n * Retrieve a single transcription result by ID.\n *\n * @param id - The UUID of the transcription result.\n * @param options - Optional request options.\n * @returns The VoiceTranscriptionResult.\n *\n * @example\n * ```typescript\n * const result = await admin.voice.transcriptionResults.get('result-uuid');\n * ```\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<VoiceTranscriptionResult> => {\n return rb.execute<VoiceTranscriptionResult>(\n getAdminVoiceTranscriptionResultsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * List transcription results for a specific voice session.\n *\n * @param sessionId - The UUID of the voice session.\n * @param options - Optional pagination and request options.\n * @returns Array of VoiceTranscriptionResult objects for the session.\n *\n * @example\n * ```typescript\n * const results = await admin.voice.transcriptionResults.bySession('session-uuid');\n * ```\n */\n bySession: async (\n sessionId: string,\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<VoiceTranscriptionResult[]> => {\n return rb.execute<VoiceTranscriptionResult[]>(\n getAdminVoiceTranscriptionResultsSessionBySessionId,\n {\n path: { session_id: sessionId },\n ...buildPageQuery(options?.page, options?.pageSize),\n },\n options,\n );\n },\n },\n };\n}\n","// Hand-maintained — override generation\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Audit log entry returned by the admin audit API.\n *\n * Note: `ip_address` and `user_agent` are intentionally excluded —\n * those fields are `public?: false` in the resource definition.\n */\nexport interface AuditLog {\n id: string;\n action: string;\n resource_type: string | null;\n resource_id: string | null;\n changes: Record<string, unknown> | null;\n target_type: string | null;\n target_id: string | null;\n target_name: string | null;\n admin_context: \"platform_admin\" | \"isv_admin\" | \"app_api\" | \"sys_api\" | null;\n tenant_id: string | null;\n workspace_id: string | null;\n actor_id: string | null;\n /** Human-readable actor name — \"System\" for automated actions. Loaded via calculation. */\n actor_display_name: string | null;\n created_at: string;\n}\n\n/** Parameters for the paginated audit log list. */\nexport type AuditListParams = {\n /** Keyset cursor — fetch entries after this position (forward pagination). */\n after?: string;\n /** Keyset cursor — fetch entries before this position (backward pagination). */\n before?: string;\n /** Max results to return. Default: 50. */\n limit?: number;\n /** Offset for offset-based pagination. */\n offset?: number;\n /** Sort field, e.g. `inserted_at` or `-inserted_at`. */\n sort?: string;\n};\n\n/** Parameters for the tenant activity feed. */\nexport type ActivityFeedParams = {\n /** Required. Tenant UUID to scope the feed. */\n tenantId: string;\n /** Optional workspace UUID to narrow results to a single workspace. */\n workspaceId?: string;\n /** Optional action type filter, e.g. `\"document.analyzed\"`. */\n activityType?: string;\n /** Optional actor UUID — returns only actions performed by this actor. */\n actorId?: string;\n /** ISO-8601 timestamp — return only entries after this datetime. */\n fromDate?: string;\n /** ISO-8601 timestamp — return only entries before this datetime. */\n toDate?: string;\n /** Max results to return. Default: 50. */\n limit?: number;\n /** Offset for offset-based pagination. */\n offset?: number;\n};\n\n/** Parameters for the count-by-action aggregate. */\nexport type CountByActionParams = {\n /** Required. Tenant UUID. */\n tenantId: string;\n /** Optional workspace UUID to narrow results. */\n workspaceId?: string;\n};\n\n/** Single row from the count-by-action aggregate. */\nexport type CountByActionResult = { action: string; count: number };\n\n/** Parameters for requesting a bulk compliance export. */\nexport type ExportParams = {\n /** Export format. */\n format: \"csv\" | \"json\";\n /** Required. Tenant UUID — exports only logs for this tenant. */\n tenantId: string;\n /** ISO-8601 timestamp — export only entries after this datetime. */\n fromDate?: string;\n /** ISO-8601 timestamp — export only entries before this datetime. */\n toDate?: string;\n};\n\n/** Result returned when an export is enqueued. */\nexport type ExportResult = { jobId: string; status: string };\n\n/**\n * Audit log namespace factory.\n *\n * Provides compliance-oriented access to audit log entries: paginated listing,\n * tenant activity feeds, per-action aggregates, and async bulk exports.\n *\n * @param rb - The request builder used for API communication.\n * @returns Audit namespace with `list`, `activityFeed`, `countByAction`, and `requestExport`.\n */\nexport function createAuditNamespace(rb: RequestBuilder) {\n return {\n /**\n * List audit log entries with keyset or offset pagination.\n *\n * Returns up to `limit` (default 50) entries sorted by `inserted_at` descending.\n * The `actor_display_name` calculation is included automatically.\n *\n * @param params - Optional pagination and sort parameters.\n * @param options - Optional request options.\n * @returns Array of AuditLog entries.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n *\n * // First page (default limit 50)\n * const page1 = await admin.audit.list();\n *\n * // Next page using keyset cursor\n * const page2 = await admin.audit.list({ after: page1.at(-1)?.id, limit: 25 });\n * ```\n */\n async list(\n params: AuditListParams = {},\n options?: RequestOptions,\n ): Promise<AuditLog[]> {\n const parts: string[] = [];\n if (params.limit !== undefined) parts.push(`page[limit]=${params.limit}`);\n if (params.offset !== undefined)\n parts.push(`page[offset]=${params.offset}`);\n if (params.after)\n parts.push(`page[after]=${encodeURIComponent(params.after)}`);\n if (params.before)\n parts.push(`page[before]=${encodeURIComponent(params.before)}`);\n if (params.sort) parts.push(`sort=${encodeURIComponent(params.sort)}`);\n const qs = parts.length ? `?${parts.join(\"&\")}` : \"\";\n return rb.rawGet<AuditLog[]>(`/admin/audit-logs${qs}`, options);\n },\n\n /**\n * Fetch a paginated, time-sorted activity feed scoped to a tenant.\n *\n * Optionally filter by workspace, action type, actor, or date range.\n * Results are sorted by `inserted_at` descending (most recent first).\n *\n * @param params - Feed parameters. `tenantId` is required.\n * @param options - Optional request options.\n * @returns Array of AuditLog entries matching the filters.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n *\n * // All activity for a tenant in the last 24h\n * const feed = await admin.audit.activityFeed({\n * tenantId: 'tenant-uuid',\n * fromDate: new Date(Date.now() - 86400000).toISOString(),\n * });\n *\n * // Narrow to a specific workspace and actor\n * const focused = await admin.audit.activityFeed({\n * tenantId: 'tenant-uuid',\n * workspaceId: 'ws-uuid',\n * actorId: 'user-uuid',\n * limit: 20,\n * });\n * ```\n */\n async activityFeed(\n params: ActivityFeedParams,\n options?: RequestOptions,\n ): Promise<AuditLog[]> {\n if (!params.tenantId) throw new Error(\"tenantId is required\");\n const parts: string[] = [\n `tenant_id=${encodeURIComponent(params.tenantId)}`,\n ];\n if (params.workspaceId)\n parts.push(`workspace_id=${encodeURIComponent(params.workspaceId)}`);\n if (params.activityType)\n parts.push(`activity_type=${encodeURIComponent(params.activityType)}`);\n if (params.actorId)\n parts.push(`actor_id=${encodeURIComponent(params.actorId)}`);\n if (params.fromDate)\n parts.push(`from_date=${encodeURIComponent(params.fromDate)}`);\n if (params.toDate)\n parts.push(`to_date=${encodeURIComponent(params.toDate)}`);\n if (params.limit !== undefined) parts.push(`limit=${params.limit}`);\n if (params.offset !== undefined) parts.push(`offset=${params.offset}`);\n return rb.rawGet<AuditLog[]>(\n `/admin/audit-logs/activity?${parts.join(\"&\")}`,\n options,\n );\n },\n\n /**\n * Return per-action counts for a tenant, sorted by frequency descending.\n *\n * Useful for anomaly dashboards and compliance reporting.\n *\n * @param params - `tenantId` is required. `workspaceId` narrows to one workspace.\n * @param options - Optional request options.\n * @returns Array of `{ action, count }` objects sorted by count descending.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n *\n * const counts = await admin.audit.countByAction({ tenantId: 'tenant-uuid' });\n * // [{ action: \"document.analyzed\", count: 1240 }, { action: \"user.login\", count: 98 }, ...]\n * ```\n */\n async countByAction(\n params: CountByActionParams,\n options?: RequestOptions,\n ): Promise<CountByActionResult[]> {\n if (!params.tenantId) throw new Error(\"tenantId is required\");\n const parts: string[] = [\n `tenant_id=${encodeURIComponent(params.tenantId)}`,\n ];\n if (params.workspaceId)\n parts.push(`workspace_id=${encodeURIComponent(params.workspaceId)}`);\n return rb.rawGet<CountByActionResult[]>(\n `/admin/audit-logs/count-by-action?${parts.join(\"&\")}`,\n options,\n );\n },\n\n /**\n * Enqueue a bulk compliance export of audit logs for a tenant.\n *\n * The export is processed asynchronously by the `ExportAuditLogsWorker` Oban job.\n * The caller receives a job ID and status immediately; the file URL is published\n * to `audit:export:{tenant_id}` via PubSub when ready (see `AuditExportCompleted`).\n *\n * @param params - Export parameters. `tenantId` and `format` are required.\n * @param options - Optional request options.\n * @returns `{ jobId, status }` — the Oban job ID and initial status (`\"enqueued\"`).\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n *\n * // Request a CSV export of the last 30 days\n * const thirty = new Date();\n * thirty.setDate(thirty.getDate() - 30);\n * const result = await admin.audit.requestExport({\n * format: 'csv',\n * tenantId: 'tenant-uuid',\n * fromDate: thirty.toISOString(),\n * });\n * console.log(`Export job ${result.jobId} enqueued`);\n * ```\n */\n async requestExport(\n params: ExportParams,\n options?: RequestOptions,\n ): Promise<ExportResult> {\n if (!params.tenantId) throw new Error(\"tenantId is required\");\n return rb.rawPost<ExportResult>(\n `/admin/audit-logs/export`,\n {\n data: {\n type: \"audit_log\",\n attributes: {\n format: params.format,\n tenant_id: params.tenantId,\n ...(params.fromDate && { from_date: params.fromDate }),\n ...(params.toDate && { to_date: params.toDate }),\n },\n },\n },\n options,\n );\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n getAdminWebhookConfigs,\n postAdminWebhookConfigs,\n getAdminWebhookConfigsById,\n patchAdminWebhookConfigsById,\n deleteAdminWebhookConfigsById,\n postAdminWebhookConfigsByIdTest,\n getAdminWebhookDeliveries,\n getAdminWebhookDeliveriesById,\n postAdminWebhookDeliveriesByIdRetry,\n} from \"../_internal/sdk.gen\";\nimport type { WebhookConfig, WebhookDelivery } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Webhook infrastructure management.\n *\n * Administers webhook endpoint configurations (`configs`) and their delivery\n * records (`deliveries`). Webhook events are dispatched asynchronously via\n * the WebhookSender Oban worker and signed with an HMAC secret for verification.\n */\nexport function createWebhooksNamespace(rb: RequestBuilder) {\n return {\n configs: {\n /**\n * Lists all webhook configurations.\n *\n * @param options - Optional request options.\n * @returns Array of WebhookConfig objects.\n */\n list: async (options?: RequestOptions): Promise<WebhookConfig[]> => {\n return rb.execute<WebhookConfig[]>(getAdminWebhookConfigs, {}, options);\n },\n\n /**\n * Registers a new webhook endpoint to receive platform events.\n *\n * The `application_id` is inferred from the API key used to make the\n * request. Supply it explicitly to scope the webhook to a specific application.\n *\n * @param name - Display name for the webhook configuration.\n * @param url - HTTPS URL that will receive event POST requests.\n * @param events - Event types to subscribe to (e.g. `\"document.analyzed\"`).\n * @param applicationId - Optional application ID to scope this webhook.\n * @param secret - Optional HMAC signing secret for payload verification.\n * @param options - Optional request options.\n * @returns The created WebhookConfig.\n */\n create: async (\n name: string,\n url: string,\n events: string[],\n applicationId?: string,\n secret?: string,\n options?: RequestOptions,\n ): Promise<WebhookConfig> => {\n return rb.execute<WebhookConfig>(\n postAdminWebhookConfigs,\n {\n body: {\n data: {\n type: \"webhook_config\",\n attributes: {\n name,\n url,\n events,\n application_id: applicationId,\n secret,\n },\n },\n },\n },\n options,\n );\n },\n\n /**\n * Fetches a single webhook configuration by ID.\n *\n * @param id - WebhookConfig ID.\n * @param options - Optional request options.\n * @returns The WebhookConfig.\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<WebhookConfig> => {\n return rb.execute<WebhookConfig>(\n getAdminWebhookConfigsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Updates webhook endpoint settings.\n *\n * Updates URL, subscribed event types, enabled state, and other mutable\n * fields. To change the HMAC signing secret, use the `rotate_secret`\n * action via the API directly instead.\n *\n * @param id - WebhookConfig ID.\n * @param attributes - Partial attributes to update.\n * @param options - Optional request options.\n * @returns Updated WebhookConfig.\n */\n update: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<WebhookConfig> => {\n return rb.execute<WebhookConfig>(\n patchAdminWebhookConfigsById,\n {\n path: { id },\n body: { data: { id, type: \"webhook_config\", attributes } },\n },\n options,\n );\n },\n\n /**\n * Permanently deletes a webhook configuration.\n *\n * This action cannot be undone. Associated delivery records are preserved.\n *\n * @param id - WebhookConfig ID.\n * @param options - Optional request options.\n * @returns `true` on success.\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminWebhookConfigsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Sends a realistic sample payload to the webhook URL.\n *\n * Verifies connectivity and signature verification by enqueuing a\n * WebhookSender Oban job tagged with `test: true`. Use this to confirm\n * the endpoint is reachable and parsing HMAC signatures correctly before\n * subscribing to live events.\n *\n * @param id - WebhookConfig ID.\n * @param options - Optional request options.\n * @returns The WebhookConfig on success.\n */\n test: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminWebhookConfigsByIdTest,\n { path: { id }, body: {} },\n options,\n );\n },\n },\n\n deliveries: {\n /**\n * Lists all webhook delivery records across all configurations.\n *\n * Each delivery record tracks the attempt count, status, payload, and\n * response for a single event dispatch.\n *\n * @param options - Optional request options.\n * @returns Array of WebhookDelivery objects.\n */\n list: async (options?: RequestOptions): Promise<WebhookDelivery[]> => {\n return rb.execute<WebhookDelivery[]>(\n getAdminWebhookDeliveries,\n {},\n options,\n );\n },\n\n /**\n * Fetches a single delivery record by ID.\n *\n * @param id - WebhookDelivery ID.\n * @param options - Optional request options.\n * @returns The WebhookDelivery.\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<WebhookDelivery> => {\n return rb.execute<WebhookDelivery>(\n getAdminWebhookDeliveriesById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Re-enqueues a failed or pending delivery for immediate re-dispatch.\n *\n * Sets the delivery status to `retrying` and inserts a new WebhookSender\n * Oban job. Use this to recover from transient endpoint failures without\n * waiting for the automatic retry schedule.\n *\n * @param id - WebhookDelivery ID.\n * @param options - Optional request options.\n * @returns Updated WebhookDelivery with status `retrying`.\n */\n retry: async (\n id: string,\n options?: RequestOptions,\n ): Promise<Record<string, unknown>> => {\n return rb.execute<Record<string, unknown>>(\n postAdminWebhookDeliveriesByIdRetry,\n { path: { id }, body: {} },\n options,\n );\n },\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n getAdminEmailMarketingCampaignsById,\n getAdminEmailMarketingCampaignsWorkspaceByWorkspaceId,\n postAdminEmailMarketingCampaigns,\n postAdminEmailMarketingCampaignsByIdSend,\n deleteAdminEmailMarketingCampaignsById,\n} from \"../_internal/sdk.gen\";\nimport type { Campaign } from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { buildPageQuery } from \"../namespace-types\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Admin-level campaigns namespace — cross-workspace campaign management.\n *\n * Provides ISV administrators with visibility and control over email campaigns\n * across all workspaces. Supports campaign listing, creation, and delivery\n * management operations.\n */\nexport function createCampaignsNamespace(rb: RequestBuilder) {\n return {\n /**\n * Get a campaign by ID.\n *\n * @param id - The unique identifier of the campaign.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the {@link Campaign}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const campaign = await admin.campaigns.get('camp_abc123');\n * ```\n */\n get: async (id: string, options?: RequestOptions): Promise<Campaign> => {\n return rb.execute<Campaign>(\n getAdminEmailMarketingCampaignsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * List all campaigns for a workspace.\n *\n * @param workspaceId - The ID of the workspace to query.\n * @param options - Optional pagination and request options.\n * @returns A promise resolving to an array of {@link Campaign} records.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const campaigns = await admin.campaigns.listByWorkspace('ws_abc123');\n * ```\n */\n listByWorkspace: async (\n workspaceId: string,\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<Campaign[]> => {\n return rb.execute<Campaign[]>(\n getAdminEmailMarketingCampaignsWorkspaceByWorkspaceId,\n {\n path: { workspace_id: workspaceId },\n ...buildPageQuery(options?.page, options?.pageSize),\n },\n options,\n );\n },\n\n /**\n * Create a new campaign.\n *\n * @param attributes - Campaign attributes including `workspace_id`, `name`, `template_id`.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the newly created {@link Campaign}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const campaign = await admin.campaigns.create({\n * workspace_id: 'ws_abc123',\n * name: 'Q1 Outreach',\n * template_id: 'tmpl_xyz',\n * });\n * ```\n */\n create: async (\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<Campaign> => {\n return rb.execute<Campaign>(\n postAdminEmailMarketingCampaigns,\n { body: { data: { type: \"campaign\", attributes } } },\n options,\n );\n },\n\n /**\n * Trigger sending for an approved campaign.\n *\n * @param id - The ID of the campaign to send.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the updated {@link Campaign}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * await admin.campaigns.send('camp_abc123');\n * ```\n */\n send: async (id: string, options?: RequestOptions): Promise<Campaign> => {\n return rb.execute<Campaign>(\n postAdminEmailMarketingCampaignsByIdSend,\n { path: { id }, body: {} },\n options,\n );\n },\n\n /**\n * Delete a campaign.\n *\n * @param id - The unique identifier of the campaign to delete.\n * @param options - Optional request-level overrides.\n * @returns A promise that resolves to `true` on successful deletion.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * await admin.campaigns.delete('camp_abc123');\n * ```\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminEmailMarketingCampaignsById,\n { path: { id } },\n options,\n );\n },\n };\n}\n","// Hand-maintained — override generation\nimport {\n getAdminEmailOutboundEmailsById,\n getAdminEmailOutboundEmailsWorkspaceByWorkspaceId,\n postAdminEmailOutboundEmails,\n deleteAdminEmailOutboundEmailsById,\n getAdminEmailMarketingSenderProfilesById,\n getAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceId,\n postAdminEmailMarketingSenderProfiles,\n patchAdminEmailMarketingSenderProfilesById,\n deleteAdminEmailMarketingSenderProfilesById,\n patchAdminEmailMarketingSenderProfilesByIdValidateDns,\n getAdminEmailTrackingEventsById,\n getAdminEmailTrackingEventsWorkspaceByWorkspaceId,\n} from \"../_internal/sdk.gen\";\nimport type {\n EmailOutboundEmail,\n EmailMarketingSenderProfile,\n EmailTrackingEvent,\n} from \"../_internal/types.gen\";\nimport type { RequestOptions } from \"../base-client\";\nimport { buildPageQuery } from \"../namespace-types\";\nimport { RequestBuilder } from \"../request-builder\";\n\n/**\n * Admin-level email namespace — cross-workspace outbound email and sender profile management.\n *\n * Provides ISV administrators with visibility into outbound emails, sender profiles,\n * and tracking events across all workspaces.\n */\nexport function createEmailNamespace(rb: RequestBuilder) {\n return {\n /**\n * Outbound email management — admin view across all workspaces.\n */\n outboundEmails: {\n /**\n * Get an outbound email by ID.\n *\n * @param id - The unique identifier of the outbound email.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the {@link EmailOutboundEmail}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const email = await admin.email.outboundEmails.get('oe_abc123');\n * ```\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<EmailOutboundEmail> => {\n return rb.execute<EmailOutboundEmail>(\n getAdminEmailOutboundEmailsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * List outbound emails for a workspace.\n *\n * @param workspaceId - The ID of the workspace to query.\n * @param options - Optional pagination and request options.\n * @returns A promise resolving to an array of {@link EmailOutboundEmail}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const emails = await admin.email.outboundEmails.listByWorkspace('ws_abc123');\n * ```\n */\n listByWorkspace: async (\n workspaceId: string,\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<EmailOutboundEmail[]> => {\n return rb.execute<EmailOutboundEmail[]>(\n getAdminEmailOutboundEmailsWorkspaceByWorkspaceId,\n {\n path: { workspace_id: workspaceId },\n ...buildPageQuery(options?.page, options?.pageSize),\n },\n options,\n );\n },\n\n /**\n * Create an outbound email draft.\n *\n * @param attributes - Email attributes including `workspace_id`, `subject`, `body_html`, `sender_profile_id`.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the created {@link EmailOutboundEmail}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const email = await admin.email.outboundEmails.create({\n * workspace_id: 'ws_abc123',\n * subject: 'Admin notification',\n * body_html: '<p>Hello</p>',\n * sender_profile_id: 'sp_noreply',\n * });\n * ```\n */\n create: async (\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<EmailOutboundEmail> => {\n return rb.execute<EmailOutboundEmail>(\n postAdminEmailOutboundEmails,\n { body: { data: { type: \"email_outbound_email\", attributes } } },\n options,\n );\n },\n\n /**\n * Delete an outbound email draft.\n *\n * @param id - The unique identifier of the outbound email to delete.\n * @param options - Optional request-level overrides.\n * @returns A promise that resolves to `true` on successful deletion.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * await admin.email.outboundEmails.delete('oe_abc123');\n * ```\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminEmailOutboundEmailsById,\n { path: { id } },\n options,\n );\n },\n },\n\n /**\n * Sender profile management — admin view across all workspaces.\n */\n senderProfiles: {\n /**\n * Get a sender profile by ID.\n *\n * @param id - The unique identifier of the sender profile.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the {@link EmailMarketingSenderProfile}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const profile = await admin.email.senderProfiles.get('sp_abc123');\n * ```\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<EmailMarketingSenderProfile> => {\n return rb.execute<EmailMarketingSenderProfile>(\n getAdminEmailMarketingSenderProfilesById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * List sender profiles for a workspace.\n *\n * @param workspaceId - The ID of the workspace to query.\n * @param options - Optional pagination and request options.\n * @returns A promise resolving to an array of {@link EmailMarketingSenderProfile}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const profiles = await admin.email.senderProfiles.listByWorkspace('ws_abc123');\n * ```\n */\n listByWorkspace: async (\n workspaceId: string,\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<EmailMarketingSenderProfile[]> => {\n return rb.execute<EmailMarketingSenderProfile[]>(\n getAdminEmailMarketingSenderProfilesWorkspaceByWorkspaceId,\n {\n path: { workspace_id: workspaceId },\n ...buildPageQuery(options?.page, options?.pageSize),\n },\n options,\n );\n },\n\n /**\n * Create a new sender profile.\n *\n * @param attributes - Profile attributes including `workspace_id`, `from_email`, `from_name`.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the created {@link EmailMarketingSenderProfile}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const profile = await admin.email.senderProfiles.create({\n * workspace_id: 'ws_abc123',\n * from_email: 'noreply@acme.com',\n * from_name: 'Acme Team',\n * });\n * ```\n */\n create: async (\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<EmailMarketingSenderProfile> => {\n return rb.execute<EmailMarketingSenderProfile>(\n postAdminEmailMarketingSenderProfiles,\n { body: { data: { type: \"email_sender_profile\", attributes } } },\n options,\n );\n },\n\n /**\n * Update a sender profile.\n *\n * @param id - The unique identifier of the sender profile to update.\n * @param attributes - Attributes to update.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the updated {@link EmailMarketingSenderProfile}.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const profile = await admin.email.senderProfiles.update('sp_abc123', {\n * from_name: 'Acme Support',\n * });\n * ```\n */\n update: async (\n id: string,\n attributes: Record<string, unknown>,\n options?: RequestOptions,\n ): Promise<EmailMarketingSenderProfile> => {\n return rb.execute<EmailMarketingSenderProfile>(\n patchAdminEmailMarketingSenderProfilesById,\n {\n path: { id },\n body: { data: { id, type: \"email_sender_profile\", attributes } },\n },\n options,\n );\n },\n\n /**\n * Delete a sender profile.\n *\n * @param id - The unique identifier of the sender profile to delete.\n * @param options - Optional request-level overrides.\n * @returns A promise that resolves to `true` on successful deletion.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * await admin.email.senderProfiles.delete('sp_abc123');\n * ```\n */\n delete: async (id: string, options?: RequestOptions): Promise<true> => {\n return rb.executeDelete(\n deleteAdminEmailMarketingSenderProfilesById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * Trigger DNS validation for a sender profile (verifies SPF/DKIM/DMARC).\n *\n * @param id - The unique identifier of the sender profile.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the updated {@link EmailMarketingSenderProfile} with DNS status.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const result = await admin.email.senderProfiles.validateDns('sp_abc123');\n * console.log(result.attributes.spf_valid, result.attributes.dkim_valid);\n * ```\n */\n validateDns: async (\n id: string,\n options?: RequestOptions,\n ): Promise<EmailMarketingSenderProfile> => {\n return rb.execute<EmailMarketingSenderProfile>(\n patchAdminEmailMarketingSenderProfilesByIdValidateDns,\n { path: { id }, body: {} },\n options,\n );\n },\n },\n\n /**\n * Tracking event management — admin view across all workspaces.\n */\n trackingEvents: {\n /**\n * Get a tracking event by ID.\n *\n * @param id - The unique identifier of the tracking event.\n * @param options - Optional request-level overrides.\n * @returns A promise resolving to the tracking event record.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const event = await admin.email.trackingEvents.get('te_abc123');\n * ```\n */\n get: async (\n id: string,\n options?: RequestOptions,\n ): Promise<EmailTrackingEvent> => {\n return rb.execute<EmailTrackingEvent>(\n getAdminEmailTrackingEventsById,\n { path: { id } },\n options,\n );\n },\n\n /**\n * List tracking events for a workspace.\n *\n * @param workspaceId - The ID of the workspace to query.\n * @param options - Optional pagination and request options.\n * @returns A promise resolving to an array of {@link EmailTrackingEvent} records.\n *\n * @example\n * ```typescript\n * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });\n * const events = await admin.email.trackingEvents.listByWorkspace('ws_abc123');\n * ```\n */\n listByWorkspace: async (\n workspaceId: string,\n options?: { page?: number; pageSize?: number } & RequestOptions,\n ): Promise<EmailTrackingEvent[]> => {\n return rb.execute<EmailTrackingEvent[]>(\n getAdminEmailTrackingEventsWorkspaceByWorkspaceId,\n {\n path: { workspace_id: workspaceId },\n ...buildPageQuery(options?.page, options?.pageSize),\n },\n options,\n );\n },\n },\n };\n}\n","// Hand-maintained — override generation\n// Regenerate with: mix update.sdks (manually merge new namespaces after regeneration)\n\nimport { BaseClient, type BaseClientConfig } from \"./base-client\";\nimport { RequestBuilder } from \"./request-builder\";\nimport { createAgentsNamespace } from \"./namespaces/agents\";\nimport { createAccountsNamespace } from \"./namespaces/accounts\";\nimport { createCapabilitiesNamespace } from \"./namespaces/capabilities\";\nimport { createApiKeysNamespace } from \"./namespaces/apiKeys\";\nimport { createDocumentsNamespace } from \"./namespaces/documents\";\nimport { createExecutionsNamespace } from \"./namespaces/executions\";\nimport { createStorageNamespace } from \"./namespaces/storage\";\nimport { createUsersNamespace } from \"./namespaces/users\";\nimport { createVoiceNamespace } from \"./namespaces/voice\";\nimport { createAuditNamespace } from \"./namespaces/audit\";\nimport { createWebhooksNamespace } from \"./namespaces/webhooks-ns\";\nimport { createCampaignsNamespace } from \"./namespaces/campaigns\";\nimport { createEmailNamespace } from \"./namespaces/email\";\n\nexport class GptAdmin extends BaseClient {\n /** Agent management, versioning, training, and field templates */\n public readonly agents;\n\n /** Billing account management */\n public readonly accounts;\n\n /** Platform capability catalog (admin view — full catalog, no app annotations) */\n public readonly capabilities;\n\n /** API key management */\n public readonly apiKeys;\n\n /** Document administration */\n public readonly documents;\n\n /** Agent execution management and streaming */\n public readonly executions;\n\n /** Storage operations and bucket management */\n public readonly storage;\n\n /** User management across all tenants */\n public readonly users;\n\n /** Voice session, recording, and transcription management */\n public readonly voice;\n\n /** Compliance audit log access — paginated listing, activity feeds, aggregates, and bulk exports */\n public readonly audit;\n\n /** Webhook configuration and delivery management */\n public readonly webhooks;\n\n /** Campaign management across all workspaces */\n public readonly campaigns;\n\n /** Outbound email and sender profile management across all workspaces */\n public readonly email;\n\n constructor(config?: BaseClientConfig) {\n super(config);\n const rb = new RequestBuilder(\n this.clientInstance,\n () => this.getHeaders(),\n <T>(d: unknown) => this.unwrap<T>(d),\n <T>(fn: () => Promise<T>) => this.requestWithRetry(fn),\n );\n\n this.agents = createAgentsNamespace(rb);\n this.accounts = createAccountsNamespace(rb);\n this.capabilities = createCapabilitiesNamespace(rb);\n this.apiKeys = createApiKeysNamespace(rb);\n this.documents = createDocumentsNamespace(rb);\n this.executions = createExecutionsNamespace(rb);\n this.storage = createStorageNamespace(rb);\n this.users = createUsersNamespace(rb);\n this.voice = createVoiceNamespace(rb);\n this.audit = createAuditNamespace(rb);\n this.webhooks = createWebhooksNamespace(rb);\n this.campaigns = createCampaignsNamespace(rb);\n this.email = createEmailNamespace(rb);\n }\n}\n","export * from \"./gpt-admin\";\nexport * from \"./_internal/types.gen\";\nexport { DEFAULT_API_VERSION, SDK_VERSION } from \"./base-client\";\nexport type { VoiceAPI } from \"./namespaces\";\nexport * from \"./errors\";\nexport type { StreamOptions, StreamMessageChunk } from \"./streaming\";\nexport type {\n ExecutionEvent,\n TokenDeltaEvent,\n ToolCallEvent,\n ToolResultEvent,\n IterationCompleteEvent,\n ApprovalRequiredEvent,\n DoneEvent,\n ErrorEvent,\n} from \"./execution-events\";\n\n// Re-export GptAdmin as default export for ESM compatibility\n// This allows: import GptAdmin from '@gpt-platform/admin'\nimport { GptAdmin } from \"./gpt-admin\";\nexport default GptAdmin;\n"],"mappings":";AAyEO,IAAM,qBAAqB;AAAA,EAChC,gBAAgB,CAAI,SAClB,KAAK;AAAA,IAAU;AAAA,IAAM,CAAC,MAAM,UAC1B,OAAO,UAAU,WAAW,MAAM,SAAS,IAAI;AAAA,EACjD;AACJ;;;ACUO,IA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