@avallon-labs/sdk 6.2.0 → 6.3.0

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/dist/index.js.map CHANGED
@@ -1 +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/artifacts/artifacts.ts","../generated/endpoints/auth/auth.ts","../generated/endpoints/call-feedback/call-feedback.ts","../generated/endpoints/calls/calls.ts","../generated/endpoints/claims/claims.ts","../generated/endpoints/email-agents/email-agents.ts","../generated/endpoints/emails/emails.ts","../generated/endpoints/extraction-jobs/extraction-jobs.ts","../generated/endpoints/extractors/extractors.ts","../generated/endpoints/extracts/extracts.ts","../generated/endpoints/jobs/jobs.ts","../generated/endpoints/profiles/profiles.ts","../generated/endpoints/tools/tools.ts","../generated/endpoints/webhooks/webhooks.ts","../generated/models/agentBackgroundSounds.ts","../generated/models/agentDirection.ts","../generated/models/agentLanguage.ts","../generated/models/agentLlmModel.ts","../generated/models/agentSttModel.ts","../generated/models/agentTtsModel.ts","../generated/models/agentTtsProvider.ts","../generated/models/callDetailDirection.ts","../generated/models/callDirection.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/createEmailBodyDirection.ts","../generated/models/createExtractorJobBodyExtractorType.ts","../generated/models/emailCreatedDirection.ts","../generated/models/emailDetailDirection.ts","../generated/models/emailDirection.ts","../generated/models/extractorJobExtractorType.ts","../generated/models/getOAuthUrlCodeChallengeMethod.ts","../generated/models/getOAuthUrlProvider.ts","../generated/models/listApiKeysIncludeRevoked.ts","../generated/models/listArtifactsSortBy.ts","../generated/models/listArtifactsSortOrder.ts","../generated/models/listCallFeedbackSortBy.ts","../generated/models/listCallFeedbackSortOrder.ts","../generated/models/listCallsDirection.ts","../generated/models/listCallsSortBy.ts","../generated/models/listCallsSortOrder.ts","../generated/models/listCallsStatus.ts","../generated/models/listClaimsSortBy.ts","../generated/models/listClaimsSortOrder.ts","../generated/models/listEmailAgentsSortBy.ts","../generated/models/listEmailAgentsSortOrder.ts","../generated/models/listEmailsSortBy.ts","../generated/models/listEmailsSortOrder.ts","../generated/models/listExtractorJobsExtractorType.ts","../generated/models/listExtractorJobsSortBy.ts","../generated/models/listExtractorJobsSortOrder.ts","../generated/models/listExtractorJobsStatus.ts","../generated/models/listExtractorsSortBy.ts","../generated/models/listExtractorsSortOrder.ts","../generated/models/listExtractsSortBy.ts","../generated/models/listExtractsSortOrder.ts","../generated/models/listJobsStatusItem.ts","../generated/models/listToolsSortBy.ts","../generated/models/listToolsSortOrder.ts","../generated/models/listWebhookDeliveriesSortOrder.ts","../generated/models/outboundJobStatus.ts","../generated/models/updateAgentModelsBodyLanguage.ts","../generated/models/updateAgentModelsBodyLlmModel.ts","../generated/models/updateAgentModelsBodySttModel.ts","../generated/models/updateAgentModelsBodyTtsModel.ts","../generated/models/updateAgentModelsBodyTtsProvider.ts"],"names":["useSwr","useSWRMutation"],"mappings":";;;;AAUA,IAAI,MAAA,GAAwB;AAAA,EAC1B,OAAA,EAAS;AACX,CAAA;AAaO,SAAS,UAAU,SAAA,EAAmC;AAC3D,EAAA,MAAA,GAAS,EAAE,GAAG,MAAA,EAAQ,GAAG,SAAA,EAAU;AACrC;AAGO,SAAS,SAAA,GAA2B;AACzC,EAAA,OAAO,EAAE,GAAG,MAAA,EAAO;AACrB;AAOA,eAAe,OAAA,CACb,GAAA,EACA,OAAA,EACA,QAAA,EACY;AACZ,EAAA,MAAM,OAAA,GAAU,GAAA,CAAI,UAAA,CAAW,MAAM,CAAA,GAAI,MAAM,CAAA,EAAG,MAAA,CAAO,OAAO,CAAA,EAAG,GAAG,CAAA,CAAA;AAEtE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AA;AAAA,EACT,OAAA,EAAS;AACX;;;ACHO,IAAM,6BAAA,GAAgC;AAAA,EAC3C,KAAA,EAAO,QAAA;AAAA,EACP,aAAA,EAAe,aAAA;AAAA,EACf,aAAA,EAAe,cAAA;AAAA,EACf,OAAA,EAAS,OAAA;AAAA,EACT,WAAA,EAAa,WAAA;AAAA,EACb,YAAA,EAAc,YAAA;AAAA,EACd,oBAAA,EAAsB,qBAAA;AAAA,EACtB,qBAAA,EAAuB,sBAAA;AAAA,EACvB,iBAAA,EAAmB,kBAAA;AAAA,EACnB,iBAAA,EAAmB,kBAAA;AAAA,EACnB,sBAAA,EAAwB,uBAAA;AAAA,EACxB,gBAAA,EAAkB,gBAAA;AAAA,EAClB,kBAAA,EAAoB,mBAAA;AAAA,EACpB,iBAAA,EAAmB;AACrB;;;ACfO,IAAM,6BAAA,GAAgC;AAAA,EAC3C,yBAAA,EAA2B,yBAAA;AAAA,EAC3B,yBAAA,EAA2B,yBAAA;AAAA,EAC3B,gBAAA,EAAkB,gBAAA;AAAA,EAClB,+BAAA,EAAiC;AACnC;;;ACLO,IAAM,6BAAA,GAAgC;AAAA,EAC3C,iBAAA,EAAmB,mBAAA;AAAA,EACnB,iBAAA,EAAmB,mBAAA;AAAA,EACnB,SAAA,EAAW,SAAA;AAAA,EACX,OAAA,EAAS;AACX;;;ACLO,IAAM,gCAAA,GAAmC;AAAA,EAC9C,UAAA,EAAY,YAAA;AAAA,EACZ,QAAA,EAAU,UAAA;AAAA,EACV,MAAA,EAAQ;AACV","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 // Strip the API envelope ({ data, message }) — return payload directly\n return ((body as Record<string, unknown>)?.data ?? body) 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// Errors\n// --------------------------------------------------------------------------\n\n/** Orval uses this to type the `error` field in SWR hooks as AvallonError */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ErrorType<E> = AvallonError;\n\n/** Typed error class for API errors. Thrown by customFetch on non-2xx responses. */\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 AddToolsToAgentBody,\n AddToolsToAgentResponse,\n AgentList,\n AgentPrompt,\n CreateAgentBody,\n CreateAgentResponse,\n DeleteToolsFromAgentBody,\n DeleteToolsFromAgentResponse,\n ErrorResponse,\n GetAgentResponse,\n ListAgentsParams,\n UpdateAgentModelsBody,\n UpdateAgentModelsResponse,\n UpdateCallControlsBody,\n UpdateCallControlsResponse,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } 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 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<AgentList> => {\n return customFetch<AgentList>(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 = ErrorType<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 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 = ErrorType<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 its ID.\n * @summary Get agent\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 = ErrorType<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 * Add one or more tools to an agent by their IDs.\n * @summary Add tools to agent\n */\nexport const getAddToolsToAgentUrl = (id: string) => {\n return `/v1/agents/${id}/tools`;\n};\n\nexport const addToolsToAgent = async (\n id: string,\n addToolsToAgentBody: AddToolsToAgentBody,\n options?: RequestInit\n): Promise<AddToolsToAgentResponse> => {\n return customFetch<AddToolsToAgentResponse>(getAddToolsToAgentUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(addToolsToAgentBody),\n });\n};\n\nexport const getAddToolsToAgentMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: AddToolsToAgentBody }) => {\n return addToolsToAgent(id, arg, options);\n };\n};\nexport const getAddToolsToAgentMutationKey = (id: string) =>\n [`/v1/agents/${id}/tools`] as const;\n\nexport type AddToolsToAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof addToolsToAgent>>\n>;\n\n/**\n * @summary Add tools to agent\n */\nexport const useAddToolsToAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof addToolsToAgent>>,\n TError,\n Key,\n AddToolsToAgentBody,\n Awaited<ReturnType<typeof addToolsToAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getAddToolsToAgentMutationKey(id);\n const swrFn = getAddToolsToAgentMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Remove one or more tools from an agent by their IDs.\n * @summary Remove tools from agent\n */\nexport const getDeleteToolsFromAgentUrl = (id: string) => {\n return `/v1/agents/${id}/tools`;\n};\n\nexport const deleteToolsFromAgent = async (\n id: string,\n deleteToolsFromAgentBody: DeleteToolsFromAgentBody,\n options?: RequestInit\n): Promise<DeleteToolsFromAgentResponse> => {\n return customFetch<DeleteToolsFromAgentResponse>(\n getDeleteToolsFromAgentUrl(id),\n {\n ...options,\n method: \"DELETE\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(deleteToolsFromAgentBody),\n }\n );\n};\n\nexport const getDeleteToolsFromAgentMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: DeleteToolsFromAgentBody }) => {\n return deleteToolsFromAgent(id, arg, options);\n };\n};\nexport const getDeleteToolsFromAgentMutationKey = (id: string) =>\n [`/v1/agents/${id}/tools`] as const;\n\nexport type DeleteToolsFromAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteToolsFromAgent>>\n>;\n\n/**\n * @summary Remove tools from agent\n */\nexport const useDeleteToolsFromAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteToolsFromAgent>>,\n TError,\n Key,\n DeleteToolsFromAgentBody,\n Awaited<ReturnType<typeof deleteToolsFromAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteToolsFromAgentMutationKey(id);\n const swrFn = getDeleteToolsFromAgentMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the available placeholder variables for an agent.\n * @summary Get agent prompt\n */\nexport const getGetAgentPromptUrl = (id: string) => {\n return `/v1/agents/${id}/prompt`;\n};\n\nexport const getAgentPrompt = async (\n id: string,\n options?: RequestInit\n): Promise<AgentPrompt> => {\n return customFetch<AgentPrompt>(getGetAgentPromptUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetAgentPromptKey = (id: string) =>\n [`/v1/agents/${id}/prompt`] as const;\n\nexport type GetAgentPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAgentPrompt>>\n>;\n\n/**\n * @summary Get agent prompt\n */\nexport const useGetAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getAgentPrompt>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetAgentPromptKey(id) : null));\n const swrFn = () => getAgentPrompt(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 * Update the LLM, TTS, and STT model configuration for an agent.\n * @summary Update agent models\n */\nexport const getUpdateAgentModelsUrl = (id: string) => {\n return `/v1/agents/${id}/models`;\n};\n\nexport const updateAgentModels = async (\n id: string,\n updateAgentModelsBody: UpdateAgentModelsBody,\n options?: RequestInit\n): Promise<UpdateAgentModelsResponse> => {\n return customFetch<UpdateAgentModelsResponse>(getUpdateAgentModelsUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateAgentModelsBody),\n });\n};\n\nexport const getUpdateAgentModelsMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateAgentModelsBody }) => {\n return updateAgentModels(id, arg, options);\n };\n};\nexport const getUpdateAgentModelsMutationKey = (id: string) =>\n [`/v1/agents/${id}/models`] as const;\n\nexport type UpdateAgentModelsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateAgentModels>>\n>;\n\n/**\n * @summary Update agent models\n */\nexport const useUpdateAgentModels = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateAgentModels>>,\n TError,\n Key,\n UpdateAgentModelsBody,\n Awaited<ReturnType<typeof updateAgentModels>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateAgentModelsMutationKey(id);\n const swrFn = getUpdateAgentModelsMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update call control settings for an agent.\n\nConfigure whether the agent supports dial pad input, can end calls, and set a transfer phone number.\n * @summary Update agent call controls\n */\nexport const getUpdateCallControlsUrl = (id: string) => {\n return `/v1/agents/${id}/call-controls`;\n};\n\nexport const updateCallControls = async (\n id: string,\n updateCallControlsBody: UpdateCallControlsBody,\n options?: RequestInit\n): Promise<UpdateCallControlsResponse> => {\n return customFetch<UpdateCallControlsResponse>(getUpdateCallControlsUrl(id), {\n ...options,\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateCallControlsBody),\n });\n};\n\nexport const getUpdateCallControlsMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateCallControlsBody }) => {\n return updateCallControls(id, arg, options);\n };\n};\nexport const getUpdateCallControlsMutationKey = (id: string) =>\n [`/v1/agents/${id}/call-controls`] as const;\n\nexport type UpdateCallControlsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateCallControls>>\n>;\n\n/**\n * @summary Update agent call controls\n */\nexport const useUpdateCallControls = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateCallControls>>,\n TError,\n Key,\n UpdateCallControlsBody,\n Awaited<ReturnType<typeof updateCallControls>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateCallControlsMutationKey(id);\n const swrFn = getUpdateCallControlsMutationFetcher(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ApiKeyCreated,\n ApiKeyList,\n ConfirmationResponse,\n CreateApiKeyBody,\n ErrorResponse,\n ListApiKeysParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } 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 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<ApiKeyList> => {\n return customFetch<ApiKeyList>(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 = ErrorType<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 const getCreateApiKeyUrl = () => {\n return `/platform/api-keys`;\n};\n\nexport const createApiKey = async (\n createApiKeyBody: CreateApiKeyBody,\n options?: RequestInit\n): Promise<ApiKeyCreated> => {\n return customFetch<ApiKeyCreated>(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 = ErrorType<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 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<ConfirmationResponse> => {\n return customFetch<ConfirmationResponse>(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 = ErrorType<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 ArtifactCreated,\n ArtifactDetail,\n ArtifactList,\n ArtifactMetadataKeys,\n CreateArtifactBody,\n ErrorResponse,\n GetArtifactMetadataKeysParams,\n ListArtifactsParams,\n UpdateArtifactMetadataBody,\n UploadFileBody,\n UploadFileResponse,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Upload a document as a base64-encoded artifact for processing.\n\n**Limits:**\n\nMaximum file size is approximately 6.75MB (base64 encoded). The API Gateway has a 10MB request limit.\n\n**Processing options:**\n\n- `file_password`: Password for encrypted PDFs\n- `file_splitting_enabled`: Split multi-page PDFs into separate artifacts\n * @summary Create artifact\n */\nexport const getCreateArtifactUrl = () => {\n return `/v1/artifacts`;\n};\n\nexport const createArtifact = async (\n createArtifactBody: CreateArtifactBody,\n options?: RequestInit\n): Promise<ArtifactCreated> => {\n return customFetch<ArtifactCreated>(getCreateArtifactUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createArtifactBody),\n });\n};\n\nexport const getCreateArtifactMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateArtifactBody }) => {\n return createArtifact(arg, options);\n };\n};\nexport const getCreateArtifactMutationKey = () => [`/v1/artifacts`] as const;\n\nexport type CreateArtifactMutationResult = NonNullable<\n Awaited<ReturnType<typeof createArtifact>>\n>;\n\n/**\n * @summary Create artifact\n */\nexport const useCreateArtifact = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createArtifact>>,\n TError,\n Key,\n CreateArtifactBody,\n Awaited<ReturnType<typeof createArtifact>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateArtifactMutationKey();\n const swrFn = getCreateArtifactMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all artifacts with pagination, filtering, and sorting.\n\n**Metadata Filtering:**\n\nUse bracket notation to filter by metadata keys:\n- `metadata[claim_id]=abc-123`\n- `metadata[source]=email`\n\nMultiple metadata filters can be combined (AND logic).\n * @summary List artifacts\n */\nexport const getListArtifactsUrl = (params?: ListArtifactsParams) => {\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/artifacts?${stringifiedParams}`\n : `/v1/artifacts`;\n};\n\nexport const listArtifacts = async (\n params?: ListArtifactsParams,\n options?: RequestInit\n): Promise<ArtifactList> => {\n return customFetch<ArtifactList>(getListArtifactsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListArtifactsKey = (params?: ListArtifactsParams) =>\n [`/v1/artifacts`, ...(params ? [params] : [])] as const;\n\nexport type ListArtifactsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listArtifacts>>\n>;\n\n/**\n * @summary List artifacts\n */\nexport const useListArtifacts = <TError = ErrorType<ErrorResponse>>(\n params?: ListArtifactsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listArtifacts>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListArtifactsKey(params) : null));\n const swrFn = () => listArtifacts(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 * Retrieve a single artifact by ID, including its metadata, file URL, and extracted content.\n * @summary Get artifact\n */\nexport const getGetArtifactUrl = (id: string) => {\n return `/v1/artifacts/${id}`;\n};\n\nexport const getArtifact = async (\n id: string,\n options?: RequestInit\n): Promise<ArtifactDetail> => {\n return customFetch<ArtifactDetail>(getGetArtifactUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetArtifactKey = (id: string) =>\n [`/v1/artifacts/${id}`] as const;\n\nexport type GetArtifactQueryResult = NonNullable<\n Awaited<ReturnType<typeof getArtifact>>\n>;\n\n/**\n * @summary Get artifact\n */\nexport const useGetArtifact = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getArtifact>>, 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 ? getGetArtifactKey(id) : null));\n const swrFn = () => getArtifact(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 * Retrieve all unique metadata keys and their values across artifacts. Useful for building filter UIs.\n * @summary Get artifact metadata keys\n */\nexport const getGetArtifactMetadataKeysUrl = (\n params?: GetArtifactMetadataKeysParams\n) => {\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/artifacts/metadata/keys?${stringifiedParams}`\n : `/v1/artifacts/metadata/keys`;\n};\n\nexport const getArtifactMetadataKeys = async (\n params?: GetArtifactMetadataKeysParams,\n options?: RequestInit\n): Promise<ArtifactMetadataKeys> => {\n return customFetch<ArtifactMetadataKeys>(\n getGetArtifactMetadataKeysUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetArtifactMetadataKeysKey = (\n params?: GetArtifactMetadataKeysParams\n) => [`/v1/artifacts/metadata/keys`, ...(params ? [params] : [])] as const;\n\nexport type GetArtifactMetadataKeysQueryResult = NonNullable<\n Awaited<ReturnType<typeof getArtifactMetadataKeys>>\n>;\n\n/**\n * @summary Get artifact metadata keys\n */\nexport const useGetArtifactMetadataKeys = <TError = ErrorType<ErrorResponse>>(\n params?: GetArtifactMetadataKeysParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getArtifactMetadataKeys>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetArtifactMetadataKeysKey(params) : null));\n const swrFn = () => getArtifactMetadataKeys(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 * Merge-update metadata on an existing artifact. Provided keys are added or overwritten; other existing keys are preserved.\n * @summary Update artifact metadata\n */\nexport const getUpdateArtifactMetadataUrl = (id: string) => {\n return `/v1/artifacts/${id}/metadata`;\n};\n\nexport const updateArtifactMetadata = async (\n id: string,\n updateArtifactMetadataBody: UpdateArtifactMetadataBody,\n options?: RequestInit\n): Promise<ArtifactDetail> => {\n return customFetch<ArtifactDetail>(getUpdateArtifactMetadataUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateArtifactMetadataBody),\n });\n};\n\nexport const getUpdateArtifactMetadataMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateArtifactMetadataBody }) => {\n return updateArtifactMetadata(id, arg, options);\n };\n};\nexport const getUpdateArtifactMetadataMutationKey = (id: string) =>\n [`/v1/artifacts/${id}/metadata`] as const;\n\nexport type UpdateArtifactMetadataMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateArtifactMetadata>>\n>;\n\n/**\n * @summary Update artifact metadata\n */\nexport const useUpdateArtifactMetadata = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateArtifactMetadata>>,\n TError,\n Key,\n UpdateArtifactMetadataBody,\n Awaited<ReturnType<typeof updateArtifactMetadata>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateArtifactMetadataMutationKey(id);\n const swrFn = getUpdateArtifactMetadataMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Upload a file for processing by passing a URL to a file. Use this for uploading larger files.\n\nThis endpoint returns an upload id that can be used to find the created artifacts using the list artifacts endpoint.\n * @summary Upload a file for processing\n */\nexport const getUploadFileUrl = () => {\n return `/v1/upload-file`;\n};\n\nexport const uploadFile = async (\n uploadFileBody: UploadFileBody,\n options?: RequestInit\n): Promise<UploadFileResponse> => {\n return customFetch<UploadFileResponse>(getUploadFileUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(uploadFileBody),\n });\n};\n\nexport const getUploadFileMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UploadFileBody }) => {\n return uploadFile(arg, options);\n };\n};\nexport const getUploadFileMutationKey = () => [`/v1/upload-file`] as const;\n\nexport type UploadFileMutationResult = NonNullable<\n Awaited<ReturnType<typeof uploadFile>>\n>;\n\n/**\n * @summary Upload a file for processing\n */\nexport const useUploadFile = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof uploadFile>>,\n TError,\n Key,\n UploadFileBody,\n Awaited<ReturnType<typeof uploadFile>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUploadFileMutationKey();\n const swrFn = getUploadFileMutationFetcher(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 AuthTokens,\n EmptyResponse,\n ErrorResponse,\n GetOAuthUrlParams,\n GetSessionToken200,\n GetSessionTokenBody,\n OAuthUrl,\n RefreshTokenBody,\n SignInBody,\n SignUpBody,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new user account with email and password.\n * @summary Sign up\n */\nexport const getSignUpUrl = () => {\n return `/v1/auth/sign-up`;\n};\n\nexport const signUp = async (\n signUpBody: SignUpBody,\n options?: RequestInit\n): Promise<EmptyResponse> => {\n return customFetchNoAuth<EmptyResponse>(getSignUpUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(signUpBody),\n });\n};\n\nexport const getSignUpMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: SignUpBody }) => {\n return signUp(arg, options);\n };\n};\nexport const getSignUpMutationKey = () => [`/v1/auth/sign-up`] as const;\n\nexport type SignUpMutationResult = NonNullable<\n Awaited<ReturnType<typeof signUp>>\n>;\n\n/**\n * @summary Sign up\n */\nexport const useSignUp = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof signUp>>,\n TError,\n Key,\n SignUpBody,\n Awaited<ReturnType<typeof signUp>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getSignUpMutationKey();\n const swrFn = getSignUpMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Authenticate using one of the supported methods:\n\n- **Password:** Email and password credentials\n- **OAuth:** Authorization code from OAuth flow\n- **Email OTP:** One-time password sent to email\n * @summary Sign in\n */\nexport const getSignInUrl = () => {\n return `/v1/auth/sign-in`;\n};\n\nexport const signIn = async (\n signInBody: SignInBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getSignInUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(signInBody),\n });\n};\n\nexport const getSignInMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: SignInBody }) => {\n return signIn(arg, options);\n };\n};\nexport const getSignInMutationKey = () => [`/v1/auth/sign-in`] as const;\n\nexport type SignInMutationResult = NonNullable<\n Awaited<ReturnType<typeof signIn>>\n>;\n\n/**\n * @summary Sign in\n */\nexport const useSignIn = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof signIn>>,\n TError,\n Key,\n SignInBody,\n Awaited<ReturnType<typeof signIn>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getSignInMutationKey();\n const swrFn = getSignInMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Exchange a valid access token and refresh token pair for new tokens.\n * @summary Refresh authentication token\n */\nexport const getRefreshTokenUrl = () => {\n return `/v1/auth/refresh-token`;\n};\n\nexport const refreshToken = async (\n refreshTokenBody: RefreshTokenBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getRefreshTokenUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(refreshTokenBody),\n });\n};\n\nexport const getRefreshTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: RefreshTokenBody }) => {\n return refreshToken(arg, options);\n };\n};\nexport const getRefreshTokenMutationKey = () =>\n [`/v1/auth/refresh-token`] as const;\n\nexport type RefreshTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof refreshToken>>\n>;\n\n/**\n * @summary Refresh authentication token\n */\nexport const useRefreshToken = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof refreshToken>>,\n TError,\n Key,\n RefreshTokenBody,\n Awaited<ReturnType<typeof refreshToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRefreshTokenMutationKey();\n const swrFn = getRefreshTokenMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Generate an OAuth authorization URL for a given provider. Use with PKCE flow.\n * @summary Get OAuth sign-in URL\n */\nexport const getGetOAuthUrlUrl = (params: GetOAuthUrlParams) => {\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 getOAuthUrl = async (\n params: GetOAuthUrlParams,\n options?: RequestInit\n): Promise<OAuthUrl> => {\n return customFetchNoAuth<OAuthUrl>(getGetOAuthUrlUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOAuthUrlKey = (params: GetOAuthUrlParams) =>\n [`/v1/auth/oauth-url`, ...(params ? [params] : [])] as const;\n\nexport type GetOAuthUrlQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOAuthUrl>>\n>;\n\n/**\n * @summary Get OAuth sign-in URL\n */\nexport const useGetOAuthUrl = <TError = ErrorType<ErrorResponse>>(\n params: GetOAuthUrlParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getOAuthUrl>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\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 ? getGetOAuthUrlKey(params) : null));\n const swrFn = () => getOAuthUrl(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 * Exchange a Supabase identity token for a tenant-scoped Core Plane access token.\n\n- If `tenant_id` is provided, validates the user is a member of that tenant.\n- If `tenant_id` is omitted, selects the user's default (oldest) tenant.\n- Call this endpoint again with a different `tenant_id` to switch tenants.\n * @summary Create or switch tenant session\n */\nexport const getGetSessionTokenUrl = () => {\n return `/v1/auth/session`;\n};\n\nexport const getSessionToken = async (\n getSessionTokenBody: GetSessionTokenBody,\n options?: RequestInit\n): Promise<GetSessionToken200> => {\n return customFetchNoAuth<GetSessionToken200>(getGetSessionTokenUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(getSessionTokenBody),\n });\n};\n\nexport const getGetSessionTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: GetSessionTokenBody }) => {\n return getSessionToken(arg, options);\n };\n};\nexport const getGetSessionTokenMutationKey = () =>\n [`/v1/auth/session`] as const;\n\nexport type GetSessionTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof getSessionToken>>\n>;\n\n/**\n * @summary Create or switch tenant session\n */\nexport const useGetSessionToken = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof getSessionToken>>,\n TError,\n Key,\n GetSessionTokenBody,\n Awaited<ReturnType<typeof getSessionToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getGetSessionTokenMutationKey();\n const swrFn = getGetSessionTokenMutationFetcher(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateFeedbackRequest,\n ErrorResponse,\n Feedback,\n ListCallFeedbackParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create feedback for a specific message in a call. Author is derived from the authenticated user.\n * @summary Create feedback on a call message\n */\nexport const getCreateCallFeedbackUrl = (id: string) => {\n return `/v1/calls/${id}/feedback`;\n};\n\nexport const createCallFeedback = async (\n id: string,\n createFeedbackRequest: CreateFeedbackRequest,\n options?: RequestInit\n): Promise<Feedback> => {\n return customFetch<Feedback>(getCreateCallFeedbackUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createFeedbackRequest),\n });\n};\n\nexport const getCreateCallFeedbackMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateFeedbackRequest }) => {\n return createCallFeedback(id, arg, options);\n };\n};\nexport const getCreateCallFeedbackMutationKey = (id: string) =>\n [`/v1/calls/${id}/feedback`] as const;\n\nexport type CreateCallFeedbackMutationResult = NonNullable<\n Awaited<ReturnType<typeof createCallFeedback>>\n>;\n\n/**\n * @summary Create feedback on a call message\n */\nexport const useCreateCallFeedback = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createCallFeedback>>,\n TError,\n Key,\n CreateFeedbackRequest,\n Awaited<ReturnType<typeof createCallFeedback>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateCallFeedbackMutationKey(id);\n const swrFn = getCreateCallFeedbackMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all feedback for a call. Paginated.\n * @summary List feedback for a call\n */\nexport const getListCallFeedbackUrl = (\n id: string,\n params: ListCallFeedbackParams\n) => {\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/calls/${id}/feedback?${stringifiedParams}`\n : `/v1/calls/${id}/feedback`;\n};\n\nexport const listCallFeedback = async (\n id: string,\n params: ListCallFeedbackParams,\n options?: RequestInit\n): Promise<Feedback[]> => {\n return customFetch<Feedback[]>(getListCallFeedbackUrl(id, params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCallFeedbackKey = (\n id: string,\n params: ListCallFeedbackParams\n) => [`/v1/calls/${id}/feedback`, ...(params ? [params] : [])] as const;\n\nexport type ListCallFeedbackQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCallFeedback>>\n>;\n\n/**\n * @summary List feedback for a call\n */\nexport const useListCallFeedback = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params: ListCallFeedbackParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listCallFeedback>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListCallFeedbackKey(id, params) : null));\n const swrFn = () => listCallFeedback(id, 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 * Delete a single feedback entry.\n * @summary Delete feedback\n */\nexport const getDeleteCallFeedbackUrl = (id: string, feedbackId: string) => {\n return `/v1/calls/${id}/feedback/${feedbackId}`;\n};\n\nexport const deleteCallFeedback = async (\n id: string,\n feedbackId: string,\n options?: RequestInit\n): Promise<null> => {\n return customFetch<null>(getDeleteCallFeedbackUrl(id, feedbackId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteCallFeedbackMutationFetcher = (\n id: string,\n feedbackId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteCallFeedback(id, feedbackId, options);\n };\n};\nexport const getDeleteCallFeedbackMutationKey = (\n id: string,\n feedbackId: string\n) => [`/v1/calls/${id}/feedback/${feedbackId}`] as const;\n\nexport type DeleteCallFeedbackMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteCallFeedback>>\n>;\n\n/**\n * @summary Delete feedback\n */\nexport const useDeleteCallFeedback = <TError = ErrorType<ErrorResponse>>(\n id: string,\n feedbackId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteCallFeedback>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteCallFeedback>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteCallFeedbackMutationKey(id, feedbackId);\n const swrFn = getDeleteCallFeedbackMutationFetcher(\n id,\n feedbackId,\n requestOptions\n );\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 type {\n CallAnalytics,\n CallDetail,\n CallEvaluation,\n CallList,\n ErrorResponse,\n GetCallAnalyticsParams,\n GetCallParams,\n ListCallsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all calls, with pagination, filtering, and sorting.\n\n**Filtering:**\n\nFilter by agent, direction, status, time range, phone number, and more. Phone number filter supports both exact E.164 matches and partial search.\n * @summary List calls\n */\nexport const getListCallsUrl = (params?: ListCallsParams) => {\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/calls?${stringifiedParams}`\n : `/v1/calls`;\n};\n\nexport const listCalls = async (\n params?: ListCallsParams,\n options?: RequestInit\n): Promise<CallList> => {\n return customFetch<CallList>(getListCallsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCallsKey = (params?: ListCallsParams) =>\n [`/v1/calls`, ...(params ? [params] : [])] as const;\n\nexport type ListCallsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCalls>>\n>;\n\n/**\n * @summary List calls\n */\nexport const useListCalls = <TError = ErrorType<ErrorResponse>>(\n params?: ListCallsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listCalls>>, 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 ? getListCallsKey(params) : null));\n const swrFn = () => listCalls(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 * Retrieve detailed information about a specific call.\n\nSet `include_messages=true` to include the full message transcript.\n * @summary Get call\n */\nexport const getGetCallUrl = (id: string, params?: GetCallParams) => {\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/calls/${id}?${stringifiedParams}`\n : `/v1/calls/${id}`;\n};\n\nexport const getCall = async (\n id: string,\n params?: GetCallParams,\n options?: RequestInit\n): Promise<CallDetail> => {\n return customFetch<CallDetail>(getGetCallUrl(id, params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCallKey = (id: string, params?: GetCallParams) =>\n [`/v1/calls/${id}`, ...(params ? [params] : [])] as const;\n\nexport type GetCallQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCall>>\n>;\n\n/**\n * @summary Get call\n */\nexport const useGetCall = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: GetCallParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getCall>>, 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 ??\n (() => (isEnabled ? getGetCallKey(id, params) : null));\n const swrFn = () => getCall(id, 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 * Retrieve the evaluation results for a specific call, including overall score, pass status, and per-metric breakdowns.\n * @summary Get call evaluation\n */\nexport const getGetCallEvaluationUrl = (id: string) => {\n return `/v1/calls/${id}/evaluation`;\n};\n\nexport const getCallEvaluation = async (\n id: string,\n options?: RequestInit\n): Promise<CallEvaluation> => {\n return customFetch<CallEvaluation>(getGetCallEvaluationUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCallEvaluationKey = (id: string) =>\n [`/v1/calls/${id}/evaluation`] as const;\n\nexport type GetCallEvaluationQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCallEvaluation>>\n>;\n\n/**\n * @summary Get call evaluation\n */\nexport const useGetCallEvaluation = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getCallEvaluation>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getGetCallEvaluationKey(id) : null));\n const swrFn = () => getCallEvaluation(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 * Retrieve aggregated call analytics for a time range.\n\nIncludes summary statistics, call volume over time, evaluation scores, score and duration distributions, and per-metric performance.\n * @summary Get call analytics\n */\nexport const getGetCallAnalyticsUrl = (params: GetCallAnalyticsParams) => {\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/calls/analytics?${stringifiedParams}`\n : `/v1/calls/analytics`;\n};\n\nexport const getCallAnalytics = async (\n params: GetCallAnalyticsParams,\n options?: RequestInit\n): Promise<CallAnalytics> => {\n return customFetch<CallAnalytics>(getGetCallAnalyticsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCallAnalyticsKey = (params: GetCallAnalyticsParams) =>\n [`/v1/calls/analytics`, ...(params ? [params] : [])] as const;\n\nexport type GetCallAnalyticsQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCallAnalytics>>\n>;\n\n/**\n * @summary Get call analytics\n */\nexport const useGetCallAnalytics = <TError = ErrorType<ErrorResponse>>(\n params: GetCallAnalyticsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getCallAnalytics>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetCallAnalyticsKey(params) : null));\n const swrFn = () => getCallAnalytics(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 */\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 ClaimCreated,\n ClaimDetail,\n ClaimList,\n ErrorResponse,\n ListClaimsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new empty claim. Returns the claim ID and the creation timestamp.\n * @summary Create claim\n */\nexport const getCreateClaimUrl = () => {\n return `/v1/claims`;\n};\n\nexport const createClaim = async (\n options?: RequestInit\n): Promise<ClaimCreated> => {\n return customFetch<ClaimCreated>(getCreateClaimUrl(), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCreateClaimMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return createClaim(options);\n };\n};\nexport const getCreateClaimMutationKey = () => [`/v1/claims`] as const;\n\nexport type CreateClaimMutationResult = NonNullable<\n Awaited<ReturnType<typeof createClaim>>\n>;\n\n/**\n * @summary Create claim\n */\nexport const useCreateClaim = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createClaim>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof createClaim>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateClaimMutationKey();\n const swrFn = getCreateClaimMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all claims with pagination and sorting options.\n * @summary List claims\n */\nexport const getListClaimsUrl = (params: ListClaimsParams) => {\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/claims?${stringifiedParams}`\n : `/v1/claims`;\n};\n\nexport const listClaims = async (\n params: ListClaimsParams,\n options?: RequestInit\n): Promise<ClaimList> => {\n return customFetch<ClaimList>(getListClaimsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListClaimsKey = (params: ListClaimsParams) =>\n [`/v1/claims`, ...(params ? [params] : [])] as const;\n\nexport type ListClaimsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listClaims>>\n>;\n\n/**\n * @summary List claims\n */\nexport const useListClaims = <TError = ErrorType<ErrorResponse>>(\n params: ListClaimsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listClaims>>, 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 ? getListClaimsKey(params) : null));\n const swrFn = () => listClaims(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 * Retrieve detailed information about a claim, including its sources (emails), artifacts (documents), extractor job status, and extracted data.\n * @summary Get claim detail\n */\nexport const getGetClaimDetailUrl = (id: string) => {\n return `/v1/claims/${id}`;\n};\n\nexport const getClaimDetail = async (\n id: string,\n options?: RequestInit\n): Promise<ClaimDetail> => {\n return customFetch<ClaimDetail>(getGetClaimDetailUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetClaimDetailKey = (id: string) =>\n [`/v1/claims/${id}`] as const;\n\nexport type GetClaimDetailQueryResult = NonNullable<\n Awaited<ReturnType<typeof getClaimDetail>>\n>;\n\n/**\n * @summary Get claim detail\n */\nexport const useGetClaimDetail = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getClaimDetail>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetClaimDetailKey(id) : null));\n const swrFn = () => getClaimDetail(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 { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CheckEmailUsernameAvailabilityParams,\n CreateEmailAgentBody,\n EmailAgent,\n EmailAgentList,\n EmailUsernameAvailability,\n ErrorResponse,\n ListEmailAgentsParams,\n UpdateEmailAgentBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Check whether a given email username is available for creating a new email agent.\n * @summary Check email username availability\n */\nexport const getCheckEmailUsernameAvailabilityUrl = (\n params: CheckEmailUsernameAvailabilityParams\n) => {\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/email-agents/availability?${stringifiedParams}`\n : `/v1/email-agents/availability`;\n};\n\nexport const checkEmailUsernameAvailability = async (\n params: CheckEmailUsernameAvailabilityParams,\n options?: RequestInit\n): Promise<EmailUsernameAvailability> => {\n return customFetch<EmailUsernameAvailability>(\n getCheckEmailUsernameAvailabilityUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getCheckEmailUsernameAvailabilityKey = (\n params: CheckEmailUsernameAvailabilityParams\n) => [`/v1/email-agents/availability`, ...(params ? [params] : [])] as const;\n\nexport type CheckEmailUsernameAvailabilityQueryResult = NonNullable<\n Awaited<ReturnType<typeof checkEmailUsernameAvailability>>\n>;\n\n/**\n * @summary Check email username availability\n */\nexport const useCheckEmailUsernameAvailability = <\n TError = ErrorType<ErrorResponse>,\n>(\n params: CheckEmailUsernameAvailabilityParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof checkEmailUsernameAvailability>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getCheckEmailUsernameAvailabilityKey(params) : null));\n const swrFn = () => checkEmailUsernameAvailability(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 email agent linked to an extractor.\n\nThe agent will receive emails at the assigned address and automatically process attachments using the specified extractor.\n * @summary Create email agent\n */\nexport const getCreateEmailAgentUrl = () => {\n return `/v1/email-agents`;\n};\n\nexport const createEmailAgent = async (\n createEmailAgentBody: CreateEmailAgentBody,\n options?: RequestInit\n): Promise<EmailAgent> => {\n return customFetch<EmailAgent>(getCreateEmailAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createEmailAgentBody),\n });\n};\n\nexport const getCreateEmailAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateEmailAgentBody }) => {\n return createEmailAgent(arg, options);\n };\n};\nexport const getCreateEmailAgentMutationKey = () =>\n [`/v1/email-agents`] as const;\n\nexport type CreateEmailAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createEmailAgent>>\n>;\n\n/**\n * @summary Create email agent\n */\nexport const useCreateEmailAgent = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createEmailAgent>>,\n TError,\n Key,\n CreateEmailAgentBody,\n Awaited<ReturnType<typeof createEmailAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateEmailAgentMutationKey();\n const swrFn = getCreateEmailAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all email agents with pagination and sorting.\n * @summary List email agents\n */\nexport const getListEmailAgentsUrl = (params?: ListEmailAgentsParams) => {\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/email-agents?${stringifiedParams}`\n : `/v1/email-agents`;\n};\n\nexport const listEmailAgents = async (\n params?: ListEmailAgentsParams,\n options?: RequestInit\n): Promise<EmailAgentList> => {\n return customFetch<EmailAgentList>(getListEmailAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailAgentsKey = (params?: ListEmailAgentsParams) =>\n [`/v1/email-agents`, ...(params ? [params] : [])] as const;\n\nexport type ListEmailAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmailAgents>>\n>;\n\n/**\n * @summary List email agents\n */\nexport const useListEmailAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListEmailAgentsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listEmailAgents>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListEmailAgentsKey(params) : null));\n const swrFn = () => listEmailAgents(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 * Update an email agent's configuration.\n * @summary Update email agent\n */\nexport const getUpdateEmailAgentUrl = (id: string) => {\n return `/v1/email-agents/${id}`;\n};\n\nexport const updateEmailAgent = async (\n id: string,\n updateEmailAgentBody: UpdateEmailAgentBody,\n options?: RequestInit\n): Promise<EmailAgent> => {\n return customFetch<EmailAgent>(getUpdateEmailAgentUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateEmailAgentBody),\n });\n};\n\nexport const getUpdateEmailAgentMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateEmailAgentBody }) => {\n return updateEmailAgent(id, arg, options);\n };\n};\nexport const getUpdateEmailAgentMutationKey = (id: string) =>\n [`/v1/email-agents/${id}`] as const;\n\nexport type UpdateEmailAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateEmailAgent>>\n>;\n\n/**\n * @summary Update email agent\n */\nexport const useUpdateEmailAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateEmailAgent>>,\n TError,\n Key,\n UpdateEmailAgentBody,\n Awaited<ReturnType<typeof updateEmailAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateEmailAgentMutationKey(id);\n const swrFn = getUpdateEmailAgentMutationFetcher(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 CreateEmailBody,\n EmailCreated,\n EmailDetail,\n EmailList,\n ErrorResponse,\n ListEmailsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Ingest an email into the system.\n\nOptionally associate the email with an existing claim via `claim_id`.\n * @summary Create email\n */\nexport const getCreateEmailUrl = () => {\n return `/v1/emails`;\n};\n\nexport const createEmail = async (\n createEmailBody: CreateEmailBody,\n options?: RequestInit\n): Promise<EmailCreated> => {\n return customFetch<EmailCreated>(getCreateEmailUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createEmailBody),\n });\n};\n\nexport const getCreateEmailMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateEmailBody }) => {\n return createEmail(arg, options);\n };\n};\nexport const getCreateEmailMutationKey = () => [`/v1/emails`] as const;\n\nexport type CreateEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof createEmail>>\n>;\n\n/**\n * @summary Create email\n */\nexport const useCreateEmail = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createEmail>>,\n TError,\n Key,\n CreateEmailBody,\n Awaited<ReturnType<typeof createEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateEmailMutationKey();\n const swrFn = getCreateEmailMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all emails with pagination and filtering.\n\n**Filtering:**\n\nFilter by email agent, sender, recipient, or content search.\n * @summary List emails\n */\nexport const getListEmailsUrl = (params: ListEmailsParams) => {\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/emails?${stringifiedParams}`\n : `/v1/emails`;\n};\n\nexport const listEmails = async (\n params: ListEmailsParams,\n options?: RequestInit\n): Promise<EmailList> => {\n return customFetch<EmailList>(getListEmailsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailsKey = (params: ListEmailsParams) =>\n [`/v1/emails`, ...(params ? [params] : [])] as const;\n\nexport type ListEmailsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmails>>\n>;\n\n/**\n * @summary List emails\n */\nexport const useListEmails = <TError = ErrorType<ErrorResponse>>(\n params: ListEmailsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listEmails>>, 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 ? getListEmailsKey(params) : null));\n const swrFn = () => listEmails(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 * Retrieve detailed information about a specific email, including full body content.\n * @summary Get email\n */\nexport const getGetEmailUrl = (emailId: string) => {\n return `/v1/emails/${emailId}`;\n};\n\nexport const getEmail = async (\n emailId: string,\n options?: RequestInit\n): Promise<EmailDetail> => {\n return customFetch<EmailDetail>(getGetEmailUrl(emailId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetEmailKey = (emailId: string) =>\n [`/v1/emails/${emailId}`] as const;\n\nexport type GetEmailQueryResult = NonNullable<\n Awaited<ReturnType<typeof getEmail>>\n>;\n\n/**\n * @summary Get email\n */\nexport const useGetEmail = <TError = ErrorType<ErrorResponse>>(\n emailId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getEmail>>, 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 && !!emailId;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetEmailKey(emailId) : null));\n const swrFn = () => getEmail(emailId, 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 AgenticJobMessageList,\n CanceledExtractorJob,\n CreateExtractorJobBody,\n ErrorResponse,\n ExtractorJobCreated,\n ExtractorJobList,\n GetExtractorJobResponse,\n ListAgenticJobMessagesParams,\n ListExtractorJobsParams,\n UpdateExtractorJobScopeBody,\n UpdatedExtractorJob,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all extraction jobs with pagination, filtering, and sorting.\n\n**Type Filtering:**\n\nFilter by `extractor_type` to see only `basic` or `agentic` jobs. Omit to return all types.\n\n**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[call_id]=abc-123`\n- `scope[email_id]=xyz-456`\n\nMultiple scope filters can be combined (AND logic).\n * @summary List extractor jobs\n */\nexport const getListExtractorJobsUrl = (params?: ListExtractorJobsParams) => {\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/extractor-jobs?${stringifiedParams}`\n : `/v1/extractor-jobs`;\n};\n\nexport const listExtractorJobs = async (\n params?: ListExtractorJobsParams,\n options?: RequestInit\n): Promise<ExtractorJobList> => {\n return customFetch<ExtractorJobList>(getListExtractorJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractorJobsKey = (params?: ListExtractorJobsParams) =>\n [`/v1/extractor-jobs`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractorJobsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtractorJobs>>\n>;\n\n/**\n * @summary List extractor jobs\n */\nexport const useListExtractorJobs = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractorJobsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listExtractorJobs>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListExtractorJobsKey(params) : null));\n const swrFn = () => listExtractorJobs(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 extraction job for the specified extractor.\n\nProvide a non-empty `scope` object to define what the extractor should process (e.g. `{ \"claim_id\": \"abc-123\" }`).\n * @summary Create extractor job\n */\nexport const getCreateExtractorJobUrl = () => {\n return `/v1/extractor-jobs`;\n};\n\nexport const createExtractorJob = async (\n createExtractorJobBody: CreateExtractorJobBody,\n options?: RequestInit\n): Promise<ExtractorJobCreated> => {\n return customFetch<ExtractorJobCreated>(getCreateExtractorJobUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorJobBody),\n });\n};\n\nexport const getCreateExtractorJobMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateExtractorJobBody }) => {\n return createExtractorJob(arg, options);\n };\n};\nexport const getCreateExtractorJobMutationKey = () =>\n [`/v1/extractor-jobs`] as const;\n\nexport type CreateExtractorJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof createExtractorJob>>\n>;\n\n/**\n * @summary Create extractor job\n */\nexport const useCreateExtractorJob = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createExtractorJob>>,\n TError,\n Key,\n CreateExtractorJobBody,\n Awaited<ReturnType<typeof createExtractorJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateExtractorJobMutationKey();\n const swrFn = getCreateExtractorJobMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve detailed information about a specific extractor job, including its status, timing, and result.\n * @summary Get extractor job\n */\nexport const getGetExtractorJobUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}`;\n};\n\nexport const getExtractorJob = async (\n id: string,\n options?: RequestInit\n): Promise<GetExtractorJobResponse> => {\n return customFetch<GetExtractorJobResponse>(getGetExtractorJobUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractorJobKey = (id: string) =>\n [`/v1/extractor-jobs/${id}`] as const;\n\nexport type GetExtractorJobQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtractorJob>>\n>;\n\n/**\n * @summary Get extractor job\n */\nexport const useGetExtractorJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getExtractorJob>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getGetExtractorJobKey(id) : null));\n const swrFn = () => getExtractorJob(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 * Cancel a queued or in-progress extractor job. Returns the updated job with its new status.\n * @summary Cancel extractor job\n */\nexport const getCancelExtractorJobUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}/cancel`;\n};\n\nexport const cancelExtractorJob = async (\n id: string,\n options?: RequestInit\n): Promise<CanceledExtractorJob> => {\n return customFetch<CanceledExtractorJob>(getCancelExtractorJobUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCancelExtractorJobMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelExtractorJob(id, options);\n };\n};\nexport const getCancelExtractorJobMutationKey = (id: string) =>\n [`/v1/extractor-jobs/${id}/cancel`] as const;\n\nexport type CancelExtractorJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof cancelExtractorJob>>\n>;\n\n/**\n * @summary Cancel extractor job\n */\nexport const useCancelExtractorJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof cancelExtractorJob>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof cancelExtractorJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCancelExtractorJobMutationKey(id);\n const swrFn = getCancelExtractorJobMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve agent messages emitted during an agentic extractor job run, ordered by emission time. Supports cursor-style pagination via `after` and `count`.\n * @summary List agentic job messages\n */\nexport const getListAgenticJobMessagesUrl = (\n id: string,\n params?: ListAgenticJobMessagesParams\n) => {\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/extractor-jobs/${id}/messages?${stringifiedParams}`\n : `/v1/extractor-jobs/${id}/messages`;\n};\n\nexport const listAgenticJobMessages = async (\n id: string,\n params?: ListAgenticJobMessagesParams,\n options?: RequestInit\n): Promise<AgenticJobMessageList> => {\n return customFetch<AgenticJobMessageList>(\n getListAgenticJobMessagesUrl(id, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListAgenticJobMessagesKey = (\n id: string,\n params?: ListAgenticJobMessagesParams\n) =>\n [`/v1/extractor-jobs/${id}/messages`, ...(params ? [params] : [])] as const;\n\nexport type ListAgenticJobMessagesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgenticJobMessages>>\n>;\n\n/**\n * @summary List agentic job messages\n */\nexport const useListAgenticJobMessages = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: ListAgenticJobMessagesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listAgenticJobMessages>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListAgenticJobMessagesKey(id, params) : null));\n const swrFn = () => listAgenticJobMessages(id, 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 * Merge-update scope on an existing extractor job. Provided keys are added or overwritten; other existing keys are preserved.\n * @summary Update extractor job scope\n */\nexport const getUpdateExtractorJobScopeUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}/scope`;\n};\n\nexport const updateExtractorJobScope = async (\n id: string,\n updateExtractorJobScopeBody: UpdateExtractorJobScopeBody,\n options?: RequestInit\n): Promise<UpdatedExtractorJob> => {\n return customFetch<UpdatedExtractorJob>(getUpdateExtractorJobScopeUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateExtractorJobScopeBody),\n });\n};\n\nexport const getUpdateExtractorJobScopeMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateExtractorJobScopeBody }) => {\n return updateExtractorJobScope(id, arg, options);\n };\n};\nexport const getUpdateExtractorJobScopeMutationKey = (id: string) =>\n [`/v1/extractor-jobs/${id}/scope`] as const;\n\nexport type UpdateExtractorJobScopeMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateExtractorJobScope>>\n>;\n\n/**\n * @summary Update extractor job scope\n */\nexport const useUpdateExtractorJobScope = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateExtractorJobScope>>,\n TError,\n Key,\n UpdateExtractorJobScopeBody,\n Awaited<ReturnType<typeof updateExtractorJobScope>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateExtractorJobScopeMutationKey(id);\n const swrFn = getUpdateExtractorJobScopeMutationFetcher(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 CreateExtractorBody,\n ErrorResponse,\n ExtractorCreated,\n ExtractorList,\n ExtractorUpdated,\n GetExtractorResponse,\n ListExtractorsParams,\n UpdateExtractorBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new extractor with a name and JSON schema defining the extraction output format.\n * @summary Create extractor\n */\nexport const getCreateExtractorUrl = () => {\n return `/v1/extractors`;\n};\n\nexport const createExtractor = async (\n createExtractorBody: CreateExtractorBody,\n options?: RequestInit\n): Promise<ExtractorCreated> => {\n return customFetch<ExtractorCreated>(getCreateExtractorUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorBody),\n });\n};\n\nexport const getCreateExtractorMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateExtractorBody }) => {\n return createExtractor(arg, options);\n };\n};\nexport const getCreateExtractorMutationKey = () => [`/v1/extractors`] as const;\n\nexport type CreateExtractorMutationResult = NonNullable<\n Awaited<ReturnType<typeof createExtractor>>\n>;\n\n/**\n * @summary Create extractor\n */\nexport const useCreateExtractor = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createExtractor>>,\n TError,\n Key,\n CreateExtractorBody,\n Awaited<ReturnType<typeof createExtractor>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateExtractorMutationKey();\n const swrFn = getCreateExtractorMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all extractors with pagination, filtering, and sorting.\n\nFilter by name using the `name` query parameter.\n * @summary List extractors\n */\nexport const getListExtractorsUrl = (params?: ListExtractorsParams) => {\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/extractors?${stringifiedParams}`\n : `/v1/extractors`;\n};\n\nexport const listExtractors = async (\n params?: ListExtractorsParams,\n options?: RequestInit\n): Promise<ExtractorList> => {\n return customFetch<ExtractorList>(getListExtractorsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractorsKey = (params?: ListExtractorsParams) =>\n [`/v1/extractors`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractorsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtractors>>\n>;\n\n/**\n * @summary List extractors\n */\nexport const useListExtractors = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractorsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listExtractors>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListExtractorsKey(params) : null));\n const swrFn = () => listExtractors(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 * Retrieve a single extractor by ID, including its schema and version.\n * @summary Get extractor\n */\nexport const getGetExtractorUrl = (id: string) => {\n return `/v1/extractors/${id}`;\n};\n\nexport const getExtractor = async (\n id: string,\n options?: RequestInit\n): Promise<GetExtractorResponse> => {\n return customFetch<GetExtractorResponse>(getGetExtractorUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractorKey = (id: string) =>\n [`/v1/extractors/${id}`] as const;\n\nexport type GetExtractorQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtractor>>\n>;\n\n/**\n * @summary Get extractor\n */\nexport const useGetExtractor = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getExtractor>>, 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 ? getGetExtractorKey(id) : null));\n const swrFn = () => getExtractor(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 * Update an extractor's schema. This creates a new version of the extractor.\n * @summary Update extractor\n */\nexport const getUpdateExtractorUrl = (id: string) => {\n return `/v1/extractors/${id}`;\n};\n\nexport const updateExtractor = async (\n id: string,\n updateExtractorBody: UpdateExtractorBody,\n options?: RequestInit\n): Promise<ExtractorUpdated> => {\n return customFetch<ExtractorUpdated>(getUpdateExtractorUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateExtractorBody),\n });\n};\n\nexport const getUpdateExtractorMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateExtractorBody }) => {\n return updateExtractor(id, arg, options);\n };\n};\nexport const getUpdateExtractorMutationKey = (id: string) =>\n [`/v1/extractors/${id}`] as const;\n\nexport type UpdateExtractorMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateExtractor>>\n>;\n\n/**\n * @summary Update extractor\n */\nexport const useUpdateExtractor = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateExtractor>>,\n TError,\n Key,\n UpdateExtractorBody,\n Awaited<ReturnType<typeof updateExtractor>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateExtractorMutationKey(id);\n const swrFn = getUpdateExtractorMutationFetcher(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 type {\n ErrorResponse,\n Extract,\n ExtractList,\n GetExtractCitations200,\n ListExtractsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve a single extract by ID, including the extraction result data.\n * @summary Get extract\n */\nexport const getGetExtractUrl = (id: string) => {\n return `/v1/extracts/${id}`;\n};\n\nexport const getExtract = async (\n id: string,\n options?: RequestInit\n): Promise<Extract> => {\n return customFetch<Extract>(getGetExtractUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractKey = (id: string) => [`/v1/extracts/${id}`] as const;\n\nexport type GetExtractQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtract>>\n>;\n\n/**\n * @summary Get extract\n */\nexport const useGetExtract = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getExtract>>, 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 ? getGetExtractKey(id) : null));\n const swrFn = () => getExtract(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 * Retrieve the citation tree with resolved chunk data for a given extract. Returns 404 if the extract does not exist or has no citations (the citations sub-resource is not available).\n * @summary Get extract citations\n */\nexport const getGetExtractCitationsUrl = (id: string) => {\n return `/v1/extracts/${id}/citations`;\n};\n\nexport const getExtractCitations = async (\n id: string,\n options?: RequestInit\n): Promise<GetExtractCitations200> => {\n return customFetch<GetExtractCitations200>(getGetExtractCitationsUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractCitationsKey = (id: string) =>\n [`/v1/extracts/${id}/citations`] as const;\n\nexport type GetExtractCitationsQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtractCitations>>\n>;\n\n/**\n * @summary Get extract citations\n */\nexport const useGetExtractCitations = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getExtractCitations>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getGetExtractCitationsKey(id) : null));\n const swrFn = () => getExtractCitations(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 * List all extracts with pagination, filtering, and sorting.\n\n**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[claim_id]=abc-123`\n\nMultiple scope filters can be combined (AND logic).\n * @summary List extracts\n */\nexport const getListExtractsUrl = (params?: ListExtractsParams) => {\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/extracts?${stringifiedParams}`\n : `/v1/extracts`;\n};\n\nexport const listExtracts = async (\n params?: ListExtractsParams,\n options?: RequestInit\n): Promise<ExtractList> => {\n return customFetch<ExtractList>(getListExtractsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractsKey = (params?: ListExtractsParams) =>\n [`/v1/extracts`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtracts>>\n>;\n\n/**\n * @summary List extracts\n */\nexport const useListExtracts = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listExtracts>>, 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 ? getListExtractsKey(params) : null));\n const swrFn = () => listExtracts(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 */\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 ErrorResponse,\n ListJobsParams,\n OutboundJob,\n OutboundJobList,\n ScheduleJobBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Schedule a new outbound call job for an agent.\n\nThe job can be scheduled for a future time or triggered immediately with `trigger_immediately: true`.\n\n**Scheduling:**\n\nWhen scheduling for a future time, provide `scheduled_at` (ISO 8601) and optionally `schedule_window_minutes` (minimum 10 minutes).\n * @summary Schedule an outbound job\n */\nexport const getScheduleJobUrl = (id: string) => {\n return `/v1/agents/${id}/jobs`;\n};\n\nexport const scheduleJob = async (\n id: string,\n scheduleJobBody: ScheduleJobBody,\n options?: RequestInit\n): Promise<OutboundJob> => {\n return customFetch<OutboundJob>(getScheduleJobUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(scheduleJobBody),\n });\n};\n\nexport const getScheduleJobMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ScheduleJobBody }) => {\n return scheduleJob(id, arg, options);\n };\n};\nexport const getScheduleJobMutationKey = (id: string) =>\n [`/v1/agents/${id}/jobs`] as const;\n\nexport type ScheduleJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof scheduleJob>>\n>;\n\n/**\n * @summary Schedule an outbound job\n */\nexport const useScheduleJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof scheduleJob>>,\n TError,\n Key,\n ScheduleJobBody,\n Awaited<ReturnType<typeof scheduleJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getScheduleJobMutationKey(id);\n const swrFn = getScheduleJobMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all outbound jobs with pagination and filtering.\n\n**Filtering:**\n\n- Filter by agent ID, status, or scheduled time range.\n- Multiple statuses can be comma-separated (e.g. `status=pending,queued`).\n * @summary List outbound jobs\n */\nexport const getListJobsUrl = (params: ListJobsParams) => {\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/jobs?${stringifiedParams}`\n : `/v1/agents/jobs`;\n};\n\nexport const listJobs = async (\n params: ListJobsParams,\n options?: RequestInit\n): Promise<OutboundJobList> => {\n return customFetch<OutboundJobList>(getListJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListJobsKey = (params: ListJobsParams) =>\n [`/v1/agents/jobs`, ...(params ? [params] : [])] as const;\n\nexport type ListJobsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listJobs>>\n>;\n\n/**\n * @summary List outbound jobs\n */\nexport const useListJobs = <TError = ErrorType<ErrorResponse>>(\n params: ListJobsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listJobs>>, 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 ? getListJobsKey(params) : null));\n const swrFn = () => listJobs(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 * Cancel a pending or queued outbound job. Jobs that are already in progress or completed cannot be canceled.\n * @summary Cancel an outbound job\n */\nexport const getCancelJobUrl = (id: string) => {\n return `/v1/agents/jobs/${id}/cancel`;\n};\n\nexport const cancelJob = async (\n id: string,\n options?: RequestInit\n): Promise<OutboundJob> => {\n return customFetch<OutboundJob>(getCancelJobUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCancelJobMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelJob(id, options);\n };\n};\nexport const getCancelJobMutationKey = (id: string) =>\n [`/v1/agents/jobs/${id}/cancel`] as const;\n\nexport type CancelJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof cancelJob>>\n>;\n\n/**\n * @summary Cancel an outbound job\n */\nexport const useCancelJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof cancelJob>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof cancelJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCancelJobMutationKey(id);\n const swrFn = getCancelJobMutationFetcher(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 type { ErrorResponse, Profile } from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve the current user's profile information.\n * @summary Get profile\n */\nexport const getGetProfileUrl = () => {\n return `/v1/profile`;\n};\n\nexport const getProfile = async (options?: RequestInit): Promise<Profile> => {\n return customFetch<Profile>(getGetProfileUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetProfileKey = () => [`/v1/profile`] as const;\n\nexport type GetProfileQueryResult = NonNullable<\n Awaited<ReturnType<typeof getProfile>>\n>;\n\n/**\n * @summary Get profile\n */\nexport const useGetProfile = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getProfile>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetProfileKey() : null));\n const swrFn = () => getProfile(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 { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CodeToolCreated,\n CodeToolUpdated,\n CreateToolBody,\n ErrorResponse,\n ExecuteCodeBody,\n GetToolResponse,\n ListToolsParams,\n ToolExecutionResult,\n ToolList,\n UpdateToolBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new code tool that can be attached to agents. Provide the tool's name, code, description, and optionally an API key.\n * @summary Create tool\n */\nexport const getCreateToolUrl = () => {\n return `/v1/tools`;\n};\n\nexport const createTool = async (\n createToolBody: CreateToolBody,\n options?: RequestInit\n): Promise<CodeToolCreated> => {\n return customFetch<CodeToolCreated>(getCreateToolUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createToolBody),\n });\n};\n\nexport const getCreateToolMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateToolBody }) => {\n return createTool(arg, options);\n };\n};\nexport const getCreateToolMutationKey = () => [`/v1/tools`] as const;\n\nexport type CreateToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof createTool>>\n>;\n\n/**\n * @summary Create tool\n */\nexport const useCreateTool = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createTool>>,\n TError,\n Key,\n CreateToolBody,\n Awaited<ReturnType<typeof createTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateToolMutationKey();\n const swrFn = getCreateToolMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all code tools with sorting.\n\nOptionally filter by `call_agent_id` to list only tools attached to a specific agent.\n * @summary List tools\n */\nexport const getListToolsUrl = (params?: ListToolsParams) => {\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/tools?${stringifiedParams}`\n : `/v1/tools`;\n};\n\nexport const listTools = async (\n params?: ListToolsParams,\n options?: RequestInit\n): Promise<ToolList> => {\n return customFetch<ToolList>(getListToolsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListToolsKey = (params?: ListToolsParams) =>\n [`/v1/tools`, ...(params ? [params] : [])] as const;\n\nexport type ListToolsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listTools>>\n>;\n\n/**\n * @summary List tools\n */\nexport const useListTools = <TError = ErrorType<ErrorResponse>>(\n params?: ListToolsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listTools>>, 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 ? getListToolsKey(params) : null));\n const swrFn = () => listTools(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 * Execute a code tool with the given parameters. Returns the result, any errors, and execution traces.\n * @summary Execute tool\n */\nexport const getExecuteCodeUrl = (id: string) => {\n return `/v1/tools/${id}/execute`;\n};\n\nexport const executeCode = async (\n id: string,\n executeCodeBody: ExecuteCodeBody,\n options?: RequestInit\n): Promise<ToolExecutionResult> => {\n return customFetch<ToolExecutionResult>(getExecuteCodeUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(executeCodeBody),\n });\n};\n\nexport const getExecuteCodeMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ExecuteCodeBody }) => {\n return executeCode(id, arg, options);\n };\n};\nexport const getExecuteCodeMutationKey = (id: string) =>\n [`/v1/tools/${id}/execute`] as const;\n\nexport type ExecuteCodeMutationResult = NonNullable<\n Awaited<ReturnType<typeof executeCode>>\n>;\n\n/**\n * @summary Execute tool\n */\nexport const useExecuteCode = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof executeCode>>,\n TError,\n Key,\n ExecuteCodeBody,\n Awaited<ReturnType<typeof executeCode>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getExecuteCodeMutationKey(id);\n const swrFn = getExecuteCodeMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single tool by ID, including its code, schema, and description.\n * @summary Get tool\n */\nexport const getGetToolUrl = (id: string) => {\n return `/v1/tools/${id}`;\n};\n\nexport const getTool = async (\n id: string,\n options?: RequestInit\n): Promise<GetToolResponse> => {\n return customFetch<GetToolResponse>(getGetToolUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetToolKey = (id: string) => [`/v1/tools/${id}`] as const;\n\nexport type GetToolQueryResult = NonNullable<\n Awaited<ReturnType<typeof getTool>>\n>;\n\n/**\n * @summary Get tool\n */\nexport const useGetTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getTool>>, 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 ? getGetToolKey(id) : null));\n const swrFn = () => getTool(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 * Update a code tool's name, description, code, or API key. All fields are optional — only provided fields are updated.\n * @summary Update tool\n */\nexport const getUpdateToolUrl = (id: string) => {\n return `/v1/tools/${id}`;\n};\n\nexport const updateTool = async (\n id: string,\n updateToolBody: UpdateToolBody,\n options?: RequestInit\n): Promise<CodeToolUpdated> => {\n return customFetch<CodeToolUpdated>(getUpdateToolUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateToolBody),\n });\n};\n\nexport const getUpdateToolMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateToolBody }) => {\n return updateTool(id, arg, options);\n };\n};\nexport const getUpdateToolMutationKey = (id: string) =>\n [`/v1/tools/${id}`] as const;\n\nexport type UpdateToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateTool>>\n>;\n\n/**\n * @summary Update tool\n */\nexport const useUpdateTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateTool>>,\n TError,\n Key,\n UpdateToolBody,\n Awaited<ReturnType<typeof updateTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateToolMutationKey(id);\n const swrFn = getUpdateToolMutationFetcher(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n AgentWebhookList,\n CreateAgentWebhookBody,\n CreateEmailAgentWebhookBody,\n CreateExtractorWebhookBody,\n DeleteWebhookResponse,\n EmailAgentWebhookList,\n ErrorResponse,\n ExtractorWebhookList,\n ListWebhookDeliveriesParams,\n Webhook,\n WebhookDeliveryList,\n WebhookTestResult,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a webhook that fires when events occur for the specified call agent.\n * @summary Create agent webhook\n */\nexport const getCreateAgentWebhookUrl = (id: string) => {\n return `/v1/agents/${id}/webhooks`;\n};\n\nexport const createAgentWebhook = async (\n id: string,\n createAgentWebhookBody: CreateAgentWebhookBody,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getCreateAgentWebhookUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentWebhookBody),\n });\n};\n\nexport const getCreateAgentWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentWebhookBody }) => {\n return createAgentWebhook(id, arg, options);\n };\n};\nexport const getCreateAgentWebhookMutationKey = (id: string) =>\n [`/v1/agents/${id}/webhooks`] as const;\n\nexport type CreateAgentWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgentWebhook>>\n>;\n\n/**\n * @summary Create agent webhook\n */\nexport const useCreateAgentWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createAgentWebhook>>,\n TError,\n Key,\n CreateAgentWebhookBody,\n Awaited<ReturnType<typeof createAgentWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateAgentWebhookMutationKey(id);\n const swrFn = getCreateAgentWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all webhooks configured for a specific call agent.\n * @summary List agent webhooks\n */\nexport const getListAgentWebhooksUrl = (id: string) => {\n return `/v1/agents/${id}/webhooks`;\n};\n\nexport const listAgentWebhooks = async (\n id: string,\n options?: RequestInit\n): Promise<AgentWebhookList> => {\n return customFetch<AgentWebhookList>(getListAgentWebhooksUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListAgentWebhooksKey = (id: string) =>\n [`/v1/agents/${id}/webhooks`] as const;\n\nexport type ListAgentWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgentWebhooks>>\n>;\n\n/**\n * @summary List agent webhooks\n */\nexport const useListAgentWebhooks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listAgentWebhooks>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListAgentWebhooksKey(id) : null));\n const swrFn = () => listAgentWebhooks(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 * Create a webhook that fires when events occur for the specified email agent.\n * @summary Create email agent webhook\n */\nexport const getCreateEmailAgentWebhookUrl = (id: string) => {\n return `/v1/email-agents/${id}/webhooks`;\n};\n\nexport const createEmailAgentWebhook = async (\n id: string,\n createEmailAgentWebhookBody: CreateEmailAgentWebhookBody,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getCreateEmailAgentWebhookUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createEmailAgentWebhookBody),\n });\n};\n\nexport const getCreateEmailAgentWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateEmailAgentWebhookBody }) => {\n return createEmailAgentWebhook(id, arg, options);\n };\n};\nexport const getCreateEmailAgentWebhookMutationKey = (id: string) =>\n [`/v1/email-agents/${id}/webhooks`] as const;\n\nexport type CreateEmailAgentWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createEmailAgentWebhook>>\n>;\n\n/**\n * @summary Create email agent webhook\n */\nexport const useCreateEmailAgentWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createEmailAgentWebhook>>,\n TError,\n Key,\n CreateEmailAgentWebhookBody,\n Awaited<ReturnType<typeof createEmailAgentWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCreateEmailAgentWebhookMutationKey(id);\n const swrFn = getCreateEmailAgentWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all webhooks configured for a specific email agent.\n * @summary List email agent webhooks\n */\nexport const getListEmailAgentWebhooksUrl = (id: string) => {\n return `/v1/email-agents/${id}/webhooks`;\n};\n\nexport const listEmailAgentWebhooks = async (\n id: string,\n options?: RequestInit\n): Promise<EmailAgentWebhookList> => {\n return customFetch<EmailAgentWebhookList>(getListEmailAgentWebhooksUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailAgentWebhooksKey = (id: string) =>\n [`/v1/email-agents/${id}/webhooks`] as const;\n\nexport type ListEmailAgentWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmailAgentWebhooks>>\n>;\n\n/**\n * @summary List email agent webhooks\n */\nexport const useListEmailAgentWebhooks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listEmailAgentWebhooks>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListEmailAgentWebhooksKey(id) : null));\n const swrFn = () => listEmailAgentWebhooks(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 * Create a webhook that fires when extraction events occur for the specified extractor.\n * @summary Create extractor webhook\n */\nexport const getCreateExtractorWebhookUrl = (id: string) => {\n return `/v1/extractors/${id}/webhooks`;\n};\n\nexport const createExtractorWebhook = async (\n id: string,\n createExtractorWebhookBody: CreateExtractorWebhookBody,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getCreateExtractorWebhookUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorWebhookBody),\n });\n};\n\nexport const getCreateExtractorWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateExtractorWebhookBody }) => {\n return createExtractorWebhook(id, arg, options);\n };\n};\nexport const getCreateExtractorWebhookMutationKey = (id: string) =>\n [`/v1/extractors/${id}/webhooks`] as const;\n\nexport type CreateExtractorWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createExtractorWebhook>>\n>;\n\n/**\n * @summary Create extractor webhook\n */\nexport const useCreateExtractorWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createExtractorWebhook>>,\n TError,\n Key,\n CreateExtractorWebhookBody,\n Awaited<ReturnType<typeof createExtractorWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateExtractorWebhookMutationKey(id);\n const swrFn = getCreateExtractorWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all webhooks configured for a specific extractor.\n * @summary List extractor webhooks\n */\nexport const getListWebhooksUrl = (id: string) => {\n return `/v1/extractors/${id}/webhooks`;\n};\n\nexport const listWebhooks = async (\n id: string,\n options?: RequestInit\n): Promise<ExtractorWebhookList> => {\n return customFetch<ExtractorWebhookList>(getListWebhooksUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWebhooksKey = (id: string) =>\n [`/v1/extractors/${id}/webhooks`] as const;\n\nexport type ListWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWebhooks>>\n>;\n\n/**\n * @summary List extractor webhooks\n */\nexport const useListWebhooks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listWebhooks>>, 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 ? getListWebhooksKey(id) : null));\n const swrFn = () => listWebhooks(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 * Permanently delete a webhook. This action is irreversible.\n * @summary Delete webhook\n */\nexport const getDeleteWebhookUrl = (id: string) => {\n return `/v1/webhooks/${id}`;\n};\n\nexport const deleteWebhook = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteWebhookResponse> => {\n return customFetch<DeleteWebhookResponse>(getDeleteWebhookUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteWebhook(id, options);\n };\n};\nexport const getDeleteWebhookMutationKey = (id: string) =>\n [`/v1/webhooks/${id}`] as const;\n\nexport type DeleteWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteWebhook>>\n>;\n\n/**\n * @summary Delete webhook\n */\nexport const useDeleteWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteWebhook>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteWebhookMutationKey(id);\n const swrFn = getDeleteWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single webhook by ID. The authentication header value is never exposed — only `has_auth` indicates whether authentication is configured.\n * @summary Get webhook\n */\nexport const getGetWebhookUrl = (id: string) => {\n return `/v1/webhooks/${id}`;\n};\n\nexport const getWebhook = async (\n id: string,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getGetWebhookUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetWebhookKey = (id: string) => [`/v1/webhooks/${id}`] as const;\n\nexport type GetWebhookQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWebhook>>\n>;\n\n/**\n * @summary Get webhook\n */\nexport const useGetWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getWebhook>>, 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 ? getGetWebhookKey(id) : null));\n const swrFn = () => getWebhook(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 * List delivery attempts for a specific webhook, with pagination and sorting. Useful for debugging webhook issues.\n * @summary List webhook deliveries\n */\nexport const getListWebhookDeliveriesUrl = (\n id: string,\n params?: ListWebhookDeliveriesParams\n) => {\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/webhooks/${id}/deliveries?${stringifiedParams}`\n : `/v1/webhooks/${id}/deliveries`;\n};\n\nexport const listWebhookDeliveries = async (\n id: string,\n params?: ListWebhookDeliveriesParams,\n options?: RequestInit\n): Promise<WebhookDeliveryList> => {\n return customFetch<WebhookDeliveryList>(\n getListWebhookDeliveriesUrl(id, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWebhookDeliveriesKey = (\n id: string,\n params?: ListWebhookDeliveriesParams\n) => [`/v1/webhooks/${id}/deliveries`, ...(params ? [params] : [])] as const;\n\nexport type ListWebhookDeliveriesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWebhookDeliveries>>\n>;\n\n/**\n * @summary List webhook deliveries\n */\nexport const useListWebhookDeliveries = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: ListWebhookDeliveriesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWebhookDeliveries>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListWebhookDeliveriesKey(id, params) : null));\n const swrFn = () => listWebhookDeliveries(id, 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 * Send a test event to a webhook endpoint. Returns the HTTP status code, response time, and any errors.\n * @summary Test webhook\n */\nexport const getTestWebhookUrl = (id: string) => {\n return `/v1/webhooks/${id}/test`;\n};\n\nexport const testWebhook = async (\n id: string,\n options?: RequestInit\n): Promise<WebhookTestResult> => {\n return customFetch<WebhookTestResult>(getTestWebhookUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getTestWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return testWebhook(id, options);\n };\n};\nexport const getTestWebhookMutationKey = (id: string) =>\n [`/v1/webhooks/${id}/test`] as const;\n\nexport type TestWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof testWebhook>>\n>;\n\n/**\n * @summary Test webhook\n */\nexport const useTestWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof testWebhook>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof testWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getTestWebhookMutationKey(id);\n const swrFn = getTestWebhookMutationFetcher(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 */\n\nexport type AgentBackgroundSounds =\n (typeof AgentBackgroundSounds)[keyof typeof AgentBackgroundSounds];\n\nexport const AgentBackgroundSounds = {\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 AgentDirection =\n (typeof AgentDirection)[keyof typeof AgentDirection];\n\nexport const AgentDirection = {\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 AgentLanguage = (typeof AgentLanguage)[keyof typeof AgentLanguage];\n\nexport const AgentLanguage = {\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 AgentLlmModel = (typeof AgentLlmModel)[keyof typeof AgentLlmModel];\n\nexport const AgentLlmModel = {\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 \"CLAUDE-sonnet-46\": \"CLAUDE-sonnet-4.6\",\n \"CLAUDE-haiku-45\": \"CLAUDE-haiku-4.5\",\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 AgentSttModel = (typeof AgentSttModel)[keyof typeof AgentSttModel];\n\nexport const AgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n \"ELEVENLABS-SCRIBE-V2-REALTIME\": \"ELEVENLABS-SCRIBE-V2-REALTIME\",\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 AgentTtsModel = (typeof AgentTtsModel)[keyof typeof AgentTtsModel];\n\nexport const AgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\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 AgentTtsProvider =\n (typeof AgentTtsProvider)[keyof typeof AgentTtsProvider];\n\nexport const AgentTtsProvider = {\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 CallDetailDirection =\n (typeof CallDetailDirection)[keyof typeof CallDetailDirection];\n\nexport const CallDetailDirection = {\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 CallDirection = (typeof CallDirection)[keyof typeof CallDirection];\n\nexport const CallDirection = {\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\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 \"CLAUDE-sonnet-46\": \"CLAUDE-sonnet-4.6\",\n \"CLAUDE-haiku-45\": \"CLAUDE-haiku-4.5\",\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 \"ELEVENLABS-SCRIBE-V2-REALTIME\": \"ELEVENLABS-SCRIBE-V2-REALTIME\",\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-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 CreateEmailBodyDirection =\n (typeof CreateEmailBodyDirection)[keyof typeof CreateEmailBodyDirection];\n\nexport const CreateEmailBodyDirection = {\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 CreateExtractorJobBodyExtractorType =\n (typeof CreateExtractorJobBodyExtractorType)[keyof typeof CreateExtractorJobBodyExtractorType];\n\nexport const CreateExtractorJobBodyExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\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 EmailCreatedDirection =\n (typeof EmailCreatedDirection)[keyof typeof EmailCreatedDirection];\n\nexport const EmailCreatedDirection = {\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 EmailDetailDirection =\n (typeof EmailDetailDirection)[keyof typeof EmailDetailDirection];\n\nexport const EmailDetailDirection = {\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 EmailDirection =\n (typeof EmailDirection)[keyof typeof EmailDirection];\n\nexport const EmailDirection = {\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\n/**\n * Type of extractor\n */\nexport type ExtractorJobExtractorType =\n (typeof ExtractorJobExtractorType)[keyof typeof ExtractorJobExtractorType];\n\nexport const ExtractorJobExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\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 GetOAuthUrlCodeChallengeMethod =\n (typeof GetOAuthUrlCodeChallengeMethod)[keyof typeof GetOAuthUrlCodeChallengeMethod];\n\nexport const GetOAuthUrlCodeChallengeMethod = {\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 GetOAuthUrlProvider =\n (typeof GetOAuthUrlProvider)[keyof typeof GetOAuthUrlProvider];\n\nexport const GetOAuthUrlProvider = {\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 ListApiKeysIncludeRevoked =\n (typeof ListApiKeysIncludeRevoked)[keyof typeof ListApiKeysIncludeRevoked];\n\nexport const ListApiKeysIncludeRevoked = {\n true: \"true\",\n false: \"false\",\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 ListArtifactsSortBy =\n (typeof ListArtifactsSortBy)[keyof typeof ListArtifactsSortBy];\n\nexport const ListArtifactsSortBy = {\n created_at: \"created_at\",\n updated_at: \"updated_at\",\n document_name: \"document_name\",\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 ListArtifactsSortOrder =\n (typeof ListArtifactsSortOrder)[keyof typeof ListArtifactsSortOrder];\n\nexport const ListArtifactsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListCallFeedbackSortBy =\n (typeof ListCallFeedbackSortBy)[keyof typeof ListCallFeedbackSortBy];\n\nexport const ListCallFeedbackSortBy = {\n created_at: \"created_at\",\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 ListCallFeedbackSortOrder =\n (typeof ListCallFeedbackSortOrder)[keyof typeof ListCallFeedbackSortOrder];\n\nexport const ListCallFeedbackSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListCallsDirection =\n (typeof ListCallsDirection)[keyof typeof ListCallsDirection];\n\nexport const ListCallsDirection = {\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 ListCallsSortBy =\n (typeof ListCallsSortBy)[keyof typeof ListCallsSortBy];\n\nexport const ListCallsSortBy = {\n started_at: \"started_at\",\n ended_at: \"ended_at\",\n created_at: \"created_at\",\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 ListCallsSortOrder =\n (typeof ListCallsSortOrder)[keyof typeof ListCallsSortOrder];\n\nexport const ListCallsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListCallsStatus =\n (typeof ListCallsStatus)[keyof typeof ListCallsStatus];\n\nexport const ListCallsStatus = {\n COMPLETED: \"COMPLETED\",\n TRANSFERRED: \"TRANSFERRED\",\n DISCONNECTED: \"DISCONNECTED\",\n UNEXPECTED_SHUTDOWN: \"UNEXPECTED_SHUTDOWN\",\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 ListClaimsSortBy =\n (typeof ListClaimsSortBy)[keyof typeof ListClaimsSortBy];\n\nexport const ListClaimsSortBy = {\n created_at: \"created_at\",\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 ListClaimsSortOrder =\n (typeof ListClaimsSortOrder)[keyof typeof ListClaimsSortOrder];\n\nexport const ListClaimsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListEmailAgentsSortBy =\n (typeof ListEmailAgentsSortBy)[keyof typeof ListEmailAgentsSortBy];\n\nexport const ListEmailAgentsSortBy = {\n created_at: \"created_at\",\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 ListEmailAgentsSortOrder =\n (typeof ListEmailAgentsSortOrder)[keyof typeof ListEmailAgentsSortOrder];\n\nexport const ListEmailAgentsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListEmailsSortBy =\n (typeof ListEmailsSortBy)[keyof typeof ListEmailsSortBy];\n\nexport const ListEmailsSortBy = {\n created_at: \"created_at\",\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 ListEmailsSortOrder =\n (typeof ListEmailsSortOrder)[keyof typeof ListEmailsSortOrder];\n\nexport const ListEmailsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListExtractorJobsExtractorType =\n (typeof ListExtractorJobsExtractorType)[keyof typeof ListExtractorJobsExtractorType];\n\nexport const ListExtractorJobsExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\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 ListExtractorJobsSortBy =\n (typeof ListExtractorJobsSortBy)[keyof typeof ListExtractorJobsSortBy];\n\nexport const ListExtractorJobsSortBy = {\n created_at: \"created_at\",\n started_at: \"started_at\",\n completed_at: \"completed_at\",\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 ListExtractorJobsSortOrder =\n (typeof ListExtractorJobsSortOrder)[keyof typeof ListExtractorJobsSortOrder];\n\nexport const ListExtractorJobsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListExtractorJobsStatus =\n (typeof ListExtractorJobsStatus)[keyof typeof ListExtractorJobsStatus];\n\nexport const ListExtractorJobsStatus = {\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n failed: \"failed\",\n canceled: \"canceled\",\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 ListExtractorsSortBy =\n (typeof ListExtractorsSortBy)[keyof typeof ListExtractorsSortBy];\n\nexport const ListExtractorsSortBy = {\n created_at: \"created_at\",\n name: \"name\",\n version: \"version\",\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 ListExtractorsSortOrder =\n (typeof ListExtractorsSortOrder)[keyof typeof ListExtractorsSortOrder];\n\nexport const ListExtractorsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListExtractsSortBy =\n (typeof ListExtractsSortBy)[keyof typeof ListExtractsSortBy];\n\nexport const ListExtractsSortBy = {\n created_at: \"created_at\",\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 ListExtractsSortOrder =\n (typeof ListExtractsSortOrder)[keyof typeof ListExtractsSortOrder];\n\nexport const ListExtractsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListJobsStatusItem =\n (typeof ListJobsStatusItem)[keyof typeof ListJobsStatusItem];\n\nexport const ListJobsStatusItem = {\n pending: \"pending\",\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n canceled: \"canceled\",\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 ListToolsSortBy =\n (typeof ListToolsSortBy)[keyof typeof ListToolsSortBy];\n\nexport const ListToolsSortBy = {\n created_at: \"created_at\",\n updated_at: \"updated_at\",\n name: \"name\",\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 ListToolsSortOrder =\n (typeof ListToolsSortOrder)[keyof typeof ListToolsSortOrder];\n\nexport const ListToolsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListWebhookDeliveriesSortOrder =\n (typeof ListWebhookDeliveriesSortOrder)[keyof typeof ListWebhookDeliveriesSortOrder];\n\nexport const ListWebhookDeliveriesSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 OutboundJobStatus =\n (typeof OutboundJobStatus)[keyof typeof OutboundJobStatus];\n\nexport const OutboundJobStatus = {\n pending: \"pending\",\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n canceled: \"canceled\",\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 UpdateAgentModelsBodyLanguage =\n (typeof UpdateAgentModelsBodyLanguage)[keyof typeof UpdateAgentModelsBodyLanguage];\n\nexport const UpdateAgentModelsBodyLanguage = {\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 UpdateAgentModelsBodyLlmModel =\n (typeof UpdateAgentModelsBodyLlmModel)[keyof typeof UpdateAgentModelsBodyLlmModel];\n\nexport const UpdateAgentModelsBodyLlmModel = {\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 \"CLAUDE-sonnet-46\": \"CLAUDE-sonnet-4.6\",\n \"CLAUDE-haiku-45\": \"CLAUDE-haiku-4.5\",\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 UpdateAgentModelsBodySttModel =\n (typeof UpdateAgentModelsBodySttModel)[keyof typeof UpdateAgentModelsBodySttModel];\n\nexport const UpdateAgentModelsBodySttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n \"ELEVENLABS-SCRIBE-V2-REALTIME\": \"ELEVENLABS-SCRIBE-V2-REALTIME\",\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 UpdateAgentModelsBodyTtsModel =\n (typeof UpdateAgentModelsBodyTtsModel)[keyof typeof UpdateAgentModelsBodyTtsModel];\n\nexport const UpdateAgentModelsBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\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 UpdateAgentModelsBodyTtsProvider =\n (typeof UpdateAgentModelsBodyTtsProvider)[keyof typeof UpdateAgentModelsBodyTtsProvider];\n\nexport const UpdateAgentModelsBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n"]}
1
+ {"version":3,"sources":["../src/fetcher.ts","../src/auth.ts","../generated/endpoints/agents/agents.ts","../generated/endpoints/api-keys/api-keys.ts","../generated/endpoints/artifacts/artifacts.ts","../generated/endpoints/auth/auth.ts","../generated/endpoints/call-feedback/call-feedback.ts","../generated/endpoints/calls/calls.ts","../generated/endpoints/claims/claims.ts","../generated/endpoints/email-agents/email-agents.ts","../generated/endpoints/emails/emails.ts","../generated/endpoints/extraction-jobs/extraction-jobs.ts","../generated/endpoints/extractors/extractors.ts","../generated/endpoints/extracts/extracts.ts","../generated/endpoints/jobs/jobs.ts","../generated/endpoints/profiles/profiles.ts","../generated/endpoints/tools/tools.ts","../generated/endpoints/webhooks/webhooks.ts","../generated/models/agentBackgroundSounds.ts","../generated/models/agentDirection.ts","../generated/models/agentLanguage.ts","../generated/models/agentLlmModel.ts","../generated/models/agentSttModel.ts","../generated/models/agentTtsModel.ts","../generated/models/agentTtsProvider.ts","../generated/models/callDetailDirection.ts","../generated/models/callDirection.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/createEmailBodyDirection.ts","../generated/models/createExtractorJobBodyExtractorType.ts","../generated/models/emailCreatedDirection.ts","../generated/models/emailDetailDirection.ts","../generated/models/emailDirection.ts","../generated/models/extractorJobExtractorType.ts","../generated/models/getOAuthUrlCodeChallengeMethod.ts","../generated/models/getOAuthUrlProvider.ts","../generated/models/listApiKeysIncludeRevoked.ts","../generated/models/listArtifactsSortBy.ts","../generated/models/listArtifactsSortOrder.ts","../generated/models/listCallFeedbackSortBy.ts","../generated/models/listCallFeedbackSortOrder.ts","../generated/models/listCallsDirection.ts","../generated/models/listCallsSortBy.ts","../generated/models/listCallsSortOrder.ts","../generated/models/listCallsStatus.ts","../generated/models/listClaimsSortBy.ts","../generated/models/listClaimsSortOrder.ts","../generated/models/listEmailAgentsSortBy.ts","../generated/models/listEmailAgentsSortOrder.ts","../generated/models/listEmailsSortBy.ts","../generated/models/listEmailsSortOrder.ts","../generated/models/listExtractorJobsExtractorType.ts","../generated/models/listExtractorJobsSortBy.ts","../generated/models/listExtractorJobsSortOrder.ts","../generated/models/listExtractorJobsStatus.ts","../generated/models/listExtractorsSortBy.ts","../generated/models/listExtractorsSortOrder.ts","../generated/models/listExtractsSortBy.ts","../generated/models/listExtractsSortOrder.ts","../generated/models/listJobsStatusItem.ts","../generated/models/listToolsSortBy.ts","../generated/models/listToolsSortOrder.ts","../generated/models/listWebhookDeliveriesSortOrder.ts","../generated/models/outboundJobStatus.ts","../generated/models/updateAgentModelsBodyLanguage.ts","../generated/models/updateAgentModelsBodyLlmModel.ts","../generated/models/updateAgentModelsBodySttModel.ts","../generated/models/updateAgentModelsBodyTtsModel.ts","../generated/models/updateAgentModelsBodyTtsProvider.ts"],"names":["useSwr","useSWRMutation"],"mappings":";;;;AAUA,IAAI,MAAA,GAAwB;AAAA,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,EAC/B,OAAA,EAAS,SAAA;AAAA,EACT,MAAA,EAAQ,QAAA;AAAA,EACR,WAAA,EAAa,aAAA;AAAA,EACb,SAAA,EAAW,WAAA;AAAA,EACX,QAAA,EAAU;AACZ;;;ACNO,IAAM,6BAAA,GAAgC;AAAA,EAC3C,OAAA,EAAS,OAAA;AAAA,EACT,OAAA,EAAS;AACX;;;ACHO,IAAM,6BAAA,GAAgC;AAAA,EAC3C,KAAA,EAAO,QAAA;AAAA,EACP,aAAA,EAAe,aAAA;AAAA,EACf,aAAA,EAAe,cAAA;AAAA,EACf,OAAA,EAAS,OAAA;AAAA,EACT,WAAA,EAAa,WAAA;AAAA,EACb,YAAA,EAAc,YAAA;AAAA,EACd,oBAAA,EAAsB,qBAAA;AAAA,EACtB,qBAAA,EAAuB,sBAAA;AAAA,EACvB,iBAAA,EAAmB,kBAAA;AAAA,EACnB,iBAAA,EAAmB,kBAAA;AAAA,EACnB,sBAAA,EAAwB,uBAAA;AAAA,EACxB,gBAAA,EAAkB,gBAAA;AAAA,EAClB,kBAAA,EAAoB,mBAAA;AAAA,EACpB,iBAAA,EAAmB;AACrB;;;ACfO,IAAM,6BAAA,GAAgC;AAAA,EAC3C,yBAAA,EAA2B,yBAAA;AAAA,EAC3B,yBAAA,EAA2B,yBAAA;AAAA,EAC3B,gBAAA,EAAkB,gBAAA;AAAA,EAClB,+BAAA,EAAiC;AACnC;;;ACLO,IAAM,6BAAA,GAAgC;AAAA,EAC3C,iBAAA,EAAmB,mBAAA;AAAA,EACnB,iBAAA,EAAmB,mBAAA;AAAA,EACnB,SAAA,EAAW,SAAA;AAAA,EACX,OAAA,EAAS;AACX;;;ACLO,IAAM,gCAAA,GAAmC;AAAA,EAC9C,UAAA,EAAY,YAAA;AAAA,EACZ,QAAA,EAAU,UAAA;AAAA,EACV,MAAA,EAAQ;AACV","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 // Strip the API envelope ({ data, message }) — return payload directly\n return ((body as Record<string, unknown>)?.data ?? body) 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// Errors\n// --------------------------------------------------------------------------\n\n/** Orval uses this to type the `error` field in SWR hooks as AvallonError */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ErrorType<E> = AvallonError;\n\n/** Typed error class for API errors. Thrown by customFetch on non-2xx responses. */\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 AddToolsToAgentBody,\n AddToolsToAgentResponse,\n AgentList,\n AgentPrompt,\n CreateAgentBody,\n CreateAgentResponse,\n DeleteToolsFromAgentBody,\n DeleteToolsFromAgentResponse,\n ErrorResponse,\n GetAgentResponse,\n ListAgentsParams,\n UpdateAgentModelsBody,\n UpdateAgentModelsResponse,\n UpdateCallControlsBody,\n UpdateCallControlsResponse,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } 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 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<AgentList> => {\n return customFetch<AgentList>(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 = ErrorType<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 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 = ErrorType<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 its ID.\n * @summary Get agent\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 = ErrorType<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 * Add one or more tools to an agent by their IDs.\n * @summary Add tools to agent\n */\nexport const getAddToolsToAgentUrl = (id: string) => {\n return `/v1/agents/${id}/tools`;\n};\n\nexport const addToolsToAgent = async (\n id: string,\n addToolsToAgentBody: AddToolsToAgentBody,\n options?: RequestInit\n): Promise<AddToolsToAgentResponse> => {\n return customFetch<AddToolsToAgentResponse>(getAddToolsToAgentUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(addToolsToAgentBody),\n });\n};\n\nexport const getAddToolsToAgentMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: AddToolsToAgentBody }) => {\n return addToolsToAgent(id, arg, options);\n };\n};\nexport const getAddToolsToAgentMutationKey = (id: string) =>\n [`/v1/agents/${id}/tools`] as const;\n\nexport type AddToolsToAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof addToolsToAgent>>\n>;\n\n/**\n * @summary Add tools to agent\n */\nexport const useAddToolsToAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof addToolsToAgent>>,\n TError,\n Key,\n AddToolsToAgentBody,\n Awaited<ReturnType<typeof addToolsToAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getAddToolsToAgentMutationKey(id);\n const swrFn = getAddToolsToAgentMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Remove one or more tools from an agent by their IDs.\n * @summary Remove tools from agent\n */\nexport const getDeleteToolsFromAgentUrl = (id: string) => {\n return `/v1/agents/${id}/tools`;\n};\n\nexport const deleteToolsFromAgent = async (\n id: string,\n deleteToolsFromAgentBody: DeleteToolsFromAgentBody,\n options?: RequestInit\n): Promise<DeleteToolsFromAgentResponse> => {\n return customFetch<DeleteToolsFromAgentResponse>(\n getDeleteToolsFromAgentUrl(id),\n {\n ...options,\n method: \"DELETE\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(deleteToolsFromAgentBody),\n }\n );\n};\n\nexport const getDeleteToolsFromAgentMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: DeleteToolsFromAgentBody }) => {\n return deleteToolsFromAgent(id, arg, options);\n };\n};\nexport const getDeleteToolsFromAgentMutationKey = (id: string) =>\n [`/v1/agents/${id}/tools`] as const;\n\nexport type DeleteToolsFromAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteToolsFromAgent>>\n>;\n\n/**\n * @summary Remove tools from agent\n */\nexport const useDeleteToolsFromAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteToolsFromAgent>>,\n TError,\n Key,\n DeleteToolsFromAgentBody,\n Awaited<ReturnType<typeof deleteToolsFromAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteToolsFromAgentMutationKey(id);\n const swrFn = getDeleteToolsFromAgentMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the available placeholder variables for an agent.\n * @summary Get agent prompt\n */\nexport const getGetAgentPromptUrl = (id: string) => {\n return `/v1/agents/${id}/prompt`;\n};\n\nexport const getAgentPrompt = async (\n id: string,\n options?: RequestInit\n): Promise<AgentPrompt> => {\n return customFetch<AgentPrompt>(getGetAgentPromptUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetAgentPromptKey = (id: string) =>\n [`/v1/agents/${id}/prompt`] as const;\n\nexport type GetAgentPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAgentPrompt>>\n>;\n\n/**\n * @summary Get agent prompt\n */\nexport const useGetAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getAgentPrompt>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetAgentPromptKey(id) : null));\n const swrFn = () => getAgentPrompt(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 * Update the LLM, TTS, and STT model configuration for an agent.\n * @summary Update agent models\n */\nexport const getUpdateAgentModelsUrl = (id: string) => {\n return `/v1/agents/${id}/models`;\n};\n\nexport const updateAgentModels = async (\n id: string,\n updateAgentModelsBody: UpdateAgentModelsBody,\n options?: RequestInit\n): Promise<UpdateAgentModelsResponse> => {\n return customFetch<UpdateAgentModelsResponse>(getUpdateAgentModelsUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateAgentModelsBody),\n });\n};\n\nexport const getUpdateAgentModelsMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateAgentModelsBody }) => {\n return updateAgentModels(id, arg, options);\n };\n};\nexport const getUpdateAgentModelsMutationKey = (id: string) =>\n [`/v1/agents/${id}/models`] as const;\n\nexport type UpdateAgentModelsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateAgentModels>>\n>;\n\n/**\n * @summary Update agent models\n */\nexport const useUpdateAgentModels = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateAgentModels>>,\n TError,\n Key,\n UpdateAgentModelsBody,\n Awaited<ReturnType<typeof updateAgentModels>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateAgentModelsMutationKey(id);\n const swrFn = getUpdateAgentModelsMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update call control settings for an agent.\n\nConfigure whether the agent supports dial pad input, can end calls, and set a transfer phone number.\n * @summary Update agent call controls\n */\nexport const getUpdateCallControlsUrl = (id: string) => {\n return `/v1/agents/${id}/call-controls`;\n};\n\nexport const updateCallControls = async (\n id: string,\n updateCallControlsBody: UpdateCallControlsBody,\n options?: RequestInit\n): Promise<UpdateCallControlsResponse> => {\n return customFetch<UpdateCallControlsResponse>(getUpdateCallControlsUrl(id), {\n ...options,\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateCallControlsBody),\n });\n};\n\nexport const getUpdateCallControlsMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateCallControlsBody }) => {\n return updateCallControls(id, arg, options);\n };\n};\nexport const getUpdateCallControlsMutationKey = (id: string) =>\n [`/v1/agents/${id}/call-controls`] as const;\n\nexport type UpdateCallControlsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateCallControls>>\n>;\n\n/**\n * @summary Update agent call controls\n */\nexport const useUpdateCallControls = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateCallControls>>,\n TError,\n Key,\n UpdateCallControlsBody,\n Awaited<ReturnType<typeof updateCallControls>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateCallControlsMutationKey(id);\n const swrFn = getUpdateCallControlsMutationFetcher(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ApiKeyCreated,\n ApiKeyList,\n ConfirmationResponse,\n CreateApiKeyBody,\n ErrorResponse,\n ListApiKeysParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } 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 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<ApiKeyList> => {\n return customFetch<ApiKeyList>(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 = ErrorType<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 const getCreateApiKeyUrl = () => {\n return `/platform/api-keys`;\n};\n\nexport const createApiKey = async (\n createApiKeyBody: CreateApiKeyBody,\n options?: RequestInit\n): Promise<ApiKeyCreated> => {\n return customFetch<ApiKeyCreated>(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 = ErrorType<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 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<ConfirmationResponse> => {\n return customFetch<ConfirmationResponse>(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 = ErrorType<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 ArtifactCreated,\n ArtifactDetail,\n ArtifactList,\n ArtifactMetadataKeys,\n CreateArtifactBody,\n ErrorResponse,\n GetArtifactMetadataKeysParams,\n GetArtifactUploadUrl200,\n GetArtifactUploadUrlBody,\n ListArtifactsParams,\n UpdateArtifactMetadataBody,\n UploadFileBody,\n UploadFileResponse,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Upload a document as a base64-encoded artifact for processing.\n\n**Limits:**\n\nMaximum file size is approximately 6.75MB (base64 encoded). The API Gateway has a 10MB request limit.\n\n**Processing options:**\n\n- `file_password`: Password for encrypted PDFs\n- `file_splitting_enabled`: Split multi-page PDFs into separate artifacts\n * @summary Create artifact\n */\nexport const getCreateArtifactUrl = () => {\n return `/v1/artifacts`;\n};\n\nexport const createArtifact = async (\n createArtifactBody: CreateArtifactBody,\n options?: RequestInit\n): Promise<ArtifactCreated> => {\n return customFetch<ArtifactCreated>(getCreateArtifactUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createArtifactBody),\n });\n};\n\nexport const getCreateArtifactMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateArtifactBody }) => {\n return createArtifact(arg, options);\n };\n};\nexport const getCreateArtifactMutationKey = () => [`/v1/artifacts`] as const;\n\nexport type CreateArtifactMutationResult = NonNullable<\n Awaited<ReturnType<typeof createArtifact>>\n>;\n\n/**\n * @summary Create artifact\n */\nexport const useCreateArtifact = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createArtifact>>,\n TError,\n Key,\n CreateArtifactBody,\n Awaited<ReturnType<typeof createArtifact>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateArtifactMutationKey();\n const swrFn = getCreateArtifactMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all artifacts with pagination, filtering, and sorting.\n\n**Metadata Filtering:**\n\nUse bracket notation to filter by metadata keys:\n- `metadata[claim_id]=abc-123`\n- `metadata[source]=email`\n\nMultiple metadata filters can be combined (AND logic).\n * @summary List artifacts\n */\nexport const getListArtifactsUrl = (params?: ListArtifactsParams) => {\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/artifacts?${stringifiedParams}`\n : `/v1/artifacts`;\n};\n\nexport const listArtifacts = async (\n params?: ListArtifactsParams,\n options?: RequestInit\n): Promise<ArtifactList> => {\n return customFetch<ArtifactList>(getListArtifactsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListArtifactsKey = (params?: ListArtifactsParams) =>\n [`/v1/artifacts`, ...(params ? [params] : [])] as const;\n\nexport type ListArtifactsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listArtifacts>>\n>;\n\n/**\n * @summary List artifacts\n */\nexport const useListArtifacts = <TError = ErrorType<ErrorResponse>>(\n params?: ListArtifactsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listArtifacts>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListArtifactsKey(params) : null));\n const swrFn = () => listArtifacts(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 * Retrieve a single artifact by ID, including its metadata, file URL, and extracted content.\n * @summary Get artifact\n */\nexport const getGetArtifactUrl = (id: string) => {\n return `/v1/artifacts/${id}`;\n};\n\nexport const getArtifact = async (\n id: string,\n options?: RequestInit\n): Promise<ArtifactDetail> => {\n return customFetch<ArtifactDetail>(getGetArtifactUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetArtifactKey = (id: string) =>\n [`/v1/artifacts/${id}`] as const;\n\nexport type GetArtifactQueryResult = NonNullable<\n Awaited<ReturnType<typeof getArtifact>>\n>;\n\n/**\n * @summary Get artifact\n */\nexport const useGetArtifact = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getArtifact>>, 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 ? getGetArtifactKey(id) : null));\n const swrFn = () => getArtifact(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 * Retrieve all unique metadata keys and their values across artifacts. Useful for building filter UIs.\n * @summary Get artifact metadata keys\n */\nexport const getGetArtifactMetadataKeysUrl = (\n params?: GetArtifactMetadataKeysParams\n) => {\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/artifacts/metadata/keys?${stringifiedParams}`\n : `/v1/artifacts/metadata/keys`;\n};\n\nexport const getArtifactMetadataKeys = async (\n params?: GetArtifactMetadataKeysParams,\n options?: RequestInit\n): Promise<ArtifactMetadataKeys> => {\n return customFetch<ArtifactMetadataKeys>(\n getGetArtifactMetadataKeysUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetArtifactMetadataKeysKey = (\n params?: GetArtifactMetadataKeysParams\n) => [`/v1/artifacts/metadata/keys`, ...(params ? [params] : [])] as const;\n\nexport type GetArtifactMetadataKeysQueryResult = NonNullable<\n Awaited<ReturnType<typeof getArtifactMetadataKeys>>\n>;\n\n/**\n * @summary Get artifact metadata keys\n */\nexport const useGetArtifactMetadataKeys = <TError = ErrorType<ErrorResponse>>(\n params?: GetArtifactMetadataKeysParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getArtifactMetadataKeys>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetArtifactMetadataKeysKey(params) : null));\n const swrFn = () => getArtifactMetadataKeys(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 * Returns a pre-signed PUT URL. Upload the file directly to `upload_url`, then pass `file_url` as `source_url` to POST /v1/upload-file.\n * @summary Request a pre-signed URL for direct large file upload\n */\nexport const getGetArtifactUploadUrlUrl = () => {\n return `/v1/artifacts/get-upload-url`;\n};\n\nexport const getArtifactUploadUrl = async (\n getArtifactUploadUrlBody: GetArtifactUploadUrlBody,\n options?: RequestInit\n): Promise<GetArtifactUploadUrl200> => {\n return customFetch<GetArtifactUploadUrl200>(getGetArtifactUploadUrlUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(getArtifactUploadUrlBody),\n });\n};\n\nexport const getGetArtifactUploadUrlMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: GetArtifactUploadUrlBody }) => {\n return getArtifactUploadUrl(arg, options);\n };\n};\nexport const getGetArtifactUploadUrlMutationKey = () =>\n [`/v1/artifacts/get-upload-url`] as const;\n\nexport type GetArtifactUploadUrlMutationResult = NonNullable<\n Awaited<ReturnType<typeof getArtifactUploadUrl>>\n>;\n\n/**\n * @summary Request a pre-signed URL for direct large file upload\n */\nexport const useGetArtifactUploadUrl = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof getArtifactUploadUrl>>,\n TError,\n Key,\n GetArtifactUploadUrlBody,\n Awaited<ReturnType<typeof getArtifactUploadUrl>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getGetArtifactUploadUrlMutationKey();\n const swrFn = getGetArtifactUploadUrlMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Merge-update metadata on an existing artifact. Provided keys are added or overwritten; other existing keys are preserved.\n * @summary Update artifact metadata\n */\nexport const getUpdateArtifactMetadataUrl = (id: string) => {\n return `/v1/artifacts/${id}/metadata`;\n};\n\nexport const updateArtifactMetadata = async (\n id: string,\n updateArtifactMetadataBody: UpdateArtifactMetadataBody,\n options?: RequestInit\n): Promise<ArtifactDetail> => {\n return customFetch<ArtifactDetail>(getUpdateArtifactMetadataUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateArtifactMetadataBody),\n });\n};\n\nexport const getUpdateArtifactMetadataMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateArtifactMetadataBody }) => {\n return updateArtifactMetadata(id, arg, options);\n };\n};\nexport const getUpdateArtifactMetadataMutationKey = (id: string) =>\n [`/v1/artifacts/${id}/metadata`] as const;\n\nexport type UpdateArtifactMetadataMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateArtifactMetadata>>\n>;\n\n/**\n * @summary Update artifact metadata\n */\nexport const useUpdateArtifactMetadata = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateArtifactMetadata>>,\n TError,\n Key,\n UpdateArtifactMetadataBody,\n Awaited<ReturnType<typeof updateArtifactMetadata>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateArtifactMetadataMutationKey(id);\n const swrFn = getUpdateArtifactMetadataMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Upload a file for processing by passing a URL to a file. Use this for uploading larger files.\n\nThis endpoint returns an upload id that can be used to find the created artifacts using the list artifacts endpoint.\n * @summary Upload a file for processing\n */\nexport const getUploadFileUrl = () => {\n return `/v1/upload-file`;\n};\n\nexport const uploadFile = async (\n uploadFileBody: UploadFileBody,\n options?: RequestInit\n): Promise<UploadFileResponse> => {\n return customFetch<UploadFileResponse>(getUploadFileUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(uploadFileBody),\n });\n};\n\nexport const getUploadFileMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UploadFileBody }) => {\n return uploadFile(arg, options);\n };\n};\nexport const getUploadFileMutationKey = () => [`/v1/upload-file`] as const;\n\nexport type UploadFileMutationResult = NonNullable<\n Awaited<ReturnType<typeof uploadFile>>\n>;\n\n/**\n * @summary Upload a file for processing\n */\nexport const useUploadFile = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof uploadFile>>,\n TError,\n Key,\n UploadFileBody,\n Awaited<ReturnType<typeof uploadFile>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUploadFileMutationKey();\n const swrFn = getUploadFileMutationFetcher(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 AuthTokens,\n EmptyResponse,\n ErrorResponse,\n GetOAuthUrlParams,\n GetSessionToken200,\n GetSessionTokenBody,\n OAuthUrl,\n RefreshTokenBody,\n SignInBody,\n SignUpBody,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new user account with email and password.\n * @summary Sign up\n */\nexport const getSignUpUrl = () => {\n return `/v1/auth/sign-up`;\n};\n\nexport const signUp = async (\n signUpBody: SignUpBody,\n options?: RequestInit\n): Promise<EmptyResponse> => {\n return customFetchNoAuth<EmptyResponse>(getSignUpUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(signUpBody),\n });\n};\n\nexport const getSignUpMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: SignUpBody }) => {\n return signUp(arg, options);\n };\n};\nexport const getSignUpMutationKey = () => [`/v1/auth/sign-up`] as const;\n\nexport type SignUpMutationResult = NonNullable<\n Awaited<ReturnType<typeof signUp>>\n>;\n\n/**\n * @summary Sign up\n */\nexport const useSignUp = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof signUp>>,\n TError,\n Key,\n SignUpBody,\n Awaited<ReturnType<typeof signUp>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getSignUpMutationKey();\n const swrFn = getSignUpMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Authenticate using one of the supported methods:\n\n- **Password:** Email and password credentials\n- **OAuth:** Authorization code from OAuth flow\n- **Email OTP:** One-time password sent to email\n * @summary Sign in\n */\nexport const getSignInUrl = () => {\n return `/v1/auth/sign-in`;\n};\n\nexport const signIn = async (\n signInBody: SignInBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getSignInUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(signInBody),\n });\n};\n\nexport const getSignInMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: SignInBody }) => {\n return signIn(arg, options);\n };\n};\nexport const getSignInMutationKey = () => [`/v1/auth/sign-in`] as const;\n\nexport type SignInMutationResult = NonNullable<\n Awaited<ReturnType<typeof signIn>>\n>;\n\n/**\n * @summary Sign in\n */\nexport const useSignIn = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof signIn>>,\n TError,\n Key,\n SignInBody,\n Awaited<ReturnType<typeof signIn>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getSignInMutationKey();\n const swrFn = getSignInMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Exchange a valid access token and refresh token pair for new tokens.\n * @summary Refresh authentication token\n */\nexport const getRefreshTokenUrl = () => {\n return `/v1/auth/refresh-token`;\n};\n\nexport const refreshToken = async (\n refreshTokenBody: RefreshTokenBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getRefreshTokenUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(refreshTokenBody),\n });\n};\n\nexport const getRefreshTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: RefreshTokenBody }) => {\n return refreshToken(arg, options);\n };\n};\nexport const getRefreshTokenMutationKey = () =>\n [`/v1/auth/refresh-token`] as const;\n\nexport type RefreshTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof refreshToken>>\n>;\n\n/**\n * @summary Refresh authentication token\n */\nexport const useRefreshToken = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof refreshToken>>,\n TError,\n Key,\n RefreshTokenBody,\n Awaited<ReturnType<typeof refreshToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRefreshTokenMutationKey();\n const swrFn = getRefreshTokenMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Generate an OAuth authorization URL for a given provider. Use with PKCE flow.\n * @summary Get OAuth sign-in URL\n */\nexport const getGetOAuthUrlUrl = (params: GetOAuthUrlParams) => {\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 getOAuthUrl = async (\n params: GetOAuthUrlParams,\n options?: RequestInit\n): Promise<OAuthUrl> => {\n return customFetchNoAuth<OAuthUrl>(getGetOAuthUrlUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetOAuthUrlKey = (params: GetOAuthUrlParams) =>\n [`/v1/auth/oauth-url`, ...(params ? [params] : [])] as const;\n\nexport type GetOAuthUrlQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOAuthUrl>>\n>;\n\n/**\n * @summary Get OAuth sign-in URL\n */\nexport const useGetOAuthUrl = <TError = ErrorType<ErrorResponse>>(\n params: GetOAuthUrlParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getOAuthUrl>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\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 ? getGetOAuthUrlKey(params) : null));\n const swrFn = () => getOAuthUrl(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 * Exchange a Supabase identity token for a tenant-scoped Core Plane access token.\n\n- If `tenant_id` is provided, validates the user is a member of that tenant.\n- If `tenant_id` is omitted, selects the user's default (oldest) tenant.\n- Call this endpoint again with a different `tenant_id` to switch tenants.\n * @summary Create or switch tenant session\n */\nexport const getGetSessionTokenUrl = () => {\n return `/v1/auth/session`;\n};\n\nexport const getSessionToken = async (\n getSessionTokenBody: GetSessionTokenBody,\n options?: RequestInit\n): Promise<GetSessionToken200> => {\n return customFetchNoAuth<GetSessionToken200>(getGetSessionTokenUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(getSessionTokenBody),\n });\n};\n\nexport const getGetSessionTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: GetSessionTokenBody }) => {\n return getSessionToken(arg, options);\n };\n};\nexport const getGetSessionTokenMutationKey = () =>\n [`/v1/auth/session`] as const;\n\nexport type GetSessionTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof getSessionToken>>\n>;\n\n/**\n * @summary Create or switch tenant session\n */\nexport const useGetSessionToken = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof getSessionToken>>,\n TError,\n Key,\n GetSessionTokenBody,\n Awaited<ReturnType<typeof getSessionToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getGetSessionTokenMutationKey();\n const swrFn = getGetSessionTokenMutationFetcher(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateFeedbackRequest,\n ErrorResponse,\n Feedback,\n ListCallFeedbackParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create feedback for a specific message in a call. Author is derived from the authenticated user.\n * @summary Create feedback on a call message\n */\nexport const getCreateCallFeedbackUrl = (id: string) => {\n return `/v1/calls/${id}/feedback`;\n};\n\nexport const createCallFeedback = async (\n id: string,\n createFeedbackRequest: CreateFeedbackRequest,\n options?: RequestInit\n): Promise<Feedback> => {\n return customFetch<Feedback>(getCreateCallFeedbackUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createFeedbackRequest),\n });\n};\n\nexport const getCreateCallFeedbackMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateFeedbackRequest }) => {\n return createCallFeedback(id, arg, options);\n };\n};\nexport const getCreateCallFeedbackMutationKey = (id: string) =>\n [`/v1/calls/${id}/feedback`] as const;\n\nexport type CreateCallFeedbackMutationResult = NonNullable<\n Awaited<ReturnType<typeof createCallFeedback>>\n>;\n\n/**\n * @summary Create feedback on a call message\n */\nexport const useCreateCallFeedback = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createCallFeedback>>,\n TError,\n Key,\n CreateFeedbackRequest,\n Awaited<ReturnType<typeof createCallFeedback>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateCallFeedbackMutationKey(id);\n const swrFn = getCreateCallFeedbackMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all feedback for a call. Paginated.\n * @summary List feedback for a call\n */\nexport const getListCallFeedbackUrl = (\n id: string,\n params: ListCallFeedbackParams\n) => {\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/calls/${id}/feedback?${stringifiedParams}`\n : `/v1/calls/${id}/feedback`;\n};\n\nexport const listCallFeedback = async (\n id: string,\n params: ListCallFeedbackParams,\n options?: RequestInit\n): Promise<Feedback[]> => {\n return customFetch<Feedback[]>(getListCallFeedbackUrl(id, params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCallFeedbackKey = (\n id: string,\n params: ListCallFeedbackParams\n) => [`/v1/calls/${id}/feedback`, ...(params ? [params] : [])] as const;\n\nexport type ListCallFeedbackQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCallFeedback>>\n>;\n\n/**\n * @summary List feedback for a call\n */\nexport const useListCallFeedback = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params: ListCallFeedbackParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listCallFeedback>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListCallFeedbackKey(id, params) : null));\n const swrFn = () => listCallFeedback(id, 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 * Delete a single feedback entry.\n * @summary Delete feedback\n */\nexport const getDeleteCallFeedbackUrl = (id: string, feedbackId: string) => {\n return `/v1/calls/${id}/feedback/${feedbackId}`;\n};\n\nexport const deleteCallFeedback = async (\n id: string,\n feedbackId: string,\n options?: RequestInit\n): Promise<null> => {\n return customFetch<null>(getDeleteCallFeedbackUrl(id, feedbackId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteCallFeedbackMutationFetcher = (\n id: string,\n feedbackId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteCallFeedback(id, feedbackId, options);\n };\n};\nexport const getDeleteCallFeedbackMutationKey = (\n id: string,\n feedbackId: string\n) => [`/v1/calls/${id}/feedback/${feedbackId}`] as const;\n\nexport type DeleteCallFeedbackMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteCallFeedback>>\n>;\n\n/**\n * @summary Delete feedback\n */\nexport const useDeleteCallFeedback = <TError = ErrorType<ErrorResponse>>(\n id: string,\n feedbackId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteCallFeedback>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteCallFeedback>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteCallFeedbackMutationKey(id, feedbackId);\n const swrFn = getDeleteCallFeedbackMutationFetcher(\n id,\n feedbackId,\n requestOptions\n );\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 type {\n CallAnalytics,\n CallDetail,\n CallEvaluation,\n CallList,\n ErrorResponse,\n GetCallAnalyticsParams,\n GetCallParams,\n ListCallsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all calls, with pagination, filtering, and sorting.\n\n**Filtering:**\n\nFilter by agent, direction, status, time range, phone number, and more. Phone number filter supports both exact E.164 matches and partial search.\n * @summary List calls\n */\nexport const getListCallsUrl = (params?: ListCallsParams) => {\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/calls?${stringifiedParams}`\n : `/v1/calls`;\n};\n\nexport const listCalls = async (\n params?: ListCallsParams,\n options?: RequestInit\n): Promise<CallList> => {\n return customFetch<CallList>(getListCallsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCallsKey = (params?: ListCallsParams) =>\n [`/v1/calls`, ...(params ? [params] : [])] as const;\n\nexport type ListCallsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCalls>>\n>;\n\n/**\n * @summary List calls\n */\nexport const useListCalls = <TError = ErrorType<ErrorResponse>>(\n params?: ListCallsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listCalls>>, 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 ? getListCallsKey(params) : null));\n const swrFn = () => listCalls(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 * Retrieve detailed information about a specific call.\n\nSet `include_messages=true` to include the full message transcript.\n * @summary Get call\n */\nexport const getGetCallUrl = (id: string, params?: GetCallParams) => {\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/calls/${id}?${stringifiedParams}`\n : `/v1/calls/${id}`;\n};\n\nexport const getCall = async (\n id: string,\n params?: GetCallParams,\n options?: RequestInit\n): Promise<CallDetail> => {\n return customFetch<CallDetail>(getGetCallUrl(id, params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCallKey = (id: string, params?: GetCallParams) =>\n [`/v1/calls/${id}`, ...(params ? [params] : [])] as const;\n\nexport type GetCallQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCall>>\n>;\n\n/**\n * @summary Get call\n */\nexport const useGetCall = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: GetCallParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getCall>>, 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 ??\n (() => (isEnabled ? getGetCallKey(id, params) : null));\n const swrFn = () => getCall(id, 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 * Retrieve the evaluation results for a specific call, including overall score, pass status, and per-metric breakdowns.\n * @summary Get call evaluation\n */\nexport const getGetCallEvaluationUrl = (id: string) => {\n return `/v1/calls/${id}/evaluation`;\n};\n\nexport const getCallEvaluation = async (\n id: string,\n options?: RequestInit\n): Promise<CallEvaluation> => {\n return customFetch<CallEvaluation>(getGetCallEvaluationUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCallEvaluationKey = (id: string) =>\n [`/v1/calls/${id}/evaluation`] as const;\n\nexport type GetCallEvaluationQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCallEvaluation>>\n>;\n\n/**\n * @summary Get call evaluation\n */\nexport const useGetCallEvaluation = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getCallEvaluation>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getGetCallEvaluationKey(id) : null));\n const swrFn = () => getCallEvaluation(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 * Retrieve aggregated call analytics for a time range.\n\nIncludes summary statistics, call volume over time, evaluation scores, score and duration distributions, and per-metric performance.\n * @summary Get call analytics\n */\nexport const getGetCallAnalyticsUrl = (params: GetCallAnalyticsParams) => {\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/calls/analytics?${stringifiedParams}`\n : `/v1/calls/analytics`;\n};\n\nexport const getCallAnalytics = async (\n params: GetCallAnalyticsParams,\n options?: RequestInit\n): Promise<CallAnalytics> => {\n return customFetch<CallAnalytics>(getGetCallAnalyticsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCallAnalyticsKey = (params: GetCallAnalyticsParams) =>\n [`/v1/calls/analytics`, ...(params ? [params] : [])] as const;\n\nexport type GetCallAnalyticsQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCallAnalytics>>\n>;\n\n/**\n * @summary Get call analytics\n */\nexport const useGetCallAnalytics = <TError = ErrorType<ErrorResponse>>(\n params: GetCallAnalyticsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getCallAnalytics>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetCallAnalyticsKey(params) : null));\n const swrFn = () => getCallAnalytics(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 */\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 ClaimCreated,\n ClaimDetail,\n ClaimList,\n ErrorResponse,\n ListClaimsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new empty claim. Returns the claim ID and the creation timestamp.\n * @summary Create claim\n */\nexport const getCreateClaimUrl = () => {\n return `/v1/claims`;\n};\n\nexport const createClaim = async (\n options?: RequestInit\n): Promise<ClaimCreated> => {\n return customFetch<ClaimCreated>(getCreateClaimUrl(), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCreateClaimMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return createClaim(options);\n };\n};\nexport const getCreateClaimMutationKey = () => [`/v1/claims`] as const;\n\nexport type CreateClaimMutationResult = NonNullable<\n Awaited<ReturnType<typeof createClaim>>\n>;\n\n/**\n * @summary Create claim\n */\nexport const useCreateClaim = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createClaim>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof createClaim>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateClaimMutationKey();\n const swrFn = getCreateClaimMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all claims with pagination and sorting options.\n * @summary List claims\n */\nexport const getListClaimsUrl = (params: ListClaimsParams) => {\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/claims?${stringifiedParams}`\n : `/v1/claims`;\n};\n\nexport const listClaims = async (\n params: ListClaimsParams,\n options?: RequestInit\n): Promise<ClaimList> => {\n return customFetch<ClaimList>(getListClaimsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListClaimsKey = (params: ListClaimsParams) =>\n [`/v1/claims`, ...(params ? [params] : [])] as const;\n\nexport type ListClaimsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listClaims>>\n>;\n\n/**\n * @summary List claims\n */\nexport const useListClaims = <TError = ErrorType<ErrorResponse>>(\n params: ListClaimsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listClaims>>, 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 ? getListClaimsKey(params) : null));\n const swrFn = () => listClaims(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 * Retrieve detailed information about a claim, including its sources (emails), artifacts (documents), extractor job status, and extracted data.\n * @summary Get claim detail\n */\nexport const getGetClaimDetailUrl = (id: string) => {\n return `/v1/claims/${id}`;\n};\n\nexport const getClaimDetail = async (\n id: string,\n options?: RequestInit\n): Promise<ClaimDetail> => {\n return customFetch<ClaimDetail>(getGetClaimDetailUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetClaimDetailKey = (id: string) =>\n [`/v1/claims/${id}`] as const;\n\nexport type GetClaimDetailQueryResult = NonNullable<\n Awaited<ReturnType<typeof getClaimDetail>>\n>;\n\n/**\n * @summary Get claim detail\n */\nexport const useGetClaimDetail = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getClaimDetail>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getGetClaimDetailKey(id) : null));\n const swrFn = () => getClaimDetail(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 { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CheckEmailUsernameAvailabilityParams,\n CreateEmailAgentBody,\n EmailAgent,\n EmailAgentList,\n EmailUsernameAvailability,\n ErrorResponse,\n ListEmailAgentsParams,\n UpdateEmailAgentBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Check whether a given email username is available for creating a new email agent.\n * @summary Check email username availability\n */\nexport const getCheckEmailUsernameAvailabilityUrl = (\n params: CheckEmailUsernameAvailabilityParams\n) => {\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/email-agents/availability?${stringifiedParams}`\n : `/v1/email-agents/availability`;\n};\n\nexport const checkEmailUsernameAvailability = async (\n params: CheckEmailUsernameAvailabilityParams,\n options?: RequestInit\n): Promise<EmailUsernameAvailability> => {\n return customFetch<EmailUsernameAvailability>(\n getCheckEmailUsernameAvailabilityUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getCheckEmailUsernameAvailabilityKey = (\n params: CheckEmailUsernameAvailabilityParams\n) => [`/v1/email-agents/availability`, ...(params ? [params] : [])] as const;\n\nexport type CheckEmailUsernameAvailabilityQueryResult = NonNullable<\n Awaited<ReturnType<typeof checkEmailUsernameAvailability>>\n>;\n\n/**\n * @summary Check email username availability\n */\nexport const useCheckEmailUsernameAvailability = <\n TError = ErrorType<ErrorResponse>,\n>(\n params: CheckEmailUsernameAvailabilityParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof checkEmailUsernameAvailability>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getCheckEmailUsernameAvailabilityKey(params) : null));\n const swrFn = () => checkEmailUsernameAvailability(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 email agent linked to an extractor.\n\nThe agent will receive emails at the assigned address and automatically process attachments using the specified extractor.\n * @summary Create email agent\n */\nexport const getCreateEmailAgentUrl = () => {\n return `/v1/email-agents`;\n};\n\nexport const createEmailAgent = async (\n createEmailAgentBody: CreateEmailAgentBody,\n options?: RequestInit\n): Promise<EmailAgent> => {\n return customFetch<EmailAgent>(getCreateEmailAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createEmailAgentBody),\n });\n};\n\nexport const getCreateEmailAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateEmailAgentBody }) => {\n return createEmailAgent(arg, options);\n };\n};\nexport const getCreateEmailAgentMutationKey = () =>\n [`/v1/email-agents`] as const;\n\nexport type CreateEmailAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createEmailAgent>>\n>;\n\n/**\n * @summary Create email agent\n */\nexport const useCreateEmailAgent = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createEmailAgent>>,\n TError,\n Key,\n CreateEmailAgentBody,\n Awaited<ReturnType<typeof createEmailAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateEmailAgentMutationKey();\n const swrFn = getCreateEmailAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all email agents with pagination and sorting.\n * @summary List email agents\n */\nexport const getListEmailAgentsUrl = (params?: ListEmailAgentsParams) => {\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/email-agents?${stringifiedParams}`\n : `/v1/email-agents`;\n};\n\nexport const listEmailAgents = async (\n params?: ListEmailAgentsParams,\n options?: RequestInit\n): Promise<EmailAgentList> => {\n return customFetch<EmailAgentList>(getListEmailAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailAgentsKey = (params?: ListEmailAgentsParams) =>\n [`/v1/email-agents`, ...(params ? [params] : [])] as const;\n\nexport type ListEmailAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmailAgents>>\n>;\n\n/**\n * @summary List email agents\n */\nexport const useListEmailAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListEmailAgentsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listEmailAgents>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListEmailAgentsKey(params) : null));\n const swrFn = () => listEmailAgents(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 * Update an email agent's configuration.\n * @summary Update email agent\n */\nexport const getUpdateEmailAgentUrl = (id: string) => {\n return `/v1/email-agents/${id}`;\n};\n\nexport const updateEmailAgent = async (\n id: string,\n updateEmailAgentBody: UpdateEmailAgentBody,\n options?: RequestInit\n): Promise<EmailAgent> => {\n return customFetch<EmailAgent>(getUpdateEmailAgentUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateEmailAgentBody),\n });\n};\n\nexport const getUpdateEmailAgentMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateEmailAgentBody }) => {\n return updateEmailAgent(id, arg, options);\n };\n};\nexport const getUpdateEmailAgentMutationKey = (id: string) =>\n [`/v1/email-agents/${id}`] as const;\n\nexport type UpdateEmailAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateEmailAgent>>\n>;\n\n/**\n * @summary Update email agent\n */\nexport const useUpdateEmailAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateEmailAgent>>,\n TError,\n Key,\n UpdateEmailAgentBody,\n Awaited<ReturnType<typeof updateEmailAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateEmailAgentMutationKey(id);\n const swrFn = getUpdateEmailAgentMutationFetcher(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 CreateEmailBody,\n EmailCreated,\n EmailDetail,\n EmailList,\n ErrorResponse,\n ListEmailsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Ingest an email into the system.\n\nOptionally associate the email with an existing claim via `claim_id`.\n * @summary Create email\n */\nexport const getCreateEmailUrl = () => {\n return `/v1/emails`;\n};\n\nexport const createEmail = async (\n createEmailBody: CreateEmailBody,\n options?: RequestInit\n): Promise<EmailCreated> => {\n return customFetch<EmailCreated>(getCreateEmailUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createEmailBody),\n });\n};\n\nexport const getCreateEmailMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateEmailBody }) => {\n return createEmail(arg, options);\n };\n};\nexport const getCreateEmailMutationKey = () => [`/v1/emails`] as const;\n\nexport type CreateEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof createEmail>>\n>;\n\n/**\n * @summary Create email\n */\nexport const useCreateEmail = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createEmail>>,\n TError,\n Key,\n CreateEmailBody,\n Awaited<ReturnType<typeof createEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateEmailMutationKey();\n const swrFn = getCreateEmailMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all emails with pagination and filtering.\n\n**Filtering:**\n\nFilter by email agent, sender, recipient, or content search.\n * @summary List emails\n */\nexport const getListEmailsUrl = (params: ListEmailsParams) => {\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/emails?${stringifiedParams}`\n : `/v1/emails`;\n};\n\nexport const listEmails = async (\n params: ListEmailsParams,\n options?: RequestInit\n): Promise<EmailList> => {\n return customFetch<EmailList>(getListEmailsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailsKey = (params: ListEmailsParams) =>\n [`/v1/emails`, ...(params ? [params] : [])] as const;\n\nexport type ListEmailsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmails>>\n>;\n\n/**\n * @summary List emails\n */\nexport const useListEmails = <TError = ErrorType<ErrorResponse>>(\n params: ListEmailsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listEmails>>, 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 ? getListEmailsKey(params) : null));\n const swrFn = () => listEmails(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 * Retrieve detailed information about a specific email, including full body content.\n * @summary Get email\n */\nexport const getGetEmailUrl = (emailId: string) => {\n return `/v1/emails/${emailId}`;\n};\n\nexport const getEmail = async (\n emailId: string,\n options?: RequestInit\n): Promise<EmailDetail> => {\n return customFetch<EmailDetail>(getGetEmailUrl(emailId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetEmailKey = (emailId: string) =>\n [`/v1/emails/${emailId}`] as const;\n\nexport type GetEmailQueryResult = NonNullable<\n Awaited<ReturnType<typeof getEmail>>\n>;\n\n/**\n * @summary Get email\n */\nexport const useGetEmail = <TError = ErrorType<ErrorResponse>>(\n emailId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getEmail>>, 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 && !!emailId;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetEmailKey(emailId) : null));\n const swrFn = () => getEmail(emailId, 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 AgenticJobMessageList,\n CanceledExtractorJob,\n CreateExtractorJobBody,\n ErrorResponse,\n ExtractorJobCreated,\n ExtractorJobList,\n GetExtractorJobResponse,\n ListAgenticJobMessagesParams,\n ListExtractorJobsParams,\n UpdateExtractorJobScopeBody,\n UpdatedExtractorJob,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all extraction jobs with pagination, filtering, and sorting.\n\n**Type Filtering:**\n\nFilter by `extractor_type` to see only `basic` or `agentic` jobs. Omit to return all types.\n\n**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[call_id]=abc-123`\n- `scope[email_id]=xyz-456`\n\nMultiple scope filters can be combined (AND logic).\n * @summary List extractor jobs\n */\nexport const getListExtractorJobsUrl = (params?: ListExtractorJobsParams) => {\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/extractor-jobs?${stringifiedParams}`\n : `/v1/extractor-jobs`;\n};\n\nexport const listExtractorJobs = async (\n params?: ListExtractorJobsParams,\n options?: RequestInit\n): Promise<ExtractorJobList> => {\n return customFetch<ExtractorJobList>(getListExtractorJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractorJobsKey = (params?: ListExtractorJobsParams) =>\n [`/v1/extractor-jobs`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractorJobsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtractorJobs>>\n>;\n\n/**\n * @summary List extractor jobs\n */\nexport const useListExtractorJobs = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractorJobsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listExtractorJobs>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListExtractorJobsKey(params) : null));\n const swrFn = () => listExtractorJobs(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 extraction job for the specified extractor.\n\nProvide a non-empty `scope` object to define what the extractor should process (e.g. `{ \"claim_id\": \"abc-123\" }`).\n * @summary Create extractor job\n */\nexport const getCreateExtractorJobUrl = () => {\n return `/v1/extractor-jobs`;\n};\n\nexport const createExtractorJob = async (\n createExtractorJobBody: CreateExtractorJobBody,\n options?: RequestInit\n): Promise<ExtractorJobCreated> => {\n return customFetch<ExtractorJobCreated>(getCreateExtractorJobUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorJobBody),\n });\n};\n\nexport const getCreateExtractorJobMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateExtractorJobBody }) => {\n return createExtractorJob(arg, options);\n };\n};\nexport const getCreateExtractorJobMutationKey = () =>\n [`/v1/extractor-jobs`] as const;\n\nexport type CreateExtractorJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof createExtractorJob>>\n>;\n\n/**\n * @summary Create extractor job\n */\nexport const useCreateExtractorJob = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createExtractorJob>>,\n TError,\n Key,\n CreateExtractorJobBody,\n Awaited<ReturnType<typeof createExtractorJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateExtractorJobMutationKey();\n const swrFn = getCreateExtractorJobMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve detailed information about a specific extractor job, including its status, timing, and result.\n * @summary Get extractor job\n */\nexport const getGetExtractorJobUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}`;\n};\n\nexport const getExtractorJob = async (\n id: string,\n options?: RequestInit\n): Promise<GetExtractorJobResponse> => {\n return customFetch<GetExtractorJobResponse>(getGetExtractorJobUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractorJobKey = (id: string) =>\n [`/v1/extractor-jobs/${id}`] as const;\n\nexport type GetExtractorJobQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtractorJob>>\n>;\n\n/**\n * @summary Get extractor job\n */\nexport const useGetExtractorJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getExtractorJob>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getGetExtractorJobKey(id) : null));\n const swrFn = () => getExtractorJob(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 * Cancel a queued or in-progress extractor job. Returns the updated job with its new status.\n * @summary Cancel extractor job\n */\nexport const getCancelExtractorJobUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}/cancel`;\n};\n\nexport const cancelExtractorJob = async (\n id: string,\n options?: RequestInit\n): Promise<CanceledExtractorJob> => {\n return customFetch<CanceledExtractorJob>(getCancelExtractorJobUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCancelExtractorJobMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelExtractorJob(id, options);\n };\n};\nexport const getCancelExtractorJobMutationKey = (id: string) =>\n [`/v1/extractor-jobs/${id}/cancel`] as const;\n\nexport type CancelExtractorJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof cancelExtractorJob>>\n>;\n\n/**\n * @summary Cancel extractor job\n */\nexport const useCancelExtractorJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof cancelExtractorJob>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof cancelExtractorJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCancelExtractorJobMutationKey(id);\n const swrFn = getCancelExtractorJobMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve agent messages emitted during an agentic extractor job run, ordered by emission time. Supports cursor-style pagination via `after` and `count`.\n * @summary List agentic job messages\n */\nexport const getListAgenticJobMessagesUrl = (\n id: string,\n params?: ListAgenticJobMessagesParams\n) => {\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/extractor-jobs/${id}/messages?${stringifiedParams}`\n : `/v1/extractor-jobs/${id}/messages`;\n};\n\nexport const listAgenticJobMessages = async (\n id: string,\n params?: ListAgenticJobMessagesParams,\n options?: RequestInit\n): Promise<AgenticJobMessageList> => {\n return customFetch<AgenticJobMessageList>(\n getListAgenticJobMessagesUrl(id, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListAgenticJobMessagesKey = (\n id: string,\n params?: ListAgenticJobMessagesParams\n) =>\n [`/v1/extractor-jobs/${id}/messages`, ...(params ? [params] : [])] as const;\n\nexport type ListAgenticJobMessagesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgenticJobMessages>>\n>;\n\n/**\n * @summary List agentic job messages\n */\nexport const useListAgenticJobMessages = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: ListAgenticJobMessagesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listAgenticJobMessages>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListAgenticJobMessagesKey(id, params) : null));\n const swrFn = () => listAgenticJobMessages(id, 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 * Merge-update scope on an existing extractor job. Provided keys are added or overwritten; other existing keys are preserved.\n * @summary Update extractor job scope\n */\nexport const getUpdateExtractorJobScopeUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}/scope`;\n};\n\nexport const updateExtractorJobScope = async (\n id: string,\n updateExtractorJobScopeBody: UpdateExtractorJobScopeBody,\n options?: RequestInit\n): Promise<UpdatedExtractorJob> => {\n return customFetch<UpdatedExtractorJob>(getUpdateExtractorJobScopeUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateExtractorJobScopeBody),\n });\n};\n\nexport const getUpdateExtractorJobScopeMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateExtractorJobScopeBody }) => {\n return updateExtractorJobScope(id, arg, options);\n };\n};\nexport const getUpdateExtractorJobScopeMutationKey = (id: string) =>\n [`/v1/extractor-jobs/${id}/scope`] as const;\n\nexport type UpdateExtractorJobScopeMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateExtractorJobScope>>\n>;\n\n/**\n * @summary Update extractor job scope\n */\nexport const useUpdateExtractorJobScope = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateExtractorJobScope>>,\n TError,\n Key,\n UpdateExtractorJobScopeBody,\n Awaited<ReturnType<typeof updateExtractorJobScope>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateExtractorJobScopeMutationKey(id);\n const swrFn = getUpdateExtractorJobScopeMutationFetcher(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 CreateExtractorBody,\n ErrorResponse,\n ExtractorCreated,\n ExtractorList,\n ExtractorUpdated,\n GetExtractorResponse,\n ListExtractorsParams,\n UpdateExtractorBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new extractor with a name and JSON schema defining the extraction output format.\n * @summary Create extractor\n */\nexport const getCreateExtractorUrl = () => {\n return `/v1/extractors`;\n};\n\nexport const createExtractor = async (\n createExtractorBody: CreateExtractorBody,\n options?: RequestInit\n): Promise<ExtractorCreated> => {\n return customFetch<ExtractorCreated>(getCreateExtractorUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorBody),\n });\n};\n\nexport const getCreateExtractorMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateExtractorBody }) => {\n return createExtractor(arg, options);\n };\n};\nexport const getCreateExtractorMutationKey = () => [`/v1/extractors`] as const;\n\nexport type CreateExtractorMutationResult = NonNullable<\n Awaited<ReturnType<typeof createExtractor>>\n>;\n\n/**\n * @summary Create extractor\n */\nexport const useCreateExtractor = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createExtractor>>,\n TError,\n Key,\n CreateExtractorBody,\n Awaited<ReturnType<typeof createExtractor>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateExtractorMutationKey();\n const swrFn = getCreateExtractorMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all extractors with pagination, filtering, and sorting.\n\nFilter by name using the `name` query parameter.\n * @summary List extractors\n */\nexport const getListExtractorsUrl = (params?: ListExtractorsParams) => {\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/extractors?${stringifiedParams}`\n : `/v1/extractors`;\n};\n\nexport const listExtractors = async (\n params?: ListExtractorsParams,\n options?: RequestInit\n): Promise<ExtractorList> => {\n return customFetch<ExtractorList>(getListExtractorsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractorsKey = (params?: ListExtractorsParams) =>\n [`/v1/extractors`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractorsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtractors>>\n>;\n\n/**\n * @summary List extractors\n */\nexport const useListExtractors = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractorsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listExtractors>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListExtractorsKey(params) : null));\n const swrFn = () => listExtractors(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 * Retrieve a single extractor by ID, including its schema and version.\n * @summary Get extractor\n */\nexport const getGetExtractorUrl = (id: string) => {\n return `/v1/extractors/${id}`;\n};\n\nexport const getExtractor = async (\n id: string,\n options?: RequestInit\n): Promise<GetExtractorResponse> => {\n return customFetch<GetExtractorResponse>(getGetExtractorUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractorKey = (id: string) =>\n [`/v1/extractors/${id}`] as const;\n\nexport type GetExtractorQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtractor>>\n>;\n\n/**\n * @summary Get extractor\n */\nexport const useGetExtractor = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getExtractor>>, 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 ? getGetExtractorKey(id) : null));\n const swrFn = () => getExtractor(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 * Update an extractor's schema. This creates a new version of the extractor.\n * @summary Update extractor\n */\nexport const getUpdateExtractorUrl = (id: string) => {\n return `/v1/extractors/${id}`;\n};\n\nexport const updateExtractor = async (\n id: string,\n updateExtractorBody: UpdateExtractorBody,\n options?: RequestInit\n): Promise<ExtractorUpdated> => {\n return customFetch<ExtractorUpdated>(getUpdateExtractorUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateExtractorBody),\n });\n};\n\nexport const getUpdateExtractorMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateExtractorBody }) => {\n return updateExtractor(id, arg, options);\n };\n};\nexport const getUpdateExtractorMutationKey = (id: string) =>\n [`/v1/extractors/${id}`] as const;\n\nexport type UpdateExtractorMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateExtractor>>\n>;\n\n/**\n * @summary Update extractor\n */\nexport const useUpdateExtractor = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateExtractor>>,\n TError,\n Key,\n UpdateExtractorBody,\n Awaited<ReturnType<typeof updateExtractor>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateExtractorMutationKey(id);\n const swrFn = getUpdateExtractorMutationFetcher(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 type {\n ErrorResponse,\n Extract,\n ExtractList,\n GetExtractCitations200,\n ListExtractsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve a single extract by ID, including the extraction result data.\n * @summary Get extract\n */\nexport const getGetExtractUrl = (id: string) => {\n return `/v1/extracts/${id}`;\n};\n\nexport const getExtract = async (\n id: string,\n options?: RequestInit\n): Promise<Extract> => {\n return customFetch<Extract>(getGetExtractUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractKey = (id: string) => [`/v1/extracts/${id}`] as const;\n\nexport type GetExtractQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtract>>\n>;\n\n/**\n * @summary Get extract\n */\nexport const useGetExtract = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getExtract>>, 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 ? getGetExtractKey(id) : null));\n const swrFn = () => getExtract(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 * Retrieve the citation tree with resolved chunk data for a given extract. Returns 404 if the extract does not exist or has no citations (the citations sub-resource is not available).\n * @summary Get extract citations\n */\nexport const getGetExtractCitationsUrl = (id: string) => {\n return `/v1/extracts/${id}/citations`;\n};\n\nexport const getExtractCitations = async (\n id: string,\n options?: RequestInit\n): Promise<GetExtractCitations200> => {\n return customFetch<GetExtractCitations200>(getGetExtractCitationsUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetExtractCitationsKey = (id: string) =>\n [`/v1/extracts/${id}/citations`] as const;\n\nexport type GetExtractCitationsQueryResult = NonNullable<\n Awaited<ReturnType<typeof getExtractCitations>>\n>;\n\n/**\n * @summary Get extract citations\n */\nexport const useGetExtractCitations = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getExtractCitations>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getGetExtractCitationsKey(id) : null));\n const swrFn = () => getExtractCitations(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 * List all extracts with pagination, filtering, and sorting.\n\n**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[claim_id]=abc-123`\n\nMultiple scope filters can be combined (AND logic).\n * @summary List extracts\n */\nexport const getListExtractsUrl = (params?: ListExtractsParams) => {\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/extracts?${stringifiedParams}`\n : `/v1/extracts`;\n};\n\nexport const listExtracts = async (\n params?: ListExtractsParams,\n options?: RequestInit\n): Promise<ExtractList> => {\n return customFetch<ExtractList>(getListExtractsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractsKey = (params?: ListExtractsParams) =>\n [`/v1/extracts`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtracts>>\n>;\n\n/**\n * @summary List extracts\n */\nexport const useListExtracts = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listExtracts>>, 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 ? getListExtractsKey(params) : null));\n const swrFn = () => listExtracts(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 */\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 ErrorResponse,\n ListJobsParams,\n OutboundJob,\n OutboundJobList,\n ScheduleJobBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Schedule a new outbound call job for an agent.\n\nThe job can be scheduled for a future time or triggered immediately with `trigger_immediately: true`.\n\n**Scheduling:**\n\nWhen scheduling for a future time, provide `scheduled_at` (ISO 8601) and optionally `schedule_window_minutes` (minimum 10 minutes).\n * @summary Schedule an outbound job\n */\nexport const getScheduleJobUrl = (id: string) => {\n return `/v1/agents/${id}/jobs`;\n};\n\nexport const scheduleJob = async (\n id: string,\n scheduleJobBody: ScheduleJobBody,\n options?: RequestInit\n): Promise<OutboundJob> => {\n return customFetch<OutboundJob>(getScheduleJobUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(scheduleJobBody),\n });\n};\n\nexport const getScheduleJobMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ScheduleJobBody }) => {\n return scheduleJob(id, arg, options);\n };\n};\nexport const getScheduleJobMutationKey = (id: string) =>\n [`/v1/agents/${id}/jobs`] as const;\n\nexport type ScheduleJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof scheduleJob>>\n>;\n\n/**\n * @summary Schedule an outbound job\n */\nexport const useScheduleJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof scheduleJob>>,\n TError,\n Key,\n ScheduleJobBody,\n Awaited<ReturnType<typeof scheduleJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getScheduleJobMutationKey(id);\n const swrFn = getScheduleJobMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all outbound jobs with pagination and filtering.\n\n**Filtering:**\n\n- Filter by agent ID, status, or scheduled time range.\n- Multiple statuses can be comma-separated (e.g. `status=pending,queued`).\n * @summary List outbound jobs\n */\nexport const getListJobsUrl = (params: ListJobsParams) => {\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/jobs?${stringifiedParams}`\n : `/v1/agents/jobs`;\n};\n\nexport const listJobs = async (\n params: ListJobsParams,\n options?: RequestInit\n): Promise<OutboundJobList> => {\n return customFetch<OutboundJobList>(getListJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListJobsKey = (params: ListJobsParams) =>\n [`/v1/agents/jobs`, ...(params ? [params] : [])] as const;\n\nexport type ListJobsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listJobs>>\n>;\n\n/**\n * @summary List outbound jobs\n */\nexport const useListJobs = <TError = ErrorType<ErrorResponse>>(\n params: ListJobsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listJobs>>, 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 ? getListJobsKey(params) : null));\n const swrFn = () => listJobs(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 * Cancel a pending or queued outbound job. Jobs that are already in progress or completed cannot be canceled.\n * @summary Cancel an outbound job\n */\nexport const getCancelJobUrl = (id: string) => {\n return `/v1/agents/jobs/${id}/cancel`;\n};\n\nexport const cancelJob = async (\n id: string,\n options?: RequestInit\n): Promise<OutboundJob> => {\n return customFetch<OutboundJob>(getCancelJobUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCancelJobMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelJob(id, options);\n };\n};\nexport const getCancelJobMutationKey = (id: string) =>\n [`/v1/agents/jobs/${id}/cancel`] as const;\n\nexport type CancelJobMutationResult = NonNullable<\n Awaited<ReturnType<typeof cancelJob>>\n>;\n\n/**\n * @summary Cancel an outbound job\n */\nexport const useCancelJob = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof cancelJob>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof cancelJob>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCancelJobMutationKey(id);\n const swrFn = getCancelJobMutationFetcher(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 type { ErrorResponse, Profile } from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve the current user's profile information.\n * @summary Get profile\n */\nexport const getGetProfileUrl = () => {\n return `/v1/profile`;\n};\n\nexport const getProfile = async (options?: RequestInit): Promise<Profile> => {\n return customFetch<Profile>(getGetProfileUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetProfileKey = () => [`/v1/profile`] as const;\n\nexport type GetProfileQueryResult = NonNullable<\n Awaited<ReturnType<typeof getProfile>>\n>;\n\n/**\n * @summary Get profile\n */\nexport const useGetProfile = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getProfile>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetProfileKey() : null));\n const swrFn = () => getProfile(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 { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CodeToolCreated,\n CodeToolUpdated,\n CreateToolBody,\n ErrorResponse,\n ExecuteCodeBody,\n GetToolResponse,\n ListToolsParams,\n ToolExecutionResult,\n ToolList,\n UpdateToolBody,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new code tool that can be attached to agents. Provide the tool's name, code, description, and optionally an API key.\n * @summary Create tool\n */\nexport const getCreateToolUrl = () => {\n return `/v1/tools`;\n};\n\nexport const createTool = async (\n createToolBody: CreateToolBody,\n options?: RequestInit\n): Promise<CodeToolCreated> => {\n return customFetch<CodeToolCreated>(getCreateToolUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createToolBody),\n });\n};\n\nexport const getCreateToolMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateToolBody }) => {\n return createTool(arg, options);\n };\n};\nexport const getCreateToolMutationKey = () => [`/v1/tools`] as const;\n\nexport type CreateToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof createTool>>\n>;\n\n/**\n * @summary Create tool\n */\nexport const useCreateTool = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createTool>>,\n TError,\n Key,\n CreateToolBody,\n Awaited<ReturnType<typeof createTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateToolMutationKey();\n const swrFn = getCreateToolMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all code tools with sorting.\n\nOptionally filter by `call_agent_id` to list only tools attached to a specific agent.\n * @summary List tools\n */\nexport const getListToolsUrl = (params?: ListToolsParams) => {\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/tools?${stringifiedParams}`\n : `/v1/tools`;\n};\n\nexport const listTools = async (\n params?: ListToolsParams,\n options?: RequestInit\n): Promise<ToolList> => {\n return customFetch<ToolList>(getListToolsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListToolsKey = (params?: ListToolsParams) =>\n [`/v1/tools`, ...(params ? [params] : [])] as const;\n\nexport type ListToolsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listTools>>\n>;\n\n/**\n * @summary List tools\n */\nexport const useListTools = <TError = ErrorType<ErrorResponse>>(\n params?: ListToolsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listTools>>, 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 ? getListToolsKey(params) : null));\n const swrFn = () => listTools(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 * Execute a code tool with the given parameters. Returns the result, any errors, and execution traces.\n * @summary Execute tool\n */\nexport const getExecuteCodeUrl = (id: string) => {\n return `/v1/tools/${id}/execute`;\n};\n\nexport const executeCode = async (\n id: string,\n executeCodeBody: ExecuteCodeBody,\n options?: RequestInit\n): Promise<ToolExecutionResult> => {\n return customFetch<ToolExecutionResult>(getExecuteCodeUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(executeCodeBody),\n });\n};\n\nexport const getExecuteCodeMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ExecuteCodeBody }) => {\n return executeCode(id, arg, options);\n };\n};\nexport const getExecuteCodeMutationKey = (id: string) =>\n [`/v1/tools/${id}/execute`] as const;\n\nexport type ExecuteCodeMutationResult = NonNullable<\n Awaited<ReturnType<typeof executeCode>>\n>;\n\n/**\n * @summary Execute tool\n */\nexport const useExecuteCode = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof executeCode>>,\n TError,\n Key,\n ExecuteCodeBody,\n Awaited<ReturnType<typeof executeCode>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getExecuteCodeMutationKey(id);\n const swrFn = getExecuteCodeMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single tool by ID, including its code, schema, and description.\n * @summary Get tool\n */\nexport const getGetToolUrl = (id: string) => {\n return `/v1/tools/${id}`;\n};\n\nexport const getTool = async (\n id: string,\n options?: RequestInit\n): Promise<GetToolResponse> => {\n return customFetch<GetToolResponse>(getGetToolUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetToolKey = (id: string) => [`/v1/tools/${id}`] as const;\n\nexport type GetToolQueryResult = NonNullable<\n Awaited<ReturnType<typeof getTool>>\n>;\n\n/**\n * @summary Get tool\n */\nexport const useGetTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getTool>>, 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 ? getGetToolKey(id) : null));\n const swrFn = () => getTool(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 * Update a code tool's name, description, code, or API key. All fields are optional — only provided fields are updated.\n * @summary Update tool\n */\nexport const getUpdateToolUrl = (id: string) => {\n return `/v1/tools/${id}`;\n};\n\nexport const updateTool = async (\n id: string,\n updateToolBody: UpdateToolBody,\n options?: RequestInit\n): Promise<CodeToolUpdated> => {\n return customFetch<CodeToolUpdated>(getUpdateToolUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateToolBody),\n });\n};\n\nexport const getUpdateToolMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateToolBody }) => {\n return updateTool(id, arg, options);\n };\n};\nexport const getUpdateToolMutationKey = (id: string) =>\n [`/v1/tools/${id}`] as const;\n\nexport type UpdateToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateTool>>\n>;\n\n/**\n * @summary Update tool\n */\nexport const useUpdateTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateTool>>,\n TError,\n Key,\n UpdateToolBody,\n Awaited<ReturnType<typeof updateTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateToolMutationKey(id);\n const swrFn = getUpdateToolMutationFetcher(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n AgentWebhookList,\n CreateAgentWebhookBody,\n CreateEmailAgentWebhookBody,\n CreateExtractorWebhookBody,\n DeleteWebhookResponse,\n EmailAgentWebhookList,\n ErrorResponse,\n ExtractorWebhookList,\n ListWebhookDeliveriesParams,\n Webhook,\n WebhookDeliveryList,\n WebhookTestResult,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a webhook that fires when events occur for the specified call agent.\n * @summary Create agent webhook\n */\nexport const getCreateAgentWebhookUrl = (id: string) => {\n return `/v1/agents/${id}/webhooks`;\n};\n\nexport const createAgentWebhook = async (\n id: string,\n createAgentWebhookBody: CreateAgentWebhookBody,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getCreateAgentWebhookUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentWebhookBody),\n });\n};\n\nexport const getCreateAgentWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentWebhookBody }) => {\n return createAgentWebhook(id, arg, options);\n };\n};\nexport const getCreateAgentWebhookMutationKey = (id: string) =>\n [`/v1/agents/${id}/webhooks`] as const;\n\nexport type CreateAgentWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgentWebhook>>\n>;\n\n/**\n * @summary Create agent webhook\n */\nexport const useCreateAgentWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createAgentWebhook>>,\n TError,\n Key,\n CreateAgentWebhookBody,\n Awaited<ReturnType<typeof createAgentWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateAgentWebhookMutationKey(id);\n const swrFn = getCreateAgentWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all webhooks configured for a specific call agent.\n * @summary List agent webhooks\n */\nexport const getListAgentWebhooksUrl = (id: string) => {\n return `/v1/agents/${id}/webhooks`;\n};\n\nexport const listAgentWebhooks = async (\n id: string,\n options?: RequestInit\n): Promise<AgentWebhookList> => {\n return customFetch<AgentWebhookList>(getListAgentWebhooksUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListAgentWebhooksKey = (id: string) =>\n [`/v1/agents/${id}/webhooks`] as const;\n\nexport type ListAgentWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgentWebhooks>>\n>;\n\n/**\n * @summary List agent webhooks\n */\nexport const useListAgentWebhooks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listAgentWebhooks>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListAgentWebhooksKey(id) : null));\n const swrFn = () => listAgentWebhooks(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 * Create a webhook that fires when events occur for the specified email agent.\n * @summary Create email agent webhook\n */\nexport const getCreateEmailAgentWebhookUrl = (id: string) => {\n return `/v1/email-agents/${id}/webhooks`;\n};\n\nexport const createEmailAgentWebhook = async (\n id: string,\n createEmailAgentWebhookBody: CreateEmailAgentWebhookBody,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getCreateEmailAgentWebhookUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createEmailAgentWebhookBody),\n });\n};\n\nexport const getCreateEmailAgentWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateEmailAgentWebhookBody }) => {\n return createEmailAgentWebhook(id, arg, options);\n };\n};\nexport const getCreateEmailAgentWebhookMutationKey = (id: string) =>\n [`/v1/email-agents/${id}/webhooks`] as const;\n\nexport type CreateEmailAgentWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createEmailAgentWebhook>>\n>;\n\n/**\n * @summary Create email agent webhook\n */\nexport const useCreateEmailAgentWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createEmailAgentWebhook>>,\n TError,\n Key,\n CreateEmailAgentWebhookBody,\n Awaited<ReturnType<typeof createEmailAgentWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCreateEmailAgentWebhookMutationKey(id);\n const swrFn = getCreateEmailAgentWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all webhooks configured for a specific email agent.\n * @summary List email agent webhooks\n */\nexport const getListEmailAgentWebhooksUrl = (id: string) => {\n return `/v1/email-agents/${id}/webhooks`;\n};\n\nexport const listEmailAgentWebhooks = async (\n id: string,\n options?: RequestInit\n): Promise<EmailAgentWebhookList> => {\n return customFetch<EmailAgentWebhookList>(getListEmailAgentWebhooksUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailAgentWebhooksKey = (id: string) =>\n [`/v1/email-agents/${id}/webhooks`] as const;\n\nexport type ListEmailAgentWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmailAgentWebhooks>>\n>;\n\n/**\n * @summary List email agent webhooks\n */\nexport const useListEmailAgentWebhooks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listEmailAgentWebhooks>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListEmailAgentWebhooksKey(id) : null));\n const swrFn = () => listEmailAgentWebhooks(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 * Create a webhook that fires when extraction events occur for the specified extractor.\n * @summary Create extractor webhook\n */\nexport const getCreateExtractorWebhookUrl = (id: string) => {\n return `/v1/extractors/${id}/webhooks`;\n};\n\nexport const createExtractorWebhook = async (\n id: string,\n createExtractorWebhookBody: CreateExtractorWebhookBody,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getCreateExtractorWebhookUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorWebhookBody),\n });\n};\n\nexport const getCreateExtractorWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateExtractorWebhookBody }) => {\n return createExtractorWebhook(id, arg, options);\n };\n};\nexport const getCreateExtractorWebhookMutationKey = (id: string) =>\n [`/v1/extractors/${id}/webhooks`] as const;\n\nexport type CreateExtractorWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createExtractorWebhook>>\n>;\n\n/**\n * @summary Create extractor webhook\n */\nexport const useCreateExtractorWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createExtractorWebhook>>,\n TError,\n Key,\n CreateExtractorWebhookBody,\n Awaited<ReturnType<typeof createExtractorWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateExtractorWebhookMutationKey(id);\n const swrFn = getCreateExtractorWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all webhooks configured for a specific extractor.\n * @summary List extractor webhooks\n */\nexport const getListWebhooksUrl = (id: string) => {\n return `/v1/extractors/${id}/webhooks`;\n};\n\nexport const listWebhooks = async (\n id: string,\n options?: RequestInit\n): Promise<ExtractorWebhookList> => {\n return customFetch<ExtractorWebhookList>(getListWebhooksUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWebhooksKey = (id: string) =>\n [`/v1/extractors/${id}/webhooks`] as const;\n\nexport type ListWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWebhooks>>\n>;\n\n/**\n * @summary List extractor webhooks\n */\nexport const useListWebhooks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listWebhooks>>, 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 ? getListWebhooksKey(id) : null));\n const swrFn = () => listWebhooks(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 * Permanently delete a webhook. This action is irreversible.\n * @summary Delete webhook\n */\nexport const getDeleteWebhookUrl = (id: string) => {\n return `/v1/webhooks/${id}`;\n};\n\nexport const deleteWebhook = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteWebhookResponse> => {\n return customFetch<DeleteWebhookResponse>(getDeleteWebhookUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteWebhook(id, options);\n };\n};\nexport const getDeleteWebhookMutationKey = (id: string) =>\n [`/v1/webhooks/${id}`] as const;\n\nexport type DeleteWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteWebhook>>\n>;\n\n/**\n * @summary Delete webhook\n */\nexport const useDeleteWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteWebhook>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteWebhookMutationKey(id);\n const swrFn = getDeleteWebhookMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single webhook by ID. The authentication header value is never exposed — only `has_auth` indicates whether authentication is configured.\n * @summary Get webhook\n */\nexport const getGetWebhookUrl = (id: string) => {\n return `/v1/webhooks/${id}`;\n};\n\nexport const getWebhook = async (\n id: string,\n options?: RequestInit\n): Promise<Webhook> => {\n return customFetch<Webhook>(getGetWebhookUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetWebhookKey = (id: string) => [`/v1/webhooks/${id}`] as const;\n\nexport type GetWebhookQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWebhook>>\n>;\n\n/**\n * @summary Get webhook\n */\nexport const useGetWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getWebhook>>, 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 ? getGetWebhookKey(id) : null));\n const swrFn = () => getWebhook(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 * List delivery attempts for a specific webhook, with pagination and sorting. Useful for debugging webhook issues.\n * @summary List webhook deliveries\n */\nexport const getListWebhookDeliveriesUrl = (\n id: string,\n params?: ListWebhookDeliveriesParams\n) => {\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/webhooks/${id}/deliveries?${stringifiedParams}`\n : `/v1/webhooks/${id}/deliveries`;\n};\n\nexport const listWebhookDeliveries = async (\n id: string,\n params?: ListWebhookDeliveriesParams,\n options?: RequestInit\n): Promise<WebhookDeliveryList> => {\n return customFetch<WebhookDeliveryList>(\n getListWebhookDeliveriesUrl(id, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWebhookDeliveriesKey = (\n id: string,\n params?: ListWebhookDeliveriesParams\n) => [`/v1/webhooks/${id}/deliveries`, ...(params ? [params] : [])] as const;\n\nexport type ListWebhookDeliveriesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWebhookDeliveries>>\n>;\n\n/**\n * @summary List webhook deliveries\n */\nexport const useListWebhookDeliveries = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: ListWebhookDeliveriesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWebhookDeliveries>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListWebhookDeliveriesKey(id, params) : null));\n const swrFn = () => listWebhookDeliveries(id, 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 * Send a test event to a webhook endpoint. Returns the HTTP status code, response time, and any errors.\n * @summary Test webhook\n */\nexport const getTestWebhookUrl = (id: string) => {\n return `/v1/webhooks/${id}/test`;\n};\n\nexport const testWebhook = async (\n id: string,\n options?: RequestInit\n): Promise<WebhookTestResult> => {\n return customFetch<WebhookTestResult>(getTestWebhookUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getTestWebhookMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return testWebhook(id, options);\n };\n};\nexport const getTestWebhookMutationKey = (id: string) =>\n [`/v1/webhooks/${id}/test`] as const;\n\nexport type TestWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof testWebhook>>\n>;\n\n/**\n * @summary Test webhook\n */\nexport const useTestWebhook = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof testWebhook>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof testWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getTestWebhookMutationKey(id);\n const swrFn = getTestWebhookMutationFetcher(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 */\n\nexport type AgentBackgroundSounds =\n (typeof AgentBackgroundSounds)[keyof typeof AgentBackgroundSounds];\n\nexport const AgentBackgroundSounds = {\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 AgentDirection =\n (typeof AgentDirection)[keyof typeof AgentDirection];\n\nexport const AgentDirection = {\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 AgentLanguage = (typeof AgentLanguage)[keyof typeof AgentLanguage];\n\nexport const AgentLanguage = {\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 AgentLlmModel = (typeof AgentLlmModel)[keyof typeof AgentLlmModel];\n\nexport const AgentLlmModel = {\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 \"CLAUDE-sonnet-46\": \"CLAUDE-sonnet-4.6\",\n \"CLAUDE-haiku-45\": \"CLAUDE-haiku-4.5\",\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 AgentSttModel = (typeof AgentSttModel)[keyof typeof AgentSttModel];\n\nexport const AgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n \"ELEVENLABS-SCRIBE-V2-REALTIME\": \"ELEVENLABS-SCRIBE-V2-REALTIME\",\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 AgentTtsModel = (typeof AgentTtsModel)[keyof typeof AgentTtsModel];\n\nexport const AgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\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 AgentTtsProvider =\n (typeof AgentTtsProvider)[keyof typeof AgentTtsProvider];\n\nexport const AgentTtsProvider = {\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 CallDetailDirection =\n (typeof CallDetailDirection)[keyof typeof CallDetailDirection];\n\nexport const CallDetailDirection = {\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 CallDirection = (typeof CallDirection)[keyof typeof CallDirection];\n\nexport const CallDirection = {\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\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 \"CLAUDE-sonnet-46\": \"CLAUDE-sonnet-4.6\",\n \"CLAUDE-haiku-45\": \"CLAUDE-haiku-4.5\",\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 \"ELEVENLABS-SCRIBE-V2-REALTIME\": \"ELEVENLABS-SCRIBE-V2-REALTIME\",\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-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 CreateEmailBodyDirection =\n (typeof CreateEmailBodyDirection)[keyof typeof CreateEmailBodyDirection];\n\nexport const CreateEmailBodyDirection = {\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 CreateExtractorJobBodyExtractorType =\n (typeof CreateExtractorJobBodyExtractorType)[keyof typeof CreateExtractorJobBodyExtractorType];\n\nexport const CreateExtractorJobBodyExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\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 EmailCreatedDirection =\n (typeof EmailCreatedDirection)[keyof typeof EmailCreatedDirection];\n\nexport const EmailCreatedDirection = {\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 EmailDetailDirection =\n (typeof EmailDetailDirection)[keyof typeof EmailDetailDirection];\n\nexport const EmailDetailDirection = {\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 EmailDirection =\n (typeof EmailDirection)[keyof typeof EmailDirection];\n\nexport const EmailDirection = {\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\n/**\n * Type of extractor\n */\nexport type ExtractorJobExtractorType =\n (typeof ExtractorJobExtractorType)[keyof typeof ExtractorJobExtractorType];\n\nexport const ExtractorJobExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\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 GetOAuthUrlCodeChallengeMethod =\n (typeof GetOAuthUrlCodeChallengeMethod)[keyof typeof GetOAuthUrlCodeChallengeMethod];\n\nexport const GetOAuthUrlCodeChallengeMethod = {\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 GetOAuthUrlProvider =\n (typeof GetOAuthUrlProvider)[keyof typeof GetOAuthUrlProvider];\n\nexport const GetOAuthUrlProvider = {\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 ListApiKeysIncludeRevoked =\n (typeof ListApiKeysIncludeRevoked)[keyof typeof ListApiKeysIncludeRevoked];\n\nexport const ListApiKeysIncludeRevoked = {\n true: \"true\",\n false: \"false\",\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 ListArtifactsSortBy =\n (typeof ListArtifactsSortBy)[keyof typeof ListArtifactsSortBy];\n\nexport const ListArtifactsSortBy = {\n created_at: \"created_at\",\n updated_at: \"updated_at\",\n document_name: \"document_name\",\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 ListArtifactsSortOrder =\n (typeof ListArtifactsSortOrder)[keyof typeof ListArtifactsSortOrder];\n\nexport const ListArtifactsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListCallFeedbackSortBy =\n (typeof ListCallFeedbackSortBy)[keyof typeof ListCallFeedbackSortBy];\n\nexport const ListCallFeedbackSortBy = {\n created_at: \"created_at\",\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 ListCallFeedbackSortOrder =\n (typeof ListCallFeedbackSortOrder)[keyof typeof ListCallFeedbackSortOrder];\n\nexport const ListCallFeedbackSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListCallsDirection =\n (typeof ListCallsDirection)[keyof typeof ListCallsDirection];\n\nexport const ListCallsDirection = {\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 ListCallsSortBy =\n (typeof ListCallsSortBy)[keyof typeof ListCallsSortBy];\n\nexport const ListCallsSortBy = {\n started_at: \"started_at\",\n ended_at: \"ended_at\",\n created_at: \"created_at\",\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 ListCallsSortOrder =\n (typeof ListCallsSortOrder)[keyof typeof ListCallsSortOrder];\n\nexport const ListCallsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListCallsStatus =\n (typeof ListCallsStatus)[keyof typeof ListCallsStatus];\n\nexport const ListCallsStatus = {\n COMPLETED: \"COMPLETED\",\n TRANSFERRED: \"TRANSFERRED\",\n DISCONNECTED: \"DISCONNECTED\",\n UNEXPECTED_SHUTDOWN: \"UNEXPECTED_SHUTDOWN\",\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 ListClaimsSortBy =\n (typeof ListClaimsSortBy)[keyof typeof ListClaimsSortBy];\n\nexport const ListClaimsSortBy = {\n created_at: \"created_at\",\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 ListClaimsSortOrder =\n (typeof ListClaimsSortOrder)[keyof typeof ListClaimsSortOrder];\n\nexport const ListClaimsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListEmailAgentsSortBy =\n (typeof ListEmailAgentsSortBy)[keyof typeof ListEmailAgentsSortBy];\n\nexport const ListEmailAgentsSortBy = {\n created_at: \"created_at\",\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 ListEmailAgentsSortOrder =\n (typeof ListEmailAgentsSortOrder)[keyof typeof ListEmailAgentsSortOrder];\n\nexport const ListEmailAgentsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListEmailsSortBy =\n (typeof ListEmailsSortBy)[keyof typeof ListEmailsSortBy];\n\nexport const ListEmailsSortBy = {\n created_at: \"created_at\",\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 ListEmailsSortOrder =\n (typeof ListEmailsSortOrder)[keyof typeof ListEmailsSortOrder];\n\nexport const ListEmailsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListExtractorJobsExtractorType =\n (typeof ListExtractorJobsExtractorType)[keyof typeof ListExtractorJobsExtractorType];\n\nexport const ListExtractorJobsExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\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 ListExtractorJobsSortBy =\n (typeof ListExtractorJobsSortBy)[keyof typeof ListExtractorJobsSortBy];\n\nexport const ListExtractorJobsSortBy = {\n created_at: \"created_at\",\n started_at: \"started_at\",\n completed_at: \"completed_at\",\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 ListExtractorJobsSortOrder =\n (typeof ListExtractorJobsSortOrder)[keyof typeof ListExtractorJobsSortOrder];\n\nexport const ListExtractorJobsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListExtractorJobsStatus =\n (typeof ListExtractorJobsStatus)[keyof typeof ListExtractorJobsStatus];\n\nexport const ListExtractorJobsStatus = {\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n failed: \"failed\",\n canceled: \"canceled\",\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 ListExtractorsSortBy =\n (typeof ListExtractorsSortBy)[keyof typeof ListExtractorsSortBy];\n\nexport const ListExtractorsSortBy = {\n created_at: \"created_at\",\n name: \"name\",\n version: \"version\",\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 ListExtractorsSortOrder =\n (typeof ListExtractorsSortOrder)[keyof typeof ListExtractorsSortOrder];\n\nexport const ListExtractorsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListExtractsSortBy =\n (typeof ListExtractsSortBy)[keyof typeof ListExtractsSortBy];\n\nexport const ListExtractsSortBy = {\n created_at: \"created_at\",\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 ListExtractsSortOrder =\n (typeof ListExtractsSortOrder)[keyof typeof ListExtractsSortOrder];\n\nexport const ListExtractsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListJobsStatusItem =\n (typeof ListJobsStatusItem)[keyof typeof ListJobsStatusItem];\n\nexport const ListJobsStatusItem = {\n pending: \"pending\",\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n canceled: \"canceled\",\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 ListToolsSortBy =\n (typeof ListToolsSortBy)[keyof typeof ListToolsSortBy];\n\nexport const ListToolsSortBy = {\n created_at: \"created_at\",\n updated_at: \"updated_at\",\n name: \"name\",\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 ListToolsSortOrder =\n (typeof ListToolsSortOrder)[keyof typeof ListToolsSortOrder];\n\nexport const ListToolsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 ListWebhookDeliveriesSortOrder =\n (typeof ListWebhookDeliveriesSortOrder)[keyof typeof ListWebhookDeliveriesSortOrder];\n\nexport const ListWebhookDeliveriesSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\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 OutboundJobStatus =\n (typeof OutboundJobStatus)[keyof typeof OutboundJobStatus];\n\nexport const OutboundJobStatus = {\n pending: \"pending\",\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n canceled: \"canceled\",\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 UpdateAgentModelsBodyLanguage =\n (typeof UpdateAgentModelsBodyLanguage)[keyof typeof UpdateAgentModelsBodyLanguage];\n\nexport const UpdateAgentModelsBodyLanguage = {\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 UpdateAgentModelsBodyLlmModel =\n (typeof UpdateAgentModelsBodyLlmModel)[keyof typeof UpdateAgentModelsBodyLlmModel];\n\nexport const UpdateAgentModelsBodyLlmModel = {\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 \"CLAUDE-sonnet-46\": \"CLAUDE-sonnet-4.6\",\n \"CLAUDE-haiku-45\": \"CLAUDE-haiku-4.5\",\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 UpdateAgentModelsBodySttModel =\n (typeof UpdateAgentModelsBodySttModel)[keyof typeof UpdateAgentModelsBodySttModel];\n\nexport const UpdateAgentModelsBodySttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n \"ELEVENLABS-SCRIBE-V2-REALTIME\": \"ELEVENLABS-SCRIBE-V2-REALTIME\",\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 UpdateAgentModelsBodyTtsModel =\n (typeof UpdateAgentModelsBodyTtsModel)[keyof typeof UpdateAgentModelsBodyTtsModel];\n\nexport const UpdateAgentModelsBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\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 UpdateAgentModelsBodyTtsProvider =\n (typeof UpdateAgentModelsBodyTtsProvider)[keyof typeof UpdateAgentModelsBodyTtsProvider];\n\nexport const UpdateAgentModelsBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n"]}