@avallon-labs/sdk 41.0.0 → 41.1.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/analytics/analytics.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/cases/cases.ts","../generated/endpoints/chat-agents/chat-agents.ts","../generated/endpoints/chats/chats.ts","../generated/endpoints/dispatches/dispatches.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/inboxes/inboxes.ts","../generated/endpoints/jobs/jobs.ts","../generated/endpoints/profiles/profiles.ts","../generated/endpoints/schedules/schedules.ts","../generated/endpoints/secrets/secrets.ts","../generated/endpoints/team/team.ts","../generated/endpoints/tools/tools.ts","../generated/endpoints/voice-agents/voice-agents.ts","../generated/endpoints/webhooks/webhooks.ts","../generated/endpoints/worker-runs/worker-runs.ts","../generated/endpoints/worker/worker.ts","../generated/endpoints/workers/workers.ts","../generated/models/addCaseLinksBodyEntitiesItemEntityType.ts","../generated/models/analyticsTimeSeriesGranularity.ts","../generated/models/analyticsTimeSeriesMetric.ts","../generated/models/apiKeyCreatedRole.ts","../generated/models/apiKeyRole.ts","../generated/models/artifactDetailDataStatus.ts","../generated/models/artifactStatus.ts","../generated/models/callDetailDirection.ts","../generated/models/callDirection.ts","../generated/models/caseLinkEntityType.ts","../generated/models/chatHistoryMessagesItemRole.ts","../generated/models/chatMessageRole.ts","../generated/models/createApiKeyBodyEnvironment.ts","../generated/models/createApiKeyBodyRole.ts","../generated/models/createEmailBodyDirection.ts","../generated/models/createInboxBodyProcessorType.ts","../generated/models/createVoiceAgentBodyCallProcessorType.ts","../generated/models/createVoiceAgentBodyDirection.ts","../generated/models/createVoiceAgentBodyLanguage.ts","../generated/models/createVoiceAgentBodyLlmModel.ts","../generated/models/createVoiceAgentBodySttModel.ts","../generated/models/createVoiceAgentBodyTtsModel.ts","../generated/models/createVoiceAgentBodyTtsProvider.ts","../generated/models/dispatchStatus.ts","../generated/models/dispatchTargetType.ts","../generated/models/dispatchTriggerType.ts","../generated/models/emailCreatedDirection.ts","../generated/models/emailDetailDirection.ts","../generated/models/emailDirection.ts","../generated/models/emailReplyResult.ts","../generated/models/getAnalyticsTimeSeriesGranularity.ts","../generated/models/getAnalyticsTimeSeriesGroupBy.ts","../generated/models/getAnalyticsTimeSeriesMetric.ts","../generated/models/getOAuthUrlCodeChallengeMethod.ts","../generated/models/getOAuthUrlProvider.ts","../generated/models/inboxProcessorType.ts","../generated/models/listApiKeysIncludeRevoked.ts","../generated/models/listArtifactsSortBy.ts","../generated/models/listArtifactsSortOrder.ts","../generated/models/listArtifactsStatus.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/listCaseLinksEntityType.ts","../generated/models/listCaseLinksSortBy.ts","../generated/models/listCaseLinksSortOrder.ts","../generated/models/listCasesSortBy.ts","../generated/models/listCasesSortOrder.ts","../generated/models/listChatAgentsSortBy.ts","../generated/models/listChatAgentsSortOrder.ts","../generated/models/listChatMessagesSortBy.ts","../generated/models/listChatMessagesSortOrder.ts","../generated/models/listChatsSortBy.ts","../generated/models/listChatsSortOrder.ts","../generated/models/listDispatchesSortBy.ts","../generated/models/listDispatchesSortOrder.ts","../generated/models/listDispatchesTriggerType.ts","../generated/models/listEmailsSortBy.ts","../generated/models/listEmailsSortOrder.ts","../generated/models/listEmailThreadsSortBy.ts","../generated/models/listEmailThreadsSortOrder.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/listInboxesSortBy.ts","../generated/models/listInboxesSortOrder.ts","../generated/models/listJobsStatusItem.ts","../generated/models/listSchedulesRuleType.ts","../generated/models/listSchedulesSortBy.ts","../generated/models/listSchedulesSortOrder.ts","../generated/models/listSecretsSortBy.ts","../generated/models/listSecretsSortOrder.ts","../generated/models/listToolsSortBy.ts","../generated/models/listToolsSortOrder.ts","../generated/models/listVoiceAgentVersionsSortBy.ts","../generated/models/listVoiceAgentVersionsSortOrder.ts","../generated/models/listWebhookDeliveriesSortOrder.ts","../generated/models/listWorkerRunsSortBy.ts","../generated/models/listWorkerRunsSortOrder.ts","../generated/models/listWorkerRunsStatus.ts","../generated/models/listWorkersSortBy.ts","../generated/models/listWorkersSortOrder.ts","../generated/models/listWorkerVersionsSortBy.ts","../generated/models/listWorkerVersionsSortOrder.ts","../generated/models/outboundJobEnvironment.ts","../generated/models/outboundJobStatus.ts","../generated/models/profilePermissionsItem.ts","../generated/models/profileRole.ts","../generated/models/promotedVoiceAgentVersionEnvironment.ts","../generated/models/promoteVoiceAgentVersionBodyEnvironment.ts","../generated/models/scheduleJobBodyEnvironment.ts","../generated/models/teamInvitationState.ts","../generated/models/teamMemberRole.ts","../generated/models/updateApiKeyBodyRole.ts","../generated/models/updateInboxBodyProcessorType.ts","../generated/models/updateMemberRoleBodyRole.ts","../generated/models/updateVoiceAgentBodyCallProcessorType.ts","../generated/models/updateVoiceAgentModelsBodyLanguage.ts","../generated/models/updateVoiceAgentModelsBodyLlmModel.ts","../generated/models/updateVoiceAgentModelsBodySttModel.ts","../generated/models/updateVoiceAgentModelsBodyTtsModel.ts","../generated/models/updateVoiceAgentModelsBodyTtsProvider.ts","../generated/models/voiceAgentBackgroundSounds.ts","../generated/models/voiceAgentDirection.ts","../generated/models/voiceAgentLanguage.ts","../generated/models/voiceAgentLlmModel.ts","../generated/models/voiceAgentNoiseCancellation.ts","../generated/models/voiceAgentSttModel.ts","../generated/models/voiceAgentTtsModel.ts","../generated/models/voiceAgentTtsProvider.ts","../generated/models/voiceAgentVersionActiveEnvironmentsItem.ts","../generated/models/voiceAgentVersionDetailActiveEnvironmentsItem.ts","../generated/models/voiceAgentVersionDetailBackgroundSounds.ts","../generated/models/voiceAgentVersionDetailDirection.ts","../generated/models/voiceAgentVersionDetailLanguage.ts","../generated/models/voiceAgentVersionDetailLlmModel.ts","../generated/models/voiceAgentVersionDetailNoiseCancellation.ts","../generated/models/voiceAgentVersionDetailSttModel.ts","../generated/models/voiceAgentVersionDetailTtsModel.ts","../generated/models/voiceAgentVersionDetailTtsProvider.ts","../generated/models/voiceAgentWithTestPhoneNumberBackgroundSounds.ts","../generated/models/voiceAgentWithTestPhoneNumberDirection.ts","../generated/models/voiceAgentWithTestPhoneNumberLanguage.ts","../generated/models/voiceAgentWithTestPhoneNumberLlmModel.ts","../generated/models/voiceAgentWithTestPhoneNumberNoiseCancellation.ts","../generated/models/voiceAgentWithTestPhoneNumberSttModel.ts","../generated/models/voiceAgentWithTestPhoneNumberTtsModel.ts","../generated/models/voiceAgentWithTestPhoneNumberTtsProvider.ts","../generated/models/workerEnvironment.ts","../generated/models/workerMcpName.ts","../generated/models/workerMcpOutputName.ts","../generated/models/workerPermission.ts","../generated/models/workerRunCreatedStatus.ts","../generated/models/workerRunStatus.ts"],"names":["useSwr","useSWRMutation"],"mappings":";;;;AAcA,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;A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AAmB,iBAAA;AAAA,EACnB,wBAAA,EAA0B,wBAAA;AAAA,EAC1B,aAAA,EAAe,aAAA;AAAA,EACf,iBAAA,EAAmB;AACrB;;;ACPO,IAAM,sBAAA,GAAyB;AAAA,EACpC,OAAA,EAAS,SAAA;AAAA,EACT,MAAA,EAAQ,QAAA;AAAA,EACR,QAAA,EAAU,UAAA;AAAA,EACV,WAAA,EAAa,aAAA;AAAA,EACb,SAAA,EAAW,WAAA;AAAA,EACX,MAAA,EAAQ,QAAA;AAAA,EACR,QAAA,EAAU;AACZ;;;ACLO,IAAM,eAAA,GAAkB;AAAA,EAC7B,OAAA,EAAS,SAAA;AAAA,EACT,MAAA,EAAQ,QAAA;AAAA,EACR,QAAA,EAAU,UAAA;AAAA,EACV,WAAA,EAAa,aAAA;AAAA,EACb,SAAA,EAAW,WAAA;AAAA,EACX,MAAA,EAAQ,QAAA;AAAA,EACR,QAAA,EAAU;AACZ","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 * The API's `{ data, message, meta }` envelope is returned verbatim — the\n * generated types describe the envelope, so callers read `result.data`, and\n * paginated endpoints expose the total via `result.meta.total`.\n */\n\n// --------------------------------------------------------------------------\n// Configuration\n// --------------------------------------------------------------------------\n\nlet config: AvallonConfig = {\n baseUrl: \"https://api.avallon.ai\",\n};\n\nexport type AvallonConfig = {\n baseUrl?: string;\n apiKey?: string;\n /**\n * Token provider - can be sync or async.\n * Async allows the application to check expiry and refresh before returning.\n */\n getAccessToken?: () => string | null | Promise<string | null>;\n};\n\n/** Configure the SDK at runtime */\nexport function configure(newConfig: Partial<AvallonConfig>) {\n config = { ...config, ...newConfig };\n}\n\n/** Get current config */\nexport function getConfig(): AvallonConfig {\n return { ...config };\n}\n\n// --------------------------------------------------------------------------\n// Fetch wrapper\n// --------------------------------------------------------------------------\n\n/** Shared fetch logic */\nasync function doFetch<T>(\n url: string,\n options: RequestInit,\n withAuth: boolean\n): Promise<T> {\n const fullUrl = url.startsWith(\"http\") ? url : `${config.baseUrl}${url}`;\n\n const headers = new Headers(options.headers);\n\n // Only set Content-Type for requests with JSON body\n // (allows file uploads to set their own Content-Type)\n if (options.body && typeof options.body === \"string\") {\n headers.set(\"Content-Type\", \"application/json\");\n }\n\n if (withAuth) {\n const accessToken = await config.getAccessToken?.();\n if (accessToken) {\n headers.set(\"Authorization\", `Bearer ${accessToken}`);\n } else if (config.apiKey) {\n headers.set(\"x-api-key\", config.apiKey);\n }\n }\n\n const response = await fetch(fullUrl, {\n ...options,\n headers,\n });\n\n // Parse response based on content type\n const contentType = response.headers.get(\"Content-Type\") ?? \"\";\n let body: unknown;\n\n if (response.status === 204) {\n // No content\n body = {};\n } else if (contentType.includes(\"application/json\")) {\n body = await response.json().catch(() => ({}));\n } else {\n // Non-JSON response (shouldn't happen with our API, but handle gracefully)\n const text = await response.text().catch(() => \"\");\n body = { message: text };\n }\n\n // Throw on non-2xx - SWR will catch this as `error`\n if (!response.ok) {\n throw new AvallonError(response.status, body as AvallonError[\"body\"]);\n }\n\n return 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 type {\n ErrorResponse,\n GetAnalyticsTimeSeriesEnvelope,\n GetAnalyticsTimeSeriesParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve a tenant-scoped time series for a single processing-volume metric.\n\nPick a `metric` (worker runs, documents, or pages), a date range, a bucket `granularity` (day/week/month), and optionally a `group_by` dimension (e.g. worker runs grouped by worker). The series is sparse (only buckets with data) over the half-open window `[from, to)`.\n\n`data` is an array of per-metric results; today it always contains exactly one entry (the requested metric).\n * @summary Get analytics time series\n */\nexport const getGetAnalyticsTimeSeriesUrl = (\n params: GetAnalyticsTimeSeriesParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/analytics/timeseries?${stringifiedParams}`\n : `/v1/analytics/timeseries`;\n};\n\nexport const getAnalyticsTimeSeries = async (\n params: GetAnalyticsTimeSeriesParams,\n options?: RequestInit\n): Promise<GetAnalyticsTimeSeriesEnvelope> => {\n return customFetch<GetAnalyticsTimeSeriesEnvelope>(\n getGetAnalyticsTimeSeriesUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetAnalyticsTimeSeriesKey = (\n params: GetAnalyticsTimeSeriesParams\n) => [`/v1/analytics/timeseries`, ...(params ? [params] : [])] as const;\n\nexport type GetAnalyticsTimeSeriesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAnalyticsTimeSeries>>\n>;\n\n/**\n * @summary Get analytics time series\n */\nexport const useGetAnalyticsTimeSeries = <TError = ErrorType<ErrorResponse>>(\n params: GetAnalyticsTimeSeriesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getAnalyticsTimeSeries>>,\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 ? getGetAnalyticsTimeSeriesKey(params) : null));\n const swrFn = () => getAnalyticsTimeSeries(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 CreateApiKeyBody,\n CreateApiKeyEnvelope,\n ErrorResponse,\n ListApiKeysEnvelope,\n ListApiKeysParams,\n RevokeApiKeyEnvelope,\n UpdateApiKeyBody,\n UpdateApiKeyEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListApiKeysEnvelope> => {\n return customFetch<ListApiKeysEnvelope>(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<CreateApiKeyEnvelope> => {\n return customFetch<CreateApiKeyEnvelope>(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<RevokeApiKeyEnvelope> => {\n return customFetch<RevokeApiKeyEnvelope>(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 * Update mutable fields of an API key. Currently only `role` can be updated.\n\nThe caller's role caps the maximum role they can grant — an `admin` cannot promote a key to `avallon_admin`.\n * @summary Update API key\n */\nexport const getUpdateApiKeyUrl = (id: string) => {\n return `/platform/api-keys/${id}`;\n};\n\nexport const updateApiKey = async (\n id: string,\n updateApiKeyBody: UpdateApiKeyBody,\n options?: RequestInit\n): Promise<UpdateApiKeyEnvelope> => {\n return customFetch<UpdateApiKeyEnvelope>(getUpdateApiKeyUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateApiKeyBody),\n });\n};\n\nexport const getUpdateApiKeyMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateApiKeyBody }) => {\n return updateApiKey(id, arg, options);\n };\n};\nexport const getUpdateApiKeyMutationKey = (id: string) =>\n [`/platform/api-keys/${id}`] as const;\n\nexport type UpdateApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateApiKey>>\n>;\n\n/**\n * @summary Update API key\n */\nexport const useUpdateApiKey = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateApiKey>>,\n TError,\n Key,\n UpdateApiKeyBody,\n Awaited<ReturnType<typeof updateApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateApiKeyMutationKey(id);\n const swrFn = getUpdateApiKeyMutationFetcher(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 CreateArtifactBody,\n CreateArtifactEnvelope,\n DeleteArtifactEnvelope,\n ErrorResponse,\n GetArtifactEnvelope,\n GetArtifactMetadataKeysEnvelope,\n GetArtifactMetadataKeysParams,\n GetArtifactStatusSummaryEnvelope,\n GetArtifactStatusSummaryParams,\n GetArtifactUploadUrlBody,\n GetArtifactUploadUrlEnvelope,\n ListArtifactsEnvelope,\n ListArtifactsParams,\n UpdateArtifactMetadataBody,\n UpdateArtifactMetadataEnvelope,\n UploadFileBody,\n UploadFileEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<CreateArtifactEnvelope> => {\n return customFetch<CreateArtifactEnvelope>(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**Case Filtering:**\n\nUse `case_id` to return only artifacts linked to a case. This reads the case links\ncreated via `POST /v1/cases/{caseId}/links`, and is independent of any\n`metadata.case_id` an artifact may carry.\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListArtifactsEnvelope> => {\n return customFetch<ListArtifactsEnvelope>(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, extracted content, and chunk-annotated content.\n\nThe response always includes `content_with_chunkids_md`: the parsed content annotated with `[chunk_id=...]` markers when the artifact has parsed chunks. Chunk IDs are stable citation anchors — cite them to attribute extracted values to their source location.\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<GetArtifactEnvelope> => {\n return customFetch<GetArtifactEnvelope>(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 * Soft-delete an artifact. Soft-deleted artifacts and their chunks no longer appear in any read.\n * @summary Delete artifact\n */\nexport const getDeleteArtifactUrl = (id: string) => {\n return `/v1/artifacts/${id}`;\n};\n\nexport const deleteArtifact = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteArtifactEnvelope> => {\n return customFetch<DeleteArtifactEnvelope>(getDeleteArtifactUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteArtifactMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteArtifact(id, options);\n };\n};\nexport const getDeleteArtifactMutationKey = (id: string) =>\n [`/v1/artifacts/${id}`] as const;\n\nexport type DeleteArtifactMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteArtifact>>\n>;\n\n/**\n * @summary Delete artifact\n */\nexport const useDeleteArtifact = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteArtifact>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteArtifact>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteArtifactMutationKey(id);\n const swrFn = getDeleteArtifactMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetArtifactMetadataKeysEnvelope> => {\n return customFetch<GetArtifactMetadataKeysEnvelope>(\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 * Count the artifacts in a scope, broken down by processing status.\n\nDefine the scope with bracket notation (e.g. `scope[email_id]=abc-123`). At least one key is required; multiple keys are combined with AND logic.\n * @summary Get artifact status summary\n */\nexport const getGetArtifactStatusSummaryUrl = (\n params: GetArtifactStatusSummaryParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/artifacts/status-summary?${stringifiedParams}`\n : `/v1/artifacts/status-summary`;\n};\n\nexport const getArtifactStatusSummary = async (\n params: GetArtifactStatusSummaryParams,\n options?: RequestInit\n): Promise<GetArtifactStatusSummaryEnvelope> => {\n return customFetch<GetArtifactStatusSummaryEnvelope>(\n getGetArtifactStatusSummaryUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetArtifactStatusSummaryKey = (\n params: GetArtifactStatusSummaryParams\n) => [`/v1/artifacts/status-summary`, ...(params ? [params] : [])] as const;\n\nexport type GetArtifactStatusSummaryQueryResult = NonNullable<\n Awaited<ReturnType<typeof getArtifactStatusSummary>>\n>;\n\n/**\n * @summary Get artifact status summary\n */\nexport const useGetArtifactStatusSummary = <TError = ErrorType<ErrorResponse>>(\n params: GetArtifactStatusSummaryParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getArtifactStatusSummary>>,\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 ? getGetArtifactStatusSummaryKey(params) : null));\n const swrFn = () => getArtifactStatusSummary(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<GetArtifactUploadUrlEnvelope> => {\n return customFetch<GetArtifactUploadUrlEnvelope>(\n getGetArtifactUploadUrlUrl(),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(getArtifactUploadUrlBody),\n }\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<UpdateArtifactMetadataEnvelope> => {\n return customFetch<UpdateArtifactMetadataEnvelope>(\n getUpdateArtifactMetadataUrl(id),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateArtifactMetadataBody),\n }\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<UploadFileEnvelope> => {\n return customFetch<UploadFileEnvelope>(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ErrorResponse,\n GetOAuthUrlEnvelope,\n GetOAuthUrlParams,\n GetSessionTokenBody,\n GetSessionTokenEnvelope,\n PartnerJwks,\n PartnerLaunchEnvelope,\n PartnerLaunchParams,\n RefreshTokenBody,\n RefreshTokenEnvelope,\n RequestPasswordResetBody,\n RequestPasswordResetEnvelope,\n ResetPasswordBody,\n ResetPasswordEnvelope,\n SignInBody,\n SignInEnvelope,\n SignUpBody,\n SignUpEnvelope,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new user account with email and password. When the response includes a pending_authentication_token, the account requires email verification: complete it via sign-in (type: email_otp) with the emailed one-time password and this token.\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<SignUpEnvelope> => {\n return customFetchNoAuth<SignUpEnvelope>(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. If the password is correct but the email is not verified yet, responds 403 with `data.pending_authentication_token` and a fresh verification code is emailed; complete verification via **Email OTP**. Each password attempt invalidates earlier codes and tokens, so always use the most recent pair — repeating the password sign-in is also how a new code is requested.\n- **OAuth:** Authorization code from OAuth flow (social or enterprise SSO). Pass the `provider` the flow was started with so the code is exchanged against the system that issued it. `verifier` is only required when the flow was started with a `code_challenge` — see **Get OAuth sign-in URL**.\n- **Email OTP:** One-time password sent to email. Include the `pending_authentication_token` from sign-up, or from the 403 returned by an unverified user's password sign-in, when completing email verification.\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<SignInEnvelope> => {\n return customFetchNoAuth<SignInEnvelope>(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 * Start password recovery for an email/password account. When the email belongs to an account, a reset link is emailed to it. The response is 200 regardless, and does not reveal whether an account exists.\n * @summary Request password reset\n */\nexport const getRequestPasswordResetUrl = () => {\n return `/v1/auth/request-password-reset`;\n};\n\nexport const requestPasswordReset = async (\n requestPasswordResetBody: RequestPasswordResetBody,\n options?: RequestInit\n): Promise<RequestPasswordResetEnvelope> => {\n return customFetchNoAuth<RequestPasswordResetEnvelope>(\n getRequestPasswordResetUrl(),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(requestPasswordResetBody),\n }\n );\n};\n\nexport const getRequestPasswordResetMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: RequestPasswordResetBody }) => {\n return requestPasswordReset(arg, options);\n };\n};\nexport const getRequestPasswordResetMutationKey = () =>\n [`/v1/auth/request-password-reset`] as const;\n\nexport type RequestPasswordResetMutationResult = NonNullable<\n Awaited<ReturnType<typeof requestPasswordReset>>\n>;\n\n/**\n * @summary Request password reset\n */\nexport const useRequestPasswordReset = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof requestPasswordReset>>,\n TError,\n Key,\n RequestPasswordResetBody,\n Awaited<ReturnType<typeof requestPasswordReset>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRequestPasswordResetMutationKey();\n const swrFn = getRequestPasswordResetMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Complete password recovery with the token from the emailed reset link and set a new password. Completing the reset also verifies the account's email address. Afterwards, sign in with the new password.\n * @summary Reset password\n */\nexport const getResetPasswordUrl = () => {\n return `/v1/auth/reset-password`;\n};\n\nexport const resetPassword = async (\n resetPasswordBody: ResetPasswordBody,\n options?: RequestInit\n): Promise<ResetPasswordEnvelope> => {\n return customFetchNoAuth<ResetPasswordEnvelope>(getResetPasswordUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(resetPasswordBody),\n });\n};\n\nexport const getResetPasswordMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: ResetPasswordBody }) => {\n return resetPassword(arg, options);\n };\n};\nexport const getResetPasswordMutationKey = () =>\n [`/v1/auth/reset-password`] as const;\n\nexport type ResetPasswordMutationResult = NonNullable<\n Awaited<ReturnType<typeof resetPassword>>\n>;\n\n/**\n * @summary Reset password\n */\nexport const useResetPassword = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof resetPassword>>,\n TError,\n Key,\n ResetPasswordBody,\n Awaited<ReturnType<typeof resetPassword>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getResetPasswordMutationKey();\n const swrFn = getResetPasswordMutationFetcher(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<RefreshTokenEnvelope> => {\n return customFetchNoAuth<RefreshTokenEnvelope>(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.\n\nPKCE is optional. To use it, generate a random verifier, derive `code_challenge` from it, and pass both `code_challenge` and the matching `code_challenge_method` — then send the verifier to **Sign in** when exchanging the code. Omit both to run the flow without PKCE and exchange the code on its own. `provider=microsoft` is PKCE-only: it responds 400 without a challenge.\n\nFor enterprise SSO, pass `provider=sso` together with the user's `email`; the email domain selects the SSO organization. Responds 404 when no SSO organization is configured for the domain.\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetOAuthUrlEnvelope> => {\n return customFetchNoAuth<GetOAuthUrlEnvelope>(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 an identity token (Supabase or WorkOS) for a tenant-scoped Core Plane access token.\n\n- The endpoint detects the token's issuer and verifies it against the matching provider.\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<GetSessionTokenEnvelope> => {\n return customFetchNoAuth<GetSessionTokenEnvelope>(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 * Returns the JSON Web Key Set (RFC 7517) of a partner's public signing keys, used to verify partner-issued launch tokens.\n * @summary Get partner JWKS\n */\nexport const getGetPartnerJwksUrl = (partner: string) => {\n return `/.well-known/partners/${partner}/jwks.json`;\n};\n\nexport const getPartnerJwks = async (\n partner: string,\n options?: RequestInit\n): Promise<PartnerJwks> => {\n return customFetchNoAuth<PartnerJwks>(getGetPartnerJwksUrl(partner), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetPartnerJwksKey = (partner: string) =>\n [`/.well-known/partners/${partner}/jwks.json`] as const;\n\nexport type GetPartnerJwksQueryResult = NonNullable<\n Awaited<ReturnType<typeof getPartnerJwks>>\n>;\n\n/**\n * @summary Get partner JWKS\n */\nexport const useGetPartnerJwks = <TError = ErrorType<ErrorResponse>>(\n partner: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getPartnerJwks>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false && !!partner;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetPartnerJwksKey(partner) : null));\n const swrFn = () => getPartnerJwks(partner, 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 * Verifies a partner-signed launch token, mints an Avallon session, and redirects (302) the user into the app's handoff route, carrying the session token in the URL fragment (no cookie).\n * @summary Partner launch (SSO)\n */\nexport const getPartnerLaunchUrl = (params?: PartnerLaunchParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/auth/partner-launch?${stringifiedParams}`\n : `/v1/auth/partner-launch`;\n};\n\nexport const partnerLaunch = async (\n params?: PartnerLaunchParams,\n options?: RequestInit\n): Promise<unknown> => {\n return customFetchNoAuth<unknown>(getPartnerLaunchUrl(params), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getPartnerLaunchMutationFetcher = (\n params?: PartnerLaunchParams,\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return partnerLaunch(params, options);\n };\n};\nexport const getPartnerLaunchMutationKey = (params?: PartnerLaunchParams) =>\n [`/v1/auth/partner-launch`, ...(params ? [params] : [])] as const;\n\nexport type PartnerLaunchMutationResult = NonNullable<\n Awaited<ReturnType<typeof partnerLaunch>>\n>;\n\n/**\n * @summary Partner launch (SSO)\n */\nexport const usePartnerLaunch = <\n TError = ErrorType<PartnerLaunchEnvelope | ErrorResponse>,\n>(\n params?: PartnerLaunchParams,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof partnerLaunch>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof partnerLaunch>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPartnerLaunchMutationKey(params);\n const swrFn = getPartnerLaunchMutationFetcher(params, 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 CreateCallFeedbackEnvelope,\n CreateFeedbackRequest,\n DeleteCallFeedbackEnvelope,\n ErrorResponse,\n ListCallFeedbackEnvelope,\n ListCallFeedbackParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create feedback for a specific message in a call. Requires user (JWT) authentication; the author is derived from the authenticated user's profile and API-key callers are rejected.\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<CreateCallFeedbackEnvelope> => {\n return customFetch<CreateCallFeedbackEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListCallFeedbackEnvelope> => {\n return customFetch<ListCallFeedbackEnvelope>(\n getListCallFeedbackUrl(id, params),\n {\n ...options,\n method: \"GET\",\n }\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<DeleteCallFeedbackEnvelope> => {\n return customFetch<DeleteCallFeedbackEnvelope>(\n getDeleteCallFeedbackUrl(id, feedbackId),\n {\n ...options,\n method: \"DELETE\",\n }\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 ErrorResponse,\n GetCallAnalyticsEnvelope,\n GetCallAnalyticsParams,\n GetCallEnvelope,\n GetCallEvaluationEnvelope,\n GetCallParams,\n ListCallsEnvelope,\n ListCallsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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\n**Case Filtering:**\n\nUse `case_id` to return only calls linked to a case. This reads the case links created\nvia `POST /v1/cases/{caseId}/links`, and is independent of any `metadata.case_id` a\ncall may carry.\n\n**Metadata Filtering:**\n\nUse bracket notation to filter by metadata keys:\n- `metadata[claim_id]=abc-123`\n- `metadata[source]=worker`\n\nMultiple metadata filters can be combined (AND logic).\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListCallsEnvelope> => {\n return customFetch<ListCallsEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetCallEnvelope> => {\n return customFetch<GetCallEnvelope>(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<GetCallEvaluationEnvelope> => {\n return customFetch<GetCallEvaluationEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetCallAnalyticsEnvelope> => {\n return customFetch<GetCallAnalyticsEnvelope>(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 AddCaseLinksBody,\n AddCaseLinksEnvelope,\n CreateCaseBody,\n CreateCaseEnvelope,\n ErrorResponse,\n GetCaseEnvelope,\n ListCaseLinksEnvelope,\n ListCaseLinksParams,\n ListCasesEnvelope,\n ListCasesParams,\n RemoveCaseLinkEnvelope,\n SearchCasesEnvelope,\n SearchCasesParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all cases for the current tenant, paginated, filterable, and sortable.\n * @summary List cases\n */\nexport const getListCasesUrl = (params?: ListCasesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/cases?${stringifiedParams}`\n : `/v1/cases`;\n};\n\nexport const listCases = async (\n params?: ListCasesParams,\n options?: RequestInit\n): Promise<ListCasesEnvelope> => {\n return customFetch<ListCasesEnvelope>(getListCasesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCasesKey = (params?: ListCasesParams) =>\n [`/v1/cases`, ...(params ? [params] : [])] as const;\n\nexport type ListCasesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCases>>\n>;\n\n/**\n * @summary List cases\n */\nexport const useListCases = <TError = ErrorType<ErrorResponse>>(\n params?: ListCasesParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listCases>>, 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 ? getListCasesKey(params) : null));\n const swrFn = () => listCases(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 case with a client-supplied id.\n\nCase ids are tenant-scoped opaque keys (e.g. \"clm-1\", \"STD-001\") and are normalized server-side (trimmed and lowercased). Creating an id that already exists returns 409.\n * @summary Create case\n */\nexport const getCreateCaseUrl = () => {\n return `/v1/cases`;\n};\n\nexport const createCase = async (\n createCaseBody: CreateCaseBody,\n options?: RequestInit\n): Promise<CreateCaseEnvelope> => {\n return customFetch<CreateCaseEnvelope>(getCreateCaseUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createCaseBody),\n });\n};\n\nexport const getCreateCaseMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateCaseBody }) => {\n return createCase(arg, options);\n };\n};\nexport const getCreateCaseMutationKey = () => [`/v1/cases`] as const;\n\nexport type CreateCaseMutationResult = NonNullable<\n Awaited<ReturnType<typeof createCase>>\n>;\n\n/**\n * @summary Create case\n */\nexport const useCreateCase = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createCase>>,\n TError,\n Key,\n CreateCaseBody,\n Awaited<ReturnType<typeof createCase>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateCaseMutationKey();\n const swrFn = getCreateCaseMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Probe for candidate cases. Matches the query as a normalized substring of the case id, and fuzzily (trigram) against subject and reporter. Results are relevance-ranked — id matches first, then best fuzzy match, then most recently updated — so ordering is fixed and not configurable.\n * @summary Search cases\n */\nexport const getSearchCasesUrl = (params: SearchCasesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/cases/search?${stringifiedParams}`\n : `/v1/cases/search`;\n};\n\nexport const searchCases = async (\n params: SearchCasesParams,\n options?: RequestInit\n): Promise<SearchCasesEnvelope> => {\n return customFetch<SearchCasesEnvelope>(getSearchCasesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getSearchCasesKey = (params: SearchCasesParams) =>\n [`/v1/cases/search`, ...(params ? [params] : [])] as const;\n\nexport type SearchCasesQueryResult = NonNullable<\n Awaited<ReturnType<typeof searchCases>>\n>;\n\n/**\n * @summary Search cases\n */\nexport const useSearchCases = <TError = ErrorType<ErrorResponse>>(\n params: SearchCasesParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof searchCases>>, 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 ? getSearchCasesKey(params) : null));\n const swrFn = () => searchCases(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 case by id.\n\nRelated entities are not embedded — fetch them via the filtered list endpoints,\ne.g. `GET /v1/worker-runs?case_id=…` and `GET /v1/artifacts?metadata[case_id]=…`.\n * @summary Get case\n */\nexport const getGetCaseUrl = (id: string) => {\n return `/v1/cases/${id}`;\n};\n\nexport const getCase = async (\n id: string,\n options?: RequestInit\n): Promise<GetCaseEnvelope> => {\n return customFetch<GetCaseEnvelope>(getGetCaseUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCaseKey = (id: string) => [`/v1/cases/${id}`] as const;\n\nexport type GetCaseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCase>>\n>;\n\n/**\n * @summary Get case\n */\nexport const useGetCase = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getCase>>, 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 ? getGetCaseKey(id) : null));\n const swrFn = () => getCase(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 * Link one or more entities (artifacts, calls, chats, emails, extracts, schedules, worker runs) to a case.\n\nThe case and every entity must already exist in the tenant — unknown ids return 404 and nothing is created. Adding is idempotent: re-linking an already linked entity returns the existing link with its original `created_at`.\n * @summary Add case links\n */\nexport const getAddCaseLinksUrl = (id: string) => {\n return `/v1/cases/${id}/links`;\n};\n\nexport const addCaseLinks = async (\n id: string,\n addCaseLinksBody: AddCaseLinksBody,\n options?: RequestInit\n): Promise<AddCaseLinksEnvelope> => {\n return customFetch<AddCaseLinksEnvelope>(getAddCaseLinksUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(addCaseLinksBody),\n });\n};\n\nexport const getAddCaseLinksMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: AddCaseLinksBody }) => {\n return addCaseLinks(id, arg, options);\n };\n};\nexport const getAddCaseLinksMutationKey = (id: string) =>\n [`/v1/cases/${id}/links`] as const;\n\nexport type AddCaseLinksMutationResult = NonNullable<\n Awaited<ReturnType<typeof addCaseLinks>>\n>;\n\n/**\n * @summary Add case links\n */\nexport const useAddCaseLinks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof addCaseLinks>>,\n TError,\n Key,\n AddCaseLinksBody,\n Awaited<ReturnType<typeof addCaseLinks>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getAddCaseLinksMutationKey(id);\n const swrFn = getAddCaseLinksMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the entities linked to a case, paginated and filterable by entity type.\n * @summary List case links\n */\nexport const getListCaseLinksUrl = (\n id: string,\n params?: ListCaseLinksParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/cases/${id}/links?${stringifiedParams}`\n : `/v1/cases/${id}/links`;\n};\n\nexport const listCaseLinks = async (\n id: string,\n params?: ListCaseLinksParams,\n options?: RequestInit\n): Promise<ListCaseLinksEnvelope> => {\n return customFetch<ListCaseLinksEnvelope>(getListCaseLinksUrl(id, params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCaseLinksKey = (id: string, params?: ListCaseLinksParams) =>\n [`/v1/cases/${id}/links`, ...(params ? [params] : [])] as const;\n\nexport type ListCaseLinksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCaseLinks>>\n>;\n\n/**\n * @summary List case links\n */\nexport const useListCaseLinks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: ListCaseLinksParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listCaseLinks>>,\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 ? getListCaseLinksKey(id, params) : null));\n const swrFn = () => listCaseLinks(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 * Remove the link between a case and an entity. Removal is idempotent: removing a link that does not exist succeeds without effect.\n * @summary Remove case link\n */\nexport const getRemoveCaseLinkUrl = (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string\n) => {\n return `/v1/cases/${id}/links/${entityType}/${entityId}`;\n};\n\nexport const removeCaseLink = async (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string,\n options?: RequestInit\n): Promise<RemoveCaseLinkEnvelope> => {\n return customFetch<RemoveCaseLinkEnvelope>(\n getRemoveCaseLinkUrl(id, entityType, entityId),\n {\n ...options,\n method: \"DELETE\",\n }\n );\n};\n\nexport const getRemoveCaseLinkMutationFetcher = (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return removeCaseLink(id, entityType, entityId, options);\n };\n};\nexport const getRemoveCaseLinkMutationKey = (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string\n) => [`/v1/cases/${id}/links/${entityType}/${entityId}`] as const;\n\nexport type RemoveCaseLinkMutationResult = NonNullable<\n Awaited<ReturnType<typeof removeCaseLink>>\n>;\n\n/**\n * @summary Remove case link\n */\nexport const useRemoveCaseLink = <TError = ErrorType<ErrorResponse>>(\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof removeCaseLink>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof removeCaseLink>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ??\n getRemoveCaseLinkMutationKey(id, entityType, entityId);\n const swrFn = getRemoveCaseLinkMutationFetcher(\n id,\n entityType,\n entityId,\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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateChatAgentBody,\n CreateChatAgentEnvelope,\n DeleteChatAgentEnvelope,\n ErrorResponse,\n GetChatAgentEnvelope,\n GetChatAgentPromptEnvelope,\n ListChatAgentsEnvelope,\n ListChatAgentsParams,\n UpdateChatAgentEnvelope,\n UpdateChatAgentPromptBody,\n UpdateChatAgentPromptEnvelope,\n UpdateChatAgentRequest,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new chat agent with a name and prompt.\n * @summary Create chat agent\n */\nexport const getCreateChatAgentUrl = () => {\n return `/v1/chat-agents`;\n};\n\nexport const createChatAgent = async (\n createChatAgentBody: CreateChatAgentBody,\n options?: RequestInit\n): Promise<CreateChatAgentEnvelope> => {\n return customFetch<CreateChatAgentEnvelope>(getCreateChatAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createChatAgentBody),\n });\n};\n\nexport const getCreateChatAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateChatAgentBody }) => {\n return createChatAgent(arg, options);\n };\n};\nexport const getCreateChatAgentMutationKey = () => [`/v1/chat-agents`] as const;\n\nexport type CreateChatAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createChatAgent>>\n>;\n\n/**\n * @summary Create chat agent\n */\nexport const useCreateChatAgent = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createChatAgent>>,\n TError,\n Key,\n CreateChatAgentBody,\n Awaited<ReturnType<typeof createChatAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateChatAgentMutationKey();\n const swrFn = getCreateChatAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the tenant's chat agents with pagination and sorting. Prompts are not returned.\n * @summary List chat agents\n */\nexport const getListChatAgentsUrl = (params?: ListChatAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/chat-agents?${stringifiedParams}`\n : `/v1/chat-agents`;\n};\n\nexport const listChatAgents = async (\n params?: ListChatAgentsParams,\n options?: RequestInit\n): Promise<ListChatAgentsEnvelope> => {\n return customFetch<ListChatAgentsEnvelope>(getListChatAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListChatAgentsKey = (params?: ListChatAgentsParams) =>\n [`/v1/chat-agents`, ...(params ? [params] : [])] as const;\n\nexport type ListChatAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listChatAgents>>\n>;\n\n/**\n * @summary List chat agents\n */\nexport const useListChatAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListChatAgentsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listChatAgents>>,\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 ? getListChatAgentsKey(params) : null));\n const swrFn = () => listChatAgents(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 chat agent by ID, including the IDs of its attached code tools. The prompt is not returned.\n * @summary Get chat agent\n */\nexport const getGetChatAgentUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const getChatAgent = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<GetChatAgentEnvelope> => {\n return customFetch<GetChatAgentEnvelope>(getGetChatAgentUrl(chatAgentId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetChatAgentKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type GetChatAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getChatAgent>>\n>;\n\n/**\n * @summary Get chat agent\n */\nexport const useGetChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getChatAgent>>, 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 && !!chatAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetChatAgentKey(chatAgentId) : null));\n const swrFn = () => getChatAgent(chatAgentId, 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 * Patch a chat agent's settings. Today only the attached code tool set can be edited; future fields will be added under the same endpoint. The response returns the chat agent's metadata only and does not include the resulting tool list; the agent's `updated_at` is not bumped when only the tool set changes.\n * @summary Update chat agent\n */\nexport const getUpdateChatAgentUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const updateChatAgent = async (\n chatAgentId: string,\n updateChatAgentRequest: UpdateChatAgentRequest,\n options?: RequestInit\n): Promise<UpdateChatAgentEnvelope> => {\n return customFetch<UpdateChatAgentEnvelope>(\n getUpdateChatAgentUrl(chatAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateChatAgentRequest),\n }\n );\n};\n\nexport const getUpdateChatAgentMutationFetcher = (\n chatAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateChatAgentRequest }) => {\n return updateChatAgent(chatAgentId, arg, options);\n };\n};\nexport const getUpdateChatAgentMutationKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type UpdateChatAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateChatAgent>>\n>;\n\n/**\n * @summary Update chat agent\n */\nexport const useUpdateChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateChatAgent>>,\n TError,\n Key,\n UpdateChatAgentRequest,\n Awaited<ReturnType<typeof updateChatAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateChatAgentMutationKey(chatAgentId);\n const swrFn = getUpdateChatAgentMutationFetcher(chatAgentId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Soft-delete a chat agent. The agent no longer appears in any read and stops accepting new chats; existing chats and messages are preserved.\n * @summary Delete chat agent\n */\nexport const getDeleteChatAgentUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const deleteChatAgent = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<DeleteChatAgentEnvelope> => {\n return customFetch<DeleteChatAgentEnvelope>(\n getDeleteChatAgentUrl(chatAgentId),\n {\n ...options,\n method: \"DELETE\",\n }\n );\n};\n\nexport const getDeleteChatAgentMutationFetcher = (\n chatAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteChatAgent(chatAgentId, options);\n };\n};\nexport const getDeleteChatAgentMutationKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type DeleteChatAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteChatAgent>>\n>;\n\n/**\n * @summary Delete chat agent\n */\nexport const useDeleteChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteChatAgent>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteChatAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteChatAgentMutationKey(chatAgentId);\n const swrFn = getDeleteChatAgentMutationFetcher(chatAgentId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the prompt and greeting for a chat agent. Internal use only.\n * @summary Get chat agent prompt\n */\nexport const getGetChatAgentPromptUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}/prompt`;\n};\n\nexport const getChatAgentPrompt = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<GetChatAgentPromptEnvelope> => {\n return customFetch<GetChatAgentPromptEnvelope>(\n getGetChatAgentPromptUrl(chatAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetChatAgentPromptKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}/prompt`] as const;\n\nexport type GetChatAgentPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getChatAgentPrompt>>\n>;\n\n/**\n * @summary Get chat agent prompt\n */\nexport const useGetChatAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getChatAgentPrompt>>,\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 && !!chatAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetChatAgentPromptKey(chatAgentId) : null));\n const swrFn = () => getChatAgentPrompt(chatAgentId, 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 prompt and/or greeting for a chat agent. Internal use only.\n * @summary Update chat agent prompt\n */\nexport const getUpdateChatAgentPromptUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}/prompt`;\n};\n\nexport const updateChatAgentPrompt = async (\n chatAgentId: string,\n updateChatAgentPromptBody: UpdateChatAgentPromptBody,\n options?: RequestInit\n): Promise<UpdateChatAgentPromptEnvelope> => {\n return customFetch<UpdateChatAgentPromptEnvelope>(\n getUpdateChatAgentPromptUrl(chatAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateChatAgentPromptBody),\n }\n );\n};\n\nexport const getUpdateChatAgentPromptMutationFetcher = (\n chatAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateChatAgentPromptBody }) => {\n return updateChatAgentPrompt(chatAgentId, arg, options);\n };\n};\nexport const getUpdateChatAgentPromptMutationKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}/prompt`] as const;\n\nexport type UpdateChatAgentPromptMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateChatAgentPrompt>>\n>;\n\n/**\n * @summary Update chat agent prompt\n */\nexport const useUpdateChatAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateChatAgentPrompt>>,\n TError,\n Key,\n UpdateChatAgentPromptBody,\n Awaited<ReturnType<typeof updateChatAgentPrompt>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateChatAgentPromptMutationKey(chatAgentId);\n const swrFn = getUpdateChatAgentPromptMutationFetcher(\n chatAgentId,\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 useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateChatBody,\n CreateChatEnvelope,\n ErrorResponse,\n GetChatEnvelope,\n GetPublicChatAgentEnvelope,\n ListChatMessagesEnvelope,\n ListChatMessagesParams,\n ListChatsEnvelope,\n ListChatsParams,\n PostChatMessageBody,\n PostChatMessageEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new chat against an existing chat agent. The chat agent's tenant becomes the owner of the chat.\n * @summary Create a chat\n */\nexport const getCreateChatUrl = () => {\n return `/public/v1/chats`;\n};\n\nexport const createChat = async (\n createChatBody: CreateChatBody,\n options?: RequestInit\n): Promise<CreateChatEnvelope> => {\n return customFetch<CreateChatEnvelope>(getCreateChatUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createChatBody),\n });\n};\n\nexport const getCreateChatMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateChatBody }) => {\n return createChat(arg, options);\n };\n};\nexport const getCreateChatMutationKey = () => [`/public/v1/chats`] as const;\n\nexport type CreateChatMutationResult = NonNullable<\n Awaited<ReturnType<typeof createChat>>\n>;\n\n/**\n * @summary Create a chat\n */\nexport const useCreateChat = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createChat>>,\n TError,\n Key,\n CreateChatBody,\n Awaited<ReturnType<typeof createChat>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateChatMutationKey();\n const swrFn = getCreateChatMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Return a chat and its messages in chronological order. Used to re-render a transcript after a reload. Only `user` and `assistant` messages are included; tool calls and tool results are omitted. Each message's `content` is the concatenation of its text blocks separated by newlines.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /public/v1/chat`\n * @summary Get a chat\n */\nexport const getGetChatUrl = (chatId: string) => {\n return `/public/v1/chats/${chatId}`;\n};\n\nexport const getChat = async (\n chatId: string,\n options?: RequestInit\n): Promise<GetChatEnvelope> => {\n return customFetch<GetChatEnvelope>(getGetChatUrl(chatId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetChatKey = (chatId: string) =>\n [`/public/v1/chats/${chatId}`] as const;\n\nexport type GetChatQueryResult = NonNullable<\n Awaited<ReturnType<typeof getChat>>\n>;\n\n/**\n * @summary Get a chat\n */\nexport const useGetChat = <TError = ErrorType<ErrorResponse>>(\n chatId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getChat>>, 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 && !!chatId;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetChatKey(chatId) : null));\n const swrFn = () => getChat(chatId, 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 * Return the public-facing fields of a chat agent for use in the chat UI. Sensitive fields such as the agent's prompt and tenant ID are not exposed.\n * @summary Get a chat agent (public)\n */\nexport const getGetPublicChatAgentUrl = (chatAgentId: string) => {\n return `/public/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const getPublicChatAgent = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<GetPublicChatAgentEnvelope> => {\n return customFetch<GetPublicChatAgentEnvelope>(\n getGetPublicChatAgentUrl(chatAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetPublicChatAgentKey = (chatAgentId: string) =>\n [`/public/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type GetPublicChatAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getPublicChatAgent>>\n>;\n\n/**\n * @summary Get a chat agent (public)\n */\nexport const useGetPublicChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getPublicChatAgent>>,\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 && !!chatAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetPublicChatAgentKey(chatAgentId) : null));\n const swrFn = () => getPublicChatAgent(chatAgentId, 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 * Post a user message to an existing chat and return the assistant reply. Both messages are persisted.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /public/v1/chat/messages`\n * @summary Post a message to a chat\n */\nexport const getPostChatMessageUrl = (chatId: string) => {\n return `/public/v1/chats/${chatId}/messages`;\n};\n\nexport const postChatMessage = async (\n chatId: string,\n postChatMessageBody: PostChatMessageBody,\n options?: RequestInit\n): Promise<PostChatMessageEnvelope> => {\n return customFetch<PostChatMessageEnvelope>(getPostChatMessageUrl(chatId), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postChatMessageBody),\n });\n};\n\nexport const getPostChatMessageMutationFetcher = (\n chatId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PostChatMessageBody }) => {\n return postChatMessage(chatId, arg, options);\n };\n};\nexport const getPostChatMessageMutationKey = (chatId: string) =>\n [`/public/v1/chats/${chatId}/messages`] as const;\n\nexport type PostChatMessageMutationResult = NonNullable<\n Awaited<ReturnType<typeof postChatMessage>>\n>;\n\n/**\n * @summary Post a message to a chat\n */\nexport const usePostChatMessage = <TError = ErrorType<ErrorResponse>>(\n chatId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postChatMessage>>,\n TError,\n Key,\n PostChatMessageBody,\n Awaited<ReturnType<typeof postChatMessage>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostChatMessageMutationKey(chatId);\n const swrFn = getPostChatMessageMutationFetcher(chatId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the tenant's chats with pagination, sorting, and optional filtering by case. Returns chat metadata and message counts; messages are not included.\n * @summary List chats\n */\nexport const getListChatsUrl = (params?: ListChatsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/chats?${stringifiedParams}`\n : `/v1/chats`;\n};\n\nexport const listChats = async (\n params?: ListChatsParams,\n options?: RequestInit\n): Promise<ListChatsEnvelope> => {\n return customFetch<ListChatsEnvelope>(getListChatsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListChatsKey = (params?: ListChatsParams) =>\n [`/v1/chats`, ...(params ? [params] : [])] as const;\n\nexport type ListChatsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listChats>>\n>;\n\n/**\n * @summary List chats\n */\nexport const useListChats = <TError = ErrorType<ErrorResponse>>(\n params?: ListChatsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listChats>>, 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 ? getListChatsKey(params) : null));\n const swrFn = () => listChats(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 * List messages for a chat owned by the tenant, in chronological order by default.\n * @summary List chat messages\n */\nexport const getListChatMessagesUrl = (\n chatId: string,\n params?: ListChatMessagesParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/chats/${chatId}/messages?${stringifiedParams}`\n : `/v1/chats/${chatId}/messages`;\n};\n\nexport const listChatMessages = async (\n chatId: string,\n params?: ListChatMessagesParams,\n options?: RequestInit\n): Promise<ListChatMessagesEnvelope> => {\n return customFetch<ListChatMessagesEnvelope>(\n getListChatMessagesUrl(chatId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListChatMessagesKey = (\n chatId: string,\n params?: ListChatMessagesParams\n) => [`/v1/chats/${chatId}/messages`, ...(params ? [params] : [])] as const;\n\nexport type ListChatMessagesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listChatMessages>>\n>;\n\n/**\n * @summary List chat messages\n */\nexport const useListChatMessages = <TError = ErrorType<ErrorResponse>>(\n chatId: string,\n params?: ListChatMessagesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listChatMessages>>,\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 && !!chatId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListChatMessagesKey(chatId, params) : null));\n const swrFn = () => listChatMessages(chatId, 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 { Key, SWRConfiguration } from \"swr\";\n\nimport type {\n ErrorResponse,\n ListDispatchesEnvelope,\n ListDispatchesParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List the organization's dispatches, newest occurrence first.\n\nA dispatch is one occurrence of a trigger: every time a schedule fires, it produces exactly one dispatch, which is then carried out. Listing them shows what a trigger has actually done, including occurrences that never produced a worker run.\n\n- `pending` — not carried out yet: waiting to be picked up, in flight, or waiting on a retry after an earlier pickup did not complete.\n- `dispatched` — carried out.\n- `abandoned` — gave up, because the occurrence passed its `expires_at` deadline before it could be carried out.\n\n`attempts` counts how many times the occurrence has been picked up, not how many times it failed: a dispatch carried out on the first pickup ends at `attempts: 1`, and a higher count means earlier pickups did not complete.\n\n`target` is what the occurrence produced — today always a worker run. It is null until the dispatch is carried out, and stays null on one that was abandoned.\n\nNarrow to one trigger with `trigger_type` and `trigger_id` — for a schedule, `trigger_id` is the schedule's ID. `trigger_id` requires `trigger_type`.\n\nRequires the `schedules:read` permission.\n * @summary List dispatches\n */\nexport const getListDispatchesUrl = (params?: ListDispatchesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/dispatches?${stringifiedParams}`\n : `/v1/dispatches`;\n};\n\nexport const listDispatches = async (\n params?: ListDispatchesParams,\n options?: RequestInit\n): Promise<ListDispatchesEnvelope> => {\n return customFetch<ListDispatchesEnvelope>(getListDispatchesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListDispatchesKey = (params?: ListDispatchesParams) =>\n [`/v1/dispatches`, ...(params ? [params] : [])] as const;\n\nexport type ListDispatchesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listDispatches>>\n>;\n\n/**\n * @summary List dispatches\n */\nexport const useListDispatches = <TError = ErrorType<ErrorResponse>>(\n params?: ListDispatchesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listDispatches>>,\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 ? getListDispatchesKey(params) : null));\n const swrFn = () => listDispatches(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 CreateEmailBody,\n CreateEmailEnvelope,\n DeleteEmailEnvelope,\n ErrorResponse,\n GetEmailEnvelope,\n ListEmailThreadsEnvelope,\n ListEmailThreadsParams,\n ListEmailsEnvelope,\n ListEmailsParams,\n ReplyToEmailBody,\n ReplyToEmailEnvelope,\n SendEmailBody,\n SendEmailEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * **DO NOT USE.** This endpoint is deprecated and will be removed.\n\nIt only writes a standalone email record: nothing is sent, and the record is not linked to an inbox or thread.\n\nUse `POST /v1/emails/send` to send an email or `POST /v1/emails/{emailId}/reply` to reply to an existing one. Inbound email is recorded automatically when it arrives at an inbox.\n * @deprecated\n * @summary Create email (deprecated)\n */\nexport const getCreateEmailUrl = () => {\n return `/v1/emails`;\n};\n\nexport const createEmail = async (\n createEmailBody: CreateEmailBody,\n options?: RequestInit\n): Promise<CreateEmailEnvelope> => {\n return customFetch<CreateEmailEnvelope>(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 * @deprecated\n * @summary Create email (deprecated)\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, content search, or case.\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListEmailsEnvelope> => {\n return customFetch<ListEmailsEnvelope>(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<GetEmailEnvelope> => {\n return customFetch<GetEmailEnvelope>(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 * Soft-delete an email. The message is hidden from all reads (get, list, and thread aggregation) but its content is retained until a separate hard purge.\n * @summary Delete email\n */\nexport const getDeleteEmailUrl = (emailId: string) => {\n return `/v1/emails/${emailId}`;\n};\n\nexport const deleteEmail = async (\n emailId: string,\n options?: RequestInit\n): Promise<DeleteEmailEnvelope> => {\n return customFetch<DeleteEmailEnvelope>(getDeleteEmailUrl(emailId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteEmailMutationFetcher = (\n emailId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteEmail(emailId, options);\n };\n};\nexport const getDeleteEmailMutationKey = (emailId: string) =>\n [`/v1/emails/${emailId}`] as const;\n\nexport type DeleteEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteEmail>>\n>;\n\n/**\n * @summary Delete email\n */\nexport const useDeleteEmail = <TError = ErrorType<ErrorResponse>>(\n emailId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteEmail>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteEmailMutationKey(emailId);\n const swrFn = getDeleteEmailMutationFetcher(emailId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List email threads with pagination. Each thread includes the subject of the first email, the sender of the first email, and the date of the last email.\n * @summary List email threads\n */\nexport const getListEmailThreadsUrl = (params?: ListEmailThreadsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/emails/threads?${stringifiedParams}`\n : `/v1/emails/threads`;\n};\n\nexport const listEmailThreads = async (\n params?: ListEmailThreadsParams,\n options?: RequestInit\n): Promise<ListEmailThreadsEnvelope> => {\n return customFetch<ListEmailThreadsEnvelope>(getListEmailThreadsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailThreadsKey = (params?: ListEmailThreadsParams) =>\n [`/v1/emails/threads`, ...(params ? [params] : [])] as const;\n\nexport type ListEmailThreadsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmailThreads>>\n>;\n\n/**\n * @summary List email threads\n */\nexport const useListEmailThreads = <TError = ErrorType<ErrorResponse>>(\n params?: ListEmailThreadsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listEmailThreads>>,\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 ? getListEmailThreadsKey(params) : null));\n const swrFn = () => listEmailThreads(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 * Reply to an existing email thread via Nylas. The reply is sent to the original sender by default.\n\nOptionally include additional recipients via `to` (merged with the original sender), `cc`, and `bcc` arrays.\n\nThe `body` is HTML by default. Set `is_html` to `false` to provide plain text instead; it is converted to HTML before sending.\n * @summary Reply to email\n */\nexport const getReplyToEmailUrl = (emailId: string) => {\n return `/v1/emails/${emailId}/reply`;\n};\n\nexport const replyToEmail = async (\n emailId: string,\n replyToEmailBody: ReplyToEmailBody,\n options?: RequestInit\n): Promise<ReplyToEmailEnvelope> => {\n return customFetch<ReplyToEmailEnvelope>(getReplyToEmailUrl(emailId), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(replyToEmailBody),\n });\n};\n\nexport const getReplyToEmailMutationFetcher = (\n emailId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ReplyToEmailBody }) => {\n return replyToEmail(emailId, arg, options);\n };\n};\nexport const getReplyToEmailMutationKey = (emailId: string) =>\n [`/v1/emails/${emailId}/reply`] as const;\n\nexport type ReplyToEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof replyToEmail>>\n>;\n\n/**\n * @summary Reply to email\n */\nexport const useReplyToEmail = <TError = ErrorType<ErrorResponse>>(\n emailId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof replyToEmail>>,\n TError,\n Key,\n ReplyToEmailBody,\n Awaited<ReturnType<typeof replyToEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getReplyToEmailMutationKey(emailId);\n const swrFn = getReplyToEmailMutationFetcher(emailId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Send a new email through an inbox. The provider-assigned thread id is returned and persisted on the stored email row, so subsequent inbound replies on that thread are linked to this send.\n\nThe `body` is HTML by default. Set `is_html` to `false` to provide plain text instead; it is converted to HTML before sending.\n * @summary Send email\n */\nexport const getSendEmailUrl = () => {\n return `/v1/emails/send`;\n};\n\nexport const sendEmail = async (\n sendEmailBody: SendEmailBody,\n options?: RequestInit\n): Promise<SendEmailEnvelope> => {\n return customFetch<SendEmailEnvelope>(getSendEmailUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(sendEmailBody),\n });\n};\n\nexport const getSendEmailMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: SendEmailBody }) => {\n return sendEmail(arg, options);\n };\n};\nexport const getSendEmailMutationKey = () => [`/v1/emails/send`] as const;\n\nexport type SendEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof sendEmail>>\n>;\n\n/**\n * @summary Send email\n */\nexport const useSendEmail = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof sendEmail>>,\n TError,\n Key,\n SendEmailBody,\n Awaited<ReturnType<typeof sendEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getSendEmailMutationKey();\n const swrFn = getSendEmailMutationFetcher(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 CreateExtractorJobBody,\n CreateExtractorJobEnvelope,\n ErrorResponse,\n GetExtractorJobEnvelope,\n ListExtractorJobsEnvelope,\n ListExtractorJobsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[call_id]=abc-123`\n- `scope[email_id]=xyz-456`\n- `scope[case_id]=case-789`\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListExtractorJobsEnvelope> => {\n return customFetch<ListExtractorJobsEnvelope>(\n getListExtractorJobsUrl(params),\n {\n ...options,\n method: \"GET\",\n }\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<CreateExtractorJobEnvelope> => {\n return customFetch<CreateExtractorJobEnvelope>(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<GetExtractorJobEnvelope> => {\n return customFetch<GetExtractorJobEnvelope>(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 * 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 CreateExtractorBody,\n CreateExtractorEnvelope,\n DeleteExtractorEnvelope,\n ErrorResponse,\n GetExtractorEnvelope,\n ListExtractorsEnvelope,\n ListExtractorsParams,\n UpdateExtractorBody,\n UpdateExtractorEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<CreateExtractorEnvelope> => {\n return customFetch<CreateExtractorEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListExtractorsEnvelope> => {\n return customFetch<ListExtractorsEnvelope>(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<GetExtractorEnvelope> => {\n return customFetch<GetExtractorEnvelope>(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<UpdateExtractorEnvelope> => {\n return customFetch<UpdateExtractorEnvelope>(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 * Soft-delete an extractor and all of its versions. Soft-deleted extractors no longer appear in any read.\n * @summary Delete extractor\n */\nexport const getDeleteExtractorUrl = (id: string) => {\n return `/v1/extractors/${id}`;\n};\n\nexport const deleteExtractor = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteExtractorEnvelope> => {\n return customFetch<DeleteExtractorEnvelope>(getDeleteExtractorUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteExtractorMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteExtractor(id, options);\n };\n};\nexport const getDeleteExtractorMutationKey = (id: string) =>\n [`/v1/extractors/${id}`] as const;\n\nexport type DeleteExtractorMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteExtractor>>\n>;\n\n/**\n * @summary Delete extractor\n */\nexport const useDeleteExtractor = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteExtractor>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteExtractor>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteExtractorMutationKey(id);\n const swrFn = getDeleteExtractorMutationFetcher(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 GetExtractCitationsEnvelope,\n GetExtractEnvelope,\n ListExtractsEnvelope,\n ListExtractsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<GetExtractEnvelope> => {\n return customFetch<GetExtractEnvelope>(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<GetExtractCitationsEnvelope> => {\n return customFetch<GetExtractCitationsEnvelope>(\n getGetExtractCitationsUrl(id),\n {\n ...options,\n method: \"GET\",\n }\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListExtractsEnvelope> => {\n return customFetch<ListExtractsEnvelope>(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 CheckInboxAvailabilityEnvelope,\n CheckInboxAvailabilityParams,\n CreateInboxBody,\n CreateInboxEnvelope,\n DeleteInboxEnvelope,\n ErrorResponse,\n ListInboxesEnvelope,\n ListInboxesParams,\n UpdateInboxBody,\n UpdateInboxEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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 inbox.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/email-agents/availability`\n * @summary Check email username availability\n */\nexport const getCheckInboxAvailabilityUrl = (\n params: CheckInboxAvailabilityParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/inboxes/availability?${stringifiedParams}`\n : `/v1/inboxes/availability`;\n};\n\nexport const checkInboxAvailability = async (\n params: CheckInboxAvailabilityParams,\n options?: RequestInit\n): Promise<CheckInboxAvailabilityEnvelope> => {\n return customFetch<CheckInboxAvailabilityEnvelope>(\n getCheckInboxAvailabilityUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getCheckInboxAvailabilityKey = (\n params: CheckInboxAvailabilityParams\n) => [`/v1/inboxes/availability`, ...(params ? [params] : [])] as const;\n\nexport type CheckInboxAvailabilityQueryResult = NonNullable<\n Awaited<ReturnType<typeof checkInboxAvailability>>\n>;\n\n/**\n * @summary Check email username availability\n */\nexport const useCheckInboxAvailability = <TError = ErrorType<ErrorResponse>>(\n params: CheckInboxAvailabilityParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof checkInboxAvailability>>,\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 ? getCheckInboxAvailabilityKey(params) : null));\n const swrFn = () => checkInboxAvailability(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 inbox linked to a processor (extractor or worker).\n\nThe inbox will receive emails at the assigned address and automatically process attachments using the specified processor.\n\nEither `processor_id` or the deprecated `extractor_id` must be provided. When using `extractor_id`, the processor type defaults to `extractor`.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/email-agents`\n * @summary Create inbox\n */\nexport const getCreateInboxUrl = () => {\n return `/v1/inboxes`;\n};\n\nexport const createInbox = async (\n createInboxBody: CreateInboxBody,\n options?: RequestInit\n): Promise<CreateInboxEnvelope> => {\n return customFetch<CreateInboxEnvelope>(getCreateInboxUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createInboxBody),\n });\n};\n\nexport const getCreateInboxMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateInboxBody }) => {\n return createInbox(arg, options);\n };\n};\nexport const getCreateInboxMutationKey = () => [`/v1/inboxes`] as const;\n\nexport type CreateInboxMutationResult = NonNullable<\n Awaited<ReturnType<typeof createInbox>>\n>;\n\n/**\n * @summary Create inbox\n */\nexport const useCreateInbox = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createInbox>>,\n TError,\n Key,\n CreateInboxBody,\n Awaited<ReturnType<typeof createInbox>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateInboxMutationKey();\n const swrFn = getCreateInboxMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all inboxes with pagination and sorting.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/email-agents`\n * @summary List inboxes\n */\nexport const getListInboxesUrl = (params?: ListInboxesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/inboxes?${stringifiedParams}`\n : `/v1/inboxes`;\n};\n\nexport const listInboxes = async (\n params?: ListInboxesParams,\n options?: RequestInit\n): Promise<ListInboxesEnvelope> => {\n return customFetch<ListInboxesEnvelope>(getListInboxesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListInboxesKey = (params?: ListInboxesParams) =>\n [`/v1/inboxes`, ...(params ? [params] : [])] as const;\n\nexport type ListInboxesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listInboxes>>\n>;\n\n/**\n * @summary List inboxes\n */\nexport const useListInboxes = <TError = ErrorType<ErrorResponse>>(\n params?: ListInboxesParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listInboxes>>, 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 ? getListInboxesKey(params) : null));\n const swrFn = () => listInboxes(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 inbox's configuration.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`PATCH /v1/email-agents/{id}`\n * @summary Update inbox\n */\nexport const getUpdateInboxUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}`;\n};\n\nexport const updateInbox = async (\n inboxId: string,\n updateInboxBody: UpdateInboxBody,\n options?: RequestInit\n): Promise<UpdateInboxEnvelope> => {\n return customFetch<UpdateInboxEnvelope>(getUpdateInboxUrl(inboxId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateInboxBody),\n });\n};\n\nexport const getUpdateInboxMutationFetcher = (\n inboxId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateInboxBody }) => {\n return updateInbox(inboxId, arg, options);\n };\n};\nexport const getUpdateInboxMutationKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}`] as const;\n\nexport type UpdateInboxMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateInbox>>\n>;\n\n/**\n * @summary Update inbox\n */\nexport const useUpdateInbox = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateInbox>>,\n TError,\n Key,\n UpdateInboxBody,\n Awaited<ReturnType<typeof updateInbox>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateInboxMutationKey(inboxId);\n const swrFn = getUpdateInboxMutationFetcher(inboxId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete an inbox. The inbox stops routing new mail; existing email history is preserved.\n * @summary Delete inbox\n */\nexport const getDeleteInboxUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}`;\n};\n\nexport const deleteInbox = async (\n inboxId: string,\n options?: RequestInit\n): Promise<DeleteInboxEnvelope> => {\n return customFetch<DeleteInboxEnvelope>(getDeleteInboxUrl(inboxId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteInboxMutationFetcher = (\n inboxId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteInbox(inboxId, options);\n };\n};\nexport const getDeleteInboxMutationKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}`] as const;\n\nexport type DeleteInboxMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteInbox>>\n>;\n\n/**\n * @summary Delete inbox\n */\nexport const useDeleteInbox = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteInbox>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteInbox>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteInboxMutationKey(inboxId);\n const swrFn = getDeleteInboxMutationFetcher(inboxId, 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 CancelJobEnvelope,\n ErrorResponse,\n ListJobsEnvelope,\n ListJobsParams,\n ScheduleJobBody,\n ScheduleJobEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Schedule a new outbound call job for a voice 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\n**Environment:**\n\n`environment` selects which promoted agent configuration and phone binding the call dispatches against (`live` or `test`). Defaults to `live`. Scheduling fails when the selected environment has no active promotion.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/{id}/jobs`\n * @summary Schedule an outbound job\n */\nexport const getScheduleJobUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/jobs`;\n};\n\nexport const scheduleJob = async (\n voiceAgentId: string,\n scheduleJobBody: ScheduleJobBody,\n options?: RequestInit\n): Promise<ScheduleJobEnvelope> => {\n return customFetch<ScheduleJobEnvelope>(getScheduleJobUrl(voiceAgentId), {\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 voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ScheduleJobBody }) => {\n return scheduleJob(voiceAgentId, arg, options);\n };\n};\nexport const getScheduleJobMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/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 voiceAgentId: 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(voiceAgentId);\n const swrFn = getScheduleJobMutationFetcher(voiceAgentId, 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\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/jobs`\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents/jobs?${stringifiedParams}`\n : `/v1/voice-agents/jobs`;\n};\n\nexport const listJobs = async (\n params: ListJobsParams,\n options?: RequestInit\n): Promise<ListJobsEnvelope> => {\n return customFetch<ListJobsEnvelope>(getListJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListJobsKey = (params: ListJobsParams) =>\n [`/v1/voice-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\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/jobs/{id}/cancel`\n * @summary Cancel an outbound job\n */\nexport const getCancelJobUrl = (jobId: string) => {\n return `/v1/voice-agents/jobs/${jobId}/cancel`;\n};\n\nexport const cancelJob = async (\n jobId: string,\n options?: RequestInit\n): Promise<CancelJobEnvelope> => {\n return customFetch<CancelJobEnvelope>(getCancelJobUrl(jobId), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCancelJobMutationFetcher = (\n jobId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelJob(jobId, options);\n };\n};\nexport const getCancelJobMutationKey = (jobId: string) =>\n [`/v1/voice-agents/jobs/${jobId}/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 jobId: 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(jobId);\n const swrFn = getCancelJobMutationFetcher(jobId, 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, GetProfileEnvelope } from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve the current user's profile information. This endpoint requires a user session and cannot be used with API Keys.\n * @summary Get profile\n */\nexport const getGetProfileUrl = () => {\n return `/v1/profile`;\n};\n\nexport const getProfile = async (\n options?: RequestInit\n): Promise<GetProfileEnvelope> => {\n return customFetch<GetProfileEnvelope>(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateScheduleBody,\n CreateScheduleEnvelope,\n DeleteScheduleEnvelope,\n ErrorResponse,\n GetScheduleEnvelope,\n ListSchedulesEnvelope,\n ListSchedulesParams,\n UpdateScheduleBody,\n UpdateScheduleEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a schedule that performs an action, either repeatedly or once.\n\n`action` describes **what** happens — today only `trigger_worker`, which starts a worker run with the given scope. `rule` describes **when**: `hourly`, `daily` and `weekly` recur in the tenant's own time zone — an IANA identifier such as `America/Chicago`, resolved across DST transitions — while `once` fires a single time at a UTC instant.\n\nThe response's `next_run_at` is the first occurrence strictly after the moment of creation; a rule that resolves to no such occurrence is rejected. Create with `enabled: false` to stage a recurring schedule without letting it fire. A one-off is always enabled: delete it to cancel it, and its `next_run_at` becomes null once it has fired.\n\nRequires the `schedules:write` permission.\n * @summary Create a schedule\n */\nexport const getCreateScheduleUrl = () => {\n return `/v1/schedules`;\n};\n\nexport const createSchedule = async (\n createScheduleBody: CreateScheduleBody,\n options?: RequestInit\n): Promise<CreateScheduleEnvelope> => {\n return customFetch<CreateScheduleEnvelope>(getCreateScheduleUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createScheduleBody),\n });\n};\n\nexport const getCreateScheduleMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateScheduleBody }) => {\n return createSchedule(arg, options);\n };\n};\nexport const getCreateScheduleMutationKey = () => [`/v1/schedules`] as const;\n\nexport type CreateScheduleMutationResult = NonNullable<\n Awaited<ReturnType<typeof createSchedule>>\n>;\n\n/**\n * @summary Create a schedule\n */\nexport const useCreateSchedule = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createSchedule>>,\n TError,\n Key,\n CreateScheduleBody,\n Awaited<ReturnType<typeof createSchedule>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateScheduleMutationKey();\n const swrFn = getCreateScheduleMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the organization's schedules. Requires the `schedules:read` permission.\n * @summary List schedules\n */\nexport const getListSchedulesUrl = (params?: ListSchedulesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/schedules?${stringifiedParams}`\n : `/v1/schedules`;\n};\n\nexport const listSchedules = async (\n params?: ListSchedulesParams,\n options?: RequestInit\n): Promise<ListSchedulesEnvelope> => {\n return customFetch<ListSchedulesEnvelope>(getListSchedulesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListSchedulesKey = (params?: ListSchedulesParams) =>\n [`/v1/schedules`, ...(params ? [params] : [])] as const;\n\nexport type ListSchedulesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listSchedules>>\n>;\n\n/**\n * @summary List schedules\n */\nexport const useListSchedules = <TError = ErrorType<ErrorResponse>>(\n params?: ListSchedulesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listSchedules>>,\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 ? getListSchedulesKey(params) : null));\n const swrFn = () => listSchedules(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 schedule. Requires the `schedules:read` permission.\n * @summary Get a schedule\n */\nexport const getGetScheduleUrl = (scheduleId: string) => {\n return `/v1/schedules/${scheduleId}`;\n};\n\nexport const getSchedule = async (\n scheduleId: string,\n options?: RequestInit\n): Promise<GetScheduleEnvelope> => {\n return customFetch<GetScheduleEnvelope>(getGetScheduleUrl(scheduleId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetScheduleKey = (scheduleId: string) =>\n [`/v1/schedules/${scheduleId}`] as const;\n\nexport type GetScheduleQueryResult = NonNullable<\n Awaited<ReturnType<typeof getSchedule>>\n>;\n\n/**\n * @summary Get a schedule\n */\nexport const useGetSchedule = <TError = ErrorType<ErrorResponse>>(\n scheduleId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getSchedule>>, 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 && !!scheduleId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetScheduleKey(scheduleId) : null));\n const swrFn = () => getSchedule(scheduleId, 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 schedule's rule, name, or enabled state.\n\nChanging the rule moves `next_run_at` to the first occurrence after the update; a rule that resolves to no such occurrence is rejected. One-off schedules are always enabled — delete one to cancel it before it fires.\n * @summary Update a schedule\n */\nexport const getUpdateScheduleUrl = (scheduleId: string) => {\n return `/v1/schedules/${scheduleId}`;\n};\n\nexport const updateSchedule = async (\n scheduleId: string,\n updateScheduleBody: UpdateScheduleBody,\n options?: RequestInit\n): Promise<UpdateScheduleEnvelope> => {\n return customFetch<UpdateScheduleEnvelope>(getUpdateScheduleUrl(scheduleId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateScheduleBody),\n });\n};\n\nexport const getUpdateScheduleMutationFetcher = (\n scheduleId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateScheduleBody }) => {\n return updateSchedule(scheduleId, arg, options);\n };\n};\nexport const getUpdateScheduleMutationKey = (scheduleId: string) =>\n [`/v1/schedules/${scheduleId}`] as const;\n\nexport type UpdateScheduleMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateSchedule>>\n>;\n\n/**\n * @summary Update a schedule\n */\nexport const useUpdateSchedule = <TError = ErrorType<ErrorResponse>>(\n scheduleId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateSchedule>>,\n TError,\n Key,\n UpdateScheduleBody,\n Awaited<ReturnType<typeof updateSchedule>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateScheduleMutationKey(scheduleId);\n const swrFn = getUpdateScheduleMutationFetcher(scheduleId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete a schedule so it stops firing.\n * @summary Delete a schedule\n */\nexport const getDeleteScheduleUrl = (scheduleId: string) => {\n return `/v1/schedules/${scheduleId}`;\n};\n\nexport const deleteSchedule = async (\n scheduleId: string,\n options?: RequestInit\n): Promise<DeleteScheduleEnvelope> => {\n return customFetch<DeleteScheduleEnvelope>(getDeleteScheduleUrl(scheduleId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteScheduleMutationFetcher = (\n scheduleId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteSchedule(scheduleId, options);\n };\n};\nexport const getDeleteScheduleMutationKey = (scheduleId: string) =>\n [`/v1/schedules/${scheduleId}`] as const;\n\nexport type DeleteScheduleMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteSchedule>>\n>;\n\n/**\n * @summary Delete a schedule\n */\nexport const useDeleteSchedule = <TError = ErrorType<ErrorResponse>>(\n scheduleId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteSchedule>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteSchedule>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteScheduleMutationKey(scheduleId);\n const swrFn = getDeleteScheduleMutationFetcher(scheduleId, 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 CreateSecretBody,\n CreateSecretEnvelope,\n DeleteSecretEnvelope,\n ErrorResponse,\n GetSecretEnvelope,\n ListSecretsEnvelope,\n ListSecretsParams,\n UpdateSecretBody,\n UpdateSecretEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create an organization-level secret. The value is encrypted at rest and **write-only** — no endpoint ever returns it.\n\nRequires the `secrets:write` permission. Env keys used by the worker runtime itself (e.g. `OPENAI_API_KEY`, `AVALLON_*`, `AWS_*`) are reserved and rejected.\n * @summary Create a secret\n */\nexport const getCreateSecretUrl = () => {\n return `/v1/secrets`;\n};\n\nexport const createSecret = async (\n createSecretBody: CreateSecretBody,\n options?: RequestInit\n): Promise<CreateSecretEnvelope> => {\n return customFetch<CreateSecretEnvelope>(getCreateSecretUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createSecretBody),\n });\n};\n\nexport const getCreateSecretMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateSecretBody }) => {\n return createSecret(arg, options);\n };\n};\nexport const getCreateSecretMutationKey = () => [`/v1/secrets`] as const;\n\nexport type CreateSecretMutationResult = NonNullable<\n Awaited<ReturnType<typeof createSecret>>\n>;\n\n/**\n * @summary Create a secret\n */\nexport const useCreateSecret = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createSecret>>,\n TError,\n Key,\n CreateSecretBody,\n Awaited<ReturnType<typeof createSecret>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateSecretMutationKey();\n const swrFn = getCreateSecretMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the organization's secrets with pagination and sorting. Values are never included. Requires the `secrets:read` permission.\n * @summary List secrets\n */\nexport const getListSecretsUrl = (params?: ListSecretsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/secrets?${stringifiedParams}`\n : `/v1/secrets`;\n};\n\nexport const listSecrets = async (\n params?: ListSecretsParams,\n options?: RequestInit\n): Promise<ListSecretsEnvelope> => {\n return customFetch<ListSecretsEnvelope>(getListSecretsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListSecretsKey = (params?: ListSecretsParams) =>\n [`/v1/secrets`, ...(params ? [params] : [])] as const;\n\nexport type ListSecretsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listSecrets>>\n>;\n\n/**\n * @summary List secrets\n */\nexport const useListSecrets = <TError = ErrorType<ErrorResponse>>(\n params?: ListSecretsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listSecrets>>, 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 ? getListSecretsKey(params) : null));\n const swrFn = () => listSecrets(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 * Get a secret's metadata. The value is never included. Requires the `secrets:read` permission.\n * @summary Get secret\n */\nexport const getGetSecretUrl = (secretId: string) => {\n return `/v1/secrets/${secretId}`;\n};\n\nexport const getSecret = async (\n secretId: string,\n options?: RequestInit\n): Promise<GetSecretEnvelope> => {\n return customFetch<GetSecretEnvelope>(getGetSecretUrl(secretId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetSecretKey = (secretId: string) =>\n [`/v1/secrets/${secretId}`] as const;\n\nexport type GetSecretQueryResult = NonNullable<\n Awaited<ReturnType<typeof getSecret>>\n>;\n\n/**\n * @summary Get secret\n */\nexport const useGetSecret = <TError = ErrorType<ErrorResponse>>(\n secretId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getSecret>>, 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 && !!secretId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetSecretKey(secretId) : null));\n const swrFn = () => getSecret(secretId, 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 secret's display name or description, or rotate its value. Rotation overwrites the stored value — previous values are not retrievable.\n\nThe `env_key` is immutable: consumers of the secret receive the value under that key, so changing it would silently break them. Create a new secret instead.\n\nRequires the `secrets:write` permission.\n * @summary Update secret\n */\nexport const getUpdateSecretUrl = (secretId: string) => {\n return `/v1/secrets/${secretId}`;\n};\n\nexport const updateSecret = async (\n secretId: string,\n updateSecretBody: UpdateSecretBody,\n options?: RequestInit\n): Promise<UpdateSecretEnvelope> => {\n return customFetch<UpdateSecretEnvelope>(getUpdateSecretUrl(secretId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateSecretBody),\n });\n};\n\nexport const getUpdateSecretMutationFetcher = (\n secretId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateSecretBody }) => {\n return updateSecret(secretId, arg, options);\n };\n};\nexport const getUpdateSecretMutationKey = (secretId: string) =>\n [`/v1/secrets/${secretId}`] as const;\n\nexport type UpdateSecretMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateSecret>>\n>;\n\n/**\n * @summary Update secret\n */\nexport const useUpdateSecret = <TError = ErrorType<ErrorResponse>>(\n secretId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateSecret>>,\n TError,\n Key,\n UpdateSecretBody,\n Awaited<ReturnType<typeof updateSecret>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateSecretMutationKey(secretId);\n const swrFn = getUpdateSecretMutationFetcher(secretId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete a secret and detach it from all entities. Requires the `secrets:write` permission.\n * @summary Delete secret\n */\nexport const getDeleteSecretUrl = (secretId: string) => {\n return `/v1/secrets/${secretId}`;\n};\n\nexport const deleteSecret = async (\n secretId: string,\n options?: RequestInit\n): Promise<DeleteSecretEnvelope> => {\n return customFetch<DeleteSecretEnvelope>(getDeleteSecretUrl(secretId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteSecretMutationFetcher = (\n secretId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteSecret(secretId, options);\n };\n};\nexport const getDeleteSecretMutationKey = (secretId: string) =>\n [`/v1/secrets/${secretId}`] as const;\n\nexport type DeleteSecretMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteSecret>>\n>;\n\n/**\n * @summary Delete secret\n */\nexport const useDeleteSecret = <TError = ErrorType<ErrorResponse>>(\n secretId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteSecret>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteSecret>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteSecretMutationKey(secretId);\n const swrFn = getDeleteSecretMutationFetcher(secretId, 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 ErrorResponse,\n InviteTeamMemberBody,\n InviteTeamMemberEnvelope,\n ListTeamInvitationsEnvelope,\n ListTeamMembersEnvelope,\n ResendTeamInvitationEnvelope,\n UpdateMemberRoleBody,\n UpdateMemberRoleEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all members in the current tenant.\n * @summary List team members\n */\nexport const getListTeamMembersUrl = () => {\n return `/v1/team/members`;\n};\n\nexport const listTeamMembers = async (\n options?: RequestInit\n): Promise<ListTeamMembersEnvelope> => {\n return customFetch<ListTeamMembersEnvelope>(getListTeamMembersUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListTeamMembersKey = () => [`/v1/team/members`] as const;\n\nexport type ListTeamMembersQueryResult = NonNullable<\n Awaited<ReturnType<typeof listTeamMembers>>\n>;\n\n/**\n * @summary List team members\n */\nexport const useListTeamMembers = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listTeamMembers>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListTeamMembersKey() : null));\n const swrFn = () => listTeamMembers(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 * Invite an email address to join the current tenant. The invitee receives an email and joins at the `member` role once they accept; promote them afterwards with `PATCH /v1/team/members/{id}`.\n\nRequires the `teams:write` permission.\n\nReturns `409` if the address already has a pending invitation or is already a member.\n * @summary Invite a team member\n */\nexport const getInviteTeamMemberUrl = () => {\n return `/v1/team/invitations`;\n};\n\nexport const inviteTeamMember = async (\n inviteTeamMemberBody: InviteTeamMemberBody,\n options?: RequestInit\n): Promise<InviteTeamMemberEnvelope> => {\n return customFetch<InviteTeamMemberEnvelope>(getInviteTeamMemberUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(inviteTeamMemberBody),\n });\n};\n\nexport const getInviteTeamMemberMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: InviteTeamMemberBody }) => {\n return inviteTeamMember(arg, options);\n };\n};\nexport const getInviteTeamMemberMutationKey = () =>\n [`/v1/team/invitations`] as const;\n\nexport type InviteTeamMemberMutationResult = NonNullable<\n Awaited<ReturnType<typeof inviteTeamMember>>\n>;\n\n/**\n * @summary Invite a team member\n */\nexport const useInviteTeamMember = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof inviteTeamMember>>,\n TError,\n Key,\n InviteTeamMemberBody,\n Awaited<ReturnType<typeof inviteTeamMember>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getInviteTeamMemberMutationKey();\n const swrFn = getInviteTeamMemberMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the invitations for the current tenant that are still awaiting acceptance. Accepted, revoked and expired invitations are not returned.\n\nInvitees are not team members yet, so they do not appear in `GET /v1/team/members`. A member-management screen shows both by merging the two lists.\n\nRequires the `teams:write` permission.\n * @summary List pending team invitations\n */\nexport const getListTeamInvitationsUrl = () => {\n return `/v1/team/invitations`;\n};\n\nexport const listTeamInvitations = async (\n options?: RequestInit\n): Promise<ListTeamInvitationsEnvelope> => {\n return customFetch<ListTeamInvitationsEnvelope>(getListTeamInvitationsUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListTeamInvitationsKey = () =>\n [`/v1/team/invitations`] as const;\n\nexport type ListTeamInvitationsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listTeamInvitations>>\n>;\n\n/**\n * @summary List pending team invitations\n */\nexport const useListTeamInvitations = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listTeamInvitations>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListTeamInvitationsKey() : null));\n const swrFn = () => listTeamInvitations(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 invitation. The link that was emailed to the invitee stops working, and the address becomes free to invite again.\n\nIdempotent: an invitation that was already accepted, revoked or expired also returns `204`.\n\nRequires the `teams:write` permission.\n\nReturns `404` for an unknown invitation or one that belongs to another tenant.\n * @summary Revoke a team invitation\n */\nexport const getRevokeTeamInvitationUrl = (invitationId: string) => {\n return `/v1/team/invitations/${invitationId}`;\n};\n\nexport const revokeTeamInvitation = async (\n invitationId: string,\n options?: RequestInit\n): Promise<void> => {\n return customFetch<void>(getRevokeTeamInvitationUrl(invitationId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getRevokeTeamInvitationMutationFetcher = (\n invitationId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return revokeTeamInvitation(invitationId, options);\n };\n};\nexport const getRevokeTeamInvitationMutationKey = (invitationId: string) =>\n [`/v1/team/invitations/${invitationId}`] as const;\n\nexport type RevokeTeamInvitationMutationResult = NonNullable<\n Awaited<ReturnType<typeof revokeTeamInvitation>>\n>;\n\n/**\n * @summary Revoke a team invitation\n */\nexport const useRevokeTeamInvitation = <TError = ErrorType<ErrorResponse>>(\n invitationId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof revokeTeamInvitation>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof revokeTeamInvitation>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getRevokeTeamInvitationMutationKey(invitationId);\n const swrFn = getRevokeTeamInvitationMutationFetcher(\n invitationId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Email the invitation to its recipient again, for an invite that never arrived. The invitation keeps its `id` and its original expiry — this re-sends the existing link rather than issuing a new one.\n\nTo give someone a genuinely fresh 5 days, revoke the invitation and send a new one instead.\n\nRequires the `teams:write` permission.\n\nReturns `409` if the invitation is no longer pending — it was accepted, revoked or expired underneath the caller — and `404` for an unknown invitation or one that belongs to another tenant.\n * @summary Resend a team invitation\n */\nexport const getResendTeamInvitationUrl = (invitationId: string) => {\n return `/v1/team/invitations/${invitationId}/resend`;\n};\n\nexport const resendTeamInvitation = async (\n invitationId: string,\n options?: RequestInit\n): Promise<ResendTeamInvitationEnvelope> => {\n return customFetch<ResendTeamInvitationEnvelope>(\n getResendTeamInvitationUrl(invitationId),\n {\n ...options,\n method: \"POST\",\n }\n );\n};\n\nexport const getResendTeamInvitationMutationFetcher = (\n invitationId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return resendTeamInvitation(invitationId, options);\n };\n};\nexport const getResendTeamInvitationMutationKey = (invitationId: string) =>\n [`/v1/team/invitations/${invitationId}/resend`] as const;\n\nexport type ResendTeamInvitationMutationResult = NonNullable<\n Awaited<ReturnType<typeof resendTeamInvitation>>\n>;\n\n/**\n * @summary Resend a team invitation\n */\nexport const useResendTeamInvitation = <TError = ErrorType<ErrorResponse>>(\n invitationId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof resendTeamInvitation>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof resendTeamInvitation>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getResendTeamInvitationMutationKey(invitationId);\n const swrFn = getResendTeamInvitationMutationFetcher(\n invitationId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Change the role of a team member.\n * @summary Update member role\n */\nexport const getUpdateMemberRoleUrl = (id: string) => {\n return `/v1/team/members/${id}`;\n};\n\nexport const updateMemberRole = async (\n id: string,\n updateMemberRoleBody: UpdateMemberRoleBody,\n options?: RequestInit\n): Promise<UpdateMemberRoleEnvelope> => {\n return customFetch<UpdateMemberRoleEnvelope>(getUpdateMemberRoleUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateMemberRoleBody),\n });\n};\n\nexport const getUpdateMemberRoleMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateMemberRoleBody }) => {\n return updateMemberRole(id, arg, options);\n };\n};\nexport const getUpdateMemberRoleMutationKey = (id: string) =>\n [`/v1/team/members/${id}`] as const;\n\nexport type UpdateMemberRoleMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateMemberRole>>\n>;\n\n/**\n * @summary Update member role\n */\nexport const useUpdateMemberRole = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateMemberRole>>,\n TError,\n Key,\n UpdateMemberRoleBody,\n Awaited<ReturnType<typeof updateMemberRole>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateMemberRoleMutationKey(id);\n const swrFn = getUpdateMemberRoleMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Soft-delete a team member, revoking access on the next token refresh.\n * @summary Remove team member\n */\nexport const getRemoveMemberUrl = (id: string) => {\n return `/v1/team/members/${id}`;\n};\n\nexport const removeMember = async (\n id: string,\n options?: RequestInit\n): Promise<void> => {\n return customFetch<void>(getRemoveMemberUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getRemoveMemberMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return removeMember(id, options);\n };\n};\nexport const getRemoveMemberMutationKey = (id: string) =>\n [`/v1/team/members/${id}`] as const;\n\nexport type RemoveMemberMutationResult = NonNullable<\n Awaited<ReturnType<typeof removeMember>>\n>;\n\n/**\n * @summary Remove team member\n */\nexport const useRemoveMember = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof removeMember>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof removeMember>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRemoveMemberMutationKey(id);\n const swrFn = getRemoveMemberMutationFetcher(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 CreateToolBody,\n CreateToolEnvelope,\n DeleteToolEnvelope,\n ErrorResponse,\n ExecuteCodeBody,\n ExecuteCodeEnvelope,\n GetToolEnvelope,\n ListToolsEnvelope,\n ListToolsParams,\n UpdateToolBody,\n UpdateToolEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<CreateToolEnvelope> => {\n return customFetch<CreateToolEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListToolsEnvelope> => {\n return customFetch<ListToolsEnvelope>(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 * Delete a tool. Fails with a conflict when the tool is still attached to a voice agent, worker, or chat agent; detach it first.\n * @summary Delete tool\n */\nexport const getDeleteToolUrl = (id: string) => {\n return `/v1/tools/${id}`;\n};\n\nexport const deleteTool = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteToolEnvelope> => {\n return customFetch<DeleteToolEnvelope>(getDeleteToolUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteToolMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteTool(id, options);\n };\n};\nexport const getDeleteToolMutationKey = (id: string) =>\n [`/v1/tools/${id}`] as const;\n\nexport type DeleteToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteTool>>\n>;\n\n/**\n * @summary Delete tool\n */\nexport const useDeleteTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteTool>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteToolMutationKey(id);\n const swrFn = getDeleteToolMutationFetcher(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<GetToolEnvelope> => {\n return customFetch<GetToolEnvelope>(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<UpdateToolEnvelope> => {\n return customFetch<UpdateToolEnvelope>(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 * 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<ExecuteCodeEnvelope> => {\n return customFetch<ExecuteCodeEnvelope>(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 * 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 AddToolsToVoiceAgentBody,\n AddToolsToVoiceAgentEnvelope,\n CreateVoiceAgentBody,\n CreateVoiceAgentEnvelope,\n DeleteToolsFromVoiceAgentBody,\n DeleteToolsFromVoiceAgentEnvelope,\n DeleteVoiceAgentEnvelope,\n ErrorResponse,\n GetVoiceAgentEnvelope,\n GetVoiceAgentPlaceholdersEnvelope,\n GetVoiceAgentPromptEnvelope,\n GetVoiceAgentPromptParams,\n GetVoiceAgentVersionChangeSummaryEnvelope,\n GetVoiceAgentVersionEnvelope,\n ListVoiceAgentVersionsEnvelope,\n ListVoiceAgentVersionsParams,\n ListVoiceAgentsEnvelope,\n ListVoiceAgentsParams,\n PromoteVoiceAgentVersionBody,\n PromoteVoiceAgentVersionEnvelope,\n UpdateCallControlsBody,\n UpdateCallControlsEnvelope,\n UpdateVoiceAgentBody,\n UpdateVoiceAgentEnvelope,\n UpdateVoiceAgentModelsBody,\n UpdateVoiceAgentModelsEnvelope,\n UpdateVoiceAgentPromptBody,\n UpdateVoiceAgentPromptEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all voice agents for your tenant.\n\n**Filtering:**\n\nFilter voice agents by name using the `agent_name` query parameter (exact match).\n\n**Response:**\n\nReturns an array of all voice agents with their configurations and a total count.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents`\n * @summary List voice agents\n */\nexport const getListVoiceAgentsUrl = (params?: ListVoiceAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents?${stringifiedParams}`\n : `/v1/voice-agents`;\n};\n\nexport const listVoiceAgents = async (\n params?: ListVoiceAgentsParams,\n options?: RequestInit\n): Promise<ListVoiceAgentsEnvelope> => {\n return customFetch<ListVoiceAgentsEnvelope>(getListVoiceAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListVoiceAgentsKey = (params?: ListVoiceAgentsParams) =>\n [`/v1/voice-agents`, ...(params ? [params] : [])] as const;\n\nexport type ListVoiceAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listVoiceAgents>>\n>;\n\n/**\n * @summary List voice agents\n */\nexport const useListVoiceAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListVoiceAgentsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listVoiceAgents>>,\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 ? getListVoiceAgentsKey(params) : null));\n const swrFn = () => listVoiceAgents(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 voice agent with its ID and configuration.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents`\n * @summary Create voice agent\n */\nexport const getCreateVoiceAgentUrl = () => {\n return `/v1/voice-agents`;\n};\n\nexport const createVoiceAgent = async (\n createVoiceAgentBody: CreateVoiceAgentBody,\n options?: RequestInit\n): Promise<CreateVoiceAgentEnvelope> => {\n return customFetch<CreateVoiceAgentEnvelope>(getCreateVoiceAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createVoiceAgentBody),\n });\n};\n\nexport const getCreateVoiceAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateVoiceAgentBody }) => {\n return createVoiceAgent(arg, options);\n };\n};\nexport const getCreateVoiceAgentMutationKey = () =>\n [`/v1/voice-agents`] as const;\n\nexport type CreateVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createVoiceAgent>>\n>;\n\n/**\n * @summary Create voice agent\n */\nexport const useCreateVoiceAgent = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createVoiceAgent>>,\n TError,\n Key,\n CreateVoiceAgentBody,\n Awaited<ReturnType<typeof createVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateVoiceAgentMutationKey();\n const swrFn = getCreateVoiceAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single voice agent by its ID.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/{id}`\n * @summary Get voice agent\n */\nexport const getGetVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}`;\n};\n\nexport const getVoiceAgent = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<GetVoiceAgentEnvelope> => {\n return customFetch<GetVoiceAgentEnvelope>(getGetVoiceAgentUrl(voiceAgentId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetVoiceAgentKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}`] as const;\n\nexport type GetVoiceAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgent>>\n>;\n\n/**\n * @summary Get voice agent\n */\nexport const useGetVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgent>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetVoiceAgentKey(voiceAgentId) : null));\n const swrFn = () => getVoiceAgent(voiceAgentId, 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 voice agent's name, call processor, or call behaviour settings.\n\nTo change the processor assignment, `call_processor_id` and `call_processor_type` must be provided together. Set `call_processor_id` to `null` to detach (`call_processor_type` is still required).\n\nSet `voice_mail_detection` to `true` to have the agent listen for a voicemail beep tone. Detection only runs on `OUTBOUND` agents; enabling it on an `INBOUND` agent is stored but has no effect.\n\nConfig changes create a new voice agent config version. The live and test releases keep pointing at their current versions until the new version is promoted.\n * @summary Update voice agent\n */\nexport const getUpdateVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}`;\n};\n\nexport const updateVoiceAgent = async (\n voiceAgentId: string,\n updateVoiceAgentBody: UpdateVoiceAgentBody,\n options?: RequestInit\n): Promise<UpdateVoiceAgentEnvelope> => {\n return customFetch<UpdateVoiceAgentEnvelope>(\n getUpdateVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateVoiceAgentBody),\n }\n );\n};\n\nexport const getUpdateVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateVoiceAgentBody }) => {\n return updateVoiceAgent(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}`] as const;\n\nexport type UpdateVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateVoiceAgent>>\n>;\n\n/**\n * @summary Update voice agent\n */\nexport const useUpdateVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateVoiceAgent>>,\n TError,\n Key,\n UpdateVoiceAgentBody,\n Awaited<ReturnType<typeof updateVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getUpdateVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete a voice agent. The agent is hidden from all reads; its call and job history is preserved.\n * @summary Delete voice agent\n */\nexport const getDeleteVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}`;\n};\n\nexport const deleteVoiceAgent = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<DeleteVoiceAgentEnvelope> => {\n return customFetch<DeleteVoiceAgentEnvelope>(\n getDeleteVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"DELETE\",\n }\n );\n};\n\nexport const getDeleteVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteVoiceAgent(voiceAgentId, options);\n };\n};\nexport const getDeleteVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}`] as const;\n\nexport type DeleteVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteVoiceAgent>>\n>;\n\n/**\n * @summary Delete voice agent\n */\nexport const useDeleteVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteVoiceAgent>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getDeleteVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all config versions for a voice agent, ordered by version (newest first by default).\n * @summary List voice agent versions\n */\nexport const getListVoiceAgentVersionsUrl = (\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents/${voiceAgentId}/versions?${stringifiedParams}`\n : `/v1/voice-agents/${voiceAgentId}/versions`;\n};\n\nexport const listVoiceAgentVersions = async (\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams,\n options?: RequestInit\n): Promise<ListVoiceAgentVersionsEnvelope> => {\n return customFetch<ListVoiceAgentVersionsEnvelope>(\n getListVoiceAgentVersionsUrl(voiceAgentId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListVoiceAgentVersionsKey = (\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams\n) =>\n [\n `/v1/voice-agents/${voiceAgentId}/versions`,\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListVoiceAgentVersionsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listVoiceAgentVersions>>\n>;\n\n/**\n * @summary List voice agent versions\n */\nexport const useListVoiceAgentVersions = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listVoiceAgentVersions>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getListVoiceAgentVersionsKey(voiceAgentId, params) : null);\n const swrFn = () =>\n listVoiceAgentVersions(voiceAgentId, 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 voice agent config version, including the agent's identity, the config snapshot at that version, and version-specific metadata.\n * @summary Get voice agent version\n */\nexport const getGetVoiceAgentVersionUrl = (\n voiceAgentId: string,\n version: number\n) => {\n return `/v1/voice-agents/${voiceAgentId}/versions/${version}`;\n};\n\nexport const getVoiceAgentVersion = async (\n voiceAgentId: string,\n version: number,\n options?: RequestInit\n): Promise<GetVoiceAgentVersionEnvelope> => {\n return customFetch<GetVoiceAgentVersionEnvelope>(\n getGetVoiceAgentVersionUrl(voiceAgentId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentVersionKey = (\n voiceAgentId: string,\n version: number\n) => [`/v1/voice-agents/${voiceAgentId}/versions/${version}`] as const;\n\nexport type GetVoiceAgentVersionQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentVersion>>\n>;\n\n/**\n * @summary Get voice agent version\n */\nexport const useGetVoiceAgentVersion = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentVersion>>,\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 =\n swrOptions?.enabled !== false && !!(voiceAgentId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getGetVoiceAgentVersionKey(voiceAgentId, version) : null);\n const swrFn = () =>\n getVoiceAgentVersion(voiceAgentId, version, 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 * Select a voice agent configuration version for the live or test environment.\n * @summary Promote voice agent version\n */\nexport const getPromoteVoiceAgentVersionUrl = (\n voiceAgentId: string,\n version: number\n) => {\n return `/v1/voice-agents/${voiceAgentId}/versions/${version}/promote`;\n};\n\nexport const promoteVoiceAgentVersion = async (\n voiceAgentId: string,\n version: number,\n promoteVoiceAgentVersionBody: PromoteVoiceAgentVersionBody,\n options?: RequestInit\n): Promise<PromoteVoiceAgentVersionEnvelope> => {\n return customFetch<PromoteVoiceAgentVersionEnvelope>(\n getPromoteVoiceAgentVersionUrl(voiceAgentId, version),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(promoteVoiceAgentVersionBody),\n }\n );\n};\n\nexport const getPromoteVoiceAgentVersionMutationFetcher = (\n voiceAgentId: string,\n version: number,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PromoteVoiceAgentVersionBody }) => {\n return promoteVoiceAgentVersion(voiceAgentId, version, arg, options);\n };\n};\nexport const getPromoteVoiceAgentVersionMutationKey = (\n voiceAgentId: string,\n version: number\n) => [`/v1/voice-agents/${voiceAgentId}/versions/${version}/promote`] as const;\n\nexport type PromoteVoiceAgentVersionMutationResult = NonNullable<\n Awaited<ReturnType<typeof promoteVoiceAgentVersion>>\n>;\n\n/**\n * @summary Promote voice agent version\n */\nexport const usePromoteVoiceAgentVersion = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n version: number,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof promoteVoiceAgentVersion>>,\n TError,\n Key,\n PromoteVoiceAgentVersionBody,\n Awaited<ReturnType<typeof promoteVoiceAgentVersion>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ??\n getPromoteVoiceAgentVersionMutationKey(voiceAgentId, version);\n const swrFn = getPromoteVoiceAgentVersionMutationFetcher(\n voiceAgentId,\n version,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Returns an AI-generated summary of what changed between this version and the previous one. Initial version returns an empty string since there is no predecessor.\n * @summary Get voice agent version change summary\n */\nexport const getGetVoiceAgentVersionChangeSummaryUrl = (\n voiceAgentId: string,\n version: number\n) => {\n return `/v1/voice-agents/${voiceAgentId}/versions/${version}/change-summary`;\n};\n\nexport const getVoiceAgentVersionChangeSummary = async (\n voiceAgentId: string,\n version: number,\n options?: RequestInit\n): Promise<GetVoiceAgentVersionChangeSummaryEnvelope> => {\n return customFetch<GetVoiceAgentVersionChangeSummaryEnvelope>(\n getGetVoiceAgentVersionChangeSummaryUrl(voiceAgentId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentVersionChangeSummaryKey = (\n voiceAgentId: string,\n version: number\n) =>\n [\n `/v1/voice-agents/${voiceAgentId}/versions/${version}/change-summary`,\n ] as const;\n\nexport type GetVoiceAgentVersionChangeSummaryQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentVersionChangeSummary>>\n>;\n\n/**\n * @summary Get voice agent version change summary\n */\nexport const useGetVoiceAgentVersionChangeSummary = <\n TError = ErrorType<ErrorResponse>,\n>(\n voiceAgentId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentVersionChangeSummary>>,\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 =\n swrOptions?.enabled !== false && !!(voiceAgentId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled\n ? getGetVoiceAgentVersionChangeSummaryKey(voiceAgentId, version)\n : null);\n const swrFn = () =>\n getVoiceAgentVersionChangeSummary(voiceAgentId, version, 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 a voice agent by their IDs.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/{id}/tools`\n * @summary Add tools to voice agent\n */\nexport const getAddToolsToVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/tools`;\n};\n\nexport const addToolsToVoiceAgent = async (\n voiceAgentId: string,\n addToolsToVoiceAgentBody: AddToolsToVoiceAgentBody,\n options?: RequestInit\n): Promise<AddToolsToVoiceAgentEnvelope> => {\n return customFetch<AddToolsToVoiceAgentEnvelope>(\n getAddToolsToVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(addToolsToVoiceAgentBody),\n }\n );\n};\n\nexport const getAddToolsToVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: AddToolsToVoiceAgentBody }) => {\n return addToolsToVoiceAgent(voiceAgentId, arg, options);\n };\n};\nexport const getAddToolsToVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/tools`] as const;\n\nexport type AddToolsToVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof addToolsToVoiceAgent>>\n>;\n\n/**\n * @summary Add tools to voice agent\n */\nexport const useAddToolsToVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof addToolsToVoiceAgent>>,\n TError,\n Key,\n AddToolsToVoiceAgentBody,\n Awaited<ReturnType<typeof addToolsToVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getAddToolsToVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getAddToolsToVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\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 a voice agent by their IDs.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`DELETE /v1/agents/{id}/tools`\n * @summary Remove tools from voice agent\n */\nexport const getDeleteToolsFromVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/tools`;\n};\n\nexport const deleteToolsFromVoiceAgent = async (\n voiceAgentId: string,\n deleteToolsFromVoiceAgentBody: DeleteToolsFromVoiceAgentBody,\n options?: RequestInit\n): Promise<DeleteToolsFromVoiceAgentEnvelope> => {\n return customFetch<DeleteToolsFromVoiceAgentEnvelope>(\n getDeleteToolsFromVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"DELETE\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(deleteToolsFromVoiceAgentBody),\n }\n );\n};\n\nexport const getDeleteToolsFromVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: DeleteToolsFromVoiceAgentBody }) => {\n return deleteToolsFromVoiceAgent(voiceAgentId, arg, options);\n };\n};\nexport const getDeleteToolsFromVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/tools`] as const;\n\nexport type DeleteToolsFromVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteToolsFromVoiceAgent>>\n>;\n\n/**\n * @summary Remove tools from voice agent\n */\nexport const useDeleteToolsFromVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteToolsFromVoiceAgent>>,\n TError,\n Key,\n DeleteToolsFromVoiceAgentBody,\n Awaited<ReturnType<typeof deleteToolsFromVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteToolsFromVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getDeleteToolsFromVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the available placeholder variables defined in a voice agent's prompt.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/{id}/prompt`\n * @summary Get voice agent placeholders\n */\nexport const getGetVoiceAgentPlaceholdersUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/placeholders`;\n};\n\nexport const getVoiceAgentPlaceholders = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<GetVoiceAgentPlaceholdersEnvelope> => {\n return customFetch<GetVoiceAgentPlaceholdersEnvelope>(\n getGetVoiceAgentPlaceholdersUrl(voiceAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentPlaceholdersKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/placeholders`] as const;\n\nexport type GetVoiceAgentPlaceholdersQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentPlaceholders>>\n>;\n\n/**\n * @summary Get voice agent placeholders\n */\nexport const useGetVoiceAgentPlaceholders = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentPlaceholders>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetVoiceAgentPlaceholdersKey(voiceAgentId) : null));\n const swrFn = () => getVoiceAgentPlaceholders(voiceAgentId, 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 prompt for a voice agent. Pass `version` to fetch the prompt snapshot at a specific config version; omit it to fetch the current prompt. Internal use only.\n * @summary Get voice agent prompt\n */\nexport const getGetVoiceAgentPromptUrl = (\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents/${voiceAgentId}/prompt?${stringifiedParams}`\n : `/v1/voice-agents/${voiceAgentId}/prompt`;\n};\n\nexport const getVoiceAgentPrompt = async (\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams,\n options?: RequestInit\n): Promise<GetVoiceAgentPromptEnvelope> => {\n return customFetch<GetVoiceAgentPromptEnvelope>(\n getGetVoiceAgentPromptUrl(voiceAgentId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentPromptKey = (\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams\n) =>\n [\n `/v1/voice-agents/${voiceAgentId}/prompt`,\n ...(params ? [params] : []),\n ] as const;\n\nexport type GetVoiceAgentPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentPrompt>>\n>;\n\n/**\n * @summary Get voice agent prompt\n */\nexport const useGetVoiceAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentPrompt>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getGetVoiceAgentPromptKey(voiceAgentId, params) : null);\n const swrFn = () => getVoiceAgentPrompt(voiceAgentId, 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 the prompt for a voice agent. Internal use only.\n * @summary Update voice agent prompt\n */\nexport const getUpdateVoiceAgentPromptUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/prompt`;\n};\n\nexport const updateVoiceAgentPrompt = async (\n voiceAgentId: string,\n updateVoiceAgentPromptBody: UpdateVoiceAgentPromptBody,\n options?: RequestInit\n): Promise<UpdateVoiceAgentPromptEnvelope> => {\n return customFetch<UpdateVoiceAgentPromptEnvelope>(\n getUpdateVoiceAgentPromptUrl(voiceAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateVoiceAgentPromptBody),\n }\n );\n};\n\nexport const getUpdateVoiceAgentPromptMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateVoiceAgentPromptBody }) => {\n return updateVoiceAgentPrompt(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateVoiceAgentPromptMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/prompt`] as const;\n\nexport type UpdateVoiceAgentPromptMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateVoiceAgentPrompt>>\n>;\n\n/**\n * @summary Update voice agent prompt\n */\nexport const useUpdateVoiceAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateVoiceAgentPrompt>>,\n TError,\n Key,\n UpdateVoiceAgentPromptBody,\n Awaited<ReturnType<typeof updateVoiceAgentPrompt>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateVoiceAgentPromptMutationKey(voiceAgentId);\n const swrFn = getUpdateVoiceAgentPromptMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update the LLM, TTS, and STT model configuration for a voice agent.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`PATCH /v1/agents/{id}/models`\n * @summary Update voice agent models\n */\nexport const getUpdateVoiceAgentModelsUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/models`;\n};\n\nexport const updateVoiceAgentModels = async (\n voiceAgentId: string,\n updateVoiceAgentModelsBody: UpdateVoiceAgentModelsBody,\n options?: RequestInit\n): Promise<UpdateVoiceAgentModelsEnvelope> => {\n return customFetch<UpdateVoiceAgentModelsEnvelope>(\n getUpdateVoiceAgentModelsUrl(voiceAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateVoiceAgentModelsBody),\n }\n );\n};\n\nexport const getUpdateVoiceAgentModelsMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateVoiceAgentModelsBody }) => {\n return updateVoiceAgentModels(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateVoiceAgentModelsMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/models`] as const;\n\nexport type UpdateVoiceAgentModelsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateVoiceAgentModels>>\n>;\n\n/**\n * @summary Update voice agent models\n */\nexport const useUpdateVoiceAgentModels = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateVoiceAgentModels>>,\n TError,\n Key,\n UpdateVoiceAgentModelsBody,\n Awaited<ReturnType<typeof updateVoiceAgentModels>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateVoiceAgentModelsMutationKey(voiceAgentId);\n const swrFn = getUpdateVoiceAgentModelsMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update call control settings for a voice agent.\n\nConfigure whether the voice agent supports dial pad input, can end calls, and set a transfer phone number.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`PUT /v1/agents/{id}/call-controls`\n * @summary Update voice agent call controls\n */\nexport const getUpdateCallControlsUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/call-controls`;\n};\n\nexport const updateCallControls = async (\n voiceAgentId: string,\n updateCallControlsBody: UpdateCallControlsBody,\n options?: RequestInit\n): Promise<UpdateCallControlsEnvelope> => {\n return customFetch<UpdateCallControlsEnvelope>(\n getUpdateCallControlsUrl(voiceAgentId),\n {\n ...options,\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateCallControlsBody),\n }\n );\n};\n\nexport const getUpdateCallControlsMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateCallControlsBody }) => {\n return updateCallControls(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateCallControlsMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/call-controls`] as const;\n\nexport type UpdateCallControlsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateCallControls>>\n>;\n\n/**\n * @summary Update voice agent call controls\n */\nexport const useUpdateCallControls = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: 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 =\n swrOptions?.swrKey ?? getUpdateCallControlsMutationKey(voiceAgentId);\n const swrFn = getUpdateCallControlsMutationFetcher(\n voiceAgentId,\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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateAgentWebhookBody,\n CreateAgentWebhookEnvelope,\n CreateExtractorWebhookBody,\n CreateExtractorWebhookEnvelope,\n CreateInboxWebhookBody,\n CreateInboxWebhookEnvelope,\n CreateWorkerWebhookBody,\n CreateWorkerWebhookEnvelope,\n DeleteWebhookEnvelope,\n ErrorResponse,\n GetWebhookEnvelope,\n ListAgentWebhooksEnvelope,\n ListInboxWebhooksEnvelope,\n ListWebhookDeliveriesEnvelope,\n ListWebhookDeliveriesParams,\n ListWebhooksEnvelope,\n ListWorkerWebhooksEnvelope,\n TestWebhookEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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 worker.\n * @summary Create worker webhook\n */\nexport const getCreateWorkerWebhookUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/webhooks`;\n};\n\nexport const createWorkerWebhook = async (\n workerId: string,\n createWorkerWebhookBody: CreateWorkerWebhookBody,\n options?: RequestInit\n): Promise<CreateWorkerWebhookEnvelope> => {\n return customFetch<CreateWorkerWebhookEnvelope>(\n getCreateWorkerWebhookUrl(workerId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createWorkerWebhookBody),\n }\n );\n};\n\nexport const getCreateWorkerWebhookMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateWorkerWebhookBody }) => {\n return createWorkerWebhook(workerId, arg, options);\n };\n};\nexport const getCreateWorkerWebhookMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}/webhooks`] as const;\n\nexport type CreateWorkerWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createWorkerWebhook>>\n>;\n\n/**\n * @summary Create worker webhook\n */\nexport const useCreateWorkerWebhook = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createWorkerWebhook>>,\n TError,\n Key,\n CreateWorkerWebhookBody,\n Awaited<ReturnType<typeof createWorkerWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCreateWorkerWebhookMutationKey(workerId);\n const swrFn = getCreateWorkerWebhookMutationFetcher(workerId, 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 worker.\n * @summary List worker webhooks\n */\nexport const getListWorkerWebhooksUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/webhooks`;\n};\n\nexport const listWorkerWebhooks = async (\n workerId: string,\n options?: RequestInit\n): Promise<ListWorkerWebhooksEnvelope> => {\n return customFetch<ListWorkerWebhooksEnvelope>(\n getListWorkerWebhooksUrl(workerId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWorkerWebhooksKey = (workerId: string) =>\n [`/v1/workers/${workerId}/webhooks`] as const;\n\nexport type ListWorkerWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerWebhooks>>\n>;\n\n/**\n * @summary List worker webhooks\n */\nexport const useListWorkerWebhooks = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerWebhooks>>,\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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListWorkerWebhooksKey(workerId) : null));\n const swrFn = () => listWorkerWebhooks(workerId, 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 voice agent.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/{id}/webhooks`\n * @summary Create voice agent webhook\n */\nexport const getCreateAgentWebhookUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/webhooks`;\n};\n\nexport const createAgentWebhook = async (\n voiceAgentId: string,\n createAgentWebhookBody: CreateAgentWebhookBody,\n options?: RequestInit\n): Promise<CreateAgentWebhookEnvelope> => {\n return customFetch<CreateAgentWebhookEnvelope>(\n getCreateAgentWebhookUrl(voiceAgentId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentWebhookBody),\n }\n );\n};\n\nexport const getCreateAgentWebhookMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentWebhookBody }) => {\n return createAgentWebhook(voiceAgentId, arg, options);\n };\n};\nexport const getCreateAgentWebhookMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/webhooks`] as const;\n\nexport type CreateAgentWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgentWebhook>>\n>;\n\n/**\n * @summary Create voice agent webhook\n */\nexport const useCreateAgentWebhook = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: 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 =\n swrOptions?.swrKey ?? getCreateAgentWebhookMutationKey(voiceAgentId);\n const swrFn = getCreateAgentWebhookMutationFetcher(\n voiceAgentId,\n requestOptions\n );\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 voice agent.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/{id}/webhooks`\n * @summary List voice agent webhooks\n */\nexport const getListAgentWebhooksUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/webhooks`;\n};\n\nexport const listAgentWebhooks = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<ListAgentWebhooksEnvelope> => {\n return customFetch<ListAgentWebhooksEnvelope>(\n getListAgentWebhooksUrl(voiceAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListAgentWebhooksKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/webhooks`] as const;\n\nexport type ListAgentWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgentWebhooks>>\n>;\n\n/**\n * @summary List voice agent webhooks\n */\nexport const useListAgentWebhooks = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: 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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListAgentWebhooksKey(voiceAgentId) : null));\n const swrFn = () => listAgentWebhooks(voiceAgentId, 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 inbox.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/email-agents/{id}/webhooks`\n * @summary Create inbox webhook\n */\nexport const getCreateInboxWebhookUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}/webhooks`;\n};\n\nexport const createInboxWebhook = async (\n inboxId: string,\n createInboxWebhookBody: CreateInboxWebhookBody,\n options?: RequestInit\n): Promise<CreateInboxWebhookEnvelope> => {\n return customFetch<CreateInboxWebhookEnvelope>(\n getCreateInboxWebhookUrl(inboxId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createInboxWebhookBody),\n }\n );\n};\n\nexport const getCreateInboxWebhookMutationFetcher = (\n inboxId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateInboxWebhookBody }) => {\n return createInboxWebhook(inboxId, arg, options);\n };\n};\nexport const getCreateInboxWebhookMutationKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}/webhooks`] as const;\n\nexport type CreateInboxWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createInboxWebhook>>\n>;\n\n/**\n * @summary Create inbox webhook\n */\nexport const useCreateInboxWebhook = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createInboxWebhook>>,\n TError,\n Key,\n CreateInboxWebhookBody,\n Awaited<ReturnType<typeof createInboxWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCreateInboxWebhookMutationKey(inboxId);\n const swrFn = getCreateInboxWebhookMutationFetcher(inboxId, 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 inbox.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/email-agents/{id}/webhooks`\n * @summary List inbox webhooks\n */\nexport const getListInboxWebhooksUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}/webhooks`;\n};\n\nexport const listInboxWebhooks = async (\n inboxId: string,\n options?: RequestInit\n): Promise<ListInboxWebhooksEnvelope> => {\n return customFetch<ListInboxWebhooksEnvelope>(\n getListInboxWebhooksUrl(inboxId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListInboxWebhooksKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}/webhooks`] as const;\n\nexport type ListInboxWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listInboxWebhooks>>\n>;\n\n/**\n * @summary List inbox webhooks\n */\nexport const useListInboxWebhooks = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listInboxWebhooks>>,\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 && !!inboxId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListInboxWebhooksKey(inboxId) : null));\n const swrFn = () => listInboxWebhooks(inboxId, 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<CreateExtractorWebhookEnvelope> => {\n return customFetch<CreateExtractorWebhookEnvelope>(\n getCreateExtractorWebhookUrl(id),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorWebhookBody),\n }\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<ListWebhooksEnvelope> => {\n return customFetch<ListWebhooksEnvelope>(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<DeleteWebhookEnvelope> => {\n return customFetch<DeleteWebhookEnvelope>(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<GetWebhookEnvelope> => {\n return customFetch<GetWebhookEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListWebhookDeliveriesEnvelope> => {\n return customFetch<ListWebhookDeliveriesEnvelope>(\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<TestWebhookEnvelope> => {\n return customFetch<TestWebhookEnvelope>(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 */\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 CancelWorkerRunEnvelope,\n CreateWorkerRunBody,\n CreateWorkerRunEnvelope,\n ErrorResponse,\n GetWorkerRunEnvelope,\n ListWorkerRunMessagesEnvelope,\n ListWorkerRunMessagesParams,\n ListWorkerRunsEnvelope,\n ListWorkerRunsParams,\n UpdateWorkerRunScopeBody,\n UpdateWorkerRunScopeEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all worker runs with pagination, filtering, and sorting.\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 worker runs\n */\nexport const getListWorkerRunsUrl = (params?: ListWorkerRunsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/worker-runs?${stringifiedParams}`\n : `/v1/worker-runs`;\n};\n\nexport const listWorkerRuns = async (\n params?: ListWorkerRunsParams,\n options?: RequestInit\n): Promise<ListWorkerRunsEnvelope> => {\n return customFetch<ListWorkerRunsEnvelope>(getListWorkerRunsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWorkerRunsKey = (params?: ListWorkerRunsParams) =>\n [`/v1/worker-runs`, ...(params ? [params] : [])] as const;\n\nexport type ListWorkerRunsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerRuns>>\n>;\n\n/**\n * @summary List worker runs\n */\nexport const useListWorkerRuns = <TError = ErrorType<ErrorResponse>>(\n params?: ListWorkerRunsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerRuns>>,\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 ? getListWorkerRunsKey(params) : null));\n const swrFn = () => listWorkerRuns(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 worker run for the specified worker.\n\nProvide a `scope` object with at least one key to define which artifacts the worker should process (e.g. `{ \"claim_id\": \"abc-123\" }`). The run stays `pending` until those artifacts are ready.\n\nPass `null` to run the worker without any artifacts — the run is queued immediately. An empty object is rejected.\n * @summary Create worker run\n */\nexport const getCreateWorkerRunUrl = () => {\n return `/v1/worker-runs`;\n};\n\nexport const createWorkerRun = async (\n createWorkerRunBody: CreateWorkerRunBody,\n options?: RequestInit\n): Promise<CreateWorkerRunEnvelope> => {\n return customFetch<CreateWorkerRunEnvelope>(getCreateWorkerRunUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createWorkerRunBody),\n });\n};\n\nexport const getCreateWorkerRunMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateWorkerRunBody }) => {\n return createWorkerRun(arg, options);\n };\n};\nexport const getCreateWorkerRunMutationKey = () => [`/v1/worker-runs`] as const;\n\nexport type CreateWorkerRunMutationResult = NonNullable<\n Awaited<ReturnType<typeof createWorkerRun>>\n>;\n\n/**\n * @summary Create worker run\n */\nexport const useCreateWorkerRun = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createWorkerRun>>,\n TError,\n Key,\n CreateWorkerRunBody,\n Awaited<ReturnType<typeof createWorkerRun>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateWorkerRunMutationKey();\n const swrFn = getCreateWorkerRunMutationFetcher(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 worker run, including its status, timing, and errors.\n * @summary Get worker run\n */\nexport const getGetWorkerRunUrl = (workerRunId: string) => {\n return `/v1/worker-runs/${workerRunId}`;\n};\n\nexport const getWorkerRun = async (\n workerRunId: string,\n options?: RequestInit\n): Promise<GetWorkerRunEnvelope> => {\n return customFetch<GetWorkerRunEnvelope>(getGetWorkerRunUrl(workerRunId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetWorkerRunKey = (workerRunId: string) =>\n [`/v1/worker-runs/${workerRunId}`] as const;\n\nexport type GetWorkerRunQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerRun>>\n>;\n\n/**\n * @summary Get worker run\n */\nexport const useGetWorkerRun = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getWorkerRun>>, 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 && !!workerRunId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerRunKey(workerRunId) : null));\n const swrFn = () => getWorkerRun(workerRunId, 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 messages emitted during a worker run, ordered by emission time. Supports cursor-style pagination via `after` and `count`.\n * @summary List worker run messages\n */\nexport const getListWorkerRunMessagesUrl = (\n workerRunId: string,\n params?: ListWorkerRunMessagesParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/worker-runs/${workerRunId}/messages?${stringifiedParams}`\n : `/v1/worker-runs/${workerRunId}/messages`;\n};\n\nexport const listWorkerRunMessages = async (\n workerRunId: string,\n params?: ListWorkerRunMessagesParams,\n options?: RequestInit\n): Promise<ListWorkerRunMessagesEnvelope> => {\n return customFetch<ListWorkerRunMessagesEnvelope>(\n getListWorkerRunMessagesUrl(workerRunId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWorkerRunMessagesKey = (\n workerRunId: string,\n params?: ListWorkerRunMessagesParams\n) =>\n [\n `/v1/worker-runs/${workerRunId}/messages`,\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListWorkerRunMessagesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerRunMessages>>\n>;\n\n/**\n * @summary List worker run messages\n */\nexport const useListWorkerRunMessages = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n params?: ListWorkerRunMessagesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerRunMessages>>,\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 && !!workerRunId;\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getListWorkerRunMessagesKey(workerRunId, params) : null);\n const swrFn = () =>\n listWorkerRunMessages(workerRunId, 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 * **DO NOT USE.** This endpoint is deprecated and will be removed.\n\nA run's scope records what the run was dispatched against, so it is immutable: changing it after the fact rewrites history and makes the change impossible to track.\n\nUse `POST /v1/cases/{id}/links` to group a worker run with related entities.\n * @deprecated\n * @summary Update worker run scope (deprecated)\n */\nexport const getUpdateWorkerRunScopeUrl = (workerRunId: string) => {\n return `/v1/worker-runs/${workerRunId}/scope`;\n};\n\nexport const updateWorkerRunScope = async (\n workerRunId: string,\n updateWorkerRunScopeBody: UpdateWorkerRunScopeBody,\n options?: RequestInit\n): Promise<UpdateWorkerRunScopeEnvelope> => {\n return customFetch<UpdateWorkerRunScopeEnvelope>(\n getUpdateWorkerRunScopeUrl(workerRunId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerRunScopeBody),\n }\n );\n};\n\nexport const getUpdateWorkerRunScopeMutationFetcher = (\n workerRunId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerRunScopeBody }) => {\n return updateWorkerRunScope(workerRunId, arg, options);\n };\n};\nexport const getUpdateWorkerRunScopeMutationKey = (workerRunId: string) =>\n [`/v1/worker-runs/${workerRunId}/scope`] as const;\n\nexport type UpdateWorkerRunScopeMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorkerRunScope>>\n>;\n\n/**\n * @deprecated\n * @summary Update worker run scope (deprecated)\n */\nexport const useUpdateWorkerRunScope = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorkerRunScope>>,\n TError,\n Key,\n UpdateWorkerRunScopeBody,\n Awaited<ReturnType<typeof updateWorkerRunScope>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateWorkerRunScopeMutationKey(workerRunId);\n const swrFn = getUpdateWorkerRunScopeMutationFetcher(\n workerRunId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Cancel a worker run. For in_progress runs, the underlying E2B sandbox is terminated when possible. Pending and queued runs are simply marked canceled. Runs that are starting are still being handed their context and cannot be interrupted, so they cannot be canceled until they reach in_progress. Runs in terminal states (completed, failed) cannot be canceled. Already-canceled runs are returned without side effects.\n * @summary Cancel a worker run\n */\nexport const getCancelWorkerRunUrl = (workerRunId: string) => {\n return `/v1/worker-runs/${workerRunId}/cancel`;\n};\n\nexport const cancelWorkerRun = async (\n workerRunId: string,\n options?: RequestInit\n): Promise<CancelWorkerRunEnvelope> => {\n return customFetch<CancelWorkerRunEnvelope>(\n getCancelWorkerRunUrl(workerRunId),\n {\n ...options,\n method: \"POST\",\n }\n );\n};\n\nexport const getCancelWorkerRunMutationFetcher = (\n workerRunId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelWorkerRun(workerRunId, options);\n };\n};\nexport const getCancelWorkerRunMutationKey = (workerRunId: string) =>\n [`/v1/worker-runs/${workerRunId}/cancel`] as const;\n\nexport type CancelWorkerRunMutationResult = NonNullable<\n Awaited<ReturnType<typeof cancelWorkerRun>>\n>;\n\n/**\n * @summary Cancel a worker run\n */\nexport const useCancelWorkerRun = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof cancelWorkerRun>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof cancelWorkerRun>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCancelWorkerRunMutationKey(workerRunId);\n const swrFn = getCancelWorkerRunMutationFetcher(workerRunId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ErrorResponse,\n WorkerExecuteToolBody,\n WorkerExecuteToolEnvelope,\n WorkerGetToolEnvelope,\n WorkerListToolsEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List tools attached to the calling worker. Worker-only endpoint.\n * @summary List worker tools\n */\nexport const getWorkerListToolsUrl = () => {\n return `/worker/v1/tools`;\n};\n\nexport const workerListTools = async (\n options?: RequestInit\n): Promise<WorkerListToolsEnvelope> => {\n return customFetch<WorkerListToolsEnvelope>(getWorkerListToolsUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getWorkerListToolsKey = () => [`/worker/v1/tools`] as const;\n\nexport type WorkerListToolsQueryResult = NonNullable<\n Awaited<ReturnType<typeof workerListTools>>\n>;\n\n/**\n * @summary List worker tools\n */\nexport const useWorkerListTools = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof workerListTools>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getWorkerListToolsKey() : null));\n const swrFn = () => workerListTools(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 tool attached to the calling worker, including its invocation schema. Worker-only endpoint.\n * @summary Get worker tool\n */\nexport const getWorkerGetToolUrl = (id: string) => {\n return `/worker/v1/tools/${id}`;\n};\n\nexport const workerGetTool = async (\n id: string,\n options?: RequestInit\n): Promise<WorkerGetToolEnvelope> => {\n return customFetch<WorkerGetToolEnvelope>(getWorkerGetToolUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getWorkerGetToolKey = (id: string) =>\n [`/worker/v1/tools/${id}`] as const;\n\nexport type WorkerGetToolQueryResult = NonNullable<\n Awaited<ReturnType<typeof workerGetTool>>\n>;\n\n/**\n * @summary Get worker tool\n */\nexport const useWorkerGetTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof workerGetTool>>,\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 ? getWorkerGetToolKey(id) : null));\n const swrFn = () => workerGetTool(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 * Execute a code tool attached to the calling worker. Worker tokens only.\n * @summary Execute a worker-attached tool\n */\nexport const getWorkerExecuteToolUrl = (id: string) => {\n return `/worker/v1/tools/${id}/execute`;\n};\n\nexport const workerExecuteTool = async (\n id: string,\n workerExecuteToolBody: WorkerExecuteToolBody,\n options?: RequestInit\n): Promise<WorkerExecuteToolEnvelope> => {\n return customFetch<WorkerExecuteToolEnvelope>(getWorkerExecuteToolUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(workerExecuteToolBody),\n });\n};\n\nexport const getWorkerExecuteToolMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: WorkerExecuteToolBody }) => {\n return workerExecuteTool(id, arg, options);\n };\n};\nexport const getWorkerExecuteToolMutationKey = (id: string) =>\n [`/worker/v1/tools/${id}/execute`] as const;\n\nexport type WorkerExecuteToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof workerExecuteTool>>\n>;\n\n/**\n * @summary Execute a worker-attached tool\n */\nexport const useWorkerExecuteTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof workerExecuteTool>>,\n TError,\n Key,\n WorkerExecuteToolBody,\n Awaited<ReturnType<typeof workerExecuteTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getWorkerExecuteToolMutationKey(id);\n const swrFn = getWorkerExecuteToolMutationFetcher(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 CreateWorkerBody,\n CreateWorkerEnvelope,\n DeleteWorkerEnvelope,\n ErrorResponse,\n GetWorkerEnvelope,\n GetWorkerPromptEnvelope,\n GetWorkerPromptParams,\n GetWorkerVersionChangeSummaryEnvelope,\n GetWorkerVersionEnvelope,\n ListWorkerModelsEnvelope,\n ListWorkerVersionsEnvelope,\n ListWorkerVersionsParams,\n ListWorkersEnvelope,\n ListWorkersParams,\n PromoteWorkerVersionBody,\n PromoteWorkerVersionEnvelope,\n UpdateWorkerBody,\n UpdateWorkerEnvelope,\n UpdateWorkerMcpsBody,\n UpdateWorkerMcpsEnvelope,\n UpdateWorkerPromptBody,\n UpdateWorkerPromptEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new worker with a name and prompt.\n * @summary Create worker\n */\nexport const getCreateWorkerUrl = () => {\n return `/v1/workers`;\n};\n\nexport const createWorker = async (\n createWorkerBody: CreateWorkerBody,\n options?: RequestInit\n): Promise<CreateWorkerEnvelope> => {\n return customFetch<CreateWorkerEnvelope>(getCreateWorkerUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createWorkerBody),\n });\n};\n\nexport const getCreateWorkerMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateWorkerBody }) => {\n return createWorker(arg, options);\n };\n};\nexport const getCreateWorkerMutationKey = () => [`/v1/workers`] as const;\n\nexport type CreateWorkerMutationResult = NonNullable<\n Awaited<ReturnType<typeof createWorker>>\n>;\n\n/**\n * @summary Create worker\n */\nexport const useCreateWorker = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createWorker>>,\n TError,\n Key,\n CreateWorkerBody,\n Awaited<ReturnType<typeof createWorker>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateWorkerMutationKey();\n const swrFn = getCreateWorkerMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all workers with pagination, filtering, and sorting.\n\nFilter by name using the `name` query parameter.\n * @summary List workers\n */\nexport const getListWorkersUrl = (params?: ListWorkersParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/workers?${stringifiedParams}`\n : `/v1/workers`;\n};\n\nexport const listWorkers = async (\n params?: ListWorkersParams,\n options?: RequestInit\n): Promise<ListWorkersEnvelope> => {\n return customFetch<ListWorkersEnvelope>(getListWorkersUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWorkersKey = (params?: ListWorkersParams) =>\n [`/v1/workers`, ...(params ? [params] : [])] as const;\n\nexport type ListWorkersQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkers>>\n>;\n\n/**\n * @summary List workers\n */\nexport const useListWorkers = <TError = ErrorType<ErrorResponse>>(\n params?: ListWorkersParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listWorkers>>, 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 ? getListWorkersKey(params) : null));\n const swrFn = () => listWorkers(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 worker by ID.\n * @summary Get worker\n */\nexport const getGetWorkerUrl = (workerId: string) => {\n return `/v1/workers/${workerId}`;\n};\n\nexport const getWorker = async (\n workerId: string,\n options?: RequestInit\n): Promise<GetWorkerEnvelope> => {\n return customFetch<GetWorkerEnvelope>(getGetWorkerUrl(workerId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetWorkerKey = (workerId: string) =>\n [`/v1/workers/${workerId}`] as const;\n\nexport type GetWorkerQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorker>>\n>;\n\n/**\n * @summary Get worker\n */\nexport const useGetWorker = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getWorker>>, 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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerKey(workerId) : null));\n const swrFn = () => getWorker(workerId, 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 worker. The worker is hidden from all reads; its run history is preserved.\n * @summary Delete worker\n */\nexport const getDeleteWorkerUrl = (workerId: string) => {\n return `/v1/workers/${workerId}`;\n};\n\nexport const deleteWorker = async (\n workerId: string,\n options?: RequestInit\n): Promise<DeleteWorkerEnvelope> => {\n return customFetch<DeleteWorkerEnvelope>(getDeleteWorkerUrl(workerId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteWorkerMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteWorker(workerId, options);\n };\n};\nexport const getDeleteWorkerMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}`] as const;\n\nexport type DeleteWorkerMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteWorker>>\n>;\n\n/**\n * @summary Delete worker\n */\nexport const useDeleteWorker = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteWorker>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteWorker>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteWorkerMutationKey(workerId);\n const swrFn = getDeleteWorkerMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update the configuration of a worker, including the attached tool set.\n * @summary Update worker\n */\nexport const getUpdateWorkerUrl = (workerId: string) => {\n return `/v1/workers/${workerId}`;\n};\n\nexport const updateWorker = async (\n workerId: string,\n updateWorkerBody: UpdateWorkerBody,\n options?: RequestInit\n): Promise<UpdateWorkerEnvelope> => {\n return customFetch<UpdateWorkerEnvelope>(getUpdateWorkerUrl(workerId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerBody),\n });\n};\n\nexport const getUpdateWorkerMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerBody }) => {\n return updateWorker(workerId, arg, options);\n };\n};\nexport const getUpdateWorkerMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}`] as const;\n\nexport type UpdateWorkerMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorker>>\n>;\n\n/**\n * @summary Update worker\n */\nexport const useUpdateWorker = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorker>>,\n TError,\n Key,\n UpdateWorkerBody,\n Awaited<ReturnType<typeof updateWorker>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateWorkerMutationKey(workerId);\n const swrFn = getUpdateWorkerMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the prompt for a worker. Pass `version` to fetch the prompt snapshot at a specific config version; omit it to fetch the current prompt. Internal use only.\n * @summary Get worker prompt\n */\nexport const getGetWorkerPromptUrl = (\n workerId: string,\n params?: GetWorkerPromptParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/workers/${workerId}/prompt?${stringifiedParams}`\n : `/v1/workers/${workerId}/prompt`;\n};\n\nexport const getWorkerPrompt = async (\n workerId: string,\n params?: GetWorkerPromptParams,\n options?: RequestInit\n): Promise<GetWorkerPromptEnvelope> => {\n return customFetch<GetWorkerPromptEnvelope>(\n getGetWorkerPromptUrl(workerId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetWorkerPromptKey = (\n workerId: string,\n params?: GetWorkerPromptParams\n) => [`/v1/workers/${workerId}/prompt`, ...(params ? [params] : [])] as const;\n\nexport type GetWorkerPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerPrompt>>\n>;\n\n/**\n * @summary Get worker prompt\n */\nexport const useGetWorkerPrompt = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n params?: GetWorkerPromptParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getWorkerPrompt>>,\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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerPromptKey(workerId, params) : null));\n const swrFn = () => getWorkerPrompt(workerId, 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 the prompt for a worker. Internal use only.\n * @summary Update worker prompt\n */\nexport const getUpdateWorkerPromptUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/prompt`;\n};\n\nexport const updateWorkerPrompt = async (\n workerId: string,\n updateWorkerPromptBody: UpdateWorkerPromptBody,\n options?: RequestInit\n): Promise<UpdateWorkerPromptEnvelope> => {\n return customFetch<UpdateWorkerPromptEnvelope>(\n getUpdateWorkerPromptUrl(workerId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerPromptBody),\n }\n );\n};\n\nexport const getUpdateWorkerPromptMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerPromptBody }) => {\n return updateWorkerPrompt(workerId, arg, options);\n };\n};\nexport const getUpdateWorkerPromptMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}/prompt`] as const;\n\nexport type UpdateWorkerPromptMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorkerPrompt>>\n>;\n\n/**\n * @summary Update worker prompt\n */\nexport const useUpdateWorkerPrompt = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorkerPrompt>>,\n TError,\n Key,\n UpdateWorkerPromptBody,\n Awaited<ReturnType<typeof updateWorkerPrompt>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateWorkerPromptMutationKey(workerId);\n const swrFn = getUpdateWorkerPromptMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the LLM models that can be assigned to a worker via the `model` field on update.\n * @summary List available worker models\n */\nexport const getListWorkerModelsUrl = () => {\n return `/v1/worker-models`;\n};\n\nexport const listWorkerModels = async (\n options?: RequestInit\n): Promise<ListWorkerModelsEnvelope> => {\n return customFetch<ListWorkerModelsEnvelope>(getListWorkerModelsUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWorkerModelsKey = () => [`/v1/worker-models`] as const;\n\nexport type ListWorkerModelsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerModels>>\n>;\n\n/**\n * @summary List available worker models\n */\nexport const useListWorkerModels = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerModels>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListWorkerModelsKey() : null));\n const swrFn = () => listWorkerModels(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 * Replace the set of MCP servers a worker connects to. Pass an empty array to disconnect.\n * @summary Update worker MCP servers\n */\nexport const getUpdateWorkerMcpsUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/mcps`;\n};\n\nexport const updateWorkerMcps = async (\n workerId: string,\n updateWorkerMcpsBody: UpdateWorkerMcpsBody,\n options?: RequestInit\n): Promise<UpdateWorkerMcpsEnvelope> => {\n return customFetch<UpdateWorkerMcpsEnvelope>(\n getUpdateWorkerMcpsUrl(workerId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerMcpsBody),\n }\n );\n};\n\nexport const getUpdateWorkerMcpsMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerMcpsBody }) => {\n return updateWorkerMcps(workerId, arg, options);\n };\n};\nexport const getUpdateWorkerMcpsMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}/mcps`] as const;\n\nexport type UpdateWorkerMcpsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorkerMcps>>\n>;\n\n/**\n * @summary Update worker MCP servers\n */\nexport const useUpdateWorkerMcps = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorkerMcps>>,\n TError,\n Key,\n UpdateWorkerMcpsBody,\n Awaited<ReturnType<typeof updateWorkerMcps>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateWorkerMcpsMutationKey(workerId);\n const swrFn = getUpdateWorkerMcpsMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all config versions for a worker, ordered by version (newest first by default).\n * @summary List worker versions\n */\nexport const getListWorkerVersionsUrl = (\n workerId: string,\n params?: ListWorkerVersionsParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/workers/${workerId}/versions?${stringifiedParams}`\n : `/v1/workers/${workerId}/versions`;\n};\n\nexport const listWorkerVersions = async (\n workerId: string,\n params?: ListWorkerVersionsParams,\n options?: RequestInit\n): Promise<ListWorkerVersionsEnvelope> => {\n return customFetch<ListWorkerVersionsEnvelope>(\n getListWorkerVersionsUrl(workerId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWorkerVersionsKey = (\n workerId: string,\n params?: ListWorkerVersionsParams\n) => [`/v1/workers/${workerId}/versions`, ...(params ? [params] : [])] as const;\n\nexport type ListWorkerVersionsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerVersions>>\n>;\n\n/**\n * @summary List worker versions\n */\nexport const useListWorkerVersions = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n params?: ListWorkerVersionsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerVersions>>,\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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListWorkerVersionsKey(workerId, params) : null));\n const swrFn = () => listWorkerVersions(workerId, 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 worker config version, including the worker's identity, the config snapshot at that version, and version-specific metadata. The prompt is served separately by the worker prompt endpoint.\n * @summary Get worker version\n */\nexport const getGetWorkerVersionUrl = (workerId: string, version: number) => {\n return `/v1/workers/${workerId}/versions/${version}`;\n};\n\nexport const getWorkerVersion = async (\n workerId: string,\n version: number,\n options?: RequestInit\n): Promise<GetWorkerVersionEnvelope> => {\n return customFetch<GetWorkerVersionEnvelope>(\n getGetWorkerVersionUrl(workerId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetWorkerVersionKey = (workerId: string, version: number) =>\n [`/v1/workers/${workerId}/versions/${version}`] as const;\n\nexport type GetWorkerVersionQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerVersion>>\n>;\n\n/**\n * @summary Get worker version\n */\nexport const useGetWorkerVersion = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getWorkerVersion>>,\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 && !!(workerId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerVersionKey(workerId, version) : null));\n const swrFn = () => getWorkerVersion(workerId, version, 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 * Select a worker configuration version for the live or test environment. This freezes the config snapshot only — the E2B template, attached tools and attached secrets are not versioned and always resolve to their current values.\n * @summary Promote worker version\n */\nexport const getPromoteWorkerVersionUrl = (\n workerId: string,\n version: number\n) => {\n return `/v1/workers/${workerId}/versions/${version}/promote`;\n};\n\nexport const promoteWorkerVersion = async (\n workerId: string,\n version: number,\n promoteWorkerVersionBody: PromoteWorkerVersionBody,\n options?: RequestInit\n): Promise<PromoteWorkerVersionEnvelope> => {\n return customFetch<PromoteWorkerVersionEnvelope>(\n getPromoteWorkerVersionUrl(workerId, version),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(promoteWorkerVersionBody),\n }\n );\n};\n\nexport const getPromoteWorkerVersionMutationFetcher = (\n workerId: string,\n version: number,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PromoteWorkerVersionBody }) => {\n return promoteWorkerVersion(workerId, version, arg, options);\n };\n};\nexport const getPromoteWorkerVersionMutationKey = (\n workerId: string,\n version: number\n) => [`/v1/workers/${workerId}/versions/${version}/promote`] as const;\n\nexport type PromoteWorkerVersionMutationResult = NonNullable<\n Awaited<ReturnType<typeof promoteWorkerVersion>>\n>;\n\n/**\n * @summary Promote worker version\n */\nexport const usePromoteWorkerVersion = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n version: number,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof promoteWorkerVersion>>,\n TError,\n Key,\n PromoteWorkerVersionBody,\n Awaited<ReturnType<typeof promoteWorkerVersion>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getPromoteWorkerVersionMutationKey(workerId, version);\n const swrFn = getPromoteWorkerVersionMutationFetcher(\n workerId,\n version,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Returns an AI-generated summary of what changed between this version and the previous one. Initial version returns an empty string since there is no predecessor.\n * @summary Get worker version change summary\n */\nexport const getGetWorkerVersionChangeSummaryUrl = (\n workerId: string,\n version: number\n) => {\n return `/v1/workers/${workerId}/versions/${version}/change-summary`;\n};\n\nexport const getWorkerVersionChangeSummary = async (\n workerId: string,\n version: number,\n options?: RequestInit\n): Promise<GetWorkerVersionChangeSummaryEnvelope> => {\n return customFetch<GetWorkerVersionChangeSummaryEnvelope>(\n getGetWorkerVersionChangeSummaryUrl(workerId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetWorkerVersionChangeSummaryKey = (\n workerId: string,\n version: number\n) => [`/v1/workers/${workerId}/versions/${version}/change-summary`] as const;\n\nexport type GetWorkerVersionChangeSummaryQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerVersionChangeSummary>>\n>;\n\n/**\n * @summary Get worker version change summary\n */\nexport const useGetWorkerVersionChangeSummary = <\n TError = ErrorType<ErrorResponse>,\n>(\n workerId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getWorkerVersionChangeSummary>>,\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 && !!(workerId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled\n ? getGetWorkerVersionChangeSummaryKey(workerId, version)\n : null);\n const swrFn = () =>\n getWorkerVersionChangeSummary(workerId, version, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AddCaseLinksBodyEntitiesItemEntityType =\n (typeof AddCaseLinksBodyEntitiesItemEntityType)[keyof typeof AddCaseLinksBodyEntitiesItemEntityType];\n\nexport const AddCaseLinksBodyEntitiesItemEntityType = {\n artifact: \"artifact\",\n call: \"call\",\n chat: \"chat\",\n email: \"email\",\n extract: \"extract\",\n schedule: \"schedule\",\n worker_run: \"worker_run\",\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 AnalyticsTimeSeriesGranularity =\n (typeof AnalyticsTimeSeriesGranularity)[keyof typeof AnalyticsTimeSeriesGranularity];\n\nexport const AnalyticsTimeSeriesGranularity = {\n day: \"day\",\n week: \"week\",\n month: \"month\",\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 AnalyticsTimeSeriesMetric =\n (typeof AnalyticsTimeSeriesMetric)[keyof typeof AnalyticsTimeSeriesMetric];\n\nexport const AnalyticsTimeSeriesMetric = {\n worker_runs: \"worker_runs\",\n documents: \"documents\",\n pages: \"pages\",\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 * Role granted to this API key\n */\nexport type ApiKeyCreatedRole =\n (typeof ApiKeyCreatedRole)[keyof typeof ApiKeyCreatedRole];\n\nexport const ApiKeyCreatedRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 * Role granted to this API key\n */\nexport type ApiKeyRole = (typeof ApiKeyRole)[keyof typeof ApiKeyRole];\n\nexport const ApiKeyRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 ArtifactDetailDataStatus =\n (typeof ArtifactDetailDataStatus)[keyof typeof ArtifactDetailDataStatus];\n\nexport const ArtifactDetailDataStatus = {\n processing: \"processing\",\n parsed: \"parsed\",\n raw: \"raw\",\n missing: \"missing\",\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 ArtifactStatus =\n (typeof ArtifactStatus)[keyof typeof ArtifactStatus];\n\nexport const ArtifactStatus = {\n processing: \"processing\",\n parsed: \"parsed\",\n raw: \"raw\",\n missing: \"missing\",\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\nexport type CaseLinkEntityType =\n (typeof CaseLinkEntityType)[keyof typeof CaseLinkEntityType];\n\nexport const CaseLinkEntityType = {\n artifact: \"artifact\",\n call: \"call\",\n chat: \"chat\",\n email: \"email\",\n extract: \"extract\",\n schedule: \"schedule\",\n worker_run: \"worker_run\",\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 ChatHistoryMessagesItemRole =\n (typeof ChatHistoryMessagesItemRole)[keyof typeof ChatHistoryMessagesItemRole];\n\nexport const ChatHistoryMessagesItemRole = {\n user: \"user\",\n assistant: \"assistant\",\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 ChatMessageRole =\n (typeof ChatMessageRole)[keyof typeof ChatMessageRole];\n\nexport const ChatMessageRole = {\n user: \"user\",\n assistant: \"assistant\",\n tool: \"tool\",\n system: \"system\",\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\n/**\n * Role granted to this API key (defaults to admin). Caller's role caps the maximum grantable role.\n */\nexport type CreateApiKeyBodyRole =\n (typeof CreateApiKeyBodyRole)[keyof typeof CreateApiKeyBodyRole];\n\nexport const CreateApiKeyBodyRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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\n/**\n * Type of processor. Defaults to 'extractor' when extractor_id is used.\n */\nexport type CreateInboxBodyProcessorType =\n (typeof CreateInboxBodyProcessorType)[keyof typeof CreateInboxBodyProcessorType];\n\nexport const CreateInboxBodyProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 processor: extractor or worker\n */\nexport type CreateVoiceAgentBodyCallProcessorType =\n (typeof CreateVoiceAgentBodyCallProcessorType)[keyof typeof CreateVoiceAgentBodyCallProcessorType];\n\nexport const CreateVoiceAgentBodyCallProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 CreateVoiceAgentBodyDirection =\n (typeof CreateVoiceAgentBodyDirection)[keyof typeof CreateVoiceAgentBodyDirection];\n\nexport const CreateVoiceAgentBodyDirection = {\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 CreateVoiceAgentBodyLanguage =\n (typeof CreateVoiceAgentBodyLanguage)[keyof typeof CreateVoiceAgentBodyLanguage];\n\nexport const CreateVoiceAgentBodyLanguage = {\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 CreateVoiceAgentBodyLlmModel =\n (typeof CreateVoiceAgentBodyLlmModel)[keyof typeof CreateVoiceAgentBodyLlmModel];\n\nexport const CreateVoiceAgentBodyLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 CreateVoiceAgentBodySttModel =\n (typeof CreateVoiceAgentBodySttModel)[keyof typeof CreateVoiceAgentBodySttModel];\n\nexport const CreateVoiceAgentBodySttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 CreateVoiceAgentBodyTtsModel =\n (typeof CreateVoiceAgentBodyTtsModel)[keyof typeof CreateVoiceAgentBodyTtsModel];\n\nexport const CreateVoiceAgentBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 CreateVoiceAgentBodyTtsProvider =\n (typeof CreateVoiceAgentBodyTtsProvider)[keyof typeof CreateVoiceAgentBodyTtsProvider];\n\nexport const CreateVoiceAgentBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 DispatchStatus =\n (typeof DispatchStatus)[keyof typeof DispatchStatus];\n\nexport const DispatchStatus = {\n pending: \"pending\",\n dispatched: \"dispatched\",\n abandoned: \"abandoned\",\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 DispatchTargetType =\n (typeof DispatchTargetType)[keyof typeof DispatchTargetType];\n\nexport const DispatchTargetType = {\n worker_run: \"worker_run\",\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 DispatchTriggerType =\n (typeof DispatchTriggerType)[keyof typeof DispatchTriggerType];\n\nexport const DispatchTriggerType = {\n schedule: \"schedule\",\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\nexport const EmailReplyResultValue = {\n sent: true,\n} as const;\nexport type EmailReplyResult = typeof EmailReplyResultValue;\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 GetAnalyticsTimeSeriesGranularity =\n (typeof GetAnalyticsTimeSeriesGranularity)[keyof typeof GetAnalyticsTimeSeriesGranularity];\n\nexport const GetAnalyticsTimeSeriesGranularity = {\n day: \"day\",\n week: \"week\",\n month: \"month\",\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 GetAnalyticsTimeSeriesGroupBy =\n (typeof GetAnalyticsTimeSeriesGroupBy)[keyof typeof GetAnalyticsTimeSeriesGroupBy];\n\nexport const GetAnalyticsTimeSeriesGroupBy = {\n worker_id: \"worker_id\",\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 GetAnalyticsTimeSeriesMetric =\n (typeof GetAnalyticsTimeSeriesMetric)[keyof typeof GetAnalyticsTimeSeriesMetric];\n\nexport const GetAnalyticsTimeSeriesMetric = {\n worker_runs: \"worker_runs\",\n documents: \"documents\",\n pages: \"pages\",\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 sso: \"sso\",\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 InboxProcessorType =\n (typeof InboxProcessorType)[keyof typeof InboxProcessorType];\n\nexport const InboxProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 ListArtifactsStatus =\n (typeof ListArtifactsStatus)[keyof typeof ListArtifactsStatus];\n\nexport const ListArtifactsStatus = {\n processing: \"processing\",\n parsed: \"parsed\",\n raw: \"raw\",\n missing: \"missing\",\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 ListCaseLinksEntityType =\n (typeof ListCaseLinksEntityType)[keyof typeof ListCaseLinksEntityType];\n\nexport const ListCaseLinksEntityType = {\n artifact: \"artifact\",\n call: \"call\",\n chat: \"chat\",\n email: \"email\",\n extract: \"extract\",\n schedule: \"schedule\",\n worker_run: \"worker_run\",\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 ListCaseLinksSortBy =\n (typeof ListCaseLinksSortBy)[keyof typeof ListCaseLinksSortBy];\n\nexport const ListCaseLinksSortBy = {\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 ListCaseLinksSortOrder =\n (typeof ListCaseLinksSortOrder)[keyof typeof ListCaseLinksSortOrder];\n\nexport const ListCaseLinksSortOrder = {\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 ListCasesSortBy =\n (typeof ListCasesSortBy)[keyof typeof ListCasesSortBy];\n\nexport const ListCasesSortBy = {\n created_at: \"created_at\",\n updated_at: \"updated_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 ListCasesSortOrder =\n (typeof ListCasesSortOrder)[keyof typeof ListCasesSortOrder];\n\nexport const ListCasesSortOrder = {\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 ListChatAgentsSortBy =\n (typeof ListChatAgentsSortBy)[keyof typeof ListChatAgentsSortBy];\n\nexport const ListChatAgentsSortBy = {\n created_at: \"created_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 ListChatAgentsSortOrder =\n (typeof ListChatAgentsSortOrder)[keyof typeof ListChatAgentsSortOrder];\n\nexport const ListChatAgentsSortOrder = {\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 ListChatMessagesSortBy =\n (typeof ListChatMessagesSortBy)[keyof typeof ListChatMessagesSortBy];\n\nexport const ListChatMessagesSortBy = {\n generated_at: \"generated_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 ListChatMessagesSortOrder =\n (typeof ListChatMessagesSortOrder)[keyof typeof ListChatMessagesSortOrder];\n\nexport const ListChatMessagesSortOrder = {\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 ListChatsSortBy =\n (typeof ListChatsSortBy)[keyof typeof ListChatsSortBy];\n\nexport const ListChatsSortBy = {\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 ListChatsSortOrder =\n (typeof ListChatsSortOrder)[keyof typeof ListChatsSortOrder];\n\nexport const ListChatsSortOrder = {\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 ListDispatchesSortBy =\n (typeof ListDispatchesSortBy)[keyof typeof ListDispatchesSortBy];\n\nexport const ListDispatchesSortBy = {\n due_at: \"due_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 ListDispatchesSortOrder =\n (typeof ListDispatchesSortOrder)[keyof typeof ListDispatchesSortOrder];\n\nexport const ListDispatchesSortOrder = {\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 ListDispatchesTriggerType =\n (typeof ListDispatchesTriggerType)[keyof typeof ListDispatchesTriggerType];\n\nexport const ListDispatchesTriggerType = {\n schedule: \"schedule\",\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 sent_at: \"sent_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 ListEmailThreadsSortBy =\n (typeof ListEmailThreadsSortBy)[keyof typeof ListEmailThreadsSortBy];\n\nexport const ListEmailThreadsSortBy = {\n last_email_at: \"last_email_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 ListEmailThreadsSortOrder =\n (typeof ListEmailThreadsSortOrder)[keyof typeof ListEmailThreadsSortOrder];\n\nexport const ListEmailThreadsSortOrder = {\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 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 ListInboxesSortBy =\n (typeof ListInboxesSortBy)[keyof typeof ListInboxesSortBy];\n\nexport const ListInboxesSortBy = {\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 ListInboxesSortOrder =\n (typeof ListInboxesSortOrder)[keyof typeof ListInboxesSortOrder];\n\nexport const ListInboxesSortOrder = {\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 ListSchedulesRuleType =\n (typeof ListSchedulesRuleType)[keyof typeof ListSchedulesRuleType];\n\nexport const ListSchedulesRuleType = {\n once: \"once\",\n hourly: \"hourly\",\n daily: \"daily\",\n weekly: \"weekly\",\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 ListSchedulesSortBy =\n (typeof ListSchedulesSortBy)[keyof typeof ListSchedulesSortBy];\n\nexport const ListSchedulesSortBy = {\n created_at: \"created_at\",\n next_run_at: \"next_run_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 ListSchedulesSortOrder =\n (typeof ListSchedulesSortOrder)[keyof typeof ListSchedulesSortOrder];\n\nexport const ListSchedulesSortOrder = {\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 ListSecretsSortBy =\n (typeof ListSecretsSortBy)[keyof typeof ListSecretsSortBy];\n\nexport const ListSecretsSortBy = {\n name: \"name\",\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 ListSecretsSortOrder =\n (typeof ListSecretsSortOrder)[keyof typeof ListSecretsSortOrder];\n\nexport const ListSecretsSortOrder = {\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 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 ListVoiceAgentVersionsSortBy =\n (typeof ListVoiceAgentVersionsSortBy)[keyof typeof ListVoiceAgentVersionsSortBy];\n\nexport const ListVoiceAgentVersionsSortBy = {\n version: \"version\",\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 ListVoiceAgentVersionsSortOrder =\n (typeof ListVoiceAgentVersionsSortOrder)[keyof typeof ListVoiceAgentVersionsSortOrder];\n\nexport const ListVoiceAgentVersionsSortOrder = {\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 ListWorkerRunsSortBy =\n (typeof ListWorkerRunsSortBy)[keyof typeof ListWorkerRunsSortBy];\n\nexport const ListWorkerRunsSortBy = {\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 ListWorkerRunsSortOrder =\n (typeof ListWorkerRunsSortOrder)[keyof typeof ListWorkerRunsSortOrder];\n\nexport const ListWorkerRunsSortOrder = {\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 ListWorkerRunsStatus =\n (typeof ListWorkerRunsStatus)[keyof typeof ListWorkerRunsStatus];\n\nexport const ListWorkerRunsStatus = {\n pending: \"pending\",\n queued: \"queued\",\n starting: \"starting\",\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 ListWorkersSortBy =\n (typeof ListWorkersSortBy)[keyof typeof ListWorkersSortBy];\n\nexport const ListWorkersSortBy = {\n created_at: \"created_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 ListWorkersSortOrder =\n (typeof ListWorkersSortOrder)[keyof typeof ListWorkersSortOrder];\n\nexport const ListWorkersSortOrder = {\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 ListWorkerVersionsSortBy =\n (typeof ListWorkerVersionsSortBy)[keyof typeof ListWorkerVersionsSortBy];\n\nexport const ListWorkerVersionsSortBy = {\n version: \"version\",\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 ListWorkerVersionsSortOrder =\n (typeof ListWorkerVersionsSortOrder)[keyof typeof ListWorkerVersionsSortOrder];\n\nexport const ListWorkerVersionsSortOrder = {\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\n/**\n * Promoted environment the job dispatches against (agent configuration and phone binding). TEST requires an active TEST promotion.\n */\nexport type OutboundJobEnvironment =\n (typeof OutboundJobEnvironment)[keyof typeof OutboundJobEnvironment];\n\nexport const OutboundJobEnvironment = {\n live: \"live\",\n test: \"test\",\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 ProfilePermissionsItem =\n (typeof ProfilePermissionsItem)[keyof typeof ProfilePermissionsItem];\n\nexport const ProfilePermissionsItem = {\n \"voice-agents:write\": \"voice-agents:write\",\n \"voice-agents:promote\": \"voice-agents:promote\",\n \"tools:write\": \"tools:write\",\n \"tools:execute\": \"tools:execute\",\n \"extractors:write\": \"extractors:write\",\n \"inboxes:write\": \"inboxes:write\",\n \"inboxes:send\": \"inboxes:send\",\n \"artifacts:write\": \"artifacts:write\",\n \"webhooks:write\": \"webhooks:write\",\n \"api-keys:write\": \"api-keys:write\",\n \"teams:write\": \"teams:write\",\n \"cases:write\": \"cases:write\",\n \"claims:write\": \"claims:write\",\n \"feedback:write\": \"feedback:write\",\n \"outbound-jobs:write\": \"outbound-jobs:write\",\n \"outbound-jobs:schedule\": \"outbound-jobs:schedule\",\n \"workers:write\": \"workers:write\",\n \"workers:execute\": \"workers:execute\",\n \"workers:write-mcp\": \"workers:write-mcp\",\n \"workers:run\": \"workers:run\",\n \"workers:promote\": \"workers:promote\",\n \"chat-agents:write\": \"chat-agents:write\",\n \"prompts:read\": \"prompts:read\",\n \"prompts:write\": \"prompts:write\",\n \"secrets:read\": \"secrets:read\",\n \"secrets:write\": \"secrets:write\",\n \"schedules:read\": \"schedules:read\",\n \"schedules:write\": \"schedules:write\",\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 ProfileRole = (typeof ProfileRole)[keyof typeof ProfileRole];\n\nexport const ProfileRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 PromotedVoiceAgentVersionEnvironment =\n (typeof PromotedVoiceAgentVersionEnvironment)[keyof typeof PromotedVoiceAgentVersionEnvironment];\n\nexport const PromotedVoiceAgentVersionEnvironment = {\n live: \"live\",\n test: \"test\",\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 PromoteVoiceAgentVersionBodyEnvironment =\n (typeof PromoteVoiceAgentVersionBodyEnvironment)[keyof typeof PromoteVoiceAgentVersionBodyEnvironment];\n\nexport const PromoteVoiceAgentVersionBodyEnvironment = {\n live: \"live\",\n test: \"test\",\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 * Promoted environment the job dispatches against (agent configuration and phone binding). TEST requires an active TEST promotion.\n */\nexport type ScheduleJobBodyEnvironment =\n (typeof ScheduleJobBodyEnvironment)[keyof typeof ScheduleJobBodyEnvironment];\n\nexport const ScheduleJobBodyEnvironment = {\n live: \"live\",\n test: \"test\",\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 TeamInvitationState =\n (typeof TeamInvitationState)[keyof typeof TeamInvitationState];\n\nexport const TeamInvitationState = {\n pending: \"pending\",\n accepted: \"accepted\",\n expired: \"expired\",\n revoked: \"revoked\",\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 TeamMemberRole =\n (typeof TeamMemberRole)[keyof typeof TeamMemberRole];\n\nexport const TeamMemberRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 * New role to grant this API key. Caller's role caps the maximum grantable role.\n */\nexport type UpdateApiKeyBodyRole =\n (typeof UpdateApiKeyBodyRole)[keyof typeof UpdateApiKeyBodyRole];\n\nexport const UpdateApiKeyBodyRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 processor.\n */\nexport type UpdateInboxBodyProcessorType =\n (typeof UpdateInboxBodyProcessorType)[keyof typeof UpdateInboxBodyProcessorType];\n\nexport const UpdateInboxBodyProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 UpdateMemberRoleBodyRole =\n (typeof UpdateMemberRoleBodyRole)[keyof typeof UpdateMemberRoleBodyRole];\n\nexport const UpdateMemberRoleBodyRole = {\n admin: \"admin\",\n member: \"member\",\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 UpdateVoiceAgentBodyCallProcessorType =\n (typeof UpdateVoiceAgentBodyCallProcessorType)[keyof typeof UpdateVoiceAgentBodyCallProcessorType];\n\nexport const UpdateVoiceAgentBodyCallProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 UpdateVoiceAgentModelsBodyLanguage =\n (typeof UpdateVoiceAgentModelsBodyLanguage)[keyof typeof UpdateVoiceAgentModelsBodyLanguage];\n\nexport const UpdateVoiceAgentModelsBodyLanguage = {\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 UpdateVoiceAgentModelsBodyLlmModel =\n (typeof UpdateVoiceAgentModelsBodyLlmModel)[keyof typeof UpdateVoiceAgentModelsBodyLlmModel];\n\nexport const UpdateVoiceAgentModelsBodyLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 UpdateVoiceAgentModelsBodySttModel =\n (typeof UpdateVoiceAgentModelsBodySttModel)[keyof typeof UpdateVoiceAgentModelsBodySttModel];\n\nexport const UpdateVoiceAgentModelsBodySttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 UpdateVoiceAgentModelsBodyTtsModel =\n (typeof UpdateVoiceAgentModelsBodyTtsModel)[keyof typeof UpdateVoiceAgentModelsBodyTtsModel];\n\nexport const UpdateVoiceAgentModelsBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 UpdateVoiceAgentModelsBodyTtsProvider =\n (typeof UpdateVoiceAgentModelsBodyTtsProvider)[keyof typeof UpdateVoiceAgentModelsBodyTtsProvider];\n\nexport const UpdateVoiceAgentModelsBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 VoiceAgentBackgroundSounds =\n (typeof VoiceAgentBackgroundSounds)[keyof typeof VoiceAgentBackgroundSounds];\n\nexport const VoiceAgentBackgroundSounds = {\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 VoiceAgentDirection =\n (typeof VoiceAgentDirection)[keyof typeof VoiceAgentDirection];\n\nexport const VoiceAgentDirection = {\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 VoiceAgentLanguage =\n (typeof VoiceAgentLanguage)[keyof typeof VoiceAgentLanguage];\n\nexport const VoiceAgentLanguage = {\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 VoiceAgentLlmModel =\n (typeof VoiceAgentLlmModel)[keyof typeof VoiceAgentLlmModel];\n\nexport const VoiceAgentLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 VoiceAgentNoiseCancellation =\n (typeof VoiceAgentNoiseCancellation)[keyof typeof VoiceAgentNoiseCancellation];\n\nexport const VoiceAgentNoiseCancellation = {\n NONE: \"NONE\",\n NC: \"NC\",\n BVC: \"BVC\",\n BVC_TELEPHONY: \"BVC_TELEPHONY\",\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 VoiceAgentSttModel =\n (typeof VoiceAgentSttModel)[keyof typeof VoiceAgentSttModel];\n\nexport const VoiceAgentSttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 VoiceAgentTtsModel =\n (typeof VoiceAgentTtsModel)[keyof typeof VoiceAgentTtsModel];\n\nexport const VoiceAgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 VoiceAgentTtsProvider =\n (typeof VoiceAgentTtsProvider)[keyof typeof VoiceAgentTtsProvider];\n\nexport const VoiceAgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 VoiceAgentVersionActiveEnvironmentsItem =\n (typeof VoiceAgentVersionActiveEnvironmentsItem)[keyof typeof VoiceAgentVersionActiveEnvironmentsItem];\n\nexport const VoiceAgentVersionActiveEnvironmentsItem = {\n live: \"live\",\n test: \"test\",\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 VoiceAgentVersionDetailActiveEnvironmentsItem =\n (typeof VoiceAgentVersionDetailActiveEnvironmentsItem)[keyof typeof VoiceAgentVersionDetailActiveEnvironmentsItem];\n\nexport const VoiceAgentVersionDetailActiveEnvironmentsItem = {\n live: \"live\",\n test: \"test\",\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 VoiceAgentVersionDetailBackgroundSounds =\n (typeof VoiceAgentVersionDetailBackgroundSounds)[keyof typeof VoiceAgentVersionDetailBackgroundSounds];\n\nexport const VoiceAgentVersionDetailBackgroundSounds = {\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 VoiceAgentVersionDetailDirection =\n (typeof VoiceAgentVersionDetailDirection)[keyof typeof VoiceAgentVersionDetailDirection];\n\nexport const VoiceAgentVersionDetailDirection = {\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 VoiceAgentVersionDetailLanguage =\n (typeof VoiceAgentVersionDetailLanguage)[keyof typeof VoiceAgentVersionDetailLanguage];\n\nexport const VoiceAgentVersionDetailLanguage = {\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 VoiceAgentVersionDetailLlmModel =\n (typeof VoiceAgentVersionDetailLlmModel)[keyof typeof VoiceAgentVersionDetailLlmModel];\n\nexport const VoiceAgentVersionDetailLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 VoiceAgentVersionDetailNoiseCancellation =\n (typeof VoiceAgentVersionDetailNoiseCancellation)[keyof typeof VoiceAgentVersionDetailNoiseCancellation];\n\nexport const VoiceAgentVersionDetailNoiseCancellation = {\n NONE: \"NONE\",\n NC: \"NC\",\n BVC: \"BVC\",\n BVC_TELEPHONY: \"BVC_TELEPHONY\",\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 VoiceAgentVersionDetailSttModel =\n (typeof VoiceAgentVersionDetailSttModel)[keyof typeof VoiceAgentVersionDetailSttModel];\n\nexport const VoiceAgentVersionDetailSttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 VoiceAgentVersionDetailTtsModel =\n (typeof VoiceAgentVersionDetailTtsModel)[keyof typeof VoiceAgentVersionDetailTtsModel];\n\nexport const VoiceAgentVersionDetailTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 VoiceAgentVersionDetailTtsProvider =\n (typeof VoiceAgentVersionDetailTtsProvider)[keyof typeof VoiceAgentVersionDetailTtsProvider];\n\nexport const VoiceAgentVersionDetailTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 VoiceAgentWithTestPhoneNumberBackgroundSounds =\n (typeof VoiceAgentWithTestPhoneNumberBackgroundSounds)[keyof typeof VoiceAgentWithTestPhoneNumberBackgroundSounds];\n\nexport const VoiceAgentWithTestPhoneNumberBackgroundSounds = {\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 VoiceAgentWithTestPhoneNumberDirection =\n (typeof VoiceAgentWithTestPhoneNumberDirection)[keyof typeof VoiceAgentWithTestPhoneNumberDirection];\n\nexport const VoiceAgentWithTestPhoneNumberDirection = {\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 VoiceAgentWithTestPhoneNumberLanguage =\n (typeof VoiceAgentWithTestPhoneNumberLanguage)[keyof typeof VoiceAgentWithTestPhoneNumberLanguage];\n\nexport const VoiceAgentWithTestPhoneNumberLanguage = {\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 VoiceAgentWithTestPhoneNumberLlmModel =\n (typeof VoiceAgentWithTestPhoneNumberLlmModel)[keyof typeof VoiceAgentWithTestPhoneNumberLlmModel];\n\nexport const VoiceAgentWithTestPhoneNumberLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 VoiceAgentWithTestPhoneNumberNoiseCancellation =\n (typeof VoiceAgentWithTestPhoneNumberNoiseCancellation)[keyof typeof VoiceAgentWithTestPhoneNumberNoiseCancellation];\n\nexport const VoiceAgentWithTestPhoneNumberNoiseCancellation = {\n NONE: \"NONE\",\n NC: \"NC\",\n BVC: \"BVC\",\n BVC_TELEPHONY: \"BVC_TELEPHONY\",\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 VoiceAgentWithTestPhoneNumberSttModel =\n (typeof VoiceAgentWithTestPhoneNumberSttModel)[keyof typeof VoiceAgentWithTestPhoneNumberSttModel];\n\nexport const VoiceAgentWithTestPhoneNumberSttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 VoiceAgentWithTestPhoneNumberTtsModel =\n (typeof VoiceAgentWithTestPhoneNumberTtsModel)[keyof typeof VoiceAgentWithTestPhoneNumberTtsModel];\n\nexport const VoiceAgentWithTestPhoneNumberTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 VoiceAgentWithTestPhoneNumberTtsProvider =\n (typeof VoiceAgentWithTestPhoneNumberTtsProvider)[keyof typeof VoiceAgentWithTestPhoneNumberTtsProvider];\n\nexport const VoiceAgentWithTestPhoneNumberTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 WorkerEnvironment =\n (typeof WorkerEnvironment)[keyof typeof WorkerEnvironment];\n\nexport const WorkerEnvironment = {\n live: \"live\",\n test: \"test\",\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 * MCP server identifier.\n */\nexport type WorkerMcpName = (typeof WorkerMcpName)[keyof typeof WorkerMcpName];\n\nexport const WorkerMcpName = {\n ventiv: \"ventiv\",\n klear: \"klear\",\n \"klear-browser\": \"klear-browser\",\n \"demo-browser\": \"demo-browser\",\n \"demo-claims\": \"demo-claims\",\n \"filehandler-browser\": \"filehandler-browser\",\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 * MCP server identifier.\n */\nexport type WorkerMcpOutputName =\n (typeof WorkerMcpOutputName)[keyof typeof WorkerMcpOutputName];\n\nexport const WorkerMcpOutputName = {\n ventiv: \"ventiv\",\n klear: \"klear\",\n \"klear-browser\": \"klear-browser\",\n \"demo-browser\": \"demo-browser\",\n \"demo-claims\": \"demo-claims\",\n \"filehandler-browser\": \"filehandler-browser\",\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 WorkerPermission =\n (typeof WorkerPermission)[keyof typeof WorkerPermission];\n\nexport const WorkerPermission = {\n \"workers:run\": \"workers:run\",\n \"inboxes:send\": \"inboxes:send\",\n \"artifacts:write\": \"artifacts:write\",\n \"outbound-jobs:schedule\": \"outbound-jobs:schedule\",\n \"cases:write\": \"cases:write\",\n \"schedules:write\": \"schedules:write\",\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 WorkerRunCreatedStatus =\n (typeof WorkerRunCreatedStatus)[keyof typeof WorkerRunCreatedStatus];\n\nexport const WorkerRunCreatedStatus = {\n pending: \"pending\",\n queued: \"queued\",\n starting: \"starting\",\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\n/**\n * Current run status\n */\nexport type WorkerRunStatus =\n (typeof WorkerRunStatus)[keyof typeof WorkerRunStatus];\n\nexport const WorkerRunStatus = {\n pending: \"pending\",\n queued: \"queued\",\n starting: \"starting\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n failed: \"failed\",\n canceled: \"canceled\",\n} as const;\n"]}
1
+ {"version":3,"sources":["../src/fetcher.ts","../src/auth.ts","../generated/endpoints/analytics/analytics.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/cases/cases.ts","../generated/endpoints/chat-agents/chat-agents.ts","../generated/endpoints/chats/chats.ts","../generated/endpoints/dispatches/dispatches.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/inboxes/inboxes.ts","../generated/endpoints/jobs/jobs.ts","../generated/endpoints/profiles/profiles.ts","../generated/endpoints/schedules/schedules.ts","../generated/endpoints/secrets/secrets.ts","../generated/endpoints/team/team.ts","../generated/endpoints/tools/tools.ts","../generated/endpoints/voice-agents/voice-agents.ts","../generated/endpoints/webhooks/webhooks.ts","../generated/endpoints/worker-runs/worker-runs.ts","../generated/endpoints/worker/worker.ts","../generated/endpoints/workers/workers.ts","../generated/models/addCaseLinksBodyEntitiesItemEntityType.ts","../generated/models/analyticsTimeSeriesGranularity.ts","../generated/models/analyticsTimeSeriesMetric.ts","../generated/models/apiKeyCreatedRole.ts","../generated/models/apiKeyRole.ts","../generated/models/artifactDetailDataStatus.ts","../generated/models/artifactStatus.ts","../generated/models/callDetailDirection.ts","../generated/models/callDirection.ts","../generated/models/caseLinkEntityType.ts","../generated/models/chatHistoryMessagesItemRole.ts","../generated/models/chatMessageRole.ts","../generated/models/createApiKeyBodyEnvironment.ts","../generated/models/createApiKeyBodyRole.ts","../generated/models/createEmailBodyDirection.ts","../generated/models/createInboxBodyProcessorType.ts","../generated/models/createVoiceAgentBodyCallProcessorType.ts","../generated/models/createVoiceAgentBodyDirection.ts","../generated/models/createVoiceAgentBodyLanguage.ts","../generated/models/createVoiceAgentBodyLlmModel.ts","../generated/models/createVoiceAgentBodySttModel.ts","../generated/models/createVoiceAgentBodyTtsModel.ts","../generated/models/createVoiceAgentBodyTtsProvider.ts","../generated/models/dispatchStatus.ts","../generated/models/dispatchTargetType.ts","../generated/models/dispatchTriggerType.ts","../generated/models/emailCreatedDirection.ts","../generated/models/emailDetailDirection.ts","../generated/models/emailDirection.ts","../generated/models/emailReplyResult.ts","../generated/models/getAnalyticsTimeSeriesGranularity.ts","../generated/models/getAnalyticsTimeSeriesGroupBy.ts","../generated/models/getAnalyticsTimeSeriesMetric.ts","../generated/models/getOAuthUrlCodeChallengeMethod.ts","../generated/models/getOAuthUrlProvider.ts","../generated/models/inboxProcessorType.ts","../generated/models/listApiKeysIncludeRevoked.ts","../generated/models/listArtifactsSortBy.ts","../generated/models/listArtifactsSortOrder.ts","../generated/models/listArtifactsStatus.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/listCaseLinksEntityType.ts","../generated/models/listCaseLinksSortBy.ts","../generated/models/listCaseLinksSortOrder.ts","../generated/models/listCasesSortBy.ts","../generated/models/listCasesSortOrder.ts","../generated/models/listChatAgentsSortBy.ts","../generated/models/listChatAgentsSortOrder.ts","../generated/models/listChatMessagesSortBy.ts","../generated/models/listChatMessagesSortOrder.ts","../generated/models/listChatsSortBy.ts","../generated/models/listChatsSortOrder.ts","../generated/models/listDispatchesSortBy.ts","../generated/models/listDispatchesSortOrder.ts","../generated/models/listDispatchesTriggerType.ts","../generated/models/listEmailsSortBy.ts","../generated/models/listEmailsSortOrder.ts","../generated/models/listEmailThreadsSortBy.ts","../generated/models/listEmailThreadsSortOrder.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/listInboxesSortBy.ts","../generated/models/listInboxesSortOrder.ts","../generated/models/listJobsStatusItem.ts","../generated/models/listSchedulesRuleType.ts","../generated/models/listSchedulesSortBy.ts","../generated/models/listSchedulesSortOrder.ts","../generated/models/listSecretsSortBy.ts","../generated/models/listSecretsSortOrder.ts","../generated/models/listToolsSortBy.ts","../generated/models/listToolsSortOrder.ts","../generated/models/listVoiceAgentVersionsSortBy.ts","../generated/models/listVoiceAgentVersionsSortOrder.ts","../generated/models/listWebhookDeliveriesSortOrder.ts","../generated/models/listWorkerRunsSortBy.ts","../generated/models/listWorkerRunsSortOrder.ts","../generated/models/listWorkerRunsStatus.ts","../generated/models/listWorkersSortBy.ts","../generated/models/listWorkersSortOrder.ts","../generated/models/listWorkerVersionsSortBy.ts","../generated/models/listWorkerVersionsSortOrder.ts","../generated/models/outboundJobEnvironment.ts","../generated/models/outboundJobStatus.ts","../generated/models/profilePermissionsItem.ts","../generated/models/profileRole.ts","../generated/models/promotedVoiceAgentVersionEnvironment.ts","../generated/models/promoteVoiceAgentVersionBodyEnvironment.ts","../generated/models/scheduleJobBodyEnvironment.ts","../generated/models/teamInvitationState.ts","../generated/models/teamMemberRole.ts","../generated/models/updateApiKeyBodyRole.ts","../generated/models/updateInboxBodyProcessorType.ts","../generated/models/updateMemberRoleBodyRole.ts","../generated/models/updateVoiceAgentBodyCallProcessorType.ts","../generated/models/updateVoiceAgentModelsBodyLanguage.ts","../generated/models/updateVoiceAgentModelsBodyLlmModel.ts","../generated/models/updateVoiceAgentModelsBodySttModel.ts","../generated/models/updateVoiceAgentModelsBodyTtsModel.ts","../generated/models/updateVoiceAgentModelsBodyTtsProvider.ts","../generated/models/voiceAgentBackgroundSounds.ts","../generated/models/voiceAgentDirection.ts","../generated/models/voiceAgentLanguage.ts","../generated/models/voiceAgentLlmModel.ts","../generated/models/voiceAgentNoiseCancellation.ts","../generated/models/voiceAgentSttModel.ts","../generated/models/voiceAgentTtsModel.ts","../generated/models/voiceAgentTtsProvider.ts","../generated/models/voiceAgentVersionActiveEnvironmentsItem.ts","../generated/models/voiceAgentVersionDetailActiveEnvironmentsItem.ts","../generated/models/voiceAgentVersionDetailBackgroundSounds.ts","../generated/models/voiceAgentVersionDetailDirection.ts","../generated/models/voiceAgentVersionDetailLanguage.ts","../generated/models/voiceAgentVersionDetailLlmModel.ts","../generated/models/voiceAgentVersionDetailNoiseCancellation.ts","../generated/models/voiceAgentVersionDetailSttModel.ts","../generated/models/voiceAgentVersionDetailTtsModel.ts","../generated/models/voiceAgentVersionDetailTtsProvider.ts","../generated/models/voiceAgentWithTestPhoneNumberBackgroundSounds.ts","../generated/models/voiceAgentWithTestPhoneNumberDirection.ts","../generated/models/voiceAgentWithTestPhoneNumberLanguage.ts","../generated/models/voiceAgentWithTestPhoneNumberLlmModel.ts","../generated/models/voiceAgentWithTestPhoneNumberNoiseCancellation.ts","../generated/models/voiceAgentWithTestPhoneNumberSttModel.ts","../generated/models/voiceAgentWithTestPhoneNumberTtsModel.ts","../generated/models/voiceAgentWithTestPhoneNumberTtsProvider.ts","../generated/models/workerEnvironment.ts","../generated/models/workerMcpName.ts","../generated/models/workerMcpOutputName.ts","../generated/models/workerPermission.ts","../generated/models/workerRunCreatedStatus.ts","../generated/models/workerRunStatus.ts"],"names":["useSwr","useSWRMutation"],"mappings":";;;;AAcA,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,EAAA,MAAM,OAAA,GAAU,IAAI,OAAA,CAAQ,OAAA,CAAQ,OAAO,CAAA;AAI3C,EAAA,IAAI,OAAA,CAAQ,IAAA,IAAQ,OAAO,OAAA,CAAQ,SAAS,QAAA,EAAU;AACpD,IAAA,OAAA,CAAQ,GAAA,CAAI,gBAAgB,kBAAkB,CAAA;AAAA,EAChD;AAEA,EAAA,IAAI,QAAA,EAAU;AACZ,IAAA,MAAM,WAAA,GAAc,MAAM,MAAA,CAAO,cAAA,IAAiB;AAClD,IAAA,IAAI,WAAA,EAAa;AACf,MAAA,OAAA,CAAQ,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Bearer token) and base URL configuration.\n * Throws AvallonError on non-2xx responses for clean SWR error handling.\n *\n * The API's `{ data, message, meta }` envelope is returned verbatim — the\n * generated types describe the envelope, so callers read `result.data`, and\n * paginated endpoints expose the total via `result.meta.total`.\n */\n\n// --------------------------------------------------------------------------\n// Configuration\n// --------------------------------------------------------------------------\n\nlet config: AvallonConfig = {\n baseUrl: \"https://api.avallon.ai\",\n};\n\nexport type AvallonConfig = {\n baseUrl?: string;\n apiKey?: string;\n /**\n * Token provider - can be sync or async.\n * Async allows the application to check expiry and refresh before returning.\n */\n getAccessToken?: () => string | null | Promise<string | null>;\n};\n\n/** Configure the SDK at runtime */\nexport function configure(newConfig: Partial<AvallonConfig>) {\n config = { ...config, ...newConfig };\n}\n\n/** Get current config */\nexport function getConfig(): AvallonConfig {\n return { ...config };\n}\n\n// --------------------------------------------------------------------------\n// Fetch wrapper\n// --------------------------------------------------------------------------\n\n/** Shared fetch logic */\nasync function doFetch<T>(\n url: string,\n options: RequestInit,\n withAuth: boolean\n): Promise<T> {\n const fullUrl = url.startsWith(\"http\") ? url : `${config.baseUrl}${url}`;\n\n const headers = new Headers(options.headers);\n\n // Only set Content-Type for requests with JSON body\n // (allows file uploads to set their own Content-Type)\n if (options.body && typeof options.body === \"string\") {\n headers.set(\"Content-Type\", \"application/json\");\n }\n\n if (withAuth) {\n const accessToken = await config.getAccessToken?.();\n if (accessToken) {\n headers.set(\"Authorization\", `Bearer ${accessToken}`);\n } else if (config.apiKey) {\n headers.set(\"x-api-key\", config.apiKey);\n }\n }\n\n const response = await fetch(fullUrl, {\n ...options,\n headers,\n });\n\n // Parse response based on content type\n const contentType = response.headers.get(\"Content-Type\") ?? \"\";\n let body: unknown;\n\n if (response.status === 204) {\n // No content\n body = {};\n } else if (contentType.includes(\"application/json\")) {\n body = await response.json().catch(() => ({}));\n } else {\n // Non-JSON response (shouldn't happen with our API, but handle gracefully)\n const text = await response.text().catch(() => \"\");\n body = { message: text };\n }\n\n // Throw on non-2xx - SWR will catch this as `error`\n if (!response.ok) {\n throw new AvallonError(response.status, body as AvallonError[\"body\"]);\n }\n\n return 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 type {\n ErrorResponse,\n GetAnalyticsTimeSeriesEnvelope,\n GetAnalyticsTimeSeriesParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve a tenant-scoped time series for a single processing-volume metric.\n\nPick a `metric` (worker runs, documents, or pages), a date range, a bucket `granularity` (day/week/month), and optionally a `group_by` dimension (e.g. worker runs grouped by worker). The series is sparse (only buckets with data) over the half-open window `[from, to)`.\n\n`data` is an array of per-metric results; today it always contains exactly one entry (the requested metric).\n * @summary Get analytics time series\n */\nexport const getGetAnalyticsTimeSeriesUrl = (\n params: GetAnalyticsTimeSeriesParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/analytics/timeseries?${stringifiedParams}`\n : `/v1/analytics/timeseries`;\n};\n\nexport const getAnalyticsTimeSeries = async (\n params: GetAnalyticsTimeSeriesParams,\n options?: RequestInit\n): Promise<GetAnalyticsTimeSeriesEnvelope> => {\n return customFetch<GetAnalyticsTimeSeriesEnvelope>(\n getGetAnalyticsTimeSeriesUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetAnalyticsTimeSeriesKey = (\n params: GetAnalyticsTimeSeriesParams\n) => [`/v1/analytics/timeseries`, ...(params ? [params] : [])] as const;\n\nexport type GetAnalyticsTimeSeriesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAnalyticsTimeSeries>>\n>;\n\n/**\n * @summary Get analytics time series\n */\nexport const useGetAnalyticsTimeSeries = <TError = ErrorType<ErrorResponse>>(\n params: GetAnalyticsTimeSeriesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getAnalyticsTimeSeries>>,\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 ? getGetAnalyticsTimeSeriesKey(params) : null));\n const swrFn = () => getAnalyticsTimeSeries(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 CreateApiKeyBody,\n CreateApiKeyEnvelope,\n ErrorResponse,\n ListApiKeysEnvelope,\n ListApiKeysParams,\n RevokeApiKeyEnvelope,\n UpdateApiKeyBody,\n UpdateApiKeyEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListApiKeysEnvelope> => {\n return customFetch<ListApiKeysEnvelope>(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<CreateApiKeyEnvelope> => {\n return customFetch<CreateApiKeyEnvelope>(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<RevokeApiKeyEnvelope> => {\n return customFetch<RevokeApiKeyEnvelope>(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 * Update mutable fields of an API key. Currently only `role` can be updated.\n\nThe caller's role caps the maximum role they can grant — an `admin` cannot promote a key to `avallon_admin`.\n * @summary Update API key\n */\nexport const getUpdateApiKeyUrl = (id: string) => {\n return `/platform/api-keys/${id}`;\n};\n\nexport const updateApiKey = async (\n id: string,\n updateApiKeyBody: UpdateApiKeyBody,\n options?: RequestInit\n): Promise<UpdateApiKeyEnvelope> => {\n return customFetch<UpdateApiKeyEnvelope>(getUpdateApiKeyUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateApiKeyBody),\n });\n};\n\nexport const getUpdateApiKeyMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateApiKeyBody }) => {\n return updateApiKey(id, arg, options);\n };\n};\nexport const getUpdateApiKeyMutationKey = (id: string) =>\n [`/platform/api-keys/${id}`] as const;\n\nexport type UpdateApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateApiKey>>\n>;\n\n/**\n * @summary Update API key\n */\nexport const useUpdateApiKey = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateApiKey>>,\n TError,\n Key,\n UpdateApiKeyBody,\n Awaited<ReturnType<typeof updateApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateApiKeyMutationKey(id);\n const swrFn = getUpdateApiKeyMutationFetcher(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 CreateArtifactBody,\n CreateArtifactEnvelope,\n DeleteArtifactEnvelope,\n ErrorResponse,\n GetArtifactEnvelope,\n GetArtifactMetadataKeysEnvelope,\n GetArtifactMetadataKeysParams,\n GetArtifactStatusSummaryEnvelope,\n GetArtifactStatusSummaryParams,\n GetArtifactUploadUrlBody,\n GetArtifactUploadUrlEnvelope,\n ListArtifactsEnvelope,\n ListArtifactsParams,\n UpdateArtifactMetadataBody,\n UpdateArtifactMetadataEnvelope,\n UploadFileBody,\n UploadFileEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<CreateArtifactEnvelope> => {\n return customFetch<CreateArtifactEnvelope>(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**Case Filtering:**\n\nUse `case_id` to return only artifacts linked to a case. This reads the case links\ncreated via `POST /v1/cases/{caseId}/links`, and is independent of any\n`metadata.case_id` an artifact may carry.\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListArtifactsEnvelope> => {\n return customFetch<ListArtifactsEnvelope>(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, extracted content, and chunk-annotated content.\n\nThe response always includes `content_with_chunkids_md`: the parsed content annotated with `[chunk_id=...]` markers when the artifact has parsed chunks. Chunk IDs are stable citation anchors — cite them to attribute extracted values to their source location.\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<GetArtifactEnvelope> => {\n return customFetch<GetArtifactEnvelope>(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 * Soft-delete an artifact. Soft-deleted artifacts and their chunks no longer appear in any read.\n * @summary Delete artifact\n */\nexport const getDeleteArtifactUrl = (id: string) => {\n return `/v1/artifacts/${id}`;\n};\n\nexport const deleteArtifact = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteArtifactEnvelope> => {\n return customFetch<DeleteArtifactEnvelope>(getDeleteArtifactUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteArtifactMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteArtifact(id, options);\n };\n};\nexport const getDeleteArtifactMutationKey = (id: string) =>\n [`/v1/artifacts/${id}`] as const;\n\nexport type DeleteArtifactMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteArtifact>>\n>;\n\n/**\n * @summary Delete artifact\n */\nexport const useDeleteArtifact = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteArtifact>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteArtifact>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteArtifactMutationKey(id);\n const swrFn = getDeleteArtifactMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetArtifactMetadataKeysEnvelope> => {\n return customFetch<GetArtifactMetadataKeysEnvelope>(\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 * Count the artifacts in a scope, broken down by processing status.\n\nDefine the scope with bracket notation (e.g. `scope[email_id]=abc-123`). At least one key is required; multiple keys are combined with AND logic.\n * @summary Get artifact status summary\n */\nexport const getGetArtifactStatusSummaryUrl = (\n params: GetArtifactStatusSummaryParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/artifacts/status-summary?${stringifiedParams}`\n : `/v1/artifacts/status-summary`;\n};\n\nexport const getArtifactStatusSummary = async (\n params: GetArtifactStatusSummaryParams,\n options?: RequestInit\n): Promise<GetArtifactStatusSummaryEnvelope> => {\n return customFetch<GetArtifactStatusSummaryEnvelope>(\n getGetArtifactStatusSummaryUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetArtifactStatusSummaryKey = (\n params: GetArtifactStatusSummaryParams\n) => [`/v1/artifacts/status-summary`, ...(params ? [params] : [])] as const;\n\nexport type GetArtifactStatusSummaryQueryResult = NonNullable<\n Awaited<ReturnType<typeof getArtifactStatusSummary>>\n>;\n\n/**\n * @summary Get artifact status summary\n */\nexport const useGetArtifactStatusSummary = <TError = ErrorType<ErrorResponse>>(\n params: GetArtifactStatusSummaryParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getArtifactStatusSummary>>,\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 ? getGetArtifactStatusSummaryKey(params) : null));\n const swrFn = () => getArtifactStatusSummary(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<GetArtifactUploadUrlEnvelope> => {\n return customFetch<GetArtifactUploadUrlEnvelope>(\n getGetArtifactUploadUrlUrl(),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(getArtifactUploadUrlBody),\n }\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<UpdateArtifactMetadataEnvelope> => {\n return customFetch<UpdateArtifactMetadataEnvelope>(\n getUpdateArtifactMetadataUrl(id),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateArtifactMetadataBody),\n }\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<UploadFileEnvelope> => {\n return customFetch<UploadFileEnvelope>(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ErrorResponse,\n GetOAuthUrlEnvelope,\n GetOAuthUrlParams,\n GetSessionTokenBody,\n GetSessionTokenEnvelope,\n PartnerJwks,\n PartnerLaunchEnvelope,\n PartnerLaunchParams,\n RefreshTokenBody,\n RefreshTokenEnvelope,\n RequestPasswordResetBody,\n RequestPasswordResetEnvelope,\n ResetPasswordBody,\n ResetPasswordEnvelope,\n SignInBody,\n SignInEnvelope,\n SignUpBody,\n SignUpEnvelope,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new user account with email and password. When the response includes a pending_authentication_token, the account requires email verification: complete it via sign-in (type: email_otp) with the emailed one-time password and this token.\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<SignUpEnvelope> => {\n return customFetchNoAuth<SignUpEnvelope>(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. If the password is correct but the email is not verified yet, responds 403 with `data.pending_authentication_token` and a fresh verification code is emailed; complete verification via **Email OTP**. Each password attempt invalidates earlier codes and tokens, so always use the most recent pair — repeating the password sign-in is also how a new code is requested.\n- **OAuth:** Authorization code from OAuth flow (social or enterprise SSO). Pass the `provider` the flow was started with so the code is exchanged against the system that issued it. `verifier` is only required when the flow was started with a `code_challenge` — see **Get OAuth sign-in URL**.\n- **Email OTP:** One-time password sent to email. Include the `pending_authentication_token` from sign-up, or from the 403 returned by an unverified user's password sign-in, when completing email verification.\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<SignInEnvelope> => {\n return customFetchNoAuth<SignInEnvelope>(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 * Start password recovery for an email/password account. When the email belongs to an account, a reset link is emailed to it. The response is 200 regardless, and does not reveal whether an account exists.\n * @summary Request password reset\n */\nexport const getRequestPasswordResetUrl = () => {\n return `/v1/auth/request-password-reset`;\n};\n\nexport const requestPasswordReset = async (\n requestPasswordResetBody: RequestPasswordResetBody,\n options?: RequestInit\n): Promise<RequestPasswordResetEnvelope> => {\n return customFetchNoAuth<RequestPasswordResetEnvelope>(\n getRequestPasswordResetUrl(),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(requestPasswordResetBody),\n }\n );\n};\n\nexport const getRequestPasswordResetMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: RequestPasswordResetBody }) => {\n return requestPasswordReset(arg, options);\n };\n};\nexport const getRequestPasswordResetMutationKey = () =>\n [`/v1/auth/request-password-reset`] as const;\n\nexport type RequestPasswordResetMutationResult = NonNullable<\n Awaited<ReturnType<typeof requestPasswordReset>>\n>;\n\n/**\n * @summary Request password reset\n */\nexport const useRequestPasswordReset = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof requestPasswordReset>>,\n TError,\n Key,\n RequestPasswordResetBody,\n Awaited<ReturnType<typeof requestPasswordReset>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRequestPasswordResetMutationKey();\n const swrFn = getRequestPasswordResetMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Complete password recovery with the token from the emailed reset link and set a new password. Completing the reset also verifies the account's email address. Afterwards, sign in with the new password.\n * @summary Reset password\n */\nexport const getResetPasswordUrl = () => {\n return `/v1/auth/reset-password`;\n};\n\nexport const resetPassword = async (\n resetPasswordBody: ResetPasswordBody,\n options?: RequestInit\n): Promise<ResetPasswordEnvelope> => {\n return customFetchNoAuth<ResetPasswordEnvelope>(getResetPasswordUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(resetPasswordBody),\n });\n};\n\nexport const getResetPasswordMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: ResetPasswordBody }) => {\n return resetPassword(arg, options);\n };\n};\nexport const getResetPasswordMutationKey = () =>\n [`/v1/auth/reset-password`] as const;\n\nexport type ResetPasswordMutationResult = NonNullable<\n Awaited<ReturnType<typeof resetPassword>>\n>;\n\n/**\n * @summary Reset password\n */\nexport const useResetPassword = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof resetPassword>>,\n TError,\n Key,\n ResetPasswordBody,\n Awaited<ReturnType<typeof resetPassword>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getResetPasswordMutationKey();\n const swrFn = getResetPasswordMutationFetcher(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<RefreshTokenEnvelope> => {\n return customFetchNoAuth<RefreshTokenEnvelope>(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.\n\nPKCE is optional. To use it, generate a random verifier, derive `code_challenge` from it, and pass both `code_challenge` and the matching `code_challenge_method` — then send the verifier to **Sign in** when exchanging the code. Omit both to run the flow without PKCE and exchange the code on its own. `provider=microsoft` is PKCE-only: it responds 400 without a challenge.\n\nFor enterprise SSO, pass `provider=sso` together with the user's `email`; the email domain selects the SSO organization. Responds 404 when no SSO organization is configured for the domain.\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetOAuthUrlEnvelope> => {\n return customFetchNoAuth<GetOAuthUrlEnvelope>(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 an identity token (Supabase or WorkOS) for a tenant-scoped Core Plane access token.\n\n- The endpoint detects the token's issuer and verifies it against the matching provider.\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<GetSessionTokenEnvelope> => {\n return customFetchNoAuth<GetSessionTokenEnvelope>(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 * Returns the JSON Web Key Set (RFC 7517) of a partner's public signing keys, used to verify partner-issued launch tokens.\n * @summary Get partner JWKS\n */\nexport const getGetPartnerJwksUrl = (partner: string) => {\n return `/.well-known/partners/${partner}/jwks.json`;\n};\n\nexport const getPartnerJwks = async (\n partner: string,\n options?: RequestInit\n): Promise<PartnerJwks> => {\n return customFetchNoAuth<PartnerJwks>(getGetPartnerJwksUrl(partner), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetPartnerJwksKey = (partner: string) =>\n [`/.well-known/partners/${partner}/jwks.json`] as const;\n\nexport type GetPartnerJwksQueryResult = NonNullable<\n Awaited<ReturnType<typeof getPartnerJwks>>\n>;\n\n/**\n * @summary Get partner JWKS\n */\nexport const useGetPartnerJwks = <TError = ErrorType<ErrorResponse>>(\n partner: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getPartnerJwks>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false && !!partner;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetPartnerJwksKey(partner) : null));\n const swrFn = () => getPartnerJwks(partner, 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 * Verifies a partner-signed launch token, mints an Avallon session, and redirects (302) the user into the app's handoff route, carrying the session token in the URL fragment (no cookie).\n * @summary Partner launch (SSO)\n */\nexport const getPartnerLaunchUrl = (params?: PartnerLaunchParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/auth/partner-launch?${stringifiedParams}`\n : `/v1/auth/partner-launch`;\n};\n\nexport const partnerLaunch = async (\n params?: PartnerLaunchParams,\n options?: RequestInit\n): Promise<unknown> => {\n return customFetchNoAuth<unknown>(getPartnerLaunchUrl(params), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getPartnerLaunchMutationFetcher = (\n params?: PartnerLaunchParams,\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return partnerLaunch(params, options);\n };\n};\nexport const getPartnerLaunchMutationKey = (params?: PartnerLaunchParams) =>\n [`/v1/auth/partner-launch`, ...(params ? [params] : [])] as const;\n\nexport type PartnerLaunchMutationResult = NonNullable<\n Awaited<ReturnType<typeof partnerLaunch>>\n>;\n\n/**\n * @summary Partner launch (SSO)\n */\nexport const usePartnerLaunch = <\n TError = ErrorType<PartnerLaunchEnvelope | ErrorResponse>,\n>(\n params?: PartnerLaunchParams,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof partnerLaunch>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof partnerLaunch>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPartnerLaunchMutationKey(params);\n const swrFn = getPartnerLaunchMutationFetcher(params, 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 CreateCallFeedbackEnvelope,\n CreateFeedbackRequest,\n DeleteCallFeedbackEnvelope,\n ErrorResponse,\n ListCallFeedbackEnvelope,\n ListCallFeedbackParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create feedback for a specific message in a call. Requires user (JWT) authentication; the author is derived from the authenticated user's profile and API-key callers are rejected.\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<CreateCallFeedbackEnvelope> => {\n return customFetch<CreateCallFeedbackEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListCallFeedbackEnvelope> => {\n return customFetch<ListCallFeedbackEnvelope>(\n getListCallFeedbackUrl(id, params),\n {\n ...options,\n method: \"GET\",\n }\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<DeleteCallFeedbackEnvelope> => {\n return customFetch<DeleteCallFeedbackEnvelope>(\n getDeleteCallFeedbackUrl(id, feedbackId),\n {\n ...options,\n method: \"DELETE\",\n }\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 ErrorResponse,\n GetCallAnalyticsEnvelope,\n GetCallAnalyticsParams,\n GetCallEnvelope,\n GetCallEvaluationEnvelope,\n GetCallParams,\n ListCallsEnvelope,\n ListCallsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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\n**Case Filtering:**\n\nUse `case_id` to return only calls linked to a case. This reads the case links created\nvia `POST /v1/cases/{caseId}/links`, and is independent of any `metadata.case_id` a\ncall may carry.\n\n**Metadata Filtering:**\n\nUse bracket notation to filter by metadata keys:\n- `metadata[claim_id]=abc-123`\n- `metadata[source]=worker`\n\nMultiple metadata filters can be combined (AND logic).\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListCallsEnvelope> => {\n return customFetch<ListCallsEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetCallEnvelope> => {\n return customFetch<GetCallEnvelope>(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<GetCallEvaluationEnvelope> => {\n return customFetch<GetCallEvaluationEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<GetCallAnalyticsEnvelope> => {\n return customFetch<GetCallAnalyticsEnvelope>(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 AddCaseLinksBody,\n AddCaseLinksEnvelope,\n CreateCaseBody,\n CreateCaseEnvelope,\n ErrorResponse,\n GetCaseEnvelope,\n ListCaseLinksEnvelope,\n ListCaseLinksParams,\n ListCasesEnvelope,\n ListCasesParams,\n RemoveCaseLinkEnvelope,\n SearchCasesEnvelope,\n SearchCasesParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all cases for the current tenant, paginated, filterable, and sortable.\n * @summary List cases\n */\nexport const getListCasesUrl = (params?: ListCasesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/cases?${stringifiedParams}`\n : `/v1/cases`;\n};\n\nexport const listCases = async (\n params?: ListCasesParams,\n options?: RequestInit\n): Promise<ListCasesEnvelope> => {\n return customFetch<ListCasesEnvelope>(getListCasesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCasesKey = (params?: ListCasesParams) =>\n [`/v1/cases`, ...(params ? [params] : [])] as const;\n\nexport type ListCasesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCases>>\n>;\n\n/**\n * @summary List cases\n */\nexport const useListCases = <TError = ErrorType<ErrorResponse>>(\n params?: ListCasesParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listCases>>, 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 ? getListCasesKey(params) : null));\n const swrFn = () => listCases(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 case with a client-supplied id.\n\nCase ids are tenant-scoped opaque keys (e.g. \"clm-1\", \"STD-001\") and are normalized server-side (trimmed and lowercased). Creating an id that already exists returns 409.\n * @summary Create case\n */\nexport const getCreateCaseUrl = () => {\n return `/v1/cases`;\n};\n\nexport const createCase = async (\n createCaseBody: CreateCaseBody,\n options?: RequestInit\n): Promise<CreateCaseEnvelope> => {\n return customFetch<CreateCaseEnvelope>(getCreateCaseUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createCaseBody),\n });\n};\n\nexport const getCreateCaseMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateCaseBody }) => {\n return createCase(arg, options);\n };\n};\nexport const getCreateCaseMutationKey = () => [`/v1/cases`] as const;\n\nexport type CreateCaseMutationResult = NonNullable<\n Awaited<ReturnType<typeof createCase>>\n>;\n\n/**\n * @summary Create case\n */\nexport const useCreateCase = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createCase>>,\n TError,\n Key,\n CreateCaseBody,\n Awaited<ReturnType<typeof createCase>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateCaseMutationKey();\n const swrFn = getCreateCaseMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Probe for candidate cases. Matches the query as a normalized substring of the case id, and fuzzily (trigram) against subject and reporter. Results are relevance-ranked — id matches first, then best fuzzy match, then most recently updated — so ordering is fixed and not configurable.\n * @summary Search cases\n */\nexport const getSearchCasesUrl = (params: SearchCasesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/cases/search?${stringifiedParams}`\n : `/v1/cases/search`;\n};\n\nexport const searchCases = async (\n params: SearchCasesParams,\n options?: RequestInit\n): Promise<SearchCasesEnvelope> => {\n return customFetch<SearchCasesEnvelope>(getSearchCasesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getSearchCasesKey = (params: SearchCasesParams) =>\n [`/v1/cases/search`, ...(params ? [params] : [])] as const;\n\nexport type SearchCasesQueryResult = NonNullable<\n Awaited<ReturnType<typeof searchCases>>\n>;\n\n/**\n * @summary Search cases\n */\nexport const useSearchCases = <TError = ErrorType<ErrorResponse>>(\n params: SearchCasesParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof searchCases>>, 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 ? getSearchCasesKey(params) : null));\n const swrFn = () => searchCases(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 case by id.\n\nRelated entities are not embedded — fetch them via the filtered list endpoints,\ne.g. `GET /v1/worker-runs?case_id=…` and `GET /v1/artifacts?metadata[case_id]=…`.\n * @summary Get case\n */\nexport const getGetCaseUrl = (id: string) => {\n return `/v1/cases/${id}`;\n};\n\nexport const getCase = async (\n id: string,\n options?: RequestInit\n): Promise<GetCaseEnvelope> => {\n return customFetch<GetCaseEnvelope>(getGetCaseUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetCaseKey = (id: string) => [`/v1/cases/${id}`] as const;\n\nexport type GetCaseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getCase>>\n>;\n\n/**\n * @summary Get case\n */\nexport const useGetCase = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getCase>>, 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 ? getGetCaseKey(id) : null));\n const swrFn = () => getCase(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 * Link one or more entities (artifacts, calls, chats, emails, extracts, schedules, worker runs) to a case.\n\nThe case and every entity must already exist in the tenant — unknown ids return 404 and nothing is created. Adding is idempotent: re-linking an already linked entity returns the existing link with its original `created_at`.\n * @summary Add case links\n */\nexport const getAddCaseLinksUrl = (id: string) => {\n return `/v1/cases/${id}/links`;\n};\n\nexport const addCaseLinks = async (\n id: string,\n addCaseLinksBody: AddCaseLinksBody,\n options?: RequestInit\n): Promise<AddCaseLinksEnvelope> => {\n return customFetch<AddCaseLinksEnvelope>(getAddCaseLinksUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(addCaseLinksBody),\n });\n};\n\nexport const getAddCaseLinksMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: AddCaseLinksBody }) => {\n return addCaseLinks(id, arg, options);\n };\n};\nexport const getAddCaseLinksMutationKey = (id: string) =>\n [`/v1/cases/${id}/links`] as const;\n\nexport type AddCaseLinksMutationResult = NonNullable<\n Awaited<ReturnType<typeof addCaseLinks>>\n>;\n\n/**\n * @summary Add case links\n */\nexport const useAddCaseLinks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof addCaseLinks>>,\n TError,\n Key,\n AddCaseLinksBody,\n Awaited<ReturnType<typeof addCaseLinks>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getAddCaseLinksMutationKey(id);\n const swrFn = getAddCaseLinksMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the entities linked to a case, paginated and filterable by entity type.\n * @summary List case links\n */\nexport const getListCaseLinksUrl = (\n id: string,\n params?: ListCaseLinksParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/cases/${id}/links?${stringifiedParams}`\n : `/v1/cases/${id}/links`;\n};\n\nexport const listCaseLinks = async (\n id: string,\n params?: ListCaseLinksParams,\n options?: RequestInit\n): Promise<ListCaseLinksEnvelope> => {\n return customFetch<ListCaseLinksEnvelope>(getListCaseLinksUrl(id, params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListCaseLinksKey = (id: string, params?: ListCaseLinksParams) =>\n [`/v1/cases/${id}/links`, ...(params ? [params] : [])] as const;\n\nexport type ListCaseLinksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listCaseLinks>>\n>;\n\n/**\n * @summary List case links\n */\nexport const useListCaseLinks = <TError = ErrorType<ErrorResponse>>(\n id: string,\n params?: ListCaseLinksParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listCaseLinks>>,\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 ? getListCaseLinksKey(id, params) : null));\n const swrFn = () => listCaseLinks(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 * Remove the link between a case and an entity. Removal is idempotent: removing a link that does not exist succeeds without effect.\n * @summary Remove case link\n */\nexport const getRemoveCaseLinkUrl = (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string\n) => {\n return `/v1/cases/${id}/links/${entityType}/${entityId}`;\n};\n\nexport const removeCaseLink = async (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string,\n options?: RequestInit\n): Promise<RemoveCaseLinkEnvelope> => {\n return customFetch<RemoveCaseLinkEnvelope>(\n getRemoveCaseLinkUrl(id, entityType, entityId),\n {\n ...options,\n method: \"DELETE\",\n }\n );\n};\n\nexport const getRemoveCaseLinkMutationFetcher = (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return removeCaseLink(id, entityType, entityId, options);\n };\n};\nexport const getRemoveCaseLinkMutationKey = (\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string\n) => [`/v1/cases/${id}/links/${entityType}/${entityId}`] as const;\n\nexport type RemoveCaseLinkMutationResult = NonNullable<\n Awaited<ReturnType<typeof removeCaseLink>>\n>;\n\n/**\n * @summary Remove case link\n */\nexport const useRemoveCaseLink = <TError = ErrorType<ErrorResponse>>(\n id: string,\n entityType:\n | \"artifact\"\n | \"call\"\n | \"chat\"\n | \"email\"\n | \"extract\"\n | \"schedule\"\n | \"worker_run\",\n entityId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof removeCaseLink>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof removeCaseLink>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ??\n getRemoveCaseLinkMutationKey(id, entityType, entityId);\n const swrFn = getRemoveCaseLinkMutationFetcher(\n id,\n entityType,\n entityId,\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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateChatAgentBody,\n CreateChatAgentEnvelope,\n DeleteChatAgentEnvelope,\n ErrorResponse,\n GetChatAgentEnvelope,\n GetChatAgentPromptEnvelope,\n ListChatAgentsEnvelope,\n ListChatAgentsParams,\n UpdateChatAgentEnvelope,\n UpdateChatAgentPromptBody,\n UpdateChatAgentPromptEnvelope,\n UpdateChatAgentRequest,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new chat agent with a name and prompt.\n * @summary Create chat agent\n */\nexport const getCreateChatAgentUrl = () => {\n return `/v1/chat-agents`;\n};\n\nexport const createChatAgent = async (\n createChatAgentBody: CreateChatAgentBody,\n options?: RequestInit\n): Promise<CreateChatAgentEnvelope> => {\n return customFetch<CreateChatAgentEnvelope>(getCreateChatAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createChatAgentBody),\n });\n};\n\nexport const getCreateChatAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateChatAgentBody }) => {\n return createChatAgent(arg, options);\n };\n};\nexport const getCreateChatAgentMutationKey = () => [`/v1/chat-agents`] as const;\n\nexport type CreateChatAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createChatAgent>>\n>;\n\n/**\n * @summary Create chat agent\n */\nexport const useCreateChatAgent = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createChatAgent>>,\n TError,\n Key,\n CreateChatAgentBody,\n Awaited<ReturnType<typeof createChatAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateChatAgentMutationKey();\n const swrFn = getCreateChatAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the tenant's chat agents with pagination and sorting. Prompts are not returned.\n * @summary List chat agents\n */\nexport const getListChatAgentsUrl = (params?: ListChatAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/chat-agents?${stringifiedParams}`\n : `/v1/chat-agents`;\n};\n\nexport const listChatAgents = async (\n params?: ListChatAgentsParams,\n options?: RequestInit\n): Promise<ListChatAgentsEnvelope> => {\n return customFetch<ListChatAgentsEnvelope>(getListChatAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListChatAgentsKey = (params?: ListChatAgentsParams) =>\n [`/v1/chat-agents`, ...(params ? [params] : [])] as const;\n\nexport type ListChatAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listChatAgents>>\n>;\n\n/**\n * @summary List chat agents\n */\nexport const useListChatAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListChatAgentsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listChatAgents>>,\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 ? getListChatAgentsKey(params) : null));\n const swrFn = () => listChatAgents(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 chat agent by ID, including the IDs of its attached code tools. The prompt is not returned.\n * @summary Get chat agent\n */\nexport const getGetChatAgentUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const getChatAgent = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<GetChatAgentEnvelope> => {\n return customFetch<GetChatAgentEnvelope>(getGetChatAgentUrl(chatAgentId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetChatAgentKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type GetChatAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getChatAgent>>\n>;\n\n/**\n * @summary Get chat agent\n */\nexport const useGetChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getChatAgent>>, 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 && !!chatAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetChatAgentKey(chatAgentId) : null));\n const swrFn = () => getChatAgent(chatAgentId, 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 * Patch a chat agent's settings. Today only the attached code tool set can be edited; future fields will be added under the same endpoint. The response returns the chat agent's metadata only and does not include the resulting tool list; the agent's `updated_at` is not bumped when only the tool set changes.\n * @summary Update chat agent\n */\nexport const getUpdateChatAgentUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const updateChatAgent = async (\n chatAgentId: string,\n updateChatAgentRequest: UpdateChatAgentRequest,\n options?: RequestInit\n): Promise<UpdateChatAgentEnvelope> => {\n return customFetch<UpdateChatAgentEnvelope>(\n getUpdateChatAgentUrl(chatAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateChatAgentRequest),\n }\n );\n};\n\nexport const getUpdateChatAgentMutationFetcher = (\n chatAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateChatAgentRequest }) => {\n return updateChatAgent(chatAgentId, arg, options);\n };\n};\nexport const getUpdateChatAgentMutationKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type UpdateChatAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateChatAgent>>\n>;\n\n/**\n * @summary Update chat agent\n */\nexport const useUpdateChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateChatAgent>>,\n TError,\n Key,\n UpdateChatAgentRequest,\n Awaited<ReturnType<typeof updateChatAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateChatAgentMutationKey(chatAgentId);\n const swrFn = getUpdateChatAgentMutationFetcher(chatAgentId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Soft-delete a chat agent. The agent no longer appears in any read and stops accepting new chats; existing chats and messages are preserved.\n * @summary Delete chat agent\n */\nexport const getDeleteChatAgentUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const deleteChatAgent = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<DeleteChatAgentEnvelope> => {\n return customFetch<DeleteChatAgentEnvelope>(\n getDeleteChatAgentUrl(chatAgentId),\n {\n ...options,\n method: \"DELETE\",\n }\n );\n};\n\nexport const getDeleteChatAgentMutationFetcher = (\n chatAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteChatAgent(chatAgentId, options);\n };\n};\nexport const getDeleteChatAgentMutationKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type DeleteChatAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteChatAgent>>\n>;\n\n/**\n * @summary Delete chat agent\n */\nexport const useDeleteChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteChatAgent>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteChatAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteChatAgentMutationKey(chatAgentId);\n const swrFn = getDeleteChatAgentMutationFetcher(chatAgentId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the prompt and greeting for a chat agent. Internal use only.\n * @summary Get chat agent prompt\n */\nexport const getGetChatAgentPromptUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}/prompt`;\n};\n\nexport const getChatAgentPrompt = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<GetChatAgentPromptEnvelope> => {\n return customFetch<GetChatAgentPromptEnvelope>(\n getGetChatAgentPromptUrl(chatAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetChatAgentPromptKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}/prompt`] as const;\n\nexport type GetChatAgentPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getChatAgentPrompt>>\n>;\n\n/**\n * @summary Get chat agent prompt\n */\nexport const useGetChatAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getChatAgentPrompt>>,\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 && !!chatAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetChatAgentPromptKey(chatAgentId) : null));\n const swrFn = () => getChatAgentPrompt(chatAgentId, 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 prompt and/or greeting for a chat agent. Internal use only.\n * @summary Update chat agent prompt\n */\nexport const getUpdateChatAgentPromptUrl = (chatAgentId: string) => {\n return `/v1/chat-agents/${chatAgentId}/prompt`;\n};\n\nexport const updateChatAgentPrompt = async (\n chatAgentId: string,\n updateChatAgentPromptBody: UpdateChatAgentPromptBody,\n options?: RequestInit\n): Promise<UpdateChatAgentPromptEnvelope> => {\n return customFetch<UpdateChatAgentPromptEnvelope>(\n getUpdateChatAgentPromptUrl(chatAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateChatAgentPromptBody),\n }\n );\n};\n\nexport const getUpdateChatAgentPromptMutationFetcher = (\n chatAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateChatAgentPromptBody }) => {\n return updateChatAgentPrompt(chatAgentId, arg, options);\n };\n};\nexport const getUpdateChatAgentPromptMutationKey = (chatAgentId: string) =>\n [`/v1/chat-agents/${chatAgentId}/prompt`] as const;\n\nexport type UpdateChatAgentPromptMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateChatAgentPrompt>>\n>;\n\n/**\n * @summary Update chat agent prompt\n */\nexport const useUpdateChatAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateChatAgentPrompt>>,\n TError,\n Key,\n UpdateChatAgentPromptBody,\n Awaited<ReturnType<typeof updateChatAgentPrompt>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateChatAgentPromptMutationKey(chatAgentId);\n const swrFn = getUpdateChatAgentPromptMutationFetcher(\n chatAgentId,\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 useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateChatBody,\n CreateChatEnvelope,\n ErrorResponse,\n GetChatEnvelope,\n GetPublicChatAgentEnvelope,\n ListChatMessagesEnvelope,\n ListChatMessagesParams,\n ListChatsEnvelope,\n ListChatsParams,\n PostChatMessageBody,\n PostChatMessageEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new chat against an existing chat agent. The chat agent's tenant becomes the owner of the chat.\n * @summary Create a chat\n */\nexport const getCreateChatUrl = () => {\n return `/public/v1/chats`;\n};\n\nexport const createChat = async (\n createChatBody: CreateChatBody,\n options?: RequestInit\n): Promise<CreateChatEnvelope> => {\n return customFetch<CreateChatEnvelope>(getCreateChatUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createChatBody),\n });\n};\n\nexport const getCreateChatMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateChatBody }) => {\n return createChat(arg, options);\n };\n};\nexport const getCreateChatMutationKey = () => [`/public/v1/chats`] as const;\n\nexport type CreateChatMutationResult = NonNullable<\n Awaited<ReturnType<typeof createChat>>\n>;\n\n/**\n * @summary Create a chat\n */\nexport const useCreateChat = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createChat>>,\n TError,\n Key,\n CreateChatBody,\n Awaited<ReturnType<typeof createChat>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateChatMutationKey();\n const swrFn = getCreateChatMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Return a chat and its messages in chronological order. Used to re-render a transcript after a reload. Only `user` and `assistant` messages are included; tool calls and tool results are omitted. Each message's `content` is the concatenation of its text blocks separated by newlines.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /public/v1/chat`\n * @summary Get a chat\n */\nexport const getGetChatUrl = (chatId: string) => {\n return `/public/v1/chats/${chatId}`;\n};\n\nexport const getChat = async (\n chatId: string,\n options?: RequestInit\n): Promise<GetChatEnvelope> => {\n return customFetch<GetChatEnvelope>(getGetChatUrl(chatId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetChatKey = (chatId: string) =>\n [`/public/v1/chats/${chatId}`] as const;\n\nexport type GetChatQueryResult = NonNullable<\n Awaited<ReturnType<typeof getChat>>\n>;\n\n/**\n * @summary Get a chat\n */\nexport const useGetChat = <TError = ErrorType<ErrorResponse>>(\n chatId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getChat>>, 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 && !!chatId;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetChatKey(chatId) : null));\n const swrFn = () => getChat(chatId, 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 * Return the public-facing fields of a chat agent for use in the chat UI. Sensitive fields such as the agent's prompt and tenant ID are not exposed.\n * @summary Get a chat agent (public)\n */\nexport const getGetPublicChatAgentUrl = (chatAgentId: string) => {\n return `/public/v1/chat-agents/${chatAgentId}`;\n};\n\nexport const getPublicChatAgent = async (\n chatAgentId: string,\n options?: RequestInit\n): Promise<GetPublicChatAgentEnvelope> => {\n return customFetch<GetPublicChatAgentEnvelope>(\n getGetPublicChatAgentUrl(chatAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetPublicChatAgentKey = (chatAgentId: string) =>\n [`/public/v1/chat-agents/${chatAgentId}`] as const;\n\nexport type GetPublicChatAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getPublicChatAgent>>\n>;\n\n/**\n * @summary Get a chat agent (public)\n */\nexport const useGetPublicChatAgent = <TError = ErrorType<ErrorResponse>>(\n chatAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getPublicChatAgent>>,\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 && !!chatAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetPublicChatAgentKey(chatAgentId) : null));\n const swrFn = () => getPublicChatAgent(chatAgentId, 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 * Post a user message to an existing chat and return the assistant reply. Both messages are persisted.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /public/v1/chat/messages`\n * @summary Post a message to a chat\n */\nexport const getPostChatMessageUrl = (chatId: string) => {\n return `/public/v1/chats/${chatId}/messages`;\n};\n\nexport const postChatMessage = async (\n chatId: string,\n postChatMessageBody: PostChatMessageBody,\n options?: RequestInit\n): Promise<PostChatMessageEnvelope> => {\n return customFetch<PostChatMessageEnvelope>(getPostChatMessageUrl(chatId), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postChatMessageBody),\n });\n};\n\nexport const getPostChatMessageMutationFetcher = (\n chatId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PostChatMessageBody }) => {\n return postChatMessage(chatId, arg, options);\n };\n};\nexport const getPostChatMessageMutationKey = (chatId: string) =>\n [`/public/v1/chats/${chatId}/messages`] as const;\n\nexport type PostChatMessageMutationResult = NonNullable<\n Awaited<ReturnType<typeof postChatMessage>>\n>;\n\n/**\n * @summary Post a message to a chat\n */\nexport const usePostChatMessage = <TError = ErrorType<ErrorResponse>>(\n chatId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postChatMessage>>,\n TError,\n Key,\n PostChatMessageBody,\n Awaited<ReturnType<typeof postChatMessage>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostChatMessageMutationKey(chatId);\n const swrFn = getPostChatMessageMutationFetcher(chatId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the tenant's chats with pagination, sorting, and optional filtering by case. Returns chat metadata and message counts; messages are not included.\n * @summary List chats\n */\nexport const getListChatsUrl = (params?: ListChatsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/chats?${stringifiedParams}`\n : `/v1/chats`;\n};\n\nexport const listChats = async (\n params?: ListChatsParams,\n options?: RequestInit\n): Promise<ListChatsEnvelope> => {\n return customFetch<ListChatsEnvelope>(getListChatsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListChatsKey = (params?: ListChatsParams) =>\n [`/v1/chats`, ...(params ? [params] : [])] as const;\n\nexport type ListChatsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listChats>>\n>;\n\n/**\n * @summary List chats\n */\nexport const useListChats = <TError = ErrorType<ErrorResponse>>(\n params?: ListChatsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listChats>>, 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 ? getListChatsKey(params) : null));\n const swrFn = () => listChats(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 * List messages for a chat owned by the tenant, in chronological order by default.\n * @summary List chat messages\n */\nexport const getListChatMessagesUrl = (\n chatId: string,\n params?: ListChatMessagesParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/chats/${chatId}/messages?${stringifiedParams}`\n : `/v1/chats/${chatId}/messages`;\n};\n\nexport const listChatMessages = async (\n chatId: string,\n params?: ListChatMessagesParams,\n options?: RequestInit\n): Promise<ListChatMessagesEnvelope> => {\n return customFetch<ListChatMessagesEnvelope>(\n getListChatMessagesUrl(chatId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListChatMessagesKey = (\n chatId: string,\n params?: ListChatMessagesParams\n) => [`/v1/chats/${chatId}/messages`, ...(params ? [params] : [])] as const;\n\nexport type ListChatMessagesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listChatMessages>>\n>;\n\n/**\n * @summary List chat messages\n */\nexport const useListChatMessages = <TError = ErrorType<ErrorResponse>>(\n chatId: string,\n params?: ListChatMessagesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listChatMessages>>,\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 && !!chatId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListChatMessagesKey(chatId, params) : null));\n const swrFn = () => listChatMessages(chatId, 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 { Key, SWRConfiguration } from \"swr\";\n\nimport type {\n ErrorResponse,\n ListDispatchesEnvelope,\n ListDispatchesParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List the organization's dispatches, newest occurrence first.\n\nA dispatch is one occurrence of a trigger: every time a schedule fires, it produces exactly one dispatch, which is then carried out. Listing them shows what a trigger has actually done, including occurrences that never produced a worker run.\n\n- `pending` — not carried out yet: waiting to be picked up, in flight, or waiting on a retry after an earlier pickup did not complete.\n- `dispatched` — carried out.\n- `abandoned` — gave up, because the occurrence passed its `expires_at` deadline before it could be carried out.\n\n`attempts` counts how many times the occurrence has been picked up, not how many times it failed: a dispatch carried out on the first pickup ends at `attempts: 1`, and a higher count means earlier pickups did not complete.\n\n`target` is what the occurrence produced — today always a worker run. It is null until the dispatch is carried out, and stays null on one that was abandoned.\n\nNarrow to one trigger with `trigger_type` and `trigger_id` — for a schedule, `trigger_id` is the schedule's ID. `trigger_id` requires `trigger_type`.\n\nRequires the `schedules:read` permission.\n * @summary List dispatches\n */\nexport const getListDispatchesUrl = (params?: ListDispatchesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/dispatches?${stringifiedParams}`\n : `/v1/dispatches`;\n};\n\nexport const listDispatches = async (\n params?: ListDispatchesParams,\n options?: RequestInit\n): Promise<ListDispatchesEnvelope> => {\n return customFetch<ListDispatchesEnvelope>(getListDispatchesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListDispatchesKey = (params?: ListDispatchesParams) =>\n [`/v1/dispatches`, ...(params ? [params] : [])] as const;\n\nexport type ListDispatchesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listDispatches>>\n>;\n\n/**\n * @summary List dispatches\n */\nexport const useListDispatches = <TError = ErrorType<ErrorResponse>>(\n params?: ListDispatchesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listDispatches>>,\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 ? getListDispatchesKey(params) : null));\n const swrFn = () => listDispatches(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 CreateEmailBody,\n CreateEmailEnvelope,\n DeleteEmailEnvelope,\n ErrorResponse,\n GetEmailEnvelope,\n ListEmailThreadsEnvelope,\n ListEmailThreadsParams,\n ListEmailsEnvelope,\n ListEmailsParams,\n ReplyToEmailBody,\n ReplyToEmailEnvelope,\n SendEmailBody,\n SendEmailEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * **DO NOT USE.** This endpoint is deprecated and will be removed.\n\nIt only writes a standalone email record: nothing is sent, and the record is not linked to an inbox or thread.\n\nUse `POST /v1/emails/send` to send an email or `POST /v1/emails/{emailId}/reply` to reply to an existing one. Inbound email is recorded automatically when it arrives at an inbox.\n * @deprecated\n * @summary Create email (deprecated)\n */\nexport const getCreateEmailUrl = () => {\n return `/v1/emails`;\n};\n\nexport const createEmail = async (\n createEmailBody: CreateEmailBody,\n options?: RequestInit\n): Promise<CreateEmailEnvelope> => {\n return customFetch<CreateEmailEnvelope>(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 * @deprecated\n * @summary Create email (deprecated)\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, content search, or case.\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListEmailsEnvelope> => {\n return customFetch<ListEmailsEnvelope>(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<GetEmailEnvelope> => {\n return customFetch<GetEmailEnvelope>(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 * Soft-delete an email. The message is hidden from all reads (get, list, and thread aggregation) but its content is retained until a separate hard purge.\n * @summary Delete email\n */\nexport const getDeleteEmailUrl = (emailId: string) => {\n return `/v1/emails/${emailId}`;\n};\n\nexport const deleteEmail = async (\n emailId: string,\n options?: RequestInit\n): Promise<DeleteEmailEnvelope> => {\n return customFetch<DeleteEmailEnvelope>(getDeleteEmailUrl(emailId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteEmailMutationFetcher = (\n emailId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteEmail(emailId, options);\n };\n};\nexport const getDeleteEmailMutationKey = (emailId: string) =>\n [`/v1/emails/${emailId}`] as const;\n\nexport type DeleteEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteEmail>>\n>;\n\n/**\n * @summary Delete email\n */\nexport const useDeleteEmail = <TError = ErrorType<ErrorResponse>>(\n emailId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteEmail>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteEmailMutationKey(emailId);\n const swrFn = getDeleteEmailMutationFetcher(emailId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List email threads with pagination. Each thread includes the subject of the first email, the sender of the first email, and the date of the last email.\n * @summary List email threads\n */\nexport const getListEmailThreadsUrl = (params?: ListEmailThreadsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/emails/threads?${stringifiedParams}`\n : `/v1/emails/threads`;\n};\n\nexport const listEmailThreads = async (\n params?: ListEmailThreadsParams,\n options?: RequestInit\n): Promise<ListEmailThreadsEnvelope> => {\n return customFetch<ListEmailThreadsEnvelope>(getListEmailThreadsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListEmailThreadsKey = (params?: ListEmailThreadsParams) =>\n [`/v1/emails/threads`, ...(params ? [params] : [])] as const;\n\nexport type ListEmailThreadsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listEmailThreads>>\n>;\n\n/**\n * @summary List email threads\n */\nexport const useListEmailThreads = <TError = ErrorType<ErrorResponse>>(\n params?: ListEmailThreadsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listEmailThreads>>,\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 ? getListEmailThreadsKey(params) : null));\n const swrFn = () => listEmailThreads(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 * Reply to an existing email thread via Nylas. The reply is sent to the original sender by default.\n\nOptionally include additional recipients via `to` (merged with the original sender), `cc`, and `bcc` arrays.\n\nThe `body` is HTML by default. Set `is_html` to `false` to provide plain text instead; it is converted to HTML before sending.\n * @summary Reply to email\n */\nexport const getReplyToEmailUrl = (emailId: string) => {\n return `/v1/emails/${emailId}/reply`;\n};\n\nexport const replyToEmail = async (\n emailId: string,\n replyToEmailBody: ReplyToEmailBody,\n options?: RequestInit\n): Promise<ReplyToEmailEnvelope> => {\n return customFetch<ReplyToEmailEnvelope>(getReplyToEmailUrl(emailId), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(replyToEmailBody),\n });\n};\n\nexport const getReplyToEmailMutationFetcher = (\n emailId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ReplyToEmailBody }) => {\n return replyToEmail(emailId, arg, options);\n };\n};\nexport const getReplyToEmailMutationKey = (emailId: string) =>\n [`/v1/emails/${emailId}/reply`] as const;\n\nexport type ReplyToEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof replyToEmail>>\n>;\n\n/**\n * @summary Reply to email\n */\nexport const useReplyToEmail = <TError = ErrorType<ErrorResponse>>(\n emailId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof replyToEmail>>,\n TError,\n Key,\n ReplyToEmailBody,\n Awaited<ReturnType<typeof replyToEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getReplyToEmailMutationKey(emailId);\n const swrFn = getReplyToEmailMutationFetcher(emailId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Send a new email through an inbox. The provider-assigned thread id is returned and persisted on the stored email row, so subsequent inbound replies on that thread are linked to this send.\n\nThe `body` is HTML by default. Set `is_html` to `false` to provide plain text instead; it is converted to HTML before sending.\n * @summary Send email\n */\nexport const getSendEmailUrl = () => {\n return `/v1/emails/send`;\n};\n\nexport const sendEmail = async (\n sendEmailBody: SendEmailBody,\n options?: RequestInit\n): Promise<SendEmailEnvelope> => {\n return customFetch<SendEmailEnvelope>(getSendEmailUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(sendEmailBody),\n });\n};\n\nexport const getSendEmailMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: SendEmailBody }) => {\n return sendEmail(arg, options);\n };\n};\nexport const getSendEmailMutationKey = () => [`/v1/emails/send`] as const;\n\nexport type SendEmailMutationResult = NonNullable<\n Awaited<ReturnType<typeof sendEmail>>\n>;\n\n/**\n * @summary Send email\n */\nexport const useSendEmail = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof sendEmail>>,\n TError,\n Key,\n SendEmailBody,\n Awaited<ReturnType<typeof sendEmail>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getSendEmailMutationKey();\n const swrFn = getSendEmailMutationFetcher(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 CreateExtractorJobBody,\n CreateExtractorJobEnvelope,\n ErrorResponse,\n GetExtractorJobEnvelope,\n ListExtractorJobsEnvelope,\n ListExtractorJobsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[call_id]=abc-123`\n- `scope[email_id]=xyz-456`\n- `scope[case_id]=case-789`\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListExtractorJobsEnvelope> => {\n return customFetch<ListExtractorJobsEnvelope>(\n getListExtractorJobsUrl(params),\n {\n ...options,\n method: \"GET\",\n }\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<CreateExtractorJobEnvelope> => {\n return customFetch<CreateExtractorJobEnvelope>(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<GetExtractorJobEnvelope> => {\n return customFetch<GetExtractorJobEnvelope>(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 * 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 CreateExtractorBody,\n CreateExtractorEnvelope,\n DeleteExtractorEnvelope,\n ErrorResponse,\n GetExtractorEnvelope,\n ListExtractorsEnvelope,\n ListExtractorsParams,\n UpdateExtractorBody,\n UpdateExtractorEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<CreateExtractorEnvelope> => {\n return customFetch<CreateExtractorEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListExtractorsEnvelope> => {\n return customFetch<ListExtractorsEnvelope>(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<GetExtractorEnvelope> => {\n return customFetch<GetExtractorEnvelope>(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<UpdateExtractorEnvelope> => {\n return customFetch<UpdateExtractorEnvelope>(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 * Soft-delete an extractor and all of its versions. Soft-deleted extractors no longer appear in any read.\n * @summary Delete extractor\n */\nexport const getDeleteExtractorUrl = (id: string) => {\n return `/v1/extractors/${id}`;\n};\n\nexport const deleteExtractor = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteExtractorEnvelope> => {\n return customFetch<DeleteExtractorEnvelope>(getDeleteExtractorUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteExtractorMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteExtractor(id, options);\n };\n};\nexport const getDeleteExtractorMutationKey = (id: string) =>\n [`/v1/extractors/${id}`] as const;\n\nexport type DeleteExtractorMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteExtractor>>\n>;\n\n/**\n * @summary Delete extractor\n */\nexport const useDeleteExtractor = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteExtractor>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteExtractor>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteExtractorMutationKey(id);\n const swrFn = getDeleteExtractorMutationFetcher(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 GetExtractCitationsEnvelope,\n GetExtractEnvelope,\n ListExtractsEnvelope,\n ListExtractsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<GetExtractEnvelope> => {\n return customFetch<GetExtractEnvelope>(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<GetExtractCitationsEnvelope> => {\n return customFetch<GetExtractCitationsEnvelope>(\n getGetExtractCitationsUrl(id),\n {\n ...options,\n method: \"GET\",\n }\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListExtractsEnvelope> => {\n return customFetch<ListExtractsEnvelope>(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 CheckInboxAvailabilityEnvelope,\n CheckInboxAvailabilityParams,\n CreateInboxBody,\n CreateInboxEnvelope,\n DeleteInboxEnvelope,\n ErrorResponse,\n ListInboxesEnvelope,\n ListInboxesParams,\n UpdateInboxBody,\n UpdateInboxEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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 inbox.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/email-agents/availability`\n * @summary Check email username availability\n */\nexport const getCheckInboxAvailabilityUrl = (\n params: CheckInboxAvailabilityParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/inboxes/availability?${stringifiedParams}`\n : `/v1/inboxes/availability`;\n};\n\nexport const checkInboxAvailability = async (\n params: CheckInboxAvailabilityParams,\n options?: RequestInit\n): Promise<CheckInboxAvailabilityEnvelope> => {\n return customFetch<CheckInboxAvailabilityEnvelope>(\n getCheckInboxAvailabilityUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getCheckInboxAvailabilityKey = (\n params: CheckInboxAvailabilityParams\n) => [`/v1/inboxes/availability`, ...(params ? [params] : [])] as const;\n\nexport type CheckInboxAvailabilityQueryResult = NonNullable<\n Awaited<ReturnType<typeof checkInboxAvailability>>\n>;\n\n/**\n * @summary Check email username availability\n */\nexport const useCheckInboxAvailability = <TError = ErrorType<ErrorResponse>>(\n params: CheckInboxAvailabilityParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof checkInboxAvailability>>,\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 ? getCheckInboxAvailabilityKey(params) : null));\n const swrFn = () => checkInboxAvailability(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 inbox linked to a processor (extractor or worker).\n\nThe inbox will receive emails at the assigned address and automatically process attachments using the specified processor.\n\nEither `processor_id` or the deprecated `extractor_id` must be provided. When using `extractor_id`, the processor type defaults to `extractor`.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/email-agents`\n * @summary Create inbox\n */\nexport const getCreateInboxUrl = () => {\n return `/v1/inboxes`;\n};\n\nexport const createInbox = async (\n createInboxBody: CreateInboxBody,\n options?: RequestInit\n): Promise<CreateInboxEnvelope> => {\n return customFetch<CreateInboxEnvelope>(getCreateInboxUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createInboxBody),\n });\n};\n\nexport const getCreateInboxMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateInboxBody }) => {\n return createInbox(arg, options);\n };\n};\nexport const getCreateInboxMutationKey = () => [`/v1/inboxes`] as const;\n\nexport type CreateInboxMutationResult = NonNullable<\n Awaited<ReturnType<typeof createInbox>>\n>;\n\n/**\n * @summary Create inbox\n */\nexport const useCreateInbox = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createInbox>>,\n TError,\n Key,\n CreateInboxBody,\n Awaited<ReturnType<typeof createInbox>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateInboxMutationKey();\n const swrFn = getCreateInboxMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all inboxes with pagination and sorting.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/email-agents`\n * @summary List inboxes\n */\nexport const getListInboxesUrl = (params?: ListInboxesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/inboxes?${stringifiedParams}`\n : `/v1/inboxes`;\n};\n\nexport const listInboxes = async (\n params?: ListInboxesParams,\n options?: RequestInit\n): Promise<ListInboxesEnvelope> => {\n return customFetch<ListInboxesEnvelope>(getListInboxesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListInboxesKey = (params?: ListInboxesParams) =>\n [`/v1/inboxes`, ...(params ? [params] : [])] as const;\n\nexport type ListInboxesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listInboxes>>\n>;\n\n/**\n * @summary List inboxes\n */\nexport const useListInboxes = <TError = ErrorType<ErrorResponse>>(\n params?: ListInboxesParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listInboxes>>, 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 ? getListInboxesKey(params) : null));\n const swrFn = () => listInboxes(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 inbox's configuration.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`PATCH /v1/email-agents/{id}`\n * @summary Update inbox\n */\nexport const getUpdateInboxUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}`;\n};\n\nexport const updateInbox = async (\n inboxId: string,\n updateInboxBody: UpdateInboxBody,\n options?: RequestInit\n): Promise<UpdateInboxEnvelope> => {\n return customFetch<UpdateInboxEnvelope>(getUpdateInboxUrl(inboxId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateInboxBody),\n });\n};\n\nexport const getUpdateInboxMutationFetcher = (\n inboxId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateInboxBody }) => {\n return updateInbox(inboxId, arg, options);\n };\n};\nexport const getUpdateInboxMutationKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}`] as const;\n\nexport type UpdateInboxMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateInbox>>\n>;\n\n/**\n * @summary Update inbox\n */\nexport const useUpdateInbox = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateInbox>>,\n TError,\n Key,\n UpdateInboxBody,\n Awaited<ReturnType<typeof updateInbox>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateInboxMutationKey(inboxId);\n const swrFn = getUpdateInboxMutationFetcher(inboxId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete an inbox. The inbox stops routing new mail; existing email history is preserved.\n * @summary Delete inbox\n */\nexport const getDeleteInboxUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}`;\n};\n\nexport const deleteInbox = async (\n inboxId: string,\n options?: RequestInit\n): Promise<DeleteInboxEnvelope> => {\n return customFetch<DeleteInboxEnvelope>(getDeleteInboxUrl(inboxId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteInboxMutationFetcher = (\n inboxId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteInbox(inboxId, options);\n };\n};\nexport const getDeleteInboxMutationKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}`] as const;\n\nexport type DeleteInboxMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteInbox>>\n>;\n\n/**\n * @summary Delete inbox\n */\nexport const useDeleteInbox = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteInbox>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteInbox>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteInboxMutationKey(inboxId);\n const swrFn = getDeleteInboxMutationFetcher(inboxId, 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 CancelJobEnvelope,\n ErrorResponse,\n ListJobsEnvelope,\n ListJobsParams,\n ScheduleJobBody,\n ScheduleJobEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Schedule a new outbound call job for a voice 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\n**Environment:**\n\n`environment` selects which promoted agent configuration and phone binding the call dispatches against (`live` or `test`). Defaults to `live`. Scheduling fails when the selected environment has no active promotion.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/{id}/jobs`\n * @summary Schedule an outbound job\n */\nexport const getScheduleJobUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/jobs`;\n};\n\nexport const scheduleJob = async (\n voiceAgentId: string,\n scheduleJobBody: ScheduleJobBody,\n options?: RequestInit\n): Promise<ScheduleJobEnvelope> => {\n return customFetch<ScheduleJobEnvelope>(getScheduleJobUrl(voiceAgentId), {\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 voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: ScheduleJobBody }) => {\n return scheduleJob(voiceAgentId, arg, options);\n };\n};\nexport const getScheduleJobMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/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 voiceAgentId: 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(voiceAgentId);\n const swrFn = getScheduleJobMutationFetcher(voiceAgentId, 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\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/jobs`\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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents/jobs?${stringifiedParams}`\n : `/v1/voice-agents/jobs`;\n};\n\nexport const listJobs = async (\n params: ListJobsParams,\n options?: RequestInit\n): Promise<ListJobsEnvelope> => {\n return customFetch<ListJobsEnvelope>(getListJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListJobsKey = (params: ListJobsParams) =>\n [`/v1/voice-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\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/jobs/{id}/cancel`\n * @summary Cancel an outbound job\n */\nexport const getCancelJobUrl = (jobId: string) => {\n return `/v1/voice-agents/jobs/${jobId}/cancel`;\n};\n\nexport const cancelJob = async (\n jobId: string,\n options?: RequestInit\n): Promise<CancelJobEnvelope> => {\n return customFetch<CancelJobEnvelope>(getCancelJobUrl(jobId), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getCancelJobMutationFetcher = (\n jobId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelJob(jobId, options);\n };\n};\nexport const getCancelJobMutationKey = (jobId: string) =>\n [`/v1/voice-agents/jobs/${jobId}/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 jobId: 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(jobId);\n const swrFn = getCancelJobMutationFetcher(jobId, 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, GetProfileEnvelope } from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Retrieve the current user's profile information. This endpoint requires a user session and cannot be used with API Keys.\n * @summary Get profile\n */\nexport const getGetProfileUrl = () => {\n return `/v1/profile`;\n};\n\nexport const getProfile = async (\n options?: RequestInit\n): Promise<GetProfileEnvelope> => {\n return customFetch<GetProfileEnvelope>(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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateScheduleBody,\n CreateScheduleEnvelope,\n DeleteScheduleEnvelope,\n ErrorResponse,\n GetScheduleEnvelope,\n ListSchedulesEnvelope,\n ListSchedulesParams,\n UpdateScheduleBody,\n UpdateScheduleEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a schedule that performs an action, either repeatedly or once.\n\n`action` describes **what** happens — today only `trigger_worker`, which starts a worker run with the given scope. `rule` describes **when**: `hourly`, `daily` and `weekly` recur in the tenant's own time zone — an IANA identifier such as `America/Chicago`, resolved across DST transitions — while `once` fires a single time at a UTC instant.\n\nThe response's `next_run_at` is the first occurrence strictly after the moment of creation; a rule that resolves to no such occurrence is rejected. Create with `enabled: false` to stage a recurring schedule without letting it fire. A one-off is always enabled: delete it to cancel it, and its `next_run_at` becomes null once it has fired.\n\nRequires the `schedules:write` permission.\n * @summary Create a schedule\n */\nexport const getCreateScheduleUrl = () => {\n return `/v1/schedules`;\n};\n\nexport const createSchedule = async (\n createScheduleBody: CreateScheduleBody,\n options?: RequestInit\n): Promise<CreateScheduleEnvelope> => {\n return customFetch<CreateScheduleEnvelope>(getCreateScheduleUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createScheduleBody),\n });\n};\n\nexport const getCreateScheduleMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateScheduleBody }) => {\n return createSchedule(arg, options);\n };\n};\nexport const getCreateScheduleMutationKey = () => [`/v1/schedules`] as const;\n\nexport type CreateScheduleMutationResult = NonNullable<\n Awaited<ReturnType<typeof createSchedule>>\n>;\n\n/**\n * @summary Create a schedule\n */\nexport const useCreateSchedule = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createSchedule>>,\n TError,\n Key,\n CreateScheduleBody,\n Awaited<ReturnType<typeof createSchedule>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateScheduleMutationKey();\n const swrFn = getCreateScheduleMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the organization's schedules. Requires the `schedules:read` permission.\n * @summary List schedules\n */\nexport const getListSchedulesUrl = (params?: ListSchedulesParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/schedules?${stringifiedParams}`\n : `/v1/schedules`;\n};\n\nexport const listSchedules = async (\n params?: ListSchedulesParams,\n options?: RequestInit\n): Promise<ListSchedulesEnvelope> => {\n return customFetch<ListSchedulesEnvelope>(getListSchedulesUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListSchedulesKey = (params?: ListSchedulesParams) =>\n [`/v1/schedules`, ...(params ? [params] : [])] as const;\n\nexport type ListSchedulesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listSchedules>>\n>;\n\n/**\n * @summary List schedules\n */\nexport const useListSchedules = <TError = ErrorType<ErrorResponse>>(\n params?: ListSchedulesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listSchedules>>,\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 ? getListSchedulesKey(params) : null));\n const swrFn = () => listSchedules(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 schedule. Requires the `schedules:read` permission.\n * @summary Get a schedule\n */\nexport const getGetScheduleUrl = (scheduleId: string) => {\n return `/v1/schedules/${scheduleId}`;\n};\n\nexport const getSchedule = async (\n scheduleId: string,\n options?: RequestInit\n): Promise<GetScheduleEnvelope> => {\n return customFetch<GetScheduleEnvelope>(getGetScheduleUrl(scheduleId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetScheduleKey = (scheduleId: string) =>\n [`/v1/schedules/${scheduleId}`] as const;\n\nexport type GetScheduleQueryResult = NonNullable<\n Awaited<ReturnType<typeof getSchedule>>\n>;\n\n/**\n * @summary Get a schedule\n */\nexport const useGetSchedule = <TError = ErrorType<ErrorResponse>>(\n scheduleId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getSchedule>>, 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 && !!scheduleId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetScheduleKey(scheduleId) : null));\n const swrFn = () => getSchedule(scheduleId, 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 schedule's rule, name, or enabled state.\n\nChanging the rule moves `next_run_at` to the first occurrence after the update; a rule that resolves to no such occurrence is rejected. One-off schedules are always enabled — delete one to cancel it before it fires.\n * @summary Update a schedule\n */\nexport const getUpdateScheduleUrl = (scheduleId: string) => {\n return `/v1/schedules/${scheduleId}`;\n};\n\nexport const updateSchedule = async (\n scheduleId: string,\n updateScheduleBody: UpdateScheduleBody,\n options?: RequestInit\n): Promise<UpdateScheduleEnvelope> => {\n return customFetch<UpdateScheduleEnvelope>(getUpdateScheduleUrl(scheduleId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateScheduleBody),\n });\n};\n\nexport const getUpdateScheduleMutationFetcher = (\n scheduleId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateScheduleBody }) => {\n return updateSchedule(scheduleId, arg, options);\n };\n};\nexport const getUpdateScheduleMutationKey = (scheduleId: string) =>\n [`/v1/schedules/${scheduleId}`] as const;\n\nexport type UpdateScheduleMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateSchedule>>\n>;\n\n/**\n * @summary Update a schedule\n */\nexport const useUpdateSchedule = <TError = ErrorType<ErrorResponse>>(\n scheduleId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateSchedule>>,\n TError,\n Key,\n UpdateScheduleBody,\n Awaited<ReturnType<typeof updateSchedule>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateScheduleMutationKey(scheduleId);\n const swrFn = getUpdateScheduleMutationFetcher(scheduleId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete a schedule so it stops firing.\n * @summary Delete a schedule\n */\nexport const getDeleteScheduleUrl = (scheduleId: string) => {\n return `/v1/schedules/${scheduleId}`;\n};\n\nexport const deleteSchedule = async (\n scheduleId: string,\n options?: RequestInit\n): Promise<DeleteScheduleEnvelope> => {\n return customFetch<DeleteScheduleEnvelope>(getDeleteScheduleUrl(scheduleId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteScheduleMutationFetcher = (\n scheduleId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteSchedule(scheduleId, options);\n };\n};\nexport const getDeleteScheduleMutationKey = (scheduleId: string) =>\n [`/v1/schedules/${scheduleId}`] as const;\n\nexport type DeleteScheduleMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteSchedule>>\n>;\n\n/**\n * @summary Delete a schedule\n */\nexport const useDeleteSchedule = <TError = ErrorType<ErrorResponse>>(\n scheduleId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteSchedule>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteSchedule>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteScheduleMutationKey(scheduleId);\n const swrFn = getDeleteScheduleMutationFetcher(scheduleId, 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 CreateSecretBody,\n CreateSecretEnvelope,\n DeleteSecretEnvelope,\n ErrorResponse,\n GetSecretEnvelope,\n ListSecretsEnvelope,\n ListSecretsParams,\n UpdateSecretBody,\n UpdateSecretEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create an organization-level secret. The value is encrypted at rest and **write-only** — no endpoint ever returns it.\n\nRequires the `secrets:write` permission. Env keys used by the worker runtime itself (e.g. `OPENAI_API_KEY`, `AVALLON_*`, `AWS_*`) are reserved and rejected.\n * @summary Create a secret\n */\nexport const getCreateSecretUrl = () => {\n return `/v1/secrets`;\n};\n\nexport const createSecret = async (\n createSecretBody: CreateSecretBody,\n options?: RequestInit\n): Promise<CreateSecretEnvelope> => {\n return customFetch<CreateSecretEnvelope>(getCreateSecretUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createSecretBody),\n });\n};\n\nexport const getCreateSecretMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateSecretBody }) => {\n return createSecret(arg, options);\n };\n};\nexport const getCreateSecretMutationKey = () => [`/v1/secrets`] as const;\n\nexport type CreateSecretMutationResult = NonNullable<\n Awaited<ReturnType<typeof createSecret>>\n>;\n\n/**\n * @summary Create a secret\n */\nexport const useCreateSecret = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createSecret>>,\n TError,\n Key,\n CreateSecretBody,\n Awaited<ReturnType<typeof createSecret>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateSecretMutationKey();\n const swrFn = getCreateSecretMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the organization's secrets with pagination and sorting. Values are never included. Requires the `secrets:read` permission.\n * @summary List secrets\n */\nexport const getListSecretsUrl = (params?: ListSecretsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/secrets?${stringifiedParams}`\n : `/v1/secrets`;\n};\n\nexport const listSecrets = async (\n params?: ListSecretsParams,\n options?: RequestInit\n): Promise<ListSecretsEnvelope> => {\n return customFetch<ListSecretsEnvelope>(getListSecretsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListSecretsKey = (params?: ListSecretsParams) =>\n [`/v1/secrets`, ...(params ? [params] : [])] as const;\n\nexport type ListSecretsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listSecrets>>\n>;\n\n/**\n * @summary List secrets\n */\nexport const useListSecrets = <TError = ErrorType<ErrorResponse>>(\n params?: ListSecretsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listSecrets>>, 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 ? getListSecretsKey(params) : null));\n const swrFn = () => listSecrets(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 * Get a secret's metadata. The value is never included. Requires the `secrets:read` permission.\n * @summary Get secret\n */\nexport const getGetSecretUrl = (secretId: string) => {\n return `/v1/secrets/${secretId}`;\n};\n\nexport const getSecret = async (\n secretId: string,\n options?: RequestInit\n): Promise<GetSecretEnvelope> => {\n return customFetch<GetSecretEnvelope>(getGetSecretUrl(secretId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetSecretKey = (secretId: string) =>\n [`/v1/secrets/${secretId}`] as const;\n\nexport type GetSecretQueryResult = NonNullable<\n Awaited<ReturnType<typeof getSecret>>\n>;\n\n/**\n * @summary Get secret\n */\nexport const useGetSecret = <TError = ErrorType<ErrorResponse>>(\n secretId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getSecret>>, 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 && !!secretId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetSecretKey(secretId) : null));\n const swrFn = () => getSecret(secretId, 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 secret's display name or description, or rotate its value. Rotation overwrites the stored value — previous values are not retrievable.\n\nThe `env_key` is immutable: consumers of the secret receive the value under that key, so changing it would silently break them. Create a new secret instead.\n\nRequires the `secrets:write` permission.\n * @summary Update secret\n */\nexport const getUpdateSecretUrl = (secretId: string) => {\n return `/v1/secrets/${secretId}`;\n};\n\nexport const updateSecret = async (\n secretId: string,\n updateSecretBody: UpdateSecretBody,\n options?: RequestInit\n): Promise<UpdateSecretEnvelope> => {\n return customFetch<UpdateSecretEnvelope>(getUpdateSecretUrl(secretId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateSecretBody),\n });\n};\n\nexport const getUpdateSecretMutationFetcher = (\n secretId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateSecretBody }) => {\n return updateSecret(secretId, arg, options);\n };\n};\nexport const getUpdateSecretMutationKey = (secretId: string) =>\n [`/v1/secrets/${secretId}`] as const;\n\nexport type UpdateSecretMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateSecret>>\n>;\n\n/**\n * @summary Update secret\n */\nexport const useUpdateSecret = <TError = ErrorType<ErrorResponse>>(\n secretId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateSecret>>,\n TError,\n Key,\n UpdateSecretBody,\n Awaited<ReturnType<typeof updateSecret>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateSecretMutationKey(secretId);\n const swrFn = getUpdateSecretMutationFetcher(secretId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete a secret and detach it from all entities. Requires the `secrets:write` permission.\n * @summary Delete secret\n */\nexport const getDeleteSecretUrl = (secretId: string) => {\n return `/v1/secrets/${secretId}`;\n};\n\nexport const deleteSecret = async (\n secretId: string,\n options?: RequestInit\n): Promise<DeleteSecretEnvelope> => {\n return customFetch<DeleteSecretEnvelope>(getDeleteSecretUrl(secretId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteSecretMutationFetcher = (\n secretId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteSecret(secretId, options);\n };\n};\nexport const getDeleteSecretMutationKey = (secretId: string) =>\n [`/v1/secrets/${secretId}`] as const;\n\nexport type DeleteSecretMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteSecret>>\n>;\n\n/**\n * @summary Delete secret\n */\nexport const useDeleteSecret = <TError = ErrorType<ErrorResponse>>(\n secretId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteSecret>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteSecret>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteSecretMutationKey(secretId);\n const swrFn = getDeleteSecretMutationFetcher(secretId, 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 ErrorResponse,\n InviteTeamMemberBody,\n InviteTeamMemberEnvelope,\n ListTeamInvitationsEnvelope,\n ListTeamMembersEnvelope,\n ResendTeamInvitationEnvelope,\n UpdateMemberRoleBody,\n UpdateMemberRoleEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all members in the current tenant.\n * @summary List team members\n */\nexport const getListTeamMembersUrl = () => {\n return `/v1/team/members`;\n};\n\nexport const listTeamMembers = async (\n options?: RequestInit\n): Promise<ListTeamMembersEnvelope> => {\n return customFetch<ListTeamMembersEnvelope>(getListTeamMembersUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListTeamMembersKey = () => [`/v1/team/members`] as const;\n\nexport type ListTeamMembersQueryResult = NonNullable<\n Awaited<ReturnType<typeof listTeamMembers>>\n>;\n\n/**\n * @summary List team members\n */\nexport const useListTeamMembers = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listTeamMembers>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListTeamMembersKey() : null));\n const swrFn = () => listTeamMembers(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 * Invite an email address to join the current tenant. The invitee receives an email and joins at the `member` role once they accept; promote them afterwards with `PATCH /v1/team/members/{id}`.\n\nRequires the `teams:write` permission.\n\nReturns `409` if the address already has a pending invitation or is already a member.\n * @summary Invite a team member\n */\nexport const getInviteTeamMemberUrl = () => {\n return `/v1/team/invitations`;\n};\n\nexport const inviteTeamMember = async (\n inviteTeamMemberBody: InviteTeamMemberBody,\n options?: RequestInit\n): Promise<InviteTeamMemberEnvelope> => {\n return customFetch<InviteTeamMemberEnvelope>(getInviteTeamMemberUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(inviteTeamMemberBody),\n });\n};\n\nexport const getInviteTeamMemberMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: InviteTeamMemberBody }) => {\n return inviteTeamMember(arg, options);\n };\n};\nexport const getInviteTeamMemberMutationKey = () =>\n [`/v1/team/invitations`] as const;\n\nexport type InviteTeamMemberMutationResult = NonNullable<\n Awaited<ReturnType<typeof inviteTeamMember>>\n>;\n\n/**\n * @summary Invite a team member\n */\nexport const useInviteTeamMember = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof inviteTeamMember>>,\n TError,\n Key,\n InviteTeamMemberBody,\n Awaited<ReturnType<typeof inviteTeamMember>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getInviteTeamMemberMutationKey();\n const swrFn = getInviteTeamMemberMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the invitations for the current tenant that are still awaiting acceptance. Accepted, revoked and expired invitations are not returned.\n\nInvitees are not team members yet, so they do not appear in `GET /v1/team/members`. A member-management screen shows both by merging the two lists.\n\nRequires the `teams:write` permission.\n * @summary List pending team invitations\n */\nexport const getListTeamInvitationsUrl = () => {\n return `/v1/team/invitations`;\n};\n\nexport const listTeamInvitations = async (\n options?: RequestInit\n): Promise<ListTeamInvitationsEnvelope> => {\n return customFetch<ListTeamInvitationsEnvelope>(getListTeamInvitationsUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListTeamInvitationsKey = () =>\n [`/v1/team/invitations`] as const;\n\nexport type ListTeamInvitationsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listTeamInvitations>>\n>;\n\n/**\n * @summary List pending team invitations\n */\nexport const useListTeamInvitations = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listTeamInvitations>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ??\n (() => (isEnabled ? getListTeamInvitationsKey() : null));\n const swrFn = () => listTeamInvitations(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 invitation. The link that was emailed to the invitee stops working, and the address becomes free to invite again.\n\nIdempotent: an invitation that was already accepted, revoked or expired also returns `204`.\n\nRequires the `teams:write` permission.\n\nReturns `404` for an unknown invitation or one that belongs to another tenant.\n * @summary Revoke a team invitation\n */\nexport const getRevokeTeamInvitationUrl = (invitationId: string) => {\n return `/v1/team/invitations/${invitationId}`;\n};\n\nexport const revokeTeamInvitation = async (\n invitationId: string,\n options?: RequestInit\n): Promise<void> => {\n return customFetch<void>(getRevokeTeamInvitationUrl(invitationId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getRevokeTeamInvitationMutationFetcher = (\n invitationId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return revokeTeamInvitation(invitationId, options);\n };\n};\nexport const getRevokeTeamInvitationMutationKey = (invitationId: string) =>\n [`/v1/team/invitations/${invitationId}`] as const;\n\nexport type RevokeTeamInvitationMutationResult = NonNullable<\n Awaited<ReturnType<typeof revokeTeamInvitation>>\n>;\n\n/**\n * @summary Revoke a team invitation\n */\nexport const useRevokeTeamInvitation = <TError = ErrorType<ErrorResponse>>(\n invitationId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof revokeTeamInvitation>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof revokeTeamInvitation>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getRevokeTeamInvitationMutationKey(invitationId);\n const swrFn = getRevokeTeamInvitationMutationFetcher(\n invitationId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Email the invitation to its recipient again, for an invite that never arrived. The invitation keeps its `id` and its original expiry — this re-sends the existing link rather than issuing a new one.\n\nTo give someone a genuinely fresh 5 days, revoke the invitation and send a new one instead.\n\nRequires the `teams:write` permission.\n\nReturns `409` if the invitation is no longer pending — it was accepted, revoked or expired underneath the caller — and `404` for an unknown invitation or one that belongs to another tenant.\n * @summary Resend a team invitation\n */\nexport const getResendTeamInvitationUrl = (invitationId: string) => {\n return `/v1/team/invitations/${invitationId}/resend`;\n};\n\nexport const resendTeamInvitation = async (\n invitationId: string,\n options?: RequestInit\n): Promise<ResendTeamInvitationEnvelope> => {\n return customFetch<ResendTeamInvitationEnvelope>(\n getResendTeamInvitationUrl(invitationId),\n {\n ...options,\n method: \"POST\",\n }\n );\n};\n\nexport const getResendTeamInvitationMutationFetcher = (\n invitationId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return resendTeamInvitation(invitationId, options);\n };\n};\nexport const getResendTeamInvitationMutationKey = (invitationId: string) =>\n [`/v1/team/invitations/${invitationId}/resend`] as const;\n\nexport type ResendTeamInvitationMutationResult = NonNullable<\n Awaited<ReturnType<typeof resendTeamInvitation>>\n>;\n\n/**\n * @summary Resend a team invitation\n */\nexport const useResendTeamInvitation = <TError = ErrorType<ErrorResponse>>(\n invitationId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof resendTeamInvitation>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof resendTeamInvitation>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getResendTeamInvitationMutationKey(invitationId);\n const swrFn = getResendTeamInvitationMutationFetcher(\n invitationId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Change the role of a team member.\n * @summary Update member role\n */\nexport const getUpdateMemberRoleUrl = (id: string) => {\n return `/v1/team/members/${id}`;\n};\n\nexport const updateMemberRole = async (\n id: string,\n updateMemberRoleBody: UpdateMemberRoleBody,\n options?: RequestInit\n): Promise<UpdateMemberRoleEnvelope> => {\n return customFetch<UpdateMemberRoleEnvelope>(getUpdateMemberRoleUrl(id), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateMemberRoleBody),\n });\n};\n\nexport const getUpdateMemberRoleMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateMemberRoleBody }) => {\n return updateMemberRole(id, arg, options);\n };\n};\nexport const getUpdateMemberRoleMutationKey = (id: string) =>\n [`/v1/team/members/${id}`] as const;\n\nexport type UpdateMemberRoleMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateMemberRole>>\n>;\n\n/**\n * @summary Update member role\n */\nexport const useUpdateMemberRole = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateMemberRole>>,\n TError,\n Key,\n UpdateMemberRoleBody,\n Awaited<ReturnType<typeof updateMemberRole>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateMemberRoleMutationKey(id);\n const swrFn = getUpdateMemberRoleMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Soft-delete a team member, revoking access on the next token refresh.\n * @summary Remove team member\n */\nexport const getRemoveMemberUrl = (id: string) => {\n return `/v1/team/members/${id}`;\n};\n\nexport const removeMember = async (\n id: string,\n options?: RequestInit\n): Promise<void> => {\n return customFetch<void>(getRemoveMemberUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getRemoveMemberMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return removeMember(id, options);\n };\n};\nexport const getRemoveMemberMutationKey = (id: string) =>\n [`/v1/team/members/${id}`] as const;\n\nexport type RemoveMemberMutationResult = NonNullable<\n Awaited<ReturnType<typeof removeMember>>\n>;\n\n/**\n * @summary Remove team member\n */\nexport const useRemoveMember = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof removeMember>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof removeMember>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRemoveMemberMutationKey(id);\n const swrFn = getRemoveMemberMutationFetcher(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 CreateToolBody,\n CreateToolEnvelope,\n DeleteToolEnvelope,\n ErrorResponse,\n ExecuteCodeBody,\n ExecuteCodeEnvelope,\n GetToolEnvelope,\n ListToolsEnvelope,\n ListToolsParams,\n UpdateToolBody,\n UpdateToolEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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<CreateToolEnvelope> => {\n return customFetch<CreateToolEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListToolsEnvelope> => {\n return customFetch<ListToolsEnvelope>(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 * Delete a tool. Fails with a conflict when the tool is still attached to a voice agent, worker, or chat agent; detach it first.\n * @summary Delete tool\n */\nexport const getDeleteToolUrl = (id: string) => {\n return `/v1/tools/${id}`;\n};\n\nexport const deleteTool = async (\n id: string,\n options?: RequestInit\n): Promise<DeleteToolEnvelope> => {\n return customFetch<DeleteToolEnvelope>(getDeleteToolUrl(id), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteToolMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteTool(id, options);\n };\n};\nexport const getDeleteToolMutationKey = (id: string) =>\n [`/v1/tools/${id}`] as const;\n\nexport type DeleteToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteTool>>\n>;\n\n/**\n * @summary Delete tool\n */\nexport const useDeleteTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteTool>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteToolMutationKey(id);\n const swrFn = getDeleteToolMutationFetcher(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<GetToolEnvelope> => {\n return customFetch<GetToolEnvelope>(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<UpdateToolEnvelope> => {\n return customFetch<UpdateToolEnvelope>(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 * 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<ExecuteCodeEnvelope> => {\n return customFetch<ExecuteCodeEnvelope>(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 * 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 AddToolsToVoiceAgentBody,\n AddToolsToVoiceAgentEnvelope,\n CreateVoiceAgentBody,\n CreateVoiceAgentEnvelope,\n DeleteToolsFromVoiceAgentBody,\n DeleteToolsFromVoiceAgentEnvelope,\n DeleteVoiceAgentEnvelope,\n ErrorResponse,\n GetVoiceAgentEnvelope,\n GetVoiceAgentPlaceholdersEnvelope,\n GetVoiceAgentPromptEnvelope,\n GetVoiceAgentPromptParams,\n GetVoiceAgentVersionChangeSummaryEnvelope,\n GetVoiceAgentVersionEnvelope,\n ListVoiceAgentVersionsEnvelope,\n ListVoiceAgentVersionsParams,\n ListVoiceAgentsEnvelope,\n ListVoiceAgentsParams,\n PromoteVoiceAgentVersionBody,\n PromoteVoiceAgentVersionEnvelope,\n UpdateCallControlsBody,\n UpdateCallControlsEnvelope,\n UpdateVoiceAgentBody,\n UpdateVoiceAgentEnvelope,\n UpdateVoiceAgentModelsBody,\n UpdateVoiceAgentModelsEnvelope,\n UpdateVoiceAgentPromptBody,\n UpdateVoiceAgentPromptEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all voice agents for your tenant.\n\n**Filtering:**\n\nFilter voice agents by name using the `agent_name` query parameter (exact match).\n\n**Response:**\n\nReturns an array of all voice agents with their configurations and a total count.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents`\n * @summary List voice agents\n */\nexport const getListVoiceAgentsUrl = (params?: ListVoiceAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents?${stringifiedParams}`\n : `/v1/voice-agents`;\n};\n\nexport const listVoiceAgents = async (\n params?: ListVoiceAgentsParams,\n options?: RequestInit\n): Promise<ListVoiceAgentsEnvelope> => {\n return customFetch<ListVoiceAgentsEnvelope>(getListVoiceAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListVoiceAgentsKey = (params?: ListVoiceAgentsParams) =>\n [`/v1/voice-agents`, ...(params ? [params] : [])] as const;\n\nexport type ListVoiceAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listVoiceAgents>>\n>;\n\n/**\n * @summary List voice agents\n */\nexport const useListVoiceAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListVoiceAgentsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listVoiceAgents>>,\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 ? getListVoiceAgentsKey(params) : null));\n const swrFn = () => listVoiceAgents(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 voice agent with its ID and configuration.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents`\n * @summary Create voice agent\n */\nexport const getCreateVoiceAgentUrl = () => {\n return `/v1/voice-agents`;\n};\n\nexport const createVoiceAgent = async (\n createVoiceAgentBody: CreateVoiceAgentBody,\n options?: RequestInit\n): Promise<CreateVoiceAgentEnvelope> => {\n return customFetch<CreateVoiceAgentEnvelope>(getCreateVoiceAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createVoiceAgentBody),\n });\n};\n\nexport const getCreateVoiceAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateVoiceAgentBody }) => {\n return createVoiceAgent(arg, options);\n };\n};\nexport const getCreateVoiceAgentMutationKey = () =>\n [`/v1/voice-agents`] as const;\n\nexport type CreateVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createVoiceAgent>>\n>;\n\n/**\n * @summary Create voice agent\n */\nexport const useCreateVoiceAgent = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createVoiceAgent>>,\n TError,\n Key,\n CreateVoiceAgentBody,\n Awaited<ReturnType<typeof createVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateVoiceAgentMutationKey();\n const swrFn = getCreateVoiceAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single voice agent by its ID.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/{id}`\n * @summary Get voice agent\n */\nexport const getGetVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}`;\n};\n\nexport const getVoiceAgent = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<GetVoiceAgentEnvelope> => {\n return customFetch<GetVoiceAgentEnvelope>(getGetVoiceAgentUrl(voiceAgentId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetVoiceAgentKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}`] as const;\n\nexport type GetVoiceAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgent>>\n>;\n\n/**\n * @summary Get voice agent\n */\nexport const useGetVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgent>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetVoiceAgentKey(voiceAgentId) : null));\n const swrFn = () => getVoiceAgent(voiceAgentId, 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 voice agent's name, call processor, or call behaviour settings.\n\nTo change the processor assignment, `call_processor_id` and `call_processor_type` must be provided together. Set `call_processor_id` to `null` to detach (`call_processor_type` is still required).\n\nSet `voice_mail_detection` to `true` to have the agent listen for a voicemail beep tone. Detection only runs on `OUTBOUND` agents; enabling it on an `INBOUND` agent is stored but has no effect.\n\nConfig changes create a new voice agent config version. The live and test releases keep pointing at their current versions until the new version is promoted.\n * @summary Update voice agent\n */\nexport const getUpdateVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}`;\n};\n\nexport const updateVoiceAgent = async (\n voiceAgentId: string,\n updateVoiceAgentBody: UpdateVoiceAgentBody,\n options?: RequestInit\n): Promise<UpdateVoiceAgentEnvelope> => {\n return customFetch<UpdateVoiceAgentEnvelope>(\n getUpdateVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateVoiceAgentBody),\n }\n );\n};\n\nexport const getUpdateVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateVoiceAgentBody }) => {\n return updateVoiceAgent(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}`] as const;\n\nexport type UpdateVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateVoiceAgent>>\n>;\n\n/**\n * @summary Update voice agent\n */\nexport const useUpdateVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateVoiceAgent>>,\n TError,\n Key,\n UpdateVoiceAgentBody,\n Awaited<ReturnType<typeof updateVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getUpdateVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Delete a voice agent. The agent is hidden from all reads; its call and job history is preserved.\n * @summary Delete voice agent\n */\nexport const getDeleteVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}`;\n};\n\nexport const deleteVoiceAgent = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<DeleteVoiceAgentEnvelope> => {\n return customFetch<DeleteVoiceAgentEnvelope>(\n getDeleteVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"DELETE\",\n }\n );\n};\n\nexport const getDeleteVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteVoiceAgent(voiceAgentId, options);\n };\n};\nexport const getDeleteVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}`] as const;\n\nexport type DeleteVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteVoiceAgent>>\n>;\n\n/**\n * @summary Delete voice agent\n */\nexport const useDeleteVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteVoiceAgent>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getDeleteVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all config versions for a voice agent, ordered by version (newest first by default).\n * @summary List voice agent versions\n */\nexport const getListVoiceAgentVersionsUrl = (\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents/${voiceAgentId}/versions?${stringifiedParams}`\n : `/v1/voice-agents/${voiceAgentId}/versions`;\n};\n\nexport const listVoiceAgentVersions = async (\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams,\n options?: RequestInit\n): Promise<ListVoiceAgentVersionsEnvelope> => {\n return customFetch<ListVoiceAgentVersionsEnvelope>(\n getListVoiceAgentVersionsUrl(voiceAgentId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListVoiceAgentVersionsKey = (\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams\n) =>\n [\n `/v1/voice-agents/${voiceAgentId}/versions`,\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListVoiceAgentVersionsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listVoiceAgentVersions>>\n>;\n\n/**\n * @summary List voice agent versions\n */\nexport const useListVoiceAgentVersions = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n params?: ListVoiceAgentVersionsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listVoiceAgentVersions>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getListVoiceAgentVersionsKey(voiceAgentId, params) : null);\n const swrFn = () =>\n listVoiceAgentVersions(voiceAgentId, 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 voice agent config version, including the agent's identity, the config snapshot at that version, and version-specific metadata.\n * @summary Get voice agent version\n */\nexport const getGetVoiceAgentVersionUrl = (\n voiceAgentId: string,\n version: number\n) => {\n return `/v1/voice-agents/${voiceAgentId}/versions/${version}`;\n};\n\nexport const getVoiceAgentVersion = async (\n voiceAgentId: string,\n version: number,\n options?: RequestInit\n): Promise<GetVoiceAgentVersionEnvelope> => {\n return customFetch<GetVoiceAgentVersionEnvelope>(\n getGetVoiceAgentVersionUrl(voiceAgentId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentVersionKey = (\n voiceAgentId: string,\n version: number\n) => [`/v1/voice-agents/${voiceAgentId}/versions/${version}`] as const;\n\nexport type GetVoiceAgentVersionQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentVersion>>\n>;\n\n/**\n * @summary Get voice agent version\n */\nexport const useGetVoiceAgentVersion = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentVersion>>,\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 =\n swrOptions?.enabled !== false && !!(voiceAgentId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getGetVoiceAgentVersionKey(voiceAgentId, version) : null);\n const swrFn = () =>\n getVoiceAgentVersion(voiceAgentId, version, 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 * Select a voice agent configuration version for the live or test environment.\n * @summary Promote voice agent version\n */\nexport const getPromoteVoiceAgentVersionUrl = (\n voiceAgentId: string,\n version: number\n) => {\n return `/v1/voice-agents/${voiceAgentId}/versions/${version}/promote`;\n};\n\nexport const promoteVoiceAgentVersion = async (\n voiceAgentId: string,\n version: number,\n promoteVoiceAgentVersionBody: PromoteVoiceAgentVersionBody,\n options?: RequestInit\n): Promise<PromoteVoiceAgentVersionEnvelope> => {\n return customFetch<PromoteVoiceAgentVersionEnvelope>(\n getPromoteVoiceAgentVersionUrl(voiceAgentId, version),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(promoteVoiceAgentVersionBody),\n }\n );\n};\n\nexport const getPromoteVoiceAgentVersionMutationFetcher = (\n voiceAgentId: string,\n version: number,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PromoteVoiceAgentVersionBody }) => {\n return promoteVoiceAgentVersion(voiceAgentId, version, arg, options);\n };\n};\nexport const getPromoteVoiceAgentVersionMutationKey = (\n voiceAgentId: string,\n version: number\n) => [`/v1/voice-agents/${voiceAgentId}/versions/${version}/promote`] as const;\n\nexport type PromoteVoiceAgentVersionMutationResult = NonNullable<\n Awaited<ReturnType<typeof promoteVoiceAgentVersion>>\n>;\n\n/**\n * @summary Promote voice agent version\n */\nexport const usePromoteVoiceAgentVersion = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n version: number,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof promoteVoiceAgentVersion>>,\n TError,\n Key,\n PromoteVoiceAgentVersionBody,\n Awaited<ReturnType<typeof promoteVoiceAgentVersion>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ??\n getPromoteVoiceAgentVersionMutationKey(voiceAgentId, version);\n const swrFn = getPromoteVoiceAgentVersionMutationFetcher(\n voiceAgentId,\n version,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Returns an AI-generated summary of what changed between this version and the previous one. Initial version returns an empty string since there is no predecessor.\n * @summary Get voice agent version change summary\n */\nexport const getGetVoiceAgentVersionChangeSummaryUrl = (\n voiceAgentId: string,\n version: number\n) => {\n return `/v1/voice-agents/${voiceAgentId}/versions/${version}/change-summary`;\n};\n\nexport const getVoiceAgentVersionChangeSummary = async (\n voiceAgentId: string,\n version: number,\n options?: RequestInit\n): Promise<GetVoiceAgentVersionChangeSummaryEnvelope> => {\n return customFetch<GetVoiceAgentVersionChangeSummaryEnvelope>(\n getGetVoiceAgentVersionChangeSummaryUrl(voiceAgentId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentVersionChangeSummaryKey = (\n voiceAgentId: string,\n version: number\n) =>\n [\n `/v1/voice-agents/${voiceAgentId}/versions/${version}/change-summary`,\n ] as const;\n\nexport type GetVoiceAgentVersionChangeSummaryQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentVersionChangeSummary>>\n>;\n\n/**\n * @summary Get voice agent version change summary\n */\nexport const useGetVoiceAgentVersionChangeSummary = <\n TError = ErrorType<ErrorResponse>,\n>(\n voiceAgentId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentVersionChangeSummary>>,\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 =\n swrOptions?.enabled !== false && !!(voiceAgentId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled\n ? getGetVoiceAgentVersionChangeSummaryKey(voiceAgentId, version)\n : null);\n const swrFn = () =>\n getVoiceAgentVersionChangeSummary(voiceAgentId, version, 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 a voice agent by their IDs.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/{id}/tools`\n * @summary Add tools to voice agent\n */\nexport const getAddToolsToVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/tools`;\n};\n\nexport const addToolsToVoiceAgent = async (\n voiceAgentId: string,\n addToolsToVoiceAgentBody: AddToolsToVoiceAgentBody,\n options?: RequestInit\n): Promise<AddToolsToVoiceAgentEnvelope> => {\n return customFetch<AddToolsToVoiceAgentEnvelope>(\n getAddToolsToVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(addToolsToVoiceAgentBody),\n }\n );\n};\n\nexport const getAddToolsToVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: AddToolsToVoiceAgentBody }) => {\n return addToolsToVoiceAgent(voiceAgentId, arg, options);\n };\n};\nexport const getAddToolsToVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/tools`] as const;\n\nexport type AddToolsToVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof addToolsToVoiceAgent>>\n>;\n\n/**\n * @summary Add tools to voice agent\n */\nexport const useAddToolsToVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof addToolsToVoiceAgent>>,\n TError,\n Key,\n AddToolsToVoiceAgentBody,\n Awaited<ReturnType<typeof addToolsToVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getAddToolsToVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getAddToolsToVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\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 a voice agent by their IDs.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`DELETE /v1/agents/{id}/tools`\n * @summary Remove tools from voice agent\n */\nexport const getDeleteToolsFromVoiceAgentUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/tools`;\n};\n\nexport const deleteToolsFromVoiceAgent = async (\n voiceAgentId: string,\n deleteToolsFromVoiceAgentBody: DeleteToolsFromVoiceAgentBody,\n options?: RequestInit\n): Promise<DeleteToolsFromVoiceAgentEnvelope> => {\n return customFetch<DeleteToolsFromVoiceAgentEnvelope>(\n getDeleteToolsFromVoiceAgentUrl(voiceAgentId),\n {\n ...options,\n method: \"DELETE\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(deleteToolsFromVoiceAgentBody),\n }\n );\n};\n\nexport const getDeleteToolsFromVoiceAgentMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: DeleteToolsFromVoiceAgentBody }) => {\n return deleteToolsFromVoiceAgent(voiceAgentId, arg, options);\n };\n};\nexport const getDeleteToolsFromVoiceAgentMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/tools`] as const;\n\nexport type DeleteToolsFromVoiceAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteToolsFromVoiceAgent>>\n>;\n\n/**\n * @summary Remove tools from voice agent\n */\nexport const useDeleteToolsFromVoiceAgent = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteToolsFromVoiceAgent>>,\n TError,\n Key,\n DeleteToolsFromVoiceAgentBody,\n Awaited<ReturnType<typeof deleteToolsFromVoiceAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getDeleteToolsFromVoiceAgentMutationKey(voiceAgentId);\n const swrFn = getDeleteToolsFromVoiceAgentMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the available placeholder variables defined in a voice agent's prompt.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/{id}/prompt`\n * @summary Get voice agent placeholders\n */\nexport const getGetVoiceAgentPlaceholdersUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/placeholders`;\n};\n\nexport const getVoiceAgentPlaceholders = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<GetVoiceAgentPlaceholdersEnvelope> => {\n return customFetch<GetVoiceAgentPlaceholdersEnvelope>(\n getGetVoiceAgentPlaceholdersUrl(voiceAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentPlaceholdersKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/placeholders`] as const;\n\nexport type GetVoiceAgentPlaceholdersQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentPlaceholders>>\n>;\n\n/**\n * @summary Get voice agent placeholders\n */\nexport const useGetVoiceAgentPlaceholders = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentPlaceholders>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetVoiceAgentPlaceholdersKey(voiceAgentId) : null));\n const swrFn = () => getVoiceAgentPlaceholders(voiceAgentId, 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 prompt for a voice agent. Pass `version` to fetch the prompt snapshot at a specific config version; omit it to fetch the current prompt. Internal use only.\n * @summary Get voice agent prompt\n */\nexport const getGetVoiceAgentPromptUrl = (\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/voice-agents/${voiceAgentId}/prompt?${stringifiedParams}`\n : `/v1/voice-agents/${voiceAgentId}/prompt`;\n};\n\nexport const getVoiceAgentPrompt = async (\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams,\n options?: RequestInit\n): Promise<GetVoiceAgentPromptEnvelope> => {\n return customFetch<GetVoiceAgentPromptEnvelope>(\n getGetVoiceAgentPromptUrl(voiceAgentId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetVoiceAgentPromptKey = (\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams\n) =>\n [\n `/v1/voice-agents/${voiceAgentId}/prompt`,\n ...(params ? [params] : []),\n ] as const;\n\nexport type GetVoiceAgentPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getVoiceAgentPrompt>>\n>;\n\n/**\n * @summary Get voice agent prompt\n */\nexport const useGetVoiceAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n params?: GetVoiceAgentPromptParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getVoiceAgentPrompt>>,\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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getGetVoiceAgentPromptKey(voiceAgentId, params) : null);\n const swrFn = () => getVoiceAgentPrompt(voiceAgentId, 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 the prompt for a voice agent. Internal use only.\n * @summary Update voice agent prompt\n */\nexport const getUpdateVoiceAgentPromptUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/prompt`;\n};\n\nexport const updateVoiceAgentPrompt = async (\n voiceAgentId: string,\n updateVoiceAgentPromptBody: UpdateVoiceAgentPromptBody,\n options?: RequestInit\n): Promise<UpdateVoiceAgentPromptEnvelope> => {\n return customFetch<UpdateVoiceAgentPromptEnvelope>(\n getUpdateVoiceAgentPromptUrl(voiceAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateVoiceAgentPromptBody),\n }\n );\n};\n\nexport const getUpdateVoiceAgentPromptMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateVoiceAgentPromptBody }) => {\n return updateVoiceAgentPrompt(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateVoiceAgentPromptMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/prompt`] as const;\n\nexport type UpdateVoiceAgentPromptMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateVoiceAgentPrompt>>\n>;\n\n/**\n * @summary Update voice agent prompt\n */\nexport const useUpdateVoiceAgentPrompt = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateVoiceAgentPrompt>>,\n TError,\n Key,\n UpdateVoiceAgentPromptBody,\n Awaited<ReturnType<typeof updateVoiceAgentPrompt>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateVoiceAgentPromptMutationKey(voiceAgentId);\n const swrFn = getUpdateVoiceAgentPromptMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update the LLM, TTS, and STT model configuration for a voice agent.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`PATCH /v1/agents/{id}/models`\n * @summary Update voice agent models\n */\nexport const getUpdateVoiceAgentModelsUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/models`;\n};\n\nexport const updateVoiceAgentModels = async (\n voiceAgentId: string,\n updateVoiceAgentModelsBody: UpdateVoiceAgentModelsBody,\n options?: RequestInit\n): Promise<UpdateVoiceAgentModelsEnvelope> => {\n return customFetch<UpdateVoiceAgentModelsEnvelope>(\n getUpdateVoiceAgentModelsUrl(voiceAgentId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateVoiceAgentModelsBody),\n }\n );\n};\n\nexport const getUpdateVoiceAgentModelsMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateVoiceAgentModelsBody }) => {\n return updateVoiceAgentModels(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateVoiceAgentModelsMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/models`] as const;\n\nexport type UpdateVoiceAgentModelsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateVoiceAgentModels>>\n>;\n\n/**\n * @summary Update voice agent models\n */\nexport const useUpdateVoiceAgentModels = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateVoiceAgentModels>>,\n TError,\n Key,\n UpdateVoiceAgentModelsBody,\n Awaited<ReturnType<typeof updateVoiceAgentModels>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateVoiceAgentModelsMutationKey(voiceAgentId);\n const swrFn = getUpdateVoiceAgentModelsMutationFetcher(\n voiceAgentId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update call control settings for a voice agent.\n\nConfigure whether the voice agent supports dial pad input, can end calls, and set a transfer phone number.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`PUT /v1/agents/{id}/call-controls`\n * @summary Update voice agent call controls\n */\nexport const getUpdateCallControlsUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/call-controls`;\n};\n\nexport const updateCallControls = async (\n voiceAgentId: string,\n updateCallControlsBody: UpdateCallControlsBody,\n options?: RequestInit\n): Promise<UpdateCallControlsEnvelope> => {\n return customFetch<UpdateCallControlsEnvelope>(\n getUpdateCallControlsUrl(voiceAgentId),\n {\n ...options,\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateCallControlsBody),\n }\n );\n};\n\nexport const getUpdateCallControlsMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateCallControlsBody }) => {\n return updateCallControls(voiceAgentId, arg, options);\n };\n};\nexport const getUpdateCallControlsMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/call-controls`] as const;\n\nexport type UpdateCallControlsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateCallControls>>\n>;\n\n/**\n * @summary Update voice agent call controls\n */\nexport const useUpdateCallControls = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: 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 =\n swrOptions?.swrKey ?? getUpdateCallControlsMutationKey(voiceAgentId);\n const swrFn = getUpdateCallControlsMutationFetcher(\n voiceAgentId,\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 { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateAgentWebhookBody,\n CreateAgentWebhookEnvelope,\n CreateExtractorWebhookBody,\n CreateExtractorWebhookEnvelope,\n CreateInboxWebhookBody,\n CreateInboxWebhookEnvelope,\n CreateWorkerWebhookBody,\n CreateWorkerWebhookEnvelope,\n DeleteWebhookEnvelope,\n ErrorResponse,\n GetWebhookEnvelope,\n ListAgentWebhooksEnvelope,\n ListInboxWebhooksEnvelope,\n ListWebhookDeliveriesEnvelope,\n ListWebhookDeliveriesParams,\n ListWebhooksEnvelope,\n ListWorkerWebhooksEnvelope,\n TestWebhookEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\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 worker.\n * @summary Create worker webhook\n */\nexport const getCreateWorkerWebhookUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/webhooks`;\n};\n\nexport const createWorkerWebhook = async (\n workerId: string,\n createWorkerWebhookBody: CreateWorkerWebhookBody,\n options?: RequestInit\n): Promise<CreateWorkerWebhookEnvelope> => {\n return customFetch<CreateWorkerWebhookEnvelope>(\n getCreateWorkerWebhookUrl(workerId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createWorkerWebhookBody),\n }\n );\n};\n\nexport const getCreateWorkerWebhookMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateWorkerWebhookBody }) => {\n return createWorkerWebhook(workerId, arg, options);\n };\n};\nexport const getCreateWorkerWebhookMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}/webhooks`] as const;\n\nexport type CreateWorkerWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createWorkerWebhook>>\n>;\n\n/**\n * @summary Create worker webhook\n */\nexport const useCreateWorkerWebhook = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createWorkerWebhook>>,\n TError,\n Key,\n CreateWorkerWebhookBody,\n Awaited<ReturnType<typeof createWorkerWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCreateWorkerWebhookMutationKey(workerId);\n const swrFn = getCreateWorkerWebhookMutationFetcher(workerId, 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 worker.\n * @summary List worker webhooks\n */\nexport const getListWorkerWebhooksUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/webhooks`;\n};\n\nexport const listWorkerWebhooks = async (\n workerId: string,\n options?: RequestInit\n): Promise<ListWorkerWebhooksEnvelope> => {\n return customFetch<ListWorkerWebhooksEnvelope>(\n getListWorkerWebhooksUrl(workerId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWorkerWebhooksKey = (workerId: string) =>\n [`/v1/workers/${workerId}/webhooks`] as const;\n\nexport type ListWorkerWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerWebhooks>>\n>;\n\n/**\n * @summary List worker webhooks\n */\nexport const useListWorkerWebhooks = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerWebhooks>>,\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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListWorkerWebhooksKey(workerId) : null));\n const swrFn = () => listWorkerWebhooks(workerId, 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 voice agent.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/agents/{id}/webhooks`\n * @summary Create voice agent webhook\n */\nexport const getCreateAgentWebhookUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/webhooks`;\n};\n\nexport const createAgentWebhook = async (\n voiceAgentId: string,\n createAgentWebhookBody: CreateAgentWebhookBody,\n options?: RequestInit\n): Promise<CreateAgentWebhookEnvelope> => {\n return customFetch<CreateAgentWebhookEnvelope>(\n getCreateAgentWebhookUrl(voiceAgentId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentWebhookBody),\n }\n );\n};\n\nexport const getCreateAgentWebhookMutationFetcher = (\n voiceAgentId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentWebhookBody }) => {\n return createAgentWebhook(voiceAgentId, arg, options);\n };\n};\nexport const getCreateAgentWebhookMutationKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/webhooks`] as const;\n\nexport type CreateAgentWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgentWebhook>>\n>;\n\n/**\n * @summary Create voice agent webhook\n */\nexport const useCreateAgentWebhook = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: 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 =\n swrOptions?.swrKey ?? getCreateAgentWebhookMutationKey(voiceAgentId);\n const swrFn = getCreateAgentWebhookMutationFetcher(\n voiceAgentId,\n requestOptions\n );\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 voice agent.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/agents/{id}/webhooks`\n * @summary List voice agent webhooks\n */\nexport const getListAgentWebhooksUrl = (voiceAgentId: string) => {\n return `/v1/voice-agents/${voiceAgentId}/webhooks`;\n};\n\nexport const listAgentWebhooks = async (\n voiceAgentId: string,\n options?: RequestInit\n): Promise<ListAgentWebhooksEnvelope> => {\n return customFetch<ListAgentWebhooksEnvelope>(\n getListAgentWebhooksUrl(voiceAgentId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListAgentWebhooksKey = (voiceAgentId: string) =>\n [`/v1/voice-agents/${voiceAgentId}/webhooks`] as const;\n\nexport type ListAgentWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgentWebhooks>>\n>;\n\n/**\n * @summary List voice agent webhooks\n */\nexport const useListAgentWebhooks = <TError = ErrorType<ErrorResponse>>(\n voiceAgentId: 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 && !!voiceAgentId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListAgentWebhooksKey(voiceAgentId) : null));\n const swrFn = () => listAgentWebhooks(voiceAgentId, 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 inbox.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`POST /v1/email-agents/{id}/webhooks`\n * @summary Create inbox webhook\n */\nexport const getCreateInboxWebhookUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}/webhooks`;\n};\n\nexport const createInboxWebhook = async (\n inboxId: string,\n createInboxWebhookBody: CreateInboxWebhookBody,\n options?: RequestInit\n): Promise<CreateInboxWebhookEnvelope> => {\n return customFetch<CreateInboxWebhookEnvelope>(\n getCreateInboxWebhookUrl(inboxId),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createInboxWebhookBody),\n }\n );\n};\n\nexport const getCreateInboxWebhookMutationFetcher = (\n inboxId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateInboxWebhookBody }) => {\n return createInboxWebhook(inboxId, arg, options);\n };\n};\nexport const getCreateInboxWebhookMutationKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}/webhooks`] as const;\n\nexport type CreateInboxWebhookMutationResult = NonNullable<\n Awaited<ReturnType<typeof createInboxWebhook>>\n>;\n\n/**\n * @summary Create inbox webhook\n */\nexport const useCreateInboxWebhook = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createInboxWebhook>>,\n TError,\n Key,\n CreateInboxWebhookBody,\n Awaited<ReturnType<typeof createInboxWebhook>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCreateInboxWebhookMutationKey(inboxId);\n const swrFn = getCreateInboxWebhookMutationFetcher(inboxId, 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 inbox.\n\nFor compatibility this endpoint is also available using the following (deprecated) paths:\n`GET /v1/email-agents/{id}/webhooks`\n * @summary List inbox webhooks\n */\nexport const getListInboxWebhooksUrl = (inboxId: string) => {\n return `/v1/inboxes/${inboxId}/webhooks`;\n};\n\nexport const listInboxWebhooks = async (\n inboxId: string,\n options?: RequestInit\n): Promise<ListInboxWebhooksEnvelope> => {\n return customFetch<ListInboxWebhooksEnvelope>(\n getListInboxWebhooksUrl(inboxId),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListInboxWebhooksKey = (inboxId: string) =>\n [`/v1/inboxes/${inboxId}/webhooks`] as const;\n\nexport type ListInboxWebhooksQueryResult = NonNullable<\n Awaited<ReturnType<typeof listInboxWebhooks>>\n>;\n\n/**\n * @summary List inbox webhooks\n */\nexport const useListInboxWebhooks = <TError = ErrorType<ErrorResponse>>(\n inboxId: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listInboxWebhooks>>,\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 && !!inboxId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListInboxWebhooksKey(inboxId) : null));\n const swrFn = () => listInboxWebhooks(inboxId, 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<CreateExtractorWebhookEnvelope> => {\n return customFetch<CreateExtractorWebhookEnvelope>(\n getCreateExtractorWebhookUrl(id),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createExtractorWebhookBody),\n }\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<ListWebhooksEnvelope> => {\n return customFetch<ListWebhooksEnvelope>(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<DeleteWebhookEnvelope> => {\n return customFetch<DeleteWebhookEnvelope>(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<GetWebhookEnvelope> => {\n return customFetch<GetWebhookEnvelope>(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 if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\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<ListWebhookDeliveriesEnvelope> => {\n return customFetch<ListWebhookDeliveriesEnvelope>(\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<TestWebhookEnvelope> => {\n return customFetch<TestWebhookEnvelope>(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 */\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 CancelWorkerRunEnvelope,\n CreateWorkerRunBody,\n CreateWorkerRunEnvelope,\n ErrorResponse,\n GetWorkerRunEnvelope,\n ListWorkerRunMessagesEnvelope,\n ListWorkerRunMessagesParams,\n ListWorkerRunsEnvelope,\n ListWorkerRunsParams,\n UpdateWorkerRunScopeBody,\n UpdateWorkerRunScopeEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all worker runs with pagination, filtering, and sorting.\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 worker runs\n */\nexport const getListWorkerRunsUrl = (params?: ListWorkerRunsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/worker-runs?${stringifiedParams}`\n : `/v1/worker-runs`;\n};\n\nexport const listWorkerRuns = async (\n params?: ListWorkerRunsParams,\n options?: RequestInit\n): Promise<ListWorkerRunsEnvelope> => {\n return customFetch<ListWorkerRunsEnvelope>(getListWorkerRunsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWorkerRunsKey = (params?: ListWorkerRunsParams) =>\n [`/v1/worker-runs`, ...(params ? [params] : [])] as const;\n\nexport type ListWorkerRunsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerRuns>>\n>;\n\n/**\n * @summary List worker runs\n */\nexport const useListWorkerRuns = <TError = ErrorType<ErrorResponse>>(\n params?: ListWorkerRunsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerRuns>>,\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 ? getListWorkerRunsKey(params) : null));\n const swrFn = () => listWorkerRuns(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 worker run for the specified worker.\n\nProvide a `scope` object with at least one key to define which artifacts the worker should process (e.g. `{ \"claim_id\": \"abc-123\" }`). The run stays `pending` until those artifacts are ready.\n\nPass `null` to run the worker without any artifacts — the run is queued immediately. An empty object is rejected.\n * @summary Create worker run\n */\nexport const getCreateWorkerRunUrl = () => {\n return `/v1/worker-runs`;\n};\n\nexport const createWorkerRun = async (\n createWorkerRunBody: CreateWorkerRunBody,\n options?: RequestInit\n): Promise<CreateWorkerRunEnvelope> => {\n return customFetch<CreateWorkerRunEnvelope>(getCreateWorkerRunUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createWorkerRunBody),\n });\n};\n\nexport const getCreateWorkerRunMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateWorkerRunBody }) => {\n return createWorkerRun(arg, options);\n };\n};\nexport const getCreateWorkerRunMutationKey = () => [`/v1/worker-runs`] as const;\n\nexport type CreateWorkerRunMutationResult = NonNullable<\n Awaited<ReturnType<typeof createWorkerRun>>\n>;\n\n/**\n * @summary Create worker run\n */\nexport const useCreateWorkerRun = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createWorkerRun>>,\n TError,\n Key,\n CreateWorkerRunBody,\n Awaited<ReturnType<typeof createWorkerRun>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateWorkerRunMutationKey();\n const swrFn = getCreateWorkerRunMutationFetcher(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 worker run, including its status, timing, and errors.\n * @summary Get worker run\n */\nexport const getGetWorkerRunUrl = (workerRunId: string) => {\n return `/v1/worker-runs/${workerRunId}`;\n};\n\nexport const getWorkerRun = async (\n workerRunId: string,\n options?: RequestInit\n): Promise<GetWorkerRunEnvelope> => {\n return customFetch<GetWorkerRunEnvelope>(getGetWorkerRunUrl(workerRunId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetWorkerRunKey = (workerRunId: string) =>\n [`/v1/worker-runs/${workerRunId}`] as const;\n\nexport type GetWorkerRunQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerRun>>\n>;\n\n/**\n * @summary Get worker run\n */\nexport const useGetWorkerRun = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getWorkerRun>>, 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 && !!workerRunId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerRunKey(workerRunId) : null));\n const swrFn = () => getWorkerRun(workerRunId, 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 messages emitted during a worker run, ordered by emission time. Supports cursor-style pagination via `after` and `count`.\n * @summary List worker run messages\n */\nexport const getListWorkerRunMessagesUrl = (\n workerRunId: string,\n params?: ListWorkerRunMessagesParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/worker-runs/${workerRunId}/messages?${stringifiedParams}`\n : `/v1/worker-runs/${workerRunId}/messages`;\n};\n\nexport const listWorkerRunMessages = async (\n workerRunId: string,\n params?: ListWorkerRunMessagesParams,\n options?: RequestInit\n): Promise<ListWorkerRunMessagesEnvelope> => {\n return customFetch<ListWorkerRunMessagesEnvelope>(\n getListWorkerRunMessagesUrl(workerRunId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWorkerRunMessagesKey = (\n workerRunId: string,\n params?: ListWorkerRunMessagesParams\n) =>\n [\n `/v1/worker-runs/${workerRunId}/messages`,\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListWorkerRunMessagesQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerRunMessages>>\n>;\n\n/**\n * @summary List worker run messages\n */\nexport const useListWorkerRunMessages = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n params?: ListWorkerRunMessagesParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerRunMessages>>,\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 && !!workerRunId;\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled ? getListWorkerRunMessagesKey(workerRunId, params) : null);\n const swrFn = () =>\n listWorkerRunMessages(workerRunId, 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 * **DO NOT USE.** This endpoint is deprecated and will be removed.\n\nA run's scope records what the run was dispatched against, so it is immutable: changing it after the fact rewrites history and makes the change impossible to track.\n\nUse `POST /v1/cases/{id}/links` to group a worker run with related entities.\n * @deprecated\n * @summary Update worker run scope (deprecated)\n */\nexport const getUpdateWorkerRunScopeUrl = (workerRunId: string) => {\n return `/v1/worker-runs/${workerRunId}/scope`;\n};\n\nexport const updateWorkerRunScope = async (\n workerRunId: string,\n updateWorkerRunScopeBody: UpdateWorkerRunScopeBody,\n options?: RequestInit\n): Promise<UpdateWorkerRunScopeEnvelope> => {\n return customFetch<UpdateWorkerRunScopeEnvelope>(\n getUpdateWorkerRunScopeUrl(workerRunId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerRunScopeBody),\n }\n );\n};\n\nexport const getUpdateWorkerRunScopeMutationFetcher = (\n workerRunId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerRunScopeBody }) => {\n return updateWorkerRunScope(workerRunId, arg, options);\n };\n};\nexport const getUpdateWorkerRunScopeMutationKey = (workerRunId: string) =>\n [`/v1/worker-runs/${workerRunId}/scope`] as const;\n\nexport type UpdateWorkerRunScopeMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorkerRunScope>>\n>;\n\n/**\n * @deprecated\n * @summary Update worker run scope (deprecated)\n */\nexport const useUpdateWorkerRunScope = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorkerRunScope>>,\n TError,\n Key,\n UpdateWorkerRunScopeBody,\n Awaited<ReturnType<typeof updateWorkerRunScope>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateWorkerRunScopeMutationKey(workerRunId);\n const swrFn = getUpdateWorkerRunScopeMutationFetcher(\n workerRunId,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Cancel a worker run. For in_progress runs, the underlying E2B sandbox is terminated when possible. Pending and queued runs are simply marked canceled. Runs that are starting are still being handed their context and cannot be interrupted, so they cannot be canceled until they reach in_progress. Runs in terminal states (completed, failed) cannot be canceled. Already-canceled runs are returned without side effects.\n * @summary Cancel a worker run\n */\nexport const getCancelWorkerRunUrl = (workerRunId: string) => {\n return `/v1/worker-runs/${workerRunId}/cancel`;\n};\n\nexport const cancelWorkerRun = async (\n workerRunId: string,\n options?: RequestInit\n): Promise<CancelWorkerRunEnvelope> => {\n return customFetch<CancelWorkerRunEnvelope>(\n getCancelWorkerRunUrl(workerRunId),\n {\n ...options,\n method: \"POST\",\n }\n );\n};\n\nexport const getCancelWorkerRunMutationFetcher = (\n workerRunId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return cancelWorkerRun(workerRunId, options);\n };\n};\nexport const getCancelWorkerRunMutationKey = (workerRunId: string) =>\n [`/v1/worker-runs/${workerRunId}/cancel`] as const;\n\nexport type CancelWorkerRunMutationResult = NonNullable<\n Awaited<ReturnType<typeof cancelWorkerRun>>\n>;\n\n/**\n * @summary Cancel a worker run\n */\nexport const useCancelWorkerRun = <TError = ErrorType<ErrorResponse>>(\n workerRunId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof cancelWorkerRun>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof cancelWorkerRun>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getCancelWorkerRunMutationKey(workerRunId);\n const swrFn = getCancelWorkerRunMutationFetcher(workerRunId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ErrorResponse,\n WorkerExecuteToolBody,\n WorkerExecuteToolEnvelope,\n WorkerGetToolEnvelope,\n WorkerListToolsEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List tools attached to the calling worker. Worker-only endpoint.\n * @summary List worker tools\n */\nexport const getWorkerListToolsUrl = () => {\n return `/worker/v1/tools`;\n};\n\nexport const workerListTools = async (\n options?: RequestInit\n): Promise<WorkerListToolsEnvelope> => {\n return customFetch<WorkerListToolsEnvelope>(getWorkerListToolsUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getWorkerListToolsKey = () => [`/worker/v1/tools`] as const;\n\nexport type WorkerListToolsQueryResult = NonNullable<\n Awaited<ReturnType<typeof workerListTools>>\n>;\n\n/**\n * @summary List worker tools\n */\nexport const useWorkerListTools = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof workerListTools>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getWorkerListToolsKey() : null));\n const swrFn = () => workerListTools(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 tool attached to the calling worker, including its invocation schema. Worker-only endpoint.\n * @summary Get worker tool\n */\nexport const getWorkerGetToolUrl = (id: string) => {\n return `/worker/v1/tools/${id}`;\n};\n\nexport const workerGetTool = async (\n id: string,\n options?: RequestInit\n): Promise<WorkerGetToolEnvelope> => {\n return customFetch<WorkerGetToolEnvelope>(getWorkerGetToolUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getWorkerGetToolKey = (id: string) =>\n [`/worker/v1/tools/${id}`] as const;\n\nexport type WorkerGetToolQueryResult = NonNullable<\n Awaited<ReturnType<typeof workerGetTool>>\n>;\n\n/**\n * @summary Get worker tool\n */\nexport const useWorkerGetTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof workerGetTool>>,\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 ? getWorkerGetToolKey(id) : null));\n const swrFn = () => workerGetTool(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 * Execute a code tool attached to the calling worker. Worker tokens only.\n * @summary Execute a worker-attached tool\n */\nexport const getWorkerExecuteToolUrl = (id: string) => {\n return `/worker/v1/tools/${id}/execute`;\n};\n\nexport const workerExecuteTool = async (\n id: string,\n workerExecuteToolBody: WorkerExecuteToolBody,\n options?: RequestInit\n): Promise<WorkerExecuteToolEnvelope> => {\n return customFetch<WorkerExecuteToolEnvelope>(getWorkerExecuteToolUrl(id), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(workerExecuteToolBody),\n });\n};\n\nexport const getWorkerExecuteToolMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: WorkerExecuteToolBody }) => {\n return workerExecuteTool(id, arg, options);\n };\n};\nexport const getWorkerExecuteToolMutationKey = (id: string) =>\n [`/worker/v1/tools/${id}/execute`] as const;\n\nexport type WorkerExecuteToolMutationResult = NonNullable<\n Awaited<ReturnType<typeof workerExecuteTool>>\n>;\n\n/**\n * @summary Execute a worker-attached tool\n */\nexport const useWorkerExecuteTool = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof workerExecuteTool>>,\n TError,\n Key,\n WorkerExecuteToolBody,\n Awaited<ReturnType<typeof workerExecuteTool>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getWorkerExecuteToolMutationKey(id);\n const swrFn = getWorkerExecuteToolMutationFetcher(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 CreateWorkerBody,\n CreateWorkerEnvelope,\n DeleteWorkerEnvelope,\n ErrorResponse,\n GetWorkerEnvelope,\n GetWorkerPromptEnvelope,\n GetWorkerPromptParams,\n GetWorkerVersionChangeSummaryEnvelope,\n GetWorkerVersionEnvelope,\n ListWorkerModelsEnvelope,\n ListWorkerVersionsEnvelope,\n ListWorkerVersionsParams,\n ListWorkersEnvelope,\n ListWorkersParams,\n PromoteWorkerVersionBody,\n PromoteWorkerVersionEnvelope,\n UpdateWorkerBody,\n UpdateWorkerEnvelope,\n UpdateWorkerMcpsBody,\n UpdateWorkerMcpsEnvelope,\n UpdateWorkerPromptBody,\n UpdateWorkerPromptEnvelope,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype AwaitedInput<T> = PromiseLike<T> | T;\n\ntype Awaited<O> = O extends AwaitedInput<infer T> ? T : never;\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Create a new worker with a name and prompt.\n * @summary Create worker\n */\nexport const getCreateWorkerUrl = () => {\n return `/v1/workers`;\n};\n\nexport const createWorker = async (\n createWorkerBody: CreateWorkerBody,\n options?: RequestInit\n): Promise<CreateWorkerEnvelope> => {\n return customFetch<CreateWorkerEnvelope>(getCreateWorkerUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createWorkerBody),\n });\n};\n\nexport const getCreateWorkerMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateWorkerBody }) => {\n return createWorker(arg, options);\n };\n};\nexport const getCreateWorkerMutationKey = () => [`/v1/workers`] as const;\n\nexport type CreateWorkerMutationResult = NonNullable<\n Awaited<ReturnType<typeof createWorker>>\n>;\n\n/**\n * @summary Create worker\n */\nexport const useCreateWorker = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createWorker>>,\n TError,\n Key,\n CreateWorkerBody,\n Awaited<ReturnType<typeof createWorker>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateWorkerMutationKey();\n const swrFn = getCreateWorkerMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all workers with pagination, filtering, and sorting.\n\nFilter by name using the `name` query parameter.\n * @summary List workers\n */\nexport const getListWorkersUrl = (params?: ListWorkersParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/workers?${stringifiedParams}`\n : `/v1/workers`;\n};\n\nexport const listWorkers = async (\n params?: ListWorkersParams,\n options?: RequestInit\n): Promise<ListWorkersEnvelope> => {\n return customFetch<ListWorkersEnvelope>(getListWorkersUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWorkersKey = (params?: ListWorkersParams) =>\n [`/v1/workers`, ...(params ? [params] : [])] as const;\n\nexport type ListWorkersQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkers>>\n>;\n\n/**\n * @summary List workers\n */\nexport const useListWorkers = <TError = ErrorType<ErrorResponse>>(\n params?: ListWorkersParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listWorkers>>, 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 ? getListWorkersKey(params) : null));\n const swrFn = () => listWorkers(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 worker by ID.\n * @summary Get worker\n */\nexport const getGetWorkerUrl = (workerId: string) => {\n return `/v1/workers/${workerId}`;\n};\n\nexport const getWorker = async (\n workerId: string,\n options?: RequestInit\n): Promise<GetWorkerEnvelope> => {\n return customFetch<GetWorkerEnvelope>(getGetWorkerUrl(workerId), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetWorkerKey = (workerId: string) =>\n [`/v1/workers/${workerId}`] as const;\n\nexport type GetWorkerQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorker>>\n>;\n\n/**\n * @summary Get worker\n */\nexport const useGetWorker = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getWorker>>, 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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerKey(workerId) : null));\n const swrFn = () => getWorker(workerId, 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 worker. The worker is hidden from all reads; its run history is preserved.\n * @summary Delete worker\n */\nexport const getDeleteWorkerUrl = (workerId: string) => {\n return `/v1/workers/${workerId}`;\n};\n\nexport const deleteWorker = async (\n workerId: string,\n options?: RequestInit\n): Promise<DeleteWorkerEnvelope> => {\n return customFetch<DeleteWorkerEnvelope>(getDeleteWorkerUrl(workerId), {\n ...options,\n method: \"DELETE\",\n });\n};\n\nexport const getDeleteWorkerMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return deleteWorker(workerId, options);\n };\n};\nexport const getDeleteWorkerMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}`] as const;\n\nexport type DeleteWorkerMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteWorker>>\n>;\n\n/**\n * @summary Delete worker\n */\nexport const useDeleteWorker = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof deleteWorker>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof deleteWorker>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getDeleteWorkerMutationKey(workerId);\n const swrFn = getDeleteWorkerMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Update the configuration of a worker, including the attached tool set.\n * @summary Update worker\n */\nexport const getUpdateWorkerUrl = (workerId: string) => {\n return `/v1/workers/${workerId}`;\n};\n\nexport const updateWorker = async (\n workerId: string,\n updateWorkerBody: UpdateWorkerBody,\n options?: RequestInit\n): Promise<UpdateWorkerEnvelope> => {\n return customFetch<UpdateWorkerEnvelope>(getUpdateWorkerUrl(workerId), {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerBody),\n });\n};\n\nexport const getUpdateWorkerMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerBody }) => {\n return updateWorker(workerId, arg, options);\n };\n};\nexport const getUpdateWorkerMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}`] as const;\n\nexport type UpdateWorkerMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorker>>\n>;\n\n/**\n * @summary Update worker\n */\nexport const useUpdateWorker = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorker>>,\n TError,\n Key,\n UpdateWorkerBody,\n Awaited<ReturnType<typeof updateWorker>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateWorkerMutationKey(workerId);\n const swrFn = getUpdateWorkerMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve the prompt for a worker. Pass `version` to fetch the prompt snapshot at a specific config version; omit it to fetch the current prompt. Internal use only.\n * @summary Get worker prompt\n */\nexport const getGetWorkerPromptUrl = (\n workerId: string,\n params?: GetWorkerPromptParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/workers/${workerId}/prompt?${stringifiedParams}`\n : `/v1/workers/${workerId}/prompt`;\n};\n\nexport const getWorkerPrompt = async (\n workerId: string,\n params?: GetWorkerPromptParams,\n options?: RequestInit\n): Promise<GetWorkerPromptEnvelope> => {\n return customFetch<GetWorkerPromptEnvelope>(\n getGetWorkerPromptUrl(workerId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetWorkerPromptKey = (\n workerId: string,\n params?: GetWorkerPromptParams\n) => [`/v1/workers/${workerId}/prompt`, ...(params ? [params] : [])] as const;\n\nexport type GetWorkerPromptQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerPrompt>>\n>;\n\n/**\n * @summary Get worker prompt\n */\nexport const useGetWorkerPrompt = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n params?: GetWorkerPromptParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getWorkerPrompt>>,\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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerPromptKey(workerId, params) : null));\n const swrFn = () => getWorkerPrompt(workerId, 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 the prompt for a worker. Internal use only.\n * @summary Update worker prompt\n */\nexport const getUpdateWorkerPromptUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/prompt`;\n};\n\nexport const updateWorkerPrompt = async (\n workerId: string,\n updateWorkerPromptBody: UpdateWorkerPromptBody,\n options?: RequestInit\n): Promise<UpdateWorkerPromptEnvelope> => {\n return customFetch<UpdateWorkerPromptEnvelope>(\n getUpdateWorkerPromptUrl(workerId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerPromptBody),\n }\n );\n};\n\nexport const getUpdateWorkerPromptMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerPromptBody }) => {\n return updateWorkerPrompt(workerId, arg, options);\n };\n};\nexport const getUpdateWorkerPromptMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}/prompt`] as const;\n\nexport type UpdateWorkerPromptMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorkerPrompt>>\n>;\n\n/**\n * @summary Update worker prompt\n */\nexport const useUpdateWorkerPrompt = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorkerPrompt>>,\n TError,\n Key,\n UpdateWorkerPromptBody,\n Awaited<ReturnType<typeof updateWorkerPrompt>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getUpdateWorkerPromptMutationKey(workerId);\n const swrFn = getUpdateWorkerPromptMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List the LLM models that can be assigned to a worker via the `model` field on update.\n * @summary List available worker models\n */\nexport const getListWorkerModelsUrl = () => {\n return `/v1/worker-models`;\n};\n\nexport const listWorkerModels = async (\n options?: RequestInit\n): Promise<ListWorkerModelsEnvelope> => {\n return customFetch<ListWorkerModelsEnvelope>(getListWorkerModelsUrl(), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListWorkerModelsKey = () => [`/v1/worker-models`] as const;\n\nexport type ListWorkerModelsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerModels>>\n>;\n\n/**\n * @summary List available worker models\n */\nexport const useListWorkerModels = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerModels>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\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 ? getListWorkerModelsKey() : null));\n const swrFn = () => listWorkerModels(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 * Replace the set of MCP servers a worker connects to. Pass an empty array to disconnect.\n * @summary Update worker MCP servers\n */\nexport const getUpdateWorkerMcpsUrl = (workerId: string) => {\n return `/v1/workers/${workerId}/mcps`;\n};\n\nexport const updateWorkerMcps = async (\n workerId: string,\n updateWorkerMcpsBody: UpdateWorkerMcpsBody,\n options?: RequestInit\n): Promise<UpdateWorkerMcpsEnvelope> => {\n return customFetch<UpdateWorkerMcpsEnvelope>(\n getUpdateWorkerMcpsUrl(workerId),\n {\n ...options,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(updateWorkerMcpsBody),\n }\n );\n};\n\nexport const getUpdateWorkerMcpsMutationFetcher = (\n workerId: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: UpdateWorkerMcpsBody }) => {\n return updateWorkerMcps(workerId, arg, options);\n };\n};\nexport const getUpdateWorkerMcpsMutationKey = (workerId: string) =>\n [`/v1/workers/${workerId}/mcps`] as const;\n\nexport type UpdateWorkerMcpsMutationResult = NonNullable<\n Awaited<ReturnType<typeof updateWorkerMcps>>\n>;\n\n/**\n * @summary Update worker MCP servers\n */\nexport const useUpdateWorkerMcps = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof updateWorkerMcps>>,\n TError,\n Key,\n UpdateWorkerMcpsBody,\n Awaited<ReturnType<typeof updateWorkerMcps>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getUpdateWorkerMcpsMutationKey(workerId);\n const swrFn = getUpdateWorkerMcpsMutationFetcher(workerId, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * List all config versions for a worker, ordered by version (newest first by default).\n * @summary List worker versions\n */\nexport const getListWorkerVersionsUrl = (\n workerId: string,\n params?: ListWorkerVersionsParams\n) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n if (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n for (const [sk, sv] of Object.entries(value as Record<string, unknown>)) {\n if (sv !== undefined) normalizedParams.append(`${key}[${sk}]`, String(sv));\n }\n } else {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/workers/${workerId}/versions?${stringifiedParams}`\n : `/v1/workers/${workerId}/versions`;\n};\n\nexport const listWorkerVersions = async (\n workerId: string,\n params?: ListWorkerVersionsParams,\n options?: RequestInit\n): Promise<ListWorkerVersionsEnvelope> => {\n return customFetch<ListWorkerVersionsEnvelope>(\n getListWorkerVersionsUrl(workerId, params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getListWorkerVersionsKey = (\n workerId: string,\n params?: ListWorkerVersionsParams\n) => [`/v1/workers/${workerId}/versions`, ...(params ? [params] : [])] as const;\n\nexport type ListWorkerVersionsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listWorkerVersions>>\n>;\n\n/**\n * @summary List worker versions\n */\nexport const useListWorkerVersions = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n params?: ListWorkerVersionsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listWorkerVersions>>,\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 && !!workerId;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListWorkerVersionsKey(workerId, params) : null));\n const swrFn = () => listWorkerVersions(workerId, 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 worker config version, including the worker's identity, the config snapshot at that version, and version-specific metadata. The prompt is served separately by the worker prompt endpoint.\n * @summary Get worker version\n */\nexport const getGetWorkerVersionUrl = (workerId: string, version: number) => {\n return `/v1/workers/${workerId}/versions/${version}`;\n};\n\nexport const getWorkerVersion = async (\n workerId: string,\n version: number,\n options?: RequestInit\n): Promise<GetWorkerVersionEnvelope> => {\n return customFetch<GetWorkerVersionEnvelope>(\n getGetWorkerVersionUrl(workerId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetWorkerVersionKey = (workerId: string, version: number) =>\n [`/v1/workers/${workerId}/versions/${version}`] as const;\n\nexport type GetWorkerVersionQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerVersion>>\n>;\n\n/**\n * @summary Get worker version\n */\nexport const useGetWorkerVersion = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getWorkerVersion>>,\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 && !!(workerId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetWorkerVersionKey(workerId, version) : null));\n const swrFn = () => getWorkerVersion(workerId, version, 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 * Select a worker configuration version for the live or test environment. This freezes the config snapshot only — the E2B template, attached tools and attached secrets are not versioned and always resolve to their current values.\n * @summary Promote worker version\n */\nexport const getPromoteWorkerVersionUrl = (\n workerId: string,\n version: number\n) => {\n return `/v1/workers/${workerId}/versions/${version}/promote`;\n};\n\nexport const promoteWorkerVersion = async (\n workerId: string,\n version: number,\n promoteWorkerVersionBody: PromoteWorkerVersionBody,\n options?: RequestInit\n): Promise<PromoteWorkerVersionEnvelope> => {\n return customFetch<PromoteWorkerVersionEnvelope>(\n getPromoteWorkerVersionUrl(workerId, version),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(promoteWorkerVersionBody),\n }\n );\n};\n\nexport const getPromoteWorkerVersionMutationFetcher = (\n workerId: string,\n version: number,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PromoteWorkerVersionBody }) => {\n return promoteWorkerVersion(workerId, version, arg, options);\n };\n};\nexport const getPromoteWorkerVersionMutationKey = (\n workerId: string,\n version: number\n) => [`/v1/workers/${workerId}/versions/${version}/promote`] as const;\n\nexport type PromoteWorkerVersionMutationResult = NonNullable<\n Awaited<ReturnType<typeof promoteWorkerVersion>>\n>;\n\n/**\n * @summary Promote worker version\n */\nexport const usePromoteWorkerVersion = <TError = ErrorType<ErrorResponse>>(\n workerId: string,\n version: number,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof promoteWorkerVersion>>,\n TError,\n Key,\n PromoteWorkerVersionBody,\n Awaited<ReturnType<typeof promoteWorkerVersion>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getPromoteWorkerVersionMutationKey(workerId, version);\n const swrFn = getPromoteWorkerVersionMutationFetcher(\n workerId,\n version,\n requestOptions\n );\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Returns an AI-generated summary of what changed between this version and the previous one. Initial version returns an empty string since there is no predecessor.\n * @summary Get worker version change summary\n */\nexport const getGetWorkerVersionChangeSummaryUrl = (\n workerId: string,\n version: number\n) => {\n return `/v1/workers/${workerId}/versions/${version}/change-summary`;\n};\n\nexport const getWorkerVersionChangeSummary = async (\n workerId: string,\n version: number,\n options?: RequestInit\n): Promise<GetWorkerVersionChangeSummaryEnvelope> => {\n return customFetch<GetWorkerVersionChangeSummaryEnvelope>(\n getGetWorkerVersionChangeSummaryUrl(workerId, version),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetWorkerVersionChangeSummaryKey = (\n workerId: string,\n version: number\n) => [`/v1/workers/${workerId}/versions/${version}/change-summary`] as const;\n\nexport type GetWorkerVersionChangeSummaryQueryResult = NonNullable<\n Awaited<ReturnType<typeof getWorkerVersionChangeSummary>>\n>;\n\n/**\n * @summary Get worker version change summary\n */\nexport const useGetWorkerVersionChangeSummary = <\n TError = ErrorType<ErrorResponse>,\n>(\n workerId: string,\n version: number,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getWorkerVersionChangeSummary>>,\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 && !!(workerId && version);\n const swrKey =\n swrOptions?.swrKey ??\n (() =>\n isEnabled\n ? getGetWorkerVersionChangeSummaryKey(workerId, version)\n : null);\n const swrFn = () =>\n getWorkerVersionChangeSummary(workerId, version, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AddCaseLinksBodyEntitiesItemEntityType =\n (typeof AddCaseLinksBodyEntitiesItemEntityType)[keyof typeof AddCaseLinksBodyEntitiesItemEntityType];\n\nexport const AddCaseLinksBodyEntitiesItemEntityType = {\n artifact: \"artifact\",\n call: \"call\",\n chat: \"chat\",\n email: \"email\",\n extract: \"extract\",\n schedule: \"schedule\",\n worker_run: \"worker_run\",\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 AnalyticsTimeSeriesGranularity =\n (typeof AnalyticsTimeSeriesGranularity)[keyof typeof AnalyticsTimeSeriesGranularity];\n\nexport const AnalyticsTimeSeriesGranularity = {\n day: \"day\",\n week: \"week\",\n month: \"month\",\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 AnalyticsTimeSeriesMetric =\n (typeof AnalyticsTimeSeriesMetric)[keyof typeof AnalyticsTimeSeriesMetric];\n\nexport const AnalyticsTimeSeriesMetric = {\n worker_runs: \"worker_runs\",\n documents: \"documents\",\n pages: \"pages\",\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 * Role granted to this API key\n */\nexport type ApiKeyCreatedRole =\n (typeof ApiKeyCreatedRole)[keyof typeof ApiKeyCreatedRole];\n\nexport const ApiKeyCreatedRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 * Role granted to this API key\n */\nexport type ApiKeyRole = (typeof ApiKeyRole)[keyof typeof ApiKeyRole];\n\nexport const ApiKeyRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 ArtifactDetailDataStatus =\n (typeof ArtifactDetailDataStatus)[keyof typeof ArtifactDetailDataStatus];\n\nexport const ArtifactDetailDataStatus = {\n processing: \"processing\",\n parsed: \"parsed\",\n raw: \"raw\",\n missing: \"missing\",\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 ArtifactStatus =\n (typeof ArtifactStatus)[keyof typeof ArtifactStatus];\n\nexport const ArtifactStatus = {\n processing: \"processing\",\n parsed: \"parsed\",\n raw: \"raw\",\n missing: \"missing\",\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\nexport type CaseLinkEntityType =\n (typeof CaseLinkEntityType)[keyof typeof CaseLinkEntityType];\n\nexport const CaseLinkEntityType = {\n artifact: \"artifact\",\n call: \"call\",\n chat: \"chat\",\n email: \"email\",\n extract: \"extract\",\n schedule: \"schedule\",\n worker_run: \"worker_run\",\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 ChatHistoryMessagesItemRole =\n (typeof ChatHistoryMessagesItemRole)[keyof typeof ChatHistoryMessagesItemRole];\n\nexport const ChatHistoryMessagesItemRole = {\n user: \"user\",\n assistant: \"assistant\",\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 ChatMessageRole =\n (typeof ChatMessageRole)[keyof typeof ChatMessageRole];\n\nexport const ChatMessageRole = {\n user: \"user\",\n assistant: \"assistant\",\n tool: \"tool\",\n system: \"system\",\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\n/**\n * Role granted to this API key (defaults to admin). Caller's role caps the maximum grantable role.\n */\nexport type CreateApiKeyBodyRole =\n (typeof CreateApiKeyBodyRole)[keyof typeof CreateApiKeyBodyRole];\n\nexport const CreateApiKeyBodyRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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\n/**\n * Type of processor. Defaults to 'extractor' when extractor_id is used.\n */\nexport type CreateInboxBodyProcessorType =\n (typeof CreateInboxBodyProcessorType)[keyof typeof CreateInboxBodyProcessorType];\n\nexport const CreateInboxBodyProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 processor: extractor or worker\n */\nexport type CreateVoiceAgentBodyCallProcessorType =\n (typeof CreateVoiceAgentBodyCallProcessorType)[keyof typeof CreateVoiceAgentBodyCallProcessorType];\n\nexport const CreateVoiceAgentBodyCallProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 CreateVoiceAgentBodyDirection =\n (typeof CreateVoiceAgentBodyDirection)[keyof typeof CreateVoiceAgentBodyDirection];\n\nexport const CreateVoiceAgentBodyDirection = {\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 CreateVoiceAgentBodyLanguage =\n (typeof CreateVoiceAgentBodyLanguage)[keyof typeof CreateVoiceAgentBodyLanguage];\n\nexport const CreateVoiceAgentBodyLanguage = {\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 CreateVoiceAgentBodyLlmModel =\n (typeof CreateVoiceAgentBodyLlmModel)[keyof typeof CreateVoiceAgentBodyLlmModel];\n\nexport const CreateVoiceAgentBodyLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 CreateVoiceAgentBodySttModel =\n (typeof CreateVoiceAgentBodySttModel)[keyof typeof CreateVoiceAgentBodySttModel];\n\nexport const CreateVoiceAgentBodySttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 CreateVoiceAgentBodyTtsModel =\n (typeof CreateVoiceAgentBodyTtsModel)[keyof typeof CreateVoiceAgentBodyTtsModel];\n\nexport const CreateVoiceAgentBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 CreateVoiceAgentBodyTtsProvider =\n (typeof CreateVoiceAgentBodyTtsProvider)[keyof typeof CreateVoiceAgentBodyTtsProvider];\n\nexport const CreateVoiceAgentBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 DispatchStatus =\n (typeof DispatchStatus)[keyof typeof DispatchStatus];\n\nexport const DispatchStatus = {\n pending: \"pending\",\n dispatched: \"dispatched\",\n abandoned: \"abandoned\",\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 DispatchTargetType =\n (typeof DispatchTargetType)[keyof typeof DispatchTargetType];\n\nexport const DispatchTargetType = {\n worker_run: \"worker_run\",\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 DispatchTriggerType =\n (typeof DispatchTriggerType)[keyof typeof DispatchTriggerType];\n\nexport const DispatchTriggerType = {\n schedule: \"schedule\",\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\nexport const EmailReplyResultValue = {\n sent: true,\n} as const;\nexport type EmailReplyResult = typeof EmailReplyResultValue;\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 GetAnalyticsTimeSeriesGranularity =\n (typeof GetAnalyticsTimeSeriesGranularity)[keyof typeof GetAnalyticsTimeSeriesGranularity];\n\nexport const GetAnalyticsTimeSeriesGranularity = {\n day: \"day\",\n week: \"week\",\n month: \"month\",\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 GetAnalyticsTimeSeriesGroupBy =\n (typeof GetAnalyticsTimeSeriesGroupBy)[keyof typeof GetAnalyticsTimeSeriesGroupBy];\n\nexport const GetAnalyticsTimeSeriesGroupBy = {\n worker_id: \"worker_id\",\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 GetAnalyticsTimeSeriesMetric =\n (typeof GetAnalyticsTimeSeriesMetric)[keyof typeof GetAnalyticsTimeSeriesMetric];\n\nexport const GetAnalyticsTimeSeriesMetric = {\n worker_runs: \"worker_runs\",\n documents: \"documents\",\n pages: \"pages\",\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 sso: \"sso\",\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 InboxProcessorType =\n (typeof InboxProcessorType)[keyof typeof InboxProcessorType];\n\nexport const InboxProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 ListArtifactsStatus =\n (typeof ListArtifactsStatus)[keyof typeof ListArtifactsStatus];\n\nexport const ListArtifactsStatus = {\n processing: \"processing\",\n parsed: \"parsed\",\n raw: \"raw\",\n missing: \"missing\",\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 ListCaseLinksEntityType =\n (typeof ListCaseLinksEntityType)[keyof typeof ListCaseLinksEntityType];\n\nexport const ListCaseLinksEntityType = {\n artifact: \"artifact\",\n call: \"call\",\n chat: \"chat\",\n email: \"email\",\n extract: \"extract\",\n schedule: \"schedule\",\n worker_run: \"worker_run\",\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 ListCaseLinksSortBy =\n (typeof ListCaseLinksSortBy)[keyof typeof ListCaseLinksSortBy];\n\nexport const ListCaseLinksSortBy = {\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 ListCaseLinksSortOrder =\n (typeof ListCaseLinksSortOrder)[keyof typeof ListCaseLinksSortOrder];\n\nexport const ListCaseLinksSortOrder = {\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 ListCasesSortBy =\n (typeof ListCasesSortBy)[keyof typeof ListCasesSortBy];\n\nexport const ListCasesSortBy = {\n created_at: \"created_at\",\n updated_at: \"updated_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 ListCasesSortOrder =\n (typeof ListCasesSortOrder)[keyof typeof ListCasesSortOrder];\n\nexport const ListCasesSortOrder = {\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 ListChatAgentsSortBy =\n (typeof ListChatAgentsSortBy)[keyof typeof ListChatAgentsSortBy];\n\nexport const ListChatAgentsSortBy = {\n created_at: \"created_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 ListChatAgentsSortOrder =\n (typeof ListChatAgentsSortOrder)[keyof typeof ListChatAgentsSortOrder];\n\nexport const ListChatAgentsSortOrder = {\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 ListChatMessagesSortBy =\n (typeof ListChatMessagesSortBy)[keyof typeof ListChatMessagesSortBy];\n\nexport const ListChatMessagesSortBy = {\n generated_at: \"generated_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 ListChatMessagesSortOrder =\n (typeof ListChatMessagesSortOrder)[keyof typeof ListChatMessagesSortOrder];\n\nexport const ListChatMessagesSortOrder = {\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 ListChatsSortBy =\n (typeof ListChatsSortBy)[keyof typeof ListChatsSortBy];\n\nexport const ListChatsSortBy = {\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 ListChatsSortOrder =\n (typeof ListChatsSortOrder)[keyof typeof ListChatsSortOrder];\n\nexport const ListChatsSortOrder = {\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 ListDispatchesSortBy =\n (typeof ListDispatchesSortBy)[keyof typeof ListDispatchesSortBy];\n\nexport const ListDispatchesSortBy = {\n due_at: \"due_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 ListDispatchesSortOrder =\n (typeof ListDispatchesSortOrder)[keyof typeof ListDispatchesSortOrder];\n\nexport const ListDispatchesSortOrder = {\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 ListDispatchesTriggerType =\n (typeof ListDispatchesTriggerType)[keyof typeof ListDispatchesTriggerType];\n\nexport const ListDispatchesTriggerType = {\n schedule: \"schedule\",\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 sent_at: \"sent_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 ListEmailThreadsSortBy =\n (typeof ListEmailThreadsSortBy)[keyof typeof ListEmailThreadsSortBy];\n\nexport const ListEmailThreadsSortBy = {\n last_email_at: \"last_email_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 ListEmailThreadsSortOrder =\n (typeof ListEmailThreadsSortOrder)[keyof typeof ListEmailThreadsSortOrder];\n\nexport const ListEmailThreadsSortOrder = {\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 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 ListInboxesSortBy =\n (typeof ListInboxesSortBy)[keyof typeof ListInboxesSortBy];\n\nexport const ListInboxesSortBy = {\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 ListInboxesSortOrder =\n (typeof ListInboxesSortOrder)[keyof typeof ListInboxesSortOrder];\n\nexport const ListInboxesSortOrder = {\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 ListSchedulesRuleType =\n (typeof ListSchedulesRuleType)[keyof typeof ListSchedulesRuleType];\n\nexport const ListSchedulesRuleType = {\n once: \"once\",\n hourly: \"hourly\",\n daily: \"daily\",\n weekly: \"weekly\",\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 ListSchedulesSortBy =\n (typeof ListSchedulesSortBy)[keyof typeof ListSchedulesSortBy];\n\nexport const ListSchedulesSortBy = {\n created_at: \"created_at\",\n next_run_at: \"next_run_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 ListSchedulesSortOrder =\n (typeof ListSchedulesSortOrder)[keyof typeof ListSchedulesSortOrder];\n\nexport const ListSchedulesSortOrder = {\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 ListSecretsSortBy =\n (typeof ListSecretsSortBy)[keyof typeof ListSecretsSortBy];\n\nexport const ListSecretsSortBy = {\n name: \"name\",\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 ListSecretsSortOrder =\n (typeof ListSecretsSortOrder)[keyof typeof ListSecretsSortOrder];\n\nexport const ListSecretsSortOrder = {\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 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 ListVoiceAgentVersionsSortBy =\n (typeof ListVoiceAgentVersionsSortBy)[keyof typeof ListVoiceAgentVersionsSortBy];\n\nexport const ListVoiceAgentVersionsSortBy = {\n version: \"version\",\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 ListVoiceAgentVersionsSortOrder =\n (typeof ListVoiceAgentVersionsSortOrder)[keyof typeof ListVoiceAgentVersionsSortOrder];\n\nexport const ListVoiceAgentVersionsSortOrder = {\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 ListWorkerRunsSortBy =\n (typeof ListWorkerRunsSortBy)[keyof typeof ListWorkerRunsSortBy];\n\nexport const ListWorkerRunsSortBy = {\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 ListWorkerRunsSortOrder =\n (typeof ListWorkerRunsSortOrder)[keyof typeof ListWorkerRunsSortOrder];\n\nexport const ListWorkerRunsSortOrder = {\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 ListWorkerRunsStatus =\n (typeof ListWorkerRunsStatus)[keyof typeof ListWorkerRunsStatus];\n\nexport const ListWorkerRunsStatus = {\n pending: \"pending\",\n queued: \"queued\",\n starting: \"starting\",\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 ListWorkersSortBy =\n (typeof ListWorkersSortBy)[keyof typeof ListWorkersSortBy];\n\nexport const ListWorkersSortBy = {\n created_at: \"created_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 ListWorkersSortOrder =\n (typeof ListWorkersSortOrder)[keyof typeof ListWorkersSortOrder];\n\nexport const ListWorkersSortOrder = {\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 ListWorkerVersionsSortBy =\n (typeof ListWorkerVersionsSortBy)[keyof typeof ListWorkerVersionsSortBy];\n\nexport const ListWorkerVersionsSortBy = {\n version: \"version\",\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 ListWorkerVersionsSortOrder =\n (typeof ListWorkerVersionsSortOrder)[keyof typeof ListWorkerVersionsSortOrder];\n\nexport const ListWorkerVersionsSortOrder = {\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\n/**\n * Promoted environment the job dispatches against (agent configuration and phone binding). TEST requires an active TEST promotion.\n */\nexport type OutboundJobEnvironment =\n (typeof OutboundJobEnvironment)[keyof typeof OutboundJobEnvironment];\n\nexport const OutboundJobEnvironment = {\n live: \"live\",\n test: \"test\",\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 ProfilePermissionsItem =\n (typeof ProfilePermissionsItem)[keyof typeof ProfilePermissionsItem];\n\nexport const ProfilePermissionsItem = {\n \"voice-agents:write\": \"voice-agents:write\",\n \"voice-agents:promote\": \"voice-agents:promote\",\n \"tools:write\": \"tools:write\",\n \"tools:execute\": \"tools:execute\",\n \"extractors:write\": \"extractors:write\",\n \"inboxes:write\": \"inboxes:write\",\n \"inboxes:send\": \"inboxes:send\",\n \"artifacts:write\": \"artifacts:write\",\n \"api-keys:write\": \"api-keys:write\",\n \"teams:write\": \"teams:write\",\n \"cases:write\": \"cases:write\",\n \"feedback:write\": \"feedback:write\",\n \"outbound-jobs:write\": \"outbound-jobs:write\",\n \"outbound-jobs:schedule\": \"outbound-jobs:schedule\",\n \"workers:write\": \"workers:write\",\n \"workers:execute\": \"workers:execute\",\n \"workers:write-mcp\": \"workers:write-mcp\",\n \"workers:run\": \"workers:run\",\n \"workers:promote\": \"workers:promote\",\n \"chat-agents:write\": \"chat-agents:write\",\n \"prompts:read\": \"prompts:read\",\n \"prompts:write\": \"prompts:write\",\n \"secrets:read\": \"secrets:read\",\n \"secrets:write\": \"secrets:write\",\n \"schedules:read\": \"schedules:read\",\n \"schedules:write\": \"schedules:write\",\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 ProfileRole = (typeof ProfileRole)[keyof typeof ProfileRole];\n\nexport const ProfileRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 PromotedVoiceAgentVersionEnvironment =\n (typeof PromotedVoiceAgentVersionEnvironment)[keyof typeof PromotedVoiceAgentVersionEnvironment];\n\nexport const PromotedVoiceAgentVersionEnvironment = {\n live: \"live\",\n test: \"test\",\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 PromoteVoiceAgentVersionBodyEnvironment =\n (typeof PromoteVoiceAgentVersionBodyEnvironment)[keyof typeof PromoteVoiceAgentVersionBodyEnvironment];\n\nexport const PromoteVoiceAgentVersionBodyEnvironment = {\n live: \"live\",\n test: \"test\",\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 * Promoted environment the job dispatches against (agent configuration and phone binding). TEST requires an active TEST promotion.\n */\nexport type ScheduleJobBodyEnvironment =\n (typeof ScheduleJobBodyEnvironment)[keyof typeof ScheduleJobBodyEnvironment];\n\nexport const ScheduleJobBodyEnvironment = {\n live: \"live\",\n test: \"test\",\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 TeamInvitationState =\n (typeof TeamInvitationState)[keyof typeof TeamInvitationState];\n\nexport const TeamInvitationState = {\n pending: \"pending\",\n accepted: \"accepted\",\n expired: \"expired\",\n revoked: \"revoked\",\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 TeamMemberRole =\n (typeof TeamMemberRole)[keyof typeof TeamMemberRole];\n\nexport const TeamMemberRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 * New role to grant this API key. Caller's role caps the maximum grantable role.\n */\nexport type UpdateApiKeyBodyRole =\n (typeof UpdateApiKeyBodyRole)[keyof typeof UpdateApiKeyBodyRole];\n\nexport const UpdateApiKeyBodyRole = {\n admin: \"admin\",\n avallon_admin: \"avallon_admin\",\n member: \"member\",\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 processor.\n */\nexport type UpdateInboxBodyProcessorType =\n (typeof UpdateInboxBodyProcessorType)[keyof typeof UpdateInboxBodyProcessorType];\n\nexport const UpdateInboxBodyProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 UpdateMemberRoleBodyRole =\n (typeof UpdateMemberRoleBodyRole)[keyof typeof UpdateMemberRoleBodyRole];\n\nexport const UpdateMemberRoleBodyRole = {\n admin: \"admin\",\n member: \"member\",\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 UpdateVoiceAgentBodyCallProcessorType =\n (typeof UpdateVoiceAgentBodyCallProcessorType)[keyof typeof UpdateVoiceAgentBodyCallProcessorType];\n\nexport const UpdateVoiceAgentBodyCallProcessorType = {\n extractor: \"extractor\",\n worker: \"worker\",\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 UpdateVoiceAgentModelsBodyLanguage =\n (typeof UpdateVoiceAgentModelsBodyLanguage)[keyof typeof UpdateVoiceAgentModelsBodyLanguage];\n\nexport const UpdateVoiceAgentModelsBodyLanguage = {\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 UpdateVoiceAgentModelsBodyLlmModel =\n (typeof UpdateVoiceAgentModelsBodyLlmModel)[keyof typeof UpdateVoiceAgentModelsBodyLlmModel];\n\nexport const UpdateVoiceAgentModelsBodyLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 UpdateVoiceAgentModelsBodySttModel =\n (typeof UpdateVoiceAgentModelsBodySttModel)[keyof typeof UpdateVoiceAgentModelsBodySttModel];\n\nexport const UpdateVoiceAgentModelsBodySttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 UpdateVoiceAgentModelsBodyTtsModel =\n (typeof UpdateVoiceAgentModelsBodyTtsModel)[keyof typeof UpdateVoiceAgentModelsBodyTtsModel];\n\nexport const UpdateVoiceAgentModelsBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 UpdateVoiceAgentModelsBodyTtsProvider =\n (typeof UpdateVoiceAgentModelsBodyTtsProvider)[keyof typeof UpdateVoiceAgentModelsBodyTtsProvider];\n\nexport const UpdateVoiceAgentModelsBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 VoiceAgentBackgroundSounds =\n (typeof VoiceAgentBackgroundSounds)[keyof typeof VoiceAgentBackgroundSounds];\n\nexport const VoiceAgentBackgroundSounds = {\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 VoiceAgentDirection =\n (typeof VoiceAgentDirection)[keyof typeof VoiceAgentDirection];\n\nexport const VoiceAgentDirection = {\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 VoiceAgentLanguage =\n (typeof VoiceAgentLanguage)[keyof typeof VoiceAgentLanguage];\n\nexport const VoiceAgentLanguage = {\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 VoiceAgentLlmModel =\n (typeof VoiceAgentLlmModel)[keyof typeof VoiceAgentLlmModel];\n\nexport const VoiceAgentLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 VoiceAgentNoiseCancellation =\n (typeof VoiceAgentNoiseCancellation)[keyof typeof VoiceAgentNoiseCancellation];\n\nexport const VoiceAgentNoiseCancellation = {\n NONE: \"NONE\",\n NC: \"NC\",\n BVC: \"BVC\",\n BVC_TELEPHONY: \"BVC_TELEPHONY\",\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 VoiceAgentSttModel =\n (typeof VoiceAgentSttModel)[keyof typeof VoiceAgentSttModel];\n\nexport const VoiceAgentSttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 VoiceAgentTtsModel =\n (typeof VoiceAgentTtsModel)[keyof typeof VoiceAgentTtsModel];\n\nexport const VoiceAgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 VoiceAgentTtsProvider =\n (typeof VoiceAgentTtsProvider)[keyof typeof VoiceAgentTtsProvider];\n\nexport const VoiceAgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 VoiceAgentVersionActiveEnvironmentsItem =\n (typeof VoiceAgentVersionActiveEnvironmentsItem)[keyof typeof VoiceAgentVersionActiveEnvironmentsItem];\n\nexport const VoiceAgentVersionActiveEnvironmentsItem = {\n live: \"live\",\n test: \"test\",\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 VoiceAgentVersionDetailActiveEnvironmentsItem =\n (typeof VoiceAgentVersionDetailActiveEnvironmentsItem)[keyof typeof VoiceAgentVersionDetailActiveEnvironmentsItem];\n\nexport const VoiceAgentVersionDetailActiveEnvironmentsItem = {\n live: \"live\",\n test: \"test\",\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 VoiceAgentVersionDetailBackgroundSounds =\n (typeof VoiceAgentVersionDetailBackgroundSounds)[keyof typeof VoiceAgentVersionDetailBackgroundSounds];\n\nexport const VoiceAgentVersionDetailBackgroundSounds = {\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 VoiceAgentVersionDetailDirection =\n (typeof VoiceAgentVersionDetailDirection)[keyof typeof VoiceAgentVersionDetailDirection];\n\nexport const VoiceAgentVersionDetailDirection = {\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 VoiceAgentVersionDetailLanguage =\n (typeof VoiceAgentVersionDetailLanguage)[keyof typeof VoiceAgentVersionDetailLanguage];\n\nexport const VoiceAgentVersionDetailLanguage = {\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 VoiceAgentVersionDetailLlmModel =\n (typeof VoiceAgentVersionDetailLlmModel)[keyof typeof VoiceAgentVersionDetailLlmModel];\n\nexport const VoiceAgentVersionDetailLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 VoiceAgentVersionDetailNoiseCancellation =\n (typeof VoiceAgentVersionDetailNoiseCancellation)[keyof typeof VoiceAgentVersionDetailNoiseCancellation];\n\nexport const VoiceAgentVersionDetailNoiseCancellation = {\n NONE: \"NONE\",\n NC: \"NC\",\n BVC: \"BVC\",\n BVC_TELEPHONY: \"BVC_TELEPHONY\",\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 VoiceAgentVersionDetailSttModel =\n (typeof VoiceAgentVersionDetailSttModel)[keyof typeof VoiceAgentVersionDetailSttModel];\n\nexport const VoiceAgentVersionDetailSttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 VoiceAgentVersionDetailTtsModel =\n (typeof VoiceAgentVersionDetailTtsModel)[keyof typeof VoiceAgentVersionDetailTtsModel];\n\nexport const VoiceAgentVersionDetailTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 VoiceAgentVersionDetailTtsProvider =\n (typeof VoiceAgentVersionDetailTtsProvider)[keyof typeof VoiceAgentVersionDetailTtsProvider];\n\nexport const VoiceAgentVersionDetailTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 VoiceAgentWithTestPhoneNumberBackgroundSounds =\n (typeof VoiceAgentWithTestPhoneNumberBackgroundSounds)[keyof typeof VoiceAgentWithTestPhoneNumberBackgroundSounds];\n\nexport const VoiceAgentWithTestPhoneNumberBackgroundSounds = {\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 VoiceAgentWithTestPhoneNumberDirection =\n (typeof VoiceAgentWithTestPhoneNumberDirection)[keyof typeof VoiceAgentWithTestPhoneNumberDirection];\n\nexport const VoiceAgentWithTestPhoneNumberDirection = {\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 VoiceAgentWithTestPhoneNumberLanguage =\n (typeof VoiceAgentWithTestPhoneNumberLanguage)[keyof typeof VoiceAgentWithTestPhoneNumberLanguage];\n\nexport const VoiceAgentWithTestPhoneNumberLanguage = {\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 VoiceAgentWithTestPhoneNumberLlmModel =\n (typeof VoiceAgentWithTestPhoneNumberLlmModel)[keyof typeof VoiceAgentWithTestPhoneNumberLlmModel];\n\nexport const VoiceAgentWithTestPhoneNumberLlmModel = {\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 \"GPT-54-mini\": \"GPT-5.4-mini\",\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 VoiceAgentWithTestPhoneNumberNoiseCancellation =\n (typeof VoiceAgentWithTestPhoneNumberNoiseCancellation)[keyof typeof VoiceAgentWithTestPhoneNumberNoiseCancellation];\n\nexport const VoiceAgentWithTestPhoneNumberNoiseCancellation = {\n NONE: \"NONE\",\n NC: \"NC\",\n BVC: \"BVC\",\n BVC_TELEPHONY: \"BVC_TELEPHONY\",\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 VoiceAgentWithTestPhoneNumberSttModel =\n (typeof VoiceAgentWithTestPhoneNumberSttModel)[keyof typeof VoiceAgentWithTestPhoneNumberSttModel];\n\nexport const VoiceAgentWithTestPhoneNumberSttModel = {\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 \"CARTESIA-INK-2\": \"CARTESIA-INK-2\",\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 VoiceAgentWithTestPhoneNumberTtsModel =\n (typeof VoiceAgentWithTestPhoneNumberTtsModel)[keyof typeof VoiceAgentWithTestPhoneNumberTtsModel];\n\nexport const VoiceAgentWithTestPhoneNumberTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-3\": \"sonic-3\",\n \"sonic-35\": \"sonic-3.5\",\n \"sonic-preview\": \"sonic-preview\",\n chirp_3: \"chirp_3\",\n \"polly-neural\": \"polly-neural\",\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 VoiceAgentWithTestPhoneNumberTtsProvider =\n (typeof VoiceAgentWithTestPhoneNumberTtsProvider)[keyof typeof VoiceAgentWithTestPhoneNumberTtsProvider];\n\nexport const VoiceAgentWithTestPhoneNumberTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n \"aws-polly\": \"aws-polly\",\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 WorkerEnvironment =\n (typeof WorkerEnvironment)[keyof typeof WorkerEnvironment];\n\nexport const WorkerEnvironment = {\n live: \"live\",\n test: \"test\",\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 * MCP server identifier.\n */\nexport type WorkerMcpName = (typeof WorkerMcpName)[keyof typeof WorkerMcpName];\n\nexport const WorkerMcpName = {\n ventiv: \"ventiv\",\n klear: \"klear\",\n \"klear-browser\": \"klear-browser\",\n \"demo-browser\": \"demo-browser\",\n \"demo-claims\": \"demo-claims\",\n \"filehandler-browser\": \"filehandler-browser\",\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 * MCP server identifier.\n */\nexport type WorkerMcpOutputName =\n (typeof WorkerMcpOutputName)[keyof typeof WorkerMcpOutputName];\n\nexport const WorkerMcpOutputName = {\n ventiv: \"ventiv\",\n klear: \"klear\",\n \"klear-browser\": \"klear-browser\",\n \"demo-browser\": \"demo-browser\",\n \"demo-claims\": \"demo-claims\",\n \"filehandler-browser\": \"filehandler-browser\",\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 WorkerPermission =\n (typeof WorkerPermission)[keyof typeof WorkerPermission];\n\nexport const WorkerPermission = {\n \"workers:run\": \"workers:run\",\n \"inboxes:send\": \"inboxes:send\",\n \"artifacts:write\": \"artifacts:write\",\n \"outbound-jobs:schedule\": \"outbound-jobs:schedule\",\n \"cases:write\": \"cases:write\",\n \"schedules:write\": \"schedules:write\",\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 WorkerRunCreatedStatus =\n (typeof WorkerRunCreatedStatus)[keyof typeof WorkerRunCreatedStatus];\n\nexport const WorkerRunCreatedStatus = {\n pending: \"pending\",\n queued: \"queued\",\n starting: \"starting\",\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\n/**\n * Current run status\n */\nexport type WorkerRunStatus =\n (typeof WorkerRunStatus)[keyof typeof WorkerRunStatus];\n\nexport const WorkerRunStatus = {\n pending: \"pending\",\n queued: \"queued\",\n starting: \"starting\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n failed: \"failed\",\n canceled: \"canceled\",\n} as const;\n"]}