@holistics/anfra-sdk 0.8.0 → 0.9.1
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/README.md +7 -3
- package/dist/api.d.ts +4 -1341
- package/dist/api.js +7 -3
- package/dist/app.d.ts +15 -5
- package/dist/app.js +36 -7
- package/dist/{bridge-BmbS9J4V.d.ts → bridge-DUKdREoK.d.ts} +7 -2
- package/dist/common.d.ts +2 -2
- package/dist/host.d.ts +2 -2
- package/dist/host.js +43 -20
- package/dist/types-DznT0m7F.d.ts +2238 -0
- package/package.json +1 -1
- package/dist/types-IR4TNw-M.d.ts +0 -645
package/dist/api.d.ts
CHANGED
|
@@ -1,1344 +1,7 @@
|
|
|
1
1
|
import { Client } from 'openapi-fetch';
|
|
2
|
-
import { D as DatasetDescriptor, B as Backend, f as BackendExportRequest,
|
|
2
|
+
import { aj as paths, D as DatasetDescriptor, B as Backend, f as BackendExportRequest, ak as components, i as BackendQueryRequest } from './types-DznT0m7F.js';
|
|
3
3
|
import { D as DataAppError } from './errors-CKvqVaqU.js';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* This file was auto-generated by openapi-typescript.
|
|
7
|
-
* Do not make direct changes to the file.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
interface paths {
|
|
11
|
-
"/core.ingest": {
|
|
12
|
-
parameters: {
|
|
13
|
-
query?: never;
|
|
14
|
-
header?: never;
|
|
15
|
-
path?: never;
|
|
16
|
-
cookie?: never;
|
|
17
|
-
};
|
|
18
|
-
get?: never;
|
|
19
|
-
put?: never;
|
|
20
|
-
/** Build the local search catalog from context sources */
|
|
21
|
-
post: operations["core.ingest"];
|
|
22
|
-
delete?: never;
|
|
23
|
-
options?: never;
|
|
24
|
-
head?: never;
|
|
25
|
-
patch?: never;
|
|
26
|
-
trace?: never;
|
|
27
|
-
};
|
|
28
|
-
"/core.query": {
|
|
29
|
-
parameters: {
|
|
30
|
-
query?: never;
|
|
31
|
-
header?: never;
|
|
32
|
-
path?: never;
|
|
33
|
-
cookie?: never;
|
|
34
|
-
};
|
|
35
|
-
get?: never;
|
|
36
|
-
put?: never;
|
|
37
|
-
/** Run a query: its rows, and the SQL that produced them */
|
|
38
|
-
post: operations["core.query"];
|
|
39
|
-
delete?: never;
|
|
40
|
-
options?: never;
|
|
41
|
-
head?: never;
|
|
42
|
-
patch?: never;
|
|
43
|
-
trace?: never;
|
|
44
|
-
};
|
|
45
|
-
"/core.query.compile": {
|
|
46
|
-
parameters: {
|
|
47
|
-
query?: never;
|
|
48
|
-
header?: never;
|
|
49
|
-
path?: never;
|
|
50
|
-
cookie?: never;
|
|
51
|
-
};
|
|
52
|
-
get?: never;
|
|
53
|
-
put?: never;
|
|
54
|
-
/** Compile a query to SQL, without running it */
|
|
55
|
-
post: operations["core.query.compile"];
|
|
56
|
-
delete?: never;
|
|
57
|
-
options?: never;
|
|
58
|
-
head?: never;
|
|
59
|
-
patch?: never;
|
|
60
|
-
trace?: never;
|
|
61
|
-
};
|
|
62
|
-
"/core.query.export": {
|
|
63
|
-
parameters: {
|
|
64
|
-
query?: never;
|
|
65
|
-
header?: never;
|
|
66
|
-
path?: never;
|
|
67
|
-
cookie?: never;
|
|
68
|
-
};
|
|
69
|
-
get?: never;
|
|
70
|
-
put?: never;
|
|
71
|
-
/**
|
|
72
|
-
* Export a query's whole result as a file: a link to download it
|
|
73
|
-
* @description Export a query's whole result as a file: a link to download it.
|
|
74
|
-
*
|
|
75
|
-
* The query runs to completion before the answer, so a query that fails fails here. The CLI downloads the file, to stdout or --output; --link prints the answer instead.
|
|
76
|
-
*/
|
|
77
|
-
post: operations["core.query.export"];
|
|
78
|
-
delete?: never;
|
|
79
|
-
options?: never;
|
|
80
|
-
head?: never;
|
|
81
|
-
patch?: never;
|
|
82
|
-
trace?: never;
|
|
83
|
-
};
|
|
84
|
-
"/core.query.validate": {
|
|
85
|
-
parameters: {
|
|
86
|
-
query?: never;
|
|
87
|
-
header?: never;
|
|
88
|
-
path?: never;
|
|
89
|
-
cookie?: never;
|
|
90
|
-
};
|
|
91
|
-
get?: never;
|
|
92
|
-
put?: never;
|
|
93
|
-
/** Validate a query: its diagnostics, without running it */
|
|
94
|
-
post: operations["core.query.validate"];
|
|
95
|
-
delete?: never;
|
|
96
|
-
options?: never;
|
|
97
|
-
head?: never;
|
|
98
|
-
patch?: never;
|
|
99
|
-
trace?: never;
|
|
100
|
-
};
|
|
101
|
-
"/core.search": {
|
|
102
|
-
parameters: {
|
|
103
|
-
query?: never;
|
|
104
|
-
header?: never;
|
|
105
|
-
path?: never;
|
|
106
|
-
cookie?: never;
|
|
107
|
-
};
|
|
108
|
-
get?: never;
|
|
109
|
-
put?: never;
|
|
110
|
-
/** Search the local catalog */
|
|
111
|
-
post: operations["core.search"];
|
|
112
|
-
delete?: never;
|
|
113
|
-
options?: never;
|
|
114
|
-
head?: never;
|
|
115
|
-
patch?: never;
|
|
116
|
-
trace?: never;
|
|
117
|
-
};
|
|
118
|
-
"/core.show": {
|
|
119
|
-
parameters: {
|
|
120
|
-
query?: never;
|
|
121
|
-
header?: never;
|
|
122
|
-
path?: never;
|
|
123
|
-
cookie?: never;
|
|
124
|
-
};
|
|
125
|
-
get?: never;
|
|
126
|
-
put?: never;
|
|
127
|
-
/**
|
|
128
|
-
* Show the repo's datasets, or one dataset: their models, fields and metrics
|
|
129
|
-
* @description Show an object of the repo, read from its compiled AML: with no fqn, the repo and every dataset
|
|
130
|
-
* in full; with a dataset's fqn, that dataset in full, as AQL can query it. Its interface, not its
|
|
131
|
-
* implementation: names, labels, types, roles and AQL definitions, never SQL or tables. What is
|
|
132
|
-
* wrong in the repo for it comes with it, as diagnostics: files that do not compile, a data source
|
|
133
|
-
* it does not configure.
|
|
134
|
-
*/
|
|
135
|
-
post: operations["core.show"];
|
|
136
|
-
delete?: never;
|
|
137
|
-
options?: never;
|
|
138
|
-
head?: never;
|
|
139
|
-
patch?: never;
|
|
140
|
-
trace?: never;
|
|
141
|
-
};
|
|
142
|
-
"/core.status": {
|
|
143
|
-
parameters: {
|
|
144
|
-
query?: never;
|
|
145
|
-
header?: never;
|
|
146
|
-
path?: never;
|
|
147
|
-
cookie?: never;
|
|
148
|
-
};
|
|
149
|
-
get?: never;
|
|
150
|
-
put?: never;
|
|
151
|
-
/** Report whether a warm server is running and its sidecars are healthy */
|
|
152
|
-
post: operations["core.status"];
|
|
153
|
-
delete?: never;
|
|
154
|
-
options?: never;
|
|
155
|
-
head?: never;
|
|
156
|
-
patch?: never;
|
|
157
|
-
trace?: never;
|
|
158
|
-
};
|
|
159
|
-
"/core.validate": {
|
|
160
|
-
parameters: {
|
|
161
|
-
query?: never;
|
|
162
|
-
header?: never;
|
|
163
|
-
path?: never;
|
|
164
|
-
cookie?: never;
|
|
165
|
-
};
|
|
166
|
-
get?: never;
|
|
167
|
-
put?: never;
|
|
168
|
-
/** Validate the AML repo, optionally scoped to file globs */
|
|
169
|
-
post: operations["core.validate"];
|
|
170
|
-
delete?: never;
|
|
171
|
-
options?: never;
|
|
172
|
-
head?: never;
|
|
173
|
-
patch?: never;
|
|
174
|
-
trace?: never;
|
|
175
|
-
};
|
|
176
|
-
"/core.version": {
|
|
177
|
-
parameters: {
|
|
178
|
-
query?: never;
|
|
179
|
-
header?: never;
|
|
180
|
-
path?: never;
|
|
181
|
-
cookie?: never;
|
|
182
|
-
};
|
|
183
|
-
get?: never;
|
|
184
|
-
put?: never;
|
|
185
|
-
/** Print the anfra version */
|
|
186
|
-
post: operations["core.version"];
|
|
187
|
-
delete?: never;
|
|
188
|
-
options?: never;
|
|
189
|
-
head?: never;
|
|
190
|
-
patch?: never;
|
|
191
|
-
trace?: never;
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
interface components {
|
|
195
|
-
schemas: {
|
|
196
|
-
AQLDiagnostic: {
|
|
197
|
-
/** Format: int64 */
|
|
198
|
-
column?: number;
|
|
199
|
-
/** Format: int64 */
|
|
200
|
-
line?: number;
|
|
201
|
-
message: string;
|
|
202
|
-
severity: string;
|
|
203
|
-
};
|
|
204
|
-
Column: {
|
|
205
|
-
/** @description a query-local expression, not a field the dataset defines */
|
|
206
|
-
adhoc: boolean;
|
|
207
|
-
/** @description an aggregated field's aggregation, such as sum or count distinct */
|
|
208
|
-
aggregation?: string;
|
|
209
|
-
/** @description the Arrow type canal-query read the values as, by which they are written; absent before the query runs */
|
|
210
|
-
arrow_type?: {
|
|
211
|
-
/** @description the type as arrow-go spells it, such as decimal(38, 2): for people, not to decide on */
|
|
212
|
-
label: string;
|
|
213
|
-
/** @description the type's name, as Schema.fbs's Type union names it, in snake_case: int, floating_point, decimal, utf8, bool, date, timestamp, list, struct, ... */
|
|
214
|
-
type: string;
|
|
215
|
-
} & {
|
|
216
|
-
[key: string]: unknown;
|
|
217
|
-
};
|
|
218
|
-
/** @description the database's own name of the column's type: for debugging, never to decide on, since it varies by database and driver; absent before the query runs */
|
|
219
|
-
db_type?: string;
|
|
220
|
-
/** @description the field it draws; for an adhoc column, its name */
|
|
221
|
-
fieldName: string;
|
|
222
|
-
isMeasure: boolean;
|
|
223
|
-
label: string;
|
|
224
|
-
/** @description the model of fieldName, as the dataset names it; absent for a dataset metric or an adhoc column */
|
|
225
|
-
modelId?: string;
|
|
226
|
-
/** @description the column's key, as in fields */
|
|
227
|
-
name: string;
|
|
228
|
-
/**
|
|
229
|
-
* @description what the column's values mean, in AML's types, plus bit: a true or false stored as a bit, written as true and false or as "1" and "0" by how the database produced it. Decide by it. Absent when no AQL types the column (a SQL query, or AQL that is not an explore): see arrow_type. Unknown when its AQL type has no meaning in AML (time, duration, ...)
|
|
230
|
-
* @enum {string}
|
|
231
|
-
*/
|
|
232
|
-
semantic_type?: "bit" | "date" | "datetime" | "json" | "number" | "text" | "truefalse" | "unknown";
|
|
233
|
-
};
|
|
234
|
-
CompileError: {
|
|
235
|
-
/** Format: int64 */
|
|
236
|
-
col?: number;
|
|
237
|
-
filePath?: string;
|
|
238
|
-
message: string;
|
|
239
|
-
/** Format: int64 */
|
|
240
|
-
row?: number;
|
|
241
|
-
};
|
|
242
|
-
CompiledQuery: {
|
|
243
|
-
/** @description the AQL compiled: the query with its Query Input applied; absent for a SQL query */
|
|
244
|
-
aql?: string;
|
|
245
|
-
/** @description what each column of an explore query's answer will be, and its semantic type; absent for other queries */
|
|
246
|
-
columns?: components["schemas"]["Column"][];
|
|
247
|
-
sql: string;
|
|
248
|
-
};
|
|
249
|
-
ContextEntry: {
|
|
250
|
-
params?: {
|
|
251
|
-
[key: string]: unknown;
|
|
252
|
-
};
|
|
253
|
-
step: string;
|
|
254
|
-
text: string;
|
|
255
|
-
};
|
|
256
|
-
/** @description This server cannot make exports. */
|
|
257
|
-
ErrorBodyExportsUnavailable: {
|
|
258
|
-
/** @constant */
|
|
259
|
-
code: "exports_unavailable";
|
|
260
|
-
context?: components["schemas"]["ContextEntry"][];
|
|
261
|
-
message: string;
|
|
262
|
-
request_id: string;
|
|
263
|
-
/** @constant */
|
|
264
|
-
scope: "server";
|
|
265
|
-
/** @constant */
|
|
266
|
-
status: 501;
|
|
267
|
-
};
|
|
268
|
-
/** @description Something went wrong on our side. */
|
|
269
|
-
ErrorBodyInternalServerError: {
|
|
270
|
-
/** @constant */
|
|
271
|
-
code: "internal_server_error";
|
|
272
|
-
context?: components["schemas"]["ContextEntry"][];
|
|
273
|
-
message: string;
|
|
274
|
-
request_id: string;
|
|
275
|
-
/** @constant */
|
|
276
|
-
scope: "server";
|
|
277
|
-
/** @constant */
|
|
278
|
-
status: 500;
|
|
279
|
-
};
|
|
280
|
-
/** @description The request is not valid. */
|
|
281
|
-
ErrorBodyInvalidRequest: {
|
|
282
|
-
/** @constant */
|
|
283
|
-
code: "invalid_request";
|
|
284
|
-
context?: components["schemas"]["ContextEntry"][];
|
|
285
|
-
details?: components["schemas"]["Violations"];
|
|
286
|
-
message: string;
|
|
287
|
-
request_id: string;
|
|
288
|
-
/** @constant */
|
|
289
|
-
scope: "client";
|
|
290
|
-
/** @constant */
|
|
291
|
-
status: 400;
|
|
292
|
-
};
|
|
293
|
-
/** @description The query failed to run on its data source. */
|
|
294
|
-
ErrorBodyQueryFailed: {
|
|
295
|
-
/** @constant */
|
|
296
|
-
code: "query_failed";
|
|
297
|
-
context?: components["schemas"]["ContextEntry"][];
|
|
298
|
-
message: string;
|
|
299
|
-
request_id: string;
|
|
300
|
-
/** @constant */
|
|
301
|
-
scope: "server";
|
|
302
|
-
/** @constant */
|
|
303
|
-
status: 502;
|
|
304
|
-
};
|
|
305
|
-
/** @description The query is invalid. */
|
|
306
|
-
ErrorBodyQueryInvalid: {
|
|
307
|
-
/** @constant */
|
|
308
|
-
code: "query_invalid";
|
|
309
|
-
context?: components["schemas"]["ContextEntry"][];
|
|
310
|
-
details?: components["schemas"]["QueryValidation"];
|
|
311
|
-
message: string;
|
|
312
|
-
request_id: string;
|
|
313
|
-
/** @constant */
|
|
314
|
-
scope: "user";
|
|
315
|
-
/** @constant */
|
|
316
|
-
status: 422;
|
|
317
|
-
};
|
|
318
|
-
/** @description A sidecar is unavailable. */
|
|
319
|
-
ErrorBodySidecarUnavailable: {
|
|
320
|
-
/** @constant */
|
|
321
|
-
code: "sidecar_unavailable";
|
|
322
|
-
context?: components["schemas"]["ContextEntry"][];
|
|
323
|
-
message: string;
|
|
324
|
-
request_id: string;
|
|
325
|
-
/** @constant */
|
|
326
|
-
scope: "server";
|
|
327
|
-
/** @constant */
|
|
328
|
-
status: 503;
|
|
329
|
-
};
|
|
330
|
-
/** @description Some of the input is not valid. */
|
|
331
|
-
ErrorBodyValidationFailed: {
|
|
332
|
-
/** @constant */
|
|
333
|
-
code: "validation_failed";
|
|
334
|
-
context?: components["schemas"]["ContextEntry"][];
|
|
335
|
-
details?: components["schemas"]["Violations"];
|
|
336
|
-
message: string;
|
|
337
|
-
request_id: string;
|
|
338
|
-
/** @constant */
|
|
339
|
-
scope: "user";
|
|
340
|
-
/** @constant */
|
|
341
|
-
status: 422;
|
|
342
|
-
};
|
|
343
|
-
ExportFormatOptions: {
|
|
344
|
-
/** @description csv: start the file with a UTF-8 byte-order mark, which Excel needs to read non-ASCII text; set it for a file a person will open */
|
|
345
|
-
bom?: boolean;
|
|
346
|
-
/**
|
|
347
|
-
* @description csv: the header row: the columns' labels (the default; what readers see), their names (their keys in a query's answer, stable for programs), or none
|
|
348
|
-
* @enum {string}
|
|
349
|
-
*/
|
|
350
|
-
header?: "labels" | "names" | "none";
|
|
351
|
-
};
|
|
352
|
-
ExportInput: {
|
|
353
|
-
/** @description the data source a SQL query runs against */
|
|
354
|
-
data_source?: string;
|
|
355
|
-
/** @description the dataset an AQL query runs against */
|
|
356
|
-
dataset?: string;
|
|
357
|
-
/** @description the file's name, as a download saves it, with the format's extension added when it has none; when unset or blank, the dataset's or data source's name */
|
|
358
|
-
filename?: string;
|
|
359
|
-
/**
|
|
360
|
-
* @description the file's format
|
|
361
|
-
* @default csv
|
|
362
|
-
* @enum {string}
|
|
363
|
-
*/
|
|
364
|
-
format?: "csv";
|
|
365
|
-
/** @description the format's options */
|
|
366
|
-
format_options?: components["schemas"]["ExportFormatOptions"];
|
|
367
|
-
/** @description the Query Input: filters, conditions, sorts and date drills applied to the AQL before it compiles */
|
|
368
|
-
input?: components["schemas"]["QueryTransforms"];
|
|
369
|
-
/**
|
|
370
|
-
* @description the language the query is written in
|
|
371
|
-
* @default aql
|
|
372
|
-
* @enum {string}
|
|
373
|
-
*/
|
|
374
|
-
lang?: "aql" | "sql";
|
|
375
|
-
/** @description the query */
|
|
376
|
-
query: string;
|
|
377
|
-
/** @description the IANA time zone relative dates and date truncation use, such as Asia/Ho_Chi_Minh */
|
|
378
|
-
timezone?: string;
|
|
379
|
-
};
|
|
380
|
-
ExportLink: {
|
|
381
|
-
/**
|
|
382
|
-
* Format: date-time
|
|
383
|
-
* @description when the link stops working
|
|
384
|
-
*/
|
|
385
|
-
expires_at: string;
|
|
386
|
-
/** @description the file's name, as a download saves it */
|
|
387
|
-
filename: string;
|
|
388
|
-
/** @description the file's format */
|
|
389
|
-
format: string;
|
|
390
|
-
/**
|
|
391
|
-
* Format: int64
|
|
392
|
-
* @description the rows the file holds
|
|
393
|
-
*/
|
|
394
|
-
row_count: number;
|
|
395
|
-
/** @description where to download the file: a plain GET, with no credentials, until expires_at */
|
|
396
|
-
url: string;
|
|
397
|
-
};
|
|
398
|
-
IngestInput: {
|
|
399
|
-
/** @description optional context source key to ingest */
|
|
400
|
-
source?: string;
|
|
401
|
-
};
|
|
402
|
-
NoInput: Record<string, never>;
|
|
403
|
-
QueryCondition: {
|
|
404
|
-
/** @description an AQL condition */
|
|
405
|
-
expr: string;
|
|
406
|
-
};
|
|
407
|
-
QueryDateDrill: {
|
|
408
|
-
/** @description model.field: a date field */
|
|
409
|
-
field: string;
|
|
410
|
-
/** @description the grain, such as month */
|
|
411
|
-
grain: string;
|
|
412
|
-
};
|
|
413
|
-
QueryFilter: {
|
|
414
|
-
/** @description the condition applies to this aggregate of field, such as sum */
|
|
415
|
-
aggregation?: string;
|
|
416
|
-
/** @description model.field for a dataset field, or the name of a dataset metric */
|
|
417
|
-
field: string;
|
|
418
|
-
/** @description the date unit of a relative operator, such as day */
|
|
419
|
-
modifier?: string;
|
|
420
|
-
/** @description the operator, such as is, contains, between, last */
|
|
421
|
-
operator: string;
|
|
422
|
-
/** @description the operator's values, by the field's type: a number as a string in JSON's number syntax, such as "9007199254740993" (a JSON number is refused, since it may have lost digits before it was sent); true or false; a date or text as a string. Empty for an operator that takes none */
|
|
423
|
-
values: unknown[];
|
|
424
|
-
};
|
|
425
|
-
QueryInput: {
|
|
426
|
-
/** @description the data source a SQL query runs against */
|
|
427
|
-
data_source?: string;
|
|
428
|
-
/** @description the dataset an AQL query runs against */
|
|
429
|
-
dataset?: string;
|
|
430
|
-
/**
|
|
431
|
-
* @description the language the query is written in
|
|
432
|
-
* @default aql
|
|
433
|
-
* @enum {string}
|
|
434
|
-
*/
|
|
435
|
-
lang?: "aql" | "sql";
|
|
436
|
-
/** @description the query */
|
|
437
|
-
query: string;
|
|
438
|
-
};
|
|
439
|
-
QueryResult: {
|
|
440
|
-
/** @description the AQL that ran: the query with its Query Input applied; absent for a SQL query */
|
|
441
|
-
aql?: string;
|
|
442
|
-
/** @description one per field of result, in order */
|
|
443
|
-
columns: components["schemas"]["Column"][];
|
|
444
|
-
result: components["schemas"]["QueryRows"];
|
|
445
|
-
sql: string;
|
|
446
|
-
};
|
|
447
|
-
QueryRows: {
|
|
448
|
-
fields: string[];
|
|
449
|
-
/** @description one array per row, its values in fields' order, as its column's types say: every number a string, with every digit (a JSON number loses some in JavaScript), a float's NaN and infinities as "NaN", "Infinity" and "-Infinity", and so at any depth of a list, map or struct; null as null */
|
|
450
|
-
records: unknown[][];
|
|
451
|
-
};
|
|
452
|
-
QueryRunInput: {
|
|
453
|
-
/** @description the data source a SQL query runs against */
|
|
454
|
-
data_source?: string;
|
|
455
|
-
/** @description the dataset an AQL query runs against */
|
|
456
|
-
dataset?: string;
|
|
457
|
-
/** @description the Query Input: filters, conditions, sorts and date drills applied to the AQL before it compiles */
|
|
458
|
-
input?: components["schemas"]["QueryTransforms"];
|
|
459
|
-
/**
|
|
460
|
-
* @description the language the query is written in
|
|
461
|
-
* @default aql
|
|
462
|
-
* @enum {string}
|
|
463
|
-
*/
|
|
464
|
-
lang?: "aql" | "sql";
|
|
465
|
-
/**
|
|
466
|
-
* Format: int64
|
|
467
|
-
* @description the 1-based page of rows to answer; needs a page size
|
|
468
|
-
*/
|
|
469
|
-
page?: number;
|
|
470
|
-
/**
|
|
471
|
-
* Format: int64
|
|
472
|
-
* @description rows per page; alone, the first page
|
|
473
|
-
*/
|
|
474
|
-
page_size?: number;
|
|
475
|
-
/** @description the query */
|
|
476
|
-
query: string;
|
|
477
|
-
/** @description the IANA time zone relative dates and date truncation use, such as Asia/Ho_Chi_Minh */
|
|
478
|
-
timezone?: string;
|
|
479
|
-
};
|
|
480
|
-
QuerySort: {
|
|
481
|
-
/**
|
|
482
|
-
* @description the direction
|
|
483
|
-
* @enum {string}
|
|
484
|
-
*/
|
|
485
|
-
direction: "asc" | "desc";
|
|
486
|
-
/** @description a result column's name */
|
|
487
|
-
field: string;
|
|
488
|
-
};
|
|
489
|
-
QueryTransforms: {
|
|
490
|
-
/** @description AQL conditions ANDed with the query's own filters */
|
|
491
|
-
conditions?: components["schemas"]["QueryCondition"][];
|
|
492
|
-
/** @description date fields redrawn at another grain, their columns' names kept */
|
|
493
|
-
dateDrills?: components["schemas"]["QueryDateDrill"][];
|
|
494
|
-
/** @description conditions on fields, ANDed with the query's own filters */
|
|
495
|
-
filters?: components["schemas"]["QueryFilter"][];
|
|
496
|
-
/** @description sorts by result column, replacing the query's own */
|
|
497
|
-
sorts?: components["schemas"]["QuerySort"][];
|
|
498
|
-
};
|
|
499
|
-
QueryValidation: {
|
|
500
|
-
diagnostics: components["schemas"]["AQLDiagnostic"][];
|
|
501
|
-
valid: boolean;
|
|
502
|
-
};
|
|
503
|
-
RepoValidation: {
|
|
504
|
-
diagnostics: components["schemas"]["CompileError"][];
|
|
505
|
-
reports: components["schemas"]["ValidationReport"][];
|
|
506
|
-
valid: boolean;
|
|
507
|
-
};
|
|
508
|
-
ReportTrace: {
|
|
509
|
-
kind: string;
|
|
510
|
-
loc?: components["schemas"]["ReportTraceLoc"];
|
|
511
|
-
name: string;
|
|
512
|
-
};
|
|
513
|
-
ReportTraceLoc: {
|
|
514
|
-
/** Format: int64 */
|
|
515
|
-
column?: number;
|
|
516
|
-
filePath: string;
|
|
517
|
-
/** Format: int64 */
|
|
518
|
-
line?: number;
|
|
519
|
-
};
|
|
520
|
-
SearchInput: {
|
|
521
|
-
/** @description search query */
|
|
522
|
-
query?: string[];
|
|
523
|
-
};
|
|
524
|
-
ServerInfo: {
|
|
525
|
-
instance_id: string;
|
|
526
|
-
url: string;
|
|
527
|
-
version: string;
|
|
528
|
-
};
|
|
529
|
-
ShowDataset: {
|
|
530
|
-
description?: string;
|
|
531
|
-
/** @description the dataset's fully qualified name, as AQL and the catalog name it */
|
|
532
|
-
fqn: string;
|
|
533
|
-
/**
|
|
534
|
-
* @description discriminator enum property added by openapi-typescript
|
|
535
|
-
* @enum {string}
|
|
536
|
-
*/
|
|
537
|
-
kind: "dataset";
|
|
538
|
-
label?: string;
|
|
539
|
-
/** @description the dataset's metrics; absent in outline */
|
|
540
|
-
metrics?: components["schemas"]["ShowField"][];
|
|
541
|
-
/** @description the models the dataset uses; absent in outline */
|
|
542
|
-
models?: components["schemas"]["ShowModel"][];
|
|
543
|
-
name: string;
|
|
544
|
-
};
|
|
545
|
-
ShowField: {
|
|
546
|
-
/** @description a measure's aggregation, such as sum or count distinct; custom for a custom one */
|
|
547
|
-
aggregation?: string;
|
|
548
|
-
/** @description a dimension the dataset declares on one of its models */
|
|
549
|
-
definedInDataset?: boolean;
|
|
550
|
-
/** @description the definition of a field or metric written in AQL */
|
|
551
|
-
definition?: string;
|
|
552
|
-
description?: string;
|
|
553
|
-
/** @description how a value displays, as the AML declares it */
|
|
554
|
-
format?: unknown;
|
|
555
|
-
/** @description the catalog's identity: <model fqn>.<name>, or <dataset fqn>.<name> for a dataset-level field or a metric */
|
|
556
|
-
fqn: string;
|
|
557
|
-
hidden: boolean;
|
|
558
|
-
label?: string;
|
|
559
|
-
/** @description AQL writes <model fqn>.<name>; a metric, its name alone */
|
|
560
|
-
name: string;
|
|
561
|
-
/** @enum {string} */
|
|
562
|
-
role: "dimension" | "measure" | "param" | "metric";
|
|
563
|
-
/** @description the compiled data type, such as number, text, date, datetime, truefalse */
|
|
564
|
-
type: string;
|
|
565
|
-
};
|
|
566
|
-
ShowInput: {
|
|
567
|
-
/** @description the fqn of the object to show; absent, the repo */
|
|
568
|
-
fqn?: string;
|
|
569
|
-
/**
|
|
570
|
-
* @description the catalog's entity type of fqn; aml.dataset is the only one for now
|
|
571
|
-
* @default aml.dataset
|
|
572
|
-
* @enum {string}
|
|
573
|
-
*/
|
|
574
|
-
type?: "aml.dataset";
|
|
575
|
-
};
|
|
576
|
-
ShowModel: {
|
|
577
|
-
description?: string;
|
|
578
|
-
fields: components["schemas"]["ShowField"][];
|
|
579
|
-
/** @description the model's fully qualified name: what AQL writes before a field */
|
|
580
|
-
fqn: string;
|
|
581
|
-
label?: string;
|
|
582
|
-
name: string;
|
|
583
|
-
};
|
|
584
|
-
ShowRepo: {
|
|
585
|
-
/** @description the repo's datasets, each in full; in outline (no models or metrics) when it cannot be shown in full, which a diagnostic says why */
|
|
586
|
-
datasets: components["schemas"]["ShowDataset"][];
|
|
587
|
-
/**
|
|
588
|
-
* @description discriminator enum property added by openapi-typescript
|
|
589
|
-
* @enum {string}
|
|
590
|
-
*/
|
|
591
|
-
kind: "repo";
|
|
592
|
-
};
|
|
593
|
-
ShowResult: {
|
|
594
|
-
/** @description what is wrong in the repo for what is shown: its files that do not compile, a dataset's data source it does not configure, a dataset it cannot show in full; empty, what is shown is complete */
|
|
595
|
-
diagnostics: components["schemas"]["CompileError"][];
|
|
596
|
-
/** @description the object shown, by kind; a client must accept a kind it does not know */
|
|
597
|
-
object: components["schemas"]["ShowRepo"] | components["schemas"]["ShowDataset"];
|
|
598
|
-
};
|
|
599
|
-
SidecarHealth: {
|
|
600
|
-
"canal-query": string;
|
|
601
|
-
node: string;
|
|
602
|
-
};
|
|
603
|
-
StatusResult: {
|
|
604
|
-
server?: components["schemas"]["ServerInfo"];
|
|
605
|
-
sidecars?: components["schemas"]["SidecarHealth"];
|
|
606
|
-
/** @enum {string} */
|
|
607
|
-
state: "healthy" | "degraded" | "not_running";
|
|
608
|
-
};
|
|
609
|
-
UpdateInfo: {
|
|
610
|
-
available: boolean;
|
|
611
|
-
latest: string;
|
|
612
|
-
};
|
|
613
|
-
ValidateInput: {
|
|
614
|
-
/** @description optional file globs; report only diagnostics for matching files */
|
|
615
|
-
globs?: string[];
|
|
616
|
-
};
|
|
617
|
-
ValidationReport: {
|
|
618
|
-
code?: unknown;
|
|
619
|
-
filePath: string;
|
|
620
|
-
fqn: string;
|
|
621
|
-
message: string;
|
|
622
|
-
severity: string;
|
|
623
|
-
trace?: components["schemas"]["ReportTrace"][];
|
|
624
|
-
type: string;
|
|
625
|
-
validator: string;
|
|
626
|
-
};
|
|
627
|
-
VersionResult: {
|
|
628
|
-
update?: components["schemas"]["UpdateInfo"];
|
|
629
|
-
version: string;
|
|
630
|
-
};
|
|
631
|
-
Violation: {
|
|
632
|
-
code: string;
|
|
633
|
-
field: string;
|
|
634
|
-
message: string;
|
|
635
|
-
};
|
|
636
|
-
Violations: {
|
|
637
|
-
violations: components["schemas"]["Violation"][];
|
|
638
|
-
};
|
|
639
|
-
};
|
|
640
|
-
responses: never;
|
|
641
|
-
parameters: never;
|
|
642
|
-
requestBodies: never;
|
|
643
|
-
headers: never;
|
|
644
|
-
pathItems: never;
|
|
645
|
-
}
|
|
646
|
-
interface operations {
|
|
647
|
-
"core.ingest": {
|
|
648
|
-
parameters: {
|
|
649
|
-
query?: never;
|
|
650
|
-
header?: never;
|
|
651
|
-
path?: never;
|
|
652
|
-
cookie?: never;
|
|
653
|
-
};
|
|
654
|
-
requestBody: {
|
|
655
|
-
content: {
|
|
656
|
-
"application/json": components["schemas"]["IngestInput"];
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
responses: {
|
|
660
|
-
/** @description OK */
|
|
661
|
-
200: {
|
|
662
|
-
headers: {
|
|
663
|
-
[name: string]: unknown;
|
|
664
|
-
};
|
|
665
|
-
content: {
|
|
666
|
-
"application/json": string;
|
|
667
|
-
};
|
|
668
|
-
};
|
|
669
|
-
/** @description invalid_request */
|
|
670
|
-
400: {
|
|
671
|
-
headers: {
|
|
672
|
-
[name: string]: unknown;
|
|
673
|
-
};
|
|
674
|
-
content: {
|
|
675
|
-
"application/json": {
|
|
676
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
677
|
-
};
|
|
678
|
-
};
|
|
679
|
-
};
|
|
680
|
-
/** @description validation_failed */
|
|
681
|
-
422: {
|
|
682
|
-
headers: {
|
|
683
|
-
[name: string]: unknown;
|
|
684
|
-
};
|
|
685
|
-
content: {
|
|
686
|
-
"application/json": {
|
|
687
|
-
error: components["schemas"]["ErrorBodyValidationFailed"];
|
|
688
|
-
};
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
/** @description internal_server_error */
|
|
692
|
-
500: {
|
|
693
|
-
headers: {
|
|
694
|
-
[name: string]: unknown;
|
|
695
|
-
};
|
|
696
|
-
content: {
|
|
697
|
-
"application/json": {
|
|
698
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
699
|
-
};
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
|
-
/** @description sidecar_unavailable */
|
|
703
|
-
503: {
|
|
704
|
-
headers: {
|
|
705
|
-
[name: string]: unknown;
|
|
706
|
-
};
|
|
707
|
-
content: {
|
|
708
|
-
"application/json": {
|
|
709
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
};
|
|
715
|
-
"core.query": {
|
|
716
|
-
parameters: {
|
|
717
|
-
query?: never;
|
|
718
|
-
header?: never;
|
|
719
|
-
path?: never;
|
|
720
|
-
cookie?: never;
|
|
721
|
-
};
|
|
722
|
-
requestBody: {
|
|
723
|
-
content: {
|
|
724
|
-
"application/json": components["schemas"]["QueryRunInput"];
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
responses: {
|
|
728
|
-
/** @description OK */
|
|
729
|
-
200: {
|
|
730
|
-
headers: {
|
|
731
|
-
[name: string]: unknown;
|
|
732
|
-
};
|
|
733
|
-
content: {
|
|
734
|
-
"application/json": components["schemas"]["QueryResult"];
|
|
735
|
-
};
|
|
736
|
-
};
|
|
737
|
-
/** @description invalid_request */
|
|
738
|
-
400: {
|
|
739
|
-
headers: {
|
|
740
|
-
[name: string]: unknown;
|
|
741
|
-
};
|
|
742
|
-
content: {
|
|
743
|
-
"application/json": {
|
|
744
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
/** @description validation_failed, query_invalid */
|
|
749
|
-
422: {
|
|
750
|
-
headers: {
|
|
751
|
-
[name: string]: unknown;
|
|
752
|
-
};
|
|
753
|
-
content: {
|
|
754
|
-
"application/json": {
|
|
755
|
-
error: components["schemas"]["ErrorBodyValidationFailed"] | components["schemas"]["ErrorBodyQueryInvalid"];
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
};
|
|
759
|
-
/** @description internal_server_error */
|
|
760
|
-
500: {
|
|
761
|
-
headers: {
|
|
762
|
-
[name: string]: unknown;
|
|
763
|
-
};
|
|
764
|
-
content: {
|
|
765
|
-
"application/json": {
|
|
766
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
767
|
-
};
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
|
-
/** @description query_failed */
|
|
771
|
-
502: {
|
|
772
|
-
headers: {
|
|
773
|
-
[name: string]: unknown;
|
|
774
|
-
};
|
|
775
|
-
content: {
|
|
776
|
-
"application/json": {
|
|
777
|
-
error: components["schemas"]["ErrorBodyQueryFailed"];
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
};
|
|
781
|
-
/** @description sidecar_unavailable */
|
|
782
|
-
503: {
|
|
783
|
-
headers: {
|
|
784
|
-
[name: string]: unknown;
|
|
785
|
-
};
|
|
786
|
-
content: {
|
|
787
|
-
"application/json": {
|
|
788
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
};
|
|
792
|
-
};
|
|
793
|
-
};
|
|
794
|
-
"core.query.compile": {
|
|
795
|
-
parameters: {
|
|
796
|
-
query?: never;
|
|
797
|
-
header?: never;
|
|
798
|
-
path?: never;
|
|
799
|
-
cookie?: never;
|
|
800
|
-
};
|
|
801
|
-
requestBody: {
|
|
802
|
-
content: {
|
|
803
|
-
"application/json": components["schemas"]["QueryRunInput"];
|
|
804
|
-
};
|
|
805
|
-
};
|
|
806
|
-
responses: {
|
|
807
|
-
/** @description OK */
|
|
808
|
-
200: {
|
|
809
|
-
headers: {
|
|
810
|
-
[name: string]: unknown;
|
|
811
|
-
};
|
|
812
|
-
content: {
|
|
813
|
-
"application/json": components["schemas"]["CompiledQuery"];
|
|
814
|
-
};
|
|
815
|
-
};
|
|
816
|
-
/** @description invalid_request */
|
|
817
|
-
400: {
|
|
818
|
-
headers: {
|
|
819
|
-
[name: string]: unknown;
|
|
820
|
-
};
|
|
821
|
-
content: {
|
|
822
|
-
"application/json": {
|
|
823
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
};
|
|
827
|
-
/** @description validation_failed, query_invalid */
|
|
828
|
-
422: {
|
|
829
|
-
headers: {
|
|
830
|
-
[name: string]: unknown;
|
|
831
|
-
};
|
|
832
|
-
content: {
|
|
833
|
-
"application/json": {
|
|
834
|
-
error: components["schemas"]["ErrorBodyValidationFailed"] | components["schemas"]["ErrorBodyQueryInvalid"];
|
|
835
|
-
};
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
/** @description internal_server_error */
|
|
839
|
-
500: {
|
|
840
|
-
headers: {
|
|
841
|
-
[name: string]: unknown;
|
|
842
|
-
};
|
|
843
|
-
content: {
|
|
844
|
-
"application/json": {
|
|
845
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
846
|
-
};
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
/** @description sidecar_unavailable */
|
|
850
|
-
503: {
|
|
851
|
-
headers: {
|
|
852
|
-
[name: string]: unknown;
|
|
853
|
-
};
|
|
854
|
-
content: {
|
|
855
|
-
"application/json": {
|
|
856
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
857
|
-
};
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
};
|
|
861
|
-
};
|
|
862
|
-
"core.query.export": {
|
|
863
|
-
parameters: {
|
|
864
|
-
query?: never;
|
|
865
|
-
header?: never;
|
|
866
|
-
path?: never;
|
|
867
|
-
cookie?: never;
|
|
868
|
-
};
|
|
869
|
-
requestBody: {
|
|
870
|
-
content: {
|
|
871
|
-
"application/json": components["schemas"]["ExportInput"];
|
|
872
|
-
};
|
|
873
|
-
};
|
|
874
|
-
responses: {
|
|
875
|
-
/** @description OK */
|
|
876
|
-
200: {
|
|
877
|
-
headers: {
|
|
878
|
-
[name: string]: unknown;
|
|
879
|
-
};
|
|
880
|
-
content: {
|
|
881
|
-
"application/json": components["schemas"]["ExportLink"];
|
|
882
|
-
};
|
|
883
|
-
};
|
|
884
|
-
/** @description invalid_request */
|
|
885
|
-
400: {
|
|
886
|
-
headers: {
|
|
887
|
-
[name: string]: unknown;
|
|
888
|
-
};
|
|
889
|
-
content: {
|
|
890
|
-
"application/json": {
|
|
891
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
892
|
-
};
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
/** @description validation_failed, query_invalid */
|
|
896
|
-
422: {
|
|
897
|
-
headers: {
|
|
898
|
-
[name: string]: unknown;
|
|
899
|
-
};
|
|
900
|
-
content: {
|
|
901
|
-
"application/json": {
|
|
902
|
-
error: components["schemas"]["ErrorBodyValidationFailed"] | components["schemas"]["ErrorBodyQueryInvalid"];
|
|
903
|
-
};
|
|
904
|
-
};
|
|
905
|
-
};
|
|
906
|
-
/** @description internal_server_error */
|
|
907
|
-
500: {
|
|
908
|
-
headers: {
|
|
909
|
-
[name: string]: unknown;
|
|
910
|
-
};
|
|
911
|
-
content: {
|
|
912
|
-
"application/json": {
|
|
913
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
914
|
-
};
|
|
915
|
-
};
|
|
916
|
-
};
|
|
917
|
-
/** @description exports_unavailable */
|
|
918
|
-
501: {
|
|
919
|
-
headers: {
|
|
920
|
-
[name: string]: unknown;
|
|
921
|
-
};
|
|
922
|
-
content: {
|
|
923
|
-
"application/json": {
|
|
924
|
-
error: components["schemas"]["ErrorBodyExportsUnavailable"];
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
/** @description query_failed */
|
|
929
|
-
502: {
|
|
930
|
-
headers: {
|
|
931
|
-
[name: string]: unknown;
|
|
932
|
-
};
|
|
933
|
-
content: {
|
|
934
|
-
"application/json": {
|
|
935
|
-
error: components["schemas"]["ErrorBodyQueryFailed"];
|
|
936
|
-
};
|
|
937
|
-
};
|
|
938
|
-
};
|
|
939
|
-
/** @description sidecar_unavailable */
|
|
940
|
-
503: {
|
|
941
|
-
headers: {
|
|
942
|
-
[name: string]: unknown;
|
|
943
|
-
};
|
|
944
|
-
content: {
|
|
945
|
-
"application/json": {
|
|
946
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
947
|
-
};
|
|
948
|
-
};
|
|
949
|
-
};
|
|
950
|
-
};
|
|
951
|
-
};
|
|
952
|
-
"core.query.validate": {
|
|
953
|
-
parameters: {
|
|
954
|
-
query?: never;
|
|
955
|
-
header?: never;
|
|
956
|
-
path?: never;
|
|
957
|
-
cookie?: never;
|
|
958
|
-
};
|
|
959
|
-
requestBody: {
|
|
960
|
-
content: {
|
|
961
|
-
"application/json": components["schemas"]["QueryInput"];
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
responses: {
|
|
965
|
-
/** @description OK */
|
|
966
|
-
200: {
|
|
967
|
-
headers: {
|
|
968
|
-
[name: string]: unknown;
|
|
969
|
-
};
|
|
970
|
-
content: {
|
|
971
|
-
"application/json": components["schemas"]["QueryValidation"];
|
|
972
|
-
};
|
|
973
|
-
};
|
|
974
|
-
/** @description invalid_request */
|
|
975
|
-
400: {
|
|
976
|
-
headers: {
|
|
977
|
-
[name: string]: unknown;
|
|
978
|
-
};
|
|
979
|
-
content: {
|
|
980
|
-
"application/json": {
|
|
981
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
};
|
|
985
|
-
/** @description validation_failed */
|
|
986
|
-
422: {
|
|
987
|
-
headers: {
|
|
988
|
-
[name: string]: unknown;
|
|
989
|
-
};
|
|
990
|
-
content: {
|
|
991
|
-
"application/json": {
|
|
992
|
-
error: components["schemas"]["ErrorBodyValidationFailed"];
|
|
993
|
-
};
|
|
994
|
-
};
|
|
995
|
-
};
|
|
996
|
-
/** @description internal_server_error */
|
|
997
|
-
500: {
|
|
998
|
-
headers: {
|
|
999
|
-
[name: string]: unknown;
|
|
1000
|
-
};
|
|
1001
|
-
content: {
|
|
1002
|
-
"application/json": {
|
|
1003
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
1004
|
-
};
|
|
1005
|
-
};
|
|
1006
|
-
};
|
|
1007
|
-
/** @description sidecar_unavailable */
|
|
1008
|
-
503: {
|
|
1009
|
-
headers: {
|
|
1010
|
-
[name: string]: unknown;
|
|
1011
|
-
};
|
|
1012
|
-
content: {
|
|
1013
|
-
"application/json": {
|
|
1014
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
1015
|
-
};
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
};
|
|
1020
|
-
"core.search": {
|
|
1021
|
-
parameters: {
|
|
1022
|
-
query?: never;
|
|
1023
|
-
header?: never;
|
|
1024
|
-
path?: never;
|
|
1025
|
-
cookie?: never;
|
|
1026
|
-
};
|
|
1027
|
-
requestBody: {
|
|
1028
|
-
content: {
|
|
1029
|
-
"application/json": components["schemas"]["SearchInput"];
|
|
1030
|
-
};
|
|
1031
|
-
};
|
|
1032
|
-
responses: {
|
|
1033
|
-
/** @description OK */
|
|
1034
|
-
200: {
|
|
1035
|
-
headers: {
|
|
1036
|
-
[name: string]: unknown;
|
|
1037
|
-
};
|
|
1038
|
-
content: {
|
|
1039
|
-
"application/json": {
|
|
1040
|
-
[key: string]: unknown;
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
|
-
};
|
|
1044
|
-
/** @description invalid_request */
|
|
1045
|
-
400: {
|
|
1046
|
-
headers: {
|
|
1047
|
-
[name: string]: unknown;
|
|
1048
|
-
};
|
|
1049
|
-
content: {
|
|
1050
|
-
"application/json": {
|
|
1051
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
1052
|
-
};
|
|
1053
|
-
};
|
|
1054
|
-
};
|
|
1055
|
-
/** @description validation_failed */
|
|
1056
|
-
422: {
|
|
1057
|
-
headers: {
|
|
1058
|
-
[name: string]: unknown;
|
|
1059
|
-
};
|
|
1060
|
-
content: {
|
|
1061
|
-
"application/json": {
|
|
1062
|
-
error: components["schemas"]["ErrorBodyValidationFailed"];
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
1065
|
-
};
|
|
1066
|
-
/** @description internal_server_error */
|
|
1067
|
-
500: {
|
|
1068
|
-
headers: {
|
|
1069
|
-
[name: string]: unknown;
|
|
1070
|
-
};
|
|
1071
|
-
content: {
|
|
1072
|
-
"application/json": {
|
|
1073
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
1074
|
-
};
|
|
1075
|
-
};
|
|
1076
|
-
};
|
|
1077
|
-
/** @description sidecar_unavailable */
|
|
1078
|
-
503: {
|
|
1079
|
-
headers: {
|
|
1080
|
-
[name: string]: unknown;
|
|
1081
|
-
};
|
|
1082
|
-
content: {
|
|
1083
|
-
"application/json": {
|
|
1084
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
};
|
|
1088
|
-
};
|
|
1089
|
-
};
|
|
1090
|
-
"core.show": {
|
|
1091
|
-
parameters: {
|
|
1092
|
-
query?: never;
|
|
1093
|
-
header?: never;
|
|
1094
|
-
path?: never;
|
|
1095
|
-
cookie?: never;
|
|
1096
|
-
};
|
|
1097
|
-
requestBody: {
|
|
1098
|
-
content: {
|
|
1099
|
-
"application/json": components["schemas"]["ShowInput"];
|
|
1100
|
-
};
|
|
1101
|
-
};
|
|
1102
|
-
responses: {
|
|
1103
|
-
/** @description OK */
|
|
1104
|
-
200: {
|
|
1105
|
-
headers: {
|
|
1106
|
-
[name: string]: unknown;
|
|
1107
|
-
};
|
|
1108
|
-
content: {
|
|
1109
|
-
"application/json": components["schemas"]["ShowResult"];
|
|
1110
|
-
};
|
|
1111
|
-
};
|
|
1112
|
-
/** @description invalid_request */
|
|
1113
|
-
400: {
|
|
1114
|
-
headers: {
|
|
1115
|
-
[name: string]: unknown;
|
|
1116
|
-
};
|
|
1117
|
-
content: {
|
|
1118
|
-
"application/json": {
|
|
1119
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
1120
|
-
};
|
|
1121
|
-
};
|
|
1122
|
-
};
|
|
1123
|
-
/** @description validation_failed */
|
|
1124
|
-
422: {
|
|
1125
|
-
headers: {
|
|
1126
|
-
[name: string]: unknown;
|
|
1127
|
-
};
|
|
1128
|
-
content: {
|
|
1129
|
-
"application/json": {
|
|
1130
|
-
error: components["schemas"]["ErrorBodyValidationFailed"];
|
|
1131
|
-
};
|
|
1132
|
-
};
|
|
1133
|
-
};
|
|
1134
|
-
/** @description internal_server_error */
|
|
1135
|
-
500: {
|
|
1136
|
-
headers: {
|
|
1137
|
-
[name: string]: unknown;
|
|
1138
|
-
};
|
|
1139
|
-
content: {
|
|
1140
|
-
"application/json": {
|
|
1141
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
};
|
|
1145
|
-
/** @description sidecar_unavailable */
|
|
1146
|
-
503: {
|
|
1147
|
-
headers: {
|
|
1148
|
-
[name: string]: unknown;
|
|
1149
|
-
};
|
|
1150
|
-
content: {
|
|
1151
|
-
"application/json": {
|
|
1152
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
};
|
|
1156
|
-
};
|
|
1157
|
-
};
|
|
1158
|
-
"core.status": {
|
|
1159
|
-
parameters: {
|
|
1160
|
-
query?: never;
|
|
1161
|
-
header?: never;
|
|
1162
|
-
path?: never;
|
|
1163
|
-
cookie?: never;
|
|
1164
|
-
};
|
|
1165
|
-
requestBody: {
|
|
1166
|
-
content: {
|
|
1167
|
-
"application/json": components["schemas"]["NoInput"];
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
responses: {
|
|
1171
|
-
/** @description OK */
|
|
1172
|
-
200: {
|
|
1173
|
-
headers: {
|
|
1174
|
-
[name: string]: unknown;
|
|
1175
|
-
};
|
|
1176
|
-
content: {
|
|
1177
|
-
"application/json": components["schemas"]["StatusResult"];
|
|
1178
|
-
};
|
|
1179
|
-
};
|
|
1180
|
-
/** @description invalid_request */
|
|
1181
|
-
400: {
|
|
1182
|
-
headers: {
|
|
1183
|
-
[name: string]: unknown;
|
|
1184
|
-
};
|
|
1185
|
-
content: {
|
|
1186
|
-
"application/json": {
|
|
1187
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
1188
|
-
};
|
|
1189
|
-
};
|
|
1190
|
-
};
|
|
1191
|
-
/** @description validation_failed */
|
|
1192
|
-
422: {
|
|
1193
|
-
headers: {
|
|
1194
|
-
[name: string]: unknown;
|
|
1195
|
-
};
|
|
1196
|
-
content: {
|
|
1197
|
-
"application/json": {
|
|
1198
|
-
error: components["schemas"]["ErrorBodyValidationFailed"];
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
};
|
|
1202
|
-
/** @description internal_server_error */
|
|
1203
|
-
500: {
|
|
1204
|
-
headers: {
|
|
1205
|
-
[name: string]: unknown;
|
|
1206
|
-
};
|
|
1207
|
-
content: {
|
|
1208
|
-
"application/json": {
|
|
1209
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
1210
|
-
};
|
|
1211
|
-
};
|
|
1212
|
-
};
|
|
1213
|
-
};
|
|
1214
|
-
};
|
|
1215
|
-
"core.validate": {
|
|
1216
|
-
parameters: {
|
|
1217
|
-
query?: never;
|
|
1218
|
-
header?: never;
|
|
1219
|
-
path?: never;
|
|
1220
|
-
cookie?: never;
|
|
1221
|
-
};
|
|
1222
|
-
requestBody: {
|
|
1223
|
-
content: {
|
|
1224
|
-
"application/json": components["schemas"]["ValidateInput"];
|
|
1225
|
-
};
|
|
1226
|
-
};
|
|
1227
|
-
responses: {
|
|
1228
|
-
/** @description OK */
|
|
1229
|
-
200: {
|
|
1230
|
-
headers: {
|
|
1231
|
-
[name: string]: unknown;
|
|
1232
|
-
};
|
|
1233
|
-
content: {
|
|
1234
|
-
"application/json": components["schemas"]["RepoValidation"];
|
|
1235
|
-
};
|
|
1236
|
-
};
|
|
1237
|
-
/** @description invalid_request */
|
|
1238
|
-
400: {
|
|
1239
|
-
headers: {
|
|
1240
|
-
[name: string]: unknown;
|
|
1241
|
-
};
|
|
1242
|
-
content: {
|
|
1243
|
-
"application/json": {
|
|
1244
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
1245
|
-
};
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
/** @description validation_failed */
|
|
1249
|
-
422: {
|
|
1250
|
-
headers: {
|
|
1251
|
-
[name: string]: unknown;
|
|
1252
|
-
};
|
|
1253
|
-
content: {
|
|
1254
|
-
"application/json": {
|
|
1255
|
-
error: components["schemas"]["ErrorBodyValidationFailed"];
|
|
1256
|
-
};
|
|
1257
|
-
};
|
|
1258
|
-
};
|
|
1259
|
-
/** @description internal_server_error */
|
|
1260
|
-
500: {
|
|
1261
|
-
headers: {
|
|
1262
|
-
[name: string]: unknown;
|
|
1263
|
-
};
|
|
1264
|
-
content: {
|
|
1265
|
-
"application/json": {
|
|
1266
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
1267
|
-
};
|
|
1268
|
-
};
|
|
1269
|
-
};
|
|
1270
|
-
/** @description sidecar_unavailable */
|
|
1271
|
-
503: {
|
|
1272
|
-
headers: {
|
|
1273
|
-
[name: string]: unknown;
|
|
1274
|
-
};
|
|
1275
|
-
content: {
|
|
1276
|
-
"application/json": {
|
|
1277
|
-
error: components["schemas"]["ErrorBodySidecarUnavailable"];
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
};
|
|
1281
|
-
};
|
|
1282
|
-
};
|
|
1283
|
-
"core.version": {
|
|
1284
|
-
parameters: {
|
|
1285
|
-
query?: never;
|
|
1286
|
-
header?: never;
|
|
1287
|
-
path?: never;
|
|
1288
|
-
cookie?: never;
|
|
1289
|
-
};
|
|
1290
|
-
requestBody: {
|
|
1291
|
-
content: {
|
|
1292
|
-
"application/json": components["schemas"]["NoInput"];
|
|
1293
|
-
};
|
|
1294
|
-
};
|
|
1295
|
-
responses: {
|
|
1296
|
-
/** @description OK */
|
|
1297
|
-
200: {
|
|
1298
|
-
headers: {
|
|
1299
|
-
[name: string]: unknown;
|
|
1300
|
-
};
|
|
1301
|
-
content: {
|
|
1302
|
-
"application/json": components["schemas"]["VersionResult"];
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
/** @description invalid_request */
|
|
1306
|
-
400: {
|
|
1307
|
-
headers: {
|
|
1308
|
-
[name: string]: unknown;
|
|
1309
|
-
};
|
|
1310
|
-
content: {
|
|
1311
|
-
"application/json": {
|
|
1312
|
-
error: components["schemas"]["ErrorBodyInvalidRequest"];
|
|
1313
|
-
};
|
|
1314
|
-
};
|
|
1315
|
-
};
|
|
1316
|
-
/** @description validation_failed */
|
|
1317
|
-
422: {
|
|
1318
|
-
headers: {
|
|
1319
|
-
[name: string]: unknown;
|
|
1320
|
-
};
|
|
1321
|
-
content: {
|
|
1322
|
-
"application/json": {
|
|
1323
|
-
error: components["schemas"]["ErrorBodyValidationFailed"];
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
|
-
};
|
|
1327
|
-
/** @description internal_server_error */
|
|
1328
|
-
500: {
|
|
1329
|
-
headers: {
|
|
1330
|
-
[name: string]: unknown;
|
|
1331
|
-
};
|
|
1332
|
-
content: {
|
|
1333
|
-
"application/json": {
|
|
1334
|
-
error: components["schemas"]["ErrorBodyInternalServerError"];
|
|
1335
|
-
};
|
|
1336
|
-
};
|
|
1337
|
-
};
|
|
1338
|
-
};
|
|
1339
|
-
};
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
5
|
/** The core API, typed from anfra core's spec (`api/openapi.yaml`, generated into `schema.d.ts`). */
|
|
1343
6
|
type CoreClient = Client<paths>;
|
|
1344
7
|
/**
|
|
@@ -1364,8 +27,8 @@ declare function toQueryInput(request: BackendQueryRequest): QueryRunInput;
|
|
|
1364
27
|
declare function toExportInput(request: BackendExportRequest): ExportInput;
|
|
1365
28
|
/**
|
|
1366
29
|
* A Backend over the core API: a Data App's queries as `core.query`, its field suggestions as one
|
|
1367
|
-
* `core.query` too,
|
|
1368
|
-
* anfra-cloud. A host's page uses it; a Data App's frame never does.
|
|
30
|
+
* `core.query` too, its exports as `core.query.export`, and its lineage as `core.lineage`. The same on
|
|
31
|
+
* every host: `/api` on `anfra serve`, `/api/o/{org}` on anfra-cloud. A host's page uses it; a Data App's frame never does.
|
|
1369
32
|
*/
|
|
1370
33
|
declare function coreApiBackend(base: string | CoreClient, options?: CoreApiBackendOptions): Backend;
|
|
1371
34
|
|
|
@@ -1407,4 +70,4 @@ interface ApiErrorBody {
|
|
|
1407
70
|
*/
|
|
1408
71
|
declare function toSdkError(status: number, body: ApiErrorBody | undefined): DataAppError;
|
|
1409
72
|
|
|
1410
|
-
export { type ApiErrorBody, type CoreApiBackendOptions, type CoreClient, type LoadedDatasets, SUGGESTION_LIMIT,
|
|
73
|
+
export { type ApiErrorBody, type CoreApiBackendOptions, type CoreClient, type LoadedDatasets, SUGGESTION_LIMIT, components, coreApiBackend, coreClient, loadDatasets, paths, toDescriptor, toExportInput, toQueryInput, toSdkError };
|