@avallon-labs/sdk 0.0.0-main.53 → 0.0.0-main.55

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
@@ -540,6 +540,66 @@ interface ErrorResponse {
540
540
  message: string;
541
541
  }
542
542
 
543
+ /**
544
+ * Generated by orval v8.1.0 🍺
545
+ * Do not edit manually.
546
+ * Avallon API
547
+ * OpenAPI spec version: 1.0.0
548
+ */
549
+ /**
550
+ * Job scope metadata (e.g. claim_id, email_id)
551
+ */
552
+ type ExtractorJobScope = {
553
+ [key: string]: unknown;
554
+ };
555
+
556
+ /**
557
+ * Generated by orval v8.1.0 🍺
558
+ * Do not edit manually.
559
+ * Avallon API
560
+ * OpenAPI spec version: 1.0.0
561
+ */
562
+
563
+ interface ExtractorJob {
564
+ /** Unique job identifier */
565
+ id: string;
566
+ /** ID of the extractor that created this job */
567
+ extractor_id: string;
568
+ /**
569
+ * Version of the extractor at job creation time
570
+ * @minimum -9007199254740991
571
+ * @maximum 9007199254740991
572
+ */
573
+ extractor_version: number;
574
+ /** Name of the extractor */
575
+ extractor_name: string;
576
+ /** Current job status */
577
+ status: string;
578
+ /** Job scope metadata (e.g. claim_id, email_id) */
579
+ scope: ExtractorJobScope;
580
+ /** ISO 8601 timestamp when the job was created */
581
+ created_at: string;
582
+ /** ISO 8601 timestamp when processing started */
583
+ started_at: string | null;
584
+ /** ISO 8601 timestamp when processing finished */
585
+ completed_at: string | null;
586
+ /** Processing duration in milliseconds */
587
+ processing_duration_ms: number | null;
588
+ /** ID of the resulting extract, if completed */
589
+ extract_id: string | null;
590
+ /** Error message if the job failed */
591
+ error: string | null;
592
+ }
593
+
594
+ /**
595
+ * Generated by orval v8.1.0 🍺
596
+ * Do not edit manually.
597
+ * Avallon API
598
+ * OpenAPI spec version: 1.0.0
599
+ */
600
+
601
+ type ExtractorJobList = ExtractorJob[];
602
+
543
603
  /**
544
604
  * Generated by orval v8.1.0 🍺
545
605
  * Do not edit manually.
@@ -592,6 +652,49 @@ type GetV1AuthOauthUrlParams = {
592
652
  code_challenge: string;
593
653
  };
594
654
 
655
+ /**
656
+ * Generated by orval v8.1.0 🍺
657
+ * Do not edit manually.
658
+ * Avallon API
659
+ * OpenAPI spec version: 1.0.0
660
+ */
661
+ type GetV1ExtractorJobsId200DataScope = {
662
+ [key: string]: unknown;
663
+ };
664
+
665
+ /**
666
+ * Generated by orval v8.1.0 🍺
667
+ * Do not edit manually.
668
+ * Avallon API
669
+ * OpenAPI spec version: 1.0.0
670
+ */
671
+
672
+ type GetV1ExtractorJobsId200Data = {
673
+ id: string;
674
+ extractor_id: string;
675
+ extractor_version: number;
676
+ extractor_name: string;
677
+ status: string;
678
+ scope: GetV1ExtractorJobsId200DataScope;
679
+ created_at: string;
680
+ started_at: string | null;
681
+ completed_at: string | null;
682
+ processing_duration_ms: number | null;
683
+ extract_id: string | null;
684
+ error: string | null;
685
+ };
686
+
687
+ /**
688
+ * Generated by orval v8.1.0 🍺
689
+ * Do not edit manually.
690
+ * Avallon API
691
+ * OpenAPI spec version: 1.0.0
692
+ */
693
+
694
+ type GetV1ExtractorJobsId200 = {
695
+ data: GetV1ExtractorJobsId200Data;
696
+ };
697
+
595
698
  /**
596
699
  * Generated by orval v8.1.0 🍺
597
700
  * Do not edit manually.
@@ -631,6 +734,108 @@ type ListApiKeysParams = {
631
734
  include_revoked?: ListApiKeysIncludeRevoked;
632
735
  };
633
736
 
737
+ /**
738
+ * Generated by orval v8.1.0 🍺
739
+ * Do not edit manually.
740
+ * Avallon API
741
+ * OpenAPI spec version: 1.0.0
742
+ */
743
+ type ListExtractorJobsExtractorType = (typeof ListExtractorJobsExtractorType)[keyof typeof ListExtractorJobsExtractorType];
744
+ declare const ListExtractorJobsExtractorType: {
745
+ readonly basic: "basic";
746
+ readonly agentic: "agentic";
747
+ };
748
+
749
+ /**
750
+ * Generated by orval v8.1.0 🍺
751
+ * Do not edit manually.
752
+ * Avallon API
753
+ * OpenAPI spec version: 1.0.0
754
+ */
755
+ type ListExtractorJobsSortBy = (typeof ListExtractorJobsSortBy)[keyof typeof ListExtractorJobsSortBy];
756
+ declare const ListExtractorJobsSortBy: {
757
+ readonly created_at: "created_at";
758
+ readonly started_at: "started_at";
759
+ readonly completed_at: "completed_at";
760
+ };
761
+
762
+ /**
763
+ * Generated by orval v8.1.0 🍺
764
+ * Do not edit manually.
765
+ * Avallon API
766
+ * OpenAPI spec version: 1.0.0
767
+ */
768
+ type ListExtractorJobsSortOrder = (typeof ListExtractorJobsSortOrder)[keyof typeof ListExtractorJobsSortOrder];
769
+ declare const ListExtractorJobsSortOrder: {
770
+ readonly asc: "asc";
771
+ readonly desc: "desc";
772
+ };
773
+
774
+ /**
775
+ * Generated by orval v8.1.0 🍺
776
+ * Do not edit manually.
777
+ * Avallon API
778
+ * OpenAPI spec version: 1.0.0
779
+ */
780
+ type ListExtractorJobsStatus = (typeof ListExtractorJobsStatus)[keyof typeof ListExtractorJobsStatus];
781
+ declare const ListExtractorJobsStatus: {
782
+ readonly queued: "queued";
783
+ readonly in_progress: "in_progress";
784
+ readonly completed: "completed";
785
+ readonly failed: "failed";
786
+ readonly canceled: "canceled";
787
+ };
788
+
789
+ /**
790
+ * Generated by orval v8.1.0 🍺
791
+ * Do not edit manually.
792
+ * Avallon API
793
+ * OpenAPI spec version: 1.0.0
794
+ */
795
+
796
+ type ListExtractorJobsParams = {
797
+ /**
798
+ * Number of results to return
799
+ * @minimum 1
800
+ * @maximum 100
801
+ */
802
+ count?: number;
803
+ /**
804
+ * Number of results to skip for pagination
805
+ * @minimum 0
806
+ */
807
+ offset?: number;
808
+ /**
809
+ * Field to sort by
810
+ */
811
+ sort_by?: ListExtractorJobsSortBy;
812
+ /**
813
+ * Sort direction
814
+ */
815
+ sort_order?: ListExtractorJobsSortOrder;
816
+ /**
817
+ * Filter by job status
818
+ */
819
+ status?: ListExtractorJobsStatus;
820
+ /**
821
+ * Filter by extractor type
822
+ */
823
+ extractor_type?: ListExtractorJobsExtractorType;
824
+ /**
825
+ * Filter by extractor ID
826
+ * @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)$
827
+ */
828
+ extractor_id?: string;
829
+ /**
830
+ * Filter jobs created after this date (ISO 8601)
831
+ */
832
+ created_after?: string;
833
+ /**
834
+ * Filter jobs created before this date (ISO 8601)
835
+ */
836
+ created_before?: string;
837
+ };
838
+
634
839
  /**
635
840
  * Generated by orval v8.1.0 🍺
636
841
  * Do not edit manually.
@@ -686,7 +891,88 @@ type PostV1AuthSignUpBody = {
686
891
  password: string;
687
892
  };
688
893
 
689
- type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
894
+ /**
895
+ * Generated by orval v8.1.0 🍺
896
+ * Do not edit manually.
897
+ * Avallon API
898
+ * OpenAPI spec version: 1.0.0
899
+ */
900
+ type PostV1ExtractorJobs200Scope = {
901
+ [key: string]: unknown;
902
+ };
903
+
904
+ /**
905
+ * Generated by orval v8.1.0 🍺
906
+ * Do not edit manually.
907
+ * Avallon API
908
+ * OpenAPI spec version: 1.0.0
909
+ */
910
+
911
+ type PostV1ExtractorJobs200 = {
912
+ id: string;
913
+ extractor_id: string;
914
+ extractor_version: number;
915
+ scope: PostV1ExtractorJobs200Scope;
916
+ status: string;
917
+ created_at: string;
918
+ };
919
+
920
+ /**
921
+ * Generated by orval v8.1.0 🍺
922
+ * Do not edit manually.
923
+ * Avallon API
924
+ * OpenAPI spec version: 1.0.0
925
+ */
926
+ type PostV1ExtractorJobsBodyScope = {
927
+ [key: string]: string | number | boolean | null;
928
+ };
929
+
930
+ /**
931
+ * Generated by orval v8.1.0 🍺
932
+ * Do not edit manually.
933
+ * Avallon API
934
+ * OpenAPI spec version: 1.0.0
935
+ */
936
+
937
+ type PostV1ExtractorJobsBody = {
938
+ /** @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)$ */
939
+ extractor_id: string;
940
+ scope: PostV1ExtractorJobsBodyScope;
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 PostV1ExtractorJobsIdCancel200Scope = {
950
+ [key: string]: unknown;
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 PostV1ExtractorJobsIdCancel200 = {
961
+ id: string;
962
+ extractor_id: string;
963
+ extractor_version: number;
964
+ extractor_name: string;
965
+ status: string;
966
+ scope: PostV1ExtractorJobsIdCancel200Scope;
967
+ created_at: string;
968
+ started_at: string | null;
969
+ completed_at: string | null;
970
+ processing_duration_ms: number | null;
971
+ extract_id: string | null;
972
+ error: string | null;
973
+ };
974
+
975
+ type SecondParameter$4<T extends (...args: never) => unknown> = Parameters<T>[1];
690
976
  /**
691
977
  * List all agents for your tenant.
692
978
 
@@ -711,7 +997,7 @@ declare const useListAgents: <TError = ErrorType<ErrorResponse>>(params?: ListAg
711
997
  swrKey?: Key;
712
998
  enabled?: boolean;
713
999
  };
714
- request?: SecondParameter$2<typeof customFetch>;
1000
+ request?: SecondParameter$4<typeof customFetch>;
715
1001
  }) => {
716
1002
  data: AgentList | undefined;
717
1003
  error: TError | undefined;
@@ -734,7 +1020,7 @@ Returns the created agent with its ID and configuration.
734
1020
  */
735
1021
  declare const getCreateAgentUrl: () => string;
736
1022
  declare const createAgent: (createAgentBody: CreateAgentBody, options?: RequestInit) => Promise<CreateAgentResponse>;
737
- declare const getCreateAgentMutationFetcher: (options?: SecondParameter$2<typeof customFetch>) => (_: Key, { arg }: {
1023
+ declare const getCreateAgentMutationFetcher: (options?: SecondParameter$4<typeof customFetch>) => (_: Key, { arg }: {
738
1024
  arg: CreateAgentBody;
739
1025
  }) => Promise<CreateAgentResponse>;
740
1026
  declare const getCreateAgentMutationKey: () => readonly ["/v1/agents"];
@@ -746,7 +1032,7 @@ declare const useCreateAgent: <TError = ErrorType<ErrorResponse>>(options?: {
746
1032
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createAgent>>, TError, Key, CreateAgentBody, Awaited<ReturnType<typeof createAgent>>> & {
747
1033
  swrKey?: string;
748
1034
  };
749
- request?: SecondParameter$2<typeof customFetch>;
1035
+ request?: SecondParameter$4<typeof customFetch>;
750
1036
  }) => {
751
1037
  isMutating: boolean;
752
1038
  trigger: swr_mutation.TriggerWithArgs<CreateAgentResponse, TError, string | readonly ["/v1/agents"], CreateAgentBody>;
@@ -771,7 +1057,7 @@ declare const useGetAgent: <TError = ErrorType<ErrorResponse>>(id: string, optio
771
1057
  swrKey?: Key;
772
1058
  enabled?: boolean;
773
1059
  };
774
- request?: SecondParameter$2<typeof customFetch>;
1060
+ request?: SecondParameter$4<typeof customFetch>;
775
1061
  }) => {
776
1062
  data: GetAgentResponse | undefined;
777
1063
  error: TError | undefined;
@@ -781,7 +1067,7 @@ declare const useGetAgent: <TError = ErrorType<ErrorResponse>>(id: string, optio
781
1067
  swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
782
1068
  };
783
1069
 
784
- type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
1070
+ type SecondParameter$3<T extends (...args: never) => unknown> = Parameters<T>[1];
785
1071
  /**
786
1072
  * List all API keys for your tenant.
787
1073
 
@@ -802,7 +1088,7 @@ declare const useListApiKeys: <TError = ErrorType<ErrorResponse>>(params?: ListA
802
1088
  swrKey?: Key;
803
1089
  enabled?: boolean;
804
1090
  };
805
- request?: SecondParameter$1<typeof customFetch>;
1091
+ request?: SecondParameter$3<typeof customFetch>;
806
1092
  }) => {
807
1093
  data: ApiKeyList | undefined;
808
1094
  error: TError | undefined;
@@ -821,7 +1107,7 @@ Keys are scoped to an environment (`test` or `live`) and optionally accept an ex
821
1107
  */
822
1108
  declare const getCreateApiKeyUrl: () => string;
823
1109
  declare const createApiKey: (createApiKeyBody: CreateApiKeyBody, options?: RequestInit) => Promise<ApiKeyCreated>;
824
- declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
1110
+ declare const getCreateApiKeyMutationFetcher: (options?: SecondParameter$3<typeof customFetch>) => (_: Key, { arg }: {
825
1111
  arg: CreateApiKeyBody;
826
1112
  }) => Promise<ApiKeyCreated>;
827
1113
  declare const getCreateApiKeyMutationKey: () => readonly ["/platform/api-keys"];
@@ -833,7 +1119,7 @@ declare const useCreateApiKey: <TError = ErrorType<ErrorResponse>>(options?: {
833
1119
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof createApiKey>>, TError, Key, CreateApiKeyBody, Awaited<ReturnType<typeof createApiKey>>> & {
834
1120
  swrKey?: string;
835
1121
  };
836
- request?: SecondParameter$1<typeof customFetch>;
1122
+ request?: SecondParameter$3<typeof customFetch>;
837
1123
  }) => {
838
1124
  isMutating: boolean;
839
1125
  trigger: swr_mutation.TriggerWithArgs<ApiKeyCreated, TError, string | readonly ["/platform/api-keys"], CreateApiKeyBody>;
@@ -852,7 +1138,7 @@ Returns 409 if the key is already revoked, 404 if the key does not exist.
852
1138
  */
853
1139
  declare const getRevokeApiKeyUrl: (id: string) => string;
854
1140
  declare const revokeApiKey: (id: string, options?: RequestInit) => Promise<ConfirmationResponse>;
855
- declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$1<typeof customFetch>) => (_: Key, __: {
1141
+ declare const getRevokeApiKeyMutationFetcher: (id: string, options?: SecondParameter$3<typeof customFetch>) => (_: Key, __: {
856
1142
  arg: Arguments;
857
1143
  }) => Promise<ConfirmationResponse>;
858
1144
  declare const getRevokeApiKeyMutationKey: (id: string) => readonly [`/platform/api-keys/${string}/revoke`];
@@ -864,7 +1150,7 @@ declare const useRevokeApiKey: <TError = ErrorType<ErrorResponse>>(id: string, o
864
1150
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof revokeApiKey>>, TError, Key, Arguments, Awaited<ReturnType<typeof revokeApiKey>>> & {
865
1151
  swrKey?: string;
866
1152
  };
867
- request?: SecondParameter$1<typeof customFetch>;
1153
+ request?: SecondParameter$3<typeof customFetch>;
868
1154
  }) => {
869
1155
  isMutating: boolean;
870
1156
  trigger: swr_mutation.TriggerWithOptionsArgs<ConfirmationResponse, TError, string | readonly [`/platform/api-keys/${string}/revoke`], Arguments>;
@@ -874,10 +1160,10 @@ declare const useRevokeApiKey: <TError = ErrorType<ErrorResponse>>(id: string, o
874
1160
  swrKey: string | readonly [`/platform/api-keys/${string}/revoke`];
875
1161
  };
876
1162
 
877
- type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
1163
+ type SecondParameter$2<T extends (...args: never) => unknown> = Parameters<T>[1];
878
1164
  declare const getPostV1AuthSignUpUrl: () => string;
879
1165
  declare const postV1AuthSignUp: (postV1AuthSignUpBody: PostV1AuthSignUpBody, options?: RequestInit) => Promise<EmptyResponse>;
880
- declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1166
+ declare const getPostV1AuthSignUpMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
881
1167
  arg: PostV1AuthSignUpBody;
882
1168
  }) => Promise<EmptyResponse>;
883
1169
  declare const getPostV1AuthSignUpMutationKey: () => readonly ["/v1/auth/sign-up"];
@@ -886,7 +1172,7 @@ declare const usePostV1AuthSignUp: <TError = ErrorType<ErrorResponse>>(options?:
886
1172
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignUp>>, TError, Key, PostV1AuthSignUpBody, Awaited<ReturnType<typeof postV1AuthSignUp>>> & {
887
1173
  swrKey?: string;
888
1174
  };
889
- request?: SecondParameter<typeof customFetchNoAuth>;
1175
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
890
1176
  }) => {
891
1177
  isMutating: boolean;
892
1178
  trigger: swr_mutation.TriggerWithArgs<EmptyResponse, TError, string | readonly ["/v1/auth/sign-up"], PostV1AuthSignUpBody>;
@@ -897,7 +1183,7 @@ declare const usePostV1AuthSignUp: <TError = ErrorType<ErrorResponse>>(options?:
897
1183
  };
898
1184
  declare const getPostV1AuthSignInUrl: () => string;
899
1185
  declare const postV1AuthSignIn: (postV1AuthSignInBody: PostV1AuthSignInBody, options?: RequestInit) => Promise<AuthTokens>;
900
- declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1186
+ declare const getPostV1AuthSignInMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
901
1187
  arg: PostV1AuthSignInBody;
902
1188
  }) => Promise<AuthTokens>;
903
1189
  declare const getPostV1AuthSignInMutationKey: () => readonly ["/v1/auth/sign-in"];
@@ -906,7 +1192,7 @@ declare const usePostV1AuthSignIn: <TError = ErrorType<ErrorResponse>>(options?:
906
1192
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthSignIn>>, TError, Key, PostV1AuthSignInBody, Awaited<ReturnType<typeof postV1AuthSignIn>>> & {
907
1193
  swrKey?: string;
908
1194
  };
909
- request?: SecondParameter<typeof customFetchNoAuth>;
1195
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
910
1196
  }) => {
911
1197
  isMutating: boolean;
912
1198
  trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/sign-in"], PostV1AuthSignInBody>;
@@ -917,7 +1203,7 @@ declare const usePostV1AuthSignIn: <TError = ErrorType<ErrorResponse>>(options?:
917
1203
  };
918
1204
  declare const getPostV1AuthRefreshTokenUrl: () => string;
919
1205
  declare const postV1AuthRefreshToken: (postV1AuthRefreshTokenBody: PostV1AuthRefreshTokenBody, options?: RequestInit) => Promise<AuthTokens>;
920
- declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter<typeof customFetchNoAuth>) => (_: Key, { arg }: {
1206
+ declare const getPostV1AuthRefreshTokenMutationFetcher: (options?: SecondParameter$2<typeof customFetchNoAuth>) => (_: Key, { arg }: {
921
1207
  arg: PostV1AuthRefreshTokenBody;
922
1208
  }) => Promise<AuthTokens>;
923
1209
  declare const getPostV1AuthRefreshTokenMutationKey: () => readonly ["/v1/auth/refresh-token"];
@@ -926,7 +1212,7 @@ declare const usePostV1AuthRefreshToken: <TError = ErrorType<ErrorResponse>>(opt
926
1212
  swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1AuthRefreshToken>>, TError, Key, PostV1AuthRefreshTokenBody, Awaited<ReturnType<typeof postV1AuthRefreshToken>>> & {
927
1213
  swrKey?: string;
928
1214
  };
929
- request?: SecondParameter<typeof customFetchNoAuth>;
1215
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
930
1216
  }) => {
931
1217
  isMutating: boolean;
932
1218
  trigger: swr_mutation.TriggerWithArgs<AuthTokens, TError, string | readonly ["/v1/auth/refresh-token"], PostV1AuthRefreshTokenBody>;
@@ -944,7 +1230,7 @@ declare const useGetV1AuthOauthUrl: <TError = ErrorType<ErrorResponse>>(params:
944
1230
  swrKey?: Key;
945
1231
  enabled?: boolean;
946
1232
  };
947
- request?: SecondParameter<typeof customFetchNoAuth>;
1233
+ request?: SecondParameter$2<typeof customFetchNoAuth>;
948
1234
  }) => {
949
1235
  data: OAuthUrl | undefined;
950
1236
  error: TError | undefined;
@@ -954,4 +1240,103 @@ declare const useGetV1AuthOauthUrl: <TError = ErrorType<ErrorResponse>>(params:
954
1240
  swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
955
1241
  };
956
1242
 
957
- export { type Agent, AgentBackgroundSounds, AgentDirection, AgentLanguage, type AgentList, AgentLlmModel, AgentSttModel, AgentTtsModel, AgentTtsProvider, type ApiKey, type ApiKeyCreated, type ApiKeyList, type AuthTokens, type AvallonConfig, AvallonError, type ConfirmationResponse, type CreateAgentBody, CreateAgentBodyDirection, CreateAgentBodyLanguage, CreateAgentBodyLlmModel, CreateAgentBodySttModel, CreateAgentBodyTtsModel, CreateAgentBodyTtsProvider, type CreateAgentMutationResult, type CreateAgentResponse, type CreateApiKeyBody, CreateApiKeyBodyEnvironment, type CreateApiKeyMutationResult, type EmptyResponse, type ErrorResponse, type ErrorResponseData, type GetAgentQueryResult, type GetAgentResponse, GetV1AuthOauthUrlCodeChallengeMethod, type GetV1AuthOauthUrlParams, GetV1AuthOauthUrlProvider, type GetV1AuthOauthUrlQueryResult, type ListAgentsParams, type ListAgentsQueryResult, ListApiKeysIncludeRevoked, type ListApiKeysParams, type ListApiKeysQueryResult, type OAuthUrl, type PostV1AuthRefreshTokenBody, type PostV1AuthRefreshTokenMutationResult, type PostV1AuthSignInBody, type PostV1AuthSignInMutationResult, type PostV1AuthSignUpBody, type PostV1AuthSignUpMutationResult, type RevokeApiKeyMutationResult, configure, createAgent, createApiKey, generateCodeChallenge, generateCodeVerifier, getAgent, getConfig, getCreateAgentMutationFetcher, getCreateAgentMutationKey, getCreateAgentUrl, getCreateApiKeyMutationFetcher, getCreateApiKeyMutationKey, getCreateApiKeyUrl, getGetAgentKey, getGetAgentUrl, getGetV1AuthOauthUrlKey, getGetV1AuthOauthUrlUrl, getListAgentsKey, getListAgentsUrl, getListApiKeysKey, getListApiKeysUrl, getPostV1AuthRefreshTokenMutationFetcher, getPostV1AuthRefreshTokenMutationKey, getPostV1AuthRefreshTokenUrl, getPostV1AuthSignInMutationFetcher, getPostV1AuthSignInMutationKey, getPostV1AuthSignInUrl, getPostV1AuthSignUpMutationFetcher, getPostV1AuthSignUpMutationKey, getPostV1AuthSignUpUrl, getRevokeApiKeyMutationFetcher, getRevokeApiKeyMutationKey, getRevokeApiKeyUrl, getV1AuthOauthUrl, listAgents, listApiKeys, postV1AuthRefreshToken, postV1AuthSignIn, postV1AuthSignUp, revokeApiKey, useCreateAgent, useCreateApiKey, useGetAgent, useGetV1AuthOauthUrl, useListAgents, useListApiKeys, usePostV1AuthRefreshToken, usePostV1AuthSignIn, usePostV1AuthSignUp, useRevokeApiKey };
1243
+ type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
1244
+ declare const getPostV1ExtractorJobsUrl: () => string;
1245
+ declare const postV1ExtractorJobs: (postV1ExtractorJobsBody: PostV1ExtractorJobsBody, options?: RequestInit) => Promise<PostV1ExtractorJobs200>;
1246
+ declare const getPostV1ExtractorJobsMutationFetcher: (options?: SecondParameter$1<typeof customFetch>) => (_: Key, { arg }: {
1247
+ arg: PostV1ExtractorJobsBody;
1248
+ }) => Promise<PostV1ExtractorJobs200>;
1249
+ declare const getPostV1ExtractorJobsMutationKey: () => readonly ["/v1/extractor-jobs"];
1250
+ type PostV1ExtractorJobsMutationResult = NonNullable<Awaited<ReturnType<typeof postV1ExtractorJobs>>>;
1251
+ declare const usePostV1ExtractorJobs: <TError = ErrorType<ErrorResponse>>(options?: {
1252
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1ExtractorJobs>>, TError, Key, PostV1ExtractorJobsBody, Awaited<ReturnType<typeof postV1ExtractorJobs>>> & {
1253
+ swrKey?: string;
1254
+ };
1255
+ request?: SecondParameter$1<typeof customFetch>;
1256
+ }) => {
1257
+ isMutating: boolean;
1258
+ trigger: swr_mutation.TriggerWithArgs<PostV1ExtractorJobs200, TError, string | readonly ["/v1/extractor-jobs"], PostV1ExtractorJobsBody>;
1259
+ reset: () => void;
1260
+ data: PostV1ExtractorJobs200 | undefined;
1261
+ error: TError | undefined;
1262
+ swrKey: string | readonly ["/v1/extractor-jobs"];
1263
+ };
1264
+ declare const getGetV1ExtractorJobsIdUrl: (id: string) => string;
1265
+ declare const getV1ExtractorJobsId: (id: string, options?: RequestInit) => Promise<GetV1ExtractorJobsId200>;
1266
+ declare const getGetV1ExtractorJobsIdKey: (id: string) => readonly [`/v1/extractor-jobs/${string}`];
1267
+ type GetV1ExtractorJobsIdQueryResult = NonNullable<Awaited<ReturnType<typeof getV1ExtractorJobsId>>>;
1268
+ declare const useGetV1ExtractorJobsId: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
1269
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof getV1ExtractorJobsId>>, TError> & {
1270
+ swrKey?: Key;
1271
+ enabled?: boolean;
1272
+ };
1273
+ request?: SecondParameter$1<typeof customFetch>;
1274
+ }) => {
1275
+ data: GetV1ExtractorJobsId200 | undefined;
1276
+ error: TError | undefined;
1277
+ mutate: swr.KeyedMutator<GetV1ExtractorJobsId200>;
1278
+ isValidating: boolean;
1279
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1280
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
1281
+ };
1282
+ declare const getPostV1ExtractorJobsIdCancelUrl: (id: string) => string;
1283
+ declare const postV1ExtractorJobsIdCancel: (id: string, options?: RequestInit) => Promise<PostV1ExtractorJobsIdCancel200>;
1284
+ declare const getPostV1ExtractorJobsIdCancelMutationFetcher: (id: string, options?: SecondParameter$1<typeof customFetch>) => (_: Key, __: {
1285
+ arg: Arguments;
1286
+ }) => Promise<PostV1ExtractorJobsIdCancel200>;
1287
+ declare const getPostV1ExtractorJobsIdCancelMutationKey: (id: string) => readonly [`/v1/extractor-jobs/${string}/cancel`];
1288
+ type PostV1ExtractorJobsIdCancelMutationResult = NonNullable<Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>>;
1289
+ declare const usePostV1ExtractorJobsIdCancel: <TError = ErrorType<ErrorResponse>>(id: string, options?: {
1290
+ swr?: SWRMutationConfiguration<Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>, TError, Key, Arguments, Awaited<ReturnType<typeof postV1ExtractorJobsIdCancel>>> & {
1291
+ swrKey?: string;
1292
+ };
1293
+ request?: SecondParameter$1<typeof customFetch>;
1294
+ }) => {
1295
+ isMutating: boolean;
1296
+ trigger: swr_mutation.TriggerWithOptionsArgs<PostV1ExtractorJobsIdCancel200, TError, string | readonly [`/v1/extractor-jobs/${string}/cancel`], Arguments>;
1297
+ reset: () => void;
1298
+ data: PostV1ExtractorJobsIdCancel200 | undefined;
1299
+ error: TError | undefined;
1300
+ swrKey: string | readonly [`/v1/extractor-jobs/${string}/cancel`];
1301
+ };
1302
+
1303
+ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
1304
+ /**
1305
+ * List all extraction jobs with pagination, filtering, and sorting.
1306
+
1307
+ **Type Filtering:**
1308
+
1309
+ Filter by `extractor_type` to see only `basic` or `agentic` jobs. Omit to return all types.
1310
+
1311
+ **Scope Filtering:**
1312
+
1313
+ Use bracket notation to filter by scope keys:
1314
+ - `scope[call_id]=abc-123`
1315
+ - `scope[email_id]=xyz-456`
1316
+
1317
+ Multiple scope filters can be combined (AND logic).
1318
+ * @summary List extractor jobs
1319
+ */
1320
+ declare const getListExtractorJobsUrl: (params?: ListExtractorJobsParams) => string;
1321
+ declare const listExtractorJobs: (params?: ListExtractorJobsParams, options?: RequestInit) => Promise<ExtractorJobList>;
1322
+ declare const getListExtractorJobsKey: (params?: ListExtractorJobsParams) => readonly ["/v1/extractor-jobs", ...ListExtractorJobsParams[]];
1323
+ type ListExtractorJobsQueryResult = NonNullable<Awaited<ReturnType<typeof listExtractorJobs>>>;
1324
+ /**
1325
+ * @summary List extractor jobs
1326
+ */
1327
+ declare const useListExtractorJobs: <TError = ErrorType<ErrorResponse>>(params?: ListExtractorJobsParams, options?: {
1328
+ swr?: SWRConfiguration<Awaited<ReturnType<typeof listExtractorJobs>>, TError> & {
1329
+ swrKey?: Key;
1330
+ enabled?: boolean;
1331
+ };
1332
+ request?: SecondParameter<typeof customFetch>;
1333
+ }) => {
1334
+ data: ExtractorJobList | undefined;
1335
+ error: TError | undefined;
1336
+ mutate: swr.KeyedMutator<ExtractorJobList>;
1337
+ isValidating: boolean;
1338
+ isLoading: swr__internal.IsLoadingResponse<Data, Config>;
1339
+ swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => swr.Arguments);
1340
+ };
1341
+
1342
+ 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, 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 };