@malloy-publisher/sdk 0.9.10 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/{RenderedResult-Dp1Qdajz.es.js → RenderedResult-CDiXJAh9.es.js} +102 -102
  2. package/dist/RenderedResult-De51QvsZ.cjs.js +153 -0
  3. package/dist/ServerProvider-DKrBcXL7.cjs.js +1 -0
  4. package/dist/{ServerProvider-CQy4jVYK.es.js → ServerProvider-RvKSbvnL.es.js} +622 -587
  5. package/dist/builder/index.cjs.js +78 -130
  6. package/dist/builder/index.es.js +7493 -6769
  7. package/dist/builder-entry.d.ts +3 -0
  8. package/dist/client/api.d.ts +72 -23
  9. package/dist/client/index.cjs.js +1 -1
  10. package/dist/client/index.es.js +1 -1
  11. package/dist/components/AppDialog.d.ts +9 -1
  12. package/dist/components/Connections/common.d.ts +11 -3
  13. package/dist/components/Dashboard/DashboardGrid.d.ts +14 -15
  14. package/dist/components/Dashboard/DashboardTile.d.ts +8 -1
  15. package/dist/components/Dashboard/DashboardView.d.ts +22 -34
  16. package/dist/components/Dashboard/TileCard.d.ts +10 -3
  17. package/dist/components/Dashboard/useStuck.d.ts +15 -7
  18. package/dist/components/DocumentCreate/useDocumentChoices.d.ts +6 -0
  19. package/dist/components/Package/PackageProblems.d.ts +14 -0
  20. package/dist/components/RemoveBadge.d.ts +40 -0
  21. package/dist/components/Report/Report.d.ts +13 -4
  22. package/dist/components/Report/ReportPage.d.ts +60 -0
  23. package/dist/components/Report/layoutRules.d.ts +32 -0
  24. package/dist/components/Report/reportQuery.d.ts +30 -0
  25. package/dist/components/Report/telemetry.d.ts +0 -2
  26. package/dist/components/ReportBuilder/AddTileDialog.d.ts +22 -3
  27. package/dist/components/ReportBuilder/BuilderBar.d.ts +17 -0
  28. package/dist/components/ReportBuilder/BuilderDialogs.d.ts +7 -6
  29. package/dist/components/ReportBuilder/BuilderGrid.d.ts +10 -4
  30. package/dist/components/ReportBuilder/BuilderHeader.d.ts +4 -7
  31. package/dist/components/ReportBuilder/BuilderToolbar.d.ts +88 -0
  32. package/dist/components/ReportBuilder/DrillDialog.d.ts +3 -1
  33. package/dist/components/ReportBuilder/EditorSurface.d.ts +7 -9
  34. package/dist/components/ReportBuilder/FilterDialog.d.ts +3 -1
  35. package/dist/components/ReportBuilder/FilterStrip.d.ts +30 -8
  36. package/dist/components/ReportBuilder/InlineMarkdown.d.ts +4 -4
  37. package/dist/components/ReportBuilder/ReportBuilder.d.ts +49 -12
  38. package/dist/components/ReportBuilder/ReportEditor.d.ts +53 -3
  39. package/dist/components/ReportBuilder/TextTileBody.d.ts +2 -5
  40. package/dist/components/ReportBuilder/TileFrame.d.ts +10 -4
  41. package/dist/components/ReportBuilder/TileMenu.d.ts +12 -9
  42. package/dist/components/ReportBuilder/ViewPicker.d.ts +53 -0
  43. package/dist/components/ReportBuilder/addTileToDocument.d.ts +24 -3
  44. package/dist/components/ReportBuilder/builderControls.d.ts +60 -0
  45. package/dist/components/ReportBuilder/catalog.d.ts +2 -4
  46. package/dist/components/ReportBuilder/inlineEdit.d.ts +9 -10
  47. package/dist/components/ReportBuilder/localGiven.d.ts +12 -0
  48. package/dist/components/ReportBuilder/preview.d.ts +17 -2
  49. package/dist/components/ReportBuilder/readDocument.d.ts +0 -2
  50. package/dist/components/ReportBuilder/readForEditor.d.ts +2 -7
  51. package/dist/components/ReportBuilder/reportTag.d.ts +11 -1
  52. package/dist/components/ReportBuilder/sortable.d.ts +4 -3
  53. package/dist/components/ReportBuilder/testing/inline.d.ts +5 -1
  54. package/dist/components/ReportBuilder/useBuilderSelection.d.ts +0 -1
  55. package/dist/components/ReportBuilder/useBuilderSession.d.ts +21 -12
  56. package/dist/components/ReportBuilder/useDocumentEditor.d.ts +2 -6
  57. package/dist/components/ReportBuilder/useExitGuard.d.ts +3 -0
  58. package/dist/components/ReportBuilder/useFilterForm.d.ts +3 -1
  59. package/dist/components/ReportBuilder/useOpenedDocument.d.ts +0 -4
  60. package/dist/components/ReportBuilder/useReportDraft.d.ts +66 -0
  61. package/dist/components/ReportBuilder/useReportEditor.d.ts +0 -9
  62. package/dist/components/ReportBuilder/useTileEditing.d.ts +6 -3
  63. package/dist/components/ReportBuilder/viewAnnotations.d.ts +9 -0
  64. package/dist/components/ReportBuilder/widthLabel.d.ts +6 -0
  65. package/dist/components/ServerProvider.d.ts +9 -0
  66. package/dist/components/controlTokens.d.ts +45 -0
  67. package/dist/components/drill/markDrillableCells.d.ts +1 -1
  68. package/dist/components/given/FilterButton.d.ts +35 -0
  69. package/dist/components/given/GivensPanel.d.ts +2 -1
  70. package/dist/components/given/filterEditing.d.ts +54 -0
  71. package/dist/components/given/filterSummary.d.ts +9 -0
  72. package/dist/components/given/paramCodec.d.ts +11 -0
  73. package/dist/components/given/required.d.ts +25 -0
  74. package/dist/components/index.d.ts +3 -0
  75. package/dist/components/legacy/index.d.ts +1 -1
  76. package/dist/components/{Report/CellReport.d.ts → legacy/malloynb/CellRunnerView.d.ts} +9 -17
  77. package/dist/components/legacy/{MalloynbCells.d.ts → malloynb/MalloynbCells.d.ts} +3 -3
  78. package/dist/components/legacy/{Notebook.d.ts → malloynb/Notebook.d.ts} +1 -1
  79. package/dist/components/{Notebook → legacy/malloynb}/NotebookCell.d.ts +3 -3
  80. package/dist/components/legacy/malloynb/cellKind.d.ts +5 -0
  81. package/dist/components/{Notebook → legacy/malloynb}/types.d.ts +1 -1
  82. package/dist/components/styles.d.ts +0 -2
  83. package/dist/hooks/useQueryResult.d.ts +7 -0
  84. package/dist/index.cjs.js +16 -19
  85. package/dist/index.es.js +8418 -7722
  86. package/dist/theme/ThemeContext.d.ts +8 -1
  87. package/dist/theme/classes.d.ts +49 -0
  88. package/dist/theme/index.d.ts +2 -0
  89. package/dist/theme/types.d.ts +7 -0
  90. package/dist/theme/ui.d.ts +75 -0
  91. package/dist/{useCompiledDocument-BMPDvdFx.es.js → useCompiledDocument-Bf4RSfB6.es.js} +8669 -7851
  92. package/dist/useCompiledDocument-XsQz85Ri.cjs.js +141 -0
  93. package/package.json +2 -2
  94. package/src/builder-entry.ts +9 -0
  95. package/src/components/AppDialog.tsx +23 -0
  96. package/src/components/Connections/AddConnectionDialog.tsx +34 -2
  97. package/src/components/Connections/EditConnectionDialog.tsx +45 -3
  98. package/src/components/Connections/common.spec.ts +69 -0
  99. package/src/components/Connections/common.ts +132 -0
  100. package/src/components/Dashboard/DashboardGrid.tsx +39 -17
  101. package/src/components/Dashboard/DashboardTile.tsx +19 -2
  102. package/src/components/Dashboard/DashboardView.spec.tsx +216 -15
  103. package/src/components/Dashboard/DashboardView.tsx +137 -155
  104. package/src/components/Dashboard/RowsDialog.tsx +1 -2
  105. package/src/components/Dashboard/TileCard.tsx +28 -10
  106. package/src/components/Dashboard/defaultTileSpan.spec.ts +24 -0
  107. package/src/components/Dashboard/useStuck.ts +28 -17
  108. package/src/components/DocumentCreate/useDocumentChoices.ts +19 -2
  109. package/src/components/Environment/Connections.tsx +1 -0
  110. package/src/components/Package/NewDocumentDialog.spec.tsx +76 -59
  111. package/src/components/Package/NewDocumentDialog.tsx +383 -119
  112. package/src/components/Package/Package.artifacts.spec.tsx +1 -1
  113. package/src/components/Package/Package.create.spec.tsx +7 -6
  114. package/src/components/Package/Package.tsx +10 -7
  115. package/src/components/Package/PackageProblems.spec.tsx +41 -0
  116. package/src/components/Package/PackageProblems.tsx +95 -0
  117. package/src/components/Prose.tsx +12 -7
  118. package/src/components/RemoveBadge.tsx +94 -0
  119. package/src/components/RenderedResult/RenderedResult.tsx +5 -9
  120. package/src/components/RenderedResult/ResultPanel.tsx +59 -3
  121. package/src/components/Report/Report.spec.tsx +50 -32
  122. package/src/components/Report/Report.telemetry.spec.tsx +0 -45
  123. package/src/components/Report/Report.tsx +45 -77
  124. package/src/components/Report/ReportPage.tsx +168 -0
  125. package/src/components/Report/layoutRules.spec.ts +35 -0
  126. package/src/components/Report/layoutRules.ts +55 -0
  127. package/src/components/Report/reportQuery.ts +53 -0
  128. package/src/components/Report/telemetry.ts +0 -2
  129. package/src/components/ReportBuilder/AddTileDialog.spec.tsx +76 -41
  130. package/src/components/ReportBuilder/AddTileDialog.tsx +368 -133
  131. package/src/components/ReportBuilder/BuilderBar.tsx +599 -0
  132. package/src/components/ReportBuilder/BuilderDialogs.tsx +28 -39
  133. package/src/components/ReportBuilder/BuilderGrid.tsx +31 -29
  134. package/src/components/ReportBuilder/BuilderHeader.tsx +63 -75
  135. package/src/components/ReportBuilder/BuilderToolbar.tsx +95 -9
  136. package/src/components/ReportBuilder/DrillDialog.tsx +240 -128
  137. package/src/components/ReportBuilder/EditorSurface.tsx +345 -69
  138. package/src/components/ReportBuilder/FilterDialog.tsx +516 -166
  139. package/src/components/ReportBuilder/FilterStrip.tsx +130 -151
  140. package/src/components/ReportBuilder/InlineMarkdown.tsx +71 -45
  141. package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +35 -40
  142. package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +491 -0
  143. package/src/components/ReportBuilder/ReportBuilder.exit.spec.tsx +2 -4
  144. package/src/components/ReportBuilder/ReportBuilder.inline.spec.tsx +13 -15
  145. package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +27 -118
  146. package/src/components/ReportBuilder/ReportBuilder.openDraft.spec.tsx +12 -5
  147. package/src/components/ReportBuilder/ReportBuilder.sources.spec.tsx +2 -10
  148. package/src/components/ReportBuilder/ReportBuilder.spec.tsx +37 -31
  149. package/src/components/ReportBuilder/ReportBuilder.textTiles.spec.tsx +22 -15
  150. package/src/components/ReportBuilder/ReportBuilder.tsx +292 -117
  151. package/src/components/ReportBuilder/ReportEditor.emptyStart.spec.tsx +2 -1
  152. package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +312 -0
  153. package/src/components/ReportBuilder/ReportEditor.notebook.spec.tsx +26 -75
  154. package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +6 -2
  155. package/src/components/ReportBuilder/ReportEditor.resourceUri.spec.tsx +3 -2
  156. package/src/components/ReportBuilder/ReportEditor.spec.tsx +2 -4
  157. package/src/components/ReportBuilder/ReportEditor.textSource.spec.tsx +93 -13
  158. package/src/components/ReportBuilder/ReportEditor.tsx +104 -14
  159. package/src/components/ReportBuilder/TextTileBody.tsx +6 -7
  160. package/src/components/ReportBuilder/TileFrame.tsx +212 -75
  161. package/src/components/ReportBuilder/TileMenu.tsx +241 -140
  162. package/src/components/ReportBuilder/ViewPicker.tsx +349 -0
  163. package/src/components/ReportBuilder/addTile.compile.spec.ts +1 -1
  164. package/src/components/ReportBuilder/addTileToDocument.spec.ts +102 -3
  165. package/src/components/ReportBuilder/addTileToDocument.ts +122 -25
  166. package/src/components/ReportBuilder/builderControls.ts +164 -0
  167. package/src/components/ReportBuilder/builderReport.ts +1 -2
  168. package/src/components/ReportBuilder/catalog.ts +10 -26
  169. package/src/components/ReportBuilder/inlineEdit.tsx +22 -54
  170. package/src/components/ReportBuilder/localGiven.ts +56 -0
  171. package/src/components/ReportBuilder/preview.spec.ts +125 -5
  172. package/src/components/ReportBuilder/preview.ts +60 -44
  173. package/src/components/ReportBuilder/readDocument.spec.ts +16 -22
  174. package/src/components/ReportBuilder/readDocument.ts +14 -11
  175. package/src/components/ReportBuilder/readForEditor.spec.ts +12 -41
  176. package/src/components/ReportBuilder/readForEditor.ts +4 -26
  177. package/src/components/ReportBuilder/reportTag.ts +28 -7
  178. package/src/components/ReportBuilder/sortable.tsx +15 -7
  179. package/src/components/ReportBuilder/spliceDocument.imports.spec.ts +1 -1
  180. package/src/components/ReportBuilder/tagParse.spec.ts +0 -40
  181. package/src/components/ReportBuilder/testing/inline.ts +25 -5
  182. package/src/components/ReportBuilder/testing/reportLayoutParity.json +13 -8
  183. package/src/components/ReportBuilder/textTiles.spec.ts +7 -6
  184. package/src/components/ReportBuilder/useBuilderSelection.ts +35 -0
  185. package/src/components/ReportBuilder/useBuilderSession.spec.ts +2 -2
  186. package/src/components/ReportBuilder/useBuilderSession.ts +21 -13
  187. package/src/components/ReportBuilder/useDocumentEditor.spec.ts +0 -58
  188. package/src/components/ReportBuilder/useDocumentEditor.ts +3 -16
  189. package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +26 -0
  190. package/src/components/ReportBuilder/useEditorCatalog.ts +7 -2
  191. package/src/components/ReportBuilder/useExitGuard.ts +16 -0
  192. package/src/components/ReportBuilder/useFilterForm.spec.tsx +17 -0
  193. package/src/components/ReportBuilder/useFilterForm.ts +5 -1
  194. package/src/components/ReportBuilder/useOpenedDocument.ts +0 -2
  195. package/src/components/ReportBuilder/useReportDraft.spec.ts +149 -0
  196. package/src/components/ReportBuilder/useReportDraft.ts +292 -0
  197. package/src/components/ReportBuilder/useReportEditor.ts +3 -12
  198. package/src/components/ReportBuilder/useSaveChannel.ts +0 -1
  199. package/src/components/ReportBuilder/useTileEditing.ts +43 -12
  200. package/src/components/ReportBuilder/viewAnnotations.ts +29 -0
  201. package/src/components/ReportBuilder/widthLabel.spec.ts +25 -0
  202. package/src/components/ReportBuilder/widthLabel.ts +26 -0
  203. package/src/components/ServerProvider.tsx +11 -0
  204. package/src/components/controlTokens.ts +47 -0
  205. package/src/components/drill/markDrillableCells.ts +2 -1
  206. package/src/components/given/FilterButton.spec.tsx +143 -0
  207. package/src/components/given/FilterButton.tsx +478 -0
  208. package/src/components/given/GivenInput.spec.tsx +47 -0
  209. package/src/components/given/GivenInput.tsx +20 -2
  210. package/src/components/given/GivensPanel.spec.tsx +11 -3
  211. package/src/components/given/GivensPanel.tsx +45 -44
  212. package/src/components/given/filterEditing.ts +60 -0
  213. package/src/components/given/filterSummary.spec.ts +108 -0
  214. package/src/components/given/filterSummary.ts +109 -0
  215. package/src/components/given/paramCodec.ts +1 -1
  216. package/src/components/given/required.spec.ts +60 -0
  217. package/src/components/given/required.ts +78 -0
  218. package/src/components/index.ts +9 -0
  219. package/src/components/legacy/Dashboard.spec.tsx +3 -1
  220. package/src/components/legacy/index.ts +1 -1
  221. package/src/components/{Report/CellReport.spec.tsx → legacy/malloynb/CellRunnerView.spec.tsx} +53 -57
  222. package/src/components/{Report/CellReport.tsx → legacy/malloynb/CellRunnerView.tsx} +122 -136
  223. package/src/components/legacy/{MalloynbCells.tsx → malloynb/MalloynbCells.tsx} +6 -6
  224. package/src/components/legacy/{Notebook.layout.spec.tsx → malloynb/Notebook.layout.spec.tsx} +16 -7
  225. package/src/components/legacy/malloynb/Notebook.served.spec.tsx +84 -0
  226. package/src/components/legacy/{Notebook.spec.tsx → malloynb/Notebook.spec.tsx} +5 -3
  227. package/src/components/legacy/{Notebook.tsx → malloynb/Notebook.tsx} +9 -7
  228. package/src/components/{Notebook → legacy/malloynb}/NotebookCell.tsx +70 -150
  229. package/src/components/legacy/malloynb/cellKind.spec.ts +33 -0
  230. package/src/components/legacy/malloynb/cellKind.ts +24 -0
  231. package/src/components/{Notebook → legacy/malloynb}/types.ts +1 -1
  232. package/src/components/styles.ts +0 -18
  233. package/src/hooks/useGivensState.ts +7 -3
  234. package/src/hooks/useQueryResult.placeholder.spec.ts +44 -0
  235. package/src/hooks/useQueryResult.ts +26 -1
  236. package/src/theme/ThemeContext.tsx +21 -1
  237. package/src/theme/classes.ts +52 -0
  238. package/src/theme/index.ts +8 -0
  239. package/src/theme/resolveTheme.ts +3 -0
  240. package/src/theme/types.ts +7 -0
  241. package/src/theme/ui.spec.tsx +91 -0
  242. package/src/theme/ui.ts +115 -0
  243. package/dist/RenderedResult-BcgYjkZ0.cjs.js +0 -153
  244. package/dist/ServerProvider-B0dUY8be.cjs.js +0 -1
  245. package/dist/components/Notebook/cellKind.d.ts +0 -20
  246. package/dist/components/Report/LinearReport.d.ts +0 -18
  247. package/dist/components/ReportBuilder/SourceViewPicker.d.ts +0 -9
  248. package/dist/components/ReportBuilder/legacyNotebook.d.ts +0 -73
  249. package/dist/components/ReportBuilder/useConversionConfirm.d.ts +0 -20
  250. package/dist/useCompiledDocument-UY28ITET.cjs.js +0 -141
  251. package/src/components/Notebook/cellKind.spec.ts +0 -199
  252. package/src/components/Notebook/cellKind.ts +0 -74
  253. package/src/components/Report/LinearReport.tsx +0 -71
  254. package/src/components/ReportBuilder/SourceViewPicker.tsx +0 -122
  255. package/src/components/ReportBuilder/legacyNotebook.chart.spec.ts +0 -77
  256. package/src/components/ReportBuilder/legacyNotebook.convert.spec.ts +0 -626
  257. package/src/components/ReportBuilder/legacyNotebook.read.spec.ts +0 -338
  258. package/src/components/ReportBuilder/legacyNotebook.ts +0 -1122
  259. package/src/components/ReportBuilder/useConversionConfirm.ts +0 -55
  260. package/src/components/legacy/Notebook.served.spec.tsx +0 -183
  261. /package/dist/components/{Notebook → legacy/malloynb}/runPlan.d.ts +0 -0
  262. /package/src/components/{Notebook → legacy/malloynb}/runPlan.spec.ts +0 -0
  263. /package/src/components/{Notebook → legacy/malloynb}/runPlan.ts +0 -0
@@ -1,8 +1,40 @@
1
- import { jsx as D } from "react/jsx-runtime";
2
- import { QueryClient as be, QueryClientProvider as ve, useQuery as Pe } from "@tanstack/react-query";
1
+ import { jsx as q } from "react/jsx-runtime";
2
+ import { QueryClient as Ve, QueryClientProvider as Se, useQuery as Oe } from "@tanstack/react-query";
3
3
  import u from "axios";
4
- import { useContext as ne, useMemo as j, createContext as re, useState as ee, useEffect as Ve, useCallback as Se } from "react";
5
- import { styled as N, Card as Oe, CardContent as ke, CardMedia as Ae } from "@mui/material";
4
+ import { useContext as oe, useMemo as F, createContext as se, useState as ae, useEffect as ke, useCallback as Ae } from "react";
5
+ import { styled as B, Card as ye, CardContent as Ce, CardMedia as Ie } from "@mui/material";
6
+ const te = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", N = {
7
+ radius: { control: "6px", tile: "8px", menu: "10px", dialog: "12px" },
8
+ size: { control: 32, chip: 24 },
9
+ type: {
10
+ pageTitle: { fontSize: 24, fontWeight: 600, letterSpacing: "-0.01em" },
11
+ tileTitle: { fontSize: 14, fontWeight: 600, lineHeight: 1.4 },
12
+ prose: { fontSize: 15, lineHeight: 1.6 },
13
+ control: { fontSize: 13, fontWeight: 500 },
14
+ caption: { fontSize: 12, lineHeight: 1.4 },
15
+ label: { fontSize: 12, fontWeight: 600, lineHeight: 1.4 },
16
+ code: { fontSize: 11.5, fontFamily: te }
17
+ },
18
+ font: { mono: te },
19
+ shadow: { menu: "0 8px 24px rgba(16, 24, 40, 0.12)" }
20
+ };
21
+ function xe(c) {
22
+ if (!c) return N;
23
+ const n = { ...N.font, ...c.font }, e = { ...N.type };
24
+ e.code = { ...e.code, fontFamily: n.mono };
25
+ for (const [t, a] of Object.entries(c.type ?? {}))
26
+ e[t] = {
27
+ ...e[t],
28
+ ...a
29
+ };
30
+ return {
31
+ radius: { ...N.radius, ...c.radius },
32
+ size: { ...N.size, ...c.size },
33
+ type: e,
34
+ font: n,
35
+ shadow: { ...N.shadow, ...c.shadow }
36
+ };
37
+ }
6
38
  const I = {
7
39
  blue: "#2563eb",
8
40
  indigo: "#4f46e5",
@@ -16,36 +48,25 @@ const I = {
16
48
  teal: "#0f766e",
17
49
  cyan: "#0e7490",
18
50
  slate: "#475569"
19
- }, Sa = {
51
+ }, ya = {
20
52
  environment: I.emerald,
21
53
  package: I.teal,
22
54
  connection: I.orange
23
- }, Oa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', ka = N(Oe)({
55
+ }, Ca = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ia = B(ye)({
24
56
  display: "flex",
25
57
  flexDirection: "column",
26
58
  height: "100%",
27
59
  boxShadow: "none",
28
60
  border: "none",
29
61
  backgroundColor: "transparent"
30
- }), Aa = N(ke)({
62
+ }), xa = B(Ce)({
31
63
  display: "flex",
32
64
  flexDirection: "column",
33
65
  padding: "0",
34
66
  flexGrow: 1
35
- }), ya = N(Ae)({
67
+ }), Ra = B(Ie)({
36
68
  padding: "0"
37
- }), Ca = N("div")(({ theme: c }) => ({
38
- backgroundColor: c.palette.background.default,
39
- borderRadius: "12px",
40
- boxShadow: "none",
41
- border: "none"
42
- })), Ia = N("div")({
43
- marginBottom: "48px",
44
- padding: "0",
45
- backgroundColor: "transparent",
46
- border: "none",
47
- boxShadow: "none"
48
- }), xa = N("div")({
69
+ }), Na = B("div")({
49
70
  backgroundColor: "transparent",
50
71
  paddingTop: "12px",
51
72
  paddingBottom: "2px",
@@ -53,13 +74,13 @@ const I = {
53
74
  border: "none",
54
75
  boxShadow: "none",
55
76
  marginBottom: "0"
56
- }), Ra = N("div")({
77
+ }), Ua = B("div")({
57
78
  height: "100%"
58
- }), Na = N("div")({
79
+ }), Ta = B("div")({
59
80
  height: "75vh",
60
81
  width: "100%",
61
82
  overflowY: "auto"
62
- }), ye = {
83
+ }), Re = {
63
84
  light: {
64
85
  accent: I.blue,
65
86
  accentHover: "#1d4ed8",
@@ -70,52 +91,52 @@ const I = {
70
91
  accentHover: "#93c5fd",
71
92
  accentContrast: "#0f172a"
72
93
  }
73
- }, Ce = {
94
+ }, Ne = {
74
95
  light: "#ffffff",
75
96
  dark: "#0f172a"
76
- }, Ie = 3, U = (c) => {
97
+ }, Ue = 3, U = (c) => {
77
98
  const n = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(c.trim());
78
99
  if (!n) return;
79
100
  const e = n[1].length === 3 ? [...n[1]].map((t) => t + t).join("") : n[1];
80
101
  return [0, 2, 4].map((t) => parseInt(e.slice(t, t + 2), 16));
81
- }, oe = (c) => `#${c.map((n) => Math.round(n).toString(16).padStart(2, "0")).join("")}`, H = (c, n, e) => oe(c.map((t) => t + (n - t) * e)), _ = (c) => {
102
+ }, ce = (c) => `#${c.map((n) => Math.round(n).toString(16).padStart(2, "0")).join("")}`, _ = (c, n, e) => ce(c.map((t) => t + (n - t) * e)), G = (c) => {
82
103
  const [n, e, t] = c.map((a) => {
83
104
  const r = a / 255;
84
105
  return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
85
106
  });
86
107
  return 0.2126 * n + 0.7152 * e + 0.0722 * t;
87
- }, q = (c, n) => {
88
- const [e, t] = [_(c), _(n)].sort((a, r) => r - a);
108
+ }, Q = (c, n) => {
109
+ const [e, t] = [G(c), G(n)].sort((a, r) => r - a);
89
110
  return (e + 0.05) / (t + 0.05);
90
111
  };
91
- function Ua(c, n) {
112
+ function fa(c, n) {
92
113
  const e = U(c), t = U(n);
93
- return e && t ? q(e, t) : void 0;
114
+ return e && t ? Q(e, t) : void 0;
94
115
  }
95
- const xe = [15, 23, 42];
96
- function G(c, n, e = Ie) {
116
+ const Te = [15, 23, 42];
117
+ function W(c, n, e = Ue) {
97
118
  const t = U(c), a = U(n);
98
- if (!t || !a || q(t, a) >= e) return c;
99
- const r = _(a) < 0.5 ? 255 : 0;
119
+ if (!t || !a || Q(t, a) >= e) return c;
120
+ const r = G(a) < 0.5 ? 255 : 0;
100
121
  for (let o = 0.05; o < 1; o += 0.05) {
101
- const s = U(H(t, r, o));
102
- if (s && q(s, a) >= e) return oe(s);
122
+ const s = U(_(t, r, o));
123
+ if (s && Q(s, a) >= e) return ce(s);
103
124
  }
104
125
  return r === 255 ? "#ffffff" : "#000000";
105
126
  }
106
- function ae(c, n, e = Ce[n]) {
107
- const t = ye[n];
127
+ function ne(c, n, e = Ne[n]) {
128
+ const t = Re[n];
108
129
  if (!c || c.toLowerCase() === I.blue) return t;
109
130
  if (!U(c))
110
131
  return n === "light" ? { ...t, accent: c, accentHover: c } : t;
111
- const a = G(c, e), r = U(a), o = n === "dark" ? H(r, 255, 0.25) : H(r, 0, 0.2), s = q(r, [255, 255, 255]), l = q(r, xe);
132
+ const a = W(c, e), r = U(a), o = n === "dark" ? _(r, 255, 0.25) : _(r, 0, 0.2), s = Q(r, [255, 255, 255]), l = Q(r, Te);
112
133
  return {
113
134
  accent: a,
114
135
  accentHover: o,
115
136
  accentContrast: s >= l ? "#ffffff" : "#0f172a"
116
137
  };
117
138
  }
118
- const Re = [
139
+ const fe = [
119
140
  I.blue,
120
141
  I.orange,
121
142
  I.emerald,
@@ -124,11 +145,11 @@ const Re = [
124
145
  I.amber,
125
146
  I.cyan,
126
147
  I.lime
127
- ], Ne = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", te = {
148
+ ], we = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", re = {
128
149
  defaultMode: "light",
129
150
  allowUserToggle: !0,
130
151
  palette: {
131
- series: Re,
152
+ series: fe,
132
153
  // The chart canvas. One ground for the whole dashboard in both modes —
133
154
  // canvas, card and the panel between cards are all this value, and the
134
155
  // borders do the separating. See `tile`.
@@ -214,10 +235,10 @@ const Re = [
214
235
  }
215
236
  },
216
237
  font: {
217
- family: Ne,
238
+ family: we,
218
239
  size: 12
219
240
  }
220
- }, Ue = [
241
+ }, Ee = [
221
242
  "background",
222
243
  "tableHeader",
223
244
  "tableHeaderBackground",
@@ -232,8 +253,8 @@ const Re = [
232
253
  "chartText",
233
254
  "value"
234
255
  ];
235
- function se(c, n) {
236
- const e = te.palette ?? {}, t = te.font ?? {
256
+ function le(c, n) {
257
+ const e = re.palette ?? {}, t = re.font ?? {
237
258
  family: "sans-serif",
238
259
  size: 12
239
260
  };
@@ -261,20 +282,22 @@ function se(c, n) {
261
282
  for (const k of c)
262
283
  if (k) {
263
284
  Array.isArray(k.palette?.series) && (a = [...k.palette.series], r = !0);
264
- for (const C of Ue) {
285
+ for (const C of Ee) {
265
286
  const R = k.palette?.[C];
266
287
  R && (l[C] = { ...l[C], ...R }, R.light !== void 0 && i.light.add(C), R.dark !== void 0 && i.dark.add(C));
267
288
  }
268
289
  typeof k.font?.family == "string" && (o = k.font.family), typeof k.font?.size == "number" && (s = k.font.size);
269
290
  }
270
- const p = n === "dark", d = (k) => l[k][n] ?? e[k]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? G(l.mapColor.light, h) : d("mapColor");
291
+ const p = n === "dark", d = (k) => l[k][n] ?? e[k]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? W(l.mapColor.light, h) : d("mapColor");
271
292
  return {
272
293
  mode: n,
294
+ // The host's chrome tokens are laid over this by `ThemeProvider`.
295
+ ui: N,
273
296
  // One series list for both modes, picked against a light page: in dark,
274
297
  // an operator's colour too dark to see on the canvas is lifted until it
275
298
  // reads. The defaults are drawn as they always were.
276
- series: p && r ? a.map((k) => G(k, h)) : a,
277
- ...ae(a[0], n, h),
299
+ series: p && r ? a.map((k) => W(k, h)) : a,
300
+ ...ne(a[0], n, h),
278
301
  font: { family: o, size: s },
279
302
  background: h,
280
303
  tableHeader: d("tableHeader"),
@@ -322,32 +345,40 @@ function se(c, n) {
322
345
  // contrast on the slate panel.
323
346
  // The Console's default accent, not the palette's: a drill reads as a
324
347
  // link whatever the operator picked for the data.
325
- drillLink: ae(void 0, n).accent
348
+ drillLink: ne(void 0, n).accent
326
349
  };
327
350
  }
328
- function Te(c, n, e) {
351
+ function Me(c, n, e) {
329
352
  const t = n ?? c ?? "light";
330
353
  return t === "auto" ? e ? "dark" : "light" : t;
331
354
  }
332
- const ce = re(void 0);
333
- function we({
355
+ const ie = se(void 0);
356
+ function Fe({
334
357
  layers: c,
335
358
  mode: n,
336
359
  userChoice: e,
337
360
  setMode: t,
338
361
  allowUserToggle: a = !0,
339
- children: r
362
+ ui: r,
363
+ children: o
340
364
  }) {
341
- const o = j(() => se(c, n), [c, n]), s = j(
342
- () => ({ theme: o, layers: c, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
343
- [o, c, n, e, t, a]
365
+ const s = JSON.stringify(r ?? null), l = F(
366
+ () => xe(r),
367
+ // eslint-disable-next-line react-hooks/exhaustive-deps
368
+ [s]
369
+ ), i = F(
370
+ () => ({ ...le(c, n), ui: l }),
371
+ [c, n, l]
372
+ ), p = F(
373
+ () => ({ theme: i, layers: c, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
374
+ [i, c, n, e, t, a]
344
375
  );
345
- return /* @__PURE__ */ D(ce.Provider, { value: s, children: r });
376
+ return /* @__PURE__ */ q(ie.Provider, { value: p, children: o });
346
377
  }
347
- function Ta() {
348
- const c = ne(ce);
378
+ function wa() {
379
+ const c = oe(ie);
349
380
  return c || {
350
- theme: se([], "light"),
381
+ theme: le([], "light"),
351
382
  layers: [],
352
383
  mode: "light",
353
384
  userChoice: void 0,
@@ -363,28 +394,28 @@ class x {
363
394
  }
364
395
  configuration;
365
396
  }
366
- class Ee extends Error {
397
+ class Be extends Error {
367
398
  constructor(n, e) {
368
399
  super(e), this.field = n, this.name = "RequiredError";
369
400
  }
370
401
  }
371
- const b = {}, v = "https://example.com", m = function(c, n, e) {
402
+ const b = {}, P = "https://example.com", m = function(c, n, e) {
372
403
  if (e == null)
373
- throw new Ee(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
404
+ throw new Be(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
374
405
  };
375
- function W(c, n, e = "") {
376
- n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) => W(c, t, e)) : Object.keys(n).forEach(
377
- (t) => W(c, n[t], `${e}${e !== "" ? "." : ""}${t}`)
406
+ function $(c, n, e = "") {
407
+ n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) => $(c, t, e)) : Object.keys(n).forEach(
408
+ (t) => $(c, n[t], `${e}${e !== "" ? "." : ""}${t}`)
378
409
  ) : c.has(e) ? c.append(e, n) : c.set(e, n));
379
410
  }
380
- const P = function(c, ...n) {
411
+ const v = function(c, ...n) {
381
412
  const e = new URLSearchParams(c.search);
382
- W(e, n), c.search = e.toString();
383
- }, fe = function(c, n) {
413
+ $(e, n), c.search = e.toString();
414
+ }, je = function(c, n) {
384
415
  return n instanceof Set ? Array.from(n) : n;
385
416
  }, A = function(c, n, e) {
386
417
  const t = typeof c != "string";
387
- return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(c !== void 0 ? c : {}, fe) : c || "";
418
+ return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(c !== void 0 ? c : {}, je) : c || "";
388
419
  }, V = function(c) {
389
420
  return c.pathname + c.search + c.hash;
390
421
  }, S = function(c, n, e, t) {
@@ -392,177 +423,178 @@ const P = function(c, ...n) {
392
423
  const o = { ...c.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + c.url };
393
424
  return a.request(o);
394
425
  };
395
- }, wa = {
426
+ }, Ea = {
396
427
  Bigquery: "bigquery",
397
428
  Snowflake: "snowflake",
398
429
  Postgres: "postgres",
399
430
  Gcs: "gcs",
400
431
  S3: "s3",
401
432
  Azure: "azure"
402
- }, Ea = {
433
+ }, Ma = {
403
434
  ServicePrincipal: "service_principal",
404
435
  SasToken: "sas_token"
405
- }, fa = {
436
+ }, Fa = {
406
437
  Error: "error",
407
438
  Warn: "warn",
408
439
  Debug: "debug"
409
- }, Ma = {
440
+ }, Ba = {
410
441
  Append: "append",
411
442
  File: "file",
412
443
  Package: "package"
413
- }, Fa = {
444
+ }, ja = {
414
445
  Success: "success",
415
446
  Error: "error"
416
- }, Ba = {
447
+ }, Da = {
417
448
  Grid: "grid",
418
449
  Linear: "linear"
419
- }, ja = {
450
+ }, qa = {
420
451
  Dashboard: "dashboard",
421
452
  Notebook: "notebook"
422
- }, Da = {
453
+ }, Qa = {
423
454
  Postgres: "postgres",
424
455
  Bigquery: "bigquery",
425
456
  Snowflake: "snowflake",
426
457
  Trino: "trino",
427
458
  Databricks: "databricks",
428
459
  Mysql: "mysql",
460
+ Sqlserver: "sqlserver",
429
461
  Duckdb: "duckdb",
430
462
  Motherduck: "motherduck",
431
463
  Ducklake: "ducklake",
432
464
  Publisher: "publisher"
433
- }, qa = {
465
+ }, za = {
434
466
  Ssh: "ssh"
435
- }, Qa = {
467
+ }, La = {
436
468
  Ok: "ok",
437
469
  Failed: "failed"
438
- }, La = {
470
+ }, Ha = {
439
471
  Grid: "grid",
440
472
  Linear: "linear"
441
- }, za = {
473
+ }, _a = {
442
474
  Dashboard: "dashboard",
443
475
  Notebook: "notebook"
444
- }, Ha = {
476
+ }, Ga = {
445
477
  Query: "query",
446
478
  Text: "text"
447
- }, _a = {
479
+ }, Wa = {
448
480
  Viewport: "viewport"
449
- }, Ga = {
481
+ }, $a = {
450
482
  Embedded: "embedded",
451
483
  Materialized: "materialized"
452
- }, Wa = {
484
+ }, Ka = {
453
485
  Equal: "equal",
454
486
  In: "in",
455
487
  Like: "like",
456
488
  GreaterThan: "greater_than",
457
489
  LessThan: "less_than"
458
- }, $a = {
490
+ }, Ya = {
459
491
  Live: "live",
460
492
  StaleOk: "stale_ok",
461
493
  Fail: "fail"
462
- }, Ka = {
494
+ }, Ja = {
463
495
  Select: "select",
464
496
  Multiselect: "multiselect"
465
- }, Ya = {
497
+ }, Xa = {
466
498
  Merge: "merge",
467
499
  RangeReplace: "range_replace"
468
- }, Ja = {
500
+ }, Za = {
469
501
  Debug: "debug",
470
502
  Info: "info",
471
503
  Warn: "warn",
472
504
  Error: "error"
473
- }, Xa = {
505
+ }, et = {
474
506
  Persist: "persist",
475
507
  Preaggregate: "preaggregate"
476
- }, Za = {
508
+ }, at = {
477
509
  Reused: "reused",
478
510
  Recomputed: "recomputed"
479
- }, et = {
511
+ }, tt = {
480
512
  Live: "live",
481
513
  StaleOk: "stale_ok",
482
514
  Fail: "fail"
483
- }, at = {
515
+ }, nt = {
484
516
  Delta: "delta",
485
517
  Full: "full",
486
518
  None: "none"
487
- }, tt = {
519
+ }, rt = {
488
520
  Pending: "PENDING",
489
521
  ManifestRowsReady: "MANIFEST_ROWS_READY",
490
522
  ManifestFileReady: "MANIFEST_FILE_READY",
491
523
  Failed: "FAILED",
492
524
  Cancelled: "CANCELLED"
493
- }, nt = {
525
+ }, ot = {
494
526
  Markdown: "markdown",
495
527
  Code: "code"
496
- }, rt = {
528
+ }, st = {
497
529
  Markdown: "markdown",
498
530
  Query: "query",
499
531
  Definition: "definition"
500
- }, ot = {
532
+ }, ct = {
501
533
  Markdown: "markdown",
502
534
  Code: "code"
503
- }, st = {
535
+ }, lt = {
504
536
  Markdown: "markdown",
505
537
  Query: "query",
506
538
  Definition: "definition"
507
- }, ct = {
539
+ }, it = {
508
540
  Version: "version",
509
541
  Package: "package"
510
- }, lt = {
542
+ }, pt = {
511
543
  Declared: "declared",
512
544
  All: "all"
513
- }, it = {
545
+ }, dt = {
514
546
  Unbound: "unbound",
515
547
  Bound: "bound",
516
548
  LiveFallback: "live_fallback"
517
- }, pt = {
549
+ }, mt = {
518
550
  Lexical: "lexical",
519
551
  Indexing: "indexing",
520
552
  Ready: "ready",
521
553
  Error: "error",
522
554
  Cooldown: "cooldown",
523
555
  TooManyEntities: "too-many-entities"
524
- }, dt = {
556
+ }, ht = {
525
557
  Cooldown: "cooldown",
526
558
  TooManyEntities: "too-many-entities"
527
- }, mt = {
559
+ }, ut = {
528
560
  Keyphrase: "keyphrase",
529
561
  SourceSummary: "source_summary"
530
- }, ht = {
562
+ }, gt = {
531
563
  Persist: "persist",
532
564
  Preaggregate: "preaggregate"
533
- }, ut = {
565
+ }, bt = {
534
566
  Error: "error",
535
567
  Warn: "warn"
536
- }, gt = {
568
+ }, Pt = {
537
569
  Persist: "persist",
538
570
  Preaggregate: "preaggregate"
539
- }, bt = {
571
+ }, vt = {
540
572
  Disable: "disable",
541
573
  NoVerify: "no-verify",
542
574
  VerifyCa: "verify-ca",
543
575
  VerifyFull: "verify-full"
544
- }, vt = {
576
+ }, Vt = {
545
577
  Interactive: "interactive",
546
578
  Materialize: "materialize",
547
579
  Index: "index",
548
580
  Ops: "ops"
549
- }, Pt = {
581
+ }, St = {
550
582
  Query: "query",
551
583
  ServerDefault: "server_default"
552
- }, Vt = {
584
+ }, Ot = {
553
585
  Storage: "storage",
554
586
  LiveFallback: "live_fallback"
555
- }, St = {
587
+ }, kt = {
556
588
  Malloynb: "malloynb",
557
589
  Malloy: "malloy"
558
- }, Ot = {
590
+ }, At = {
559
591
  Snapshot: "SNAPSHOT",
560
592
  Copy: "COPY"
561
- }, kt = {
593
+ }, yt = {
562
594
  Storage: "storage",
563
595
  Colocated: "colocated",
564
596
  Preaggregate: "preaggregate"
565
- }, At = {
597
+ }, Ct = {
566
598
  FreeParameter: "free_parameter",
567
599
  Given: "given",
568
600
  GivenInPersistedQuery: "given_in_persisted_query",
@@ -576,42 +608,43 @@ const P = function(c, ...n) {
576
608
  PreaggregateOverDynamicSource: "preaggregate_over_dynamic_source",
577
609
  Authorize: "authorize",
578
610
  NotDuckdbPortable: "not_duckdb_portable",
579
- PublicSurfaceUnknown: "public_surface_unknown"
580
- }, yt = {
611
+ PublicSurfaceUnknown: "public_surface_unknown",
612
+ ReadOnlyDialect: "read_only_dialect"
613
+ }, It = {
581
614
  Grid: "grid",
582
615
  Linear: "linear"
583
- }, Ct = {
616
+ }, xt = {
584
617
  Malloynb: "malloynb",
585
618
  Malloy: "malloy"
586
- }, It = {
619
+ }, Rt = {
587
620
  Grid: "grid",
588
621
  Linear: "linear"
589
- }, xt = {
622
+ }, Nt = {
590
623
  Query: "query",
591
624
  Text: "text"
592
- }, Rt = {
625
+ }, Ut = {
593
626
  Publish: "publish",
594
627
  OnDemand: "on_demand",
595
628
  Scheduler: "scheduler"
596
- }, Nt = {
629
+ }, Tt = {
597
630
  Config: "config",
598
631
  CredentialChain: "credential_chain"
599
- }, Ut = {
632
+ }, ft = {
600
633
  Initializing: "initializing",
601
634
  Serving: "serving",
602
635
  Draining: "draining",
603
636
  Throttled: "throttled"
604
- }, Tt = {
605
- Bundled: "bundled",
606
- Package: "package"
607
637
  }, wt = {
608
638
  Bundled: "bundled",
609
639
  Package: "package"
610
640
  }, Et = {
641
+ Bundled: "bundled",
642
+ Package: "package"
643
+ }, Mt = {
611
644
  Light: "light",
612
645
  Dark: "dark",
613
646
  Auto: "auto"
614
- }, Me = function(c) {
647
+ }, De = function(c) {
615
648
  return {
616
649
  /**
617
650
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
@@ -625,11 +658,11 @@ const P = function(c, ...n) {
625
658
  */
626
659
  getAgent: async (n, e, t, a, r = {}) => {
627
660
  m("getAgent", "environmentName", n), m("getAgent", "packageName", e), m("getAgent", "agentName", t);
628
- const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), s = new URL(o, v);
661
+ const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), s = new URL(o, P);
629
662
  let l;
630
663
  c && (l = c.baseOptions);
631
664
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
632
- a !== void 0 && (d.skills = a), p.Accept = "application/json", P(s, d);
665
+ a !== void 0 && (d.skills = a), p.Accept = "application/json", v(s, d);
633
666
  let h = l && l.headers ? l.headers : {};
634
667
  return i.headers = { ...p, ...h, ...r.headers }, {
635
668
  url: V(s),
@@ -648,11 +681,11 @@ const P = function(c, ...n) {
648
681
  */
649
682
  getAgentSkillFile: async (n, e, t, a, r = {}) => {
650
683
  m("getAgentSkillFile", "environmentName", n), m("getAgentSkillFile", "packageName", e), m("getAgentSkillFile", "agentName", t), m("getAgentSkillFile", "relativeFilepath", a);
651
- const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), s = new URL(o, v);
684
+ const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), s = new URL(o, P);
652
685
  let l;
653
686
  c && (l = c.baseOptions);
654
687
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
655
- p.Accept = "application/json", P(s, d);
688
+ p.Accept = "application/json", v(s, d);
656
689
  let h = l && l.headers ? l.headers : {};
657
690
  return i.headers = { ...p, ...h, ...r.headers }, {
658
691
  url: V(s),
@@ -669,11 +702,11 @@ const P = function(c, ...n) {
669
702
  */
670
703
  listAgents: async (n, e, t = {}) => {
671
704
  m("listAgents", "environmentName", n), m("listAgents", "packageName", e);
672
- const a = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
705
+ const a = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
673
706
  let o;
674
707
  c && (o = c.baseOptions);
675
708
  const s = { method: "GET", ...o, ...t }, l = {}, i = {};
676
- l.Accept = "application/json", P(r, i);
709
+ l.Accept = "application/json", v(r, i);
677
710
  let p = o && o.headers ? o.headers : {};
678
711
  return s.headers = { ...l, ...p, ...t.headers }, {
679
712
  url: V(r),
@@ -681,8 +714,8 @@ const P = function(c, ...n) {
681
714
  };
682
715
  }
683
716
  };
684
- }, Q = function(c) {
685
- const n = Me(c);
717
+ }, z = function(c) {
718
+ const n = De(c);
686
719
  return {
687
720
  /**
688
721
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
@@ -725,8 +758,8 @@ const P = function(c, ...n) {
725
758
  return (l, i) => S(r, u, g, c)(l, s || i);
726
759
  }
727
760
  };
728
- }, ft = function(c, n, e) {
729
- const t = Q(c);
761
+ }, Ft = function(c, n, e) {
762
+ const t = z(c);
730
763
  return {
731
764
  /**
732
765
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
@@ -767,7 +800,7 @@ const P = function(c, ...n) {
767
800
  }
768
801
  };
769
802
  };
770
- class Mt extends x {
803
+ class Bt extends x {
771
804
  /**
772
805
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
773
806
  * @summary Get one agent, resolved
@@ -779,7 +812,7 @@ class Mt extends x {
779
812
  * @throws {RequiredError}
780
813
  */
781
814
  getAgent(n, e, t, a, r) {
782
- return Q(this.configuration).getAgent(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
815
+ return z(this.configuration).getAgent(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
783
816
  }
784
817
  /**
785
818
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
@@ -792,7 +825,7 @@ class Mt extends x {
792
825
  * @throws {RequiredError}
793
826
  */
794
827
  getAgentSkillFile(n, e, t, a, r) {
795
- return Q(this.configuration).getAgentSkillFile(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
828
+ return z(this.configuration).getAgentSkillFile(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
796
829
  }
797
830
  /**
798
831
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
@@ -803,13 +836,13 @@ class Mt extends x {
803
836
  * @throws {RequiredError}
804
837
  */
805
838
  listAgents(n, e, t) {
806
- return Q(this.configuration).listAgents(n, e, t).then((a) => a(this.axios, this.basePath));
839
+ return z(this.configuration).listAgents(n, e, t).then((a) => a(this.axios, this.basePath));
807
840
  }
808
841
  }
809
- const Ft = {
842
+ const jt = {
810
843
  Full: "full",
811
844
  Summary: "summary"
812
- }, Fe = function(c) {
845
+ }, qe = function(c) {
813
846
  return {
814
847
  /**
815
848
  * Creates a new database connection in the specified environment.
@@ -822,11 +855,11 @@ const Ft = {
822
855
  */
823
856
  createConnection: async (n, e, t, a = {}) => {
824
857
  m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
825
- const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
858
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
826
859
  let s;
827
860
  c && (s = c.baseOptions);
828
861
  const l = { method: "POST", ...s, ...a }, i = {}, p = {};
829
- i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
862
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
830
863
  let d = s && s.headers ? s.headers : {};
831
864
  return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
832
865
  url: V(o),
@@ -843,11 +876,11 @@ const Ft = {
843
876
  */
844
877
  deleteConnection: async (n, e, t = {}) => {
845
878
  m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
846
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, v);
879
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
847
880
  let o;
848
881
  c && (o = c.baseOptions);
849
882
  const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
850
- l.Accept = "application/json", P(r, i);
883
+ l.Accept = "application/json", v(r, i);
851
884
  let p = o && o.headers ? o.headers : {};
852
885
  return s.headers = { ...l, ...p, ...t.headers }, {
853
886
  url: V(r),
@@ -864,11 +897,11 @@ const Ft = {
864
897
  */
865
898
  getConnection: async (n, e, t = {}) => {
866
899
  m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
867
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, v);
900
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
868
901
  let o;
869
902
  c && (o = c.baseOptions);
870
903
  const s = { method: "GET", ...o, ...t }, l = {}, i = {};
871
- l.Accept = "application/json", P(r, i);
904
+ l.Accept = "application/json", v(r, i);
872
905
  let p = o && o.headers ? o.headers : {};
873
906
  return s.headers = { ...l, ...p, ...t.headers }, {
874
907
  url: V(r),
@@ -887,11 +920,11 @@ const Ft = {
887
920
  */
888
921
  getTable: async (n, e, t, a, r = {}) => {
889
922
  m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
890
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, v);
923
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
891
924
  let l;
892
925
  c && (l = c.baseOptions);
893
926
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
894
- p.Accept = "application/json", P(s, d);
927
+ p.Accept = "application/json", v(s, d);
895
928
  let h = l && l.headers ? l.headers : {};
896
929
  return i.headers = { ...p, ...h, ...r.headers }, {
897
930
  url: V(s),
@@ -911,11 +944,11 @@ const Ft = {
911
944
  */
912
945
  getTableInPackage: async (n, e, t, a, r, o = {}) => {
913
946
  m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", r);
914
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), l = new URL(s, v);
947
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), l = new URL(s, P);
915
948
  let i;
916
949
  c && (i = c.baseOptions);
917
950
  const p = { method: "GET", ...i, ...o }, d = {}, h = {};
918
- d.Accept = "application/json", P(l, h);
951
+ d.Accept = "application/json", v(l, h);
919
952
  let O = i && i.headers ? i.headers : {};
920
953
  return p.headers = { ...d, ...O, ...o.headers }, {
921
954
  url: V(l),
@@ -931,11 +964,11 @@ const Ft = {
931
964
  */
932
965
  listConnections: async (n, e = {}) => {
933
966
  m("listConnections", "environmentName", n);
934
- const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, v);
967
+ const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
935
968
  let r;
936
969
  c && (r = c.baseOptions);
937
970
  const o = { method: "GET", ...r, ...e }, s = {}, l = {};
938
- s.Accept = "application/json", P(a, l);
971
+ s.Accept = "application/json", v(a, l);
939
972
  let i = r && r.headers ? r.headers : {};
940
973
  return o.headers = { ...s, ...i, ...e.headers }, {
941
974
  url: V(a),
@@ -952,11 +985,11 @@ const Ft = {
952
985
  */
953
986
  listSchemas: async (n, e, t = {}) => {
954
987
  m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
955
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, v);
988
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
956
989
  let o;
957
990
  c && (o = c.baseOptions);
958
991
  const s = { method: "GET", ...o, ...t }, l = {}, i = {};
959
- l.Accept = "application/json", P(r, i);
992
+ l.Accept = "application/json", v(r, i);
960
993
  let p = o && o.headers ? o.headers : {};
961
994
  return s.headers = { ...l, ...p, ...t.headers }, {
962
995
  url: V(r),
@@ -974,11 +1007,11 @@ const Ft = {
974
1007
  */
975
1008
  listSchemasInPackage: async (n, e, t, a = {}) => {
976
1009
  m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
977
- const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r, v);
1010
+ const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r, P);
978
1011
  let s;
979
1012
  c && (s = c.baseOptions);
980
1013
  const l = { method: "GET", ...s, ...a }, i = {}, p = {};
981
- i.Accept = "application/json", P(o, p);
1014
+ i.Accept = "application/json", v(o, p);
982
1015
  let d = s && s.headers ? s.headers : {};
983
1016
  return l.headers = { ...i, ...d, ...a.headers }, {
984
1017
  url: V(o),
@@ -997,11 +1030,11 @@ const Ft = {
997
1030
  */
998
1031
  listTables: async (n, e, t, a, r = {}) => {
999
1032
  m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
1000
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, v);
1033
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, P);
1001
1034
  let l;
1002
1035
  c && (l = c.baseOptions);
1003
1036
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
1004
- a && (d.tableNames = a), p.Accept = "application/json", P(s, d);
1037
+ a && (d.tableNames = a), p.Accept = "application/json", v(s, d);
1005
1038
  let h = l && l.headers ? l.headers : {};
1006
1039
  return i.headers = { ...p, ...h, ...r.headers }, {
1007
1040
  url: V(s),
@@ -1021,11 +1054,11 @@ const Ft = {
1021
1054
  */
1022
1055
  listTablesInPackage: async (n, e, t, a, r, o = {}) => {
1023
1056
  m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
1024
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), l = new URL(s, v);
1057
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), l = new URL(s, P);
1025
1058
  let i;
1026
1059
  c && (i = c.baseOptions);
1027
1060
  const p = { method: "GET", ...i, ...o }, d = {}, h = {};
1028
- r && (h.tableNames = r), d.Accept = "application/json", P(l, h);
1061
+ r && (h.tableNames = r), d.Accept = "application/json", v(l, h);
1029
1062
  let O = i && i.headers ? i.headers : {};
1030
1063
  return p.headers = { ...d, ...O, ...o.headers }, {
1031
1064
  url: V(l),
@@ -1043,11 +1076,11 @@ const Ft = {
1043
1076
  */
1044
1077
  postQuerydata: async (n, e, t, a = {}) => {
1045
1078
  m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
1046
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
1079
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
1047
1080
  let s;
1048
1081
  c && (s = c.baseOptions);
1049
1082
  const l = { method: "POST", ...s, ...a }, i = {}, p = {};
1050
- i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
1083
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1051
1084
  let d = s && s.headers ? s.headers : {};
1052
1085
  return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
1053
1086
  url: V(o),
@@ -1066,11 +1099,11 @@ const Ft = {
1066
1099
  */
1067
1100
  postQuerydataInPackage: async (n, e, t, a, r = {}) => {
1068
1101
  m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
1069
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, v);
1102
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
1070
1103
  let l;
1071
1104
  c && (l = c.baseOptions);
1072
1105
  const i = { method: "POST", ...l, ...r }, p = {}, d = {};
1073
- p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
1106
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
1074
1107
  let h = l && l.headers ? l.headers : {};
1075
1108
  return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
1076
1109
  url: V(s),
@@ -1088,11 +1121,11 @@ const Ft = {
1088
1121
  */
1089
1122
  postSqlsource: async (n, e, t, a = {}) => {
1090
1123
  m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
1091
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
1124
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
1092
1125
  let s;
1093
1126
  c && (s = c.baseOptions);
1094
1127
  const l = { method: "POST", ...s, ...a }, i = {}, p = {};
1095
- i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
1128
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1096
1129
  let d = s && s.headers ? s.headers : {};
1097
1130
  return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
1098
1131
  url: V(o),
@@ -1111,11 +1144,11 @@ const Ft = {
1111
1144
  */
1112
1145
  postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
1113
1146
  m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
1114
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, v);
1147
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
1115
1148
  let l;
1116
1149
  c && (l = c.baseOptions);
1117
1150
  const i = { method: "POST", ...l, ...r }, p = {}, d = {};
1118
- p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
1151
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
1119
1152
  let h = l && l.headers ? l.headers : {};
1120
1153
  return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
1121
1154
  url: V(s),
@@ -1133,11 +1166,11 @@ const Ft = {
1133
1166
  */
1134
1167
  postTemporarytable: async (n, e, t, a = {}) => {
1135
1168
  m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
1136
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
1169
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
1137
1170
  let s;
1138
1171
  c && (s = c.baseOptions);
1139
1172
  const l = { method: "POST", ...s, ...a }, i = {}, p = {};
1140
- i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
1173
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1141
1174
  let d = s && s.headers ? s.headers : {};
1142
1175
  return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
1143
1176
  url: V(o),
@@ -1156,11 +1189,11 @@ const Ft = {
1156
1189
  */
1157
1190
  postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
1158
1191
  m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
1159
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, v);
1192
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
1160
1193
  let l;
1161
1194
  c && (l = c.baseOptions);
1162
1195
  const i = { method: "POST", ...l, ...r }, p = {}, d = {};
1163
- p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
1196
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
1164
1197
  let h = l && l.headers ? l.headers : {};
1165
1198
  return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
1166
1199
  url: V(s),
@@ -1178,11 +1211,11 @@ const Ft = {
1178
1211
  */
1179
1212
  updateConnection: async (n, e, t, a = {}) => {
1180
1213
  m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
1181
- const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
1214
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
1182
1215
  let s;
1183
1216
  c && (s = c.baseOptions);
1184
1217
  const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
1185
- i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
1218
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1186
1219
  let d = s && s.headers ? s.headers : {};
1187
1220
  return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
1188
1221
  url: V(o),
@@ -1191,7 +1224,7 @@ const Ft = {
1191
1224
  }
1192
1225
  };
1193
1226
  }, y = function(c) {
1194
- const n = Fe(c);
1227
+ const n = qe(c);
1195
1228
  return {
1196
1229
  /**
1197
1230
  * Creates a new database connection in the specified environment.
@@ -1419,7 +1452,7 @@ const Ft = {
1419
1452
  return (i, p) => S(o, u, g, c)(i, l || p);
1420
1453
  }
1421
1454
  };
1422
- }, Bt = function(c, n, e) {
1455
+ }, Dt = function(c, n, e) {
1423
1456
  const t = y(c);
1424
1457
  return {
1425
1458
  /**
@@ -1632,7 +1665,7 @@ const Ft = {
1632
1665
  }
1633
1666
  };
1634
1667
  };
1635
- class Be extends x {
1668
+ class Qe extends x {
1636
1669
  /**
1637
1670
  * Creates a new database connection in the specified environment.
1638
1671
  * @summary Create a new database connection
@@ -1842,7 +1875,7 @@ class Be extends x {
1842
1875
  return y(this.configuration).updateConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
1843
1876
  }
1844
1877
  }
1845
- const je = function(c) {
1878
+ const ze = function(c) {
1846
1879
  return {
1847
1880
  /**
1848
1881
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1853,11 +1886,11 @@ const je = function(c) {
1853
1886
  */
1854
1887
  testConnectionConfiguration: async (n, e = {}) => {
1855
1888
  m("testConnectionConfiguration", "connection", n);
1856
- const t = "/connections/test", a = new URL(t, v);
1889
+ const t = "/connections/test", a = new URL(t, P);
1857
1890
  let r;
1858
1891
  c && (r = c.baseOptions);
1859
1892
  const o = { method: "POST", ...r, ...e }, s = {}, l = {};
1860
- s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
1893
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
1861
1894
  let i = r && r.headers ? r.headers : {};
1862
1895
  return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
1863
1896
  url: V(a),
@@ -1865,8 +1898,8 @@ const je = function(c) {
1865
1898
  };
1866
1899
  }
1867
1900
  };
1868
- }, le = function(c) {
1869
- const n = je(c);
1901
+ }, pe = function(c) {
1902
+ const n = ze(c);
1870
1903
  return {
1871
1904
  /**
1872
1905
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1880,8 +1913,8 @@ const je = function(c) {
1880
1913
  return (s, l) => S(a, u, g, c)(s, o || l);
1881
1914
  }
1882
1915
  };
1883
- }, jt = function(c, n, e) {
1884
- const t = le(c);
1916
+ }, qt = function(c, n, e) {
1917
+ const t = pe(c);
1885
1918
  return {
1886
1919
  /**
1887
1920
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1895,7 +1928,7 @@ const je = function(c) {
1895
1928
  }
1896
1929
  };
1897
1930
  };
1898
- class Dt extends x {
1931
+ class Qt extends x {
1899
1932
  /**
1900
1933
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
1901
1934
  * @summary Test database connection configuration
@@ -1904,10 +1937,10 @@ class Dt extends x {
1904
1937
  * @throws {RequiredError}
1905
1938
  */
1906
1939
  testConnectionConfiguration(n, e) {
1907
- return le(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
1940
+ return pe(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
1908
1941
  }
1909
1942
  }
1910
- const De = function(c) {
1943
+ const Le = function(c) {
1911
1944
  return {
1912
1945
  /**
1913
1946
  * **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
@@ -1922,11 +1955,11 @@ const De = function(c) {
1922
1955
  */
1923
1956
  getDashboard: async (n, e, t, a, r = {}) => {
1924
1957
  m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
1925
- const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, v);
1958
+ const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, P);
1926
1959
  let l;
1927
1960
  c && (l = c.baseOptions);
1928
1961
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
1929
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", P(s, d);
1962
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
1930
1963
  let h = l && l.headers ? l.headers : {};
1931
1964
  return i.headers = { ...p, ...h, ...r.headers }, {
1932
1965
  url: V(s),
@@ -1945,11 +1978,11 @@ const De = function(c) {
1945
1978
  */
1946
1979
  listDashboards: async (n, e, t, a = {}) => {
1947
1980
  m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
1948
- const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
1981
+ const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1949
1982
  let s;
1950
1983
  c && (s = c.baseOptions);
1951
1984
  const l = { method: "GET", ...s, ...a }, i = {}, p = {};
1952
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
1985
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
1953
1986
  let d = s && s.headers ? s.headers : {};
1954
1987
  return l.headers = { ...i, ...d, ...a.headers }, {
1955
1988
  url: V(o),
@@ -1957,8 +1990,8 @@ const De = function(c) {
1957
1990
  };
1958
1991
  }
1959
1992
  };
1960
- }, $ = function(c) {
1961
- const n = De(c);
1993
+ }, K = function(c) {
1994
+ const n = Le(c);
1962
1995
  return {
1963
1996
  /**
1964
1997
  * **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
@@ -1990,8 +2023,8 @@ const De = function(c) {
1990
2023
  return (i, p) => S(o, u, g, c)(i, l || p);
1991
2024
  }
1992
2025
  };
1993
- }, qt = function(c, n, e) {
1994
- const t = $(c);
2026
+ }, zt = function(c, n, e) {
2027
+ const t = K(c);
1995
2028
  return {
1996
2029
  /**
1997
2030
  * **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
@@ -2022,7 +2055,7 @@ const De = function(c) {
2022
2055
  }
2023
2056
  };
2024
2057
  };
2025
- class qe extends x {
2058
+ class He extends x {
2026
2059
  /**
2027
2060
  * **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
2028
2061
  * @summary Get a dashboard manifest (deprecated; use get-report)
@@ -2035,7 +2068,7 @@ class qe extends x {
2035
2068
  * @throws {RequiredError}
2036
2069
  */
2037
2070
  getDashboard(n, e, t, a, r) {
2038
- return $(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2071
+ return K(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2039
2072
  }
2040
2073
  /**
2041
2074
  * **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -2048,10 +2081,10 @@ class qe extends x {
2048
2081
  * @throws {RequiredError}
2049
2082
  */
2050
2083
  listDashboards(n, e, t, a) {
2051
- return $(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
2084
+ return K(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
2052
2085
  }
2053
2086
  }
2054
- const Qe = function(c) {
2087
+ const _e = function(c) {
2055
2088
  return {
2056
2089
  /**
2057
2090
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -2063,11 +2096,11 @@ const Qe = function(c) {
2063
2096
  */
2064
2097
  listDataApps: async (n, e, t = {}) => {
2065
2098
  m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
2066
- const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
2099
+ const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
2067
2100
  let o;
2068
2101
  c && (o = c.baseOptions);
2069
2102
  const s = { method: "GET", ...o, ...t }, l = {}, i = {};
2070
- l.Accept = "application/json", P(r, i);
2103
+ l.Accept = "application/json", v(r, i);
2071
2104
  let p = o && o.headers ? o.headers : {};
2072
2105
  return s.headers = { ...l, ...p, ...t.headers }, {
2073
2106
  url: V(r),
@@ -2075,8 +2108,8 @@ const Qe = function(c) {
2075
2108
  };
2076
2109
  }
2077
2110
  };
2078
- }, ie = function(c) {
2079
- const n = Qe(c);
2111
+ }, de = function(c) {
2112
+ const n = _e(c);
2080
2113
  return {
2081
2114
  /**
2082
2115
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -2091,8 +2124,8 @@ const Qe = function(c) {
2091
2124
  return (l, i) => S(r, u, g, c)(l, s || i);
2092
2125
  }
2093
2126
  };
2094
- }, Qt = function(c, n, e) {
2095
- const t = ie(c);
2127
+ }, Lt = function(c, n, e) {
2128
+ const t = de(c);
2096
2129
  return {
2097
2130
  /**
2098
2131
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -2107,7 +2140,7 @@ const Qe = function(c) {
2107
2140
  }
2108
2141
  };
2109
2142
  };
2110
- class Le extends x {
2143
+ class Ge extends x {
2111
2144
  /**
2112
2145
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
2113
2146
  * @summary List package data apps
@@ -2117,10 +2150,10 @@ class Le extends x {
2117
2150
  * @throws {RequiredError}
2118
2151
  */
2119
2152
  listDataApps(n, e, t) {
2120
- return ie(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
2153
+ return de(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
2121
2154
  }
2122
2155
  }
2123
- const ze = function(c) {
2156
+ const We = function(c) {
2124
2157
  return {
2125
2158
  /**
2126
2159
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -2133,11 +2166,11 @@ const ze = function(c) {
2133
2166
  */
2134
2167
  listDatabases: async (n, e, t, a = {}) => {
2135
2168
  m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
2136
- const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
2169
+ const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2137
2170
  let s;
2138
2171
  c && (s = c.baseOptions);
2139
2172
  const l = { method: "GET", ...s, ...a }, i = {}, p = {};
2140
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
2173
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
2141
2174
  let d = s && s.headers ? s.headers : {};
2142
2175
  return l.headers = { ...i, ...d, ...a.headers }, {
2143
2176
  url: V(o),
@@ -2145,8 +2178,8 @@ const ze = function(c) {
2145
2178
  };
2146
2179
  }
2147
2180
  };
2148
- }, pe = function(c) {
2149
- const n = ze(c);
2181
+ }, me = function(c) {
2182
+ const n = We(c);
2150
2183
  return {
2151
2184
  /**
2152
2185
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -2162,8 +2195,8 @@ const ze = function(c) {
2162
2195
  return (i, p) => S(o, u, g, c)(i, l || p);
2163
2196
  }
2164
2197
  };
2165
- }, Lt = function(c, n, e) {
2166
- const t = pe(c);
2198
+ }, Ht = function(c, n, e) {
2199
+ const t = me(c);
2167
2200
  return {
2168
2201
  /**
2169
2202
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -2179,7 +2212,7 @@ const ze = function(c) {
2179
2212
  }
2180
2213
  };
2181
2214
  };
2182
- class He extends x {
2215
+ class $e extends x {
2183
2216
  /**
2184
2217
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
2185
2218
  * @summary List embedded databases
@@ -2190,10 +2223,10 @@ class He extends x {
2190
2223
  * @throws {RequiredError}
2191
2224
  */
2192
2225
  listDatabases(n, e, t, a) {
2193
- return pe(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
2226
+ return me(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
2194
2227
  }
2195
2228
  }
2196
- const _e = function(c) {
2229
+ const Ke = function(c) {
2197
2230
  return {
2198
2231
  /**
2199
2232
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -2204,11 +2237,11 @@ const _e = function(c) {
2204
2237
  */
2205
2238
  createEnvironment: async (n, e = {}) => {
2206
2239
  m("createEnvironment", "environment", n);
2207
- const t = "/environments", a = new URL(t, v);
2240
+ const t = "/environments", a = new URL(t, P);
2208
2241
  let r;
2209
2242
  c && (r = c.baseOptions);
2210
2243
  const o = { method: "POST", ...r, ...e }, s = {}, l = {};
2211
- s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
2244
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
2212
2245
  let i = r && r.headers ? r.headers : {};
2213
2246
  return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
2214
2247
  url: V(a),
@@ -2224,11 +2257,11 @@ const _e = function(c) {
2224
2257
  */
2225
2258
  deleteEnvironment: async (n, e = {}) => {
2226
2259
  m("deleteEnvironment", "environmentName", n);
2227
- const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, v);
2260
+ const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
2228
2261
  let r;
2229
2262
  c && (r = c.baseOptions);
2230
2263
  const o = { method: "DELETE", ...r, ...e }, s = {}, l = {};
2231
- s.Accept = "application/json", P(a, l);
2264
+ s.Accept = "application/json", v(a, l);
2232
2265
  let i = r && r.headers ? r.headers : {};
2233
2266
  return o.headers = { ...s, ...i, ...e.headers }, {
2234
2267
  url: V(a),
@@ -2245,11 +2278,11 @@ const _e = function(c) {
2245
2278
  */
2246
2279
  getEnvironment: async (n, e, t = {}) => {
2247
2280
  m("getEnvironment", "environmentName", n);
2248
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, v);
2281
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
2249
2282
  let o;
2250
2283
  c && (o = c.baseOptions);
2251
2284
  const s = { method: "GET", ...o, ...t }, l = {}, i = {};
2252
- e !== void 0 && (i.reload = e), l.Accept = "application/json", P(r, i);
2285
+ e !== void 0 && (i.reload = e), l.Accept = "application/json", v(r, i);
2253
2286
  let p = o && o.headers ? o.headers : {};
2254
2287
  return s.headers = { ...l, ...p, ...t.headers }, {
2255
2288
  url: V(r),
@@ -2263,11 +2296,11 @@ const _e = function(c) {
2263
2296
  * @throws {RequiredError}
2264
2297
  */
2265
2298
  listEnvironments: async (n = {}) => {
2266
- const e = "/environments", t = new URL(e, v);
2299
+ const e = "/environments", t = new URL(e, P);
2267
2300
  let a;
2268
2301
  c && (a = c.baseOptions);
2269
2302
  const r = { method: "GET", ...a, ...n }, o = {}, s = {};
2270
- o.Accept = "application/json", P(t, s);
2303
+ o.Accept = "application/json", v(t, s);
2271
2304
  let l = a && a.headers ? a.headers : {};
2272
2305
  return r.headers = { ...o, ...l, ...n.headers }, {
2273
2306
  url: V(t),
@@ -2284,11 +2317,11 @@ const _e = function(c) {
2284
2317
  */
2285
2318
  updateEnvironment: async (n, e, t = {}) => {
2286
2319
  m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
2287
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, v);
2320
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
2288
2321
  let o;
2289
2322
  c && (o = c.baseOptions);
2290
2323
  const s = { method: "PATCH", ...o, ...t }, l = {}, i = {};
2291
- l["Content-Type"] = "application/json", l.Accept = "application/json", P(r, i);
2324
+ l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
2292
2325
  let p = o && o.headers ? o.headers : {};
2293
2326
  return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
2294
2327
  url: V(r),
@@ -2296,8 +2329,8 @@ const _e = function(c) {
2296
2329
  };
2297
2330
  }
2298
2331
  };
2299
- }, w = function(c) {
2300
- const n = _e(c);
2332
+ }, f = function(c) {
2333
+ const n = Ke(c);
2301
2334
  return {
2302
2335
  /**
2303
2336
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -2356,8 +2389,8 @@ const _e = function(c) {
2356
2389
  return (l, i) => S(r, u, g, c)(l, s || i);
2357
2390
  }
2358
2391
  };
2359
- }, zt = function(c, n, e) {
2360
- const t = w(c);
2392
+ }, _t = function(c, n, e) {
2393
+ const t = f(c);
2361
2394
  return {
2362
2395
  /**
2363
2396
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -2412,7 +2445,7 @@ const _e = function(c) {
2412
2445
  }
2413
2446
  };
2414
2447
  };
2415
- class Ge extends x {
2448
+ class Ye extends x {
2416
2449
  /**
2417
2450
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
2418
2451
  * @summary Create a new environment
@@ -2421,7 +2454,7 @@ class Ge extends x {
2421
2454
  * @throws {RequiredError}
2422
2455
  */
2423
2456
  createEnvironment(n, e) {
2424
- return w(this.configuration).createEnvironment(n, e).then((t) => t(this.axios, this.basePath));
2457
+ return f(this.configuration).createEnvironment(n, e).then((t) => t(this.axios, this.basePath));
2425
2458
  }
2426
2459
  /**
2427
2460
  * Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
@@ -2431,7 +2464,7 @@ class Ge extends x {
2431
2464
  * @throws {RequiredError}
2432
2465
  */
2433
2466
  deleteEnvironment(n, e) {
2434
- return w(this.configuration).deleteEnvironment(n, e).then((t) => t(this.axios, this.basePath));
2467
+ return f(this.configuration).deleteEnvironment(n, e).then((t) => t(this.axios, this.basePath));
2435
2468
  }
2436
2469
  /**
2437
2470
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
@@ -2442,7 +2475,7 @@ class Ge extends x {
2442
2475
  * @throws {RequiredError}
2443
2476
  */
2444
2477
  getEnvironment(n, e, t) {
2445
- return w(this.configuration).getEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
2478
+ return f(this.configuration).getEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
2446
2479
  }
2447
2480
  /**
2448
2481
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
@@ -2451,7 +2484,7 @@ class Ge extends x {
2451
2484
  * @throws {RequiredError}
2452
2485
  */
2453
2486
  listEnvironments(n) {
2454
- return w(this.configuration).listEnvironments(n).then((e) => e(this.axios, this.basePath));
2487
+ return f(this.configuration).listEnvironments(n).then((e) => e(this.axios, this.basePath));
2455
2488
  }
2456
2489
  /**
2457
2490
  * Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
@@ -2462,10 +2495,10 @@ class Ge extends x {
2462
2495
  * @throws {RequiredError}
2463
2496
  */
2464
2497
  updateEnvironment(n, e, t) {
2465
- return w(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
2498
+ return f(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
2466
2499
  }
2467
2500
  }
2468
- const We = function(c) {
2501
+ const Je = function(c) {
2469
2502
  return {
2470
2503
  /**
2471
2504
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -2478,11 +2511,11 @@ const We = function(c) {
2478
2511
  */
2479
2512
  createMaterialization: async (n, e, t, a = {}) => {
2480
2513
  m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
2481
- const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
2514
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2482
2515
  let s;
2483
2516
  c && (s = c.baseOptions);
2484
2517
  const l = { method: "POST", ...s, ...a }, i = {}, p = {};
2485
- i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
2518
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
2486
2519
  let d = s && s.headers ? s.headers : {};
2487
2520
  return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
2488
2521
  url: V(o),
@@ -2501,11 +2534,11 @@ const We = function(c) {
2501
2534
  */
2502
2535
  deleteMaterialization: async (n, e, t, a, r = {}) => {
2503
2536
  m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
2504
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, v);
2537
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
2505
2538
  let l;
2506
2539
  c && (l = c.baseOptions);
2507
2540
  const i = { method: "DELETE", ...l, ...r }, p = {}, d = {};
2508
- a !== void 0 && (d.dropTables = a), p.Accept = "application/json", P(s, d);
2541
+ a !== void 0 && (d.dropTables = a), p.Accept = "application/json", v(s, d);
2509
2542
  let h = l && l.headers ? l.headers : {};
2510
2543
  return i.headers = { ...p, ...h, ...r.headers }, {
2511
2544
  url: V(s),
@@ -2523,11 +2556,11 @@ const We = function(c) {
2523
2556
  */
2524
2557
  getMaterialization: async (n, e, t, a = {}) => {
2525
2558
  m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
2526
- const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r, v);
2559
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r, P);
2527
2560
  let s;
2528
2561
  c && (s = c.baseOptions);
2529
2562
  const l = { method: "GET", ...s, ...a }, i = {}, p = {};
2530
- i.Accept = "application/json", P(o, p);
2563
+ i.Accept = "application/json", v(o, p);
2531
2564
  let d = s && s.headers ? s.headers : {};
2532
2565
  return l.headers = { ...i, ...d, ...a.headers }, {
2533
2566
  url: V(o),
@@ -2546,11 +2579,11 @@ const We = function(c) {
2546
2579
  */
2547
2580
  listMaterializations: async (n, e, t, a, r = {}) => {
2548
2581
  m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
2549
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, v);
2582
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2550
2583
  let l;
2551
2584
  c && (l = c.baseOptions);
2552
2585
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
2553
- t !== void 0 && (d.limit = t), a !== void 0 && (d.offset = a), p.Accept = "application/json", P(s, d);
2586
+ t !== void 0 && (d.limit = t), a !== void 0 && (d.offset = a), p.Accept = "application/json", v(s, d);
2554
2587
  let h = l && l.headers ? l.headers : {};
2555
2588
  return i.headers = { ...p, ...h, ...r.headers }, {
2556
2589
  url: V(s),
@@ -2569,11 +2602,11 @@ const We = function(c) {
2569
2602
  */
2570
2603
  materializationAction: async (n, e, t, a, r = {}) => {
2571
2604
  m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
2572
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, v);
2605
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
2573
2606
  let l;
2574
2607
  c && (l = c.baseOptions);
2575
2608
  const i = { method: "POST", ...l, ...r }, p = {}, d = {};
2576
- a !== void 0 && (d.action = a), p.Accept = "application/json", P(s, d);
2609
+ a !== void 0 && (d.action = a), p.Accept = "application/json", v(s, d);
2577
2610
  let h = l && l.headers ? l.headers : {};
2578
2611
  return i.headers = { ...p, ...h, ...r.headers }, {
2579
2612
  url: V(s),
@@ -2581,8 +2614,8 @@ const We = function(c) {
2581
2614
  };
2582
2615
  }
2583
2616
  };
2584
- }, E = function(c) {
2585
- const n = We(c);
2617
+ }, w = function(c) {
2618
+ const n = Je(c);
2586
2619
  return {
2587
2620
  /**
2588
2621
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -2653,8 +2686,8 @@ const We = function(c) {
2653
2686
  return (p, d) => S(s, u, g, c)(p, i || d);
2654
2687
  }
2655
2688
  };
2656
- }, Ht = function(c, n, e) {
2657
- const t = E(c);
2689
+ }, Gt = function(c, n, e) {
2690
+ const t = w(c);
2658
2691
  return {
2659
2692
  /**
2660
2693
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -2721,7 +2754,7 @@ const We = function(c) {
2721
2754
  }
2722
2755
  };
2723
2756
  };
2724
- class $e extends x {
2757
+ class Xe extends x {
2725
2758
  /**
2726
2759
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
2727
2760
  * @summary Create a materialization
@@ -2732,7 +2765,7 @@ class $e extends x {
2732
2765
  * @throws {RequiredError}
2733
2766
  */
2734
2767
  createMaterialization(n, e, t, a) {
2735
- return E(this.configuration).createMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2768
+ return w(this.configuration).createMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2736
2769
  }
2737
2770
  /**
2738
2771
  * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
@@ -2745,7 +2778,7 @@ class $e extends x {
2745
2778
  * @throws {RequiredError}
2746
2779
  */
2747
2780
  deleteMaterialization(n, e, t, a, r) {
2748
- return E(this.configuration).deleteMaterialization(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2781
+ return w(this.configuration).deleteMaterialization(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2749
2782
  }
2750
2783
  /**
2751
2784
  *
@@ -2757,7 +2790,7 @@ class $e extends x {
2757
2790
  * @throws {RequiredError}
2758
2791
  */
2759
2792
  getMaterialization(n, e, t, a) {
2760
- return E(this.configuration).getMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2793
+ return w(this.configuration).getMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2761
2794
  }
2762
2795
  /**
2763
2796
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2770,7 +2803,7 @@ class $e extends x {
2770
2803
  * @throws {RequiredError}
2771
2804
  */
2772
2805
  listMaterializations(n, e, t, a, r) {
2773
- return E(this.configuration).listMaterializations(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2806
+ return w(this.configuration).listMaterializations(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2774
2807
  }
2775
2808
  /**
2776
2809
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2783,12 +2816,12 @@ class $e extends x {
2783
2816
  * @throws {RequiredError}
2784
2817
  */
2785
2818
  materializationAction(n, e, t, a, r) {
2786
- return E(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2819
+ return w(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2787
2820
  }
2788
2821
  }
2789
- const _t = {
2822
+ const Wt = {
2790
2823
  Stop: "stop"
2791
- }, Ke = function(c) {
2824
+ }, Ze = function(c) {
2792
2825
  return {
2793
2826
  /**
2794
2827
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
@@ -2802,11 +2835,11 @@ const _t = {
2802
2835
  */
2803
2836
  compileModelSource: async (n, e, t, a, r = {}) => {
2804
2837
  m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
2805
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, v);
2838
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
2806
2839
  let l;
2807
2840
  c && (l = c.baseOptions);
2808
2841
  const i = { method: "POST", ...l, ...r }, p = {}, d = {};
2809
- p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
2842
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
2810
2843
  let h = l && l.headers ? l.headers : {};
2811
2844
  return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
2812
2845
  url: V(s),
@@ -2826,11 +2859,11 @@ const _t = {
2826
2859
  */
2827
2860
  executeQueryModel: async (n, e, t, a, r, o = {}) => {
2828
2861
  m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
2829
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, v);
2862
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, P);
2830
2863
  let i;
2831
2864
  c && (i = c.baseOptions);
2832
2865
  const p = { method: "POST", ...i, ...o }, d = {}, h = {};
2833
- r !== void 0 && (h.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json", P(l, h);
2866
+ r !== void 0 && (h.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
2834
2867
  let O = i && i.headers ? i.headers : {};
2835
2868
  return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
2836
2869
  url: V(l),
@@ -2850,11 +2883,11 @@ const _t = {
2850
2883
  */
2851
2884
  getModel: async (n, e, t, a, r, o = {}) => {
2852
2885
  m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", t);
2853
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, v);
2886
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, P);
2854
2887
  let i;
2855
2888
  c && (i = c.baseOptions);
2856
2889
  const p = { method: "GET", ...i, ...o }, d = {}, h = {};
2857
- a !== void 0 && (h.versionId = a), r !== void 0 && (h.includeHiddenFilesAndSources = r), d.Accept = "application/json", P(l, h);
2890
+ a !== void 0 && (h.versionId = a), r !== void 0 && (h.includeHiddenFilesAndSources = r), d.Accept = "application/json", v(l, h);
2858
2891
  let O = i && i.headers ? i.headers : {};
2859
2892
  return p.headers = { ...d, ...O, ...o.headers }, {
2860
2893
  url: V(l),
@@ -2873,11 +2906,11 @@ const _t = {
2873
2906
  */
2874
2907
  listModels: async (n, e, t, a, r = {}) => {
2875
2908
  m("listModels", "environmentName", n), m("listModels", "packageName", e);
2876
- const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, v);
2909
+ const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2877
2910
  let l;
2878
2911
  c && (l = c.baseOptions);
2879
2912
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
2880
- t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", P(s, d);
2913
+ t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
2881
2914
  let h = l && l.headers ? l.headers : {};
2882
2915
  return i.headers = { ...p, ...h, ...r.headers }, {
2883
2916
  url: V(s),
@@ -2885,7 +2918,7 @@ const _t = {
2885
2918
  };
2886
2919
  },
2887
2920
  /**
2888
- * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
2921
+ * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
2889
2922
  * @summary Write a report file into the package
2890
2923
  * @param {string} environmentName Name of the environment
2891
2924
  * @param {string} packageName Name of the package
@@ -2897,11 +2930,11 @@ const _t = {
2897
2930
  */
2898
2931
  updateModelSource: async (n, e, t, a, r, o = {}) => {
2899
2932
  m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", t), m("updateModelSource", "modelSourceWriteRequest", a);
2900
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, v);
2933
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, P);
2901
2934
  let i;
2902
2935
  c && (i = c.baseOptions);
2903
2936
  const p = { method: "PUT", ...i, ...o }, d = {}, h = {};
2904
- r !== void 0 && (h.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json", P(l, h);
2937
+ r !== void 0 && (h.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
2905
2938
  let O = i && i.headers ? i.headers : {};
2906
2939
  return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
2907
2940
  url: V(l),
@@ -2909,8 +2942,8 @@ const _t = {
2909
2942
  };
2910
2943
  }
2911
2944
  };
2912
- }, f = function(c) {
2913
- const n = Ke(c);
2945
+ }, E = function(c) {
2946
+ const n = Ze(c);
2914
2947
  return {
2915
2948
  /**
2916
2949
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
@@ -2971,7 +3004,7 @@ const _t = {
2971
3004
  return (p, d) => S(s, u, g, c)(p, i || d);
2972
3005
  },
2973
3006
  /**
2974
- * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
3007
+ * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
2975
3008
  * @summary Write a report file into the package
2976
3009
  * @param {string} environmentName Name of the environment
2977
3010
  * @param {string} packageName Name of the package
@@ -2986,8 +3019,8 @@ const _t = {
2986
3019
  return (d, h) => S(l, u, g, c)(d, p || h);
2987
3020
  }
2988
3021
  };
2989
- }, Gt = function(c, n, e) {
2990
- const t = f(c);
3022
+ }, $t = function(c, n, e) {
3023
+ const t = E(c);
2991
3024
  return {
2992
3025
  /**
2993
3026
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
@@ -3044,7 +3077,7 @@ const _t = {
3044
3077
  return t.listModels(a, r, o, s, l).then((i) => i(e, n));
3045
3078
  },
3046
3079
  /**
3047
- * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
3080
+ * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
3048
3081
  * @summary Write a report file into the package
3049
3082
  * @param {string} environmentName Name of the environment
3050
3083
  * @param {string} packageName Name of the package
@@ -3059,7 +3092,7 @@ const _t = {
3059
3092
  }
3060
3093
  };
3061
3094
  };
3062
- class Ye extends x {
3095
+ class ea extends x {
3063
3096
  /**
3064
3097
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
3065
3098
  * @summary Compile Malloy source code
@@ -3071,7 +3104,7 @@ class Ye extends x {
3071
3104
  * @throws {RequiredError}
3072
3105
  */
3073
3106
  compileModelSource(n, e, t, a, r) {
3074
- return f(this.configuration).compileModelSource(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
3107
+ return E(this.configuration).compileModelSource(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
3075
3108
  }
3076
3109
  /**
3077
3110
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
@@ -3085,7 +3118,7 @@ class Ye extends x {
3085
3118
  * @throws {RequiredError}
3086
3119
  */
3087
3120
  executeQueryModel(n, e, t, a, r, o) {
3088
- return f(this.configuration).executeQueryModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
3121
+ return E(this.configuration).executeQueryModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
3089
3122
  }
3090
3123
  /**
3091
3124
  * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
@@ -3099,7 +3132,7 @@ class Ye extends x {
3099
3132
  * @throws {RequiredError}
3100
3133
  */
3101
3134
  getModel(n, e, t, a, r, o) {
3102
- return f(this.configuration).getModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
3135
+ return E(this.configuration).getModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
3103
3136
  }
3104
3137
  /**
3105
3138
  * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
@@ -3112,10 +3145,10 @@ class Ye extends x {
3112
3145
  * @throws {RequiredError}
3113
3146
  */
3114
3147
  listModels(n, e, t, a, r) {
3115
- return f(this.configuration).listModels(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
3148
+ return E(this.configuration).listModels(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
3116
3149
  }
3117
3150
  /**
3118
- * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
3151
+ * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
3119
3152
  * @summary Write a report file into the package
3120
3153
  * @param {string} environmentName Name of the environment
3121
3154
  * @param {string} packageName Name of the package
@@ -3126,10 +3159,10 @@ class Ye extends x {
3126
3159
  * @throws {RequiredError}
3127
3160
  */
3128
3161
  updateModelSource(n, e, t, a, r, o) {
3129
- return f(this.configuration).updateModelSource(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
3162
+ return E(this.configuration).updateModelSource(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
3130
3163
  }
3131
3164
  }
3132
- const Je = function(c) {
3165
+ const aa = function(c) {
3133
3166
  return {
3134
3167
  /**
3135
3168
  * **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -3148,11 +3181,11 @@ const Je = function(c) {
3148
3181
  */
3149
3182
  executeNotebookCell: async (n, e, t, a, r, o, s, l, i = {}) => {
3150
3183
  m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
3151
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, v);
3184
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, P);
3152
3185
  let h;
3153
3186
  c && (h = c.baseOptions);
3154
3187
  const O = { method: "GET", ...h, ...i }, k = {}, C = {};
3155
- r !== void 0 && (C.versionId = r), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), l !== void 0 && (C.givens = l), k.Accept = "application/json", P(d, C);
3188
+ r !== void 0 && (C.versionId = r), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), l !== void 0 && (C.givens = l), k.Accept = "application/json", v(d, C);
3156
3189
  let R = h && h.headers ? h.headers : {};
3157
3190
  return O.headers = { ...k, ...R, ...i.headers }, {
3158
3191
  url: V(d),
@@ -3172,11 +3205,11 @@ const Je = function(c) {
3172
3205
  */
3173
3206
  getNotebook: async (n, e, t, a, r = {}) => {
3174
3207
  m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
3175
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, v);
3208
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
3176
3209
  let l;
3177
3210
  c && (l = c.baseOptions);
3178
3211
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
3179
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", P(s, d);
3212
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
3180
3213
  let h = l && l.headers ? l.headers : {};
3181
3214
  return i.headers = { ...p, ...h, ...r.headers }, {
3182
3215
  url: V(s),
@@ -3195,11 +3228,11 @@ const Je = function(c) {
3195
3228
  */
3196
3229
  listNotebooks: async (n, e, t, a = {}) => {
3197
3230
  m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
3198
- const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
3231
+ const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
3199
3232
  let s;
3200
3233
  c && (s = c.baseOptions);
3201
3234
  const l = { method: "GET", ...s, ...a }, i = {}, p = {};
3202
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
3235
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
3203
3236
  let d = s && s.headers ? s.headers : {};
3204
3237
  return l.headers = { ...i, ...d, ...a.headers }, {
3205
3238
  url: V(o),
@@ -3208,7 +3241,7 @@ const Je = function(c) {
3208
3241
  }
3209
3242
  };
3210
3243
  }, L = function(c) {
3211
- const n = Je(c);
3244
+ const n = aa(c);
3212
3245
  return {
3213
3246
  /**
3214
3247
  * **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -3259,7 +3292,7 @@ const Je = function(c) {
3259
3292
  return (i, p) => S(o, u, g, c)(i, l || p);
3260
3293
  }
3261
3294
  };
3262
- }, Wt = function(c, n, e) {
3295
+ }, Kt = function(c, n, e) {
3263
3296
  const t = L(c);
3264
3297
  return {
3265
3298
  /**
@@ -3309,7 +3342,7 @@ const Je = function(c) {
3309
3342
  }
3310
3343
  };
3311
3344
  };
3312
- class Xe extends x {
3345
+ class ta extends x {
3313
3346
  /**
3314
3347
  * **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
3315
3348
  * @summary Execute a specific notebook cell (deprecated)
@@ -3356,10 +3389,10 @@ class Xe extends x {
3356
3389
  return L(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
3357
3390
  }
3358
3391
  }
3359
- const $t = {
3392
+ const Yt = {
3360
3393
  True: "true",
3361
3394
  False: "false"
3362
- }, Ze = function(c) {
3395
+ }, na = function(c) {
3363
3396
  return {
3364
3397
  /**
3365
3398
  * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
@@ -3371,11 +3404,11 @@ const $t = {
3371
3404
  */
3372
3405
  createPackage: async (n, e, t = {}) => {
3373
3406
  m("createPackage", "environmentName", n), m("createPackage", "_package", e);
3374
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, v);
3407
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
3375
3408
  let o;
3376
3409
  c && (o = c.baseOptions);
3377
3410
  const s = { method: "POST", ...o, ...t }, l = {}, i = {};
3378
- l["Content-Type"] = "application/json", l.Accept = "application/json", P(r, i);
3411
+ l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
3379
3412
  let p = o && o.headers ? o.headers : {};
3380
3413
  return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
3381
3414
  url: V(r),
@@ -3392,11 +3425,11 @@ const $t = {
3392
3425
  */
3393
3426
  deletePackage: async (n, e, t = {}) => {
3394
3427
  m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
3395
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
3428
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
3396
3429
  let o;
3397
3430
  c && (o = c.baseOptions);
3398
3431
  const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
3399
- l.Accept = "application/json", P(r, i);
3432
+ l.Accept = "application/json", v(r, i);
3400
3433
  let p = o && o.headers ? o.headers : {};
3401
3434
  return s.headers = { ...l, ...p, ...t.headers }, {
3402
3435
  url: V(r),
@@ -3415,11 +3448,11 @@ const $t = {
3415
3448
  */
3416
3449
  getPackage: async (n, e, t, a, r = {}) => {
3417
3450
  m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
3418
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, v);
3451
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
3419
3452
  let l;
3420
3453
  c && (l = c.baseOptions);
3421
3454
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
3422
- t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", P(s, d);
3455
+ t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
3423
3456
  let h = l && l.headers ? l.headers : {};
3424
3457
  return i.headers = { ...p, ...h, ...r.headers }, {
3425
3458
  url: V(s),
@@ -3435,11 +3468,11 @@ const $t = {
3435
3468
  */
3436
3469
  listPackages: async (n, e = {}) => {
3437
3470
  m("listPackages", "environmentName", n);
3438
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, v);
3471
+ const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
3439
3472
  let r;
3440
3473
  c && (r = c.baseOptions);
3441
3474
  const o = { method: "GET", ...r, ...e }, s = {}, l = {};
3442
- s.Accept = "application/json", P(a, l);
3475
+ s.Accept = "application/json", v(a, l);
3443
3476
  let i = r && r.headers ? r.headers : {};
3444
3477
  return o.headers = { ...s, ...i, ...e.headers }, {
3445
3478
  url: V(a),
@@ -3457,11 +3490,11 @@ const $t = {
3457
3490
  */
3458
3491
  updatePackage: async (n, e, t, a = {}) => {
3459
3492
  m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
3460
- const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
3493
+ const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
3461
3494
  let s;
3462
3495
  c && (s = c.baseOptions);
3463
3496
  const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
3464
- i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
3497
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
3465
3498
  let d = s && s.headers ? s.headers : {};
3466
3499
  return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
3467
3500
  url: V(o),
@@ -3470,7 +3503,7 @@ const $t = {
3470
3503
  }
3471
3504
  };
3472
3505
  }, M = function(c) {
3473
- const n = Ze(c);
3506
+ const n = na(c);
3474
3507
  return {
3475
3508
  /**
3476
3509
  * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
@@ -3535,7 +3568,7 @@ const $t = {
3535
3568
  return (i, p) => S(o, u, g, c)(i, l || p);
3536
3569
  }
3537
3570
  };
3538
- }, Kt = function(c, n, e) {
3571
+ }, Jt = function(c, n, e) {
3539
3572
  const t = M(c);
3540
3573
  return {
3541
3574
  /**
@@ -3597,7 +3630,7 @@ const $t = {
3597
3630
  }
3598
3631
  };
3599
3632
  };
3600
- class ea extends x {
3633
+ class ra extends x {
3601
3634
  /**
3602
3635
  * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
3603
3636
  * @summary Create a new package
@@ -3656,7 +3689,7 @@ class ea extends x {
3656
3689
  return M(this.configuration).updatePackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
3657
3690
  }
3658
3691
  }
3659
- const aa = function(c) {
3692
+ const oa = function(c) {
3660
3693
  return {
3661
3694
  /**
3662
3695
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3665,11 +3698,11 @@ const aa = function(c) {
3665
3698
  * @throws {RequiredError}
3666
3699
  */
3667
3700
  deleteTheme: async (n = {}) => {
3668
- const e = "/theme", t = new URL(e, v);
3701
+ const e = "/theme", t = new URL(e, P);
3669
3702
  let a;
3670
3703
  c && (a = c.baseOptions);
3671
3704
  const r = { method: "DELETE", ...a, ...n }, o = {}, s = {};
3672
- o.Accept = "application/json", P(t, s);
3705
+ o.Accept = "application/json", v(t, s);
3673
3706
  let l = a && a.headers ? a.headers : {};
3674
3707
  return r.headers = { ...o, ...l, ...n.headers }, {
3675
3708
  url: V(t),
@@ -3684,11 +3717,11 @@ const aa = function(c) {
3684
3717
  * @throws {RequiredError}
3685
3718
  */
3686
3719
  getStatus: async (n, e = {}) => {
3687
- const t = "/status", a = new URL(t, v);
3720
+ const t = "/status", a = new URL(t, P);
3688
3721
  let r;
3689
3722
  c && (r = c.baseOptions);
3690
3723
  const o = { method: "GET", ...r, ...e }, s = {}, l = {};
3691
- n !== void 0 && (l.includeLoading = n), s.Accept = "application/json", P(a, l);
3724
+ n !== void 0 && (l.includeLoading = n), s.Accept = "application/json", v(a, l);
3692
3725
  let i = r && r.headers ? r.headers : {};
3693
3726
  return o.headers = { ...s, ...i, ...e.headers }, {
3694
3727
  url: V(a),
@@ -3702,11 +3735,11 @@ const aa = function(c) {
3702
3735
  * @throws {RequiredError}
3703
3736
  */
3704
3737
  getTheme: async (n = {}) => {
3705
- const e = "/theme", t = new URL(e, v);
3738
+ const e = "/theme", t = new URL(e, P);
3706
3739
  let a;
3707
3740
  c && (a = c.baseOptions);
3708
3741
  const r = { method: "GET", ...a, ...n }, o = {}, s = {};
3709
- o.Accept = "application/json", P(t, s);
3742
+ o.Accept = "application/json", v(t, s);
3710
3743
  let l = a && a.headers ? a.headers : {};
3711
3744
  return r.headers = { ...o, ...l, ...n.headers }, {
3712
3745
  url: V(t),
@@ -3722,11 +3755,11 @@ const aa = function(c) {
3722
3755
  */
3723
3756
  updateTheme: async (n, e = {}) => {
3724
3757
  m("updateTheme", "theme", n);
3725
- const t = "/theme", a = new URL(t, v);
3758
+ const t = "/theme", a = new URL(t, P);
3726
3759
  let r;
3727
3760
  c && (r = c.baseOptions);
3728
3761
  const o = { method: "PUT", ...r, ...e }, s = {}, l = {};
3729
- s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
3762
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
3730
3763
  let i = r && r.headers ? r.headers : {};
3731
3764
  return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
3732
3765
  url: V(a),
@@ -3734,8 +3767,8 @@ const aa = function(c) {
3734
3767
  };
3735
3768
  }
3736
3769
  };
3737
- }, F = function(c) {
3738
- const n = aa(c);
3770
+ }, j = function(c) {
3771
+ const n = oa(c);
3739
3772
  return {
3740
3773
  /**
3741
3774
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3780,8 +3813,8 @@ const aa = function(c) {
3780
3813
  return (s, l) => S(a, u, g, c)(s, o || l);
3781
3814
  }
3782
3815
  };
3783
- }, Yt = function(c, n, e) {
3784
- const t = F(c);
3816
+ }, Xt = function(c, n, e) {
3817
+ const t = j(c);
3785
3818
  return {
3786
3819
  /**
3787
3820
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3823,7 +3856,7 @@ const aa = function(c) {
3823
3856
  }
3824
3857
  };
3825
3858
  };
3826
- class ta extends x {
3859
+ class sa extends x {
3827
3860
  /**
3828
3861
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
3829
3862
  * @summary Reset the instance theme to the boot seed or default
@@ -3831,7 +3864,7 @@ class ta extends x {
3831
3864
  * @throws {RequiredError}
3832
3865
  */
3833
3866
  deleteTheme(n) {
3834
- return F(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
3867
+ return j(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
3835
3868
  }
3836
3869
  /**
3837
3870
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -3841,7 +3874,7 @@ class ta extends x {
3841
3874
  * @throws {RequiredError}
3842
3875
  */
3843
3876
  getStatus(n, e) {
3844
- return F(this.configuration).getStatus(n, e).then((t) => t(this.axios, this.basePath));
3877
+ return j(this.configuration).getStatus(n, e).then((t) => t(this.axios, this.basePath));
3845
3878
  }
3846
3879
  /**
3847
3880
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
@@ -3850,7 +3883,7 @@ class ta extends x {
3850
3883
  * @throws {RequiredError}
3851
3884
  */
3852
3885
  getTheme(n) {
3853
- return F(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
3886
+ return j(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
3854
3887
  }
3855
3888
  /**
3856
3889
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3860,13 +3893,13 @@ class ta extends x {
3860
3893
  * @throws {RequiredError}
3861
3894
  */
3862
3895
  updateTheme(n, e) {
3863
- return F(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
3896
+ return j(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
3864
3897
  }
3865
3898
  }
3866
- const na = function(c) {
3899
+ const ca = function(c) {
3867
3900
  return {
3868
3901
  /**
3869
- * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
3902
+ * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
3870
3903
  * @summary Get a report manifest
3871
3904
  * @param {string} environmentName Name of the environment
3872
3905
  * @param {string} packageName Name of the package
@@ -3877,11 +3910,11 @@ const na = function(c) {
3877
3910
  */
3878
3911
  getReport: async (n, e, t, a, r = {}) => {
3879
3912
  m("getReport", "environmentName", n), m("getReport", "packageName", e), m("getReport", "path", t);
3880
- const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, v);
3913
+ const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
3881
3914
  let l;
3882
3915
  c && (l = c.baseOptions);
3883
3916
  const i = { method: "GET", ...l, ...r }, p = {}, d = {};
3884
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", P(s, d);
3917
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
3885
3918
  let h = l && l.headers ? l.headers : {};
3886
3919
  return i.headers = { ...p, ...h, ...r.headers }, {
3887
3920
  url: V(s),
@@ -3889,7 +3922,7 @@ const na = function(c) {
3889
3922
  };
3890
3923
  },
3891
3924
  /**
3892
- * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
3925
+ * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
3893
3926
  * @summary List package reports
3894
3927
  * @param {string} environmentName Name of the environment
3895
3928
  * @param {string} packageName Name of the package
@@ -3899,11 +3932,11 @@ const na = function(c) {
3899
3932
  */
3900
3933
  listReports: async (n, e, t, a = {}) => {
3901
3934
  m("listReports", "environmentName", n), m("listReports", "packageName", e);
3902
- const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
3935
+ const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
3903
3936
  let s;
3904
3937
  c && (s = c.baseOptions);
3905
3938
  const l = { method: "GET", ...s, ...a }, i = {}, p = {};
3906
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
3939
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
3907
3940
  let d = s && s.headers ? s.headers : {};
3908
3941
  return l.headers = { ...i, ...d, ...a.headers }, {
3909
3942
  url: V(o),
@@ -3911,11 +3944,11 @@ const na = function(c) {
3911
3944
  };
3912
3945
  }
3913
3946
  };
3914
- }, K = function(c) {
3915
- const n = na(c);
3947
+ }, Y = function(c) {
3948
+ const n = ca(c);
3916
3949
  return {
3917
3950
  /**
3918
- * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
3951
+ * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
3919
3952
  * @summary Get a report manifest
3920
3953
  * @param {string} environmentName Name of the environment
3921
3954
  * @param {string} packageName Name of the package
@@ -3929,7 +3962,7 @@ const na = function(c) {
3929
3962
  return (p, d) => S(s, u, g, c)(p, i || d);
3930
3963
  },
3931
3964
  /**
3932
- * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
3965
+ * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
3933
3966
  * @summary List package reports
3934
3967
  * @param {string} environmentName Name of the environment
3935
3968
  * @param {string} packageName Name of the package
@@ -3942,11 +3975,11 @@ const na = function(c) {
3942
3975
  return (i, p) => S(o, u, g, c)(i, l || p);
3943
3976
  }
3944
3977
  };
3945
- }, Jt = function(c, n, e) {
3946
- const t = K(c);
3978
+ }, Zt = function(c, n, e) {
3979
+ const t = Y(c);
3947
3980
  return {
3948
3981
  /**
3949
- * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
3982
+ * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
3950
3983
  * @summary Get a report manifest
3951
3984
  * @param {string} environmentName Name of the environment
3952
3985
  * @param {string} packageName Name of the package
@@ -3959,7 +3992,7 @@ const na = function(c) {
3959
3992
  return t.getReport(a, r, o, s, l).then((i) => i(e, n));
3960
3993
  },
3961
3994
  /**
3962
- * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
3995
+ * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
3963
3996
  * @summary List package reports
3964
3997
  * @param {string} environmentName Name of the environment
3965
3998
  * @param {string} packageName Name of the package
@@ -3972,9 +4005,9 @@ const na = function(c) {
3972
4005
  }
3973
4006
  };
3974
4007
  };
3975
- class ra extends x {
4008
+ class la extends x {
3976
4009
  /**
3977
- * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
4010
+ * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
3978
4011
  * @summary Get a report manifest
3979
4012
  * @param {string} environmentName Name of the environment
3980
4013
  * @param {string} packageName Name of the package
@@ -3984,10 +4017,10 @@ class ra extends x {
3984
4017
  * @throws {RequiredError}
3985
4018
  */
3986
4019
  getReport(n, e, t, a, r) {
3987
- return K(this.configuration).getReport(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
4020
+ return Y(this.configuration).getReport(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
3988
4021
  }
3989
4022
  /**
3990
- * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is linear); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
4023
+ * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
3991
4024
  * @summary List package reports
3992
4025
  * @param {string} environmentName Name of the environment
3993
4026
  * @param {string} packageName Name of the package
@@ -3996,10 +4029,10 @@ class ra extends x {
3996
4029
  * @throws {RequiredError}
3997
4030
  */
3998
4031
  listReports(n, e, t, a) {
3999
- return K(this.configuration).listReports(n, e, t, a).then((r) => r(this.axios, this.basePath));
4032
+ return Y(this.configuration).listReports(n, e, t, a).then((r) => r(this.axios, this.basePath));
4000
4033
  }
4001
4034
  }
4002
- const oa = function(c) {
4035
+ const ia = function(c) {
4003
4036
  return {
4004
4037
  /**
4005
4038
  * Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
@@ -4012,11 +4045,11 @@ const oa = function(c) {
4012
4045
  */
4013
4046
  getSkill: async (n, e, t, a = {}) => {
4014
4047
  m("getSkill", "environmentName", n), m("getSkill", "packageName", e), m("getSkill", "skillName", t);
4015
- const r = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(r, v);
4048
+ const r = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(r, P);
4016
4049
  let s;
4017
4050
  c && (s = c.baseOptions);
4018
4051
  const l = { method: "GET", ...s, ...a }, i = {}, p = {};
4019
- i.Accept = "application/json", P(o, p);
4052
+ i.Accept = "application/json", v(o, p);
4020
4053
  let d = s && s.headers ? s.headers : {};
4021
4054
  return l.headers = { ...i, ...d, ...a.headers }, {
4022
4055
  url: V(o),
@@ -4033,11 +4066,11 @@ const oa = function(c) {
4033
4066
  */
4034
4067
  listSkills: async (n, e, t = {}) => {
4035
4068
  m("listSkills", "environmentName", n), m("listSkills", "packageName", e);
4036
- const a = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
4069
+ const a = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
4037
4070
  let o;
4038
4071
  c && (o = c.baseOptions);
4039
4072
  const s = { method: "GET", ...o, ...t }, l = {}, i = {};
4040
- l.Accept = "application/json", P(r, i);
4073
+ l.Accept = "application/json", v(r, i);
4041
4074
  let p = o && o.headers ? o.headers : {};
4042
4075
  return s.headers = { ...l, ...p, ...t.headers }, {
4043
4076
  url: V(r),
@@ -4045,8 +4078,8 @@ const oa = function(c) {
4045
4078
  };
4046
4079
  }
4047
4080
  };
4048
- }, Y = function(c) {
4049
- const n = oa(c);
4081
+ }, J = function(c) {
4082
+ const n = ia(c);
4050
4083
  return {
4051
4084
  /**
4052
4085
  * Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
@@ -4074,8 +4107,8 @@ const oa = function(c) {
4074
4107
  return (l, i) => S(r, u, g, c)(l, s || i);
4075
4108
  }
4076
4109
  };
4077
- }, Xt = function(c, n, e) {
4078
- const t = Y(c);
4110
+ }, en = function(c, n, e) {
4111
+ const t = J(c);
4079
4112
  return {
4080
4113
  /**
4081
4114
  * Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
@@ -4102,7 +4135,7 @@ const oa = function(c) {
4102
4135
  }
4103
4136
  };
4104
4137
  };
4105
- class Zt extends x {
4138
+ class an extends x {
4106
4139
  /**
4107
4140
  * Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
4108
4141
  * @summary Get one agent skill, with its body
@@ -4113,7 +4146,7 @@ class Zt extends x {
4113
4146
  * @throws {RequiredError}
4114
4147
  */
4115
4148
  getSkill(n, e, t, a) {
4116
- return Y(this.configuration).getSkill(n, e, t, a).then((r) => r(this.axios, this.basePath));
4149
+ return J(this.configuration).getSkill(n, e, t, a).then((r) => r(this.axios, this.basePath));
4117
4150
  }
4118
4151
  /**
4119
4152
  * Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
@@ -4124,10 +4157,10 @@ class Zt extends x {
4124
4157
  * @throws {RequiredError}
4125
4158
  */
4126
4159
  listSkills(n, e, t) {
4127
- return Y(this.configuration).listSkills(n, e, t).then((a) => a(this.axios, this.basePath));
4160
+ return J(this.configuration).listSkills(n, e, t).then((a) => a(this.axios, this.basePath));
4128
4161
  }
4129
4162
  }
4130
- const sa = function(c) {
4163
+ const pa = function(c) {
4131
4164
  return {
4132
4165
  /**
4133
4166
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -4136,11 +4169,11 @@ const sa = function(c) {
4136
4169
  * @throws {RequiredError}
4137
4170
  */
4138
4171
  getWatchStatus: async (n = {}) => {
4139
- const e = "/watch-mode/status", t = new URL(e, v);
4172
+ const e = "/watch-mode/status", t = new URL(e, P);
4140
4173
  let a;
4141
4174
  c && (a = c.baseOptions);
4142
4175
  const r = { method: "GET", ...a, ...n }, o = {}, s = {};
4143
- o.Accept = "application/json", P(t, s);
4176
+ o.Accept = "application/json", v(t, s);
4144
4177
  let l = a && a.headers ? a.headers : {};
4145
4178
  return r.headers = { ...o, ...l, ...n.headers }, {
4146
4179
  url: V(t),
@@ -4156,11 +4189,11 @@ const sa = function(c) {
4156
4189
  */
4157
4190
  startWatching: async (n, e = {}) => {
4158
4191
  m("startWatching", "startWatchRequest", n);
4159
- const t = "/watch-mode/start", a = new URL(t, v);
4192
+ const t = "/watch-mode/start", a = new URL(t, P);
4160
4193
  let r;
4161
4194
  c && (r = c.baseOptions);
4162
4195
  const o = { method: "POST", ...r, ...e }, s = {}, l = {};
4163
- s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
4196
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
4164
4197
  let i = r && r.headers ? r.headers : {};
4165
4198
  return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
4166
4199
  url: V(a),
@@ -4174,11 +4207,11 @@ const sa = function(c) {
4174
4207
  * @throws {RequiredError}
4175
4208
  */
4176
4209
  stopWatching: async (n = {}) => {
4177
- const e = "/watch-mode/stop", t = new URL(e, v);
4210
+ const e = "/watch-mode/stop", t = new URL(e, P);
4178
4211
  let a;
4179
4212
  c && (a = c.baseOptions);
4180
4213
  const r = { method: "POST", ...a, ...n }, o = {}, s = {};
4181
- o.Accept = "application/json", P(t, s);
4214
+ o.Accept = "application/json", v(t, s);
4182
4215
  let l = a && a.headers ? a.headers : {};
4183
4216
  return r.headers = { ...o, ...l, ...n.headers }, {
4184
4217
  url: V(t),
@@ -4195,11 +4228,11 @@ const sa = function(c) {
4195
4228
  */
4196
4229
  streamPackageEvents: async (n, e, t = {}) => {
4197
4230
  m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
4198
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
4231
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
4199
4232
  let o;
4200
4233
  c && (o = c.baseOptions);
4201
4234
  const s = { method: "GET", ...o, ...t }, l = {}, i = {};
4202
- l.Accept = "text/event-stream,application/json", P(r, i);
4235
+ l.Accept = "text/event-stream,application/json", v(r, i);
4203
4236
  let p = o && o.headers ? o.headers : {};
4204
4237
  return s.headers = { ...l, ...p, ...t.headers }, {
4205
4238
  url: V(r),
@@ -4207,8 +4240,8 @@ const sa = function(c) {
4207
4240
  };
4208
4241
  }
4209
4242
  };
4210
- }, B = function(c) {
4211
- const n = sa(c);
4243
+ }, D = function(c) {
4244
+ const n = pa(c);
4212
4245
  return {
4213
4246
  /**
4214
4247
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -4254,8 +4287,8 @@ const sa = function(c) {
4254
4287
  return (l, i) => S(r, u, g, c)(l, s || i);
4255
4288
  }
4256
4289
  };
4257
- }, en = function(c, n, e) {
4258
- const t = B(c);
4290
+ }, tn = function(c, n, e) {
4291
+ const t = D(c);
4259
4292
  return {
4260
4293
  /**
4261
4294
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -4298,7 +4331,7 @@ const sa = function(c) {
4298
4331
  }
4299
4332
  };
4300
4333
  };
4301
- class ca extends x {
4334
+ class da extends x {
4302
4335
  /**
4303
4336
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
4304
4337
  * @summary Get watch mode status
@@ -4306,7 +4339,7 @@ class ca extends x {
4306
4339
  * @throws {RequiredError}
4307
4340
  */
4308
4341
  getWatchStatus(n) {
4309
- return B(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
4342
+ return D(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
4310
4343
  }
4311
4344
  /**
4312
4345
  * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
@@ -4316,7 +4349,7 @@ class ca extends x {
4316
4349
  * @throws {RequiredError}
4317
4350
  */
4318
4351
  startWatching(n, e) {
4319
- return B(this.configuration).startWatching(n, e).then((t) => t(this.axios, this.basePath));
4352
+ return D(this.configuration).startWatching(n, e).then((t) => t(this.axios, this.basePath));
4320
4353
  }
4321
4354
  /**
4322
4355
  * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
@@ -4325,7 +4358,7 @@ class ca extends x {
4325
4358
  * @throws {RequiredError}
4326
4359
  */
4327
4360
  stopWatching(n) {
4328
- return B(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
4361
+ return D(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
4329
4362
  }
4330
4363
  /**
4331
4364
  * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
@@ -4336,10 +4369,10 @@ class ca extends x {
4336
4369
  * @throws {RequiredError}
4337
4370
  */
4338
4371
  streamPackageEvents(n, e, t) {
4339
- return B(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
4372
+ return D(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
4340
4373
  }
4341
4374
  }
4342
- class la {
4375
+ class ma {
4343
4376
  /**
4344
4377
  * parameter for apiKey security
4345
4378
  * @param name security name
@@ -4412,7 +4445,7 @@ class la {
4412
4445
  return n !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(n);
4413
4446
  }
4414
4447
  }
4415
- const ia = new be({
4448
+ const ha = new Ve({
4416
4449
  defaultOptions: {
4417
4450
  queries: {
4418
4451
  // Not retried: `useQueryWithApiError` surfaces a failure the moment it
@@ -4431,31 +4464,31 @@ const ia = new be({
4431
4464
  throwOnError: !1
4432
4465
  }
4433
4466
  }
4434
- }), an = {
4467
+ }), nn = {
4435
4468
  staleTime: 300 * 1e3,
4436
4469
  refetchOnWindowFocus: !1,
4437
4470
  refetchOnReconnect: !1
4438
- }, J = "publisher:themeMode";
4439
- function pa() {
4471
+ }, X = "publisher:themeMode";
4472
+ function ua() {
4440
4473
  if (!(typeof window > "u"))
4441
4474
  try {
4442
- const c = window.localStorage.getItem(J);
4475
+ const c = window.localStorage.getItem(X);
4443
4476
  if (c === "light" || c === "dark" || c === "auto") return c;
4444
4477
  } catch {
4445
4478
  }
4446
4479
  }
4447
- function da(c) {
4480
+ function ga(c) {
4448
4481
  if (!(typeof window > "u"))
4449
4482
  try {
4450
- c === void 0 ? window.localStorage.removeItem(J) : window.localStorage.setItem(J, c);
4483
+ c === void 0 ? window.localStorage.removeItem(X) : window.localStorage.setItem(X, c);
4451
4484
  } catch {
4452
4485
  }
4453
4486
  }
4454
- function ma() {
4487
+ function ba() {
4455
4488
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
4456
4489
  }
4457
4490
  u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
4458
- const de = re(void 0), ha = (c, n) => {
4491
+ const he = se(void 0), Pa = (c, n) => {
4459
4492
  const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = u.create({
4460
4493
  baseURL: c || e,
4461
4494
  withCredentials: !0,
@@ -4465,230 +4498,232 @@ const de = re(void 0), ha = (c, n) => {
4465
4498
  const o = await n?.();
4466
4499
  return r.headers.Authorization = o || "", r;
4467
4500
  });
4468
- const a = new la({ basePath: e });
4501
+ const a = new ma({ basePath: e });
4469
4502
  return {
4470
- models: new Ye(a, e, t),
4471
- publisher: new ta(a, e, t),
4472
- environments: new Ge(a, e, t),
4473
- packages: new ea(a, e, t),
4474
- dashboards: new qe(a, e, t),
4475
- dataApps: new Le(a, e, t),
4476
- notebooks: new Xe(a, e, t),
4477
- reports: new ra(a, e, t),
4478
- connections: new Be(a, e, t),
4479
- databases: new He(a, e, t),
4480
- materializations: new $e(
4503
+ models: new ea(a, e, t),
4504
+ publisher: new sa(a, e, t),
4505
+ environments: new Ye(a, e, t),
4506
+ packages: new ra(a, e, t),
4507
+ dashboards: new He(a, e, t),
4508
+ dataApps: new Ge(a, e, t),
4509
+ notebooks: new ta(a, e, t),
4510
+ reports: new la(a, e, t),
4511
+ connections: new Qe(a, e, t),
4512
+ databases: new $e(a, e, t),
4513
+ materializations: new Xe(
4481
4514
  a,
4482
4515
  e,
4483
4516
  t
4484
4517
  ),
4485
- watchMode: new ca(a, e, t)
4518
+ watchMode: new da(a, e, t)
4486
4519
  };
4487
- }, tn = (c) => /* @__PURE__ */ D(ve, { client: ia, children: /* @__PURE__ */ D(ua, { ...c }) }), ua = ({
4520
+ }, rn = (c) => /* @__PURE__ */ q(Se, { client: ha, children: /* @__PURE__ */ q(va, { ...c }) }), va = ({
4488
4521
  children: c,
4489
4522
  getAccessToken: n,
4490
4523
  baseURL: e,
4491
4524
  mutable: t,
4492
- theme: a
4525
+ theme: a,
4526
+ ui: r
4493
4527
  }) => {
4494
- const r = j(
4495
- () => ha(e, n),
4528
+ const o = F(
4529
+ () => Pa(e, n),
4496
4530
  [e, n]
4497
- ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = Pe({
4531
+ ), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, l = Oe({
4498
4532
  queryKey: ["status"],
4499
- queryFn: async () => (await r.publisher.getStatus()).data
4533
+ queryFn: async () => (await o.publisher.getStatus()).data
4500
4534
  });
4501
- s.error && console.error("Failed to fetch publisher status:", s.error);
4502
- const l = s.data?.frozenConfig, i = s.data?.theme, p = s.isLoading;
4503
- let d;
4504
- s.isLoading || s.error ? d = t : l ? d = !1 : d = t ?? !0;
4505
- const h = j(
4506
- () => [i, a],
4507
- [i, a]
4508
- ), [O, k] = ee(
4509
- pa
4510
- ), [C, R] = ee(ma);
4511
- Ve(() => {
4535
+ l.error && console.error("Failed to fetch publisher status:", l.error);
4536
+ const i = l.data?.frozenConfig, p = l.data?.theme, d = l.isLoading;
4537
+ let h;
4538
+ l.isLoading || l.error ? h = t : i ? h = !1 : h = t ?? !0;
4539
+ const O = F(
4540
+ () => [p, a],
4541
+ [p, a]
4542
+ ), [k, C] = ae(
4543
+ ua
4544
+ ), [R, ue] = ae(ba);
4545
+ ke(() => {
4512
4546
  if (typeof window > "u" || !window.matchMedia) return;
4513
- const T = window.matchMedia("(prefers-color-scheme: dark)"), Z = (ge) => R(ge.matches);
4514
- return T.addEventListener("change", Z), () => T.removeEventListener("change", Z);
4547
+ const T = window.matchMedia("(prefers-color-scheme: dark)"), ee = (ve) => ue(ve.matches);
4548
+ return T.addEventListener("change", ee), () => T.removeEventListener("change", ee);
4515
4549
  }, []);
4516
- const me = Se((T) => {
4517
- k(T), da(T);
4518
- }, []), X = i?.allowUserToggle ?? !0, z = X ? O : void 0, he = j(
4519
- () => Te(
4520
- i?.defaultMode,
4521
- z,
4522
- C
4550
+ const ge = Ae((T) => {
4551
+ C(T), ga(T);
4552
+ }, []), Z = p?.allowUserToggle ?? !0, H = Z ? k : void 0, be = F(
4553
+ () => Me(
4554
+ p?.defaultMode,
4555
+ H,
4556
+ R
4523
4557
  ),
4524
- [i?.defaultMode, z, C]
4525
- ), ue = {
4526
- server: o,
4558
+ [p?.defaultMode, H, R]
4559
+ ), Pe = {
4560
+ server: s,
4527
4561
  getAccessToken: n,
4528
- apiClients: r,
4529
- mutable: d,
4530
- isLoadingStatus: p,
4531
- instanceTheme: i
4562
+ apiClients: o,
4563
+ mutable: h,
4564
+ isLoadingStatus: d,
4565
+ instanceTheme: p
4532
4566
  };
4533
- return /* @__PURE__ */ D(de.Provider, { value: ue, children: /* @__PURE__ */ D(
4534
- we,
4567
+ return /* @__PURE__ */ q(he.Provider, { value: Pe, children: /* @__PURE__ */ q(
4568
+ Fe,
4535
4569
  {
4536
- layers: h,
4537
- mode: he,
4538
- userChoice: z,
4539
- setMode: me,
4540
- allowUserToggle: X,
4570
+ layers: O,
4571
+ mode: be,
4572
+ userChoice: H,
4573
+ setMode: ge,
4574
+ allowUserToggle: Z,
4575
+ ...r ? { ui: r } : {},
4541
4576
  children: c
4542
4577
  }
4543
4578
  ) });
4544
- }, nn = () => {
4545
- const c = ne(de);
4579
+ }, on = () => {
4580
+ const c = oe(he);
4546
4581
  if (c === void 0)
4547
4582
  throw new Error("useServer must be used within a ServerProvider");
4548
4583
  return c;
4549
4584
  };
4550
4585
  export {
4551
- at as $,
4552
- Mt as A,
4553
- $ as B,
4554
- fa as C,
4555
- za as D,
4556
- _a as E,
4557
- Le as F,
4558
- Qe as G,
4559
- Qt as H,
4560
- ie as I,
4561
- Ga as J,
4562
- He as K,
4563
- ze as L,
4564
- Lt as M,
4565
- pe as N,
4566
- Ge as O,
4567
- _e as P,
4568
- zt as Q,
4569
- w as R,
4570
- $t as S,
4571
- Wa as T,
4572
- $a as U,
4573
- Ft as V,
4574
- Ka as W,
4575
- Ya as X,
4576
- Ja as Y,
4577
- et as Z,
4578
- Xa as _,
4579
- Me as a,
4580
- ca as a$,
4581
- Za as a0,
4582
- _t as a1,
4583
- tt as a2,
4584
- $e as a3,
4585
- We as a4,
4586
- Ht as a5,
4587
- E as a6,
4588
- Ye as a7,
4589
- Ke as a8,
4590
- Gt as a9,
4591
- F as aA,
4592
- vt as aB,
4593
- Pt as aC,
4594
- Vt as aD,
4595
- St as aE,
4596
- Ot as aF,
4597
- At as aG,
4598
- kt as aH,
4599
- Ct as aI,
4600
- yt as aJ,
4601
- It as aK,
4602
- xt as aL,
4603
- ra as aM,
4604
- na as aN,
4605
- Jt as aO,
4606
- K as aP,
4607
- Rt as aQ,
4608
- Nt as aR,
4609
- tn as aS,
4610
- Ut as aT,
4611
- Tt as aU,
4612
- wt as aV,
4613
- Zt as aW,
4614
- oa as aX,
4615
- Xt as aY,
4616
- Y as aZ,
4617
- Et as a_,
4618
- f as aa,
4619
- rt as ab,
4620
- st as ac,
4621
- ot as ad,
4622
- nt as ae,
4623
- Xe as af,
4624
- Je as ag,
4625
- Wt as ah,
4586
+ nt as $,
4587
+ Bt as A,
4588
+ K as B,
4589
+ Fa as C,
4590
+ _a as D,
4591
+ Wa as E,
4592
+ Ge as F,
4593
+ _e as G,
4594
+ Lt as H,
4595
+ de as I,
4596
+ $a as J,
4597
+ $e as K,
4598
+ We as L,
4599
+ Ht as M,
4600
+ me as N,
4601
+ Ye as O,
4602
+ Ke as P,
4603
+ _t as Q,
4604
+ f as R,
4605
+ Yt as S,
4606
+ Ka as T,
4607
+ Ya as U,
4608
+ jt as V,
4609
+ Ja as W,
4610
+ Xa as X,
4611
+ Za as Y,
4612
+ tt as Z,
4613
+ et as _,
4614
+ De as a,
4615
+ da as a$,
4616
+ at as a0,
4617
+ Wt as a1,
4618
+ rt as a2,
4619
+ Xe as a3,
4620
+ Je as a4,
4621
+ Gt as a5,
4622
+ w as a6,
4623
+ ea as a7,
4624
+ Ze as a8,
4625
+ $t as a9,
4626
+ j as aA,
4627
+ Vt as aB,
4628
+ St as aC,
4629
+ Ot as aD,
4630
+ kt as aE,
4631
+ At as aF,
4632
+ Ct as aG,
4633
+ yt as aH,
4634
+ xt as aI,
4635
+ It as aJ,
4636
+ Rt as aK,
4637
+ Nt as aL,
4638
+ la as aM,
4639
+ ca as aN,
4640
+ Zt as aO,
4641
+ Y as aP,
4642
+ Ut as aQ,
4643
+ Tt as aR,
4644
+ rn as aS,
4645
+ ft as aT,
4646
+ wt as aU,
4647
+ Et as aV,
4648
+ an as aW,
4649
+ ia as aX,
4650
+ en as aY,
4651
+ J as aZ,
4652
+ Mt as a_,
4653
+ E as aa,
4654
+ st as ab,
4655
+ lt as ac,
4656
+ ct as ad,
4657
+ ot as ae,
4658
+ ta as af,
4659
+ aa as ag,
4660
+ Kt as ah,
4626
4661
  L as ai,
4627
- dt as aj,
4628
- mt as ak,
4629
- pt as al,
4630
- it as am,
4631
- lt as an,
4632
- ct as ao,
4633
- ht as ap,
4634
- ut as aq,
4635
- ea as ar,
4636
- Ze as as,
4637
- Kt as at,
4662
+ ht as aj,
4663
+ ut as ak,
4664
+ mt as al,
4665
+ dt as am,
4666
+ pt as an,
4667
+ it as ao,
4668
+ gt as ap,
4669
+ bt as aq,
4670
+ ra as ar,
4671
+ na as as,
4672
+ Jt as at,
4638
4673
  M as au,
4639
- gt as av,
4640
- bt as aw,
4641
- ta as ax,
4642
- aa as ay,
4643
- Yt as az,
4644
- ft as b,
4645
- sa as b0,
4646
- en as b1,
4647
- B as b2,
4648
- ia as b3,
4649
- Ta as b4,
4650
- nn as b5,
4651
- Ue as b6,
4652
- se as b7,
4653
- Oa as b8,
4654
- Sa as b9,
4655
- xa as ba,
4656
- ya as bb,
4674
+ Pt as av,
4675
+ vt as aw,
4676
+ sa as ax,
4677
+ oa as ay,
4678
+ Xt as az,
4679
+ Ft as b,
4680
+ pa as b0,
4681
+ tn as b1,
4682
+ D as b2,
4683
+ ha as b3,
4684
+ wa as b4,
4685
+ on as b5,
4686
+ Ee as b6,
4687
+ le as b7,
4688
+ N as b8,
4689
+ Ca as b9,
4690
+ ya as ba,
4691
+ Na as bb,
4657
4692
  Ra as bc,
4658
- Na as bd,
4659
- ka as be,
4660
- Aa as bf,
4661
- Ca as bg,
4662
- Ia as bh,
4663
- I as bi,
4664
- te as bj,
4665
- we as bk,
4666
- ae as bl,
4667
- Ua as bm,
4668
- Te as bn,
4669
- an as bo,
4670
- Q as c,
4671
- wa as d,
4672
- Ea as e,
4673
- Ma as f,
4674
- Fa as g,
4675
- ja as h,
4676
- Ba as i,
4677
- la as j,
4678
- qa as k,
4679
- Qa as l,
4680
- Da as m,
4681
- Be as n,
4682
- Fe as o,
4683
- Bt as p,
4693
+ Ua as bd,
4694
+ Ta as be,
4695
+ Ia as bf,
4696
+ xa as bg,
4697
+ I as bh,
4698
+ re as bi,
4699
+ Fe as bj,
4700
+ ne as bk,
4701
+ fa as bl,
4702
+ xe as bm,
4703
+ Me as bn,
4704
+ nn as bo,
4705
+ z as c,
4706
+ Ea as d,
4707
+ Ma as e,
4708
+ Ba as f,
4709
+ ja as g,
4710
+ qa as h,
4711
+ Da as i,
4712
+ ma as j,
4713
+ za as k,
4714
+ La as l,
4715
+ Qa as m,
4716
+ Qe as n,
4717
+ qe as o,
4718
+ Dt as p,
4684
4719
  y as q,
4685
- Dt as r,
4686
- je as s,
4687
- jt as t,
4688
- le as u,
4689
- La as v,
4690
- Ha as w,
4691
- qe as x,
4692
- De as y,
4693
- qt as z
4720
+ Qt as r,
4721
+ ze as s,
4722
+ qt as t,
4723
+ pe as u,
4724
+ Ha as v,
4725
+ Ga as w,
4726
+ He as x,
4727
+ Le as y,
4728
+ zt as z
4694
4729
  };