@malloy-publisher/sdk 0.9.5 → 0.9.7

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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as L } from "react/jsx-runtime";
2
2
  import { Box as ne, useTheme as he } from "@mui/material";
3
3
  import { Suspense as me, useRef as F, useCallback as be, useMemo as fe, useEffect as ye, useLayoutEffect as pe } from "react";
4
- import { D as ge, r as U, l as ve, a as we, b as ke, c as xe, m as Ce, d as Re, e as le } from "./useCompiledDocument-0sxonf6N.es.js";
5
- import { aN as Ee, aL as Se, aO as Ae } from "./ServerProvider-C6QQVKPm.es.js";
4
+ import { D as ge, r as U, l as ve, a as we, b as ke, c as xe, m as Ce, d as Re, e as le } from "./useCompiledDocument-Bf72Ob5v.es.js";
5
+ import { aN as Ee, aL as Se, aO as Ae } from "./ServerProvider-DnLLeXEX.es.js";
6
6
  const g = "publisher-drill";
7
7
  function Te(e, r) {
8
8
  const t = /* @__PURE__ */ new Set();
@@ -2590,7 +2590,7 @@ const xt = {
2590
2590
  * @param {string} packageName Name of the package
2591
2591
  * @param {string} path Path to the model within the package
2592
2592
  * @param {QueryRequest} queryRequest
2593
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2593
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2594
2594
  * @param {*} [options] Override http request option.
2595
2595
  * @throws {RequiredError}
2596
2596
  */
@@ -2614,7 +2614,7 @@ const xt = {
2614
2614
  * @param {string} packageName Name of the package
2615
2615
  * @param {string} path Path to the model within the package
2616
2616
  * @param {string} [versionId] Version identifier for the package
2617
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2617
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2618
2618
  * @param {*} [options] Override http request option.
2619
2619
  * @throws {RequiredError}
2620
2620
  */
@@ -2637,7 +2637,7 @@ const xt = {
2637
2637
  * @param {string} environmentName Name of the environment
2638
2638
  * @param {string} packageName Name of the package
2639
2639
  * @param {string} [versionId] Version identifier for the package
2640
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2640
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2641
2641
  * @param {*} [options] Override http request option.
2642
2642
  * @throws {RequiredError}
2643
2643
  */
@@ -2703,7 +2703,7 @@ const xt = {
2703
2703
  * @param {string} packageName Name of the package
2704
2704
  * @param {string} path Path to the model within the package
2705
2705
  * @param {QueryRequest} queryRequest
2706
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2706
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2707
2707
  * @param {*} [options] Override http request option.
2708
2708
  * @throws {RequiredError}
2709
2709
  */
@@ -2718,7 +2718,7 @@ const xt = {
2718
2718
  * @param {string} packageName Name of the package
2719
2719
  * @param {string} path Path to the model within the package
2720
2720
  * @param {string} [versionId] Version identifier for the package
2721
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2721
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2722
2722
  * @param {*} [options] Override http request option.
2723
2723
  * @throws {RequiredError}
2724
2724
  */
@@ -2732,7 +2732,7 @@ const xt = {
2732
2732
  * @param {string} environmentName Name of the environment
2733
2733
  * @param {string} packageName Name of the package
2734
2734
  * @param {string} [versionId] Version identifier for the package
2735
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2735
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2736
2736
  * @param {*} [options] Override http request option.
2737
2737
  * @throws {RequiredError}
2738
2738
  */
@@ -2779,7 +2779,7 @@ const xt = {
2779
2779
  * @param {string} packageName Name of the package
2780
2780
  * @param {string} path Path to the model within the package
2781
2781
  * @param {QueryRequest} queryRequest
2782
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2782
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2783
2783
  * @param {*} [options] Override http request option.
2784
2784
  * @throws {RequiredError}
2785
2785
  */
@@ -2793,7 +2793,7 @@ const xt = {
2793
2793
  * @param {string} packageName Name of the package
2794
2794
  * @param {string} path Path to the model within the package
2795
2795
  * @param {string} [versionId] Version identifier for the package
2796
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2796
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2797
2797
  * @param {*} [options] Override http request option.
2798
2798
  * @throws {RequiredError}
2799
2799
  */
@@ -2806,7 +2806,7 @@ const xt = {
2806
2806
  * @param {string} environmentName Name of the environment
2807
2807
  * @param {string} packageName Name of the package
2808
2808
  * @param {string} [versionId] Version identifier for the package
2809
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2809
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2810
2810
  * @param {*} [options] Override http request option.
2811
2811
  * @throws {RequiredError}
2812
2812
  */
@@ -2850,7 +2850,7 @@ class We extends x {
2850
2850
  * @param {string} packageName Name of the package
2851
2851
  * @param {string} path Path to the model within the package
2852
2852
  * @param {QueryRequest} queryRequest
2853
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2853
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2854
2854
  * @param {*} [options] Override http request option.
2855
2855
  * @throws {RequiredError}
2856
2856
  */
@@ -2864,7 +2864,7 @@ class We extends x {
2864
2864
  * @param {string} packageName Name of the package
2865
2865
  * @param {string} path Path to the model within the package
2866
2866
  * @param {string} [versionId] Version identifier for the package
2867
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2867
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2868
2868
  * @param {*} [options] Override http request option.
2869
2869
  * @throws {RequiredError}
2870
2870
  */
@@ -2877,7 +2877,7 @@ class We extends x {
2877
2877
  * @param {string} environmentName Name of the environment
2878
2878
  * @param {string} packageName Name of the package
2879
2879
  * @param {string} [versionId] Version identifier for the package
2880
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. Only `true` and `false` are accepted. Any other value is refused with 400.
2880
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
2881
2881
  * @param {*} [options] Override http request option.
2882
2882
  * @throws {RequiredError}
2883
2883
  */
@@ -1,9 +1,9 @@
1
1
  import { jsx as _, jsxs as K, Fragment as Ge } from "react/jsx-runtime";
2
- import { A as as, f as kc, g as $c, h as jr, U as eh, i as Gt, M as vt, j as Vo, l as Sc, k as Yt, P as th, T as ls, t as nh, B as Oc, G as In, n as Gr, N as Tc, o as Ec, p as rh, q as ih, S as sh, C as oh, s as ah, u as lh, v as Et, w as ch, x as dh, y as uh, z as fh, E as yi, F as hh, H as ph, I as gh, L as Cc, J as mh, K as vh, O as bh, Q as yh, R as wh, V as Dc, W as Ic, X as Ac, Y as xh, Z as _h, _ as kh, $ as $h, a0 as Sh, a1 as Oh, a2 as Th, a3 as Eh, a4 as Ch, a5 as Dh } from "../useCompiledDocument-0sxonf6N.es.js";
3
- import { a6 as B0, a7 as j0, a8 as G0, a9 as q0, aa as K0, ab as U0, ac as V0, ad as H0, ae as Y0, af as X0, ag as Z0 } from "../useCompiledDocument-0sxonf6N.es.js";
2
+ import { A as as, f as kc, g as $c, h as jr, U as eh, i as Gt, M as vt, j as Vo, l as Sc, k as Yt, P as th, T as ls, t as nh, B as Oc, G as In, n as Gr, N as Tc, o as Ec, p as rh, q as ih, S as sh, C as oh, s as ah, u as lh, v as Et, w as ch, x as dh, y as uh, z as fh, E as yi, F as hh, H as ph, I as gh, L as Cc, J as mh, K as vh, O as bh, Q as yh, R as wh, V as Dc, W as Ic, X as Ac, Y as xh, Z as _h, _ as kh, $ as $h, a0 as Sh, a1 as Oh, a2 as Th, a3 as Eh, a4 as Ch, a5 as Dh } from "../useCompiledDocument-Bf72Ob5v.es.js";
3
+ import { a6 as B0, a7 as j0, a8 as G0, a9 as q0, aa as K0, ab as U0, ac as V0, ad as H0, ae as Y0, af as X0, ag as Z0 } from "../useCompiledDocument-Bf72Ob5v.es.js";
4
4
  import { TextField as ot, MenuItem as qt, ListItemText as Ho, Typography as me, Box as Ne, List as Ih, ListItemButton as Ah, Chip as Qs, Stack as Se, ToggleButtonGroup as Pc, ToggleButton as Ri, Button as Pe, Checkbox as Js, Tooltip as an, Autocomplete as Ph, Popover as Mh, InputBase as Rh, IconButton as Li, SvgIcon as Lh, Divider as cl, Alert as pt } from "@mui/material";
5
5
  import { useId as Mc, useMemo as de, useState as V, useEffect as ye, useRef as te, createElement as Nh, useLayoutEffect as Ni, useCallback as fe, useInsertionEffect as zh, createContext as Rc, memo as Wh, forwardRef as Fh, startTransition as Bh, useImperativeHandle as jh, useContext as Lc } from "react";
6
- import { aL as it, aM as Nc } from "../ServerProvider-C6QQVKPm.es.js";
6
+ import { aL as it, aM as Nc } from "../ServerProvider-DnLLeXEX.es.js";
7
7
  import { i as Yo, a as zc, m as Gh, b as qh, t as Kh, s as Uh, d as Wc, c as cs, e as Fc, A as Bc, f as Vh, g as Hh, r as Yh, h as dl, j as Xh, k as Xo, l as Zh } from "../text-entry-CA0LZ1xL.es.js";
8
8
  import { flushSync as Qh } from "react-dom";
9
9
  import { parseTag as Jh } from "@malloydata/malloy-tag";
@@ -266,7 +266,7 @@ export interface CompileRequest {
266
266
  */
267
267
  'source'?: string;
268
268
  /**
269
- * What the source means, and how far the check reaches. \"append\" (default) appends the source to the model in the URL and compiles it in that namespace — right for NEW definitions; an edit to an existing definition collides (\"Cannot redefine\"), and diagnostic positions land in the concatenated virtual file. \"file\" compiles the source AS that model, replacing its on-disk content for the check — validates an edit before saving, at true file coordinates. \"package\" runs the same worker compiler and file selection as reload over every .malloy and .malloynb file, without swapping the result into the served package; with a source, importers compile against the replacement. Package diagnostics can name files hidden from discovery. No rows or SQL are returned, and caller-provided source remains subject to authorize gates. includeSql is not available at \"package\". \"append\" text is checked against the model\'s PUBLISHED surface, so it may not declare its own data roots: import, connection.table(…), connection.sql(…), given:, ##! compiler flags and the raw-SQL function forms (name!type(…), sql_number, sql_string and the rest of that family) are refused with a 400. Those belong in a model file, so validate text declaring them at \"file\" or \"package\", which are not restricted. \"append\" text must also stand alone as top-level Malloy: a bare view:, dimension: or measure:, and anything that only parses as a continuation of the model\'s last statement, is refused with a 400, because the check reads the submitted text by itself. Wrap a view body in a top-level query:, or a field in a throwaway source: check is <source> extend { … }. Compiling at \"append\" also requires the model named in the URL to load: a model that does not compile is a 400 carrying that model\'s own problems, and a model that does not exist is a 400 that deliberately says only that it could not be loaded. An invalid scope value is rejected with a 400 naming the valid set. \"append\" text that carries a model-level `## artifact` tag is a document, which other viewers run, and is also refused with a 400 for `# image`, `# link`, markup in a `# label`, `@env.` in an annotation, an annotation the tag parser rejects or that exceeds 8,192 characters, `except:` or `rename:` followed by a declaration of the same name in the same extend chain, and more than 1,000 annotations or 64 KB of them. Plain \"append\" text without that tag keeps those tags; a model file defines them itself, and its edit is checked at \"file\".
269
+ * What the source means, and how far the check reaches. \"append\" (default) appends the source to the model in the URL and compiles it in that namespace — right for NEW definitions; an edit to an existing definition collides (\"Cannot redefine\"), and diagnostic positions land in the concatenated virtual file. \"file\" compiles the source AS that model, replacing its on-disk content for the check — validates an edit before saving, at true file coordinates. \"package\" runs the same worker compiler and file selection as reload over every .malloy and .malloynb file, without swapping the result into the served package; with a source, importers compile against the replacement. It also reports the render-tag findings (code \"render-tag\") and the dashboard, given and drill findings (code \"dashboard-lint\") a reload would put on the package\'s warnings, at their own severity and with no position. The package\'s other warnings (storage, persist, materialization, explores, surface and discovery warnings, among others) are not reported. Package diagnostics can name files hidden from discovery. No rows or SQL are returned, and caller-provided source remains subject to authorize gates. includeSql is not available at \"package\". \"append\" text is checked against the model\'s PUBLISHED surface, so it may not declare its own data roots: import, connection.table(…), connection.sql(…), given:, ##! compiler flags and the raw-SQL function forms (name!type(…), sql_number, sql_string and the rest of that family) are refused with a 400. Those belong in a model file, so validate text declaring them at \"file\" or \"package\", which are not restricted. \"append\" text must also stand alone as top-level Malloy: a bare view:, dimension: or measure:, and anything that only parses as a continuation of the model\'s last statement, is refused with a 400, because the check reads the submitted text by itself. Wrap a view body in a top-level query:, or a field in a throwaway source: check is <source> extend { … }. Compiling at \"append\" also requires the model named in the URL to load: a model that does not compile is a 400 carrying that model\'s own problems, and a model that does not exist is a 400 that deliberately says only that it could not be loaded. An invalid scope value is rejected with a 400 naming the valid set. \"append\" text that carries a model-level `## artifact` tag is a document, which other viewers run, and is also refused with a 400 for `# image`, `# link`, markup in a `# label`, `@env.` in an annotation, an annotation the tag parser rejects or that exceeds 8,192 characters, `except:` or `rename:` followed by a declaration of the same name in the same extend chain, and more than 1,000 annotations or 64 KB of them. Plain \"append\" text without that tag keeps those tags; a model file defines them itself, and its edit is checked at \"file\".
270
270
  */
271
271
  'scope'?: CompileRequestScopeEnum;
272
272
  /**
@@ -775,11 +775,11 @@ export interface DatabricksConnection {
775
775
  'setupSQL'?: string;
776
776
  }
777
777
  /**
778
- * DuckDB database connection configuration. Exposes data-source intent, attached foreign databases, and optional setup SQL for initialization (e.g. ATTACH commands for external lakehouses), subject to Publisher policy (setup SQL must be enabled with PUBLISHER_ALLOW_DUCKDB_SETUP_SQL=true and is refused under EXTENSION_FETCH_POLICY=local-only).
778
+ * DuckDB database connection configuration: attached foreign databases, and optional setup SQL for anything they do not cover (e.g. ATTACH commands for external lakehouses). Setup SQL must be enabled with PUBLISHER_ALLOW_DUCKDB_SETUP_SQL=true and is refused under EXTENSION_FETCH_POLICY=local-only. Database files, working directories, filesystem/network policy, extension loading, temp directories, and resource knobs remain owned by Publisher.
779
779
  */
780
780
  export interface DuckdbConnection {
781
781
  /**
782
- * Optional initialization SQL script executed against the DuckDB session upon connection (e.g. ATTACH commands for external lakehouses). Multiple statements must be separated by a semicolon and newline (;\\n). Refused unless the deployment sets PUBLISHER_ALLOW_DUCKDB_SETUP_SQL=true.
782
+ * Optional initialization SQL script executed against the DuckDB session upon connection (e.g. ATTACH commands for external lakehouses). Multiple statements must be separated by a semicolon and newline (;\\n). Use absolute paths: a relative path resolves against the server\'s working directory. Withheld from responses like a credential; an update that omits it keeps the stored script, and an empty string removes it. Refused unless the deployment sets PUBLISHER_ALLOW_DUCKDB_SETUP_SQL=true.
783
783
  */
784
784
  'setupSQL'?: string;
785
785
  'attachedDatabases'?: Array<AttachedDatabase>;
@@ -1283,7 +1283,7 @@ export interface ModelError {
1283
1283
  */
1284
1284
  'details'?: string;
1285
1285
  /**
1286
- * Machine-readable discriminator, for callers that must branch on which error they got rather than on prose. Absent unless a caller is expected to act on it, so treat absence as \"no special handling\". TABLE_NOT_FOUND distinguishes a table that is not in the database from the other conditions that also answer 404 on these routes -- an environment or connection this server does not host. The former says nothing about whether the caller reached the right server; the latter is a routing problem worth retrying elsewhere. Deliberately an open string rather than an enum. Generators render an enum closed, so adding a second value here would break every client generated before it -- on the one field whose purpose is to grow. Callers must treat an unrecognized value as absent. Known values: TABLE_NOT_FOUND.
1286
+ * Machine-readable discriminator, for callers that must branch on which error they got rather than on prose. Absent unless a caller is expected to act on it, so treat absence as \"no special handling\". TABLE_NOT_FOUND distinguishes a table that is not in the database from the other conditions that also answer 404 on these routes -- an environment or connection this server does not host. The former says nothing about whether the caller reached the right server; the latter is a routing problem worth retrying elsewhere. CONNECTION_FAILED, on a 502, means the database could not be reached (the connection was refused, reset or timed out, or the server closed it), so the query never ran. The query and the model are fine; retrying elsewhere will not help, and neither will rewriting the query. CONNECTION_AUTH_FAILED, on a 424, means the database rejected the connection\'s credentials (a wrong password, an invalid key, an expired token), so the query never ran. Whoever configures the connection has to fix it; retrying fails the same way. CONNECTION_NOT_FOUND, on a 424, means the model names a connection the environment does not have, usually one deleted after the package was loaded. Deliberately an open string rather than an enum. Generators render an enum closed, so adding a second value here would break every client generated before it -- on the one field whose purpose is to grow. Callers must treat an unrecognized value as absent. Known values: TABLE_NOT_FOUND, CONNECTION_FAILED, CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND.
1287
1287
  */
1288
1288
  'reason'?: string;
1289
1289
  /**
@@ -1534,7 +1534,7 @@ export interface Package {
1534
1534
  */
1535
1535
  'exploresWarnings'?: Array<string>;
1536
1536
  /**
1537
- * Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Dashboard findings: a `dashboards/` file whose `# artifact` tag does not parse or does not describe a dashboard, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a dashboard, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. Two dashboard findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. Notebook findings: a `notebooks/` file with an `## artifact` note whose cells could not be read, which names the line and the fix and is reported with severity `error`, because the notebook is served with that error instead of opening. The same family carries findings on files under `notebooks/` and `dashboards/`, each naming its line and the fix; they are computed at discovery and are also returned by `/compile` at file and package scope. Eight codes are `error` and fail `/compile`: `notebook-statement-above-artifact` and `notebook-tag-above-artifact` (a statement or a tag above a served notebook\'s `## artifact`), `notebook-markdown-above-artifact` (a `(markdown)` annotation above it), `notebook-columns-conflict` (a tiled dashboard\'s `dashboard_columns` disagrees with `dashboard { columns }`), `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a served notebook\'s cells). The rest are `warn` (a mistyped `(markdown)` opener, a missing `kind=notebook`, a block that never closes, and similar). Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
1537
+ * Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Dashboard findings: a `dashboards/` file whose `# artifact` tag does not parse or does not describe a dashboard, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a dashboard, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. Two dashboard findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. Notebook findings: a `notebooks/` file with an `## artifact` note whose cells could not be read, which names the line and the fix and is reported with severity `error`, because the notebook is served with that error instead of opening. The same family carries findings on files under `notebooks/` and `dashboards/`, each naming its line and the fix; they are computed at discovery and are also returned by `/compile` at file and package scope. Eight codes are `error` and fail `/compile`: `notebook-statement-above-artifact` and `notebook-tag-above-artifact` (a statement or a tag above a served notebook\'s `## artifact`), `notebook-markdown-above-artifact` (a `(markdown)` annotation above it), `notebook-columns-conflict` (a tiled dashboard\'s `dashboard_columns` disagrees with `dashboard { columns }`), `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a served notebook\'s cells). The rest are `warn` (a mistyped `(markdown)` opener, a missing `kind=notebook`, a block that never closes, and similar). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
1538
1538
  */
1539
1539
  'warnings'?: Array<PackageWarningsInner>;
1540
1540
  /**
@@ -1906,9 +1906,13 @@ export interface PostgresConnection {
1906
1906
  */
1907
1907
  'connectionString'?: string;
1908
1908
  /**
1909
- * TLS mode for a connection reached through a `proxy` (SSH bastion). Because the driver connects to a local tunnel endpoint, the cert hostname can\'t be checked from the tunnel address alone; use `verify-full` to check it against the real host. `verify-ca` validates the server cert chain against the trusted CA bundle (e.g. the baked Amazon RDS roots) without the hostname, `verify-full` validates the chain AND the hostname against the real host (verified via SNI through the tunnel; requires the target\'s CA to be trusted by Node\'s bundled CA roots or NODE_EXTRA_CA_CERTS), `no-verify` encrypts without verifying, and `disable` uses no TLS. A `storage=` build of a proxied source applies the same mode through its own tunnel, `verify-full` included. Note `verify-full` trusts a broader CA set than `verify-ca` here — ambient roots plus NODE_EXTRA_CA_CERTS, rather than the pinned NODE_EXTRA_CA_CERTS bundle that `verify-ca` uses — so it is intentionally not a strict superset; it adds the hostname check without narrowing CA trust. The server defaults it to `no-verify` when a proxy is set (so a force-SSL target isn\'t rejected for plaintext) — a server-applied default, not a schema default. Only valid on a proxied connection — a direct connection uses the deployment PGSSLMODE and rejects this field.
1909
+ * TLS mode for the connection. On a connection reached through a `proxy` (SSH bastion), the driver connects to a local tunnel endpoint, so the cert hostname can\'t be checked from the tunnel address alone; use `verify-full` to check it against the real host. `verify-ca` validates the server cert chain against the trusted CA bundle (e.g. the baked Amazon RDS roots) without the hostname, `verify-full` validates the chain AND the hostname against the real host (verified via SNI through the tunnel; requires the target\'s CA to be trusted by Node\'s bundled CA roots or NODE_EXTRA_CA_CERTS), `no-verify` encrypts without verifying, and `disable` uses no TLS. A `storage=` build of a proxied source applies the same mode through its own tunnel, `verify-full` included. Note `verify-full` trusts a broader CA set than `verify-ca` here — ambient roots plus NODE_EXTRA_CA_CERTS, rather than the pinned NODE_EXTRA_CA_CERTS bundle that `verify-ca` uses — so it is intentionally not a strict superset; it adds the hostname check without narrowing CA trust. The server defaults it to `no-verify` when a proxy is set (so a force-SSL target isn\'t rejected for plaintext) — a server-applied default, not a schema default. On a direct connection the same modes apply against the configured host; when omitted, the deployment PGSSLMODE applies. Ignored when connectionString is set, which carries its own sslmode. Not applied to a DuckLake catalog connection.
1910
1910
  */
1911
1911
  'sslmode'?: PostgresConnectionSslmodeEnum;
1912
+ /**
1913
+ * Maximum run time of each statement on the database, in milliseconds. The database cancels a statement that exceeds it. When omitted, the database\'s own statement_timeout applies. Not applied to a DuckLake catalog connection.
1914
+ */
1915
+ 'statementTimeoutMilliseconds'?: number;
1912
1916
  }
1913
1917
  export declare const PostgresConnectionSslmodeEnum: {
1914
1918
  readonly Disable: "disable";
@@ -1990,7 +1994,7 @@ export interface QueryData {
1990
1994
  */
1991
1995
  export interface QueryRequest {
1992
1996
  /**
1993
- * Query string to execute on the model. If the query parameter is set, the queryName parameter must be empty.
1997
+ * Query string to execute on the model. If the query parameter is set, the queryName parameter must be empty. It may hold one run statement, after any source or query definitions; text with more than one run statement is a 400, since only the last would run.
1994
1998
  */
1995
1999
  'query'?: string;
1996
2000
  /**
@@ -4232,7 +4236,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4232
4236
  * @param {string} packageName Name of the package
4233
4237
  * @param {string} path Path to the model within the package
4234
4238
  * @param {QueryRequest} queryRequest
4235
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4239
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4236
4240
  * @param {*} [options] Override http request option.
4237
4241
  * @throws {RequiredError}
4238
4242
  */
@@ -4244,7 +4248,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4244
4248
  * @param {string} packageName Name of the package
4245
4249
  * @param {string} path Path to the model within the package
4246
4250
  * @param {string} [versionId] Version identifier for the package
4247
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4251
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4248
4252
  * @param {*} [options] Override http request option.
4249
4253
  * @throws {RequiredError}
4250
4254
  */
@@ -4255,7 +4259,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
4255
4259
  * @param {string} environmentName Name of the environment
4256
4260
  * @param {string} packageName Name of the package
4257
4261
  * @param {string} [versionId] Version identifier for the package
4258
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4262
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4259
4263
  * @param {*} [options] Override http request option.
4260
4264
  * @throws {RequiredError}
4261
4265
  */
@@ -4295,7 +4299,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4295
4299
  * @param {string} packageName Name of the package
4296
4300
  * @param {string} path Path to the model within the package
4297
4301
  * @param {QueryRequest} queryRequest
4298
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4302
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4299
4303
  * @param {*} [options] Override http request option.
4300
4304
  * @throws {RequiredError}
4301
4305
  */
@@ -4307,7 +4311,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4307
4311
  * @param {string} packageName Name of the package
4308
4312
  * @param {string} path Path to the model within the package
4309
4313
  * @param {string} [versionId] Version identifier for the package
4310
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4314
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4311
4315
  * @param {*} [options] Override http request option.
4312
4316
  * @throws {RequiredError}
4313
4317
  */
@@ -4318,7 +4322,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
4318
4322
  * @param {string} environmentName Name of the environment
4319
4323
  * @param {string} packageName Name of the package
4320
4324
  * @param {string} [versionId] Version identifier for the package
4321
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4325
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4322
4326
  * @param {*} [options] Override http request option.
4323
4327
  * @throws {RequiredError}
4324
4328
  */
@@ -4358,7 +4362,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
4358
4362
  * @param {string} packageName Name of the package
4359
4363
  * @param {string} path Path to the model within the package
4360
4364
  * @param {QueryRequest} queryRequest
4361
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4365
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4362
4366
  * @param {*} [options] Override http request option.
4363
4367
  * @throws {RequiredError}
4364
4368
  */
@@ -4370,7 +4374,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
4370
4374
  * @param {string} packageName Name of the package
4371
4375
  * @param {string} path Path to the model within the package
4372
4376
  * @param {string} [versionId] Version identifier for the package
4373
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4377
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4374
4378
  * @param {*} [options] Override http request option.
4375
4379
  * @throws {RequiredError}
4376
4380
  */
@@ -4381,7 +4385,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
4381
4385
  * @param {string} environmentName Name of the environment
4382
4386
  * @param {string} packageName Name of the package
4383
4387
  * @param {string} [versionId] Version identifier for the package
4384
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4388
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4385
4389
  * @param {*} [options] Override http request option.
4386
4390
  * @throws {RequiredError}
4387
4391
  */
@@ -4421,7 +4425,7 @@ export declare class ModelsApi extends BaseAPI {
4421
4425
  * @param {string} packageName Name of the package
4422
4426
  * @param {string} path Path to the model within the package
4423
4427
  * @param {QueryRequest} queryRequest
4424
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4428
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4425
4429
  * @param {*} [options] Override http request option.
4426
4430
  * @throws {RequiredError}
4427
4431
  */
@@ -4433,7 +4437,7 @@ export declare class ModelsApi extends BaseAPI {
4433
4437
  * @param {string} packageName Name of the package
4434
4438
  * @param {string} path Path to the model within the package
4435
4439
  * @param {string} [versionId] Version identifier for the package
4436
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4440
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4437
4441
  * @param {*} [options] Override http request option.
4438
4442
  * @throws {RequiredError}
4439
4443
  */
@@ -4444,7 +4448,7 @@ export declare class ModelsApi extends BaseAPI {
4444
4448
  * @param {string} environmentName Name of the environment
4445
4449
  * @param {string} packageName Name of the package
4446
4450
  * @param {string} [versionId] Version identifier for the package
4447
- * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4451
+ * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP &#x60;execute_query&#x60; tool\&#39;s argument of the same name, which runs a query the way this route does. MCP offers that argument only when &#x60;publisher.config.json&#x60; sets &#x60;\&quot;mcp\&quot;: { \&quot;includeHiddenFilesAndSources\&quot;: true }&#x60;, which is for authoring servers. Without it the argument is not in the tool\&#39;s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the &#x60;execute_query&#x60; argument. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
4448
4452
  * @param {*} [options] Override http request option.
4449
4453
  * @throws {RequiredError}
4450
4454
  */
@@ -1,4 +1,4 @@
1
- import { A as e, a as n, C as o, b as i, c as t, d as r, e as p, f as u, g as m, h as A, i as E, j as c, k as l, l as d, m as C, n as y, o as b, p as P, D as F, q as g, r as S, s as k, t as h, u as M, v as x, w as D, x as T, y as v, z as R, B as f, E as N, F as z, G as I, H as K, I as Q, J as W, K as B, L, M as O, N as w, O as q, P as G, Q as j, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as na, a2 as oa, a3 as ia, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as da, ae as Ca, af as ya, ag as ba, ah as Pa, ai as Fa, aj as ga, ak as Sa, al as ka, am as ha, an as Ma, ao as xa, ap as Da, aq as Ta, ar as va, as as Ra, at as fa, au as Na, av as za, aw as Ia, ax as Ka, ay as Qa, az as Wa, aA as Ba, aB as La, aC as Oa, aD as wa, aE as qa, aF as Ga, aG as ja, aH as Ha, aI as Ja, aJ as Ua, aK as Va, aL as Xa, aM as Ya } from "../ServerProvider-C6QQVKPm.es.js";
1
+ import { A as e, a as n, C as o, b as i, c as t, d as r, e as p, f as u, g as m, h as A, i as E, j as c, k as l, l as d, m as C, n as y, o as b, p as P, D as F, q as g, r as S, s as k, t as h, u as M, v as x, w as D, x as T, y as v, z as R, B as f, E as N, F as z, G as I, H as K, I as Q, J as W, K as B, L, M as O, N as w, O as q, P as G, Q as j, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as na, a2 as oa, a3 as ia, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as da, ae as Ca, af as ya, ag as ba, ah as Pa, ai as Fa, aj as ga, ak as Sa, al as ka, am as ha, an as Ma, ao as xa, ap as Da, aq as Ta, ar as va, as as Ra, at as fa, au as Na, av as za, aw as Ia, ax as Ka, ay as Qa, az as Wa, aA as Ba, aB as La, aC as Oa, aD as wa, aE as qa, aF as Ga, aG as ja, aH as Ha, aI as Ja, aJ as Ua, aK as Va, aL as Xa, aM as Ya } from "../ServerProvider-DnLLeXEX.es.js";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
4
  n as AzureConnectionAuthTypeEnum,
package/dist/index.es.js CHANGED
@@ -2,15 +2,15 @@ import { jsx as n, jsxs as T, Fragment as be } from "react/jsx-runtime";
2
2
  import { Link as Fc, useMediaQuery as Lc, Stack as Ye, Typography as ie, Button as mt, Alert as xn, Box as ue, Tooltip as gn, IconButton as Ut, TextField as mn, Grid as ir, Paper as ro, FormControlLabel as us, Switch as ds, Divider as lr, List as hs, ListItemButton as fs, ListItemText as On, TableContainer as Rc, Table as Gr, TableHead as Zr, TableRow as rn, TableCell as ke, TableBody as Yr, Snackbar as ka, Menu as ur, MenuItem as nn, ListItemIcon as dr, Container as po, FormGroup as _c, Dialog as ms, DialogTitle as ps, Chip as qc, DialogContent as gs, CircularProgress as Wc, LinearProgress as zc } from "@mui/material";
3
3
  import * as me from "react";
4
4
  import Ce, { useState as X, useMemo as ut, useRef as Ht, useCallback as Jt, useEffect as ct, useId as ys } from "react";
5
- import { h as tt, ah as ze, E as Be, a5 as St, L as Et, ai as go, aj as bs, P as fa, S as Kr, ak as Vc, al as Rn, am as gi, an as vs, ao as Hc, ap as Va, aq as an, ar as Lt, as as on, at as Ft, au as sn, av as He, aw as yo, ax as Ct, ay as yi, az as Uc, aA as kt, aB as Bc, aC as pt, aD as en, aE as Sa, A as ot, aF as jc, aG as Gc, aH as Zc, aI as ya, aJ as We, aK as bi, aL as Yc, aM as ws, aN as bo, aO as Me, n as ks, aP as Ca, aQ as rt, $ as xa, aR as Kc, aS as ma, aT as Xc, aU as Qc, aV as Ss, aW as Jc, aX as rr, aY as Pn, aZ as vi, a_ as Ha, a$ as hn, b0 as wi, b1 as ki, b2 as Si, b3 as eu, b4 as Ci, b5 as xi, b6 as Ua, b7 as tu, b8 as Tn, b9 as nu, ba as ru, bb as Cs, bc as xs, bd as au, be as Ti, bf as ou, bg as iu, C as su, bh as Ts, bi as lu, bj as Os, bk as Ur, bl as Ms, bm as cu, bn as uu, bo as du, I as Ds, bp as Es, Q as Is, bq as hu, br as fu, bs as mu, bt as pu, bu as gu, ag as yu, a6 as bu, aa as vu, ac as wu, a7 as ku, bv as Su, a2 as Cu, R as xu, a8 as Tu, g as Ou, bw as Mu } from "./useCompiledDocument-0sxonf6N.es.js";
6
- import { bx as pp, J as gp, by as yp, bz as bp, bA as vp, M as wp, bB as kp, s as Sp, K as Cp, bC as xp, T as Tp, bD as Op, o as Mp, bE as Dp, U as Ep, b as Ip, e as $p, f as Np, H as Ap, bF as Pp, bG as Fp, bH as Lp, bI as Rp, bJ as _p, W as qp, m as Wp, bK as zp, i as Vp, c as Hp, bL as Up, bM as Bp, r as jp, u as Gp, O as Zp, F as Yp, bN as Kp, bO as Xp, bP as Qp, bQ as Jp, bR as eg, bS as tg } from "./useCompiledDocument-0sxonf6N.es.js";
7
- import { aM as _e, aP as lt, h as Oi, A as $s, aQ as vo, X as ft, ah as ua, W as Du, aL as Ns, aR as Wr, aS as As, aT as Eu, aU as Ps, aV as Iu, aW as $u, aX as Fs, aY as Ls, aZ as ar } from "./ServerProvider-C6QQVKPm.es.js";
8
- import { a_ as rg, aD as ag, a$ as og, b0 as ig, b1 as sg, b2 as lg, aO as cg } from "./ServerProvider-C6QQVKPm.es.js";
5
+ import { h as tt, ah as ze, E as Be, a5 as St, L as Et, ai as go, aj as bs, P as fa, S as Kr, ak as Vc, al as Rn, am as gi, an as vs, ao as Hc, ap as Va, aq as an, ar as Lt, as as on, at as Ft, au as sn, av as He, aw as yo, ax as Ct, ay as yi, az as Uc, aA as kt, aB as Bc, aC as pt, aD as en, aE as Sa, A as ot, aF as jc, aG as Gc, aH as Zc, aI as ya, aJ as We, aK as bi, aL as Yc, aM as ws, aN as bo, aO as Me, n as ks, aP as Ca, aQ as rt, $ as xa, aR as Kc, aS as ma, aT as Xc, aU as Qc, aV as Ss, aW as Jc, aX as rr, aY as Pn, aZ as vi, a_ as Ha, a$ as hn, b0 as wi, b1 as ki, b2 as Si, b3 as eu, b4 as Ci, b5 as xi, b6 as Ua, b7 as tu, b8 as Tn, b9 as nu, ba as ru, bb as Cs, bc as xs, bd as au, be as Ti, bf as ou, bg as iu, C as su, bh as Ts, bi as lu, bj as Os, bk as Ur, bl as Ms, bm as cu, bn as uu, bo as du, I as Ds, bp as Es, Q as Is, bq as hu, br as fu, bs as mu, bt as pu, bu as gu, ag as yu, a6 as bu, aa as vu, ac as wu, a7 as ku, bv as Su, a2 as Cu, R as xu, a8 as Tu, g as Ou, bw as Mu } from "./useCompiledDocument-Bf72Ob5v.es.js";
6
+ import { bx as pp, J as gp, by as yp, bz as bp, bA as vp, M as wp, bB as kp, s as Sp, K as Cp, bC as xp, T as Tp, bD as Op, o as Mp, bE as Dp, U as Ep, b as Ip, e as $p, f as Np, H as Ap, bF as Pp, bG as Fp, bH as Lp, bI as Rp, bJ as _p, W as qp, m as Wp, bK as zp, i as Vp, c as Hp, bL as Up, bM as Bp, r as jp, u as Gp, O as Zp, F as Yp, bN as Kp, bO as Xp, bP as Qp, bQ as Jp, bR as eg, bS as tg } from "./useCompiledDocument-Bf72Ob5v.es.js";
7
+ import { aM as _e, aP as lt, h as Oi, A as $s, aQ as vo, X as ft, ah as ua, W as Du, aL as Ns, aR as Wr, aS as As, aT as Eu, aU as Ps, aV as Iu, aW as $u, aX as Fs, aY as Ls, aZ as ar } from "./ServerProvider-DnLLeXEX.es.js";
8
+ import { a_ as rg, aD as ag, a$ as og, b0 as ig, b1 as sg, b2 as lg, aO as cg } from "./ServerProvider-DnLLeXEX.es.js";
9
9
  import { useQueryClient as Ta } from "@tanstack/react-query";
10
10
  import { createBox as Nu, createStack as Au, Stack as Pu, Box as Rs } from "@mui/system";
11
11
  import { Delete as Oa, Edit as wo, MoreVert as Ma } from "@mui/icons-material";
12
12
  import { n as Fu } from "./text-entry-CA0LZ1xL.es.js";
13
- import { D as dg, R as hg, b as fg, a as mg, d as pg, m as gg, r as yg } from "./RenderedResult-BUb2Xvr2.es.js";
13
+ import { D as dg, R as hg, b as fg, a as mg, d as pg, m as gg, r as yg } from "./RenderedResult-CkUS04tl.es.js";
14
14
  import { useNavigate as _s, useSearchParams as Lu, useLocation as Ru } from "react-router-dom";
15
15
  const _u = tt(/* @__PURE__ */ n("path", {
16
16
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
@@ -3,7 +3,7 @@ import { Box as Re, Dialog as bl, DialogTitle as vl, IconButton as kr, DialogCon
3
3
  import * as b from "react";
4
4
  import gt, { useRef as Xt, useState as yt, useEffect as vt, useId as zu, useCallback as Ye, useMemo as _e, isValidElement as Xr, cloneElement as Qr, Children as Wu, Suspense as _u, lazy as Hu, useContext as Cl, createContext as Uu } from "react";
5
5
  import { useQueries as Pl, useQuery as Yu, useMutation as ju } from "@tanstack/react-query";
6
- import { aL as Wt, aP as As, aM as Mr, aK as kl, b3 as Gu } from "./ServerProvider-C6QQVKPm.es.js";
6
+ import { aL as Wt, aP as As, aM as Mr, aK as kl, b3 as Gu } from "./ServerProvider-DnLLeXEX.es.js";
7
7
  import Ku from "markdown-to-jsx";
8
8
  import { g as qu, j as Pi, i as Fs, n as Xu } from "./text-entry-CA0LZ1xL.es.js";
9
9
  import { ThemeContext as Qu } from "@emotion/react";
@@ -22053,7 +22053,7 @@ function vP(e) {
22053
22053
  `)
22054
22054
  };
22055
22055
  }
22056
- const SP = Hu(() => import("./RenderedResult-BUb2Xvr2.es.js").then((e) => e.c));
22056
+ const SP = Hu(() => import("./RenderedResult-CkUS04tl.es.js").then((e) => e.c));
22057
22057
  function xP({
22058
22058
  result: e,
22059
22059
  maxHeight: t,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/sdk",
3
3
  "description": "Malloy Publisher SDK",
4
- "version": "0.9.5",
4
+ "version": "0.9.7",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Credible Data Inc.
2
2
  // SPDX-License-Identifier: MIT
3
3
 
4
- import { describe, expect, it } from "bun:test";
4
+ import { describe, expect, it, setDefaultTimeout } from "bun:test";
5
5
  import * as fs from "fs";
6
6
  import * as path from "path";
7
7
  import { fileURLToPath, pathToFileURL } from "url";
@@ -22,6 +22,10 @@ const PACKAGE = path.resolve(
22
22
  );
23
23
  const DOCUMENT = "dashboards/x.malloy";
24
24
 
25
+ // Each test opens DuckDB and compiles the package from cold, which on a
26
+ // Windows runner takes longer than bun's 5s default.
27
+ setDefaultTimeout(30_000);
28
+
25
29
  async function loadPackage() {
26
30
  const { Runtime, isSourceDef, modelDefToModelInfo } = await import(
27
31
  "@malloydata/malloy"