@nestbox-ai/admin 1.0.63 → 1.0.64

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/esm/api.js CHANGED
@@ -596,6 +596,1950 @@ export class AuthApi extends BaseAPI {
596
596
  return AuthApiFp(this.configuration).authControllerSignup(signupRequestDTO, options).then((request) => request(this.axios, this.basePath));
597
597
  }
598
598
  }
599
+ /**
600
+ * DocumentProcessingApi - axios parameter creator
601
+ */
602
+ export const DocumentProcessingApiAxiosParamCreator = function (configuration) {
603
+ return {
604
+ /**
605
+ *
606
+ * @summary Create batch query from YAML file
607
+ * @param {string} projectId
608
+ * @param {string} instanceId
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ documentProcessingControllerCreateBatchQuery: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
613
+ // verify required parameter 'projectId' is not null or undefined
614
+ assertParamExists('documentProcessingControllerCreateBatchQuery', 'projectId', projectId);
615
+ // verify required parameter 'instanceId' is not null or undefined
616
+ assertParamExists('documentProcessingControllerCreateBatchQuery', 'instanceId', instanceId);
617
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/queries`
618
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
619
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
621
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
622
+ let baseOptions;
623
+ if (configuration) {
624
+ baseOptions = configuration.baseOptions;
625
+ }
626
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
627
+ const localVarHeaderParameter = {};
628
+ const localVarQueryParameter = {};
629
+ localVarHeaderParameter['Accept'] = 'application/json';
630
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
632
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
633
+ return {
634
+ url: toPathString(localVarUrlObj),
635
+ options: localVarRequestOptions,
636
+ };
637
+ }),
638
+ /**
639
+ *
640
+ * @summary Create document processing job by uploading file
641
+ * @param {string} projectId
642
+ * @param {string} instanceId
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ documentProcessingControllerCreateDocumentProcessingJob: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
647
+ // verify required parameter 'projectId' is not null or undefined
648
+ assertParamExists('documentProcessingControllerCreateDocumentProcessingJob', 'projectId', projectId);
649
+ // verify required parameter 'instanceId' is not null or undefined
650
+ assertParamExists('documentProcessingControllerCreateDocumentProcessingJob', 'instanceId', instanceId);
651
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/documents`
652
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
653
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
654
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
655
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
656
+ let baseOptions;
657
+ if (configuration) {
658
+ baseOptions = configuration.baseOptions;
659
+ }
660
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
661
+ const localVarHeaderParameter = {};
662
+ const localVarQueryParameter = {};
663
+ localVarHeaderParameter['Accept'] = 'application/json';
664
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
665
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
666
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
667
+ return {
668
+ url: toPathString(localVarUrlObj),
669
+ options: localVarRequestOptions,
670
+ };
671
+ }),
672
+ /**
673
+ *
674
+ * @summary Create evaluation from YAML file
675
+ * @param {string} projectId
676
+ * @param {string} instanceId
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ */
680
+ documentProcessingControllerCreateEval: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
681
+ // verify required parameter 'projectId' is not null or undefined
682
+ assertParamExists('documentProcessingControllerCreateEval', 'projectId', projectId);
683
+ // verify required parameter 'instanceId' is not null or undefined
684
+ assertParamExists('documentProcessingControllerCreateEval', 'instanceId', instanceId);
685
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/evals`
686
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
687
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
688
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
689
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
690
+ let baseOptions;
691
+ if (configuration) {
692
+ baseOptions = configuration.baseOptions;
693
+ }
694
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
695
+ const localVarHeaderParameter = {};
696
+ const localVarQueryParameter = {};
697
+ localVarHeaderParameter['Accept'] = 'application/json';
698
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
699
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
700
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
701
+ return {
702
+ url: toPathString(localVarUrlObj),
703
+ options: localVarRequestOptions,
704
+ };
705
+ }),
706
+ /**
707
+ *
708
+ * @summary Create processing profile from YAML
709
+ * @param {string} projectId
710
+ * @param {string} instanceId
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ documentProcessingControllerCreateProfile: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
715
+ // verify required parameter 'projectId' is not null or undefined
716
+ assertParamExists('documentProcessingControllerCreateProfile', 'projectId', projectId);
717
+ // verify required parameter 'instanceId' is not null or undefined
718
+ assertParamExists('documentProcessingControllerCreateProfile', 'instanceId', instanceId);
719
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/profiles`
720
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
721
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
722
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
723
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
724
+ let baseOptions;
725
+ if (configuration) {
726
+ baseOptions = configuration.baseOptions;
727
+ }
728
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
729
+ const localVarHeaderParameter = {};
730
+ const localVarQueryParameter = {};
731
+ localVarHeaderParameter['Accept'] = 'application/json';
732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
734
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
735
+ return {
736
+ url: toPathString(localVarUrlObj),
737
+ options: localVarRequestOptions,
738
+ };
739
+ }),
740
+ /**
741
+ *
742
+ * @summary Create webhook for receiving notifications
743
+ * @param {string} projectId
744
+ * @param {string} instanceId
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ documentProcessingControllerCreateWebhook: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
749
+ // verify required parameter 'projectId' is not null or undefined
750
+ assertParamExists('documentProcessingControllerCreateWebhook', 'projectId', projectId);
751
+ // verify required parameter 'instanceId' is not null or undefined
752
+ assertParamExists('documentProcessingControllerCreateWebhook', 'instanceId', instanceId);
753
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/webhooks`
754
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
755
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
756
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
757
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
758
+ let baseOptions;
759
+ if (configuration) {
760
+ baseOptions = configuration.baseOptions;
761
+ }
762
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
763
+ const localVarHeaderParameter = {};
764
+ const localVarQueryParameter = {};
765
+ localVarHeaderParameter['Accept'] = 'application/json';
766
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
768
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
769
+ return {
770
+ url: toPathString(localVarUrlObj),
771
+ options: localVarRequestOptions,
772
+ };
773
+ }),
774
+ /**
775
+ *
776
+ * @summary Delete webhook
777
+ * @param {string} projectId
778
+ * @param {string} instanceId
779
+ * @param {string} webhookId
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ documentProcessingControllerDeleteWebhook: (projectId_1, instanceId_1, webhookId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, webhookId_1, ...args_1], void 0, function* (projectId, instanceId, webhookId, options = {}) {
784
+ // verify required parameter 'projectId' is not null or undefined
785
+ assertParamExists('documentProcessingControllerDeleteWebhook', 'projectId', projectId);
786
+ // verify required parameter 'instanceId' is not null or undefined
787
+ assertParamExists('documentProcessingControllerDeleteWebhook', 'instanceId', instanceId);
788
+ // verify required parameter 'webhookId' is not null or undefined
789
+ assertParamExists('documentProcessingControllerDeleteWebhook', 'webhookId', webhookId);
790
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/webhooks/{webhookId}`
791
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
792
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
793
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
796
+ let baseOptions;
797
+ if (configuration) {
798
+ baseOptions = configuration.baseOptions;
799
+ }
800
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
801
+ const localVarHeaderParameter = {};
802
+ const localVarQueryParameter = {};
803
+ localVarHeaderParameter['Accept'] = 'application/json';
804
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
805
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
806
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
807
+ return {
808
+ url: toPathString(localVarUrlObj),
809
+ options: localVarRequestOptions,
810
+ };
811
+ }),
812
+ /**
813
+ *
814
+ * @summary Download document artifacts as archive
815
+ * @param {string} projectId
816
+ * @param {string} instanceId
817
+ * @param {string} documentId
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ documentProcessingControllerDownloadDocumentArtifacts: (projectId_1, instanceId_1, documentId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, documentId_1, ...args_1], void 0, function* (projectId, instanceId, documentId, options = {}) {
822
+ // verify required parameter 'projectId' is not null or undefined
823
+ assertParamExists('documentProcessingControllerDownloadDocumentArtifacts', 'projectId', projectId);
824
+ // verify required parameter 'instanceId' is not null or undefined
825
+ assertParamExists('documentProcessingControllerDownloadDocumentArtifacts', 'instanceId', instanceId);
826
+ // verify required parameter 'documentId' is not null or undefined
827
+ assertParamExists('documentProcessingControllerDownloadDocumentArtifacts', 'documentId', documentId);
828
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/documents/{documentId}/artifacts`
829
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
830
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
831
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
832
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
833
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
834
+ let baseOptions;
835
+ if (configuration) {
836
+ baseOptions = configuration.baseOptions;
837
+ }
838
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
839
+ const localVarHeaderParameter = {};
840
+ const localVarQueryParameter = {};
841
+ localVarHeaderParameter['Accept'] = 'application/json';
842
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
843
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
844
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
845
+ return {
846
+ url: toPathString(localVarUrlObj),
847
+ options: localVarRequestOptions,
848
+ };
849
+ }),
850
+ /**
851
+ *
852
+ * @summary Get processed document by ID
853
+ * @param {string} projectId
854
+ * @param {string} instanceId
855
+ * @param {string} documentId
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ documentProcessingControllerGetDocument: (projectId_1, instanceId_1, documentId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, documentId_1, ...args_1], void 0, function* (projectId, instanceId, documentId, options = {}) {
860
+ // verify required parameter 'projectId' is not null or undefined
861
+ assertParamExists('documentProcessingControllerGetDocument', 'projectId', projectId);
862
+ // verify required parameter 'instanceId' is not null or undefined
863
+ assertParamExists('documentProcessingControllerGetDocument', 'instanceId', instanceId);
864
+ // verify required parameter 'documentId' is not null or undefined
865
+ assertParamExists('documentProcessingControllerGetDocument', 'documentId', documentId);
866
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/documents/{documentId}`
867
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
868
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
869
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
870
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
871
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
872
+ let baseOptions;
873
+ if (configuration) {
874
+ baseOptions = configuration.baseOptions;
875
+ }
876
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
877
+ const localVarHeaderParameter = {};
878
+ const localVarQueryParameter = {};
879
+ localVarHeaderParameter['Accept'] = 'application/json';
880
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
881
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
882
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
883
+ return {
884
+ url: toPathString(localVarUrlObj),
885
+ options: localVarRequestOptions,
886
+ };
887
+ }),
888
+ /**
889
+ *
890
+ * @summary Get evaluation details by document ID and eval ID
891
+ * @param {string} projectId
892
+ * @param {string} instanceId
893
+ * @param {string} documentId
894
+ * @param {string} evalId
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ documentProcessingControllerGetEval: (projectId_1, instanceId_1, documentId_1, evalId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, documentId_1, evalId_1, ...args_1], void 0, function* (projectId, instanceId, documentId, evalId, options = {}) {
899
+ // verify required parameter 'projectId' is not null or undefined
900
+ assertParamExists('documentProcessingControllerGetEval', 'projectId', projectId);
901
+ // verify required parameter 'instanceId' is not null or undefined
902
+ assertParamExists('documentProcessingControllerGetEval', 'instanceId', instanceId);
903
+ // verify required parameter 'documentId' is not null or undefined
904
+ assertParamExists('documentProcessingControllerGetEval', 'documentId', documentId);
905
+ // verify required parameter 'evalId' is not null or undefined
906
+ assertParamExists('documentProcessingControllerGetEval', 'evalId', evalId);
907
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/documents/{documentId}/evals/{evalId}`
908
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
909
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
910
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)))
911
+ .replace(`{${"evalId"}}`, encodeURIComponent(String(evalId)));
912
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
913
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
914
+ let baseOptions;
915
+ if (configuration) {
916
+ baseOptions = configuration.baseOptions;
917
+ }
918
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
919
+ const localVarHeaderParameter = {};
920
+ const localVarQueryParameter = {};
921
+ localVarHeaderParameter['Accept'] = 'application/json';
922
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
923
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
924
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
925
+ return {
926
+ url: toPathString(localVarUrlObj),
927
+ options: localVarRequestOptions,
928
+ };
929
+ }),
930
+ /**
931
+ *
932
+ * @summary Get document processing API client health
933
+ * @param {string} projectId
934
+ * @param {string} instanceId
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ documentProcessingControllerGetHealth: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
939
+ // verify required parameter 'projectId' is not null or undefined
940
+ assertParamExists('documentProcessingControllerGetHealth', 'projectId', projectId);
941
+ // verify required parameter 'instanceId' is not null or undefined
942
+ assertParamExists('documentProcessingControllerGetHealth', 'instanceId', instanceId);
943
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/health`
944
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
945
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
946
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
947
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
948
+ let baseOptions;
949
+ if (configuration) {
950
+ baseOptions = configuration.baseOptions;
951
+ }
952
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
953
+ const localVarHeaderParameter = {};
954
+ const localVarQueryParameter = {};
955
+ localVarHeaderParameter['Accept'] = 'application/json';
956
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
958
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
959
+ return {
960
+ url: toPathString(localVarUrlObj),
961
+ options: localVarRequestOptions,
962
+ };
963
+ }),
964
+ /**
965
+ *
966
+ * @summary Get processing job details by ID
967
+ * @param {string} projectId
968
+ * @param {string} instanceId
969
+ * @param {string} jobId
970
+ * @param {*} [options] Override http request option.
971
+ * @throws {RequiredError}
972
+ */
973
+ documentProcessingControllerGetJob: (projectId_1, instanceId_1, jobId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, jobId_1, ...args_1], void 0, function* (projectId, instanceId, jobId, options = {}) {
974
+ // verify required parameter 'projectId' is not null or undefined
975
+ assertParamExists('documentProcessingControllerGetJob', 'projectId', projectId);
976
+ // verify required parameter 'instanceId' is not null or undefined
977
+ assertParamExists('documentProcessingControllerGetJob', 'instanceId', instanceId);
978
+ // verify required parameter 'jobId' is not null or undefined
979
+ assertParamExists('documentProcessingControllerGetJob', 'jobId', jobId);
980
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/jobs/{jobId}`
981
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
982
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
983
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
986
+ let baseOptions;
987
+ if (configuration) {
988
+ baseOptions = configuration.baseOptions;
989
+ }
990
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
991
+ const localVarHeaderParameter = {};
992
+ const localVarQueryParameter = {};
993
+ localVarHeaderParameter['Accept'] = 'application/json';
994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
996
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
997
+ return {
998
+ url: toPathString(localVarUrlObj),
999
+ options: localVarRequestOptions,
1000
+ };
1001
+ }),
1002
+ /**
1003
+ *
1004
+ * @summary Get processing job status (lightweight)
1005
+ * @param {string} projectId
1006
+ * @param {string} instanceId
1007
+ * @param {string} jobId
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ documentProcessingControllerGetJobStatus: (projectId_1, instanceId_1, jobId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, jobId_1, ...args_1], void 0, function* (projectId, instanceId, jobId, options = {}) {
1012
+ // verify required parameter 'projectId' is not null or undefined
1013
+ assertParamExists('documentProcessingControllerGetJobStatus', 'projectId', projectId);
1014
+ // verify required parameter 'instanceId' is not null or undefined
1015
+ assertParamExists('documentProcessingControllerGetJobStatus', 'instanceId', instanceId);
1016
+ // verify required parameter 'jobId' is not null or undefined
1017
+ assertParamExists('documentProcessingControllerGetJobStatus', 'jobId', jobId);
1018
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/jobs/{jobId}/status`
1019
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1020
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
1021
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
1022
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1023
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1024
+ let baseOptions;
1025
+ if (configuration) {
1026
+ baseOptions = configuration.baseOptions;
1027
+ }
1028
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1029
+ const localVarHeaderParameter = {};
1030
+ const localVarQueryParameter = {};
1031
+ localVarHeaderParameter['Accept'] = 'application/json';
1032
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1033
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1034
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1035
+ return {
1036
+ url: toPathString(localVarUrlObj),
1037
+ options: localVarRequestOptions,
1038
+ };
1039
+ }),
1040
+ /**
1041
+ *
1042
+ * @summary Get processing profile by ID
1043
+ * @param {string} projectId
1044
+ * @param {string} instanceId
1045
+ * @param {string} profileId
1046
+ * @param {*} [options] Override http request option.
1047
+ * @throws {RequiredError}
1048
+ */
1049
+ documentProcessingControllerGetProfile: (projectId_1, instanceId_1, profileId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, profileId_1, ...args_1], void 0, function* (projectId, instanceId, profileId, options = {}) {
1050
+ // verify required parameter 'projectId' is not null or undefined
1051
+ assertParamExists('documentProcessingControllerGetProfile', 'projectId', projectId);
1052
+ // verify required parameter 'instanceId' is not null or undefined
1053
+ assertParamExists('documentProcessingControllerGetProfile', 'instanceId', instanceId);
1054
+ // verify required parameter 'profileId' is not null or undefined
1055
+ assertParamExists('documentProcessingControllerGetProfile', 'profileId', profileId);
1056
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/profiles/{profileId}`
1057
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1058
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
1059
+ .replace(`{${"profileId"}}`, encodeURIComponent(String(profileId)));
1060
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1061
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1062
+ let baseOptions;
1063
+ if (configuration) {
1064
+ baseOptions = configuration.baseOptions;
1065
+ }
1066
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1067
+ const localVarHeaderParameter = {};
1068
+ const localVarQueryParameter = {};
1069
+ localVarHeaderParameter['Accept'] = 'application/json';
1070
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1072
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1073
+ return {
1074
+ url: toPathString(localVarUrlObj),
1075
+ options: localVarRequestOptions,
1076
+ };
1077
+ }),
1078
+ /**
1079
+ *
1080
+ * @summary Get profile schema for YAML configuration
1081
+ * @param {string} projectId
1082
+ * @param {string} instanceId
1083
+ * @param {*} [options] Override http request option.
1084
+ * @throws {RequiredError}
1085
+ */
1086
+ documentProcessingControllerGetProfileSchema: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
1087
+ // verify required parameter 'projectId' is not null or undefined
1088
+ assertParamExists('documentProcessingControllerGetProfileSchema', 'projectId', projectId);
1089
+ // verify required parameter 'instanceId' is not null or undefined
1090
+ assertParamExists('documentProcessingControllerGetProfileSchema', 'instanceId', instanceId);
1091
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/profiles/schema`
1092
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1093
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1094
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1095
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1096
+ let baseOptions;
1097
+ if (configuration) {
1098
+ baseOptions = configuration.baseOptions;
1099
+ }
1100
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1101
+ const localVarHeaderParameter = {};
1102
+ const localVarQueryParameter = {};
1103
+ localVarHeaderParameter['Accept'] = 'application/json';
1104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1106
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1107
+ return {
1108
+ url: toPathString(localVarUrlObj),
1109
+ options: localVarRequestOptions,
1110
+ };
1111
+ }),
1112
+ /**
1113
+ *
1114
+ * @summary Get batch query details by ID
1115
+ * @param {string} projectId
1116
+ * @param {string} instanceId
1117
+ * @param {string} queryId
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ documentProcessingControllerGetQuery: (projectId_1, instanceId_1, queryId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, queryId_1, ...args_1], void 0, function* (projectId, instanceId, queryId, options = {}) {
1122
+ // verify required parameter 'projectId' is not null or undefined
1123
+ assertParamExists('documentProcessingControllerGetQuery', 'projectId', projectId);
1124
+ // verify required parameter 'instanceId' is not null or undefined
1125
+ assertParamExists('documentProcessingControllerGetQuery', 'instanceId', instanceId);
1126
+ // verify required parameter 'queryId' is not null or undefined
1127
+ assertParamExists('documentProcessingControllerGetQuery', 'queryId', queryId);
1128
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/queries/{queryId}`
1129
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1130
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
1131
+ .replace(`{${"queryId"}}`, encodeURIComponent(String(queryId)));
1132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1134
+ let baseOptions;
1135
+ if (configuration) {
1136
+ baseOptions = configuration.baseOptions;
1137
+ }
1138
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1139
+ const localVarHeaderParameter = {};
1140
+ const localVarQueryParameter = {};
1141
+ localVarHeaderParameter['Accept'] = 'application/json';
1142
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1144
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1145
+ return {
1146
+ url: toPathString(localVarUrlObj),
1147
+ options: localVarRequestOptions,
1148
+ };
1149
+ }),
1150
+ /**
1151
+ *
1152
+ * @summary Get webhook details by ID
1153
+ * @param {string} projectId
1154
+ * @param {string} instanceId
1155
+ * @param {string} webhookId
1156
+ * @param {*} [options] Override http request option.
1157
+ * @throws {RequiredError}
1158
+ */
1159
+ documentProcessingControllerGetWebhook: (projectId_1, instanceId_1, webhookId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, webhookId_1, ...args_1], void 0, function* (projectId, instanceId, webhookId, options = {}) {
1160
+ // verify required parameter 'projectId' is not null or undefined
1161
+ assertParamExists('documentProcessingControllerGetWebhook', 'projectId', projectId);
1162
+ // verify required parameter 'instanceId' is not null or undefined
1163
+ assertParamExists('documentProcessingControllerGetWebhook', 'instanceId', instanceId);
1164
+ // verify required parameter 'webhookId' is not null or undefined
1165
+ assertParamExists('documentProcessingControllerGetWebhook', 'webhookId', webhookId);
1166
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/webhooks/{webhookId}`
1167
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1168
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
1169
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
1170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1172
+ let baseOptions;
1173
+ if (configuration) {
1174
+ baseOptions = configuration.baseOptions;
1175
+ }
1176
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1177
+ const localVarHeaderParameter = {};
1178
+ const localVarQueryParameter = {};
1179
+ localVarHeaderParameter['Accept'] = 'application/json';
1180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1182
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1183
+ return {
1184
+ url: toPathString(localVarUrlObj),
1185
+ options: localVarRequestOptions,
1186
+ };
1187
+ }),
1188
+ /**
1189
+ *
1190
+ * @summary List processed documents with pagination and filters
1191
+ * @param {string} projectId
1192
+ * @param {string} instanceId
1193
+ * @param {*} [options] Override http request option.
1194
+ * @throws {RequiredError}
1195
+ */
1196
+ documentProcessingControllerListDocuments: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
1197
+ // verify required parameter 'projectId' is not null or undefined
1198
+ assertParamExists('documentProcessingControllerListDocuments', 'projectId', projectId);
1199
+ // verify required parameter 'instanceId' is not null or undefined
1200
+ assertParamExists('documentProcessingControllerListDocuments', 'instanceId', instanceId);
1201
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/documents`
1202
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1203
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1204
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1205
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1206
+ let baseOptions;
1207
+ if (configuration) {
1208
+ baseOptions = configuration.baseOptions;
1209
+ }
1210
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1211
+ const localVarHeaderParameter = {};
1212
+ const localVarQueryParameter = {};
1213
+ localVarHeaderParameter['Accept'] = 'application/json';
1214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1216
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1217
+ return {
1218
+ url: toPathString(localVarUrlObj),
1219
+ options: localVarRequestOptions,
1220
+ };
1221
+ }),
1222
+ /**
1223
+ *
1224
+ * @summary List evaluations for a document with pagination
1225
+ * @param {string} projectId
1226
+ * @param {string} instanceId
1227
+ * @param {string} documentId
1228
+ * @param {*} [options] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ */
1231
+ documentProcessingControllerListEvals: (projectId_1, instanceId_1, documentId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, documentId_1, ...args_1], void 0, function* (projectId, instanceId, documentId, options = {}) {
1232
+ // verify required parameter 'projectId' is not null or undefined
1233
+ assertParamExists('documentProcessingControllerListEvals', 'projectId', projectId);
1234
+ // verify required parameter 'instanceId' is not null or undefined
1235
+ assertParamExists('documentProcessingControllerListEvals', 'instanceId', instanceId);
1236
+ // verify required parameter 'documentId' is not null or undefined
1237
+ assertParamExists('documentProcessingControllerListEvals', 'documentId', documentId);
1238
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/documents/{documentId}/evals`
1239
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1240
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
1241
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
1242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1244
+ let baseOptions;
1245
+ if (configuration) {
1246
+ baseOptions = configuration.baseOptions;
1247
+ }
1248
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1249
+ const localVarHeaderParameter = {};
1250
+ const localVarQueryParameter = {};
1251
+ localVarHeaderParameter['Accept'] = 'application/json';
1252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1254
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1255
+ return {
1256
+ url: toPathString(localVarUrlObj),
1257
+ options: localVarRequestOptions,
1258
+ };
1259
+ }),
1260
+ /**
1261
+ *
1262
+ * @summary List processing jobs with pagination
1263
+ * @param {string} projectId
1264
+ * @param {string} instanceId
1265
+ * @param {*} [options] Override http request option.
1266
+ * @throws {RequiredError}
1267
+ */
1268
+ documentProcessingControllerListJobs: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
1269
+ // verify required parameter 'projectId' is not null or undefined
1270
+ assertParamExists('documentProcessingControllerListJobs', 'projectId', projectId);
1271
+ // verify required parameter 'instanceId' is not null or undefined
1272
+ assertParamExists('documentProcessingControllerListJobs', 'instanceId', instanceId);
1273
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/jobs`
1274
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1275
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1276
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1278
+ let baseOptions;
1279
+ if (configuration) {
1280
+ baseOptions = configuration.baseOptions;
1281
+ }
1282
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1283
+ const localVarHeaderParameter = {};
1284
+ const localVarQueryParameter = {};
1285
+ localVarHeaderParameter['Accept'] = 'application/json';
1286
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1288
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1289
+ return {
1290
+ url: toPathString(localVarUrlObj),
1291
+ options: localVarRequestOptions,
1292
+ };
1293
+ }),
1294
+ /**
1295
+ *
1296
+ * @summary List processing profiles with pagination
1297
+ * @param {string} projectId
1298
+ * @param {string} instanceId
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ */
1302
+ documentProcessingControllerListProfiles: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
1303
+ // verify required parameter 'projectId' is not null or undefined
1304
+ assertParamExists('documentProcessingControllerListProfiles', 'projectId', projectId);
1305
+ // verify required parameter 'instanceId' is not null or undefined
1306
+ assertParamExists('documentProcessingControllerListProfiles', 'instanceId', instanceId);
1307
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/profiles`
1308
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1309
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1310
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1311
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1312
+ let baseOptions;
1313
+ if (configuration) {
1314
+ baseOptions = configuration.baseOptions;
1315
+ }
1316
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1317
+ const localVarHeaderParameter = {};
1318
+ const localVarQueryParameter = {};
1319
+ localVarHeaderParameter['Accept'] = 'application/json';
1320
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1321
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1322
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1323
+ return {
1324
+ url: toPathString(localVarUrlObj),
1325
+ options: localVarRequestOptions,
1326
+ };
1327
+ }),
1328
+ /**
1329
+ *
1330
+ * @summary List batch queries with pagination and filters
1331
+ * @param {string} projectId
1332
+ * @param {string} instanceId
1333
+ * @param {*} [options] Override http request option.
1334
+ * @throws {RequiredError}
1335
+ */
1336
+ documentProcessingControllerListQueries: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
1337
+ // verify required parameter 'projectId' is not null or undefined
1338
+ assertParamExists('documentProcessingControllerListQueries', 'projectId', projectId);
1339
+ // verify required parameter 'instanceId' is not null or undefined
1340
+ assertParamExists('documentProcessingControllerListQueries', 'instanceId', instanceId);
1341
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/queries`
1342
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1343
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1345
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1346
+ let baseOptions;
1347
+ if (configuration) {
1348
+ baseOptions = configuration.baseOptions;
1349
+ }
1350
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1351
+ const localVarHeaderParameter = {};
1352
+ const localVarQueryParameter = {};
1353
+ localVarHeaderParameter['Accept'] = 'application/json';
1354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1356
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1357
+ return {
1358
+ url: toPathString(localVarUrlObj),
1359
+ options: localVarRequestOptions,
1360
+ };
1361
+ }),
1362
+ /**
1363
+ *
1364
+ * @summary List webhooks with pagination
1365
+ * @param {string} projectId
1366
+ * @param {string} instanceId
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ */
1370
+ documentProcessingControllerListWebhooks: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
1371
+ // verify required parameter 'projectId' is not null or undefined
1372
+ assertParamExists('documentProcessingControllerListWebhooks', 'projectId', projectId);
1373
+ // verify required parameter 'instanceId' is not null or undefined
1374
+ assertParamExists('documentProcessingControllerListWebhooks', 'instanceId', instanceId);
1375
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/webhooks`
1376
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1377
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1378
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1379
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1380
+ let baseOptions;
1381
+ if (configuration) {
1382
+ baseOptions = configuration.baseOptions;
1383
+ }
1384
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1385
+ const localVarHeaderParameter = {};
1386
+ const localVarQueryParameter = {};
1387
+ localVarHeaderParameter['Accept'] = 'application/json';
1388
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1389
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1390
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1391
+ return {
1392
+ url: toPathString(localVarUrlObj),
1393
+ options: localVarRequestOptions,
1394
+ };
1395
+ }),
1396
+ /**
1397
+ *
1398
+ * @summary Update webhook configuration
1399
+ * @param {string} projectId
1400
+ * @param {string} instanceId
1401
+ * @param {string} webhookId
1402
+ * @param {*} [options] Override http request option.
1403
+ * @throws {RequiredError}
1404
+ */
1405
+ documentProcessingControllerUpdateWebhook: (projectId_1, instanceId_1, webhookId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, webhookId_1, ...args_1], void 0, function* (projectId, instanceId, webhookId, options = {}) {
1406
+ // verify required parameter 'projectId' is not null or undefined
1407
+ assertParamExists('documentProcessingControllerUpdateWebhook', 'projectId', projectId);
1408
+ // verify required parameter 'instanceId' is not null or undefined
1409
+ assertParamExists('documentProcessingControllerUpdateWebhook', 'instanceId', instanceId);
1410
+ // verify required parameter 'webhookId' is not null or undefined
1411
+ assertParamExists('documentProcessingControllerUpdateWebhook', 'webhookId', webhookId);
1412
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/webhooks/{webhookId}`
1413
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1414
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
1415
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
1416
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1417
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1418
+ let baseOptions;
1419
+ if (configuration) {
1420
+ baseOptions = configuration.baseOptions;
1421
+ }
1422
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1423
+ const localVarHeaderParameter = {};
1424
+ const localVarQueryParameter = {};
1425
+ localVarHeaderParameter['Accept'] = 'application/json';
1426
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1428
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1429
+ return {
1430
+ url: toPathString(localVarUrlObj),
1431
+ options: localVarRequestOptions,
1432
+ };
1433
+ }),
1434
+ /**
1435
+ *
1436
+ * @summary Validate eval YAML without creating evaluation
1437
+ * @param {string} projectId
1438
+ * @param {string} instanceId
1439
+ * @param {string} documentId
1440
+ * @param {*} [options] Override http request option.
1441
+ * @throws {RequiredError}
1442
+ */
1443
+ documentProcessingControllerValidateEvalYaml: (projectId_1, instanceId_1, documentId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, documentId_1, ...args_1], void 0, function* (projectId, instanceId, documentId, options = {}) {
1444
+ // verify required parameter 'projectId' is not null or undefined
1445
+ assertParamExists('documentProcessingControllerValidateEvalYaml', 'projectId', projectId);
1446
+ // verify required parameter 'instanceId' is not null or undefined
1447
+ assertParamExists('documentProcessingControllerValidateEvalYaml', 'instanceId', instanceId);
1448
+ // verify required parameter 'documentId' is not null or undefined
1449
+ assertParamExists('documentProcessingControllerValidateEvalYaml', 'documentId', documentId);
1450
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/documents/{documentId}/evals/validate`
1451
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1452
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
1453
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
1454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1455
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1456
+ let baseOptions;
1457
+ if (configuration) {
1458
+ baseOptions = configuration.baseOptions;
1459
+ }
1460
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1461
+ const localVarHeaderParameter = {};
1462
+ const localVarQueryParameter = {};
1463
+ localVarHeaderParameter['Accept'] = 'application/json';
1464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1466
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1467
+ return {
1468
+ url: toPathString(localVarUrlObj),
1469
+ options: localVarRequestOptions,
1470
+ };
1471
+ }),
1472
+ /**
1473
+ *
1474
+ * @summary Validate batch query YAML without creating query
1475
+ * @param {string} projectId
1476
+ * @param {string} instanceId
1477
+ * @param {*} [options] Override http request option.
1478
+ * @throws {RequiredError}
1479
+ */
1480
+ documentProcessingControllerValidateQueryYaml: (projectId_1, instanceId_1, ...args_1) => __awaiter(this, [projectId_1, instanceId_1, ...args_1], void 0, function* (projectId, instanceId, options = {}) {
1481
+ // verify required parameter 'projectId' is not null or undefined
1482
+ assertParamExists('documentProcessingControllerValidateQueryYaml', 'projectId', projectId);
1483
+ // verify required parameter 'instanceId' is not null or undefined
1484
+ assertParamExists('documentProcessingControllerValidateQueryYaml', 'instanceId', instanceId);
1485
+ const localVarPath = `/projects/{projectId}/document-processing/{instanceId}/queries/validate`
1486
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
1487
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1488
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1489
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1490
+ let baseOptions;
1491
+ if (configuration) {
1492
+ baseOptions = configuration.baseOptions;
1493
+ }
1494
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1495
+ const localVarHeaderParameter = {};
1496
+ const localVarQueryParameter = {};
1497
+ localVarHeaderParameter['Accept'] = 'application/json';
1498
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1500
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1501
+ return {
1502
+ url: toPathString(localVarUrlObj),
1503
+ options: localVarRequestOptions,
1504
+ };
1505
+ }),
1506
+ };
1507
+ };
1508
+ /**
1509
+ * DocumentProcessingApi - functional programming interface
1510
+ */
1511
+ export const DocumentProcessingApiFp = function (configuration) {
1512
+ const localVarAxiosParamCreator = DocumentProcessingApiAxiosParamCreator(configuration);
1513
+ return {
1514
+ /**
1515
+ *
1516
+ * @summary Create batch query from YAML file
1517
+ * @param {string} projectId
1518
+ * @param {string} instanceId
1519
+ * @param {*} [options] Override http request option.
1520
+ * @throws {RequiredError}
1521
+ */
1522
+ documentProcessingControllerCreateBatchQuery(projectId, instanceId, options) {
1523
+ return __awaiter(this, void 0, void 0, function* () {
1524
+ var _a, _b, _c;
1525
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerCreateBatchQuery(projectId, instanceId, options);
1526
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1527
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerCreateBatchQuery']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1528
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1529
+ });
1530
+ },
1531
+ /**
1532
+ *
1533
+ * @summary Create document processing job by uploading file
1534
+ * @param {string} projectId
1535
+ * @param {string} instanceId
1536
+ * @param {*} [options] Override http request option.
1537
+ * @throws {RequiredError}
1538
+ */
1539
+ documentProcessingControllerCreateDocumentProcessingJob(projectId, instanceId, options) {
1540
+ return __awaiter(this, void 0, void 0, function* () {
1541
+ var _a, _b, _c;
1542
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerCreateDocumentProcessingJob(projectId, instanceId, options);
1543
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1544
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerCreateDocumentProcessingJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1545
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1546
+ });
1547
+ },
1548
+ /**
1549
+ *
1550
+ * @summary Create evaluation from YAML file
1551
+ * @param {string} projectId
1552
+ * @param {string} instanceId
1553
+ * @param {*} [options] Override http request option.
1554
+ * @throws {RequiredError}
1555
+ */
1556
+ documentProcessingControllerCreateEval(projectId, instanceId, options) {
1557
+ return __awaiter(this, void 0, void 0, function* () {
1558
+ var _a, _b, _c;
1559
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerCreateEval(projectId, instanceId, options);
1560
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1561
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerCreateEval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1563
+ });
1564
+ },
1565
+ /**
1566
+ *
1567
+ * @summary Create processing profile from YAML
1568
+ * @param {string} projectId
1569
+ * @param {string} instanceId
1570
+ * @param {*} [options] Override http request option.
1571
+ * @throws {RequiredError}
1572
+ */
1573
+ documentProcessingControllerCreateProfile(projectId, instanceId, options) {
1574
+ return __awaiter(this, void 0, void 0, function* () {
1575
+ var _a, _b, _c;
1576
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerCreateProfile(projectId, instanceId, options);
1577
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1578
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerCreateProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1579
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1580
+ });
1581
+ },
1582
+ /**
1583
+ *
1584
+ * @summary Create webhook for receiving notifications
1585
+ * @param {string} projectId
1586
+ * @param {string} instanceId
1587
+ * @param {*} [options] Override http request option.
1588
+ * @throws {RequiredError}
1589
+ */
1590
+ documentProcessingControllerCreateWebhook(projectId, instanceId, options) {
1591
+ return __awaiter(this, void 0, void 0, function* () {
1592
+ var _a, _b, _c;
1593
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerCreateWebhook(projectId, instanceId, options);
1594
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1595
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerCreateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1597
+ });
1598
+ },
1599
+ /**
1600
+ *
1601
+ * @summary Delete webhook
1602
+ * @param {string} projectId
1603
+ * @param {string} instanceId
1604
+ * @param {string} webhookId
1605
+ * @param {*} [options] Override http request option.
1606
+ * @throws {RequiredError}
1607
+ */
1608
+ documentProcessingControllerDeleteWebhook(projectId, instanceId, webhookId, options) {
1609
+ return __awaiter(this, void 0, void 0, function* () {
1610
+ var _a, _b, _c;
1611
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerDeleteWebhook(projectId, instanceId, webhookId, options);
1612
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1613
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerDeleteWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1614
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1615
+ });
1616
+ },
1617
+ /**
1618
+ *
1619
+ * @summary Download document artifacts as archive
1620
+ * @param {string} projectId
1621
+ * @param {string} instanceId
1622
+ * @param {string} documentId
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ */
1626
+ documentProcessingControllerDownloadDocumentArtifacts(projectId, instanceId, documentId, options) {
1627
+ return __awaiter(this, void 0, void 0, function* () {
1628
+ var _a, _b, _c;
1629
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerDownloadDocumentArtifacts(projectId, instanceId, documentId, options);
1630
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1631
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerDownloadDocumentArtifacts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1632
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1633
+ });
1634
+ },
1635
+ /**
1636
+ *
1637
+ * @summary Get processed document by ID
1638
+ * @param {string} projectId
1639
+ * @param {string} instanceId
1640
+ * @param {string} documentId
1641
+ * @param {*} [options] Override http request option.
1642
+ * @throws {RequiredError}
1643
+ */
1644
+ documentProcessingControllerGetDocument(projectId, instanceId, documentId, options) {
1645
+ return __awaiter(this, void 0, void 0, function* () {
1646
+ var _a, _b, _c;
1647
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetDocument(projectId, instanceId, documentId, options);
1648
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1649
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1650
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1651
+ });
1652
+ },
1653
+ /**
1654
+ *
1655
+ * @summary Get evaluation details by document ID and eval ID
1656
+ * @param {string} projectId
1657
+ * @param {string} instanceId
1658
+ * @param {string} documentId
1659
+ * @param {string} evalId
1660
+ * @param {*} [options] Override http request option.
1661
+ * @throws {RequiredError}
1662
+ */
1663
+ documentProcessingControllerGetEval(projectId, instanceId, documentId, evalId, options) {
1664
+ return __awaiter(this, void 0, void 0, function* () {
1665
+ var _a, _b, _c;
1666
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetEval(projectId, instanceId, documentId, evalId, options);
1667
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1668
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetEval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1669
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1670
+ });
1671
+ },
1672
+ /**
1673
+ *
1674
+ * @summary Get document processing API client health
1675
+ * @param {string} projectId
1676
+ * @param {string} instanceId
1677
+ * @param {*} [options] Override http request option.
1678
+ * @throws {RequiredError}
1679
+ */
1680
+ documentProcessingControllerGetHealth(projectId, instanceId, options) {
1681
+ return __awaiter(this, void 0, void 0, function* () {
1682
+ var _a, _b, _c;
1683
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetHealth(projectId, instanceId, options);
1684
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1685
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1686
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1687
+ });
1688
+ },
1689
+ /**
1690
+ *
1691
+ * @summary Get processing job details by ID
1692
+ * @param {string} projectId
1693
+ * @param {string} instanceId
1694
+ * @param {string} jobId
1695
+ * @param {*} [options] Override http request option.
1696
+ * @throws {RequiredError}
1697
+ */
1698
+ documentProcessingControllerGetJob(projectId, instanceId, jobId, options) {
1699
+ return __awaiter(this, void 0, void 0, function* () {
1700
+ var _a, _b, _c;
1701
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetJob(projectId, instanceId, jobId, options);
1702
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1703
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1705
+ });
1706
+ },
1707
+ /**
1708
+ *
1709
+ * @summary Get processing job status (lightweight)
1710
+ * @param {string} projectId
1711
+ * @param {string} instanceId
1712
+ * @param {string} jobId
1713
+ * @param {*} [options] Override http request option.
1714
+ * @throws {RequiredError}
1715
+ */
1716
+ documentProcessingControllerGetJobStatus(projectId, instanceId, jobId, options) {
1717
+ return __awaiter(this, void 0, void 0, function* () {
1718
+ var _a, _b, _c;
1719
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetJobStatus(projectId, instanceId, jobId, options);
1720
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1721
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetJobStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1722
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1723
+ });
1724
+ },
1725
+ /**
1726
+ *
1727
+ * @summary Get processing profile by ID
1728
+ * @param {string} projectId
1729
+ * @param {string} instanceId
1730
+ * @param {string} profileId
1731
+ * @param {*} [options] Override http request option.
1732
+ * @throws {RequiredError}
1733
+ */
1734
+ documentProcessingControllerGetProfile(projectId, instanceId, profileId, options) {
1735
+ return __awaiter(this, void 0, void 0, function* () {
1736
+ var _a, _b, _c;
1737
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetProfile(projectId, instanceId, profileId, options);
1738
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1739
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1740
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1741
+ });
1742
+ },
1743
+ /**
1744
+ *
1745
+ * @summary Get profile schema for YAML configuration
1746
+ * @param {string} projectId
1747
+ * @param {string} instanceId
1748
+ * @param {*} [options] Override http request option.
1749
+ * @throws {RequiredError}
1750
+ */
1751
+ documentProcessingControllerGetProfileSchema(projectId, instanceId, options) {
1752
+ return __awaiter(this, void 0, void 0, function* () {
1753
+ var _a, _b, _c;
1754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetProfileSchema(projectId, instanceId, options);
1755
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1756
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetProfileSchema']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1757
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1758
+ });
1759
+ },
1760
+ /**
1761
+ *
1762
+ * @summary Get batch query details by ID
1763
+ * @param {string} projectId
1764
+ * @param {string} instanceId
1765
+ * @param {string} queryId
1766
+ * @param {*} [options] Override http request option.
1767
+ * @throws {RequiredError}
1768
+ */
1769
+ documentProcessingControllerGetQuery(projectId, instanceId, queryId, options) {
1770
+ return __awaiter(this, void 0, void 0, function* () {
1771
+ var _a, _b, _c;
1772
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetQuery(projectId, instanceId, queryId, options);
1773
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1774
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetQuery']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1775
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1776
+ });
1777
+ },
1778
+ /**
1779
+ *
1780
+ * @summary Get webhook details by ID
1781
+ * @param {string} projectId
1782
+ * @param {string} instanceId
1783
+ * @param {string} webhookId
1784
+ * @param {*} [options] Override http request option.
1785
+ * @throws {RequiredError}
1786
+ */
1787
+ documentProcessingControllerGetWebhook(projectId, instanceId, webhookId, options) {
1788
+ return __awaiter(this, void 0, void 0, function* () {
1789
+ var _a, _b, _c;
1790
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerGetWebhook(projectId, instanceId, webhookId, options);
1791
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1792
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerGetWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1794
+ });
1795
+ },
1796
+ /**
1797
+ *
1798
+ * @summary List processed documents with pagination and filters
1799
+ * @param {string} projectId
1800
+ * @param {string} instanceId
1801
+ * @param {*} [options] Override http request option.
1802
+ * @throws {RequiredError}
1803
+ */
1804
+ documentProcessingControllerListDocuments(projectId, instanceId, options) {
1805
+ return __awaiter(this, void 0, void 0, function* () {
1806
+ var _a, _b, _c;
1807
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerListDocuments(projectId, instanceId, options);
1808
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1809
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerListDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1810
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1811
+ });
1812
+ },
1813
+ /**
1814
+ *
1815
+ * @summary List evaluations for a document with pagination
1816
+ * @param {string} projectId
1817
+ * @param {string} instanceId
1818
+ * @param {string} documentId
1819
+ * @param {*} [options] Override http request option.
1820
+ * @throws {RequiredError}
1821
+ */
1822
+ documentProcessingControllerListEvals(projectId, instanceId, documentId, options) {
1823
+ return __awaiter(this, void 0, void 0, function* () {
1824
+ var _a, _b, _c;
1825
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerListEvals(projectId, instanceId, documentId, options);
1826
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1827
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerListEvals']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1828
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1829
+ });
1830
+ },
1831
+ /**
1832
+ *
1833
+ * @summary List processing jobs with pagination
1834
+ * @param {string} projectId
1835
+ * @param {string} instanceId
1836
+ * @param {*} [options] Override http request option.
1837
+ * @throws {RequiredError}
1838
+ */
1839
+ documentProcessingControllerListJobs(projectId, instanceId, options) {
1840
+ return __awaiter(this, void 0, void 0, function* () {
1841
+ var _a, _b, _c;
1842
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerListJobs(projectId, instanceId, options);
1843
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1844
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerListJobs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1845
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1846
+ });
1847
+ },
1848
+ /**
1849
+ *
1850
+ * @summary List processing profiles with pagination
1851
+ * @param {string} projectId
1852
+ * @param {string} instanceId
1853
+ * @param {*} [options] Override http request option.
1854
+ * @throws {RequiredError}
1855
+ */
1856
+ documentProcessingControllerListProfiles(projectId, instanceId, options) {
1857
+ return __awaiter(this, void 0, void 0, function* () {
1858
+ var _a, _b, _c;
1859
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerListProfiles(projectId, instanceId, options);
1860
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1861
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerListProfiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1862
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1863
+ });
1864
+ },
1865
+ /**
1866
+ *
1867
+ * @summary List batch queries with pagination and filters
1868
+ * @param {string} projectId
1869
+ * @param {string} instanceId
1870
+ * @param {*} [options] Override http request option.
1871
+ * @throws {RequiredError}
1872
+ */
1873
+ documentProcessingControllerListQueries(projectId, instanceId, options) {
1874
+ return __awaiter(this, void 0, void 0, function* () {
1875
+ var _a, _b, _c;
1876
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerListQueries(projectId, instanceId, options);
1877
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1878
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerListQueries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1879
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1880
+ });
1881
+ },
1882
+ /**
1883
+ *
1884
+ * @summary List webhooks with pagination
1885
+ * @param {string} projectId
1886
+ * @param {string} instanceId
1887
+ * @param {*} [options] Override http request option.
1888
+ * @throws {RequiredError}
1889
+ */
1890
+ documentProcessingControllerListWebhooks(projectId, instanceId, options) {
1891
+ return __awaiter(this, void 0, void 0, function* () {
1892
+ var _a, _b, _c;
1893
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerListWebhooks(projectId, instanceId, options);
1894
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1895
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerListWebhooks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1896
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1897
+ });
1898
+ },
1899
+ /**
1900
+ *
1901
+ * @summary Update webhook configuration
1902
+ * @param {string} projectId
1903
+ * @param {string} instanceId
1904
+ * @param {string} webhookId
1905
+ * @param {*} [options] Override http request option.
1906
+ * @throws {RequiredError}
1907
+ */
1908
+ documentProcessingControllerUpdateWebhook(projectId, instanceId, webhookId, options) {
1909
+ return __awaiter(this, void 0, void 0, function* () {
1910
+ var _a, _b, _c;
1911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerUpdateWebhook(projectId, instanceId, webhookId, options);
1912
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1913
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerUpdateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1914
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1915
+ });
1916
+ },
1917
+ /**
1918
+ *
1919
+ * @summary Validate eval YAML without creating evaluation
1920
+ * @param {string} projectId
1921
+ * @param {string} instanceId
1922
+ * @param {string} documentId
1923
+ * @param {*} [options] Override http request option.
1924
+ * @throws {RequiredError}
1925
+ */
1926
+ documentProcessingControllerValidateEvalYaml(projectId, instanceId, documentId, options) {
1927
+ return __awaiter(this, void 0, void 0, function* () {
1928
+ var _a, _b, _c;
1929
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerValidateEvalYaml(projectId, instanceId, documentId, options);
1930
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1931
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerValidateEvalYaml']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1932
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1933
+ });
1934
+ },
1935
+ /**
1936
+ *
1937
+ * @summary Validate batch query YAML without creating query
1938
+ * @param {string} projectId
1939
+ * @param {string} instanceId
1940
+ * @param {*} [options] Override http request option.
1941
+ * @throws {RequiredError}
1942
+ */
1943
+ documentProcessingControllerValidateQueryYaml(projectId, instanceId, options) {
1944
+ return __awaiter(this, void 0, void 0, function* () {
1945
+ var _a, _b, _c;
1946
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentProcessingControllerValidateQueryYaml(projectId, instanceId, options);
1947
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1948
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentProcessingApi.documentProcessingControllerValidateQueryYaml']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1949
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1950
+ });
1951
+ },
1952
+ };
1953
+ };
1954
+ /**
1955
+ * DocumentProcessingApi - factory interface
1956
+ */
1957
+ export const DocumentProcessingApiFactory = function (configuration, basePath, axios) {
1958
+ const localVarFp = DocumentProcessingApiFp(configuration);
1959
+ return {
1960
+ /**
1961
+ *
1962
+ * @summary Create batch query from YAML file
1963
+ * @param {string} projectId
1964
+ * @param {string} instanceId
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ */
1968
+ documentProcessingControllerCreateBatchQuery(projectId, instanceId, options) {
1969
+ return localVarFp.documentProcessingControllerCreateBatchQuery(projectId, instanceId, options).then((request) => request(axios, basePath));
1970
+ },
1971
+ /**
1972
+ *
1973
+ * @summary Create document processing job by uploading file
1974
+ * @param {string} projectId
1975
+ * @param {string} instanceId
1976
+ * @param {*} [options] Override http request option.
1977
+ * @throws {RequiredError}
1978
+ */
1979
+ documentProcessingControllerCreateDocumentProcessingJob(projectId, instanceId, options) {
1980
+ return localVarFp.documentProcessingControllerCreateDocumentProcessingJob(projectId, instanceId, options).then((request) => request(axios, basePath));
1981
+ },
1982
+ /**
1983
+ *
1984
+ * @summary Create evaluation from YAML file
1985
+ * @param {string} projectId
1986
+ * @param {string} instanceId
1987
+ * @param {*} [options] Override http request option.
1988
+ * @throws {RequiredError}
1989
+ */
1990
+ documentProcessingControllerCreateEval(projectId, instanceId, options) {
1991
+ return localVarFp.documentProcessingControllerCreateEval(projectId, instanceId, options).then((request) => request(axios, basePath));
1992
+ },
1993
+ /**
1994
+ *
1995
+ * @summary Create processing profile from YAML
1996
+ * @param {string} projectId
1997
+ * @param {string} instanceId
1998
+ * @param {*} [options] Override http request option.
1999
+ * @throws {RequiredError}
2000
+ */
2001
+ documentProcessingControllerCreateProfile(projectId, instanceId, options) {
2002
+ return localVarFp.documentProcessingControllerCreateProfile(projectId, instanceId, options).then((request) => request(axios, basePath));
2003
+ },
2004
+ /**
2005
+ *
2006
+ * @summary Create webhook for receiving notifications
2007
+ * @param {string} projectId
2008
+ * @param {string} instanceId
2009
+ * @param {*} [options] Override http request option.
2010
+ * @throws {RequiredError}
2011
+ */
2012
+ documentProcessingControllerCreateWebhook(projectId, instanceId, options) {
2013
+ return localVarFp.documentProcessingControllerCreateWebhook(projectId, instanceId, options).then((request) => request(axios, basePath));
2014
+ },
2015
+ /**
2016
+ *
2017
+ * @summary Delete webhook
2018
+ * @param {string} projectId
2019
+ * @param {string} instanceId
2020
+ * @param {string} webhookId
2021
+ * @param {*} [options] Override http request option.
2022
+ * @throws {RequiredError}
2023
+ */
2024
+ documentProcessingControllerDeleteWebhook(projectId, instanceId, webhookId, options) {
2025
+ return localVarFp.documentProcessingControllerDeleteWebhook(projectId, instanceId, webhookId, options).then((request) => request(axios, basePath));
2026
+ },
2027
+ /**
2028
+ *
2029
+ * @summary Download document artifacts as archive
2030
+ * @param {string} projectId
2031
+ * @param {string} instanceId
2032
+ * @param {string} documentId
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ */
2036
+ documentProcessingControllerDownloadDocumentArtifacts(projectId, instanceId, documentId, options) {
2037
+ return localVarFp.documentProcessingControllerDownloadDocumentArtifacts(projectId, instanceId, documentId, options).then((request) => request(axios, basePath));
2038
+ },
2039
+ /**
2040
+ *
2041
+ * @summary Get processed document by ID
2042
+ * @param {string} projectId
2043
+ * @param {string} instanceId
2044
+ * @param {string} documentId
2045
+ * @param {*} [options] Override http request option.
2046
+ * @throws {RequiredError}
2047
+ */
2048
+ documentProcessingControllerGetDocument(projectId, instanceId, documentId, options) {
2049
+ return localVarFp.documentProcessingControllerGetDocument(projectId, instanceId, documentId, options).then((request) => request(axios, basePath));
2050
+ },
2051
+ /**
2052
+ *
2053
+ * @summary Get evaluation details by document ID and eval ID
2054
+ * @param {string} projectId
2055
+ * @param {string} instanceId
2056
+ * @param {string} documentId
2057
+ * @param {string} evalId
2058
+ * @param {*} [options] Override http request option.
2059
+ * @throws {RequiredError}
2060
+ */
2061
+ documentProcessingControllerGetEval(projectId, instanceId, documentId, evalId, options) {
2062
+ return localVarFp.documentProcessingControllerGetEval(projectId, instanceId, documentId, evalId, options).then((request) => request(axios, basePath));
2063
+ },
2064
+ /**
2065
+ *
2066
+ * @summary Get document processing API client health
2067
+ * @param {string} projectId
2068
+ * @param {string} instanceId
2069
+ * @param {*} [options] Override http request option.
2070
+ * @throws {RequiredError}
2071
+ */
2072
+ documentProcessingControllerGetHealth(projectId, instanceId, options) {
2073
+ return localVarFp.documentProcessingControllerGetHealth(projectId, instanceId, options).then((request) => request(axios, basePath));
2074
+ },
2075
+ /**
2076
+ *
2077
+ * @summary Get processing job details by ID
2078
+ * @param {string} projectId
2079
+ * @param {string} instanceId
2080
+ * @param {string} jobId
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ */
2084
+ documentProcessingControllerGetJob(projectId, instanceId, jobId, options) {
2085
+ return localVarFp.documentProcessingControllerGetJob(projectId, instanceId, jobId, options).then((request) => request(axios, basePath));
2086
+ },
2087
+ /**
2088
+ *
2089
+ * @summary Get processing job status (lightweight)
2090
+ * @param {string} projectId
2091
+ * @param {string} instanceId
2092
+ * @param {string} jobId
2093
+ * @param {*} [options] Override http request option.
2094
+ * @throws {RequiredError}
2095
+ */
2096
+ documentProcessingControllerGetJobStatus(projectId, instanceId, jobId, options) {
2097
+ return localVarFp.documentProcessingControllerGetJobStatus(projectId, instanceId, jobId, options).then((request) => request(axios, basePath));
2098
+ },
2099
+ /**
2100
+ *
2101
+ * @summary Get processing profile by ID
2102
+ * @param {string} projectId
2103
+ * @param {string} instanceId
2104
+ * @param {string} profileId
2105
+ * @param {*} [options] Override http request option.
2106
+ * @throws {RequiredError}
2107
+ */
2108
+ documentProcessingControllerGetProfile(projectId, instanceId, profileId, options) {
2109
+ return localVarFp.documentProcessingControllerGetProfile(projectId, instanceId, profileId, options).then((request) => request(axios, basePath));
2110
+ },
2111
+ /**
2112
+ *
2113
+ * @summary Get profile schema for YAML configuration
2114
+ * @param {string} projectId
2115
+ * @param {string} instanceId
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ */
2119
+ documentProcessingControllerGetProfileSchema(projectId, instanceId, options) {
2120
+ return localVarFp.documentProcessingControllerGetProfileSchema(projectId, instanceId, options).then((request) => request(axios, basePath));
2121
+ },
2122
+ /**
2123
+ *
2124
+ * @summary Get batch query details by ID
2125
+ * @param {string} projectId
2126
+ * @param {string} instanceId
2127
+ * @param {string} queryId
2128
+ * @param {*} [options] Override http request option.
2129
+ * @throws {RequiredError}
2130
+ */
2131
+ documentProcessingControllerGetQuery(projectId, instanceId, queryId, options) {
2132
+ return localVarFp.documentProcessingControllerGetQuery(projectId, instanceId, queryId, options).then((request) => request(axios, basePath));
2133
+ },
2134
+ /**
2135
+ *
2136
+ * @summary Get webhook details by ID
2137
+ * @param {string} projectId
2138
+ * @param {string} instanceId
2139
+ * @param {string} webhookId
2140
+ * @param {*} [options] Override http request option.
2141
+ * @throws {RequiredError}
2142
+ */
2143
+ documentProcessingControllerGetWebhook(projectId, instanceId, webhookId, options) {
2144
+ return localVarFp.documentProcessingControllerGetWebhook(projectId, instanceId, webhookId, options).then((request) => request(axios, basePath));
2145
+ },
2146
+ /**
2147
+ *
2148
+ * @summary List processed documents with pagination and filters
2149
+ * @param {string} projectId
2150
+ * @param {string} instanceId
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ documentProcessingControllerListDocuments(projectId, instanceId, options) {
2155
+ return localVarFp.documentProcessingControllerListDocuments(projectId, instanceId, options).then((request) => request(axios, basePath));
2156
+ },
2157
+ /**
2158
+ *
2159
+ * @summary List evaluations for a document with pagination
2160
+ * @param {string} projectId
2161
+ * @param {string} instanceId
2162
+ * @param {string} documentId
2163
+ * @param {*} [options] Override http request option.
2164
+ * @throws {RequiredError}
2165
+ */
2166
+ documentProcessingControllerListEvals(projectId, instanceId, documentId, options) {
2167
+ return localVarFp.documentProcessingControllerListEvals(projectId, instanceId, documentId, options).then((request) => request(axios, basePath));
2168
+ },
2169
+ /**
2170
+ *
2171
+ * @summary List processing jobs with pagination
2172
+ * @param {string} projectId
2173
+ * @param {string} instanceId
2174
+ * @param {*} [options] Override http request option.
2175
+ * @throws {RequiredError}
2176
+ */
2177
+ documentProcessingControllerListJobs(projectId, instanceId, options) {
2178
+ return localVarFp.documentProcessingControllerListJobs(projectId, instanceId, options).then((request) => request(axios, basePath));
2179
+ },
2180
+ /**
2181
+ *
2182
+ * @summary List processing profiles with pagination
2183
+ * @param {string} projectId
2184
+ * @param {string} instanceId
2185
+ * @param {*} [options] Override http request option.
2186
+ * @throws {RequiredError}
2187
+ */
2188
+ documentProcessingControllerListProfiles(projectId, instanceId, options) {
2189
+ return localVarFp.documentProcessingControllerListProfiles(projectId, instanceId, options).then((request) => request(axios, basePath));
2190
+ },
2191
+ /**
2192
+ *
2193
+ * @summary List batch queries with pagination and filters
2194
+ * @param {string} projectId
2195
+ * @param {string} instanceId
2196
+ * @param {*} [options] Override http request option.
2197
+ * @throws {RequiredError}
2198
+ */
2199
+ documentProcessingControllerListQueries(projectId, instanceId, options) {
2200
+ return localVarFp.documentProcessingControllerListQueries(projectId, instanceId, options).then((request) => request(axios, basePath));
2201
+ },
2202
+ /**
2203
+ *
2204
+ * @summary List webhooks with pagination
2205
+ * @param {string} projectId
2206
+ * @param {string} instanceId
2207
+ * @param {*} [options] Override http request option.
2208
+ * @throws {RequiredError}
2209
+ */
2210
+ documentProcessingControllerListWebhooks(projectId, instanceId, options) {
2211
+ return localVarFp.documentProcessingControllerListWebhooks(projectId, instanceId, options).then((request) => request(axios, basePath));
2212
+ },
2213
+ /**
2214
+ *
2215
+ * @summary Update webhook configuration
2216
+ * @param {string} projectId
2217
+ * @param {string} instanceId
2218
+ * @param {string} webhookId
2219
+ * @param {*} [options] Override http request option.
2220
+ * @throws {RequiredError}
2221
+ */
2222
+ documentProcessingControllerUpdateWebhook(projectId, instanceId, webhookId, options) {
2223
+ return localVarFp.documentProcessingControllerUpdateWebhook(projectId, instanceId, webhookId, options).then((request) => request(axios, basePath));
2224
+ },
2225
+ /**
2226
+ *
2227
+ * @summary Validate eval YAML without creating evaluation
2228
+ * @param {string} projectId
2229
+ * @param {string} instanceId
2230
+ * @param {string} documentId
2231
+ * @param {*} [options] Override http request option.
2232
+ * @throws {RequiredError}
2233
+ */
2234
+ documentProcessingControllerValidateEvalYaml(projectId, instanceId, documentId, options) {
2235
+ return localVarFp.documentProcessingControllerValidateEvalYaml(projectId, instanceId, documentId, options).then((request) => request(axios, basePath));
2236
+ },
2237
+ /**
2238
+ *
2239
+ * @summary Validate batch query YAML without creating query
2240
+ * @param {string} projectId
2241
+ * @param {string} instanceId
2242
+ * @param {*} [options] Override http request option.
2243
+ * @throws {RequiredError}
2244
+ */
2245
+ documentProcessingControllerValidateQueryYaml(projectId, instanceId, options) {
2246
+ return localVarFp.documentProcessingControllerValidateQueryYaml(projectId, instanceId, options).then((request) => request(axios, basePath));
2247
+ },
2248
+ };
2249
+ };
2250
+ /**
2251
+ * DocumentProcessingApi - object-oriented interface
2252
+ */
2253
+ export class DocumentProcessingApi extends BaseAPI {
2254
+ /**
2255
+ *
2256
+ * @summary Create batch query from YAML file
2257
+ * @param {string} projectId
2258
+ * @param {string} instanceId
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ documentProcessingControllerCreateBatchQuery(projectId, instanceId, options) {
2263
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerCreateBatchQuery(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2264
+ }
2265
+ /**
2266
+ *
2267
+ * @summary Create document processing job by uploading file
2268
+ * @param {string} projectId
2269
+ * @param {string} instanceId
2270
+ * @param {*} [options] Override http request option.
2271
+ * @throws {RequiredError}
2272
+ */
2273
+ documentProcessingControllerCreateDocumentProcessingJob(projectId, instanceId, options) {
2274
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerCreateDocumentProcessingJob(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2275
+ }
2276
+ /**
2277
+ *
2278
+ * @summary Create evaluation from YAML file
2279
+ * @param {string} projectId
2280
+ * @param {string} instanceId
2281
+ * @param {*} [options] Override http request option.
2282
+ * @throws {RequiredError}
2283
+ */
2284
+ documentProcessingControllerCreateEval(projectId, instanceId, options) {
2285
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerCreateEval(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2286
+ }
2287
+ /**
2288
+ *
2289
+ * @summary Create processing profile from YAML
2290
+ * @param {string} projectId
2291
+ * @param {string} instanceId
2292
+ * @param {*} [options] Override http request option.
2293
+ * @throws {RequiredError}
2294
+ */
2295
+ documentProcessingControllerCreateProfile(projectId, instanceId, options) {
2296
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerCreateProfile(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2297
+ }
2298
+ /**
2299
+ *
2300
+ * @summary Create webhook for receiving notifications
2301
+ * @param {string} projectId
2302
+ * @param {string} instanceId
2303
+ * @param {*} [options] Override http request option.
2304
+ * @throws {RequiredError}
2305
+ */
2306
+ documentProcessingControllerCreateWebhook(projectId, instanceId, options) {
2307
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerCreateWebhook(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2308
+ }
2309
+ /**
2310
+ *
2311
+ * @summary Delete webhook
2312
+ * @param {string} projectId
2313
+ * @param {string} instanceId
2314
+ * @param {string} webhookId
2315
+ * @param {*} [options] Override http request option.
2316
+ * @throws {RequiredError}
2317
+ */
2318
+ documentProcessingControllerDeleteWebhook(projectId, instanceId, webhookId, options) {
2319
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerDeleteWebhook(projectId, instanceId, webhookId, options).then((request) => request(this.axios, this.basePath));
2320
+ }
2321
+ /**
2322
+ *
2323
+ * @summary Download document artifacts as archive
2324
+ * @param {string} projectId
2325
+ * @param {string} instanceId
2326
+ * @param {string} documentId
2327
+ * @param {*} [options] Override http request option.
2328
+ * @throws {RequiredError}
2329
+ */
2330
+ documentProcessingControllerDownloadDocumentArtifacts(projectId, instanceId, documentId, options) {
2331
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerDownloadDocumentArtifacts(projectId, instanceId, documentId, options).then((request) => request(this.axios, this.basePath));
2332
+ }
2333
+ /**
2334
+ *
2335
+ * @summary Get processed document by ID
2336
+ * @param {string} projectId
2337
+ * @param {string} instanceId
2338
+ * @param {string} documentId
2339
+ * @param {*} [options] Override http request option.
2340
+ * @throws {RequiredError}
2341
+ */
2342
+ documentProcessingControllerGetDocument(projectId, instanceId, documentId, options) {
2343
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetDocument(projectId, instanceId, documentId, options).then((request) => request(this.axios, this.basePath));
2344
+ }
2345
+ /**
2346
+ *
2347
+ * @summary Get evaluation details by document ID and eval ID
2348
+ * @param {string} projectId
2349
+ * @param {string} instanceId
2350
+ * @param {string} documentId
2351
+ * @param {string} evalId
2352
+ * @param {*} [options] Override http request option.
2353
+ * @throws {RequiredError}
2354
+ */
2355
+ documentProcessingControllerGetEval(projectId, instanceId, documentId, evalId, options) {
2356
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetEval(projectId, instanceId, documentId, evalId, options).then((request) => request(this.axios, this.basePath));
2357
+ }
2358
+ /**
2359
+ *
2360
+ * @summary Get document processing API client health
2361
+ * @param {string} projectId
2362
+ * @param {string} instanceId
2363
+ * @param {*} [options] Override http request option.
2364
+ * @throws {RequiredError}
2365
+ */
2366
+ documentProcessingControllerGetHealth(projectId, instanceId, options) {
2367
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetHealth(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2368
+ }
2369
+ /**
2370
+ *
2371
+ * @summary Get processing job details by ID
2372
+ * @param {string} projectId
2373
+ * @param {string} instanceId
2374
+ * @param {string} jobId
2375
+ * @param {*} [options] Override http request option.
2376
+ * @throws {RequiredError}
2377
+ */
2378
+ documentProcessingControllerGetJob(projectId, instanceId, jobId, options) {
2379
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetJob(projectId, instanceId, jobId, options).then((request) => request(this.axios, this.basePath));
2380
+ }
2381
+ /**
2382
+ *
2383
+ * @summary Get processing job status (lightweight)
2384
+ * @param {string} projectId
2385
+ * @param {string} instanceId
2386
+ * @param {string} jobId
2387
+ * @param {*} [options] Override http request option.
2388
+ * @throws {RequiredError}
2389
+ */
2390
+ documentProcessingControllerGetJobStatus(projectId, instanceId, jobId, options) {
2391
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetJobStatus(projectId, instanceId, jobId, options).then((request) => request(this.axios, this.basePath));
2392
+ }
2393
+ /**
2394
+ *
2395
+ * @summary Get processing profile by ID
2396
+ * @param {string} projectId
2397
+ * @param {string} instanceId
2398
+ * @param {string} profileId
2399
+ * @param {*} [options] Override http request option.
2400
+ * @throws {RequiredError}
2401
+ */
2402
+ documentProcessingControllerGetProfile(projectId, instanceId, profileId, options) {
2403
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetProfile(projectId, instanceId, profileId, options).then((request) => request(this.axios, this.basePath));
2404
+ }
2405
+ /**
2406
+ *
2407
+ * @summary Get profile schema for YAML configuration
2408
+ * @param {string} projectId
2409
+ * @param {string} instanceId
2410
+ * @param {*} [options] Override http request option.
2411
+ * @throws {RequiredError}
2412
+ */
2413
+ documentProcessingControllerGetProfileSchema(projectId, instanceId, options) {
2414
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetProfileSchema(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2415
+ }
2416
+ /**
2417
+ *
2418
+ * @summary Get batch query details by ID
2419
+ * @param {string} projectId
2420
+ * @param {string} instanceId
2421
+ * @param {string} queryId
2422
+ * @param {*} [options] Override http request option.
2423
+ * @throws {RequiredError}
2424
+ */
2425
+ documentProcessingControllerGetQuery(projectId, instanceId, queryId, options) {
2426
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetQuery(projectId, instanceId, queryId, options).then((request) => request(this.axios, this.basePath));
2427
+ }
2428
+ /**
2429
+ *
2430
+ * @summary Get webhook details by ID
2431
+ * @param {string} projectId
2432
+ * @param {string} instanceId
2433
+ * @param {string} webhookId
2434
+ * @param {*} [options] Override http request option.
2435
+ * @throws {RequiredError}
2436
+ */
2437
+ documentProcessingControllerGetWebhook(projectId, instanceId, webhookId, options) {
2438
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerGetWebhook(projectId, instanceId, webhookId, options).then((request) => request(this.axios, this.basePath));
2439
+ }
2440
+ /**
2441
+ *
2442
+ * @summary List processed documents with pagination and filters
2443
+ * @param {string} projectId
2444
+ * @param {string} instanceId
2445
+ * @param {*} [options] Override http request option.
2446
+ * @throws {RequiredError}
2447
+ */
2448
+ documentProcessingControllerListDocuments(projectId, instanceId, options) {
2449
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerListDocuments(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2450
+ }
2451
+ /**
2452
+ *
2453
+ * @summary List evaluations for a document with pagination
2454
+ * @param {string} projectId
2455
+ * @param {string} instanceId
2456
+ * @param {string} documentId
2457
+ * @param {*} [options] Override http request option.
2458
+ * @throws {RequiredError}
2459
+ */
2460
+ documentProcessingControllerListEvals(projectId, instanceId, documentId, options) {
2461
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerListEvals(projectId, instanceId, documentId, options).then((request) => request(this.axios, this.basePath));
2462
+ }
2463
+ /**
2464
+ *
2465
+ * @summary List processing jobs with pagination
2466
+ * @param {string} projectId
2467
+ * @param {string} instanceId
2468
+ * @param {*} [options] Override http request option.
2469
+ * @throws {RequiredError}
2470
+ */
2471
+ documentProcessingControllerListJobs(projectId, instanceId, options) {
2472
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerListJobs(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2473
+ }
2474
+ /**
2475
+ *
2476
+ * @summary List processing profiles with pagination
2477
+ * @param {string} projectId
2478
+ * @param {string} instanceId
2479
+ * @param {*} [options] Override http request option.
2480
+ * @throws {RequiredError}
2481
+ */
2482
+ documentProcessingControllerListProfiles(projectId, instanceId, options) {
2483
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerListProfiles(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2484
+ }
2485
+ /**
2486
+ *
2487
+ * @summary List batch queries with pagination and filters
2488
+ * @param {string} projectId
2489
+ * @param {string} instanceId
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ */
2493
+ documentProcessingControllerListQueries(projectId, instanceId, options) {
2494
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerListQueries(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2495
+ }
2496
+ /**
2497
+ *
2498
+ * @summary List webhooks with pagination
2499
+ * @param {string} projectId
2500
+ * @param {string} instanceId
2501
+ * @param {*} [options] Override http request option.
2502
+ * @throws {RequiredError}
2503
+ */
2504
+ documentProcessingControllerListWebhooks(projectId, instanceId, options) {
2505
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerListWebhooks(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2506
+ }
2507
+ /**
2508
+ *
2509
+ * @summary Update webhook configuration
2510
+ * @param {string} projectId
2511
+ * @param {string} instanceId
2512
+ * @param {string} webhookId
2513
+ * @param {*} [options] Override http request option.
2514
+ * @throws {RequiredError}
2515
+ */
2516
+ documentProcessingControllerUpdateWebhook(projectId, instanceId, webhookId, options) {
2517
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerUpdateWebhook(projectId, instanceId, webhookId, options).then((request) => request(this.axios, this.basePath));
2518
+ }
2519
+ /**
2520
+ *
2521
+ * @summary Validate eval YAML without creating evaluation
2522
+ * @param {string} projectId
2523
+ * @param {string} instanceId
2524
+ * @param {string} documentId
2525
+ * @param {*} [options] Override http request option.
2526
+ * @throws {RequiredError}
2527
+ */
2528
+ documentProcessingControllerValidateEvalYaml(projectId, instanceId, documentId, options) {
2529
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerValidateEvalYaml(projectId, instanceId, documentId, options).then((request) => request(this.axios, this.basePath));
2530
+ }
2531
+ /**
2532
+ *
2533
+ * @summary Validate batch query YAML without creating query
2534
+ * @param {string} projectId
2535
+ * @param {string} instanceId
2536
+ * @param {*} [options] Override http request option.
2537
+ * @throws {RequiredError}
2538
+ */
2539
+ documentProcessingControllerValidateQueryYaml(projectId, instanceId, options) {
2540
+ return DocumentProcessingApiFp(this.configuration).documentProcessingControllerValidateQueryYaml(projectId, instanceId, options).then((request) => request(this.axios, this.basePath));
2541
+ }
2542
+ }
599
2543
  /**
600
2544
  * DocumentsApi - axios parameter creator
601
2545
  */