@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/api.ts
ADDED
|
@@ -0,0 +1,2970 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
export interface BatchQueryDto {
|
|
27
|
+
/**
|
|
28
|
+
* Batch query ID
|
|
29
|
+
*/
|
|
30
|
+
'id': string;
|
|
31
|
+
/**
|
|
32
|
+
* Associated document ID
|
|
33
|
+
*/
|
|
34
|
+
'documentId'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Batch query status
|
|
37
|
+
*/
|
|
38
|
+
'status': BatchQueryDtoStatusEnum;
|
|
39
|
+
/**
|
|
40
|
+
* Batch query creation timestamp
|
|
41
|
+
*/
|
|
42
|
+
'createdAt': string;
|
|
43
|
+
/**
|
|
44
|
+
* Batch query last update timestamp
|
|
45
|
+
*/
|
|
46
|
+
'updatedAt'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Latest job ID associated with this batch query
|
|
49
|
+
*/
|
|
50
|
+
'latestJobId'?: string;
|
|
51
|
+
/**
|
|
52
|
+
* YAML file name
|
|
53
|
+
*/
|
|
54
|
+
'yamlFileName'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional stored results (if persisted)
|
|
57
|
+
*/
|
|
58
|
+
'results'?: { [key: string]: any; };
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const BatchQueryDtoStatusEnum = {
|
|
62
|
+
Queued: 'queued',
|
|
63
|
+
Running: 'running',
|
|
64
|
+
Completed: 'completed',
|
|
65
|
+
Failed: 'failed'
|
|
66
|
+
} as const;
|
|
67
|
+
|
|
68
|
+
export type BatchQueryDtoStatusEnum = typeof BatchQueryDtoStatusEnum[keyof typeof BatchQueryDtoStatusEnum];
|
|
69
|
+
|
|
70
|
+
export interface CreateWebhookInputDto {
|
|
71
|
+
/**
|
|
72
|
+
* Webhook target URL
|
|
73
|
+
*/
|
|
74
|
+
'url': string;
|
|
75
|
+
}
|
|
76
|
+
export interface DocumentCreateResponseDto {
|
|
77
|
+
/**
|
|
78
|
+
* Created document
|
|
79
|
+
*/
|
|
80
|
+
'document': DocumentDto;
|
|
81
|
+
/**
|
|
82
|
+
* Processing job
|
|
83
|
+
*/
|
|
84
|
+
'job': JobDto;
|
|
85
|
+
}
|
|
86
|
+
export interface DocumentDto {
|
|
87
|
+
/**
|
|
88
|
+
* Document ID
|
|
89
|
+
*/
|
|
90
|
+
'id': string;
|
|
91
|
+
/**
|
|
92
|
+
* Associated profile ID
|
|
93
|
+
*/
|
|
94
|
+
'profileId': string;
|
|
95
|
+
/**
|
|
96
|
+
* Document processing status
|
|
97
|
+
*/
|
|
98
|
+
'status': DocumentDtoStatusEnum;
|
|
99
|
+
/**
|
|
100
|
+
* Original file name
|
|
101
|
+
*/
|
|
102
|
+
'fileName'?: string;
|
|
103
|
+
/**
|
|
104
|
+
* MIME content type
|
|
105
|
+
*/
|
|
106
|
+
'contentType'?: string;
|
|
107
|
+
/**
|
|
108
|
+
* File size in bytes
|
|
109
|
+
*/
|
|
110
|
+
'sizeBytes'?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Document creation timestamp
|
|
113
|
+
*/
|
|
114
|
+
'createdAt': string;
|
|
115
|
+
/**
|
|
116
|
+
* Document last update timestamp
|
|
117
|
+
*/
|
|
118
|
+
'updatedAt'?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Latest job ID associated with this document
|
|
121
|
+
*/
|
|
122
|
+
'latestJobId'?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Optional processing metrics (pages, chunks, entities, etc.)
|
|
125
|
+
*/
|
|
126
|
+
'metrics'?: { [key: string]: any; };
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export const DocumentDtoStatusEnum = {
|
|
130
|
+
Queued: 'queued',
|
|
131
|
+
Processing: 'processing',
|
|
132
|
+
Ready: 'ready',
|
|
133
|
+
Failed: 'failed',
|
|
134
|
+
Deleted: 'deleted'
|
|
135
|
+
} as const;
|
|
136
|
+
|
|
137
|
+
export type DocumentDtoStatusEnum = typeof DocumentDtoStatusEnum[keyof typeof DocumentDtoStatusEnum];
|
|
138
|
+
|
|
139
|
+
export interface DocumentSourcesResponseDto {
|
|
140
|
+
/**
|
|
141
|
+
* Source items
|
|
142
|
+
*/
|
|
143
|
+
'data': Array<SourceItemDto>;
|
|
144
|
+
}
|
|
145
|
+
export interface ErrorDto {
|
|
146
|
+
/**
|
|
147
|
+
* Error type
|
|
148
|
+
*/
|
|
149
|
+
'error': string;
|
|
150
|
+
/**
|
|
151
|
+
* Error message
|
|
152
|
+
*/
|
|
153
|
+
'message': string;
|
|
154
|
+
/**
|
|
155
|
+
* Request ID for tracking
|
|
156
|
+
*/
|
|
157
|
+
'requestId'?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Additional error details
|
|
160
|
+
*/
|
|
161
|
+
'details'?: { [key: string]: any; };
|
|
162
|
+
}
|
|
163
|
+
export interface EvalCreateResponseDto {
|
|
164
|
+
/**
|
|
165
|
+
* Created evaluation
|
|
166
|
+
*/
|
|
167
|
+
'eval': EvalDto;
|
|
168
|
+
/**
|
|
169
|
+
* Processing job
|
|
170
|
+
*/
|
|
171
|
+
'job': JobDto;
|
|
172
|
+
}
|
|
173
|
+
export interface EvalDto {
|
|
174
|
+
/**
|
|
175
|
+
* Evaluation ID
|
|
176
|
+
*/
|
|
177
|
+
'id': string;
|
|
178
|
+
/**
|
|
179
|
+
* Associated document ID
|
|
180
|
+
*/
|
|
181
|
+
'documentId': string;
|
|
182
|
+
/**
|
|
183
|
+
* Evaluation status
|
|
184
|
+
*/
|
|
185
|
+
'status': EvalDtoStatusEnum;
|
|
186
|
+
/**
|
|
187
|
+
* Evaluation creation timestamp
|
|
188
|
+
*/
|
|
189
|
+
'createdAt': string;
|
|
190
|
+
/**
|
|
191
|
+
* Evaluation last update timestamp
|
|
192
|
+
*/
|
|
193
|
+
'updatedAt'?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Latest job ID associated with this evaluation
|
|
196
|
+
*/
|
|
197
|
+
'latestJobId'?: string;
|
|
198
|
+
/**
|
|
199
|
+
* YAML file name
|
|
200
|
+
*/
|
|
201
|
+
'yamlFileName'?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Optional aggregated metrics (e.g., similarity scores)
|
|
204
|
+
*/
|
|
205
|
+
'summary'?: { [key: string]: any; };
|
|
206
|
+
/**
|
|
207
|
+
* Optional detailed report (if stored)
|
|
208
|
+
*/
|
|
209
|
+
'report'?: { [key: string]: any; };
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export const EvalDtoStatusEnum = {
|
|
213
|
+
Queued: 'queued',
|
|
214
|
+
Running: 'running',
|
|
215
|
+
Completed: 'completed',
|
|
216
|
+
Failed: 'failed'
|
|
217
|
+
} as const;
|
|
218
|
+
|
|
219
|
+
export type EvalDtoStatusEnum = typeof EvalDtoStatusEnum[keyof typeof EvalDtoStatusEnum];
|
|
220
|
+
|
|
221
|
+
export interface GpuDeviceDto {
|
|
222
|
+
/**
|
|
223
|
+
* GPU device index
|
|
224
|
+
*/
|
|
225
|
+
'index': number;
|
|
226
|
+
/**
|
|
227
|
+
* GPU device name
|
|
228
|
+
*/
|
|
229
|
+
'name': string;
|
|
230
|
+
/**
|
|
231
|
+
* Total GPU memory in MB
|
|
232
|
+
*/
|
|
233
|
+
'memoryTotalMB': number;
|
|
234
|
+
/**
|
|
235
|
+
* Used GPU memory in MB
|
|
236
|
+
*/
|
|
237
|
+
'memoryUsedMB'?: number;
|
|
238
|
+
/**
|
|
239
|
+
* GPU utilization percentage
|
|
240
|
+
*/
|
|
241
|
+
'utilizationPct'?: number;
|
|
242
|
+
}
|
|
243
|
+
export interface GpuHealthCheckDto {
|
|
244
|
+
/**
|
|
245
|
+
* GPU health status
|
|
246
|
+
*/
|
|
247
|
+
'status': GpuHealthCheckDtoStatusEnum;
|
|
248
|
+
/**
|
|
249
|
+
* Number of GPU devices
|
|
250
|
+
*/
|
|
251
|
+
'deviceCount'?: number;
|
|
252
|
+
/**
|
|
253
|
+
* GPU devices information
|
|
254
|
+
*/
|
|
255
|
+
'devices'?: Array<GpuDeviceDto>;
|
|
256
|
+
/**
|
|
257
|
+
* GPU status message
|
|
258
|
+
*/
|
|
259
|
+
'message'?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export const GpuHealthCheckDtoStatusEnum = {
|
|
263
|
+
Ok: 'ok',
|
|
264
|
+
Degraded: 'degraded',
|
|
265
|
+
Down: 'down'
|
|
266
|
+
} as const;
|
|
267
|
+
|
|
268
|
+
export type GpuHealthCheckDtoStatusEnum = typeof GpuHealthCheckDtoStatusEnum[keyof typeof GpuHealthCheckDtoStatusEnum];
|
|
269
|
+
|
|
270
|
+
export interface HealthCheckItemDto {
|
|
271
|
+
/**
|
|
272
|
+
* Health check status
|
|
273
|
+
*/
|
|
274
|
+
'status': HealthCheckItemDtoStatusEnum;
|
|
275
|
+
/**
|
|
276
|
+
* Latency in milliseconds
|
|
277
|
+
*/
|
|
278
|
+
'latencyMs'?: number;
|
|
279
|
+
/**
|
|
280
|
+
* Status message
|
|
281
|
+
*/
|
|
282
|
+
'message'?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Additional details
|
|
285
|
+
*/
|
|
286
|
+
'details'?: { [key: string]: any; };
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export const HealthCheckItemDtoStatusEnum = {
|
|
290
|
+
Ok: 'ok',
|
|
291
|
+
Degraded: 'degraded',
|
|
292
|
+
Down: 'down'
|
|
293
|
+
} as const;
|
|
294
|
+
|
|
295
|
+
export type HealthCheckItemDtoStatusEnum = typeof HealthCheckItemDtoStatusEnum[keyof typeof HealthCheckItemDtoStatusEnum];
|
|
296
|
+
|
|
297
|
+
export interface HealthChecksDto {
|
|
298
|
+
/**
|
|
299
|
+
* Redis health check
|
|
300
|
+
*/
|
|
301
|
+
'redis': HealthCheckItemDto;
|
|
302
|
+
/**
|
|
303
|
+
* Database health check
|
|
304
|
+
*/
|
|
305
|
+
'db': HealthCheckItemDto;
|
|
306
|
+
/**
|
|
307
|
+
* GPU health check
|
|
308
|
+
*/
|
|
309
|
+
'gpu': GpuHealthCheckDto;
|
|
310
|
+
}
|
|
311
|
+
export interface HealthResponseDto {
|
|
312
|
+
/**
|
|
313
|
+
* Overall system health status
|
|
314
|
+
*/
|
|
315
|
+
'status': HealthResponseDtoStatusEnum;
|
|
316
|
+
/**
|
|
317
|
+
* Health check timestamp
|
|
318
|
+
*/
|
|
319
|
+
'timestamp': string;
|
|
320
|
+
/**
|
|
321
|
+
* Health check results
|
|
322
|
+
*/
|
|
323
|
+
'checks': HealthChecksDto;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export const HealthResponseDtoStatusEnum = {
|
|
327
|
+
Ok: 'ok',
|
|
328
|
+
Degraded: 'degraded',
|
|
329
|
+
Down: 'down'
|
|
330
|
+
} as const;
|
|
331
|
+
|
|
332
|
+
export type HealthResponseDtoStatusEnum = typeof HealthResponseDtoStatusEnum[keyof typeof HealthResponseDtoStatusEnum];
|
|
333
|
+
|
|
334
|
+
export interface JobDto {
|
|
335
|
+
/**
|
|
336
|
+
* Job ID
|
|
337
|
+
*/
|
|
338
|
+
'id': string;
|
|
339
|
+
/**
|
|
340
|
+
* Job type
|
|
341
|
+
*/
|
|
342
|
+
'type': JobDtoTypeEnum;
|
|
343
|
+
/**
|
|
344
|
+
* Job state
|
|
345
|
+
*/
|
|
346
|
+
'state': JobDtoStateEnum;
|
|
347
|
+
/**
|
|
348
|
+
* Job creation timestamp
|
|
349
|
+
*/
|
|
350
|
+
'createdAt': string;
|
|
351
|
+
/**
|
|
352
|
+
* Job last update timestamp
|
|
353
|
+
*/
|
|
354
|
+
'updatedAt'?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Associated profile ID
|
|
357
|
+
*/
|
|
358
|
+
'profileId'?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Associated document ID
|
|
361
|
+
*/
|
|
362
|
+
'documentId'?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Associated evaluation ID
|
|
365
|
+
*/
|
|
366
|
+
'evalId'?: string;
|
|
367
|
+
/**
|
|
368
|
+
* Associated query ID
|
|
369
|
+
*/
|
|
370
|
+
'queryId'?: string;
|
|
371
|
+
/**
|
|
372
|
+
* 0..1 progress fraction
|
|
373
|
+
*/
|
|
374
|
+
'progress'?: number;
|
|
375
|
+
/**
|
|
376
|
+
* Current pipeline stage
|
|
377
|
+
*/
|
|
378
|
+
'stage'?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Current job message
|
|
381
|
+
*/
|
|
382
|
+
'message'?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Error message if failed
|
|
385
|
+
*/
|
|
386
|
+
'error'?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Job-related links
|
|
389
|
+
*/
|
|
390
|
+
'links'?: JobLinksDto;
|
|
391
|
+
/**
|
|
392
|
+
* Additional job metadata
|
|
393
|
+
*/
|
|
394
|
+
'metadata'?: { [key: string]: any; };
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export const JobDtoTypeEnum = {
|
|
398
|
+
DocumentProcessing: 'document_processing',
|
|
399
|
+
Evaluation: 'evaluation',
|
|
400
|
+
BatchQuery: 'batch_query',
|
|
401
|
+
Other: 'other'
|
|
402
|
+
} as const;
|
|
403
|
+
|
|
404
|
+
export type JobDtoTypeEnum = typeof JobDtoTypeEnum[keyof typeof JobDtoTypeEnum];
|
|
405
|
+
export const JobDtoStateEnum = {
|
|
406
|
+
Pending: 'pending',
|
|
407
|
+
Processing: 'processing',
|
|
408
|
+
Completed: 'completed',
|
|
409
|
+
Failed: 'failed',
|
|
410
|
+
Canceled: 'canceled'
|
|
411
|
+
} as const;
|
|
412
|
+
|
|
413
|
+
export type JobDtoStateEnum = typeof JobDtoStateEnum[keyof typeof JobDtoStateEnum];
|
|
414
|
+
|
|
415
|
+
export interface JobLinksDto {
|
|
416
|
+
/**
|
|
417
|
+
* Job status URI
|
|
418
|
+
*/
|
|
419
|
+
'status'?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Resource URI
|
|
422
|
+
*/
|
|
423
|
+
'resource'?: string;
|
|
424
|
+
}
|
|
425
|
+
export interface JobStatusDto {
|
|
426
|
+
/**
|
|
427
|
+
* Job ID
|
|
428
|
+
*/
|
|
429
|
+
'id': string;
|
|
430
|
+
/**
|
|
431
|
+
* Job state
|
|
432
|
+
*/
|
|
433
|
+
'state': JobStatusDtoStateEnum;
|
|
434
|
+
/**
|
|
435
|
+
* Job last update timestamp
|
|
436
|
+
*/
|
|
437
|
+
'updatedAt': string;
|
|
438
|
+
/**
|
|
439
|
+
* 0..1 progress fraction
|
|
440
|
+
*/
|
|
441
|
+
'progress'?: number;
|
|
442
|
+
/**
|
|
443
|
+
* Current pipeline stage
|
|
444
|
+
*/
|
|
445
|
+
'stage'?: string;
|
|
446
|
+
/**
|
|
447
|
+
* Current job message
|
|
448
|
+
*/
|
|
449
|
+
'message'?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Error message if failed
|
|
452
|
+
*/
|
|
453
|
+
'error'?: string;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export const JobStatusDtoStateEnum = {
|
|
457
|
+
Pending: 'pending',
|
|
458
|
+
Processing: 'processing',
|
|
459
|
+
Completed: 'completed',
|
|
460
|
+
Failed: 'failed',
|
|
461
|
+
Canceled: 'canceled'
|
|
462
|
+
} as const;
|
|
463
|
+
|
|
464
|
+
export type JobStatusDtoStateEnum = typeof JobStatusDtoStateEnum[keyof typeof JobStatusDtoStateEnum];
|
|
465
|
+
|
|
466
|
+
export interface PaginatedDocumentsDto {
|
|
467
|
+
/**
|
|
468
|
+
* Document data
|
|
469
|
+
*/
|
|
470
|
+
'data': Array<DocumentDto>;
|
|
471
|
+
/**
|
|
472
|
+
* Pagination information
|
|
473
|
+
*/
|
|
474
|
+
'pagination': PaginationDto;
|
|
475
|
+
}
|
|
476
|
+
export interface PaginatedEvalsDto {
|
|
477
|
+
/**
|
|
478
|
+
* Evaluation data
|
|
479
|
+
*/
|
|
480
|
+
'data': Array<EvalDto>;
|
|
481
|
+
/**
|
|
482
|
+
* Pagination information
|
|
483
|
+
*/
|
|
484
|
+
'pagination': PaginationDto;
|
|
485
|
+
}
|
|
486
|
+
export interface PaginatedJobsDto {
|
|
487
|
+
/**
|
|
488
|
+
* Job data
|
|
489
|
+
*/
|
|
490
|
+
'data': Array<JobDto>;
|
|
491
|
+
/**
|
|
492
|
+
* Pagination information
|
|
493
|
+
*/
|
|
494
|
+
'pagination': PaginationDto;
|
|
495
|
+
}
|
|
496
|
+
export interface PaginatedProfilesDto {
|
|
497
|
+
/**
|
|
498
|
+
* Profile data
|
|
499
|
+
*/
|
|
500
|
+
'data': Array<ProfileDto>;
|
|
501
|
+
/**
|
|
502
|
+
* Pagination information
|
|
503
|
+
*/
|
|
504
|
+
'pagination': PaginationDto;
|
|
505
|
+
}
|
|
506
|
+
export interface PaginatedQueriesDto {
|
|
507
|
+
/**
|
|
508
|
+
* Batch query data
|
|
509
|
+
*/
|
|
510
|
+
'data': Array<BatchQueryDto>;
|
|
511
|
+
/**
|
|
512
|
+
* Pagination information
|
|
513
|
+
*/
|
|
514
|
+
'pagination': PaginationDto;
|
|
515
|
+
}
|
|
516
|
+
export interface PaginatedWebhooksDto {
|
|
517
|
+
/**
|
|
518
|
+
* Webhook data
|
|
519
|
+
*/
|
|
520
|
+
'data': Array<WebhookDto>;
|
|
521
|
+
/**
|
|
522
|
+
* Pagination information
|
|
523
|
+
*/
|
|
524
|
+
'pagination': PaginationDto;
|
|
525
|
+
}
|
|
526
|
+
export interface PaginationDto {
|
|
527
|
+
/**
|
|
528
|
+
* Current page number
|
|
529
|
+
*/
|
|
530
|
+
'page': number;
|
|
531
|
+
/**
|
|
532
|
+
* Page size limit
|
|
533
|
+
*/
|
|
534
|
+
'limit': number;
|
|
535
|
+
/**
|
|
536
|
+
* Total number of items
|
|
537
|
+
*/
|
|
538
|
+
'total': number;
|
|
539
|
+
}
|
|
540
|
+
export interface ProfileDto {
|
|
541
|
+
/**
|
|
542
|
+
* Profile ID
|
|
543
|
+
*/
|
|
544
|
+
'id': string;
|
|
545
|
+
/**
|
|
546
|
+
* Profile name
|
|
547
|
+
*/
|
|
548
|
+
'name': string;
|
|
549
|
+
/**
|
|
550
|
+
* Profile description
|
|
551
|
+
*/
|
|
552
|
+
'description'?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Profile creation timestamp
|
|
555
|
+
*/
|
|
556
|
+
'createdAt': string;
|
|
557
|
+
/**
|
|
558
|
+
* Profile last update timestamp
|
|
559
|
+
*/
|
|
560
|
+
'updatedAt'?: string;
|
|
561
|
+
/**
|
|
562
|
+
* YAML file name
|
|
563
|
+
*/
|
|
564
|
+
'yamlFileName'?: string;
|
|
565
|
+
/**
|
|
566
|
+
* Optional checksum of the uploaded YAML file
|
|
567
|
+
*/
|
|
568
|
+
'yamlSha256'?: string;
|
|
569
|
+
}
|
|
570
|
+
export interface QueryCreateResponseDto {
|
|
571
|
+
/**
|
|
572
|
+
* Created batch query
|
|
573
|
+
*/
|
|
574
|
+
'query': BatchQueryDto;
|
|
575
|
+
/**
|
|
576
|
+
* Processing job
|
|
577
|
+
*/
|
|
578
|
+
'job': JobDto;
|
|
579
|
+
}
|
|
580
|
+
export interface SourceItemDto {
|
|
581
|
+
/**
|
|
582
|
+
* Source ID
|
|
583
|
+
*/
|
|
584
|
+
'id': string;
|
|
585
|
+
/**
|
|
586
|
+
* Associated document ID
|
|
587
|
+
*/
|
|
588
|
+
'documentId': string;
|
|
589
|
+
/**
|
|
590
|
+
* Associated job ID
|
|
591
|
+
*/
|
|
592
|
+
'jobId'?: string;
|
|
593
|
+
/**
|
|
594
|
+
* Chunk ID
|
|
595
|
+
*/
|
|
596
|
+
'chunkId'?: string;
|
|
597
|
+
/**
|
|
598
|
+
* Page number
|
|
599
|
+
*/
|
|
600
|
+
'page'?: number;
|
|
601
|
+
/**
|
|
602
|
+
* Source text content
|
|
603
|
+
*/
|
|
604
|
+
'text': string;
|
|
605
|
+
/**
|
|
606
|
+
* Additional metadata
|
|
607
|
+
*/
|
|
608
|
+
'metadata'?: { [key: string]: any; };
|
|
609
|
+
}
|
|
610
|
+
export interface UpdateWebhookBodyInputDto {
|
|
611
|
+
/**
|
|
612
|
+
* Updated webhook target URL
|
|
613
|
+
*/
|
|
614
|
+
'url': string;
|
|
615
|
+
}
|
|
616
|
+
export interface ValidationErrorDto {
|
|
617
|
+
/**
|
|
618
|
+
* Error type
|
|
619
|
+
*/
|
|
620
|
+
'error': string;
|
|
621
|
+
/**
|
|
622
|
+
* Error message
|
|
623
|
+
*/
|
|
624
|
+
'message': string;
|
|
625
|
+
/**
|
|
626
|
+
* Validation issues
|
|
627
|
+
*/
|
|
628
|
+
'issues': Array<ValidationIssueDto>;
|
|
629
|
+
/**
|
|
630
|
+
* Request ID for tracking
|
|
631
|
+
*/
|
|
632
|
+
'requestId'?: string;
|
|
633
|
+
}
|
|
634
|
+
export interface ValidationIssueDto {
|
|
635
|
+
/**
|
|
636
|
+
* JSON pointer-like path into the YAML document
|
|
637
|
+
*/
|
|
638
|
+
'path': string;
|
|
639
|
+
/**
|
|
640
|
+
* Validation issue message
|
|
641
|
+
*/
|
|
642
|
+
'message': string;
|
|
643
|
+
/**
|
|
644
|
+
* Issue severity
|
|
645
|
+
*/
|
|
646
|
+
'severity'?: ValidationIssueDtoSeverityEnum;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export const ValidationIssueDtoSeverityEnum = {
|
|
650
|
+
Error: 'error',
|
|
651
|
+
Warning: 'warning'
|
|
652
|
+
} as const;
|
|
653
|
+
|
|
654
|
+
export type ValidationIssueDtoSeverityEnum = typeof ValidationIssueDtoSeverityEnum[keyof typeof ValidationIssueDtoSeverityEnum];
|
|
655
|
+
|
|
656
|
+
export interface ValidationResultDto {
|
|
657
|
+
/**
|
|
658
|
+
* Whether the validation passed
|
|
659
|
+
*/
|
|
660
|
+
'valid': boolean;
|
|
661
|
+
/**
|
|
662
|
+
* Non-fatal issues
|
|
663
|
+
*/
|
|
664
|
+
'warnings'?: Array<ValidationIssueDto>;
|
|
665
|
+
/**
|
|
666
|
+
* Optional normalized representation (if available)
|
|
667
|
+
*/
|
|
668
|
+
'normalized'?: { [key: string]: any; };
|
|
669
|
+
}
|
|
670
|
+
export interface WebhookDto {
|
|
671
|
+
/**
|
|
672
|
+
* Webhook ID
|
|
673
|
+
*/
|
|
674
|
+
'id': string;
|
|
675
|
+
/**
|
|
676
|
+
* Webhook target URL
|
|
677
|
+
*/
|
|
678
|
+
'url': string;
|
|
679
|
+
/**
|
|
680
|
+
* Webhook creation timestamp
|
|
681
|
+
*/
|
|
682
|
+
'createdAt': string;
|
|
683
|
+
/**
|
|
684
|
+
* Webhook last update timestamp
|
|
685
|
+
*/
|
|
686
|
+
'updatedAt': string;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* ArtifactsApi - axios parameter creator
|
|
691
|
+
*/
|
|
692
|
+
export const ArtifactsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
693
|
+
return {
|
|
694
|
+
/**
|
|
695
|
+
* Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
|
|
696
|
+
* @summary Download document artifacts
|
|
697
|
+
* @param {string} documentId Document ID.
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
artifactsControllerDownloadDocumentArtifacts: async (documentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
702
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
703
|
+
assertParamExists('artifactsControllerDownloadDocumentArtifacts', 'documentId', documentId)
|
|
704
|
+
const localVarPath = `/documents/{documentId}/artifacts`
|
|
705
|
+
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
|
706
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
707
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
708
|
+
let baseOptions;
|
|
709
|
+
if (configuration) {
|
|
710
|
+
baseOptions = configuration.baseOptions;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
714
|
+
const localVarHeaderParameter = {} as any;
|
|
715
|
+
const localVarQueryParameter = {} as any;
|
|
716
|
+
|
|
717
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
718
|
+
|
|
719
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
720
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
721
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
722
|
+
|
|
723
|
+
return {
|
|
724
|
+
url: toPathString(localVarUrlObj),
|
|
725
|
+
options: localVarRequestOptions,
|
|
726
|
+
};
|
|
727
|
+
},
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* ArtifactsApi - functional programming interface
|
|
733
|
+
*/
|
|
734
|
+
export const ArtifactsApiFp = function(configuration?: Configuration) {
|
|
735
|
+
const localVarAxiosParamCreator = ArtifactsApiAxiosParamCreator(configuration)
|
|
736
|
+
return {
|
|
737
|
+
/**
|
|
738
|
+
* Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
|
|
739
|
+
* @summary Download document artifacts
|
|
740
|
+
* @param {string} documentId Document ID.
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
*/
|
|
744
|
+
async artifactsControllerDownloadDocumentArtifacts(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
745
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.artifactsControllerDownloadDocumentArtifacts(documentId, options);
|
|
746
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
747
|
+
const localVarOperationServerBasePath = operationServerMap['ArtifactsApi.artifactsControllerDownloadDocumentArtifacts']?.[localVarOperationServerIndex]?.url;
|
|
748
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
749
|
+
},
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* ArtifactsApi - factory interface
|
|
755
|
+
*/
|
|
756
|
+
export const ArtifactsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
757
|
+
const localVarFp = ArtifactsApiFp(configuration)
|
|
758
|
+
return {
|
|
759
|
+
/**
|
|
760
|
+
* Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
|
|
761
|
+
* @summary Download document artifacts
|
|
762
|
+
* @param {string} documentId Document ID.
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
*/
|
|
766
|
+
artifactsControllerDownloadDocumentArtifacts(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
767
|
+
return localVarFp.artifactsControllerDownloadDocumentArtifacts(documentId, options).then((request) => request(axios, basePath));
|
|
768
|
+
},
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* ArtifactsApi - object-oriented interface
|
|
774
|
+
*/
|
|
775
|
+
export class ArtifactsApi extends BaseAPI {
|
|
776
|
+
/**
|
|
777
|
+
* Downloads artifacts produced by the pipeline (e.g., GraphRAG outputs, DB snapshots, visualizations) as a single archive.
|
|
778
|
+
* @summary Download document artifacts
|
|
779
|
+
* @param {string} documentId Document ID.
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
public artifactsControllerDownloadDocumentArtifacts(documentId: string, options?: RawAxiosRequestConfig) {
|
|
784
|
+
return ArtifactsApiFp(this.configuration).artifactsControllerDownloadDocumentArtifacts(documentId, options).then((request) => request(this.axios, this.basePath));
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* DocumentsApi - axios parameter creator
|
|
792
|
+
*/
|
|
793
|
+
export const DocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
794
|
+
return {
|
|
795
|
+
/**
|
|
796
|
+
* Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
|
|
797
|
+
* @summary Create document processing job
|
|
798
|
+
* @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
|
|
799
|
+
* @param {File} file Document file to process (pdf/md/html/docx/etc).
|
|
800
|
+
* @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
|
|
801
|
+
* @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
|
|
802
|
+
* @param {boolean} [visualize] Whether to generate graph visualization artifacts.
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
documentsControllerCreateDocument: async (profileId: string, file: File, stages?: string, priority?: DocumentsControllerCreateDocumentPriorityEnum, visualize?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
807
|
+
// verify required parameter 'profileId' is not null or undefined
|
|
808
|
+
assertParamExists('documentsControllerCreateDocument', 'profileId', profileId)
|
|
809
|
+
// verify required parameter 'file' is not null or undefined
|
|
810
|
+
assertParamExists('documentsControllerCreateDocument', 'file', file)
|
|
811
|
+
const localVarPath = `/documents`;
|
|
812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
813
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
814
|
+
let baseOptions;
|
|
815
|
+
if (configuration) {
|
|
816
|
+
baseOptions = configuration.baseOptions;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
820
|
+
const localVarHeaderParameter = {} as any;
|
|
821
|
+
const localVarQueryParameter = {} as any;
|
|
822
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
if (profileId !== undefined) {
|
|
826
|
+
localVarFormParams.append('profileId', profileId as any);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
if (file !== undefined) {
|
|
830
|
+
localVarFormParams.append('file', file as any);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
if (stages !== undefined) {
|
|
834
|
+
localVarFormParams.append('stages', stages as any);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
if (priority !== undefined) {
|
|
838
|
+
localVarFormParams.append('priority', priority as any);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
if (visualize !== undefined) {
|
|
842
|
+
localVarFormParams.append('visualize', String(visualize) as any);
|
|
843
|
+
}
|
|
844
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
845
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
846
|
+
|
|
847
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
848
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
849
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
850
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
851
|
+
|
|
852
|
+
return {
|
|
853
|
+
url: toPathString(localVarUrlObj),
|
|
854
|
+
options: localVarRequestOptions,
|
|
855
|
+
};
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @summary Read document
|
|
860
|
+
* @param {string} documentId Document ID.
|
|
861
|
+
* @param {*} [options] Override http request option.
|
|
862
|
+
* @throws {RequiredError}
|
|
863
|
+
*/
|
|
864
|
+
documentsControllerGetDocument: async (documentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
865
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
866
|
+
assertParamExists('documentsControllerGetDocument', 'documentId', documentId)
|
|
867
|
+
const localVarPath = `/documents/{documentId}`
|
|
868
|
+
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
|
869
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
870
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
871
|
+
let baseOptions;
|
|
872
|
+
if (configuration) {
|
|
873
|
+
baseOptions = configuration.baseOptions;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
877
|
+
const localVarHeaderParameter = {} as any;
|
|
878
|
+
const localVarQueryParameter = {} as any;
|
|
879
|
+
|
|
880
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
881
|
+
|
|
882
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
883
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
884
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
885
|
+
|
|
886
|
+
return {
|
|
887
|
+
url: toPathString(localVarUrlObj),
|
|
888
|
+
options: localVarRequestOptions,
|
|
889
|
+
};
|
|
890
|
+
},
|
|
891
|
+
/**
|
|
892
|
+
* List processed documents. Supports filtering by profileId.
|
|
893
|
+
* @summary List documents
|
|
894
|
+
* @param {number} [page] 1-based page number.
|
|
895
|
+
* @param {number} [limit] Page size.
|
|
896
|
+
* @param {string} [profileId] Filter documents by profile/config ID.
|
|
897
|
+
* @param {*} [options] Override http request option.
|
|
898
|
+
* @throws {RequiredError}
|
|
899
|
+
*/
|
|
900
|
+
documentsControllerListDocuments: async (page?: number, limit?: number, profileId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
901
|
+
const localVarPath = `/documents`;
|
|
902
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
903
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
904
|
+
let baseOptions;
|
|
905
|
+
if (configuration) {
|
|
906
|
+
baseOptions = configuration.baseOptions;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
910
|
+
const localVarHeaderParameter = {} as any;
|
|
911
|
+
const localVarQueryParameter = {} as any;
|
|
912
|
+
|
|
913
|
+
if (page !== undefined) {
|
|
914
|
+
localVarQueryParameter['page'] = page;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
if (limit !== undefined) {
|
|
918
|
+
localVarQueryParameter['limit'] = limit;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
if (profileId !== undefined) {
|
|
922
|
+
localVarQueryParameter['profileId'] = profileId;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
926
|
+
|
|
927
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
928
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
929
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
930
|
+
|
|
931
|
+
return {
|
|
932
|
+
url: toPathString(localVarUrlObj),
|
|
933
|
+
options: localVarRequestOptions,
|
|
934
|
+
};
|
|
935
|
+
},
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* DocumentsApi - functional programming interface
|
|
941
|
+
*/
|
|
942
|
+
export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
943
|
+
const localVarAxiosParamCreator = DocumentsApiAxiosParamCreator(configuration)
|
|
944
|
+
return {
|
|
945
|
+
/**
|
|
946
|
+
* Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
|
|
947
|
+
* @summary Create document processing job
|
|
948
|
+
* @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
|
|
949
|
+
* @param {File} file Document file to process (pdf/md/html/docx/etc).
|
|
950
|
+
* @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
|
|
951
|
+
* @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
|
|
952
|
+
* @param {boolean} [visualize] Whether to generate graph visualization artifacts.
|
|
953
|
+
* @param {*} [options] Override http request option.
|
|
954
|
+
* @throws {RequiredError}
|
|
955
|
+
*/
|
|
956
|
+
async documentsControllerCreateDocument(profileId: string, file: File, stages?: string, priority?: DocumentsControllerCreateDocumentPriorityEnum, visualize?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentCreateResponseDto>> {
|
|
957
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options);
|
|
958
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
959
|
+
const localVarOperationServerBasePath = operationServerMap['DocumentsApi.documentsControllerCreateDocument']?.[localVarOperationServerIndex]?.url;
|
|
960
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
*
|
|
964
|
+
* @summary Read document
|
|
965
|
+
* @param {string} documentId Document ID.
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
*/
|
|
969
|
+
async documentsControllerGetDocument(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentDto>> {
|
|
970
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsControllerGetDocument(documentId, options);
|
|
971
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
972
|
+
const localVarOperationServerBasePath = operationServerMap['DocumentsApi.documentsControllerGetDocument']?.[localVarOperationServerIndex]?.url;
|
|
973
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
974
|
+
},
|
|
975
|
+
/**
|
|
976
|
+
* List processed documents. Supports filtering by profileId.
|
|
977
|
+
* @summary List documents
|
|
978
|
+
* @param {number} [page] 1-based page number.
|
|
979
|
+
* @param {number} [limit] Page size.
|
|
980
|
+
* @param {string} [profileId] Filter documents by profile/config ID.
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
*/
|
|
984
|
+
async documentsControllerListDocuments(page?: number, limit?: number, profileId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedDocumentsDto>> {
|
|
985
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsControllerListDocuments(page, limit, profileId, options);
|
|
986
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
987
|
+
const localVarOperationServerBasePath = operationServerMap['DocumentsApi.documentsControllerListDocuments']?.[localVarOperationServerIndex]?.url;
|
|
988
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
989
|
+
},
|
|
990
|
+
}
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* DocumentsApi - factory interface
|
|
995
|
+
*/
|
|
996
|
+
export const DocumentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
997
|
+
const localVarFp = DocumentsApiFp(configuration)
|
|
998
|
+
return {
|
|
999
|
+
/**
|
|
1000
|
+
* Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
|
|
1001
|
+
* @summary Create document processing job
|
|
1002
|
+
* @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
|
|
1003
|
+
* @param {File} file Document file to process (pdf/md/html/docx/etc).
|
|
1004
|
+
* @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
|
|
1005
|
+
* @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
|
|
1006
|
+
* @param {boolean} [visualize] Whether to generate graph visualization artifacts.
|
|
1007
|
+
* @param {*} [options] Override http request option.
|
|
1008
|
+
* @throws {RequiredError}
|
|
1009
|
+
*/
|
|
1010
|
+
documentsControllerCreateDocument(profileId: string, file: File, stages?: string, priority?: DocumentsControllerCreateDocumentPriorityEnum, visualize?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DocumentCreateResponseDto> {
|
|
1011
|
+
return localVarFp.documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options).then((request) => request(axios, basePath));
|
|
1012
|
+
},
|
|
1013
|
+
/**
|
|
1014
|
+
*
|
|
1015
|
+
* @summary Read document
|
|
1016
|
+
* @param {string} documentId Document ID.
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
*/
|
|
1020
|
+
documentsControllerGetDocument(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<DocumentDto> {
|
|
1021
|
+
return localVarFp.documentsControllerGetDocument(documentId, options).then((request) => request(axios, basePath));
|
|
1022
|
+
},
|
|
1023
|
+
/**
|
|
1024
|
+
* List processed documents. Supports filtering by profileId.
|
|
1025
|
+
* @summary List documents
|
|
1026
|
+
* @param {number} [page] 1-based page number.
|
|
1027
|
+
* @param {number} [limit] Page size.
|
|
1028
|
+
* @param {string} [profileId] Filter documents by profile/config ID.
|
|
1029
|
+
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @throws {RequiredError}
|
|
1031
|
+
*/
|
|
1032
|
+
documentsControllerListDocuments(page?: number, limit?: number, profileId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedDocumentsDto> {
|
|
1033
|
+
return localVarFp.documentsControllerListDocuments(page, limit, profileId, options).then((request) => request(axios, basePath));
|
|
1034
|
+
},
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* DocumentsApi - object-oriented interface
|
|
1040
|
+
*/
|
|
1041
|
+
export class DocumentsApi extends BaseAPI {
|
|
1042
|
+
/**
|
|
1043
|
+
* Upload a document file (pdf/md/html/docx/etc) via multipart form to start processing.
|
|
1044
|
+
* @summary Create document processing job
|
|
1045
|
+
* @param {string} profileId Profile/config ID to use for processing (maps to CLI --config).
|
|
1046
|
+
* @param {File} file Document file to process (pdf/md/html/docx/etc).
|
|
1047
|
+
* @param {string} [stages] Comma-separated stages to run (e.g., docling,chunking,graphrag). If omitted, auto-detected by server.
|
|
1048
|
+
* @param {DocumentsControllerCreateDocumentPriorityEnum} [priority]
|
|
1049
|
+
* @param {boolean} [visualize] Whether to generate graph visualization artifacts.
|
|
1050
|
+
* @param {*} [options] Override http request option.
|
|
1051
|
+
* @throws {RequiredError}
|
|
1052
|
+
*/
|
|
1053
|
+
public documentsControllerCreateDocument(profileId: string, file: File, stages?: string, priority?: DocumentsControllerCreateDocumentPriorityEnum, visualize?: boolean, options?: RawAxiosRequestConfig) {
|
|
1054
|
+
return DocumentsApiFp(this.configuration).documentsControllerCreateDocument(profileId, file, stages, priority, visualize, options).then((request) => request(this.axios, this.basePath));
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @summary Read document
|
|
1060
|
+
* @param {string} documentId Document ID.
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
public documentsControllerGetDocument(documentId: string, options?: RawAxiosRequestConfig) {
|
|
1065
|
+
return DocumentsApiFp(this.configuration).documentsControllerGetDocument(documentId, options).then((request) => request(this.axios, this.basePath));
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* List processed documents. Supports filtering by profileId.
|
|
1070
|
+
* @summary List documents
|
|
1071
|
+
* @param {number} [page] 1-based page number.
|
|
1072
|
+
* @param {number} [limit] Page size.
|
|
1073
|
+
* @param {string} [profileId] Filter documents by profile/config ID.
|
|
1074
|
+
* @param {*} [options] Override http request option.
|
|
1075
|
+
* @throws {RequiredError}
|
|
1076
|
+
*/
|
|
1077
|
+
public documentsControllerListDocuments(page?: number, limit?: number, profileId?: string, options?: RawAxiosRequestConfig) {
|
|
1078
|
+
return DocumentsApiFp(this.configuration).documentsControllerListDocuments(page, limit, profileId, options).then((request) => request(this.axios, this.basePath));
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export const DocumentsControllerCreateDocumentPriorityEnum = {
|
|
1083
|
+
Low: 'low',
|
|
1084
|
+
Normal: 'normal',
|
|
1085
|
+
High: 'high'
|
|
1086
|
+
} as const;
|
|
1087
|
+
export type DocumentsControllerCreateDocumentPriorityEnum = typeof DocumentsControllerCreateDocumentPriorityEnum[keyof typeof DocumentsControllerCreateDocumentPriorityEnum];
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* EvalsApi - axios parameter creator
|
|
1092
|
+
*/
|
|
1093
|
+
export const EvalsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1094
|
+
return {
|
|
1095
|
+
/**
|
|
1096
|
+
* Uploads an eval YAML (test cases) to run against a document.
|
|
1097
|
+
* @summary Create an eval from YAML
|
|
1098
|
+
* @param {string} documentId Document ID.
|
|
1099
|
+
* @param {File} yaml Eval YAML file (test cases).
|
|
1100
|
+
* @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
evalsControllerCreateEval: async (documentId: string, yaml: File, watch?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1105
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
1106
|
+
assertParamExists('evalsControllerCreateEval', 'documentId', documentId)
|
|
1107
|
+
// verify required parameter 'yaml' is not null or undefined
|
|
1108
|
+
assertParamExists('evalsControllerCreateEval', 'yaml', yaml)
|
|
1109
|
+
const localVarPath = `/documents/{documentId}/evals`
|
|
1110
|
+
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
|
1111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1113
|
+
let baseOptions;
|
|
1114
|
+
if (configuration) {
|
|
1115
|
+
baseOptions = configuration.baseOptions;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1119
|
+
const localVarHeaderParameter = {} as any;
|
|
1120
|
+
const localVarQueryParameter = {} as any;
|
|
1121
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
if (yaml !== undefined) {
|
|
1125
|
+
localVarFormParams.append('yaml', yaml as any);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (watch !== undefined) {
|
|
1129
|
+
localVarFormParams.append('watch', String(watch) as any);
|
|
1130
|
+
}
|
|
1131
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1132
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1133
|
+
|
|
1134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1136
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1137
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1138
|
+
|
|
1139
|
+
return {
|
|
1140
|
+
url: toPathString(localVarUrlObj),
|
|
1141
|
+
options: localVarRequestOptions,
|
|
1142
|
+
};
|
|
1143
|
+
},
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @summary Read eval
|
|
1147
|
+
* @param {string} documentId Document ID.
|
|
1148
|
+
* @param {string} evalId Evaluation ID.
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
*/
|
|
1152
|
+
evalsControllerGetEval: async (documentId: string, evalId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1153
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
1154
|
+
assertParamExists('evalsControllerGetEval', 'documentId', documentId)
|
|
1155
|
+
// verify required parameter 'evalId' is not null or undefined
|
|
1156
|
+
assertParamExists('evalsControllerGetEval', 'evalId', evalId)
|
|
1157
|
+
const localVarPath = `/documents/{documentId}/evals/{evalId}`
|
|
1158
|
+
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)))
|
|
1159
|
+
.replace(`{${"evalId"}}`, encodeURIComponent(String(evalId)));
|
|
1160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1162
|
+
let baseOptions;
|
|
1163
|
+
if (configuration) {
|
|
1164
|
+
baseOptions = configuration.baseOptions;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1168
|
+
const localVarHeaderParameter = {} as any;
|
|
1169
|
+
const localVarQueryParameter = {} as any;
|
|
1170
|
+
|
|
1171
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1172
|
+
|
|
1173
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1175
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1176
|
+
|
|
1177
|
+
return {
|
|
1178
|
+
url: toPathString(localVarUrlObj),
|
|
1179
|
+
options: localVarRequestOptions,
|
|
1180
|
+
};
|
|
1181
|
+
},
|
|
1182
|
+
/**
|
|
1183
|
+
*
|
|
1184
|
+
* @summary List evals for a document
|
|
1185
|
+
* @param {string} documentId Document ID.
|
|
1186
|
+
* @param {any} [limit] Page size.
|
|
1187
|
+
* @param {any} [page] 1-based page number.
|
|
1188
|
+
* @param {*} [options] Override http request option.
|
|
1189
|
+
* @throws {RequiredError}
|
|
1190
|
+
*/
|
|
1191
|
+
evalsControllerListEvals: async (documentId: string, limit?: any, page?: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1192
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
1193
|
+
assertParamExists('evalsControllerListEvals', 'documentId', documentId)
|
|
1194
|
+
const localVarPath = `/documents/{documentId}/evals`
|
|
1195
|
+
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
|
1196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1197
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1198
|
+
let baseOptions;
|
|
1199
|
+
if (configuration) {
|
|
1200
|
+
baseOptions = configuration.baseOptions;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1204
|
+
const localVarHeaderParameter = {} as any;
|
|
1205
|
+
const localVarQueryParameter = {} as any;
|
|
1206
|
+
|
|
1207
|
+
if (limit !== undefined) {
|
|
1208
|
+
for (const [key, value] of Object.entries(limit)) {
|
|
1209
|
+
localVarQueryParameter[key] = value;
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
if (page !== undefined) {
|
|
1214
|
+
for (const [key, value] of Object.entries(page)) {
|
|
1215
|
+
localVarQueryParameter[key] = value;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1220
|
+
|
|
1221
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1223
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1224
|
+
|
|
1225
|
+
return {
|
|
1226
|
+
url: toPathString(localVarUrlObj),
|
|
1227
|
+
options: localVarRequestOptions,
|
|
1228
|
+
};
|
|
1229
|
+
},
|
|
1230
|
+
/**
|
|
1231
|
+
* Validates an uploaded eval YAML without creating an eval.
|
|
1232
|
+
* @summary Validate eval YAML
|
|
1233
|
+
* @param {string} documentId Document ID.
|
|
1234
|
+
* @param {File} yaml YAML file to validate.
|
|
1235
|
+
* @param {*} [options] Override http request option.
|
|
1236
|
+
* @throws {RequiredError}
|
|
1237
|
+
*/
|
|
1238
|
+
evalsControllerValidateEvalYaml: async (documentId: string, yaml: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1239
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
1240
|
+
assertParamExists('evalsControllerValidateEvalYaml', 'documentId', documentId)
|
|
1241
|
+
// verify required parameter 'yaml' is not null or undefined
|
|
1242
|
+
assertParamExists('evalsControllerValidateEvalYaml', 'yaml', yaml)
|
|
1243
|
+
const localVarPath = `/documents/{documentId}/evals/validate`
|
|
1244
|
+
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
|
1245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1247
|
+
let baseOptions;
|
|
1248
|
+
if (configuration) {
|
|
1249
|
+
baseOptions = configuration.baseOptions;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1253
|
+
const localVarHeaderParameter = {} as any;
|
|
1254
|
+
const localVarQueryParameter = {} as any;
|
|
1255
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
if (yaml !== undefined) {
|
|
1259
|
+
localVarFormParams.append('yaml', yaml as any);
|
|
1260
|
+
}
|
|
1261
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1262
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1263
|
+
|
|
1264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1266
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1267
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1268
|
+
|
|
1269
|
+
return {
|
|
1270
|
+
url: toPathString(localVarUrlObj),
|
|
1271
|
+
options: localVarRequestOptions,
|
|
1272
|
+
};
|
|
1273
|
+
},
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* EvalsApi - functional programming interface
|
|
1279
|
+
*/
|
|
1280
|
+
export const EvalsApiFp = function(configuration?: Configuration) {
|
|
1281
|
+
const localVarAxiosParamCreator = EvalsApiAxiosParamCreator(configuration)
|
|
1282
|
+
return {
|
|
1283
|
+
/**
|
|
1284
|
+
* Uploads an eval YAML (test cases) to run against a document.
|
|
1285
|
+
* @summary Create an eval from YAML
|
|
1286
|
+
* @param {string} documentId Document ID.
|
|
1287
|
+
* @param {File} yaml Eval YAML file (test cases).
|
|
1288
|
+
* @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
|
|
1289
|
+
* @param {*} [options] Override http request option.
|
|
1290
|
+
* @throws {RequiredError}
|
|
1291
|
+
*/
|
|
1292
|
+
async evalsControllerCreateEval(documentId: string, yaml: File, watch?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvalCreateResponseDto>> {
|
|
1293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.evalsControllerCreateEval(documentId, yaml, watch, options);
|
|
1294
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1295
|
+
const localVarOperationServerBasePath = operationServerMap['EvalsApi.evalsControllerCreateEval']?.[localVarOperationServerIndex]?.url;
|
|
1296
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1297
|
+
},
|
|
1298
|
+
/**
|
|
1299
|
+
*
|
|
1300
|
+
* @summary Read eval
|
|
1301
|
+
* @param {string} documentId Document ID.
|
|
1302
|
+
* @param {string} evalId Evaluation ID.
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @throws {RequiredError}
|
|
1305
|
+
*/
|
|
1306
|
+
async evalsControllerGetEval(documentId: string, evalId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvalDto>> {
|
|
1307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.evalsControllerGetEval(documentId, evalId, options);
|
|
1308
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1309
|
+
const localVarOperationServerBasePath = operationServerMap['EvalsApi.evalsControllerGetEval']?.[localVarOperationServerIndex]?.url;
|
|
1310
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1311
|
+
},
|
|
1312
|
+
/**
|
|
1313
|
+
*
|
|
1314
|
+
* @summary List evals for a document
|
|
1315
|
+
* @param {string} documentId Document ID.
|
|
1316
|
+
* @param {any} [limit] Page size.
|
|
1317
|
+
* @param {any} [page] 1-based page number.
|
|
1318
|
+
* @param {*} [options] Override http request option.
|
|
1319
|
+
* @throws {RequiredError}
|
|
1320
|
+
*/
|
|
1321
|
+
async evalsControllerListEvals(documentId: string, limit?: any, page?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedEvalsDto>> {
|
|
1322
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.evalsControllerListEvals(documentId, limit, page, options);
|
|
1323
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1324
|
+
const localVarOperationServerBasePath = operationServerMap['EvalsApi.evalsControllerListEvals']?.[localVarOperationServerIndex]?.url;
|
|
1325
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1326
|
+
},
|
|
1327
|
+
/**
|
|
1328
|
+
* Validates an uploaded eval YAML without creating an eval.
|
|
1329
|
+
* @summary Validate eval YAML
|
|
1330
|
+
* @param {string} documentId Document ID.
|
|
1331
|
+
* @param {File} yaml YAML file to validate.
|
|
1332
|
+
* @param {*} [options] Override http request option.
|
|
1333
|
+
* @throws {RequiredError}
|
|
1334
|
+
*/
|
|
1335
|
+
async evalsControllerValidateEvalYaml(documentId: string, yaml: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidationResultDto>> {
|
|
1336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.evalsControllerValidateEvalYaml(documentId, yaml, options);
|
|
1337
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1338
|
+
const localVarOperationServerBasePath = operationServerMap['EvalsApi.evalsControllerValidateEvalYaml']?.[localVarOperationServerIndex]?.url;
|
|
1339
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1340
|
+
},
|
|
1341
|
+
}
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* EvalsApi - factory interface
|
|
1346
|
+
*/
|
|
1347
|
+
export const EvalsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1348
|
+
const localVarFp = EvalsApiFp(configuration)
|
|
1349
|
+
return {
|
|
1350
|
+
/**
|
|
1351
|
+
* Uploads an eval YAML (test cases) to run against a document.
|
|
1352
|
+
* @summary Create an eval from YAML
|
|
1353
|
+
* @param {string} documentId Document ID.
|
|
1354
|
+
* @param {File} yaml Eval YAML file (test cases).
|
|
1355
|
+
* @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
|
|
1356
|
+
* @param {*} [options] Override http request option.
|
|
1357
|
+
* @throws {RequiredError}
|
|
1358
|
+
*/
|
|
1359
|
+
evalsControllerCreateEval(documentId: string, yaml: File, watch?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<EvalCreateResponseDto> {
|
|
1360
|
+
return localVarFp.evalsControllerCreateEval(documentId, yaml, watch, options).then((request) => request(axios, basePath));
|
|
1361
|
+
},
|
|
1362
|
+
/**
|
|
1363
|
+
*
|
|
1364
|
+
* @summary Read eval
|
|
1365
|
+
* @param {string} documentId Document ID.
|
|
1366
|
+
* @param {string} evalId Evaluation ID.
|
|
1367
|
+
* @param {*} [options] Override http request option.
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
*/
|
|
1370
|
+
evalsControllerGetEval(documentId: string, evalId: string, options?: RawAxiosRequestConfig): AxiosPromise<EvalDto> {
|
|
1371
|
+
return localVarFp.evalsControllerGetEval(documentId, evalId, options).then((request) => request(axios, basePath));
|
|
1372
|
+
},
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @summary List evals for a document
|
|
1376
|
+
* @param {string} documentId Document ID.
|
|
1377
|
+
* @param {any} [limit] Page size.
|
|
1378
|
+
* @param {any} [page] 1-based page number.
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
evalsControllerListEvals(documentId: string, limit?: any, page?: any, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedEvalsDto> {
|
|
1383
|
+
return localVarFp.evalsControllerListEvals(documentId, limit, page, options).then((request) => request(axios, basePath));
|
|
1384
|
+
},
|
|
1385
|
+
/**
|
|
1386
|
+
* Validates an uploaded eval YAML without creating an eval.
|
|
1387
|
+
* @summary Validate eval YAML
|
|
1388
|
+
* @param {string} documentId Document ID.
|
|
1389
|
+
* @param {File} yaml YAML file to validate.
|
|
1390
|
+
* @param {*} [options] Override http request option.
|
|
1391
|
+
* @throws {RequiredError}
|
|
1392
|
+
*/
|
|
1393
|
+
evalsControllerValidateEvalYaml(documentId: string, yaml: File, options?: RawAxiosRequestConfig): AxiosPromise<ValidationResultDto> {
|
|
1394
|
+
return localVarFp.evalsControllerValidateEvalYaml(documentId, yaml, options).then((request) => request(axios, basePath));
|
|
1395
|
+
},
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* EvalsApi - object-oriented interface
|
|
1401
|
+
*/
|
|
1402
|
+
export class EvalsApi extends BaseAPI {
|
|
1403
|
+
/**
|
|
1404
|
+
* Uploads an eval YAML (test cases) to run against a document.
|
|
1405
|
+
* @summary Create an eval from YAML
|
|
1406
|
+
* @param {string} documentId Document ID.
|
|
1407
|
+
* @param {File} yaml Eval YAML file (test cases).
|
|
1408
|
+
* @param {boolean} [watch] If true, server may keep the request open longer (optional); most clients should poll job status instead.
|
|
1409
|
+
* @param {*} [options] Override http request option.
|
|
1410
|
+
* @throws {RequiredError}
|
|
1411
|
+
*/
|
|
1412
|
+
public evalsControllerCreateEval(documentId: string, yaml: File, watch?: boolean, options?: RawAxiosRequestConfig) {
|
|
1413
|
+
return EvalsApiFp(this.configuration).evalsControllerCreateEval(documentId, yaml, watch, options).then((request) => request(this.axios, this.basePath));
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
*
|
|
1418
|
+
* @summary Read eval
|
|
1419
|
+
* @param {string} documentId Document ID.
|
|
1420
|
+
* @param {string} evalId Evaluation ID.
|
|
1421
|
+
* @param {*} [options] Override http request option.
|
|
1422
|
+
* @throws {RequiredError}
|
|
1423
|
+
*/
|
|
1424
|
+
public evalsControllerGetEval(documentId: string, evalId: string, options?: RawAxiosRequestConfig) {
|
|
1425
|
+
return EvalsApiFp(this.configuration).evalsControllerGetEval(documentId, evalId, options).then((request) => request(this.axios, this.basePath));
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
*
|
|
1430
|
+
* @summary List evals for a document
|
|
1431
|
+
* @param {string} documentId Document ID.
|
|
1432
|
+
* @param {any} [limit] Page size.
|
|
1433
|
+
* @param {any} [page] 1-based page number.
|
|
1434
|
+
* @param {*} [options] Override http request option.
|
|
1435
|
+
* @throws {RequiredError}
|
|
1436
|
+
*/
|
|
1437
|
+
public evalsControllerListEvals(documentId: string, limit?: any, page?: any, options?: RawAxiosRequestConfig) {
|
|
1438
|
+
return EvalsApiFp(this.configuration).evalsControllerListEvals(documentId, limit, page, options).then((request) => request(this.axios, this.basePath));
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Validates an uploaded eval YAML without creating an eval.
|
|
1443
|
+
* @summary Validate eval YAML
|
|
1444
|
+
* @param {string} documentId Document ID.
|
|
1445
|
+
* @param {File} yaml YAML file to validate.
|
|
1446
|
+
* @param {*} [options] Override http request option.
|
|
1447
|
+
* @throws {RequiredError}
|
|
1448
|
+
*/
|
|
1449
|
+
public evalsControllerValidateEvalYaml(documentId: string, yaml: File, options?: RawAxiosRequestConfig) {
|
|
1450
|
+
return EvalsApiFp(this.configuration).evalsControllerValidateEvalYaml(documentId, yaml, options).then((request) => request(this.axios, this.basePath));
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* HealthApi - axios parameter creator
|
|
1458
|
+
*/
|
|
1459
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1460
|
+
return {
|
|
1461
|
+
/**
|
|
1462
|
+
* Returns service health including Redis, database, and GPU status.
|
|
1463
|
+
* @summary Get system health
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
healthControllerGetHealth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1468
|
+
const localVarPath = `/health`;
|
|
1469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1470
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1471
|
+
let baseOptions;
|
|
1472
|
+
if (configuration) {
|
|
1473
|
+
baseOptions = configuration.baseOptions;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1477
|
+
const localVarHeaderParameter = {} as any;
|
|
1478
|
+
const localVarQueryParameter = {} as any;
|
|
1479
|
+
|
|
1480
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1481
|
+
|
|
1482
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1483
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1484
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1485
|
+
|
|
1486
|
+
return {
|
|
1487
|
+
url: toPathString(localVarUrlObj),
|
|
1488
|
+
options: localVarRequestOptions,
|
|
1489
|
+
};
|
|
1490
|
+
},
|
|
1491
|
+
}
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* HealthApi - functional programming interface
|
|
1496
|
+
*/
|
|
1497
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
1498
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
1499
|
+
return {
|
|
1500
|
+
/**
|
|
1501
|
+
* Returns service health including Redis, database, and GPU status.
|
|
1502
|
+
* @summary Get system health
|
|
1503
|
+
* @param {*} [options] Override http request option.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
*/
|
|
1506
|
+
async healthControllerGetHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthResponseDto>> {
|
|
1507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.healthControllerGetHealth(options);
|
|
1508
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1509
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.healthControllerGetHealth']?.[localVarOperationServerIndex]?.url;
|
|
1510
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1511
|
+
},
|
|
1512
|
+
}
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* HealthApi - factory interface
|
|
1517
|
+
*/
|
|
1518
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1519
|
+
const localVarFp = HealthApiFp(configuration)
|
|
1520
|
+
return {
|
|
1521
|
+
/**
|
|
1522
|
+
* Returns service health including Redis, database, and GPU status.
|
|
1523
|
+
* @summary Get system health
|
|
1524
|
+
* @param {*} [options] Override http request option.
|
|
1525
|
+
* @throws {RequiredError}
|
|
1526
|
+
*/
|
|
1527
|
+
healthControllerGetHealth(options?: RawAxiosRequestConfig): AxiosPromise<HealthResponseDto> {
|
|
1528
|
+
return localVarFp.healthControllerGetHealth(options).then((request) => request(axios, basePath));
|
|
1529
|
+
},
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* HealthApi - object-oriented interface
|
|
1535
|
+
*/
|
|
1536
|
+
export class HealthApi extends BaseAPI {
|
|
1537
|
+
/**
|
|
1538
|
+
* Returns service health including Redis, database, and GPU status.
|
|
1539
|
+
* @summary Get system health
|
|
1540
|
+
* @param {*} [options] Override http request option.
|
|
1541
|
+
* @throws {RequiredError}
|
|
1542
|
+
*/
|
|
1543
|
+
public healthControllerGetHealth(options?: RawAxiosRequestConfig) {
|
|
1544
|
+
return HealthApiFp(this.configuration).healthControllerGetHealth(options).then((request) => request(this.axios, this.basePath));
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* JobsApi - axios parameter creator
|
|
1552
|
+
*/
|
|
1553
|
+
export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1554
|
+
return {
|
|
1555
|
+
/**
|
|
1556
|
+
*
|
|
1557
|
+
* @summary Read job
|
|
1558
|
+
* @param {string} jobId Job ID.
|
|
1559
|
+
* @param {*} [options] Override http request option.
|
|
1560
|
+
* @throws {RequiredError}
|
|
1561
|
+
*/
|
|
1562
|
+
jobsControllerGetJob: async (jobId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1563
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
1564
|
+
assertParamExists('jobsControllerGetJob', 'jobId', jobId)
|
|
1565
|
+
const localVarPath = `/jobs/{jobId}`
|
|
1566
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1569
|
+
let baseOptions;
|
|
1570
|
+
if (configuration) {
|
|
1571
|
+
baseOptions = configuration.baseOptions;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1575
|
+
const localVarHeaderParameter = {} as any;
|
|
1576
|
+
const localVarQueryParameter = {} as any;
|
|
1577
|
+
|
|
1578
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1579
|
+
|
|
1580
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1582
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1583
|
+
|
|
1584
|
+
return {
|
|
1585
|
+
url: toPathString(localVarUrlObj),
|
|
1586
|
+
options: localVarRequestOptions,
|
|
1587
|
+
};
|
|
1588
|
+
},
|
|
1589
|
+
/**
|
|
1590
|
+
* Returns a lightweight status payload suitable for polling.
|
|
1591
|
+
* @summary Get job status
|
|
1592
|
+
* @param {string} jobId Job ID.
|
|
1593
|
+
* @param {*} [options] Override http request option.
|
|
1594
|
+
* @throws {RequiredError}
|
|
1595
|
+
*/
|
|
1596
|
+
jobsControllerGetJobStatus: async (jobId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1597
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
1598
|
+
assertParamExists('jobsControllerGetJobStatus', 'jobId', jobId)
|
|
1599
|
+
const localVarPath = `/jobs/{jobId}/status`
|
|
1600
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1603
|
+
let baseOptions;
|
|
1604
|
+
if (configuration) {
|
|
1605
|
+
baseOptions = configuration.baseOptions;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1609
|
+
const localVarHeaderParameter = {} as any;
|
|
1610
|
+
const localVarQueryParameter = {} as any;
|
|
1611
|
+
|
|
1612
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1613
|
+
|
|
1614
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1616
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1617
|
+
|
|
1618
|
+
return {
|
|
1619
|
+
url: toPathString(localVarUrlObj),
|
|
1620
|
+
options: localVarRequestOptions,
|
|
1621
|
+
};
|
|
1622
|
+
},
|
|
1623
|
+
/**
|
|
1624
|
+
* Lists jobs for document processing, evaluations, and query jobs.
|
|
1625
|
+
* @summary List jobs
|
|
1626
|
+
* @param {number} [page] 1-based page number.
|
|
1627
|
+
* @param {number} [limit] Page size.
|
|
1628
|
+
* @param {*} [options] Override http request option.
|
|
1629
|
+
* @throws {RequiredError}
|
|
1630
|
+
*/
|
|
1631
|
+
jobsControllerListJobs: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1632
|
+
const localVarPath = `/jobs`;
|
|
1633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1634
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1635
|
+
let baseOptions;
|
|
1636
|
+
if (configuration) {
|
|
1637
|
+
baseOptions = configuration.baseOptions;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1641
|
+
const localVarHeaderParameter = {} as any;
|
|
1642
|
+
const localVarQueryParameter = {} as any;
|
|
1643
|
+
|
|
1644
|
+
if (page !== undefined) {
|
|
1645
|
+
localVarQueryParameter['page'] = page;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
if (limit !== undefined) {
|
|
1649
|
+
localVarQueryParameter['limit'] = limit;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1653
|
+
|
|
1654
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1655
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1656
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1657
|
+
|
|
1658
|
+
return {
|
|
1659
|
+
url: toPathString(localVarUrlObj),
|
|
1660
|
+
options: localVarRequestOptions,
|
|
1661
|
+
};
|
|
1662
|
+
},
|
|
1663
|
+
}
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* JobsApi - functional programming interface
|
|
1668
|
+
*/
|
|
1669
|
+
export const JobsApiFp = function(configuration?: Configuration) {
|
|
1670
|
+
const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
|
|
1671
|
+
return {
|
|
1672
|
+
/**
|
|
1673
|
+
*
|
|
1674
|
+
* @summary Read job
|
|
1675
|
+
* @param {string} jobId Job ID.
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
*/
|
|
1679
|
+
async jobsControllerGetJob(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobDto>> {
|
|
1680
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.jobsControllerGetJob(jobId, options);
|
|
1681
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1682
|
+
const localVarOperationServerBasePath = operationServerMap['JobsApi.jobsControllerGetJob']?.[localVarOperationServerIndex]?.url;
|
|
1683
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1684
|
+
},
|
|
1685
|
+
/**
|
|
1686
|
+
* Returns a lightweight status payload suitable for polling.
|
|
1687
|
+
* @summary Get job status
|
|
1688
|
+
* @param {string} jobId Job ID.
|
|
1689
|
+
* @param {*} [options] Override http request option.
|
|
1690
|
+
* @throws {RequiredError}
|
|
1691
|
+
*/
|
|
1692
|
+
async jobsControllerGetJobStatus(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
|
|
1693
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.jobsControllerGetJobStatus(jobId, options);
|
|
1694
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1695
|
+
const localVarOperationServerBasePath = operationServerMap['JobsApi.jobsControllerGetJobStatus']?.[localVarOperationServerIndex]?.url;
|
|
1696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1697
|
+
},
|
|
1698
|
+
/**
|
|
1699
|
+
* Lists jobs for document processing, evaluations, and query jobs.
|
|
1700
|
+
* @summary List jobs
|
|
1701
|
+
* @param {number} [page] 1-based page number.
|
|
1702
|
+
* @param {number} [limit] Page size.
|
|
1703
|
+
* @param {*} [options] Override http request option.
|
|
1704
|
+
* @throws {RequiredError}
|
|
1705
|
+
*/
|
|
1706
|
+
async jobsControllerListJobs(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedJobsDto>> {
|
|
1707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.jobsControllerListJobs(page, limit, options);
|
|
1708
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1709
|
+
const localVarOperationServerBasePath = operationServerMap['JobsApi.jobsControllerListJobs']?.[localVarOperationServerIndex]?.url;
|
|
1710
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1711
|
+
},
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* JobsApi - factory interface
|
|
1717
|
+
*/
|
|
1718
|
+
export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1719
|
+
const localVarFp = JobsApiFp(configuration)
|
|
1720
|
+
return {
|
|
1721
|
+
/**
|
|
1722
|
+
*
|
|
1723
|
+
* @summary Read job
|
|
1724
|
+
* @param {string} jobId Job ID.
|
|
1725
|
+
* @param {*} [options] Override http request option.
|
|
1726
|
+
* @throws {RequiredError}
|
|
1727
|
+
*/
|
|
1728
|
+
jobsControllerGetJob(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
|
|
1729
|
+
return localVarFp.jobsControllerGetJob(jobId, options).then((request) => request(axios, basePath));
|
|
1730
|
+
},
|
|
1731
|
+
/**
|
|
1732
|
+
* Returns a lightweight status payload suitable for polling.
|
|
1733
|
+
* @summary Get job status
|
|
1734
|
+
* @param {string} jobId Job ID.
|
|
1735
|
+
* @param {*} [options] Override http request option.
|
|
1736
|
+
* @throws {RequiredError}
|
|
1737
|
+
*/
|
|
1738
|
+
jobsControllerGetJobStatus(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<JobStatusDto> {
|
|
1739
|
+
return localVarFp.jobsControllerGetJobStatus(jobId, options).then((request) => request(axios, basePath));
|
|
1740
|
+
},
|
|
1741
|
+
/**
|
|
1742
|
+
* Lists jobs for document processing, evaluations, and query jobs.
|
|
1743
|
+
* @summary List jobs
|
|
1744
|
+
* @param {number} [page] 1-based page number.
|
|
1745
|
+
* @param {number} [limit] Page size.
|
|
1746
|
+
* @param {*} [options] Override http request option.
|
|
1747
|
+
* @throws {RequiredError}
|
|
1748
|
+
*/
|
|
1749
|
+
jobsControllerListJobs(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedJobsDto> {
|
|
1750
|
+
return localVarFp.jobsControllerListJobs(page, limit, options).then((request) => request(axios, basePath));
|
|
1751
|
+
},
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* JobsApi - object-oriented interface
|
|
1757
|
+
*/
|
|
1758
|
+
export class JobsApi extends BaseAPI {
|
|
1759
|
+
/**
|
|
1760
|
+
*
|
|
1761
|
+
* @summary Read job
|
|
1762
|
+
* @param {string} jobId Job ID.
|
|
1763
|
+
* @param {*} [options] Override http request option.
|
|
1764
|
+
* @throws {RequiredError}
|
|
1765
|
+
*/
|
|
1766
|
+
public jobsControllerGetJob(jobId: string, options?: RawAxiosRequestConfig) {
|
|
1767
|
+
return JobsApiFp(this.configuration).jobsControllerGetJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* Returns a lightweight status payload suitable for polling.
|
|
1772
|
+
* @summary Get job status
|
|
1773
|
+
* @param {string} jobId Job ID.
|
|
1774
|
+
* @param {*} [options] Override http request option.
|
|
1775
|
+
* @throws {RequiredError}
|
|
1776
|
+
*/
|
|
1777
|
+
public jobsControllerGetJobStatus(jobId: string, options?: RawAxiosRequestConfig) {
|
|
1778
|
+
return JobsApiFp(this.configuration).jobsControllerGetJobStatus(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Lists jobs for document processing, evaluations, and query jobs.
|
|
1783
|
+
* @summary List jobs
|
|
1784
|
+
* @param {number} [page] 1-based page number.
|
|
1785
|
+
* @param {number} [limit] Page size.
|
|
1786
|
+
* @param {*} [options] Override http request option.
|
|
1787
|
+
* @throws {RequiredError}
|
|
1788
|
+
*/
|
|
1789
|
+
public jobsControllerListJobs(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
1790
|
+
return JobsApiFp(this.configuration).jobsControllerListJobs(page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* ProfilesApi - axios parameter creator
|
|
1798
|
+
*/
|
|
1799
|
+
export const ProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1800
|
+
return {
|
|
1801
|
+
/**
|
|
1802
|
+
* Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
|
|
1803
|
+
* @summary Create profile from YAML
|
|
1804
|
+
* @param {File} yaml YAML file containing the profile/config.
|
|
1805
|
+
* @param {string} [name] Optional override for profile name (otherwise derived from YAML).
|
|
1806
|
+
* @param {*} [options] Override http request option.
|
|
1807
|
+
* @throws {RequiredError}
|
|
1808
|
+
*/
|
|
1809
|
+
profilesControllerCreateProfile: async (yaml: File, name?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1810
|
+
// verify required parameter 'yaml' is not null or undefined
|
|
1811
|
+
assertParamExists('profilesControllerCreateProfile', 'yaml', yaml)
|
|
1812
|
+
const localVarPath = `/profiles`;
|
|
1813
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1814
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1815
|
+
let baseOptions;
|
|
1816
|
+
if (configuration) {
|
|
1817
|
+
baseOptions = configuration.baseOptions;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1821
|
+
const localVarHeaderParameter = {} as any;
|
|
1822
|
+
const localVarQueryParameter = {} as any;
|
|
1823
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
if (yaml !== undefined) {
|
|
1827
|
+
localVarFormParams.append('yaml', yaml as any);
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
if (name !== undefined) {
|
|
1831
|
+
localVarFormParams.append('name', name as any);
|
|
1832
|
+
}
|
|
1833
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1834
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1835
|
+
|
|
1836
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1837
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1838
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1839
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1840
|
+
|
|
1841
|
+
return {
|
|
1842
|
+
url: toPathString(localVarUrlObj),
|
|
1843
|
+
options: localVarRequestOptions,
|
|
1844
|
+
};
|
|
1845
|
+
},
|
|
1846
|
+
/**
|
|
1847
|
+
*
|
|
1848
|
+
* @summary Read profile
|
|
1849
|
+
* @param {string} profileId Profile/config ID.
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
profilesControllerGetProfile: async (profileId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1854
|
+
// verify required parameter 'profileId' is not null or undefined
|
|
1855
|
+
assertParamExists('profilesControllerGetProfile', 'profileId', profileId)
|
|
1856
|
+
const localVarPath = `/profiles/{profileId}`
|
|
1857
|
+
.replace(`{${"profileId"}}`, encodeURIComponent(String(profileId)));
|
|
1858
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1859
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1860
|
+
let baseOptions;
|
|
1861
|
+
if (configuration) {
|
|
1862
|
+
baseOptions = configuration.baseOptions;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1866
|
+
const localVarHeaderParameter = {} as any;
|
|
1867
|
+
const localVarQueryParameter = {} as any;
|
|
1868
|
+
|
|
1869
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1870
|
+
|
|
1871
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1873
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1874
|
+
|
|
1875
|
+
return {
|
|
1876
|
+
url: toPathString(localVarUrlObj),
|
|
1877
|
+
options: localVarRequestOptions,
|
|
1878
|
+
};
|
|
1879
|
+
},
|
|
1880
|
+
/**
|
|
1881
|
+
* Returns the JSON schema for profile YAML configuration files.
|
|
1882
|
+
* @summary Get profile schema
|
|
1883
|
+
* @param {*} [options] Override http request option.
|
|
1884
|
+
* @throws {RequiredError}
|
|
1885
|
+
*/
|
|
1886
|
+
profilesControllerGetProfileSchema: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1887
|
+
const localVarPath = `/profiles/schema`;
|
|
1888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1890
|
+
let baseOptions;
|
|
1891
|
+
if (configuration) {
|
|
1892
|
+
baseOptions = configuration.baseOptions;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1896
|
+
const localVarHeaderParameter = {} as any;
|
|
1897
|
+
const localVarQueryParameter = {} as any;
|
|
1898
|
+
|
|
1899
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1900
|
+
|
|
1901
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1902
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1903
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1904
|
+
|
|
1905
|
+
return {
|
|
1906
|
+
url: toPathString(localVarUrlObj),
|
|
1907
|
+
options: localVarRequestOptions,
|
|
1908
|
+
};
|
|
1909
|
+
},
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @summary List profiles
|
|
1913
|
+
* @param {number} [page] 1-based page number.
|
|
1914
|
+
* @param {number} [limit] Page size.
|
|
1915
|
+
* @param {*} [options] Override http request option.
|
|
1916
|
+
* @throws {RequiredError}
|
|
1917
|
+
*/
|
|
1918
|
+
profilesControllerListProfiles: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1919
|
+
const localVarPath = `/profiles`;
|
|
1920
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1921
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1922
|
+
let baseOptions;
|
|
1923
|
+
if (configuration) {
|
|
1924
|
+
baseOptions = configuration.baseOptions;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1928
|
+
const localVarHeaderParameter = {} as any;
|
|
1929
|
+
const localVarQueryParameter = {} as any;
|
|
1930
|
+
|
|
1931
|
+
if (page !== undefined) {
|
|
1932
|
+
localVarQueryParameter['page'] = page;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
if (limit !== undefined) {
|
|
1936
|
+
localVarQueryParameter['limit'] = limit;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1940
|
+
|
|
1941
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1942
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1943
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1944
|
+
|
|
1945
|
+
return {
|
|
1946
|
+
url: toPathString(localVarUrlObj),
|
|
1947
|
+
options: localVarRequestOptions,
|
|
1948
|
+
};
|
|
1949
|
+
},
|
|
1950
|
+
}
|
|
1951
|
+
};
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* ProfilesApi - functional programming interface
|
|
1955
|
+
*/
|
|
1956
|
+
export const ProfilesApiFp = function(configuration?: Configuration) {
|
|
1957
|
+
const localVarAxiosParamCreator = ProfilesApiAxiosParamCreator(configuration)
|
|
1958
|
+
return {
|
|
1959
|
+
/**
|
|
1960
|
+
* Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
|
|
1961
|
+
* @summary Create profile from YAML
|
|
1962
|
+
* @param {File} yaml YAML file containing the profile/config.
|
|
1963
|
+
* @param {string} [name] Optional override for profile name (otherwise derived from YAML).
|
|
1964
|
+
* @param {*} [options] Override http request option.
|
|
1965
|
+
* @throws {RequiredError}
|
|
1966
|
+
*/
|
|
1967
|
+
async profilesControllerCreateProfile(yaml: File, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileDto>> {
|
|
1968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.profilesControllerCreateProfile(yaml, name, options);
|
|
1969
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1970
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.profilesControllerCreateProfile']?.[localVarOperationServerIndex]?.url;
|
|
1971
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1972
|
+
},
|
|
1973
|
+
/**
|
|
1974
|
+
*
|
|
1975
|
+
* @summary Read profile
|
|
1976
|
+
* @param {string} profileId Profile/config ID.
|
|
1977
|
+
* @param {*} [options] Override http request option.
|
|
1978
|
+
* @throws {RequiredError}
|
|
1979
|
+
*/
|
|
1980
|
+
async profilesControllerGetProfile(profileId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileDto>> {
|
|
1981
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.profilesControllerGetProfile(profileId, options);
|
|
1982
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1983
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.profilesControllerGetProfile']?.[localVarOperationServerIndex]?.url;
|
|
1984
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1985
|
+
},
|
|
1986
|
+
/**
|
|
1987
|
+
* Returns the JSON schema for profile YAML configuration files.
|
|
1988
|
+
* @summary Get profile schema
|
|
1989
|
+
* @param {*} [options] Override http request option.
|
|
1990
|
+
* @throws {RequiredError}
|
|
1991
|
+
*/
|
|
1992
|
+
async profilesControllerGetProfileSchema(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
1993
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.profilesControllerGetProfileSchema(options);
|
|
1994
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1995
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.profilesControllerGetProfileSchema']?.[localVarOperationServerIndex]?.url;
|
|
1996
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
*
|
|
2000
|
+
* @summary List profiles
|
|
2001
|
+
* @param {number} [page] 1-based page number.
|
|
2002
|
+
* @param {number} [limit] Page size.
|
|
2003
|
+
* @param {*} [options] Override http request option.
|
|
2004
|
+
* @throws {RequiredError}
|
|
2005
|
+
*/
|
|
2006
|
+
async profilesControllerListProfiles(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedProfilesDto>> {
|
|
2007
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.profilesControllerListProfiles(page, limit, options);
|
|
2008
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2009
|
+
const localVarOperationServerBasePath = operationServerMap['ProfilesApi.profilesControllerListProfiles']?.[localVarOperationServerIndex]?.url;
|
|
2010
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2011
|
+
},
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* ProfilesApi - factory interface
|
|
2017
|
+
*/
|
|
2018
|
+
export const ProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2019
|
+
const localVarFp = ProfilesApiFp(configuration)
|
|
2020
|
+
return {
|
|
2021
|
+
/**
|
|
2022
|
+
* Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
|
|
2023
|
+
* @summary Create profile from YAML
|
|
2024
|
+
* @param {File} yaml YAML file containing the profile/config.
|
|
2025
|
+
* @param {string} [name] Optional override for profile name (otherwise derived from YAML).
|
|
2026
|
+
* @param {*} [options] Override http request option.
|
|
2027
|
+
* @throws {RequiredError}
|
|
2028
|
+
*/
|
|
2029
|
+
profilesControllerCreateProfile(yaml: File, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProfileDto> {
|
|
2030
|
+
return localVarFp.profilesControllerCreateProfile(yaml, name, options).then((request) => request(axios, basePath));
|
|
2031
|
+
},
|
|
2032
|
+
/**
|
|
2033
|
+
*
|
|
2034
|
+
* @summary Read profile
|
|
2035
|
+
* @param {string} profileId Profile/config ID.
|
|
2036
|
+
* @param {*} [options] Override http request option.
|
|
2037
|
+
* @throws {RequiredError}
|
|
2038
|
+
*/
|
|
2039
|
+
profilesControllerGetProfile(profileId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProfileDto> {
|
|
2040
|
+
return localVarFp.profilesControllerGetProfile(profileId, options).then((request) => request(axios, basePath));
|
|
2041
|
+
},
|
|
2042
|
+
/**
|
|
2043
|
+
* Returns the JSON schema for profile YAML configuration files.
|
|
2044
|
+
* @summary Get profile schema
|
|
2045
|
+
* @param {*} [options] Override http request option.
|
|
2046
|
+
* @throws {RequiredError}
|
|
2047
|
+
*/
|
|
2048
|
+
profilesControllerGetProfileSchema(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
2049
|
+
return localVarFp.profilesControllerGetProfileSchema(options).then((request) => request(axios, basePath));
|
|
2050
|
+
},
|
|
2051
|
+
/**
|
|
2052
|
+
*
|
|
2053
|
+
* @summary List profiles
|
|
2054
|
+
* @param {number} [page] 1-based page number.
|
|
2055
|
+
* @param {number} [limit] Page size.
|
|
2056
|
+
* @param {*} [options] Override http request option.
|
|
2057
|
+
* @throws {RequiredError}
|
|
2058
|
+
*/
|
|
2059
|
+
profilesControllerListProfiles(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedProfilesDto> {
|
|
2060
|
+
return localVarFp.profilesControllerListProfiles(page, limit, options).then((request) => request(axios, basePath));
|
|
2061
|
+
},
|
|
2062
|
+
};
|
|
2063
|
+
};
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* ProfilesApi - object-oriented interface
|
|
2067
|
+
*/
|
|
2068
|
+
export class ProfilesApi extends BaseAPI {
|
|
2069
|
+
/**
|
|
2070
|
+
* Upload a YAML config file (multipart form). Do not inline YAML parameters in JSON.
|
|
2071
|
+
* @summary Create profile from YAML
|
|
2072
|
+
* @param {File} yaml YAML file containing the profile/config.
|
|
2073
|
+
* @param {string} [name] Optional override for profile name (otherwise derived from YAML).
|
|
2074
|
+
* @param {*} [options] Override http request option.
|
|
2075
|
+
* @throws {RequiredError}
|
|
2076
|
+
*/
|
|
2077
|
+
public profilesControllerCreateProfile(yaml: File, name?: string, options?: RawAxiosRequestConfig) {
|
|
2078
|
+
return ProfilesApiFp(this.configuration).profilesControllerCreateProfile(yaml, name, options).then((request) => request(this.axios, this.basePath));
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
*
|
|
2083
|
+
* @summary Read profile
|
|
2084
|
+
* @param {string} profileId Profile/config ID.
|
|
2085
|
+
* @param {*} [options] Override http request option.
|
|
2086
|
+
* @throws {RequiredError}
|
|
2087
|
+
*/
|
|
2088
|
+
public profilesControllerGetProfile(profileId: string, options?: RawAxiosRequestConfig) {
|
|
2089
|
+
return ProfilesApiFp(this.configuration).profilesControllerGetProfile(profileId, options).then((request) => request(this.axios, this.basePath));
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Returns the JSON schema for profile YAML configuration files.
|
|
2094
|
+
* @summary Get profile schema
|
|
2095
|
+
* @param {*} [options] Override http request option.
|
|
2096
|
+
* @throws {RequiredError}
|
|
2097
|
+
*/
|
|
2098
|
+
public profilesControllerGetProfileSchema(options?: RawAxiosRequestConfig) {
|
|
2099
|
+
return ProfilesApiFp(this.configuration).profilesControllerGetProfileSchema(options).then((request) => request(this.axios, this.basePath));
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
*
|
|
2104
|
+
* @summary List profiles
|
|
2105
|
+
* @param {number} [page] 1-based page number.
|
|
2106
|
+
* @param {number} [limit] Page size.
|
|
2107
|
+
* @param {*} [options] Override http request option.
|
|
2108
|
+
* @throws {RequiredError}
|
|
2109
|
+
*/
|
|
2110
|
+
public profilesControllerListProfiles(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
2111
|
+
return ProfilesApiFp(this.configuration).profilesControllerListProfiles(page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* QueriesApi - axios parameter creator
|
|
2119
|
+
*/
|
|
2120
|
+
export const QueriesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2121
|
+
return {
|
|
2122
|
+
/**
|
|
2123
|
+
* Uploads a batch queries YAML (multipart form). Typically schedules a job.
|
|
2124
|
+
* @summary Create batch query from YAML
|
|
2125
|
+
* @param {File} yaml Batch queries YAML file.
|
|
2126
|
+
* @param {boolean} [watch]
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
*/
|
|
2130
|
+
queriesControllerCreateQuery: async (yaml: File, watch?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2131
|
+
// verify required parameter 'yaml' is not null or undefined
|
|
2132
|
+
assertParamExists('queriesControllerCreateQuery', 'yaml', yaml)
|
|
2133
|
+
const localVarPath = `/query`;
|
|
2134
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2135
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2136
|
+
let baseOptions;
|
|
2137
|
+
if (configuration) {
|
|
2138
|
+
baseOptions = configuration.baseOptions;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2142
|
+
const localVarHeaderParameter = {} as any;
|
|
2143
|
+
const localVarQueryParameter = {} as any;
|
|
2144
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
if (yaml !== undefined) {
|
|
2148
|
+
localVarFormParams.append('yaml', yaml as any);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
if (watch !== undefined) {
|
|
2152
|
+
localVarFormParams.append('watch', String(watch) as any);
|
|
2153
|
+
}
|
|
2154
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2155
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2156
|
+
|
|
2157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2159
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2160
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
2161
|
+
|
|
2162
|
+
return {
|
|
2163
|
+
url: toPathString(localVarUrlObj),
|
|
2164
|
+
options: localVarRequestOptions,
|
|
2165
|
+
};
|
|
2166
|
+
},
|
|
2167
|
+
/**
|
|
2168
|
+
*
|
|
2169
|
+
* @summary Read batch query
|
|
2170
|
+
* @param {string} queryId Batch query ID.
|
|
2171
|
+
* @param {*} [options] Override http request option.
|
|
2172
|
+
* @throws {RequiredError}
|
|
2173
|
+
*/
|
|
2174
|
+
queriesControllerGetQuery: async (queryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2175
|
+
// verify required parameter 'queryId' is not null or undefined
|
|
2176
|
+
assertParamExists('queriesControllerGetQuery', 'queryId', queryId)
|
|
2177
|
+
const localVarPath = `/query/{queryId}`
|
|
2178
|
+
.replace(`{${"queryId"}}`, encodeURIComponent(String(queryId)));
|
|
2179
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2180
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2181
|
+
let baseOptions;
|
|
2182
|
+
if (configuration) {
|
|
2183
|
+
baseOptions = configuration.baseOptions;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2187
|
+
const localVarHeaderParameter = {} as any;
|
|
2188
|
+
const localVarQueryParameter = {} as any;
|
|
2189
|
+
|
|
2190
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2191
|
+
|
|
2192
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2193
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2194
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2195
|
+
|
|
2196
|
+
return {
|
|
2197
|
+
url: toPathString(localVarUrlObj),
|
|
2198
|
+
options: localVarRequestOptions,
|
|
2199
|
+
};
|
|
2200
|
+
},
|
|
2201
|
+
/**
|
|
2202
|
+
* Lists batch query runs (submitted via YAML).
|
|
2203
|
+
* @summary List batch queries
|
|
2204
|
+
* @param {number} [page] 1-based page number.
|
|
2205
|
+
* @param {number} [limit] Page size.
|
|
2206
|
+
* @param {string} [documentId] Filter by document ID.
|
|
2207
|
+
* @param {*} [options] Override http request option.
|
|
2208
|
+
* @throws {RequiredError}
|
|
2209
|
+
*/
|
|
2210
|
+
queriesControllerListQueries: async (page?: number, limit?: number, documentId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2211
|
+
const localVarPath = `/query`;
|
|
2212
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2214
|
+
let baseOptions;
|
|
2215
|
+
if (configuration) {
|
|
2216
|
+
baseOptions = configuration.baseOptions;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2220
|
+
const localVarHeaderParameter = {} as any;
|
|
2221
|
+
const localVarQueryParameter = {} as any;
|
|
2222
|
+
|
|
2223
|
+
if (page !== undefined) {
|
|
2224
|
+
localVarQueryParameter['page'] = page;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
if (limit !== undefined) {
|
|
2228
|
+
localVarQueryParameter['limit'] = limit;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
if (documentId !== undefined) {
|
|
2232
|
+
localVarQueryParameter['documentId'] = documentId;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2236
|
+
|
|
2237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2240
|
+
|
|
2241
|
+
return {
|
|
2242
|
+
url: toPathString(localVarUrlObj),
|
|
2243
|
+
options: localVarRequestOptions,
|
|
2244
|
+
};
|
|
2245
|
+
},
|
|
2246
|
+
/**
|
|
2247
|
+
* Validates an uploaded batch queries YAML without creating a query.
|
|
2248
|
+
* @summary Validate batch query YAML
|
|
2249
|
+
* @param {File} yaml YAML file to validate.
|
|
2250
|
+
* @param {*} [options] Override http request option.
|
|
2251
|
+
* @throws {RequiredError}
|
|
2252
|
+
*/
|
|
2253
|
+
queriesControllerValidateQueryYaml: async (yaml: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2254
|
+
// verify required parameter 'yaml' is not null or undefined
|
|
2255
|
+
assertParamExists('queriesControllerValidateQueryYaml', 'yaml', yaml)
|
|
2256
|
+
const localVarPath = `/query/validate`;
|
|
2257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2258
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2259
|
+
let baseOptions;
|
|
2260
|
+
if (configuration) {
|
|
2261
|
+
baseOptions = configuration.baseOptions;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2265
|
+
const localVarHeaderParameter = {} as any;
|
|
2266
|
+
const localVarQueryParameter = {} as any;
|
|
2267
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
if (yaml !== undefined) {
|
|
2271
|
+
localVarFormParams.append('yaml', yaml as any);
|
|
2272
|
+
}
|
|
2273
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2274
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2275
|
+
|
|
2276
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2278
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2279
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
2280
|
+
|
|
2281
|
+
return {
|
|
2282
|
+
url: toPathString(localVarUrlObj),
|
|
2283
|
+
options: localVarRequestOptions,
|
|
2284
|
+
};
|
|
2285
|
+
},
|
|
2286
|
+
}
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* QueriesApi - functional programming interface
|
|
2291
|
+
*/
|
|
2292
|
+
export const QueriesApiFp = function(configuration?: Configuration) {
|
|
2293
|
+
const localVarAxiosParamCreator = QueriesApiAxiosParamCreator(configuration)
|
|
2294
|
+
return {
|
|
2295
|
+
/**
|
|
2296
|
+
* Uploads a batch queries YAML (multipart form). Typically schedules a job.
|
|
2297
|
+
* @summary Create batch query from YAML
|
|
2298
|
+
* @param {File} yaml Batch queries YAML file.
|
|
2299
|
+
* @param {boolean} [watch]
|
|
2300
|
+
* @param {*} [options] Override http request option.
|
|
2301
|
+
* @throws {RequiredError}
|
|
2302
|
+
*/
|
|
2303
|
+
async queriesControllerCreateQuery(yaml: File, watch?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryCreateResponseDto>> {
|
|
2304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queriesControllerCreateQuery(yaml, watch, options);
|
|
2305
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2306
|
+
const localVarOperationServerBasePath = operationServerMap['QueriesApi.queriesControllerCreateQuery']?.[localVarOperationServerIndex]?.url;
|
|
2307
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2308
|
+
},
|
|
2309
|
+
/**
|
|
2310
|
+
*
|
|
2311
|
+
* @summary Read batch query
|
|
2312
|
+
* @param {string} queryId Batch query ID.
|
|
2313
|
+
* @param {*} [options] Override http request option.
|
|
2314
|
+
* @throws {RequiredError}
|
|
2315
|
+
*/
|
|
2316
|
+
async queriesControllerGetQuery(queryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchQueryDto>> {
|
|
2317
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queriesControllerGetQuery(queryId, options);
|
|
2318
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2319
|
+
const localVarOperationServerBasePath = operationServerMap['QueriesApi.queriesControllerGetQuery']?.[localVarOperationServerIndex]?.url;
|
|
2320
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2321
|
+
},
|
|
2322
|
+
/**
|
|
2323
|
+
* Lists batch query runs (submitted via YAML).
|
|
2324
|
+
* @summary List batch queries
|
|
2325
|
+
* @param {number} [page] 1-based page number.
|
|
2326
|
+
* @param {number} [limit] Page size.
|
|
2327
|
+
* @param {string} [documentId] Filter by document ID.
|
|
2328
|
+
* @param {*} [options] Override http request option.
|
|
2329
|
+
* @throws {RequiredError}
|
|
2330
|
+
*/
|
|
2331
|
+
async queriesControllerListQueries(page?: number, limit?: number, documentId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedQueriesDto>> {
|
|
2332
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queriesControllerListQueries(page, limit, documentId, options);
|
|
2333
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2334
|
+
const localVarOperationServerBasePath = operationServerMap['QueriesApi.queriesControllerListQueries']?.[localVarOperationServerIndex]?.url;
|
|
2335
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2336
|
+
},
|
|
2337
|
+
/**
|
|
2338
|
+
* Validates an uploaded batch queries YAML without creating a query.
|
|
2339
|
+
* @summary Validate batch query YAML
|
|
2340
|
+
* @param {File} yaml YAML file to validate.
|
|
2341
|
+
* @param {*} [options] Override http request option.
|
|
2342
|
+
* @throws {RequiredError}
|
|
2343
|
+
*/
|
|
2344
|
+
async queriesControllerValidateQueryYaml(yaml: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidationResultDto>> {
|
|
2345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queriesControllerValidateQueryYaml(yaml, options);
|
|
2346
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2347
|
+
const localVarOperationServerBasePath = operationServerMap['QueriesApi.queriesControllerValidateQueryYaml']?.[localVarOperationServerIndex]?.url;
|
|
2348
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2349
|
+
},
|
|
2350
|
+
}
|
|
2351
|
+
};
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* QueriesApi - factory interface
|
|
2355
|
+
*/
|
|
2356
|
+
export const QueriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2357
|
+
const localVarFp = QueriesApiFp(configuration)
|
|
2358
|
+
return {
|
|
2359
|
+
/**
|
|
2360
|
+
* Uploads a batch queries YAML (multipart form). Typically schedules a job.
|
|
2361
|
+
* @summary Create batch query from YAML
|
|
2362
|
+
* @param {File} yaml Batch queries YAML file.
|
|
2363
|
+
* @param {boolean} [watch]
|
|
2364
|
+
* @param {*} [options] Override http request option.
|
|
2365
|
+
* @throws {RequiredError}
|
|
2366
|
+
*/
|
|
2367
|
+
queriesControllerCreateQuery(yaml: File, watch?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<QueryCreateResponseDto> {
|
|
2368
|
+
return localVarFp.queriesControllerCreateQuery(yaml, watch, options).then((request) => request(axios, basePath));
|
|
2369
|
+
},
|
|
2370
|
+
/**
|
|
2371
|
+
*
|
|
2372
|
+
* @summary Read batch query
|
|
2373
|
+
* @param {string} queryId Batch query ID.
|
|
2374
|
+
* @param {*} [options] Override http request option.
|
|
2375
|
+
* @throws {RequiredError}
|
|
2376
|
+
*/
|
|
2377
|
+
queriesControllerGetQuery(queryId: string, options?: RawAxiosRequestConfig): AxiosPromise<BatchQueryDto> {
|
|
2378
|
+
return localVarFp.queriesControllerGetQuery(queryId, options).then((request) => request(axios, basePath));
|
|
2379
|
+
},
|
|
2380
|
+
/**
|
|
2381
|
+
* Lists batch query runs (submitted via YAML).
|
|
2382
|
+
* @summary List batch queries
|
|
2383
|
+
* @param {number} [page] 1-based page number.
|
|
2384
|
+
* @param {number} [limit] Page size.
|
|
2385
|
+
* @param {string} [documentId] Filter by document ID.
|
|
2386
|
+
* @param {*} [options] Override http request option.
|
|
2387
|
+
* @throws {RequiredError}
|
|
2388
|
+
*/
|
|
2389
|
+
queriesControllerListQueries(page?: number, limit?: number, documentId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedQueriesDto> {
|
|
2390
|
+
return localVarFp.queriesControllerListQueries(page, limit, documentId, options).then((request) => request(axios, basePath));
|
|
2391
|
+
},
|
|
2392
|
+
/**
|
|
2393
|
+
* Validates an uploaded batch queries YAML without creating a query.
|
|
2394
|
+
* @summary Validate batch query YAML
|
|
2395
|
+
* @param {File} yaml YAML file to validate.
|
|
2396
|
+
* @param {*} [options] Override http request option.
|
|
2397
|
+
* @throws {RequiredError}
|
|
2398
|
+
*/
|
|
2399
|
+
queriesControllerValidateQueryYaml(yaml: File, options?: RawAxiosRequestConfig): AxiosPromise<ValidationResultDto> {
|
|
2400
|
+
return localVarFp.queriesControllerValidateQueryYaml(yaml, options).then((request) => request(axios, basePath));
|
|
2401
|
+
},
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
|
|
2405
|
+
/**
|
|
2406
|
+
* QueriesApi - object-oriented interface
|
|
2407
|
+
*/
|
|
2408
|
+
export class QueriesApi extends BaseAPI {
|
|
2409
|
+
/**
|
|
2410
|
+
* Uploads a batch queries YAML (multipart form). Typically schedules a job.
|
|
2411
|
+
* @summary Create batch query from YAML
|
|
2412
|
+
* @param {File} yaml Batch queries YAML file.
|
|
2413
|
+
* @param {boolean} [watch]
|
|
2414
|
+
* @param {*} [options] Override http request option.
|
|
2415
|
+
* @throws {RequiredError}
|
|
2416
|
+
*/
|
|
2417
|
+
public queriesControllerCreateQuery(yaml: File, watch?: boolean, options?: RawAxiosRequestConfig) {
|
|
2418
|
+
return QueriesApiFp(this.configuration).queriesControllerCreateQuery(yaml, watch, options).then((request) => request(this.axios, this.basePath));
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
*
|
|
2423
|
+
* @summary Read batch query
|
|
2424
|
+
* @param {string} queryId Batch query ID.
|
|
2425
|
+
* @param {*} [options] Override http request option.
|
|
2426
|
+
* @throws {RequiredError}
|
|
2427
|
+
*/
|
|
2428
|
+
public queriesControllerGetQuery(queryId: string, options?: RawAxiosRequestConfig) {
|
|
2429
|
+
return QueriesApiFp(this.configuration).queriesControllerGetQuery(queryId, options).then((request) => request(this.axios, this.basePath));
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* Lists batch query runs (submitted via YAML).
|
|
2434
|
+
* @summary List batch queries
|
|
2435
|
+
* @param {number} [page] 1-based page number.
|
|
2436
|
+
* @param {number} [limit] Page size.
|
|
2437
|
+
* @param {string} [documentId] Filter by document ID.
|
|
2438
|
+
* @param {*} [options] Override http request option.
|
|
2439
|
+
* @throws {RequiredError}
|
|
2440
|
+
*/
|
|
2441
|
+
public queriesControllerListQueries(page?: number, limit?: number, documentId?: string, options?: RawAxiosRequestConfig) {
|
|
2442
|
+
return QueriesApiFp(this.configuration).queriesControllerListQueries(page, limit, documentId, options).then((request) => request(this.axios, this.basePath));
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Validates an uploaded batch queries YAML without creating a query.
|
|
2447
|
+
* @summary Validate batch query YAML
|
|
2448
|
+
* @param {File} yaml YAML file to validate.
|
|
2449
|
+
* @param {*} [options] Override http request option.
|
|
2450
|
+
* @throws {RequiredError}
|
|
2451
|
+
*/
|
|
2452
|
+
public queriesControllerValidateQueryYaml(yaml: File, options?: RawAxiosRequestConfig) {
|
|
2453
|
+
return QueriesApiFp(this.configuration).queriesControllerValidateQueryYaml(yaml, options).then((request) => request(this.axios, this.basePath));
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* SourcesApi - axios parameter creator
|
|
2461
|
+
*/
|
|
2462
|
+
export const SourcesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2463
|
+
return {
|
|
2464
|
+
/**
|
|
2465
|
+
* Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
|
|
2466
|
+
* @summary Read document sources
|
|
2467
|
+
* @param {string} documentId Document ID.
|
|
2468
|
+
* @param {any} [jobId] Optional job ID to scope sources to a specific query job.
|
|
2469
|
+
* @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
|
|
2470
|
+
* @param {*} [options] Override http request option.
|
|
2471
|
+
* @throws {RequiredError}
|
|
2472
|
+
*/
|
|
2473
|
+
sourcesControllerGetDocumentSources: async (documentId: string, jobId?: any, sourceId?: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2474
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
2475
|
+
assertParamExists('sourcesControllerGetDocumentSources', 'documentId', documentId)
|
|
2476
|
+
const localVarPath = `/documents/{documentId}/sources`
|
|
2477
|
+
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
|
2478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2480
|
+
let baseOptions;
|
|
2481
|
+
if (configuration) {
|
|
2482
|
+
baseOptions = configuration.baseOptions;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2486
|
+
const localVarHeaderParameter = {} as any;
|
|
2487
|
+
const localVarQueryParameter = {} as any;
|
|
2488
|
+
|
|
2489
|
+
if (jobId !== undefined) {
|
|
2490
|
+
for (const [key, value] of Object.entries(jobId)) {
|
|
2491
|
+
localVarQueryParameter[key] = value;
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
if (sourceId !== undefined) {
|
|
2496
|
+
for (const [key, value] of Object.entries(sourceId)) {
|
|
2497
|
+
localVarQueryParameter[key] = value;
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2502
|
+
|
|
2503
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2504
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2505
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2506
|
+
|
|
2507
|
+
return {
|
|
2508
|
+
url: toPathString(localVarUrlObj),
|
|
2509
|
+
options: localVarRequestOptions,
|
|
2510
|
+
};
|
|
2511
|
+
},
|
|
2512
|
+
}
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* SourcesApi - functional programming interface
|
|
2517
|
+
*/
|
|
2518
|
+
export const SourcesApiFp = function(configuration?: Configuration) {
|
|
2519
|
+
const localVarAxiosParamCreator = SourcesApiAxiosParamCreator(configuration)
|
|
2520
|
+
return {
|
|
2521
|
+
/**
|
|
2522
|
+
* Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
|
|
2523
|
+
* @summary Read document sources
|
|
2524
|
+
* @param {string} documentId Document ID.
|
|
2525
|
+
* @param {any} [jobId] Optional job ID to scope sources to a specific query job.
|
|
2526
|
+
* @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
|
|
2527
|
+
* @param {*} [options] Override http request option.
|
|
2528
|
+
* @throws {RequiredError}
|
|
2529
|
+
*/
|
|
2530
|
+
async sourcesControllerGetDocumentSources(documentId: string, jobId?: any, sourceId?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentSourcesResponseDto>> {
|
|
2531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options);
|
|
2532
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2533
|
+
const localVarOperationServerBasePath = operationServerMap['SourcesApi.sourcesControllerGetDocumentSources']?.[localVarOperationServerIndex]?.url;
|
|
2534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2535
|
+
},
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* SourcesApi - factory interface
|
|
2541
|
+
*/
|
|
2542
|
+
export const SourcesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2543
|
+
const localVarFp = SourcesApiFp(configuration)
|
|
2544
|
+
return {
|
|
2545
|
+
/**
|
|
2546
|
+
* Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
|
|
2547
|
+
* @summary Read document sources
|
|
2548
|
+
* @param {string} documentId Document ID.
|
|
2549
|
+
* @param {any} [jobId] Optional job ID to scope sources to a specific query job.
|
|
2550
|
+
* @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
|
|
2551
|
+
* @param {*} [options] Override http request option.
|
|
2552
|
+
* @throws {RequiredError}
|
|
2553
|
+
*/
|
|
2554
|
+
sourcesControllerGetDocumentSources(documentId: string, jobId?: any, sourceId?: any, options?: RawAxiosRequestConfig): AxiosPromise<DocumentSourcesResponseDto> {
|
|
2555
|
+
return localVarFp.sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options).then((request) => request(axios, basePath));
|
|
2556
|
+
},
|
|
2557
|
+
};
|
|
2558
|
+
};
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* SourcesApi - object-oriented interface
|
|
2562
|
+
*/
|
|
2563
|
+
export class SourcesApi extends BaseAPI {
|
|
2564
|
+
/**
|
|
2565
|
+
* Returns source data used to produce answers/results. If sourceId is provided, returns the matching source. Otherwise returns a list.
|
|
2566
|
+
* @summary Read document sources
|
|
2567
|
+
* @param {string} documentId Document ID.
|
|
2568
|
+
* @param {any} [jobId] Optional job ID to scope sources to a specific query job.
|
|
2569
|
+
* @param {any} [sourceId] Optional source ID (full or partial) to retrieve a specific source.
|
|
2570
|
+
* @param {*} [options] Override http request option.
|
|
2571
|
+
* @throws {RequiredError}
|
|
2572
|
+
*/
|
|
2573
|
+
public sourcesControllerGetDocumentSources(documentId: string, jobId?: any, sourceId?: any, options?: RawAxiosRequestConfig) {
|
|
2574
|
+
return SourcesApiFp(this.configuration).sourcesControllerGetDocumentSources(documentId, jobId, sourceId, options).then((request) => request(this.axios, this.basePath));
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
/**
|
|
2581
|
+
* WebhooksApi - axios parameter creator
|
|
2582
|
+
*/
|
|
2583
|
+
export const WebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2584
|
+
return {
|
|
2585
|
+
/**
|
|
2586
|
+
*
|
|
2587
|
+
* @summary Create webhook
|
|
2588
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2589
|
+
* @param {*} [options] Override http request option.
|
|
2590
|
+
* @throws {RequiredError}
|
|
2591
|
+
*/
|
|
2592
|
+
webhooksControllerCreateWebhook: async (createWebhookInputDto: CreateWebhookInputDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2593
|
+
// verify required parameter 'createWebhookInputDto' is not null or undefined
|
|
2594
|
+
assertParamExists('webhooksControllerCreateWebhook', 'createWebhookInputDto', createWebhookInputDto)
|
|
2595
|
+
const localVarPath = `/webhooks`;
|
|
2596
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2597
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2598
|
+
let baseOptions;
|
|
2599
|
+
if (configuration) {
|
|
2600
|
+
baseOptions = configuration.baseOptions;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2604
|
+
const localVarHeaderParameter = {} as any;
|
|
2605
|
+
const localVarQueryParameter = {} as any;
|
|
2606
|
+
|
|
2607
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2608
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2609
|
+
|
|
2610
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2612
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2613
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createWebhookInputDto, localVarRequestOptions, configuration)
|
|
2614
|
+
|
|
2615
|
+
return {
|
|
2616
|
+
url: toPathString(localVarUrlObj),
|
|
2617
|
+
options: localVarRequestOptions,
|
|
2618
|
+
};
|
|
2619
|
+
},
|
|
2620
|
+
/**
|
|
2621
|
+
*
|
|
2622
|
+
* @summary Delete webhook
|
|
2623
|
+
* @param {string} webhookId Webhook ID.
|
|
2624
|
+
* @param {*} [options] Override http request option.
|
|
2625
|
+
* @throws {RequiredError}
|
|
2626
|
+
*/
|
|
2627
|
+
webhooksControllerDeleteWebhook: async (webhookId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2628
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
2629
|
+
assertParamExists('webhooksControllerDeleteWebhook', 'webhookId', webhookId)
|
|
2630
|
+
const localVarPath = `/webhooks/{webhookId}`
|
|
2631
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
2632
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2633
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2634
|
+
let baseOptions;
|
|
2635
|
+
if (configuration) {
|
|
2636
|
+
baseOptions = configuration.baseOptions;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2640
|
+
const localVarHeaderParameter = {} as any;
|
|
2641
|
+
const localVarQueryParameter = {} as any;
|
|
2642
|
+
|
|
2643
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2644
|
+
|
|
2645
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2647
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2648
|
+
|
|
2649
|
+
return {
|
|
2650
|
+
url: toPathString(localVarUrlObj),
|
|
2651
|
+
options: localVarRequestOptions,
|
|
2652
|
+
};
|
|
2653
|
+
},
|
|
2654
|
+
/**
|
|
2655
|
+
*
|
|
2656
|
+
* @summary Read webhook
|
|
2657
|
+
* @param {string} webhookId Webhook ID.
|
|
2658
|
+
* @param {*} [options] Override http request option.
|
|
2659
|
+
* @throws {RequiredError}
|
|
2660
|
+
*/
|
|
2661
|
+
webhooksControllerGetWebhook: async (webhookId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2662
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
2663
|
+
assertParamExists('webhooksControllerGetWebhook', 'webhookId', webhookId)
|
|
2664
|
+
const localVarPath = `/webhooks/{webhookId}`
|
|
2665
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
2666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2667
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2668
|
+
let baseOptions;
|
|
2669
|
+
if (configuration) {
|
|
2670
|
+
baseOptions = configuration.baseOptions;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2674
|
+
const localVarHeaderParameter = {} as any;
|
|
2675
|
+
const localVarQueryParameter = {} as any;
|
|
2676
|
+
|
|
2677
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2678
|
+
|
|
2679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2681
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2682
|
+
|
|
2683
|
+
return {
|
|
2684
|
+
url: toPathString(localVarUrlObj),
|
|
2685
|
+
options: localVarRequestOptions,
|
|
2686
|
+
};
|
|
2687
|
+
},
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @summary List webhooks
|
|
2691
|
+
* @param {number} [page] 1-based page number.
|
|
2692
|
+
* @param {number} [limit] Page size.
|
|
2693
|
+
* @param {*} [options] Override http request option.
|
|
2694
|
+
* @throws {RequiredError}
|
|
2695
|
+
*/
|
|
2696
|
+
webhooksControllerListWebhooks: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2697
|
+
const localVarPath = `/webhooks`;
|
|
2698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2699
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2700
|
+
let baseOptions;
|
|
2701
|
+
if (configuration) {
|
|
2702
|
+
baseOptions = configuration.baseOptions;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2706
|
+
const localVarHeaderParameter = {} as any;
|
|
2707
|
+
const localVarQueryParameter = {} as any;
|
|
2708
|
+
|
|
2709
|
+
if (page !== undefined) {
|
|
2710
|
+
localVarQueryParameter['page'] = page;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
if (limit !== undefined) {
|
|
2714
|
+
localVarQueryParameter['limit'] = limit;
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2718
|
+
|
|
2719
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2720
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2721
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2722
|
+
|
|
2723
|
+
return {
|
|
2724
|
+
url: toPathString(localVarUrlObj),
|
|
2725
|
+
options: localVarRequestOptions,
|
|
2726
|
+
};
|
|
2727
|
+
},
|
|
2728
|
+
/**
|
|
2729
|
+
*
|
|
2730
|
+
* @summary Update webhook
|
|
2731
|
+
* @param {string} webhookId Webhook ID.
|
|
2732
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2733
|
+
* @param {*} [options] Override http request option.
|
|
2734
|
+
* @throws {RequiredError}
|
|
2735
|
+
*/
|
|
2736
|
+
webhooksControllerUpdateWebhook: async (webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2737
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
2738
|
+
assertParamExists('webhooksControllerUpdateWebhook', 'webhookId', webhookId)
|
|
2739
|
+
// verify required parameter 'updateWebhookBodyInputDto' is not null or undefined
|
|
2740
|
+
assertParamExists('webhooksControllerUpdateWebhook', 'updateWebhookBodyInputDto', updateWebhookBodyInputDto)
|
|
2741
|
+
const localVarPath = `/webhooks/{webhookId}`
|
|
2742
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
2743
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2744
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2745
|
+
let baseOptions;
|
|
2746
|
+
if (configuration) {
|
|
2747
|
+
baseOptions = configuration.baseOptions;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2751
|
+
const localVarHeaderParameter = {} as any;
|
|
2752
|
+
const localVarQueryParameter = {} as any;
|
|
2753
|
+
|
|
2754
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2755
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2756
|
+
|
|
2757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2759
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2760
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateWebhookBodyInputDto, localVarRequestOptions, configuration)
|
|
2761
|
+
|
|
2762
|
+
return {
|
|
2763
|
+
url: toPathString(localVarUrlObj),
|
|
2764
|
+
options: localVarRequestOptions,
|
|
2765
|
+
};
|
|
2766
|
+
},
|
|
2767
|
+
}
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* WebhooksApi - functional programming interface
|
|
2772
|
+
*/
|
|
2773
|
+
export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
2774
|
+
const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration)
|
|
2775
|
+
return {
|
|
2776
|
+
/**
|
|
2777
|
+
*
|
|
2778
|
+
* @summary Create webhook
|
|
2779
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2780
|
+
* @param {*} [options] Override http request option.
|
|
2781
|
+
* @throws {RequiredError}
|
|
2782
|
+
*/
|
|
2783
|
+
async webhooksControllerCreateWebhook(createWebhookInputDto: CreateWebhookInputDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerCreateWebhook(createWebhookInputDto, options);
|
|
2785
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2786
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerCreateWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2787
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2788
|
+
},
|
|
2789
|
+
/**
|
|
2790
|
+
*
|
|
2791
|
+
* @summary Delete webhook
|
|
2792
|
+
* @param {string} webhookId Webhook ID.
|
|
2793
|
+
* @param {*} [options] Override http request option.
|
|
2794
|
+
* @throws {RequiredError}
|
|
2795
|
+
*/
|
|
2796
|
+
async webhooksControllerDeleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2797
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerDeleteWebhook(webhookId, options);
|
|
2798
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2799
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerDeleteWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2800
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2801
|
+
},
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @summary Read webhook
|
|
2805
|
+
* @param {string} webhookId Webhook ID.
|
|
2806
|
+
* @param {*} [options] Override http request option.
|
|
2807
|
+
* @throws {RequiredError}
|
|
2808
|
+
*/
|
|
2809
|
+
async webhooksControllerGetWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerGetWebhook(webhookId, options);
|
|
2811
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2812
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerGetWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2813
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2814
|
+
},
|
|
2815
|
+
/**
|
|
2816
|
+
*
|
|
2817
|
+
* @summary List webhooks
|
|
2818
|
+
* @param {number} [page] 1-based page number.
|
|
2819
|
+
* @param {number} [limit] Page size.
|
|
2820
|
+
* @param {*} [options] Override http request option.
|
|
2821
|
+
* @throws {RequiredError}
|
|
2822
|
+
*/
|
|
2823
|
+
async webhooksControllerListWebhooks(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedWebhooksDto>> {
|
|
2824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerListWebhooks(page, limit, options);
|
|
2825
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2826
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerListWebhooks']?.[localVarOperationServerIndex]?.url;
|
|
2827
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2828
|
+
},
|
|
2829
|
+
/**
|
|
2830
|
+
*
|
|
2831
|
+
* @summary Update webhook
|
|
2832
|
+
* @param {string} webhookId Webhook ID.
|
|
2833
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2834
|
+
* @param {*} [options] Override http request option.
|
|
2835
|
+
* @throws {RequiredError}
|
|
2836
|
+
*/
|
|
2837
|
+
async webhooksControllerUpdateWebhook(webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookDto>> {
|
|
2838
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options);
|
|
2839
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2840
|
+
const localVarOperationServerBasePath = operationServerMap['WebhooksApi.webhooksControllerUpdateWebhook']?.[localVarOperationServerIndex]?.url;
|
|
2841
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2842
|
+
},
|
|
2843
|
+
}
|
|
2844
|
+
};
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* WebhooksApi - factory interface
|
|
2848
|
+
*/
|
|
2849
|
+
export const WebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2850
|
+
const localVarFp = WebhooksApiFp(configuration)
|
|
2851
|
+
return {
|
|
2852
|
+
/**
|
|
2853
|
+
*
|
|
2854
|
+
* @summary Create webhook
|
|
2855
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2856
|
+
* @param {*} [options] Override http request option.
|
|
2857
|
+
* @throws {RequiredError}
|
|
2858
|
+
*/
|
|
2859
|
+
webhooksControllerCreateWebhook(createWebhookInputDto: CreateWebhookInputDto, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2860
|
+
return localVarFp.webhooksControllerCreateWebhook(createWebhookInputDto, options).then((request) => request(axios, basePath));
|
|
2861
|
+
},
|
|
2862
|
+
/**
|
|
2863
|
+
*
|
|
2864
|
+
* @summary Delete webhook
|
|
2865
|
+
* @param {string} webhookId Webhook ID.
|
|
2866
|
+
* @param {*} [options] Override http request option.
|
|
2867
|
+
* @throws {RequiredError}
|
|
2868
|
+
*/
|
|
2869
|
+
webhooksControllerDeleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2870
|
+
return localVarFp.webhooksControllerDeleteWebhook(webhookId, options).then((request) => request(axios, basePath));
|
|
2871
|
+
},
|
|
2872
|
+
/**
|
|
2873
|
+
*
|
|
2874
|
+
* @summary Read webhook
|
|
2875
|
+
* @param {string} webhookId Webhook ID.
|
|
2876
|
+
* @param {*} [options] Override http request option.
|
|
2877
|
+
* @throws {RequiredError}
|
|
2878
|
+
*/
|
|
2879
|
+
webhooksControllerGetWebhook(webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2880
|
+
return localVarFp.webhooksControllerGetWebhook(webhookId, options).then((request) => request(axios, basePath));
|
|
2881
|
+
},
|
|
2882
|
+
/**
|
|
2883
|
+
*
|
|
2884
|
+
* @summary List webhooks
|
|
2885
|
+
* @param {number} [page] 1-based page number.
|
|
2886
|
+
* @param {number} [limit] Page size.
|
|
2887
|
+
* @param {*} [options] Override http request option.
|
|
2888
|
+
* @throws {RequiredError}
|
|
2889
|
+
*/
|
|
2890
|
+
webhooksControllerListWebhooks(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedWebhooksDto> {
|
|
2891
|
+
return localVarFp.webhooksControllerListWebhooks(page, limit, options).then((request) => request(axios, basePath));
|
|
2892
|
+
},
|
|
2893
|
+
/**
|
|
2894
|
+
*
|
|
2895
|
+
* @summary Update webhook
|
|
2896
|
+
* @param {string} webhookId Webhook ID.
|
|
2897
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2898
|
+
* @param {*} [options] Override http request option.
|
|
2899
|
+
* @throws {RequiredError}
|
|
2900
|
+
*/
|
|
2901
|
+
webhooksControllerUpdateWebhook(webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options?: RawAxiosRequestConfig): AxiosPromise<WebhookDto> {
|
|
2902
|
+
return localVarFp.webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options).then((request) => request(axios, basePath));
|
|
2903
|
+
},
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* WebhooksApi - object-oriented interface
|
|
2909
|
+
*/
|
|
2910
|
+
export class WebhooksApi extends BaseAPI {
|
|
2911
|
+
/**
|
|
2912
|
+
*
|
|
2913
|
+
* @summary Create webhook
|
|
2914
|
+
* @param {CreateWebhookInputDto} createWebhookInputDto
|
|
2915
|
+
* @param {*} [options] Override http request option.
|
|
2916
|
+
* @throws {RequiredError}
|
|
2917
|
+
*/
|
|
2918
|
+
public webhooksControllerCreateWebhook(createWebhookInputDto: CreateWebhookInputDto, options?: RawAxiosRequestConfig) {
|
|
2919
|
+
return WebhooksApiFp(this.configuration).webhooksControllerCreateWebhook(createWebhookInputDto, options).then((request) => request(this.axios, this.basePath));
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/**
|
|
2923
|
+
*
|
|
2924
|
+
* @summary Delete webhook
|
|
2925
|
+
* @param {string} webhookId Webhook ID.
|
|
2926
|
+
* @param {*} [options] Override http request option.
|
|
2927
|
+
* @throws {RequiredError}
|
|
2928
|
+
*/
|
|
2929
|
+
public webhooksControllerDeleteWebhook(webhookId: string, options?: RawAxiosRequestConfig) {
|
|
2930
|
+
return WebhooksApiFp(this.configuration).webhooksControllerDeleteWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
/**
|
|
2934
|
+
*
|
|
2935
|
+
* @summary Read webhook
|
|
2936
|
+
* @param {string} webhookId Webhook ID.
|
|
2937
|
+
* @param {*} [options] Override http request option.
|
|
2938
|
+
* @throws {RequiredError}
|
|
2939
|
+
*/
|
|
2940
|
+
public webhooksControllerGetWebhook(webhookId: string, options?: RawAxiosRequestConfig) {
|
|
2941
|
+
return WebhooksApiFp(this.configuration).webhooksControllerGetWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
*
|
|
2946
|
+
* @summary List webhooks
|
|
2947
|
+
* @param {number} [page] 1-based page number.
|
|
2948
|
+
* @param {number} [limit] Page size.
|
|
2949
|
+
* @param {*} [options] Override http request option.
|
|
2950
|
+
* @throws {RequiredError}
|
|
2951
|
+
*/
|
|
2952
|
+
public webhooksControllerListWebhooks(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
2953
|
+
return WebhooksApiFp(this.configuration).webhooksControllerListWebhooks(page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
/**
|
|
2957
|
+
*
|
|
2958
|
+
* @summary Update webhook
|
|
2959
|
+
* @param {string} webhookId Webhook ID.
|
|
2960
|
+
* @param {UpdateWebhookBodyInputDto} updateWebhookBodyInputDto
|
|
2961
|
+
* @param {*} [options] Override http request option.
|
|
2962
|
+
* @throws {RequiredError}
|
|
2963
|
+
*/
|
|
2964
|
+
public webhooksControllerUpdateWebhook(webhookId: string, updateWebhookBodyInputDto: UpdateWebhookBodyInputDto, options?: RawAxiosRequestConfig) {
|
|
2965
|
+
return WebhooksApiFp(this.configuration).webhooksControllerUpdateWebhook(webhookId, updateWebhookBodyInputDto, options).then((request) => request(this.axios, this.basePath));
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
|