@avallon-labs/sdk 0.0.0-40188bf9

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,636 @@
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 {
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 = useSWRMutation3(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 getListApiKeysUrl = (params) => {
185
+ const normalizedParams = new URLSearchParams();
186
+ Object.entries(params || {}).forEach(([key, value]) => {
187
+ if (value !== void 0) {
188
+ normalizedParams.append(key, value === null ? "null" : value.toString());
189
+ }
190
+ });
191
+ const stringifiedParams = normalizedParams.toString();
192
+ return stringifiedParams.length > 0 ? `/platform/api-keys?${stringifiedParams}` : `/platform/api-keys`;
193
+ };
194
+ var listApiKeys = async (params, options) => {
195
+ return customFetch(getListApiKeysUrl(params), {
196
+ ...options,
197
+ method: "GET"
198
+ });
199
+ };
200
+ var getListApiKeysKey = (params) => [`/platform/api-keys`, ...params ? [params] : []];
201
+ var useListApiKeys = (params, options) => {
202
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
203
+ const isEnabled = swrOptions?.enabled !== false;
204
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getListApiKeysKey(params) : null);
205
+ const swrFn = () => listApiKeys(params, requestOptions);
206
+ const query = useSwr(
207
+ swrKey,
208
+ swrFn,
209
+ swrOptions
210
+ );
211
+ return {
212
+ swrKey,
213
+ ...query
214
+ };
215
+ };
216
+ var getCreateApiKeyUrl = () => {
217
+ return `/platform/api-keys`;
218
+ };
219
+ var createApiKey = async (createApiKeyBody, options) => {
220
+ return customFetch(getCreateApiKeyUrl(), {
221
+ ...options,
222
+ method: "POST",
223
+ headers: { "Content-Type": "application/json", ...options?.headers },
224
+ body: JSON.stringify(createApiKeyBody)
225
+ });
226
+ };
227
+ var getCreateApiKeyMutationFetcher = (options) => {
228
+ return (_, { arg }) => {
229
+ return createApiKey(arg, options);
230
+ };
231
+ };
232
+ var getCreateApiKeyMutationKey = () => [`/platform/api-keys`];
233
+ var useCreateApiKey = (options) => {
234
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
235
+ const swrKey = swrOptions?.swrKey ?? getCreateApiKeyMutationKey();
236
+ const swrFn = getCreateApiKeyMutationFetcher(requestOptions);
237
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
238
+ return {
239
+ swrKey,
240
+ ...query
241
+ };
242
+ };
243
+ var getRevokeApiKeyUrl = (id) => {
244
+ return `/platform/api-keys/${id}/revoke`;
245
+ };
246
+ var revokeApiKey = async (id, options) => {
247
+ return customFetch(getRevokeApiKeyUrl(id), {
248
+ ...options,
249
+ method: "POST"
250
+ });
251
+ };
252
+ var getRevokeApiKeyMutationFetcher = (id, options) => {
253
+ return (_, __) => {
254
+ return revokeApiKey(id, options);
255
+ };
256
+ };
257
+ var getRevokeApiKeyMutationKey = (id) => [`/platform/api-keys/${id}/revoke`];
258
+ var useRevokeApiKey = (id, options) => {
259
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
260
+ const swrKey = swrOptions?.swrKey ?? getRevokeApiKeyMutationKey(id);
261
+ const swrFn = getRevokeApiKeyMutationFetcher(id, requestOptions);
262
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
263
+ return {
264
+ swrKey,
265
+ ...query
266
+ };
267
+ };
268
+ var getPostV1AuthSignUpUrl = () => {
269
+ return `/v1/auth/sign-up`;
270
+ };
271
+ var postV1AuthSignUp = async (postV1AuthSignUpBody, options) => {
272
+ return customFetchNoAuth(getPostV1AuthSignUpUrl(), {
273
+ ...options,
274
+ method: "POST",
275
+ headers: { "Content-Type": "application/json", ...options?.headers },
276
+ body: JSON.stringify(postV1AuthSignUpBody)
277
+ });
278
+ };
279
+ var getPostV1AuthSignUpMutationFetcher = (options) => {
280
+ return (_, { arg }) => {
281
+ return postV1AuthSignUp(arg, options);
282
+ };
283
+ };
284
+ var getPostV1AuthSignUpMutationKey = () => [`/v1/auth/sign-up`];
285
+ var usePostV1AuthSignUp = (options) => {
286
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
287
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignUpMutationKey();
288
+ const swrFn = getPostV1AuthSignUpMutationFetcher(requestOptions);
289
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
290
+ return {
291
+ swrKey,
292
+ ...query
293
+ };
294
+ };
295
+ var getPostV1AuthSignInUrl = () => {
296
+ return `/v1/auth/sign-in`;
297
+ };
298
+ var postV1AuthSignIn = async (postV1AuthSignInBody, options) => {
299
+ return customFetchNoAuth(getPostV1AuthSignInUrl(), {
300
+ ...options,
301
+ method: "POST",
302
+ headers: { "Content-Type": "application/json", ...options?.headers },
303
+ body: JSON.stringify(postV1AuthSignInBody)
304
+ });
305
+ };
306
+ var getPostV1AuthSignInMutationFetcher = (options) => {
307
+ return (_, { arg }) => {
308
+ return postV1AuthSignIn(arg, options);
309
+ };
310
+ };
311
+ var getPostV1AuthSignInMutationKey = () => [`/v1/auth/sign-in`];
312
+ var usePostV1AuthSignIn = (options) => {
313
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
314
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthSignInMutationKey();
315
+ const swrFn = getPostV1AuthSignInMutationFetcher(requestOptions);
316
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
317
+ return {
318
+ swrKey,
319
+ ...query
320
+ };
321
+ };
322
+ var getPostV1AuthRefreshTokenUrl = () => {
323
+ return `/v1/auth/refresh-token`;
324
+ };
325
+ var postV1AuthRefreshToken = async (postV1AuthRefreshTokenBody, options) => {
326
+ return customFetchNoAuth(
327
+ getPostV1AuthRefreshTokenUrl(),
328
+ {
329
+ ...options,
330
+ method: "POST",
331
+ headers: { "Content-Type": "application/json", ...options?.headers },
332
+ body: JSON.stringify(postV1AuthRefreshTokenBody)
333
+ }
334
+ );
335
+ };
336
+ var getPostV1AuthRefreshTokenMutationFetcher = (options) => {
337
+ return (_, { arg }) => {
338
+ return postV1AuthRefreshToken(arg, options);
339
+ };
340
+ };
341
+ var getPostV1AuthRefreshTokenMutationKey = () => [`/v1/auth/refresh-token`];
342
+ var usePostV1AuthRefreshToken = (options) => {
343
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
344
+ const swrKey = swrOptions?.swrKey ?? getPostV1AuthRefreshTokenMutationKey();
345
+ const swrFn = getPostV1AuthRefreshTokenMutationFetcher(requestOptions);
346
+ const query = useSWRMutation3(swrKey, swrFn, swrOptions);
347
+ return {
348
+ swrKey,
349
+ ...query
350
+ };
351
+ };
352
+ var getGetV1AuthOauthUrlUrl = (params) => {
353
+ const normalizedParams = new URLSearchParams();
354
+ Object.entries(params || {}).forEach(([key, value]) => {
355
+ if (value !== void 0) {
356
+ normalizedParams.append(key, value === null ? "null" : value.toString());
357
+ }
358
+ });
359
+ const stringifiedParams = normalizedParams.toString();
360
+ return stringifiedParams.length > 0 ? `/v1/auth/oauth-url?${stringifiedParams}` : `/v1/auth/oauth-url`;
361
+ };
362
+ var getV1AuthOauthUrl = async (params, options) => {
363
+ return customFetchNoAuth(
364
+ getGetV1AuthOauthUrlUrl(params),
365
+ {
366
+ ...options,
367
+ method: "GET"
368
+ }
369
+ );
370
+ };
371
+ var getGetV1AuthOauthUrlKey = (params) => [`/v1/auth/oauth-url`, ...params ? [params] : []];
372
+ var useGetV1AuthOauthUrl = (params, options) => {
373
+ const { swr: swrOptions, request: requestOptions } = options ?? {};
374
+ const isEnabled = swrOptions?.enabled !== false;
375
+ const swrKey = swrOptions?.swrKey ?? (() => isEnabled ? getGetV1AuthOauthUrlKey(params) : null);
376
+ const swrFn = () => getV1AuthOauthUrl(params, requestOptions);
377
+ const query = useSwr(
378
+ swrKey,
379
+ swrFn,
380
+ swrOptions
381
+ );
382
+ return {
383
+ swrKey,
384
+ ...query
385
+ };
386
+ };
387
+
388
+ // generated/models/createAgent200DataAgentBackgroundSounds.ts
389
+ var CreateAgent200DataAgentBackgroundSounds = {
390
+ enabled: "enabled",
391
+ disabled: "disabled"
392
+ };
393
+
394
+ // generated/models/createAgent200DataAgentDirection.ts
395
+ var CreateAgent200DataAgentDirection = {
396
+ INBOUND: "INBOUND",
397
+ OUTBOUND: "OUTBOUND"
398
+ };
399
+
400
+ // generated/models/createAgent200DataAgentLanguage.ts
401
+ var CreateAgent200DataAgentLanguage = {
402
+ "en-US": "en-US",
403
+ "de-DE": "de-DE"
404
+ };
405
+
406
+ // generated/models/createAgent200DataAgentLlmModel.ts
407
+ var CreateAgent200DataAgentLlmModel = {
408
+ GPT41: "GPT4.1",
409
+ "AZURE-GPT4o": "AZURE-GPT4o",
410
+ "AZURE-GPT41": "AZURE-GPT4.1",
411
+ "GPT-5": "GPT-5",
412
+ "GPT-5-low": "GPT-5-low",
413
+ "GPT-5-high": "GPT-5-high",
414
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
415
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
416
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
417
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
418
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
419
+ "GEMINI-3-flash": "GEMINI-3-flash"
420
+ };
421
+
422
+ // generated/models/createAgent200DataAgentSttModel.ts
423
+ var CreateAgent200DataAgentSttModel = {
424
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
425
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
426
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
427
+ };
428
+
429
+ // generated/models/createAgent200DataAgentTtsModel.ts
430
+ var CreateAgent200DataAgentTtsModel = {
431
+ eleven_flash_v2_5: "eleven_flash_v2_5",
432
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
433
+ "sonic-multilingual": "sonic-multilingual",
434
+ "sonic-3": "sonic-3",
435
+ chirp_3: "chirp_3"
436
+ };
437
+
438
+ // generated/models/createAgent200DataAgentTtsProvider.ts
439
+ var CreateAgent200DataAgentTtsProvider = {
440
+ elevenlabs: "elevenlabs",
441
+ cartesia: "cartesia",
442
+ google: "google"
443
+ };
444
+
445
+ // generated/models/createAgentBodyDirection.ts
446
+ var CreateAgentBodyDirection = {
447
+ OUTBOUND: "OUTBOUND",
448
+ INBOUND: "INBOUND"
449
+ };
450
+
451
+ // generated/models/createAgentBodyLanguage.ts
452
+ var CreateAgentBodyLanguage = {
453
+ "en-US": "en-US",
454
+ "de-DE": "de-DE"
455
+ };
456
+
457
+ // generated/models/createAgentBodyLlmModel.ts
458
+ var CreateAgentBodyLlmModel = {
459
+ GPT41: "GPT4.1",
460
+ "AZURE-GPT4o": "AZURE-GPT4o",
461
+ "AZURE-GPT41": "AZURE-GPT4.1",
462
+ "GPT-5": "GPT-5",
463
+ "GPT-5-low": "GPT-5-low",
464
+ "GPT-5-high": "GPT-5-high",
465
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
466
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
467
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
468
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
469
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
470
+ "GEMINI-3-flash": "GEMINI-3-flash"
471
+ };
472
+
473
+ // generated/models/createAgentBodySttModel.ts
474
+ var CreateAgentBodySttModel = {
475
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
476
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
477
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
478
+ };
479
+
480
+ // generated/models/createAgentBodyTtsModel.ts
481
+ var CreateAgentBodyTtsModel = {
482
+ eleven_flash_v2_5: "eleven_flash_v2_5",
483
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
484
+ "sonic-multilingual": "sonic-multilingual",
485
+ "sonic-3": "sonic-3",
486
+ chirp_3: "chirp_3"
487
+ };
488
+
489
+ // generated/models/createAgentBodyTtsProvider.ts
490
+ var CreateAgentBodyTtsProvider = {
491
+ elevenlabs: "elevenlabs",
492
+ cartesia: "cartesia",
493
+ google: "google"
494
+ };
495
+
496
+ // generated/models/createApiKeyBodyEnvironment.ts
497
+ var CreateApiKeyBodyEnvironment = {
498
+ test: "test",
499
+ live: "live"
500
+ };
501
+
502
+ // generated/models/getAgent200DataAgentBackgroundSounds.ts
503
+ var GetAgent200DataAgentBackgroundSounds = {
504
+ enabled: "enabled",
505
+ disabled: "disabled"
506
+ };
507
+
508
+ // generated/models/getAgent200DataAgentDirection.ts
509
+ var GetAgent200DataAgentDirection = {
510
+ INBOUND: "INBOUND",
511
+ OUTBOUND: "OUTBOUND"
512
+ };
513
+
514
+ // generated/models/getAgent200DataAgentLanguage.ts
515
+ var GetAgent200DataAgentLanguage = {
516
+ "en-US": "en-US",
517
+ "de-DE": "de-DE"
518
+ };
519
+
520
+ // generated/models/getAgent200DataAgentLlmModel.ts
521
+ var GetAgent200DataAgentLlmModel = {
522
+ GPT41: "GPT4.1",
523
+ "AZURE-GPT4o": "AZURE-GPT4o",
524
+ "AZURE-GPT41": "AZURE-GPT4.1",
525
+ "GPT-5": "GPT-5",
526
+ "GPT-5-low": "GPT-5-low",
527
+ "GPT-5-high": "GPT-5-high",
528
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
529
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
530
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
531
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
532
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
533
+ "GEMINI-3-flash": "GEMINI-3-flash"
534
+ };
535
+
536
+ // generated/models/getAgent200DataAgentSttModel.ts
537
+ var GetAgent200DataAgentSttModel = {
538
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
539
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
540
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
541
+ };
542
+
543
+ // generated/models/getAgent200DataAgentTtsModel.ts
544
+ var GetAgent200DataAgentTtsModel = {
545
+ eleven_flash_v2_5: "eleven_flash_v2_5",
546
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
547
+ "sonic-multilingual": "sonic-multilingual",
548
+ "sonic-3": "sonic-3",
549
+ chirp_3: "chirp_3"
550
+ };
551
+
552
+ // generated/models/getAgent200DataAgentTtsProvider.ts
553
+ var GetAgent200DataAgentTtsProvider = {
554
+ elevenlabs: "elevenlabs",
555
+ cartesia: "cartesia",
556
+ google: "google"
557
+ };
558
+
559
+ // generated/models/getV1AuthOauthUrlCodeChallengeMethod.ts
560
+ var GetV1AuthOauthUrlCodeChallengeMethod = {
561
+ plain: "plain",
562
+ s256: "s256"
563
+ };
564
+
565
+ // generated/models/getV1AuthOauthUrlProvider.ts
566
+ var GetV1AuthOauthUrlProvider = {
567
+ google: "google",
568
+ microsoft: "microsoft"
569
+ };
570
+
571
+ // generated/models/listAgents200DataAgentsItemBackgroundSounds.ts
572
+ var ListAgents200DataAgentsItemBackgroundSounds = {
573
+ enabled: "enabled",
574
+ disabled: "disabled"
575
+ };
576
+
577
+ // generated/models/listAgents200DataAgentsItemDirection.ts
578
+ var ListAgents200DataAgentsItemDirection = {
579
+ INBOUND: "INBOUND",
580
+ OUTBOUND: "OUTBOUND"
581
+ };
582
+
583
+ // generated/models/listAgents200DataAgentsItemLanguage.ts
584
+ var ListAgents200DataAgentsItemLanguage = {
585
+ "en-US": "en-US",
586
+ "de-DE": "de-DE"
587
+ };
588
+
589
+ // generated/models/listAgents200DataAgentsItemLlmModel.ts
590
+ var ListAgents200DataAgentsItemLlmModel = {
591
+ GPT41: "GPT4.1",
592
+ "AZURE-GPT4o": "AZURE-GPT4o",
593
+ "AZURE-GPT41": "AZURE-GPT4.1",
594
+ "GPT-5": "GPT-5",
595
+ "GPT-5-low": "GPT-5-low",
596
+ "GPT-5-high": "GPT-5-high",
597
+ "GPT-51-chat-latest": "GPT-5.1-chat-latest",
598
+ "GPT-51-no-reasoning": "GPT-5.1-no-reasoning",
599
+ "GEMINI-15-flash": "GEMINI-1.5-flash",
600
+ "GEMINI-25-flash": "GEMINI-2.5-flash",
601
+ "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite",
602
+ "GEMINI-3-flash": "GEMINI-3-flash"
603
+ };
604
+
605
+ // generated/models/listAgents200DataAgentsItemSttModel.ts
606
+ var ListAgents200DataAgentsItemSttModel = {
607
+ "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL",
608
+ "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL",
609
+ "AWS-TRANSCRIBE": "AWS-TRANSCRIBE"
610
+ };
611
+
612
+ // generated/models/listAgents200DataAgentsItemTtsModel.ts
613
+ var ListAgents200DataAgentsItemTtsModel = {
614
+ eleven_flash_v2_5: "eleven_flash_v2_5",
615
+ eleven_turbo_v2_5: "eleven_turbo_v2_5",
616
+ "sonic-multilingual": "sonic-multilingual",
617
+ "sonic-3": "sonic-3",
618
+ chirp_3: "chirp_3"
619
+ };
620
+
621
+ // generated/models/listAgents200DataAgentsItemTtsProvider.ts
622
+ var ListAgents200DataAgentsItemTtsProvider = {
623
+ elevenlabs: "elevenlabs",
624
+ cartesia: "cartesia",
625
+ google: "google"
626
+ };
627
+
628
+ // generated/models/listApiKeysIncludeRevoked.ts
629
+ var ListApiKeysIncludeRevoked = {
630
+ true: "true",
631
+ false: "false"
632
+ };
633
+
634
+ export { AvallonError, CreateAgent200DataAgentBackgroundSounds, CreateAgent200DataAgentDirection, CreateAgent200DataAgentLanguage, CreateAgent200DataAgentLlmModel, CreateAgent200DataAgentSttModel, CreateAgent200DataAgentTtsModel, CreateAgent200DataAgentTtsProvider, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, CreateApiKeyBodyEnvironment, GetAgent200DataAgentBackgroundSounds, GetAgent200DataAgentDirection, GetAgent200DataAgentLanguage, GetAgent200DataAgentLlmModel, GetAgent200DataAgentSttModel, GetAgent200DataAgentTtsModel, GetAgent200DataAgentTtsProvider, GetV1AuthOauthUrlCodeChallengeMethod, GetV1AuthOauthUrlProvider, ListAgents200DataAgentsItemBackgroundSounds, ListAgents200DataAgentsItemDirection, ListAgents200DataAgentsItemLanguage, ListAgents200DataAgentsItemLlmModel, ListAgents200DataAgentsItemSttModel, ListAgents200DataAgentsItemTtsModel, ListAgents200DataAgentsItemTtsProvider, 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 };
635
+ //# sourceMappingURL=index.js.map
636
+ //# sourceMappingURL=index.js.map