@malloy-publisher/server 0.17.0 → 0.17.2

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.
Files changed (31) hide show
  1. package/dist/admin-api-doc.yaml +2 -1
  2. package/dist/app/api-doc.yaml +212 -618
  3. package/dist/app/assets/{EnvironmentPage-D2-0ts2G.js → EnvironmentPage-DF2PahCR.js} +1 -1
  4. package/dist/app/assets/{HomePage-S_Bkczsx.js → HomePage-DIYlgPCz.js} +1 -1
  5. package/dist/app/assets/{MainPage-DEy4SyjJ.js → MainPage-C7PGAA5k.js} +1 -1
  6. package/dist/app/assets/ModelPage-BMoBnrW7.js +2 -0
  7. package/dist/app/assets/PackagePage-DD2vLSFe.js +1 -0
  8. package/dist/app/assets/{PackageSplatRoute-ChFCJOWE.js → PackageSplatRoute-BYIMwnLL.js} +2 -2
  9. package/dist/app/assets/{RenderedResult-BcEDcw0V.es-BD6PNbt6.js → RenderedResult-CYJ2Y9Fm.es-C8nokn71.js} +7 -7
  10. package/dist/app/assets/{RouteError-CDSSYdLB.js → RouteError-B8dE60Vs.js} +1 -1
  11. package/dist/app/assets/{ThemeEditorPage-DO2JWYOR.js → ThemeEditorPage-D0wf74fh.js} +1 -1
  12. package/dist/app/assets/{ToggleButtonGroup-BylAiUaK.js → ToggleButtonGroup-CX0_J2zR.js} +1 -1
  13. package/dist/app/assets/{documentRoutes-CaOt2rpR.js → documentRoutes-DgSMAc0m.js} +1 -1
  14. package/dist/app/assets/{editPageMounted-79YCIKgP.js → editPageMounted-BUGVg-_g.js} +2 -2
  15. package/dist/app/assets/{index-BOCBPBsi.js → index-BQL8UUcK.js} +1 -1
  16. package/dist/app/assets/{index-CPSEdm5f.js → index-BiOT4K_d.js} +1 -1
  17. package/dist/app/assets/{index-keJ8KKBp.js → index-DAQjZOAL.js} +1 -1
  18. package/dist/app/assets/index-DRkw60sj.js +512 -0
  19. package/dist/app/assets/{index.es-DTreXoC5.js → index.es-DgNl8IqU.js} +20 -20
  20. package/dist/app/assets/usePackageLinkNavigate-bHr_AFYo.js +1 -0
  21. package/dist/app/assets/{usePackageRoute-G6fA1__J.js → usePackageRoute-BhB6txS6.js} +1 -1
  22. package/dist/app/index.html +1 -1
  23. package/dist/app/mcp-app/report.js +2683 -757
  24. package/dist/instrumentation.mjs +4 -4
  25. package/dist/package_load_worker.mjs +364 -62
  26. package/dist/server.mjs +84274 -81768
  27. package/package.json +2 -2
  28. package/dist/app/assets/ModelPage-BVHjDM-u.js +0 -2
  29. package/dist/app/assets/PackagePage-Cbrg7o1X.js +0 -1
  30. package/dist/app/assets/index-BKjEX4_C.js +0 -512
  31. package/dist/app/assets/usePackageLinkNavigate-BfSAqkJS.js +0 -1
@@ -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, execute notebooks a cell at a time, and compile-check Malloy without running it
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
- ├── Notebooks execute a cell at a time
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 as get-notebook returned them, run through the deprecated
2660
- execute-notebook-cell.
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 and
4569
- notebook-cell endpoints; the connection SQL endpoints have no such
4570
- guard and answer 500.
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
- writes the queries it builds back to Malloy text with string
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:
@@ -5370,12 +4973,46 @@ components:
5370
4973
  another source), `destination_missing` (`storage=` names a
5371
4974
  destination the environment does not configure),
5372
4975
  `connection_cannot_hold_table` (database, on a connection whose
5373
- type creates no tables), `materialization_off` (a `#(materialize)`
4976
+ type creates no tables), `types_unrecorded` (database, bound, but
4977
+ its manifest entry records no column types, neither `schema` nor
4978
+ `nativeSchema`, so a change since the build cannot be ruled out;
4979
+ rebuild it), `materialization_off` (a `#(materialize)`
5374
4980
  source, which only the served copy reads, and the served copy is
5375
4981
  off: `PUBLISHER_MATERIALIZE`, and for `storage=`
5376
- `PERSIST_STORAGE_MODE`), `served_copy` (a `#(materialize)` source
5377
- whose table is bound, but no model's served copy re-roots it; the
5378
- `served-copy-not-served` warning says why). An open set.
4982
+ `PERSIST_STORAGE_MODE`), `served_copy` (a source the served copy
4983
+ reads, `#(materialize)` or `#@ persist`, whose table is bound and
4984
+ built, but no model's served copy re-roots it, so its queries are
4985
+ answered live; `notServedIn` says where and why). An open set.
4986
+ notServedIn:
4987
+ type: array
4988
+ items:
4989
+ $ref: "#/components/schemas/NotServedIn"
4990
+ description: >-
4991
+ Each model file whose served copy holds this source (declares or
4992
+ imports it) but does not read its table, sorted by model, the same
4993
+ for a `#(materialize)` source and a `#@ persist` one. Present
4994
+ exactly when some model that holds the source does not read its
4995
+ table. With a `served_copy` reason it lists every such model (a
4996
+ model whose whole copy is off lists every stored source it holds,
4997
+ not only the one whose join failed it; a source no model's copy
4998
+ holds lists its declaring model, `not_rerooted`). On a `serves`
4999
+ verdict it lists the models that answer the source's queries
5000
+ live while another model serves it, so a consumer must read it:
5001
+ `serves` alone does not mean every model reads the table. Absent
5002
+ while a served copy has yet to compile. Read from the same compile
5003
+ of record as the `served-copy-not-served` warnings, never by
5004
+ running a query.
5005
+ servedCopyPending:
5006
+ type: boolean
5007
+ description: >-
5008
+ Present, and always `true`, while some model that holds this source,
5009
+ which its served copy reads (`#(materialize)` or `#@ persist`), has
5010
+ yet to compile its served copy over the tables bound now. A bind
5011
+ returns before that compile, so the verdict carries no served-copy
5012
+ judgement yet: it may read `serves` for a table the compile will
5013
+ leave unread. A host must re-read the verdict while it is present;
5014
+ it is absent once every such model's copy is current, and then
5015
+ `notServedIn` and a `served_copy` reason are final for the bind.
5379
5016
  message:
5380
5017
  type: string
5381
5018
  description: What the verdict means for this source, in a sentence.
@@ -5430,6 +5067,35 @@ components:
5430
5067
  items:
5431
5068
  $ref: "#/components/schemas/ViewServeVerdict"
5432
5069
 
5070
+ NotServedIn:
5071
+ type: object
5072
+ description: >-
5073
+ One model whose served copy holds a materialized source but does not
5074
+ read its table, and why.
5075
+ required: [model, reasons]
5076
+ properties:
5077
+ model:
5078
+ type: string
5079
+ description: The model file.
5080
+ reasons:
5081
+ type: array
5082
+ items:
5083
+ type: string
5084
+ description: >-
5085
+ Every reason the served copy gives for not reading the source's
5086
+ table in this model: the `reason` of each `served-copy-not-served`
5087
+ package warning on that model that names the source or the model's
5088
+ whole copy, the codes `publisher_served_copy_bind_total` counts,
5089
+ most actionable first (for example `cross_connection_join` before
5090
+ `fields_not_carried`): `cross_connection_join`,
5091
+ `cross_connection_unbuilt`, `inline_join_kept`,
5092
+ `read_terms_not_kept`, `fields_not_carried`, `column_types`,
5093
+ `classification_not_kept`, `pair_join_not_found`,
5094
+ `pair_not_compiled`, `definition_not_parsed`, `compile_failed`,
5095
+ `no_declaration`, `reroot_not_compiled`. `not_rerooted` alone when
5096
+ no warning names one (also `servePathReason`'s value for that
5097
+ case). Never empty. An open set: treat an unknown value as
5098
+ `not_rerooted`.
5433
5099
  ViewServeVerdict:
5434
5100
  type: object
5435
5101
  required: [view, verdict]
@@ -6126,7 +5792,39 @@ components:
6126
5792
  acts on it rather than only showing it; absent for a family that
6127
5793
  has none yet. `deprecated-malloynb-notebook`: a `.malloynb`
6128
5794
  notebook, the deprecated cell format (one per file, `model`
6129
- naming it). `deprecated-filter-annotation`: a source declaring
5795
+ naming it). `malloynb-cell-refused`: a `.malloynb` code cell
5796
+ whose `run:` statement the query route refuses for every
5797
+ reader in the Console, which sends no privilege and no
5798
+ `filterParams`, so the cell never runs there. One per cell,
5799
+ up to the bound below, `model` naming the notebook, severity `warn`. The message
5800
+ names the cell by its 1-based position among the notebook's
5801
+ cells, markdown cells included, and the fix. `reason` names
5802
+ the rule: `off_surface` is the 404 for a source the package
5803
+ surface does not publish, which a source the notebook
5804
+ declares never is on a package with a curated surface, an
5805
+ `index.malloy` or the deprecated `explores`; a caller with `includeHiddenFilesAndSources` still runs such a
5806
+ cell. `caller_annotation` is the 400 for text carrying an
5807
+ annotation only the model author may write, such as
5808
+ `#(authorize)`, comments included. `required_filter` is the
5809
+ 400 for a source with a required `#(filter)`.
5810
+ `restricted_mode` is the 400 for a `sql_*` call or a direct
5811
+ table read. `compile_error` is the 400 for any other failure
5812
+ of the statement to compile on its own. A cell that only a
5813
+ reader's givens refuse, by `#(authorize)` or a row-level
5814
+ gate, is not reported. Markdown cells are not read, as the
5815
+ Console does not run them. A notebook lists at most 10
5816
+ refused cells one by one, and the package at most 50. The
5817
+ rest of a notebook that lists some are named by number and
5818
+ reason in one `malloynb-cells-unlisted` warning (`model` the
5819
+ notebook; `warn`). The notebooks after the package limit
5820
+ share one `malloynb-cells-unlisted` warning with no `model`,
5821
+ which counts their cells by reason and names the first 10 of
5822
+ them. The report lint metric still counts each refused cell
5823
+ under `malloynb-cell-refused`.
5824
+ `malloynb-cell-check-failed`: a notebook whose cell check
5825
+ could not run, so a refused cell of it may have no warning;
5826
+ the cause is in the server log (one per notebook, `warn`).
5827
+ `deprecated-filter-annotation`: a source declaring
6130
5828
  deprecated `#(filter)` annotations (one per declaring source,
6131
5829
  `model` naming its file and `subject` the source).
6132
5830
  `deprecated-preaggregate-annotation`: a measure declaring
@@ -6140,10 +5838,7 @@ components:
6140
5838
  container; still read, in that container under the readable
6141
5839
  name (one per measure and container, `subject`
6142
5840
  `<base>.<measure>`; `warn`).
6143
- `report-name-ambiguous`: two or more grid reports share a
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
5841
+ `classification-coverage`: a
6147
5842
  published source with a dimension or measure that carries no
6148
5843
  `#(classification)` while some field in the package does (one
6149
5844
  per source, `model` naming its file and `subject` the source;
@@ -6392,15 +6087,16 @@ components:
6392
6087
  reason:
6393
6088
  type: string
6394
6089
  description: >-
6395
- The bounded cause of a materialization finding, so a client
6396
- branches on it rather than on the message (whose wording may
6397
- change): the refusal record's `reason` on a `*-not-built`
6398
- warning; the served copy's reason on
6090
+ The bounded cause of a finding, so a client branches on it
6091
+ rather than on the message (whose wording may change): the
6092
+ refusal record's `reason` on a `*-not-built` warning; the served copy's reason on
6399
6093
  `served-copy-not-served`; the unread reason on
6400
6094
  `database-table-unread`; the kept table's reason on
6401
6095
  `table-kept`; the serve verdict's reason on a
6402
6096
  `materialization-*` verdict warning; `storage_mode` on
6403
- `materialization-storage-mode`. Always snake_case. An open
6097
+ `materialization-storage-mode`; the rule a cell breaks on
6098
+ `malloynb-cell-refused` (`off_surface`, `caller_annotation`,
6099
+ `required_filter`, `restricted_mode`, `compile_error`). Always snake_case. An open
6404
6100
  string; absent on a finding that has none.
6405
6101
  severity:
6406
6102
  type: string
@@ -6422,8 +6118,7 @@ components:
6422
6118
  findings use both: `error` for something that cannot work as
6423
6119
  written, such as a tile naming a view the source does not
6424
6120
  have, and `warn` for something that works but not as the
6425
- author probably intended, such as a dashboard name outside
6426
- the conventional shape. The two findings about Publisher rather than about
6121
+ author probably intended. The two findings about Publisher rather than about
6427
6122
  the package split across both: a file that carries an artifact
6428
6123
  tag and could not be read is `error`, because the dashboard it
6429
6124
  should have produced does not exist, and a lint that stopped
@@ -7322,9 +7017,10 @@ components:
7322
7017
  allOf:
7323
7018
  - $ref: "#/components/schemas/ReportCells"
7324
7019
  description: >-
7325
- For a `.malloynb`: its cells and model, each cell run with
7326
- execute-notebook-cell. Absent on a `.malloy` report, and on a
7327
- `.malloynb` that failed to compile.
7020
+ For a `.malloynb`: its cells and model, each code cell run
7021
+ through `POST …/models/{path}/query` with `givens`, using the
7022
+ report's `path` as the model. Absent on a `.malloy` report, and
7023
+ on a `.malloynb` that failed to compile.
7328
7024
 
7329
7025
  ReportTile:
7330
7026
  type: object
@@ -7446,8 +7142,9 @@ components:
7446
7142
  ReportCells:
7447
7143
  type: object
7448
7144
  description: >-
7449
- A `.malloynb`, or a linear `.malloy` report read as cells (its
7450
- definitions, then its tiles): its cells, unexecuted, and its model.
7145
+ A `.malloynb` read as cells: its cells, unexecuted, and its model.
7146
+ `GET …/reports/{path}` serves it for a `.malloynb` only; a `.malloy`
7147
+ report carries its manifest instead.
7451
7148
  properties:
7452
7149
  type:
7453
7150
  type: string
@@ -7462,11 +7159,11 @@ components:
7462
7159
  format:
7463
7160
  type: string
7464
7161
  enum: ["malloynb", "malloy"]
7465
- description:
7466
- The file format the notebook is written in. `malloynb` is the
7467
- cell-separated format; `malloy` is a linear `.malloy` report (see
7468
- list-reports), wherever it lives, whose cells are
7469
- its statements and its floating `(markdown)` notes in file order.
7162
+ description: >-
7163
+ The file format the notebook is written in. Always `malloynb`, the
7164
+ cell-separated format. `malloy`, a linear `.malloy` report read
7165
+ statement by statement, is no longer returned: no route serves a
7166
+ `.malloy` report as cells.
7470
7167
  malloyVersion:
7471
7168
  type: string
7472
7169
  description: Version of the Malloy compiler used to generate the notebook data
@@ -7481,30 +7178,23 @@ components:
7481
7178
  annotations:
7482
7179
  type: array
7483
7180
  description:
7484
- Array of file-level (##) annotations attached to the notebook. For
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.
7181
+ Array of file-level (##) annotations attached to the notebook.
7488
7182
  items:
7489
7183
  type: string
7490
7184
  startingGivens:
7491
7185
  allOf:
7492
7186
  - $ref: "#/components/schemas/EncodedGivenValues"
7493
7187
  description:
7494
- Starting values for the notebook's controls. A `.malloy` notebook
7495
- declares them in its artifact tag (`## artifact { givens { … } }`),
7496
- a `.malloynb` in its file-level tags (`## givens { … }`). URL
7497
- parameters override these, which is why the two share a shape.
7498
- Omitted when the notebook declares none.
7188
+ Starting values for the notebook's controls, from its file-level
7189
+ tags (`## givens { … }`). URL parameters override these. Omitted
7190
+ when the notebook declares none.
7499
7191
  autorun:
7500
7192
  type: boolean
7501
7193
  description:
7502
7194
  False batches control changes behind an Apply button instead of
7503
- re-running on every change. Defaults to true. A `.malloy` notebook
7504
- reads it from its artifact tag (`## artifact { autorun=false }`), a
7505
- `.malloynb` from its file-level tags (`## autorun=false`). The same
7506
- flag, with the same default, that `DashboardManifest.autorun`
7507
- carries.
7195
+ re-running on every change. Defaults to true. Read from the
7196
+ notebook's file-level tags (`## autorun=false`). The same flag, with
7197
+ the same default, that `DashboardManifest.autorun` carries.
7508
7198
  sources:
7509
7199
  type: array
7510
7200
  description: Sources defined in the notebook's model
@@ -7567,85 +7257,9 @@ components:
7567
7257
  content-driven app, which keeps content-height auto-sizing.
7568
7258
 
7569
7259
  # ── DEPRECATED ────────────────────────────────────────────────────────
7570
- # The shapes of the deprecated `…/dashboards*` and `…/notebooks*` routes.
7260
+ # The shapes the compile response's `manifest` still answers in.
7571
7261
  # No report schema references them; each removal deletes its block here.
7572
7262
 
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
7263
  DashboardManifest:
7650
7264
  type: object
7651
7265
  deprecated: true
@@ -7666,11 +7280,11 @@ components:
7666
7280
  name:
7667
7281
  type: string
7668
7282
  description: >-
7669
- The report's filename basename: a display label, and the segment of
7670
- the deprecated get-dashboard URL. Not an identity: two reports may
7671
- share it. A change since reports: it used to be unique within the
7672
- package (every dashboard was directly under `dashboards/`), and a
7673
- client that keyed a map on it must key on `path` instead.
7283
+ The report's filename basename: a display label. Not an identity:
7284
+ two reports may share it. A change since reports: it used to be
7285
+ unique within the package (every dashboard was directly under
7286
+ `dashboards/`), and a client that keyed a map on it must key on
7287
+ `path` instead.
7674
7288
  path:
7675
7289
  type: string
7676
7290
  description: |
@@ -7706,10 +7320,7 @@ components:
7706
7320
  deprecated: true
7707
7321
  description: >-
7708
7322
  DEPRECATED: read `layout`. The same thing in the old vocabulary:
7709
- `dashboard` for a grid report, `notebook` for a linear one. Always
7710
- `dashboard` on `GET …/dashboards/{dashboardName}`; a linear
7711
- report's manifest is the `dashboard` field of
7712
- `GET …/notebooks/{path}`.
7323
+ `dashboard` for a grid report, `notebook` for a linear one.
7713
7324
  tiles:
7714
7325
  type: array
7715
7326
  description: >-
@@ -7772,30 +7383,11 @@ components:
7772
7383
  DashboardTile:
7773
7384
  deprecated: true
7774
7385
  description: >-
7775
- DEPRECATED: `ReportTile`, under the name the deprecated dashboard
7386
+ DEPRECATED: `ReportTile`, under the name the removed dashboard
7776
7387
  routes gave it.
7777
7388
  allOf:
7778
7389
  - $ref: "#/components/schemas/ReportTile"
7779
7390
 
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
7391
  CompiledModel:
7800
7392
  type: object
7801
7393
  description: Compiled Malloy model with sources, queries, and metadata
@@ -8474,7 +8066,7 @@ components:
8474
8066
  The role it names: a surface's URL parameters and the starting values a
8475
8067
  document declares share this shape, so the two can merge and then be
8476
8068
  decoded once against the declarations and sent as `GivenValues`.
8477
- `RawNotebook.startingGivens` and `DashboardManifest.startingGivens` are
8069
+ `ReportCells.startingGivens` and `DashboardManifest.startingGivens` are
8478
8070
  both typed as it and both populated, so this schema now describes live
8479
8071
  traffic rather than only the contract. A `filter<…>` value is unwrapped
8480
8072
  to its body and every other type is published as declared, keyed on the
@@ -8706,17 +8298,21 @@ components:
8706
8298
  kind:
8707
8299
  type: string
8708
8300
  enum: ["markdown", "query", "definition"]
8709
- description:
8710
- What a cell is, on a `.malloy` notebook. A definition cell
8711
- (`source:`, `import`, `query:`, `given:`, `type:`, `export`) has type `code`
8712
- and produces no result. Absent on a `.malloynb`.
8301
+ description: >-
8302
+ What a cell is, on a cell of a compiled document
8303
+ (`CompileResult.document.cells`), where every cell is a definition:
8304
+ a `source:`, `import`, `query:`, `given:`, `type:` or `export`
8305
+ statement, with type `code`, that produces no result. Absent on a
8306
+ `.malloynb`'s cells. `markdown` and `query` are no longer returned:
8307
+ they marked a linear `.malloy` report's prose and query cells, which
8308
+ no route serves as cells now.
8713
8309
  text:
8714
8310
  type: string
8715
8311
  description: Text contents of the notebook cell (either markdown or Malloy code)
8716
8312
  markdown:
8717
8313
  type: string
8718
8314
  description:
8719
- On a `.malloy` notebook's code cell, the prose written on the
8315
+ On a compiled document's code cell, the prose written on the
8720
8316
  `(markdown)` route in its own tag lines (`#(markdown) text` lines,
8721
8317
  `#|(markdown)` … `|#` blocks), which `text` still contains. Blocks
8722
8318
  join with a blank line, adjacent lines with a newline. Author
@@ -8725,8 +8321,8 @@ components:
8725
8321
  proseLines:
8726
8322
  type: array
8727
8323
  description:
8728
- Present on every code cell of a `.malloy` notebook, and absent on
8729
- a `.malloynb` or from a server that predates it. The lines of
8324
+ Present on every code cell of a compiled document, and absent on
8325
+ a `.malloynb`'s cells or from a server that predates it. The lines of
8730
8326
  `text` that hold `markdown`, as `[start, end]` pairs in file order;
8731
8327
  `[]` when the cell has none. Lines are 0-based and inclusive,
8732
8328
  counted on `text` split at `\n`. Strip exactly these lines to get
@@ -8747,7 +8343,7 @@ components:
8747
8343
  codeLine:
8748
8344
  type: integer
8749
8345
  description:
8750
- Present on every code cell of a `.malloy` notebook, as `proseLines`
8346
+ Present on every code cell of a compiled document, as `proseLines`
8751
8347
  is. The 0-based line of `text` (split at `\n`) where the
8752
8348
  statement's code starts, its first token that is neither a note nor
8753
8349
  a comment, so the `source`, `run`, `given` or `import` keyword sits
@@ -8755,7 +8351,7 @@ components:
8755
8351
  caption:
8756
8352
  type: string
8757
8353
  description:
8758
- On a `.malloy` notebook's code cell, the joined text of its leading
8354
+ On a compiled document's code cell, the joined text of its leading
8759
8355
  `#"` lines (space-joined, trimmed). Author prose, so it is served
8760
8356
  even when `queryInfo` is withheld. Absent when the cell has none,
8761
8357
  which is authoritative wherever `proseLines` is present.
@@ -8772,52 +8368,21 @@ components:
8772
8368
  JSON string containing QueryInfo object for the query in this cell
8773
8369
  (if the cell contains a query). On a package with a surface, left out
8774
8370
  for a cell whose query reads a source the notebook may not read.
8775
-
8776
- NotebookCellResult:
8777
- type: object
8778
- description: Result of executing a notebook cell
8779
- properties:
8780
- type:
8781
- type: string
8782
- enum: ["markdown", "code"]
8783
- description: Type of notebook cell
8784
- kind:
8785
- type: string
8786
- enum: ["markdown", "query", "definition"]
8787
- description: The cell's kind, on a `.malloy` notebook. Absent on a `.malloynb`.
8788
- text:
8789
- type: string
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
8371
+ runQuery:
8372
+ type: string
8373
+ description: >-
8374
+ On a `.malloynb` code cell, the text to send as `query` to
8375
+ `POST …/models/{path}/query`, with the notebook's own path as the
8376
+ model, to run the cell. It is the cell's last top-level `run:`
8377
+ statement, up to the next top-level statement or `;`, with the
8378
+ render tags written above it: the `#` lines and `#|` … `|#` blocks
8379
+ between the statement before it and the `run:`, and any comment
8380
+ among them. A `##` line or `##|` block, the notebook's own, ends
8381
+ them. The cell's imports and declarations are left out, since the
8382
+ notebook's path compiles every cell. Read by Publisher's own lexer,
8383
+ so a `run:` in a comment, a string or a block annotation does not
8384
+ count. Absent on a markdown cell, on a code cell with no `run:`, on
8385
+ a compiled document's cells, and from a server that predates it.
8821
8386
 
8822
8387
  QueryMetadata:
8823
8388
  type: object
@@ -10630,9 +10195,15 @@ components:
10630
10195
  reload over every .malloy and .malloynb file, without swapping the
10631
10196
  result into the served package; with a source, importers compile
10632
10197
  against the replacement. It also reports the render-tag findings
10633
- (code "render-tag") and the dashboard, given and drill findings
10634
- (code "dashboard-lint") a reload would put on the package's
10635
- warnings, at their own severity and with no position, and the
10198
+ (code "render-tag"), the dashboard, given and drill findings
10199
+ (code "dashboard-lint") and each .malloynb code cell the query
10200
+ route would refuse (code "malloynb-cell-refused", at most 10 per
10201
+ notebook and 50 per package, with the rest named in
10202
+ "malloynb-cells-unlisted" summaries, one per notebook that lists
10203
+ some and one for the notebooks past the package limit, and
10204
+ "malloynb-cell-check-failed" for a notebook that could not be
10205
+ checked) a reload would put on the package's warnings, at their own severity and with no
10206
+ position, and the
10636
10207
  load's verdict on the materialization annotations: each line a
10637
10208
  load fails with as an error with its code, each annotation the
10638
10209
  load leaves unbuilt as a warning ("file" reports the same verdict
@@ -12194,6 +11765,24 @@ components:
12194
11765
  content address): a stored upstream is stacked on in its
12195
11766
  destination, and never rendered into warehouse SQL. Optional and
12196
11767
  additive: a reference without it still serves a database upstream.
11768
+ nativeSchema:
11769
+ type: array
11770
+ description: >-
11771
+ For a database upstream (no `storageDestinationName`): the
11772
+ `nativeSchema` the upstream's build reported on its manifest
11773
+ entry, sent back as it came. Before a build reads the referenced
11774
+ table in place of its source, it reads the table's columns from
11775
+ the warehouse and compares each with this type (case and spacing
11776
+ aside). If a column was retyped or dropped since, or cannot be
11777
+ read, a strict build is refused and any other build recomputes
11778
+ the upstream from its definition. Without it nothing can be
11779
+ checked: a strict build reads the table unchecked, with a warning
11780
+ and a count (`publisher_materialization_upstream_recompute_total`,
11781
+ `reason="reference_types_unrecorded"`), and any other build
11782
+ recomputes the upstream. Ignored for a `storage=` upstream: omit
11783
+ it there. Optional and additive.
11784
+ items:
11785
+ $ref: "#/components/schemas/Column"
12197
11786
 
12198
11787
  BuildInstruction:
12199
11788
  type: object
@@ -12724,8 +12313,12 @@ components:
12724
12313
  handed by reference; for a database build, an upstream that
12725
12314
  landed in a `storage=` destination; for a `storage=` build, a
12726
12315
  source that reaches the warehouse through a non-persisted source,
12727
- or whose shape does not compile in the destination.
12728
- `upstreamRecomputeReason` says which. Such a table reflects the
12316
+ or whose shape does not compile in the destination; on the
12317
+ database tier, an upstream whose table holds other columns than
12318
+ its build recorded (retyped or dropped since), could not be read,
12319
+ or whose build recorded no column types; and always, for a
12320
+ persisted view or named query, which builds from its source's
12321
+ definition. `upstreamRecomputeReason` says which. Such a table reflects the
12729
12322
  warehouse at THIS build's time rather than the upstream's
12730
12323
  snapshot, so the two can disagree when their refresh cadences
12731
12324
  differ.
@@ -12735,8 +12328,10 @@ components:
12735
12328
  way to build and no choice to report.
12736
12329
 
12737
12330
  A database rollup reports what its build actually read: `reused`
12738
- only when it built from its base's materialized table, and absent
12739
- when it built from the warehouse, even over a persisted base. Before
12331
+ only when it built from its base's materialized table, `recomputed`
12332
+ when it could not because that table holds other columns than its
12333
+ build recorded, could not be read, or recorded no column types,
12334
+ and absent when it built from the warehouse for any other reason. Before
12740
12335
  0.15.0 every rollup over a persisted base reported `reused`. A
12741
12336
  `storage=` rollup reports `reused` only when it stacked on a stored
12742
12337
  table.
@@ -12875,9 +12470,8 @@ components:
12875
12470
  true }`, which is for authoring servers. Without it the argument is not
12876
12471
  in the tool's schema and is ignored if sent, so an agent answering
12877
12472
  questions stays on the curated surface.
12878
- This route is not affected by that setting. The notebook-cell route, the dashboards
12879
- route, the other MCP tools, and the legacy `/projects/...` aliases of
12880
- these routes ignore it.
12473
+ This route is not affected by that setting. The other MCP tools and the
12474
+ legacy `/projects/...` aliases of these routes ignore it.
12881
12475
 
12882
12476
  Like every route on this server, it is unauthenticated. A deployment
12883
12477
  that authenticates in front of Publisher decides who may send it, and