@avallon-labs/sdk 0.0.0-main.25 → 0.0.0-main.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +225 -885
- package/dist/index.js +26 -150
- package/dist/index.js.map +1 -1
- package/openapi.yaml +263 -536
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,9 @@ declare function getConfig(): AvallonConfig;
|
|
|
26
26
|
declare function customFetch<T>(url: string, options: RequestInit): Promise<T>;
|
|
27
27
|
/** Unauthenticated fetch - for auth flow endpoints (sign-in, sign-up, etc.) */
|
|
28
28
|
declare function customFetchNoAuth<T>(url: string, options: RequestInit): Promise<T>;
|
|
29
|
-
/**
|
|
29
|
+
/** Orval uses this to type the `error` field in SWR hooks as AvallonError */
|
|
30
|
+
type ErrorType<E> = AvallonError;
|
|
31
|
+
/** Typed error class for API errors. Thrown by customFetch on non-2xx responses. */
|
|
30
32
|
declare class AvallonError extends Error {
|
|
31
33
|
readonly status: number;
|
|
32
34
|
readonly body: {
|
|
@@ -98,8 +100,8 @@ declare function generateCodeChallenge(verifier: string): Promise<string>;
|
|
|
98
100
|
* Avallon API
|
|
99
101
|
* OpenAPI spec version: 1.0.0
|
|
100
102
|
*/
|
|
101
|
-
type
|
|
102
|
-
declare const
|
|
103
|
+
type AgentBackgroundSounds = (typeof AgentBackgroundSounds)[keyof typeof AgentBackgroundSounds];
|
|
104
|
+
declare const AgentBackgroundSounds: {
|
|
103
105
|
readonly enabled: "enabled";
|
|
104
106
|
readonly disabled: "disabled";
|
|
105
107
|
};
|
|
@@ -110,8 +112,8 @@ declare const CreateAgent200DataAgentBackgroundSounds: {
|
|
|
110
112
|
* Avallon API
|
|
111
113
|
* OpenAPI spec version: 1.0.0
|
|
112
114
|
*/
|
|
113
|
-
type
|
|
114
|
-
declare const
|
|
115
|
+
type AgentDirection = (typeof AgentDirection)[keyof typeof AgentDirection];
|
|
116
|
+
declare const AgentDirection: {
|
|
115
117
|
readonly INBOUND: "INBOUND";
|
|
116
118
|
readonly OUTBOUND: "OUTBOUND";
|
|
117
119
|
};
|
|
@@ -122,8 +124,8 @@ declare const CreateAgent200DataAgentDirection: {
|
|
|
122
124
|
* Avallon API
|
|
123
125
|
* OpenAPI spec version: 1.0.0
|
|
124
126
|
*/
|
|
125
|
-
type
|
|
126
|
-
declare const
|
|
127
|
+
type AgentLanguage = (typeof AgentLanguage)[keyof typeof AgentLanguage];
|
|
128
|
+
declare const AgentLanguage: {
|
|
127
129
|
readonly "en-US": "en-US";
|
|
128
130
|
readonly "de-DE": "de-DE";
|
|
129
131
|
};
|
|
@@ -134,8 +136,8 @@ declare const CreateAgent200DataAgentLanguage: {
|
|
|
134
136
|
* Avallon API
|
|
135
137
|
* OpenAPI spec version: 1.0.0
|
|
136
138
|
*/
|
|
137
|
-
type
|
|
138
|
-
declare const
|
|
139
|
+
type AgentLlmModel = (typeof AgentLlmModel)[keyof typeof AgentLlmModel];
|
|
140
|
+
declare const AgentLlmModel: {
|
|
139
141
|
readonly GPT41: "GPT4.1";
|
|
140
142
|
readonly "AZURE-GPT4o": "AZURE-GPT4o";
|
|
141
143
|
readonly "AZURE-GPT41": "AZURE-GPT4.1";
|
|
@@ -156,8 +158,8 @@ declare const CreateAgent200DataAgentLlmModel: {
|
|
|
156
158
|
* Avallon API
|
|
157
159
|
* OpenAPI spec version: 1.0.0
|
|
158
160
|
*/
|
|
159
|
-
type
|
|
160
|
-
declare const
|
|
161
|
+
type AgentSttModel = (typeof AgentSttModel)[keyof typeof AgentSttModel];
|
|
162
|
+
declare const AgentSttModel: {
|
|
161
163
|
readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
|
|
162
164
|
readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
|
|
163
165
|
readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
|
|
@@ -169,8 +171,8 @@ declare const CreateAgent200DataAgentSttModel: {
|
|
|
169
171
|
* Avallon API
|
|
170
172
|
* OpenAPI spec version: 1.0.0
|
|
171
173
|
*/
|
|
172
|
-
type
|
|
173
|
-
declare const
|
|
174
|
+
type AgentTtsModel = (typeof AgentTtsModel)[keyof typeof AgentTtsModel];
|
|
175
|
+
declare const AgentTtsModel: {
|
|
174
176
|
readonly eleven_flash_v2_5: "eleven_flash_v2_5";
|
|
175
177
|
readonly eleven_turbo_v2_5: "eleven_turbo_v2_5";
|
|
176
178
|
readonly "sonic-multilingual": "sonic-multilingual";
|
|
@@ -184,8 +186,8 @@ declare const CreateAgent200DataAgentTtsModel: {
|
|
|
184
186
|
* Avallon API
|
|
185
187
|
* OpenAPI spec version: 1.0.0
|
|
186
188
|
*/
|
|
187
|
-
type
|
|
188
|
-
declare const
|
|
189
|
+
type AgentTtsProvider = (typeof AgentTtsProvider)[keyof typeof AgentTtsProvider];
|
|
190
|
+
declare const AgentTtsProvider: {
|
|
189
191
|
readonly elevenlabs: "elevenlabs";
|
|
190
192
|
readonly cartesia: "cartesia";
|
|
191
193
|
readonly google: "google";
|
|
@@ -198,25 +200,25 @@ declare const CreateAgent200DataAgentTtsProvider: {
|
|
|
198
200
|
* OpenAPI spec version: 1.0.0
|
|
199
201
|
*/
|
|
200
202
|
|
|
201
|
-
|
|
203
|
+
interface Agent {
|
|
202
204
|
id: string;
|
|
203
205
|
tenant_id: string;
|
|
204
206
|
agent_name: string;
|
|
205
|
-
direction:
|
|
206
|
-
llm_model:
|
|
207
|
-
tts_provider:
|
|
208
|
-
tts_model:
|
|
209
|
-
language:
|
|
207
|
+
direction: AgentDirection;
|
|
208
|
+
llm_model: AgentLlmModel;
|
|
209
|
+
tts_provider: AgentTtsProvider;
|
|
210
|
+
tts_model: AgentTtsModel;
|
|
211
|
+
language: AgentLanguage;
|
|
210
212
|
tts_voice_id: string;
|
|
211
|
-
stt_model:
|
|
213
|
+
stt_model: AgentSttModel;
|
|
212
214
|
transfer_phone_number: string | null;
|
|
213
|
-
background_sounds:
|
|
215
|
+
background_sounds: AgentBackgroundSounds;
|
|
214
216
|
created_at: string;
|
|
215
217
|
updated_at: string;
|
|
216
218
|
phone_number: string | null;
|
|
217
219
|
dial_pad: boolean;
|
|
218
220
|
end_call: boolean;
|
|
219
|
-
}
|
|
221
|
+
}
|
|
220
222
|
|
|
221
223
|
/**
|
|
222
224
|
* Generated by orval v8.1.0 🍺
|
|
@@ -225,9 +227,74 @@ type CreateAgent200DataAgent = {
|
|
|
225
227
|
* OpenAPI spec version: 1.0.0
|
|
226
228
|
*/
|
|
227
229
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
230
|
+
interface AgentList {
|
|
231
|
+
agents: Agent[];
|
|
232
|
+
/**
|
|
233
|
+
* Total number of agents
|
|
234
|
+
* @minimum -9007199254740991
|
|
235
|
+
* @maximum 9007199254740991
|
|
236
|
+
*/
|
|
237
|
+
total: number;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Generated by orval v8.1.0 🍺
|
|
242
|
+
* Do not edit manually.
|
|
243
|
+
* Avallon API
|
|
244
|
+
* OpenAPI spec version: 1.0.0
|
|
245
|
+
*/
|
|
246
|
+
interface ApiKey {
|
|
247
|
+
/** Unique identifier for the API key */
|
|
248
|
+
id: string;
|
|
249
|
+
/** Human-readable name for the API key */
|
|
250
|
+
name: string;
|
|
251
|
+
/** First 12 characters of the key (e.g. ak_live_abc1) */
|
|
252
|
+
key_prefix: string;
|
|
253
|
+
/** Last usage timestamp, if ever used */
|
|
254
|
+
last_used_at?: string;
|
|
255
|
+
/** Expiration date, if set */
|
|
256
|
+
expires_at?: string;
|
|
257
|
+
/** Revocation timestamp, if revoked */
|
|
258
|
+
revoked_at?: string;
|
|
259
|
+
/** Creation timestamp */
|
|
260
|
+
created_at: string;
|
|
261
|
+
/** Last update timestamp */
|
|
262
|
+
updated_at: string;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Generated by orval v8.1.0 🍺
|
|
267
|
+
* Do not edit manually.
|
|
268
|
+
* Avallon API
|
|
269
|
+
* OpenAPI spec version: 1.0.0
|
|
270
|
+
*/
|
|
271
|
+
interface ApiKeyCreated {
|
|
272
|
+
/** Unique identifier for the API key */
|
|
273
|
+
id: string;
|
|
274
|
+
/** Human-readable name for the API key */
|
|
275
|
+
name: string;
|
|
276
|
+
/** First 12 characters of the key (e.g. ak_live_abc1) */
|
|
277
|
+
key_prefix: string;
|
|
278
|
+
/** Expiration date, if set */
|
|
279
|
+
expires_at?: string;
|
|
280
|
+
/** Creation timestamp */
|
|
281
|
+
created_at: string;
|
|
282
|
+
/** The full API key — only returned once at creation */
|
|
283
|
+
api_key: string;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Generated by orval v8.1.0 🍺
|
|
288
|
+
* Do not edit manually.
|
|
289
|
+
* Avallon API
|
|
290
|
+
* OpenAPI spec version: 1.0.0
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
interface ApiKeyList {
|
|
294
|
+
data: ApiKey[];
|
|
295
|
+
/** Total number of keys returned */
|
|
296
|
+
count: number;
|
|
297
|
+
}
|
|
231
298
|
|
|
232
299
|
/**
|
|
233
300
|
* Generated by orval v8.1.0 🍺
|
|
@@ -235,11 +302,22 @@ type CreateAgent200Data = {
|
|
|
235
302
|
* Avallon API
|
|
236
303
|
* OpenAPI spec version: 1.0.0
|
|
237
304
|
*/
|
|
305
|
+
interface AuthTokens {
|
|
306
|
+
access_token: string;
|
|
307
|
+
refresh_token: string;
|
|
308
|
+
expires_at: string;
|
|
309
|
+
}
|
|
238
310
|
|
|
239
|
-
|
|
240
|
-
|
|
311
|
+
/**
|
|
312
|
+
* Generated by orval v8.1.0 🍺
|
|
313
|
+
* Do not edit manually.
|
|
314
|
+
* Avallon API
|
|
315
|
+
* OpenAPI spec version: 1.0.0
|
|
316
|
+
*/
|
|
317
|
+
interface ConfirmationResponse {
|
|
318
|
+
/** Confirmation message */
|
|
241
319
|
message: string;
|
|
242
|
-
}
|
|
320
|
+
}
|
|
243
321
|
|
|
244
322
|
/**
|
|
245
323
|
* Generated by orval v8.1.0 🍺
|
|
@@ -378,383 +456,9 @@ type CreateAgentBody = {
|
|
|
378
456
|
/** Language for the agent */
|
|
379
457
|
language: CreateAgentBodyLanguage;
|
|
380
458
|
/** 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";
|
|
459
|
+
dial_pad?: boolean;
|
|
460
|
+
/** Whether the agent can end the call */
|
|
461
|
+
end_call?: boolean;
|
|
758
462
|
};
|
|
759
463
|
|
|
760
464
|
/**
|
|
@@ -763,14 +467,10 @@ declare const ListAgents200DataAgentsItemSttModel: {
|
|
|
763
467
|
* Avallon API
|
|
764
468
|
* OpenAPI spec version: 1.0.0
|
|
765
469
|
*/
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
readonly "sonic-multilingual": "sonic-multilingual";
|
|
771
|
-
readonly "sonic-3": "sonic-3";
|
|
772
|
-
readonly chirp_3: "chirp_3";
|
|
773
|
-
};
|
|
470
|
+
|
|
471
|
+
interface CreateAgentResponse {
|
|
472
|
+
agent: Agent;
|
|
473
|
+
}
|
|
774
474
|
|
|
775
475
|
/**
|
|
776
476
|
* Generated by orval v8.1.0 🍺
|
|
@@ -778,38 +478,13 @@ declare const ListAgents200DataAgentsItemTtsModel: {
|
|
|
778
478
|
* Avallon API
|
|
779
479
|
* OpenAPI spec version: 1.0.0
|
|
780
480
|
*/
|
|
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
481
|
/**
|
|
789
|
-
*
|
|
790
|
-
* Do not edit manually.
|
|
791
|
-
* Avallon API
|
|
792
|
-
* OpenAPI spec version: 1.0.0
|
|
482
|
+
* Target environment for the key
|
|
793
483
|
*/
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
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;
|
|
484
|
+
type CreateApiKeyBodyEnvironment = (typeof CreateApiKeyBodyEnvironment)[keyof typeof CreateApiKeyBodyEnvironment];
|
|
485
|
+
declare const CreateApiKeyBodyEnvironment: {
|
|
486
|
+
readonly test: "test";
|
|
487
|
+
readonly live: "live";
|
|
813
488
|
};
|
|
814
489
|
|
|
815
490
|
/**
|
|
@@ -819,14 +494,17 @@ type ListAgents200DataAgentsItem = {
|
|
|
819
494
|
* OpenAPI spec version: 1.0.0
|
|
820
495
|
*/
|
|
821
496
|
|
|
822
|
-
type
|
|
823
|
-
agents: ListAgents200DataAgentsItem[];
|
|
497
|
+
type CreateApiKeyBody = {
|
|
824
498
|
/**
|
|
825
|
-
*
|
|
826
|
-
* @
|
|
827
|
-
* @
|
|
499
|
+
* Human-readable name for the API key
|
|
500
|
+
* @minLength 1
|
|
501
|
+
* @maxLength 100
|
|
828
502
|
*/
|
|
829
|
-
|
|
503
|
+
name: string;
|
|
504
|
+
/** Optional expiration date (ISO 8601) */
|
|
505
|
+
expires_at?: string;
|
|
506
|
+
/** Target environment for the key */
|
|
507
|
+
environment?: CreateApiKeyBodyEnvironment;
|
|
830
508
|
};
|
|
831
509
|
|
|
832
510
|
/**
|
|
@@ -835,11 +513,9 @@ type ListAgents200Data = {
|
|
|
835
513
|
* Avallon API
|
|
836
514
|
* OpenAPI spec version: 1.0.0
|
|
837
515
|
*/
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
message: string;
|
|
842
|
-
};
|
|
516
|
+
interface EmptyResponse {
|
|
517
|
+
[key: string]: unknown;
|
|
518
|
+
}
|
|
843
519
|
|
|
844
520
|
/**
|
|
845
521
|
* Generated by orval v8.1.0 🍺
|
|
@@ -847,11 +523,8 @@ type ListAgents200 = {
|
|
|
847
523
|
* Avallon API
|
|
848
524
|
* OpenAPI spec version: 1.0.0
|
|
849
525
|
*/
|
|
850
|
-
type
|
|
851
|
-
|
|
852
|
-
* Filter by exact agent name
|
|
853
|
-
*/
|
|
854
|
-
agent_name?: string;
|
|
526
|
+
type ErrorResponseData = {
|
|
527
|
+
[key: string]: unknown;
|
|
855
528
|
};
|
|
856
529
|
|
|
857
530
|
/**
|
|
@@ -860,24 +533,12 @@ type ListAgentsParams = {
|
|
|
860
533
|
* Avallon API
|
|
861
534
|
* OpenAPI spec version: 1.0.0
|
|
862
535
|
*/
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
/** Human-readable
|
|
867
|
-
|
|
868
|
-
|
|
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
|
-
};
|
|
536
|
+
|
|
537
|
+
interface ErrorResponse {
|
|
538
|
+
data: ErrorResponseData;
|
|
539
|
+
/** Human-readable error message */
|
|
540
|
+
message: string;
|
|
541
|
+
}
|
|
881
542
|
|
|
882
543
|
/**
|
|
883
544
|
* Generated by orval v8.1.0 🍺
|
|
@@ -886,11 +547,9 @@ type ListApiKeys200DataDataItem = {
|
|
|
886
547
|
* OpenAPI spec version: 1.0.0
|
|
887
548
|
*/
|
|
888
549
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
count: number;
|
|
893
|
-
};
|
|
550
|
+
interface GetAgentResponse {
|
|
551
|
+
agent: Agent;
|
|
552
|
+
}
|
|
894
553
|
|
|
895
554
|
/**
|
|
896
555
|
* Generated by orval v8.1.0 🍺
|
|
@@ -898,10 +557,10 @@ type ListApiKeys200Data = {
|
|
|
898
557
|
* Avallon API
|
|
899
558
|
* OpenAPI spec version: 1.0.0
|
|
900
559
|
*/
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
560
|
+
type GetV1AuthOauthUrlCodeChallengeMethod = (typeof GetV1AuthOauthUrlCodeChallengeMethod)[keyof typeof GetV1AuthOauthUrlCodeChallengeMethod];
|
|
561
|
+
declare const GetV1AuthOauthUrlCodeChallengeMethod: {
|
|
562
|
+
readonly plain: "plain";
|
|
563
|
+
readonly s256: "s256";
|
|
905
564
|
};
|
|
906
565
|
|
|
907
566
|
/**
|
|
@@ -910,10 +569,10 @@ type ListApiKeys200 = {
|
|
|
910
569
|
* Avallon API
|
|
911
570
|
* OpenAPI spec version: 1.0.0
|
|
912
571
|
*/
|
|
913
|
-
type
|
|
914
|
-
declare const
|
|
915
|
-
readonly
|
|
916
|
-
readonly
|
|
572
|
+
type GetV1AuthOauthUrlProvider = (typeof GetV1AuthOauthUrlProvider)[keyof typeof GetV1AuthOauthUrlProvider];
|
|
573
|
+
declare const GetV1AuthOauthUrlProvider: {
|
|
574
|
+
readonly google: "google";
|
|
575
|
+
readonly microsoft: "microsoft";
|
|
917
576
|
};
|
|
918
577
|
|
|
919
578
|
/**
|
|
@@ -923,11 +582,14 @@ declare const ListApiKeysIncludeRevoked: {
|
|
|
923
582
|
* OpenAPI spec version: 1.0.0
|
|
924
583
|
*/
|
|
925
584
|
|
|
926
|
-
type
|
|
585
|
+
type GetV1AuthOauthUrlParams = {
|
|
586
|
+
provider: GetV1AuthOauthUrlProvider;
|
|
587
|
+
redirect_uri: string;
|
|
588
|
+
code_challenge_method: GetV1AuthOauthUrlCodeChallengeMethod;
|
|
927
589
|
/**
|
|
928
|
-
*
|
|
590
|
+
* @minLength 1
|
|
929
591
|
*/
|
|
930
|
-
|
|
592
|
+
code_challenge: string;
|
|
931
593
|
};
|
|
932
594
|
|
|
933
595
|
/**
|
|
@@ -936,10 +598,11 @@ type ListApiKeysParams = {
|
|
|
936
598
|
* Avallon API
|
|
937
599
|
* OpenAPI spec version: 1.0.0
|
|
938
600
|
*/
|
|
939
|
-
type
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
601
|
+
type ListAgentsParams = {
|
|
602
|
+
/**
|
|
603
|
+
* Filter by exact agent name
|
|
604
|
+
*/
|
|
605
|
+
agent_name?: string;
|
|
943
606
|
};
|
|
944
607
|
|
|
945
608
|
/**
|
|
@@ -948,10 +611,10 @@ type PostV1AuthRefreshToken200Data = {
|
|
|
948
611
|
* Avallon API
|
|
949
612
|
* OpenAPI spec version: 1.0.0
|
|
950
613
|
*/
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
614
|
+
type ListApiKeysIncludeRevoked = (typeof ListApiKeysIncludeRevoked)[keyof typeof ListApiKeysIncludeRevoked];
|
|
615
|
+
declare const ListApiKeysIncludeRevoked: {
|
|
616
|
+
readonly true: "true";
|
|
617
|
+
readonly false: "false";
|
|
955
618
|
};
|
|
956
619
|
|
|
957
620
|
/**
|
|
@@ -960,9 +623,12 @@ type PostV1AuthRefreshToken200 = {
|
|
|
960
623
|
* Avallon API
|
|
961
624
|
* OpenAPI spec version: 1.0.0
|
|
962
625
|
*/
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
626
|
+
|
|
627
|
+
type ListApiKeysParams = {
|
|
628
|
+
/**
|
|
629
|
+
* Include revoked keys in the response
|
|
630
|
+
*/
|
|
631
|
+
include_revoked?: ListApiKeysIncludeRevoked;
|
|
966
632
|
};
|
|
967
633
|
|
|
968
634
|
/**
|
|
@@ -971,11 +637,9 @@ type PostV1AuthRefreshTokenBody = {
|
|
|
971
637
|
* Avallon API
|
|
972
638
|
* OpenAPI spec version: 1.0.0
|
|
973
639
|
*/
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
expires_at: string;
|
|
978
|
-
};
|
|
640
|
+
interface OAuthUrl {
|
|
641
|
+
url: string;
|
|
642
|
+
}
|
|
979
643
|
|
|
980
644
|
/**
|
|
981
645
|
* Generated by orval v8.1.0 🍺
|
|
@@ -983,10 +647,9 @@ type PostV1AuthSignIn200Data = {
|
|
|
983
647
|
* Avallon API
|
|
984
648
|
* OpenAPI spec version: 1.0.0
|
|
985
649
|
*/
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
message: string;
|
|
650
|
+
type PostV1AuthRefreshTokenBody = {
|
|
651
|
+
access_token: string;
|
|
652
|
+
refresh_token: string;
|
|
990
653
|
};
|
|
991
654
|
|
|
992
655
|
/**
|
|
@@ -1011,28 +674,6 @@ type PostV1AuthSignInBody = {
|
|
|
1011
674
|
token: string;
|
|
1012
675
|
};
|
|
1013
676
|
|
|
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
677
|
/**
|
|
1037
678
|
* Generated by orval v8.1.0 🍺
|
|
1038
679
|
* Do not edit manually.
|
|
@@ -1045,29 +686,6 @@ type PostV1AuthSignUpBody = {
|
|
|
1045
686
|
password: string;
|
|
1046
687
|
};
|
|
1047
688
|
|
|
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
689
|
type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1072
690
|
/**
|
|
1073
691
|
* List all agents for your tenant.
|
|
@@ -1081,50 +699,23 @@ Filter agents by name using the `agent_name` query parameter (exact match).
|
|
|
1081
699
|
Returns an array of all agents with their configurations and a total count.
|
|
1082
700
|
* @summary List agents
|
|
1083
701
|
*/
|
|
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
702
|
declare const getListAgentsUrl: (params?: ListAgentsParams) => string;
|
|
1112
|
-
declare const listAgents: (params?: ListAgentsParams, options?: RequestInit) => Promise<
|
|
703
|
+
declare const listAgents: (params?: ListAgentsParams, options?: RequestInit) => Promise<AgentList>;
|
|
1113
704
|
declare const getListAgentsKey: (params?: ListAgentsParams) => readonly ["/v1/agents", ...ListAgentsParams[]];
|
|
1114
705
|
type ListAgentsQueryResult = NonNullable<Awaited<ReturnType<typeof listAgents>>>;
|
|
1115
706
|
/**
|
|
1116
707
|
* @summary List agents
|
|
1117
708
|
*/
|
|
1118
|
-
declare const useListAgents: <TError = ErrorResponse
|
|
709
|
+
declare const useListAgents: <TError = ErrorType<ErrorResponse>>(params?: ListAgentsParams, options?: {
|
|
1119
710
|
swr?: SWRConfiguration<Awaited<ReturnType<typeof listAgents>>, TError> & {
|
|
1120
711
|
swrKey?: Key;
|
|
1121
712
|
enabled?: boolean;
|
|
1122
713
|
};
|
|
1123
714
|
request?: SecondParameter$2<typeof customFetch>;
|
|
1124
715
|
}) => {
|
|
1125
|
-
data:
|
|
716
|
+
data: AgentList | undefined;
|
|
1126
717
|
error: TError | undefined;
|
|
1127
|
-
mutate: swr.KeyedMutator<
|
|
718
|
+
mutate: swr.KeyedMutator<AgentList>;
|
|
1128
719
|
isValidating: boolean;
|
|
1129
720
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1130
721
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
@@ -1141,108 +732,50 @@ All fields in the request body are required except `phone_number_id` and `transf
|
|
|
1141
732
|
Returns the created agent with its ID and configuration.
|
|
1142
733
|
* @summary Create agent
|
|
1143
734
|
*/
|
|
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
735
|
declare const getCreateAgentUrl: () => string;
|
|
1172
|
-
declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<
|
|
736
|
+
declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<CreateAgentResponse>;
|
|
1173
737
|
declare const getCreateAgentMutationFetcher: (options?: SecondParameter$2<typeof customFetch>) => (_: Key, { arg }: {
|
|
1174
738
|
arg: CreateAgentBody;
|
|
1175
|
-
}) => Promise<
|
|
739
|
+
}) => Promise<CreateAgentResponse>;
|
|
1176
740
|
declare const getCreateAgentMutationKey: () => readonly ["/v1/agents"];
|
|
1177
741
|
type CreateAgentMutationResult = NonNullable<Awaited<ReturnType<typeof createAgent>>>;
|
|
1178
742
|
/**
|
|
1179
743
|
* @summary Create agent
|
|
1180
744
|
*/
|
|
1181
|
-
declare const useCreateAgent: <TError = ErrorResponse
|
|
745
|
+
declare const useCreateAgent: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
1182
746
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createAgent>>, TError, Key, CreateAgentBody, Awaited<ReturnType<typeof createAgent>>> & {
|
|
1183
747
|
swrKey?: string;
|
|
1184
748
|
};
|
|
1185
749
|
request?: SecondParameter$2<typeof customFetch>;
|
|
1186
750
|
}) => {
|
|
1187
751
|
isMutating: boolean;
|
|
1188
|
-
trigger: swr_mutation.TriggerWithArgs<
|
|
752
|
+
trigger: swr_mutation.TriggerWithArgs<CreateAgentResponse, TError, string | readonly ["/v1/agents"], CreateAgentBody>;
|
|
1189
753
|
reset: () => void;
|
|
754
|
+
data: CreateAgentResponse | undefined;
|
|
1190
755
|
error: TError | undefined;
|
|
1191
|
-
data: createAgentResponse | undefined;
|
|
1192
756
|
swrKey: string | readonly ["/v1/agents"];
|
|
1193
757
|
};
|
|
1194
758
|
/**
|
|
1195
759
|
* Retrieve a single agent by ID.
|
|
1196
760
|
* @summary Get agent
|
|
1197
761
|
*/
|
|
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
762
|
declare const getGetAgentUrl: (id: string) => string;
|
|
1230
|
-
declare const getAgent: (id: string, options?: RequestInit) => Promise<
|
|
763
|
+
declare const getAgent: (id: string, options?: RequestInit) => Promise<GetAgentResponse>;
|
|
1231
764
|
declare const getGetAgentKey: (id: string) => readonly [`/v1/agents/${string}`];
|
|
1232
765
|
type GetAgentQueryResult = NonNullable<Awaited<ReturnType<typeof getAgent>>>;
|
|
1233
766
|
/**
|
|
1234
767
|
* @summary Get agent
|
|
1235
768
|
*/
|
|
1236
|
-
declare const useGetAgent: <TError = ErrorResponse
|
|
769
|
+
declare const useGetAgent: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
1237
770
|
swr?: SWRConfiguration<Awaited<ReturnType<typeof getAgent>>, TError> & {
|
|
1238
771
|
swrKey?: Key;
|
|
1239
772
|
enabled?: boolean;
|
|
1240
773
|
};
|
|
1241
774
|
request?: SecondParameter$2<typeof customFetch>;
|
|
1242
775
|
}) => {
|
|
1243
|
-
data:
|
|
776
|
+
data: GetAgentResponse | undefined;
|
|
1244
777
|
error: TError | undefined;
|
|
1245
|
-
mutate: swr.KeyedMutator<
|
|
778
|
+
mutate: swr.KeyedMutator<GetAgentResponse>;
|
|
1246
779
|
isValidating: boolean;
|
|
1247
780
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1248
781
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
@@ -1257,50 +790,23 @@ By default, revoked keys are excluded. Set `include_revoked=true` to include the
|
|
|
1257
790
|
**Note:** The full API key value is never returned — only the key prefix is shown.
|
|
1258
791
|
* @summary List API keys
|
|
1259
792
|
*/
|
|
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
793
|
declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
|
|
1288
|
-
declare const listApiKeys: (params?: ListApiKeysParams, options?: RequestInit) => Promise<
|
|
794
|
+
declare const listApiKeys: (params?: ListApiKeysParams, options?: RequestInit) => Promise<ApiKeyList>;
|
|
1289
795
|
declare const getListApiKeysKey: (params?: ListApiKeysParams) => readonly ["/platform/api-keys", ...ListApiKeysParams[]];
|
|
1290
796
|
type ListApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listApiKeys>>>;
|
|
1291
797
|
/**
|
|
1292
798
|
* @summary List API keys
|
|
1293
799
|
*/
|
|
1294
|
-
declare const useListApiKeys: <TError = ErrorResponse
|
|
800
|
+
declare const useListApiKeys: <TError = ErrorType<ErrorResponse>>(params?: ListApiKeysParams, options?: {
|
|
1295
801
|
swr?: SWRConfiguration<Awaited<ReturnType<typeof listApiKeys>>, TError> & {
|
|
1296
802
|
swrKey?: Key;
|
|
1297
803
|
enabled?: boolean;
|
|
1298
804
|
};
|
|
1299
805
|
request?: SecondParameter$1<typeof customFetch>;
|
|
1300
806
|
}) => {
|
|
1301
|
-
data:
|
|
807
|
+
data: ApiKeyList | undefined;
|
|
1302
808
|
error: TError | undefined;
|
|
1303
|
-
mutate: swr.KeyedMutator<
|
|
809
|
+
mutate: swr.KeyedMutator<ApiKeyList>;
|
|
1304
810
|
isValidating: boolean;
|
|
1305
811
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1306
812
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
@@ -1313,54 +819,27 @@ declare const useListApiKeys: <TError = ErrorResponse>(params?: ListApiKeysParam
|
|
|
1313
819
|
Keys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.
|
|
1314
820
|
* @summary Create an API key
|
|
1315
821
|
*/
|
|
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
822
|
declare const getCreateApiKeyUrl: () => string;
|
|
1344
|
-
declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, options?: RequestInit) => Promise<
|
|
823
|
+
declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, options?: RequestInit) => Promise<ApiKeyCreated>;
|
|
1345
824
|
declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
|
|
1346
825
|
arg: CreateApiKeyBody;
|
|
1347
|
-
}) => Promise<
|
|
826
|
+
}) => Promise<ApiKeyCreated>;
|
|
1348
827
|
declare const getCreateApiKeyMutationKey: () => readonly ["/platform/api-keys"];
|
|
1349
828
|
type CreateApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createApiKey>>>;
|
|
1350
829
|
/**
|
|
1351
830
|
* @summary Create an API key
|
|
1352
831
|
*/
|
|
1353
|
-
declare const useCreateApiKey: <TError = ErrorResponse
|
|
832
|
+
declare const useCreateApiKey: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
1354
833
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createApiKey>>, TError, Key, CreateApiKeyBody, Awaited<ReturnType<typeof createApiKey>>> & {
|
|
1355
834
|
swrKey?: string;
|
|
1356
835
|
};
|
|
1357
836
|
request?: SecondParameter$1<typeof customFetch>;
|
|
1358
837
|
}) => {
|
|
1359
838
|
isMutating: boolean;
|
|
1360
|
-
trigger: swr_mutation.TriggerWithArgs<
|
|
839
|
+
trigger: swr_mutation.TriggerWithArgs<ApiKeyCreated, TError, string | readonly ["/platform/api-keys"], CreateApiKeyBody>;
|
|
1361
840
|
reset: () => void;
|
|
841
|
+
data: ApiKeyCreated | undefined;
|
|
1362
842
|
error: TError | undefined;
|
|
1363
|
-
data: createApiKeyResponse | undefined;
|
|
1364
843
|
swrKey: string | readonly ["/platform/api-keys"];
|
|
1365
844
|
};
|
|
1366
845
|
/**
|
|
@@ -1371,247 +850,108 @@ This operation is irreversible — revoked keys cannot be re-enabled. Create a n
|
|
|
1371
850
|
Returns 409 if the key is already revoked, 404 if the key does not exist.
|
|
1372
851
|
* @summary Revoke an API key
|
|
1373
852
|
*/
|
|
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
853
|
declare const getRevokeApiKeyUrl: (id: string) => string;
|
|
1406
|
-
declare const revokeApiKey: (id: string, options?: RequestInit) => Promise<
|
|
854
|
+
declare const revokeApiKey: (id: string, options?: RequestInit) => Promise<ConfirmationResponse>;
|
|
1407
855
|
declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$1<typeof customFetch>) => (_: Key, __: {
|
|
1408
856
|
arg: Arguments;
|
|
1409
|
-
}) => Promise<
|
|
857
|
+
}) => Promise<ConfirmationResponse>;
|
|
1410
858
|
declare const getRevokeApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}/revoke`];
|
|
1411
859
|
type RevokeApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof revokeApiKey>>>;
|
|
1412
860
|
/**
|
|
1413
861
|
* @summary Revoke an API key
|
|
1414
862
|
*/
|
|
1415
|
-
declare const useRevokeApiKey: <TError = ErrorResponse
|
|
863
|
+
declare const useRevokeApiKey: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
1416
864
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeApiKey>>> & {
|
|
1417
865
|
swrKey?: string;
|
|
1418
866
|
};
|
|
1419
867
|
request?: SecondParameter$1<typeof customFetch>;
|
|
1420
868
|
}) => {
|
|
1421
869
|
isMutating: boolean;
|
|
1422
|
-
trigger: swr_mutation.TriggerWithOptionsArgs<
|
|
870
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<ConfirmationResponse, TError, string | readonly [`/platform/api-keys/${string}/revoke`], Arguments>;
|
|
1423
871
|
reset: () => void;
|
|
872
|
+
data: ConfirmationResponse | undefined;
|
|
1424
873
|
error: TError | undefined;
|
|
1425
|
-
data: revokeApiKeyResponse | undefined;
|
|
1426
874
|
swrKey: string | readonly [`/platform/api-keys/${string}/revoke`];
|
|
1427
875
|
};
|
|
1428
876
|
|
|
1429
877
|
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
878
|
declare const getPostV1AuthSignUpUrl: () => string;
|
|
1458
|
-
declare const postV1AuthSignUp: (postV1AuthSignUpBody: PostV1AuthSignUpBody, options?: RequestInit) => Promise<
|
|
879
|
+
declare const postV1AuthSignUp: (postV1AuthSignUpBody: PostV1AuthSignUpBody, options?: RequestInit) => Promise<EmptyResponse>;
|
|
1459
880
|
declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1460
881
|
arg: PostV1AuthSignUpBody;
|
|
1461
|
-
}) => Promise<
|
|
882
|
+
}) => Promise<EmptyResponse>;
|
|
1462
883
|
declare const getPostV1AuthSignUpMutationKey: () => readonly ["/v1/auth/sign-up"];
|
|
1463
884
|
type PostV1AuthSignUpMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthSignUp>>>;
|
|
1464
|
-
declare const usePostV1AuthSignUp: <TError = ErrorResponse
|
|
885
|
+
declare const usePostV1AuthSignUp: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
1465
886
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignUp>>, TError, Key, PostV1AuthSignUpBody, Awaited<ReturnType<typeof postV1AuthSignUp>>> & {
|
|
1466
887
|
swrKey?: string;
|
|
1467
888
|
};
|
|
1468
889
|
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1469
890
|
}) => {
|
|
1470
891
|
isMutating: boolean;
|
|
1471
|
-
trigger: swr_mutation.TriggerWithArgs<
|
|
892
|
+
trigger: swr_mutation.TriggerWithArgs<EmptyResponse, TError, string | readonly ["/v1/auth/sign-up"], PostV1AuthSignUpBody>;
|
|
1472
893
|
reset: () => void;
|
|
894
|
+
data: EmptyResponse | undefined;
|
|
1473
895
|
error: TError | undefined;
|
|
1474
|
-
data: postV1AuthSignUpResponse | undefined;
|
|
1475
896
|
swrKey: string | readonly ["/v1/auth/sign-up"];
|
|
1476
897
|
};
|
|
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
898
|
declare const getPostV1AuthSignInUrl: () => string;
|
|
1505
|
-
declare const postV1AuthSignIn: (postV1AuthSignInBody: PostV1AuthSignInBody, options?: RequestInit) => Promise<
|
|
899
|
+
declare const postV1AuthSignIn: (postV1AuthSignInBody: PostV1AuthSignInBody, options?: RequestInit) => Promise<AuthTokens>;
|
|
1506
900
|
declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1507
901
|
arg: PostV1AuthSignInBody;
|
|
1508
|
-
}) => Promise<
|
|
902
|
+
}) => Promise<AuthTokens>;
|
|
1509
903
|
declare const getPostV1AuthSignInMutationKey: () => readonly ["/v1/auth/sign-in"];
|
|
1510
904
|
type PostV1AuthSignInMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthSignIn>>>;
|
|
1511
|
-
declare const usePostV1AuthSignIn: <TError = ErrorResponse
|
|
905
|
+
declare const usePostV1AuthSignIn: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
1512
906
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignIn>>, TError, Key, PostV1AuthSignInBody, Awaited<ReturnType<typeof postV1AuthSignIn>>> & {
|
|
1513
907
|
swrKey?: string;
|
|
1514
908
|
};
|
|
1515
909
|
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1516
910
|
}) => {
|
|
1517
911
|
isMutating: boolean;
|
|
1518
|
-
trigger: swr_mutation.TriggerWithArgs<
|
|
912
|
+
trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/sign-in"], PostV1AuthSignInBody>;
|
|
1519
913
|
reset: () => void;
|
|
914
|
+
data: AuthTokens | undefined;
|
|
1520
915
|
error: TError | undefined;
|
|
1521
|
-
data: postV1AuthSignInResponse | undefined;
|
|
1522
916
|
swrKey: string | readonly ["/v1/auth/sign-in"];
|
|
1523
917
|
};
|
|
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
918
|
declare const getPostV1AuthRefreshTokenUrl: () => string;
|
|
1552
|
-
declare const postV1AuthRefreshToken: (postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody, options?: RequestInit) => Promise<
|
|
919
|
+
declare const postV1AuthRefreshToken: (postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody, options?: RequestInit) => Promise<AuthTokens>;
|
|
1553
920
|
declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1554
921
|
arg: PostV1AuthRefreshTokenBody;
|
|
1555
|
-
}) => Promise<
|
|
922
|
+
}) => Promise<AuthTokens>;
|
|
1556
923
|
declare const getPostV1AuthRefreshTokenMutationKey: () => readonly ["/v1/auth/refresh-token"];
|
|
1557
924
|
type PostV1AuthRefreshTokenMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthRefreshToken>>>;
|
|
1558
|
-
declare const usePostV1AuthRefreshToken: <TError = ErrorResponse
|
|
925
|
+
declare const usePostV1AuthRefreshToken: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
1559
926
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthRefreshToken>>, TError, Key, PostV1AuthRefreshTokenBody, Awaited<ReturnType<typeof postV1AuthRefreshToken>>> & {
|
|
1560
927
|
swrKey?: string;
|
|
1561
928
|
};
|
|
1562
929
|
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1563
930
|
}) => {
|
|
1564
931
|
isMutating: boolean;
|
|
1565
|
-
trigger: swr_mutation.TriggerWithArgs<
|
|
932
|
+
trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/refresh-token"], PostV1AuthRefreshTokenBody>;
|
|
1566
933
|
reset: () => void;
|
|
934
|
+
data: AuthTokens | undefined;
|
|
1567
935
|
error: TError | undefined;
|
|
1568
|
-
data: postV1AuthRefreshTokenResponse | undefined;
|
|
1569
936
|
swrKey: string | readonly ["/v1/auth/refresh-token"];
|
|
1570
937
|
};
|
|
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
938
|
declare const getGetV1AuthOauthUrlUrl: (params: GetV1AuthOauthUrlParams) => string;
|
|
1599
|
-
declare const getV1AuthOauthUrl: (params: GetV1AuthOauthUrlParams, options?: RequestInit) => Promise<
|
|
939
|
+
declare const getV1AuthOauthUrl: (params: GetV1AuthOauthUrlParams, options?: RequestInit) => Promise<OAuthUrl>;
|
|
1600
940
|
declare const getGetV1AuthOauthUrlKey: (params: GetV1AuthOauthUrlParams) => readonly ["/v1/auth/oauth-url", ...GetV1AuthOauthUrlParams[]];
|
|
1601
941
|
type GetV1AuthOauthUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getV1AuthOauthUrl>>>;
|
|
1602
|
-
declare const useGetV1AuthOauthUrl: <TError = ErrorResponse
|
|
942
|
+
declare const useGetV1AuthOauthUrl: <TError = ErrorType<ErrorResponse>>(params: GetV1AuthOauthUrlParams, options?: {
|
|
1603
943
|
swr?: SWRConfiguration<Awaited<ReturnType<typeof getV1AuthOauthUrl>>, TError> & {
|
|
1604
944
|
swrKey?: Key;
|
|
1605
945
|
enabled?: boolean;
|
|
1606
946
|
};
|
|
1607
947
|
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1608
948
|
}) => {
|
|
1609
|
-
data:
|
|
949
|
+
data: OAuthUrl | undefined;
|
|
1610
950
|
error: TError | undefined;
|
|
1611
|
-
mutate: swr.KeyedMutator<
|
|
951
|
+
mutate: swr.KeyedMutator<OAuthUrl>;
|
|
1612
952
|
isValidating: boolean;
|
|
1613
953
|
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1614
954
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1615
955
|
};
|
|
1616
956
|
|
|
1617
|
-
export { type
|
|
957
|
+
export { type Agent, AgentBackgroundSounds, AgentDirection, AgentLanguage, type AgentList, AgentLlmModel, AgentSttModel, AgentTtsModel, AgentTtsProvider, type ApiKey, type ApiKeyCreated, type ApiKeyList, type AuthTokens, type AvallonConfig, AvallonError, type ConfirmationResponse, type CreateAgentBody, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, type CreateAgentMutationResult, type CreateAgentResponse, type CreateApiKeyBody, CreateApiKeyBodyEnvironment, type CreateApiKeyMutationResult, type EmptyResponse, type ErrorResponse, type ErrorResponseData, type GetAgentQueryResult, type GetAgentResponse, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type ListAgentsParams, type ListAgentsQueryResult, ListApiKeysIncludeRevoked, type ListApiKeysParams, type ListApiKeysQueryResult, type OAuthUrl, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, type RevokeApiKeyMutationResult, 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 };
|