@malloy-publisher/app 0.11.0 → 0.11.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 (2) hide show
  1. package/dist/api-doc.yaml +58 -0
  2. package/package.json +2 -2
package/dist/api-doc.yaml CHANGED
@@ -5365,6 +5365,37 @@ components:
5365
5365
  Fetch one with `GET .../agents/{agentName}`.
5366
5366
  items:
5367
5367
  $ref: "#/components/schemas/AgentSummary"
5368
+ secureGivens:
5369
+ type: array
5370
+ readOnly: true
5371
+ description: >-
5372
+ Server-computed, read-only: every `#(secure)` given the package's
5373
+ compiled models surface, so a host that sets those values learns
5374
+ which ones to set from the load response without compiling the
5375
+ package itself.
5376
+
5377
+
5378
+ Collected from every `.malloy` model and `.malloynb` notebook in
5379
+ the package, files outside `explores` included. A model's givens
5380
+ are the ones its `CompiledModel.givens` reports, so a given
5381
+ declared in one file and imported by another is listed under both;
5382
+ a notebook's are those of the model its cells build up to. One
5383
+ entry per distinct `name` and `type`, sorted by `name` then `type`;
5384
+ a name declared with two types is two entries. It always describes
5385
+ the models the package is serving now, so a reload that changes
5386
+ them changes it.
5387
+
5388
+
5389
+ Present, possibly empty, on a loaded package whose every model and
5390
+ notebook compiled, so `[]` means the package declares no secure
5391
+ given. Absent when the list cannot be known to be complete: when
5392
+ any model or notebook in the package failed to compile (a reload
5393
+ keeps serving the files that did), or when the server does not
5394
+ report it, as on a listing entry for a package that is not loaded.
5395
+ Treat absent as unknown, never as none. It cannot be set: a PATCH
5396
+ body carrying it is ignored.
5397
+ items:
5398
+ $ref: "#/components/schemas/SecureGivenSummary"
5368
5399
 
5369
5400
  AgentSchedule:
5370
5401
  type: object
@@ -6571,6 +6602,33 @@ components:
6571
6602
  Malloy data type of the dimension (e.g. string, number, boolean,
6572
6603
  date, timestamp)
6573
6604
 
6605
+ SecureGivenSummary:
6606
+ type: object
6607
+ readOnly: true
6608
+ description: >-
6609
+ One `#(secure)` given in a package's `secureGivens`: a given whose
6610
+ value the host sets, and the model files that surface it.
6611
+ required:
6612
+ - name
6613
+ - type
6614
+ - modelPaths
6615
+ properties:
6616
+ name:
6617
+ type: string
6618
+ description: Name as declared in the model.
6619
+ type:
6620
+ type: string
6621
+ description: >-
6622
+ The given's type, rendered exactly as `Given.type` renders it
6623
+ (e.g. `string`, `number`, `string[]`, `filter<string>`).
6624
+ modelPaths:
6625
+ type: array
6626
+ description: >-
6627
+ Package-relative paths of the `.malloy` models and `.malloynb`
6628
+ notebooks whose compiled givens include this given, the declaring
6629
+ file and every file that imports it alike. Sorted, no duplicates.
6630
+ items:
6631
+ type: string
6574
6632
  Given:
6575
6633
  type: object
6576
6634
  description: |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/app",
3
3
  "description": "Malloy Publisher Console (the built-in web UI)",
4
- "version": "0.11.0",
4
+ "version": "0.11.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",
@@ -42,7 +42,7 @@
42
42
  "test:playwright:headed": "bunx playwright test --config=playwright.config.ts --headed"
43
43
  },
44
44
  "dependencies": {
45
- "@malloy-publisher/sdk": "^0.11.0",
45
+ "@malloy-publisher/sdk": "^0.11.2",
46
46
  "@mui/icons-material": "^7.0.2",
47
47
  "@mui/material": "^7.0.2",
48
48
  "@tanstack/react-query": "^5.59.16",