@avallon-labs/sdk 0.0.0-main.7 → 0.0.0-main.71

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 CHANGED
@@ -2,7 +2,7 @@ import * as swr_mutation from 'swr/mutation';
2
2
  import { SWRMutationConfiguration } from 'swr/mutation';
3
3
  import * as swr__internal from 'swr/_internal';
4
4
  import * as swr from 'swr';
5
- import { Key, SWRConfiguration } from 'swr';
5
+ import { Key, SWRConfiguration, Arguments } from 'swr';
6
6
 
7
7
  /**
8
8
  * Custom fetch wrapper for Orval-generated client.
@@ -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
- /** Typed error class for API errors */
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 CreateAgent200DataAgentBackgroundSounds = (typeof CreateAgent200DataAgentBackgroundSounds)[keyof typeof CreateAgent200DataAgentBackgroundSounds];
102
- declare const CreateAgent200DataAgentBackgroundSounds: {
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 CreateAgent200DataAgentDirection = (typeof CreateAgent200DataAgentDirection)[keyof typeof CreateAgent200DataAgentDirection];
114
- declare const CreateAgent200DataAgentDirection: {
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 CreateAgent200DataAgentLanguage = (typeof CreateAgent200DataAgentLanguage)[keyof typeof CreateAgent200DataAgentLanguage];
126
- declare const CreateAgent200DataAgentLanguage: {
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 CreateAgent200DataAgentLlmModel = (typeof CreateAgent200DataAgentLlmModel)[keyof typeof CreateAgent200DataAgentLlmModel];
138
- declare const CreateAgent200DataAgentLlmModel: {
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 CreateAgent200DataAgentSttModel = (typeof CreateAgent200DataAgentSttModel)[keyof typeof CreateAgent200DataAgentSttModel];
160
- declare const CreateAgent200DataAgentSttModel: {
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 CreateAgent200DataAgentTtsModel = (typeof CreateAgent200DataAgentTtsModel)[keyof typeof CreateAgent200DataAgentTtsModel];
173
- declare const CreateAgent200DataAgentTtsModel: {
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 CreateAgent200DataAgentTtsProvider = (typeof CreateAgent200DataAgentTtsProvider)[keyof typeof CreateAgent200DataAgentTtsProvider];
188
- declare const CreateAgent200DataAgentTtsProvider: {
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
- type CreateAgent200DataAgent = {
203
+ interface Agent {
202
204
  id: string;
203
205
  tenant_id: string;
204
206
  agent_name: string;
205
- direction: CreateAgent200DataAgentDirection;
206
- llm_model: CreateAgent200DataAgentLlmModel;
207
- tts_provider: CreateAgent200DataAgentTtsProvider;
208
- tts_model: CreateAgent200DataAgentTtsModel;
209
- language: CreateAgent200DataAgentLanguage;
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: CreateAgent200DataAgentSttModel;
213
+ stt_model: AgentSttModel;
212
214
  transfer_phone_number: string | null;
213
- background_sounds: CreateAgent200DataAgentBackgroundSounds;
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,61 @@ type CreateAgent200DataAgent = {
225
227
  * OpenAPI spec version: 1.0.0
226
228
  */
227
229
 
228
- type CreateAgent200Data = {
229
- agent: CreateAgent200DataAgent;
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
+ }
231
285
 
232
286
  /**
233
287
  * Generated by orval v8.1.0 🍺
@@ -236,10 +290,34 @@ type CreateAgent200Data = {
236
290
  * OpenAPI spec version: 1.0.0
237
291
  */
238
292
 
239
- type CreateAgent200 = {
240
- data: CreateAgent200Data;
293
+ interface ApiKeyList {
294
+ data: ApiKey[];
295
+ /** Total number of keys returned */
296
+ count: number;
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
+ interface AuthTokens {
306
+ access_token: string;
307
+ refresh_token: string;
308
+ expires_at: string;
309
+ }
310
+
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 🍺
@@ -383,16 +461,6 @@ type CreateAgentBody = {
383
461
  end_call?: boolean;
384
462
  };
385
463
 
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 ErrorResponseData = {
393
- [key: string]: unknown;
394
- };
395
-
396
464
  /**
397
465
  * Generated by orval v8.1.0 🍺
398
466
  * Do not edit manually.
@@ -400,10 +468,8 @@ type ErrorResponseData = {
400
468
  * OpenAPI spec version: 1.0.0
401
469
  */
402
470
 
403
- interface ErrorResponse {
404
- data: ErrorResponseData;
405
- /** Human-readable error message */
406
- message: string;
471
+ interface CreateAgentResponse {
472
+ agent: Agent;
407
473
  }
408
474
 
409
475
  /**
@@ -412,22 +478,13 @@ interface ErrorResponse {
412
478
  * Avallon API
413
479
  * OpenAPI spec version: 1.0.0
414
480
  */
415
- type GetAgent200DataAgentBackgroundSounds = (typeof GetAgent200DataAgentBackgroundSounds)[keyof typeof GetAgent200DataAgentBackgroundSounds];
416
- declare const GetAgent200DataAgentBackgroundSounds: {
417
- readonly enabled: "enabled";
418
- readonly disabled: "disabled";
419
- };
420
-
421
481
  /**
422
- * Generated by orval v8.1.0 🍺
423
- * Do not edit manually.
424
- * Avallon API
425
- * OpenAPI spec version: 1.0.0
482
+ * Target environment for the key
426
483
  */
427
- type GetAgent200DataAgentDirection = (typeof GetAgent200DataAgentDirection)[keyof typeof GetAgent200DataAgentDirection];
428
- declare const GetAgent200DataAgentDirection: {
429
- readonly INBOUND: "INBOUND";
430
- readonly OUTBOUND: "OUTBOUND";
484
+ type CreateApiKeyBodyEnvironment = (typeof CreateApiKeyBodyEnvironment)[keyof typeof CreateApiKeyBodyEnvironment];
485
+ declare const CreateApiKeyBodyEnvironment: {
486
+ readonly test: "test";
487
+ readonly live: "live";
431
488
  };
432
489
 
433
490
  /**
@@ -436,10 +493,18 @@ declare const GetAgent200DataAgentDirection: {
436
493
  * Avallon API
437
494
  * OpenAPI spec version: 1.0.0
438
495
  */
439
- type GetAgent200DataAgentLanguage = (typeof GetAgent200DataAgentLanguage)[keyof typeof GetAgent200DataAgentLanguage];
440
- declare const GetAgent200DataAgentLanguage: {
441
- readonly "en-US": "en-US";
442
- readonly "de-DE": "de-DE";
496
+
497
+ type CreateApiKeyBody = {
498
+ /**
499
+ * Human-readable name for the API key
500
+ * @minLength 1
501
+ * @maxLength 100
502
+ */
503
+ name: string;
504
+ /** Optional expiration date (ISO 8601) */
505
+ expires_at?: string;
506
+ /** Target environment for the key */
507
+ environment?: CreateApiKeyBodyEnvironment;
443
508
  };
444
509
 
445
510
  /**
@@ -448,21 +513,9 @@ declare const GetAgent200DataAgentLanguage: {
448
513
  * Avallon API
449
514
  * OpenAPI spec version: 1.0.0
450
515
  */
451
- type GetAgent200DataAgentLlmModel = (typeof GetAgent200DataAgentLlmModel)[keyof typeof GetAgent200DataAgentLlmModel];
452
- declare const GetAgent200DataAgentLlmModel: {
453
- readonly GPT41: "GPT4.1";
454
- readonly "AZURE-GPT4o": "AZURE-GPT4o";
455
- readonly "AZURE-GPT41": "AZURE-GPT4.1";
456
- readonly "GPT-5": "GPT-5";
457
- readonly "GPT-5-low": "GPT-5-low";
458
- readonly "GPT-5-high": "GPT-5-high";
459
- readonly "GPT-51-chat-latest": "GPT-5.1-chat-latest";
460
- readonly "GPT-51-no-reasoning": "GPT-5.1-no-reasoning";
461
- readonly "GEMINI-15-flash": "GEMINI-1.5-flash";
462
- readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
463
- readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
464
- readonly "GEMINI-3-flash": "GEMINI-3-flash";
465
- };
516
+ interface EmptyResponse {
517
+ [key: string]: unknown;
518
+ }
466
519
 
467
520
  /**
468
521
  * Generated by orval v8.1.0 🍺
@@ -470,11 +523,8 @@ declare const GetAgent200DataAgentLlmModel: {
470
523
  * Avallon API
471
524
  * OpenAPI spec version: 1.0.0
472
525
  */
473
- type GetAgent200DataAgentSttModel = (typeof GetAgent200DataAgentSttModel)[keyof typeof GetAgent200DataAgentSttModel];
474
- declare const GetAgent200DataAgentSttModel: {
475
- readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
476
- readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
477
- readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
526
+ type ErrorResponseData = {
527
+ [key: string]: unknown;
478
528
  };
479
529
 
480
530
  /**
@@ -483,14 +533,12 @@ declare const GetAgent200DataAgentSttModel: {
483
533
  * Avallon API
484
534
  * OpenAPI spec version: 1.0.0
485
535
  */
486
- type GetAgent200DataAgentTtsModel = (typeof GetAgent200DataAgentTtsModel)[keyof typeof GetAgent200DataAgentTtsModel];
487
- declare const GetAgent200DataAgentTtsModel: {
488
- readonly eleven_flash_v2_5: "eleven_flash_v2_5";
489
- readonly eleven_turbo_v2_5: "eleven_turbo_v2_5";
490
- readonly "sonic-multilingual": "sonic-multilingual";
491
- readonly "sonic-3": "sonic-3";
492
- readonly chirp_3: "chirp_3";
493
- };
536
+
537
+ interface ErrorResponse {
538
+ data: ErrorResponseData;
539
+ /** Human-readable error message */
540
+ message: string;
541
+ }
494
542
 
495
543
  /**
496
544
  * Generated by orval v8.1.0 🍺
@@ -498,38 +546,13 @@ declare const GetAgent200DataAgentTtsModel: {
498
546
  * Avallon API
499
547
  * OpenAPI spec version: 1.0.0
500
548
  */
501
- type GetAgent200DataAgentTtsProvider = (typeof GetAgent200DataAgentTtsProvider)[keyof typeof GetAgent200DataAgentTtsProvider];
502
- declare const GetAgent200DataAgentTtsProvider: {
503
- readonly elevenlabs: "elevenlabs";
504
- readonly cartesia: "cartesia";
505
- readonly google: "google";
506
- };
507
-
508
549
  /**
509
- * Generated by orval v8.1.0 🍺
510
- * Do not edit manually.
511
- * Avallon API
512
- * OpenAPI spec version: 1.0.0
550
+ * Type of extractor
513
551
  */
514
-
515
- type GetAgent200DataAgent = {
516
- id: string;
517
- tenant_id: string;
518
- agent_name: string;
519
- direction: GetAgent200DataAgentDirection;
520
- llm_model: GetAgent200DataAgentLlmModel;
521
- tts_provider: GetAgent200DataAgentTtsProvider;
522
- tts_model: GetAgent200DataAgentTtsModel;
523
- language: GetAgent200DataAgentLanguage;
524
- tts_voice_id: string;
525
- stt_model: GetAgent200DataAgentSttModel;
526
- transfer_phone_number: string | null;
527
- background_sounds: GetAgent200DataAgentBackgroundSounds;
528
- created_at: string;
529
- updated_at: string;
530
- phone_number: string | null;
531
- dial_pad: boolean;
532
- end_call: boolean;
552
+ type ExtractorJobExtractorType = (typeof ExtractorJobExtractorType)[keyof typeof ExtractorJobExtractorType];
553
+ declare const ExtractorJobExtractorType: {
554
+ readonly basic: "basic";
555
+ readonly agentic: "agentic";
533
556
  };
534
557
 
535
558
  /**
@@ -538,9 +561,11 @@ type GetAgent200DataAgent = {
538
561
  * Avallon API
539
562
  * OpenAPI spec version: 1.0.0
540
563
  */
541
-
542
- type GetAgent200Data = {
543
- agent: GetAgent200DataAgent;
564
+ /**
565
+ * Job scope metadata (e.g. claim_id, email_id)
566
+ */
567
+ type ExtractorJobScope = {
568
+ [key: string]: unknown;
544
569
  };
545
570
 
546
571
  /**
@@ -550,10 +575,38 @@ type GetAgent200Data = {
550
575
  * OpenAPI spec version: 1.0.0
551
576
  */
552
577
 
553
- type GetAgent200 = {
554
- data: GetAgent200Data;
555
- message: string;
556
- };
578
+ interface ExtractorJob {
579
+ /** Unique job identifier */
580
+ id: string;
581
+ /** ID of the extractor that created this job */
582
+ extractor_id: string;
583
+ /**
584
+ * Version of the extractor at job creation time
585
+ * @minimum -9007199254740991
586
+ * @maximum 9007199254740991
587
+ */
588
+ extractor_version: number;
589
+ /** Name of the extractor */
590
+ extractor_name: string;
591
+ /** Type of extractor */
592
+ extractor_type: ExtractorJobExtractorType;
593
+ /** Current job status */
594
+ status: string;
595
+ /** Job scope metadata (e.g. claim_id, email_id) */
596
+ scope: ExtractorJobScope;
597
+ /** ISO 8601 timestamp when the job was created */
598
+ created_at: string;
599
+ /** ISO 8601 timestamp when processing started */
600
+ started_at: string | null;
601
+ /** ISO 8601 timestamp when processing finished */
602
+ completed_at: string | null;
603
+ /** Processing duration in milliseconds */
604
+ processing_duration_ms: number | null;
605
+ /** ID of the resulting extract, if completed */
606
+ extract_id: string | null;
607
+ /** Error message if the job failed */
608
+ error: string | null;
609
+ }
557
610
 
558
611
  /**
559
612
  * Generated by orval v8.1.0 🍺
@@ -561,9 +614,8 @@ type GetAgent200 = {
561
614
  * Avallon API
562
615
  * OpenAPI spec version: 1.0.0
563
616
  */
564
- type GetV1AuthOauthUrl200Data = {
565
- url: string;
566
- };
617
+
618
+ type ExtractorJobList = ExtractorJob[];
567
619
 
568
620
  /**
569
621
  * Generated by orval v8.1.0 🍺
@@ -572,10 +624,9 @@ type GetV1AuthOauthUrl200Data = {
572
624
  * OpenAPI spec version: 1.0.0
573
625
  */
574
626
 
575
- type GetV1AuthOauthUrl200 = {
576
- data: GetV1AuthOauthUrl200Data;
577
- message: string;
578
- };
627
+ interface GetAgentResponse {
628
+ agent: Agent;
629
+ }
579
630
 
580
631
  /**
581
632
  * Generated by orval v8.1.0 🍺
@@ -624,10 +675,8 @@ type GetV1AuthOauthUrlParams = {
624
675
  * Avallon API
625
676
  * OpenAPI spec version: 1.0.0
626
677
  */
627
- type ListAgents200DataAgentsItemBackgroundSounds = (typeof ListAgents200DataAgentsItemBackgroundSounds)[keyof typeof ListAgents200DataAgentsItemBackgroundSounds];
628
- declare const ListAgents200DataAgentsItemBackgroundSounds: {
629
- readonly enabled: "enabled";
630
- readonly disabled: "disabled";
678
+ type GetV1ExtractorJobsId200DataScope = {
679
+ [key: string]: unknown;
631
680
  };
632
681
 
633
682
  /**
@@ -636,10 +685,20 @@ declare const ListAgents200DataAgentsItemBackgroundSounds: {
636
685
  * Avallon API
637
686
  * OpenAPI spec version: 1.0.0
638
687
  */
639
- type ListAgents200DataAgentsItemDirection = (typeof ListAgents200DataAgentsItemDirection)[keyof typeof ListAgents200DataAgentsItemDirection];
640
- declare const ListAgents200DataAgentsItemDirection: {
641
- readonly INBOUND: "INBOUND";
642
- readonly OUTBOUND: "OUTBOUND";
688
+
689
+ type GetV1ExtractorJobsId200Data = {
690
+ id: string;
691
+ extractor_id: string;
692
+ extractor_version: number;
693
+ extractor_name: string;
694
+ status: string;
695
+ scope: GetV1ExtractorJobsId200DataScope;
696
+ created_at: string;
697
+ started_at: string | null;
698
+ completed_at: string | null;
699
+ processing_duration_ms: number | null;
700
+ extract_id: string | null;
701
+ error: string | null;
643
702
  };
644
703
 
645
704
  /**
@@ -648,10 +707,9 @@ declare const ListAgents200DataAgentsItemDirection: {
648
707
  * Avallon API
649
708
  * OpenAPI spec version: 1.0.0
650
709
  */
651
- type ListAgents200DataAgentsItemLanguage = (typeof ListAgents200DataAgentsItemLanguage)[keyof typeof ListAgents200DataAgentsItemLanguage];
652
- declare const ListAgents200DataAgentsItemLanguage: {
653
- readonly "en-US": "en-US";
654
- readonly "de-DE": "de-DE";
710
+
711
+ type GetV1ExtractorJobsId200 = {
712
+ data: GetV1ExtractorJobsId200Data;
655
713
  };
656
714
 
657
715
  /**
@@ -660,20 +718,11 @@ declare const ListAgents200DataAgentsItemLanguage: {
660
718
  * Avallon API
661
719
  * OpenAPI spec version: 1.0.0
662
720
  */
663
- type ListAgents200DataAgentsItemLlmModel = (typeof ListAgents200DataAgentsItemLlmModel)[keyof typeof ListAgents200DataAgentsItemLlmModel];
664
- declare const ListAgents200DataAgentsItemLlmModel: {
665
- readonly GPT41: "GPT4.1";
666
- readonly "AZURE-GPT4o": "AZURE-GPT4o";
667
- readonly "AZURE-GPT41": "AZURE-GPT4.1";
668
- readonly "GPT-5": "GPT-5";
669
- readonly "GPT-5-low": "GPT-5-low";
670
- readonly "GPT-5-high": "GPT-5-high";
671
- readonly "GPT-51-chat-latest": "GPT-5.1-chat-latest";
672
- readonly "GPT-51-no-reasoning": "GPT-5.1-no-reasoning";
673
- readonly "GEMINI-15-flash": "GEMINI-1.5-flash";
674
- readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
675
- readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
676
- readonly "GEMINI-3-flash": "GEMINI-3-flash";
721
+ type ListAgentsParams = {
722
+ /**
723
+ * Filter by exact agent name
724
+ */
725
+ agent_name?: string;
677
726
  };
678
727
 
679
728
  /**
@@ -682,11 +731,10 @@ declare const ListAgents200DataAgentsItemLlmModel: {
682
731
  * Avallon API
683
732
  * OpenAPI spec version: 1.0.0
684
733
  */
685
- type ListAgents200DataAgentsItemSttModel = (typeof ListAgents200DataAgentsItemSttModel)[keyof typeof ListAgents200DataAgentsItemSttModel];
686
- declare const ListAgents200DataAgentsItemSttModel: {
687
- readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
688
- readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
689
- readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
734
+ type ListApiKeysIncludeRevoked = (typeof ListApiKeysIncludeRevoked)[keyof typeof ListApiKeysIncludeRevoked];
735
+ declare const ListApiKeysIncludeRevoked: {
736
+ readonly true: "true";
737
+ readonly false: "false";
690
738
  };
691
739
 
692
740
  /**
@@ -695,13 +743,12 @@ declare const ListAgents200DataAgentsItemSttModel: {
695
743
  * Avallon API
696
744
  * OpenAPI spec version: 1.0.0
697
745
  */
698
- type ListAgents200DataAgentsItemTtsModel = (typeof ListAgents200DataAgentsItemTtsModel)[keyof typeof ListAgents200DataAgentsItemTtsModel];
699
- declare const ListAgents200DataAgentsItemTtsModel: {
700
- readonly eleven_flash_v2_5: "eleven_flash_v2_5";
701
- readonly eleven_turbo_v2_5: "eleven_turbo_v2_5";
702
- readonly "sonic-multilingual": "sonic-multilingual";
703
- readonly "sonic-3": "sonic-3";
704
- readonly chirp_3: "chirp_3";
746
+
747
+ type ListApiKeysParams = {
748
+ /**
749
+ * Include revoked keys in the response
750
+ */
751
+ include_revoked?: ListApiKeysIncludeRevoked;
705
752
  };
706
753
 
707
754
  /**
@@ -710,11 +757,10 @@ declare const ListAgents200DataAgentsItemTtsModel: {
710
757
  * Avallon API
711
758
  * OpenAPI spec version: 1.0.0
712
759
  */
713
- type ListAgents200DataAgentsItemTtsProvider = (typeof ListAgents200DataAgentsItemTtsProvider)[keyof typeof ListAgents200DataAgentsItemTtsProvider];
714
- declare const ListAgents200DataAgentsItemTtsProvider: {
715
- readonly elevenlabs: "elevenlabs";
716
- readonly cartesia: "cartesia";
717
- readonly google: "google";
760
+ type ListExtractorJobsExtractorType = (typeof ListExtractorJobsExtractorType)[keyof typeof ListExtractorJobsExtractorType];
761
+ declare const ListExtractorJobsExtractorType: {
762
+ readonly basic: "basic";
763
+ readonly agentic: "agentic";
718
764
  };
719
765
 
720
766
  /**
@@ -723,25 +769,11 @@ declare const ListAgents200DataAgentsItemTtsProvider: {
723
769
  * Avallon API
724
770
  * OpenAPI spec version: 1.0.0
725
771
  */
726
-
727
- type ListAgents200DataAgentsItem = {
728
- id: string;
729
- tenant_id: string;
730
- agent_name: string;
731
- direction: ListAgents200DataAgentsItemDirection;
732
- llm_model: ListAgents200DataAgentsItemLlmModel;
733
- tts_provider: ListAgents200DataAgentsItemTtsProvider;
734
- tts_model: ListAgents200DataAgentsItemTtsModel;
735
- language: ListAgents200DataAgentsItemLanguage;
736
- tts_voice_id: string;
737
- stt_model: ListAgents200DataAgentsItemSttModel;
738
- transfer_phone_number: string | null;
739
- background_sounds: ListAgents200DataAgentsItemBackgroundSounds;
740
- created_at: string;
741
- updated_at: string;
742
- phone_number: string | null;
743
- dial_pad: boolean;
744
- end_call: boolean;
772
+ type ListExtractorJobsSortBy = (typeof ListExtractorJobsSortBy)[keyof typeof ListExtractorJobsSortBy];
773
+ declare const ListExtractorJobsSortBy: {
774
+ readonly created_at: "created_at";
775
+ readonly started_at: "started_at";
776
+ readonly completed_at: "completed_at";
745
777
  };
746
778
 
747
779
  /**
@@ -750,15 +782,10 @@ type ListAgents200DataAgentsItem = {
750
782
  * Avallon API
751
783
  * OpenAPI spec version: 1.0.0
752
784
  */
753
-
754
- type ListAgents200Data = {
755
- agents: ListAgents200DataAgentsItem[];
756
- /**
757
- * Total number of agents
758
- * @minimum -9007199254740991
759
- * @maximum 9007199254740991
760
- */
761
- total: number;
785
+ type ListExtractorJobsSortOrder = (typeof ListExtractorJobsSortOrder)[keyof typeof ListExtractorJobsSortOrder];
786
+ declare const ListExtractorJobsSortOrder: {
787
+ readonly asc: "asc";
788
+ readonly desc: "desc";
762
789
  };
763
790
 
764
791
  /**
@@ -767,10 +794,13 @@ type ListAgents200Data = {
767
794
  * Avallon API
768
795
  * OpenAPI spec version: 1.0.0
769
796
  */
770
-
771
- type ListAgents200 = {
772
- data: ListAgents200Data;
773
- message: string;
797
+ type ListExtractorJobsStatus = (typeof ListExtractorJobsStatus)[keyof typeof ListExtractorJobsStatus];
798
+ declare const ListExtractorJobsStatus: {
799
+ readonly queued: "queued";
800
+ readonly in_progress: "in_progress";
801
+ readonly completed: "completed";
802
+ readonly failed: "failed";
803
+ readonly canceled: "canceled";
774
804
  };
775
805
 
776
806
  /**
@@ -779,11 +809,48 @@ type ListAgents200 = {
779
809
  * Avallon API
780
810
  * OpenAPI spec version: 1.0.0
781
811
  */
782
- type ListAgentsParams = {
812
+
813
+ type ListExtractorJobsParams = {
783
814
  /**
784
- * Filter by exact agent name
815
+ * Number of results to return
816
+ * @minimum 1
817
+ * @maximum 100
785
818
  */
786
- agent_name?: string;
819
+ count?: number;
820
+ /**
821
+ * Number of results to skip for pagination
822
+ * @minimum 0
823
+ */
824
+ offset?: number;
825
+ /**
826
+ * Field to sort by
827
+ */
828
+ sort_by?: ListExtractorJobsSortBy;
829
+ /**
830
+ * Sort direction
831
+ */
832
+ sort_order?: ListExtractorJobsSortOrder;
833
+ /**
834
+ * Filter by job status
835
+ */
836
+ status?: ListExtractorJobsStatus;
837
+ /**
838
+ * Filter by extractor type
839
+ */
840
+ extractor_type?: ListExtractorJobsExtractorType;
841
+ /**
842
+ * Filter by extractor ID
843
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
844
+ */
845
+ extractor_id?: string;
846
+ /**
847
+ * Filter jobs created after this date (ISO 8601)
848
+ */
849
+ created_after?: string;
850
+ /**
851
+ * Filter jobs created before this date (ISO 8601)
852
+ */
853
+ created_before?: string;
787
854
  };
788
855
 
789
856
  /**
@@ -792,10 +859,19 @@ type ListAgentsParams = {
792
859
  * Avallon API
793
860
  * OpenAPI spec version: 1.0.0
794
861
  */
795
- type PostV1AuthRefreshToken200Data = {
862
+ interface OAuthUrl {
863
+ url: string;
864
+ }
865
+
866
+ /**
867
+ * Generated by orval v8.1.0 🍺
868
+ * Do not edit manually.
869
+ * Avallon API
870
+ * OpenAPI spec version: 1.0.0
871
+ */
872
+ type PostV1AuthRefreshTokenBody = {
796
873
  access_token: string;
797
874
  refresh_token: string;
798
- expires_at: string;
799
875
  };
800
876
 
801
877
  /**
@@ -804,10 +880,20 @@ type PostV1AuthRefreshToken200Data = {
804
880
  * Avallon API
805
881
  * OpenAPI spec version: 1.0.0
806
882
  */
807
-
808
- type PostV1AuthRefreshToken200 = {
809
- data: PostV1AuthRefreshToken200Data;
810
- message: string;
883
+ type PostV1AuthSignInBody = {
884
+ type: "password";
885
+ email: string;
886
+ password: string;
887
+ } | {
888
+ type: "oauth";
889
+ code: string;
890
+ verifier: string;
891
+ } | {
892
+ type: "email_otp";
893
+ /** @pattern ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ */
894
+ email: string;
895
+ /** @minLength 1 */
896
+ token: string;
811
897
  };
812
898
 
813
899
  /**
@@ -816,9 +902,10 @@ type PostV1AuthRefreshToken200 = {
816
902
  * Avallon API
817
903
  * OpenAPI spec version: 1.0.0
818
904
  */
819
- type PostV1AuthRefreshTokenBody = {
820
- access_token: string;
821
- refresh_token: string;
905
+ type PostV1AuthSignUpBody = {
906
+ /** @pattern ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ */
907
+ email: string;
908
+ password: string;
822
909
  };
823
910
 
824
911
  /**
@@ -827,10 +914,8 @@ type PostV1AuthRefreshTokenBody = {
827
914
  * Avallon API
828
915
  * OpenAPI spec version: 1.0.0
829
916
  */
830
- type PostV1AuthSignIn200Data = {
831
- access_token: string;
832
- refresh_token: string;
833
- expires_at: string;
917
+ type PostV1ExtractorJobs200Scope = {
918
+ [key: string]: unknown;
834
919
  };
835
920
 
836
921
  /**
@@ -840,9 +925,13 @@ type PostV1AuthSignIn200Data = {
840
925
  * OpenAPI spec version: 1.0.0
841
926
  */
842
927
 
843
- type PostV1AuthSignIn200 = {
844
- data: PostV1AuthSignIn200Data;
845
- message: string;
928
+ type PostV1ExtractorJobs200 = {
929
+ id: string;
930
+ extractor_id: string;
931
+ extractor_version: number;
932
+ scope: PostV1ExtractorJobs200Scope;
933
+ status: string;
934
+ created_at: string;
846
935
  };
847
936
 
848
937
  /**
@@ -851,20 +940,8 @@ type PostV1AuthSignIn200 = {
851
940
  * Avallon API
852
941
  * OpenAPI spec version: 1.0.0
853
942
  */
854
- type PostV1AuthSignInBody = {
855
- type: "password";
856
- email: string;
857
- password: string;
858
- } | {
859
- type: "oauth";
860
- code: string;
861
- verifier: string;
862
- } | {
863
- type: "email_otp";
864
- /** @pattern ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ */
865
- email: string;
866
- /** @minLength 1 */
867
- token: string;
943
+ type PostV1ExtractorJobsBodyScope = {
944
+ [key: string]: string | number | boolean | null;
868
945
  };
869
946
 
870
947
  /**
@@ -873,8 +950,11 @@ type PostV1AuthSignInBody = {
873
950
  * Avallon API
874
951
  * OpenAPI spec version: 1.0.0
875
952
  */
876
- type PostV1AuthSignUp200Data = {
877
- [key: string]: unknown;
953
+
954
+ type PostV1ExtractorJobsBody = {
955
+ /** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
956
+ extractor_id: string;
957
+ scope: PostV1ExtractorJobsBodyScope;
878
958
  };
879
959
 
880
960
  /**
@@ -883,10 +963,8 @@ type PostV1AuthSignUp200Data = {
883
963
  * Avallon API
884
964
  * OpenAPI spec version: 1.0.0
885
965
  */
886
-
887
- type PostV1AuthSignUp200 = {
888
- data: PostV1AuthSignUp200Data;
889
- message: string;
966
+ type PostV1ExtractorJobsIdCancel200Scope = {
967
+ [key: string]: unknown;
890
968
  };
891
969
 
892
970
  /**
@@ -895,13 +973,23 @@ type PostV1AuthSignUp200 = {
895
973
  * Avallon API
896
974
  * OpenAPI spec version: 1.0.0
897
975
  */
898
- type PostV1AuthSignUpBody = {
899
- /** @pattern ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ */
900
- email: string;
901
- password: string;
976
+
977
+ type PostV1ExtractorJobsIdCancel200 = {
978
+ id: string;
979
+ extractor_id: string;
980
+ extractor_version: number;
981
+ extractor_name: string;
982
+ status: string;
983
+ scope: PostV1ExtractorJobsIdCancel200Scope;
984
+ created_at: string;
985
+ started_at: string | null;
986
+ completed_at: string | null;
987
+ processing_duration_ms: number | null;
988
+ extract_id: string | null;
989
+ error: string | null;
902
990
  };
903
991
 
904
- type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
992
+ type SecondParameter$4<T extends (...args: never) => unknown> = Parameters<T>[1];
905
993
  /**
906
994
  * List all agents for your tenant.
907
995
 
@@ -914,46 +1002,23 @@ Filter agents by name using the `agent_name` query parameter (exact match).
914
1002
  Returns an array of all agents with their configurations and a total count.
915
1003
  * @summary List agents
916
1004
  */
917
- type listAgentsResponse200 = {
918
- data: ListAgents200;
919
- status: 200;
920
- };
921
- type listAgentsResponse400 = {
922
- data: ErrorResponse;
923
- status: 400;
924
- };
925
- type listAgentsResponse401 = {
926
- data: ErrorResponse;
927
- status: 401;
928
- };
929
- type listAgentsResponse500 = {
930
- data: ErrorResponse;
931
- status: 500;
932
- };
933
- type listAgentsResponseSuccess = listAgentsResponse200 & {
934
- headers: Headers;
935
- };
936
- type listAgentsResponseError = (listAgentsResponse400 | listAgentsResponse401 | listAgentsResponse500) & {
937
- headers: Headers;
938
- };
939
- type listAgentsResponse = listAgentsResponseSuccess | listAgentsResponseError;
940
1005
  declare const getListAgentsUrl: (params?: ListAgentsParams) => string;
941
- declare const listAgents: (params?: ListAgentsParams, options?: RequestInit) => Promise<listAgentsResponse>;
1006
+ declare const listAgents: (params?: ListAgentsParams, options?: RequestInit) => Promise<AgentList>;
942
1007
  declare const getListAgentsKey: (params?: ListAgentsParams) => readonly ["/v1/agents", ...ListAgentsParams[]];
943
1008
  type ListAgentsQueryResult = NonNullable<Awaited<ReturnType<typeof listAgents>>>;
944
1009
  /**
945
1010
  * @summary List agents
946
1011
  */
947
- declare const useListAgents: <TError = ErrorResponse>(params?: ListAgentsParams, options?: {
1012
+ declare const useListAgents: <TError = ErrorType<ErrorResponse>>(params?: ListAgentsParams, options?: {
948
1013
  swr?: SWRConfiguration<Awaited<ReturnType<typeof listAgents>>, TError> & {
949
1014
  swrKey?: Key;
950
1015
  enabled?: boolean;
951
1016
  };
952
- request?: SecondParameter$1<typeof customFetch>;
1017
+ request?: SecondParameter$4<typeof customFetch>;
953
1018
  }) => {
954
- data: listAgentsResponse | undefined;
1019
+ data: AgentList | undefined;
955
1020
  error: TError | undefined;
956
- mutate: swr.KeyedMutator<listAgentsResponse>;
1021
+ mutate: swr.KeyedMutator<AgentList>;
957
1022
  isValidating: boolean;
958
1023
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
959
1024
  swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
@@ -970,275 +1035,325 @@ All fields in the request body are required except `phone_number_id` and `transf
970
1035
  Returns the created agent with its ID and configuration.
971
1036
  * @summary Create agent
972
1037
  */
973
- type createAgentResponse200 = {
974
- data: CreateAgent200;
975
- status: 200;
976
- };
977
- type createAgentResponse400 = {
978
- data: ErrorResponse;
979
- status: 400;
980
- };
981
- type createAgentResponse401 = {
982
- data: ErrorResponse;
983
- status: 401;
984
- };
985
- type createAgentResponse500 = {
986
- data: ErrorResponse;
987
- status: 500;
988
- };
989
- type createAgentResponseSuccess = createAgentResponse200 & {
990
- headers: Headers;
991
- };
992
- type createAgentResponseError = (createAgentResponse400 | createAgentResponse401 | createAgentResponse500) & {
993
- headers: Headers;
994
- };
995
- type createAgentResponse = createAgentResponseSuccess | createAgentResponseError;
996
1038
  declare const getCreateAgentUrl: () => string;
997
- declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<createAgentResponse>;
998
- declare const getCreateAgentMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
1039
+ declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<CreateAgentResponse>;
1040
+ declare const getCreateAgentMutationFetcher: (options?: SecondParameter$4<typeof customFetch>) => (_: Key, { arg }: {
999
1041
  arg: CreateAgentBody;
1000
- }) => Promise<createAgentResponse>;
1042
+ }) => Promise<CreateAgentResponse>;
1001
1043
  declare const getCreateAgentMutationKey: () => readonly ["/v1/agents"];
1002
1044
  type CreateAgentMutationResult = NonNullable<Awaited<ReturnType<typeof createAgent>>>;
1003
1045
  /**
1004
1046
  * @summary Create agent
1005
1047
  */
1006
- declare const useCreateAgent: <TError = ErrorResponse>(options?: {
1048
+ declare const useCreateAgent: <TError = ErrorType<ErrorResponse>>(options?: {
1007
1049
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createAgent>>, TError, Key, CreateAgentBody, Awaited<ReturnType<typeof createAgent>>> & {
1008
1050
  swrKey?: string;
1009
1051
  };
1010
- request?: SecondParameter$1<typeof customFetch>;
1052
+ request?: SecondParameter$4<typeof customFetch>;
1011
1053
  }) => {
1012
1054
  isMutating: boolean;
1013
- trigger: swr_mutation.TriggerWithArgs<createAgentResponse, TError, string | readonly ["/v1/agents"], CreateAgentBody>;
1055
+ trigger: swr_mutation.TriggerWithArgs<CreateAgentResponse, TError, string | readonly ["/v1/agents"], CreateAgentBody>;
1014
1056
  reset: () => void;
1057
+ data: CreateAgentResponse | undefined;
1015
1058
  error: TError | undefined;
1016
- data: createAgentResponse | undefined;
1017
1059
  swrKey: string | readonly ["/v1/agents"];
1018
1060
  };
1019
1061
  /**
1020
1062
  * Retrieve a single agent by ID.
1021
1063
  * @summary Get agent
1022
1064
  */
1023
- type getAgentResponse200 = {
1024
- data: GetAgent200;
1025
- status: 200;
1026
- };
1027
- type getAgentResponse400 = {
1028
- data: ErrorResponse;
1029
- status: 400;
1030
- };
1031
- type getAgentResponse401 = {
1032
- data: ErrorResponse;
1033
- status: 401;
1034
- };
1035
- type getAgentResponse404 = {
1036
- data: ErrorResponse;
1037
- status: 404;
1038
- };
1039
- type getAgentResponse500 = {
1040
- data: ErrorResponse;
1041
- status: 500;
1042
- };
1043
- type getAgentResponseSuccess = getAgentResponse200 & {
1044
- headers: Headers;
1045
- };
1046
- type getAgentResponseError = (getAgentResponse400 | getAgentResponse401 | getAgentResponse404 | getAgentResponse500) & {
1047
- headers: Headers;
1048
- };
1049
- type getAgentResponse = getAgentResponseSuccess | getAgentResponseError;
1050
1065
  declare const getGetAgentUrl: (id: string) => string;
1051
- declare const getAgent: (id: string, options?: RequestInit) => Promise<getAgentResponse>;
1066
+ declare const getAgent: (id: string, options?: RequestInit) => Promise<GetAgentResponse>;
1052
1067
  declare const getGetAgentKey: (id: string) => readonly [`/v1/agents/${string}`];
1053
1068
  type GetAgentQueryResult = NonNullable<Awaited<ReturnType<typeof getAgent>>>;
1054
1069
  /**
1055
1070
  * @summary Get agent
1056
1071
  */
1057
- declare const useGetAgent: <TError = ErrorResponse>(id: string, options?: {
1072
+ declare const useGetAgent: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
1058
1073
  swr?: SWRConfiguration<Awaited<ReturnType<typeof getAgent>>, TError> & {
1059
1074
  swrKey?: Key;
1060
1075
  enabled?: boolean;
1061
1076
  };
1062
- request?: SecondParameter$1<typeof customFetch>;
1077
+ request?: SecondParameter$4<typeof customFetch>;
1063
1078
  }) => {
1064
- data: getAgentResponse | undefined;
1079
+ data: GetAgentResponse | undefined;
1065
1080
  error: TError | undefined;
1066
- mutate: swr.KeyedMutator<getAgentResponse>;
1081
+ mutate: swr.KeyedMutator<GetAgentResponse>;
1067
1082
  isValidating: boolean;
1068
1083
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1069
1084
  swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
1070
1085
  };
1071
1086
 
1072
- type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
1073
- type postV1AuthSignUpResponse200 = {
1074
- data: PostV1AuthSignUp200;
1075
- status: 200;
1076
- };
1077
- type postV1AuthSignUpResponse400 = {
1078
- data: ErrorResponse;
1079
- status: 400;
1080
- };
1081
- type postV1AuthSignUpResponse401 = {
1082
- data: ErrorResponse;
1083
- status: 401;
1084
- };
1085
- type postV1AuthSignUpResponse500 = {
1086
- data: ErrorResponse;
1087
- status: 500;
1087
+ type SecondParameter$3<T extends (...args: never) => unknown> = Parameters<T>[1];
1088
+ /**
1089
+ * List all API keys for your tenant.
1090
+
1091
+ By default, revoked keys are excluded. Set `include_revoked=true` to include them.
1092
+
1093
+ **Note:** The full API key value is never returned — only the key prefix is shown.
1094
+ * @summary List API keys
1095
+ */
1096
+ declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
1097
+ declare const listApiKeys: (params?: ListApiKeysParams, options?: RequestInit) => Promise<ApiKeyList>;
1098
+ declare const getListApiKeysKey: (params?: ListApiKeysParams) => readonly ["/platform/api-keys", ...ListApiKeysParams[]];
1099
+ type ListApiKeysQueryResult = NonNullable<Awaited<ReturnType<typeof listApiKeys>>>;
1100
+ /**
1101
+ * @summary List API keys
1102
+ */
1103
+ declare const useListApiKeys: <TError = ErrorType<ErrorResponse>>(params?: ListApiKeysParams, options?: {
1104
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof listApiKeys>>, TError> & {
1105
+ swrKey?: Key;
1106
+ enabled?: boolean;
1107
+ };
1108
+ request?: SecondParameter$3<typeof customFetch>;
1109
+ }) => {
1110
+ data: ApiKeyList | undefined;
1111
+ error: TError | undefined;
1112
+ mutate: swr.KeyedMutator<ApiKeyList>;
1113
+ isValidating: boolean;
1114
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1115
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1088
1116
  };
1089
- type postV1AuthSignUpResponseSuccess = postV1AuthSignUpResponse200 & {
1090
- headers: Headers;
1117
+ /**
1118
+ * Create a new API key for authenticating with the Avallon API.
1119
+
1120
+ **Important:** The full API key is only returned once in the response. Store it securely — it cannot be retrieved again.
1121
+
1122
+ Keys are scoped to an environment (`test` or `live`) and optionally accept an expiration date.
1123
+ * @summary Create an API key
1124
+ */
1125
+ declare const getCreateApiKeyUrl: () => string;
1126
+ declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, options?: RequestInit) => Promise<ApiKeyCreated>;
1127
+ declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$3<typeof customFetch>) => (_: Key, { arg }: {
1128
+ arg: CreateApiKeyBody;
1129
+ }) => Promise<ApiKeyCreated>;
1130
+ declare const getCreateApiKeyMutationKey: () => readonly ["/platform/api-keys"];
1131
+ type CreateApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof createApiKey>>>;
1132
+ /**
1133
+ * @summary Create an API key
1134
+ */
1135
+ declare const useCreateApiKey: <TError = ErrorType<ErrorResponse>>(options?: {
1136
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createApiKey>>, TError, Key, CreateApiKeyBody, Awaited<ReturnType<typeof createApiKey>>> & {
1137
+ swrKey?: string;
1138
+ };
1139
+ request?: SecondParameter$3<typeof customFetch>;
1140
+ }) => {
1141
+ isMutating: boolean;
1142
+ trigger: swr_mutation.TriggerWithArgs<ApiKeyCreated, TError, string | readonly ["/platform/api-keys"], CreateApiKeyBody>;
1143
+ reset: () => void;
1144
+ data: ApiKeyCreated | undefined;
1145
+ error: TError | undefined;
1146
+ swrKey: string | readonly ["/platform/api-keys"];
1091
1147
  };
1092
- type postV1AuthSignUpResponseError = (postV1AuthSignUpResponse400 | postV1AuthSignUpResponse401 | postV1AuthSignUpResponse500) & {
1093
- headers: Headers;
1148
+ /**
1149
+ * Revoke an existing API key. Once revoked, the key can no longer be used for authentication.
1150
+
1151
+ This operation is irreversible — revoked keys cannot be re-enabled. Create a new key if needed.
1152
+
1153
+ Returns 409 if the key is already revoked, 404 if the key does not exist.
1154
+ * @summary Revoke an API key
1155
+ */
1156
+ declare const getRevokeApiKeyUrl: (id: string) => string;
1157
+ declare const revokeApiKey: (id: string, options?: RequestInit) => Promise<ConfirmationResponse>;
1158
+ declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$3<typeof customFetch>) => (_: Key, __: {
1159
+ arg: Arguments;
1160
+ }) => Promise<ConfirmationResponse>;
1161
+ declare const getRevokeApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}/revoke`];
1162
+ type RevokeApiKeyMutationResult = NonNullable<Awaited<ReturnType<typeof revokeApiKey>>>;
1163
+ /**
1164
+ * @summary Revoke an API key
1165
+ */
1166
+ declare const useRevokeApiKey: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
1167
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeApiKey>>> & {
1168
+ swrKey?: string;
1169
+ };
1170
+ request?: SecondParameter$3<typeof customFetch>;
1171
+ }) => {
1172
+ isMutating: boolean;
1173
+ trigger: swr_mutation.TriggerWithOptionsArgs<ConfirmationResponse, TError, string | readonly [`/platform/api-keys/${string}/revoke`], Arguments>;
1174
+ reset: () => void;
1175
+ data: ConfirmationResponse | undefined;
1176
+ error: TError | undefined;
1177
+ swrKey: string | readonly [`/platform/api-keys/${string}/revoke`];
1094
1178
  };
1095
- type postV1AuthSignUpResponse = postV1AuthSignUpResponseSuccess | postV1AuthSignUpResponseError;
1179
+
1180
+ type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
1096
1181
  declare const getPostV1AuthSignUpUrl: () => string;
1097
- declare const postV1AuthSignUp: (postV1AuthSignUpBody: PostV1AuthSignUpBody, options?: RequestInit) => Promise<postV1AuthSignUpResponse>;
1098
- declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1182
+ declare const postV1AuthSignUp: (postV1AuthSignUpBody: PostV1AuthSignUpBody, options?: RequestInit) => Promise<EmptyResponse>;
1183
+ declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1099
1184
  arg: PostV1AuthSignUpBody;
1100
- }) => Promise<postV1AuthSignUpResponse>;
1185
+ }) => Promise<EmptyResponse>;
1101
1186
  declare const getPostV1AuthSignUpMutationKey: () => readonly ["/v1/auth/sign-up"];
1102
1187
  type PostV1AuthSignUpMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthSignUp>>>;
1103
- declare const usePostV1AuthSignUp: <TError = ErrorResponse>(options?: {
1188
+ declare const usePostV1AuthSignUp: <TError = ErrorType<ErrorResponse>>(options?: {
1104
1189
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignUp>>, TError, Key, PostV1AuthSignUpBody, Awaited<ReturnType<typeof postV1AuthSignUp>>> & {
1105
1190
  swrKey?: string;
1106
1191
  };
1107
- request?: SecondParameter<typeof customFetchNoAuth>;
1192
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
1108
1193
  }) => {
1109
1194
  isMutating: boolean;
1110
- trigger: swr_mutation.TriggerWithArgs<postV1AuthSignUpResponse, TError, string | readonly ["/v1/auth/sign-up"], PostV1AuthSignUpBody>;
1195
+ trigger: swr_mutation.TriggerWithArgs<EmptyResponse, TError, string | readonly ["/v1/auth/sign-up"], PostV1AuthSignUpBody>;
1111
1196
  reset: () => void;
1197
+ data: EmptyResponse | undefined;
1112
1198
  error: TError | undefined;
1113
- data: postV1AuthSignUpResponse | undefined;
1114
1199
  swrKey: string | readonly ["/v1/auth/sign-up"];
1115
1200
  };
1116
- type postV1AuthSignInResponse200 = {
1117
- data: PostV1AuthSignIn200;
1118
- status: 200;
1119
- };
1120
- type postV1AuthSignInResponse400 = {
1121
- data: ErrorResponse;
1122
- status: 400;
1123
- };
1124
- type postV1AuthSignInResponse401 = {
1125
- data: ErrorResponse;
1126
- status: 401;
1127
- };
1128
- type postV1AuthSignInResponse500 = {
1129
- data: ErrorResponse;
1130
- status: 500;
1131
- };
1132
- type postV1AuthSignInResponseSuccess = postV1AuthSignInResponse200 & {
1133
- headers: Headers;
1134
- };
1135
- type postV1AuthSignInResponseError = (postV1AuthSignInResponse400 | postV1AuthSignInResponse401 | postV1AuthSignInResponse500) & {
1136
- headers: Headers;
1137
- };
1138
- type postV1AuthSignInResponse = postV1AuthSignInResponseSuccess | postV1AuthSignInResponseError;
1139
1201
  declare const getPostV1AuthSignInUrl: () => string;
1140
- declare const postV1AuthSignIn: (postV1AuthSignInBody: PostV1AuthSignInBody, options?: RequestInit) => Promise<postV1AuthSignInResponse>;
1141
- declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1202
+ declare const postV1AuthSignIn: (postV1AuthSignInBody: PostV1AuthSignInBody, options?: RequestInit) => Promise<AuthTokens>;
1203
+ declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1142
1204
  arg: PostV1AuthSignInBody;
1143
- }) => Promise<postV1AuthSignInResponse>;
1205
+ }) => Promise<AuthTokens>;
1144
1206
  declare const getPostV1AuthSignInMutationKey: () => readonly ["/v1/auth/sign-in"];
1145
1207
  type PostV1AuthSignInMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthSignIn>>>;
1146
- declare const usePostV1AuthSignIn: <TError = ErrorResponse>(options?: {
1208
+ declare const usePostV1AuthSignIn: <TError = ErrorType<ErrorResponse>>(options?: {
1147
1209
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignIn>>, TError, Key, PostV1AuthSignInBody, Awaited<ReturnType<typeof postV1AuthSignIn>>> & {
1148
1210
  swrKey?: string;
1149
1211
  };
1150
- request?: SecondParameter<typeof customFetchNoAuth>;
1212
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
1151
1213
  }) => {
1152
1214
  isMutating: boolean;
1153
- trigger: swr_mutation.TriggerWithArgs<postV1AuthSignInResponse, TError, string | readonly ["/v1/auth/sign-in"], PostV1AuthSignInBody>;
1215
+ trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/sign-in"], PostV1AuthSignInBody>;
1154
1216
  reset: () => void;
1217
+ data: AuthTokens | undefined;
1155
1218
  error: TError | undefined;
1156
- data: postV1AuthSignInResponse | undefined;
1157
1219
  swrKey: string | readonly ["/v1/auth/sign-in"];
1158
1220
  };
1159
- type postV1AuthRefreshTokenResponse200 = {
1160
- data: PostV1AuthRefreshToken200;
1161
- status: 200;
1162
- };
1163
- type postV1AuthRefreshTokenResponse400 = {
1164
- data: ErrorResponse;
1165
- status: 400;
1166
- };
1167
- type postV1AuthRefreshTokenResponse401 = {
1168
- data: ErrorResponse;
1169
- status: 401;
1170
- };
1171
- type postV1AuthRefreshTokenResponse500 = {
1172
- data: ErrorResponse;
1173
- status: 500;
1174
- };
1175
- type postV1AuthRefreshTokenResponseSuccess = postV1AuthRefreshTokenResponse200 & {
1176
- headers: Headers;
1177
- };
1178
- type postV1AuthRefreshTokenResponseError = (postV1AuthRefreshTokenResponse400 | postV1AuthRefreshTokenResponse401 | postV1AuthRefreshTokenResponse500) & {
1179
- headers: Headers;
1180
- };
1181
- type postV1AuthRefreshTokenResponse = postV1AuthRefreshTokenResponseSuccess | postV1AuthRefreshTokenResponseError;
1182
1221
  declare const getPostV1AuthRefreshTokenUrl: () => string;
1183
- declare const postV1AuthRefreshToken: (postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody, options?: RequestInit) => Promise<postV1AuthRefreshTokenResponse>;
1184
- declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1222
+ declare const postV1AuthRefreshToken: (postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody, options?: RequestInit) => Promise<AuthTokens>;
1223
+ declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1185
1224
  arg: PostV1AuthRefreshTokenBody;
1186
- }) => Promise<postV1AuthRefreshTokenResponse>;
1225
+ }) => Promise<AuthTokens>;
1187
1226
  declare const getPostV1AuthRefreshTokenMutationKey: () => readonly ["/v1/auth/refresh-token"];
1188
1227
  type PostV1AuthRefreshTokenMutationResult = NonNullable<Awaited<ReturnType<typeof postV1AuthRefreshToken>>>;
1189
- declare const usePostV1AuthRefreshToken: <TError = ErrorResponse>(options?: {
1228
+ declare const usePostV1AuthRefreshToken: <TError = ErrorType<ErrorResponse>>(options?: {
1190
1229
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthRefreshToken>>, TError, Key, PostV1AuthRefreshTokenBody, Awaited<ReturnType<typeof postV1AuthRefreshToken>>> & {
1191
1230
  swrKey?: string;
1192
1231
  };
1193
- request?: SecondParameter<typeof customFetchNoAuth>;
1232
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
1194
1233
  }) => {
1195
1234
  isMutating: boolean;
1196
- trigger: swr_mutation.TriggerWithArgs<postV1AuthRefreshTokenResponse, TError, string | readonly ["/v1/auth/refresh-token"], PostV1AuthRefreshTokenBody>;
1235
+ trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/refresh-token"], PostV1AuthRefreshTokenBody>;
1197
1236
  reset: () => void;
1237
+ data: AuthTokens | undefined;
1198
1238
  error: TError | undefined;
1199
- data: postV1AuthRefreshTokenResponse | undefined;
1200
1239
  swrKey: string | readonly ["/v1/auth/refresh-token"];
1201
1240
  };
1202
- type getV1AuthOauthUrlResponse200 = {
1203
- data: GetV1AuthOauthUrl200;
1204
- status: 200;
1205
- };
1206
- type getV1AuthOauthUrlResponse400 = {
1207
- data: ErrorResponse;
1208
- status: 400;
1209
- };
1210
- type getV1AuthOauthUrlResponse401 = {
1211
- data: ErrorResponse;
1212
- status: 401;
1213
- };
1214
- type getV1AuthOauthUrlResponse500 = {
1215
- data: ErrorResponse;
1216
- status: 500;
1217
- };
1218
- type getV1AuthOauthUrlResponseSuccess = getV1AuthOauthUrlResponse200 & {
1219
- headers: Headers;
1220
- };
1221
- type getV1AuthOauthUrlResponseError = (getV1AuthOauthUrlResponse400 | getV1AuthOauthUrlResponse401 | getV1AuthOauthUrlResponse500) & {
1222
- headers: Headers;
1223
- };
1224
- type getV1AuthOauthUrlResponse = getV1AuthOauthUrlResponseSuccess | getV1AuthOauthUrlResponseError;
1225
1241
  declare const getGetV1AuthOauthUrlUrl: (params: GetV1AuthOauthUrlParams) => string;
1226
- declare const getV1AuthOauthUrl: (params: GetV1AuthOauthUrlParams, options?: RequestInit) => Promise<getV1AuthOauthUrlResponse>;
1242
+ declare const getV1AuthOauthUrl: (params: GetV1AuthOauthUrlParams, options?: RequestInit) => Promise<OAuthUrl>;
1227
1243
  declare const getGetV1AuthOauthUrlKey: (params: GetV1AuthOauthUrlParams) => readonly ["/v1/auth/oauth-url", ...GetV1AuthOauthUrlParams[]];
1228
1244
  type GetV1AuthOauthUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getV1AuthOauthUrl>>>;
1229
- declare const useGetV1AuthOauthUrl: <TError = ErrorResponse>(params: GetV1AuthOauthUrlParams, options?: {
1245
+ declare const useGetV1AuthOauthUrl: <TError = ErrorType<ErrorResponse>>(params: GetV1AuthOauthUrlParams, options?: {
1230
1246
  swr?: SWRConfiguration<Awaited<ReturnType<typeof getV1AuthOauthUrl>>, TError> & {
1231
1247
  swrKey?: Key;
1232
1248
  enabled?: boolean;
1233
1249
  };
1234
- request?: SecondParameter<typeof customFetchNoAuth>;
1250
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
1251
+ }) => {
1252
+ data: OAuthUrl | undefined;
1253
+ error: TError | undefined;
1254
+ mutate: swr.KeyedMutator<OAuthUrl>;
1255
+ isValidating: boolean;
1256
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1257
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
1258
+ };
1259
+
1260
+ type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
1261
+ declare const getPostV1ExtractorJobsUrl: () => string;
1262
+ declare const postV1ExtractorJobs: (postV1ExtractorJobsBody: PostV1ExtractorJobsBody, options?: RequestInit) => Promise<PostV1ExtractorJobs200>;
1263
+ declare const getPostV1ExtractorJobsMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
1264
+ arg: PostV1ExtractorJobsBody;
1265
+ }) => Promise<PostV1ExtractorJobs200>;
1266
+ declare const getPostV1ExtractorJobsMutationKey: () => readonly ["/v1/extractor-jobs"];
1267
+ type PostV1ExtractorJobsMutationResult = NonNullable<Awaited<ReturnType<typeof postV1ExtractorJobs>>>;
1268
+ declare const usePostV1ExtractorJobs: <TError = ErrorType<ErrorResponse>>(options?: {
1269
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1ExtractorJobs>>, TError, Key, PostV1ExtractorJobsBody, Awaited<ReturnType<typeof postV1ExtractorJobs>>> & {
1270
+ swrKey?: string;
1271
+ };
1272
+ request?: SecondParameter$1<typeof customFetch>;
1273
+ }) => {
1274
+ isMutating: boolean;
1275
+ trigger: swr_mutation.TriggerWithArgs<PostV1ExtractorJobs200, TError, string | readonly ["/v1/extractor-jobs"], PostV1ExtractorJobsBody>;
1276
+ reset: () => void;
1277
+ data: PostV1ExtractorJobs200 | undefined;
1278
+ error: TError | undefined;
1279
+ swrKey: string | readonly ["/v1/extractor-jobs"];
1280
+ };
1281
+ declare const getGetV1ExtractorJobsIdUrl: (id: string) => string;
1282
+ declare const getV1ExtractorJobsId: (id: string, options?: RequestInit) => Promise<GetV1ExtractorJobsId200>;
1283
+ declare const getGetV1ExtractorJobsIdKey: (id: string) => readonly [`/v1/extractor-jobs/${string}`];
1284
+ type GetV1ExtractorJobsIdQueryResult = NonNullable<Awaited<ReturnType<typeof getV1ExtractorJobsId>>>;
1285
+ declare const useGetV1ExtractorJobsId: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
1286
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof getV1ExtractorJobsId>>, TError> & {
1287
+ swrKey?: Key;
1288
+ enabled?: boolean;
1289
+ };
1290
+ request?: SecondParameter$1<typeof customFetch>;
1291
+ }) => {
1292
+ data: GetV1ExtractorJobsId200 | undefined;
1293
+ error: TError | undefined;
1294
+ mutate: swr.KeyedMutator<GetV1ExtractorJobsId200>;
1295
+ isValidating: boolean;
1296
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1297
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1298
+ };
1299
+ declare const getPostV1ExtractorJobsIdCancelUrl: (id: string) => string;
1300
+ declare const postV1ExtractorJobsIdCancel: (id: string, options?: RequestInit) => Promise<PostV1ExtractorJobsIdCancel200>;
1301
+ declare const getPostV1ExtractorJobsIdCancelMutationFetcher: (id: string, options?: SecondParameter$1<typeof customFetch>) => (_: Key, __: {
1302
+ arg: Arguments;
1303
+ }) => Promise<PostV1ExtractorJobsIdCancel200>;
1304
+ declare const getPostV1ExtractorJobsIdCancelMutationKey: (id: string) => readonly [`/v1/extractor-jobs/${string}/cancel`];
1305
+ type PostV1ExtractorJobsIdCancelMutationResult = NonNullable<Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>>;
1306
+ declare const usePostV1ExtractorJobsIdCancel: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
1307
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>, TError, Key, Arguments, Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>> & {
1308
+ swrKey?: string;
1309
+ };
1310
+ request?: SecondParameter$1<typeof customFetch>;
1311
+ }) => {
1312
+ isMutating: boolean;
1313
+ trigger: swr_mutation.TriggerWithOptionsArgs<PostV1ExtractorJobsIdCancel200, TError, string | readonly [`/v1/extractor-jobs/${string}/cancel`], Arguments>;
1314
+ reset: () => void;
1315
+ data: PostV1ExtractorJobsIdCancel200 | undefined;
1316
+ error: TError | undefined;
1317
+ swrKey: string | readonly [`/v1/extractor-jobs/${string}/cancel`];
1318
+ };
1319
+
1320
+ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
1321
+ /**
1322
+ * List all extraction jobs with pagination, filtering, and sorting.
1323
+
1324
+ **Type Filtering:**
1325
+
1326
+ Filter by `extractor_type` to see only `basic` or `agentic` jobs. Omit to return all types.
1327
+
1328
+ **Scope Filtering:**
1329
+
1330
+ Use bracket notation to filter by scope keys:
1331
+ - `scope[call_id]=abc-123`
1332
+ - `scope[email_id]=xyz-456`
1333
+
1334
+ Multiple scope filters can be combined (AND logic).
1335
+ * @summary List extractor jobs
1336
+ */
1337
+ declare const getListExtractorJobsUrl: (params?: ListExtractorJobsParams) => string;
1338
+ declare const listExtractorJobs: (params?: ListExtractorJobsParams, options?: RequestInit) => Promise<ExtractorJobList>;
1339
+ declare const getListExtractorJobsKey: (params?: ListExtractorJobsParams) => readonly ["/v1/extractor-jobs", ...ListExtractorJobsParams[]];
1340
+ type ListExtractorJobsQueryResult = NonNullable<Awaited<ReturnType<typeof listExtractorJobs>>>;
1341
+ /**
1342
+ * @summary List extractor jobs
1343
+ */
1344
+ declare const useListExtractorJobs: <TError = ErrorType<ErrorResponse>>(params?: ListExtractorJobsParams, options?: {
1345
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof listExtractorJobs>>, TError> & {
1346
+ swrKey?: Key;
1347
+ enabled?: boolean;
1348
+ };
1349
+ request?: SecondParameter<typeof customFetch>;
1235
1350
  }) => {
1236
- data: getV1AuthOauthUrlResponse | undefined;
1351
+ data: ExtractorJobList | undefined;
1237
1352
  error: TError | undefined;
1238
- mutate: swr.KeyedMutator<getV1AuthOauthUrlResponse>;
1353
+ mutate: swr.KeyedMutator<ExtractorJobList>;
1239
1354
  isValidating: boolean;
1240
1355
  isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1241
1356
  swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
1242
1357
  };
1243
1358
 
1244
- 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 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 PostV1AuthRefreshToken200, type PostV1AuthRefreshToken200Data, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignIn200, type PostV1AuthSignIn200Data, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUp200, type PostV1AuthSignUp200Data, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, configure, createAgent, type createAgentResponse, type createAgentResponse200, type createAgentResponse400, type createAgentResponse401, type createAgentResponse500, type createAgentResponseError, type createAgentResponseSuccess, generateCodeChallenge, generateCodeVerifier, getAgent, type getAgentResponse, type getAgentResponse200, type getAgentResponse400, type getAgentResponse401, type getAgentResponse404, type getAgentResponse500, type getAgentResponseError, type getAgentResponseSuccess, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getListAgentsKey, getListAgentsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getV1AuthOauthUrl, type getV1AuthOauthUrlResponse, type getV1AuthOauthUrlResponse200, type getV1AuthOauthUrlResponse400, type getV1AuthOauthUrlResponse401, type getV1AuthOauthUrlResponse500, type getV1AuthOauthUrlResponseError, type getV1AuthOauthUrlResponseSuccess, listAgents, type listAgentsResponse, type listAgentsResponse200, type listAgentsResponse400, type listAgentsResponse401, type listAgentsResponse500, type listAgentsResponseError, type listAgentsResponseSuccess, postV1AuthRefreshToken, type postV1AuthRefreshTokenResponse, type postV1AuthRefreshTokenResponse200, type postV1AuthRefreshTokenResponse400, type postV1AuthRefreshTokenResponse401, type postV1AuthRefreshTokenResponse500, type postV1AuthRefreshTokenResponseError, type postV1AuthRefreshTokenResponseSuccess, postV1AuthSignIn, type postV1AuthSignInResponse, type postV1AuthSignInResponse200, type postV1AuthSignInResponse400, type postV1AuthSignInResponse401, type postV1AuthSignInResponse500, type postV1AuthSignInResponseError, type postV1AuthSignInResponseSuccess, postV1AuthSignUp, type postV1AuthSignUpResponse, type postV1AuthSignUpResponse200, type postV1AuthSignUpResponse400, type postV1AuthSignUpResponse401, type postV1AuthSignUpResponse500, type postV1AuthSignUpResponseError, type postV1AuthSignUpResponseSuccess, useCreateAgent, useGetAgent, useGetV1AuthOauthUrl, useListAgents, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp };
1359
+ 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 ExtractorJob, ExtractorJobExtractorType, type ExtractorJobList, type ExtractorJobScope, type GetAgentQueryResult, type GetAgentResponse, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type GetV1ExtractorJobsId200, type GetV1ExtractorJobsId200Data, type GetV1ExtractorJobsId200DataScope, type GetV1ExtractorJobsIdQueryResult, type ListAgentsParams, type ListAgentsQueryResult, ListApiKeysIncludeRevoked, type ListApiKeysParams, type ListApiKeysQueryResult, ListExtractorJobsExtractorType, type ListExtractorJobsParams, type ListExtractorJobsQueryResult, ListExtractorJobsSortBy, ListExtractorJobsSortOrder, ListExtractorJobsStatus, type OAuthUrl, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, type PostV1ExtractorJobs200, type PostV1ExtractorJobs200Scope, type PostV1ExtractorJobsBody, type PostV1ExtractorJobsBodyScope, type PostV1ExtractorJobsIdCancel200, type PostV1ExtractorJobsIdCancel200Scope, type PostV1ExtractorJobsIdCancelMutationResult, type PostV1ExtractorJobsMutationResult, type RevokeApiKeyMutationResult, configure, createAgent, createApiKey, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getGetV1ExtractorJobsIdKey, getGetV1ExtractorJobsIdUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getListExtractorJobsKey, getListExtractorJobsUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getPostV1ExtractorJobsIdCancelMutationFetcher, getPostV1ExtractorJobsIdCancelMutationKey, getPostV1ExtractorJobsIdCancelUrl, getPostV1ExtractorJobsMutationFetcher, getPostV1ExtractorJobsMutationKey, getPostV1ExtractorJobsUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, getV1ExtractorJobsId, listAgents, listApiKeys, listExtractorJobs, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, postV1ExtractorJobs, postV1ExtractorJobsIdCancel, revokeApiKey, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useGetV1ExtractorJobsId, useListAgents, useListApiKeys, useListExtractorJobs, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, usePostV1ExtractorJobs, usePostV1ExtractorJobsIdCancel, useRevokeApiKey };