@avallon-labs/sdk 0.0.0-4d940829

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,540 @@
1
+ import useSwr from 'swr';
2
+ import useSWRMutation2 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 {
46
+ data: body,
47
+ status: response.status,
48
+ headers: response.headers
49
+ };
50
+ }
51
+ async function customFetch(url, options) {
52
+ return doFetch(url, options, true);
53
+ }
54
+ async function customFetchNoAuth(url, options) {
55
+ return doFetch(url, options, false);
56
+ }
57
+ var AvallonError = class extends Error {
58
+ constructor(status, body) {
59
+ super(body?.message ?? `API error ${status}`);
60
+ this.status = status;
61
+ this.body = body;
62
+ this.name = "AvallonError";
63
+ }
64
+ /** Validation errors (400) have field-level details */
65
+ get errors() {
66
+ const data = this.body?.data;
67
+ return data?.errors;
68
+ }
69
+ isValidationError() {
70
+ return this.status === 400;
71
+ }
72
+ isUnauthorized() {
73
+ return this.status === 401;
74
+ }
75
+ isNotFound() {
76
+ return this.status === 404;
77
+ }
78
+ };
79
+
80
+ // src/auth.ts
81
+ function generateCodeVerifier(length = 64) {
82
+ const charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";
83
+ const randomValues = crypto.getRandomValues(new Uint8Array(length));
84
+ return Array.from(randomValues).map((v) => charset[v % charset.length]).join("");
85
+ }
86
+ async function generateCodeChallenge(verifier) {
87
+ const encoder = new TextEncoder();
88
+ const data = encoder.encode(verifier);
89
+ const digest = await crypto.subtle.digest("SHA-256", data);
90
+ return base64UrlEncode(digest);
91
+ }
92
+ function base64UrlEncode(buffer) {
93
+ const bytes = new Uint8Array(buffer);
94
+ let binary = "";
95
+ for (const byte of bytes) {
96
+ binary += String.fromCharCode(byte);
97
+ }
98
+ return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
99
+ }
100
+ var getListAgentsUrl = (params) => {
101
+ const normalizedParams = new URLSearchParams();
102
+ Object.entries(params || {}).forEach(([key, value]) => {
103
+ if (value !== void 0) {
104
+ normalizedParams.append(key, value === null ? "null" : value.toString());
105
+ }
106
+ });
107
+ const stringifiedParams = normalizedParams.toString();
108
+ return stringifiedParams.length > 0 ? `/v1/agents?${stringifiedParams}` : `/v1/agents`;
109
+ };
110
+ var listAgents = async (params, options) => {
111
+ return customFetch(getListAgentsUrl(params), {
112
+ ...options,
113
+ method: "GET"
114
+ });
115
+ };
116
+ var getListAgentsKey = (params) => [`/v1/agents`, ...params ? [params] : []];
117
+ var useListAgents = (params, options) => {
118
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
119
+ const isEnabled = swrOptions?.enabled !== false;
120
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListAgentsKey(params) : null);
121
+ const swrFn = () => listAgents(params, requestOptions);
122
+ const query = useSwr(
123
+ swrKey,
124
+ swrFn,
125
+ swrOptions
126
+ );
127
+ return {
128
+ swrKey,
129
+ ...query
130
+ };
131
+ };
132
+ var getCreateAgentUrl = () => {
133
+ return `/v1/agents`;
134
+ };
135
+ var createAgent = async (createAgentBody, options) => {
136
+ return customFetch(getCreateAgentUrl(), {
137
+ ...options,
138
+ method: "POST",
139
+ headers: { "Content-Type": "application/json", ...options?.headers },
140
+ body: JSON.stringify(createAgentBody)
141
+ });
142
+ };
143
+ var getCreateAgentMutationFetcher = (options) => {
144
+ return (_, { arg }) => {
145
+ return createAgent(arg, options);
146
+ };
147
+ };
148
+ var getCreateAgentMutationKey = () => [`/v1/agents`];
149
+ var useCreateAgent = (options) => {
150
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
151
+ const swrKey = swrOptions?.swrKey ?? getCreateAgentMutationKey();
152
+ const swrFn = getCreateAgentMutationFetcher(requestOptions);
153
+ const query = useSWRMutation2(swrKey, swrFn, swrOptions);
154
+ return {
155
+ swrKey,
156
+ ...query
157
+ };
158
+ };
159
+ var getGetAgentUrl = (id) => {
160
+ return `/v1/agents/${id}`;
161
+ };
162
+ var getAgent = async (id, options) => {
163
+ return customFetch(getGetAgentUrl(id), {
164
+ ...options,
165
+ method: "GET"
166
+ });
167
+ };
168
+ var getGetAgentKey = (id) => [`/v1/agents/${id}`];
169
+ var useGetAgent = (id, options) => {
170
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
171
+ const isEnabled = swrOptions?.enabled !== false && !!id;
172
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getGetAgentKey(id) : null);
173
+ const swrFn = () => getAgent(id, requestOptions);
174
+ const query = useSwr(
175
+ swrKey,
176
+ swrFn,
177
+ swrOptions
178
+ );
179
+ return {
180
+ swrKey,
181
+ ...query
182
+ };
183
+ };
184
+ var getPostV1AuthSignUpUrl = () => {
185
+ return `/v1/auth/sign-up`;
186
+ };
187
+ var postV1AuthSignUp = async (postV1AuthSignUpBody, options) => {
188
+ return customFetchNoAuth(getPostV1AuthSignUpUrl(), {
189
+ ...options,
190
+ method: "POST",
191
+ headers: { "Content-Type": "application/json", ...options?.headers },
192
+ body: JSON.stringify(postV1AuthSignUpBody)
193
+ });
194
+ };
195
+ var getPostV1AuthSignUpMutationFetcher = (options) => {
196
+ return (_, { arg }) => {
197
+ return postV1AuthSignUp(arg, options);
198
+ };
199
+ };
200
+ var getPostV1AuthSignUpMutationKey = () => [`/v1/auth/sign-up`];
201
+ var usePostV1AuthSignUp = (options) => {
202
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
203
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignUpMutationKey();
204
+ const swrFn = getPostV1AuthSignUpMutationFetcher(requestOptions);
205
+ const query = useSWRMutation2(swrKey, swrFn, swrOptions);
206
+ return {
207
+ swrKey,
208
+ ...query
209
+ };
210
+ };
211
+ var getPostV1AuthSignInUrl = () => {
212
+ return `/v1/auth/sign-in`;
213
+ };
214
+ var postV1AuthSignIn = async (postV1AuthSignInBody, options) => {
215
+ return customFetchNoAuth(getPostV1AuthSignInUrl(), {
216
+ ...options,
217
+ method: "POST",
218
+ headers: { "Content-Type": "application/json", ...options?.headers },
219
+ body: JSON.stringify(postV1AuthSignInBody)
220
+ });
221
+ };
222
+ var getPostV1AuthSignInMutationFetcher = (options) => {
223
+ return (_, { arg }) => {
224
+ return postV1AuthSignIn(arg, options);
225
+ };
226
+ };
227
+ var getPostV1AuthSignInMutationKey = () => [`/v1/auth/sign-in`];
228
+ var usePostV1AuthSignIn = (options) => {
229
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
230
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignInMutationKey();
231
+ const swrFn = getPostV1AuthSignInMutationFetcher(requestOptions);
232
+ const query = useSWRMutation2(swrKey, swrFn, swrOptions);
233
+ return {
234
+ swrKey,
235
+ ...query
236
+ };
237
+ };
238
+ var getPostV1AuthRefreshTokenUrl = () => {
239
+ return `/v1/auth/refresh-token`;
240
+ };
241
+ var postV1AuthRefreshToken = async (postV1AuthRefreshTokenBody, options) => {
242
+ return customFetchNoAuth(
243
+ getPostV1AuthRefreshTokenUrl(),
244
+ {
245
+ ...options,
246
+ method: "POST",
247
+ headers: { "Content-Type": "application/json", ...options?.headers },
248
+ body: JSON.stringify(postV1AuthRefreshTokenBody)
249
+ }
250
+ );
251
+ };
252
+ var getPostV1AuthRefreshTokenMutationFetcher = (options) => {
253
+ return (_, { arg }) => {
254
+ return postV1AuthRefreshToken(arg, options);
255
+ };
256
+ };
257
+ var getPostV1AuthRefreshTokenMutationKey = () => [`/v1/auth/refresh-token`];
258
+ var usePostV1AuthRefreshToken = (options) => {
259
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
260
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthRefreshTokenMutationKey();
261
+ const swrFn = getPostV1AuthRefreshTokenMutationFetcher(requestOptions);
262
+ const query = useSWRMutation2(swrKey, swrFn, swrOptions);
263
+ return {
264
+ swrKey,
265
+ ...query
266
+ };
267
+ };
268
+ var getGetV1AuthOauthUrlUrl = (params) => {
269
+ const normalizedParams = new URLSearchParams();
270
+ Object.entries(params || {}).forEach(([key, value]) => {
271
+ if (value !== void 0) {
272
+ normalizedParams.append(key, value === null ? "null" : value.toString());
273
+ }
274
+ });
275
+ const stringifiedParams = normalizedParams.toString();
276
+ return stringifiedParams.length > 0 ? `/v1/auth/oauth-url?${stringifiedParams}` : `/v1/auth/oauth-url`;
277
+ };
278
+ var getV1AuthOauthUrl = async (params, options) => {
279
+ return customFetchNoAuth(
280
+ getGetV1AuthOauthUrlUrl(params),
281
+ {
282
+ ...options,
283
+ method: "GET"
284
+ }
285
+ );
286
+ };
287
+ var getGetV1AuthOauthUrlKey = (params) => [`/v1/auth/oauth-url`, ...params ? [params] : []];
288
+ var useGetV1AuthOauthUrl = (params, options) => {
289
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
290
+ const isEnabled = swrOptions?.enabled !== false;
291
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getGetV1AuthOauthUrlKey(params) : null);
292
+ const swrFn = () => getV1AuthOauthUrl(params, requestOptions);
293
+ const query = useSwr(
294
+ swrKey,
295
+ swrFn,
296
+ swrOptions
297
+ );
298
+ return {
299
+ swrKey,
300
+ ...query
301
+ };
302
+ };
303
+
304
+ // generated/models/createAgent200DataAgentBackgroundSounds.ts
305
+ var CreateAgent200DataAgentBackgroundSounds = {
306
+ enabled: "enabled",
307
+ disabled: "disabled"
308
+ };
309
+
310
+ // generated/models/createAgent200DataAgentDirection.ts
311
+ var CreateAgent200DataAgentDirection = {
312
+ INBOUND: "INBOUND",
313
+ OUTBOUND: "OUTBOUND"
314
+ };
315
+
316
+ // generated/models/createAgent200DataAgentLanguage.ts
317
+ var CreateAgent200DataAgentLanguage = {
318
+ "en-US": "en-US",
319
+ "de-DE": "de-DE"
320
+ };
321
+
322
+ // generated/models/createAgent200DataAgentLlmModel.ts
323
+ var CreateAgent200DataAgentLlmModel = {
324
+ GPT41: "GPT4.1",
325
+ "AZURE-GPT4o": "AZURE-GPT4o",
326
+ "AZURE-GPT41": "AZURE-GPT4.1",
327
+ "GPT-5": "GPT-5",
328
+ "GPT-5-low": "GPT-5-low",
329
+ "GPT-5-high": "GPT-5-high",
330
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
331
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
332
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
333
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
334
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
335
+ "GEMINI-3-flash": "GEMINI-3-flash"
336
+ };
337
+
338
+ // generated/models/createAgent200DataAgentSttModel.ts
339
+ var CreateAgent200DataAgentSttModel = {
340
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
341
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
342
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
343
+ };
344
+
345
+ // generated/models/createAgent200DataAgentTtsModel.ts
346
+ var CreateAgent200DataAgentTtsModel = {
347
+ eleven_flash_v2_5: "eleven_flash_v2_5",
348
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
349
+ "sonic-multilingual": "sonic-multilingual",
350
+ "sonic-3": "sonic-3",
351
+ chirp_3: "chirp_3"
352
+ };
353
+
354
+ // generated/models/createAgent200DataAgentTtsProvider.ts
355
+ var CreateAgent200DataAgentTtsProvider = {
356
+ elevenlabs: "elevenlabs",
357
+ cartesia: "cartesia",
358
+ google: "google"
359
+ };
360
+
361
+ // generated/models/createAgentBodyDirection.ts
362
+ var CreateAgentBodyDirection = {
363
+ OUTBOUND: "OUTBOUND",
364
+ INBOUND: "INBOUND"
365
+ };
366
+
367
+ // generated/models/createAgentBodyLanguage.ts
368
+ var CreateAgentBodyLanguage = {
369
+ "en-US": "en-US",
370
+ "de-DE": "de-DE"
371
+ };
372
+
373
+ // generated/models/createAgentBodyLlmModel.ts
374
+ var CreateAgentBodyLlmModel = {
375
+ GPT41: "GPT4.1",
376
+ "AZURE-GPT4o": "AZURE-GPT4o",
377
+ "AZURE-GPT41": "AZURE-GPT4.1",
378
+ "GPT-5": "GPT-5",
379
+ "GPT-5-low": "GPT-5-low",
380
+ "GPT-5-high": "GPT-5-high",
381
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
382
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
383
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
384
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
385
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
386
+ "GEMINI-3-flash": "GEMINI-3-flash"
387
+ };
388
+
389
+ // generated/models/createAgentBodySttModel.ts
390
+ var CreateAgentBodySttModel = {
391
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
392
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
393
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
394
+ };
395
+
396
+ // generated/models/createAgentBodyTtsModel.ts
397
+ var CreateAgentBodyTtsModel = {
398
+ eleven_flash_v2_5: "eleven_flash_v2_5",
399
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
400
+ "sonic-multilingual": "sonic-multilingual",
401
+ "sonic-3": "sonic-3",
402
+ chirp_3: "chirp_3"
403
+ };
404
+
405
+ // generated/models/createAgentBodyTtsProvider.ts
406
+ var CreateAgentBodyTtsProvider = {
407
+ elevenlabs: "elevenlabs",
408
+ cartesia: "cartesia",
409
+ google: "google"
410
+ };
411
+
412
+ // generated/models/getAgent200DataAgentBackgroundSounds.ts
413
+ var GetAgent200DataAgentBackgroundSounds = {
414
+ enabled: "enabled",
415
+ disabled: "disabled"
416
+ };
417
+
418
+ // generated/models/getAgent200DataAgentDirection.ts
419
+ var GetAgent200DataAgentDirection = {
420
+ INBOUND: "INBOUND",
421
+ OUTBOUND: "OUTBOUND"
422
+ };
423
+
424
+ // generated/models/getAgent200DataAgentLanguage.ts
425
+ var GetAgent200DataAgentLanguage = {
426
+ "en-US": "en-US",
427
+ "de-DE": "de-DE"
428
+ };
429
+
430
+ // generated/models/getAgent200DataAgentLlmModel.ts
431
+ var GetAgent200DataAgentLlmModel = {
432
+ GPT41: "GPT4.1",
433
+ "AZURE-GPT4o": "AZURE-GPT4o",
434
+ "AZURE-GPT41": "AZURE-GPT4.1",
435
+ "GPT-5": "GPT-5",
436
+ "GPT-5-low": "GPT-5-low",
437
+ "GPT-5-high": "GPT-5-high",
438
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
439
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
440
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
441
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
442
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
443
+ "GEMINI-3-flash": "GEMINI-3-flash"
444
+ };
445
+
446
+ // generated/models/getAgent200DataAgentSttModel.ts
447
+ var GetAgent200DataAgentSttModel = {
448
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
449
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
450
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
451
+ };
452
+
453
+ // generated/models/getAgent200DataAgentTtsModel.ts
454
+ var GetAgent200DataAgentTtsModel = {
455
+ eleven_flash_v2_5: "eleven_flash_v2_5",
456
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
457
+ "sonic-multilingual": "sonic-multilingual",
458
+ "sonic-3": "sonic-3",
459
+ chirp_3: "chirp_3"
460
+ };
461
+
462
+ // generated/models/getAgent200DataAgentTtsProvider.ts
463
+ var GetAgent200DataAgentTtsProvider = {
464
+ elevenlabs: "elevenlabs",
465
+ cartesia: "cartesia",
466
+ google: "google"
467
+ };
468
+
469
+ // generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts
470
+ var GetV1AuthOauthUrlCodeChallengeMethod = {
471
+ plain: "plain",
472
+ s256: "s256"
473
+ };
474
+
475
+ // generated/models/getV1AuthOauthUrlProvider.ts
476
+ var GetV1AuthOauthUrlProvider = {
477
+ google: "google",
478
+ microsoft: "microsoft"
479
+ };
480
+
481
+ // generated/models/listAgents200DataAgentsItemBackgroundSounds.ts
482
+ var ListAgents200DataAgentsItemBackgroundSounds = {
483
+ enabled: "enabled",
484
+ disabled: "disabled"
485
+ };
486
+
487
+ // generated/models/listAgents200DataAgentsItemDirection.ts
488
+ var ListAgents200DataAgentsItemDirection = {
489
+ INBOUND: "INBOUND",
490
+ OUTBOUND: "OUTBOUND"
491
+ };
492
+
493
+ // generated/models/listAgents200DataAgentsItemLanguage.ts
494
+ var ListAgents200DataAgentsItemLanguage = {
495
+ "en-US": "en-US",
496
+ "de-DE": "de-DE"
497
+ };
498
+
499
+ // generated/models/listAgents200DataAgentsItemLlmModel.ts
500
+ var ListAgents200DataAgentsItemLlmModel = {
501
+ GPT41: "GPT4.1",
502
+ "AZURE-GPT4o": "AZURE-GPT4o",
503
+ "AZURE-GPT41": "AZURE-GPT4.1",
504
+ "GPT-5": "GPT-5",
505
+ "GPT-5-low": "GPT-5-low",
506
+ "GPT-5-high": "GPT-5-high",
507
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
508
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
509
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
510
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
511
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
512
+ "GEMINI-3-flash": "GEMINI-3-flash"
513
+ };
514
+
515
+ // generated/models/listAgents200DataAgentsItemSttModel.ts
516
+ var ListAgents200DataAgentsItemSttModel = {
517
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
518
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
519
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
520
+ };
521
+
522
+ // generated/models/listAgents200DataAgentsItemTtsModel.ts
523
+ var ListAgents200DataAgentsItemTtsModel = {
524
+ eleven_flash_v2_5: "eleven_flash_v2_5",
525
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
526
+ "sonic-multilingual": "sonic-multilingual",
527
+ "sonic-3": "sonic-3",
528
+ chirp_3: "chirp_3"
529
+ };
530
+
531
+ // generated/models/listAgents200DataAgentsItemTtsProvider.ts
532
+ var ListAgents200DataAgentsItemTtsProvider = {
533
+ elevenlabs: "elevenlabs",
534
+ cartesia: "cartesia",
535
+ google: "google"
536
+ };
537
+
538
+ export { AvallonError, CreateAgent200DataAgentBackgroundSounds, CreateAgent200DataAgentDirection, CreateAgent200DataAgentLanguage, CreateAgent200DataAgentLlmModel, CreateAgent200DataAgentSttModel, CreateAgent200DataAgentTtsModel, CreateAgent200DataAgentTtsProvider, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, GetAgent200DataAgentBackgroundSounds, GetAgent200DataAgentDirection, GetAgent200DataAgentLanguage, GetAgent200DataAgentLlmModel, GetAgent200DataAgentSttModel, GetAgent200DataAgentTtsModel, GetAgent200DataAgentTtsProvider, GetV1AuthOauthUrlCodeChallengeMethod, GetV1AuthOauthUrlProvider, ListAgents200DataAgentsItemBackgroundSounds, ListAgents200DataAgentsItemDirection, ListAgents200DataAgentsItemLanguage, ListAgents200DataAgentsItemLlmModel, ListAgents200DataAgentsItemSttModel, ListAgents200DataAgentsItemTtsModel, ListAgents200DataAgentsItemTtsProvider, configure, createAgent, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getListAgentsKey, getListAgentsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getV1AuthOauthUrl, listAgents, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, useCreateAgent, useGetAgent, useGetV1AuthOauthUrl, useListAgents, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp };
539
+ //# sourceMappingURL=index.js.map
540
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/fetcher.ts","../src/auth.ts","../generated/endpoints/agents/agents.ts","../generated/endpoints/auth/auth.ts","../generated/models/createAgent200DataAgentBackgroundSounds.ts","../generated/models/createAgent200DataAgentDirection.ts","../generated/models/createAgent200DataAgentLanguage.ts","../generated/models/createAgent200DataAgentLlmModel.ts","../generated/models/createAgent200DataAgentSttModel.ts","../generated/models/createAgent200DataAgentTtsModel.ts","../generated/models/createAgent200DataAgentTtsProvider.ts","../generated/models/createAgentBodyDirection.ts","../generated/models/createAgentBodyLanguage.ts","../generated/models/createAgentBodyLlmModel.ts","../generated/models/createAgentBodySttModel.ts","../generated/models/createAgentBodyTtsModel.ts","../generated/models/createAgentBodyTtsProvider.ts","../generated/models/getAgent200DataAgentBackgroundSounds.ts","../generated/models/getAgent200DataAgentDirection.ts","../generated/models/getAgent200DataAgentLanguage.ts","../generated/models/getAgent200DataAgentLlmModel.ts","../generated/models/getAgent200DataAgentSttModel.ts","../generated/models/getAgent200DataAgentTtsModel.ts","../generated/models/getAgent200DataAgentTtsProvider.ts","../generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts","../generated/models/getV1AuthOauthUrlProvider.ts","../generated/models/listAgents200DataAgentsItemBackgroundSounds.ts","../generated/models/listAgents200DataAgentsItemDirection.ts","../generated/models/listAgents200DataAgentsItemLanguage.ts","../generated/models/listAgents200DataAgentsItemLlmModel.ts","../generated/models/listAgents200DataAgentsItemSttModel.ts","../generated/models/listAgents200DataAgentsItemTtsModel.ts","../generated/models/listAgents200DataAgentsItemTtsProvider.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,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**\n * Custom fetch wrapper for Orval-generated client.\n * Handles auth (API key or Bearer token) and base URL configuration.\n * Throws AvallonError on non-2xx responses for clean SWR error handling.\n */\n\n// --------------------------------------------------------------------------\n// Configuration\n// --------------------------------------------------------------------------\n\nlet config: AvallonConfig = {\n baseUrl: \"https://api.avallon.ai\",\n};\n\nexport type AvallonConfig = {\n baseUrl?: string;\n apiKey?: string;\n /**\n * Token provider - can be sync or async.\n * Async allows the application to check expiry and refresh before returning.\n */\n getAccessToken?: () => string | null | Promise<string | null>;\n};\n\n/** Configure the SDK at runtime */\nexport function configure(newConfig: Partial<AvallonConfig>) {\n config = { ...config, ...newConfig };\n}\n\n/** Get current config */\nexport function getConfig(): AvallonConfig {\n return { ...config };\n}\n\n// --------------------------------------------------------------------------\n// Fetch wrapper\n// --------------------------------------------------------------------------\n\n/** Shared fetch logic */\nasync function doFetch<T>(\n url: string,\n options: RequestInit,\n withAuth: boolean\n): Promise<T> {\n const fullUrl = url.startsWith(\"http\") ? url : `${config.baseUrl}${url}`;\n\n const headers = new Headers(options.headers);\n\n // Only set Content-Type for requests with JSON body\n // (allows file uploads to set their own Content-Type)\n if (options.body && typeof options.body === \"string\") {\n headers.set(\"Content-Type\", \"application/json\");\n }\n\n if (withAuth) {\n const accessToken = await config.getAccessToken?.();\n if (accessToken) {\n headers.set(\"Authorization\", `Bearer ${accessToken}`);\n } else if (config.apiKey) {\n headers.set(\"x-api-key\", config.apiKey);\n }\n }\n\n const response = await fetch(fullUrl, {\n ...options,\n headers,\n });\n\n // Parse response based on content type\n const contentType = response.headers.get(\"Content-Type\") ?? \"\";\n let body: unknown;\n\n if (response.status === 204) {\n // No content\n body = {};\n } else if (contentType.includes(\"application/json\")) {\n body = await response.json().catch(() => ({}));\n } else {\n // Non-JSON response (shouldn't happen with our API, but handle gracefully)\n const text = await response.text().catch(() => \"\");\n body = { message: text };\n }\n\n // Throw on non-2xx - SWR will catch this as `error`\n if (!response.ok) {\n throw new AvallonError(response.status, body as AvallonError[\"body\"]);\n }\n\n // Return success response in expected shape\n return {\n data: body,\n status: response.status,\n headers: response.headers,\n } as T;\n}\n\n/** Authenticated fetch - adds API key or Bearer token */\nexport async function customFetch<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, true);\n}\n\n/** Unauthenticated fetch - for auth flow endpoints (sign-in, sign-up, etc.) */\nexport async function customFetchNoAuth<T>(\n url: string,\n options: RequestInit\n): Promise<T> {\n return doFetch(url, options, false);\n}\n\n// --------------------------------------------------------------------------\n// Error class\n// --------------------------------------------------------------------------\n\n/** Typed error class for API errors */\nexport class AvallonError extends Error {\n constructor(\n public readonly status: number,\n public readonly body: {\n data?: unknown;\n message?: string;\n }\n ) {\n super(body?.message ?? `API error ${status}`);\n this.name = \"AvallonError\";\n }\n\n /** Validation errors (400) have field-level details */\n get errors(): Array<{ field: string; message: string }> | undefined {\n const data = this.body?.data as {\n errors?: Array<{ field: string; message: string }>;\n };\n return data?.errors;\n }\n\n isValidationError(): boolean {\n return this.status === 400;\n }\n\n isUnauthorized(): boolean {\n return this.status === 401;\n }\n\n isNotFound(): boolean {\n return this.status === 404;\n }\n}\n","/**\n * PKCE Utilities\n *\n * Cryptographic helpers for OAuth PKCE flow. Platform-agnostic -\n * works in both Node.js and browsers via Web Crypto API.\n *\n * These utilities can't be generated from OpenAPI - they're\n * client-side crypto that complements the generated auth endpoints.\n *\n * @example\n * ```ts\n * import {\n * generateCodeVerifier,\n * generateCodeChallenge,\n * getV1AuthOauthUrl,\n * postV1AuthOauthExchange,\n * } from \"@avallon-labs/sdk\";\n *\n * // 1. Generate PKCE pair\n * const verifier = generateCodeVerifier();\n * const challenge = await generateCodeChallenge(verifier);\n *\n * // 2. Get OAuth URL (store verifier for after redirect)\n * sessionStorage.setItem(\"oauth_verifier\", verifier);\n * const { data } = await getV1AuthOauthUrl({\n * provider: \"google\",\n * redirect_uri: \"https://app.example.com/callback\",\n * code_challenge: challenge,\n * code_challenge_method: \"s256\",\n * });\n * window.location.href = data.data.url;\n *\n * // 3. After redirect, exchange code for tokens\n * const verifier = sessionStorage.getItem(\"oauth_verifier\");\n * const tokens = await postV1AuthOauthExchange({\n * code: urlParams.get(\"code\"),\n * code_verifier: verifier,\n * });\n * ```\n */\n\n// --------------------------------------------------------------------------\n// PKCE Utilities\n// --------------------------------------------------------------------------\n\n/** Generate a cryptographically random code verifier (43-128 chars) */\nexport function generateCodeVerifier(length = 64): string {\n const charset =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~\";\n const randomValues = crypto.getRandomValues(new Uint8Array(length));\n return Array.from(randomValues)\n .map((v) => charset[v % charset.length])\n .join(\"\");\n}\n\n/** Generate S256 code challenge from verifier */\nexport async function generateCodeChallenge(verifier: string): Promise<string> {\n const encoder = new TextEncoder();\n const data = encoder.encode(verifier);\n const digest = await crypto.subtle.digest(\"SHA-256\", data);\n return base64UrlEncode(digest);\n}\n\nfunction base64UrlEncode(buffer: ArrayBuffer): string {\n const bytes = new Uint8Array(buffer);\n let binary = \"\";\n for (const byte of bytes) {\n binary += String.fromCharCode(byte);\n }\n return btoa(binary)\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=+$/, \"\");\n}\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n CreateAgent200,\n CreateAgentBody,\n ErrorResponse,\n GetAgent200,\n ListAgents200,\n ListAgentsParams,\n} from \"../../models\";\n\nimport { customFetch } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * List all agents for your tenant.\n\n**Filtering:**\n\nFilter agents by name using the `agent_name` query parameter (exact match).\n\n**Response:**\n\nReturns an array of all agents with their configurations and a total count.\n * @summary List agents\n */\nexport type listAgentsResponse200 = {\n data: ListAgents200;\n status: 200;\n};\n\nexport type listAgentsResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type listAgentsResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type listAgentsResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type listAgentsResponseSuccess = listAgentsResponse200 & {\n headers: Headers;\n};\nexport type listAgentsResponseError = (\n | listAgentsResponse400\n | listAgentsResponse401\n | listAgentsResponse500\n) & {\n headers: Headers;\n};\n\nexport type listAgentsResponse =\n | listAgentsResponseSuccess\n | listAgentsResponseError;\n\nexport const getListAgentsUrl = (params?: ListAgentsParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/agents?${stringifiedParams}`\n : `/v1/agents`;\n};\n\nexport const listAgents = async (\n params?: ListAgentsParams,\n options?: RequestInit\n): Promise<listAgentsResponse> => {\n return customFetch<listAgentsResponse>(getListAgentsUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getListAgentsKey = (params?: ListAgentsParams) =>\n [`/v1/agents`, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsQueryResult = NonNullable<\n Awaited<ReturnType<typeof listAgents>>\n>;\n\n/**\n * @summary List agents\n */\nexport const useListAgents = <TError = ErrorResponse>(\n params?: ListAgentsParams,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof listAgents>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getListAgentsKey(params) : null));\n const swrFn = () => listAgents(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Create a new voice agent with the specified configuration.\n\n**Required fields:**\n\nAll fields in the request body are required except `phone_number_id` and `transfer_phone_number`.\n\n**Response:**\n\nReturns the created agent with its ID and configuration.\n * @summary Create agent\n */\nexport type createAgentResponse200 = {\n data: CreateAgent200;\n status: 200;\n};\n\nexport type createAgentResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type createAgentResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type createAgentResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type createAgentResponseSuccess = createAgentResponse200 & {\n headers: Headers;\n};\nexport type createAgentResponseError = (\n | createAgentResponse400\n | createAgentResponse401\n | createAgentResponse500\n) & {\n headers: Headers;\n};\n\nexport type createAgentResponse =\n | createAgentResponseSuccess\n | createAgentResponseError;\n\nexport const getCreateAgentUrl = () => {\n return `/v1/agents`;\n};\n\nexport const createAgent = async (\n createAgentBody: CreateAgentBody,\n options?: RequestInit\n): Promise<createAgentResponse> => {\n return customFetch<createAgentResponse>(getCreateAgentUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(createAgentBody),\n });\n};\n\nexport const getCreateAgentMutationFetcher = (\n options?: SecondParameter<typeof customFetch>\n) => {\n return (_: Key, { arg }: { arg: CreateAgentBody }) => {\n return createAgent(arg, options);\n };\n};\nexport const getCreateAgentMutationKey = () => [`/v1/agents`] as const;\n\nexport type CreateAgentMutationResult = NonNullable<\n Awaited<ReturnType<typeof createAgent>>\n>;\n\n/**\n * @summary Create agent\n */\nexport const useCreateAgent = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof createAgent>>,\n TError,\n Key,\n CreateAgentBody,\n Awaited<ReturnType<typeof createAgent>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getCreateAgentMutationKey();\n const swrFn = getCreateAgentMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\n/**\n * Retrieve a single agent by ID.\n * @summary Get agent\n */\nexport type getAgentResponse200 = {\n data: GetAgent200;\n status: 200;\n};\n\nexport type getAgentResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type getAgentResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type getAgentResponse404 = {\n data: ErrorResponse;\n status: 404;\n};\n\nexport type getAgentResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type getAgentResponseSuccess = getAgentResponse200 & {\n headers: Headers;\n};\nexport type getAgentResponseError = (\n | getAgentResponse400\n | getAgentResponse401\n | getAgentResponse404\n | getAgentResponse500\n) & {\n headers: Headers;\n};\n\nexport type getAgentResponse = getAgentResponseSuccess | getAgentResponseError;\n\nexport const getGetAgentUrl = (id: string) => {\n return `/v1/agents/${id}`;\n};\n\nexport const getAgent = async (\n id: string,\n options?: RequestInit\n): Promise<getAgentResponse> => {\n return customFetch<getAgentResponse>(getGetAgentUrl(id), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetAgentKey = (id: string) => [`/v1/agents/${id}`] as const;\n\nexport type GetAgentQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAgent>>\n>;\n\n/**\n * @summary Get agent\n */\nexport const useGetAgent = <TError = ErrorResponse>(\n id: string,\n options?: {\n swr?: SWRConfiguration<Awaited<ReturnType<typeof getAgent>>, TError> & {\n swrKey?: Key;\n enabled?: boolean;\n };\n request?: SecondParameter<typeof customFetch>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false && !!id;\n const swrKey =\n swrOptions?.swrKey ?? (() => (isEnabled ? getGetAgentKey(id) : null));\n const swrFn = () => getAgent(id, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\nimport useSwr from \"swr\";\nimport type { Key, SWRConfiguration } from \"swr\";\n\nimport useSWRMutation from \"swr/mutation\";\nimport type { SWRMutationConfiguration } from \"swr/mutation\";\n\nimport type {\n ErrorResponse,\n GetV1AuthOauthUrl200,\n GetV1AuthOauthUrlParams,\n PostV1AuthRefreshToken200,\n PostV1AuthRefreshTokenBody,\n PostV1AuthSignIn200,\n PostV1AuthSignInBody,\n PostV1AuthSignUp200,\n PostV1AuthSignUpBody,\n} from \"../../models\";\n\nimport { customFetchNoAuth } from \"../../../src/fetcher\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport type postV1AuthSignUpResponse200 = {\n data: PostV1AuthSignUp200;\n status: 200;\n};\n\nexport type postV1AuthSignUpResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type postV1AuthSignUpResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type postV1AuthSignUpResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type postV1AuthSignUpResponseSuccess = postV1AuthSignUpResponse200 & {\n headers: Headers;\n};\nexport type postV1AuthSignUpResponseError = (\n | postV1AuthSignUpResponse400\n | postV1AuthSignUpResponse401\n | postV1AuthSignUpResponse500\n) & {\n headers: Headers;\n};\n\nexport type postV1AuthSignUpResponse =\n | postV1AuthSignUpResponseSuccess\n | postV1AuthSignUpResponseError;\n\nexport const getPostV1AuthSignUpUrl = () => {\n return `/v1/auth/sign-up`;\n};\n\nexport const postV1AuthSignUp = async (\n postV1AuthSignUpBody: PostV1AuthSignUpBody,\n options?: RequestInit\n): Promise<postV1AuthSignUpResponse> => {\n return customFetchNoAuth<postV1AuthSignUpResponse>(getPostV1AuthSignUpUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignUpBody),\n });\n};\n\nexport const getPostV1AuthSignUpMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignUpBody }) => {\n return postV1AuthSignUp(arg, options);\n };\n};\nexport const getPostV1AuthSignUpMutationKey = () =>\n [`/v1/auth/sign-up`] as const;\n\nexport type PostV1AuthSignUpMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n>;\n\nexport const usePostV1AuthSignUp = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignUp>>,\n TError,\n Key,\n PostV1AuthSignUpBody,\n Awaited<ReturnType<typeof postV1AuthSignUp>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignUpMutationKey();\n const swrFn = getPostV1AuthSignUpMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport type postV1AuthSignInResponse200 = {\n data: PostV1AuthSignIn200;\n status: 200;\n};\n\nexport type postV1AuthSignInResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type postV1AuthSignInResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type postV1AuthSignInResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type postV1AuthSignInResponseSuccess = postV1AuthSignInResponse200 & {\n headers: Headers;\n};\nexport type postV1AuthSignInResponseError = (\n | postV1AuthSignInResponse400\n | postV1AuthSignInResponse401\n | postV1AuthSignInResponse500\n) & {\n headers: Headers;\n};\n\nexport type postV1AuthSignInResponse =\n | postV1AuthSignInResponseSuccess\n | postV1AuthSignInResponseError;\n\nexport const getPostV1AuthSignInUrl = () => {\n return `/v1/auth/sign-in`;\n};\n\nexport const postV1AuthSignIn = async (\n postV1AuthSignInBody: PostV1AuthSignInBody,\n options?: RequestInit\n): Promise<postV1AuthSignInResponse> => {\n return customFetchNoAuth<postV1AuthSignInResponse>(getPostV1AuthSignInUrl(), {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthSignInBody),\n });\n};\n\nexport const getPostV1AuthSignInMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthSignInBody }) => {\n return postV1AuthSignIn(arg, options);\n };\n};\nexport const getPostV1AuthSignInMutationKey = () =>\n [`/v1/auth/sign-in`] as const;\n\nexport type PostV1AuthSignInMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n>;\n\nexport const usePostV1AuthSignIn = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthSignIn>>,\n TError,\n Key,\n PostV1AuthSignInBody,\n Awaited<ReturnType<typeof postV1AuthSignIn>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignInMutationKey();\n const swrFn = getPostV1AuthSignInMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport type postV1AuthRefreshTokenResponse200 = {\n data: PostV1AuthRefreshToken200;\n status: 200;\n};\n\nexport type postV1AuthRefreshTokenResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type postV1AuthRefreshTokenResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type postV1AuthRefreshTokenResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type postV1AuthRefreshTokenResponseSuccess =\n postV1AuthRefreshTokenResponse200 & {\n headers: Headers;\n };\nexport type postV1AuthRefreshTokenResponseError = (\n | postV1AuthRefreshTokenResponse400\n | postV1AuthRefreshTokenResponse401\n | postV1AuthRefreshTokenResponse500\n) & {\n headers: Headers;\n};\n\nexport type postV1AuthRefreshTokenResponse =\n | postV1AuthRefreshTokenResponseSuccess\n | postV1AuthRefreshTokenResponseError;\n\nexport const getPostV1AuthRefreshTokenUrl = () => {\n return `/v1/auth/refresh-token`;\n};\n\nexport const postV1AuthRefreshToken = async (\n postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody,\n options?: RequestInit\n): Promise<postV1AuthRefreshTokenResponse> => {\n return customFetchNoAuth<postV1AuthRefreshTokenResponse>(\n getPostV1AuthRefreshTokenUrl(),\n {\n ...options,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\", ...options?.headers },\n body: JSON.stringify(postV1AuthRefreshTokenBody),\n }\n );\n};\n\nexport const getPostV1AuthRefreshTokenMutationFetcher = (\n options?: SecondParameter<typeof customFetchNoAuth>\n) => {\n return (_: Key, { arg }: { arg: PostV1AuthRefreshTokenBody }) => {\n return postV1AuthRefreshToken(arg, options);\n };\n};\nexport const getPostV1AuthRefreshTokenMutationKey = () =>\n [`/v1/auth/refresh-token`] as const;\n\nexport type PostV1AuthRefreshTokenMutationResult = NonNullable<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n>;\n\nexport const usePostV1AuthRefreshToken = <TError = ErrorResponse>(options?: {\n swr?: SWRMutationConfiguration<\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>,\n TError,\n Key,\n PostV1AuthRefreshTokenBody,\n Awaited<ReturnType<typeof postV1AuthRefreshToken>>\n > & { swrKey?: string };\n request?: SecondParameter<typeof customFetchNoAuth>;\n}) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const swrKey = swrOptions?.swrKey ?? getPostV1AuthRefreshTokenMutationKey();\n const swrFn = getPostV1AuthRefreshTokenMutationFetcher(requestOptions);\n\n const query = useSWRMutation(swrKey, swrFn, swrOptions);\n\n return {\n swrKey,\n ...query,\n };\n};\nexport type getV1AuthOauthUrlResponse200 = {\n data: GetV1AuthOauthUrl200;\n status: 200;\n};\n\nexport type getV1AuthOauthUrlResponse400 = {\n data: ErrorResponse;\n status: 400;\n};\n\nexport type getV1AuthOauthUrlResponse401 = {\n data: ErrorResponse;\n status: 401;\n};\n\nexport type getV1AuthOauthUrlResponse500 = {\n data: ErrorResponse;\n status: 500;\n};\n\nexport type getV1AuthOauthUrlResponseSuccess = getV1AuthOauthUrlResponse200 & {\n headers: Headers;\n};\nexport type getV1AuthOauthUrlResponseError = (\n | getV1AuthOauthUrlResponse400\n | getV1AuthOauthUrlResponse401\n | getV1AuthOauthUrlResponse500\n) & {\n headers: Headers;\n};\n\nexport type getV1AuthOauthUrlResponse =\n | getV1AuthOauthUrlResponseSuccess\n | getV1AuthOauthUrlResponseError;\n\nexport const getGetV1AuthOauthUrlUrl = (params: GetV1AuthOauthUrlParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : value.toString());\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0\n ? `/v1/auth/oauth-url?${stringifiedParams}`\n : `/v1/auth/oauth-url`;\n};\n\nexport const getV1AuthOauthUrl = async (\n params: GetV1AuthOauthUrlParams,\n options?: RequestInit\n): Promise<getV1AuthOauthUrlResponse> => {\n return customFetchNoAuth<getV1AuthOauthUrlResponse>(\n getGetV1AuthOauthUrlUrl(params),\n {\n ...options,\n method: \"GET\",\n }\n );\n};\n\nexport const getGetV1AuthOauthUrlKey = (params: GetV1AuthOauthUrlParams) =>\n [`/v1/auth/oauth-url`, ...(params ? [params] : [])] as const;\n\nexport type GetV1AuthOauthUrlQueryResult = NonNullable<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>\n>;\n\nexport const useGetV1AuthOauthUrl = <TError = ErrorResponse>(\n params: GetV1AuthOauthUrlParams,\n options?: {\n swr?: SWRConfiguration<\n Awaited<ReturnType<typeof getV1AuthOauthUrl>>,\n TError\n > & { swrKey?: Key; enabled?: boolean };\n request?: SecondParameter<typeof customFetchNoAuth>;\n }\n) => {\n const { swr: swrOptions, request: requestOptions } = options ?? {};\n\n const isEnabled = swrOptions?.enabled !== false;\n const swrKey =\n swrOptions?.swrKey ??\n (() => (isEnabled ? getGetV1AuthOauthUrlKey(params) : null));\n const swrFn = () => getV1AuthOauthUrl(params, requestOptions);\n\n const query = useSwr<Awaited<ReturnType<typeof swrFn>>, TError>(\n swrKey,\n swrFn,\n swrOptions\n );\n\n return {\n swrKey,\n ...query,\n };\n};\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentBackgroundSounds =\n (typeof CreateAgent200DataAgentBackgroundSounds)[keyof typeof CreateAgent200DataAgentBackgroundSounds];\n\nexport const CreateAgent200DataAgentBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentDirection =\n (typeof CreateAgent200DataAgentDirection)[keyof typeof CreateAgent200DataAgentDirection];\n\nexport const CreateAgent200DataAgentDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentLanguage =\n (typeof CreateAgent200DataAgentLanguage)[keyof typeof CreateAgent200DataAgentLanguage];\n\nexport const CreateAgent200DataAgentLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentLlmModel =\n (typeof CreateAgent200DataAgentLlmModel)[keyof typeof CreateAgent200DataAgentLlmModel];\n\nexport const CreateAgent200DataAgentLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentSttModel =\n (typeof CreateAgent200DataAgentSttModel)[keyof typeof CreateAgent200DataAgentSttModel];\n\nexport const CreateAgent200DataAgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentTtsModel =\n (typeof CreateAgent200DataAgentTtsModel)[keyof typeof CreateAgent200DataAgentTtsModel];\n\nexport const CreateAgent200DataAgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type CreateAgent200DataAgentTtsProvider =\n (typeof CreateAgent200DataAgentTtsProvider)[keyof typeof CreateAgent200DataAgentTtsProvider];\n\nexport const CreateAgent200DataAgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Call direction the agent handles\n */\nexport type CreateAgentBodyDirection =\n (typeof CreateAgentBodyDirection)[keyof typeof CreateAgentBodyDirection];\n\nexport const CreateAgentBodyDirection = {\n OUTBOUND: \"OUTBOUND\",\n INBOUND: \"INBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Language for the agent\n */\nexport type CreateAgentBodyLanguage =\n (typeof CreateAgentBodyLanguage)[keyof typeof CreateAgentBodyLanguage];\n\nexport const CreateAgentBodyLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * LLM model for conversation\n */\nexport type CreateAgentBodyLlmModel =\n (typeof CreateAgentBodyLlmModel)[keyof typeof CreateAgentBodyLlmModel];\n\nexport const CreateAgentBodyLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Speech-to-text model\n */\nexport type CreateAgentBodySttModel =\n (typeof CreateAgentBodySttModel)[keyof typeof CreateAgentBodySttModel];\n\nexport const CreateAgentBodySttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech model\n */\nexport type CreateAgentBodyTtsModel =\n (typeof CreateAgentBodyTtsModel)[keyof typeof CreateAgentBodyTtsModel];\n\nexport const CreateAgentBodyTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Text-to-speech provider\n */\nexport type CreateAgentBodyTtsProvider =\n (typeof CreateAgentBodyTtsProvider)[keyof typeof CreateAgentBodyTtsProvider];\n\nexport const CreateAgentBodyTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentBackgroundSounds =\n (typeof GetAgent200DataAgentBackgroundSounds)[keyof typeof GetAgent200DataAgentBackgroundSounds];\n\nexport const GetAgent200DataAgentBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentDirection =\n (typeof GetAgent200DataAgentDirection)[keyof typeof GetAgent200DataAgentDirection];\n\nexport const GetAgent200DataAgentDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentLanguage =\n (typeof GetAgent200DataAgentLanguage)[keyof typeof GetAgent200DataAgentLanguage];\n\nexport const GetAgent200DataAgentLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentLlmModel =\n (typeof GetAgent200DataAgentLlmModel)[keyof typeof GetAgent200DataAgentLlmModel];\n\nexport const GetAgent200DataAgentLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentSttModel =\n (typeof GetAgent200DataAgentSttModel)[keyof typeof GetAgent200DataAgentSttModel];\n\nexport const GetAgent200DataAgentSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentTtsModel =\n (typeof GetAgent200DataAgentTtsModel)[keyof typeof GetAgent200DataAgentTtsModel];\n\nexport const GetAgent200DataAgentTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetAgent200DataAgentTtsProvider =\n (typeof GetAgent200DataAgentTtsProvider)[keyof typeof GetAgent200DataAgentTtsProvider];\n\nexport const GetAgent200DataAgentTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlCodeChallengeMethod =\n (typeof GetV1AuthOauthUrlCodeChallengeMethod)[keyof typeof GetV1AuthOauthUrlCodeChallengeMethod];\n\nexport const GetV1AuthOauthUrlCodeChallengeMethod = {\n plain: \"plain\",\n s256: \"s256\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type GetV1AuthOauthUrlProvider =\n (typeof GetV1AuthOauthUrlProvider)[keyof typeof GetV1AuthOauthUrlProvider];\n\nexport const GetV1AuthOauthUrlProvider = {\n google: \"google\",\n microsoft: \"microsoft\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemBackgroundSounds =\n (typeof ListAgents200DataAgentsItemBackgroundSounds)[keyof typeof ListAgents200DataAgentsItemBackgroundSounds];\n\nexport const ListAgents200DataAgentsItemBackgroundSounds = {\n enabled: \"enabled\",\n disabled: \"disabled\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemDirection =\n (typeof ListAgents200DataAgentsItemDirection)[keyof typeof ListAgents200DataAgentsItemDirection];\n\nexport const ListAgents200DataAgentsItemDirection = {\n INBOUND: \"INBOUND\",\n OUTBOUND: \"OUTBOUND\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemLanguage =\n (typeof ListAgents200DataAgentsItemLanguage)[keyof typeof ListAgents200DataAgentsItemLanguage];\n\nexport const ListAgents200DataAgentsItemLanguage = {\n \"en-US\": \"en-US\",\n \"de-DE\": \"de-DE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemLlmModel =\n (typeof ListAgents200DataAgentsItemLlmModel)[keyof typeof ListAgents200DataAgentsItemLlmModel];\n\nexport const ListAgents200DataAgentsItemLlmModel = {\n GPT41: \"GPT4.1\",\n \"AZURE-GPT4o\": \"AZURE-GPT4o\",\n \"AZURE-GPT41\": \"AZURE-GPT4.1\",\n \"GPT-5\": \"GPT-5\",\n \"GPT-5-low\": \"GPT-5-low\",\n \"GPT-5-high\": \"GPT-5-high\",\n \"GPT-51-chat-latest\": \"GPT-5.1-chat-latest\",\n \"GPT-51-no-reasoning\": \"GPT-5.1-no-reasoning\",\n \"GEMINI-15-flash\": \"GEMINI-1.5-flash\",\n \"GEMINI-25-flash\": \"GEMINI-2.5-flash\",\n \"GEMINI-25-flash-lite\": \"GEMINI-2.5-flash-lite\",\n \"GEMINI-3-flash\": \"GEMINI-3-flash\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemSttModel =\n (typeof ListAgents200DataAgentsItemSttModel)[keyof typeof ListAgents200DataAgentsItemSttModel];\n\nexport const ListAgents200DataAgentsItemSttModel = {\n \"DEEPGRAM-NOVA-2-GENERAL\": \"DEEPGRAM-NOVA-2-GENERAL\",\n \"DEEPGRAM-NOVA-3-GENERAL\": \"DEEPGRAM-NOVA-3-GENERAL\",\n \"AWS-TRANSCRIBE\": \"AWS-TRANSCRIBE\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemTtsModel =\n (typeof ListAgents200DataAgentsItemTtsModel)[keyof typeof ListAgents200DataAgentsItemTtsModel];\n\nexport const ListAgents200DataAgentsItemTtsModel = {\n eleven_flash_v2_5: \"eleven_flash_v2_5\",\n eleven_turbo_v2_5: \"eleven_turbo_v2_5\",\n \"sonic-multilingual\": \"sonic-multilingual\",\n \"sonic-3\": \"sonic-3\",\n chirp_3: \"chirp_3\",\n} as const;\n","/**\n * Generated by orval v8.1.0 🍺\n * Do not edit manually.\n * Avallon API\n * OpenAPI spec version: 1.0.0\n */\n\nexport type ListAgents200DataAgentsItemTtsProvider =\n (typeof ListAgents200DataAgentsItemTtsProvider)[keyof typeof ListAgents200DataAgentsItemTtsProvider];\n\nexport const ListAgents200DataAgentsItemTtsProvider = {\n elevenlabs: \"elevenlabs\",\n cartesia: \"cartesia\",\n google: \"google\",\n} as const;\n"]}