@avallon-labs/sdk 0.0.0-b9064682 → 0.0.0-c4f01a71
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 +428 -20
- package/dist/index.js +160 -5
- package/dist/index.js.map +1 -1
- package/openapi.yaml +516 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,8 @@ declare const AgentLlmModel: {
|
|
|
150
150
|
readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
|
|
151
151
|
readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
|
|
152
152
|
readonly "GEMINI-3-flash": "GEMINI-3-flash";
|
|
153
|
+
readonly "CLAUDE-sonnet-46": "CLAUDE-sonnet-4.6";
|
|
154
|
+
readonly "CLAUDE-haiku-45": "CLAUDE-haiku-4.5";
|
|
153
155
|
};
|
|
154
156
|
|
|
155
157
|
/**
|
|
@@ -163,6 +165,7 @@ declare const AgentSttModel: {
|
|
|
163
165
|
readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
|
|
164
166
|
readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
|
|
165
167
|
readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
|
|
168
|
+
readonly "ELEVENLABS-SCRIBE-V2-REALTIME": "ELEVENLABS-SCRIBE-V2-REALTIME";
|
|
166
169
|
};
|
|
167
170
|
|
|
168
171
|
/**
|
|
@@ -372,6 +375,8 @@ declare const CreateAgentBodyLlmModel: {
|
|
|
372
375
|
readonly "GEMINI-25-flash": "GEMINI-2.5-flash";
|
|
373
376
|
readonly "GEMINI-25-flash-lite": "GEMINI-2.5-flash-lite";
|
|
374
377
|
readonly "GEMINI-3-flash": "GEMINI-3-flash";
|
|
378
|
+
readonly "CLAUDE-sonnet-46": "CLAUDE-sonnet-4.6";
|
|
379
|
+
readonly "CLAUDE-haiku-45": "CLAUDE-haiku-4.5";
|
|
375
380
|
};
|
|
376
381
|
|
|
377
382
|
/**
|
|
@@ -388,6 +393,7 @@ declare const CreateAgentBodySttModel: {
|
|
|
388
393
|
readonly "DEEPGRAM-NOVA-2-GENERAL": "DEEPGRAM-NOVA-2-GENERAL";
|
|
389
394
|
readonly "DEEPGRAM-NOVA-3-GENERAL": "DEEPGRAM-NOVA-3-GENERAL";
|
|
390
395
|
readonly "AWS-TRANSCRIBE": "AWS-TRANSCRIBE";
|
|
396
|
+
readonly "ELEVENLABS-SCRIBE-V2-REALTIME": "ELEVENLABS-SCRIBE-V2-REALTIME";
|
|
391
397
|
};
|
|
392
398
|
|
|
393
399
|
/**
|
|
@@ -540,6 +546,83 @@ interface ErrorResponse {
|
|
|
540
546
|
message: string;
|
|
541
547
|
}
|
|
542
548
|
|
|
549
|
+
/**
|
|
550
|
+
* Generated by orval v8.1.0 🍺
|
|
551
|
+
* Do not edit manually.
|
|
552
|
+
* Avallon API
|
|
553
|
+
* OpenAPI spec version: 1.0.0
|
|
554
|
+
*/
|
|
555
|
+
/**
|
|
556
|
+
* Type of extractor
|
|
557
|
+
*/
|
|
558
|
+
type ExtractorJobExtractorType = (typeof ExtractorJobExtractorType)[keyof typeof ExtractorJobExtractorType];
|
|
559
|
+
declare const ExtractorJobExtractorType: {
|
|
560
|
+
readonly basic: "basic";
|
|
561
|
+
readonly agentic: "agentic";
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Generated by orval v8.1.0 🍺
|
|
566
|
+
* Do not edit manually.
|
|
567
|
+
* Avallon API
|
|
568
|
+
* OpenAPI spec version: 1.0.0
|
|
569
|
+
*/
|
|
570
|
+
/**
|
|
571
|
+
* Job scope metadata (e.g. claim_id, email_id)
|
|
572
|
+
*/
|
|
573
|
+
type ExtractorJobScope = {
|
|
574
|
+
[key: string]: unknown;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Generated by orval v8.1.0 🍺
|
|
579
|
+
* Do not edit manually.
|
|
580
|
+
* Avallon API
|
|
581
|
+
* OpenAPI spec version: 1.0.0
|
|
582
|
+
*/
|
|
583
|
+
|
|
584
|
+
interface ExtractorJob {
|
|
585
|
+
/** Unique job identifier */
|
|
586
|
+
id: string;
|
|
587
|
+
/** ID of the extractor that created this job */
|
|
588
|
+
extractor_id: string;
|
|
589
|
+
/**
|
|
590
|
+
* Version of the extractor at job creation time
|
|
591
|
+
* @minimum -9007199254740991
|
|
592
|
+
* @maximum 9007199254740991
|
|
593
|
+
*/
|
|
594
|
+
extractor_version: number;
|
|
595
|
+
/** Name of the extractor */
|
|
596
|
+
extractor_name: string;
|
|
597
|
+
/** Type of extractor */
|
|
598
|
+
extractor_type: ExtractorJobExtractorType;
|
|
599
|
+
/** Current job status */
|
|
600
|
+
status: string;
|
|
601
|
+
/** Job scope metadata (e.g. claim_id, email_id) */
|
|
602
|
+
scope: ExtractorJobScope;
|
|
603
|
+
/** ISO 8601 timestamp when the job was created */
|
|
604
|
+
created_at: string;
|
|
605
|
+
/** ISO 8601 timestamp when processing started */
|
|
606
|
+
started_at: string | null;
|
|
607
|
+
/** ISO 8601 timestamp when processing finished */
|
|
608
|
+
completed_at: string | null;
|
|
609
|
+
/** Processing duration in milliseconds */
|
|
610
|
+
processing_duration_ms: number | null;
|
|
611
|
+
/** ID of the resulting extract, if completed */
|
|
612
|
+
extract_id: string | null;
|
|
613
|
+
/** Error message if the job failed */
|
|
614
|
+
error: string | null;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Generated by orval v8.1.0 🍺
|
|
619
|
+
* Do not edit manually.
|
|
620
|
+
* Avallon API
|
|
621
|
+
* OpenAPI spec version: 1.0.0
|
|
622
|
+
*/
|
|
623
|
+
|
|
624
|
+
type ExtractorJobList = ExtractorJob[];
|
|
625
|
+
|
|
543
626
|
/**
|
|
544
627
|
* Generated by orval v8.1.0 🍺
|
|
545
628
|
* Do not edit manually.
|
|
@@ -592,6 +675,49 @@ type GetV1AuthOauthUrlParams = {
|
|
|
592
675
|
code_challenge: string;
|
|
593
676
|
};
|
|
594
677
|
|
|
678
|
+
/**
|
|
679
|
+
* Generated by orval v8.1.0 🍺
|
|
680
|
+
* Do not edit manually.
|
|
681
|
+
* Avallon API
|
|
682
|
+
* OpenAPI spec version: 1.0.0
|
|
683
|
+
*/
|
|
684
|
+
type GetV1ExtractorJobsId200DataScope = {
|
|
685
|
+
[key: string]: unknown;
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Generated by orval v8.1.0 🍺
|
|
690
|
+
* Do not edit manually.
|
|
691
|
+
* Avallon API
|
|
692
|
+
* OpenAPI spec version: 1.0.0
|
|
693
|
+
*/
|
|
694
|
+
|
|
695
|
+
type GetV1ExtractorJobsId200Data = {
|
|
696
|
+
id: string;
|
|
697
|
+
extractor_id: string;
|
|
698
|
+
extractor_version: number;
|
|
699
|
+
extractor_name: string;
|
|
700
|
+
status: string;
|
|
701
|
+
scope: GetV1ExtractorJobsId200DataScope;
|
|
702
|
+
created_at: string;
|
|
703
|
+
started_at: string | null;
|
|
704
|
+
completed_at: string | null;
|
|
705
|
+
processing_duration_ms: number | null;
|
|
706
|
+
extract_id: string | null;
|
|
707
|
+
error: string | null;
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Generated by orval v8.1.0 🍺
|
|
712
|
+
* Do not edit manually.
|
|
713
|
+
* Avallon API
|
|
714
|
+
* OpenAPI spec version: 1.0.0
|
|
715
|
+
*/
|
|
716
|
+
|
|
717
|
+
type GetV1ExtractorJobsId200 = {
|
|
718
|
+
data: GetV1ExtractorJobsId200Data;
|
|
719
|
+
};
|
|
720
|
+
|
|
595
721
|
/**
|
|
596
722
|
* Generated by orval v8.1.0 🍺
|
|
597
723
|
* Do not edit manually.
|
|
@@ -631,6 +757,108 @@ type ListApiKeysParams = {
|
|
|
631
757
|
include_revoked?: ListApiKeysIncludeRevoked;
|
|
632
758
|
};
|
|
633
759
|
|
|
760
|
+
/**
|
|
761
|
+
* Generated by orval v8.1.0 🍺
|
|
762
|
+
* Do not edit manually.
|
|
763
|
+
* Avallon API
|
|
764
|
+
* OpenAPI spec version: 1.0.0
|
|
765
|
+
*/
|
|
766
|
+
type ListExtractorJobsExtractorType = (typeof ListExtractorJobsExtractorType)[keyof typeof ListExtractorJobsExtractorType];
|
|
767
|
+
declare const ListExtractorJobsExtractorType: {
|
|
768
|
+
readonly basic: "basic";
|
|
769
|
+
readonly agentic: "agentic";
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Generated by orval v8.1.0 🍺
|
|
774
|
+
* Do not edit manually.
|
|
775
|
+
* Avallon API
|
|
776
|
+
* OpenAPI spec version: 1.0.0
|
|
777
|
+
*/
|
|
778
|
+
type ListExtractorJobsSortBy = (typeof ListExtractorJobsSortBy)[keyof typeof ListExtractorJobsSortBy];
|
|
779
|
+
declare const ListExtractorJobsSortBy: {
|
|
780
|
+
readonly created_at: "created_at";
|
|
781
|
+
readonly started_at: "started_at";
|
|
782
|
+
readonly completed_at: "completed_at";
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Generated by orval v8.1.0 🍺
|
|
787
|
+
* Do not edit manually.
|
|
788
|
+
* Avallon API
|
|
789
|
+
* OpenAPI spec version: 1.0.0
|
|
790
|
+
*/
|
|
791
|
+
type ListExtractorJobsSortOrder = (typeof ListExtractorJobsSortOrder)[keyof typeof ListExtractorJobsSortOrder];
|
|
792
|
+
declare const ListExtractorJobsSortOrder: {
|
|
793
|
+
readonly asc: "asc";
|
|
794
|
+
readonly desc: "desc";
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Generated by orval v8.1.0 🍺
|
|
799
|
+
* Do not edit manually.
|
|
800
|
+
* Avallon API
|
|
801
|
+
* OpenAPI spec version: 1.0.0
|
|
802
|
+
*/
|
|
803
|
+
type ListExtractorJobsStatus = (typeof ListExtractorJobsStatus)[keyof typeof ListExtractorJobsStatus];
|
|
804
|
+
declare const ListExtractorJobsStatus: {
|
|
805
|
+
readonly queued: "queued";
|
|
806
|
+
readonly in_progress: "in_progress";
|
|
807
|
+
readonly completed: "completed";
|
|
808
|
+
readonly failed: "failed";
|
|
809
|
+
readonly canceled: "canceled";
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Generated by orval v8.1.0 🍺
|
|
814
|
+
* Do not edit manually.
|
|
815
|
+
* Avallon API
|
|
816
|
+
* OpenAPI spec version: 1.0.0
|
|
817
|
+
*/
|
|
818
|
+
|
|
819
|
+
type ListExtractorJobsParams = {
|
|
820
|
+
/**
|
|
821
|
+
* Number of results to return
|
|
822
|
+
* @minimum 1
|
|
823
|
+
* @maximum 100
|
|
824
|
+
*/
|
|
825
|
+
count?: number;
|
|
826
|
+
/**
|
|
827
|
+
* Number of results to skip for pagination
|
|
828
|
+
* @minimum 0
|
|
829
|
+
*/
|
|
830
|
+
offset?: number;
|
|
831
|
+
/**
|
|
832
|
+
* Field to sort by
|
|
833
|
+
*/
|
|
834
|
+
sort_by?: ListExtractorJobsSortBy;
|
|
835
|
+
/**
|
|
836
|
+
* Sort direction
|
|
837
|
+
*/
|
|
838
|
+
sort_order?: ListExtractorJobsSortOrder;
|
|
839
|
+
/**
|
|
840
|
+
* Filter by job status
|
|
841
|
+
*/
|
|
842
|
+
status?: ListExtractorJobsStatus;
|
|
843
|
+
/**
|
|
844
|
+
* Filter by extractor type
|
|
845
|
+
*/
|
|
846
|
+
extractor_type?: ListExtractorJobsExtractorType;
|
|
847
|
+
/**
|
|
848
|
+
* Filter by extractor ID
|
|
849
|
+
* @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)$
|
|
850
|
+
*/
|
|
851
|
+
extractor_id?: string;
|
|
852
|
+
/**
|
|
853
|
+
* Filter jobs created after this date (ISO 8601)
|
|
854
|
+
*/
|
|
855
|
+
created_after?: string;
|
|
856
|
+
/**
|
|
857
|
+
* Filter jobs created before this date (ISO 8601)
|
|
858
|
+
*/
|
|
859
|
+
created_before?: string;
|
|
860
|
+
};
|
|
861
|
+
|
|
634
862
|
/**
|
|
635
863
|
* Generated by orval v8.1.0 🍺
|
|
636
864
|
* Do not edit manually.
|
|
@@ -686,7 +914,88 @@ type PostV1AuthSignUpBody = {
|
|
|
686
914
|
password: string;
|
|
687
915
|
};
|
|
688
916
|
|
|
689
|
-
|
|
917
|
+
/**
|
|
918
|
+
* Generated by orval v8.1.0 🍺
|
|
919
|
+
* Do not edit manually.
|
|
920
|
+
* Avallon API
|
|
921
|
+
* OpenAPI spec version: 1.0.0
|
|
922
|
+
*/
|
|
923
|
+
type PostV1ExtractorJobs200Scope = {
|
|
924
|
+
[key: string]: unknown;
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Generated by orval v8.1.0 🍺
|
|
929
|
+
* Do not edit manually.
|
|
930
|
+
* Avallon API
|
|
931
|
+
* OpenAPI spec version: 1.0.0
|
|
932
|
+
*/
|
|
933
|
+
|
|
934
|
+
type PostV1ExtractorJobs200 = {
|
|
935
|
+
id: string;
|
|
936
|
+
extractor_id: string;
|
|
937
|
+
extractor_version: number;
|
|
938
|
+
scope: PostV1ExtractorJobs200Scope;
|
|
939
|
+
status: string;
|
|
940
|
+
created_at: string;
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Generated by orval v8.1.0 🍺
|
|
945
|
+
* Do not edit manually.
|
|
946
|
+
* Avallon API
|
|
947
|
+
* OpenAPI spec version: 1.0.0
|
|
948
|
+
*/
|
|
949
|
+
type PostV1ExtractorJobsBodyScope = {
|
|
950
|
+
[key: string]: string | number | boolean | null;
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Generated by orval v8.1.0 🍺
|
|
955
|
+
* Do not edit manually.
|
|
956
|
+
* Avallon API
|
|
957
|
+
* OpenAPI spec version: 1.0.0
|
|
958
|
+
*/
|
|
959
|
+
|
|
960
|
+
type PostV1ExtractorJobsBody = {
|
|
961
|
+
/** @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)$ */
|
|
962
|
+
extractor_id: string;
|
|
963
|
+
scope: PostV1ExtractorJobsBodyScope;
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Generated by orval v8.1.0 🍺
|
|
968
|
+
* Do not edit manually.
|
|
969
|
+
* Avallon API
|
|
970
|
+
* OpenAPI spec version: 1.0.0
|
|
971
|
+
*/
|
|
972
|
+
type PostV1ExtractorJobsIdCancel200Scope = {
|
|
973
|
+
[key: string]: unknown;
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* Generated by orval v8.1.0 🍺
|
|
978
|
+
* Do not edit manually.
|
|
979
|
+
* Avallon API
|
|
980
|
+
* OpenAPI spec version: 1.0.0
|
|
981
|
+
*/
|
|
982
|
+
|
|
983
|
+
type PostV1ExtractorJobsIdCancel200 = {
|
|
984
|
+
id: string;
|
|
985
|
+
extractor_id: string;
|
|
986
|
+
extractor_version: number;
|
|
987
|
+
extractor_name: string;
|
|
988
|
+
status: string;
|
|
989
|
+
scope: PostV1ExtractorJobsIdCancel200Scope;
|
|
990
|
+
created_at: string;
|
|
991
|
+
started_at: string | null;
|
|
992
|
+
completed_at: string | null;
|
|
993
|
+
processing_duration_ms: number | null;
|
|
994
|
+
extract_id: string | null;
|
|
995
|
+
error: string | null;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
type SecondParameter$4<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
690
999
|
/**
|
|
691
1000
|
* List all agents for your tenant.
|
|
692
1001
|
|
|
@@ -711,7 +1020,7 @@ declare const useListAgents: <TError = ErrorType<ErrorResponse>>(params?: ListAg
|
|
|
711
1020
|
swrKey?: Key;
|
|
712
1021
|
enabled?: boolean;
|
|
713
1022
|
};
|
|
714
|
-
request?: SecondParameter$
|
|
1023
|
+
request?: SecondParameter$4<typeof customFetch>;
|
|
715
1024
|
}) => {
|
|
716
1025
|
data: AgentList | undefined;
|
|
717
1026
|
error: TError | undefined;
|
|
@@ -734,7 +1043,7 @@ Returns the created agent with its ID and configuration.
|
|
|
734
1043
|
*/
|
|
735
1044
|
declare const getCreateAgentUrl: () => string;
|
|
736
1045
|
declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<CreateAgentResponse>;
|
|
737
|
-
declare const getCreateAgentMutationFetcher: (options?: SecondParameter$
|
|
1046
|
+
declare const getCreateAgentMutationFetcher: (options?: SecondParameter$4<typeof customFetch>) => (_: Key, { arg }: {
|
|
738
1047
|
arg: CreateAgentBody;
|
|
739
1048
|
}) => Promise<CreateAgentResponse>;
|
|
740
1049
|
declare const getCreateAgentMutationKey: () => readonly ["/v1/agents"];
|
|
@@ -746,7 +1055,7 @@ declare const useCreateAgent: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
|
746
1055
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createAgent>>, TError, Key, CreateAgentBody, Awaited<ReturnType<typeof createAgent>>> & {
|
|
747
1056
|
swrKey?: string;
|
|
748
1057
|
};
|
|
749
|
-
request?: SecondParameter$
|
|
1058
|
+
request?: SecondParameter$4<typeof customFetch>;
|
|
750
1059
|
}) => {
|
|
751
1060
|
isMutating: boolean;
|
|
752
1061
|
trigger: swr_mutation.TriggerWithArgs<CreateAgentResponse, TError, string | readonly ["/v1/agents"], CreateAgentBody>;
|
|
@@ -771,7 +1080,7 @@ declare const useGetAgent: <TError = ErrorType<ErrorResponse>>(id: string, optio
|
|
|
771
1080
|
swrKey?: Key;
|
|
772
1081
|
enabled?: boolean;
|
|
773
1082
|
};
|
|
774
|
-
request?: SecondParameter$
|
|
1083
|
+
request?: SecondParameter$4<typeof customFetch>;
|
|
775
1084
|
}) => {
|
|
776
1085
|
data: GetAgentResponse | undefined;
|
|
777
1086
|
error: TError | undefined;
|
|
@@ -781,7 +1090,7 @@ declare const useGetAgent: <TError = ErrorType<ErrorResponse>>(id: string, optio
|
|
|
781
1090
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
782
1091
|
};
|
|
783
1092
|
|
|
784
|
-
type SecondParameter$
|
|
1093
|
+
type SecondParameter$3<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
785
1094
|
/**
|
|
786
1095
|
* List all API keys for your tenant.
|
|
787
1096
|
|
|
@@ -802,7 +1111,7 @@ declare const useListApiKeys: <TError = ErrorType<ErrorResponse>>(params?: ListA
|
|
|
802
1111
|
swrKey?: Key;
|
|
803
1112
|
enabled?: boolean;
|
|
804
1113
|
};
|
|
805
|
-
request?: SecondParameter$
|
|
1114
|
+
request?: SecondParameter$3<typeof customFetch>;
|
|
806
1115
|
}) => {
|
|
807
1116
|
data: ApiKeyList | undefined;
|
|
808
1117
|
error: TError | undefined;
|
|
@@ -821,7 +1130,7 @@ Keys are scoped to an environment (`test` or `live`) and optionally accept an ex
|
|
|
821
1130
|
*/
|
|
822
1131
|
declare const getCreateApiKeyUrl: () => string;
|
|
823
1132
|
declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, options?: RequestInit) => Promise<ApiKeyCreated>;
|
|
824
|
-
declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$
|
|
1133
|
+
declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$3<typeof customFetch>) => (_: Key, { arg }: {
|
|
825
1134
|
arg: CreateApiKeyBody;
|
|
826
1135
|
}) => Promise<ApiKeyCreated>;
|
|
827
1136
|
declare const getCreateApiKeyMutationKey: () => readonly ["/platform/api-keys"];
|
|
@@ -833,7 +1142,7 @@ declare const useCreateApiKey: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
|
833
1142
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createApiKey>>, TError, Key, CreateApiKeyBody, Awaited<ReturnType<typeof createApiKey>>> & {
|
|
834
1143
|
swrKey?: string;
|
|
835
1144
|
};
|
|
836
|
-
request?: SecondParameter$
|
|
1145
|
+
request?: SecondParameter$3<typeof customFetch>;
|
|
837
1146
|
}) => {
|
|
838
1147
|
isMutating: boolean;
|
|
839
1148
|
trigger: swr_mutation.TriggerWithArgs<ApiKeyCreated, TError, string | readonly ["/platform/api-keys"], CreateApiKeyBody>;
|
|
@@ -852,7 +1161,7 @@ Returns 409 if the key is already revoked, 404 if the key does not exist.
|
|
|
852
1161
|
*/
|
|
853
1162
|
declare const getRevokeApiKeyUrl: (id: string) => string;
|
|
854
1163
|
declare const revokeApiKey: (id: string, options?: RequestInit) => Promise<ConfirmationResponse>;
|
|
855
|
-
declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$
|
|
1164
|
+
declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$3<typeof customFetch>) => (_: Key, __: {
|
|
856
1165
|
arg: Arguments;
|
|
857
1166
|
}) => Promise<ConfirmationResponse>;
|
|
858
1167
|
declare const getRevokeApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}/revoke`];
|
|
@@ -864,7 +1173,7 @@ declare const useRevokeApiKey: <TError = ErrorType<ErrorResponse>>(id: string, o
|
|
|
864
1173
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeApiKey>>> & {
|
|
865
1174
|
swrKey?: string;
|
|
866
1175
|
};
|
|
867
|
-
request?: SecondParameter$
|
|
1176
|
+
request?: SecondParameter$3<typeof customFetch>;
|
|
868
1177
|
}) => {
|
|
869
1178
|
isMutating: boolean;
|
|
870
1179
|
trigger: swr_mutation.TriggerWithOptionsArgs<ConfirmationResponse, TError, string | readonly [`/platform/api-keys/${string}/revoke`], Arguments>;
|
|
@@ -874,10 +1183,10 @@ declare const useRevokeApiKey: <TError = ErrorType<ErrorResponse>>(id: string, o
|
|
|
874
1183
|
swrKey: string | readonly [`/platform/api-keys/${string}/revoke`];
|
|
875
1184
|
};
|
|
876
1185
|
|
|
877
|
-
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1186
|
+
type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
878
1187
|
declare const getPostV1AuthSignUpUrl: () => string;
|
|
879
1188
|
declare const postV1AuthSignUp: (postV1AuthSignUpBody: PostV1AuthSignUpBody, options?: RequestInit) => Promise<EmptyResponse>;
|
|
880
|
-
declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1189
|
+
declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
881
1190
|
arg: PostV1AuthSignUpBody;
|
|
882
1191
|
}) => Promise<EmptyResponse>;
|
|
883
1192
|
declare const getPostV1AuthSignUpMutationKey: () => readonly ["/v1/auth/sign-up"];
|
|
@@ -886,7 +1195,7 @@ declare const usePostV1AuthSignUp: <TError = ErrorType<ErrorResponse>>(options?:
|
|
|
886
1195
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignUp>>, TError, Key, PostV1AuthSignUpBody, Awaited<ReturnType<typeof postV1AuthSignUp>>> & {
|
|
887
1196
|
swrKey?: string;
|
|
888
1197
|
};
|
|
889
|
-
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1198
|
+
request?: SecondParameter$2<typeof customFetchNoAuth>;
|
|
890
1199
|
}) => {
|
|
891
1200
|
isMutating: boolean;
|
|
892
1201
|
trigger: swr_mutation.TriggerWithArgs<EmptyResponse, TError, string | readonly ["/v1/auth/sign-up"], PostV1AuthSignUpBody>;
|
|
@@ -897,7 +1206,7 @@ declare const usePostV1AuthSignUp: <TError = ErrorType<ErrorResponse>>(options?:
|
|
|
897
1206
|
};
|
|
898
1207
|
declare const getPostV1AuthSignInUrl: () => string;
|
|
899
1208
|
declare const postV1AuthSignIn: (postV1AuthSignInBody: PostV1AuthSignInBody, options?: RequestInit) => Promise<AuthTokens>;
|
|
900
|
-
declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1209
|
+
declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
901
1210
|
arg: PostV1AuthSignInBody;
|
|
902
1211
|
}) => Promise<AuthTokens>;
|
|
903
1212
|
declare const getPostV1AuthSignInMutationKey: () => readonly ["/v1/auth/sign-in"];
|
|
@@ -906,7 +1215,7 @@ declare const usePostV1AuthSignIn: <TError = ErrorType<ErrorResponse>>(options?:
|
|
|
906
1215
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignIn>>, TError, Key, PostV1AuthSignInBody, Awaited<ReturnType<typeof postV1AuthSignIn>>> & {
|
|
907
1216
|
swrKey?: string;
|
|
908
1217
|
};
|
|
909
|
-
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1218
|
+
request?: SecondParameter$2<typeof customFetchNoAuth>;
|
|
910
1219
|
}) => {
|
|
911
1220
|
isMutating: boolean;
|
|
912
1221
|
trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/sign-in"], PostV1AuthSignInBody>;
|
|
@@ -917,7 +1226,7 @@ declare const usePostV1AuthSignIn: <TError = ErrorType<ErrorResponse>>(options?:
|
|
|
917
1226
|
};
|
|
918
1227
|
declare const getPostV1AuthRefreshTokenUrl: () => string;
|
|
919
1228
|
declare const postV1AuthRefreshToken: (postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody, options?: RequestInit) => Promise<AuthTokens>;
|
|
920
|
-
declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
1229
|
+
declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
|
|
921
1230
|
arg: PostV1AuthRefreshTokenBody;
|
|
922
1231
|
}) => Promise<AuthTokens>;
|
|
923
1232
|
declare const getPostV1AuthRefreshTokenMutationKey: () => readonly ["/v1/auth/refresh-token"];
|
|
@@ -926,7 +1235,7 @@ declare const usePostV1AuthRefreshToken: <TError = ErrorType<ErrorResponse>>(opt
|
|
|
926
1235
|
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthRefreshToken>>, TError, Key, PostV1AuthRefreshTokenBody, Awaited<ReturnType<typeof postV1AuthRefreshToken>>> & {
|
|
927
1236
|
swrKey?: string;
|
|
928
1237
|
};
|
|
929
|
-
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1238
|
+
request?: SecondParameter$2<typeof customFetchNoAuth>;
|
|
930
1239
|
}) => {
|
|
931
1240
|
isMutating: boolean;
|
|
932
1241
|
trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/refresh-token"], PostV1AuthRefreshTokenBody>;
|
|
@@ -944,7 +1253,7 @@ declare const useGetV1AuthOauthUrl: <TError = ErrorType<ErrorResponse>>(params:
|
|
|
944
1253
|
swrKey?: Key;
|
|
945
1254
|
enabled?: boolean;
|
|
946
1255
|
};
|
|
947
|
-
request?: SecondParameter<typeof customFetchNoAuth>;
|
|
1256
|
+
request?: SecondParameter$2<typeof customFetchNoAuth>;
|
|
948
1257
|
}) => {
|
|
949
1258
|
data: OAuthUrl | undefined;
|
|
950
1259
|
error: TError | undefined;
|
|
@@ -954,4 +1263,103 @@ declare const useGetV1AuthOauthUrl: <TError = ErrorType<ErrorResponse>>(params:
|
|
|
954
1263
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
955
1264
|
};
|
|
956
1265
|
|
|
957
|
-
|
|
1266
|
+
type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1267
|
+
declare const getPostV1ExtractorJobsUrl: () => string;
|
|
1268
|
+
declare const postV1ExtractorJobs: (postV1ExtractorJobsBody: PostV1ExtractorJobsBody, options?: RequestInit) => Promise<PostV1ExtractorJobs200>;
|
|
1269
|
+
declare const getPostV1ExtractorJobsMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
|
|
1270
|
+
arg: PostV1ExtractorJobsBody;
|
|
1271
|
+
}) => Promise<PostV1ExtractorJobs200>;
|
|
1272
|
+
declare const getPostV1ExtractorJobsMutationKey: () => readonly ["/v1/extractor-jobs"];
|
|
1273
|
+
type PostV1ExtractorJobsMutationResult = NonNullable<Awaited<ReturnType<typeof postV1ExtractorJobs>>>;
|
|
1274
|
+
declare const usePostV1ExtractorJobs: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
1275
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1ExtractorJobs>>, TError, Key, PostV1ExtractorJobsBody, Awaited<ReturnType<typeof postV1ExtractorJobs>>> & {
|
|
1276
|
+
swrKey?: string;
|
|
1277
|
+
};
|
|
1278
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1279
|
+
}) => {
|
|
1280
|
+
isMutating: boolean;
|
|
1281
|
+
trigger: swr_mutation.TriggerWithArgs<PostV1ExtractorJobs200, TError, string | readonly ["/v1/extractor-jobs"], PostV1ExtractorJobsBody>;
|
|
1282
|
+
reset: () => void;
|
|
1283
|
+
data: PostV1ExtractorJobs200 | undefined;
|
|
1284
|
+
error: TError | undefined;
|
|
1285
|
+
swrKey: string | readonly ["/v1/extractor-jobs"];
|
|
1286
|
+
};
|
|
1287
|
+
declare const getGetV1ExtractorJobsIdUrl: (id: string) => string;
|
|
1288
|
+
declare const getV1ExtractorJobsId: (id: string, options?: RequestInit) => Promise<GetV1ExtractorJobsId200>;
|
|
1289
|
+
declare const getGetV1ExtractorJobsIdKey: (id: string) => readonly [`/v1/extractor-jobs/${string}`];
|
|
1290
|
+
type GetV1ExtractorJobsIdQueryResult = NonNullable<Awaited<ReturnType<typeof getV1ExtractorJobsId>>>;
|
|
1291
|
+
declare const useGetV1ExtractorJobsId: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
1292
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof getV1ExtractorJobsId>>, TError> & {
|
|
1293
|
+
swrKey?: Key;
|
|
1294
|
+
enabled?: boolean;
|
|
1295
|
+
};
|
|
1296
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1297
|
+
}) => {
|
|
1298
|
+
data: GetV1ExtractorJobsId200 | undefined;
|
|
1299
|
+
error: TError | undefined;
|
|
1300
|
+
mutate: swr.KeyedMutator<GetV1ExtractorJobsId200>;
|
|
1301
|
+
isValidating: boolean;
|
|
1302
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1303
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
1304
|
+
};
|
|
1305
|
+
declare const getPostV1ExtractorJobsIdCancelUrl: (id: string) => string;
|
|
1306
|
+
declare const postV1ExtractorJobsIdCancel: (id: string, options?: RequestInit) => Promise<PostV1ExtractorJobsIdCancel200>;
|
|
1307
|
+
declare const getPostV1ExtractorJobsIdCancelMutationFetcher: (id: string, options?: SecondParameter$1<typeof customFetch>) => (_: Key, __: {
|
|
1308
|
+
arg: Arguments;
|
|
1309
|
+
}) => Promise<PostV1ExtractorJobsIdCancel200>;
|
|
1310
|
+
declare const getPostV1ExtractorJobsIdCancelMutationKey: (id: string) => readonly [`/v1/extractor-jobs/${string}/cancel`];
|
|
1311
|
+
type PostV1ExtractorJobsIdCancelMutationResult = NonNullable<Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>>;
|
|
1312
|
+
declare const usePostV1ExtractorJobsIdCancel: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
|
|
1313
|
+
swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>, TError, Key, Arguments, Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>> & {
|
|
1314
|
+
swrKey?: string;
|
|
1315
|
+
};
|
|
1316
|
+
request?: SecondParameter$1<typeof customFetch>;
|
|
1317
|
+
}) => {
|
|
1318
|
+
isMutating: boolean;
|
|
1319
|
+
trigger: swr_mutation.TriggerWithOptionsArgs<PostV1ExtractorJobsIdCancel200, TError, string | readonly [`/v1/extractor-jobs/${string}/cancel`], Arguments>;
|
|
1320
|
+
reset: () => void;
|
|
1321
|
+
data: PostV1ExtractorJobsIdCancel200 | undefined;
|
|
1322
|
+
error: TError | undefined;
|
|
1323
|
+
swrKey: string | readonly [`/v1/extractor-jobs/${string}/cancel`];
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1327
|
+
/**
|
|
1328
|
+
* List all extraction jobs with pagination, filtering, and sorting.
|
|
1329
|
+
|
|
1330
|
+
**Type Filtering:**
|
|
1331
|
+
|
|
1332
|
+
Filter by `extractor_type` to see only `basic` or `agentic` jobs. Omit to return all types.
|
|
1333
|
+
|
|
1334
|
+
**Scope Filtering:**
|
|
1335
|
+
|
|
1336
|
+
Use bracket notation to filter by scope keys:
|
|
1337
|
+
- `scope[call_id]=abc-123`
|
|
1338
|
+
- `scope[email_id]=xyz-456`
|
|
1339
|
+
|
|
1340
|
+
Multiple scope filters can be combined (AND logic).
|
|
1341
|
+
* @summary List extractor jobs
|
|
1342
|
+
*/
|
|
1343
|
+
declare const getListExtractorJobsUrl: (params?: ListExtractorJobsParams) => string;
|
|
1344
|
+
declare const listExtractorJobs: (params?: ListExtractorJobsParams, options?: RequestInit) => Promise<ExtractorJobList>;
|
|
1345
|
+
declare const getListExtractorJobsKey: (params?: ListExtractorJobsParams) => readonly ["/v1/extractor-jobs", ...ListExtractorJobsParams[]];
|
|
1346
|
+
type ListExtractorJobsQueryResult = NonNullable<Awaited<ReturnType<typeof listExtractorJobs>>>;
|
|
1347
|
+
/**
|
|
1348
|
+
* @summary List extractor jobs
|
|
1349
|
+
*/
|
|
1350
|
+
declare const useListExtractorJobs: <TError = ErrorType<ErrorResponse>>(params?: ListExtractorJobsParams, options?: {
|
|
1351
|
+
swr?: SWRConfiguration<Awaited<ReturnType<typeof listExtractorJobs>>, TError> & {
|
|
1352
|
+
swrKey?: Key;
|
|
1353
|
+
enabled?: boolean;
|
|
1354
|
+
};
|
|
1355
|
+
request?: SecondParameter<typeof customFetch>;
|
|
1356
|
+
}) => {
|
|
1357
|
+
data: ExtractorJobList | undefined;
|
|
1358
|
+
error: TError | undefined;
|
|
1359
|
+
mutate: swr.KeyedMutator<ExtractorJobList>;
|
|
1360
|
+
isValidating: boolean;
|
|
1361
|
+
isLoading: swr__internal.IsLoadingResponse<Data, Config>;
|
|
1362
|
+
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
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 };
|