@malloy-publisher/sdk 0.8.0 → 0.8.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 (40) hide show
  1. package/dist/{DocumentStorage-D7yF4_T3.cjs.js → DocumentStorage-B0_YgSzt.cjs.js} +32 -32
  2. package/dist/{DocumentStorage-BypSIWDg.es.js → DocumentStorage-BZqn0x5r.es.js} +3826 -3741
  3. package/dist/{RenderedResult-ChkvK7b2.cjs.js → RenderedResult-Bu25oAAr.cjs.js} +1 -1
  4. package/dist/{RenderedResult-CYyhQekT.es.js → RenderedResult-DKOl0FQ8.es.js} +2 -2
  5. package/dist/{ServerProvider-AsUiy22k.es.js → ServerProvider-CfUFleYe.es.js} +24 -24
  6. package/dist/builder/index.cjs.js +31 -31
  7. package/dist/builder/index.es.js +1167 -1142
  8. package/dist/client/api.d.ts +36 -30
  9. package/dist/client/index.es.js +1 -1
  10. package/dist/components/Dashboard/ExploreDialog.d.ts +3 -1
  11. package/dist/components/DashboardBuilder/catalog.d.ts +18 -0
  12. package/dist/components/Model/Model.d.ts +10 -3
  13. package/dist/components/Model/ModelExplorer.d.ts +21 -1
  14. package/dist/components/Model/ModelExplorerDialog.d.ts +4 -1
  15. package/dist/components/Model/SourcesExplorer.d.ts +8 -1
  16. package/dist/components/Model/index.d.ts +1 -0
  17. package/dist/components/Model/runGate.d.ts +19 -0
  18. package/dist/components/Notebook/NotebookCell.d.ts +10 -1
  19. package/dist/index.cjs.js +13 -13
  20. package/dist/index.es.js +3754 -3732
  21. package/package.json +1 -1
  22. package/src/components/Dashboard/Dashboard.spec.tsx +58 -2
  23. package/src/components/Dashboard/Dashboard.tsx +8 -1
  24. package/src/components/Dashboard/ExploreDialog.tsx +5 -0
  25. package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +6 -1
  26. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +60 -30
  27. package/src/components/DashboardBuilder/DashboardEditor.tsx +35 -16
  28. package/src/components/DashboardBuilder/catalog.spec.ts +44 -0
  29. package/src/components/DashboardBuilder/catalog.ts +36 -0
  30. package/src/components/Model/Model.tsx +28 -1
  31. package/src/components/Model/ModelExplorer.spec.tsx +404 -0
  32. package/src/components/Model/ModelExplorer.tsx +65 -2
  33. package/src/components/Model/ModelExplorerDialog.tsx +12 -0
  34. package/src/components/Model/SourcesExplorer.tsx +70 -15
  35. package/src/components/Model/index.ts +1 -0
  36. package/src/components/Model/runGate.spec.ts +102 -0
  37. package/src/components/Model/runGate.ts +67 -0
  38. package/src/components/Notebook/Notebook.spec.tsx +67 -3
  39. package/src/components/Notebook/Notebook.tsx +12 -2
  40. package/src/components/Notebook/NotebookCell.tsx +26 -7
@@ -1,4 +1,4 @@
1
- "use strict";var ge=Object.create;var le=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var xe=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of we(r))!Re.call(e,o)&&o!==t&&le(e,o,{get:()=>r[o],enumerable:!(a=ve(r,o))||a.enumerable});return e};var G=(e,r,t)=>(t=e!=null?ge(ke(e)):{},xe(r||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e));const I=require("react/jsx-runtime"),U=require("@mui/material"),p=require("react"),g=require("./DocumentStorage-D7yF4_T3.cjs.js"),X=require("./ServerProvider-CuYLH_Yi.cjs.js"),v="publisher-drill";function de(e,r){const t=new Set;let a;try{a=e.getMetadata()?.getAllFields()??[]}catch{return t}const o=new Set;for(const n of a)!n||r(n)||n.tag?.tag("hidden")===void 0&&o.add(n.tag?.text("label")??n.name);for(const n of a){if(!n||!r(n))continue;const l=n.tag?.text("label")??n.name;o.has(l)||t.add(l)}return t}function B(e){const r=/^\s*(\d+)/.exec(e.style?.gridColumn??"");return r?r[1]:void 0}function ce(e,r){if(r.size!==0)for(const t of e.querySelectorAll(".malloy-table")){const a=l=>l.closest(".malloy-table")===t,o=new Set;for(const l of t.querySelectorAll(".column-cell.th")){if(!a(l))continue;const s=(l.textContent??"").replace(/\u200b/g,"").trim(),y=B(l);y&&r.has(s)&&o.add(y)}if(o.size===0)continue;const n=new Set;for(const l of t.querySelectorAll(`.${v}[tabindex="0"]`)){if(!a(l))continue;const s=B(l);s&&(n.has(s)?l.tabIndex=-1:n.add(s))}for(const l of t.querySelectorAll(".column-cell.td")){if(!a(l))continue;const s=B(l),y=!l.querySelector(".value-null")&&(l.textContent??"").trim()!=="";if(s&&y&&o.has(s)&&!l.querySelector(".malloy-table")){if(l.classList.add(v),l.tabIndex===0)n.add(s);else{const h=n.has(s);h||n.add(s),l.tabIndex=h?-1:0}l.setAttribute("role","button")}}}}function Ce(e){const r=e.closest(".malloy-table"),t=B(e);return!r||!t?[]:Array.from(r.querySelectorAll(`.${v}`)).filter(a=>a.closest(".malloy-table")===r&&B(a)===t)}function ie(e,r){const t=Ce(e),a=t.indexOf(e);if(a===-1)return;const o=r==="first"?t[0]:r==="last"?t[t.length-1]:t[Math.min(Math.max(a+r,0),t.length-1)];if(o){for(const n of t)n.tabIndex=n===o?0:-1;return o}}function ue(e){return{background:e.dashboardRoot,tableBackground:e.tableBackground,tableHeaderColor:e.tableHeader,tableBodyColor:e.tableBody,tableBorder:e.border,tablePinnedBackground:e.tableHeaderBackground,tablePinnedBorder:e.pinnedBorder,tableFontSize:`${e.font.size}px`,fontFamily:e.font.family,mapColor:e.mapColor}}function he(e){const{foreground:r,axisFaint:t,font:a}=e,o={background:e.background,font:a.family,title:{color:r,font:a.family},axis:{labelColor:r,titleColor:r,domainColor:t,tickColor:t,gridColor:t,labelFont:a.family,titleFont:a.family},legend:{labelColor:r,titleColor:r,labelFont:a.family,titleFont:a.family},header:{labelColor:r,titleColor:r},range:{category:e.series}};return n=>o}function me(e){if(!e)return;const r=e.tag("theme");if(!r)return;const t={},a=r.tag("palette");if(a){const n={},l=a.textArray("series");l&&l.length>0&&(n.series=l);for(const s of X.PER_MODE_COLOR_KEYS){const y=a.tag(s);if(!y)continue;const h={},k=y.text("light"),E=y.text("dark");k&&(h.light=k),E&&(h.dark=E),Object.keys(h).length>0&&(n[s]=h)}Object.keys(n).length>0&&(t.palette=n)}const o=r.tag("font");if(o){const n={},l=o.text("family");l&&(n.family=l);const s=o.numeric("size");typeof s=="number"&&Number.isFinite(s)&&(n.size=s),Object.keys(n).length>0&&(t.font=n)}return Object.keys(t).length>0?t:void 0}const Ee=async(e,r)=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:t}=await import("@malloydata/render");return new t({onClick:r,vegaConfigOverride:he(e),theme:ue(e),onError:o=>{console.error("Error rendering visualization:",typeof o,o)}}).createViz()};typeof window<"u"&&import("@malloydata/render");async function Se(e){if(!e||typeof e!="object")return;const r=e,t=[...Array.isArray(r.model_annotations)?r.model_annotations:[],...Array.isArray(r.source_annotations)?r.source_annotations:[],...Array.isArray(r.annotations)?r.annotations:[]].map(o=>typeof o?.value=="string"?o.value:void 0).filter(o=>!!o);if(t.length===0)return;let a;try{({parseAnnotation:a}=await import("@malloydata/malloy-tag"))}catch{return}try{const{tag:o}=a(t);return me(o)}catch(o){console.warn("Failed to parse # theme.* annotations; chart will render with the shell theme.",{error:o,lines:t});return}}function Ae(e,r,t){const a=g.buildTableCssVars(r,t);for(const[o,n]of Object.entries(a))e.style.setProperty(o,n)}const De=`
1
+ "use strict";var ge=Object.create;var le=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var xe=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of we(r))!Re.call(e,o)&&o!==t&&le(e,o,{get:()=>r[o],enumerable:!(a=ve(r,o))||a.enumerable});return e};var G=(e,r,t)=>(t=e!=null?ge(ke(e)):{},xe(r||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e));const I=require("react/jsx-runtime"),U=require("@mui/material"),p=require("react"),g=require("./DocumentStorage-B0_YgSzt.cjs.js"),X=require("./ServerProvider-CuYLH_Yi.cjs.js"),v="publisher-drill";function de(e,r){const t=new Set;let a;try{a=e.getMetadata()?.getAllFields()??[]}catch{return t}const o=new Set;for(const n of a)!n||r(n)||n.tag?.tag("hidden")===void 0&&o.add(n.tag?.text("label")??n.name);for(const n of a){if(!n||!r(n))continue;const l=n.tag?.text("label")??n.name;o.has(l)||t.add(l)}return t}function B(e){const r=/^\s*(\d+)/.exec(e.style?.gridColumn??"");return r?r[1]:void 0}function ce(e,r){if(r.size!==0)for(const t of e.querySelectorAll(".malloy-table")){const a=l=>l.closest(".malloy-table")===t,o=new Set;for(const l of t.querySelectorAll(".column-cell.th")){if(!a(l))continue;const s=(l.textContent??"").replace(/\u200b/g,"").trim(),y=B(l);y&&r.has(s)&&o.add(y)}if(o.size===0)continue;const n=new Set;for(const l of t.querySelectorAll(`.${v}[tabindex="0"]`)){if(!a(l))continue;const s=B(l);s&&(n.has(s)?l.tabIndex=-1:n.add(s))}for(const l of t.querySelectorAll(".column-cell.td")){if(!a(l))continue;const s=B(l),y=!l.querySelector(".value-null")&&(l.textContent??"").trim()!=="";if(s&&y&&o.has(s)&&!l.querySelector(".malloy-table")){if(l.classList.add(v),l.tabIndex===0)n.add(s);else{const h=n.has(s);h||n.add(s),l.tabIndex=h?-1:0}l.setAttribute("role","button")}}}}function Ce(e){const r=e.closest(".malloy-table"),t=B(e);return!r||!t?[]:Array.from(r.querySelectorAll(`.${v}`)).filter(a=>a.closest(".malloy-table")===r&&B(a)===t)}function ie(e,r){const t=Ce(e),a=t.indexOf(e);if(a===-1)return;const o=r==="first"?t[0]:r==="last"?t[t.length-1]:t[Math.min(Math.max(a+r,0),t.length-1)];if(o){for(const n of t)n.tabIndex=n===o?0:-1;return o}}function ue(e){return{background:e.dashboardRoot,tableBackground:e.tableBackground,tableHeaderColor:e.tableHeader,tableBodyColor:e.tableBody,tableBorder:e.border,tablePinnedBackground:e.tableHeaderBackground,tablePinnedBorder:e.pinnedBorder,tableFontSize:`${e.font.size}px`,fontFamily:e.font.family,mapColor:e.mapColor}}function he(e){const{foreground:r,axisFaint:t,font:a}=e,o={background:e.background,font:a.family,title:{color:r,font:a.family},axis:{labelColor:r,titleColor:r,domainColor:t,tickColor:t,gridColor:t,labelFont:a.family,titleFont:a.family},legend:{labelColor:r,titleColor:r,labelFont:a.family,titleFont:a.family},header:{labelColor:r,titleColor:r},range:{category:e.series}};return n=>o}function me(e){if(!e)return;const r=e.tag("theme");if(!r)return;const t={},a=r.tag("palette");if(a){const n={},l=a.textArray("series");l&&l.length>0&&(n.series=l);for(const s of X.PER_MODE_COLOR_KEYS){const y=a.tag(s);if(!y)continue;const h={},k=y.text("light"),E=y.text("dark");k&&(h.light=k),E&&(h.dark=E),Object.keys(h).length>0&&(n[s]=h)}Object.keys(n).length>0&&(t.palette=n)}const o=r.tag("font");if(o){const n={},l=o.text("family");l&&(n.family=l);const s=o.numeric("size");typeof s=="number"&&Number.isFinite(s)&&(n.size=s),Object.keys(n).length>0&&(t.font=n)}return Object.keys(t).length>0?t:void 0}const Ee=async(e,r)=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:t}=await import("@malloydata/render");return new t({onClick:r,vegaConfigOverride:he(e),theme:ue(e),onError:o=>{console.error("Error rendering visualization:",typeof o,o)}}).createViz()};typeof window<"u"&&import("@malloydata/render");async function Se(e){if(!e||typeof e!="object")return;const r=e,t=[...Array.isArray(r.model_annotations)?r.model_annotations:[],...Array.isArray(r.source_annotations)?r.source_annotations:[],...Array.isArray(r.annotations)?r.annotations:[]].map(o=>typeof o?.value=="string"?o.value:void 0).filter(o=>!!o);if(t.length===0)return;let a;try{({parseAnnotation:a}=await import("@malloydata/malloy-tag"))}catch{return}try{const{tag:o}=a(t);return me(o)}catch(o){console.warn("Failed to parse # theme.* annotations; chart will render with the shell theme.",{error:o,lines:t});return}}function Ae(e,r,t){const a=g.buildTableCssVars(r,t);for(const[o,n]of Object.entries(a))e.style.setProperty(o,n)}const De=`
2
2
  /* Card geometry, through the renderer's OWN theme vars rather than over the top
3
3
  of them. It declares --malloy-theme--dashboard-* on .malloy-render itself and
4
4
  passes each through to the --malloy-render--* the card CSS reads, so a value
@@ -1,8 +1,8 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
2
  import { Box as oe, useTheme as ce } from "@mui/material";
3
3
  import { Suspense as ue, useRef as z, useCallback as he, useMemo as me, useEffect as be, useLayoutEffect as fe } from "react";
4
- import { D as ye, r as K, b as pe, a as ge, m as ve, c as we, d as ae } from "./DocumentStorage-BypSIWDg.es.js";
5
- import { aD as ke, aE as Ce, aF as xe } from "./ServerProvider-AsUiy22k.es.js";
4
+ import { D as ye, r as K, b as pe, a as ge, m as ve, c as we, d as ae } from "./DocumentStorage-BZqn0x5r.es.js";
5
+ import { aD as ke, aE as Ce, aF as xe } from "./ServerProvider-CfUFleYe.es.js";
6
6
  const g = "publisher-drill";
7
7
  function Re(e, r) {
8
8
  const t = /* @__PURE__ */ new Set();
@@ -1562,7 +1562,7 @@ const ke = function(c) {
1562
1562
  * @summary Get a dashboard manifest
1563
1563
  * @param {string} environmentName Name of the environment
1564
1564
  * @param {string} packageName Name of the package
1565
- * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1565
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1566
1566
  * @param {string} [versionId] Version identifier for the package
1567
1567
  * @param {*} [options] Override http request option.
1568
1568
  * @throws {RequiredError}
@@ -1581,7 +1581,7 @@ const ke = function(c) {
1581
1581
  };
1582
1582
  },
1583
1583
  /**
1584
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
1584
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
1585
1585
  * @summary List package dashboards
1586
1586
  * @param {string} environmentName Name of the environment
1587
1587
  * @param {string} packageName Name of the package
@@ -1611,7 +1611,7 @@ const ke = function(c) {
1611
1611
  * @summary Get a dashboard manifest
1612
1612
  * @param {string} environmentName Name of the environment
1613
1613
  * @param {string} packageName Name of the package
1614
- * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1614
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1615
1615
  * @param {string} [versionId] Version identifier for the package
1616
1616
  * @param {*} [options] Override http request option.
1617
1617
  * @throws {RequiredError}
@@ -1621,7 +1621,7 @@ const ke = function(c) {
1621
1621
  return (d, p) => O(s, h, g, c)(d, i || p);
1622
1622
  },
1623
1623
  /**
1624
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
1624
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
1625
1625
  * @summary List package dashboards
1626
1626
  * @param {string} environmentName Name of the environment
1627
1627
  * @param {string} packageName Name of the package
@@ -1642,7 +1642,7 @@ const ke = function(c) {
1642
1642
  * @summary Get a dashboard manifest
1643
1643
  * @param {string} environmentName Name of the environment
1644
1644
  * @param {string} packageName Name of the package
1645
- * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1645
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1646
1646
  * @param {string} [versionId] Version identifier for the package
1647
1647
  * @param {*} [options] Override http request option.
1648
1648
  * @throws {RequiredError}
@@ -1651,7 +1651,7 @@ const ke = function(c) {
1651
1651
  return r.getDashboard(a, t, o, s, l).then((i) => i(e, n));
1652
1652
  },
1653
1653
  /**
1654
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
1654
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
1655
1655
  * @summary List package dashboards
1656
1656
  * @param {string} environmentName Name of the environment
1657
1657
  * @param {string} packageName Name of the package
@@ -1670,7 +1670,7 @@ class Ce extends I {
1670
1670
  * @summary Get a dashboard manifest
1671
1671
  * @param {string} environmentName Name of the environment
1672
1672
  * @param {string} packageName Name of the package
1673
- * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1673
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
1674
1674
  * @param {string} [versionId] Version identifier for the package
1675
1675
  * @param {*} [options] Override http request option.
1676
1676
  * @throws {RequiredError}
@@ -1680,7 +1680,7 @@ class Ce extends I {
1680
1680
  return z(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1681
1681
  }
1682
1682
  /**
1683
- * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
1683
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
1684
1684
  * @summary List package dashboards
1685
1685
  * @param {string} environmentName Name of the environment
1686
1686
  * @param {string} packageName Name of the package
@@ -2468,7 +2468,7 @@ const ot = {
2468
2468
  };
2469
2469
  },
2470
2470
  /**
2471
- * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
2471
+ * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
2472
2472
  * @summary Execute Malloy query
2473
2473
  * @param {string} environmentName Name of the environment
2474
2474
  * @param {string} packageName Name of the package
@@ -2491,7 +2491,7 @@ const ot = {
2491
2491
  };
2492
2492
  },
2493
2493
  /**
2494
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications.
2494
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets. Dashboard files are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; a dashboard\'s text is always returned.
2495
2495
  * @summary Get compiled Malloy model
2496
2496
  * @param {string} environmentName Name of the environment
2497
2497
  * @param {string} packageName Name of the package
@@ -2578,7 +2578,7 @@ const ot = {
2578
2578
  return (d, p) => O(s, h, g, c)(d, i || p);
2579
2579
  },
2580
2580
  /**
2581
- * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
2581
+ * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
2582
2582
  * @summary Execute Malloy query
2583
2583
  * @param {string} environmentName Name of the environment
2584
2584
  * @param {string} packageName Name of the package
@@ -2592,7 +2592,7 @@ const ot = {
2592
2592
  return (d, p) => O(s, h, g, c)(d, i || p);
2593
2593
  },
2594
2594
  /**
2595
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications.
2595
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets. Dashboard files are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; a dashboard\'s text is always returned.
2596
2596
  * @summary Get compiled Malloy model
2597
2597
  * @param {string} environmentName Name of the environment
2598
2598
  * @param {string} packageName Name of the package
@@ -2651,7 +2651,7 @@ const ot = {
2651
2651
  return r.compileModelSource(a, t, o, s, l).then((i) => i(e, n));
2652
2652
  },
2653
2653
  /**
2654
- * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
2654
+ * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
2655
2655
  * @summary Execute Malloy query
2656
2656
  * @param {string} environmentName Name of the environment
2657
2657
  * @param {string} packageName Name of the package
@@ -2664,7 +2664,7 @@ const ot = {
2664
2664
  return r.executeQueryModel(a, t, o, s, l).then((i) => i(e, n));
2665
2665
  },
2666
2666
  /**
2667
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications.
2667
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets. Dashboard files are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; a dashboard\'s text is always returned.
2668
2668
  * @summary Get compiled Malloy model
2669
2669
  * @param {string} environmentName Name of the environment
2670
2670
  * @param {string} packageName Name of the package
@@ -2720,7 +2720,7 @@ class Me extends I {
2720
2720
  return U(this.configuration).compileModelSource(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2721
2721
  }
2722
2722
  /**
2723
- * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
2723
+ * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
2724
2724
  * @summary Execute Malloy query
2725
2725
  * @param {string} environmentName Name of the environment
2726
2726
  * @param {string} packageName Name of the package
@@ -2734,7 +2734,7 @@ class Me extends I {
2734
2734
  return U(this.configuration).executeQueryModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2735
2735
  }
2736
2736
  /**
2737
- * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications.
2737
+ * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets. Dashboard files are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; a dashboard\'s text is always returned.
2738
2738
  * @summary Get compiled Malloy model
2739
2739
  * @param {string} environmentName Name of the environment
2740
2740
  * @param {string} packageName Name of the package
@@ -2779,7 +2779,7 @@ class Me extends I {
2779
2779
  const fe = function(c) {
2780
2780
  return {
2781
2781
  /**
2782
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2782
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
2783
2783
  * @summary Execute a specific notebook cell
2784
2784
  * @param {string} environmentName Name of the environment
2785
2785
  * @param {string} packageName Name of the package
@@ -2806,7 +2806,7 @@ const fe = function(c) {
2806
2806
  };
2807
2807
  },
2808
2808
  /**
2809
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2809
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
2810
2810
  * @summary Get Malloy notebook cells
2811
2811
  * @param {string} environmentName Name of the environment
2812
2812
  * @param {string} packageName Name of the package
@@ -2855,7 +2855,7 @@ const fe = function(c) {
2855
2855
  const n = fe(c);
2856
2856
  return {
2857
2857
  /**
2858
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2858
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
2859
2859
  * @summary Execute a specific notebook cell
2860
2860
  * @param {string} environmentName Name of the environment
2861
2861
  * @param {string} packageName Name of the package
@@ -2873,7 +2873,7 @@ const fe = function(c) {
2873
2873
  return (E, A) => O(p, h, g, c)(E, k || A);
2874
2874
  },
2875
2875
  /**
2876
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2876
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
2877
2877
  * @summary Get Malloy notebook cells
2878
2878
  * @param {string} environmentName Name of the environment
2879
2879
  * @param {string} packageName Name of the package
@@ -2904,7 +2904,7 @@ const fe = function(c) {
2904
2904
  const r = Q(c);
2905
2905
  return {
2906
2906
  /**
2907
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2907
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
2908
2908
  * @summary Execute a specific notebook cell
2909
2909
  * @param {string} environmentName Name of the environment
2910
2910
  * @param {string} packageName Name of the package
@@ -2921,7 +2921,7 @@ const fe = function(c) {
2921
2921
  return r.executeNotebookCell(a, t, o, s, l, i, d, p, u).then((k) => k(e, n));
2922
2922
  },
2923
2923
  /**
2924
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2924
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
2925
2925
  * @summary Get Malloy notebook cells
2926
2926
  * @param {string} environmentName Name of the environment
2927
2927
  * @param {string} packageName Name of the package
@@ -2949,7 +2949,7 @@ const fe = function(c) {
2949
2949
  };
2950
2950
  class Be extends I {
2951
2951
  /**
2952
- * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2952
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
2953
2953
  * @summary Execute a specific notebook cell
2954
2954
  * @param {string} environmentName Name of the environment
2955
2955
  * @param {string} packageName Name of the package
@@ -2967,7 +2967,7 @@ class Be extends I {
2967
2967
  return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, l, i).then((d) => d(this.axios, this.basePath));
2968
2968
  }
2969
2969
  /**
2970
- * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2970
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
2971
2971
  * @summary Get Malloy notebook cells
2972
2972
  * @param {string} environmentName Name of the environment
2973
2973
  * @param {string} packageName Name of the package