@avallon-labs/sdk 0.0.0-40188bf9
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.
- package/README.md +135 -0
- package/dist/index.d.ts +1617 -0
- package/dist/index.js +636 -0
- package/dist/index.js.map +1 -0
- package/openapi.yaml +1259 -0
- package/package.json +66 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/fetcher.ts","../src/auth.ts","../generated/endpoints/agents/agents.ts","../generated/endpoints/api-keys/api-keys.ts","../generated/endpoints/auth/auth.ts","../generated/models/createAgent200DataAgentBackgroundSounds.ts","../generated/models/createAgent200DataAgentDirection.ts","../generated/models/createAgent200DataAgentLanguage.ts","../generated/models/createAgent200DataAgentLlmModel.ts","../generated/models/createAgent200DataAgentSttModel.ts","../generated/models/createAgent200DataAgentTtsModel.ts","../generated/models/createAgent200DataAgentTtsProvider.ts","../generated/models/createAgentBodyDirection.ts","../generated/models/createAgentBodyLanguage.ts","../generated/models/createAgentBodyLlmModel.ts","../generated/models/createAgentBodySttModel.ts","../generated/models/createAgentBodyTtsModel.ts","../generated/models/createAgentBodyTtsProvider.ts","../generated/models/createApiKeyBodyEnvironment.ts","../generated/models/getAgent200DataAgentBackgroundSounds.ts","../generated/models/getAgent200DataAgentDirection.ts","../generated/models/getAgent200DataAgentLanguage.ts","../generated/models/getAgent200DataAgentLlmModel.ts","../generated/models/getAgent200DataAgentSttModel.ts","../generated/models/getAgent200DataAgentTtsModel.ts","../generated/models/getAgent200DataAgentTtsProvider.ts","../generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts","../generated/models/getV1AuthOauthUrlProvider.ts","../generated/models/listAgents200DataAgentsItemBackgroundSounds.ts","../generated/models/listAgents200DataAgentsItemDirection.ts","../generated/models/listAgents200DataAgentsItemLanguage.ts","../generated/models/listAgents200DataAgentsItemLlmModel.ts","../generated/models/listAgents200DataAgentsItemSttModel.ts","../generated/models/listAgents200DataAgentsItemTtsModel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A,EAAsB,oBAAA;AAAA,EACtB,SAAA,EAAW,SAAA;AAAA,EACX,OAAA,EAAS;AACX;;;ACNO,IAAM,sCAAA,GAAyC;AAAA,EACpD,UAAA,EAAY,YAAA;AAAA,EACZ,QAAA,EAAU,UAAA;AAAA,EACV,MAAA,EAAQ;AACV;;;ACJO,IAAM,yBAAA,GAA4B;AAAA,EACvC,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO;AACT","file":"index.js","sourcesContent":["/**\n * Custom fetch wrapper for Orval-generated client.\n * Handles auth (API key or Bearer token) and base URL configuration.\n * Throws AvallonError on non-2xx responses for clean SWR error handling.\n */\n\n// --------------------------------------------------------------------------\n// Configuration\n// --------------------------------------------------------------------------\n\nlet config: AvallonConfig = {\n baseUrl: \"https://api.avallon.ai\",\n};\n\nexport type AvallonConfig = {\n baseUrl?: string;\n apiKey?: string;\n /**\n * Token provider - can be sync or async.\n * Async allows the application to check expiry and refresh before returning.\n */\n getAccessToken?: () => string | null | Promise<string | null>;\n};\n\n/** Configure the SDK at runtime */\nexport function configure(newConfig: Partial<AvallonConfig>) {\n config = { ...config, ...newConfig };\n}\n\n/** Get current config */\nexport function getConfig(): AvallonConfig {\n return { ...config };\n}\n\n// --------------------------------------------------------------------------\n// Fetch wrapper\n// --------------------------------------------------------------------------\n\n/** Shared fetch logic */\nasync function doFetch<T>(\n url: string,\n options: RequestInit,\n withAuth: boolean\n): Promise<T> {\n const fullUrl = url.startsWith(\"http\") ? url : `${config.baseUrl}${url}`;\n\n const headers = new Headers(options.headers);\n\n // Only set Content-Type for requests with JSON body\n // (allows file uploads to set their own Content-Type)\n if (options.body && typeof options.body === \"string\") {\n headers.set(\"Content-Type\", \"application/json\");\n }\n\n if (withAuth) {\n const accessToken = await config.getAccessToken?.();\n if (accessToken) {\n headers.set(\"Authorization\", `Bearer ${accessToken}`);\n } else if (config.apiKey) {\n headers.set(\"x-api-key\", config.apiKey);\n }\n }\n\n const response = await fetch(fullUrl, {\n ...options,\n headers,\n });\n\n // Parse response based on content type\n const contentType = response.headers.get(\"Content-Type\") ?? \"\";\n let body: unknown;\n\n if (response.status === 204) {\n // No content\n body = {};\n } else if (contentType.includes(\"application/json\")) {\n body = await response.json().catch(() => ({}));\n } else {\n // Non-JSON response (shouldn't happen with our API, but handle gracefully)\n const text = await response.text().catch(() => \"\");\n body = { message: text };\n }\n\n // Throw on non-2xx - SWR will catch this as `error`\n if (!response.ok) {\n throw new AvallonError(response.status, body as AvallonError[\"body\"]);\n }\n\n // Return success response in expected shape\n return {\n data: body,\n status: response.status,\n headers: response.headers,\n } as T;\n}\n\n/** Authenticated fetch - adds API key or Bearer token */\nexport async function customFetch<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, true);\n}\n\n/** Unauthenticated fetch - for auth flow endpoints (sign-in, sign-up, etc.) */\nexport async function customFetchNoAuth<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, false);\n}\n\n// --------------------------------------------------------------------------\n// Error class\n// --------------------------------------------------------------------------\n\n/** Typed error class for API errors */\nexport class AvallonError extends Error {\n constructor(\n public readonly status: number,\n public readonly body: {\n data?: unknown;\n message?: string;\n }\n ) {\n super(body?.message ?? `API error ${status}`);\n this.name = \"AvallonError\";\n }\n\n /** Validation errors (400) have field-level details */\n get errors(): Array<{ field: string; message: string }> | undefined {\n const data = this.body?.data as {\n errors?: Array<{ field: string; message: string }>;\n };\n return data?.errors;\n }\n\n isValidationError(): boolean {\n return this.status === 400;\n }\n\n isUnauthorized(): boolean {\n return this.status === 401;\n }\n\n isNotFound(): boolean {\n return this.status === 404;\n }\n}\n","/**\n * PKCE Utilities\n *\n * Cryptographic helpers for OAuth PKCE flow. Platform-agnostic -\n * works in both Node.js and browsers via Web Crypto API.\n *\n * These utilities can't be generated from OpenAPI - they're\n * client-side crypto that complements the generated auth endpoints.\n *\n * @example\n * ```ts\n * import {\n * generateCodeVerifier,\n * generateCodeChallenge,\n * getV1AuthOauthUrl,\n * postV1AuthOauthExchange,\n * } from \"@avallon-labs/sdk\";\n *\n * // 1. Generate PKCE pair\n * const verifier = generateCodeVerifier();\n * const challenge = await generateCodeChallenge(verifier);\n *\n * // 2. Get OAuth URL (store verifier for after redirect)\n * sessionStorage.setItem(\"oauth_verifier\", verifier);\n * const { data } = await getV1AuthOauthUrl({\n * provider: \"google\",\n * redirect_uri: \"https://app.example.com/callback\",\n * code_challenge: challenge,\n * code_challenge_method: \"s256\",\n * });\n * window.location.href = data.data.url;\n *\n * // 3. After redirect, exchange code for tokens\n * const verifier = sessionStorage.getItem(\"oauth_verifier\");\n * const tokens = await postV1AuthOauthExchange({\n * code: urlParams.get(\"code\"),\n * code_verifier: verifier,\n * });\n * ```\n */\n\n// --------------------------------------------------------------------------\n// PKCE Utilities\n// --------------------------------------------------------------------------\n\n/** Generate a cryptographically random code verifier (43-128 chars) */\nexport function generateCodeVerifier(length = 64): string {\n const charset =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~\";\n const randomValues = crypto.getRandomValues(new Uint8Array(length));\n return Array.from(randomValues)\n .map((v) => charset[v % charset.length])\n .join(\"\");\n}\n\n/** Generate S256 code challenge from verifier */\nexport async function generateCodeChallenge(verifier: string): Promise<string> {\n const encoder = new TextEncoder();\n const data = encoder.encode(verifier);\n const digest = await crypto.subtle.digest(\"SHA-256\", data);\n return base64UrlEncode(digest);\n}\n\nfunction base64UrlEncode(buffer: ArrayBuffer): string {\n const bytes = new Uint8Array(buffer);\n let binary = \"\";\n for (const byte of bytes) {\n binary += String.fromCharCode(byte);\n }\n return btoa(binary)\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=+$/, \"\");\n}\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateAgent200,\n CreateAgentBody,\n ErrorResponse,\n GetAgent200,\n ListAgents200,\n ListAgentsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all agents for your tenant.\n\n**Filtering:**\n\nFilter agents by name using the `agent_name` query parameter (exact match).\n\n**Response:**\n\nReturns an array of all agents with their configurations and a total count.\n * @summary List agents\n */\nexport type listAgentsResponse200 = {\n data: ListAgents200;\n status: 200;\n};\n\nexport type listAgentsResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type listAgentsResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type listAgentsResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type listAgentsResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type listAgentsResponseSuccess = listAgentsResponse200 & {\n headers: Headers;\n};\nexport type listAgentsResponseError = (\n | listAgentsResponse400\n | listAgentsResponse401\n | listAgentsResponse409\n | listAgentsResponse500\n) & {\n headers: Headers;\n};\n\nexport type listAgentsResponse =\n | listAgentsResponseSuccess\n | listAgentsResponseError;\n\nexport const getListAgentsUrl = (params?: ListAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/agents?${stringifiedParams}`\n : `/v1/agents`;\n};\n\nexport const listAgents = async (\n params?: ListAgentsParams,\n options?: RequestInit\n): Promise<listAgentsResponse> => {\n return customFetch<listAgentsResponse>(getListAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListAgentsKey = (params?: ListAgentsParams) =>\n [`/v1/agents`, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgents>>\n>;\n\n/**\n * @summary List agents\n */\nexport const useListAgents = <TError = ErrorResponse>(\n params?: ListAgentsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listAgents>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getListAgentsKey(params) : null));\n const swrFn = () => listAgents(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Create a new voice agent with the specified configuration.\n\n**Required fields:**\n\nAll fields in the request body are required except `phone_number_id` and `transfer_phone_number`.\n\n**Response:**\n\nReturns the created agent with its ID and configuration.\n * @summary Create agent\n */\nexport type createAgentResponse200 = {\n data: CreateAgent200;\n status: 200;\n};\n\nexport type createAgentResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type createAgentResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type createAgentResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type createAgentResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type createAgentResponseSuccess = createAgentResponse200 & {\n headers: Headers;\n};\nexport type createAgentResponseError = (\n | createAgentResponse400\n | createAgentResponse401\n | createAgentResponse409\n | createAgentResponse500\n) & {\n headers: Headers;\n};\n\nexport type createAgentResponse =\n | createAgentResponseSuccess\n | createAgentResponseError;\n\nexport const getCreateAgentUrl = () => {\n return `/v1/agents`;\n};\n\nexport const createAgent = async (\n createAgentBody: CreateAgentBody,\n options?: RequestInit\n): Promise<createAgentResponse> => {\n return customFetch<createAgentResponse>(getCreateAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentBody),\n });\n};\n\nexport const getCreateAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentBody }) => {\n return createAgent(arg, options);\n };\n};\nexport const getCreateAgentMutationKey = () => [`/v1/agents`] as const;\n\nexport type CreateAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgent>>\n>;\n\n/**\n * @summary Create agent\n */\nexport const useCreateAgent = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createAgent>>,\n TError,\n Key,\n CreateAgentBody,\n Awaited<ReturnType<typeof createAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateAgentMutationKey();\n const swrFn = getCreateAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single agent by ID.\n * @summary Get agent\n */\nexport type getAgentResponse200 = {\n data: GetAgent200;\n status: 200;\n};\n\nexport type getAgentResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type getAgentResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type getAgentResponse404 = {\n data: ErrorResponse;\n status: 404;\n};\n\nexport type getAgentResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type getAgentResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type getAgentResponseSuccess = getAgentResponse200 & {\n headers: Headers;\n};\nexport type getAgentResponseError = (\n | getAgentResponse400\n | getAgentResponse401\n | getAgentResponse404\n | getAgentResponse409\n | getAgentResponse500\n) & {\n headers: Headers;\n};\n\nexport type getAgentResponse = getAgentResponseSuccess | getAgentResponseError;\n\nexport const getGetAgentUrl = (id: string) => {\n return `/v1/agents/${id}`;\n};\n\nexport const getAgent = async (\n id: string,\n options?: RequestInit\n): Promise<getAgentResponse> => {\n return customFetch<getAgentResponse>(getGetAgentUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetAgentKey = (id: string) => [`/v1/agents/${id}`] as const;\n\nexport type GetAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAgent>>\n>;\n\n/**\n * @summary Get agent\n */\nexport const useGetAgent = <TError = ErrorResponse>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getAgent>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false && !!id;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetAgentKey(id) : null));\n const swrFn = () => getAgent(id, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateApiKey200,\n CreateApiKeyBody,\n ErrorResponse,\n ListApiKeys200,\n ListApiKeysParams,\n RevokeApiKey200,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all API keys for your tenant.\n\nBy default, revoked keys are excluded. Set `include_revoked=true` to include them.\n\n**Note:** The full API key value is never returned — only the key prefix is shown.\n * @summary List API keys\n */\nexport type listApiKeysResponse200 = {\n data: ListApiKeys200;\n status: 200;\n};\n\nexport type listApiKeysResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type listApiKeysResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type listApiKeysResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type listApiKeysResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type listApiKeysResponseSuccess = listApiKeysResponse200 & {\n headers: Headers;\n};\nexport type listApiKeysResponseError = (\n | listApiKeysResponse400\n | listApiKeysResponse401\n | listApiKeysResponse409\n | listApiKeysResponse500\n) & {\n headers: Headers;\n};\n\nexport type listApiKeysResponse =\n | listApiKeysResponseSuccess\n | listApiKeysResponseError;\n\nexport const getListApiKeysUrl = (params?: ListApiKeysParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/platform/api-keys?${stringifiedParams}`\n : `/platform/api-keys`;\n};\n\nexport const listApiKeys = async (\n params?: ListApiKeysParams,\n options?: RequestInit\n): Promise<listApiKeysResponse> => {\n return customFetch<listApiKeysResponse>(getListApiKeysUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListApiKeysKey = (params?: ListApiKeysParams) =>\n [`/platform/api-keys`, ...(params ? [params] : [])] as const;\n\nexport type ListApiKeysQueryResult = NonNullable<\n Awaited<ReturnType<typeof listApiKeys>>\n>;\n\n/**\n * @summary List API keys\n */\nexport const useListApiKeys = <TError = ErrorResponse>(\n params?: ListApiKeysParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listApiKeys>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListApiKeysKey(params) : null));\n const swrFn = () => listApiKeys(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Create a new API key for authenticating with the Avallon API.\n\n**Important:** The full API key is only returned once in the response. Store it securely — it cannot be retrieved again.\n\nKeys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.\n * @summary Create an API key\n */\nexport type createApiKeyResponse200 = {\n data: CreateApiKey200;\n status: 200;\n};\n\nexport type createApiKeyResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type createApiKeyResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type createApiKeyResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type createApiKeyResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type createApiKeyResponseSuccess = createApiKeyResponse200 & {\n headers: Headers;\n};\nexport type createApiKeyResponseError = (\n | createApiKeyResponse400\n | createApiKeyResponse401\n | createApiKeyResponse409\n | createApiKeyResponse500\n) & {\n headers: Headers;\n};\n\nexport type createApiKeyResponse =\n | createApiKeyResponseSuccess\n | createApiKeyResponseError;\n\nexport const getCreateApiKeyUrl = () => {\n return `/platform/api-keys`;\n};\n\nexport const createApiKey = async (\n createApiKeyBody: CreateApiKeyBody,\n options?: RequestInit\n): Promise<createApiKeyResponse> => {\n return customFetch<createApiKeyResponse>(getCreateApiKeyUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createApiKeyBody),\n });\n};\n\nexport const getCreateApiKeyMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateApiKeyBody }) => {\n return createApiKey(arg, options);\n };\n};\nexport const getCreateApiKeyMutationKey = () => [`/platform/api-keys`] as const;\n\nexport type CreateApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof createApiKey>>\n>;\n\n/**\n * @summary Create an API key\n */\nexport const useCreateApiKey = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createApiKey>>,\n TError,\n Key,\n CreateApiKeyBody,\n Awaited<ReturnType<typeof createApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateApiKeyMutationKey();\n const swrFn = getCreateApiKeyMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Revoke an existing API key. Once revoked, the key can no longer be used for authentication.\n\nThis operation is irreversible — revoked keys cannot be re-enabled. Create a new key if needed.\n\nReturns 409 if the key is already revoked, 404 if the key does not exist.\n * @summary Revoke an API key\n */\nexport type revokeApiKeyResponse200 = {\n data: RevokeApiKey200;\n status: 200;\n};\n\nexport type revokeApiKeyResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type revokeApiKeyResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type revokeApiKeyResponse404 = {\n data: ErrorResponse;\n status: 404;\n};\n\nexport type revokeApiKeyResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type revokeApiKeyResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type revokeApiKeyResponseSuccess = revokeApiKeyResponse200 & {\n headers: Headers;\n};\nexport type revokeApiKeyResponseError = (\n | revokeApiKeyResponse400\n | revokeApiKeyResponse401\n | revokeApiKeyResponse404\n | revokeApiKeyResponse409\n | revokeApiKeyResponse500\n) & {\n headers: Headers;\n};\n\nexport type revokeApiKeyResponse =\n | revokeApiKeyResponseSuccess\n | revokeApiKeyResponseError;\n\nexport const getRevokeApiKeyUrl = (id: string) => {\n return `/platform/api-keys/${id}/revoke`;\n};\n\nexport const revokeApiKey = async (\n id: string,\n options?: RequestInit\n): Promise<revokeApiKeyResponse> => {\n return customFetch<revokeApiKeyResponse>(getRevokeApiKeyUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getRevokeApiKeyMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return revokeApiKey(id, options);\n };\n};\nexport const getRevokeApiKeyMutationKey = (id: string) =>\n [`/platform/api-keys/${id}/revoke`] as const;\n\nexport type RevokeApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof revokeApiKey>>\n>;\n\n/**\n * @summary Revoke an API key\n */\nexport const useRevokeApiKey = <TError = ErrorResponse>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof revokeApiKey>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof revokeApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRevokeApiKeyMutationKey(id);\n const swrFn = getRevokeApiKeyMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ErrorResponse,\n GetV1AuthOauthUrl200,\n GetV1AuthOauthUrlParams,\n PostV1AuthRefreshToken200,\n PostV1AuthRefreshTokenBody,\n PostV1AuthSignIn200,\n PostV1AuthSignInBody,\n PostV1AuthSignUp200,\n PostV1AuthSignUpBody,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport type postV1AuthSignUpResponse200 = {\n data: PostV1AuthSignUp200;\n status: 200;\n};\n\nexport type postV1AuthSignUpResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type postV1AuthSignUpResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type postV1AuthSignUpResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type postV1AuthSignUpResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type postV1AuthSignUpResponseSuccess = postV1AuthSignUpResponse200 & {\n headers: Headers;\n};\nexport type postV1AuthSignUpResponseError = (\n | postV1AuthSignUpResponse400\n | postV1AuthSignUpResponse401\n | postV1AuthSignUpResponse409\n | postV1AuthSignUpResponse500\n) & {\n headers: Headers;\n};\n\nexport type postV1AuthSignUpResponse =\n | postV1AuthSignUpResponseSuccess\n | postV1AuthSignUpResponseError;\n\nexport const getPostV1AuthSignUpUrl = () => {\n return `/v1/auth/sign-up`;\n};\n\nexport const postV1AuthSignUp = async (\n postV1AuthSignUpBody: PostV1AuthSignUpBody,\n options?: RequestInit\n): Promise<postV1AuthSignUpResponse> => {\n return customFetchNoAuth<postV1AuthSignUpResponse>(getPostV1AuthSignUpUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignUpBody),\n });\n};\n\nexport const getPostV1AuthSignUpMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignUpBody }) => {\n return postV1AuthSignUp(arg, options);\n };\n};\nexport const getPostV1AuthSignUpMutationKey = () =>\n [`/v1/auth/sign-up`] as const;\n\nexport type PostV1AuthSignUpMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n>;\n\nexport const usePostV1AuthSignUp = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignUp>>,\n TError,\n Key,\n PostV1AuthSignUpBody,\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignUpMutationKey();\n const swrFn = getPostV1AuthSignUpMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport type postV1AuthSignInResponse200 = {\n data: PostV1AuthSignIn200;\n status: 200;\n};\n\nexport type postV1AuthSignInResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type postV1AuthSignInResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type postV1AuthSignInResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type postV1AuthSignInResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type postV1AuthSignInResponseSuccess = postV1AuthSignInResponse200 & {\n headers: Headers;\n};\nexport type postV1AuthSignInResponseError = (\n | postV1AuthSignInResponse400\n | postV1AuthSignInResponse401\n | postV1AuthSignInResponse409\n | postV1AuthSignInResponse500\n) & {\n headers: Headers;\n};\n\nexport type postV1AuthSignInResponse =\n | postV1AuthSignInResponseSuccess\n | postV1AuthSignInResponseError;\n\nexport const getPostV1AuthSignInUrl = () => {\n return `/v1/auth/sign-in`;\n};\n\nexport const postV1AuthSignIn = async (\n postV1AuthSignInBody: PostV1AuthSignInBody,\n options?: RequestInit\n): Promise<postV1AuthSignInResponse> => {\n return customFetchNoAuth<postV1AuthSignInResponse>(getPostV1AuthSignInUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignInBody),\n });\n};\n\nexport const getPostV1AuthSignInMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignInBody }) => {\n return postV1AuthSignIn(arg, options);\n };\n};\nexport const getPostV1AuthSignInMutationKey = () =>\n [`/v1/auth/sign-in`] as const;\n\nexport type PostV1AuthSignInMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n>;\n\nexport const usePostV1AuthSignIn = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignIn>>,\n TError,\n Key,\n PostV1AuthSignInBody,\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignInMutationKey();\n const swrFn = getPostV1AuthSignInMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport type postV1AuthRefreshTokenResponse200 = {\n data: PostV1AuthRefreshToken200;\n status: 200;\n};\n\nexport type postV1AuthRefreshTokenResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type postV1AuthRefreshTokenResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type postV1AuthRefreshTokenResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type postV1AuthRefreshTokenResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type postV1AuthRefreshTokenResponseSuccess =\n postV1AuthRefreshTokenResponse200 & {\n headers: Headers;\n };\nexport type postV1AuthRefreshTokenResponseError = (\n | postV1AuthRefreshTokenResponse400\n | postV1AuthRefreshTokenResponse401\n | postV1AuthRefreshTokenResponse409\n | postV1AuthRefreshTokenResponse500\n) & {\n headers: Headers;\n};\n\nexport type postV1AuthRefreshTokenResponse =\n | postV1AuthRefreshTokenResponseSuccess\n | postV1AuthRefreshTokenResponseError;\n\nexport const getPostV1AuthRefreshTokenUrl = () => {\n return `/v1/auth/refresh-token`;\n};\n\nexport const postV1AuthRefreshToken = async (\n postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody,\n options?: RequestInit\n): Promise<postV1AuthRefreshTokenResponse> => {\n return customFetchNoAuth<postV1AuthRefreshTokenResponse>(\n getPostV1AuthRefreshTokenUrl(),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthRefreshTokenBody),\n }\n );\n};\n\nexport const getPostV1AuthRefreshTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthRefreshTokenBody }) => {\n return postV1AuthRefreshToken(arg, options);\n };\n};\nexport const getPostV1AuthRefreshTokenMutationKey = () =>\n [`/v1/auth/refresh-token`] as const;\n\nexport type PostV1AuthRefreshTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n>;\n\nexport const usePostV1AuthRefreshToken = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>,\n TError,\n Key,\n PostV1AuthRefreshTokenBody,\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthRefreshTokenMutationKey();\n const swrFn = getPostV1AuthRefreshTokenMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport type getV1AuthOauthUrlResponse200 = {\n data: GetV1AuthOauthUrl200;\n status: 200;\n};\n\nexport type getV1AuthOauthUrlResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type getV1AuthOauthUrlResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type getV1AuthOauthUrlResponse409 = {\n data: ErrorResponse;\n status: 409;\n};\n\nexport type getV1AuthOauthUrlResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type getV1AuthOauthUrlResponseSuccess = getV1AuthOauthUrlResponse200 & {\n headers: Headers;\n};\nexport type getV1AuthOauthUrlResponseError = (\n | getV1AuthOauthUrlResponse400\n | getV1AuthOauthUrlResponse401\n | getV1AuthOauthUrlResponse409\n | getV1AuthOauthUrlResponse500\n) & {\n headers: Headers;\n};\n\nexport type getV1AuthOauthUrlResponse =\n | getV1AuthOauthUrlResponseSuccess\n | getV1AuthOauthUrlResponseError;\n\nexport const getGetV1AuthOauthUrlUrl = (params: GetV1AuthOauthUrlParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/auth/oauth-url?${stringifiedParams}`\n : `/v1/auth/oauth-url`;\n};\n\nexport const getV1AuthOauthUrl = async (\n params: GetV1AuthOauthUrlParams,\n options?: RequestInit\n): Promise<getV1AuthOauthUrlResponse> => {\n return customFetchNoAuth<getV1AuthOauthUrlResponse>(\n getGetV1AuthOauthUrlUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetV1AuthOauthUrlKey = (params: GetV1AuthOauthUrlParams) =>\n [`/v1/auth/oauth-url`, ...(params ? [params] : [])] as const;\n\nexport type GetV1AuthOauthUrlQueryResult = NonNullable<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>\n>;\n\nexport const useGetV1AuthOauthUrl = <TError = ErrorResponse>(\n params: GetV1AuthOauthUrlParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetV1AuthOauthUrlKey(params) : null));\n const swrFn = () => getV1AuthOauthUrl(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentBackgroundSounds =\n (typeof CreateAgent200DataAgentBackgroundSounds)[keyof typeof CreateAgent200DataAgentBackgroundSounds];\n\nexport const CreateAgent200DataAgentBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentDirection =\n (typeof CreateAgent200DataAgentDirection)[keyof typeof CreateAgent200DataAgentDirection];\n\nexport const CreateAgent200DataAgentDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentLanguage =\n (typeof CreateAgent200DataAgentLanguage)[keyof typeof CreateAgent200DataAgentLanguage];\n\nexport const CreateAgent200DataAgentLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentLlmModel =\n (typeof CreateAgent200DataAgentLlmModel)[keyof typeof CreateAgent200DataAgentLlmModel];\n\nexport const CreateAgent200DataAgentLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentSttModel =\n (typeof CreateAgent200DataAgentSttModel)[keyof typeof CreateAgent200DataAgentSttModel];\n\nexport const CreateAgent200DataAgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentTtsModel =\n (typeof CreateAgent200DataAgentTtsModel)[keyof typeof CreateAgent200DataAgentTtsModel];\n\nexport const CreateAgent200DataAgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentTtsProvider =\n (typeof CreateAgent200DataAgentTtsProvider)[keyof typeof CreateAgent200DataAgentTtsProvider];\n\nexport const CreateAgent200DataAgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Call direction the agent handles\n */\nexport type CreateAgentBodyDirection =\n (typeof CreateAgentBodyDirection)[keyof typeof CreateAgentBodyDirection];\n\nexport const CreateAgentBodyDirection = {\n OUTBOUND: \"OUTBOUND\",\n INBOUND: \"INBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Language for the agent\n */\nexport type CreateAgentBodyLanguage =\n (typeof CreateAgentBodyLanguage)[keyof typeof CreateAgentBodyLanguage];\n\nexport const CreateAgentBodyLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * LLM model for conversation\n */\nexport type CreateAgentBodyLlmModel =\n (typeof CreateAgentBodyLlmModel)[keyof typeof CreateAgentBodyLlmModel];\n\nexport const CreateAgentBodyLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Speech-to-text model\n */\nexport type CreateAgentBodySttModel =\n (typeof CreateAgentBodySttModel)[keyof typeof CreateAgentBodySttModel];\n\nexport const CreateAgentBodySttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech model\n */\nexport type CreateAgentBodyTtsModel =\n (typeof CreateAgentBodyTtsModel)[keyof typeof CreateAgentBodyTtsModel];\n\nexport const CreateAgentBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech provider\n */\nexport type CreateAgentBodyTtsProvider =\n (typeof CreateAgentBodyTtsProvider)[keyof typeof CreateAgentBodyTtsProvider];\n\nexport const CreateAgentBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Target environment for the key\n */\nexport type CreateApiKeyBodyEnvironment =\n (typeof CreateApiKeyBodyEnvironment)[keyof typeof CreateApiKeyBodyEnvironment];\n\nexport const CreateApiKeyBodyEnvironment = {\n test: \"test\",\n live: \"live\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentBackgroundSounds =\n (typeof GetAgent200DataAgentBackgroundSounds)[keyof typeof GetAgent200DataAgentBackgroundSounds];\n\nexport const GetAgent200DataAgentBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentDirection =\n (typeof GetAgent200DataAgentDirection)[keyof typeof GetAgent200DataAgentDirection];\n\nexport const GetAgent200DataAgentDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentLanguage =\n (typeof GetAgent200DataAgentLanguage)[keyof typeof GetAgent200DataAgentLanguage];\n\nexport const GetAgent200DataAgentLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentLlmModel =\n (typeof GetAgent200DataAgentLlmModel)[keyof typeof GetAgent200DataAgentLlmModel];\n\nexport const GetAgent200DataAgentLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentSttModel =\n (typeof GetAgent200DataAgentSttModel)[keyof typeof GetAgent200DataAgentSttModel];\n\nexport const GetAgent200DataAgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentTtsModel =\n (typeof GetAgent200DataAgentTtsModel)[keyof typeof GetAgent200DataAgentTtsModel];\n\nexport const GetAgent200DataAgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentTtsProvider =\n (typeof GetAgent200DataAgentTtsProvider)[keyof typeof GetAgent200DataAgentTtsProvider];\n\nexport const GetAgent200DataAgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlCodeChallengeMethod =\n (typeof GetV1AuthOauthUrlCodeChallengeMethod)[keyof typeof GetV1AuthOauthUrlCodeChallengeMethod];\n\nexport const GetV1AuthOauthUrlCodeChallengeMethod = {\n plain: \"plain\",\n s256: \"s256\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlProvider =\n (typeof GetV1AuthOauthUrlProvider)[keyof typeof GetV1AuthOauthUrlProvider];\n\nexport const GetV1AuthOauthUrlProvider = {\n google: \"google\",\n microsoft: \"microsoft\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemBackgroundSounds =\n (typeof ListAgents200DataAgentsItemBackgroundSounds)[keyof typeof ListAgents200DataAgentsItemBackgroundSounds];\n\nexport const ListAgents200DataAgentsItemBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemDirection =\n (typeof ListAgents200DataAgentsItemDirection)[keyof typeof ListAgents200DataAgentsItemDirection];\n\nexport const ListAgents200DataAgentsItemDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemLanguage =\n (typeof ListAgents200DataAgentsItemLanguage)[keyof typeof ListAgents200DataAgentsItemLanguage];\n\nexport const ListAgents200DataAgentsItemLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemLlmModel =\n (typeof ListAgents200DataAgentsItemLlmModel)[keyof typeof ListAgents200DataAgentsItemLlmModel];\n\nexport const ListAgents200DataAgentsItemLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemSttModel =\n (typeof ListAgents200DataAgentsItemSttModel)[keyof typeof ListAgents200DataAgentsItemSttModel];\n\nexport const ListAgents200DataAgentsItemSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemTtsModel =\n (typeof ListAgents200DataAgentsItemTtsModel)[keyof typeof ListAgents200DataAgentsItemTtsModel];\n\nexport const ListAgents200DataAgentsItemTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemTtsProvider =\n (typeof ListAgents200DataAgentsItemTtsProvider)[keyof typeof ListAgents200DataAgentsItemTtsProvider];\n\nexport const ListAgents200DataAgentsItemTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListApiKeysIncludeRevoked =\n (typeof ListApiKeysIncludeRevoked)[keyof typeof ListApiKeysIncludeRevoked];\n\nexport const ListApiKeysIncludeRevoked = {\n true: \"true\",\n false: \"false\",\n} as const;\n"]}
|