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