@avallon-labs/sdk 0.0.0-0ca09b5e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,512 @@
1
+ import useSwr from 'swr';
2
+ import useSWRMutation3 from 'swr/mutation';
3
+
4
+ // src/fetcher.ts
5
+ var config = {
6
+ baseUrl: "https://api.avallon.ai"
7
+ };
8
+ function configure(newConfig) {
9
+ config = { ...config, ...newConfig };
10
+ }
11
+ function getConfig() {
12
+ return { ...config };
13
+ }
14
+ async function doFetch(url, options, withAuth) {
15
+ const fullUrl = url.startsWith("http") ? url : `${config.baseUrl}${url}`;
16
+ const headers = new Headers(options.headers);
17
+ if (options.body && typeof options.body === "string") {
18
+ headers.set("Content-Type", "application/json");
19
+ }
20
+ if (withAuth) {
21
+ const accessToken = await config.getAccessToken?.();
22
+ if (accessToken) {
23
+ headers.set("Authorization", `Bearer ${accessToken}`);
24
+ } else if (config.apiKey) {
25
+ headers.set("x-api-key", config.apiKey);
26
+ }
27
+ }
28
+ const response = await fetch(fullUrl, {
29
+ ...options,
30
+ headers
31
+ });
32
+ const contentType = response.headers.get("Content-Type") ?? "";
33
+ let body;
34
+ if (response.status === 204) {
35
+ body = {};
36
+ } else if (contentType.includes("application/json")) {
37
+ body = await response.json().catch(() => ({}));
38
+ } else {
39
+ const text = await response.text().catch(() => "");
40
+ body = { message: text };
41
+ }
42
+ if (!response.ok) {
43
+ throw new AvallonError(response.status, body);
44
+ }
45
+ return body?.data ?? body;
46
+ }
47
+ async function customFetch(url, options) {
48
+ return doFetch(url, options, true);
49
+ }
50
+ async function customFetchNoAuth(url, options) {
51
+ return doFetch(url, options, false);
52
+ }
53
+ var AvallonError = class extends Error {
54
+ constructor(status, body) {
55
+ super(body?.message ?? `API error ${status}`);
56
+ this.status = status;
57
+ this.body = body;
58
+ this.name = "AvallonError";
59
+ }
60
+ /** Validation errors (400) have field-level details */
61
+ get errors() {
62
+ const data = this.body?.data;
63
+ return data?.errors;
64
+ }
65
+ isValidationError() {
66
+ return this.status === 400;
67
+ }
68
+ isUnauthorized() {
69
+ return this.status === 401;
70
+ }
71
+ isNotFound() {
72
+ return this.status === 404;
73
+ }
74
+ };
75
+
76
+ // src/auth.ts
77
+ function generateCodeVerifier(length = 64) {
78
+ const charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";
79
+ const randomValues = crypto.getRandomValues(new Uint8Array(length));
80
+ return Array.from(randomValues).map((v) => charset[v % charset.length]).join("");
81
+ }
82
+ async function generateCodeChallenge(verifier) {
83
+ const encoder = new TextEncoder();
84
+ const data = encoder.encode(verifier);
85
+ const digest = await crypto.subtle.digest("SHA-256", data);
86
+ return base64UrlEncode(digest);
87
+ }
88
+ function base64UrlEncode(buffer) {
89
+ const bytes = new Uint8Array(buffer);
90
+ let binary = "";
91
+ for (const byte of bytes) {
92
+ binary += String.fromCharCode(byte);
93
+ }
94
+ return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
95
+ }
96
+ var getListAgentsUrl = (params) => {
97
+ const normalizedParams = new URLSearchParams();
98
+ Object.entries(params || {}).forEach(([key, value]) => {
99
+ if (value !== void 0) {
100
+ normalizedParams.append(key, value === null ? "null" : value.toString());
101
+ }
102
+ });
103
+ const stringifiedParams = normalizedParams.toString();
104
+ return stringifiedParams.length > 0 ? `/v1/agents?${stringifiedParams}` : `/v1/agents`;
105
+ };
106
+ var listAgents = async (params, options) => {
107
+ return customFetch(getListAgentsUrl(params), {
108
+ ...options,
109
+ method: "GET"
110
+ });
111
+ };
112
+ var getListAgentsKey = (params) => [`/v1/agents`, ...params ? [params] : []];
113
+ var useListAgents = (params, options) => {
114
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
115
+ const isEnabled = swrOptions?.enabled !== false;
116
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListAgentsKey(params) : null);
117
+ const swrFn = () => listAgents(params, requestOptions);
118
+ const query = useSwr(
119
+ swrKey,
120
+ swrFn,
121
+ swrOptions
122
+ );
123
+ return {
124
+ swrKey,
125
+ ...query
126
+ };
127
+ };
128
+ var getCreateAgentUrl = () => {
129
+ return `/v1/agents`;
130
+ };
131
+ var createAgent = async (createAgentBody, options) => {
132
+ return customFetch(getCreateAgentUrl(), {
133
+ ...options,
134
+ method: "POST",
135
+ headers: { "Content-Type": "application/json", ...options?.headers },
136
+ body: JSON.stringify(createAgentBody)
137
+ });
138
+ };
139
+ var getCreateAgentMutationFetcher = (options) => {
140
+ return (_, { arg }) => {
141
+ return createAgent(arg, options);
142
+ };
143
+ };
144
+ var getCreateAgentMutationKey = () => [`/v1/agents`];
145
+ var useCreateAgent = (options) => {
146
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
147
+ const swrKey = swrOptions?.swrKey ?? getCreateAgentMutationKey();
148
+ const swrFn = getCreateAgentMutationFetcher(requestOptions);
149
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
150
+ return {
151
+ swrKey,
152
+ ...query
153
+ };
154
+ };
155
+ var getGetAgentUrl = (id) => {
156
+ return `/v1/agents/${id}`;
157
+ };
158
+ var getAgent = async (id, options) => {
159
+ return customFetch(getGetAgentUrl(id), {
160
+ ...options,
161
+ method: "GET"
162
+ });
163
+ };
164
+ var getGetAgentKey = (id) => [`/v1/agents/${id}`];
165
+ var useGetAgent = (id, options) => {
166
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
167
+ const isEnabled = swrOptions?.enabled !== false && !!id;
168
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getGetAgentKey(id) : null);
169
+ const swrFn = () => getAgent(id, requestOptions);
170
+ const query = useSwr(
171
+ swrKey,
172
+ swrFn,
173
+ swrOptions
174
+ );
175
+ return {
176
+ swrKey,
177
+ ...query
178
+ };
179
+ };
180
+ var getListApiKeysUrl = (params) => {
181
+ const normalizedParams = new URLSearchParams();
182
+ Object.entries(params || {}).forEach(([key, value]) => {
183
+ if (value !== void 0) {
184
+ normalizedParams.append(key, value === null ? "null" : value.toString());
185
+ }
186
+ });
187
+ const stringifiedParams = normalizedParams.toString();
188
+ return stringifiedParams.length > 0 ? `/platform/api-keys?${stringifiedParams}` : `/platform/api-keys`;
189
+ };
190
+ var listApiKeys = async (params, options) => {
191
+ return customFetch(getListApiKeysUrl(params), {
192
+ ...options,
193
+ method: "GET"
194
+ });
195
+ };
196
+ var getListApiKeysKey = (params) => [`/platform/api-keys`, ...params ? [params] : []];
197
+ var useListApiKeys = (params, options) => {
198
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
199
+ const isEnabled = swrOptions?.enabled !== false;
200
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListApiKeysKey(params) : null);
201
+ const swrFn = () => listApiKeys(params, requestOptions);
202
+ const query = useSwr(
203
+ swrKey,
204
+ swrFn,
205
+ swrOptions
206
+ );
207
+ return {
208
+ swrKey,
209
+ ...query
210
+ };
211
+ };
212
+ var getCreateApiKeyUrl = () => {
213
+ return `/platform/api-keys`;
214
+ };
215
+ var createApiKey = async (createApiKeyBody, options) => {
216
+ return customFetch(getCreateApiKeyUrl(), {
217
+ ...options,
218
+ method: "POST",
219
+ headers: { "Content-Type": "application/json", ...options?.headers },
220
+ body: JSON.stringify(createApiKeyBody)
221
+ });
222
+ };
223
+ var getCreateApiKeyMutationFetcher = (options) => {
224
+ return (_, { arg }) => {
225
+ return createApiKey(arg, options);
226
+ };
227
+ };
228
+ var getCreateApiKeyMutationKey = () => [`/platform/api-keys`];
229
+ var useCreateApiKey = (options) => {
230
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
231
+ const swrKey = swrOptions?.swrKey ?? getCreateApiKeyMutationKey();
232
+ const swrFn = getCreateApiKeyMutationFetcher(requestOptions);
233
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
234
+ return {
235
+ swrKey,
236
+ ...query
237
+ };
238
+ };
239
+ var getRevokeApiKeyUrl = (id) => {
240
+ return `/platform/api-keys/${id}/revoke`;
241
+ };
242
+ var revokeApiKey = async (id, options) => {
243
+ return customFetch(getRevokeApiKeyUrl(id), {
244
+ ...options,
245
+ method: "POST"
246
+ });
247
+ };
248
+ var getRevokeApiKeyMutationFetcher = (id, options) => {
249
+ return (_, __) => {
250
+ return revokeApiKey(id, options);
251
+ };
252
+ };
253
+ var getRevokeApiKeyMutationKey = (id) => [`/platform/api-keys/${id}/revoke`];
254
+ var useRevokeApiKey = (id, options) => {
255
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
256
+ const swrKey = swrOptions?.swrKey ?? getRevokeApiKeyMutationKey(id);
257
+ const swrFn = getRevokeApiKeyMutationFetcher(id, requestOptions);
258
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
259
+ return {
260
+ swrKey,
261
+ ...query
262
+ };
263
+ };
264
+ var getPostV1AuthSignUpUrl = () => {
265
+ return `/v1/auth/sign-up`;
266
+ };
267
+ var postV1AuthSignUp = async (postV1AuthSignUpBody, options) => {
268
+ return customFetchNoAuth(getPostV1AuthSignUpUrl(), {
269
+ ...options,
270
+ method: "POST",
271
+ headers: { "Content-Type": "application/json", ...options?.headers },
272
+ body: JSON.stringify(postV1AuthSignUpBody)
273
+ });
274
+ };
275
+ var getPostV1AuthSignUpMutationFetcher = (options) => {
276
+ return (_, { arg }) => {
277
+ return postV1AuthSignUp(arg, options);
278
+ };
279
+ };
280
+ var getPostV1AuthSignUpMutationKey = () => [`/v1/auth/sign-up`];
281
+ var usePostV1AuthSignUp = (options) => {
282
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
283
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignUpMutationKey();
284
+ const swrFn = getPostV1AuthSignUpMutationFetcher(requestOptions);
285
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
286
+ return {
287
+ swrKey,
288
+ ...query
289
+ };
290
+ };
291
+ var getPostV1AuthSignInUrl = () => {
292
+ return `/v1/auth/sign-in`;
293
+ };
294
+ var postV1AuthSignIn = async (postV1AuthSignInBody, options) => {
295
+ return customFetchNoAuth(getPostV1AuthSignInUrl(), {
296
+ ...options,
297
+ method: "POST",
298
+ headers: { "Content-Type": "application/json", ...options?.headers },
299
+ body: JSON.stringify(postV1AuthSignInBody)
300
+ });
301
+ };
302
+ var getPostV1AuthSignInMutationFetcher = (options) => {
303
+ return (_, { arg }) => {
304
+ return postV1AuthSignIn(arg, options);
305
+ };
306
+ };
307
+ var getPostV1AuthSignInMutationKey = () => [`/v1/auth/sign-in`];
308
+ var usePostV1AuthSignIn = (options) => {
309
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
310
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignInMutationKey();
311
+ const swrFn = getPostV1AuthSignInMutationFetcher(requestOptions);
312
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
313
+ return {
314
+ swrKey,
315
+ ...query
316
+ };
317
+ };
318
+ var getPostV1AuthRefreshTokenUrl = () => {
319
+ return `/v1/auth/refresh-token`;
320
+ };
321
+ var postV1AuthRefreshToken = async (postV1AuthRefreshTokenBody, options) => {
322
+ return customFetchNoAuth(getPostV1AuthRefreshTokenUrl(), {
323
+ ...options,
324
+ method: "POST",
325
+ headers: { "Content-Type": "application/json", ...options?.headers },
326
+ body: JSON.stringify(postV1AuthRefreshTokenBody)
327
+ });
328
+ };
329
+ var getPostV1AuthRefreshTokenMutationFetcher = (options) => {
330
+ return (_, { arg }) => {
331
+ return postV1AuthRefreshToken(arg, options);
332
+ };
333
+ };
334
+ var getPostV1AuthRefreshTokenMutationKey = () => [`/v1/auth/refresh-token`];
335
+ var usePostV1AuthRefreshToken = (options) => {
336
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
337
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthRefreshTokenMutationKey();
338
+ const swrFn = getPostV1AuthRefreshTokenMutationFetcher(requestOptions);
339
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
340
+ return {
341
+ swrKey,
342
+ ...query
343
+ };
344
+ };
345
+ var getGetV1AuthOauthUrlUrl = (params) => {
346
+ const normalizedParams = new URLSearchParams();
347
+ Object.entries(params || {}).forEach(([key, value]) => {
348
+ if (value !== void 0) {
349
+ normalizedParams.append(key, value === null ? "null" : value.toString());
350
+ }
351
+ });
352
+ const stringifiedParams = normalizedParams.toString();
353
+ return stringifiedParams.length > 0 ? `/v1/auth/oauth-url?${stringifiedParams}` : `/v1/auth/oauth-url`;
354
+ };
355
+ var getV1AuthOauthUrl = async (params, options) => {
356
+ return customFetchNoAuth(getGetV1AuthOauthUrlUrl(params), {
357
+ ...options,
358
+ method: "GET"
359
+ });
360
+ };
361
+ var getGetV1AuthOauthUrlKey = (params) => [`/v1/auth/oauth-url`, ...params ? [params] : []];
362
+ var useGetV1AuthOauthUrl = (params, options) => {
363
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
364
+ const isEnabled = swrOptions?.enabled !== false;
365
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getGetV1AuthOauthUrlKey(params) : null);
366
+ const swrFn = () => getV1AuthOauthUrl(params, requestOptions);
367
+ const query = useSwr(
368
+ swrKey,
369
+ swrFn,
370
+ swrOptions
371
+ );
372
+ return {
373
+ swrKey,
374
+ ...query
375
+ };
376
+ };
377
+
378
+ // generated/models/agentBackgroundSounds.ts
379
+ var AgentBackgroundSounds = {
380
+ enabled: "enabled",
381
+ disabled: "disabled"
382
+ };
383
+
384
+ // generated/models/agentDirection.ts
385
+ var AgentDirection = {
386
+ INBOUND: "INBOUND",
387
+ OUTBOUND: "OUTBOUND"
388
+ };
389
+
390
+ // generated/models/agentLanguage.ts
391
+ var AgentLanguage = {
392
+ "en-US": "en-US",
393
+ "de-DE": "de-DE"
394
+ };
395
+
396
+ // generated/models/agentLlmModel.ts
397
+ var AgentLlmModel = {
398
+ GPT41: "GPT4.1",
399
+ "AZURE-GPT4o": "AZURE-GPT4o",
400
+ "AZURE-GPT41": "AZURE-GPT4.1",
401
+ "GPT-5": "GPT-5",
402
+ "GPT-5-low": "GPT-5-low",
403
+ "GPT-5-high": "GPT-5-high",
404
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
405
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
406
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
407
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
408
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
409
+ "GEMINI-3-flash": "GEMINI-3-flash"
410
+ };
411
+
412
+ // generated/models/agentSttModel.ts
413
+ var AgentSttModel = {
414
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
415
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
416
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
417
+ };
418
+
419
+ // generated/models/agentTtsModel.ts
420
+ var AgentTtsModel = {
421
+ eleven_flash_v2_5: "eleven_flash_v2_5",
422
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
423
+ "sonic-multilingual": "sonic-multilingual",
424
+ "sonic-3": "sonic-3",
425
+ chirp_3: "chirp_3"
426
+ };
427
+
428
+ // generated/models/agentTtsProvider.ts
429
+ var AgentTtsProvider = {
430
+ elevenlabs: "elevenlabs",
431
+ cartesia: "cartesia",
432
+ google: "google"
433
+ };
434
+
435
+ // generated/models/createAgentBodyDirection.ts
436
+ var CreateAgentBodyDirection = {
437
+ OUTBOUND: "OUTBOUND",
438
+ INBOUND: "INBOUND"
439
+ };
440
+
441
+ // generated/models/createAgentBodyLanguage.ts
442
+ var CreateAgentBodyLanguage = {
443
+ "en-US": "en-US",
444
+ "de-DE": "de-DE"
445
+ };
446
+
447
+ // generated/models/createAgentBodyLlmModel.ts
448
+ var CreateAgentBodyLlmModel = {
449
+ GPT41: "GPT4.1",
450
+ "AZURE-GPT4o": "AZURE-GPT4o",
451
+ "AZURE-GPT41": "AZURE-GPT4.1",
452
+ "GPT-5": "GPT-5",
453
+ "GPT-5-low": "GPT-5-low",
454
+ "GPT-5-high": "GPT-5-high",
455
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
456
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
457
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
458
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
459
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
460
+ "GEMINI-3-flash": "GEMINI-3-flash"
461
+ };
462
+
463
+ // generated/models/createAgentBodySttModel.ts
464
+ var CreateAgentBodySttModel = {
465
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
466
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
467
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
468
+ };
469
+
470
+ // generated/models/createAgentBodyTtsModel.ts
471
+ var CreateAgentBodyTtsModel = {
472
+ eleven_flash_v2_5: "eleven_flash_v2_5",
473
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
474
+ "sonic-multilingual": "sonic-multilingual",
475
+ "sonic-3": "sonic-3",
476
+ chirp_3: "chirp_3"
477
+ };
478
+
479
+ // generated/models/createAgentBodyTtsProvider.ts
480
+ var CreateAgentBodyTtsProvider = {
481
+ elevenlabs: "elevenlabs",
482
+ cartesia: "cartesia",
483
+ google: "google"
484
+ };
485
+
486
+ // generated/models/createApiKeyBodyEnvironment.ts
487
+ var CreateApiKeyBodyEnvironment = {
488
+ test: "test",
489
+ live: "live"
490
+ };
491
+
492
+ // generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts
493
+ var GetV1AuthOauthUrlCodeChallengeMethod = {
494
+ plain: "plain",
495
+ s256: "s256"
496
+ };
497
+
498
+ // generated/models/getV1AuthOauthUrlProvider.ts
499
+ var GetV1AuthOauthUrlProvider = {
500
+ google: "google",
501
+ microsoft: "microsoft"
502
+ };
503
+
504
+ // generated/models/listApiKeysIncludeRevoked.ts
505
+ var ListApiKeysIncludeRevoked = {
506
+ true: "true",
507
+ false: "false"
508
+ };
509
+
510
+ export { AgentBackgroundSounds, AgentDirection, AgentLanguage, AgentLlmModel, AgentSttModel, AgentTtsModel, AgentTtsProvider, AvallonError, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, CreateApiKeyBodyEnvironment, GetV1AuthOauthUrlCodeChallengeMethod, GetV1AuthOauthUrlProvider, ListApiKeysIncludeRevoked, configure, createAgent, createApiKey, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, listAgents, listApiKeys, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, revokeApiKey, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useListAgents, useListApiKeys, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, useRevokeApiKey };
511
+ //# sourceMappingURL=index.js.map
512
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/fetcher.ts","../src/auth.ts","../generated/endpoints/agents/agents.ts","../generated/endpoints/api-keys/api-keys.ts","../generated/endpoints/auth/auth.ts","../generated/models/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"],"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,GAA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AAA;AAAA,EACxB,gBAAA,EAAkB;AACpB;;;ACbO,IAAM,uBAAA,GAA0B;AAAA,EACrC,yBAAA,EAA2B,yBAAA;AAAA,EAC3B,yBAAA,EAA2B,yBAAA;AAAA,EAC3B,gBAAA,EAAkB;AACpB;;;ACJO,IAAM,uBAAA,GAA0B;AAAA,EACrC,iBAAA,EAAmB,mBAAA;AAAA,EACnB,iBAAA,EAAmB,mBAAA;AAAA,EACnB,oBAAA,EAAsB,oBAAA;AAAA,EACtB,SAAA,EAAW,SAAA;AAAA,EACX,OAAA,EAAS;AACX;;;ACNO,IAAM,0BAAA,GAA6B;AAAA,EACxC,UAAA,EAAY,YAAA;AAAA,EACZ,QAAA,EAAU,UAAA;AAAA,EACV,MAAA,EAAQ;AACV;;;ACJO,IAAM,2BAAA,GAA8B;AAAA,EACzC,IAAA,EAAM,MAAA;AAAA,EACN,IAAA,EAAM;AACR;;;ACNO,IAAM,oCAAA,GAAuC;AAAA,EAClD,KAAA,EAAO,OAAA;AAAA,EACP,IAAA,EAAM;AACR;;;ACHO,IAAM,yBAAA,GAA4B;AAAA,EACvC,MAAA,EAAQ,QAAA;AAAA,EACR,SAAA,EAAW;AACb;;;ACHO,IAAM,yBAAA,GAA4B;AAAA,EACvC,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO;AACT","file":"index.js","sourcesContent":["/**\n * Custom fetch wrapper for Orval-generated client.\n * Handles auth (API key or Bearer token) and base URL configuration.\n * Throws AvallonError on non-2xx responses for clean SWR error handling.\n */\n\n// --------------------------------------------------------------------------\n// Configuration\n// --------------------------------------------------------------------------\n\nlet config: AvallonConfig = {\n baseUrl: \"https://api.avallon.ai\",\n};\n\nexport type AvallonConfig = {\n baseUrl?: string;\n apiKey?: string;\n /**\n * Token provider - can be sync or async.\n * Async allows the application to check expiry and refresh before returning.\n */\n getAccessToken?: () => string | null | Promise<string | null>;\n};\n\n/** Configure the SDK at runtime */\nexport function configure(newConfig: Partial<AvallonConfig>) {\n config = { ...config, ...newConfig };\n}\n\n/** Get current config */\nexport function getConfig(): AvallonConfig {\n return { ...config };\n}\n\n// --------------------------------------------------------------------------\n// Fetch wrapper\n// --------------------------------------------------------------------------\n\n/** Shared fetch logic */\nasync function doFetch<T>(\n url: string,\n options: RequestInit,\n withAuth: boolean\n): Promise<T> {\n const fullUrl = url.startsWith(\"http\") ? url : `${config.baseUrl}${url}`;\n\n const headers = new Headers(options.headers);\n\n // Only set Content-Type for requests with JSON body\n // (allows file uploads to set their own Content-Type)\n if (options.body && typeof options.body === \"string\") {\n headers.set(\"Content-Type\", \"application/json\");\n }\n\n if (withAuth) {\n const accessToken = await config.getAccessToken?.();\n if (accessToken) {\n headers.set(\"Authorization\", `Bearer ${accessToken}`);\n } else if (config.apiKey) {\n headers.set(\"x-api-key\", config.apiKey);\n }\n }\n\n const response = await fetch(fullUrl, {\n ...options,\n headers,\n });\n\n // Parse response based on content type\n const contentType = response.headers.get(\"Content-Type\") ?? \"\";\n let body: unknown;\n\n if (response.status === 204) {\n // No content\n body = {};\n } else if (contentType.includes(\"application/json\")) {\n body = await response.json().catch(() => ({}));\n } else {\n // Non-JSON response (shouldn't happen with our API, but handle gracefully)\n const text = await response.text().catch(() => \"\");\n body = { message: text };\n }\n\n // Throw on non-2xx - SWR will catch this as `error`\n if (!response.ok) {\n throw new AvallonError(response.status, body as AvallonError[\"body\"]);\n }\n\n // 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 */\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"]}