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