@malloydata/db-publisher 0.0.270-dev250429163414
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/api.d.ts +1537 -0
- package/dist/client/api.js +1572 -0
- package/dist/client/api.js.map +1 -0
- package/dist/client/base.d.ts +66 -0
- package/dist/client/base.js +69 -0
- package/dist/client/base.js.map +1 -0
- package/dist/client/common.d.ts +65 -0
- package/dist/client/common.js +147 -0
- package/dist/client/common.js.map +1 -0
- package/dist/client/configuration.d.ts +91 -0
- package/dist/client/configuration.js +50 -0
- package/dist/client/configuration.js.map +1 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.js +32 -0
- package/dist/client/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/publisher_connection.d.ts +29 -0
- package/dist/publisher_connection.js +119 -0
- package/dist/publisher_connection.js.map +1 -0
- package/dist/publisher_connection.spec.d.ts +1 -0
- package/dist/publisher_connection.spec.js +806 -0
- package/dist/publisher_connection.spec.js.map +1 -0
- package/openapitools.json +7 -0
- package/package.json +32 -0
- package/publisher-api-doc.yaml +1026 -0
- package/src/client/.openapi-generator/FILES +9 -0
- package/src/client/.openapi-generator/VERSION +1 -0
- package/src/client/.openapi-generator-ignore +23 -0
- package/src/client/api.ts +2342 -0
- package/src/client/base.ts +86 -0
- package/src/client/common.ts +150 -0
- package/src/client/configuration.ts +115 -0
- package/src/client/git_push.sh +57 -0
- package/src/client/index.ts +19 -0
- package/src/index.ts +8 -0
- package/src/publisher_connection.spec.ts +1118 -0
- package/src/publisher_connection.ts +223 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,1026 @@
|
|
|
1
|
+
openapi: 3.1.0
|
|
2
|
+
info:
|
|
3
|
+
title: Malloy Publisher - Semantic Model Serving API
|
|
4
|
+
description:
|
|
5
|
+
The Malloy Publisher - Semantic Model Serving API serves Malloy packages. A Malloy package is a directory of Malloy models (.malloy files),
|
|
6
|
+
Malloy notebooks (.malloynb files), and embedded datbases (.parque files) with a malloy-publisher.json manifest at the package's root directory.
|
|
7
|
+
For example, see the Malloy samples packages (https://github.com/malloydata/malloy-samples) repo.
|
|
8
|
+
version: v0
|
|
9
|
+
servers:
|
|
10
|
+
- url: /api/v0/
|
|
11
|
+
|
|
12
|
+
paths:
|
|
13
|
+
/projects:
|
|
14
|
+
get:
|
|
15
|
+
tags:
|
|
16
|
+
- projects
|
|
17
|
+
operationId: list-projects
|
|
18
|
+
summary:
|
|
19
|
+
Returns a list of the Projects hosted on this server.
|
|
20
|
+
responses:
|
|
21
|
+
200:
|
|
22
|
+
description:
|
|
23
|
+
A list of the Projects names.
|
|
24
|
+
content:
|
|
25
|
+
application/json:
|
|
26
|
+
schema:
|
|
27
|
+
type: array
|
|
28
|
+
items:
|
|
29
|
+
$ref: "#/components/schemas/Project"
|
|
30
|
+
401:
|
|
31
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
32
|
+
500:
|
|
33
|
+
$ref: "#/components/responses/InternalServerError"
|
|
34
|
+
|
|
35
|
+
/projects/{projectName}/about:
|
|
36
|
+
get:
|
|
37
|
+
tags:
|
|
38
|
+
- about:
|
|
39
|
+
operationId: about
|
|
40
|
+
summary:
|
|
41
|
+
Returns metadata about the publisher service.
|
|
42
|
+
parameters:
|
|
43
|
+
- name: projectName
|
|
44
|
+
in: path
|
|
45
|
+
description: Name of project
|
|
46
|
+
required: true
|
|
47
|
+
schema:
|
|
48
|
+
type: string
|
|
49
|
+
responses:
|
|
50
|
+
200:
|
|
51
|
+
description:
|
|
52
|
+
Metadata about the publisher service.
|
|
53
|
+
content:
|
|
54
|
+
application/json:
|
|
55
|
+
schema:
|
|
56
|
+
$ref: "#/components/schemas/About"
|
|
57
|
+
401:
|
|
58
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
59
|
+
500:
|
|
60
|
+
$ref: "#/components/responses/InternalServerError"
|
|
61
|
+
|
|
62
|
+
/projects/{projectName}/connections:
|
|
63
|
+
get:
|
|
64
|
+
tags:
|
|
65
|
+
- connections
|
|
66
|
+
operationId: list-connections
|
|
67
|
+
summary:
|
|
68
|
+
Returns a list of the connections in the project.
|
|
69
|
+
parameters:
|
|
70
|
+
- name: projectName
|
|
71
|
+
in: path
|
|
72
|
+
description: Name of project
|
|
73
|
+
required: true
|
|
74
|
+
schema:
|
|
75
|
+
type: string
|
|
76
|
+
responses:
|
|
77
|
+
200:
|
|
78
|
+
description:
|
|
79
|
+
A list of the connections in the project.
|
|
80
|
+
content:
|
|
81
|
+
application/json:
|
|
82
|
+
schema:
|
|
83
|
+
type: array
|
|
84
|
+
items:
|
|
85
|
+
$ref: "#/components/schemas/Connection"
|
|
86
|
+
401:
|
|
87
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
88
|
+
500:
|
|
89
|
+
$ref: "#/components/responses/InternalServerError"
|
|
90
|
+
|
|
91
|
+
/projects/{projectName}/connections/{connectionName}:
|
|
92
|
+
get:
|
|
93
|
+
tags:
|
|
94
|
+
- connections
|
|
95
|
+
operationId: get-connection
|
|
96
|
+
summary:
|
|
97
|
+
Returns a connection.
|
|
98
|
+
parameters:
|
|
99
|
+
- name: projectName
|
|
100
|
+
in: path
|
|
101
|
+
description: Name of project
|
|
102
|
+
required: true
|
|
103
|
+
schema:
|
|
104
|
+
type: string
|
|
105
|
+
- name: connectionName
|
|
106
|
+
in: path
|
|
107
|
+
description: Name of connection
|
|
108
|
+
required: true
|
|
109
|
+
schema:
|
|
110
|
+
type: string
|
|
111
|
+
responses:
|
|
112
|
+
200:
|
|
113
|
+
description:
|
|
114
|
+
A connection.
|
|
115
|
+
content:
|
|
116
|
+
application/json:
|
|
117
|
+
schema:
|
|
118
|
+
$ref: "#/components/schemas/Connection"
|
|
119
|
+
401:
|
|
120
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
121
|
+
404:
|
|
122
|
+
$ref: "#/components/responses/NotFoundError"
|
|
123
|
+
500:
|
|
124
|
+
$ref: "#/components/responses/InternalServerError"
|
|
125
|
+
|
|
126
|
+
/projects/{projectName}/connections/{connectionName}/test:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- connections
|
|
130
|
+
operationId: get-test
|
|
131
|
+
summary:
|
|
132
|
+
Returns a test.
|
|
133
|
+
parameters:
|
|
134
|
+
- name: projectName
|
|
135
|
+
in: path
|
|
136
|
+
description: Name of project
|
|
137
|
+
required: true
|
|
138
|
+
schema:
|
|
139
|
+
type: string
|
|
140
|
+
- name: connectionName
|
|
141
|
+
in: path
|
|
142
|
+
description: Name of connection
|
|
143
|
+
required: true
|
|
144
|
+
schema:
|
|
145
|
+
type: string
|
|
146
|
+
responses:
|
|
147
|
+
200:
|
|
148
|
+
description:
|
|
149
|
+
Test passed.
|
|
150
|
+
401:
|
|
151
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
152
|
+
404:
|
|
153
|
+
$ref: "#/components/responses/NotFoundError"
|
|
154
|
+
500:
|
|
155
|
+
$ref: "#/components/responses/InternalServerError"
|
|
156
|
+
|
|
157
|
+
/projects/{projectName}/connections/{connectionName}/sqlSource:
|
|
158
|
+
get:
|
|
159
|
+
tags:
|
|
160
|
+
- connections
|
|
161
|
+
operationId: get-sqlsource
|
|
162
|
+
summary:
|
|
163
|
+
Returns a SQL source.
|
|
164
|
+
parameters:
|
|
165
|
+
- name: projectName
|
|
166
|
+
in: path
|
|
167
|
+
description: Name of project
|
|
168
|
+
required: true
|
|
169
|
+
schema:
|
|
170
|
+
type: string
|
|
171
|
+
- name: connectionName
|
|
172
|
+
in: path
|
|
173
|
+
description: Name of connection
|
|
174
|
+
required: true
|
|
175
|
+
schema:
|
|
176
|
+
type: string
|
|
177
|
+
- name: sqlStatement
|
|
178
|
+
in: query
|
|
179
|
+
description: SQL statement
|
|
180
|
+
required: false
|
|
181
|
+
schema:
|
|
182
|
+
type: string
|
|
183
|
+
responses:
|
|
184
|
+
200:
|
|
185
|
+
description:
|
|
186
|
+
A SQL source.
|
|
187
|
+
content:
|
|
188
|
+
application/json:
|
|
189
|
+
schema:
|
|
190
|
+
$ref: "#/components/schemas/SqlSource"
|
|
191
|
+
401:
|
|
192
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
193
|
+
404:
|
|
194
|
+
$ref: "#/components/responses/NotFoundError"
|
|
195
|
+
500:
|
|
196
|
+
$ref: "#/components/responses/InternalServerError"
|
|
197
|
+
|
|
198
|
+
/projects/{projectName}/connections/{connectionName}/tableSource:
|
|
199
|
+
get:
|
|
200
|
+
tags:
|
|
201
|
+
- connections
|
|
202
|
+
operationId: get-tablesource
|
|
203
|
+
summary:
|
|
204
|
+
Returns a table source.
|
|
205
|
+
parameters:
|
|
206
|
+
- name: projectName
|
|
207
|
+
in: path
|
|
208
|
+
description: Name of project
|
|
209
|
+
required: true
|
|
210
|
+
schema:
|
|
211
|
+
type: string
|
|
212
|
+
- name: connectionName
|
|
213
|
+
in: path
|
|
214
|
+
description: Name of connection
|
|
215
|
+
required: true
|
|
216
|
+
schema:
|
|
217
|
+
type: string
|
|
218
|
+
- name: tableKey
|
|
219
|
+
in: query
|
|
220
|
+
description: Table key
|
|
221
|
+
required: false
|
|
222
|
+
schema:
|
|
223
|
+
type: string
|
|
224
|
+
- name: tablePath
|
|
225
|
+
in: query
|
|
226
|
+
description: Table path
|
|
227
|
+
required: false
|
|
228
|
+
schema:
|
|
229
|
+
type: string
|
|
230
|
+
responses:
|
|
231
|
+
200:
|
|
232
|
+
description:
|
|
233
|
+
A table source.
|
|
234
|
+
content:
|
|
235
|
+
application/json:
|
|
236
|
+
schema:
|
|
237
|
+
$ref: "#/components/schemas/TableSource"
|
|
238
|
+
401:
|
|
239
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
240
|
+
404:
|
|
241
|
+
$ref: "#/components/responses/NotFoundError"
|
|
242
|
+
500:
|
|
243
|
+
$ref: "#/components/responses/InternalServerError"
|
|
244
|
+
|
|
245
|
+
/projects/{projectName}/connections/{connectionName}/queryData:
|
|
246
|
+
get:
|
|
247
|
+
tags:
|
|
248
|
+
- connections
|
|
249
|
+
operationId: get-querydata
|
|
250
|
+
summary:
|
|
251
|
+
Returns a query and its results.
|
|
252
|
+
parameters:
|
|
253
|
+
- name: projectName
|
|
254
|
+
in: path
|
|
255
|
+
description: Name of project
|
|
256
|
+
required: true
|
|
257
|
+
schema:
|
|
258
|
+
type: string
|
|
259
|
+
- name: connectionName
|
|
260
|
+
in: path
|
|
261
|
+
description: Name of connection
|
|
262
|
+
required: true
|
|
263
|
+
schema:
|
|
264
|
+
type: string
|
|
265
|
+
- name: sqlStatement
|
|
266
|
+
in: query
|
|
267
|
+
description: SQL statement
|
|
268
|
+
required: false
|
|
269
|
+
schema:
|
|
270
|
+
type: string
|
|
271
|
+
- name: options
|
|
272
|
+
in: query
|
|
273
|
+
description: Options
|
|
274
|
+
required: false
|
|
275
|
+
schema:
|
|
276
|
+
type: string
|
|
277
|
+
responses:
|
|
278
|
+
200:
|
|
279
|
+
description:
|
|
280
|
+
A query and its results.
|
|
281
|
+
content:
|
|
282
|
+
application/json:
|
|
283
|
+
schema:
|
|
284
|
+
$ref: "#/components/schemas/QueryData"
|
|
285
|
+
401:
|
|
286
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
287
|
+
404:
|
|
288
|
+
$ref: "#/components/responses/NotFoundError"
|
|
289
|
+
500:
|
|
290
|
+
$ref: "#/components/responses/InternalServerError"
|
|
291
|
+
|
|
292
|
+
/projects/{projectName}/connections/{connectionName}/temporaryTable:
|
|
293
|
+
get:
|
|
294
|
+
tags:
|
|
295
|
+
- connections
|
|
296
|
+
operationId: get-temporarytable
|
|
297
|
+
summary:
|
|
298
|
+
Returns a temporary table.
|
|
299
|
+
parameters:
|
|
300
|
+
- name: projectName
|
|
301
|
+
in: path
|
|
302
|
+
description: Name of project
|
|
303
|
+
required: true
|
|
304
|
+
schema:
|
|
305
|
+
type: string
|
|
306
|
+
- name: connectionName
|
|
307
|
+
in: path
|
|
308
|
+
description: Name of connection
|
|
309
|
+
required: true
|
|
310
|
+
schema:
|
|
311
|
+
type: string
|
|
312
|
+
- name: sqlStatement
|
|
313
|
+
in: query
|
|
314
|
+
description: SQL statement
|
|
315
|
+
required: false
|
|
316
|
+
schema:
|
|
317
|
+
type: string
|
|
318
|
+
responses:
|
|
319
|
+
200:
|
|
320
|
+
description:
|
|
321
|
+
A temporary table.
|
|
322
|
+
content:
|
|
323
|
+
application/json:
|
|
324
|
+
schema:
|
|
325
|
+
$ref: "#/components/schemas/TemporaryTable"
|
|
326
|
+
401:
|
|
327
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
328
|
+
404:
|
|
329
|
+
$ref: "#/components/responses/NotFoundError"
|
|
330
|
+
500:
|
|
331
|
+
$ref: "#/components/responses/InternalServerError"
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
/projects/{projectName}/packages:
|
|
335
|
+
get:
|
|
336
|
+
tags:
|
|
337
|
+
- packages
|
|
338
|
+
operationId: list-packages
|
|
339
|
+
summary:
|
|
340
|
+
Returns a list of the Packages hosted on this server.
|
|
341
|
+
parameters:
|
|
342
|
+
- name: projectName
|
|
343
|
+
in: path
|
|
344
|
+
description: Name of project
|
|
345
|
+
required: true
|
|
346
|
+
schema:
|
|
347
|
+
type: string
|
|
348
|
+
responses:
|
|
349
|
+
200:
|
|
350
|
+
description:
|
|
351
|
+
A list of the Packages names.
|
|
352
|
+
content:
|
|
353
|
+
application/json:
|
|
354
|
+
schema:
|
|
355
|
+
type: array
|
|
356
|
+
items:
|
|
357
|
+
$ref: "#/components/schemas/Package"
|
|
358
|
+
401:
|
|
359
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
360
|
+
500:
|
|
361
|
+
$ref: "#/components/responses/InternalServerError"
|
|
362
|
+
501:
|
|
363
|
+
$ref: "#/components/responses/NotImplementedError"
|
|
364
|
+
|
|
365
|
+
/projects/{projectName}/packages/{packageName}:
|
|
366
|
+
get:
|
|
367
|
+
tags:
|
|
368
|
+
- packages
|
|
369
|
+
operationId: get-package
|
|
370
|
+
summary:
|
|
371
|
+
Returns the package metadata.
|
|
372
|
+
parameters:
|
|
373
|
+
- name: projectName
|
|
374
|
+
in: path
|
|
375
|
+
description: Name of project
|
|
376
|
+
required: true
|
|
377
|
+
schema:
|
|
378
|
+
type: string
|
|
379
|
+
- name: packageName
|
|
380
|
+
in: path
|
|
381
|
+
description: Package name
|
|
382
|
+
required: true
|
|
383
|
+
schema:
|
|
384
|
+
type: string
|
|
385
|
+
- name: versionId
|
|
386
|
+
in: query
|
|
387
|
+
description: Version ID
|
|
388
|
+
required: false
|
|
389
|
+
schema:
|
|
390
|
+
type: string
|
|
391
|
+
responses:
|
|
392
|
+
200:
|
|
393
|
+
description:
|
|
394
|
+
Package metadata.
|
|
395
|
+
content:
|
|
396
|
+
application/json:
|
|
397
|
+
schema:
|
|
398
|
+
$ref: "#/components/schemas/Package"
|
|
399
|
+
401:
|
|
400
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
401
|
+
404:
|
|
402
|
+
$ref: "#/components/responses/NotFoundError"
|
|
403
|
+
500:
|
|
404
|
+
$ref: "#/components/responses/InternalServerError"
|
|
405
|
+
501:
|
|
406
|
+
$ref: "#/components/responses/NotImplementedError"
|
|
407
|
+
|
|
408
|
+
/projects/{projectName}/packages/{packageName}/models:
|
|
409
|
+
get:
|
|
410
|
+
tags:
|
|
411
|
+
- models
|
|
412
|
+
operationId: list-models
|
|
413
|
+
summary:
|
|
414
|
+
Returns a list of relative paths to the models in the package.
|
|
415
|
+
parameters:
|
|
416
|
+
- name: projectName
|
|
417
|
+
in: path
|
|
418
|
+
description: Name of project
|
|
419
|
+
required: true
|
|
420
|
+
schema:
|
|
421
|
+
type: string
|
|
422
|
+
- name: packageName
|
|
423
|
+
in: path
|
|
424
|
+
description: Name of package
|
|
425
|
+
required: true
|
|
426
|
+
schema:
|
|
427
|
+
type: string
|
|
428
|
+
- name: versionId
|
|
429
|
+
in: query
|
|
430
|
+
description: Version ID
|
|
431
|
+
required: false
|
|
432
|
+
schema:
|
|
433
|
+
type: string
|
|
434
|
+
responses:
|
|
435
|
+
200:
|
|
436
|
+
description:
|
|
437
|
+
A list of relative paths to the models in the package.
|
|
438
|
+
content:
|
|
439
|
+
application/json:
|
|
440
|
+
schema:
|
|
441
|
+
type: array
|
|
442
|
+
items:
|
|
443
|
+
$ref: "#/components/schemas/Model"
|
|
444
|
+
401:
|
|
445
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
446
|
+
404:
|
|
447
|
+
$ref: "#/components/responses/NotFoundError"
|
|
448
|
+
500:
|
|
449
|
+
$ref: "#/components/responses/InternalServerError"
|
|
450
|
+
501:
|
|
451
|
+
$ref: "#/components/responses/NotImplementedError"
|
|
452
|
+
|
|
453
|
+
/projects/{projectName}/packages/{packageName}/models/{path}:
|
|
454
|
+
get:
|
|
455
|
+
tags:
|
|
456
|
+
- models
|
|
457
|
+
operationId: get-model
|
|
458
|
+
summary:
|
|
459
|
+
Returns a Malloy model.
|
|
460
|
+
parameters:
|
|
461
|
+
- name: projectName
|
|
462
|
+
in: path
|
|
463
|
+
description: Name of project
|
|
464
|
+
required: true
|
|
465
|
+
schema:
|
|
466
|
+
type: string
|
|
467
|
+
- name: packageName
|
|
468
|
+
in: path
|
|
469
|
+
description: Name of package.
|
|
470
|
+
required: true
|
|
471
|
+
schema:
|
|
472
|
+
type: string
|
|
473
|
+
- name: path
|
|
474
|
+
in: path
|
|
475
|
+
description: Path to model wihin the package.
|
|
476
|
+
required: true
|
|
477
|
+
schema:
|
|
478
|
+
type: string
|
|
479
|
+
- name: versionId
|
|
480
|
+
in: query
|
|
481
|
+
description: Version ID
|
|
482
|
+
required: false
|
|
483
|
+
schema:
|
|
484
|
+
type: string
|
|
485
|
+
responses:
|
|
486
|
+
200:
|
|
487
|
+
description:
|
|
488
|
+
A Malloy model.
|
|
489
|
+
content:
|
|
490
|
+
"application/json":
|
|
491
|
+
schema:
|
|
492
|
+
$ref: "#/components/schemas/CompiledModel"
|
|
493
|
+
401:
|
|
494
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
495
|
+
404:
|
|
496
|
+
$ref: "#/components/responses/NotFoundError"
|
|
497
|
+
500:
|
|
498
|
+
$ref: "#/components/responses/InternalServerError"
|
|
499
|
+
501:
|
|
500
|
+
$ref: "#/components/responses/NotImplementedError"
|
|
501
|
+
|
|
502
|
+
/projects/{projectName}/packages/{packageName}/queryResults/{path}:
|
|
503
|
+
get:
|
|
504
|
+
tags:
|
|
505
|
+
- queryresults
|
|
506
|
+
operationId: execute-query
|
|
507
|
+
summary:
|
|
508
|
+
Returns a query and its results.
|
|
509
|
+
parameters:
|
|
510
|
+
- name: projectName
|
|
511
|
+
in: path
|
|
512
|
+
description: Name of project
|
|
513
|
+
required: true
|
|
514
|
+
schema:
|
|
515
|
+
type: string
|
|
516
|
+
- name: packageName
|
|
517
|
+
in: path
|
|
518
|
+
description: Name of package
|
|
519
|
+
required: true
|
|
520
|
+
schema:
|
|
521
|
+
type: string
|
|
522
|
+
- name: path
|
|
523
|
+
in: path
|
|
524
|
+
description: Path to model within the package.
|
|
525
|
+
required: true
|
|
526
|
+
schema:
|
|
527
|
+
type: string
|
|
528
|
+
- in: query
|
|
529
|
+
name: query
|
|
530
|
+
description:
|
|
531
|
+
Query string to execute on the model. If the query is paramter is set, the queryName parameter must be empty.
|
|
532
|
+
required: false
|
|
533
|
+
schema:
|
|
534
|
+
type: string
|
|
535
|
+
- in: query
|
|
536
|
+
name: sourceName
|
|
537
|
+
description: Name of the source in the model to use for queryName, search, and topValue requests.
|
|
538
|
+
required: false
|
|
539
|
+
schema:
|
|
540
|
+
type: string
|
|
541
|
+
- in: query
|
|
542
|
+
name: queryName
|
|
543
|
+
description: Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName is paramter is set, the query parameter must be empty.
|
|
544
|
+
required: false
|
|
545
|
+
schema:
|
|
546
|
+
type: string
|
|
547
|
+
- in: query
|
|
548
|
+
name: versionId
|
|
549
|
+
description: Version ID
|
|
550
|
+
required: false
|
|
551
|
+
schema:
|
|
552
|
+
type: string
|
|
553
|
+
responses:
|
|
554
|
+
200:
|
|
555
|
+
description:
|
|
556
|
+
A query and its results.
|
|
557
|
+
content:
|
|
558
|
+
"application/json":
|
|
559
|
+
schema:
|
|
560
|
+
$ref: "#/components/schemas/QueryResult"
|
|
561
|
+
400:
|
|
562
|
+
$ref: "#/components/responses/BadRequestError"
|
|
563
|
+
401:
|
|
564
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
565
|
+
404:
|
|
566
|
+
$ref: "#/components/responses/NotFoundError"
|
|
567
|
+
500:
|
|
568
|
+
$ref: "#/components/responses/InternalServerError"
|
|
569
|
+
501:
|
|
570
|
+
$ref: "#/components/responses/NotImplementedError"
|
|
571
|
+
|
|
572
|
+
/projects/{projectName}/packages/{packageName}/databases:
|
|
573
|
+
get:
|
|
574
|
+
tags:
|
|
575
|
+
- databases
|
|
576
|
+
operationId: list-databases
|
|
577
|
+
summary:
|
|
578
|
+
Returns a list of relative paths to the databases embedded in the package.
|
|
579
|
+
parameters:
|
|
580
|
+
- name: projectName
|
|
581
|
+
in: path
|
|
582
|
+
description: Name of project
|
|
583
|
+
required: true
|
|
584
|
+
schema:
|
|
585
|
+
type: string
|
|
586
|
+
- name: packageName
|
|
587
|
+
in: path
|
|
588
|
+
description: Name of package
|
|
589
|
+
required: true
|
|
590
|
+
schema:
|
|
591
|
+
type: string
|
|
592
|
+
- name: versionId
|
|
593
|
+
in: query
|
|
594
|
+
description: Version ID
|
|
595
|
+
required: false
|
|
596
|
+
schema:
|
|
597
|
+
type: string
|
|
598
|
+
responses:
|
|
599
|
+
200:
|
|
600
|
+
description:
|
|
601
|
+
A list of relative paths to the databases embedded in the package.
|
|
602
|
+
content:
|
|
603
|
+
application/json:
|
|
604
|
+
schema:
|
|
605
|
+
type: array
|
|
606
|
+
items:
|
|
607
|
+
$ref: "#/components/schemas/Database"
|
|
608
|
+
401:
|
|
609
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
610
|
+
404:
|
|
611
|
+
$ref: "#/components/responses/NotFoundError"
|
|
612
|
+
500:
|
|
613
|
+
$ref: "#/components/responses/InternalServerError"
|
|
614
|
+
501:
|
|
615
|
+
$ref: "#/components/responses/NotImplementedError"
|
|
616
|
+
|
|
617
|
+
/projects/{projectName}/packages/{packageName}/schedules:
|
|
618
|
+
get:
|
|
619
|
+
tags:
|
|
620
|
+
- schedules
|
|
621
|
+
operationId: list-schedules
|
|
622
|
+
summary:
|
|
623
|
+
Returns a list of running schedules.
|
|
624
|
+
parameters:
|
|
625
|
+
- name: projectName
|
|
626
|
+
in: path
|
|
627
|
+
description: Name of project
|
|
628
|
+
required: true
|
|
629
|
+
schema:
|
|
630
|
+
type: string
|
|
631
|
+
- name: packageName
|
|
632
|
+
in: path
|
|
633
|
+
description: Name of package
|
|
634
|
+
required: true
|
|
635
|
+
schema:
|
|
636
|
+
type: string
|
|
637
|
+
- name: versionId
|
|
638
|
+
in: query
|
|
639
|
+
description: Version ID
|
|
640
|
+
required: false
|
|
641
|
+
schema:
|
|
642
|
+
type: string
|
|
643
|
+
responses:
|
|
644
|
+
200:
|
|
645
|
+
description:
|
|
646
|
+
A list of running schedules.
|
|
647
|
+
content:
|
|
648
|
+
application/json:
|
|
649
|
+
schema:
|
|
650
|
+
type: array
|
|
651
|
+
items:
|
|
652
|
+
$ref: "#/components/schemas/Schedule"
|
|
653
|
+
401:
|
|
654
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
655
|
+
404:
|
|
656
|
+
$ref: "#/components/responses/NotFoundError"
|
|
657
|
+
500:
|
|
658
|
+
$ref: "#/components/responses/InternalServerError"
|
|
659
|
+
501:
|
|
660
|
+
$ref: "#/components/responses/NotImplementedError"
|
|
661
|
+
|
|
662
|
+
components:
|
|
663
|
+
responses:
|
|
664
|
+
InternalServerError:
|
|
665
|
+
description: The server encountered an internal error
|
|
666
|
+
content:
|
|
667
|
+
application/json:
|
|
668
|
+
schema:
|
|
669
|
+
$ref: "#/components/schemas/Error"
|
|
670
|
+
NotFoundError:
|
|
671
|
+
description: The specified resource was not found
|
|
672
|
+
content:
|
|
673
|
+
application/json:
|
|
674
|
+
schema:
|
|
675
|
+
$ref: "#/components/schemas/Error"
|
|
676
|
+
NotImplementedError:
|
|
677
|
+
description: Not implemented
|
|
678
|
+
content:
|
|
679
|
+
application/json:
|
|
680
|
+
schema:
|
|
681
|
+
$ref: "#/components/schemas/Error"
|
|
682
|
+
UnauthorizedError:
|
|
683
|
+
description: Unauthorized
|
|
684
|
+
content:
|
|
685
|
+
application/json:
|
|
686
|
+
schema:
|
|
687
|
+
$ref: "#/components/schemas/Error"
|
|
688
|
+
BadRequestError:
|
|
689
|
+
description: Bad request
|
|
690
|
+
content:
|
|
691
|
+
application/json:
|
|
692
|
+
schema:
|
|
693
|
+
$ref: "#/components/schemas/Error"
|
|
694
|
+
|
|
695
|
+
schemas:
|
|
696
|
+
About:
|
|
697
|
+
type: object
|
|
698
|
+
properties:
|
|
699
|
+
readme:
|
|
700
|
+
type: string
|
|
701
|
+
description: Readme markdown.
|
|
702
|
+
|
|
703
|
+
Project:
|
|
704
|
+
type: object
|
|
705
|
+
properties:
|
|
706
|
+
name:
|
|
707
|
+
type: string
|
|
708
|
+
description: Project name.
|
|
709
|
+
|
|
710
|
+
Package:
|
|
711
|
+
type: object
|
|
712
|
+
properties:
|
|
713
|
+
name:
|
|
714
|
+
type: string
|
|
715
|
+
description: Package name.
|
|
716
|
+
description:
|
|
717
|
+
type: string
|
|
718
|
+
description: Package description.
|
|
719
|
+
|
|
720
|
+
Model:
|
|
721
|
+
type: object
|
|
722
|
+
description: Malloy model def and result data. Malloy model def and result data is Malloy version depdendent.
|
|
723
|
+
properties:
|
|
724
|
+
packageName:
|
|
725
|
+
type: string
|
|
726
|
+
description: Model's package Name
|
|
727
|
+
path:
|
|
728
|
+
type: string
|
|
729
|
+
description: Model's relative path in its package directory.
|
|
730
|
+
type:
|
|
731
|
+
type: string
|
|
732
|
+
enum: ["source", "notebook"]
|
|
733
|
+
description: Type of malloy model file -- source file or notebook file.
|
|
734
|
+
|
|
735
|
+
CompiledModel:
|
|
736
|
+
type: object
|
|
737
|
+
description: Malloy model def and result data. Malloy model def and result data is Malloy version depdendent.
|
|
738
|
+
properties:
|
|
739
|
+
packageName:
|
|
740
|
+
type: string
|
|
741
|
+
description: Model's package Name
|
|
742
|
+
path:
|
|
743
|
+
type: string
|
|
744
|
+
description: Model's relative path in its package directory.
|
|
745
|
+
type:
|
|
746
|
+
type: string
|
|
747
|
+
enum: ["source", "notebook"]
|
|
748
|
+
description: Type of malloy model file -- source file or notebook file.
|
|
749
|
+
malloyVersion:
|
|
750
|
+
type: string
|
|
751
|
+
description: Version of the Malloy compiler that generated the model def and results fields.
|
|
752
|
+
# Pass data styles as an opaque JSON string that is malloyVersion depdendent.
|
|
753
|
+
dataStyles:
|
|
754
|
+
type: string
|
|
755
|
+
description: Data style for rendering query results.
|
|
756
|
+
# Pass model def as an opaque JSON string that is malloyVersion depdendent.
|
|
757
|
+
modelDef:
|
|
758
|
+
type: string
|
|
759
|
+
description: Malloy model def.
|
|
760
|
+
sources:
|
|
761
|
+
type: array
|
|
762
|
+
description: Array of model sources.
|
|
763
|
+
items:
|
|
764
|
+
$ref: "#/components/schemas/Source"
|
|
765
|
+
queries:
|
|
766
|
+
type: array
|
|
767
|
+
descript: Array of named queries.
|
|
768
|
+
items:
|
|
769
|
+
$ref: "#/components/schemas/Query"
|
|
770
|
+
notebookCells:
|
|
771
|
+
type: array
|
|
772
|
+
description: Array of notebook cells.
|
|
773
|
+
items:
|
|
774
|
+
$ref: "#/components/schemas/NotebookCell"
|
|
775
|
+
|
|
776
|
+
Source:
|
|
777
|
+
type: object
|
|
778
|
+
description: Model source.
|
|
779
|
+
properties:
|
|
780
|
+
name:
|
|
781
|
+
type: string
|
|
782
|
+
description: Source's name.
|
|
783
|
+
annotations:
|
|
784
|
+
type: array
|
|
785
|
+
description: Annotations attached to source.
|
|
786
|
+
items:
|
|
787
|
+
type: string
|
|
788
|
+
views:
|
|
789
|
+
type: array
|
|
790
|
+
description: List of views in the source.\
|
|
791
|
+
items:
|
|
792
|
+
$ref: "#/components/schemas/View"
|
|
793
|
+
|
|
794
|
+
View:
|
|
795
|
+
type: object
|
|
796
|
+
description: Named model view.
|
|
797
|
+
properties:
|
|
798
|
+
name:
|
|
799
|
+
type: string
|
|
800
|
+
description: View's name.
|
|
801
|
+
annotations:
|
|
802
|
+
type: array
|
|
803
|
+
description: Annotations attached to view.
|
|
804
|
+
items:
|
|
805
|
+
type: string
|
|
806
|
+
|
|
807
|
+
Query:
|
|
808
|
+
type: object
|
|
809
|
+
description: Named model query.
|
|
810
|
+
properties:
|
|
811
|
+
name:
|
|
812
|
+
type: string
|
|
813
|
+
description: Query's name.
|
|
814
|
+
annotations:
|
|
815
|
+
type: array
|
|
816
|
+
description: Annotations attached to query.
|
|
817
|
+
items:
|
|
818
|
+
type: string
|
|
819
|
+
|
|
820
|
+
NotebookCell:
|
|
821
|
+
type: object
|
|
822
|
+
description: Notebook cell.
|
|
823
|
+
properties:
|
|
824
|
+
type:
|
|
825
|
+
type: string
|
|
826
|
+
enum: ["markdown", "code"]
|
|
827
|
+
description: Type of notebook cell.
|
|
828
|
+
text:
|
|
829
|
+
type: string
|
|
830
|
+
description: Text contents of the notebook cell.
|
|
831
|
+
queryName:
|
|
832
|
+
type: string
|
|
833
|
+
description: Name of query, if this is a named query. Otherwise, empty.
|
|
834
|
+
# Pass data styles as an opaque JSON string that is malloyVersion depdendent.
|
|
835
|
+
queryResult:
|
|
836
|
+
type: string
|
|
837
|
+
description: Malloy query results. Populated only if a code cell.
|
|
838
|
+
|
|
839
|
+
QueryResult:
|
|
840
|
+
type: object
|
|
841
|
+
description: A Malloy query's results, its model def, and its data styles.
|
|
842
|
+
properties:
|
|
843
|
+
# Pass data styles as an opaque JSON string that is malloyVersion depdendent.
|
|
844
|
+
dataStyles:
|
|
845
|
+
type: string
|
|
846
|
+
description: Data style for rendering query results.
|
|
847
|
+
# Pass model def as an opaque JSON string that is malloyVersion depdendent.
|
|
848
|
+
modelDef:
|
|
849
|
+
type: string
|
|
850
|
+
description: Malloy model def.
|
|
851
|
+
# Pass data styles as an opaque JSON string that is malloyVersion depdendent.
|
|
852
|
+
queryResult:
|
|
853
|
+
type: string
|
|
854
|
+
description: Malloy query results. Populated only if a code cell.
|
|
855
|
+
|
|
856
|
+
Database:
|
|
857
|
+
type: object
|
|
858
|
+
description: An in-memory DuckDB database embedded in the package.
|
|
859
|
+
properties:
|
|
860
|
+
path:
|
|
861
|
+
type: string
|
|
862
|
+
description: Database's relative path in its package directory.
|
|
863
|
+
size:
|
|
864
|
+
type: integer
|
|
865
|
+
description: Size of the embedded database in bytes.
|
|
866
|
+
type:
|
|
867
|
+
type: string
|
|
868
|
+
enum: ["embedded", "materialized"]
|
|
869
|
+
description: Type of database.
|
|
870
|
+
|
|
871
|
+
Schedule:
|
|
872
|
+
type: object
|
|
873
|
+
description: A scheduled task.
|
|
874
|
+
properties:
|
|
875
|
+
resource:
|
|
876
|
+
type: string
|
|
877
|
+
description: Resource in the package that the schedule is attached to.
|
|
878
|
+
schedule:
|
|
879
|
+
type: string
|
|
880
|
+
description: Schedule (cron format) for executing task.
|
|
881
|
+
action:
|
|
882
|
+
type: string
|
|
883
|
+
description: Action to execute.
|
|
884
|
+
connection:
|
|
885
|
+
type: string
|
|
886
|
+
description: Connection to perform action on.
|
|
887
|
+
lastRunTime:
|
|
888
|
+
type: number
|
|
889
|
+
description: Timestamp in milliseconds of the last run.
|
|
890
|
+
lastRunStatus:
|
|
891
|
+
type: string
|
|
892
|
+
description: Status of the last run.
|
|
893
|
+
|
|
894
|
+
Connection:
|
|
895
|
+
type: object
|
|
896
|
+
properties:
|
|
897
|
+
name:
|
|
898
|
+
type: string
|
|
899
|
+
type:
|
|
900
|
+
type: string
|
|
901
|
+
enum: [postgres, bigquery, snowflake, trino]
|
|
902
|
+
attributes:
|
|
903
|
+
$ref: "#/components/schemas/ConnectionAttributes"
|
|
904
|
+
postgresConnection:
|
|
905
|
+
$ref: "#/components/schemas/PostgresConnection"
|
|
906
|
+
bigqueryConnection:
|
|
907
|
+
$ref: "#/components/schemas/BigqueryConnection"
|
|
908
|
+
snowflakeConnection:
|
|
909
|
+
$ref: "#/components/schemas/SnowflakeConnection"
|
|
910
|
+
trinoConnection:
|
|
911
|
+
$ref: "#/components/schemas/TrinoConnection"
|
|
912
|
+
|
|
913
|
+
ConnectionAttributes:
|
|
914
|
+
type: object
|
|
915
|
+
properties:
|
|
916
|
+
dialectName:
|
|
917
|
+
type: string
|
|
918
|
+
isPool:
|
|
919
|
+
type: boolean
|
|
920
|
+
canPersist:
|
|
921
|
+
type: boolean
|
|
922
|
+
canStream:
|
|
923
|
+
type: boolean
|
|
924
|
+
|
|
925
|
+
PostgresConnection:
|
|
926
|
+
type: object
|
|
927
|
+
properties:
|
|
928
|
+
host:
|
|
929
|
+
type: string
|
|
930
|
+
port:
|
|
931
|
+
type: integer
|
|
932
|
+
databaseName:
|
|
933
|
+
type: string
|
|
934
|
+
userName:
|
|
935
|
+
type: string
|
|
936
|
+
password:
|
|
937
|
+
type: string
|
|
938
|
+
connectionString:
|
|
939
|
+
type: string
|
|
940
|
+
|
|
941
|
+
BigqueryConnection:
|
|
942
|
+
type: object
|
|
943
|
+
properties:
|
|
944
|
+
defaultProjectId:
|
|
945
|
+
type: string
|
|
946
|
+
billingProjectId:
|
|
947
|
+
type: string
|
|
948
|
+
location:
|
|
949
|
+
type: string
|
|
950
|
+
serviceAccountKeyJson:
|
|
951
|
+
type: string
|
|
952
|
+
maximumBytesBilled:
|
|
953
|
+
type: string
|
|
954
|
+
queryTimeoutMilliseconds:
|
|
955
|
+
type: string
|
|
956
|
+
|
|
957
|
+
SnowflakeConnection:
|
|
958
|
+
type: object
|
|
959
|
+
properties:
|
|
960
|
+
account:
|
|
961
|
+
type: string
|
|
962
|
+
username:
|
|
963
|
+
type: string
|
|
964
|
+
password:
|
|
965
|
+
type: string
|
|
966
|
+
warehouse:
|
|
967
|
+
type: string
|
|
968
|
+
database:
|
|
969
|
+
type: string
|
|
970
|
+
schema:
|
|
971
|
+
type: string
|
|
972
|
+
responseTimeoutMilliseconds:
|
|
973
|
+
type: integer
|
|
974
|
+
|
|
975
|
+
TrinoConnection:
|
|
976
|
+
type: object
|
|
977
|
+
properties:
|
|
978
|
+
server:
|
|
979
|
+
type: string
|
|
980
|
+
port:
|
|
981
|
+
type: number
|
|
982
|
+
catalog:
|
|
983
|
+
type: string
|
|
984
|
+
schema:
|
|
985
|
+
type: string
|
|
986
|
+
user:
|
|
987
|
+
type: string
|
|
988
|
+
password:
|
|
989
|
+
type: string
|
|
990
|
+
|
|
991
|
+
SqlSource:
|
|
992
|
+
type: object
|
|
993
|
+
properties:
|
|
994
|
+
# Pass source as an opaque JSON string that is malloyVersion depdendent.
|
|
995
|
+
source:
|
|
996
|
+
type: string
|
|
997
|
+
|
|
998
|
+
TableSource:
|
|
999
|
+
type: object
|
|
1000
|
+
properties:
|
|
1001
|
+
# Pass source as an opaque JSON string that is malloyVersion depdendent.
|
|
1002
|
+
source:
|
|
1003
|
+
type: string
|
|
1004
|
+
|
|
1005
|
+
TemporaryTable:
|
|
1006
|
+
type: object
|
|
1007
|
+
properties:
|
|
1008
|
+
# Pass table as an opaque JSON string that is malloyVersion depdendent.
|
|
1009
|
+
table:
|
|
1010
|
+
type: string
|
|
1011
|
+
|
|
1012
|
+
QueryData:
|
|
1013
|
+
type: object
|
|
1014
|
+
properties:
|
|
1015
|
+
# Pass result as an opaque JSON string that is malloyVersion depdendent.
|
|
1016
|
+
data:
|
|
1017
|
+
type: string
|
|
1018
|
+
|
|
1019
|
+
Error:
|
|
1020
|
+
type: object
|
|
1021
|
+
properties:
|
|
1022
|
+
code:
|
|
1023
|
+
type: string
|
|
1024
|
+
message:
|
|
1025
|
+
type: string
|
|
1026
|
+
|