@malloy-publisher/app 0.17.0 → 0.17.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/dist/api-doc.yaml +169 -613
- package/dist/assets/{EnvironmentPage-D2-0ts2G.js → EnvironmentPage-DF2PahCR.js} +1 -1
- package/dist/assets/{HomePage-S_Bkczsx.js → HomePage-DIYlgPCz.js} +1 -1
- package/dist/assets/{MainPage-DEy4SyjJ.js → MainPage-C7PGAA5k.js} +1 -1
- package/dist/assets/ModelPage-BMoBnrW7.js +2 -0
- package/dist/assets/PackagePage-DD2vLSFe.js +1 -0
- package/dist/assets/{PackageSplatRoute-ChFCJOWE.js → PackageSplatRoute-BYIMwnLL.js} +2 -2
- package/dist/assets/{RenderedResult-BcEDcw0V.es-BD6PNbt6.js → RenderedResult-CYJ2Y9Fm.es-C8nokn71.js} +7 -7
- package/dist/assets/{RouteError-CDSSYdLB.js → RouteError-B8dE60Vs.js} +1 -1
- package/dist/assets/{ThemeEditorPage-DO2JWYOR.js → ThemeEditorPage-D0wf74fh.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BylAiUaK.js → ToggleButtonGroup-CX0_J2zR.js} +1 -1
- package/dist/assets/{documentRoutes-CaOt2rpR.js → documentRoutes-DgSMAc0m.js} +1 -1
- package/dist/assets/{editPageMounted-79YCIKgP.js → editPageMounted-BUGVg-_g.js} +2 -2
- package/dist/assets/{index-BOCBPBsi.js → index-BQL8UUcK.js} +1 -1
- package/dist/assets/{index-CPSEdm5f.js → index-BiOT4K_d.js} +1 -1
- package/dist/assets/{index-keJ8KKBp.js → index-DAQjZOAL.js} +1 -1
- package/dist/assets/index-DRkw60sj.js +512 -0
- package/dist/assets/{index.es-DTreXoC5.js → index.es-DgNl8IqU.js} +20 -20
- package/dist/assets/usePackageLinkNavigate-bHr_AFYo.js +1 -0
- package/dist/assets/{usePackageRoute-G6fA1__J.js → usePackageRoute-BhB6txS6.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/mcp-app/report.js +2683 -757
- package/package.json +2 -2
- package/dist/assets/ModelPage-BVHjDM-u.js +0 -2
- package/dist/assets/PackagePage-Cbrg7o1X.js +0 -1
- package/dist/assets/index-BKjEX4_C.js +0 -512
- package/dist/assets/usePackageLinkNavigate-BfSAqkJS.js +0 -1
package/dist/api-doc.yaml
CHANGED
|
@@ -13,7 +13,7 @@ info:
|
|
|
13
13
|
## Key Features
|
|
14
14
|
|
|
15
15
|
- **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains
|
|
16
|
-
- **Query Execution**: Run queries against models
|
|
16
|
+
- **Query Execution**: Run queries against models and compile-check Malloy without running it
|
|
17
17
|
- **Data Apps**: In-package HTML data apps served from a package's `public/` directory
|
|
18
18
|
- **Materializations**: Persist Malloy sources as tables, on a schedule or on demand
|
|
19
19
|
- **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables
|
|
@@ -32,7 +32,7 @@ info:
|
|
|
32
32
|
└── Packages
|
|
33
33
|
├── Versions published, immutable versions and `latest`
|
|
34
34
|
├── Models query and compile
|
|
35
|
-
├──
|
|
35
|
+
├── Reports dashboards and notebooks, run as model queries
|
|
36
36
|
├── Data Apps static HTML data apps from public/
|
|
37
37
|
├── Databases embedded data files
|
|
38
38
|
├── Materializations persisted sources
|
|
@@ -71,10 +71,6 @@ tags:
|
|
|
71
71
|
Reports - any `.malloy` file in a package carrying an artifact tag,
|
|
72
72
|
wherever it lives, with a linear or grid layout - their listing,
|
|
73
73
|
manifests, and cells
|
|
74
|
-
- name: notebooks
|
|
75
|
-
description: Deprecated aliases for the linear reports. Use the `reports` routes.
|
|
76
|
-
- name: dashboards
|
|
77
|
-
description: Deprecated aliases for the grid reports. Use the `reports` routes.
|
|
78
74
|
- name: data-apps
|
|
79
75
|
description:
|
|
80
76
|
In-package HTML data apps (static pages served from a package's public/
|
|
@@ -2656,8 +2652,9 @@ paths:
|
|
|
2656
2652
|
`startingGivens`, `autorun`, `givens`): its tiles run through the model
|
|
2657
2653
|
query endpoint with `givens`, using `path` as the model. A
|
|
2658
2654
|
`.malloynb`, the one cell format left, carries `notebook` instead: its
|
|
2659
|
-
cells
|
|
2660
|
-
|
|
2655
|
+
cells and model. Its code cells run through the same model query
|
|
2656
|
+
endpoint, using `path` as the model, where every cell compiles into one
|
|
2657
|
+
model, so a cell's imports and declarations are in scope.
|
|
2661
2658
|
parameters:
|
|
2662
2659
|
- name: environmentName
|
|
2663
2660
|
in: path
|
|
@@ -3275,398 +3272,6 @@ paths:
|
|
|
3275
3272
|
"503":
|
|
3276
3273
|
$ref: "#/components/responses/ServiceUnavailable"
|
|
3277
3274
|
|
|
3278
|
-
# ── DEPRECATED ──────────────────────────────────────────────────────────
|
|
3279
|
-
# The `…/dashboards*` and `…/notebooks*` routes, kept for clients that still
|
|
3280
|
-
# read them, until a later release removes them. Use `…/reports*` above.
|
|
3281
|
-
# Their schemas (`Dashboard`, `DashboardManifest`, `DashboardTile`,
|
|
3282
|
-
# `Notebook`, `RawNotebook`) are in the deprecated section of the schemas;
|
|
3283
|
-
# no report schema references them.
|
|
3284
|
-
/environments/{environmentName}/packages/{packageName}/dashboards:
|
|
3285
|
-
get:
|
|
3286
|
-
tags:
|
|
3287
|
-
- dashboards
|
|
3288
|
-
operationId: list-dashboards
|
|
3289
|
-
deprecated: true
|
|
3290
|
-
summary: List package dashboards (deprecated; use list-reports)
|
|
3291
|
-
description: |
|
|
3292
|
-
**DEPRECATED**: use list-reports, which lists every report of either
|
|
3293
|
-
layout by path. This route lists the package's grid reports (see
|
|
3294
|
-
list-reports for what makes a file a report and which layout it has),
|
|
3295
|
-
wherever they live in the package. Two may share a `name`; their `path`
|
|
3296
|
-
tells them apart. A file with no artifact tag is an ordinary model and is
|
|
3297
|
-
not listed, whether or not it compiles.
|
|
3298
|
-
|
|
3299
|
-
**Contract change since reports.** This route used to list only
|
|
3300
|
-
`.malloy` files directly under `dashboards/`, so every `name` was unique
|
|
3301
|
-
and every `path` was `dashboards/<name>.malloy`. It now lists grid
|
|
3302
|
-
reports from anywhere in the package (`sales/q3.malloy`,
|
|
3303
|
-
`notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and
|
|
3304
|
-
`name` may repeat. Key on `path`.
|
|
3305
|
-
|
|
3306
|
-
A tagged dashboard that failed to compile is listed carrying its
|
|
3307
|
-
`error` where that state can arise at all, so a broken dashboard is
|
|
3308
|
-
visibly broken rather than silently absent. In practice it rarely does:
|
|
3309
|
-
a package whose model fails to compile is not loaded, and a reload that
|
|
3310
|
-
would break one is refused and leaves the previously loaded package
|
|
3311
|
-
serving, so `error` is only reachable on the paths that keep per-model
|
|
3312
|
-
placeholders. Treat it as present-but-uncommon rather than the normal
|
|
3313
|
-
way a broken dashboard surfaces.
|
|
3314
|
-
|
|
3315
|
-
Every tagged dashboard is listed, whatever the package's surface. To
|
|
3316
|
-
hide one, remove its `# artifact` tag. On a package with a surface (a
|
|
3317
|
-
root `index.malloy`, or a legacy `explores`) with `queryableSources`
|
|
3318
|
-
left at `"declared"`, a dashboard's tiles, its single query and its
|
|
3319
|
-
filter `suggest` queries may read only sources the surface exports. A
|
|
3320
|
-
source the dashboard declares on top of a surface source may be read;
|
|
3321
|
-
one over a hidden source may not. The dashboard file's own
|
|
3322
|
-
`export {}` and named queries add nothing to the surface. A tile over a
|
|
3323
|
-
hidden source answers 404 when it runs, and the package's `warnings`
|
|
3324
|
-
report each such tile, single query and suggest, with severity
|
|
3325
|
-
`error`, as of the last load, naming the source and the fix. Under
|
|
3326
|
-
`"all"` nothing is refused, so the situation does not arise.
|
|
3327
|
-
parameters:
|
|
3328
|
-
- name: environmentName
|
|
3329
|
-
in: path
|
|
3330
|
-
description: Name of the environment
|
|
3331
|
-
required: true
|
|
3332
|
-
schema:
|
|
3333
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3334
|
-
- name: packageName
|
|
3335
|
-
in: path
|
|
3336
|
-
description: Name of the package
|
|
3337
|
-
required: true
|
|
3338
|
-
schema:
|
|
3339
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3340
|
-
- $ref: "#/components/parameters/versionId"
|
|
3341
|
-
responses:
|
|
3342
|
-
"200":
|
|
3343
|
-
description: A list of dashboards in the package
|
|
3344
|
-
content:
|
|
3345
|
-
application/json:
|
|
3346
|
-
schema:
|
|
3347
|
-
type: array
|
|
3348
|
-
items:
|
|
3349
|
-
$ref: "#/components/schemas/Dashboard"
|
|
3350
|
-
"400":
|
|
3351
|
-
$ref: "#/components/responses/BadRequest"
|
|
3352
|
-
"401":
|
|
3353
|
-
$ref: "#/components/responses/Unauthorized"
|
|
3354
|
-
"404":
|
|
3355
|
-
$ref: "#/components/responses/NotFound"
|
|
3356
|
-
"410":
|
|
3357
|
-
$ref: "#/components/responses/Gone"
|
|
3358
|
-
"500":
|
|
3359
|
-
$ref: "#/components/responses/InternalServerError"
|
|
3360
|
-
"503":
|
|
3361
|
-
$ref: "#/components/responses/ServiceUnavailable"
|
|
3362
|
-
|
|
3363
|
-
/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}:
|
|
3364
|
-
get:
|
|
3365
|
-
tags:
|
|
3366
|
-
- dashboards
|
|
3367
|
-
operationId: get-dashboard
|
|
3368
|
-
deprecated: true
|
|
3369
|
-
summary: Get a dashboard manifest (deprecated; use get-report)
|
|
3370
|
-
description: |
|
|
3371
|
-
**DEPRECATED**: use get-report, which addresses a report by its path.
|
|
3372
|
-
Retrieves everything a viewer needs to render one grid report: the
|
|
3373
|
-
artifact tag's declarations plus the control contract derived from the
|
|
3374
|
-
givens its query references. Running it needs no further endpoint — its
|
|
3375
|
-
query, each tile, and each control's suggest query all run
|
|
3376
|
-
through the model query endpoint with `givens`, using the manifest's
|
|
3377
|
-
`path` as the model.
|
|
3378
|
-
|
|
3379
|
-
`dashboardName` is a basename, which is not an identity: it resolves
|
|
3380
|
-
only when exactly one grid report in the package has it. When several
|
|
3381
|
-
do, the answer is 409 naming every matching path; address the report
|
|
3382
|
-
by path with get-report instead.
|
|
3383
|
-
|
|
3384
|
-
**Contract change since reports.** This route never answered 409
|
|
3385
|
-
before: a dashboard lived directly under `dashboards/`, so its name was
|
|
3386
|
-
unique. A grid report may now live anywhere, two may share a basename,
|
|
3387
|
-
and a client of this route must handle 409. The match also covers grid
|
|
3388
|
-
reports outside `dashboards/`.
|
|
3389
|
-
parameters:
|
|
3390
|
-
- name: environmentName
|
|
3391
|
-
in: path
|
|
3392
|
-
description: Name of the environment
|
|
3393
|
-
required: true
|
|
3394
|
-
schema:
|
|
3395
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3396
|
-
- name: packageName
|
|
3397
|
-
in: path
|
|
3398
|
-
description: Name of the package
|
|
3399
|
-
required: true
|
|
3400
|
-
schema:
|
|
3401
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3402
|
-
- name: dashboardName
|
|
3403
|
-
in: path
|
|
3404
|
-
description: >-
|
|
3405
|
-
The report's name: its filename basename. Conventionally letters,
|
|
3406
|
-
digits, "-" and "_", and a package is warned when one of its
|
|
3407
|
-
grid reports falls outside that. It is NOT constrained to it, because
|
|
3408
|
-
the name comes from a filename rather than being chosen: a file such
|
|
3409
|
-
as `v1.2.malloy` is served, and its published `resource`
|
|
3410
|
-
carries the name percent-encoded. Send it percent-encoded.
|
|
3411
|
-
required: true
|
|
3412
|
-
schema:
|
|
3413
|
-
type: string
|
|
3414
|
-
minLength: 1
|
|
3415
|
-
- $ref: "#/components/parameters/versionId"
|
|
3416
|
-
responses:
|
|
3417
|
-
"200":
|
|
3418
|
-
description: The dashboard manifest
|
|
3419
|
-
content:
|
|
3420
|
-
application/json:
|
|
3421
|
-
schema:
|
|
3422
|
-
$ref: "#/components/schemas/DashboardManifest"
|
|
3423
|
-
"400":
|
|
3424
|
-
$ref: "#/components/responses/BadRequest"
|
|
3425
|
-
"401":
|
|
3426
|
-
$ref: "#/components/responses/Unauthorized"
|
|
3427
|
-
"404":
|
|
3428
|
-
$ref: "#/components/responses/NotFound"
|
|
3429
|
-
"409":
|
|
3430
|
-
description:
|
|
3431
|
-
More than one grid report in the package has this basename. The
|
|
3432
|
-
message names every matching path; use get-report with one.
|
|
3433
|
-
content:
|
|
3434
|
-
application/json:
|
|
3435
|
-
schema:
|
|
3436
|
-
$ref: "#/components/schemas/Error"
|
|
3437
|
-
"410":
|
|
3438
|
-
$ref: "#/components/responses/Gone"
|
|
3439
|
-
"500":
|
|
3440
|
-
$ref: "#/components/responses/InternalServerError"
|
|
3441
|
-
"503":
|
|
3442
|
-
$ref: "#/components/responses/ServiceUnavailable"
|
|
3443
|
-
|
|
3444
|
-
/environments/{environmentName}/packages/{packageName}/notebooks:
|
|
3445
|
-
get:
|
|
3446
|
-
tags:
|
|
3447
|
-
- notebooks
|
|
3448
|
-
operationId: list-notebooks
|
|
3449
|
-
deprecated: true
|
|
3450
|
-
summary: List package notebooks (deprecated; use list-reports)
|
|
3451
|
-
description: |
|
|
3452
|
-
**DEPRECATED**: use list-reports. Lists the package's linear reports (see
|
|
3453
|
-
list-reports): every `.malloynb` file outside `public/`, and every tagged
|
|
3454
|
-
`.malloy` report whose layout is linear, wherever it lives. Each entry
|
|
3455
|
-
includes the relative path, package name, title, description, and any
|
|
3456
|
-
compilation or reading error.
|
|
3457
|
-
|
|
3458
|
-
**Contract change since reports.** This route used to list `.malloy`
|
|
3459
|
-
notebooks only directly under `notebooks/`. It now lists linear reports
|
|
3460
|
-
from anywhere in the package, including `dashboards/` and nested
|
|
3461
|
-
directories, and no longer lists a kindless tiled file in `notebooks/`,
|
|
3462
|
-
which is now grid.
|
|
3463
|
-
parameters:
|
|
3464
|
-
- name: environmentName
|
|
3465
|
-
in: path
|
|
3466
|
-
description: Name of the environment
|
|
3467
|
-
required: true
|
|
3468
|
-
schema:
|
|
3469
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3470
|
-
- name: packageName
|
|
3471
|
-
in: path
|
|
3472
|
-
description: Name of the package
|
|
3473
|
-
required: true
|
|
3474
|
-
schema:
|
|
3475
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3476
|
-
- $ref: "#/components/parameters/versionId"
|
|
3477
|
-
responses:
|
|
3478
|
-
"200":
|
|
3479
|
-
description: A list of notebooks in the package
|
|
3480
|
-
content:
|
|
3481
|
-
application/json:
|
|
3482
|
-
schema:
|
|
3483
|
-
type: array
|
|
3484
|
-
items:
|
|
3485
|
-
$ref: "#/components/schemas/Notebook"
|
|
3486
|
-
"400":
|
|
3487
|
-
$ref: "#/components/responses/BadRequest"
|
|
3488
|
-
"401":
|
|
3489
|
-
$ref: "#/components/responses/Unauthorized"
|
|
3490
|
-
"404":
|
|
3491
|
-
$ref: "#/components/responses/NotFound"
|
|
3492
|
-
"410":
|
|
3493
|
-
$ref: "#/components/responses/Gone"
|
|
3494
|
-
"500":
|
|
3495
|
-
$ref: "#/components/responses/InternalServerError"
|
|
3496
|
-
"503":
|
|
3497
|
-
$ref: "#/components/responses/ServiceUnavailable"
|
|
3498
|
-
|
|
3499
|
-
/environments/{environmentName}/packages/{packageName}/notebooks/{path}:
|
|
3500
|
-
get:
|
|
3501
|
-
tags:
|
|
3502
|
-
- notebooks
|
|
3503
|
-
operationId: get-notebook
|
|
3504
|
-
deprecated: true
|
|
3505
|
-
summary: Get Malloy notebook cells (deprecated; use get-report)
|
|
3506
|
-
description: |
|
|
3507
|
-
**DEPRECATED**: use get-report. Retrieves a linear report with its raw
|
|
3508
|
-
cell contents (markdown and code). A `.malloy` report's cells run
|
|
3509
|
-
through the model query endpoint (each cell's `text` as the query); a
|
|
3510
|
-
`.malloynb`'s through execute-notebook-cell. A linear `.malloy`
|
|
3511
|
-
report, wherever it lives, answers here as well as a `.malloynb`.
|
|
3512
|
-
On a package with a surface, the response shows only the sources the notebook may read.
|
|
3513
|
-
parameters:
|
|
3514
|
-
- name: environmentName
|
|
3515
|
-
in: path
|
|
3516
|
-
description: Name of the environment
|
|
3517
|
-
required: true
|
|
3518
|
-
schema:
|
|
3519
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3520
|
-
- name: packageName
|
|
3521
|
-
in: path
|
|
3522
|
-
description: Name of the package
|
|
3523
|
-
required: true
|
|
3524
|
-
schema:
|
|
3525
|
-
type: string
|
|
3526
|
-
- name: path
|
|
3527
|
-
in: path
|
|
3528
|
-
description: Path to notebook within the package.
|
|
3529
|
-
required: true
|
|
3530
|
-
schema:
|
|
3531
|
-
type: string
|
|
3532
|
-
- $ref: "#/components/parameters/versionId"
|
|
3533
|
-
responses:
|
|
3534
|
-
"200":
|
|
3535
|
-
description: A Malloy notebook with raw cell contents.
|
|
3536
|
-
content:
|
|
3537
|
-
"application/json":
|
|
3538
|
-
schema:
|
|
3539
|
-
$ref: "#/components/schemas/RawNotebook"
|
|
3540
|
-
"400":
|
|
3541
|
-
$ref: "#/components/responses/BadRequest"
|
|
3542
|
-
"401":
|
|
3543
|
-
$ref: "#/components/responses/Unauthorized"
|
|
3544
|
-
"404":
|
|
3545
|
-
$ref: "#/components/responses/NotFound"
|
|
3546
|
-
"410":
|
|
3547
|
-
$ref: "#/components/responses/Gone"
|
|
3548
|
-
"500":
|
|
3549
|
-
$ref: "#/components/responses/InternalServerError"
|
|
3550
|
-
|
|
3551
|
-
/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}:
|
|
3552
|
-
get:
|
|
3553
|
-
tags:
|
|
3554
|
-
- notebooks
|
|
3555
|
-
operationId: execute-notebook-cell
|
|
3556
|
-
deprecated: true
|
|
3557
|
-
summary: Execute a specific notebook cell (deprecated)
|
|
3558
|
-
description: |
|
|
3559
|
-
**DEPRECATED**: removed with the other notebook routes. For a `.malloy`
|
|
3560
|
-
report, run a cell through the model query endpoint instead: the
|
|
3561
|
-
report's path as the model, the cell's `text` (from get-report) as
|
|
3562
|
-
`query`, and `givens` in the body, which applies the same surface,
|
|
3563
|
-
`#(authorize)` and row-level gates. A `.malloynb` has no other route.
|
|
3564
|
-
Executes a specific cell in a linear report by index.
|
|
3565
|
-
For code cells, this compiles and runs the Malloy code, returning query
|
|
3566
|
-
results and any new sources defined. For markdown cells, this simply
|
|
3567
|
-
returns the cell content. A linear `.malloy` report, wherever it lives,
|
|
3568
|
-
answers here as well as a `.malloynb`.
|
|
3569
|
-
|
|
3570
|
-
On a package with a surface (a root `index.malloy`, or a legacy `explores`) with
|
|
3571
|
-
`queryableSources` left at `"declared"`, a code cell may read only sources the surface
|
|
3572
|
-
exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the
|
|
3573
|
-
source is also `#(authorize)`-gated. A source an earlier cell declares on top of a
|
|
3574
|
-
published source still works. A cell's own source over a raw table (`duckdb.table(...)`
|
|
3575
|
-
or `.sql(...)`) has no published source under it, so it is refused. The response shows
|
|
3576
|
-
only the sources the notebook may read.
|
|
3577
|
-
parameters:
|
|
3578
|
-
- name: environmentName
|
|
3579
|
-
in: path
|
|
3580
|
-
description: Name of the environment
|
|
3581
|
-
required: true
|
|
3582
|
-
schema:
|
|
3583
|
-
$ref: "#/components/schemas/IdentifierPattern"
|
|
3584
|
-
- name: packageName
|
|
3585
|
-
in: path
|
|
3586
|
-
description: Name of the package
|
|
3587
|
-
required: true
|
|
3588
|
-
schema:
|
|
3589
|
-
type: string
|
|
3590
|
-
- name: path
|
|
3591
|
-
in: path
|
|
3592
|
-
description: Path to notebook within the package
|
|
3593
|
-
required: true
|
|
3594
|
-
schema:
|
|
3595
|
-
type: string
|
|
3596
|
-
- name: cellIndex
|
|
3597
|
-
in: path
|
|
3598
|
-
description: Index of the cell to execute (0-based)
|
|
3599
|
-
required: true
|
|
3600
|
-
schema:
|
|
3601
|
-
type: integer
|
|
3602
|
-
- $ref: "#/components/parameters/versionId"
|
|
3603
|
-
- name: filter_params
|
|
3604
|
-
in: query
|
|
3605
|
-
deprecated: true
|
|
3606
|
-
description: |
|
|
3607
|
-
**DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead.
|
|
3608
|
-
Targets the deprecated `#(filter)` annotation path. See docs/givens.md
|
|
3609
|
-
for migration recipes.
|
|
3610
|
-
|
|
3611
|
-
JSON-encoded filter parameter values keyed by filter name.
|
|
3612
|
-
required: false
|
|
3613
|
-
schema:
|
|
3614
|
-
type: string
|
|
3615
|
-
- name: bypass_filters
|
|
3616
|
-
in: query
|
|
3617
|
-
deprecated: true
|
|
3618
|
-
description: |
|
|
3619
|
-
**DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead.
|
|
3620
|
-
See docs/givens.md for migration recipes.
|
|
3621
|
-
|
|
3622
|
-
When true, skip filter injection entirely.
|
|
3623
|
-
required: false
|
|
3624
|
-
schema:
|
|
3625
|
-
type: string
|
|
3626
|
-
enum:
|
|
3627
|
-
- "true"
|
|
3628
|
-
- "false"
|
|
3629
|
-
- name: givens
|
|
3630
|
-
in: query
|
|
3631
|
-
description:
|
|
3632
|
-
A `GivenValues` object, JSON-encoded so it can travel in a query
|
|
3633
|
-
string. Values are typed as `GivenValues` describes them, not
|
|
3634
|
-
string-encoded as `EncodedGivenValues` would be. The parameter keeps
|
|
3635
|
-
its name for compatibility; the schema it carries is the one named
|
|
3636
|
-
here.
|
|
3637
|
-
required: false
|
|
3638
|
-
schema:
|
|
3639
|
-
type: string
|
|
3640
|
-
responses:
|
|
3641
|
-
"200":
|
|
3642
|
-
description: Cell execution result
|
|
3643
|
-
content:
|
|
3644
|
-
"application/json":
|
|
3645
|
-
schema:
|
|
3646
|
-
$ref: "#/components/schemas/NotebookCellResult"
|
|
3647
|
-
"400":
|
|
3648
|
-
$ref: "#/components/responses/BadRequest"
|
|
3649
|
-
"401":
|
|
3650
|
-
$ref: "#/components/responses/Unauthorized"
|
|
3651
|
-
"403":
|
|
3652
|
-
$ref: "#/components/responses/Forbidden"
|
|
3653
|
-
"404":
|
|
3654
|
-
$ref: "#/components/responses/NotFound"
|
|
3655
|
-
"410":
|
|
3656
|
-
$ref: "#/components/responses/Gone"
|
|
3657
|
-
"413":
|
|
3658
|
-
$ref: "#/components/responses/PayloadTooLarge"
|
|
3659
|
-
"500":
|
|
3660
|
-
$ref: "#/components/responses/InternalServerError"
|
|
3661
|
-
"424":
|
|
3662
|
-
$ref: "#/components/responses/ConnectionUnavailable"
|
|
3663
|
-
"502":
|
|
3664
|
-
$ref: "#/components/responses/DatabaseUnreachable"
|
|
3665
|
-
"503":
|
|
3666
|
-
$ref: "#/components/responses/ServiceUnavailable"
|
|
3667
|
-
"504":
|
|
3668
|
-
$ref: "#/components/responses/GatewayTimeout"
|
|
3669
|
-
|
|
3670
3275
|
/environments/{environmentName}/packages/{packageName}/databases:
|
|
3671
3276
|
get:
|
|
3672
3277
|
tags:
|
|
@@ -4565,9 +4170,9 @@ components:
|
|
|
4565
4170
|
* The response could not be serialized at all, past the JavaScript
|
|
4566
4171
|
engine's own limit (V8 refuses the string; JSC fails the
|
|
4567
4172
|
allocation). No cap was necessarily exceeded here, and raising one
|
|
4568
|
-
does not help. This third case applies to the model-query
|
|
4569
|
-
|
|
4570
|
-
|
|
4173
|
+
does not help. This third case applies to the model-query
|
|
4174
|
+
endpoint; the connection SQL endpoints have no such guard and
|
|
4175
|
+
answer 500.
|
|
4571
4176
|
In every case, refine the query (add a LIMIT, a more selective WHERE,
|
|
4572
4177
|
project fewer columns, or filter out wide values); retrying unchanged
|
|
4573
4178
|
will not succeed. Raising the relevant cap is an option for the first
|
|
@@ -4936,9 +4541,7 @@ components:
|
|
|
4936
4541
|
description: >-
|
|
4937
4542
|
Which page the Console shows for a model (`PUBLISHER_MODEL_PAGE`,
|
|
4938
4543
|
"explorer" by default). "explorer" is the Malloy Explorer, which
|
|
4939
|
-
|
|
4940
|
-
values unescaped, so a drilled value holding a double quote
|
|
4941
|
-
rewrites its query. "viewer" shows a page that builds no query,
|
|
4544
|
+
builds queries. "viewer" shows a page that builds no query,
|
|
4942
4545
|
and takes the Explorer out of the legacy notebook too. Absent from
|
|
4943
4546
|
a server that predates the setting, which reads as "explorer".
|
|
4944
4547
|
emptyReason:
|
|
@@ -5373,9 +4976,29 @@ components:
|
|
|
5373
4976
|
type creates no tables), `materialization_off` (a `#(materialize)`
|
|
5374
4977
|
source, which only the served copy reads, and the served copy is
|
|
5375
4978
|
off: `PUBLISHER_MATERIALIZE`, and for `storage=`
|
|
5376
|
-
`PERSIST_STORAGE_MODE`), `served_copy` (a
|
|
5377
|
-
|
|
5378
|
-
|
|
4979
|
+
`PERSIST_STORAGE_MODE`), `served_copy` (a source the served copy
|
|
4980
|
+
reads, `#(materialize)` or `#@ persist`, whose table is bound and
|
|
4981
|
+
built, but no model's served copy re-roots it, so its queries are
|
|
4982
|
+
answered live; `notServedIn` says where and why). An open set.
|
|
4983
|
+
notServedIn:
|
|
4984
|
+
type: array
|
|
4985
|
+
items:
|
|
4986
|
+
$ref: "#/components/schemas/NotServedIn"
|
|
4987
|
+
description: >-
|
|
4988
|
+
Each model file whose served copy holds this source (declares or
|
|
4989
|
+
imports it) but does not read its table, sorted by model, the same
|
|
4990
|
+
for a `#(materialize)` source and a `#@ persist` one. Present
|
|
4991
|
+
exactly when some model that holds the source does not read its
|
|
4992
|
+
table. With a `served_copy` reason it lists every such model (a
|
|
4993
|
+
model whose whole copy is off lists every stored source it holds,
|
|
4994
|
+
not only the one whose join failed it; a source no model's copy
|
|
4995
|
+
holds lists its declaring model, `not_rerooted`). On a `serves`
|
|
4996
|
+
verdict it lists the models that answer the source's queries
|
|
4997
|
+
live while another model serves it, so a consumer must read it:
|
|
4998
|
+
`serves` alone does not mean every model reads the table. Absent
|
|
4999
|
+
while a served copy has yet to compile. Read from the same compile
|
|
5000
|
+
of record as the `served-copy-not-served` warnings, never by
|
|
5001
|
+
running a query.
|
|
5379
5002
|
message:
|
|
5380
5003
|
type: string
|
|
5381
5004
|
description: What the verdict means for this source, in a sentence.
|
|
@@ -5430,6 +5053,35 @@ components:
|
|
|
5430
5053
|
items:
|
|
5431
5054
|
$ref: "#/components/schemas/ViewServeVerdict"
|
|
5432
5055
|
|
|
5056
|
+
NotServedIn:
|
|
5057
|
+
type: object
|
|
5058
|
+
description: >-
|
|
5059
|
+
One model whose served copy holds a materialized source but does not
|
|
5060
|
+
read its table, and why.
|
|
5061
|
+
required: [model, reasons]
|
|
5062
|
+
properties:
|
|
5063
|
+
model:
|
|
5064
|
+
type: string
|
|
5065
|
+
description: The model file.
|
|
5066
|
+
reasons:
|
|
5067
|
+
type: array
|
|
5068
|
+
items:
|
|
5069
|
+
type: string
|
|
5070
|
+
description: >-
|
|
5071
|
+
Every reason the served copy gives for not reading the source's
|
|
5072
|
+
table in this model: the `reason` of each `served-copy-not-served`
|
|
5073
|
+
package warning on that model that names the source or the model's
|
|
5074
|
+
whole copy, the codes `publisher_served_copy_bind_total` counts,
|
|
5075
|
+
most actionable first (for example `cross_connection_join` before
|
|
5076
|
+
`fields_not_carried`): `cross_connection_join`,
|
|
5077
|
+
`cross_connection_unbuilt`, `inline_join_kept`,
|
|
5078
|
+
`read_terms_not_kept`, `fields_not_carried`, `column_types`,
|
|
5079
|
+
`classification_not_kept`, `pair_join_not_found`,
|
|
5080
|
+
`pair_not_compiled`, `definition_not_parsed`, `compile_failed`,
|
|
5081
|
+
`no_declaration`, `reroot_not_compiled`. `not_rerooted` alone when
|
|
5082
|
+
no warning names one (also `servePathReason`'s value for that
|
|
5083
|
+
case). Never empty. An open set: treat an unknown value as
|
|
5084
|
+
`not_rerooted`.
|
|
5433
5085
|
ViewServeVerdict:
|
|
5434
5086
|
type: object
|
|
5435
5087
|
required: [view, verdict]
|
|
@@ -6126,7 +5778,39 @@ components:
|
|
|
6126
5778
|
acts on it rather than only showing it; absent for a family that
|
|
6127
5779
|
has none yet. `deprecated-malloynb-notebook`: a `.malloynb`
|
|
6128
5780
|
notebook, the deprecated cell format (one per file, `model`
|
|
6129
|
-
naming it). `
|
|
5781
|
+
naming it). `malloynb-cell-refused`: a `.malloynb` code cell
|
|
5782
|
+
whose `run:` statement the query route refuses for every
|
|
5783
|
+
reader in the Console, which sends no privilege and no
|
|
5784
|
+
`filterParams`, so the cell never runs there. One per cell,
|
|
5785
|
+
up to the bound below, `model` naming the notebook, severity `warn`. The message
|
|
5786
|
+
names the cell by its 1-based position among the notebook's
|
|
5787
|
+
cells, markdown cells included, and the fix. `reason` names
|
|
5788
|
+
the rule: `off_surface` is the 404 for a source the package
|
|
5789
|
+
surface does not publish, which a source the notebook
|
|
5790
|
+
declares never is on a package with a curated surface, an
|
|
5791
|
+
`index.malloy` or the deprecated `explores`; a caller with `includeHiddenFilesAndSources` still runs such a
|
|
5792
|
+
cell. `caller_annotation` is the 400 for text carrying an
|
|
5793
|
+
annotation only the model author may write, such as
|
|
5794
|
+
`#(authorize)`, comments included. `required_filter` is the
|
|
5795
|
+
400 for a source with a required `#(filter)`.
|
|
5796
|
+
`restricted_mode` is the 400 for a `sql_*` call or a direct
|
|
5797
|
+
table read. `compile_error` is the 400 for any other failure
|
|
5798
|
+
of the statement to compile on its own. A cell that only a
|
|
5799
|
+
reader's givens refuse, by `#(authorize)` or a row-level
|
|
5800
|
+
gate, is not reported. Markdown cells are not read, as the
|
|
5801
|
+
Console does not run them. A notebook lists at most 10
|
|
5802
|
+
refused cells one by one, and the package at most 50. The
|
|
5803
|
+
rest of a notebook that lists some are named by number and
|
|
5804
|
+
reason in one `malloynb-cells-unlisted` warning (`model` the
|
|
5805
|
+
notebook; `warn`). The notebooks after the package limit
|
|
5806
|
+
share one `malloynb-cells-unlisted` warning with no `model`,
|
|
5807
|
+
which counts their cells by reason and names the first 10 of
|
|
5808
|
+
them. The report lint metric still counts each refused cell
|
|
5809
|
+
under `malloynb-cell-refused`.
|
|
5810
|
+
`malloynb-cell-check-failed`: a notebook whose cell check
|
|
5811
|
+
could not run, so a refused cell of it may have no warning;
|
|
5812
|
+
the cause is in the server log (one per notebook, `warn`).
|
|
5813
|
+
`deprecated-filter-annotation`: a source declaring
|
|
6130
5814
|
deprecated `#(filter)` annotations (one per declaring source,
|
|
6131
5815
|
`model` naming its file and `subject` the source).
|
|
6132
5816
|
`deprecated-preaggregate-annotation`: a measure declaring
|
|
@@ -6140,10 +5824,7 @@ components:
|
|
|
6140
5824
|
container; still read, in that container under the readable
|
|
6141
5825
|
name (one per measure and container, `subject`
|
|
6142
5826
|
`<base>.<measure>`; `warn`).
|
|
6143
|
-
`
|
|
6144
|
-
basename, so the deprecated `GET …/dashboards/{name}` route
|
|
6145
|
-
answers 409 for it (one per name, `subject` naming it and the
|
|
6146
|
-
message every path; `warn`). `classification-coverage`: a
|
|
5827
|
+
`classification-coverage`: a
|
|
6147
5828
|
published source with a dimension or measure that carries no
|
|
6148
5829
|
`#(classification)` while some field in the package does (one
|
|
6149
5830
|
per source, `model` naming its file and `subject` the source;
|
|
@@ -6392,15 +6073,16 @@ components:
|
|
|
6392
6073
|
reason:
|
|
6393
6074
|
type: string
|
|
6394
6075
|
description: >-
|
|
6395
|
-
The bounded cause of a
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
warning; the served copy's reason on
|
|
6076
|
+
The bounded cause of a finding, so a client branches on it
|
|
6077
|
+
rather than on the message (whose wording may change): the
|
|
6078
|
+
refusal record's `reason` on a `*-not-built` warning; the served copy's reason on
|
|
6399
6079
|
`served-copy-not-served`; the unread reason on
|
|
6400
6080
|
`database-table-unread`; the kept table's reason on
|
|
6401
6081
|
`table-kept`; the serve verdict's reason on a
|
|
6402
6082
|
`materialization-*` verdict warning; `storage_mode` on
|
|
6403
|
-
`materialization-storage-mode
|
|
6083
|
+
`materialization-storage-mode`; the rule a cell breaks on
|
|
6084
|
+
`malloynb-cell-refused` (`off_surface`, `caller_annotation`,
|
|
6085
|
+
`required_filter`, `restricted_mode`, `compile_error`). Always snake_case. An open
|
|
6404
6086
|
string; absent on a finding that has none.
|
|
6405
6087
|
severity:
|
|
6406
6088
|
type: string
|
|
@@ -6422,8 +6104,7 @@ components:
|
|
|
6422
6104
|
findings use both: `error` for something that cannot work as
|
|
6423
6105
|
written, such as a tile naming a view the source does not
|
|
6424
6106
|
have, and `warn` for something that works but not as the
|
|
6425
|
-
author probably intended
|
|
6426
|
-
the conventional shape. The two findings about Publisher rather than about
|
|
6107
|
+
author probably intended. The two findings about Publisher rather than about
|
|
6427
6108
|
the package split across both: a file that carries an artifact
|
|
6428
6109
|
tag and could not be read is `error`, because the dashboard it
|
|
6429
6110
|
should have produced does not exist, and a lint that stopped
|
|
@@ -7322,9 +7003,10 @@ components:
|
|
|
7322
7003
|
allOf:
|
|
7323
7004
|
- $ref: "#/components/schemas/ReportCells"
|
|
7324
7005
|
description: >-
|
|
7325
|
-
For a `.malloynb`: its cells and model, each cell run
|
|
7326
|
-
|
|
7327
|
-
|
|
7006
|
+
For a `.malloynb`: its cells and model, each code cell run
|
|
7007
|
+
through `POST …/models/{path}/query` with `givens`, using the
|
|
7008
|
+
report's `path` as the model. Absent on a `.malloy` report, and
|
|
7009
|
+
on a `.malloynb` that failed to compile.
|
|
7328
7010
|
|
|
7329
7011
|
ReportTile:
|
|
7330
7012
|
type: object
|
|
@@ -7446,8 +7128,9 @@ components:
|
|
|
7446
7128
|
ReportCells:
|
|
7447
7129
|
type: object
|
|
7448
7130
|
description: >-
|
|
7449
|
-
A `.malloynb
|
|
7450
|
-
|
|
7131
|
+
A `.malloynb` read as cells: its cells, unexecuted, and its model.
|
|
7132
|
+
`GET …/reports/{path}` serves it for a `.malloynb` only; a `.malloy`
|
|
7133
|
+
report carries its manifest instead.
|
|
7451
7134
|
properties:
|
|
7452
7135
|
type:
|
|
7453
7136
|
type: string
|
|
@@ -7462,11 +7145,11 @@ components:
|
|
|
7462
7145
|
format:
|
|
7463
7146
|
type: string
|
|
7464
7147
|
enum: ["malloynb", "malloy"]
|
|
7465
|
-
description:
|
|
7466
|
-
The file format the notebook is written in. `malloynb
|
|
7467
|
-
cell-separated format
|
|
7468
|
-
|
|
7469
|
-
|
|
7148
|
+
description: >-
|
|
7149
|
+
The file format the notebook is written in. Always `malloynb`, the
|
|
7150
|
+
cell-separated format. `malloy`, a linear `.malloy` report read
|
|
7151
|
+
statement by statement, is no longer returned: no route serves a
|
|
7152
|
+
`.malloy` report as cells.
|
|
7470
7153
|
malloyVersion:
|
|
7471
7154
|
type: string
|
|
7472
7155
|
description: Version of the Malloy compiler used to generate the notebook data
|
|
@@ -7481,30 +7164,23 @@ components:
|
|
|
7481
7164
|
annotations:
|
|
7482
7165
|
type: array
|
|
7483
7166
|
description:
|
|
7484
|
-
Array of file-level (##) annotations attached to the notebook.
|
|
7485
|
-
a `.malloy` notebook, every own note that is not a floating
|
|
7486
|
-
`(markdown)` cell, in file order, each note once. A `"` or `(text)`
|
|
7487
|
-
note below the `## artifact` tag is dropped and not listed.
|
|
7167
|
+
Array of file-level (##) annotations attached to the notebook.
|
|
7488
7168
|
items:
|
|
7489
7169
|
type: string
|
|
7490
7170
|
startingGivens:
|
|
7491
7171
|
allOf:
|
|
7492
7172
|
- $ref: "#/components/schemas/EncodedGivenValues"
|
|
7493
7173
|
description:
|
|
7494
|
-
Starting values for the notebook's controls
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
parameters override these, which is why the two share a shape.
|
|
7498
|
-
Omitted when the notebook declares none.
|
|
7174
|
+
Starting values for the notebook's controls, from its file-level
|
|
7175
|
+
tags (`## givens { … }`). URL parameters override these. Omitted
|
|
7176
|
+
when the notebook declares none.
|
|
7499
7177
|
autorun:
|
|
7500
7178
|
type: boolean
|
|
7501
7179
|
description:
|
|
7502
7180
|
False batches control changes behind an Apply button instead of
|
|
7503
|
-
re-running on every change. Defaults to true.
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
flag, with the same default, that `DashboardManifest.autorun`
|
|
7507
|
-
carries.
|
|
7181
|
+
re-running on every change. Defaults to true. Read from the
|
|
7182
|
+
notebook's file-level tags (`## autorun=false`). The same flag, with
|
|
7183
|
+
the same default, that `DashboardManifest.autorun` carries.
|
|
7508
7184
|
sources:
|
|
7509
7185
|
type: array
|
|
7510
7186
|
description: Sources defined in the notebook's model
|
|
@@ -7567,85 +7243,9 @@ components:
|
|
|
7567
7243
|
content-driven app, which keeps content-height auto-sizing.
|
|
7568
7244
|
|
|
7569
7245
|
# ── DEPRECATED ────────────────────────────────────────────────────────
|
|
7570
|
-
# The shapes
|
|
7246
|
+
# The shapes the compile response's `manifest` still answers in.
|
|
7571
7247
|
# No report schema references them; each removal deletes its block here.
|
|
7572
7248
|
|
|
7573
|
-
Notebook:
|
|
7574
|
-
type: object
|
|
7575
|
-
deprecated: true
|
|
7576
|
-
description: DEPRECATED, use `Report`. A linear report as the deprecated
|
|
7577
|
-
list-notebooks route lists it.
|
|
7578
|
-
properties:
|
|
7579
|
-
environmentName:
|
|
7580
|
-
type: string
|
|
7581
|
-
description: Name of the environment containing this notebook
|
|
7582
|
-
packageName:
|
|
7583
|
-
type: string
|
|
7584
|
-
description: Name of the package containing this notebook
|
|
7585
|
-
path:
|
|
7586
|
-
type: string
|
|
7587
|
-
description: Relative path to the notebook file within its package directory
|
|
7588
|
-
title:
|
|
7589
|
-
type: string
|
|
7590
|
-
description:
|
|
7591
|
-
Human title. For a `.malloynb`, resolved from its own `## title="…"`,
|
|
7592
|
-
then its `#"` doc comment, then its first markdown heading. For a
|
|
7593
|
-
`.malloy` notebook, from the `title` in its `## artifact` tag, then
|
|
7594
|
-
the first line of the `"` notes above that tag, then its first
|
|
7595
|
-
markdown heading when no prose precedes it. Absent when none of
|
|
7596
|
-
those resolve, leaving the caller to show the path.
|
|
7597
|
-
description:
|
|
7598
|
-
type: string
|
|
7599
|
-
description:
|
|
7600
|
-
The notebook's doc comment, when it has one. For a `.malloy`
|
|
7601
|
-
notebook that is the `"` notes above the `## artifact` line; prose
|
|
7602
|
-
below it is a `##(markdown)` or `##|(markdown)` cell.
|
|
7603
|
-
error:
|
|
7604
|
-
type: string
|
|
7605
|
-
description: Error message if the notebook failed to compile or load
|
|
7606
|
-
|
|
7607
|
-
Dashboard:
|
|
7608
|
-
type: object
|
|
7609
|
-
deprecated: true
|
|
7610
|
-
description: |
|
|
7611
|
-
DEPRECATED: use `Report`. A grid report (see list-reports), as the
|
|
7612
|
-
deprecated list-dashboards route lists it. The list entry; see
|
|
7613
|
-
DashboardManifest for the detail a viewer needs to render one.
|
|
7614
|
-
properties:
|
|
7615
|
-
resource:
|
|
7616
|
-
type: string
|
|
7617
|
-
description: Resource path to the dashboard
|
|
7618
|
-
packageName:
|
|
7619
|
-
type: string
|
|
7620
|
-
description: Name of the package containing this dashboard
|
|
7621
|
-
name:
|
|
7622
|
-
type: string
|
|
7623
|
-
description: >-
|
|
7624
|
-
The report's filename basename: a display label, and the segment of
|
|
7625
|
-
the deprecated get-dashboard URL. Not an identity: two reports may
|
|
7626
|
-
share it. A change since reports: it used to be unique within the
|
|
7627
|
-
package (every dashboard was directly under `dashboards/`), and a
|
|
7628
|
-
client that keyed a map on it must key on `path` instead.
|
|
7629
|
-
path:
|
|
7630
|
-
type: string
|
|
7631
|
-
description:
|
|
7632
|
-
Relative path to the report file within its package directory,
|
|
7633
|
-
which is its identity
|
|
7634
|
-
title:
|
|
7635
|
-
type: string
|
|
7636
|
-
description:
|
|
7637
|
-
Human title from the artifact tag, falling back to the file's `#"`
|
|
7638
|
-
doc comment and then to the slug
|
|
7639
|
-
description:
|
|
7640
|
-
type: string
|
|
7641
|
-
description: >-
|
|
7642
|
-
The file's unnamed `"` notes above the `## artifact` tag; when it
|
|
7643
|
-
has none there, the ones below it (a legacy spot the lint flags). For
|
|
7644
|
-
a dashboard whose tag sits on one query, that query's `#"` notes.
|
|
7645
|
-
error:
|
|
7646
|
-
type: string
|
|
7647
|
-
description: Error message if the dashboard file failed to compile
|
|
7648
|
-
|
|
7649
7249
|
DashboardManifest:
|
|
7650
7250
|
type: object
|
|
7651
7251
|
deprecated: true
|
|
@@ -7666,11 +7266,11 @@ components:
|
|
|
7666
7266
|
name:
|
|
7667
7267
|
type: string
|
|
7668
7268
|
description: >-
|
|
7669
|
-
The report's filename basename: a display label
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7269
|
+
The report's filename basename: a display label. Not an identity:
|
|
7270
|
+
two reports may share it. A change since reports: it used to be
|
|
7271
|
+
unique within the package (every dashboard was directly under
|
|
7272
|
+
`dashboards/`), and a client that keyed a map on it must key on
|
|
7273
|
+
`path` instead.
|
|
7674
7274
|
path:
|
|
7675
7275
|
type: string
|
|
7676
7276
|
description: |
|
|
@@ -7706,10 +7306,7 @@ components:
|
|
|
7706
7306
|
deprecated: true
|
|
7707
7307
|
description: >-
|
|
7708
7308
|
DEPRECATED: read `layout`. The same thing in the old vocabulary:
|
|
7709
|
-
`dashboard` for a grid report, `notebook` for a linear one.
|
|
7710
|
-
`dashboard` on `GET …/dashboards/{dashboardName}`; a linear
|
|
7711
|
-
report's manifest is the `dashboard` field of
|
|
7712
|
-
`GET …/notebooks/{path}`.
|
|
7309
|
+
`dashboard` for a grid report, `notebook` for a linear one.
|
|
7713
7310
|
tiles:
|
|
7714
7311
|
type: array
|
|
7715
7312
|
description: >-
|
|
@@ -7772,30 +7369,11 @@ components:
|
|
|
7772
7369
|
DashboardTile:
|
|
7773
7370
|
deprecated: true
|
|
7774
7371
|
description: >-
|
|
7775
|
-
DEPRECATED: `ReportTile`, under the name the
|
|
7372
|
+
DEPRECATED: `ReportTile`, under the name the removed dashboard
|
|
7776
7373
|
routes gave it.
|
|
7777
7374
|
allOf:
|
|
7778
7375
|
- $ref: "#/components/schemas/ReportTile"
|
|
7779
7376
|
|
|
7780
|
-
RawNotebook:
|
|
7781
|
-
deprecated: true
|
|
7782
|
-
description: >-
|
|
7783
|
-
DEPRECATED: `ReportCells`, as get-notebook answers them, plus the tile
|
|
7784
|
-
layout of a linear report written as tiles.
|
|
7785
|
-
allOf:
|
|
7786
|
-
- $ref: "#/components/schemas/ReportCells"
|
|
7787
|
-
- type: object
|
|
7788
|
-
properties:
|
|
7789
|
-
dashboard:
|
|
7790
|
-
allOf:
|
|
7791
|
-
- $ref: "#/components/schemas/DashboardManifest"
|
|
7792
|
-
description: >-
|
|
7793
|
-
The tile layout of a linear report written as one (`## artifact {
|
|
7794
|
-
layout=linear tiles=[…] }`), in the shape a dashboard has, with
|
|
7795
|
-
`layout` `linear` and one column. Absent on a `.malloynb`. Its tiles run through the model query endpoint at
|
|
7796
|
-
`modelPath`; `notebookCells` carries the same content as cells for
|
|
7797
|
-
readers that do not draw a layout.
|
|
7798
|
-
|
|
7799
7377
|
CompiledModel:
|
|
7800
7378
|
type: object
|
|
7801
7379
|
description: Compiled Malloy model with sources, queries, and metadata
|
|
@@ -8474,7 +8052,7 @@ components:
|
|
|
8474
8052
|
The role it names: a surface's URL parameters and the starting values a
|
|
8475
8053
|
document declares share this shape, so the two can merge and then be
|
|
8476
8054
|
decoded once against the declarations and sent as `GivenValues`.
|
|
8477
|
-
`
|
|
8055
|
+
`ReportCells.startingGivens` and `DashboardManifest.startingGivens` are
|
|
8478
8056
|
both typed as it and both populated, so this schema now describes live
|
|
8479
8057
|
traffic rather than only the contract. A `filter<…>` value is unwrapped
|
|
8480
8058
|
to its body and every other type is published as declared, keyed on the
|
|
@@ -8706,17 +8284,21 @@ components:
|
|
|
8706
8284
|
kind:
|
|
8707
8285
|
type: string
|
|
8708
8286
|
enum: ["markdown", "query", "definition"]
|
|
8709
|
-
description:
|
|
8710
|
-
What a cell is, on a
|
|
8711
|
-
(`
|
|
8712
|
-
|
|
8287
|
+
description: >-
|
|
8288
|
+
What a cell is, on a cell of a compiled document
|
|
8289
|
+
(`CompileResult.document.cells`), where every cell is a definition:
|
|
8290
|
+
a `source:`, `import`, `query:`, `given:`, `type:` or `export`
|
|
8291
|
+
statement, with type `code`, that produces no result. Absent on a
|
|
8292
|
+
`.malloynb`'s cells. `markdown` and `query` are no longer returned:
|
|
8293
|
+
they marked a linear `.malloy` report's prose and query cells, which
|
|
8294
|
+
no route serves as cells now.
|
|
8713
8295
|
text:
|
|
8714
8296
|
type: string
|
|
8715
8297
|
description: Text contents of the notebook cell (either markdown or Malloy code)
|
|
8716
8298
|
markdown:
|
|
8717
8299
|
type: string
|
|
8718
8300
|
description:
|
|
8719
|
-
On a
|
|
8301
|
+
On a compiled document's code cell, the prose written on the
|
|
8720
8302
|
`(markdown)` route in its own tag lines (`#(markdown) text` lines,
|
|
8721
8303
|
`#|(markdown)` … `|#` blocks), which `text` still contains. Blocks
|
|
8722
8304
|
join with a blank line, adjacent lines with a newline. Author
|
|
@@ -8725,8 +8307,8 @@ components:
|
|
|
8725
8307
|
proseLines:
|
|
8726
8308
|
type: array
|
|
8727
8309
|
description:
|
|
8728
|
-
Present on every code cell of a
|
|
8729
|
-
a `.malloynb` or from a server that predates it. The lines of
|
|
8310
|
+
Present on every code cell of a compiled document, and absent on
|
|
8311
|
+
a `.malloynb`'s cells or from a server that predates it. The lines of
|
|
8730
8312
|
`text` that hold `markdown`, as `[start, end]` pairs in file order;
|
|
8731
8313
|
`[]` when the cell has none. Lines are 0-based and inclusive,
|
|
8732
8314
|
counted on `text` split at `\n`. Strip exactly these lines to get
|
|
@@ -8747,7 +8329,7 @@ components:
|
|
|
8747
8329
|
codeLine:
|
|
8748
8330
|
type: integer
|
|
8749
8331
|
description:
|
|
8750
|
-
Present on every code cell of a
|
|
8332
|
+
Present on every code cell of a compiled document, as `proseLines`
|
|
8751
8333
|
is. The 0-based line of `text` (split at `\n`) where the
|
|
8752
8334
|
statement's code starts, its first token that is neither a note nor
|
|
8753
8335
|
a comment, so the `source`, `run`, `given` or `import` keyword sits
|
|
@@ -8755,7 +8337,7 @@ components:
|
|
|
8755
8337
|
caption:
|
|
8756
8338
|
type: string
|
|
8757
8339
|
description:
|
|
8758
|
-
On a
|
|
8340
|
+
On a compiled document's code cell, the joined text of its leading
|
|
8759
8341
|
`#"` lines (space-joined, trimmed). Author prose, so it is served
|
|
8760
8342
|
even when `queryInfo` is withheld. Absent when the cell has none,
|
|
8761
8343
|
which is authoritative wherever `proseLines` is present.
|
|
@@ -8772,52 +8354,21 @@ components:
|
|
|
8772
8354
|
JSON string containing QueryInfo object for the query in this cell
|
|
8773
8355
|
(if the cell contains a query). On a package with a surface, left out
|
|
8774
8356
|
for a cell whose query reads a source the notebook may not read.
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
description: Text contents of the notebook cell
|
|
8791
|
-
markdown:
|
|
8792
|
-
type: string
|
|
8793
|
-
description:
|
|
8794
|
-
A `.malloy` notebook code cell's own `(markdown)` prose, as on
|
|
8795
|
-
`NotebookCell`. Absent when the cell has none.
|
|
8796
|
-
proseLines:
|
|
8797
|
-
type: array
|
|
8798
|
-
description: The lines of `text` that hold `markdown`, as on `NotebookCell`; `[]` when none.
|
|
8799
|
-
items:
|
|
8800
|
-
type: array
|
|
8801
|
-
minItems: 2
|
|
8802
|
-
maxItems: 2
|
|
8803
|
-
items:
|
|
8804
|
-
type: integer
|
|
8805
|
-
codeLine:
|
|
8806
|
-
type: integer
|
|
8807
|
-
description: The line of `text` where the statement's code starts, as on `NotebookCell`.
|
|
8808
|
-
caption:
|
|
8809
|
-
type: string
|
|
8810
|
-
description: The cell's leading `#"` caption, as on `NotebookCell`. Absent when the cell has none.
|
|
8811
|
-
result:
|
|
8812
|
-
type: string
|
|
8813
|
-
description: JSON string containing the execution result for this cell
|
|
8814
|
-
newSources:
|
|
8815
|
-
type: array
|
|
8816
|
-
description:
|
|
8817
|
-
Array of JSON strings containing SourceInfo objects made available
|
|
8818
|
-
in this cell
|
|
8819
|
-
items:
|
|
8820
|
-
type: string
|
|
8357
|
+
runQuery:
|
|
8358
|
+
type: string
|
|
8359
|
+
description: >-
|
|
8360
|
+
On a `.malloynb` code cell, the text to send as `query` to
|
|
8361
|
+
`POST …/models/{path}/query`, with the notebook's own path as the
|
|
8362
|
+
model, to run the cell. It is the cell's last top-level `run:`
|
|
8363
|
+
statement, up to the next top-level statement or `;`, with the
|
|
8364
|
+
render tags written above it: the `#` lines and `#|` … `|#` blocks
|
|
8365
|
+
between the statement before it and the `run:`, and any comment
|
|
8366
|
+
among them. A `##` line or `##|` block, the notebook's own, ends
|
|
8367
|
+
them. The cell's imports and declarations are left out, since the
|
|
8368
|
+
notebook's path compiles every cell. Read by Publisher's own lexer,
|
|
8369
|
+
so a `run:` in a comment, a string or a block annotation does not
|
|
8370
|
+
count. Absent on a markdown cell, on a code cell with no `run:`, on
|
|
8371
|
+
a compiled document's cells, and from a server that predates it.
|
|
8821
8372
|
|
|
8822
8373
|
QueryMetadata:
|
|
8823
8374
|
type: object
|
|
@@ -10630,9 +10181,15 @@ components:
|
|
|
10630
10181
|
reload over every .malloy and .malloynb file, without swapping the
|
|
10631
10182
|
result into the served package; with a source, importers compile
|
|
10632
10183
|
against the replacement. It also reports the render-tag findings
|
|
10633
|
-
(code "render-tag")
|
|
10634
|
-
(code "dashboard-lint")
|
|
10635
|
-
|
|
10184
|
+
(code "render-tag"), the dashboard, given and drill findings
|
|
10185
|
+
(code "dashboard-lint") and each .malloynb code cell the query
|
|
10186
|
+
route would refuse (code "malloynb-cell-refused", at most 10 per
|
|
10187
|
+
notebook and 50 per package, with the rest named in
|
|
10188
|
+
"malloynb-cells-unlisted" summaries, one per notebook that lists
|
|
10189
|
+
some and one for the notebooks past the package limit, and
|
|
10190
|
+
"malloynb-cell-check-failed" for a notebook that could not be
|
|
10191
|
+
checked) a reload would put on the package's warnings, at their own severity and with no
|
|
10192
|
+
position, and the
|
|
10636
10193
|
load's verdict on the materialization annotations: each line a
|
|
10637
10194
|
load fails with as an error with its code, each annotation the
|
|
10638
10195
|
load leaves unbuilt as a warning ("file" reports the same verdict
|
|
@@ -12875,9 +12432,8 @@ components:
|
|
|
12875
12432
|
true }`, which is for authoring servers. Without it the argument is not
|
|
12876
12433
|
in the tool's schema and is ignored if sent, so an agent answering
|
|
12877
12434
|
questions stays on the curated surface.
|
|
12878
|
-
This route is not affected by that setting. The
|
|
12879
|
-
|
|
12880
|
-
these routes ignore it.
|
|
12435
|
+
This route is not affected by that setting. The other MCP tools and the
|
|
12436
|
+
legacy `/projects/...` aliases of these routes ignore it.
|
|
12881
12437
|
|
|
12882
12438
|
Like every route on this server, it is unauthenticated. A deployment
|
|
12883
12439
|
that authenticates in front of Publisher decides who may send it, and
|