@avallon-labs/sdk 0.0.0-main.55 → 0.0.0-main.58
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.d.ts +18 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/openapi.yaml +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -540,6 +540,21 @@ interface ErrorResponse {
|
|
|
540
540
|
message: string;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
+
/**
|
|
544
|
+
* Generated by orval v8.1.0 🍺
|
|
545
|
+
* Do not edit manually.
|
|
546
|
+
* Avallon API
|
|
547
|
+
* OpenAPI spec version: 1.0.0
|
|
548
|
+
*/
|
|
549
|
+
/**
|
|
550
|
+
* Type of extractor
|
|
551
|
+
*/
|
|
552
|
+
type ExtractorJobExtractorType = (typeof ExtractorJobExtractorType)[keyof typeof ExtractorJobExtractorType];
|
|
553
|
+
declare const ExtractorJobExtractorType: {
|
|
554
|
+
readonly basic: "basic";
|
|
555
|
+
readonly agentic: "agentic";
|
|
556
|
+
};
|
|
557
|
+
|
|
543
558
|
/**
|
|
544
559
|
* Generated by orval v8.1.0 🍺
|
|
545
560
|
* Do not edit manually.
|
|
@@ -573,6 +588,8 @@ interface ExtractorJob {
|
|
|
573
588
|
extractor_version: number;
|
|
574
589
|
/** Name of the extractor */
|
|
575
590
|
extractor_name: string;
|
|
591
|
+
/** Type of extractor */
|
|
592
|
+
extractor_type: ExtractorJobExtractorType;
|
|
576
593
|
/** Current job status */
|
|
577
594
|
status: string;
|
|
578
595
|
/** Job scope metadata (e.g. claim_id, email_id) */
|
|
@@ -1339,4 +1356,4 @@ declare const useListExtractorJobs: <TError = ErrorType<ErrorResponse>>(params?:
|
|
|
1339
1356
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1340
1357
|
};
|
|
1341
1358
|
|
|
1342
|
-
export { type Agent, AgentBackgroundSounds, AgentDirection, AgentLanguage, type AgentList, AgentLlmModel, AgentSttModel, AgentTtsModel, AgentTtsProvider, type ApiKey, type ApiKeyCreated, type ApiKeyList, type AuthTokens, type AvallonConfig, AvallonError, type ConfirmationResponse, type CreateAgentBody, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, type CreateAgentMutationResult, type CreateAgentResponse, type CreateApiKeyBody, CreateApiKeyBodyEnvironment, type CreateApiKeyMutationResult, type EmptyResponse, type ErrorResponse, type ErrorResponseData, type ExtractorJob, type ExtractorJobList, type ExtractorJobScope, type GetAgentQueryResult, type GetAgentResponse, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type GetV1ExtractorJobsId200, type GetV1ExtractorJobsId200Data, type GetV1ExtractorJobsId200DataScope, type GetV1ExtractorJobsIdQueryResult, type ListAgentsParams, type ListAgentsQueryResult, ListApiKeysIncludeRevoked, type ListApiKeysParams, type ListApiKeysQueryResult, ListExtractorJobsExtractorType, type ListExtractorJobsParams, type ListExtractorJobsQueryResult, ListExtractorJobsSortBy, ListExtractorJobsSortOrder, ListExtractorJobsStatus, type OAuthUrl, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, type PostV1ExtractorJobs200, type PostV1ExtractorJobs200Scope, type PostV1ExtractorJobsBody, type PostV1ExtractorJobsBodyScope, type PostV1ExtractorJobsIdCancel200, type PostV1ExtractorJobsIdCancel200Scope, type PostV1ExtractorJobsIdCancelMutationResult, type PostV1ExtractorJobsMutationResult, type RevokeApiKeyMutationResult, configure, createAgent, createApiKey, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getGetV1ExtractorJobsIdKey, getGetV1ExtractorJobsIdUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getListExtractorJobsKey, getListExtractorJobsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getPostV1ExtractorJobsIdCancelMutationFetcher, getPostV1ExtractorJobsIdCancelMutationKey, getPostV1ExtractorJobsIdCancelUrl, getPostV1ExtractorJobsMutationFetcher, getPostV1ExtractorJobsMutationKey, getPostV1ExtractorJobsUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, getV1ExtractorJobsId, listAgents, listApiKeys, listExtractorJobs, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, postV1ExtractorJobs, postV1ExtractorJobsIdCancel, revokeApiKey, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useGetV1ExtractorJobsId, useListAgents, useListApiKeys, useListExtractorJobs, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, usePostV1ExtractorJobs, usePostV1ExtractorJobsIdCancel, useRevokeApiKey };
|
|
1359
|
+
export { type Agent, AgentBackgroundSounds, AgentDirection, AgentLanguage, type AgentList, AgentLlmModel, AgentSttModel, AgentTtsModel, AgentTtsProvider, type ApiKey, type ApiKeyCreated, type ApiKeyList, type AuthTokens, type AvallonConfig, AvallonError, type ConfirmationResponse, type CreateAgentBody, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, type CreateAgentMutationResult, type CreateAgentResponse, type CreateApiKeyBody, CreateApiKeyBodyEnvironment, type CreateApiKeyMutationResult, type EmptyResponse, type ErrorResponse, type ErrorResponseData, type ExtractorJob, ExtractorJobExtractorType, type ExtractorJobList, type ExtractorJobScope, type GetAgentQueryResult, type GetAgentResponse, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type GetV1ExtractorJobsId200, type GetV1ExtractorJobsId200Data, type GetV1ExtractorJobsId200DataScope, type GetV1ExtractorJobsIdQueryResult, type ListAgentsParams, type ListAgentsQueryResult, ListApiKeysIncludeRevoked, type ListApiKeysParams, type ListApiKeysQueryResult, ListExtractorJobsExtractorType, type ListExtractorJobsParams, type ListExtractorJobsQueryResult, ListExtractorJobsSortBy, ListExtractorJobsSortOrder, ListExtractorJobsStatus, type OAuthUrl, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, type PostV1ExtractorJobs200, type PostV1ExtractorJobs200Scope, type PostV1ExtractorJobsBody, type PostV1ExtractorJobsBodyScope, type PostV1ExtractorJobsIdCancel200, type PostV1ExtractorJobsIdCancel200Scope, type PostV1ExtractorJobsIdCancelMutationResult, type PostV1ExtractorJobsMutationResult, type RevokeApiKeyMutationResult, configure, createAgent, createApiKey, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getGetV1ExtractorJobsIdKey, getGetV1ExtractorJobsIdUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getListExtractorJobsKey, getListExtractorJobsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getPostV1ExtractorJobsIdCancelMutationFetcher, getPostV1ExtractorJobsIdCancelMutationKey, getPostV1ExtractorJobsIdCancelUrl, getPostV1ExtractorJobsMutationFetcher, getPostV1ExtractorJobsMutationKey, getPostV1ExtractorJobsUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, getV1ExtractorJobsId, listAgents, listApiKeys, listExtractorJobs, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, postV1ExtractorJobs, postV1ExtractorJobsIdCancel, revokeApiKey, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useGetV1ExtractorJobsId, useListAgents, useListApiKeys, useListExtractorJobs, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, usePostV1ExtractorJobs, usePostV1ExtractorJobsIdCancel, useRevokeApiKey };
|
package/dist/index.js
CHANGED
|
@@ -604,6 +604,12 @@ var CreateApiKeyBodyEnvironment = {
|
|
|
604
604
|
live: "live"
|
|
605
605
|
};
|
|
606
606
|
|
|
607
|
+
// generated/models/extractorJobExtractorType.ts
|
|
608
|
+
var ExtractorJobExtractorType = {
|
|
609
|
+
basic: "basic",
|
|
610
|
+
agentic: "agentic"
|
|
611
|
+
};
|
|
612
|
+
|
|
607
613
|
// generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts
|
|
608
614
|
var GetV1AuthOauthUrlCodeChallengeMethod = {
|
|
609
615
|
plain: "plain",
|
|
@@ -650,6 +656,6 @@ var ListExtractorJobsStatus = {
|
|
|
650
656
|
canceled: "canceled"
|
|
651
657
|
};
|
|
652
658
|
|
|
653
|
-
export { AgentBackgroundSounds, AgentDirection, AgentLanguage, AgentLlmModel, AgentSttModel, AgentTtsModel, AgentTtsProvider, AvallonError, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, CreateApiKeyBodyEnvironment, GetV1AuthOauthUrlCodeChallengeMethod, GetV1AuthOauthUrlProvider, ListApiKeysIncludeRevoked, ListExtractorJobsExtractorType, ListExtractorJobsSortBy, ListExtractorJobsSortOrder, ListExtractorJobsStatus, configure, createAgent, createApiKey, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getGetV1ExtractorJobsIdKey, getGetV1ExtractorJobsIdUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getListExtractorJobsKey, getListExtractorJobsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getPostV1ExtractorJobsIdCancelMutationFetcher, getPostV1ExtractorJobsIdCancelMutationKey, getPostV1ExtractorJobsIdCancelUrl, getPostV1ExtractorJobsMutationFetcher, getPostV1ExtractorJobsMutationKey, getPostV1ExtractorJobsUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, getV1ExtractorJobsId, listAgents, listApiKeys, listExtractorJobs, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, postV1ExtractorJobs, postV1ExtractorJobsIdCancel, revokeApiKey, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useGetV1ExtractorJobsId, useListAgents, useListApiKeys, useListExtractorJobs, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, usePostV1ExtractorJobs, usePostV1ExtractorJobsIdCancel, useRevokeApiKey };
|
|
659
|
+
export { AgentBackgroundSounds, AgentDirection, AgentLanguage, AgentLlmModel, AgentSttModel, AgentTtsModel, AgentTtsProvider, AvallonError, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, CreateApiKeyBodyEnvironment, ExtractorJobExtractorType, GetV1AuthOauthUrlCodeChallengeMethod, GetV1AuthOauthUrlProvider, ListApiKeysIncludeRevoked, ListExtractorJobsExtractorType, ListExtractorJobsSortBy, ListExtractorJobsSortOrder, ListExtractorJobsStatus, configure, createAgent, createApiKey, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getGetV1ExtractorJobsIdKey, getGetV1ExtractorJobsIdUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getListExtractorJobsKey, getListExtractorJobsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getPostV1ExtractorJobsIdCancelMutationFetcher, getPostV1ExtractorJobsIdCancelMutationKey, getPostV1ExtractorJobsIdCancelUrl, getPostV1ExtractorJobsMutationFetcher, getPostV1ExtractorJobsMutationKey, getPostV1ExtractorJobsUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, getV1ExtractorJobsId, listAgents, listApiKeys, listExtractorJobs, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, postV1ExtractorJobs, postV1ExtractorJobsIdCancel, revokeApiKey, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useGetV1ExtractorJobsId, useListAgents, useListApiKeys, useListExtractorJobs, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, usePostV1ExtractorJobs, usePostV1ExtractorJobsIdCancel, useRevokeApiKey };
|
|
654
660
|
//# sourceMappingURL=index.js.map
|
|
655
661
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/fetcher.ts","../src/auth.ts","../generated/endpoints/agents/agents.ts","../generated/endpoints/api-keys/api-keys.ts","../generated/endpoints/auth/auth.ts","../generated/endpoints/default/default.ts","../generated/endpoints/extraction-jobs/extraction-jobs.ts","../generated/models/agentBackgroundSounds.ts","../generated/models/agentDirection.ts","../generated/models/agentLanguage.ts","../generated/models/agentLlmModel.ts","../generated/models/agentSttModel.ts","../generated/models/agentTtsModel.ts","../generated/models/agentTtsProvider.ts","../generated/models/createAgentBodyDirection.ts","../generated/models/createAgentBodyLanguage.ts","../generated/models/createAgentBodyLlmModel.ts","../generated/models/createAgentBodySttModel.ts","../generated/models/createAgentBodyTtsModel.ts","../generated/models/createAgentBodyTtsProvider.ts","../generated/models/createApiKeyBodyEnvironment.ts","../generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts","../generated/models/getV1AuthOauthUrlProvider.ts","../generated/models/listApiKeysIncludeRevoked.ts","../generated/models/listExtractorJobsExtractorType.ts","../generated/models/listExtractorJobsSortBy.ts","../generated/models/listExtractorJobsSortOrder.ts","../generated/models/listExtractorJobsStatus.ts"],"names":["useSWRMutation","useSwr"],"mappings":";;;;AAUA,IAAI,MAAA,GAAwB;AAAA,EAC1B,OAAA,EAAS;AACX,CAAA;AAaO,SAAS,UAAU,SAAA,EAAmC;AAC3D,EAAA,MAAA,GAAS,EAAE,GAAG,MAAA,EAAQ,GAAG,SAAA,EAAU;AACrC;AAGO,SAAS,SAAA,GAA2B;AACzC,EAAA,OAAO,EAAE,GAAG,MAAA,EAAO;AACrB;AAOA,eAAe,OAAA,CACb,GAAA,EACA,OAAA,EACA,QAAA,EACY;AACZ,EAAA,MAAM,OAAA,GAAU,GAAA,CAAI,UAAA,CAAW,MAAM,CAAA,GAAI,MAAM,CAAA,EAAG,MAAA,CAAO,OAAO,CAAA,EAAG,GAAG,CAAA,CAAA;AAEtE,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,GAAA,CAAI,eAAA,EAAiB,CAAA,OAAA,EAAU,WAAW,CAAA,CAAE,CAAA;AAAA,IACtD,CAAA,MAAA,IAAW,OAAO,MAAA,EAAQ;AACxB,MAAA,OAAA,CAAQ,GAAA,CAAI,WAAA,EAAa,MAAA,CAAO,MAAM,CAAA;AAAA,IACxC;AAAA,EACF;AAEA,EAAA,MAAM,QAAA,GAAW,MAAM,KAAA,CAAM,OAAA,EAAS;AAAA,I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AA,EAAS;AACX;;;ACHO,IAAM,uBAAA,GAA0B;AAAA,EACrC,UAAA,EAAY,YAAA;AAAA,EACZ,UAAA,EAAY,YAAA;AAAA,EACZ,YAAA,EAAc;AAChB;;;ACJO,IAAM,0BAAA,GAA6B;AAAA,EACxC,GAAA,EAAK,KAAA;AAAA,EACL,IAAA,EAAM;AACR;;;ACHO,IAAM,uBAAA,GAA0B;AAAA,EACrC,MAAA,EAAQ,QAAA;AAAA,EACR,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\n// --------------------------------------------------------------------------\n// Configuration\n// --------------------------------------------------------------------------\n\nlet config: AvallonConfig = {\n baseUrl: \"https://api.avallon.ai\",\n};\n\nexport type AvallonConfig = {\n baseUrl?: string;\n apiKey?: string;\n /**\n * Token provider - can be sync or async.\n * Async allows the application to check expiry and refresh before returning.\n */\n getAccessToken?: () => string | null | Promise<string | null>;\n};\n\n/** Configure the SDK at runtime */\nexport function configure(newConfig: Partial<AvallonConfig>) {\n config = { ...config, ...newConfig };\n}\n\n/** Get current config */\nexport function getConfig(): AvallonConfig {\n return { ...config };\n}\n\n// --------------------------------------------------------------------------\n// Fetch wrapper\n// --------------------------------------------------------------------------\n\n/** Shared fetch logic */\nasync function doFetch<T>(\n url: string,\n options: RequestInit,\n withAuth: boolean\n): Promise<T> {\n const fullUrl = url.startsWith(\"http\") ? url : `${config.baseUrl}${url}`;\n\n const headers = new Headers(options.headers);\n\n // Only set Content-Type for requests with JSON body\n // (allows file uploads to set their own Content-Type)\n if (options.body && typeof options.body === \"string\") {\n headers.set(\"Content-Type\", \"application/json\");\n }\n\n if (withAuth) {\n const accessToken = await config.getAccessToken?.();\n if (accessToken) {\n headers.set(\"Authorization\", `Bearer ${accessToken}`);\n } else if (config.apiKey) {\n headers.set(\"x-api-key\", config.apiKey);\n }\n }\n\n const response = await fetch(fullUrl, {\n ...options,\n headers,\n });\n\n // Parse response based on content type\n const contentType = response.headers.get(\"Content-Type\") ?? \"\";\n let body: unknown;\n\n if (response.status === 204) {\n // No content\n body = {};\n } else if (contentType.includes(\"application/json\")) {\n body = await response.json().catch(() => ({}));\n } else {\n // Non-JSON response (shouldn't happen with our API, but handle gracefully)\n const text = await response.text().catch(() => \"\");\n body = { message: text };\n }\n\n // Throw on non-2xx - SWR will catch this as `error`\n if (!response.ok) {\n throw new AvallonError(response.status, body as AvallonError[\"body\"]);\n }\n\n // Strip the API envelope ({ data, message }) — return payload directly\n return ((body as Record<string, unknown>)?.data ?? body) as T;\n}\n\n/** Authenticated fetch - adds API key or Bearer token */\nexport async function customFetch<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, true);\n}\n\n/** Unauthenticated fetch - for auth flow endpoints (sign-in, sign-up, etc.) */\nexport async function customFetchNoAuth<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, false);\n}\n\n// --------------------------------------------------------------------------\n// Errors\n// --------------------------------------------------------------------------\n\n/** Orval uses this to type the `error` field in SWR hooks as AvallonError */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ErrorType<E> = AvallonError;\n\n/** Typed error class for API errors. Thrown by customFetch on non-2xx responses. */\nexport class AvallonError extends Error {\n constructor(\n public readonly status: number,\n public readonly body: {\n data?: unknown;\n message?: string;\n }\n ) {\n super(body?.message ?? `API error ${status}`);\n this.name = \"AvallonError\";\n }\n\n /** Validation errors (400) have field-level details */\n get errors(): Array<{ field: string; message: string }> | undefined {\n const data = this.body?.data as {\n errors?: Array<{ field: string; message: string }>;\n };\n return data?.errors;\n }\n\n isValidationError(): boolean {\n return this.status === 400;\n }\n\n isUnauthorized(): boolean {\n return this.status === 401;\n }\n\n isNotFound(): boolean {\n return this.status === 404;\n }\n}\n","/**\n * PKCE Utilities\n *\n * Cryptographic helpers for OAuth PKCE flow. Platform-agnostic -\n * works in both Node.js and browsers via Web Crypto API.\n *\n * These utilities can't be generated from OpenAPI - they're\n * client-side crypto that complements the generated auth endpoints.\n *\n * @example\n * ```ts\n * import {\n * generateCodeVerifier,\n * generateCodeChallenge,\n * getV1AuthOauthUrl,\n * postV1AuthOauthExchange,\n * } from \"@avallon-labs/sdk\";\n *\n * // 1. Generate PKCE pair\n * const verifier = generateCodeVerifier();\n * const challenge = await generateCodeChallenge(verifier);\n *\n * // 2. Get OAuth URL (store verifier for after redirect)\n * sessionStorage.setItem(\"oauth_verifier\", verifier);\n * const { data } = await getV1AuthOauthUrl({\n * provider: \"google\",\n * redirect_uri: \"https://app.example.com/callback\",\n * code_challenge: challenge,\n * code_challenge_method: \"s256\",\n * });\n * window.location.href = data.data.url;\n *\n * // 3. After redirect, exchange code for tokens\n * const verifier = sessionStorage.getItem(\"oauth_verifier\");\n * const tokens = await postV1AuthOauthExchange({\n * code: urlParams.get(\"code\"),\n * code_verifier: verifier,\n * });\n * ```\n */\n\n// --------------------------------------------------------------------------\n// PKCE Utilities\n// --------------------------------------------------------------------------\n\n/** Generate a cryptographically random code verifier (43-128 chars) */\nexport function generateCodeVerifier(length = 64): string {\n const charset =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~\";\n const randomValues = crypto.getRandomValues(new Uint8Array(length));\n return Array.from(randomValues)\n .map((v) => charset[v % charset.length])\n .join(\"\");\n}\n\n/** Generate S256 code challenge from verifier */\nexport async function generateCodeChallenge(verifier: string): Promise<string> {\n const encoder = new TextEncoder();\n const data = encoder.encode(verifier);\n const digest = await crypto.subtle.digest(\"SHA-256\", data);\n return base64UrlEncode(digest);\n}\n\nfunction base64UrlEncode(buffer: ArrayBuffer): string {\n const bytes = new Uint8Array(buffer);\n let binary = \"\";\n for (const byte of bytes) {\n binary += String.fromCharCode(byte);\n }\n return btoa(binary)\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=+$/, \"\");\n}\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n AgentList,\n CreateAgentBody,\n CreateAgentResponse,\n ErrorResponse,\n GetAgentResponse,\n ListAgentsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all agents for your tenant.\n\n**Filtering:**\n\nFilter agents by name using the `agent_name` query parameter (exact match).\n\n**Response:**\n\nReturns an array of all agents with their configurations and a total count.\n * @summary List agents\n */\nexport const getListAgentsUrl = (params?: ListAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/agents?${stringifiedParams}`\n : `/v1/agents`;\n};\n\nexport const listAgents = async (\n params?: ListAgentsParams,\n options?: RequestInit\n): Promise<AgentList> => {\n return customFetch<AgentList>(getListAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListAgentsKey = (params?: ListAgentsParams) =>\n [`/v1/agents`, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgents>>\n>;\n\n/**\n * @summary List agents\n */\nexport const useListAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListAgentsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listAgents>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getListAgentsKey(params) : null));\n const swrFn = () => listAgents(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Create a new voice agent with the specified configuration.\n\n**Required fields:**\n\nAll fields in the request body are required except `phone_number_id` and `transfer_phone_number`.\n\n**Response:**\n\nReturns the created agent with its ID and configuration.\n * @summary Create agent\n */\nexport const getCreateAgentUrl = () => {\n return `/v1/agents`;\n};\n\nexport const createAgent = async (\n createAgentBody: CreateAgentBody,\n options?: RequestInit\n): Promise<CreateAgentResponse> => {\n return customFetch<CreateAgentResponse>(getCreateAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentBody),\n });\n};\n\nexport const getCreateAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentBody }) => {\n return createAgent(arg, options);\n };\n};\nexport const getCreateAgentMutationKey = () => [`/v1/agents`] as const;\n\nexport type CreateAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgent>>\n>;\n\n/**\n * @summary Create agent\n */\nexport const useCreateAgent = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createAgent>>,\n TError,\n Key,\n CreateAgentBody,\n Awaited<ReturnType<typeof createAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateAgentMutationKey();\n const swrFn = getCreateAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single agent by ID.\n * @summary Get agent\n */\nexport const getGetAgentUrl = (id: string) => {\n return `/v1/agents/${id}`;\n};\n\nexport const getAgent = async (\n id: string,\n options?: RequestInit\n): Promise<GetAgentResponse> => {\n return customFetch<GetAgentResponse>(getGetAgentUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetAgentKey = (id: string) => [`/v1/agents/${id}`] as const;\n\nexport type GetAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAgent>>\n>;\n\n/**\n * @summary Get agent\n */\nexport const useGetAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getAgent>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false && !!id;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetAgentKey(id) : null));\n const swrFn = () => getAgent(id, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ApiKeyCreated,\n ApiKeyList,\n ConfirmationResponse,\n CreateApiKeyBody,\n ErrorResponse,\n ListApiKeysParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all API keys for your tenant.\n\nBy default, revoked keys are excluded. Set `include_revoked=true` to include them.\n\n**Note:** The full API key value is never returned — only the key prefix is shown.\n * @summary List API keys\n */\nexport const getListApiKeysUrl = (params?: ListApiKeysParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/platform/api-keys?${stringifiedParams}`\n : `/platform/api-keys`;\n};\n\nexport const listApiKeys = async (\n params?: ListApiKeysParams,\n options?: RequestInit\n): Promise<ApiKeyList> => {\n return customFetch<ApiKeyList>(getListApiKeysUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListApiKeysKey = (params?: ListApiKeysParams) =>\n [`/platform/api-keys`, ...(params ? [params] : [])] as const;\n\nexport type ListApiKeysQueryResult = NonNullable<\n Awaited<ReturnType<typeof listApiKeys>>\n>;\n\n/**\n * @summary List API keys\n */\nexport const useListApiKeys = <TError = ErrorType<ErrorResponse>>(\n params?: ListApiKeysParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listApiKeys>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListApiKeysKey(params) : null));\n const swrFn = () => listApiKeys(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Create a new API key for authenticating with the Avallon API.\n\n**Important:** The full API key is only returned once in the response. Store it securely — it cannot be retrieved again.\n\nKeys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.\n * @summary Create an API key\n */\nexport const getCreateApiKeyUrl = () => {\n return `/platform/api-keys`;\n};\n\nexport const createApiKey = async (\n createApiKeyBody: CreateApiKeyBody,\n options?: RequestInit\n): Promise<ApiKeyCreated> => {\n return customFetch<ApiKeyCreated>(getCreateApiKeyUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createApiKeyBody),\n });\n};\n\nexport const getCreateApiKeyMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateApiKeyBody }) => {\n return createApiKey(arg, options);\n };\n};\nexport const getCreateApiKeyMutationKey = () => [`/platform/api-keys`] as const;\n\nexport type CreateApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof createApiKey>>\n>;\n\n/**\n * @summary Create an API key\n */\nexport const useCreateApiKey = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createApiKey>>,\n TError,\n Key,\n CreateApiKeyBody,\n Awaited<ReturnType<typeof createApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateApiKeyMutationKey();\n const swrFn = getCreateApiKeyMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Revoke an existing API key. Once revoked, the key can no longer be used for authentication.\n\nThis operation is irreversible — revoked keys cannot be re-enabled. Create a new key if needed.\n\nReturns 409 if the key is already revoked, 404 if the key does not exist.\n * @summary Revoke an API key\n */\nexport const getRevokeApiKeyUrl = (id: string) => {\n return `/platform/api-keys/${id}/revoke`;\n};\n\nexport const revokeApiKey = async (\n id: string,\n options?: RequestInit\n): Promise<ConfirmationResponse> => {\n return customFetch<ConfirmationResponse>(getRevokeApiKeyUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getRevokeApiKeyMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return revokeApiKey(id, options);\n };\n};\nexport const getRevokeApiKeyMutationKey = (id: string) =>\n [`/platform/api-keys/${id}/revoke`] as const;\n\nexport type RevokeApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof revokeApiKey>>\n>;\n\n/**\n * @summary Revoke an API key\n */\nexport const useRevokeApiKey = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof revokeApiKey>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof revokeApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRevokeApiKeyMutationKey(id);\n const swrFn = getRevokeApiKeyMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n AuthTokens,\n EmptyResponse,\n ErrorResponse,\n GetV1AuthOauthUrlParams,\n OAuthUrl,\n PostV1AuthRefreshTokenBody,\n PostV1AuthSignInBody,\n PostV1AuthSignUpBody,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getPostV1AuthSignUpUrl = () => {\n return `/v1/auth/sign-up`;\n};\n\nexport const postV1AuthSignUp = async (\n postV1AuthSignUpBody: PostV1AuthSignUpBody,\n options?: RequestInit\n): Promise<EmptyResponse> => {\n return customFetchNoAuth<EmptyResponse>(getPostV1AuthSignUpUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignUpBody),\n });\n};\n\nexport const getPostV1AuthSignUpMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignUpBody }) => {\n return postV1AuthSignUp(arg, options);\n };\n};\nexport const getPostV1AuthSignUpMutationKey = () =>\n [`/v1/auth/sign-up`] as const;\n\nexport type PostV1AuthSignUpMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n>;\n\nexport const usePostV1AuthSignUp = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignUp>>,\n TError,\n Key,\n PostV1AuthSignUpBody,\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignUpMutationKey();\n const swrFn = getPostV1AuthSignUpMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getPostV1AuthSignInUrl = () => {\n return `/v1/auth/sign-in`;\n};\n\nexport const postV1AuthSignIn = async (\n postV1AuthSignInBody: PostV1AuthSignInBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getPostV1AuthSignInUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignInBody),\n });\n};\n\nexport const getPostV1AuthSignInMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignInBody }) => {\n return postV1AuthSignIn(arg, options);\n };\n};\nexport const getPostV1AuthSignInMutationKey = () =>\n [`/v1/auth/sign-in`] as const;\n\nexport type PostV1AuthSignInMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n>;\n\nexport const usePostV1AuthSignIn = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignIn>>,\n TError,\n Key,\n PostV1AuthSignInBody,\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignInMutationKey();\n const swrFn = getPostV1AuthSignInMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getPostV1AuthRefreshTokenUrl = () => {\n return `/v1/auth/refresh-token`;\n};\n\nexport const postV1AuthRefreshToken = async (\n postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getPostV1AuthRefreshTokenUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthRefreshTokenBody),\n });\n};\n\nexport const getPostV1AuthRefreshTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthRefreshTokenBody }) => {\n return postV1AuthRefreshToken(arg, options);\n };\n};\nexport const getPostV1AuthRefreshTokenMutationKey = () =>\n [`/v1/auth/refresh-token`] as const;\n\nexport type PostV1AuthRefreshTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n>;\n\nexport const usePostV1AuthRefreshToken = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>,\n TError,\n Key,\n PostV1AuthRefreshTokenBody,\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthRefreshTokenMutationKey();\n const swrFn = getPostV1AuthRefreshTokenMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getGetV1AuthOauthUrlUrl = (params: GetV1AuthOauthUrlParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/auth/oauth-url?${stringifiedParams}`\n : `/v1/auth/oauth-url`;\n};\n\nexport const getV1AuthOauthUrl = async (\n params: GetV1AuthOauthUrlParams,\n options?: RequestInit\n): Promise<OAuthUrl> => {\n return customFetchNoAuth<OAuthUrl>(getGetV1AuthOauthUrlUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetV1AuthOauthUrlKey = (params: GetV1AuthOauthUrlParams) =>\n [`/v1/auth/oauth-url`, ...(params ? [params] : [])] as const;\n\nexport type GetV1AuthOauthUrlQueryResult = NonNullable<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>\n>;\n\nexport const useGetV1AuthOauthUrl = <TError = ErrorType<ErrorResponse>>(\n params: GetV1AuthOauthUrlParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetV1AuthOauthUrlKey(params) : null));\n const swrFn = () => getV1AuthOauthUrl(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\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 GetV1ExtractorJobsId200,\n PostV1ExtractorJobs200,\n PostV1ExtractorJobsBody,\n PostV1ExtractorJobsIdCancel200,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getPostV1ExtractorJobsUrl = () => {\n return `/v1/extractor-jobs`;\n};\n\nexport const postV1ExtractorJobs = async (\n postV1ExtractorJobsBody: PostV1ExtractorJobsBody,\n options?: RequestInit\n): Promise<PostV1ExtractorJobs200> => {\n return customFetch<PostV1ExtractorJobs200>(getPostV1ExtractorJobsUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1ExtractorJobsBody),\n });\n};\n\nexport const getPostV1ExtractorJobsMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PostV1ExtractorJobsBody }) => {\n return postV1ExtractorJobs(arg, options);\n };\n};\nexport const getPostV1ExtractorJobsMutationKey = () =>\n [`/v1/extractor-jobs`] as const;\n\nexport type PostV1ExtractorJobsMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1ExtractorJobs>>\n>;\n\nexport const usePostV1ExtractorJobs = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1ExtractorJobs>>,\n TError,\n Key,\n PostV1ExtractorJobsBody,\n Awaited<ReturnType<typeof postV1ExtractorJobs>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1ExtractorJobsMutationKey();\n const swrFn = getPostV1ExtractorJobsMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getGetV1ExtractorJobsIdUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}`;\n};\n\nexport const getV1ExtractorJobsId = async (\n id: string,\n options?: RequestInit\n): Promise<GetV1ExtractorJobsId200> => {\n return customFetch<GetV1ExtractorJobsId200>(getGetV1ExtractorJobsIdUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetV1ExtractorJobsIdKey = (id: string) =>\n [`/v1/extractor-jobs/${id}`] as const;\n\nexport type GetV1ExtractorJobsIdQueryResult = NonNullable<\n Awaited<ReturnType<typeof getV1ExtractorJobsId>>\n>;\n\nexport const useGetV1ExtractorJobsId = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getV1ExtractorJobsId>>,\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 ? getGetV1ExtractorJobsIdKey(id) : null));\n const swrFn = () => getV1ExtractorJobsId(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};\nexport const getPostV1ExtractorJobsIdCancelUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}/cancel`;\n};\n\nexport const postV1ExtractorJobsIdCancel = async (\n id: string,\n options?: RequestInit\n): Promise<PostV1ExtractorJobsIdCancel200> => {\n return customFetch<PostV1ExtractorJobsIdCancel200>(\n getPostV1ExtractorJobsIdCancelUrl(id),\n {\n ...options,\n method: \"POST\",\n }\n );\n};\n\nexport const getPostV1ExtractorJobsIdCancelMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return postV1ExtractorJobsIdCancel(id, options);\n };\n};\nexport const getPostV1ExtractorJobsIdCancelMutationKey = (id: string) =>\n [`/v1/extractor-jobs/${id}/cancel`] as const;\n\nexport type PostV1ExtractorJobsIdCancelMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>\n>;\n\nexport const usePostV1ExtractorJobsIdCancel = <\n TError = ErrorType<ErrorResponse>,\n>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getPostV1ExtractorJobsIdCancelMutationKey(id);\n const swrFn = getPostV1ExtractorJobsIdCancelMutationFetcher(\n id,\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 ExtractorJobList,\n ListExtractorJobsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all extraction jobs with pagination, filtering, and sorting.\n\n**Type Filtering:**\n\nFilter by `extractor_type` to see only `basic` or `agentic` jobs. Omit to return all types.\n\n**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[call_id]=abc-123`\n- `scope[email_id]=xyz-456`\n\nMultiple scope filters can be combined (AND logic).\n * @summary List extractor jobs\n */\nexport const getListExtractorJobsUrl = (params?: ListExtractorJobsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/extractor-jobs?${stringifiedParams}`\n : `/v1/extractor-jobs`;\n};\n\nexport const listExtractorJobs = async (\n params?: ListExtractorJobsParams,\n options?: RequestInit\n): Promise<ExtractorJobList> => {\n return customFetch<ExtractorJobList>(getListExtractorJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractorJobsKey = (params?: ListExtractorJobsParams) =>\n [`/v1/extractor-jobs`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractorJobsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtractorJobs>>\n>;\n\n/**\n * @summary List extractor jobs\n */\nexport const useListExtractorJobs = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractorJobsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listExtractorJobs>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListExtractorJobsKey(params) : null));\n const swrFn = () => listExtractorJobs(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentBackgroundSounds =\n (typeof AgentBackgroundSounds)[keyof typeof AgentBackgroundSounds];\n\nexport const AgentBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentDirection =\n (typeof AgentDirection)[keyof typeof AgentDirection];\n\nexport const AgentDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentLanguage = (typeof AgentLanguage)[keyof typeof AgentLanguage];\n\nexport const AgentLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentLlmModel = (typeof AgentLlmModel)[keyof typeof AgentLlmModel];\n\nexport const AgentLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentSttModel = (typeof AgentSttModel)[keyof typeof AgentSttModel];\n\nexport const AgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentTtsModel = (typeof AgentTtsModel)[keyof typeof AgentTtsModel];\n\nexport const AgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentTtsProvider =\n (typeof AgentTtsProvider)[keyof typeof AgentTtsProvider];\n\nexport const AgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Call direction the agent handles\n */\nexport type CreateAgentBodyDirection =\n (typeof CreateAgentBodyDirection)[keyof typeof CreateAgentBodyDirection];\n\nexport const CreateAgentBodyDirection = {\n OUTBOUND: \"OUTBOUND\",\n INBOUND: \"INBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Language for the agent\n */\nexport type CreateAgentBodyLanguage =\n (typeof CreateAgentBodyLanguage)[keyof typeof CreateAgentBodyLanguage];\n\nexport const CreateAgentBodyLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * LLM model for conversation\n */\nexport type CreateAgentBodyLlmModel =\n (typeof CreateAgentBodyLlmModel)[keyof typeof CreateAgentBodyLlmModel];\n\nexport const CreateAgentBodyLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Speech-to-text model\n */\nexport type CreateAgentBodySttModel =\n (typeof CreateAgentBodySttModel)[keyof typeof CreateAgentBodySttModel];\n\nexport const CreateAgentBodySttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech model\n */\nexport type CreateAgentBodyTtsModel =\n (typeof CreateAgentBodyTtsModel)[keyof typeof CreateAgentBodyTtsModel];\n\nexport const CreateAgentBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech provider\n */\nexport type CreateAgentBodyTtsProvider =\n (typeof CreateAgentBodyTtsProvider)[keyof typeof CreateAgentBodyTtsProvider];\n\nexport const CreateAgentBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Target environment for the key\n */\nexport type CreateApiKeyBodyEnvironment =\n (typeof CreateApiKeyBodyEnvironment)[keyof typeof CreateApiKeyBodyEnvironment];\n\nexport const CreateApiKeyBodyEnvironment = {\n test: \"test\",\n live: \"live\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlCodeChallengeMethod =\n (typeof GetV1AuthOauthUrlCodeChallengeMethod)[keyof typeof GetV1AuthOauthUrlCodeChallengeMethod];\n\nexport const GetV1AuthOauthUrlCodeChallengeMethod = {\n plain: \"plain\",\n s256: \"s256\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlProvider =\n (typeof GetV1AuthOauthUrlProvider)[keyof typeof GetV1AuthOauthUrlProvider];\n\nexport const GetV1AuthOauthUrlProvider = {\n google: \"google\",\n microsoft: \"microsoft\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type 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 ListExtractorJobsExtractorType =\n (typeof ListExtractorJobsExtractorType)[keyof typeof ListExtractorJobsExtractorType];\n\nexport const ListExtractorJobsExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListExtractorJobsSortBy =\n (typeof ListExtractorJobsSortBy)[keyof typeof ListExtractorJobsSortBy];\n\nexport const ListExtractorJobsSortBy = {\n created_at: \"created_at\",\n started_at: \"started_at\",\n completed_at: \"completed_at\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListExtractorJobsSortOrder =\n (typeof ListExtractorJobsSortOrder)[keyof typeof ListExtractorJobsSortOrder];\n\nexport const ListExtractorJobsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListExtractorJobsStatus =\n (typeof ListExtractorJobsStatus)[keyof typeof ListExtractorJobsStatus];\n\nexport const ListExtractorJobsStatus = {\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n failed: \"failed\",\n canceled: \"canceled\",\n} as const;\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/fetcher.ts","../src/auth.ts","../generated/endpoints/agents/agents.ts","../generated/endpoints/api-keys/api-keys.ts","../generated/endpoints/auth/auth.ts","../generated/endpoints/default/default.ts","../generated/endpoints/extraction-jobs/extraction-jobs.ts","../generated/models/agentBackgroundSounds.ts","../generated/models/agentDirection.ts","../generated/models/agentLanguage.ts","../generated/models/agentLlmModel.ts","../generated/models/agentSttModel.ts","../generated/models/agentTtsModel.ts","../generated/models/agentTtsProvider.ts","../generated/models/createAgentBodyDirection.ts","../generated/models/createAgentBodyLanguage.ts","../generated/models/createAgentBodyLlmModel.ts","../generated/models/createAgentBodySttModel.ts","../generated/models/createAgentBodyTtsModel.ts","../generated/models/createAgentBodyTtsProvider.ts","../generated/models/createApiKeyBodyEnvironment.ts","../generated/models/extractorJobExtractorType.ts","../generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts","../generated/models/getV1AuthOauthUrlProvider.ts","../generated/models/listApiKeysIncludeRevoked.ts","../generated/models/listExtractorJobsExtractorType.ts","../generated/models/listExtractorJobsSortBy.ts","../generated/models/listExtractorJobsSortOrder.ts","../generated/models/listExtractorJobsStatus.ts"],"names":["useSWRMutation","useSwr"],"mappings":";;;;AAUA,IAAI,MAAA,GAAwB;AAAA,EAC1B,OAAA,EAAS;AACX,CAAA;AAaO,SAAS,UAAU,SAAA,EAAmC;AAC3D,EAAA,MAAA,GAAS,EAAE,GAAG,MAAA,EAAQ,GAAG,SAAA,EAAU;AACrC;AAGO,SAAS,SAAA,GAA2B;AACzC,EAAA,OAAO,EAAE,GAAG,MAAA,EAAO;AACrB;AAOA,eAAe,OAAA,CACb,GAAA,EACA,OAAA,EACA,QAAA,EACY;AACZ,EAAA,MAAM,O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AAA,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\n// --------------------------------------------------------------------------\n// Configuration\n// --------------------------------------------------------------------------\n\nlet config: AvallonConfig = {\n baseUrl: \"https://api.avallon.ai\",\n};\n\nexport type AvallonConfig = {\n baseUrl?: string;\n apiKey?: string;\n /**\n * Token provider - can be sync or async.\n * Async allows the application to check expiry and refresh before returning.\n */\n getAccessToken?: () => string | null | Promise<string | null>;\n};\n\n/** Configure the SDK at runtime */\nexport function configure(newConfig: Partial<AvallonConfig>) {\n config = { ...config, ...newConfig };\n}\n\n/** Get current config */\nexport function getConfig(): AvallonConfig {\n return { ...config };\n}\n\n// --------------------------------------------------------------------------\n// Fetch wrapper\n// --------------------------------------------------------------------------\n\n/** Shared fetch logic */\nasync function doFetch<T>(\n url: string,\n options: RequestInit,\n withAuth: boolean\n): Promise<T> {\n const fullUrl = url.startsWith(\"http\") ? url : `${config.baseUrl}${url}`;\n\n const headers = new Headers(options.headers);\n\n // Only set Content-Type for requests with JSON body\n // (allows file uploads to set their own Content-Type)\n if (options.body && typeof options.body === \"string\") {\n headers.set(\"Content-Type\", \"application/json\");\n }\n\n if (withAuth) {\n const accessToken = await config.getAccessToken?.();\n if (accessToken) {\n headers.set(\"Authorization\", `Bearer ${accessToken}`);\n } else if (config.apiKey) {\n headers.set(\"x-api-key\", config.apiKey);\n }\n }\n\n const response = await fetch(fullUrl, {\n ...options,\n headers,\n });\n\n // Parse response based on content type\n const contentType = response.headers.get(\"Content-Type\") ?? \"\";\n let body: unknown;\n\n if (response.status === 204) {\n // No content\n body = {};\n } else if (contentType.includes(\"application/json\")) {\n body = await response.json().catch(() => ({}));\n } else {\n // Non-JSON response (shouldn't happen with our API, but handle gracefully)\n const text = await response.text().catch(() => \"\");\n body = { message: text };\n }\n\n // Throw on non-2xx - SWR will catch this as `error`\n if (!response.ok) {\n throw new AvallonError(response.status, body as AvallonError[\"body\"]);\n }\n\n // Strip the API envelope ({ data, message }) — return payload directly\n return ((body as Record<string, unknown>)?.data ?? body) as T;\n}\n\n/** Authenticated fetch - adds API key or Bearer token */\nexport async function customFetch<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, true);\n}\n\n/** Unauthenticated fetch - for auth flow endpoints (sign-in, sign-up, etc.) */\nexport async function customFetchNoAuth<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, false);\n}\n\n// --------------------------------------------------------------------------\n// Errors\n// --------------------------------------------------------------------------\n\n/** Orval uses this to type the `error` field in SWR hooks as AvallonError */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ErrorType<E> = AvallonError;\n\n/** Typed error class for API errors. Thrown by customFetch on non-2xx responses. */\nexport class AvallonError extends Error {\n constructor(\n public readonly status: number,\n public readonly body: {\n data?: unknown;\n message?: string;\n }\n ) {\n super(body?.message ?? `API error ${status}`);\n this.name = \"AvallonError\";\n }\n\n /** Validation errors (400) have field-level details */\n get errors(): Array<{ field: string; message: string }> | undefined {\n const data = this.body?.data as {\n errors?: Array<{ field: string; message: string }>;\n };\n return data?.errors;\n }\n\n isValidationError(): boolean {\n return this.status === 400;\n }\n\n isUnauthorized(): boolean {\n return this.status === 401;\n }\n\n isNotFound(): boolean {\n return this.status === 404;\n }\n}\n","/**\n * PKCE Utilities\n *\n * Cryptographic helpers for OAuth PKCE flow. Platform-agnostic -\n * works in both Node.js and browsers via Web Crypto API.\n *\n * These utilities can't be generated from OpenAPI - they're\n * client-side crypto that complements the generated auth endpoints.\n *\n * @example\n * ```ts\n * import {\n * generateCodeVerifier,\n * generateCodeChallenge,\n * getV1AuthOauthUrl,\n * postV1AuthOauthExchange,\n * } from \"@avallon-labs/sdk\";\n *\n * // 1. Generate PKCE pair\n * const verifier = generateCodeVerifier();\n * const challenge = await generateCodeChallenge(verifier);\n *\n * // 2. Get OAuth URL (store verifier for after redirect)\n * sessionStorage.setItem(\"oauth_verifier\", verifier);\n * const { data } = await getV1AuthOauthUrl({\n * provider: \"google\",\n * redirect_uri: \"https://app.example.com/callback\",\n * code_challenge: challenge,\n * code_challenge_method: \"s256\",\n * });\n * window.location.href = data.data.url;\n *\n * // 3. After redirect, exchange code for tokens\n * const verifier = sessionStorage.getItem(\"oauth_verifier\");\n * const tokens = await postV1AuthOauthExchange({\n * code: urlParams.get(\"code\"),\n * code_verifier: verifier,\n * });\n * ```\n */\n\n// --------------------------------------------------------------------------\n// PKCE Utilities\n// --------------------------------------------------------------------------\n\n/** Generate a cryptographically random code verifier (43-128 chars) */\nexport function generateCodeVerifier(length = 64): string {\n const charset =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~\";\n const randomValues = crypto.getRandomValues(new Uint8Array(length));\n return Array.from(randomValues)\n .map((v) => charset[v % charset.length])\n .join(\"\");\n}\n\n/** Generate S256 code challenge from verifier */\nexport async function generateCodeChallenge(verifier: string): Promise<string> {\n const encoder = new TextEncoder();\n const data = encoder.encode(verifier);\n const digest = await crypto.subtle.digest(\"SHA-256\", data);\n return base64UrlEncode(digest);\n}\n\nfunction base64UrlEncode(buffer: ArrayBuffer): string {\n const bytes = new Uint8Array(buffer);\n let binary = \"\";\n for (const byte of bytes) {\n binary += String.fromCharCode(byte);\n }\n return btoa(binary)\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=+$/, \"\");\n}\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n AgentList,\n CreateAgentBody,\n CreateAgentResponse,\n ErrorResponse,\n GetAgentResponse,\n ListAgentsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all agents for your tenant.\n\n**Filtering:**\n\nFilter agents by name using the `agent_name` query parameter (exact match).\n\n**Response:**\n\nReturns an array of all agents with their configurations and a total count.\n * @summary List agents\n */\nexport const getListAgentsUrl = (params?: ListAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/agents?${stringifiedParams}`\n : `/v1/agents`;\n};\n\nexport const listAgents = async (\n params?: ListAgentsParams,\n options?: RequestInit\n): Promise<AgentList> => {\n return customFetch<AgentList>(getListAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListAgentsKey = (params?: ListAgentsParams) =>\n [`/v1/agents`, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgents>>\n>;\n\n/**\n * @summary List agents\n */\nexport const useListAgents = <TError = ErrorType<ErrorResponse>>(\n params?: ListAgentsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listAgents>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getListAgentsKey(params) : null));\n const swrFn = () => listAgents(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Create a new voice agent with the specified configuration.\n\n**Required fields:**\n\nAll fields in the request body are required except `phone_number_id` and `transfer_phone_number`.\n\n**Response:**\n\nReturns the created agent with its ID and configuration.\n * @summary Create agent\n */\nexport const getCreateAgentUrl = () => {\n return `/v1/agents`;\n};\n\nexport const createAgent = async (\n createAgentBody: CreateAgentBody,\n options?: RequestInit\n): Promise<CreateAgentResponse> => {\n return customFetch<CreateAgentResponse>(getCreateAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentBody),\n });\n};\n\nexport const getCreateAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentBody }) => {\n return createAgent(arg, options);\n };\n};\nexport const getCreateAgentMutationKey = () => [`/v1/agents`] as const;\n\nexport type CreateAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgent>>\n>;\n\n/**\n * @summary Create agent\n */\nexport const useCreateAgent = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createAgent>>,\n TError,\n Key,\n CreateAgentBody,\n Awaited<ReturnType<typeof createAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateAgentMutationKey();\n const swrFn = getCreateAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single agent by ID.\n * @summary Get agent\n */\nexport const getGetAgentUrl = (id: string) => {\n return `/v1/agents/${id}`;\n};\n\nexport const getAgent = async (\n id: string,\n options?: RequestInit\n): Promise<GetAgentResponse> => {\n return customFetch<GetAgentResponse>(getGetAgentUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetAgentKey = (id: string) => [`/v1/agents/${id}`] as const;\n\nexport type GetAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAgent>>\n>;\n\n/**\n * @summary Get agent\n */\nexport const useGetAgent = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getAgent>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false && !!id;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetAgentKey(id) : null));\n const swrFn = () => getAgent(id, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Arguments, Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ApiKeyCreated,\n ApiKeyList,\n ConfirmationResponse,\n CreateApiKeyBody,\n ErrorResponse,\n ListApiKeysParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all API keys for your tenant.\n\nBy default, revoked keys are excluded. Set `include_revoked=true` to include them.\n\n**Note:** The full API key value is never returned — only the key prefix is shown.\n * @summary List API keys\n */\nexport const getListApiKeysUrl = (params?: ListApiKeysParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/platform/api-keys?${stringifiedParams}`\n : `/platform/api-keys`;\n};\n\nexport const listApiKeys = async (\n params?: ListApiKeysParams,\n options?: RequestInit\n): Promise<ApiKeyList> => {\n return customFetch<ApiKeyList>(getListApiKeysUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListApiKeysKey = (params?: ListApiKeysParams) =>\n [`/platform/api-keys`, ...(params ? [params] : [])] as const;\n\nexport type ListApiKeysQueryResult = NonNullable<\n Awaited<ReturnType<typeof listApiKeys>>\n>;\n\n/**\n * @summary List API keys\n */\nexport const useListApiKeys = <TError = ErrorType<ErrorResponse>>(\n params?: ListApiKeysParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listApiKeys>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListApiKeysKey(params) : null));\n const swrFn = () => listApiKeys(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Create a new API key for authenticating with the Avallon API.\n\n**Important:** The full API key is only returned once in the response. Store it securely — it cannot be retrieved again.\n\nKeys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.\n * @summary Create an API key\n */\nexport const getCreateApiKeyUrl = () => {\n return `/platform/api-keys`;\n};\n\nexport const createApiKey = async (\n createApiKeyBody: CreateApiKeyBody,\n options?: RequestInit\n): Promise<ApiKeyCreated> => {\n return customFetch<ApiKeyCreated>(getCreateApiKeyUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createApiKeyBody),\n });\n};\n\nexport const getCreateApiKeyMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateApiKeyBody }) => {\n return createApiKey(arg, options);\n };\n};\nexport const getCreateApiKeyMutationKey = () => [`/platform/api-keys`] as const;\n\nexport type CreateApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof createApiKey>>\n>;\n\n/**\n * @summary Create an API key\n */\nexport const useCreateApiKey = <TError = ErrorType<ErrorResponse>>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createApiKey>>,\n TError,\n Key,\n CreateApiKeyBody,\n Awaited<ReturnType<typeof createApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateApiKeyMutationKey();\n const swrFn = getCreateApiKeyMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Revoke an existing API key. Once revoked, the key can no longer be used for authentication.\n\nThis operation is irreversible — revoked keys cannot be re-enabled. Create a new key if needed.\n\nReturns 409 if the key is already revoked, 404 if the key does not exist.\n * @summary Revoke an API key\n */\nexport const getRevokeApiKeyUrl = (id: string) => {\n return `/platform/api-keys/${id}/revoke`;\n};\n\nexport const revokeApiKey = async (\n id: string,\n options?: RequestInit\n): Promise<ConfirmationResponse> => {\n return customFetch<ConfirmationResponse>(getRevokeApiKeyUrl(id), {\n ...options,\n method: \"POST\",\n });\n};\n\nexport const getRevokeApiKeyMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return revokeApiKey(id, options);\n };\n};\nexport const getRevokeApiKeyMutationKey = (id: string) =>\n [`/platform/api-keys/${id}/revoke`] as const;\n\nexport type RevokeApiKeyMutationResult = NonNullable<\n Awaited<ReturnType<typeof revokeApiKey>>\n>;\n\n/**\n * @summary Revoke an API key\n */\nexport const useRevokeApiKey = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof revokeApiKey>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof revokeApiKey>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getRevokeApiKeyMutationKey(id);\n const swrFn = getRevokeApiKeyMutationFetcher(id, requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n AuthTokens,\n EmptyResponse,\n ErrorResponse,\n GetV1AuthOauthUrlParams,\n OAuthUrl,\n PostV1AuthRefreshTokenBody,\n PostV1AuthSignInBody,\n PostV1AuthSignUpBody,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getPostV1AuthSignUpUrl = () => {\n return `/v1/auth/sign-up`;\n};\n\nexport const postV1AuthSignUp = async (\n postV1AuthSignUpBody: PostV1AuthSignUpBody,\n options?: RequestInit\n): Promise<EmptyResponse> => {\n return customFetchNoAuth<EmptyResponse>(getPostV1AuthSignUpUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignUpBody),\n });\n};\n\nexport const getPostV1AuthSignUpMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignUpBody }) => {\n return postV1AuthSignUp(arg, options);\n };\n};\nexport const getPostV1AuthSignUpMutationKey = () =>\n [`/v1/auth/sign-up`] as const;\n\nexport type PostV1AuthSignUpMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n>;\n\nexport const usePostV1AuthSignUp = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignUp>>,\n TError,\n Key,\n PostV1AuthSignUpBody,\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignUpMutationKey();\n const swrFn = getPostV1AuthSignUpMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getPostV1AuthSignInUrl = () => {\n return `/v1/auth/sign-in`;\n};\n\nexport const postV1AuthSignIn = async (\n postV1AuthSignInBody: PostV1AuthSignInBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getPostV1AuthSignInUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignInBody),\n });\n};\n\nexport const getPostV1AuthSignInMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignInBody }) => {\n return postV1AuthSignIn(arg, options);\n };\n};\nexport const getPostV1AuthSignInMutationKey = () =>\n [`/v1/auth/sign-in`] as const;\n\nexport type PostV1AuthSignInMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n>;\n\nexport const usePostV1AuthSignIn = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignIn>>,\n TError,\n Key,\n PostV1AuthSignInBody,\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignInMutationKey();\n const swrFn = getPostV1AuthSignInMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getPostV1AuthRefreshTokenUrl = () => {\n return `/v1/auth/refresh-token`;\n};\n\nexport const postV1AuthRefreshToken = async (\n postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody,\n options?: RequestInit\n): Promise<AuthTokens> => {\n return customFetchNoAuth<AuthTokens>(getPostV1AuthRefreshTokenUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthRefreshTokenBody),\n });\n};\n\nexport const getPostV1AuthRefreshTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthRefreshTokenBody }) => {\n return postV1AuthRefreshToken(arg, options);\n };\n};\nexport const getPostV1AuthRefreshTokenMutationKey = () =>\n [`/v1/auth/refresh-token`] as const;\n\nexport type PostV1AuthRefreshTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n>;\n\nexport const usePostV1AuthRefreshToken = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>,\n TError,\n Key,\n PostV1AuthRefreshTokenBody,\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthRefreshTokenMutationKey();\n const swrFn = getPostV1AuthRefreshTokenMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getGetV1AuthOauthUrlUrl = (params: GetV1AuthOauthUrlParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/auth/oauth-url?${stringifiedParams}`\n : `/v1/auth/oauth-url`;\n};\n\nexport const getV1AuthOauthUrl = async (\n params: GetV1AuthOauthUrlParams,\n options?: RequestInit\n): Promise<OAuthUrl> => {\n return customFetchNoAuth<OAuthUrl>(getGetV1AuthOauthUrlUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetV1AuthOauthUrlKey = (params: GetV1AuthOauthUrlParams) =>\n [`/v1/auth/oauth-url`, ...(params ? [params] : [])] as const;\n\nexport type GetV1AuthOauthUrlQueryResult = NonNullable<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>\n>;\n\nexport const useGetV1AuthOauthUrl = <TError = ErrorType<ErrorResponse>>(\n params: GetV1AuthOauthUrlParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetV1AuthOauthUrlKey(params) : null));\n const swrFn = () => getV1AuthOauthUrl(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\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 GetV1ExtractorJobsId200,\n PostV1ExtractorJobs200,\n PostV1ExtractorJobsBody,\n PostV1ExtractorJobsIdCancel200,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport const getPostV1ExtractorJobsUrl = () => {\n return `/v1/extractor-jobs`;\n};\n\nexport const postV1ExtractorJobs = async (\n postV1ExtractorJobsBody: PostV1ExtractorJobsBody,\n options?: RequestInit\n): Promise<PostV1ExtractorJobs200> => {\n return customFetch<PostV1ExtractorJobs200>(getPostV1ExtractorJobsUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1ExtractorJobsBody),\n });\n};\n\nexport const getPostV1ExtractorJobsMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: PostV1ExtractorJobsBody }) => {\n return postV1ExtractorJobs(arg, options);\n };\n};\nexport const getPostV1ExtractorJobsMutationKey = () =>\n [`/v1/extractor-jobs`] as const;\n\nexport type PostV1ExtractorJobsMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1ExtractorJobs>>\n>;\n\nexport const usePostV1ExtractorJobs = <\n TError = ErrorType<ErrorResponse>,\n>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1ExtractorJobs>>,\n TError,\n Key,\n PostV1ExtractorJobsBody,\n Awaited<ReturnType<typeof postV1ExtractorJobs>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1ExtractorJobsMutationKey();\n const swrFn = getPostV1ExtractorJobsMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport const getGetV1ExtractorJobsIdUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}`;\n};\n\nexport const getV1ExtractorJobsId = async (\n id: string,\n options?: RequestInit\n): Promise<GetV1ExtractorJobsId200> => {\n return customFetch<GetV1ExtractorJobsId200>(getGetV1ExtractorJobsIdUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetV1ExtractorJobsIdKey = (id: string) =>\n [`/v1/extractor-jobs/${id}`] as const;\n\nexport type GetV1ExtractorJobsIdQueryResult = NonNullable<\n Awaited<ReturnType<typeof getV1ExtractorJobsId>>\n>;\n\nexport const useGetV1ExtractorJobsId = <TError = ErrorType<ErrorResponse>>(\n id: string,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getV1ExtractorJobsId>>,\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 ? getGetV1ExtractorJobsIdKey(id) : null));\n const swrFn = () => getV1ExtractorJobsId(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};\nexport const getPostV1ExtractorJobsIdCancelUrl = (id: string) => {\n return `/v1/extractor-jobs/${id}/cancel`;\n};\n\nexport const postV1ExtractorJobsIdCancel = async (\n id: string,\n options?: RequestInit\n): Promise<PostV1ExtractorJobsIdCancel200> => {\n return customFetch<PostV1ExtractorJobsIdCancel200>(\n getPostV1ExtractorJobsIdCancelUrl(id),\n {\n ...options,\n method: \"POST\",\n }\n );\n};\n\nexport const getPostV1ExtractorJobsIdCancelMutationFetcher = (\n id: string,\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, __: { arg: Arguments }) => {\n return postV1ExtractorJobsIdCancel(id, options);\n };\n};\nexport const getPostV1ExtractorJobsIdCancelMutationKey = (id: string) =>\n [`/v1/extractor-jobs/${id}/cancel`] as const;\n\nexport type PostV1ExtractorJobsIdCancelMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>\n>;\n\nexport const usePostV1ExtractorJobsIdCancel = <\n TError = ErrorType<ErrorResponse>,\n>(\n id: string,\n options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>,\n TError,\n Key,\n Arguments,\n Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey =\n swrOptions?.swrKey ?? getPostV1ExtractorJobsIdCancelMutationKey(id);\n const swrFn = getPostV1ExtractorJobsIdCancelMutationFetcher(\n id,\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 ExtractorJobList,\n ListExtractorJobsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\nimport type { ErrorType } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all extraction jobs with pagination, filtering, and sorting.\n\n**Type Filtering:**\n\nFilter by `extractor_type` to see only `basic` or `agentic` jobs. Omit to return all types.\n\n**Scope Filtering:**\n\nUse bracket notation to filter by scope keys:\n- `scope[call_id]=abc-123`\n- `scope[email_id]=xyz-456`\n\nMultiple scope filters can be combined (AND logic).\n * @summary List extractor jobs\n */\nexport const getListExtractorJobsUrl = (params?: ListExtractorJobsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/extractor-jobs?${stringifiedParams}`\n : `/v1/extractor-jobs`;\n};\n\nexport const listExtractorJobs = async (\n params?: ListExtractorJobsParams,\n options?: RequestInit\n): Promise<ExtractorJobList> => {\n return customFetch<ExtractorJobList>(getListExtractorJobsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListExtractorJobsKey = (params?: ListExtractorJobsParams) =>\n [`/v1/extractor-jobs`, ...(params ? [params] : [])] as const;\n\nexport type ListExtractorJobsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listExtractorJobs>>\n>;\n\n/**\n * @summary List extractor jobs\n */\nexport const useListExtractorJobs = <TError = ErrorType<ErrorResponse>>(\n params?: ListExtractorJobsParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof listExtractorJobs>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getListExtractorJobsKey(params) : null));\n const swrFn = () => listExtractorJobs(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentBackgroundSounds =\n (typeof AgentBackgroundSounds)[keyof typeof AgentBackgroundSounds];\n\nexport const AgentBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentDirection =\n (typeof AgentDirection)[keyof typeof AgentDirection];\n\nexport const AgentDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentLanguage = (typeof AgentLanguage)[keyof typeof AgentLanguage];\n\nexport const AgentLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentLlmModel = (typeof AgentLlmModel)[keyof typeof AgentLlmModel];\n\nexport const AgentLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentSttModel = (typeof AgentSttModel)[keyof typeof AgentSttModel];\n\nexport const AgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentTtsModel = (typeof AgentTtsModel)[keyof typeof AgentTtsModel];\n\nexport const AgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type AgentTtsProvider =\n (typeof AgentTtsProvider)[keyof typeof AgentTtsProvider];\n\nexport const AgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Call direction the agent handles\n */\nexport type CreateAgentBodyDirection =\n (typeof CreateAgentBodyDirection)[keyof typeof CreateAgentBodyDirection];\n\nexport const CreateAgentBodyDirection = {\n OUTBOUND: \"OUTBOUND\",\n INBOUND: \"INBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Language for the agent\n */\nexport type CreateAgentBodyLanguage =\n (typeof CreateAgentBodyLanguage)[keyof typeof CreateAgentBodyLanguage];\n\nexport const CreateAgentBodyLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * LLM model for conversation\n */\nexport type CreateAgentBodyLlmModel =\n (typeof CreateAgentBodyLlmModel)[keyof typeof CreateAgentBodyLlmModel];\n\nexport const CreateAgentBodyLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Speech-to-text model\n */\nexport type CreateAgentBodySttModel =\n (typeof CreateAgentBodySttModel)[keyof typeof CreateAgentBodySttModel];\n\nexport const CreateAgentBodySttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech model\n */\nexport type CreateAgentBodyTtsModel =\n (typeof CreateAgentBodyTtsModel)[keyof typeof CreateAgentBodyTtsModel];\n\nexport const CreateAgentBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech provider\n */\nexport type CreateAgentBodyTtsProvider =\n (typeof CreateAgentBodyTtsProvider)[keyof typeof CreateAgentBodyTtsProvider];\n\nexport const CreateAgentBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Target environment for the key\n */\nexport type CreateApiKeyBodyEnvironment =\n (typeof CreateApiKeyBodyEnvironment)[keyof typeof CreateApiKeyBodyEnvironment];\n\nexport const CreateApiKeyBodyEnvironment = {\n test: \"test\",\n live: \"live\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type of extractor\n */\nexport type ExtractorJobExtractorType =\n (typeof ExtractorJobExtractorType)[keyof typeof ExtractorJobExtractorType];\n\nexport const ExtractorJobExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlCodeChallengeMethod =\n (typeof GetV1AuthOauthUrlCodeChallengeMethod)[keyof typeof GetV1AuthOauthUrlCodeChallengeMethod];\n\nexport const GetV1AuthOauthUrlCodeChallengeMethod = {\n plain: \"plain\",\n s256: \"s256\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlProvider =\n (typeof GetV1AuthOauthUrlProvider)[keyof typeof GetV1AuthOauthUrlProvider];\n\nexport const GetV1AuthOauthUrlProvider = {\n google: \"google\",\n microsoft: \"microsoft\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type 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 ListExtractorJobsExtractorType =\n (typeof ListExtractorJobsExtractorType)[keyof typeof ListExtractorJobsExtractorType];\n\nexport const ListExtractorJobsExtractorType = {\n basic: \"basic\",\n agentic: \"agentic\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListExtractorJobsSortBy =\n (typeof ListExtractorJobsSortBy)[keyof typeof ListExtractorJobsSortBy];\n\nexport const ListExtractorJobsSortBy = {\n created_at: \"created_at\",\n started_at: \"started_at\",\n completed_at: \"completed_at\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListExtractorJobsSortOrder =\n (typeof ListExtractorJobsSortOrder)[keyof typeof ListExtractorJobsSortOrder];\n\nexport const ListExtractorJobsSortOrder = {\n asc: \"asc\",\n desc: \"desc\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListExtractorJobsStatus =\n (typeof ListExtractorJobsStatus)[keyof typeof ListExtractorJobsStatus];\n\nexport const ListExtractorJobsStatus = {\n queued: \"queued\",\n in_progress: \"in_progress\",\n completed: \"completed\",\n failed: \"failed\",\n canceled: \"canceled\",\n} as const;\n"]}
|
package/openapi.yaml
CHANGED
|
@@ -1426,6 +1426,13 @@ components:
|
|
|
1426
1426
|
type: string
|
|
1427
1427
|
description: Name of the extractor
|
|
1428
1428
|
example: claims-intake
|
|
1429
|
+
extractor_type:
|
|
1430
|
+
type: string
|
|
1431
|
+
enum:
|
|
1432
|
+
- basic
|
|
1433
|
+
- agentic
|
|
1434
|
+
description: Type of extractor
|
|
1435
|
+
example: agentic
|
|
1429
1436
|
status:
|
|
1430
1437
|
type: string
|
|
1431
1438
|
description: Current job status
|
|
@@ -1471,6 +1478,7 @@ components:
|
|
|
1471
1478
|
- extractor_id
|
|
1472
1479
|
- extractor_version
|
|
1473
1480
|
- extractor_name
|
|
1481
|
+
- extractor_type
|
|
1474
1482
|
- status
|
|
1475
1483
|
- scope
|
|
1476
1484
|
- created_at
|