@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/README.md +135 -0
- package/dist/index.d.ts +1617 -0
- package/dist/index.js +636 -0
- package/dist/index.js.map +1 -0
- package/openapi.yaml +1259 -0
- package/package.json +66 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1617 @@
|
|
|
1
|
+
import * as swr_mutation from 'swr/mutation';
|
|
2
|
+
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
3
|
+
import * as swr__internal from 'swr/_internal';
|
|
4
|
+
import * as swr from 'swr';
|
|
5
|
+
import { Key, SWRConfiguration, Arguments } from 'swr';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Custom fetch wrapper for Orval-generated client.
|
|
9
|
+
* Handles auth (API key or Bearer token) and base URL configuration.
|
|
10
|
+
* Throws AvallonError on non-2xx responses for clean SWR error handling.
|
|
11
|
+
*/
|
|
12
|
+
type AvallonConfig = {
|
|
13
|
+
baseUrl?: string;
|
|
14
|
+
apiKey?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Token provider - can be sync or async.
|
|
17
|
+
* Async allows the application to check expiry and refresh before returning.
|
|
18
|
+
*/
|
|
19
|
+
getAccessToken?: () => string | null | Promise<string | null>;
|
|
20
|
+
};
|
|
21
|
+
/** Configure the SDK at runtime */
|
|
22
|
+
declare function configure(newConfig: Partial<AvallonConfig>): void;
|
|
23
|
+
/** Get current config */
|
|
24
|
+
declare function getConfig(): AvallonConfig;
|
|
25
|
+
/** Authenticated fetch - adds API key or Bearer token */
|
|
26
|
+
declare function customFetch<T>(url: string, options: RequestInit): Promise<T>;
|
|
27
|
+
/** Unauthenticated fetch - for auth flow endpoints (sign-in, sign-up, etc.) */
|
|
28
|
+
declare function customFetchNoAuth<T>(url: string, options: RequestInit): Promise<T>;
|
|
29
|
+
/** Typed error class for API errors */
|
|
30
|
+
declare class AvallonError extends Error {
|
|
31
|
+
readonly status: number;
|
|
32
|
+
readonly body: {
|
|
33
|
+
data?: unknown;
|
|
34
|
+
message?: string;
|
|
35
|
+
};
|
|
36
|
+
constructor(status: number, body: {
|
|
37
|
+
data?: unknown;
|
|
38
|
+
message?: string;
|
|
39
|
+
});
|
|
40
|
+
/** Validation errors (400) have field-level details */
|
|
41
|
+
get errors(): Array<{
|
|
42
|
+
field: string;
|
|
43
|
+
message: string;
|
|
44
|
+
}> | undefined;
|
|
45
|
+
isValidationError(): boolean;
|
|
46
|
+
isUnauthorized(): boolean;
|
|
47
|
+
isNotFound(): boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* PKCE Utilities
|
|
52
|
+
*
|
|
53
|
+
* Cryptographic helpers for OAuth PKCE flow. Platform-agnostic -
|
|
54
|
+
* works in both Node.js and browsers via Web Crypto API.
|
|
55
|
+
*
|
|
56
|
+
* These utilities can't be generated from OpenAPI - they're
|
|
57
|
+
* client-side crypto that complements the generated auth endpoints.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* import {
|
|
62
|
+
* generateCodeVerifier,
|
|
63
|
+
* generateCodeChallenge,
|
|
64
|
+
* getV1AuthOauthUrl,
|
|
65
|
+
* postV1AuthOauthExchange,
|
|
66
|
+
* } from "@avallon-labs/sdk";
|
|
67
|
+
*
|
|
68
|
+
* // 1. Generate PKCE pair
|
|
69
|
+
* const verifier = generateCodeVerifier();
|
|
70
|
+
* const challenge = await generateCodeChallenge(verifier);
|
|
71
|
+
*
|
|
72
|
+
* // 2. Get OAuth URL (store verifier for after redirect)
|
|
73
|
+
* sessionStorage.setItem("oauth_verifier", verifier);
|
|
74
|
+
* const { data } = await getV1AuthOauthUrl({
|
|
75
|
+
* provider: "google",
|
|
76
|
+
* redirect_uri: "https://app.example.com/callback",
|
|
77
|
+
* code_challenge: challenge,
|
|
78
|
+
* code_challenge_method: "s256",
|
|
79
|
+
* });
|
|
80
|
+
* window.location.href = data.data.url;
|
|
81
|
+
*
|
|
82
|
+
* // 3. After redirect, exchange code for tokens
|
|
83
|
+
* const verifier = sessionStorage.getItem("oauth_verifier");
|
|
84
|
+
* const tokens = await postV1AuthOauthExchange({
|
|
85
|
+
* code: urlParams.get("code"),
|
|
86
|
+
* code_verifier: verifier,
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
/** Generate a cryptographically random code verifier (43-128 chars) */
|
|
91
|
+
declare function generateCodeVerifier(length?: number): string;
|
|
92
|
+
/** Generate S256 code challenge from verifier */
|
|
93
|
+
declare function generateCodeChallenge(verifier: string): Promise<string>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Generated by orval v8.1.0 🍺
|
|
97
|
+
* Do not edit manually.
|
|
98
|
+
* Avallon API
|
|
99
|
+
* OpenAPI spec version: 1.0.0
|
|
100
|
+
*/
|
|
101
|
+
type CreateAgent200DataAgentBackgroundSounds = (typeof CreateAgent200DataAgentBackgroundSounds)[keyof typeof CreateAgent200DataAgentBackgroundSounds];
|
|
102
|
+
declare const CreateAgent200DataAgentBackgroundSounds: {
|
|
103
|
+
readonly enabled: "enabled";
|
|
104
|
+
readonly disabled: "disabled";
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Generated by orval v8.1.0 🍺
|
|
109
|
+
* Do not edit manually.
|
|
110
|
+
* Avallon API
|
|
111
|
+
* OpenAPI spec version: 1.0.0
|
|
112
|
+
*/
|
|
113
|
+
type CreateAgent200DataAgentDirection = (typeof CreateAgent200DataAgentDirection)[keyof typeof CreateAgent200DataAgentDirection];
|
|
114
|
+
declare const CreateAgent200DataAgentDirection: {
|
|
115
|
+
readonly INBOUND: "INBOUND";
|
|
116
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Generated by orval v8.1.0 🍺
|
|
121
|
+
* Do not edit manually.
|
|
122
|
+
* Avallon API
|
|
123
|
+
* OpenAPI spec version: 1.0.0
|
|
124
|
+
*/
|
|
125
|
+
type CreateAgent200DataAgentLanguage = (typeof CreateAgent200DataAgentLanguage)[keyof typeof CreateAgent200DataAgentLanguage];
|
|
126
|
+
declare const CreateAgent200DataAgentLanguage: {
|
|
127
|
+
readonly "en-US": "en-US";
|
|
128
|
+
readonly "de-DE": "de-DE";
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Generated by orval v8.1.0 🍺
|
|
133
|
+
* Do not edit manually.
|
|
134
|
+
* Avallon API
|
|
135
|
+
* OpenAPI spec version: 1.0.0
|
|
136
|
+
*/
|
|
137
|
+
type CreateAgent200DataAgentLlmModel = (typeof CreateAgent200DataAgentLlmModel)[keyof typeof CreateAgent200DataAgentLlmModel];
|
|
138
|
+
declare const CreateAgent200DataAgentLlmModel: {
|
|
139
|
+
readonly GPT41: "GPT4.1";
|
|
140
|
+
readonly "AZURE-GPT4o": "AZURE-GPT4o";
|
|
141
|
+
readonly "AZURE-GPT41": "AZURE-GPT4.1";
|
|
142
|
+
readonly "GPT-5": "GPT-5";
|
|
143
|
+
readonly "GPT-5-low": "GPT-5-low";
|
|
144
|
+
readonly "GPT-5-high": "GPT-5-high";
|
|
145
|
+
readonly "GPT-51-chat-latest": "GPT-5.1-chat-latest";
|
|
146
|
+
readonly "GPT-51-no-reasoning": "GPT-5.1-no-reasoning";
|
|
147
|
+
readonly "GEMINI-15-flash": "GEMINI-1.5-flash";
|
|
148
|
+
readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
|
|
149
|
+
readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
|
|
150
|
+
readonly "GEMINI-3-flash": "GEMINI-3-flash";
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Generated by orval v8.1.0 🍺
|
|
155
|
+
* Do not edit manually.
|
|
156
|
+
* Avallon API
|
|
157
|
+
* OpenAPI spec version: 1.0.0
|
|
158
|
+
*/
|
|
159
|
+
type CreateAgent200DataAgentSttModel = (typeof CreateAgent200DataAgentSttModel)[keyof typeof CreateAgent200DataAgentSttModel];
|
|
160
|
+
declare const CreateAgent200DataAgentSttModel: {
|
|
161
|
+
readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
|
|
162
|
+
readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
|
|
163
|
+
readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Generated by orval v8.1.0 🍺
|
|
168
|
+
* Do not edit manually.
|
|
169
|
+
* Avallon API
|
|
170
|
+
* OpenAPI spec version: 1.0.0
|
|
171
|
+
*/
|
|
172
|
+
type CreateAgent200DataAgentTtsModel = (typeof CreateAgent200DataAgentTtsModel)[keyof typeof CreateAgent200DataAgentTtsModel];
|
|
173
|
+
declare const CreateAgent200DataAgentTtsModel: {
|
|
174
|
+
readonly eleven_flash_v2_5: "eleven_flash_v2_5";
|
|
175
|
+
readonly eleven_turbo_v2_5: "eleven_turbo_v2_5";
|
|
176
|
+
readonly "sonic-multilingual": "sonic-multilingual";
|
|
177
|
+
readonly "sonic-3": "sonic-3";
|
|
178
|
+
readonly chirp_3: "chirp_3";
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Generated by orval v8.1.0 🍺
|
|
183
|
+
* Do not edit manually.
|
|
184
|
+
* Avallon API
|
|
185
|
+
* OpenAPI spec version: 1.0.0
|
|
186
|
+
*/
|
|
187
|
+
type CreateAgent200DataAgentTtsProvider = (typeof CreateAgent200DataAgentTtsProvider)[keyof typeof CreateAgent200DataAgentTtsProvider];
|
|
188
|
+
declare const CreateAgent200DataAgentTtsProvider: {
|
|
189
|
+
readonly elevenlabs: "elevenlabs";
|
|
190
|
+
readonly cartesia: "cartesia";
|
|
191
|
+
readonly google: "google";
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Generated by orval v8.1.0 🍺
|
|
196
|
+
* Do not edit manually.
|
|
197
|
+
* Avallon API
|
|
198
|
+
* OpenAPI spec version: 1.0.0
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
type CreateAgent200DataAgent = {
|
|
202
|
+
id: string;
|
|
203
|
+
tenant_id: string;
|
|
204
|
+
agent_name: string;
|
|
205
|
+
direction: CreateAgent200DataAgentDirection;
|
|
206
|
+
llm_model: CreateAgent200DataAgentLlmModel;
|
|
207
|
+
tts_provider: CreateAgent200DataAgentTtsProvider;
|
|
208
|
+
tts_model: CreateAgent200DataAgentTtsModel;
|
|
209
|
+
language: CreateAgent200DataAgentLanguage;
|
|
210
|
+
tts_voice_id: string;
|
|
211
|
+
stt_model: CreateAgent200DataAgentSttModel;
|
|
212
|
+
transfer_phone_number: string | null;
|
|
213
|
+
background_sounds: CreateAgent200DataAgentBackgroundSounds;
|
|
214
|
+
created_at: string;
|
|
215
|
+
updated_at: string;
|
|
216
|
+
phone_number: string | null;
|
|
217
|
+
dial_pad: boolean;
|
|
218
|
+
end_call: boolean;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Generated by orval v8.1.0 🍺
|
|
223
|
+
* Do not edit manually.
|
|
224
|
+
* Avallon API
|
|
225
|
+
* OpenAPI spec version: 1.0.0
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
type CreateAgent200Data = {
|
|
229
|
+
agent: CreateAgent200DataAgent;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Generated by orval v8.1.0 🍺
|
|
234
|
+
* Do not edit manually.
|
|
235
|
+
* Avallon API
|
|
236
|
+
* OpenAPI spec version: 1.0.0
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
type CreateAgent200 = {
|
|
240
|
+
data: CreateAgent200Data;
|
|
241
|
+
message: string;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Generated by orval v8.1.0 🍺
|
|
246
|
+
* Do not edit manually.
|
|
247
|
+
* Avallon API
|
|
248
|
+
* OpenAPI spec version: 1.0.0
|
|
249
|
+
*/
|
|
250
|
+
/**
|
|
251
|
+
* Call direction the agent handles
|
|
252
|
+
*/
|
|
253
|
+
type CreateAgentBodyDirection = (typeof CreateAgentBodyDirection)[keyof typeof CreateAgentBodyDirection];
|
|
254
|
+
declare const CreateAgentBodyDirection: {
|
|
255
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
256
|
+
readonly INBOUND: "INBOUND";
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Generated by orval v8.1.0 🍺
|
|
261
|
+
* Do not edit manually.
|
|
262
|
+
* Avallon API
|
|
263
|
+
* OpenAPI spec version: 1.0.0
|
|
264
|
+
*/
|
|
265
|
+
/**
|
|
266
|
+
* Language for the agent
|
|
267
|
+
*/
|
|
268
|
+
type CreateAgentBodyLanguage = (typeof CreateAgentBodyLanguage)[keyof typeof CreateAgentBodyLanguage];
|
|
269
|
+
declare const CreateAgentBodyLanguage: {
|
|
270
|
+
readonly "en-US": "en-US";
|
|
271
|
+
readonly "de-DE": "de-DE";
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Generated by orval v8.1.0 🍺
|
|
276
|
+
* Do not edit manually.
|
|
277
|
+
* Avallon API
|
|
278
|
+
* OpenAPI spec version: 1.0.0
|
|
279
|
+
*/
|
|
280
|
+
/**
|
|
281
|
+
* LLM model for conversation
|
|
282
|
+
*/
|
|
283
|
+
type CreateAgentBodyLlmModel = (typeof CreateAgentBodyLlmModel)[keyof typeof CreateAgentBodyLlmModel];
|
|
284
|
+
declare const CreateAgentBodyLlmModel: {
|
|
285
|
+
readonly GPT41: "GPT4.1";
|
|
286
|
+
readonly "AZURE-GPT4o": "AZURE-GPT4o";
|
|
287
|
+
readonly "AZURE-GPT41": "AZURE-GPT4.1";
|
|
288
|
+
readonly "GPT-5": "GPT-5";
|
|
289
|
+
readonly "GPT-5-low": "GPT-5-low";
|
|
290
|
+
readonly "GPT-5-high": "GPT-5-high";
|
|
291
|
+
readonly "GPT-51-chat-latest": "GPT-5.1-chat-latest";
|
|
292
|
+
readonly "GPT-51-no-reasoning": "GPT-5.1-no-reasoning";
|
|
293
|
+
readonly "GEMINI-15-flash": "GEMINI-1.5-flash";
|
|
294
|
+
readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
|
|
295
|
+
readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
|
|
296
|
+
readonly "GEMINI-3-flash": "GEMINI-3-flash";
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Generated by orval v8.1.0 🍺
|
|
301
|
+
* Do not edit manually.
|
|
302
|
+
* Avallon API
|
|
303
|
+
* OpenAPI spec version: 1.0.0
|
|
304
|
+
*/
|
|
305
|
+
/**
|
|
306
|
+
* Speech-to-text model
|
|
307
|
+
*/
|
|
308
|
+
type CreateAgentBodySttModel = (typeof CreateAgentBodySttModel)[keyof typeof CreateAgentBodySttModel];
|
|
309
|
+
declare const CreateAgentBodySttModel: {
|
|
310
|
+
readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
|
|
311
|
+
readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
|
|
312
|
+
readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Generated by orval v8.1.0 🍺
|
|
317
|
+
* Do not edit manually.
|
|
318
|
+
* Avallon API
|
|
319
|
+
* OpenAPI spec version: 1.0.0
|
|
320
|
+
*/
|
|
321
|
+
/**
|
|
322
|
+
* Text-to-speech model
|
|
323
|
+
*/
|
|
324
|
+
type CreateAgentBodyTtsModel = (typeof CreateAgentBodyTtsModel)[keyof typeof CreateAgentBodyTtsModel];
|
|
325
|
+
declare const CreateAgentBodyTtsModel: {
|
|
326
|
+
readonly eleven_flash_v2_5: "eleven_flash_v2_5";
|
|
327
|
+
readonly eleven_turbo_v2_5: "eleven_turbo_v2_5";
|
|
328
|
+
readonly "sonic-multilingual": "sonic-multilingual";
|
|
329
|
+
readonly "sonic-3": "sonic-3";
|
|
330
|
+
readonly chirp_3: "chirp_3";
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Generated by orval v8.1.0 🍺
|
|
335
|
+
* Do not edit manually.
|
|
336
|
+
* Avallon API
|
|
337
|
+
* OpenAPI spec version: 1.0.0
|
|
338
|
+
*/
|
|
339
|
+
/**
|
|
340
|
+
* Text-to-speech provider
|
|
341
|
+
*/
|
|
342
|
+
type CreateAgentBodyTtsProvider = (typeof CreateAgentBodyTtsProvider)[keyof typeof CreateAgentBodyTtsProvider];
|
|
343
|
+
declare const CreateAgentBodyTtsProvider: {
|
|
344
|
+
readonly elevenlabs: "elevenlabs";
|
|
345
|
+
readonly cartesia: "cartesia";
|
|
346
|
+
readonly google: "google";
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Generated by orval v8.1.0 🍺
|
|
351
|
+
* Do not edit manually.
|
|
352
|
+
* Avallon API
|
|
353
|
+
* OpenAPI spec version: 1.0.0
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
type CreateAgentBody = {
|
|
357
|
+
/**
|
|
358
|
+
* Name for the agent
|
|
359
|
+
* @minLength 1
|
|
360
|
+
*/
|
|
361
|
+
agent_name: string;
|
|
362
|
+
/** Call direction the agent handles */
|
|
363
|
+
direction: CreateAgentBodyDirection;
|
|
364
|
+
/** LLM model for conversation */
|
|
365
|
+
llm_model: CreateAgentBodyLlmModel;
|
|
366
|
+
/** Text-to-speech provider */
|
|
367
|
+
tts_provider: CreateAgentBodyTtsProvider;
|
|
368
|
+
/** Text-to-speech model */
|
|
369
|
+
tts_model: CreateAgentBodyTtsModel;
|
|
370
|
+
/** Voice ID from the TTS provider */
|
|
371
|
+
tts_voice_id: "Achernar" | "Achird" | "v3V1d2rk6528UrLKRuy8" | "5c42302c-194b-4d0c-ba1a-8cb485c84ab9" | "e8e5fffb-252c-436d-b842-8879b84445b6" | "f786b574-daa5-4673-aa0c-cbe3e8534c02" | "8d8ce8c9-44a4-46c4-b10f-9a927b99a853" | "5ee9feff-1265-424a-9d7f-8e4d431a12c7" | "b9de4a89-2257-424b-94c2-db18ba68c81a";
|
|
372
|
+
/** Speech-to-text model */
|
|
373
|
+
stt_model: CreateAgentBodySttModel;
|
|
374
|
+
/** Phone number to transfer calls to */
|
|
375
|
+
transfer_phone_number: string | null;
|
|
376
|
+
/** ID of phone number to assign to agent */
|
|
377
|
+
phone_number_id?: string;
|
|
378
|
+
/** Language for the agent */
|
|
379
|
+
language: CreateAgentBodyLanguage;
|
|
380
|
+
/** Whether the agent supports DTMF dial pad input */
|
|
381
|
+
dial_pad?: boolean;
|
|
382
|
+
/** Whether the agent can end the call */
|
|
383
|
+
end_call?: boolean;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Generated by orval v8.1.0 🍺
|
|
388
|
+
* Do not edit manually.
|
|
389
|
+
* Avallon API
|
|
390
|
+
* OpenAPI spec version: 1.0.0
|
|
391
|
+
*/
|
|
392
|
+
type CreateApiKey200Data = {
|
|
393
|
+
/** Unique identifier for the API key */
|
|
394
|
+
id: string;
|
|
395
|
+
/** Human-readable name for the API key */
|
|
396
|
+
name: string;
|
|
397
|
+
/** First 12 characters of the key (e.g. ak_live_abc1) */
|
|
398
|
+
key_prefix: string;
|
|
399
|
+
/** Expiration date, if set */
|
|
400
|
+
expires_at?: string;
|
|
401
|
+
/** Creation timestamp */
|
|
402
|
+
created_at: string;
|
|
403
|
+
/** The full API key — only returned once at creation */
|
|
404
|
+
api_key: string;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Generated by orval v8.1.0 🍺
|
|
409
|
+
* Do not edit manually.
|
|
410
|
+
* Avallon API
|
|
411
|
+
* OpenAPI spec version: 1.0.0
|
|
412
|
+
*/
|
|
413
|
+
|
|
414
|
+
type CreateApiKey200 = {
|
|
415
|
+
data: CreateApiKey200Data;
|
|
416
|
+
message: string;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Generated by orval v8.1.0 🍺
|
|
421
|
+
* Do not edit manually.
|
|
422
|
+
* Avallon API
|
|
423
|
+
* OpenAPI spec version: 1.0.0
|
|
424
|
+
*/
|
|
425
|
+
/**
|
|
426
|
+
* Target environment for the key
|
|
427
|
+
*/
|
|
428
|
+
type CreateApiKeyBodyEnvironment = (typeof CreateApiKeyBodyEnvironment)[keyof typeof CreateApiKeyBodyEnvironment];
|
|
429
|
+
declare const CreateApiKeyBodyEnvironment: {
|
|
430
|
+
readonly test: "test";
|
|
431
|
+
readonly live: "live";
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Generated by orval v8.1.0 🍺
|
|
436
|
+
* Do not edit manually.
|
|
437
|
+
* Avallon API
|
|
438
|
+
* OpenAPI spec version: 1.0.0
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
type CreateApiKeyBody = {
|
|
442
|
+
/**
|
|
443
|
+
* Human-readable name for the API key
|
|
444
|
+
* @minLength 1
|
|
445
|
+
* @maxLength 100
|
|
446
|
+
*/
|
|
447
|
+
name: string;
|
|
448
|
+
/** Optional expiration date (ISO 8601) */
|
|
449
|
+
expires_at?: string;
|
|
450
|
+
/** Target environment for the key */
|
|
451
|
+
environment?: CreateApiKeyBodyEnvironment;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Generated by orval v8.1.0 🍺
|
|
456
|
+
* Do not edit manually.
|
|
457
|
+
* Avallon API
|
|
458
|
+
* OpenAPI spec version: 1.0.0
|
|
459
|
+
*/
|
|
460
|
+
type ErrorResponseData = {
|
|
461
|
+
[key: string]: unknown;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Generated by orval v8.1.0 🍺
|
|
466
|
+
* Do not edit manually.
|
|
467
|
+
* Avallon API
|
|
468
|
+
* OpenAPI spec version: 1.0.0
|
|
469
|
+
*/
|
|
470
|
+
|
|
471
|
+
interface ErrorResponse {
|
|
472
|
+
data: ErrorResponseData;
|
|
473
|
+
/** Human-readable error message */
|
|
474
|
+
message: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Generated by orval v8.1.0 🍺
|
|
479
|
+
* Do not edit manually.
|
|
480
|
+
* Avallon API
|
|
481
|
+
* OpenAPI spec version: 1.0.0
|
|
482
|
+
*/
|
|
483
|
+
type GetAgent200DataAgentBackgroundSounds = (typeof GetAgent200DataAgentBackgroundSounds)[keyof typeof GetAgent200DataAgentBackgroundSounds];
|
|
484
|
+
declare const GetAgent200DataAgentBackgroundSounds: {
|
|
485
|
+
readonly enabled: "enabled";
|
|
486
|
+
readonly disabled: "disabled";
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Generated by orval v8.1.0 🍺
|
|
491
|
+
* Do not edit manually.
|
|
492
|
+
* Avallon API
|
|
493
|
+
* OpenAPI spec version: 1.0.0
|
|
494
|
+
*/
|
|
495
|
+
type GetAgent200DataAgentDirection = (typeof GetAgent200DataAgentDirection)[keyof typeof GetAgent200DataAgentDirection];
|
|
496
|
+
declare const GetAgent200DataAgentDirection: {
|
|
497
|
+
readonly INBOUND: "INBOUND";
|
|
498
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Generated by orval v8.1.0 🍺
|
|
503
|
+
* Do not edit manually.
|
|
504
|
+
* Avallon API
|
|
505
|
+
* OpenAPI spec version: 1.0.0
|
|
506
|
+
*/
|
|
507
|
+
type GetAgent200DataAgentLanguage = (typeof GetAgent200DataAgentLanguage)[keyof typeof GetAgent200DataAgentLanguage];
|
|
508
|
+
declare const GetAgent200DataAgentLanguage: {
|
|
509
|
+
readonly "en-US": "en-US";
|
|
510
|
+
readonly "de-DE": "de-DE";
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Generated by orval v8.1.0 🍺
|
|
515
|
+
* Do not edit manually.
|
|
516
|
+
* Avallon API
|
|
517
|
+
* OpenAPI spec version: 1.0.0
|
|
518
|
+
*/
|
|
519
|
+
type GetAgent200DataAgentLlmModel = (typeof GetAgent200DataAgentLlmModel)[keyof typeof GetAgent200DataAgentLlmModel];
|
|
520
|
+
declare const GetAgent200DataAgentLlmModel: {
|
|
521
|
+
readonly GPT41: "GPT4.1";
|
|
522
|
+
readonly "AZURE-GPT4o": "AZURE-GPT4o";
|
|
523
|
+
readonly "AZURE-GPT41": "AZURE-GPT4.1";
|
|
524
|
+
readonly "GPT-5": "GPT-5";
|
|
525
|
+
readonly "GPT-5-low": "GPT-5-low";
|
|
526
|
+
readonly "GPT-5-high": "GPT-5-high";
|
|
527
|
+
readonly "GPT-51-chat-latest": "GPT-5.1-chat-latest";
|
|
528
|
+
readonly "GPT-51-no-reasoning": "GPT-5.1-no-reasoning";
|
|
529
|
+
readonly "GEMINI-15-flash": "GEMINI-1.5-flash";
|
|
530
|
+
readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
|
|
531
|
+
readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
|
|
532
|
+
readonly "GEMINI-3-flash": "GEMINI-3-flash";
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Generated by orval v8.1.0 🍺
|
|
537
|
+
* Do not edit manually.
|
|
538
|
+
* Avallon API
|
|
539
|
+
* OpenAPI spec version: 1.0.0
|
|
540
|
+
*/
|
|
541
|
+
type GetAgent200DataAgentSttModel = (typeof GetAgent200DataAgentSttModel)[keyof typeof GetAgent200DataAgentSttModel];
|
|
542
|
+
declare const GetAgent200DataAgentSttModel: {
|
|
543
|
+
readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
|
|
544
|
+
readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
|
|
545
|
+
readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Generated by orval v8.1.0 🍺
|
|
550
|
+
* Do not edit manually.
|
|
551
|
+
* Avallon API
|
|
552
|
+
* OpenAPI spec version: 1.0.0
|
|
553
|
+
*/
|
|
554
|
+
type GetAgent200DataAgentTtsModel = (typeof GetAgent200DataAgentTtsModel)[keyof typeof GetAgent200DataAgentTtsModel];
|
|
555
|
+
declare const GetAgent200DataAgentTtsModel: {
|
|
556
|
+
readonly eleven_flash_v2_5: "eleven_flash_v2_5";
|
|
557
|
+
readonly eleven_turbo_v2_5: "eleven_turbo_v2_5";
|
|
558
|
+
readonly "sonic-multilingual": "sonic-multilingual";
|
|
559
|
+
readonly "sonic-3": "sonic-3";
|
|
560
|
+
readonly chirp_3: "chirp_3";
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Generated by orval v8.1.0 🍺
|
|
565
|
+
* Do not edit manually.
|
|
566
|
+
* Avallon API
|
|
567
|
+
* OpenAPI spec version: 1.0.0
|
|
568
|
+
*/
|
|
569
|
+
type GetAgent200DataAgentTtsProvider = (typeof GetAgent200DataAgentTtsProvider)[keyof typeof GetAgent200DataAgentTtsProvider];
|
|
570
|
+
declare const GetAgent200DataAgentTtsProvider: {
|
|
571
|
+
readonly elevenlabs: "elevenlabs";
|
|
572
|
+
readonly cartesia: "cartesia";
|
|
573
|
+
readonly google: "google";
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Generated by orval v8.1.0 🍺
|
|
578
|
+
* Do not edit manually.
|
|
579
|
+
* Avallon API
|
|
580
|
+
* OpenAPI spec version: 1.0.0
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
type GetAgent200DataAgent = {
|
|
584
|
+
id: string;
|
|
585
|
+
tenant_id: string;
|
|
586
|
+
agent_name: string;
|
|
587
|
+
direction: GetAgent200DataAgentDirection;
|
|
588
|
+
llm_model: GetAgent200DataAgentLlmModel;
|
|
589
|
+
tts_provider: GetAgent200DataAgentTtsProvider;
|
|
590
|
+
tts_model: GetAgent200DataAgentTtsModel;
|
|
591
|
+
language: GetAgent200DataAgentLanguage;
|
|
592
|
+
tts_voice_id: string;
|
|
593
|
+
stt_model: GetAgent200DataAgentSttModel;
|
|
594
|
+
transfer_phone_number: string | null;
|
|
595
|
+
background_sounds: GetAgent200DataAgentBackgroundSounds;
|
|
596
|
+
created_at: string;
|
|
597
|
+
updated_at: string;
|
|
598
|
+
phone_number: string | null;
|
|
599
|
+
dial_pad: boolean;
|
|
600
|
+
end_call: boolean;
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Generated by orval v8.1.0 🍺
|
|
605
|
+
* Do not edit manually.
|
|
606
|
+
* Avallon API
|
|
607
|
+
* OpenAPI spec version: 1.0.0
|
|
608
|
+
*/
|
|
609
|
+
|
|
610
|
+
type GetAgent200Data = {
|
|
611
|
+
agent: GetAgent200DataAgent;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Generated by orval v8.1.0 🍺
|
|
616
|
+
* Do not edit manually.
|
|
617
|
+
* Avallon API
|
|
618
|
+
* OpenAPI spec version: 1.0.0
|
|
619
|
+
*/
|
|
620
|
+
|
|
621
|
+
type GetAgent200 = {
|
|
622
|
+
data: GetAgent200Data;
|
|
623
|
+
message: string;
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Generated by orval v8.1.0 🍺
|
|
628
|
+
* Do not edit manually.
|
|
629
|
+
* Avallon API
|
|
630
|
+
* OpenAPI spec version: 1.0.0
|
|
631
|
+
*/
|
|
632
|
+
type GetV1AuthOauthUrl200Data = {
|
|
633
|
+
url: string;
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Generated by orval v8.1.0 🍺
|
|
638
|
+
* Do not edit manually.
|
|
639
|
+
* Avallon API
|
|
640
|
+
* OpenAPI spec version: 1.0.0
|
|
641
|
+
*/
|
|
642
|
+
|
|
643
|
+
type GetV1AuthOauthUrl200 = {
|
|
644
|
+
data: GetV1AuthOauthUrl200Data;
|
|
645
|
+
message: string;
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Generated by orval v8.1.0 🍺
|
|
650
|
+
* Do not edit manually.
|
|
651
|
+
* Avallon API
|
|
652
|
+
* OpenAPI spec version: 1.0.0
|
|
653
|
+
*/
|
|
654
|
+
type GetV1AuthOauthUrlCodeChallengeMethod = (typeof GetV1AuthOauthUrlCodeChallengeMethod)[keyof typeof GetV1AuthOauthUrlCodeChallengeMethod];
|
|
655
|
+
declare const GetV1AuthOauthUrlCodeChallengeMethod: {
|
|
656
|
+
readonly plain: "plain";
|
|
657
|
+
readonly s256: "s256";
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Generated by orval v8.1.0 🍺
|
|
662
|
+
* Do not edit manually.
|
|
663
|
+
* Avallon API
|
|
664
|
+
* OpenAPI spec version: 1.0.0
|
|
665
|
+
*/
|
|
666
|
+
type GetV1AuthOauthUrlProvider = (typeof GetV1AuthOauthUrlProvider)[keyof typeof GetV1AuthOauthUrlProvider];
|
|
667
|
+
declare const GetV1AuthOauthUrlProvider: {
|
|
668
|
+
readonly google: "google";
|
|
669
|
+
readonly microsoft: "microsoft";
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Generated by orval v8.1.0 🍺
|
|
674
|
+
* Do not edit manually.
|
|
675
|
+
* Avallon API
|
|
676
|
+
* OpenAPI spec version: 1.0.0
|
|
677
|
+
*/
|
|
678
|
+
|
|
679
|
+
type GetV1AuthOauthUrlParams = {
|
|
680
|
+
provider: GetV1AuthOauthUrlProvider;
|
|
681
|
+
redirect_uri: string;
|
|
682
|
+
code_challenge_method: GetV1AuthOauthUrlCodeChallengeMethod;
|
|
683
|
+
/**
|
|
684
|
+
* @minLength 1
|
|
685
|
+
*/
|
|
686
|
+
code_challenge: string;
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Generated by orval v8.1.0 🍺
|
|
691
|
+
* Do not edit manually.
|
|
692
|
+
* Avallon API
|
|
693
|
+
* OpenAPI spec version: 1.0.0
|
|
694
|
+
*/
|
|
695
|
+
type ListAgents200DataAgentsItemBackgroundSounds = (typeof ListAgents200DataAgentsItemBackgroundSounds)[keyof typeof ListAgents200DataAgentsItemBackgroundSounds];
|
|
696
|
+
declare const ListAgents200DataAgentsItemBackgroundSounds: {
|
|
697
|
+
readonly enabled: "enabled";
|
|
698
|
+
readonly disabled: "disabled";
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Generated by orval v8.1.0 🍺
|
|
703
|
+
* Do not edit manually.
|
|
704
|
+
* Avallon API
|
|
705
|
+
* OpenAPI spec version: 1.0.0
|
|
706
|
+
*/
|
|
707
|
+
type ListAgents200DataAgentsItemDirection = (typeof ListAgents200DataAgentsItemDirection)[keyof typeof ListAgents200DataAgentsItemDirection];
|
|
708
|
+
declare const ListAgents200DataAgentsItemDirection: {
|
|
709
|
+
readonly INBOUND: "INBOUND";
|
|
710
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Generated by orval v8.1.0 🍺
|
|
715
|
+
* Do not edit manually.
|
|
716
|
+
* Avallon API
|
|
717
|
+
* OpenAPI spec version: 1.0.0
|
|
718
|
+
*/
|
|
719
|
+
type ListAgents200DataAgentsItemLanguage = (typeof ListAgents200DataAgentsItemLanguage)[keyof typeof ListAgents200DataAgentsItemLanguage];
|
|
720
|
+
declare const ListAgents200DataAgentsItemLanguage: {
|
|
721
|
+
readonly "en-US": "en-US";
|
|
722
|
+
readonly "de-DE": "de-DE";
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Generated by orval v8.1.0 🍺
|
|
727
|
+
* Do not edit manually.
|
|
728
|
+
* Avallon API
|
|
729
|
+
* OpenAPI spec version: 1.0.0
|
|
730
|
+
*/
|
|
731
|
+
type ListAgents200DataAgentsItemLlmModel = (typeof ListAgents200DataAgentsItemLlmModel)[keyof typeof ListAgents200DataAgentsItemLlmModel];
|
|
732
|
+
declare const ListAgents200DataAgentsItemLlmModel: {
|
|
733
|
+
readonly GPT41: "GPT4.1";
|
|
734
|
+
readonly "AZURE-GPT4o": "AZURE-GPT4o";
|
|
735
|
+
readonly "AZURE-GPT41": "AZURE-GPT4.1";
|
|
736
|
+
readonly "GPT-5": "GPT-5";
|
|
737
|
+
readonly "GPT-5-low": "GPT-5-low";
|
|
738
|
+
readonly "GPT-5-high": "GPT-5-high";
|
|
739
|
+
readonly "GPT-51-chat-latest": "GPT-5.1-chat-latest";
|
|
740
|
+
readonly "GPT-51-no-reasoning": "GPT-5.1-no-reasoning";
|
|
741
|
+
readonly "GEMINI-15-flash": "GEMINI-1.5-flash";
|
|
742
|
+
readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
|
|
743
|
+
readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
|
|
744
|
+
readonly "GEMINI-3-flash": "GEMINI-3-flash";
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Generated by orval v8.1.0 🍺
|
|
749
|
+
* Do not edit manually.
|
|
750
|
+
* Avallon API
|
|
751
|
+
* OpenAPI spec version: 1.0.0
|
|
752
|
+
*/
|
|
753
|
+
type ListAgents200DataAgentsItemSttModel = (typeof ListAgents200DataAgentsItemSttModel)[keyof typeof ListAgents200DataAgentsItemSttModel];
|
|
754
|
+
declare const ListAgents200DataAgentsItemSttModel: {
|
|
755
|
+
readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
|
|
756
|
+
readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
|
|
757
|
+
readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Generated by orval v8.1.0 🍺
|
|
762
|
+
* Do not edit manually.
|
|
763
|
+
* Avallon API
|
|
764
|
+
* OpenAPI spec version: 1.0.0
|
|
765
|
+
*/
|
|
766
|
+
type ListAgents200DataAgentsItemTtsModel = (typeof ListAgents200DataAgentsItemTtsModel)[keyof typeof ListAgents200DataAgentsItemTtsModel];
|
|
767
|
+
declare const ListAgents200DataAgentsItemTtsModel: {
|
|
768
|
+
readonly eleven_flash_v2_5: "eleven_flash_v2_5";
|
|
769
|
+
readonly eleven_turbo_v2_5: "eleven_turbo_v2_5";
|
|
770
|
+
readonly "sonic-multilingual": "sonic-multilingual";
|
|
771
|
+
readonly "sonic-3": "sonic-3";
|
|
772
|
+
readonly chirp_3: "chirp_3";
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Generated by orval v8.1.0 🍺
|
|
777
|
+
* Do not edit manually.
|
|
778
|
+
* Avallon API
|
|
779
|
+
* OpenAPI spec version: 1.0.0
|
|
780
|
+
*/
|
|
781
|
+
type ListAgents200DataAgentsItemTtsProvider = (typeof ListAgents200DataAgentsItemTtsProvider)[keyof typeof ListAgents200DataAgentsItemTtsProvider];
|
|
782
|
+
declare const ListAgents200DataAgentsItemTtsProvider: {
|
|
783
|
+
readonly elevenlabs: "elevenlabs";
|
|
784
|
+
readonly cartesia: "cartesia";
|
|
785
|
+
readonly google: "google";
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Generated by orval v8.1.0 🍺
|
|
790
|
+
* Do not edit manually.
|
|
791
|
+
* Avallon API
|
|
792
|
+
* OpenAPI spec version: 1.0.0
|
|
793
|
+
*/
|
|
794
|
+
|
|
795
|
+
type ListAgents200DataAgentsItem = {
|
|
796
|
+
id: string;
|
|
797
|
+
tenant_id: string;
|
|
798
|
+
agent_name: string;
|
|
799
|
+
direction: ListAgents200DataAgentsItemDirection;
|
|
800
|
+
llm_model: ListAgents200DataAgentsItemLlmModel;
|
|
801
|
+
tts_provider: ListAgents200DataAgentsItemTtsProvider;
|
|
802
|
+
tts_model: ListAgents200DataAgentsItemTtsModel;
|
|
803
|
+
language: ListAgents200DataAgentsItemLanguage;
|
|
804
|
+
tts_voice_id: string;
|
|
805
|
+
stt_model: ListAgents200DataAgentsItemSttModel;
|
|
806
|
+
transfer_phone_number: string | null;
|
|
807
|
+
background_sounds: ListAgents200DataAgentsItemBackgroundSounds;
|
|
808
|
+
created_at: string;
|
|
809
|
+
updated_at: string;
|
|
810
|
+
phone_number: string | null;
|
|
811
|
+
dial_pad: boolean;
|
|
812
|
+
end_call: boolean;
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Generated by orval v8.1.0 🍺
|
|
817
|
+
* Do not edit manually.
|
|
818
|
+
* Avallon API
|
|
819
|
+
* OpenAPI spec version: 1.0.0
|
|
820
|
+
*/
|
|
821
|
+
|
|
822
|
+
type ListAgents200Data = {
|
|
823
|
+
agents: ListAgents200DataAgentsItem[];
|
|
824
|
+
/**
|
|
825
|
+
* Total number of agents
|
|
826
|
+
* @minimum -9007199254740991
|
|
827
|
+
* @maximum 9007199254740991
|
|
828
|
+
*/
|
|
829
|
+
total: number;
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Generated by orval v8.1.0 🍺
|
|
834
|
+
* Do not edit manually.
|
|
835
|
+
* Avallon API
|
|
836
|
+
* OpenAPI spec version: 1.0.0
|
|
837
|
+
*/
|
|
838
|
+
|
|
839
|
+
type ListAgents200 = {
|
|
840
|
+
data: ListAgents200Data;
|
|
841
|
+
message: string;
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Generated by orval v8.1.0 🍺
|
|
846
|
+
* Do not edit manually.
|
|
847
|
+
* Avallon API
|
|
848
|
+
* OpenAPI spec version: 1.0.0
|
|
849
|
+
*/
|
|
850
|
+
type ListAgentsParams = {
|
|
851
|
+
/**
|
|
852
|
+
* Filter by exact agent name
|
|
853
|
+
*/
|
|
854
|
+
agent_name?: string;
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Generated by orval v8.1.0 🍺
|
|
859
|
+
* Do not edit manually.
|
|
860
|
+
* Avallon API
|
|
861
|
+
* OpenAPI spec version: 1.0.0
|
|
862
|
+
*/
|
|
863
|
+
type ListApiKeys200DataDataItem = {
|
|
864
|
+
/** Unique identifier for the API key */
|
|
865
|
+
id: string;
|
|
866
|
+
/** Human-readable name for the API key */
|
|
867
|
+
name: string;
|
|
868
|
+
/** First 12 characters of the key (e.g. ak_live_abc1) */
|
|
869
|
+
key_prefix: string;
|
|
870
|
+
/** Last usage timestamp, if ever used */
|
|
871
|
+
last_used_at?: string;
|
|
872
|
+
/** Expiration date, if set */
|
|
873
|
+
expires_at?: string;
|
|
874
|
+
/** Revocation timestamp, if revoked */
|
|
875
|
+
revoked_at?: string;
|
|
876
|
+
/** Creation timestamp */
|
|
877
|
+
created_at: string;
|
|
878
|
+
/** Last update timestamp */
|
|
879
|
+
updated_at: string;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Generated by orval v8.1.0 🍺
|
|
884
|
+
* Do not edit manually.
|
|
885
|
+
* Avallon API
|
|
886
|
+
* OpenAPI spec version: 1.0.0
|
|
887
|
+
*/
|
|
888
|
+
|
|
889
|
+
type ListApiKeys200Data = {
|
|
890
|
+
data: ListApiKeys200DataDataItem[];
|
|
891
|
+
/** Total number of keys returned */
|
|
892
|
+
count: number;
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Generated by orval v8.1.0 🍺
|
|
897
|
+
* Do not edit manually.
|
|
898
|
+
* Avallon API
|
|
899
|
+
* OpenAPI spec version: 1.0.0
|
|
900
|
+
*/
|
|
901
|
+
|
|
902
|
+
type ListApiKeys200 = {
|
|
903
|
+
data: ListApiKeys200Data;
|
|
904
|
+
message: string;
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Generated by orval v8.1.0 🍺
|
|
909
|
+
* Do not edit manually.
|
|
910
|
+
* Avallon API
|
|
911
|
+
* OpenAPI spec version: 1.0.0
|
|
912
|
+
*/
|
|
913
|
+
type ListApiKeysIncludeRevoked = (typeof ListApiKeysIncludeRevoked)[keyof typeof ListApiKeysIncludeRevoked];
|
|
914
|
+
declare const ListApiKeysIncludeRevoked: {
|
|
915
|
+
readonly true: "true";
|
|
916
|
+
readonly false: "false";
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Generated by orval v8.1.0 🍺
|
|
921
|
+
* Do not edit manually.
|
|
922
|
+
* Avallon API
|
|
923
|
+
* OpenAPI spec version: 1.0.0
|
|
924
|
+
*/
|
|
925
|
+
|
|
926
|
+
type ListApiKeysParams = {
|
|
927
|
+
/**
|
|
928
|
+
* Include revoked keys in the response
|
|
929
|
+
*/
|
|
930
|
+
include_revoked?: ListApiKeysIncludeRevoked;
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Generated by orval v8.1.0 🍺
|
|
935
|
+
* Do not edit manually.
|
|
936
|
+
* Avallon API
|
|
937
|
+
* OpenAPI spec version: 1.0.0
|
|
938
|
+
*/
|
|
939
|
+
type PostV1AuthRefreshToken200Data = {
|
|
940
|
+
access_token: string;
|
|
941
|
+
refresh_token: string;
|
|
942
|
+
expires_at: string;
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Generated by orval v8.1.0 🍺
|
|
947
|
+
* Do not edit manually.
|
|
948
|
+
* Avallon API
|
|
949
|
+
* OpenAPI spec version: 1.0.0
|
|
950
|
+
*/
|
|
951
|
+
|
|
952
|
+
type PostV1AuthRefreshToken200 = {
|
|
953
|
+
data: PostV1AuthRefreshToken200Data;
|
|
954
|
+
message: string;
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Generated by orval v8.1.0 🍺
|
|
959
|
+
* Do not edit manually.
|
|
960
|
+
* Avallon API
|
|
961
|
+
* OpenAPI spec version: 1.0.0
|
|
962
|
+
*/
|
|
963
|
+
type PostV1AuthRefreshTokenBody = {
|
|
964
|
+
access_token: string;
|
|
965
|
+
refresh_token: string;
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Generated by orval v8.1.0 🍺
|
|
970
|
+
* Do not edit manually.
|
|
971
|
+
* Avallon API
|
|
972
|
+
* OpenAPI spec version: 1.0.0
|
|
973
|
+
*/
|
|
974
|
+
type PostV1AuthSignIn200Data = {
|
|
975
|
+
access_token: string;
|
|
976
|
+
refresh_token: string;
|
|
977
|
+
expires_at: string;
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Generated by orval v8.1.0 🍺
|
|
982
|
+
* Do not edit manually.
|
|
983
|
+
* Avallon API
|
|
984
|
+
* OpenAPI spec version: 1.0.0
|
|
985
|
+
*/
|
|
986
|
+
|
|
987
|
+
type PostV1AuthSignIn200 = {
|
|
988
|
+
data: PostV1AuthSignIn200Data;
|
|
989
|
+
message: string;
|
|
990
|
+
};
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Generated by orval v8.1.0 🍺
|
|
994
|
+
* Do not edit manually.
|
|
995
|
+
* Avallon API
|
|
996
|
+
* OpenAPI spec version: 1.0.0
|
|
997
|
+
*/
|
|
998
|
+
type PostV1AuthSignInBody = {
|
|
999
|
+
type: "password";
|
|
1000
|
+
email: string;
|
|
1001
|
+
password: string;
|
|
1002
|
+
} | {
|
|
1003
|
+
type: "oauth";
|
|
1004
|
+
code: string;
|
|
1005
|
+
verifier: string;
|
|
1006
|
+
} | {
|
|
1007
|
+
type: "email_otp";
|
|
1008
|
+
/** @pattern ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ */
|
|
1009
|
+
email: string;
|
|
1010
|
+
/** @minLength 1 */
|
|
1011
|
+
token: string;
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Generated by orval v8.1.0 🍺
|
|
1016
|
+
* Do not edit manually.
|
|
1017
|
+
* Avallon API
|
|
1018
|
+
* OpenAPI spec version: 1.0.0
|
|
1019
|
+
*/
|
|
1020
|
+
type PostV1AuthSignUp200Data = {
|
|
1021
|
+
[key: string]: unknown;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Generated by orval v8.1.0 🍺
|
|
1026
|
+
* Do not edit manually.
|
|
1027
|
+
* Avallon API
|
|
1028
|
+
* OpenAPI spec version: 1.0.0
|
|
1029
|
+
*/
|
|
1030
|
+
|
|
1031
|
+
type PostV1AuthSignUp200 = {
|
|
1032
|
+
data: PostV1AuthSignUp200Data;
|
|
1033
|
+
message: string;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Generated by orval v8.1.0 🍺
|
|
1038
|
+
* Do not edit manually.
|
|
1039
|
+
* Avallon API
|
|
1040
|
+
* OpenAPI spec version: 1.0.0
|
|
1041
|
+
*/
|
|
1042
|
+
type PostV1AuthSignUpBody = {
|
|
1043
|
+
/** @pattern ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ */
|
|
1044
|
+
email: string;
|
|
1045
|
+
password: string;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Generated by orval v8.1.0 🍺
|
|
1050
|
+
* Do not edit manually.
|
|
1051
|
+
* Avallon API
|
|
1052
|
+
* OpenAPI spec version: 1.0.0
|
|
1053
|
+
*/
|
|
1054
|
+
type RevokeApiKey200Data = {
|
|
1055
|
+
/** Confirmation message */
|
|
1056
|
+
message: string;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Generated by orval v8.1.0 🍺
|
|
1061
|
+
* Do not edit manually.
|
|
1062
|
+
* Avallon API
|
|
1063
|
+
* OpenAPI spec version: 1.0.0
|
|
1064
|
+
*/
|
|
1065
|
+
|
|
1066
|
+
type RevokeApiKey200 = {
|
|
1067
|
+
data: RevokeApiKey200Data;
|
|
1068
|
+
message: string;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1072
|
+
/**
|
|
1073
|
+
* List all agents for your tenant.
|
|
1074
|
+
|
|
1075
|
+
**Filtering:**
|
|
1076
|
+
|
|
1077
|
+
Filter agents by name using the `agent_name` query parameter (exact match).
|
|
1078
|
+
|
|
1079
|
+
**Response:**
|
|
1080
|
+
|
|
1081
|
+
Returns an array of all agents with their configurations and a total count.
|
|
1082
|
+
* @summary List agents
|
|
1083
|
+
*/
|
|
1084
|
+
type listAgentsResponse200 = {
|
|
1085
|
+
data: ListAgents200;
|
|
1086
|
+
status: 200;
|
|
1087
|
+
};
|
|
1088
|
+
type listAgentsResponse400 = {
|
|
1089
|
+
data: ErrorResponse;
|
|
1090
|
+
status: 400;
|
|
1091
|
+
};
|
|
1092
|
+
type listAgentsResponse401 = {
|
|
1093
|
+
data: ErrorResponse;
|
|
1094
|
+
status: 401;
|
|
1095
|
+
};
|
|
1096
|
+
type listAgentsResponse409 = {
|
|
1097
|
+
data: ErrorResponse;
|
|
1098
|
+
status: 409;
|
|
1099
|
+
};
|
|
1100
|
+
type listAgentsResponse500 = {
|
|
1101
|
+
data: ErrorResponse;
|
|
1102
|
+
status: 500;
|
|
1103
|
+
};
|
|
1104
|
+
type listAgentsResponseSuccess = listAgentsResponse200 & {
|
|
1105
|
+
headers: Headers;
|
|
1106
|
+
};
|
|
1107
|
+
type listAgentsResponseError = (listAgentsResponse400 | listAgentsResponse401 | listAgentsResponse409 | listAgentsResponse500) & {
|
|
1108
|
+
headers: Headers;
|
|
1109
|
+
};
|
|
1110
|
+
type listAgentsResponse = listAgentsResponseSuccess | listAgentsResponseError;
|
|
1111
|
+
declare const getListAgentsUrl: (params?: ListAgentsParams) => string;
|
|
1112
|
+
declare const listAgents: (params?: ListAgentsParams, options?: RequestInit) => Promise<listAgentsResponse>;
|
|
1113
|
+
declare const getListAgentsKey: (params?: ListAgentsParams) => readonly ["/v1/agents", ...ListAgentsParams[]];
|
|
1114
|
+
type ListAgentsQueryResult = NonNullable<Awaited<ReturnType<typeof listAgents>>>;
|
|
1115
|
+
/**
|
|
1116
|
+
* @summary List agents
|
|
1117
|
+
*/
|
|
1118
|
+
declare const useListAgents: <TError = ErrorResponse>(params?: ListAgentsParams, options?: {
|
|
1119
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listAgents>>, TError> & {
|
|
1120
|
+
swrKey?: Key;
|
|
1121
|
+
enabled?: boolean;
|
|
1122
|
+
};
|
|
1123
|
+
request?: SecondParameter$2<typeof customFetch>;
|
|
1124
|
+
}) => {
|
|
1125
|
+
data: listAgentsResponse | undefined;
|
|
1126
|
+
error: TError | undefined;
|
|
1127
|
+
mutate: swr.KeyedMutator<listAgentsResponse>;
|
|
1128
|
+
isValidating: boolean;
|
|
1129
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1130
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* Create a new voice agent with the specified configuration.
|
|
1134
|
+
|
|
1135
|
+
**Required fields:**
|
|
1136
|
+
|
|
1137
|
+
All fields in the request body are required except `phone_number_id` and `transfer_phone_number`.
|
|
1138
|
+
|
|
1139
|
+
**Response:**
|
|
1140
|
+
|
|
1141
|
+
Returns the created agent with its ID and configuration.
|
|
1142
|
+
* @summary Create agent
|
|
1143
|
+
*/
|
|
1144
|
+
type createAgentResponse200 = {
|
|
1145
|
+
data: CreateAgent200;
|
|
1146
|
+
status: 200;
|
|
1147
|
+
};
|
|
1148
|
+
type createAgentResponse400 = {
|
|
1149
|
+
data: ErrorResponse;
|
|
1150
|
+
status: 400;
|
|
1151
|
+
};
|
|
1152
|
+
type createAgentResponse401 = {
|
|
1153
|
+
data: ErrorResponse;
|
|
1154
|
+
status: 401;
|
|
1155
|
+
};
|
|
1156
|
+
type createAgentResponse409 = {
|
|
1157
|
+
data: ErrorResponse;
|
|
1158
|
+
status: 409;
|
|
1159
|
+
};
|
|
1160
|
+
type createAgentResponse500 = {
|
|
1161
|
+
data: ErrorResponse;
|
|
1162
|
+
status: 500;
|
|
1163
|
+
};
|
|
1164
|
+
type createAgentResponseSuccess = createAgentResponse200 & {
|
|
1165
|
+
headers: Headers;
|
|
1166
|
+
};
|
|
1167
|
+
type createAgentResponseError = (createAgentResponse400 | createAgentResponse401 | createAgentResponse409 | createAgentResponse500) & {
|
|
1168
|
+
headers: Headers;
|
|
1169
|
+
};
|
|
1170
|
+
type createAgentResponse = createAgentResponseSuccess | createAgentResponseError;
|
|
1171
|
+
declare const getCreateAgentUrl: () => string;
|
|
1172
|
+
declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<createAgentResponse>;
|
|
1173
|
+
declare const getCreateAgentMutationFetcher: (options?: SecondParameter$2<typeof customFetch>) => (_: Key, { arg }: {
|
|
1174
|
+
arg: CreateAgentBody;
|
|
1175
|
+
}) => Promise<createAgentResponse>;
|
|
1176
|
+
declare const getCreateAgentMutationKey: () => readonly ["/v1/agents"];
|
|
1177
|
+
type CreateAgentMutationResult = NonNullable<Awaited<ReturnType<typeof createAgent>>>;
|
|
1178
|
+
/**
|
|
1179
|
+
* @summary Create agent
|
|
1180
|
+
*/
|
|
1181
|
+
declare const useCreateAgent: <TError = ErrorResponse>(options?: {
|
|
1182
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createAgent>>, TError, Key, CreateAgentBody, Awaited<ReturnType<typeof createAgent>>> & {
|
|
1183
|
+
swrKey?: string;
|
|
1184
|
+
};
|
|
1185
|
+
request?: SecondParameter$2<typeof customFetch>;
|
|
1186
|
+
}) => {
|
|
1187
|
+
isMutating: boolean;
|
|
1188
|
+
trigger: swr_mutation.TriggerWithArgs<createAgentResponse, TError, string | readonly ["/v1/agents"], CreateAgentBody>;
|
|
1189
|
+
reset: () => void;
|
|
1190
|
+
error: TError | undefined;
|
|
1191
|
+
data: createAgentResponse | undefined;
|
|
1192
|
+
swrKey: string | readonly ["/v1/agents"];
|
|
1193
|
+
};
|
|
1194
|
+
/**
|
|
1195
|
+
* Retrieve a single agent by ID.
|
|
1196
|
+
* @summary Get agent
|
|
1197
|
+
*/
|
|
1198
|
+
type getAgentResponse200 = {
|
|
1199
|
+
data: GetAgent200;
|
|
1200
|
+
status: 200;
|
|
1201
|
+
};
|
|
1202
|
+
type getAgentResponse400 = {
|
|
1203
|
+
data: ErrorResponse;
|
|
1204
|
+
status: 400;
|
|
1205
|
+
};
|
|
1206
|
+
type getAgentResponse401 = {
|
|
1207
|
+
data: ErrorResponse;
|
|
1208
|
+
status: 401;
|
|
1209
|
+
};
|
|
1210
|
+
type getAgentResponse404 = {
|
|
1211
|
+
data: ErrorResponse;
|
|
1212
|
+
status: 404;
|
|
1213
|
+
};
|
|
1214
|
+
type getAgentResponse409 = {
|
|
1215
|
+
data: ErrorResponse;
|
|
1216
|
+
status: 409;
|
|
1217
|
+
};
|
|
1218
|
+
type getAgentResponse500 = {
|
|
1219
|
+
data: ErrorResponse;
|
|
1220
|
+
status: 500;
|
|
1221
|
+
};
|
|
1222
|
+
type getAgentResponseSuccess = getAgentResponse200 & {
|
|
1223
|
+
headers: Headers;
|
|
1224
|
+
};
|
|
1225
|
+
type getAgentResponseError = (getAgentResponse400 | getAgentResponse401 | getAgentResponse404 | getAgentResponse409 | getAgentResponse500) & {
|
|
1226
|
+
headers: Headers;
|
|
1227
|
+
};
|
|
1228
|
+
type getAgentResponse = getAgentResponseSuccess | getAgentResponseError;
|
|
1229
|
+
declare const getGetAgentUrl: (id: string) => string;
|
|
1230
|
+
declare const getAgent: (id: string, options?: RequestInit) => Promise<getAgentResponse>;
|
|
1231
|
+
declare const getGetAgentKey: (id: string) => readonly [`/v1/agents/${string}`];
|
|
1232
|
+
type GetAgentQueryResult = NonNullable<Awaited<ReturnType<typeof getAgent>>>;
|
|
1233
|
+
/**
|
|
1234
|
+
* @summary Get agent
|
|
1235
|
+
*/
|
|
1236
|
+
declare const useGetAgent: <TError = ErrorResponse>(id: string, options?: {
|
|
1237
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof getAgent>>, TError> & {
|
|
1238
|
+
swrKey?: Key;
|
|
1239
|
+
enabled?: boolean;
|
|
1240
|
+
};
|
|
1241
|
+
request?: SecondParameter$2<typeof customFetch>;
|
|
1242
|
+
}) => {
|
|
1243
|
+
data: getAgentResponse | undefined;
|
|
1244
|
+
error: TError | undefined;
|
|
1245
|
+
mutate: swr.KeyedMutator<getAgentResponse>;
|
|
1246
|
+
isValidating: boolean;
|
|
1247
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1248
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1252
|
+
/**
|
|
1253
|
+
* List all API keys for your tenant.
|
|
1254
|
+
|
|
1255
|
+
By default, revoked keys are excluded. Set `include_revoked=true` to include them.
|
|
1256
|
+
|
|
1257
|
+
**Note:** The full API key value is never returned — only the key prefix is shown.
|
|
1258
|
+
* @summary List API keys
|
|
1259
|
+
*/
|
|
1260
|
+
type listApiKeysResponse200 = {
|
|
1261
|
+
data: ListApiKeys200;
|
|
1262
|
+
status: 200;
|
|
1263
|
+
};
|
|
1264
|
+
type listApiKeysResponse400 = {
|
|
1265
|
+
data: ErrorResponse;
|
|
1266
|
+
status: 400;
|
|
1267
|
+
};
|
|
1268
|
+
type listApiKeysResponse401 = {
|
|
1269
|
+
data: ErrorResponse;
|
|
1270
|
+
status: 401;
|
|
1271
|
+
};
|
|
1272
|
+
type listApiKeysResponse409 = {
|
|
1273
|
+
data: ErrorResponse;
|
|
1274
|
+
status: 409;
|
|
1275
|
+
};
|
|
1276
|
+
type listApiKeysResponse500 = {
|
|
1277
|
+
data: ErrorResponse;
|
|
1278
|
+
status: 500;
|
|
1279
|
+
};
|
|
1280
|
+
type listApiKeysResponseSuccess = listApiKeysResponse200 & {
|
|
1281
|
+
headers: Headers;
|
|
1282
|
+
};
|
|
1283
|
+
type listApiKeysResponseError = (listApiKeysResponse400 | listApiKeysResponse401 | listApiKeysResponse409 | listApiKeysResponse500) & {
|
|
1284
|
+
headers: Headers;
|
|
1285
|
+
};
|
|
1286
|
+
type listApiKeysResponse = listApiKeysResponseSuccess | listApiKeysResponseError;
|
|
1287
|
+
declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
|
|
1288
|
+
declare const listApiKeys: (params?: ListApiKeysParams, options?: RequestInit) => Promise<listApiKeysResponse>;
|
|
1289
|
+
declare const getListApiKeysKey: (params?: ListApiKeysParams) => readonly ["/platform/api-keys", ...ListApiKeysParams[]];
|
|
1290
|
+
type ListApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listApiKeys>>>;
|
|
1291
|
+
/**
|
|
1292
|
+
* @summary List API keys
|
|
1293
|
+
*/
|
|
1294
|
+
declare const useListApiKeys: <TError = ErrorResponse>(params?: ListApiKeysParams, options?: {
|
|
1295
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listApiKeys>>, TError> & {
|
|
1296
|
+
swrKey?: Key;
|
|
1297
|
+
enabled?: boolean;
|
|
1298
|
+
};
|
|
1299
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1300
|
+
}) => {
|
|
1301
|
+
data: listApiKeysResponse | undefined;
|
|
1302
|
+
error: TError | undefined;
|
|
1303
|
+
mutate: swr.KeyedMutator<listApiKeysResponse>;
|
|
1304
|
+
isValidating: boolean;
|
|
1305
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1306
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1307
|
+
};
|
|
1308
|
+
/**
|
|
1309
|
+
* Create a new API key for authenticating with the Avallon API.
|
|
1310
|
+
|
|
1311
|
+
**Important:** The full API key is only returned once in the response. Store it securely — it cannot be retrieved again.
|
|
1312
|
+
|
|
1313
|
+
Keys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.
|
|
1314
|
+
* @summary Create an API key
|
|
1315
|
+
*/
|
|
1316
|
+
type createApiKeyResponse200 = {
|
|
1317
|
+
data: CreateApiKey200;
|
|
1318
|
+
status: 200;
|
|
1319
|
+
};
|
|
1320
|
+
type createApiKeyResponse400 = {
|
|
1321
|
+
data: ErrorResponse;
|
|
1322
|
+
status: 400;
|
|
1323
|
+
};
|
|
1324
|
+
type createApiKeyResponse401 = {
|
|
1325
|
+
data: ErrorResponse;
|
|
1326
|
+
status: 401;
|
|
1327
|
+
};
|
|
1328
|
+
type createApiKeyResponse409 = {
|
|
1329
|
+
data: ErrorResponse;
|
|
1330
|
+
status: 409;
|
|
1331
|
+
};
|
|
1332
|
+
type createApiKeyResponse500 = {
|
|
1333
|
+
data: ErrorResponse;
|
|
1334
|
+
status: 500;
|
|
1335
|
+
};
|
|
1336
|
+
type createApiKeyResponseSuccess = createApiKeyResponse200 & {
|
|
1337
|
+
headers: Headers;
|
|
1338
|
+
};
|
|
1339
|
+
type createApiKeyResponseError = (createApiKeyResponse400 | createApiKeyResponse401 | createApiKeyResponse409 | createApiKeyResponse500) & {
|
|
1340
|
+
headers: Headers;
|
|
1341
|
+
};
|
|
1342
|
+
type createApiKeyResponse = createApiKeyResponseSuccess | createApiKeyResponseError;
|
|
1343
|
+
declare const getCreateApiKeyUrl: () => string;
|
|
1344
|
+
declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, options?: RequestInit) => Promise<createApiKeyResponse>;
|
|
1345
|
+
declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
|
|
1346
|
+
arg: CreateApiKeyBody;
|
|
1347
|
+
}) => Promise<createApiKeyResponse>;
|
|
1348
|
+
declare const getCreateApiKeyMutationKey: () => readonly ["/platform/api-keys"];
|
|
1349
|
+
type CreateApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createApiKey>>>;
|
|
1350
|
+
/**
|
|
1351
|
+
* @summary Create an API key
|
|
1352
|
+
*/
|
|
1353
|
+
declare const useCreateApiKey: <TError = ErrorResponse>(options?: {
|
|
1354
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createApiKey>>, TError, Key, CreateApiKeyBody, Awaited<ReturnType<typeof createApiKey>>> & {
|
|
1355
|
+
swrKey?: string;
|
|
1356
|
+
};
|
|
1357
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1358
|
+
}) => {
|
|
1359
|
+
isMutating: boolean;
|
|
1360
|
+
trigger: swr_mutation.TriggerWithArgs<createApiKeyResponse, TError, string | readonly ["/platform/api-keys"], CreateApiKeyBody>;
|
|
1361
|
+
reset: () => void;
|
|
1362
|
+
error: TError | undefined;
|
|
1363
|
+
data: createApiKeyResponse | undefined;
|
|
1364
|
+
swrKey: string | readonly ["/platform/api-keys"];
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* Revoke an existing API key. Once revoked, the key can no longer be used for authentication.
|
|
1368
|
+
|
|
1369
|
+
This operation is irreversible — revoked keys cannot be re-enabled. Create a new key if needed.
|
|
1370
|
+
|
|
1371
|
+
Returns 409 if the key is already revoked, 404 if the key does not exist.
|
|
1372
|
+
* @summary Revoke an API key
|
|
1373
|
+
*/
|
|
1374
|
+
type revokeApiKeyResponse200 = {
|
|
1375
|
+
data: RevokeApiKey200;
|
|
1376
|
+
status: 200;
|
|
1377
|
+
};
|
|
1378
|
+
type revokeApiKeyResponse400 = {
|
|
1379
|
+
data: ErrorResponse;
|
|
1380
|
+
status: 400;
|
|
1381
|
+
};
|
|
1382
|
+
type revokeApiKeyResponse401 = {
|
|
1383
|
+
data: ErrorResponse;
|
|
1384
|
+
status: 401;
|
|
1385
|
+
};
|
|
1386
|
+
type revokeApiKeyResponse404 = {
|
|
1387
|
+
data: ErrorResponse;
|
|
1388
|
+
status: 404;
|
|
1389
|
+
};
|
|
1390
|
+
type revokeApiKeyResponse409 = {
|
|
1391
|
+
data: ErrorResponse;
|
|
1392
|
+
status: 409;
|
|
1393
|
+
};
|
|
1394
|
+
type revokeApiKeyResponse500 = {
|
|
1395
|
+
data: ErrorResponse;
|
|
1396
|
+
status: 500;
|
|
1397
|
+
};
|
|
1398
|
+
type revokeApiKeyResponseSuccess = revokeApiKeyResponse200 & {
|
|
1399
|
+
headers: Headers;
|
|
1400
|
+
};
|
|
1401
|
+
type revokeApiKeyResponseError = (revokeApiKeyResponse400 | revokeApiKeyResponse401 | revokeApiKeyResponse404 | revokeApiKeyResponse409 | revokeApiKeyResponse500) & {
|
|
1402
|
+
headers: Headers;
|
|
1403
|
+
};
|
|
1404
|
+
type revokeApiKeyResponse = revokeApiKeyResponseSuccess | revokeApiKeyResponseError;
|
|
1405
|
+
declare const getRevokeApiKeyUrl: (id: string) => string;
|
|
1406
|
+
declare const revokeApiKey: (id: string, options?: RequestInit) => Promise<revokeApiKeyResponse>;
|
|
1407
|
+
declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$1<typeof customFetch>) => (_: Key, __: {
|
|
1408
|
+
arg: Arguments;
|
|
1409
|
+
}) => Promise<revokeApiKeyResponse>;
|
|
1410
|
+
declare const getRevokeApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}/revoke`];
|
|
1411
|
+
type RevokeApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof revokeApiKey>>>;
|
|
1412
|
+
/**
|
|
1413
|
+
* @summary Revoke an API key
|
|
1414
|
+
*/
|
|
1415
|
+
declare const useRevokeApiKey: <TError = ErrorResponse>(id: string, options?: {
|
|
1416
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeApiKey>>> & {
|
|
1417
|
+
swrKey?: string;
|
|
1418
|
+
};
|
|
1419
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1420
|
+
}) => {
|
|
1421
|
+
isMutating: boolean;
|
|
1422
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<revokeApiKeyResponse, TError, string | readonly [`/platform/api-keys/${string}/revoke`], Arguments>;
|
|
1423
|
+
reset: () => void;
|
|
1424
|
+
error: TError | undefined;
|
|
1425
|
+
data: revokeApiKeyResponse | undefined;
|
|
1426
|
+
swrKey: string | readonly [`/platform/api-keys/${string}/revoke`];
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1430
|
+
type postV1AuthSignUpResponse200 = {
|
|
1431
|
+
data: PostV1AuthSignUp200;
|
|
1432
|
+
status: 200;
|
|
1433
|
+
};
|
|
1434
|
+
type postV1AuthSignUpResponse400 = {
|
|
1435
|
+
data: ErrorResponse;
|
|
1436
|
+
status: 400;
|
|
1437
|
+
};
|
|
1438
|
+
type postV1AuthSignUpResponse401 = {
|
|
1439
|
+
data: ErrorResponse;
|
|
1440
|
+
status: 401;
|
|
1441
|
+
};
|
|
1442
|
+
type postV1AuthSignUpResponse409 = {
|
|
1443
|
+
data: ErrorResponse;
|
|
1444
|
+
status: 409;
|
|
1445
|
+
};
|
|
1446
|
+
type postV1AuthSignUpResponse500 = {
|
|
1447
|
+
data: ErrorResponse;
|
|
1448
|
+
status: 500;
|
|
1449
|
+
};
|
|
1450
|
+
type postV1AuthSignUpResponseSuccess = postV1AuthSignUpResponse200 & {
|
|
1451
|
+
headers: Headers;
|
|
1452
|
+
};
|
|
1453
|
+
type postV1AuthSignUpResponseError = (postV1AuthSignUpResponse400 | postV1AuthSignUpResponse401 | postV1AuthSignUpResponse409 | postV1AuthSignUpResponse500) & {
|
|
1454
|
+
headers: Headers;
|
|
1455
|
+
};
|
|
1456
|
+
type postV1AuthSignUpResponse = postV1AuthSignUpResponseSuccess | postV1AuthSignUpResponseError;
|
|
1457
|
+
declare const getPostV1AuthSignUpUrl: () => string;
|
|
1458
|
+
declare const postV1AuthSignUp: (postV1AuthSignUpBody: PostV1AuthSignUpBody, options?: RequestInit) => Promise<postV1AuthSignUpResponse>;
|
|
1459
|
+
declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1460
|
+
arg: PostV1AuthSignUpBody;
|
|
1461
|
+
}) => Promise<postV1AuthSignUpResponse>;
|
|
1462
|
+
declare const getPostV1AuthSignUpMutationKey: () => readonly ["/v1/auth/sign-up"];
|
|
1463
|
+
type PostV1AuthSignUpMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthSignUp>>>;
|
|
1464
|
+
declare const usePostV1AuthSignUp: <TError = ErrorResponse>(options?: {
|
|
1465
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignUp>>, TError, Key, PostV1AuthSignUpBody, Awaited<ReturnType<typeof postV1AuthSignUp>>> & {
|
|
1466
|
+
swrKey?: string;
|
|
1467
|
+
};
|
|
1468
|
+
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1469
|
+
}) => {
|
|
1470
|
+
isMutating: boolean;
|
|
1471
|
+
trigger: swr_mutation.TriggerWithArgs<postV1AuthSignUpResponse, TError, string | readonly ["/v1/auth/sign-up"], PostV1AuthSignUpBody>;
|
|
1472
|
+
reset: () => void;
|
|
1473
|
+
error: TError | undefined;
|
|
1474
|
+
data: postV1AuthSignUpResponse | undefined;
|
|
1475
|
+
swrKey: string | readonly ["/v1/auth/sign-up"];
|
|
1476
|
+
};
|
|
1477
|
+
type postV1AuthSignInResponse200 = {
|
|
1478
|
+
data: PostV1AuthSignIn200;
|
|
1479
|
+
status: 200;
|
|
1480
|
+
};
|
|
1481
|
+
type postV1AuthSignInResponse400 = {
|
|
1482
|
+
data: ErrorResponse;
|
|
1483
|
+
status: 400;
|
|
1484
|
+
};
|
|
1485
|
+
type postV1AuthSignInResponse401 = {
|
|
1486
|
+
data: ErrorResponse;
|
|
1487
|
+
status: 401;
|
|
1488
|
+
};
|
|
1489
|
+
type postV1AuthSignInResponse409 = {
|
|
1490
|
+
data: ErrorResponse;
|
|
1491
|
+
status: 409;
|
|
1492
|
+
};
|
|
1493
|
+
type postV1AuthSignInResponse500 = {
|
|
1494
|
+
data: ErrorResponse;
|
|
1495
|
+
status: 500;
|
|
1496
|
+
};
|
|
1497
|
+
type postV1AuthSignInResponseSuccess = postV1AuthSignInResponse200 & {
|
|
1498
|
+
headers: Headers;
|
|
1499
|
+
};
|
|
1500
|
+
type postV1AuthSignInResponseError = (postV1AuthSignInResponse400 | postV1AuthSignInResponse401 | postV1AuthSignInResponse409 | postV1AuthSignInResponse500) & {
|
|
1501
|
+
headers: Headers;
|
|
1502
|
+
};
|
|
1503
|
+
type postV1AuthSignInResponse = postV1AuthSignInResponseSuccess | postV1AuthSignInResponseError;
|
|
1504
|
+
declare const getPostV1AuthSignInUrl: () => string;
|
|
1505
|
+
declare const postV1AuthSignIn: (postV1AuthSignInBody: PostV1AuthSignInBody, options?: RequestInit) => Promise<postV1AuthSignInResponse>;
|
|
1506
|
+
declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1507
|
+
arg: PostV1AuthSignInBody;
|
|
1508
|
+
}) => Promise<postV1AuthSignInResponse>;
|
|
1509
|
+
declare const getPostV1AuthSignInMutationKey: () => readonly ["/v1/auth/sign-in"];
|
|
1510
|
+
type PostV1AuthSignInMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthSignIn>>>;
|
|
1511
|
+
declare const usePostV1AuthSignIn: <TError = ErrorResponse>(options?: {
|
|
1512
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignIn>>, TError, Key, PostV1AuthSignInBody, Awaited<ReturnType<typeof postV1AuthSignIn>>> & {
|
|
1513
|
+
swrKey?: string;
|
|
1514
|
+
};
|
|
1515
|
+
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1516
|
+
}) => {
|
|
1517
|
+
isMutating: boolean;
|
|
1518
|
+
trigger: swr_mutation.TriggerWithArgs<postV1AuthSignInResponse, TError, string | readonly ["/v1/auth/sign-in"], PostV1AuthSignInBody>;
|
|
1519
|
+
reset: () => void;
|
|
1520
|
+
error: TError | undefined;
|
|
1521
|
+
data: postV1AuthSignInResponse | undefined;
|
|
1522
|
+
swrKey: string | readonly ["/v1/auth/sign-in"];
|
|
1523
|
+
};
|
|
1524
|
+
type postV1AuthRefreshTokenResponse200 = {
|
|
1525
|
+
data: PostV1AuthRefreshToken200;
|
|
1526
|
+
status: 200;
|
|
1527
|
+
};
|
|
1528
|
+
type postV1AuthRefreshTokenResponse400 = {
|
|
1529
|
+
data: ErrorResponse;
|
|
1530
|
+
status: 400;
|
|
1531
|
+
};
|
|
1532
|
+
type postV1AuthRefreshTokenResponse401 = {
|
|
1533
|
+
data: ErrorResponse;
|
|
1534
|
+
status: 401;
|
|
1535
|
+
};
|
|
1536
|
+
type postV1AuthRefreshTokenResponse409 = {
|
|
1537
|
+
data: ErrorResponse;
|
|
1538
|
+
status: 409;
|
|
1539
|
+
};
|
|
1540
|
+
type postV1AuthRefreshTokenResponse500 = {
|
|
1541
|
+
data: ErrorResponse;
|
|
1542
|
+
status: 500;
|
|
1543
|
+
};
|
|
1544
|
+
type postV1AuthRefreshTokenResponseSuccess = postV1AuthRefreshTokenResponse200 & {
|
|
1545
|
+
headers: Headers;
|
|
1546
|
+
};
|
|
1547
|
+
type postV1AuthRefreshTokenResponseError = (postV1AuthRefreshTokenResponse400 | postV1AuthRefreshTokenResponse401 | postV1AuthRefreshTokenResponse409 | postV1AuthRefreshTokenResponse500) & {
|
|
1548
|
+
headers: Headers;
|
|
1549
|
+
};
|
|
1550
|
+
type postV1AuthRefreshTokenResponse = postV1AuthRefreshTokenResponseSuccess | postV1AuthRefreshTokenResponseError;
|
|
1551
|
+
declare const getPostV1AuthRefreshTokenUrl: () => string;
|
|
1552
|
+
declare const postV1AuthRefreshToken: (postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody, options?: RequestInit) => Promise<postV1AuthRefreshTokenResponse>;
|
|
1553
|
+
declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1554
|
+
arg: PostV1AuthRefreshTokenBody;
|
|
1555
|
+
}) => Promise<postV1AuthRefreshTokenResponse>;
|
|
1556
|
+
declare const getPostV1AuthRefreshTokenMutationKey: () => readonly ["/v1/auth/refresh-token"];
|
|
1557
|
+
type PostV1AuthRefreshTokenMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthRefreshToken>>>;
|
|
1558
|
+
declare const usePostV1AuthRefreshToken: <TError = ErrorResponse>(options?: {
|
|
1559
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthRefreshToken>>, TError, Key, PostV1AuthRefreshTokenBody, Awaited<ReturnType<typeof postV1AuthRefreshToken>>> & {
|
|
1560
|
+
swrKey?: string;
|
|
1561
|
+
};
|
|
1562
|
+
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1563
|
+
}) => {
|
|
1564
|
+
isMutating: boolean;
|
|
1565
|
+
trigger: swr_mutation.TriggerWithArgs<postV1AuthRefreshTokenResponse, TError, string | readonly ["/v1/auth/refresh-token"], PostV1AuthRefreshTokenBody>;
|
|
1566
|
+
reset: () => void;
|
|
1567
|
+
error: TError | undefined;
|
|
1568
|
+
data: postV1AuthRefreshTokenResponse | undefined;
|
|
1569
|
+
swrKey: string | readonly ["/v1/auth/refresh-token"];
|
|
1570
|
+
};
|
|
1571
|
+
type getV1AuthOauthUrlResponse200 = {
|
|
1572
|
+
data: GetV1AuthOauthUrl200;
|
|
1573
|
+
status: 200;
|
|
1574
|
+
};
|
|
1575
|
+
type getV1AuthOauthUrlResponse400 = {
|
|
1576
|
+
data: ErrorResponse;
|
|
1577
|
+
status: 400;
|
|
1578
|
+
};
|
|
1579
|
+
type getV1AuthOauthUrlResponse401 = {
|
|
1580
|
+
data: ErrorResponse;
|
|
1581
|
+
status: 401;
|
|
1582
|
+
};
|
|
1583
|
+
type getV1AuthOauthUrlResponse409 = {
|
|
1584
|
+
data: ErrorResponse;
|
|
1585
|
+
status: 409;
|
|
1586
|
+
};
|
|
1587
|
+
type getV1AuthOauthUrlResponse500 = {
|
|
1588
|
+
data: ErrorResponse;
|
|
1589
|
+
status: 500;
|
|
1590
|
+
};
|
|
1591
|
+
type getV1AuthOauthUrlResponseSuccess = getV1AuthOauthUrlResponse200 & {
|
|
1592
|
+
headers: Headers;
|
|
1593
|
+
};
|
|
1594
|
+
type getV1AuthOauthUrlResponseError = (getV1AuthOauthUrlResponse400 | getV1AuthOauthUrlResponse401 | getV1AuthOauthUrlResponse409 | getV1AuthOauthUrlResponse500) & {
|
|
1595
|
+
headers: Headers;
|
|
1596
|
+
};
|
|
1597
|
+
type getV1AuthOauthUrlResponse = getV1AuthOauthUrlResponseSuccess | getV1AuthOauthUrlResponseError;
|
|
1598
|
+
declare const getGetV1AuthOauthUrlUrl: (params: GetV1AuthOauthUrlParams) => string;
|
|
1599
|
+
declare const getV1AuthOauthUrl: (params: GetV1AuthOauthUrlParams, options?: RequestInit) => Promise<getV1AuthOauthUrlResponse>;
|
|
1600
|
+
declare const getGetV1AuthOauthUrlKey: (params: GetV1AuthOauthUrlParams) => readonly ["/v1/auth/oauth-url", ...GetV1AuthOauthUrlParams[]];
|
|
1601
|
+
type GetV1AuthOauthUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getV1AuthOauthUrl>>>;
|
|
1602
|
+
declare const useGetV1AuthOauthUrl: <TError = ErrorResponse>(params: GetV1AuthOauthUrlParams, options?: {
|
|
1603
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof getV1AuthOauthUrl>>, TError> & {
|
|
1604
|
+
swrKey?: Key;
|
|
1605
|
+
enabled?: boolean;
|
|
1606
|
+
};
|
|
1607
|
+
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1608
|
+
}) => {
|
|
1609
|
+
data: getV1AuthOauthUrlResponse | undefined;
|
|
1610
|
+
error: TError | undefined;
|
|
1611
|
+
mutate: swr.KeyedMutator<getV1AuthOauthUrlResponse>;
|
|
1612
|
+
isValidating: boolean;
|
|
1613
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1614
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
export { type AvallonConfig, AvallonError, type CreateAgent200, type CreateAgent200Data, type CreateAgent200DataAgent, CreateAgent200DataAgentBackgroundSounds, CreateAgent200DataAgentDirection, CreateAgent200DataAgentLanguage, CreateAgent200DataAgentLlmModel, CreateAgent200DataAgentSttModel, CreateAgent200DataAgentTtsModel, CreateAgent200DataAgentTtsProvider, type CreateAgentBody, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, type CreateAgentMutationResult, type CreateApiKey200, type CreateApiKey200Data, type CreateApiKeyBody, CreateApiKeyBodyEnvironment, type CreateApiKeyMutationResult, type ErrorResponse, type ErrorResponseData, type GetAgent200, type GetAgent200Data, type GetAgent200DataAgent, GetAgent200DataAgentBackgroundSounds, GetAgent200DataAgentDirection, GetAgent200DataAgentLanguage, GetAgent200DataAgentLlmModel, GetAgent200DataAgentSttModel, GetAgent200DataAgentTtsModel, GetAgent200DataAgentTtsProvider, type GetAgentQueryResult, type GetV1AuthOauthUrl200, type GetV1AuthOauthUrl200Data, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type ListAgents200, type ListAgents200Data, type ListAgents200DataAgentsItem, ListAgents200DataAgentsItemBackgroundSounds, ListAgents200DataAgentsItemDirection, ListAgents200DataAgentsItemLanguage, ListAgents200DataAgentsItemLlmModel, ListAgents200DataAgentsItemSttModel, ListAgents200DataAgentsItemTtsModel, ListAgents200DataAgentsItemTtsProvider, type ListAgentsParams, type ListAgentsQueryResult, type ListApiKeys200, type ListApiKeys200Data, type ListApiKeys200DataDataItem, ListApiKeysIncludeRevoked, type ListApiKeysParams, type ListApiKeysQueryResult, type PostV1AuthRefreshToken200, type PostV1AuthRefreshToken200Data, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignIn200, type PostV1AuthSignIn200Data, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUp200, type PostV1AuthSignUp200Data, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, type RevokeApiKey200, type RevokeApiKey200Data, type RevokeApiKeyMutationResult, configure, createAgent, type createAgentResponse, type createAgentResponse200, type createAgentResponse400, type createAgentResponse401, type createAgentResponse409, type createAgentResponse500, type createAgentResponseError, type createAgentResponseSuccess, createApiKey, type createApiKeyResponse, type createApiKeyResponse200, type createApiKeyResponse400, type createApiKeyResponse401, type createApiKeyResponse409, type createApiKeyResponse500, type createApiKeyResponseError, type createApiKeyResponseSuccess, generateCodeChallenge, generateCodeVerifier, getAgent, type getAgentResponse, type getAgentResponse200, type getAgentResponse400, type getAgentResponse401, type getAgentResponse404, type getAgentResponse409, type getAgentResponse500, type getAgentResponseError, type getAgentResponseSuccess, 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, type getV1AuthOauthUrlResponse, type getV1AuthOauthUrlResponse200, type getV1AuthOauthUrlResponse400, type getV1AuthOauthUrlResponse401, type getV1AuthOauthUrlResponse409, type getV1AuthOauthUrlResponse500, type getV1AuthOauthUrlResponseError, type getV1AuthOauthUrlResponseSuccess, listAgents, type listAgentsResponse, type listAgentsResponse200, type listAgentsResponse400, type listAgentsResponse401, type listAgentsResponse409, type listAgentsResponse500, type listAgentsResponseError, type listAgentsResponseSuccess, listApiKeys, type listApiKeysResponse, type listApiKeysResponse200, type listApiKeysResponse400, type listApiKeysResponse401, type listApiKeysResponse409, type listApiKeysResponse500, type listApiKeysResponseError, type listApiKeysResponseSuccess, postV1AuthRefreshToken, type postV1AuthRefreshTokenResponse, type postV1AuthRefreshTokenResponse200, type postV1AuthRefreshTokenResponse400, type postV1AuthRefreshTokenResponse401, type postV1AuthRefreshTokenResponse409, type postV1AuthRefreshTokenResponse500, type postV1AuthRefreshTokenResponseError, type postV1AuthRefreshTokenResponseSuccess, postV1AuthSignIn, type postV1AuthSignInResponse, type postV1AuthSignInResponse200, type postV1AuthSignInResponse400, type postV1AuthSignInResponse401, type postV1AuthSignInResponse409, type postV1AuthSignInResponse500, type postV1AuthSignInResponseError, type postV1AuthSignInResponseSuccess, postV1AuthSignUp, type postV1AuthSignUpResponse, type postV1AuthSignUpResponse200, type postV1AuthSignUpResponse400, type postV1AuthSignUpResponse401, type postV1AuthSignUpResponse409, type postV1AuthSignUpResponse500, type postV1AuthSignUpResponseError, type postV1AuthSignUpResponseSuccess, revokeApiKey, type revokeApiKeyResponse, type revokeApiKeyResponse200, type revokeApiKeyResponse400, type revokeApiKeyResponse401, type revokeApiKeyResponse404, type revokeApiKeyResponse409, type revokeApiKeyResponse500, type revokeApiKeyResponseError, type revokeApiKeyResponseSuccess, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useListAgents, useListApiKeys, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, useRevokeApiKey };
|