@nestbox-ai/doc-processing-api 0.0.1 → 1.0.62

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.
Files changed (73) hide show
  1. package/.openapi-generator/FILES +53 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +120 -44
  5. package/api.ts +2970 -0
  6. package/base.ts +62 -0
  7. package/common.ts +126 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +1771 -0
  10. package/dist/api.js +2280 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +46 -0
  13. package/dist/common.d.ts +34 -0
  14. package/dist/common.js +138 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +1771 -0
  18. package/dist/esm/api.js +2241 -0
  19. package/dist/esm/base.d.ts +42 -0
  20. package/dist/esm/base.js +41 -0
  21. package/dist/esm/common.d.ts +34 -0
  22. package/dist/esm/common.js +125 -0
  23. package/dist/esm/configuration.d.ts +98 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/ArtifactsApi.md +61 -0
  30. package/docs/BatchQueryDto.md +34 -0
  31. package/docs/CreateWebhookInputDto.md +20 -0
  32. package/docs/DocumentCreateResponseDto.md +22 -0
  33. package/docs/DocumentDto.md +38 -0
  34. package/docs/DocumentSourcesResponseDto.md +20 -0
  35. package/docs/DocumentsApi.md +186 -0
  36. package/docs/ErrorDto.md +26 -0
  37. package/docs/EvalCreateResponseDto.md +22 -0
  38. package/docs/EvalDto.md +36 -0
  39. package/docs/EvalsApi.md +243 -0
  40. package/docs/GpuDeviceDto.md +28 -0
  41. package/docs/GpuHealthCheckDto.md +26 -0
  42. package/docs/HealthApi.md +53 -0
  43. package/docs/HealthCheckItemDto.md +26 -0
  44. package/docs/HealthChecksDto.md +24 -0
  45. package/docs/HealthResponseDto.md +24 -0
  46. package/docs/JobDto.md +48 -0
  47. package/docs/JobLinksDto.md +22 -0
  48. package/docs/JobStatusDto.md +32 -0
  49. package/docs/JobsApi.md +170 -0
  50. package/docs/PaginatedDocumentsDto.md +22 -0
  51. package/docs/PaginatedEvalsDto.md +22 -0
  52. package/docs/PaginatedJobsDto.md +22 -0
  53. package/docs/PaginatedProfilesDto.md +22 -0
  54. package/docs/PaginatedQueriesDto.md +22 -0
  55. package/docs/PaginatedWebhooksDto.md +22 -0
  56. package/docs/PaginationDto.md +24 -0
  57. package/docs/ProfileDto.md +32 -0
  58. package/docs/ProfilesApi.md +220 -0
  59. package/docs/QueriesApi.md +232 -0
  60. package/docs/QueryCreateResponseDto.md +22 -0
  61. package/docs/SourceItemDto.md +32 -0
  62. package/docs/SourcesApi.md +67 -0
  63. package/docs/UpdateWebhookBodyInputDto.md +20 -0
  64. package/docs/ValidationErrorDto.md +26 -0
  65. package/docs/ValidationIssueDto.md +24 -0
  66. package/docs/ValidationResultDto.md +24 -0
  67. package/docs/WebhookDto.md +26 -0
  68. package/docs/WebhooksApi.md +280 -0
  69. package/git_push.sh +57 -0
  70. package/index.ts +18 -0
  71. package/package.json +29 -6
  72. package/tsconfig.esm.json +7 -0
  73. package/tsconfig.json +18 -0
package/dist/api.js ADDED
@@ -0,0 +1,2280 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nestbox API Documents Processing API
6
+ * API for Nestbox Documents Processing
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.SourcesApi = exports.SourcesApiFactory = exports.SourcesApiFp = exports.SourcesApiAxiosParamCreator = exports.QueriesApi = exports.QueriesApiFactory = exports.QueriesApiFp = exports.QueriesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.EvalsApi = exports.EvalsApiFactory = exports.EvalsApiFp = exports.EvalsApiAxiosParamCreator = exports.DocumentsControllerCreateDocumentPriorityEnum = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.ArtifactsApi = exports.ArtifactsApiFactory = exports.ArtifactsApiFp = exports.ArtifactsApiAxiosParamCreator = exports.ValidationIssueDtoSeverityEnum = exports.JobStatusDtoStateEnum = exports.JobDtoStateEnum = exports.JobDtoTypeEnum = exports.HealthResponseDtoStatusEnum = exports.HealthCheckItemDtoStatusEnum = exports.GpuHealthCheckDtoStatusEnum = exports.EvalDtoStatusEnum = exports.DocumentDtoStatusEnum = exports.BatchQueryDtoStatusEnum = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ exports.BatchQueryDtoStatusEnum = {
33
+ Queued: 'queued',
34
+ Running: 'running',
35
+ Completed: 'completed',
36
+ Failed: 'failed'
37
+ };
38
+ exports.DocumentDtoStatusEnum = {
39
+ Queued: 'queued',
40
+ Processing: 'processing',
41
+ Ready: 'ready',
42
+ Failed: 'failed',
43
+ Deleted: 'deleted'
44
+ };
45
+ exports.EvalDtoStatusEnum = {
46
+ Queued: 'queued',
47
+ Running: 'running',
48
+ Completed: 'completed',
49
+ Failed: 'failed'
50
+ };
51
+ exports.GpuHealthCheckDtoStatusEnum = {
52
+ Ok: 'ok',
53
+ Degraded: 'degraded',
54
+ Down: 'down'
55
+ };
56
+ exports.HealthCheckItemDtoStatusEnum = {
57
+ Ok: 'ok',
58
+ Degraded: 'degraded',
59
+ Down: 'down'
60
+ };
61
+ exports.HealthResponseDtoStatusEnum = {
62
+ Ok: 'ok',
63
+ Degraded: 'degraded',
64
+ Down: 'down'
65
+ };
66
+ exports.JobDtoTypeEnum = {
67
+ DocumentProcessing: 'document_processing',
68
+ Evaluation: 'evaluation',
69
+ BatchQuery: 'batch_query',
70
+ Other: 'other'
71
+ };
72
+ exports.JobDtoStateEnum = {
73
+ Pending: 'pending',
74
+ Processing: 'processing',
75
+ Completed: 'completed',
76
+ Failed: 'failed',
77
+ Canceled: 'canceled'
78
+ };
79
+ exports.JobStatusDtoStateEnum = {
80
+ Pending: 'pending',
81
+ Processing: 'processing',
82
+ Completed: 'completed',
83
+ Failed: 'failed',
84
+ Canceled: 'canceled'
85
+ };
86
+ exports.ValidationIssueDtoSeverityEnum = {
87
+ Error: 'error',
88
+ Warning: 'warning'
89
+ };
90
+ /**
91
+ * ArtifactsApi - axios parameter creator
92
+ */
93
+ const ArtifactsApiAxiosParamCreator = function (configuration) {
94
+ return {
95
+ /**
96
+ * Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
97
+ * @summary Download document artifacts
98
+ * @param {string} documentId Document ID.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ artifactsControllerDownloadDocumentArtifacts: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
103
+ // verify required parameter 'documentId' is not null or undefined
104
+ (0, common_1.assertParamExists)('artifactsControllerDownloadDocumentArtifacts', 'documentId', documentId);
105
+ const localVarPath = `/documents/{documentId}/artifacts`
106
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
109
+ let baseOptions;
110
+ if (configuration) {
111
+ baseOptions = configuration.baseOptions;
112
+ }
113
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
114
+ const localVarHeaderParameter = {};
115
+ const localVarQueryParameter = {};
116
+ localVarHeaderParameter['Accept'] = 'application/json';
117
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
119
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
120
+ return {
121
+ url: (0, common_1.toPathString)(localVarUrlObj),
122
+ options: localVarRequestOptions,
123
+ };
124
+ }),
125
+ };
126
+ };
127
+ exports.ArtifactsApiAxiosParamCreator = ArtifactsApiAxiosParamCreator;
128
+ /**
129
+ * ArtifactsApi - functional programming interface
130
+ */
131
+ const ArtifactsApiFp = function (configuration) {
132
+ const localVarAxiosParamCreator = (0, exports.ArtifactsApiAxiosParamCreator)(configuration);
133
+ return {
134
+ /**
135
+ * Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
136
+ * @summary Download document artifacts
137
+ * @param {string} documentId Document ID.
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ artifactsControllerDownloadDocumentArtifacts(documentId, options) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ var _a, _b, _c;
144
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.artifactsControllerDownloadDocumentArtifacts(documentId, options);
145
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
146
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArtifactsApi.artifactsControllerDownloadDocumentArtifacts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
147
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
148
+ });
149
+ },
150
+ };
151
+ };
152
+ exports.ArtifactsApiFp = ArtifactsApiFp;
153
+ /**
154
+ * ArtifactsApi - factory interface
155
+ */
156
+ const ArtifactsApiFactory = function (configuration, basePath, axios) {
157
+ const localVarFp = (0, exports.ArtifactsApiFp)(configuration);
158
+ return {
159
+ /**
160
+ * Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
161
+ * @summary Download document artifacts
162
+ * @param {string} documentId Document ID.
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ artifactsControllerDownloadDocumentArtifacts(documentId, options) {
167
+ return localVarFp.artifactsControllerDownloadDocumentArtifacts(documentId, options).then((request) => request(axios, basePath));
168
+ },
169
+ };
170
+ };
171
+ exports.ArtifactsApiFactory = ArtifactsApiFactory;
172
+ /**
173
+ * ArtifactsApi - object-oriented interface
174
+ */
175
+ class ArtifactsApi extends base_1.BaseAPI {
176
+ /**
177
+ * Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
178
+ * @summary Download document artifacts
179
+ * @param {string} documentId Document ID.
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ artifactsControllerDownloadDocumentArtifacts(documentId, options) {
184
+ return (0, exports.ArtifactsApiFp)(this.configuration).artifactsControllerDownloadDocumentArtifacts(documentId, options).then((request) => request(this.axios, this.basePath));
185
+ }
186
+ }
187
+ exports.ArtifactsApi = ArtifactsApi;
188
+ /**
189
+ * DocumentsApi - axios parameter creator
190
+ */
191
+ const DocumentsApiAxiosParamCreator = function (configuration) {
192
+ return {
193
+ /**
194
+ * Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
195
+ * @summary Create document processing job
196
+ * @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
197
+ * @param {File} file Document file to process (pdf/md/html/docx/etc).
198
+ * @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
199
+ * @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
200
+ * @param {boolean} [visualize] Whether to generate graph visualization artifacts.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ documentsControllerCreateDocument: (profileId_1, file_1, stages_1, priority_1, visualize_1, ...args_1) => __awaiter(this, [profileId_1, file_1, stages_1, priority_1, visualize_1, ...args_1], void 0, function* (profileId, file, stages, priority, visualize, options = {}) {
205
+ // verify required parameter 'profileId' is not null or undefined
206
+ (0, common_1.assertParamExists)('documentsControllerCreateDocument', 'profileId', profileId);
207
+ // verify required parameter 'file' is not null or undefined
208
+ (0, common_1.assertParamExists)('documentsControllerCreateDocument', 'file', file);
209
+ const localVarPath = `/documents`;
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
220
+ if (profileId !== undefined) {
221
+ localVarFormParams.append('profileId', profileId);
222
+ }
223
+ if (file !== undefined) {
224
+ localVarFormParams.append('file', file);
225
+ }
226
+ if (stages !== undefined) {
227
+ localVarFormParams.append('stages', stages);
228
+ }
229
+ if (priority !== undefined) {
230
+ localVarFormParams.append('priority', priority);
231
+ }
232
+ if (visualize !== undefined) {
233
+ localVarFormParams.append('visualize', String(visualize));
234
+ }
235
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
236
+ localVarHeaderParameter['Accept'] = 'application/json';
237
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
240
+ localVarRequestOptions.data = localVarFormParams;
241
+ return {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ };
245
+ }),
246
+ /**
247
+ *
248
+ * @summary Read document
249
+ * @param {string} documentId Document ID.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ documentsControllerGetDocument: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
254
+ // verify required parameter 'documentId' is not null or undefined
255
+ (0, common_1.assertParamExists)('documentsControllerGetDocument', 'documentId', documentId);
256
+ const localVarPath = `/documents/{documentId}`
257
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
258
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
259
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
260
+ let baseOptions;
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ }
264
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
265
+ const localVarHeaderParameter = {};
266
+ const localVarQueryParameter = {};
267
+ localVarHeaderParameter['Accept'] = 'application/json';
268
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
271
+ return {
272
+ url: (0, common_1.toPathString)(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ }),
276
+ /**
277
+ * List processed documents. Supports filtering by profileId.
278
+ * @summary List documents
279
+ * @param {number} [page] 1-based page number.
280
+ * @param {number} [limit] Page size.
281
+ * @param {string} [profileId] Filter documents by profile/config ID.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ documentsControllerListDocuments: (page_1, limit_1, profileId_1, ...args_1) => __awaiter(this, [page_1, limit_1, profileId_1, ...args_1], void 0, function* (page, limit, profileId, options = {}) {
286
+ const localVarPath = `/documents`;
287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
289
+ let baseOptions;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ }
293
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
294
+ const localVarHeaderParameter = {};
295
+ const localVarQueryParameter = {};
296
+ if (page !== undefined) {
297
+ localVarQueryParameter['page'] = page;
298
+ }
299
+ if (limit !== undefined) {
300
+ localVarQueryParameter['limit'] = limit;
301
+ }
302
+ if (profileId !== undefined) {
303
+ localVarQueryParameter['profileId'] = profileId;
304
+ }
305
+ localVarHeaderParameter['Accept'] = 'application/json';
306
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
309
+ return {
310
+ url: (0, common_1.toPathString)(localVarUrlObj),
311
+ options: localVarRequestOptions,
312
+ };
313
+ }),
314
+ };
315
+ };
316
+ exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
317
+ /**
318
+ * DocumentsApi - functional programming interface
319
+ */
320
+ const DocumentsApiFp = function (configuration) {
321
+ const localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
322
+ return {
323
+ /**
324
+ * Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
325
+ * @summary Create document processing job
326
+ * @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
327
+ * @param {File} file Document file to process (pdf/md/html/docx/etc).
328
+ * @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
329
+ * @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
330
+ * @param {boolean} [visualize] Whether to generate graph visualization artifacts.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ var _a, _b, _c;
337
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options);
338
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
339
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentsApi.documentsControllerCreateDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
341
+ });
342
+ },
343
+ /**
344
+ *
345
+ * @summary Read document
346
+ * @param {string} documentId Document ID.
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ documentsControllerGetDocument(documentId, options) {
351
+ return __awaiter(this, void 0, void 0, function* () {
352
+ var _a, _b, _c;
353
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentsControllerGetDocument(documentId, options);
354
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
355
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentsApi.documentsControllerGetDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
356
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
357
+ });
358
+ },
359
+ /**
360
+ * List processed documents. Supports filtering by profileId.
361
+ * @summary List documents
362
+ * @param {number} [page] 1-based page number.
363
+ * @param {number} [limit] Page size.
364
+ * @param {string} [profileId] Filter documents by profile/config ID.
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ documentsControllerListDocuments(page, limit, profileId, options) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ var _a, _b, _c;
371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.documentsControllerListDocuments(page, limit, profileId, options);
372
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
373
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentsApi.documentsControllerListDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
374
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
375
+ });
376
+ },
377
+ };
378
+ };
379
+ exports.DocumentsApiFp = DocumentsApiFp;
380
+ /**
381
+ * DocumentsApi - factory interface
382
+ */
383
+ const DocumentsApiFactory = function (configuration, basePath, axios) {
384
+ const localVarFp = (0, exports.DocumentsApiFp)(configuration);
385
+ return {
386
+ /**
387
+ * Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
388
+ * @summary Create document processing job
389
+ * @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
390
+ * @param {File} file Document file to process (pdf/md/html/docx/etc).
391
+ * @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
392
+ * @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
393
+ * @param {boolean} [visualize] Whether to generate graph visualization artifacts.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options) {
398
+ return localVarFp.documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options).then((request) => request(axios, basePath));
399
+ },
400
+ /**
401
+ *
402
+ * @summary Read document
403
+ * @param {string} documentId Document ID.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ documentsControllerGetDocument(documentId, options) {
408
+ return localVarFp.documentsControllerGetDocument(documentId, options).then((request) => request(axios, basePath));
409
+ },
410
+ /**
411
+ * List processed documents. Supports filtering by profileId.
412
+ * @summary List documents
413
+ * @param {number} [page] 1-based page number.
414
+ * @param {number} [limit] Page size.
415
+ * @param {string} [profileId] Filter documents by profile/config ID.
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ documentsControllerListDocuments(page, limit, profileId, options) {
420
+ return localVarFp.documentsControllerListDocuments(page, limit, profileId, options).then((request) => request(axios, basePath));
421
+ },
422
+ };
423
+ };
424
+ exports.DocumentsApiFactory = DocumentsApiFactory;
425
+ /**
426
+ * DocumentsApi - object-oriented interface
427
+ */
428
+ class DocumentsApi extends base_1.BaseAPI {
429
+ /**
430
+ * Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
431
+ * @summary Create document processing job
432
+ * @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
433
+ * @param {File} file Document file to process (pdf/md/html/docx/etc).
434
+ * @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
435
+ * @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
436
+ * @param {boolean} [visualize] Whether to generate graph visualization artifacts.
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options) {
441
+ return (0, exports.DocumentsApiFp)(this.configuration).documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options).then((request) => request(this.axios, this.basePath));
442
+ }
443
+ /**
444
+ *
445
+ * @summary Read document
446
+ * @param {string} documentId Document ID.
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ documentsControllerGetDocument(documentId, options) {
451
+ return (0, exports.DocumentsApiFp)(this.configuration).documentsControllerGetDocument(documentId, options).then((request) => request(this.axios, this.basePath));
452
+ }
453
+ /**
454
+ * List processed documents. Supports filtering by profileId.
455
+ * @summary List documents
456
+ * @param {number} [page] 1-based page number.
457
+ * @param {number} [limit] Page size.
458
+ * @param {string} [profileId] Filter documents by profile/config ID.
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ documentsControllerListDocuments(page, limit, profileId, options) {
463
+ return (0, exports.DocumentsApiFp)(this.configuration).documentsControllerListDocuments(page, limit, profileId, options).then((request) => request(this.axios, this.basePath));
464
+ }
465
+ }
466
+ exports.DocumentsApi = DocumentsApi;
467
+ exports.DocumentsControllerCreateDocumentPriorityEnum = {
468
+ Low: 'low',
469
+ Normal: 'normal',
470
+ High: 'high'
471
+ };
472
+ /**
473
+ * EvalsApi - axios parameter creator
474
+ */
475
+ const EvalsApiAxiosParamCreator = function (configuration) {
476
+ return {
477
+ /**
478
+ * Uploads an eval YAML (test cases) to run against a document.
479
+ * @summary Create an eval from YAML
480
+ * @param {string} documentId Document ID.
481
+ * @param {File} yaml Eval YAML file (test cases).
482
+ * @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ evalsControllerCreateEval: (documentId_1, yaml_1, watch_1, ...args_1) => __awaiter(this, [documentId_1, yaml_1, watch_1, ...args_1], void 0, function* (documentId, yaml, watch, options = {}) {
487
+ // verify required parameter 'documentId' is not null or undefined
488
+ (0, common_1.assertParamExists)('evalsControllerCreateEval', 'documentId', documentId);
489
+ // verify required parameter 'yaml' is not null or undefined
490
+ (0, common_1.assertParamExists)('evalsControllerCreateEval', 'yaml', yaml);
491
+ const localVarPath = `/documents/{documentId}/evals`
492
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
494
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
495
+ let baseOptions;
496
+ if (configuration) {
497
+ baseOptions = configuration.baseOptions;
498
+ }
499
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
500
+ const localVarHeaderParameter = {};
501
+ const localVarQueryParameter = {};
502
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
503
+ if (yaml !== undefined) {
504
+ localVarFormParams.append('yaml', yaml);
505
+ }
506
+ if (watch !== undefined) {
507
+ localVarFormParams.append('watch', String(watch));
508
+ }
509
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
510
+ localVarHeaderParameter['Accept'] = 'application/json';
511
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
512
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
513
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
514
+ localVarRequestOptions.data = localVarFormParams;
515
+ return {
516
+ url: (0, common_1.toPathString)(localVarUrlObj),
517
+ options: localVarRequestOptions,
518
+ };
519
+ }),
520
+ /**
521
+ *
522
+ * @summary Read eval
523
+ * @param {string} documentId Document ID.
524
+ * @param {string} evalId Evaluation ID.
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ evalsControllerGetEval: (documentId_1, evalId_1, ...args_1) => __awaiter(this, [documentId_1, evalId_1, ...args_1], void 0, function* (documentId, evalId, options = {}) {
529
+ // verify required parameter 'documentId' is not null or undefined
530
+ (0, common_1.assertParamExists)('evalsControllerGetEval', 'documentId', documentId);
531
+ // verify required parameter 'evalId' is not null or undefined
532
+ (0, common_1.assertParamExists)('evalsControllerGetEval', 'evalId', evalId);
533
+ const localVarPath = `/documents/{documentId}/evals/{evalId}`
534
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)))
535
+ .replace(`{${"evalId"}}`, encodeURIComponent(String(evalId)));
536
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
537
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
538
+ let baseOptions;
539
+ if (configuration) {
540
+ baseOptions = configuration.baseOptions;
541
+ }
542
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
543
+ const localVarHeaderParameter = {};
544
+ const localVarQueryParameter = {};
545
+ localVarHeaderParameter['Accept'] = 'application/json';
546
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
547
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
548
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
549
+ return {
550
+ url: (0, common_1.toPathString)(localVarUrlObj),
551
+ options: localVarRequestOptions,
552
+ };
553
+ }),
554
+ /**
555
+ *
556
+ * @summary List evals for a document
557
+ * @param {string} documentId Document ID.
558
+ * @param {any} [limit] Page size.
559
+ * @param {any} [page] 1-based page number.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ evalsControllerListEvals: (documentId_1, limit_1, page_1, ...args_1) => __awaiter(this, [documentId_1, limit_1, page_1, ...args_1], void 0, function* (documentId, limit, page, options = {}) {
564
+ // verify required parameter 'documentId' is not null or undefined
565
+ (0, common_1.assertParamExists)('evalsControllerListEvals', 'documentId', documentId);
566
+ const localVarPath = `/documents/{documentId}/evals`
567
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
569
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
570
+ let baseOptions;
571
+ if (configuration) {
572
+ baseOptions = configuration.baseOptions;
573
+ }
574
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
575
+ const localVarHeaderParameter = {};
576
+ const localVarQueryParameter = {};
577
+ if (limit !== undefined) {
578
+ for (const [key, value] of Object.entries(limit)) {
579
+ localVarQueryParameter[key] = value;
580
+ }
581
+ }
582
+ if (page !== undefined) {
583
+ for (const [key, value] of Object.entries(page)) {
584
+ localVarQueryParameter[key] = value;
585
+ }
586
+ }
587
+ localVarHeaderParameter['Accept'] = 'application/json';
588
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
589
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
590
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
591
+ return {
592
+ url: (0, common_1.toPathString)(localVarUrlObj),
593
+ options: localVarRequestOptions,
594
+ };
595
+ }),
596
+ /**
597
+ * Validates an uploaded eval YAML without creating an eval.
598
+ * @summary Validate eval YAML
599
+ * @param {string} documentId Document ID.
600
+ * @param {File} yaml YAML file to validate.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ evalsControllerValidateEvalYaml: (documentId_1, yaml_1, ...args_1) => __awaiter(this, [documentId_1, yaml_1, ...args_1], void 0, function* (documentId, yaml, options = {}) {
605
+ // verify required parameter 'documentId' is not null or undefined
606
+ (0, common_1.assertParamExists)('evalsControllerValidateEvalYaml', 'documentId', documentId);
607
+ // verify required parameter 'yaml' is not null or undefined
608
+ (0, common_1.assertParamExists)('evalsControllerValidateEvalYaml', 'yaml', yaml);
609
+ const localVarPath = `/documents/{documentId}/evals/validate`
610
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
612
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
613
+ let baseOptions;
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
618
+ const localVarHeaderParameter = {};
619
+ const localVarQueryParameter = {};
620
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
621
+ if (yaml !== undefined) {
622
+ localVarFormParams.append('yaml', yaml);
623
+ }
624
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
625
+ localVarHeaderParameter['Accept'] = 'application/json';
626
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
627
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
628
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
629
+ localVarRequestOptions.data = localVarFormParams;
630
+ return {
631
+ url: (0, common_1.toPathString)(localVarUrlObj),
632
+ options: localVarRequestOptions,
633
+ };
634
+ }),
635
+ };
636
+ };
637
+ exports.EvalsApiAxiosParamCreator = EvalsApiAxiosParamCreator;
638
+ /**
639
+ * EvalsApi - functional programming interface
640
+ */
641
+ const EvalsApiFp = function (configuration) {
642
+ const localVarAxiosParamCreator = (0, exports.EvalsApiAxiosParamCreator)(configuration);
643
+ return {
644
+ /**
645
+ * Uploads an eval YAML (test cases) to run against a document.
646
+ * @summary Create an eval from YAML
647
+ * @param {string} documentId Document ID.
648
+ * @param {File} yaml Eval YAML file (test cases).
649
+ * @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ evalsControllerCreateEval(documentId, yaml, watch, options) {
654
+ return __awaiter(this, void 0, void 0, function* () {
655
+ var _a, _b, _c;
656
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.evalsControllerCreateEval(documentId, yaml, watch, options);
657
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
658
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EvalsApi.evalsControllerCreateEval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
659
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
660
+ });
661
+ },
662
+ /**
663
+ *
664
+ * @summary Read eval
665
+ * @param {string} documentId Document ID.
666
+ * @param {string} evalId Evaluation ID.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ evalsControllerGetEval(documentId, evalId, options) {
671
+ return __awaiter(this, void 0, void 0, function* () {
672
+ var _a, _b, _c;
673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.evalsControllerGetEval(documentId, evalId, options);
674
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
675
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EvalsApi.evalsControllerGetEval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
676
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
677
+ });
678
+ },
679
+ /**
680
+ *
681
+ * @summary List evals for a document
682
+ * @param {string} documentId Document ID.
683
+ * @param {any} [limit] Page size.
684
+ * @param {any} [page] 1-based page number.
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ */
688
+ evalsControllerListEvals(documentId, limit, page, options) {
689
+ return __awaiter(this, void 0, void 0, function* () {
690
+ var _a, _b, _c;
691
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.evalsControllerListEvals(documentId, limit, page, options);
692
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
693
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EvalsApi.evalsControllerListEvals']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
694
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
695
+ });
696
+ },
697
+ /**
698
+ * Validates an uploaded eval YAML without creating an eval.
699
+ * @summary Validate eval YAML
700
+ * @param {string} documentId Document ID.
701
+ * @param {File} yaml YAML file to validate.
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ evalsControllerValidateEvalYaml(documentId, yaml, options) {
706
+ return __awaiter(this, void 0, void 0, function* () {
707
+ var _a, _b, _c;
708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.evalsControllerValidateEvalYaml(documentId, yaml, options);
709
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
710
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EvalsApi.evalsControllerValidateEvalYaml']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
711
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
+ });
713
+ },
714
+ };
715
+ };
716
+ exports.EvalsApiFp = EvalsApiFp;
717
+ /**
718
+ * EvalsApi - factory interface
719
+ */
720
+ const EvalsApiFactory = function (configuration, basePath, axios) {
721
+ const localVarFp = (0, exports.EvalsApiFp)(configuration);
722
+ return {
723
+ /**
724
+ * Uploads an eval YAML (test cases) to run against a document.
725
+ * @summary Create an eval from YAML
726
+ * @param {string} documentId Document ID.
727
+ * @param {File} yaml Eval YAML file (test cases).
728
+ * @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ */
732
+ evalsControllerCreateEval(documentId, yaml, watch, options) {
733
+ return localVarFp.evalsControllerCreateEval(documentId, yaml, watch, options).then((request) => request(axios, basePath));
734
+ },
735
+ /**
736
+ *
737
+ * @summary Read eval
738
+ * @param {string} documentId Document ID.
739
+ * @param {string} evalId Evaluation ID.
740
+ * @param {*} [options] Override http request option.
741
+ * @throws {RequiredError}
742
+ */
743
+ evalsControllerGetEval(documentId, evalId, options) {
744
+ return localVarFp.evalsControllerGetEval(documentId, evalId, options).then((request) => request(axios, basePath));
745
+ },
746
+ /**
747
+ *
748
+ * @summary List evals for a document
749
+ * @param {string} documentId Document ID.
750
+ * @param {any} [limit] Page size.
751
+ * @param {any} [page] 1-based page number.
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ */
755
+ evalsControllerListEvals(documentId, limit, page, options) {
756
+ return localVarFp.evalsControllerListEvals(documentId, limit, page, options).then((request) => request(axios, basePath));
757
+ },
758
+ /**
759
+ * Validates an uploaded eval YAML without creating an eval.
760
+ * @summary Validate eval YAML
761
+ * @param {string} documentId Document ID.
762
+ * @param {File} yaml YAML file to validate.
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ */
766
+ evalsControllerValidateEvalYaml(documentId, yaml, options) {
767
+ return localVarFp.evalsControllerValidateEvalYaml(documentId, yaml, options).then((request) => request(axios, basePath));
768
+ },
769
+ };
770
+ };
771
+ exports.EvalsApiFactory = EvalsApiFactory;
772
+ /**
773
+ * EvalsApi - object-oriented interface
774
+ */
775
+ class EvalsApi extends base_1.BaseAPI {
776
+ /**
777
+ * Uploads an eval YAML (test cases) to run against a document.
778
+ * @summary Create an eval from YAML
779
+ * @param {string} documentId Document ID.
780
+ * @param {File} yaml Eval YAML file (test cases).
781
+ * @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ evalsControllerCreateEval(documentId, yaml, watch, options) {
786
+ return (0, exports.EvalsApiFp)(this.configuration).evalsControllerCreateEval(documentId, yaml, watch, options).then((request) => request(this.axios, this.basePath));
787
+ }
788
+ /**
789
+ *
790
+ * @summary Read eval
791
+ * @param {string} documentId Document ID.
792
+ * @param {string} evalId Evaluation ID.
793
+ * @param {*} [options] Override http request option.
794
+ * @throws {RequiredError}
795
+ */
796
+ evalsControllerGetEval(documentId, evalId, options) {
797
+ return (0, exports.EvalsApiFp)(this.configuration).evalsControllerGetEval(documentId, evalId, options).then((request) => request(this.axios, this.basePath));
798
+ }
799
+ /**
800
+ *
801
+ * @summary List evals for a document
802
+ * @param {string} documentId Document ID.
803
+ * @param {any} [limit] Page size.
804
+ * @param {any} [page] 1-based page number.
805
+ * @param {*} [options] Override http request option.
806
+ * @throws {RequiredError}
807
+ */
808
+ evalsControllerListEvals(documentId, limit, page, options) {
809
+ return (0, exports.EvalsApiFp)(this.configuration).evalsControllerListEvals(documentId, limit, page, options).then((request) => request(this.axios, this.basePath));
810
+ }
811
+ /**
812
+ * Validates an uploaded eval YAML without creating an eval.
813
+ * @summary Validate eval YAML
814
+ * @param {string} documentId Document ID.
815
+ * @param {File} yaml YAML file to validate.
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ evalsControllerValidateEvalYaml(documentId, yaml, options) {
820
+ return (0, exports.EvalsApiFp)(this.configuration).evalsControllerValidateEvalYaml(documentId, yaml, options).then((request) => request(this.axios, this.basePath));
821
+ }
822
+ }
823
+ exports.EvalsApi = EvalsApi;
824
+ /**
825
+ * HealthApi - axios parameter creator
826
+ */
827
+ const HealthApiAxiosParamCreator = function (configuration) {
828
+ return {
829
+ /**
830
+ * Returns service health including Redis, database, and GPU status.
831
+ * @summary Get system health
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ healthControllerGetHealth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
836
+ const localVarPath = `/health`;
837
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
838
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
839
+ let baseOptions;
840
+ if (configuration) {
841
+ baseOptions = configuration.baseOptions;
842
+ }
843
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
844
+ const localVarHeaderParameter = {};
845
+ const localVarQueryParameter = {};
846
+ localVarHeaderParameter['Accept'] = 'application/json';
847
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
848
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
849
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
850
+ return {
851
+ url: (0, common_1.toPathString)(localVarUrlObj),
852
+ options: localVarRequestOptions,
853
+ };
854
+ }),
855
+ };
856
+ };
857
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
858
+ /**
859
+ * HealthApi - functional programming interface
860
+ */
861
+ const HealthApiFp = function (configuration) {
862
+ const localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
863
+ return {
864
+ /**
865
+ * Returns service health including Redis, database, and GPU status.
866
+ * @summary Get system health
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ healthControllerGetHealth(options) {
871
+ return __awaiter(this, void 0, void 0, function* () {
872
+ var _a, _b, _c;
873
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.healthControllerGetHealth(options);
874
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
875
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthControllerGetHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
876
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
877
+ });
878
+ },
879
+ };
880
+ };
881
+ exports.HealthApiFp = HealthApiFp;
882
+ /**
883
+ * HealthApi - factory interface
884
+ */
885
+ const HealthApiFactory = function (configuration, basePath, axios) {
886
+ const localVarFp = (0, exports.HealthApiFp)(configuration);
887
+ return {
888
+ /**
889
+ * Returns service health including Redis, database, and GPU status.
890
+ * @summary Get system health
891
+ * @param {*} [options] Override http request option.
892
+ * @throws {RequiredError}
893
+ */
894
+ healthControllerGetHealth(options) {
895
+ return localVarFp.healthControllerGetHealth(options).then((request) => request(axios, basePath));
896
+ },
897
+ };
898
+ };
899
+ exports.HealthApiFactory = HealthApiFactory;
900
+ /**
901
+ * HealthApi - object-oriented interface
902
+ */
903
+ class HealthApi extends base_1.BaseAPI {
904
+ /**
905
+ * Returns service health including Redis, database, and GPU status.
906
+ * @summary Get system health
907
+ * @param {*} [options] Override http request option.
908
+ * @throws {RequiredError}
909
+ */
910
+ healthControllerGetHealth(options) {
911
+ return (0, exports.HealthApiFp)(this.configuration).healthControllerGetHealth(options).then((request) => request(this.axios, this.basePath));
912
+ }
913
+ }
914
+ exports.HealthApi = HealthApi;
915
+ /**
916
+ * JobsApi - axios parameter creator
917
+ */
918
+ const JobsApiAxiosParamCreator = function (configuration) {
919
+ return {
920
+ /**
921
+ *
922
+ * @summary Read job
923
+ * @param {string} jobId Job ID.
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ */
927
+ jobsControllerGetJob: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
928
+ // verify required parameter 'jobId' is not null or undefined
929
+ (0, common_1.assertParamExists)('jobsControllerGetJob', 'jobId', jobId);
930
+ const localVarPath = `/jobs/{jobId}`
931
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
933
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
934
+ let baseOptions;
935
+ if (configuration) {
936
+ baseOptions = configuration.baseOptions;
937
+ }
938
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
939
+ const localVarHeaderParameter = {};
940
+ const localVarQueryParameter = {};
941
+ localVarHeaderParameter['Accept'] = 'application/json';
942
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
944
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
945
+ return {
946
+ url: (0, common_1.toPathString)(localVarUrlObj),
947
+ options: localVarRequestOptions,
948
+ };
949
+ }),
950
+ /**
951
+ * Returns a lightweight status payload suitable for polling.
952
+ * @summary Get job status
953
+ * @param {string} jobId Job ID.
954
+ * @param {*} [options] Override http request option.
955
+ * @throws {RequiredError}
956
+ */
957
+ jobsControllerGetJobStatus: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
958
+ // verify required parameter 'jobId' is not null or undefined
959
+ (0, common_1.assertParamExists)('jobsControllerGetJobStatus', 'jobId', jobId);
960
+ const localVarPath = `/jobs/{jobId}/status`
961
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
962
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
963
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
964
+ let baseOptions;
965
+ if (configuration) {
966
+ baseOptions = configuration.baseOptions;
967
+ }
968
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
969
+ const localVarHeaderParameter = {};
970
+ const localVarQueryParameter = {};
971
+ localVarHeaderParameter['Accept'] = 'application/json';
972
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
973
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
974
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
975
+ return {
976
+ url: (0, common_1.toPathString)(localVarUrlObj),
977
+ options: localVarRequestOptions,
978
+ };
979
+ }),
980
+ /**
981
+ * Lists jobs for document processing, evaluations, and query jobs.
982
+ * @summary List jobs
983
+ * @param {number} [page] 1-based page number.
984
+ * @param {number} [limit] Page size.
985
+ * @param {*} [options] Override http request option.
986
+ * @throws {RequiredError}
987
+ */
988
+ jobsControllerListJobs: (page_1, limit_1, ...args_1) => __awaiter(this, [page_1, limit_1, ...args_1], void 0, function* (page, limit, options = {}) {
989
+ const localVarPath = `/jobs`;
990
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
991
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
992
+ let baseOptions;
993
+ if (configuration) {
994
+ baseOptions = configuration.baseOptions;
995
+ }
996
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
997
+ const localVarHeaderParameter = {};
998
+ const localVarQueryParameter = {};
999
+ if (page !== undefined) {
1000
+ localVarQueryParameter['page'] = page;
1001
+ }
1002
+ if (limit !== undefined) {
1003
+ localVarQueryParameter['limit'] = limit;
1004
+ }
1005
+ localVarHeaderParameter['Accept'] = 'application/json';
1006
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1007
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1008
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1009
+ return {
1010
+ url: (0, common_1.toPathString)(localVarUrlObj),
1011
+ options: localVarRequestOptions,
1012
+ };
1013
+ }),
1014
+ };
1015
+ };
1016
+ exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
1017
+ /**
1018
+ * JobsApi - functional programming interface
1019
+ */
1020
+ const JobsApiFp = function (configuration) {
1021
+ const localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
1022
+ return {
1023
+ /**
1024
+ *
1025
+ * @summary Read job
1026
+ * @param {string} jobId Job ID.
1027
+ * @param {*} [options] Override http request option.
1028
+ * @throws {RequiredError}
1029
+ */
1030
+ jobsControllerGetJob(jobId, options) {
1031
+ return __awaiter(this, void 0, void 0, function* () {
1032
+ var _a, _b, _c;
1033
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.jobsControllerGetJob(jobId, options);
1034
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1035
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.jobsControllerGetJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1036
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1037
+ });
1038
+ },
1039
+ /**
1040
+ * Returns a lightweight status payload suitable for polling.
1041
+ * @summary Get job status
1042
+ * @param {string} jobId Job ID.
1043
+ * @param {*} [options] Override http request option.
1044
+ * @throws {RequiredError}
1045
+ */
1046
+ jobsControllerGetJobStatus(jobId, options) {
1047
+ return __awaiter(this, void 0, void 0, function* () {
1048
+ var _a, _b, _c;
1049
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.jobsControllerGetJobStatus(jobId, options);
1050
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1051
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.jobsControllerGetJobStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1052
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1053
+ });
1054
+ },
1055
+ /**
1056
+ * Lists jobs for document processing, evaluations, and query jobs.
1057
+ * @summary List jobs
1058
+ * @param {number} [page] 1-based page number.
1059
+ * @param {number} [limit] Page size.
1060
+ * @param {*} [options] Override http request option.
1061
+ * @throws {RequiredError}
1062
+ */
1063
+ jobsControllerListJobs(page, limit, options) {
1064
+ return __awaiter(this, void 0, void 0, function* () {
1065
+ var _a, _b, _c;
1066
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.jobsControllerListJobs(page, limit, options);
1067
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1068
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobsApi.jobsControllerListJobs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1069
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1070
+ });
1071
+ },
1072
+ };
1073
+ };
1074
+ exports.JobsApiFp = JobsApiFp;
1075
+ /**
1076
+ * JobsApi - factory interface
1077
+ */
1078
+ const JobsApiFactory = function (configuration, basePath, axios) {
1079
+ const localVarFp = (0, exports.JobsApiFp)(configuration);
1080
+ return {
1081
+ /**
1082
+ *
1083
+ * @summary Read job
1084
+ * @param {string} jobId Job ID.
1085
+ * @param {*} [options] Override http request option.
1086
+ * @throws {RequiredError}
1087
+ */
1088
+ jobsControllerGetJob(jobId, options) {
1089
+ return localVarFp.jobsControllerGetJob(jobId, options).then((request) => request(axios, basePath));
1090
+ },
1091
+ /**
1092
+ * Returns a lightweight status payload suitable for polling.
1093
+ * @summary Get job status
1094
+ * @param {string} jobId Job ID.
1095
+ * @param {*} [options] Override http request option.
1096
+ * @throws {RequiredError}
1097
+ */
1098
+ jobsControllerGetJobStatus(jobId, options) {
1099
+ return localVarFp.jobsControllerGetJobStatus(jobId, options).then((request) => request(axios, basePath));
1100
+ },
1101
+ /**
1102
+ * Lists jobs for document processing, evaluations, and query jobs.
1103
+ * @summary List jobs
1104
+ * @param {number} [page] 1-based page number.
1105
+ * @param {number} [limit] Page size.
1106
+ * @param {*} [options] Override http request option.
1107
+ * @throws {RequiredError}
1108
+ */
1109
+ jobsControllerListJobs(page, limit, options) {
1110
+ return localVarFp.jobsControllerListJobs(page, limit, options).then((request) => request(axios, basePath));
1111
+ },
1112
+ };
1113
+ };
1114
+ exports.JobsApiFactory = JobsApiFactory;
1115
+ /**
1116
+ * JobsApi - object-oriented interface
1117
+ */
1118
+ class JobsApi extends base_1.BaseAPI {
1119
+ /**
1120
+ *
1121
+ * @summary Read job
1122
+ * @param {string} jobId Job ID.
1123
+ * @param {*} [options] Override http request option.
1124
+ * @throws {RequiredError}
1125
+ */
1126
+ jobsControllerGetJob(jobId, options) {
1127
+ return (0, exports.JobsApiFp)(this.configuration).jobsControllerGetJob(jobId, options).then((request) => request(this.axios, this.basePath));
1128
+ }
1129
+ /**
1130
+ * Returns a lightweight status payload suitable for polling.
1131
+ * @summary Get job status
1132
+ * @param {string} jobId Job ID.
1133
+ * @param {*} [options] Override http request option.
1134
+ * @throws {RequiredError}
1135
+ */
1136
+ jobsControllerGetJobStatus(jobId, options) {
1137
+ return (0, exports.JobsApiFp)(this.configuration).jobsControllerGetJobStatus(jobId, options).then((request) => request(this.axios, this.basePath));
1138
+ }
1139
+ /**
1140
+ * Lists jobs for document processing, evaluations, and query jobs.
1141
+ * @summary List jobs
1142
+ * @param {number} [page] 1-based page number.
1143
+ * @param {number} [limit] Page size.
1144
+ * @param {*} [options] Override http request option.
1145
+ * @throws {RequiredError}
1146
+ */
1147
+ jobsControllerListJobs(page, limit, options) {
1148
+ return (0, exports.JobsApiFp)(this.configuration).jobsControllerListJobs(page, limit, options).then((request) => request(this.axios, this.basePath));
1149
+ }
1150
+ }
1151
+ exports.JobsApi = JobsApi;
1152
+ /**
1153
+ * ProfilesApi - axios parameter creator
1154
+ */
1155
+ const ProfilesApiAxiosParamCreator = function (configuration) {
1156
+ return {
1157
+ /**
1158
+ * Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
1159
+ * @summary Create profile from YAML
1160
+ * @param {File} yaml YAML file containing the profile/config.
1161
+ * @param {string} [name] Optional override for profile name (otherwise derived from YAML).
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ */
1165
+ profilesControllerCreateProfile: (yaml_1, name_1, ...args_1) => __awaiter(this, [yaml_1, name_1, ...args_1], void 0, function* (yaml, name, options = {}) {
1166
+ // verify required parameter 'yaml' is not null or undefined
1167
+ (0, common_1.assertParamExists)('profilesControllerCreateProfile', 'yaml', yaml);
1168
+ const localVarPath = `/profiles`;
1169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1170
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1171
+ let baseOptions;
1172
+ if (configuration) {
1173
+ baseOptions = configuration.baseOptions;
1174
+ }
1175
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1176
+ const localVarHeaderParameter = {};
1177
+ const localVarQueryParameter = {};
1178
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1179
+ if (yaml !== undefined) {
1180
+ localVarFormParams.append('yaml', yaml);
1181
+ }
1182
+ if (name !== undefined) {
1183
+ localVarFormParams.append('name', name);
1184
+ }
1185
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1186
+ localVarHeaderParameter['Accept'] = 'application/json';
1187
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1189
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1190
+ localVarRequestOptions.data = localVarFormParams;
1191
+ return {
1192
+ url: (0, common_1.toPathString)(localVarUrlObj),
1193
+ options: localVarRequestOptions,
1194
+ };
1195
+ }),
1196
+ /**
1197
+ *
1198
+ * @summary Read profile
1199
+ * @param {string} profileId Profile/config ID.
1200
+ * @param {*} [options] Override http request option.
1201
+ * @throws {RequiredError}
1202
+ */
1203
+ profilesControllerGetProfile: (profileId_1, ...args_1) => __awaiter(this, [profileId_1, ...args_1], void 0, function* (profileId, options = {}) {
1204
+ // verify required parameter 'profileId' is not null or undefined
1205
+ (0, common_1.assertParamExists)('profilesControllerGetProfile', 'profileId', profileId);
1206
+ const localVarPath = `/profiles/{profileId}`
1207
+ .replace(`{${"profileId"}}`, encodeURIComponent(String(profileId)));
1208
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1209
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1210
+ let baseOptions;
1211
+ if (configuration) {
1212
+ baseOptions = configuration.baseOptions;
1213
+ }
1214
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1215
+ const localVarHeaderParameter = {};
1216
+ const localVarQueryParameter = {};
1217
+ localVarHeaderParameter['Accept'] = 'application/json';
1218
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1221
+ return {
1222
+ url: (0, common_1.toPathString)(localVarUrlObj),
1223
+ options: localVarRequestOptions,
1224
+ };
1225
+ }),
1226
+ /**
1227
+ * Returns the JSON schema for profile YAML configuration files.
1228
+ * @summary Get profile schema
1229
+ * @param {*} [options] Override http request option.
1230
+ * @throws {RequiredError}
1231
+ */
1232
+ profilesControllerGetProfileSchema: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1233
+ const localVarPath = `/profiles/schema`;
1234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1235
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1236
+ let baseOptions;
1237
+ if (configuration) {
1238
+ baseOptions = configuration.baseOptions;
1239
+ }
1240
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1241
+ const localVarHeaderParameter = {};
1242
+ const localVarQueryParameter = {};
1243
+ localVarHeaderParameter['Accept'] = 'application/json';
1244
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1246
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1247
+ return {
1248
+ url: (0, common_1.toPathString)(localVarUrlObj),
1249
+ options: localVarRequestOptions,
1250
+ };
1251
+ }),
1252
+ /**
1253
+ *
1254
+ * @summary List profiles
1255
+ * @param {number} [page] 1-based page number.
1256
+ * @param {number} [limit] Page size.
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ */
1260
+ profilesControllerListProfiles: (page_1, limit_1, ...args_1) => __awaiter(this, [page_1, limit_1, ...args_1], void 0, function* (page, limit, options = {}) {
1261
+ const localVarPath = `/profiles`;
1262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1263
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1264
+ let baseOptions;
1265
+ if (configuration) {
1266
+ baseOptions = configuration.baseOptions;
1267
+ }
1268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1269
+ const localVarHeaderParameter = {};
1270
+ const localVarQueryParameter = {};
1271
+ if (page !== undefined) {
1272
+ localVarQueryParameter['page'] = page;
1273
+ }
1274
+ if (limit !== undefined) {
1275
+ localVarQueryParameter['limit'] = limit;
1276
+ }
1277
+ localVarHeaderParameter['Accept'] = 'application/json';
1278
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1280
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1281
+ return {
1282
+ url: (0, common_1.toPathString)(localVarUrlObj),
1283
+ options: localVarRequestOptions,
1284
+ };
1285
+ }),
1286
+ };
1287
+ };
1288
+ exports.ProfilesApiAxiosParamCreator = ProfilesApiAxiosParamCreator;
1289
+ /**
1290
+ * ProfilesApi - functional programming interface
1291
+ */
1292
+ const ProfilesApiFp = function (configuration) {
1293
+ const localVarAxiosParamCreator = (0, exports.ProfilesApiAxiosParamCreator)(configuration);
1294
+ return {
1295
+ /**
1296
+ * Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
1297
+ * @summary Create profile from YAML
1298
+ * @param {File} yaml YAML file containing the profile/config.
1299
+ * @param {string} [name] Optional override for profile name (otherwise derived from YAML).
1300
+ * @param {*} [options] Override http request option.
1301
+ * @throws {RequiredError}
1302
+ */
1303
+ profilesControllerCreateProfile(yaml, name, options) {
1304
+ return __awaiter(this, void 0, void 0, function* () {
1305
+ var _a, _b, _c;
1306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profilesControllerCreateProfile(yaml, name, options);
1307
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1308
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.profilesControllerCreateProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1309
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1310
+ });
1311
+ },
1312
+ /**
1313
+ *
1314
+ * @summary Read profile
1315
+ * @param {string} profileId Profile/config ID.
1316
+ * @param {*} [options] Override http request option.
1317
+ * @throws {RequiredError}
1318
+ */
1319
+ profilesControllerGetProfile(profileId, options) {
1320
+ return __awaiter(this, void 0, void 0, function* () {
1321
+ var _a, _b, _c;
1322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profilesControllerGetProfile(profileId, options);
1323
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1324
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.profilesControllerGetProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1325
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1326
+ });
1327
+ },
1328
+ /**
1329
+ * Returns the JSON schema for profile YAML configuration files.
1330
+ * @summary Get profile schema
1331
+ * @param {*} [options] Override http request option.
1332
+ * @throws {RequiredError}
1333
+ */
1334
+ profilesControllerGetProfileSchema(options) {
1335
+ return __awaiter(this, void 0, void 0, function* () {
1336
+ var _a, _b, _c;
1337
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profilesControllerGetProfileSchema(options);
1338
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1339
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.profilesControllerGetProfileSchema']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1340
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1341
+ });
1342
+ },
1343
+ /**
1344
+ *
1345
+ * @summary List profiles
1346
+ * @param {number} [page] 1-based page number.
1347
+ * @param {number} [limit] Page size.
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ profilesControllerListProfiles(page, limit, options) {
1352
+ return __awaiter(this, void 0, void 0, function* () {
1353
+ var _a, _b, _c;
1354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profilesControllerListProfiles(page, limit, options);
1355
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1356
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProfilesApi.profilesControllerListProfiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1357
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1358
+ });
1359
+ },
1360
+ };
1361
+ };
1362
+ exports.ProfilesApiFp = ProfilesApiFp;
1363
+ /**
1364
+ * ProfilesApi - factory interface
1365
+ */
1366
+ const ProfilesApiFactory = function (configuration, basePath, axios) {
1367
+ const localVarFp = (0, exports.ProfilesApiFp)(configuration);
1368
+ return {
1369
+ /**
1370
+ * Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
1371
+ * @summary Create profile from YAML
1372
+ * @param {File} yaml YAML file containing the profile/config.
1373
+ * @param {string} [name] Optional override for profile name (otherwise derived from YAML).
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ */
1377
+ profilesControllerCreateProfile(yaml, name, options) {
1378
+ return localVarFp.profilesControllerCreateProfile(yaml, name, options).then((request) => request(axios, basePath));
1379
+ },
1380
+ /**
1381
+ *
1382
+ * @summary Read profile
1383
+ * @param {string} profileId Profile/config ID.
1384
+ * @param {*} [options] Override http request option.
1385
+ * @throws {RequiredError}
1386
+ */
1387
+ profilesControllerGetProfile(profileId, options) {
1388
+ return localVarFp.profilesControllerGetProfile(profileId, options).then((request) => request(axios, basePath));
1389
+ },
1390
+ /**
1391
+ * Returns the JSON schema for profile YAML configuration files.
1392
+ * @summary Get profile schema
1393
+ * @param {*} [options] Override http request option.
1394
+ * @throws {RequiredError}
1395
+ */
1396
+ profilesControllerGetProfileSchema(options) {
1397
+ return localVarFp.profilesControllerGetProfileSchema(options).then((request) => request(axios, basePath));
1398
+ },
1399
+ /**
1400
+ *
1401
+ * @summary List profiles
1402
+ * @param {number} [page] 1-based page number.
1403
+ * @param {number} [limit] Page size.
1404
+ * @param {*} [options] Override http request option.
1405
+ * @throws {RequiredError}
1406
+ */
1407
+ profilesControllerListProfiles(page, limit, options) {
1408
+ return localVarFp.profilesControllerListProfiles(page, limit, options).then((request) => request(axios, basePath));
1409
+ },
1410
+ };
1411
+ };
1412
+ exports.ProfilesApiFactory = ProfilesApiFactory;
1413
+ /**
1414
+ * ProfilesApi - object-oriented interface
1415
+ */
1416
+ class ProfilesApi extends base_1.BaseAPI {
1417
+ /**
1418
+ * Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
1419
+ * @summary Create profile from YAML
1420
+ * @param {File} yaml YAML file containing the profile/config.
1421
+ * @param {string} [name] Optional override for profile name (otherwise derived from YAML).
1422
+ * @param {*} [options] Override http request option.
1423
+ * @throws {RequiredError}
1424
+ */
1425
+ profilesControllerCreateProfile(yaml, name, options) {
1426
+ return (0, exports.ProfilesApiFp)(this.configuration).profilesControllerCreateProfile(yaml, name, options).then((request) => request(this.axios, this.basePath));
1427
+ }
1428
+ /**
1429
+ *
1430
+ * @summary Read profile
1431
+ * @param {string} profileId Profile/config ID.
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ profilesControllerGetProfile(profileId, options) {
1436
+ return (0, exports.ProfilesApiFp)(this.configuration).profilesControllerGetProfile(profileId, options).then((request) => request(this.axios, this.basePath));
1437
+ }
1438
+ /**
1439
+ * Returns the JSON schema for profile YAML configuration files.
1440
+ * @summary Get profile schema
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ profilesControllerGetProfileSchema(options) {
1445
+ return (0, exports.ProfilesApiFp)(this.configuration).profilesControllerGetProfileSchema(options).then((request) => request(this.axios, this.basePath));
1446
+ }
1447
+ /**
1448
+ *
1449
+ * @summary List profiles
1450
+ * @param {number} [page] 1-based page number.
1451
+ * @param {number} [limit] Page size.
1452
+ * @param {*} [options] Override http request option.
1453
+ * @throws {RequiredError}
1454
+ */
1455
+ profilesControllerListProfiles(page, limit, options) {
1456
+ return (0, exports.ProfilesApiFp)(this.configuration).profilesControllerListProfiles(page, limit, options).then((request) => request(this.axios, this.basePath));
1457
+ }
1458
+ }
1459
+ exports.ProfilesApi = ProfilesApi;
1460
+ /**
1461
+ * QueriesApi - axios parameter creator
1462
+ */
1463
+ const QueriesApiAxiosParamCreator = function (configuration) {
1464
+ return {
1465
+ /**
1466
+ * Uploads a batch queries YAML (multipart form). Typically schedules a job.
1467
+ * @summary Create batch query from YAML
1468
+ * @param {File} yaml Batch queries YAML file.
1469
+ * @param {boolean} [watch]
1470
+ * @param {*} [options] Override http request option.
1471
+ * @throws {RequiredError}
1472
+ */
1473
+ queriesControllerCreateQuery: (yaml_1, watch_1, ...args_1) => __awaiter(this, [yaml_1, watch_1, ...args_1], void 0, function* (yaml, watch, options = {}) {
1474
+ // verify required parameter 'yaml' is not null or undefined
1475
+ (0, common_1.assertParamExists)('queriesControllerCreateQuery', 'yaml', yaml);
1476
+ const localVarPath = `/query`;
1477
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1478
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1479
+ let baseOptions;
1480
+ if (configuration) {
1481
+ baseOptions = configuration.baseOptions;
1482
+ }
1483
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1484
+ const localVarHeaderParameter = {};
1485
+ const localVarQueryParameter = {};
1486
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1487
+ if (yaml !== undefined) {
1488
+ localVarFormParams.append('yaml', yaml);
1489
+ }
1490
+ if (watch !== undefined) {
1491
+ localVarFormParams.append('watch', String(watch));
1492
+ }
1493
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1494
+ localVarHeaderParameter['Accept'] = 'application/json';
1495
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1497
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1498
+ localVarRequestOptions.data = localVarFormParams;
1499
+ return {
1500
+ url: (0, common_1.toPathString)(localVarUrlObj),
1501
+ options: localVarRequestOptions,
1502
+ };
1503
+ }),
1504
+ /**
1505
+ *
1506
+ * @summary Read batch query
1507
+ * @param {string} queryId Batch query ID.
1508
+ * @param {*} [options] Override http request option.
1509
+ * @throws {RequiredError}
1510
+ */
1511
+ queriesControllerGetQuery: (queryId_1, ...args_1) => __awaiter(this, [queryId_1, ...args_1], void 0, function* (queryId, options = {}) {
1512
+ // verify required parameter 'queryId' is not null or undefined
1513
+ (0, common_1.assertParamExists)('queriesControllerGetQuery', 'queryId', queryId);
1514
+ const localVarPath = `/query/{queryId}`
1515
+ .replace(`{${"queryId"}}`, encodeURIComponent(String(queryId)));
1516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1517
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1518
+ let baseOptions;
1519
+ if (configuration) {
1520
+ baseOptions = configuration.baseOptions;
1521
+ }
1522
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1523
+ const localVarHeaderParameter = {};
1524
+ const localVarQueryParameter = {};
1525
+ localVarHeaderParameter['Accept'] = 'application/json';
1526
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1528
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1529
+ return {
1530
+ url: (0, common_1.toPathString)(localVarUrlObj),
1531
+ options: localVarRequestOptions,
1532
+ };
1533
+ }),
1534
+ /**
1535
+ * Lists batch query runs (submitted via YAML).
1536
+ * @summary List batch queries
1537
+ * @param {number} [page] 1-based page number.
1538
+ * @param {number} [limit] Page size.
1539
+ * @param {string} [documentId] Filter by document ID.
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ */
1543
+ queriesControllerListQueries: (page_1, limit_1, documentId_1, ...args_1) => __awaiter(this, [page_1, limit_1, documentId_1, ...args_1], void 0, function* (page, limit, documentId, options = {}) {
1544
+ const localVarPath = `/query`;
1545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1546
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1547
+ let baseOptions;
1548
+ if (configuration) {
1549
+ baseOptions = configuration.baseOptions;
1550
+ }
1551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1552
+ const localVarHeaderParameter = {};
1553
+ const localVarQueryParameter = {};
1554
+ if (page !== undefined) {
1555
+ localVarQueryParameter['page'] = page;
1556
+ }
1557
+ if (limit !== undefined) {
1558
+ localVarQueryParameter['limit'] = limit;
1559
+ }
1560
+ if (documentId !== undefined) {
1561
+ localVarQueryParameter['documentId'] = documentId;
1562
+ }
1563
+ localVarHeaderParameter['Accept'] = 'application/json';
1564
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1565
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1566
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1567
+ return {
1568
+ url: (0, common_1.toPathString)(localVarUrlObj),
1569
+ options: localVarRequestOptions,
1570
+ };
1571
+ }),
1572
+ /**
1573
+ * Validates an uploaded batch queries YAML without creating a query.
1574
+ * @summary Validate batch query YAML
1575
+ * @param {File} yaml YAML file to validate.
1576
+ * @param {*} [options] Override http request option.
1577
+ * @throws {RequiredError}
1578
+ */
1579
+ queriesControllerValidateQueryYaml: (yaml_1, ...args_1) => __awaiter(this, [yaml_1, ...args_1], void 0, function* (yaml, options = {}) {
1580
+ // verify required parameter 'yaml' is not null or undefined
1581
+ (0, common_1.assertParamExists)('queriesControllerValidateQueryYaml', 'yaml', yaml);
1582
+ const localVarPath = `/query/validate`;
1583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1584
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1585
+ let baseOptions;
1586
+ if (configuration) {
1587
+ baseOptions = configuration.baseOptions;
1588
+ }
1589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1590
+ const localVarHeaderParameter = {};
1591
+ const localVarQueryParameter = {};
1592
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1593
+ if (yaml !== undefined) {
1594
+ localVarFormParams.append('yaml', yaml);
1595
+ }
1596
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1597
+ localVarHeaderParameter['Accept'] = 'application/json';
1598
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1600
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1601
+ localVarRequestOptions.data = localVarFormParams;
1602
+ return {
1603
+ url: (0, common_1.toPathString)(localVarUrlObj),
1604
+ options: localVarRequestOptions,
1605
+ };
1606
+ }),
1607
+ };
1608
+ };
1609
+ exports.QueriesApiAxiosParamCreator = QueriesApiAxiosParamCreator;
1610
+ /**
1611
+ * QueriesApi - functional programming interface
1612
+ */
1613
+ const QueriesApiFp = function (configuration) {
1614
+ const localVarAxiosParamCreator = (0, exports.QueriesApiAxiosParamCreator)(configuration);
1615
+ return {
1616
+ /**
1617
+ * Uploads a batch queries YAML (multipart form). Typically schedules a job.
1618
+ * @summary Create batch query from YAML
1619
+ * @param {File} yaml Batch queries YAML file.
1620
+ * @param {boolean} [watch]
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ */
1624
+ queriesControllerCreateQuery(yaml, watch, options) {
1625
+ return __awaiter(this, void 0, void 0, function* () {
1626
+ var _a, _b, _c;
1627
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.queriesControllerCreateQuery(yaml, watch, options);
1628
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1629
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QueriesApi.queriesControllerCreateQuery']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1630
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1631
+ });
1632
+ },
1633
+ /**
1634
+ *
1635
+ * @summary Read batch query
1636
+ * @param {string} queryId Batch query ID.
1637
+ * @param {*} [options] Override http request option.
1638
+ * @throws {RequiredError}
1639
+ */
1640
+ queriesControllerGetQuery(queryId, options) {
1641
+ return __awaiter(this, void 0, void 0, function* () {
1642
+ var _a, _b, _c;
1643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.queriesControllerGetQuery(queryId, options);
1644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1645
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QueriesApi.queriesControllerGetQuery']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1646
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1647
+ });
1648
+ },
1649
+ /**
1650
+ * Lists batch query runs (submitted via YAML).
1651
+ * @summary List batch queries
1652
+ * @param {number} [page] 1-based page number.
1653
+ * @param {number} [limit] Page size.
1654
+ * @param {string} [documentId] Filter by document ID.
1655
+ * @param {*} [options] Override http request option.
1656
+ * @throws {RequiredError}
1657
+ */
1658
+ queriesControllerListQueries(page, limit, documentId, options) {
1659
+ return __awaiter(this, void 0, void 0, function* () {
1660
+ var _a, _b, _c;
1661
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.queriesControllerListQueries(page, limit, documentId, options);
1662
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1663
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QueriesApi.queriesControllerListQueries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1664
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1665
+ });
1666
+ },
1667
+ /**
1668
+ * Validates an uploaded batch queries YAML without creating a query.
1669
+ * @summary Validate batch query YAML
1670
+ * @param {File} yaml YAML file to validate.
1671
+ * @param {*} [options] Override http request option.
1672
+ * @throws {RequiredError}
1673
+ */
1674
+ queriesControllerValidateQueryYaml(yaml, options) {
1675
+ return __awaiter(this, void 0, void 0, function* () {
1676
+ var _a, _b, _c;
1677
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.queriesControllerValidateQueryYaml(yaml, options);
1678
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1679
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QueriesApi.queriesControllerValidateQueryYaml']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1680
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1681
+ });
1682
+ },
1683
+ };
1684
+ };
1685
+ exports.QueriesApiFp = QueriesApiFp;
1686
+ /**
1687
+ * QueriesApi - factory interface
1688
+ */
1689
+ const QueriesApiFactory = function (configuration, basePath, axios) {
1690
+ const localVarFp = (0, exports.QueriesApiFp)(configuration);
1691
+ return {
1692
+ /**
1693
+ * Uploads a batch queries YAML (multipart form). Typically schedules a job.
1694
+ * @summary Create batch query from YAML
1695
+ * @param {File} yaml Batch queries YAML file.
1696
+ * @param {boolean} [watch]
1697
+ * @param {*} [options] Override http request option.
1698
+ * @throws {RequiredError}
1699
+ */
1700
+ queriesControllerCreateQuery(yaml, watch, options) {
1701
+ return localVarFp.queriesControllerCreateQuery(yaml, watch, options).then((request) => request(axios, basePath));
1702
+ },
1703
+ /**
1704
+ *
1705
+ * @summary Read batch query
1706
+ * @param {string} queryId Batch query ID.
1707
+ * @param {*} [options] Override http request option.
1708
+ * @throws {RequiredError}
1709
+ */
1710
+ queriesControllerGetQuery(queryId, options) {
1711
+ return localVarFp.queriesControllerGetQuery(queryId, options).then((request) => request(axios, basePath));
1712
+ },
1713
+ /**
1714
+ * Lists batch query runs (submitted via YAML).
1715
+ * @summary List batch queries
1716
+ * @param {number} [page] 1-based page number.
1717
+ * @param {number} [limit] Page size.
1718
+ * @param {string} [documentId] Filter by document ID.
1719
+ * @param {*} [options] Override http request option.
1720
+ * @throws {RequiredError}
1721
+ */
1722
+ queriesControllerListQueries(page, limit, documentId, options) {
1723
+ return localVarFp.queriesControllerListQueries(page, limit, documentId, options).then((request) => request(axios, basePath));
1724
+ },
1725
+ /**
1726
+ * Validates an uploaded batch queries YAML without creating a query.
1727
+ * @summary Validate batch query YAML
1728
+ * @param {File} yaml YAML file to validate.
1729
+ * @param {*} [options] Override http request option.
1730
+ * @throws {RequiredError}
1731
+ */
1732
+ queriesControllerValidateQueryYaml(yaml, options) {
1733
+ return localVarFp.queriesControllerValidateQueryYaml(yaml, options).then((request) => request(axios, basePath));
1734
+ },
1735
+ };
1736
+ };
1737
+ exports.QueriesApiFactory = QueriesApiFactory;
1738
+ /**
1739
+ * QueriesApi - object-oriented interface
1740
+ */
1741
+ class QueriesApi extends base_1.BaseAPI {
1742
+ /**
1743
+ * Uploads a batch queries YAML (multipart form). Typically schedules a job.
1744
+ * @summary Create batch query from YAML
1745
+ * @param {File} yaml Batch queries YAML file.
1746
+ * @param {boolean} [watch]
1747
+ * @param {*} [options] Override http request option.
1748
+ * @throws {RequiredError}
1749
+ */
1750
+ queriesControllerCreateQuery(yaml, watch, options) {
1751
+ return (0, exports.QueriesApiFp)(this.configuration).queriesControllerCreateQuery(yaml, watch, options).then((request) => request(this.axios, this.basePath));
1752
+ }
1753
+ /**
1754
+ *
1755
+ * @summary Read batch query
1756
+ * @param {string} queryId Batch query ID.
1757
+ * @param {*} [options] Override http request option.
1758
+ * @throws {RequiredError}
1759
+ */
1760
+ queriesControllerGetQuery(queryId, options) {
1761
+ return (0, exports.QueriesApiFp)(this.configuration).queriesControllerGetQuery(queryId, options).then((request) => request(this.axios, this.basePath));
1762
+ }
1763
+ /**
1764
+ * Lists batch query runs (submitted via YAML).
1765
+ * @summary List batch queries
1766
+ * @param {number} [page] 1-based page number.
1767
+ * @param {number} [limit] Page size.
1768
+ * @param {string} [documentId] Filter by document ID.
1769
+ * @param {*} [options] Override http request option.
1770
+ * @throws {RequiredError}
1771
+ */
1772
+ queriesControllerListQueries(page, limit, documentId, options) {
1773
+ return (0, exports.QueriesApiFp)(this.configuration).queriesControllerListQueries(page, limit, documentId, options).then((request) => request(this.axios, this.basePath));
1774
+ }
1775
+ /**
1776
+ * Validates an uploaded batch queries YAML without creating a query.
1777
+ * @summary Validate batch query YAML
1778
+ * @param {File} yaml YAML file to validate.
1779
+ * @param {*} [options] Override http request option.
1780
+ * @throws {RequiredError}
1781
+ */
1782
+ queriesControllerValidateQueryYaml(yaml, options) {
1783
+ return (0, exports.QueriesApiFp)(this.configuration).queriesControllerValidateQueryYaml(yaml, options).then((request) => request(this.axios, this.basePath));
1784
+ }
1785
+ }
1786
+ exports.QueriesApi = QueriesApi;
1787
+ /**
1788
+ * SourcesApi - axios parameter creator
1789
+ */
1790
+ const SourcesApiAxiosParamCreator = function (configuration) {
1791
+ return {
1792
+ /**
1793
+ * Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
1794
+ * @summary Read document sources
1795
+ * @param {string} documentId Document ID.
1796
+ * @param {any} [jobId] Optional job ID to scope sources to a specific query job.
1797
+ * @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
1798
+ * @param {*} [options] Override http request option.
1799
+ * @throws {RequiredError}
1800
+ */
1801
+ sourcesControllerGetDocumentSources: (documentId_1, jobId_1, sourceId_1, ...args_1) => __awaiter(this, [documentId_1, jobId_1, sourceId_1, ...args_1], void 0, function* (documentId, jobId, sourceId, options = {}) {
1802
+ // verify required parameter 'documentId' is not null or undefined
1803
+ (0, common_1.assertParamExists)('sourcesControllerGetDocumentSources', 'documentId', documentId);
1804
+ const localVarPath = `/documents/{documentId}/sources`
1805
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
1806
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1807
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1808
+ let baseOptions;
1809
+ if (configuration) {
1810
+ baseOptions = configuration.baseOptions;
1811
+ }
1812
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1813
+ const localVarHeaderParameter = {};
1814
+ const localVarQueryParameter = {};
1815
+ if (jobId !== undefined) {
1816
+ for (const [key, value] of Object.entries(jobId)) {
1817
+ localVarQueryParameter[key] = value;
1818
+ }
1819
+ }
1820
+ if (sourceId !== undefined) {
1821
+ for (const [key, value] of Object.entries(sourceId)) {
1822
+ localVarQueryParameter[key] = value;
1823
+ }
1824
+ }
1825
+ localVarHeaderParameter['Accept'] = 'application/json';
1826
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1827
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1828
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1829
+ return {
1830
+ url: (0, common_1.toPathString)(localVarUrlObj),
1831
+ options: localVarRequestOptions,
1832
+ };
1833
+ }),
1834
+ };
1835
+ };
1836
+ exports.SourcesApiAxiosParamCreator = SourcesApiAxiosParamCreator;
1837
+ /**
1838
+ * SourcesApi - functional programming interface
1839
+ */
1840
+ const SourcesApiFp = function (configuration) {
1841
+ const localVarAxiosParamCreator = (0, exports.SourcesApiAxiosParamCreator)(configuration);
1842
+ return {
1843
+ /**
1844
+ * Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
1845
+ * @summary Read document sources
1846
+ * @param {string} documentId Document ID.
1847
+ * @param {any} [jobId] Optional job ID to scope sources to a specific query job.
1848
+ * @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
1849
+ * @param {*} [options] Override http request option.
1850
+ * @throws {RequiredError}
1851
+ */
1852
+ sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options) {
1853
+ return __awaiter(this, void 0, void 0, function* () {
1854
+ var _a, _b, _c;
1855
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options);
1856
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1857
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourcesApi.sourcesControllerGetDocumentSources']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1858
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1859
+ });
1860
+ },
1861
+ };
1862
+ };
1863
+ exports.SourcesApiFp = SourcesApiFp;
1864
+ /**
1865
+ * SourcesApi - factory interface
1866
+ */
1867
+ const SourcesApiFactory = function (configuration, basePath, axios) {
1868
+ const localVarFp = (0, exports.SourcesApiFp)(configuration);
1869
+ return {
1870
+ /**
1871
+ * Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
1872
+ * @summary Read document sources
1873
+ * @param {string} documentId Document ID.
1874
+ * @param {any} [jobId] Optional job ID to scope sources to a specific query job.
1875
+ * @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
1876
+ * @param {*} [options] Override http request option.
1877
+ * @throws {RequiredError}
1878
+ */
1879
+ sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options) {
1880
+ return localVarFp.sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options).then((request) => request(axios, basePath));
1881
+ },
1882
+ };
1883
+ };
1884
+ exports.SourcesApiFactory = SourcesApiFactory;
1885
+ /**
1886
+ * SourcesApi - object-oriented interface
1887
+ */
1888
+ class SourcesApi extends base_1.BaseAPI {
1889
+ /**
1890
+ * Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
1891
+ * @summary Read document sources
1892
+ * @param {string} documentId Document ID.
1893
+ * @param {any} [jobId] Optional job ID to scope sources to a specific query job.
1894
+ * @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
1895
+ * @param {*} [options] Override http request option.
1896
+ * @throws {RequiredError}
1897
+ */
1898
+ sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options) {
1899
+ return (0, exports.SourcesApiFp)(this.configuration).sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options).then((request) => request(this.axios, this.basePath));
1900
+ }
1901
+ }
1902
+ exports.SourcesApi = SourcesApi;
1903
+ /**
1904
+ * WebhooksApi - axios parameter creator
1905
+ */
1906
+ const WebhooksApiAxiosParamCreator = function (configuration) {
1907
+ return {
1908
+ /**
1909
+ *
1910
+ * @summary Create webhook
1911
+ * @param {CreateWebhookInputDto} createWebhookInputDto
1912
+ * @param {*} [options] Override http request option.
1913
+ * @throws {RequiredError}
1914
+ */
1915
+ webhooksControllerCreateWebhook: (createWebhookInputDto_1, ...args_1) => __awaiter(this, [createWebhookInputDto_1, ...args_1], void 0, function* (createWebhookInputDto, options = {}) {
1916
+ // verify required parameter 'createWebhookInputDto' is not null or undefined
1917
+ (0, common_1.assertParamExists)('webhooksControllerCreateWebhook', 'createWebhookInputDto', createWebhookInputDto);
1918
+ const localVarPath = `/webhooks`;
1919
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1920
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1921
+ let baseOptions;
1922
+ if (configuration) {
1923
+ baseOptions = configuration.baseOptions;
1924
+ }
1925
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1926
+ const localVarHeaderParameter = {};
1927
+ const localVarQueryParameter = {};
1928
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1929
+ localVarHeaderParameter['Accept'] = 'application/json';
1930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1932
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1933
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWebhookInputDto, localVarRequestOptions, configuration);
1934
+ return {
1935
+ url: (0, common_1.toPathString)(localVarUrlObj),
1936
+ options: localVarRequestOptions,
1937
+ };
1938
+ }),
1939
+ /**
1940
+ *
1941
+ * @summary Delete webhook
1942
+ * @param {string} webhookId Webhook ID.
1943
+ * @param {*} [options] Override http request option.
1944
+ * @throws {RequiredError}
1945
+ */
1946
+ webhooksControllerDeleteWebhook: (webhookId_1, ...args_1) => __awaiter(this, [webhookId_1, ...args_1], void 0, function* (webhookId, options = {}) {
1947
+ // verify required parameter 'webhookId' is not null or undefined
1948
+ (0, common_1.assertParamExists)('webhooksControllerDeleteWebhook', 'webhookId', webhookId);
1949
+ const localVarPath = `/webhooks/{webhookId}`
1950
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
1951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1952
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1953
+ let baseOptions;
1954
+ if (configuration) {
1955
+ baseOptions = configuration.baseOptions;
1956
+ }
1957
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1958
+ const localVarHeaderParameter = {};
1959
+ const localVarQueryParameter = {};
1960
+ localVarHeaderParameter['Accept'] = 'application/json';
1961
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1962
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1963
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1964
+ return {
1965
+ url: (0, common_1.toPathString)(localVarUrlObj),
1966
+ options: localVarRequestOptions,
1967
+ };
1968
+ }),
1969
+ /**
1970
+ *
1971
+ * @summary Read webhook
1972
+ * @param {string} webhookId Webhook ID.
1973
+ * @param {*} [options] Override http request option.
1974
+ * @throws {RequiredError}
1975
+ */
1976
+ webhooksControllerGetWebhook: (webhookId_1, ...args_1) => __awaiter(this, [webhookId_1, ...args_1], void 0, function* (webhookId, options = {}) {
1977
+ // verify required parameter 'webhookId' is not null or undefined
1978
+ (0, common_1.assertParamExists)('webhooksControllerGetWebhook', 'webhookId', webhookId);
1979
+ const localVarPath = `/webhooks/{webhookId}`
1980
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
1981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1982
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1983
+ let baseOptions;
1984
+ if (configuration) {
1985
+ baseOptions = configuration.baseOptions;
1986
+ }
1987
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1988
+ const localVarHeaderParameter = {};
1989
+ const localVarQueryParameter = {};
1990
+ localVarHeaderParameter['Accept'] = 'application/json';
1991
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1993
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1994
+ return {
1995
+ url: (0, common_1.toPathString)(localVarUrlObj),
1996
+ options: localVarRequestOptions,
1997
+ };
1998
+ }),
1999
+ /**
2000
+ *
2001
+ * @summary List webhooks
2002
+ * @param {number} [page] 1-based page number.
2003
+ * @param {number} [limit] Page size.
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ webhooksControllerListWebhooks: (page_1, limit_1, ...args_1) => __awaiter(this, [page_1, limit_1, ...args_1], void 0, function* (page, limit, options = {}) {
2008
+ const localVarPath = `/webhooks`;
2009
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2010
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2011
+ let baseOptions;
2012
+ if (configuration) {
2013
+ baseOptions = configuration.baseOptions;
2014
+ }
2015
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2016
+ const localVarHeaderParameter = {};
2017
+ const localVarQueryParameter = {};
2018
+ if (page !== undefined) {
2019
+ localVarQueryParameter['page'] = page;
2020
+ }
2021
+ if (limit !== undefined) {
2022
+ localVarQueryParameter['limit'] = limit;
2023
+ }
2024
+ localVarHeaderParameter['Accept'] = 'application/json';
2025
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2026
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2027
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2028
+ return {
2029
+ url: (0, common_1.toPathString)(localVarUrlObj),
2030
+ options: localVarRequestOptions,
2031
+ };
2032
+ }),
2033
+ /**
2034
+ *
2035
+ * @summary Update webhook
2036
+ * @param {string} webhookId Webhook ID.
2037
+ * @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
2038
+ * @param {*} [options] Override http request option.
2039
+ * @throws {RequiredError}
2040
+ */
2041
+ webhooksControllerUpdateWebhook: (webhookId_1, updateWebhookBodyInputDto_1, ...args_1) => __awaiter(this, [webhookId_1, updateWebhookBodyInputDto_1, ...args_1], void 0, function* (webhookId, updateWebhookBodyInputDto, options = {}) {
2042
+ // verify required parameter 'webhookId' is not null or undefined
2043
+ (0, common_1.assertParamExists)('webhooksControllerUpdateWebhook', 'webhookId', webhookId);
2044
+ // verify required parameter 'updateWebhookBodyInputDto' is not null or undefined
2045
+ (0, common_1.assertParamExists)('webhooksControllerUpdateWebhook', 'updateWebhookBodyInputDto', updateWebhookBodyInputDto);
2046
+ const localVarPath = `/webhooks/{webhookId}`
2047
+ .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
2048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2049
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2050
+ let baseOptions;
2051
+ if (configuration) {
2052
+ baseOptions = configuration.baseOptions;
2053
+ }
2054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2055
+ const localVarHeaderParameter = {};
2056
+ const localVarQueryParameter = {};
2057
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2058
+ localVarHeaderParameter['Accept'] = 'application/json';
2059
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2061
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2062
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWebhookBodyInputDto, localVarRequestOptions, configuration);
2063
+ return {
2064
+ url: (0, common_1.toPathString)(localVarUrlObj),
2065
+ options: localVarRequestOptions,
2066
+ };
2067
+ }),
2068
+ };
2069
+ };
2070
+ exports.WebhooksApiAxiosParamCreator = WebhooksApiAxiosParamCreator;
2071
+ /**
2072
+ * WebhooksApi - functional programming interface
2073
+ */
2074
+ const WebhooksApiFp = function (configuration) {
2075
+ const localVarAxiosParamCreator = (0, exports.WebhooksApiAxiosParamCreator)(configuration);
2076
+ return {
2077
+ /**
2078
+ *
2079
+ * @summary Create webhook
2080
+ * @param {CreateWebhookInputDto} createWebhookInputDto
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ */
2084
+ webhooksControllerCreateWebhook(createWebhookInputDto, options) {
2085
+ return __awaiter(this, void 0, void 0, function* () {
2086
+ var _a, _b, _c;
2087
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhooksControllerCreateWebhook(createWebhookInputDto, options);
2088
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2089
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.webhooksControllerCreateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2090
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2091
+ });
2092
+ },
2093
+ /**
2094
+ *
2095
+ * @summary Delete webhook
2096
+ * @param {string} webhookId Webhook ID.
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ */
2100
+ webhooksControllerDeleteWebhook(webhookId, options) {
2101
+ return __awaiter(this, void 0, void 0, function* () {
2102
+ var _a, _b, _c;
2103
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhooksControllerDeleteWebhook(webhookId, options);
2104
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2105
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.webhooksControllerDeleteWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2106
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2107
+ });
2108
+ },
2109
+ /**
2110
+ *
2111
+ * @summary Read webhook
2112
+ * @param {string} webhookId Webhook ID.
2113
+ * @param {*} [options] Override http request option.
2114
+ * @throws {RequiredError}
2115
+ */
2116
+ webhooksControllerGetWebhook(webhookId, options) {
2117
+ return __awaiter(this, void 0, void 0, function* () {
2118
+ var _a, _b, _c;
2119
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhooksControllerGetWebhook(webhookId, options);
2120
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2121
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.webhooksControllerGetWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2122
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2123
+ });
2124
+ },
2125
+ /**
2126
+ *
2127
+ * @summary List webhooks
2128
+ * @param {number} [page] 1-based page number.
2129
+ * @param {number} [limit] Page size.
2130
+ * @param {*} [options] Override http request option.
2131
+ * @throws {RequiredError}
2132
+ */
2133
+ webhooksControllerListWebhooks(page, limit, options) {
2134
+ return __awaiter(this, void 0, void 0, function* () {
2135
+ var _a, _b, _c;
2136
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhooksControllerListWebhooks(page, limit, options);
2137
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2138
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.webhooksControllerListWebhooks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2139
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2140
+ });
2141
+ },
2142
+ /**
2143
+ *
2144
+ * @summary Update webhook
2145
+ * @param {string} webhookId Webhook ID.
2146
+ * @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
2147
+ * @param {*} [options] Override http request option.
2148
+ * @throws {RequiredError}
2149
+ */
2150
+ webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options) {
2151
+ return __awaiter(this, void 0, void 0, function* () {
2152
+ var _a, _b, _c;
2153
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options);
2154
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2155
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhooksApi.webhooksControllerUpdateWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2156
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2157
+ });
2158
+ },
2159
+ };
2160
+ };
2161
+ exports.WebhooksApiFp = WebhooksApiFp;
2162
+ /**
2163
+ * WebhooksApi - factory interface
2164
+ */
2165
+ const WebhooksApiFactory = function (configuration, basePath, axios) {
2166
+ const localVarFp = (0, exports.WebhooksApiFp)(configuration);
2167
+ return {
2168
+ /**
2169
+ *
2170
+ * @summary Create webhook
2171
+ * @param {CreateWebhookInputDto} createWebhookInputDto
2172
+ * @param {*} [options] Override http request option.
2173
+ * @throws {RequiredError}
2174
+ */
2175
+ webhooksControllerCreateWebhook(createWebhookInputDto, options) {
2176
+ return localVarFp.webhooksControllerCreateWebhook(createWebhookInputDto, options).then((request) => request(axios, basePath));
2177
+ },
2178
+ /**
2179
+ *
2180
+ * @summary Delete webhook
2181
+ * @param {string} webhookId Webhook ID.
2182
+ * @param {*} [options] Override http request option.
2183
+ * @throws {RequiredError}
2184
+ */
2185
+ webhooksControllerDeleteWebhook(webhookId, options) {
2186
+ return localVarFp.webhooksControllerDeleteWebhook(webhookId, options).then((request) => request(axios, basePath));
2187
+ },
2188
+ /**
2189
+ *
2190
+ * @summary Read webhook
2191
+ * @param {string} webhookId Webhook ID.
2192
+ * @param {*} [options] Override http request option.
2193
+ * @throws {RequiredError}
2194
+ */
2195
+ webhooksControllerGetWebhook(webhookId, options) {
2196
+ return localVarFp.webhooksControllerGetWebhook(webhookId, options).then((request) => request(axios, basePath));
2197
+ },
2198
+ /**
2199
+ *
2200
+ * @summary List webhooks
2201
+ * @param {number} [page] 1-based page number.
2202
+ * @param {number} [limit] Page size.
2203
+ * @param {*} [options] Override http request option.
2204
+ * @throws {RequiredError}
2205
+ */
2206
+ webhooksControllerListWebhooks(page, limit, options) {
2207
+ return localVarFp.webhooksControllerListWebhooks(page, limit, options).then((request) => request(axios, basePath));
2208
+ },
2209
+ /**
2210
+ *
2211
+ * @summary Update webhook
2212
+ * @param {string} webhookId Webhook ID.
2213
+ * @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
2214
+ * @param {*} [options] Override http request option.
2215
+ * @throws {RequiredError}
2216
+ */
2217
+ webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options) {
2218
+ return localVarFp.webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options).then((request) => request(axios, basePath));
2219
+ },
2220
+ };
2221
+ };
2222
+ exports.WebhooksApiFactory = WebhooksApiFactory;
2223
+ /**
2224
+ * WebhooksApi - object-oriented interface
2225
+ */
2226
+ class WebhooksApi extends base_1.BaseAPI {
2227
+ /**
2228
+ *
2229
+ * @summary Create webhook
2230
+ * @param {CreateWebhookInputDto} createWebhookInputDto
2231
+ * @param {*} [options] Override http request option.
2232
+ * @throws {RequiredError}
2233
+ */
2234
+ webhooksControllerCreateWebhook(createWebhookInputDto, options) {
2235
+ return (0, exports.WebhooksApiFp)(this.configuration).webhooksControllerCreateWebhook(createWebhookInputDto, options).then((request) => request(this.axios, this.basePath));
2236
+ }
2237
+ /**
2238
+ *
2239
+ * @summary Delete webhook
2240
+ * @param {string} webhookId Webhook ID.
2241
+ * @param {*} [options] Override http request option.
2242
+ * @throws {RequiredError}
2243
+ */
2244
+ webhooksControllerDeleteWebhook(webhookId, options) {
2245
+ return (0, exports.WebhooksApiFp)(this.configuration).webhooksControllerDeleteWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
2246
+ }
2247
+ /**
2248
+ *
2249
+ * @summary Read webhook
2250
+ * @param {string} webhookId Webhook ID.
2251
+ * @param {*} [options] Override http request option.
2252
+ * @throws {RequiredError}
2253
+ */
2254
+ webhooksControllerGetWebhook(webhookId, options) {
2255
+ return (0, exports.WebhooksApiFp)(this.configuration).webhooksControllerGetWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
2256
+ }
2257
+ /**
2258
+ *
2259
+ * @summary List webhooks
2260
+ * @param {number} [page] 1-based page number.
2261
+ * @param {number} [limit] Page size.
2262
+ * @param {*} [options] Override http request option.
2263
+ * @throws {RequiredError}
2264
+ */
2265
+ webhooksControllerListWebhooks(page, limit, options) {
2266
+ return (0, exports.WebhooksApiFp)(this.configuration).webhooksControllerListWebhooks(page, limit, options).then((request) => request(this.axios, this.basePath));
2267
+ }
2268
+ /**
2269
+ *
2270
+ * @summary Update webhook
2271
+ * @param {string} webhookId Webhook ID.
2272
+ * @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
2273
+ * @param {*} [options] Override http request option.
2274
+ * @throws {RequiredError}
2275
+ */
2276
+ webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options) {
2277
+ return (0, exports.WebhooksApiFp)(this.configuration).webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options).then((request) => request(this.axios, this.basePath));
2278
+ }
2279
+ }
2280
+ exports.WebhooksApi = WebhooksApi;