@malloy-publisher/sdk 0.9.2 → 0.9.3

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 (264) hide show
  1. package/dist/{RenderedResult-CBLHr32C.es.js → RenderedResult-DwB0-9Yx.es.js} +118 -119
  2. package/dist/{RenderedResult-B48wAjM8.cjs.js → RenderedResult-hKjFEqaN.cjs.js} +2 -2
  3. package/dist/{ServerProvider-DCV8BUWD.es.js → ServerProvider-CcSrGaRN.es.js} +1281 -1142
  4. package/dist/ServerProvider-Gbf1YPOP.cjs.js +1 -0
  5. package/dist/builder/index.cjs.js +112 -115
  6. package/dist/builder/index.es.js +11766 -11502
  7. package/dist/builder-entry.d.ts +1 -1
  8. package/dist/client/api.d.ts +170 -9
  9. package/dist/client/index.cjs.js +1 -1
  10. package/dist/client/index.es.js +93 -89
  11. package/dist/client-entry.d.ts +2 -0
  12. package/dist/components/ApiErrorDisplay.d.ts +11 -0
  13. package/dist/components/AppDialog.d.ts +6 -6
  14. package/dist/components/Dashboard/DashboardGrid.d.ts +18 -3
  15. package/dist/components/Dashboard/DashboardTile.d.ts +12 -2
  16. package/dist/components/Dashboard/DashboardView.d.ts +38 -3
  17. package/dist/components/Dashboard/TileCard.d.ts +16 -2
  18. package/dist/components/Dashboard/dropValueUrlTags.d.ts +6 -0
  19. package/dist/components/Dashboard/index.d.ts +3 -2
  20. package/dist/components/Dashboard/telemetry.d.ts +2 -1
  21. package/dist/components/Dashboard/textSource.d.ts +19 -0
  22. package/dist/components/DashboardBuilder/AddTileDialog.d.ts +7 -8
  23. package/dist/components/DashboardBuilder/BuilderDialogs.d.ts +25 -0
  24. package/dist/components/DashboardBuilder/BuilderGrid.d.ts +31 -0
  25. package/dist/components/DashboardBuilder/BuilderHeader.d.ts +17 -0
  26. package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +14 -17
  27. package/dist/components/DashboardBuilder/ChartPicker.d.ts +3 -1
  28. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +15 -7
  29. package/dist/components/DashboardBuilder/DashboardEditor.d.ts +28 -2
  30. package/dist/components/DashboardBuilder/EditorSurface.d.ts +33 -0
  31. package/dist/components/DashboardBuilder/FilterStrip.d.ts +6 -4
  32. package/dist/components/DashboardBuilder/InlineText.d.ts +1 -1
  33. package/dist/components/DashboardBuilder/NotebookEditor.d.ts +1 -1
  34. package/dist/components/DashboardBuilder/TextTileBody.d.ts +4 -1
  35. package/dist/components/DashboardBuilder/TileFrame.d.ts +43 -6
  36. package/dist/components/DashboardBuilder/TileMenu.d.ts +6 -8
  37. package/dist/components/DashboardBuilder/builderReport.d.ts +13 -0
  38. package/dist/components/DashboardBuilder/catalog.d.ts +0 -18
  39. package/dist/components/DashboardBuilder/documentSession.d.ts +2 -2
  40. package/dist/components/DashboardBuilder/imports.d.ts +19 -0
  41. package/dist/components/DashboardBuilder/inlineEdit.d.ts +18 -0
  42. package/dist/components/DashboardBuilder/readDocument.d.ts +3 -1
  43. package/dist/components/DashboardBuilder/readForEditor.d.ts +1 -1
  44. package/dist/components/DashboardBuilder/sortable.d.ts +2 -0
  45. package/dist/components/DashboardBuilder/spliceDocument.d.ts +2 -0
  46. package/dist/components/DashboardBuilder/testing/resize.d.ts +7 -0
  47. package/dist/components/DashboardBuilder/tileDisplayTitle.d.ts +7 -0
  48. package/dist/components/DashboardBuilder/useBuilderSelection.d.ts +53 -0
  49. package/dist/components/DashboardBuilder/useBuilderSession.d.ts +4 -7
  50. package/dist/components/DashboardBuilder/useControlBindings.d.ts +30 -0
  51. package/dist/components/DashboardBuilder/useConversionConfirm.d.ts +20 -0
  52. package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +2 -0
  53. package/dist/components/DashboardBuilder/useDraft.d.ts +3 -1
  54. package/dist/components/DashboardBuilder/useHostCopy.d.ts +26 -0
  55. package/dist/components/DashboardBuilder/useOpenDraftCommit.d.ts +17 -0
  56. package/dist/components/DashboardBuilder/useOpenedDocument.d.ts +71 -0
  57. package/dist/components/DashboardBuilder/useSaveChannel.d.ts +50 -0
  58. package/dist/components/DashboardBuilder/useTileEditing.d.ts +33 -0
  59. package/dist/components/DashboardBuilder/useTileResize.d.ts +32 -0
  60. package/dist/components/Loading.d.ts +13 -0
  61. package/dist/components/Notebook/NotebookCell.d.ts +1 -5
  62. package/dist/components/Package/Package.d.ts +16 -1
  63. package/dist/components/Package/index.d.ts +1 -1
  64. package/dist/components/Prose.d.ts +1 -1
  65. package/dist/components/RenderedResult/loadRenderer.d.ts +7 -0
  66. package/dist/components/given/paramCodec.d.ts +8 -1
  67. package/dist/components/index.d.ts +1 -2
  68. package/dist/components/styles.d.ts +4 -4
  69. package/dist/hooks/givenValue.d.ts +6 -0
  70. package/dist/hooks/index.d.ts +1 -0
  71. package/dist/hooks/useCompiledDocument.d.ts +23 -0
  72. package/dist/hooks/useDocumentControls.d.ts +6 -1
  73. package/dist/hooks/useNearViewport.d.ts +16 -0
  74. package/dist/hooks/useQueryWithApiError.d.ts +7 -2
  75. package/dist/hooks/useSuggestOptions.d.ts +9 -2
  76. package/dist/index.cjs.js +14 -14
  77. package/dist/index.es.js +9760 -10363
  78. package/dist/text/index.es.js +1 -1
  79. package/dist/{text-entry-CbbBcZl8.es.js → text-entry-CA0LZ1xL.es.js} +8 -8
  80. package/dist/text-entry.d.ts +1 -1
  81. package/dist/theme/accent.d.ts +29 -0
  82. package/dist/theme/buildVegaThemeOverride.d.ts +3 -3
  83. package/dist/theme/index.d.ts +3 -0
  84. package/dist/theme/keys.d.ts +1 -1
  85. package/dist/theme/motion.d.ts +31 -0
  86. package/dist/theme/readChartAnnotations.d.ts +1 -1
  87. package/dist/theme/resolveTheme.d.ts +4 -4
  88. package/dist/theme/types.d.ts +33 -5
  89. package/dist/{DashboardTile-BFcxdv7R.es.js → useCompiledDocument-BU6d8FPp.es.js} +6978 -6289
  90. package/dist/useCompiledDocument-pOg2W-Yt.cjs.js +142 -0
  91. package/package.json +11 -11
  92. package/src/builder-entry.ts +1 -0
  93. package/src/client-entry.ts +8 -0
  94. package/src/clientEntry.spec.ts +17 -0
  95. package/src/components/ApiErrorDisplay.tsx +37 -18
  96. package/src/components/AppDialog.tsx +8 -7
  97. package/src/components/Dashboard/Dashboard.spec.tsx +3 -32
  98. package/src/components/Dashboard/Dashboard.tsx +2 -2
  99. package/src/components/Dashboard/DashboardGrid.tsx +23 -5
  100. package/src/components/Dashboard/DashboardTile.spec.tsx +97 -2
  101. package/src/components/Dashboard/DashboardTile.tsx +95 -31
  102. package/src/components/Dashboard/DashboardView.spec.tsx +156 -0
  103. package/src/components/Dashboard/DashboardView.tsx +165 -89
  104. package/src/components/Dashboard/RowsDialog.tsx +3 -2
  105. package/src/components/Dashboard/TileCard.tsx +17 -2
  106. package/src/components/Dashboard/dropValueUrlTags.spec.ts +177 -0
  107. package/src/components/Dashboard/dropValueUrlTags.ts +108 -0
  108. package/src/components/Dashboard/index.ts +11 -2
  109. package/src/components/Dashboard/telemetry.ts +2 -1
  110. package/src/components/Dashboard/textSource.spec.ts +36 -0
  111. package/src/components/Dashboard/textSource.ts +39 -0
  112. package/src/components/DashboardBuilder/AddTileDialog.tsx +16 -56
  113. package/src/components/DashboardBuilder/BuilderDialogs.tsx +162 -0
  114. package/src/components/DashboardBuilder/BuilderGrid.tsx +245 -0
  115. package/src/components/DashboardBuilder/BuilderHeader.tsx +107 -0
  116. package/src/components/DashboardBuilder/BuilderToolbar.tsx +86 -113
  117. package/src/components/DashboardBuilder/ChartPicker.tsx +4 -1
  118. package/src/components/DashboardBuilder/DashboardBuilder.charts.spec.tsx +5 -5
  119. package/src/components/DashboardBuilder/DashboardBuilder.exit.spec.tsx +74 -83
  120. package/src/components/DashboardBuilder/DashboardBuilder.inline.spec.tsx +62 -18
  121. package/src/components/DashboardBuilder/DashboardBuilder.notebook.spec.tsx +55 -108
  122. package/src/components/DashboardBuilder/DashboardBuilder.openDraft.spec.tsx +10 -62
  123. package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +50 -57
  124. package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +53 -40
  125. package/src/components/DashboardBuilder/DashboardBuilder.textTiles.spec.tsx +10 -8
  126. package/src/components/DashboardBuilder/DashboardBuilder.tsx +227 -704
  127. package/src/components/DashboardBuilder/DashboardEditor.authoritative.spec.tsx +32 -52
  128. package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +1 -50
  129. package/src/components/DashboardBuilder/DashboardEditor.notebook.spec.tsx +12 -18
  130. package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +4 -24
  131. package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +4 -4
  132. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +8 -13
  133. package/src/components/DashboardBuilder/DashboardEditor.textSource.spec.tsx +317 -0
  134. package/src/components/DashboardBuilder/DashboardEditor.tsx +142 -820
  135. package/src/components/DashboardBuilder/DrillDialog.tsx +2 -2
  136. package/src/components/DashboardBuilder/EditorSurface.tsx +471 -0
  137. package/src/components/DashboardBuilder/FilterDialog.tsx +13 -8
  138. package/src/components/DashboardBuilder/FilterStrip.tsx +117 -79
  139. package/src/components/DashboardBuilder/InlineMarkdown.tsx +7 -9
  140. package/src/components/DashboardBuilder/InlineText.tsx +23 -17
  141. package/src/components/DashboardBuilder/NotebookEditor.tsx +3 -3
  142. package/src/components/DashboardBuilder/TextTileBody.tsx +5 -2
  143. package/src/components/DashboardBuilder/TileFrame.tsx +255 -90
  144. package/src/components/DashboardBuilder/TileMenu.tsx +41 -91
  145. package/src/components/DashboardBuilder/artifactBlock.spec.ts +1 -1
  146. package/src/components/DashboardBuilder/artifactTagParity.spec.ts +9 -4
  147. package/src/components/DashboardBuilder/builderReport.ts +74 -0
  148. package/src/components/DashboardBuilder/catalog.spec.ts +0 -44
  149. package/src/components/DashboardBuilder/catalog.ts +0 -36
  150. package/src/components/DashboardBuilder/controls.spec.ts +1 -1
  151. package/src/components/DashboardBuilder/controls.ts +1 -1
  152. package/src/components/DashboardBuilder/documentSession.ts +3 -2
  153. package/src/components/DashboardBuilder/imports.spec.ts +61 -0
  154. package/src/components/DashboardBuilder/imports.ts +93 -0
  155. package/src/components/DashboardBuilder/inlineEdit.tsx +78 -0
  156. package/src/components/DashboardBuilder/legacyNotebook.ts +1 -1
  157. package/src/components/DashboardBuilder/malloyTree.ts +5 -1
  158. package/src/components/DashboardBuilder/newDashboard.ts +1 -1
  159. package/src/components/DashboardBuilder/preview.ts +1 -1
  160. package/src/components/DashboardBuilder/readDocument.spec.ts +36 -0
  161. package/src/components/DashboardBuilder/readDocument.ts +10 -4
  162. package/src/components/DashboardBuilder/readForEditor.ts +7 -2
  163. package/src/components/DashboardBuilder/sortable.spec.ts +25 -1
  164. package/src/components/DashboardBuilder/sortable.tsx +11 -0
  165. package/src/components/DashboardBuilder/spliceDocument.ts +8 -3
  166. package/src/components/DashboardBuilder/testing/artifactTagParity.json +62 -6
  167. package/src/components/DashboardBuilder/testing/documentKindRule.json +40 -0
  168. package/src/components/DashboardBuilder/testing/inline.ts +1 -1
  169. package/src/components/DashboardBuilder/testing/resize.ts +48 -0
  170. package/src/components/DashboardBuilder/testing/urlRenderTags.json +62 -0
  171. package/src/components/DashboardBuilder/textTiles.spec.ts +43 -1
  172. package/src/components/DashboardBuilder/tileDisplayTitle.ts +13 -0
  173. package/src/components/DashboardBuilder/useBuilderSelection.ts +121 -0
  174. package/src/components/DashboardBuilder/useBuilderSession.spec.ts +0 -85
  175. package/src/components/DashboardBuilder/useBuilderSession.ts +6 -43
  176. package/src/components/DashboardBuilder/useBuilderShortcuts.overlay.spec.tsx +32 -0
  177. package/src/components/DashboardBuilder/useBuilderShortcuts.ts +11 -1
  178. package/src/components/DashboardBuilder/useControlBindings.ts +152 -0
  179. package/src/components/DashboardBuilder/useConversionConfirm.ts +55 -0
  180. package/src/components/DashboardBuilder/useDashboardEditor.ts +5 -2
  181. package/src/components/DashboardBuilder/useDraft.ts +15 -2
  182. package/src/components/DashboardBuilder/useHostCopy.ts +104 -0
  183. package/src/components/DashboardBuilder/useOpenDraftCommit.ts +47 -0
  184. package/src/components/DashboardBuilder/useOpenedDocument.ts +314 -0
  185. package/src/components/DashboardBuilder/useSaveChannel.ts +275 -0
  186. package/src/components/DashboardBuilder/useTileEditing.ts +141 -0
  187. package/src/components/DashboardBuilder/useTileResize.spec.tsx +146 -0
  188. package/src/components/DashboardBuilder/useTileResize.ts +133 -0
  189. package/src/components/DataAppViewer/DataAppViewer.tsx +7 -4
  190. package/src/components/DocumentCreate/guards.ts +1 -1
  191. package/src/components/Environment/Environment.tsx +0 -10
  192. package/src/components/Loading.tsx +14 -0
  193. package/src/components/Model/Model.tsx +16 -9
  194. package/src/components/Model/ModelExplorer.tsx +2 -2
  195. package/src/components/Notebook/Notebook.tsx +6 -2
  196. package/src/components/Notebook/NotebookCell.tsx +90 -215
  197. package/src/components/Package/Package.artifacts.spec.tsx +8 -12
  198. package/src/components/Package/Package.create.spec.tsx +22 -1
  199. package/src/components/Package/Package.tsx +51 -27
  200. package/src/components/Package/index.ts +1 -1
  201. package/src/components/Prose.spec.tsx +37 -0
  202. package/src/components/Prose.tsx +35 -5
  203. package/src/components/RenderedResult/RenderedResult.tsx +5 -7
  204. package/src/components/RenderedResult/ResultContainer.tsx +7 -2
  205. package/src/components/RenderedResult/ResultPanel.tsx +20 -5
  206. package/src/components/RenderedResult/loadRenderer.ts +42 -0
  207. package/src/components/given/GivenInput.spec.tsx +5 -5
  208. package/src/components/given/GivenInput.tsx +46 -38
  209. package/src/components/given/GivensPanel.tsx +2 -8
  210. package/src/components/given/paramCodec.ts +27 -1
  211. package/src/components/index.ts +1 -2
  212. package/src/components/styles.ts +4 -5
  213. package/src/hooks/givenValue.ts +9 -0
  214. package/src/hooks/index.ts +4 -0
  215. package/src/hooks/useCompiledDocument.spec.tsx +86 -0
  216. package/src/hooks/useCompiledDocument.ts +59 -0
  217. package/src/hooks/useDimensionalFilterRangeData.ts +3 -1
  218. package/src/hooks/useDocumentControls.ts +13 -1
  219. package/src/hooks/useNearViewport.spec.tsx +150 -0
  220. package/src/hooks/useNearViewport.ts +102 -0
  221. package/src/hooks/useQueryResult.ts +7 -1
  222. package/src/hooks/useQueryWithApiError.ts +10 -3
  223. package/src/hooks/useRawQueryData.ts +3 -1
  224. package/src/hooks/useSuggestOptions.dom.spec.ts +40 -1
  225. package/src/hooks/useSuggestOptions.ts +42 -10
  226. package/src/text-entry.ts +1 -1
  227. package/src/textEntry.spec.ts +2 -8
  228. package/src/theme/accent.spec.ts +116 -0
  229. package/src/theme/accent.ts +148 -0
  230. package/src/theme/buildTableCssVars.spec.ts +24 -0
  231. package/src/theme/buildTableCssVars.ts +1 -2
  232. package/src/theme/buildVegaThemeOverride.spec.ts +38 -2
  233. package/src/theme/buildVegaThemeOverride.ts +5 -5
  234. package/src/theme/defaults.ts +34 -0
  235. package/src/theme/index.ts +9 -0
  236. package/src/theme/keys.ts +6 -0
  237. package/src/theme/motion.ts +44 -0
  238. package/src/theme/readChartAnnotations.spec.ts +18 -0
  239. package/src/theme/readChartAnnotations.ts +1 -1
  240. package/src/theme/resolveTheme.spec.ts +73 -0
  241. package/src/theme/resolveTheme.ts +61 -20
  242. package/src/theme/types.ts +30 -5
  243. package/src/utils/queryClient.ts +8 -0
  244. package/dist/DashboardTile-sg8LjUk8.cjs.js +0 -137
  245. package/dist/ServerProvider-HRqT3w1C.cjs.js +0 -1
  246. package/dist/components/Dashboard/DashboardBar.d.ts +0 -21
  247. package/dist/components/Dashboard/ExploreDialog.d.ts +0 -20
  248. package/dist/components/DashboardBuilder/DiffDialog.d.ts +0 -7
  249. package/dist/components/DashboardBuilder/SaveNotice.d.ts +0 -27
  250. package/dist/components/DashboardBuilder/SettingsPopover.d.ts +0 -32
  251. package/dist/components/DashboardBuilder/diff.d.ts +0 -35
  252. package/src/components/Dashboard/DashboardBar.tsx +0 -88
  253. package/src/components/Dashboard/ExploreDialog.tsx +0 -89
  254. package/src/components/DashboardBuilder/DashboardBuilder.notice.spec.tsx +0 -194
  255. package/src/components/DashboardBuilder/DiffDialog.spec.tsx +0 -25
  256. package/src/components/DashboardBuilder/DiffDialog.tsx +0 -103
  257. package/src/components/DashboardBuilder/SaveNotice.tsx +0 -113
  258. package/src/components/DashboardBuilder/SettingsPopover.spec.tsx +0 -87
  259. package/src/components/DashboardBuilder/SettingsPopover.tsx +0 -326
  260. package/src/components/DashboardBuilder/diff.spec.ts +0 -44
  261. package/src/components/DashboardBuilder/diff.ts +0 -93
  262. /package/dist/{components/DashboardBuilder → utils}/malloyText.d.ts +0 -0
  263. /package/src/{components/DashboardBuilder → utils}/malloyText.spec.ts +0 -0
  264. /package/src/{components/DashboardBuilder → utils}/malloyText.ts +0 -0
@@ -1,9 +1,9 @@
1
- import { jsx as B } from "react/jsx-runtime";
2
- import { QueryClient as se, QueryClientProvider as ce, useQuery as le } from "@tanstack/react-query";
1
+ import { jsx as D } from "react/jsx-runtime";
2
+ import { QueryClient as me, QueryClientProvider as ue, useQuery as ge } from "@tanstack/react-query";
3
3
  import u from "axios";
4
- import { useMemo as j, useContext as Y, createContext as K, useState as W, useEffect as ie, useCallback as pe } from "react";
5
- import { styled as x, Card as de, CardContent as he, CardMedia as me } from "@mui/material";
6
- const A = {
4
+ import { useContext as ee, useMemo as F, createContext as ae, useState as J, useEffect as be, useCallback as Pe } from "react";
5
+ import { styled as N, Card as ve, CardContent as Ve, CardMedia as Oe } from "@mui/material";
6
+ const I = {
7
7
  blue: "#2563eb",
8
8
  indigo: "#4f46e5",
9
9
  violet: "#7c3aed",
@@ -16,39 +16,36 @@ const A = {
16
16
  teal: "#0f766e",
17
17
  cyan: "#0e7490",
18
18
  slate: "#475569"
19
- }, ta = {
20
- environment: A.emerald,
21
- package: A.teal,
22
- connection: A.orange
23
- }, na = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', ra = x(de)({
19
+ }, ma = {
20
+ environment: I.emerald,
21
+ package: I.teal,
22
+ connection: I.orange
23
+ }, ua = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', ga = N(ve)({
24
24
  display: "flex",
25
25
  flexDirection: "column",
26
26
  height: "100%",
27
27
  boxShadow: "none",
28
28
  border: "none",
29
29
  backgroundColor: "transparent"
30
- }), oa = x(he)({
30
+ }), ba = N(Ve)({
31
31
  display: "flex",
32
32
  flexDirection: "column",
33
33
  padding: "0",
34
34
  flexGrow: 1
35
- }), sa = x(me)({
35
+ }), Pa = N(Oe)({
36
36
  padding: "0"
37
- }), ca = x("div")(({ theme: l }) => ({
38
- backgroundColor: l.palette.background.default,
39
- padding: "0 8px 0px 8px",
37
+ }), va = N("div")(({ theme: c }) => ({
38
+ backgroundColor: c.palette.background.default,
40
39
  borderRadius: "12px",
41
40
  boxShadow: "none",
42
- border: "none",
43
- maxWidth: "1200px",
44
- margin: "0 auto"
45
- })), la = x("div")({
41
+ border: "none"
42
+ })), Va = N("div")({
46
43
  marginBottom: "48px",
47
44
  padding: "0",
48
45
  backgroundColor: "transparent",
49
46
  border: "none",
50
47
  boxShadow: "none"
51
- }), ia = x("div")({
48
+ }), Oa = N("div")({
52
49
  backgroundColor: "transparent",
53
50
  paddingTop: "12px",
54
51
  paddingBottom: "2px",
@@ -56,26 +53,82 @@ const A = {
56
53
  border: "none",
57
54
  boxShadow: "none",
58
55
  marginBottom: "0"
59
- }), pa = x("div")({
56
+ }), Sa = N("div")({
60
57
  height: "100%"
61
- }), da = x("div")({
58
+ }), ka = N("div")({
62
59
  height: "75vh",
63
60
  width: "100%",
64
61
  overflowY: "auto"
65
- }), ue = [
66
- A.blue,
67
- A.orange,
68
- A.emerald,
69
- A.pink,
70
- A.violet,
71
- A.amber,
72
- A.cyan,
73
- A.lime
74
- ], ge = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", G = {
62
+ }), Se = {
63
+ light: {
64
+ accent: I.blue,
65
+ accentHover: "#1d4ed8",
66
+ accentContrast: "#ffffff"
67
+ },
68
+ dark: {
69
+ accent: "#60a5fa",
70
+ accentHover: "#93c5fd",
71
+ accentContrast: "#0f172a"
72
+ }
73
+ }, ke = {
74
+ light: "#ffffff",
75
+ dark: "#0f172a"
76
+ }, ye = 3, T = (c) => {
77
+ const t = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(c.trim());
78
+ if (!t) return;
79
+ const e = t[1].length === 3 ? [...t[1]].map((n) => n + n).join("") : t[1];
80
+ return [0, 2, 4].map((n) => parseInt(e.slice(n, n + 2), 16));
81
+ }, te = (c) => `#${c.map((t) => Math.round(t).toString(16).padStart(2, "0")).join("")}`, L = (c, t, e) => te(c.map((n) => n + (t - n) * e)), H = (c) => {
82
+ const [t, e, n] = c.map((a) => {
83
+ const r = a / 255;
84
+ return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
85
+ });
86
+ return 0.2126 * t + 0.7152 * e + 0.0722 * n;
87
+ }, q = (c, t) => {
88
+ const [e, n] = [H(c), H(t)].sort((a, r) => r - a);
89
+ return (e + 0.05) / (n + 0.05);
90
+ };
91
+ function ya(c, t) {
92
+ const e = T(c), n = T(t);
93
+ return e && n ? q(e, n) : void 0;
94
+ }
95
+ const Ae = [15, 23, 42];
96
+ function _(c, t, e = ye) {
97
+ const n = T(c), a = T(t);
98
+ if (!n || !a || q(n, a) >= e) return c;
99
+ const r = H(a) < 0.5 ? 255 : 0;
100
+ for (let o = 0.05; o < 1; o += 0.05) {
101
+ const s = T(L(n, r, o));
102
+ if (s && q(s, a) >= e) return te(s);
103
+ }
104
+ return r === 255 ? "#ffffff" : "#000000";
105
+ }
106
+ function X(c, t, e = ke[t]) {
107
+ const n = Se[t];
108
+ if (!c || c.toLowerCase() === I.blue) return n;
109
+ if (!T(c))
110
+ return t === "light" ? { ...n, accent: c, accentHover: c } : n;
111
+ const a = _(c, e), r = T(a), o = t === "dark" ? L(r, 255, 0.25) : L(r, 0, 0.2), s = q(r, [255, 255, 255]), l = q(r, Ae);
112
+ return {
113
+ accent: a,
114
+ accentHover: o,
115
+ accentContrast: s >= l ? "#ffffff" : "#0f172a"
116
+ };
117
+ }
118
+ const Ce = [
119
+ I.blue,
120
+ I.orange,
121
+ I.emerald,
122
+ I.pink,
123
+ I.violet,
124
+ I.amber,
125
+ I.cyan,
126
+ I.lime
127
+ ], Ie = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", Z = {
75
128
  defaultMode: "light",
76
129
  allowUserToggle: !0,
77
130
  palette: {
78
- series: ue,
131
+ series: Ce,
79
132
  // The chart canvas. One ground for the whole dashboard in both modes —
80
133
  // canvas, card and the panel between cards are all this value, and the
81
134
  // borders do the separating. See `tile`.
@@ -122,30 +175,70 @@ const A = {
122
175
  // pairs this with a near-neutral low end. Matches the first series
123
176
  // colour, so a map and a chart on one page ramp to the same hue.
124
177
  mapColor: {
125
- light: A.blue,
126
- dark: A.blue
178
+ light: I.blue,
179
+ dark: I.blue
180
+ },
181
+ // Table gridlines and row rules: a hairline, because a table has dozens
182
+ // of them and they only have to separate rows.
183
+ border: {
184
+ light: "#e2e8f0",
185
+ dark: "#334155"
186
+ },
187
+ // A dashboard card's edge (and a pinned table header's rule), one stop
188
+ // darker than `border` on the same slate ramp: a card's edge has to say
189
+ // where the card stops on a page whose ground and tile are one colour.
190
+ cardBorder: {
191
+ light: "#cbd5e1",
192
+ dark: "#475569"
193
+ },
194
+ // Chart axis domain and tick lines.
195
+ axis: {
196
+ light: "#cbd5e1",
197
+ dark: "#475569"
198
+ },
199
+ // Chart gridlines. The same value as `axis` by default; separate so a
200
+ // host can draw a quieter grid than its axis rule.
201
+ gridline: {
202
+ light: "#cbd5e1",
203
+ dark: "#475569"
204
+ },
205
+ // Chart text: axis labels and titles, legends, chart and header titles.
206
+ chartText: {
207
+ light: "#0f172a",
208
+ dark: "#e2e8f0"
209
+ },
210
+ // The big-value (KPI) number in a dashboard tile.
211
+ value: {
212
+ light: "#0f172a",
213
+ dark: "#f1f5f9"
127
214
  }
128
215
  },
129
216
  font: {
130
- family: ge,
217
+ family: Ie,
131
218
  size: 12
132
219
  }
133
- }, be = [
220
+ }, xe = [
134
221
  "background",
135
222
  "tableHeader",
136
223
  "tableHeaderBackground",
137
224
  "tableBody",
138
225
  "tile",
139
226
  "tileTitle",
140
- "mapColor"
227
+ "mapColor",
228
+ "border",
229
+ "cardBorder",
230
+ "axis",
231
+ "gridline",
232
+ "chartText",
233
+ "value"
141
234
  ];
142
- function $(l, t) {
143
- const e = G.palette ?? {}, r = G.font ?? {
235
+ function ne(c, t) {
236
+ const e = Z.palette ?? {}, n = Z.font ?? {
144
237
  family: "sans-serif",
145
238
  size: 12
146
239
  };
147
- let a = [...e.series ?? []], n = r.family ?? "sans-serif", o = r.size ?? 12;
148
- const s = {
240
+ let a = [...e.series ?? []], r = !1, o = n.family ?? "sans-serif", s = n.size ?? 12;
241
+ const l = {
149
242
  background: { ...e.background ?? {} },
150
243
  tableHeader: { ...e.tableHeader ?? {} },
151
244
  tableHeaderBackground: {
@@ -154,47 +247,67 @@ function $(l, t) {
154
247
  tableBody: { ...e.tableBody ?? {} },
155
248
  tile: { ...e.tile ?? {} },
156
249
  tileTitle: { ...e.tileTitle ?? {} },
157
- mapColor: { ...e.mapColor ?? {} }
250
+ mapColor: { ...e.mapColor ?? {} },
251
+ border: { ...e.border ?? {} },
252
+ cardBorder: { ...e.cardBorder ?? {} },
253
+ axis: { ...e.axis ?? {} },
254
+ gridline: { ...e.gridline ?? {} },
255
+ chartText: { ...e.chartText ?? {} },
256
+ value: { ...e.value ?? {} }
257
+ }, i = {
258
+ light: /* @__PURE__ */ new Set(),
259
+ dark: /* @__PURE__ */ new Set()
158
260
  };
159
- for (const d of l)
160
- if (d) {
161
- Array.isArray(d.palette?.series) && (a = [...d.palette.series]);
162
- for (const m of be) {
163
- const S = d.palette?.[m];
164
- S && (s[m] = { ...s[m], ...S });
261
+ for (const k of c)
262
+ if (k) {
263
+ Array.isArray(k.palette?.series) && (a = [...k.palette.series], r = !0);
264
+ for (const C of xe) {
265
+ const R = k.palette?.[C];
266
+ R && (l[C] = { ...l[C], ...R }, R.light !== void 0 && i.light.add(C), R.dark !== void 0 && i.dark.add(C));
165
267
  }
166
- typeof d.font?.family == "string" && (n = d.font.family), typeof d.font?.size == "number" && (o = d.font.size);
268
+ typeof k.font?.family == "string" && (o = k.font.family), typeof k.font?.size == "number" && (s = k.font.size);
167
269
  }
168
- const c = t === "dark", i = (d) => s[d][t] ?? e[d]?.[t], p = i("background");
270
+ const p = t === "dark", d = (k) => l[k][t] ?? e[k]?.[t], m = d("background"), S = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? _(l.mapColor.light, m) : d("mapColor");
169
271
  return {
170
272
  mode: t,
171
- series: a,
172
- font: { family: n, size: o },
173
- background: p,
174
- tableHeader: i("tableHeader"),
175
- tableHeaderBackground: i("tableHeaderBackground"),
176
- tableBody: i("tableBody"),
177
- tile: i("tile"),
178
- tileTitle: i("tileTitle"),
179
- mapColor: i("mapColor"),
273
+ // One series list for both modes, picked against a light page: in dark,
274
+ // an operator's colour too dark to see on the canvas is lifted until it
275
+ // reads. The defaults are drawn as they always were.
276
+ series: p && r ? a.map((k) => _(k, m)) : a,
277
+ ...X(a[0], t, m),
278
+ font: { family: o, size: s },
279
+ background: m,
280
+ tableHeader: d("tableHeader"),
281
+ tableHeaderBackground: d("tableHeaderBackground"),
282
+ tableBody: d("tableBody"),
283
+ tile: d("tile"),
284
+ tileTitle: d("tileTitle"),
285
+ mapColor: S,
180
286
  // Table interior follows the operator's chart background so
181
287
  // tables and chart canvases share a single "viz surface" colour.
182
- tableBackground: p,
183
- // Derived, mode-keyed defaults. Operators don't edit these in
184
- // v1; they're consistent borders / readable foreground text for
185
- // each mode. If a user later asks to customise them, expose them
186
- // on the schema and the editor and replace the literals below.
187
- border: c ? "1px solid #334155" : "1px solid #e2e8f0",
288
+ tableBackground: m,
289
+ // Chrome colours. Each is a per-mode palette key (defaults in
290
+ // DEFAULT_THEME); unlike mapColor, a value set only for light is not
291
+ // carried into dark: dark falls back to its own default, because a
292
+ // light-mode rule or text colour rarely reads on the dark ground.
293
+ border: `1px solid ${d("border")}`,
188
294
  // A card's edge, one stop darker than a table's gridline on the same
189
295
  // slate ramp. See `cardBorder` on ResolvedTheme for why the two are not
190
296
  // the same value.
191
- cardBorder: c ? "1px solid #475569" : "1px solid #cbd5e1",
192
- // Slate, not the teal-cast `#daedf3` this was: a pinned table header
193
- // outlined in a hue no longer anywhere else on the page.
194
- pinnedBorder: c ? "1px solid #475569" : "1px solid #cbd5e1",
195
- valueColor: c ? "#f1f5f9" : "#0f172a",
196
- foreground: c ? "#e2e8f0" : "#0f172a",
197
- axisFaint: c ? "#475569" : "#cbd5e1",
297
+ cardBorder: `1px solid ${d("cardBorder")}`,
298
+ // The pinned table header's rule is the card edge's colour.
299
+ pinnedBorder: `1px solid ${d("cardBorder")}`,
300
+ valueColor: d("value"),
301
+ foreground: d("chartText"),
302
+ axisFaint: d("axis"),
303
+ gridline: d("gridline"),
304
+ shadow: p ? {
305
+ lift: "0 2px 12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08)",
306
+ drag: "0 12px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12)"
307
+ } : {
308
+ lift: "0 2px 10px rgba(0, 0, 0, 0.10)",
309
+ drag: "0 12px 32px rgba(0, 0, 0, 0.22)"
310
+ },
198
311
  // Dashboard panel background (the area BETWEEN tiles). The page's own
199
312
  // ground in both modes, so the panel, the cards on it and the canvases
200
313
  // inside them are one surface that borders divide up — see
@@ -203,36 +316,38 @@ function $(l, t) {
203
316
  // Still NOT tied to `palette.background`, which an operator may set to
204
317
  // a bold accent for the chart canvas. The panel stays the neutral it is
205
318
  // here so that accent cannot bleed into the surrounding chrome.
206
- dashboardRoot: c ? "#0f172a" : "#ffffff",
319
+ dashboardRoot: p ? "#0f172a" : "#ffffff",
207
320
  // Drill link hover: the palette's anchor blue, so a drill reads as the
208
321
  // same affordance as every other primary action; dark lightens it for
209
322
  // contrast on the slate panel.
210
- drillLink: c ? "#60a5fa" : A.blue
323
+ // The Console's default accent, not the palette's: a drill reads as a
324
+ // link whatever the operator picked for the data.
325
+ drillLink: X(void 0, t).accent
211
326
  };
212
327
  }
213
- function Pe(l, t, e) {
214
- const r = t ?? l ?? "light";
215
- return r === "auto" ? e ? "dark" : "light" : r;
328
+ function Re(c, t, e) {
329
+ const n = t ?? c ?? "light";
330
+ return n === "auto" ? e ? "dark" : "light" : n;
216
331
  }
217
- const J = K(void 0);
218
- function ve({
219
- layers: l,
332
+ const re = ae(void 0);
333
+ function Ne({
334
+ layers: c,
220
335
  mode: t,
221
336
  userChoice: e,
222
- setMode: r,
337
+ setMode: n,
223
338
  allowUserToggle: a = !0,
224
- children: n
339
+ children: r
225
340
  }) {
226
- const o = j(() => $(l, t), [l, t]), s = j(
227
- () => ({ theme: o, layers: l, mode: t, userChoice: e, setMode: r, allowUserToggle: a }),
228
- [o, l, t, e, r, a]
341
+ const o = F(() => ne(c, t), [c, t]), s = F(
342
+ () => ({ theme: o, layers: c, mode: t, userChoice: e, setMode: n, allowUserToggle: a }),
343
+ [o, c, t, e, n, a]
229
344
  );
230
- return /* @__PURE__ */ B(J.Provider, { value: s, children: n });
345
+ return /* @__PURE__ */ D(re.Provider, { value: s, children: r });
231
346
  }
232
- function ha() {
233
- const l = Y(J);
234
- return l || {
235
- theme: $([], "light"),
347
+ function Aa() {
348
+ const c = ee(re);
349
+ return c || {
350
+ theme: ne([], "light"),
236
351
  layers: [],
237
352
  mode: "light",
238
353
  userChoice: void 0,
@@ -242,63 +357,66 @@ function ha() {
242
357
  };
243
358
  }
244
359
  const g = "http://localhost/api/v0".replace(/\/+$/, "");
245
- class C {
246
- constructor(t, e = g, r = u) {
247
- this.basePath = e, this.axios = r, t && (this.configuration = t, this.basePath = t.basePath ?? e);
360
+ class x {
361
+ constructor(t, e = g, n = u) {
362
+ this.basePath = e, this.axios = n, t && (this.configuration = t, this.basePath = t.basePath ?? e);
248
363
  }
249
364
  configuration;
250
365
  }
251
- class Ve extends Error {
366
+ class Te extends Error {
252
367
  constructor(t, e) {
253
368
  super(e), this.field = t, this.name = "RequiredError";
254
369
  }
255
370
  }
256
- const b = {}, P = "https://example.com", h = function(l, t, e) {
371
+ const b = {}, P = "https://example.com", h = function(c, t, e) {
257
372
  if (e == null)
258
- throw new Ve(t, `Required parameter ${t} was null or undefined when calling ${l}.`);
373
+ throw new Te(t, `Required parameter ${t} was null or undefined when calling ${c}.`);
259
374
  };
260
- function Q(l, t, e = "") {
261
- t != null && (typeof t == "object" ? Array.isArray(t) || t instanceof Set ? t.forEach((r) => Q(l, r, e)) : Object.keys(t).forEach(
262
- (r) => Q(l, t[r], `${e}${e !== "" ? "." : ""}${r}`)
263
- ) : l.has(e) ? l.append(e, t) : l.set(e, t));
375
+ function W(c, t, e = "") {
376
+ t != null && (typeof t == "object" ? Array.isArray(t) || t instanceof Set ? t.forEach((n) => W(c, n, e)) : Object.keys(t).forEach(
377
+ (n) => W(c, t[n], `${e}${e !== "" ? "." : ""}${n}`)
378
+ ) : c.has(e) ? c.append(e, t) : c.set(e, t));
264
379
  }
265
- const v = function(l, ...t) {
266
- const e = new URLSearchParams(l.search);
267
- Q(e, t), l.search = e.toString();
268
- }, Oe = function(l, t) {
380
+ const v = function(c, ...t) {
381
+ const e = new URLSearchParams(c.search);
382
+ W(e, t), c.search = e.toString();
383
+ }, Ue = function(c, t) {
269
384
  return t instanceof Set ? Array.from(t) : t;
270
- }, k = function(l, t, e) {
271
- const r = typeof l != "string";
272
- return (r && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}, Oe) : l || "";
273
- }, V = function(l) {
274
- return l.pathname + l.search + l.hash;
275
- }, O = function(l, t, e, r) {
276
- return (a = t, n = e) => {
277
- const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? n) + l.url };
385
+ }, y = function(c, t, e) {
386
+ const n = typeof c != "string";
387
+ return (n && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : n) ? JSON.stringify(c !== void 0 ? c : {}, Ue) : c || "";
388
+ }, V = function(c) {
389
+ return c.pathname + c.search + c.hash;
390
+ }, O = function(c, t, e, n) {
391
+ return (a = t, r = e) => {
392
+ const o = { ...c.options, url: (a.defaults.baseURL ? "" : n?.basePath ?? r) + c.url };
278
393
  return a.request(o);
279
394
  };
280
- }, ma = {
395
+ }, Ca = {
281
396
  Bigquery: "bigquery",
282
397
  Snowflake: "snowflake",
283
398
  Postgres: "postgres",
284
399
  Gcs: "gcs",
285
400
  S3: "s3",
286
401
  Azure: "azure"
287
- }, ua = {
402
+ }, Ia = {
288
403
  ServicePrincipal: "service_principal",
289
404
  SasToken: "sas_token"
290
- }, ga = {
405
+ }, xa = {
291
406
  Error: "error",
292
407
  Warn: "warn",
293
408
  Debug: "debug"
294
- }, ba = {
409
+ }, Ra = {
295
410
  Append: "append",
296
411
  File: "file",
297
412
  Package: "package"
298
- }, Pa = {
413
+ }, Na = {
299
414
  Success: "success",
300
415
  Error: "error"
301
- }, va = {
416
+ }, Ta = {
417
+ Dashboard: "dashboard",
418
+ Notebook: "notebook"
419
+ }, Ua = {
302
420
  Postgres: "postgres",
303
421
  Bigquery: "bigquery",
304
422
  Snowflake: "snowflake",
@@ -309,125 +427,133 @@ const v = function(l, ...t) {
309
427
  Motherduck: "motherduck",
310
428
  Ducklake: "ducklake",
311
429
  Publisher: "publisher"
312
- }, Va = {
430
+ }, wa = {
313
431
  Ssh: "ssh"
314
- }, Oa = {
432
+ }, Ea = {
315
433
  Ok: "ok",
316
434
  Failed: "failed"
317
- }, Sa = {
435
+ }, fa = {
318
436
  Dashboard: "dashboard",
319
437
  Notebook: "notebook"
320
- }, ka = {
438
+ }, Ma = {
321
439
  Query: "query",
322
440
  Text: "text"
323
- }, ya = {
441
+ }, Ba = {
324
442
  Viewport: "viewport"
325
- }, Aa = {
443
+ }, ja = {
326
444
  Embedded: "embedded",
327
445
  Materialized: "materialized"
328
- }, Ca = {
446
+ }, Fa = {
329
447
  Equal: "equal",
330
448
  In: "in",
331
449
  Like: "like",
332
450
  GreaterThan: "greater_than",
333
451
  LessThan: "less_than"
334
- }, Ia = {
452
+ }, Da = {
335
453
  Live: "live",
336
454
  StaleOk: "stale_ok",
337
455
  Fail: "fail"
338
- }, xa = {
456
+ }, qa = {
339
457
  Select: "select",
340
458
  Multiselect: "multiselect"
341
- }, Ra = {
459
+ }, Qa = {
342
460
  Merge: "merge",
343
461
  RangeReplace: "range_replace"
344
- }, Na = {
462
+ }, za = {
345
463
  Debug: "debug",
346
464
  Info: "info",
347
465
  Warn: "warn",
348
466
  Error: "error"
349
- }, Ta = {
467
+ }, La = {
350
468
  Persist: "persist",
351
469
  Preaggregate: "preaggregate"
352
- }, Ua = {
470
+ }, Ha = {
353
471
  Live: "live",
354
472
  StaleOk: "stale_ok",
355
473
  Fail: "fail"
356
- }, wa = {
474
+ }, _a = {
357
475
  Delta: "delta",
358
476
  Full: "full",
359
477
  None: "none"
360
- }, Ea = {
478
+ }, Wa = {
361
479
  Pending: "PENDING",
362
480
  ManifestRowsReady: "MANIFEST_ROWS_READY",
363
481
  ManifestFileReady: "MANIFEST_FILE_READY",
364
482
  Failed: "FAILED",
365
483
  Cancelled: "CANCELLED"
366
- }, Ma = {
484
+ }, Ga = {
367
485
  Markdown: "markdown",
368
486
  Code: "code"
369
- }, fa = {
487
+ }, $a = {
370
488
  Markdown: "markdown",
371
489
  Query: "query",
372
490
  Definition: "definition"
373
- }, ja = {
491
+ }, Ka = {
374
492
  Markdown: "markdown",
375
493
  Code: "code"
376
- }, Ba = {
494
+ }, Ya = {
377
495
  Markdown: "markdown",
378
496
  Query: "query",
379
497
  Definition: "definition"
380
- }, Fa = {
498
+ }, Ja = {
381
499
  Version: "version",
382
500
  Package: "package"
383
- }, Da = {
501
+ }, Xa = {
384
502
  Declared: "declared",
385
503
  All: "all"
386
- }, qa = {
504
+ }, Za = {
387
505
  Unbound: "unbound",
388
506
  Bound: "bound",
389
507
  LiveFallback: "live_fallback"
390
- }, Qa = {
508
+ }, et = {
509
+ Lexical: "lexical",
391
510
  Indexing: "indexing",
392
511
  Ready: "ready",
512
+ Error: "error",
393
513
  Cooldown: "cooldown",
394
514
  TooManyEntities: "too-many-entities"
395
- }, za = {
515
+ }, at = {
516
+ Cooldown: "cooldown",
517
+ TooManyEntities: "too-many-entities"
518
+ }, tt = {
519
+ Keyphrase: "keyphrase",
520
+ SourceSummary: "source_summary"
521
+ }, nt = {
396
522
  Persist: "persist",
397
523
  Preaggregate: "preaggregate"
398
- }, La = {
524
+ }, rt = {
399
525
  Error: "error",
400
526
  Warn: "warn"
401
- }, Ha = {
527
+ }, ot = {
402
528
  Persist: "persist",
403
529
  Preaggregate: "preaggregate"
404
- }, _a = {
530
+ }, st = {
405
531
  Disable: "disable",
406
532
  NoVerify: "no-verify",
407
533
  VerifyCa: "verify-ca",
408
534
  VerifyFull: "verify-full"
409
- }, Wa = {
535
+ }, ct = {
410
536
  Interactive: "interactive",
411
537
  Materialize: "materialize",
412
538
  Index: "index",
413
539
  Ops: "ops"
414
- }, Ga = {
540
+ }, lt = {
415
541
  Query: "query",
416
542
  ServerDefault: "server_default"
417
- }, Ya = {
543
+ }, it = {
418
544
  Storage: "storage",
419
545
  LiveFallback: "live_fallback"
420
- }, Ka = {
546
+ }, pt = {
421
547
  Malloynb: "malloynb",
422
548
  Malloy: "malloy"
423
- }, $a = {
549
+ }, dt = {
424
550
  Snapshot: "SNAPSHOT",
425
551
  Copy: "COPY"
426
- }, Ja = {
552
+ }, ht = {
427
553
  Storage: "storage",
428
554
  Colocated: "colocated",
429
555
  Preaggregate: "preaggregate"
430
- }, Xa = {
556
+ }, mt = {
431
557
  FreeParameter: "free_parameter",
432
558
  Given: "given",
433
559
  GivenInPersistedQuery: "given_in_persisted_query",
@@ -442,23 +568,23 @@ const v = function(l, ...t) {
442
568
  Authorize: "authorize",
443
569
  NotDuckdbPortable: "not_duckdb_portable",
444
570
  PublicSurfaceUnknown: "public_surface_unknown"
445
- }, Za = {
571
+ }, ut = {
446
572
  Publish: "publish",
447
573
  OnDemand: "on_demand",
448
574
  Scheduler: "scheduler"
449
- }, et = {
575
+ }, gt = {
450
576
  Config: "config",
451
577
  CredentialChain: "credential_chain"
452
- }, at = {
578
+ }, bt = {
453
579
  Initializing: "initializing",
454
580
  Serving: "serving",
455
581
  Draining: "draining",
456
582
  Throttled: "throttled"
457
- }, tt = {
583
+ }, Pt = {
458
584
  Light: "light",
459
585
  Dark: "dark",
460
586
  Auto: "auto"
461
- }, Se = function(l) {
587
+ }, we = function(c) {
462
588
  return {
463
589
  /**
464
590
  * Creates a new database connection in the specified environment.
@@ -469,17 +595,17 @@ const v = function(l, ...t) {
469
595
  * @param {*} [options] Override http request option.
470
596
  * @throws {RequiredError}
471
597
  */
472
- createConnection: async (t, e, r, a = {}) => {
473
- h("createConnection", "environmentName", t), h("createConnection", "connectionName", e), h("createConnection", "connection", r);
474
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
598
+ createConnection: async (t, e, n, a = {}) => {
599
+ h("createConnection", "environmentName", t), h("createConnection", "connectionName", e), h("createConnection", "connection", n);
600
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
475
601
  let s;
476
- l && (s = l.baseOptions);
477
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
602
+ c && (s = c.baseOptions);
603
+ const l = { method: "POST", ...s, ...a }, i = {}, p = {};
478
604
  i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
479
605
  let d = s && s.headers ? s.headers : {};
480
- return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
606
+ return l.headers = { ...i, ...d, ...a.headers }, l.data = y(n, l, c), {
481
607
  url: V(o),
482
- options: c
608
+ options: l
483
609
  };
484
610
  },
485
611
  /**
@@ -490,16 +616,16 @@ const v = function(l, ...t) {
490
616
  * @param {*} [options] Override http request option.
491
617
  * @throws {RequiredError}
492
618
  */
493
- deleteConnection: async (t, e, r = {}) => {
619
+ deleteConnection: async (t, e, n = {}) => {
494
620
  h("deleteConnection", "environmentName", t), h("deleteConnection", "connectionName", e);
495
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
621
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
496
622
  let o;
497
- l && (o = l.baseOptions);
498
- const s = { method: "DELETE", ...o, ...r }, c = {}, i = {};
499
- c.Accept = "application/json", v(n, i);
623
+ c && (o = c.baseOptions);
624
+ const s = { method: "DELETE", ...o, ...n }, l = {}, i = {};
625
+ l.Accept = "application/json", v(r, i);
500
626
  let p = o && o.headers ? o.headers : {};
501
- return s.headers = { ...c, ...p, ...r.headers }, {
502
- url: V(n),
627
+ return s.headers = { ...l, ...p, ...n.headers }, {
628
+ url: V(r),
503
629
  options: s
504
630
  };
505
631
  },
@@ -511,16 +637,16 @@ const v = function(l, ...t) {
511
637
  * @param {*} [options] Override http request option.
512
638
  * @throws {RequiredError}
513
639
  */
514
- getConnection: async (t, e, r = {}) => {
640
+ getConnection: async (t, e, n = {}) => {
515
641
  h("getConnection", "environmentName", t), h("getConnection", "connectionName", e);
516
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
642
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
517
643
  let o;
518
- l && (o = l.baseOptions);
519
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
520
- c.Accept = "application/json", v(n, i);
644
+ c && (o = c.baseOptions);
645
+ const s = { method: "GET", ...o, ...n }, l = {}, i = {};
646
+ l.Accept = "application/json", v(r, i);
521
647
  let p = o && o.headers ? o.headers : {};
522
- return s.headers = { ...c, ...p, ...r.headers }, {
523
- url: V(n),
648
+ return s.headers = { ...l, ...p, ...n.headers }, {
649
+ url: V(r),
524
650
  options: s
525
651
  };
526
652
  },
@@ -534,15 +660,15 @@ const v = function(l, ...t) {
534
660
  * @param {*} [options] Override http request option.
535
661
  * @throws {RequiredError}
536
662
  */
537
- getTable: async (t, e, r, a, n = {}) => {
538
- h("getTable", "environmentName", t), h("getTable", "connectionName", e), h("getTable", "schemaName", r), h("getTable", "tablePath", a);
539
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
540
- let c;
541
- l && (c = l.baseOptions);
542
- const i = { method: "GET", ...c, ...n }, p = {}, d = {};
663
+ getTable: async (t, e, n, a, r = {}) => {
664
+ h("getTable", "environmentName", t), h("getTable", "connectionName", e), h("getTable", "schemaName", n), h("getTable", "tablePath", a);
665
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
666
+ let l;
667
+ c && (l = c.baseOptions);
668
+ const i = { method: "GET", ...l, ...r }, p = {}, d = {};
543
669
  p.Accept = "application/json", v(s, d);
544
- let m = c && c.headers ? c.headers : {};
545
- return i.headers = { ...p, ...m, ...n.headers }, {
670
+ let m = l && l.headers ? l.headers : {};
671
+ return i.headers = { ...p, ...m, ...r.headers }, {
546
672
  url: V(s),
547
673
  options: i
548
674
  };
@@ -558,16 +684,16 @@ const v = function(l, ...t) {
558
684
  * @param {*} [options] Override http request option.
559
685
  * @throws {RequiredError}
560
686
  */
561
- getTableInPackage: async (t, e, r, a, n, o = {}) => {
562
- h("getTableInPackage", "environmentName", t), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", r), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", n);
563
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, P);
687
+ getTableInPackage: async (t, e, n, a, r, o = {}) => {
688
+ h("getTableInPackage", "environmentName", t), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", n), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", r);
689
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), l = new URL(s, P);
564
690
  let i;
565
- l && (i = l.baseOptions);
691
+ c && (i = c.baseOptions);
566
692
  const p = { method: "GET", ...i, ...o }, d = {}, m = {};
567
- d.Accept = "application/json", v(c, m);
693
+ d.Accept = "application/json", v(l, m);
568
694
  let S = i && i.headers ? i.headers : {};
569
695
  return p.headers = { ...d, ...S, ...o.headers }, {
570
- url: V(c),
696
+ url: V(l),
571
697
  options: p
572
698
  };
573
699
  },
@@ -580,12 +706,12 @@ const v = function(l, ...t) {
580
706
  */
581
707
  listConnections: async (t, e = {}) => {
582
708
  h("listConnections", "environmentName", t);
583
- const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
584
- let n;
585
- l && (n = l.baseOptions);
586
- const o = { method: "GET", ...n, ...e }, s = {}, c = {};
587
- s.Accept = "application/json", v(a, c);
588
- let i = n && n.headers ? n.headers : {};
709
+ const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
710
+ let r;
711
+ c && (r = c.baseOptions);
712
+ const o = { method: "GET", ...r, ...e }, s = {}, l = {};
713
+ s.Accept = "application/json", v(a, l);
714
+ let i = r && r.headers ? r.headers : {};
589
715
  return o.headers = { ...s, ...i, ...e.headers }, {
590
716
  url: V(a),
591
717
  options: o
@@ -599,16 +725,16 @@ const v = function(l, ...t) {
599
725
  * @param {*} [options] Override http request option.
600
726
  * @throws {RequiredError}
601
727
  */
602
- listSchemas: async (t, e, r = {}) => {
728
+ listSchemas: async (t, e, n = {}) => {
603
729
  h("listSchemas", "environmentName", t), h("listSchemas", "connectionName", e);
604
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
730
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
605
731
  let o;
606
- l && (o = l.baseOptions);
607
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
608
- c.Accept = "application/json", v(n, i);
732
+ c && (o = c.baseOptions);
733
+ const s = { method: "GET", ...o, ...n }, l = {}, i = {};
734
+ l.Accept = "application/json", v(r, i);
609
735
  let p = o && o.headers ? o.headers : {};
610
- return s.headers = { ...c, ...p, ...r.headers }, {
611
- url: V(n),
736
+ return s.headers = { ...l, ...p, ...n.headers }, {
737
+ url: V(r),
612
738
  options: s
613
739
  };
614
740
  },
@@ -621,17 +747,17 @@ const v = function(l, ...t) {
621
747
  * @param {*} [options] Override http request option.
622
748
  * @throws {RequiredError}
623
749
  */
624
- listSchemasInPackage: async (t, e, r, a = {}) => {
625
- h("listSchemasInPackage", "environmentName", t), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", r);
626
- const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(n, P);
750
+ listSchemasInPackage: async (t, e, n, a = {}) => {
751
+ h("listSchemasInPackage", "environmentName", t), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", n);
752
+ const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(r, P);
627
753
  let s;
628
- l && (s = l.baseOptions);
629
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
754
+ c && (s = c.baseOptions);
755
+ const l = { method: "GET", ...s, ...a }, i = {}, p = {};
630
756
  i.Accept = "application/json", v(o, p);
631
757
  let d = s && s.headers ? s.headers : {};
632
- return c.headers = { ...i, ...d, ...a.headers }, {
758
+ return l.headers = { ...i, ...d, ...a.headers }, {
633
759
  url: V(o),
634
- options: c
760
+ options: l
635
761
  };
636
762
  },
637
763
  /**
@@ -644,15 +770,15 @@ const v = function(l, ...t) {
644
770
  * @param {*} [options] Override http request option.
645
771
  * @throws {RequiredError}
646
772
  */
647
- listTables: async (t, e, r, a, n = {}) => {
648
- h("listTables", "environmentName", t), h("listTables", "connectionName", e), h("listTables", "schemaName", r);
649
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, P);
650
- let c;
651
- l && (c = l.baseOptions);
652
- const i = { method: "GET", ...c, ...n }, p = {}, d = {};
773
+ listTables: async (t, e, n, a, r = {}) => {
774
+ h("listTables", "environmentName", t), h("listTables", "connectionName", e), h("listTables", "schemaName", n);
775
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(o, P);
776
+ let l;
777
+ c && (l = c.baseOptions);
778
+ const i = { method: "GET", ...l, ...r }, p = {}, d = {};
653
779
  a && (d.tableNames = a), p.Accept = "application/json", v(s, d);
654
- let m = c && c.headers ? c.headers : {};
655
- return i.headers = { ...p, ...m, ...n.headers }, {
780
+ let m = l && l.headers ? l.headers : {};
781
+ return i.headers = { ...p, ...m, ...r.headers }, {
656
782
  url: V(s),
657
783
  options: i
658
784
  };
@@ -668,16 +794,16 @@ const v = function(l, ...t) {
668
794
  * @param {*} [options] Override http request option.
669
795
  * @throws {RequiredError}
670
796
  */
671
- listTablesInPackage: async (t, e, r, a, n, o = {}) => {
672
- h("listTablesInPackage", "environmentName", t), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", r), h("listTablesInPackage", "schemaName", a);
673
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
797
+ listTablesInPackage: async (t, e, n, a, r, o = {}) => {
798
+ h("listTablesInPackage", "environmentName", t), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", n), h("listTablesInPackage", "schemaName", a);
799
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(a))), l = new URL(s, P);
674
800
  let i;
675
- l && (i = l.baseOptions);
801
+ c && (i = c.baseOptions);
676
802
  const p = { method: "GET", ...i, ...o }, d = {}, m = {};
677
- n && (m.tableNames = n), d.Accept = "application/json", v(c, m);
803
+ r && (m.tableNames = r), d.Accept = "application/json", v(l, m);
678
804
  let S = i && i.headers ? i.headers : {};
679
805
  return p.headers = { ...d, ...S, ...o.headers }, {
680
- url: V(c),
806
+ url: V(l),
681
807
  options: p
682
808
  };
683
809
  },
@@ -690,17 +816,17 @@ const v = function(l, ...t) {
690
816
  * @param {*} [options] Override http request option.
691
817
  * @throws {RequiredError}
692
818
  */
693
- postQuerydata: async (t, e, r, a = {}) => {
694
- h("postQuerydata", "environmentName", t), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", r);
695
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
819
+ postQuerydata: async (t, e, n, a = {}) => {
820
+ h("postQuerydata", "environmentName", t), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", n);
821
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
696
822
  let s;
697
- l && (s = l.baseOptions);
698
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
823
+ c && (s = c.baseOptions);
824
+ const l = { method: "POST", ...s, ...a }, i = {}, p = {};
699
825
  i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
700
826
  let d = s && s.headers ? s.headers : {};
701
- return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
827
+ return l.headers = { ...i, ...d, ...a.headers }, l.data = y(n, l, c), {
702
828
  url: V(o),
703
- options: c
829
+ options: l
704
830
  };
705
831
  },
706
832
  /**
@@ -713,15 +839,15 @@ const v = function(l, ...t) {
713
839
  * @param {*} [options] Override http request option.
714
840
  * @throws {RequiredError}
715
841
  */
716
- postQuerydataInPackage: async (t, e, r, a, n = {}) => {
717
- h("postQuerydataInPackage", "environmentName", t), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", a);
718
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
719
- let c;
720
- l && (c = l.baseOptions);
721
- const i = { method: "POST", ...c, ...n }, p = {}, d = {};
842
+ postQuerydataInPackage: async (t, e, n, a, r = {}) => {
843
+ h("postQuerydataInPackage", "environmentName", t), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", n), h("postQuerydataInPackage", "postQuerydataRequest", a);
844
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
845
+ let l;
846
+ c && (l = c.baseOptions);
847
+ const i = { method: "POST", ...l, ...r }, p = {}, d = {};
722
848
  p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
723
- let m = c && c.headers ? c.headers : {};
724
- return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
849
+ let m = l && l.headers ? l.headers : {};
850
+ return i.headers = { ...p, ...m, ...r.headers }, i.data = y(a, i, c), {
725
851
  url: V(s),
726
852
  options: i
727
853
  };
@@ -735,17 +861,17 @@ const v = function(l, ...t) {
735
861
  * @param {*} [options] Override http request option.
736
862
  * @throws {RequiredError}
737
863
  */
738
- postSqlsource: async (t, e, r, a = {}) => {
739
- h("postSqlsource", "environmentName", t), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", r);
740
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
864
+ postSqlsource: async (t, e, n, a = {}) => {
865
+ h("postSqlsource", "environmentName", t), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", n);
866
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
741
867
  let s;
742
- l && (s = l.baseOptions);
743
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
868
+ c && (s = c.baseOptions);
869
+ const l = { method: "POST", ...s, ...a }, i = {}, p = {};
744
870
  i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
745
871
  let d = s && s.headers ? s.headers : {};
746
- return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
872
+ return l.headers = { ...i, ...d, ...a.headers }, l.data = y(n, l, c), {
747
873
  url: V(o),
748
- options: c
874
+ options: l
749
875
  };
750
876
  },
751
877
  /**
@@ -758,15 +884,15 @@ const v = function(l, ...t) {
758
884
  * @param {*} [options] Override http request option.
759
885
  * @throws {RequiredError}
760
886
  */
761
- postSqlsourceInPackage: async (t, e, r, a, n = {}) => {
762
- h("postSqlsourceInPackage", "environmentName", t), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
763
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
764
- let c;
765
- l && (c = l.baseOptions);
766
- const i = { method: "POST", ...c, ...n }, p = {}, d = {};
887
+ postSqlsourceInPackage: async (t, e, n, a, r = {}) => {
888
+ h("postSqlsourceInPackage", "environmentName", t), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", n), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
889
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
890
+ let l;
891
+ c && (l = c.baseOptions);
892
+ const i = { method: "POST", ...l, ...r }, p = {}, d = {};
767
893
  p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
768
- let m = c && c.headers ? c.headers : {};
769
- return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
894
+ let m = l && l.headers ? l.headers : {};
895
+ return i.headers = { ...p, ...m, ...r.headers }, i.data = y(a, i, c), {
770
896
  url: V(s),
771
897
  options: i
772
898
  };
@@ -780,17 +906,17 @@ const v = function(l, ...t) {
780
906
  * @param {*} [options] Override http request option.
781
907
  * @throws {RequiredError}
782
908
  */
783
- postTemporarytable: async (t, e, r, a = {}) => {
784
- h("postTemporarytable", "environmentName", t), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", r);
785
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
909
+ postTemporarytable: async (t, e, n, a = {}) => {
910
+ h("postTemporarytable", "environmentName", t), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", n);
911
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
786
912
  let s;
787
- l && (s = l.baseOptions);
788
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
913
+ c && (s = c.baseOptions);
914
+ const l = { method: "POST", ...s, ...a }, i = {}, p = {};
789
915
  i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
790
916
  let d = s && s.headers ? s.headers : {};
791
- return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
917
+ return l.headers = { ...i, ...d, ...a.headers }, l.data = y(n, l, c), {
792
918
  url: V(o),
793
- options: c
919
+ options: l
794
920
  };
795
921
  },
796
922
  /**
@@ -803,15 +929,15 @@ const v = function(l, ...t) {
803
929
  * @param {*} [options] Override http request option.
804
930
  * @throws {RequiredError}
805
931
  */
806
- postTemporarytableInPackage: async (t, e, r, a, n = {}) => {
807
- h("postTemporarytableInPackage", "environmentName", t), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
808
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
809
- let c;
810
- l && (c = l.baseOptions);
811
- const i = { method: "POST", ...c, ...n }, p = {}, d = {};
932
+ postTemporarytableInPackage: async (t, e, n, a, r = {}) => {
933
+ h("postTemporarytableInPackage", "environmentName", t), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", n), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
934
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
935
+ let l;
936
+ c && (l = c.baseOptions);
937
+ const i = { method: "POST", ...l, ...r }, p = {}, d = {};
812
938
  p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
813
- let m = c && c.headers ? c.headers : {};
814
- return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
939
+ let m = l && l.headers ? l.headers : {};
940
+ return i.headers = { ...p, ...m, ...r.headers }, i.data = y(a, i, c), {
815
941
  url: V(s),
816
942
  options: i
817
943
  };
@@ -825,22 +951,22 @@ const v = function(l, ...t) {
825
951
  * @param {*} [options] Override http request option.
826
952
  * @throws {RequiredError}
827
953
  */
828
- updateConnection: async (t, e, r, a = {}) => {
829
- h("updateConnection", "environmentName", t), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", r);
830
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
954
+ updateConnection: async (t, e, n, a = {}) => {
955
+ h("updateConnection", "environmentName", t), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", n);
956
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
831
957
  let s;
832
- l && (s = l.baseOptions);
833
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
958
+ c && (s = c.baseOptions);
959
+ const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
834
960
  i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
835
961
  let d = s && s.headers ? s.headers : {};
836
- return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
962
+ return l.headers = { ...i, ...d, ...a.headers }, l.data = y(n, l, c), {
837
963
  url: V(o),
838
- options: c
964
+ options: l
839
965
  };
840
966
  }
841
967
  };
842
- }, y = function(l) {
843
- const t = Se(l);
968
+ }, A = function(c) {
969
+ const t = we(c);
844
970
  return {
845
971
  /**
846
972
  * Creates a new database connection in the specified environment.
@@ -851,9 +977,9 @@ const v = function(l, ...t) {
851
977
  * @param {*} [options] Override http request option.
852
978
  * @throws {RequiredError}
853
979
  */
854
- async createConnection(e, r, a, n) {
855
- const o = await t.createConnection(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.createConnection"]?.[s]?.url;
856
- return (i, p) => O(o, u, g, l)(i, c || p);
980
+ async createConnection(e, n, a, r) {
981
+ const o = await t.createConnection(e, n, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.createConnection"]?.[s]?.url;
982
+ return (i, p) => O(o, u, g, c)(i, l || p);
857
983
  },
858
984
  /**
859
985
  * Permanently deletes a database connection from the environment.
@@ -863,9 +989,9 @@ const v = function(l, ...t) {
863
989
  * @param {*} [options] Override http request option.
864
990
  * @throws {RequiredError}
865
991
  */
866
- async deleteConnection(e, r, a) {
867
- const n = await t.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = b["ConnectionsApi.deleteConnection"]?.[o]?.url;
868
- return (c, i) => O(n, u, g, l)(c, s || i);
992
+ async deleteConnection(e, n, a) {
993
+ const r = await t.deleteConnection(e, n, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.deleteConnection"]?.[o]?.url;
994
+ return (l, i) => O(r, u, g, c)(l, s || i);
869
995
  },
870
996
  /**
871
997
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -875,9 +1001,9 @@ const v = function(l, ...t) {
875
1001
  * @param {*} [options] Override http request option.
876
1002
  * @throws {RequiredError}
877
1003
  */
878
- async getConnection(e, r, a) {
879
- const n = await t.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = b["ConnectionsApi.getConnection"]?.[o]?.url;
880
- return (c, i) => O(n, u, g, l)(c, s || i);
1004
+ async getConnection(e, n, a) {
1005
+ const r = await t.getConnection(e, n, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.getConnection"]?.[o]?.url;
1006
+ return (l, i) => O(r, u, g, c)(l, s || i);
881
1007
  },
882
1008
  /**
883
1009
  * Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
@@ -889,9 +1015,9 @@ const v = function(l, ...t) {
889
1015
  * @param {*} [options] Override http request option.
890
1016
  * @throws {RequiredError}
891
1017
  */
892
- async getTable(e, r, a, n, o) {
893
- const s = await t.getTable(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.getTable"]?.[c]?.url;
894
- return (p, d) => O(s, u, g, l)(p, i || d);
1018
+ async getTable(e, n, a, r, o) {
1019
+ const s = await t.getTable(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.getTable"]?.[l]?.url;
1020
+ return (p, d) => O(s, u, g, c)(p, i || d);
895
1021
  },
896
1022
  /**
897
1023
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -904,9 +1030,9 @@ const v = function(l, ...t) {
904
1030
  * @param {*} [options] Override http request option.
905
1031
  * @throws {RequiredError}
906
1032
  */
907
- async getTableInPackage(e, r, a, n, o, s) {
908
- const c = await t.getTableInPackage(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ConnectionsApi.getTableInPackage"]?.[i]?.url;
909
- return (d, m) => O(c, u, g, l)(d, p || m);
1033
+ async getTableInPackage(e, n, a, r, o, s) {
1034
+ const l = await t.getTableInPackage(e, n, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ConnectionsApi.getTableInPackage"]?.[i]?.url;
1035
+ return (d, m) => O(l, u, g, c)(d, p || m);
910
1036
  },
911
1037
  /**
912
1038
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
@@ -915,9 +1041,9 @@ const v = function(l, ...t) {
915
1041
  * @param {*} [options] Override http request option.
916
1042
  * @throws {RequiredError}
917
1043
  */
918
- async listConnections(e, r) {
919
- const a = await t.listConnections(e, r), n = l?.serverIndex ?? 0, o = b["ConnectionsApi.listConnections"]?.[n]?.url;
920
- return (s, c) => O(a, u, g, l)(s, o || c);
1044
+ async listConnections(e, n) {
1045
+ const a = await t.listConnections(e, n), r = c?.serverIndex ?? 0, o = b["ConnectionsApi.listConnections"]?.[r]?.url;
1046
+ return (s, l) => O(a, u, g, c)(s, o || l);
921
1047
  },
922
1048
  /**
923
1049
  * Retrieves a list of all schemas (databases) available in the specified connection. Each schema includes metadata such as name, description, and whether it\'s the default schema. This endpoint is useful for exploring the database structure and discovering available data sources.
@@ -927,9 +1053,9 @@ const v = function(l, ...t) {
927
1053
  * @param {*} [options] Override http request option.
928
1054
  * @throws {RequiredError}
929
1055
  */
930
- async listSchemas(e, r, a) {
931
- const n = await t.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = b["ConnectionsApi.listSchemas"]?.[o]?.url;
932
- return (c, i) => O(n, u, g, l)(c, s || i);
1056
+ async listSchemas(e, n, a) {
1057
+ const r = await t.listSchemas(e, n, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.listSchemas"]?.[o]?.url;
1058
+ return (l, i) => O(r, u, g, c)(l, s || i);
933
1059
  },
934
1060
  /**
935
1061
  * Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
@@ -940,9 +1066,9 @@ const v = function(l, ...t) {
940
1066
  * @param {*} [options] Override http request option.
941
1067
  * @throws {RequiredError}
942
1068
  */
943
- async listSchemasInPackage(e, r, a, n) {
944
- const o = await t.listSchemasInPackage(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
945
- return (i, p) => O(o, u, g, l)(i, c || p);
1069
+ async listSchemasInPackage(e, n, a, r) {
1070
+ const o = await t.listSchemasInPackage(e, n, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
1071
+ return (i, p) => O(o, u, g, c)(i, l || p);
946
1072
  },
947
1073
  /**
948
1074
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
@@ -954,9 +1080,9 @@ const v = function(l, ...t) {
954
1080
  * @param {*} [options] Override http request option.
955
1081
  * @throws {RequiredError}
956
1082
  */
957
- async listTables(e, r, a, n, o) {
958
- const s = await t.listTables(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.listTables"]?.[c]?.url;
959
- return (p, d) => O(s, u, g, l)(p, i || d);
1083
+ async listTables(e, n, a, r, o) {
1084
+ const s = await t.listTables(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.listTables"]?.[l]?.url;
1085
+ return (p, d) => O(s, u, g, c)(p, i || d);
960
1086
  },
961
1087
  /**
962
1088
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -969,9 +1095,9 @@ const v = function(l, ...t) {
969
1095
  * @param {*} [options] Override http request option.
970
1096
  * @throws {RequiredError}
971
1097
  */
972
- async listTablesInPackage(e, r, a, n, o, s) {
973
- const c = await t.listTablesInPackage(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
974
- return (d, m) => O(c, u, g, l)(d, p || m);
1098
+ async listTablesInPackage(e, n, a, r, o, s) {
1099
+ const l = await t.listTablesInPackage(e, n, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
1100
+ return (d, m) => O(l, u, g, c)(d, p || m);
975
1101
  },
976
1102
  /**
977
1103
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
@@ -982,9 +1108,9 @@ const v = function(l, ...t) {
982
1108
  * @param {*} [options] Override http request option.
983
1109
  * @throws {RequiredError}
984
1110
  */
985
- async postQuerydata(e, r, a, n) {
986
- const o = await t.postQuerydata(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.postQuerydata"]?.[s]?.url;
987
- return (i, p) => O(o, u, g, l)(i, c || p);
1111
+ async postQuerydata(e, n, a, r) {
1112
+ const o = await t.postQuerydata(e, n, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postQuerydata"]?.[s]?.url;
1113
+ return (i, p) => O(o, u, g, c)(i, l || p);
988
1114
  },
989
1115
  /**
990
1116
  * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
@@ -996,9 +1122,9 @@ const v = function(l, ...t) {
996
1122
  * @param {*} [options] Override http request option.
997
1123
  * @throws {RequiredError}
998
1124
  */
999
- async postQuerydataInPackage(e, r, a, n, o) {
1000
- const s = await t.postQuerydataInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
1001
- return (p, d) => O(s, u, g, l)(p, i || d);
1125
+ async postQuerydataInPackage(e, n, a, r, o) {
1126
+ const s = await t.postQuerydataInPackage(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postQuerydataInPackage"]?.[l]?.url;
1127
+ return (p, d) => O(s, u, g, c)(p, i || d);
1002
1128
  },
1003
1129
  /**
1004
1130
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -1009,9 +1135,9 @@ const v = function(l, ...t) {
1009
1135
  * @param {*} [options] Override http request option.
1010
1136
  * @throws {RequiredError}
1011
1137
  */
1012
- async postSqlsource(e, r, a, n) {
1013
- const o = await t.postSqlsource(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.postSqlsource"]?.[s]?.url;
1014
- return (i, p) => O(o, u, g, l)(i, c || p);
1138
+ async postSqlsource(e, n, a, r) {
1139
+ const o = await t.postSqlsource(e, n, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postSqlsource"]?.[s]?.url;
1140
+ return (i, p) => O(o, u, g, c)(i, l || p);
1015
1141
  },
1016
1142
  /**
1017
1143
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1023,9 +1149,9 @@ const v = function(l, ...t) {
1023
1149
  * @param {*} [options] Override http request option.
1024
1150
  * @throws {RequiredError}
1025
1151
  */
1026
- async postSqlsourceInPackage(e, r, a, n, o) {
1027
- const s = await t.postSqlsourceInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
1028
- return (p, d) => O(s, u, g, l)(p, i || d);
1152
+ async postSqlsourceInPackage(e, n, a, r, o) {
1153
+ const s = await t.postSqlsourceInPackage(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postSqlsourceInPackage"]?.[l]?.url;
1154
+ return (p, d) => O(s, u, g, c)(p, i || d);
1029
1155
  },
1030
1156
  /**
1031
1157
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
@@ -1036,9 +1162,9 @@ const v = function(l, ...t) {
1036
1162
  * @param {*} [options] Override http request option.
1037
1163
  * @throws {RequiredError}
1038
1164
  */
1039
- async postTemporarytable(e, r, a, n) {
1040
- const o = await t.postTemporarytable(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.postTemporarytable"]?.[s]?.url;
1041
- return (i, p) => O(o, u, g, l)(i, c || p);
1165
+ async postTemporarytable(e, n, a, r) {
1166
+ const o = await t.postTemporarytable(e, n, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postTemporarytable"]?.[s]?.url;
1167
+ return (i, p) => O(o, u, g, c)(i, l || p);
1042
1168
  },
1043
1169
  /**
1044
1170
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1050,9 +1176,9 @@ const v = function(l, ...t) {
1050
1176
  * @param {*} [options] Override http request option.
1051
1177
  * @throws {RequiredError}
1052
1178
  */
1053
- async postTemporarytableInPackage(e, r, a, n, o) {
1054
- const s = await t.postTemporarytableInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
1055
- return (p, d) => O(s, u, g, l)(p, i || d);
1179
+ async postTemporarytableInPackage(e, n, a, r, o) {
1180
+ const s = await t.postTemporarytableInPackage(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postTemporarytableInPackage"]?.[l]?.url;
1181
+ return (p, d) => O(s, u, g, c)(p, i || d);
1056
1182
  },
1057
1183
  /**
1058
1184
  * Updates the configuration of an existing database connection.
@@ -1063,13 +1189,13 @@ const v = function(l, ...t) {
1063
1189
  * @param {*} [options] Override http request option.
1064
1190
  * @throws {RequiredError}
1065
1191
  */
1066
- async updateConnection(e, r, a, n) {
1067
- const o = await t.updateConnection(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.updateConnection"]?.[s]?.url;
1068
- return (i, p) => O(o, u, g, l)(i, c || p);
1192
+ async updateConnection(e, n, a, r) {
1193
+ const o = await t.updateConnection(e, n, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.updateConnection"]?.[s]?.url;
1194
+ return (i, p) => O(o, u, g, c)(i, l || p);
1069
1195
  }
1070
1196
  };
1071
- }, nt = function(l, t, e) {
1072
- const r = y(l);
1197
+ }, vt = function(c, t, e) {
1198
+ const n = A(c);
1073
1199
  return {
1074
1200
  /**
1075
1201
  * Creates a new database connection in the specified environment.
@@ -1080,8 +1206,8 @@ const v = function(l, ...t) {
1080
1206
  * @param {*} [options] Override http request option.
1081
1207
  * @throws {RequiredError}
1082
1208
  */
1083
- createConnection(a, n, o, s) {
1084
- return r.createConnection(a, n, o, s).then((c) => c(e, t));
1209
+ createConnection(a, r, o, s) {
1210
+ return n.createConnection(a, r, o, s).then((l) => l(e, t));
1085
1211
  },
1086
1212
  /**
1087
1213
  * Permanently deletes a database connection from the environment.
@@ -1091,8 +1217,8 @@ const v = function(l, ...t) {
1091
1217
  * @param {*} [options] Override http request option.
1092
1218
  * @throws {RequiredError}
1093
1219
  */
1094
- deleteConnection(a, n, o) {
1095
- return r.deleteConnection(a, n, o).then((s) => s(e, t));
1220
+ deleteConnection(a, r, o) {
1221
+ return n.deleteConnection(a, r, o).then((s) => s(e, t));
1096
1222
  },
1097
1223
  /**
1098
1224
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -1102,8 +1228,8 @@ const v = function(l, ...t) {
1102
1228
  * @param {*} [options] Override http request option.
1103
1229
  * @throws {RequiredError}
1104
1230
  */
1105
- getConnection(a, n, o) {
1106
- return r.getConnection(a, n, o).then((s) => s(e, t));
1231
+ getConnection(a, r, o) {
1232
+ return n.getConnection(a, r, o).then((s) => s(e, t));
1107
1233
  },
1108
1234
  /**
1109
1235
  * Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
@@ -1115,8 +1241,8 @@ const v = function(l, ...t) {
1115
1241
  * @param {*} [options] Override http request option.
1116
1242
  * @throws {RequiredError}
1117
1243
  */
1118
- getTable(a, n, o, s, c) {
1119
- return r.getTable(a, n, o, s, c).then((i) => i(e, t));
1244
+ getTable(a, r, o, s, l) {
1245
+ return n.getTable(a, r, o, s, l).then((i) => i(e, t));
1120
1246
  },
1121
1247
  /**
1122
1248
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1129,8 +1255,8 @@ const v = function(l, ...t) {
1129
1255
  * @param {*} [options] Override http request option.
1130
1256
  * @throws {RequiredError}
1131
1257
  */
1132
- getTableInPackage(a, n, o, s, c, i) {
1133
- return r.getTableInPackage(a, n, o, s, c, i).then((p) => p(e, t));
1258
+ getTableInPackage(a, r, o, s, l, i) {
1259
+ return n.getTableInPackage(a, r, o, s, l, i).then((p) => p(e, t));
1134
1260
  },
1135
1261
  /**
1136
1262
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
@@ -1139,8 +1265,8 @@ const v = function(l, ...t) {
1139
1265
  * @param {*} [options] Override http request option.
1140
1266
  * @throws {RequiredError}
1141
1267
  */
1142
- listConnections(a, n) {
1143
- return r.listConnections(a, n).then((o) => o(e, t));
1268
+ listConnections(a, r) {
1269
+ return n.listConnections(a, r).then((o) => o(e, t));
1144
1270
  },
1145
1271
  /**
1146
1272
  * Retrieves a list of all schemas (databases) available in the specified connection. Each schema includes metadata such as name, description, and whether it\'s the default schema. This endpoint is useful for exploring the database structure and discovering available data sources.
@@ -1150,8 +1276,8 @@ const v = function(l, ...t) {
1150
1276
  * @param {*} [options] Override http request option.
1151
1277
  * @throws {RequiredError}
1152
1278
  */
1153
- listSchemas(a, n, o) {
1154
- return r.listSchemas(a, n, o).then((s) => s(e, t));
1279
+ listSchemas(a, r, o) {
1280
+ return n.listSchemas(a, r, o).then((s) => s(e, t));
1155
1281
  },
1156
1282
  /**
1157
1283
  * Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
@@ -1162,8 +1288,8 @@ const v = function(l, ...t) {
1162
1288
  * @param {*} [options] Override http request option.
1163
1289
  * @throws {RequiredError}
1164
1290
  */
1165
- listSchemasInPackage(a, n, o, s) {
1166
- return r.listSchemasInPackage(a, n, o, s).then((c) => c(e, t));
1291
+ listSchemasInPackage(a, r, o, s) {
1292
+ return n.listSchemasInPackage(a, r, o, s).then((l) => l(e, t));
1167
1293
  },
1168
1294
  /**
1169
1295
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
@@ -1175,8 +1301,8 @@ const v = function(l, ...t) {
1175
1301
  * @param {*} [options] Override http request option.
1176
1302
  * @throws {RequiredError}
1177
1303
  */
1178
- listTables(a, n, o, s, c) {
1179
- return r.listTables(a, n, o, s, c).then((i) => i(e, t));
1304
+ listTables(a, r, o, s, l) {
1305
+ return n.listTables(a, r, o, s, l).then((i) => i(e, t));
1180
1306
  },
1181
1307
  /**
1182
1308
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1189,8 +1315,8 @@ const v = function(l, ...t) {
1189
1315
  * @param {*} [options] Override http request option.
1190
1316
  * @throws {RequiredError}
1191
1317
  */
1192
- listTablesInPackage(a, n, o, s, c, i) {
1193
- return r.listTablesInPackage(a, n, o, s, c, i).then((p) => p(e, t));
1318
+ listTablesInPackage(a, r, o, s, l, i) {
1319
+ return n.listTablesInPackage(a, r, o, s, l, i).then((p) => p(e, t));
1194
1320
  },
1195
1321
  /**
1196
1322
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
@@ -1201,8 +1327,8 @@ const v = function(l, ...t) {
1201
1327
  * @param {*} [options] Override http request option.
1202
1328
  * @throws {RequiredError}
1203
1329
  */
1204
- postQuerydata(a, n, o, s) {
1205
- return r.postQuerydata(a, n, o, s).then((c) => c(e, t));
1330
+ postQuerydata(a, r, o, s) {
1331
+ return n.postQuerydata(a, r, o, s).then((l) => l(e, t));
1206
1332
  },
1207
1333
  /**
1208
1334
  * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
@@ -1214,8 +1340,8 @@ const v = function(l, ...t) {
1214
1340
  * @param {*} [options] Override http request option.
1215
1341
  * @throws {RequiredError}
1216
1342
  */
1217
- postQuerydataInPackage(a, n, o, s, c) {
1218
- return r.postQuerydataInPackage(a, n, o, s, c).then((i) => i(e, t));
1343
+ postQuerydataInPackage(a, r, o, s, l) {
1344
+ return n.postQuerydataInPackage(a, r, o, s, l).then((i) => i(e, t));
1219
1345
  },
1220
1346
  /**
1221
1347
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -1226,8 +1352,8 @@ const v = function(l, ...t) {
1226
1352
  * @param {*} [options] Override http request option.
1227
1353
  * @throws {RequiredError}
1228
1354
  */
1229
- postSqlsource(a, n, o, s) {
1230
- return r.postSqlsource(a, n, o, s).then((c) => c(e, t));
1355
+ postSqlsource(a, r, o, s) {
1356
+ return n.postSqlsource(a, r, o, s).then((l) => l(e, t));
1231
1357
  },
1232
1358
  /**
1233
1359
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1239,8 +1365,8 @@ const v = function(l, ...t) {
1239
1365
  * @param {*} [options] Override http request option.
1240
1366
  * @throws {RequiredError}
1241
1367
  */
1242
- postSqlsourceInPackage(a, n, o, s, c) {
1243
- return r.postSqlsourceInPackage(a, n, o, s, c).then((i) => i(e, t));
1368
+ postSqlsourceInPackage(a, r, o, s, l) {
1369
+ return n.postSqlsourceInPackage(a, r, o, s, l).then((i) => i(e, t));
1244
1370
  },
1245
1371
  /**
1246
1372
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
@@ -1251,8 +1377,8 @@ const v = function(l, ...t) {
1251
1377
  * @param {*} [options] Override http request option.
1252
1378
  * @throws {RequiredError}
1253
1379
  */
1254
- postTemporarytable(a, n, o, s) {
1255
- return r.postTemporarytable(a, n, o, s).then((c) => c(e, t));
1380
+ postTemporarytable(a, r, o, s) {
1381
+ return n.postTemporarytable(a, r, o, s).then((l) => l(e, t));
1256
1382
  },
1257
1383
  /**
1258
1384
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1264,8 +1390,8 @@ const v = function(l, ...t) {
1264
1390
  * @param {*} [options] Override http request option.
1265
1391
  * @throws {RequiredError}
1266
1392
  */
1267
- postTemporarytableInPackage(a, n, o, s, c) {
1268
- return r.postTemporarytableInPackage(a, n, o, s, c).then((i) => i(e, t));
1393
+ postTemporarytableInPackage(a, r, o, s, l) {
1394
+ return n.postTemporarytableInPackage(a, r, o, s, l).then((i) => i(e, t));
1269
1395
  },
1270
1396
  /**
1271
1397
  * Updates the configuration of an existing database connection.
@@ -1276,12 +1402,12 @@ const v = function(l, ...t) {
1276
1402
  * @param {*} [options] Override http request option.
1277
1403
  * @throws {RequiredError}
1278
1404
  */
1279
- updateConnection(a, n, o, s) {
1280
- return r.updateConnection(a, n, o, s).then((c) => c(e, t));
1405
+ updateConnection(a, r, o, s) {
1406
+ return n.updateConnection(a, r, o, s).then((l) => l(e, t));
1281
1407
  }
1282
1408
  };
1283
1409
  };
1284
- class ke extends C {
1410
+ class Ee extends x {
1285
1411
  /**
1286
1412
  * Creates a new database connection in the specified environment.
1287
1413
  * @summary Create a new database connection
@@ -1291,8 +1417,8 @@ class ke extends C {
1291
1417
  * @param {*} [options] Override http request option.
1292
1418
  * @throws {RequiredError}
1293
1419
  */
1294
- createConnection(t, e, r, a) {
1295
- return y(this.configuration).createConnection(t, e, r, a).then((n) => n(this.axios, this.basePath));
1420
+ createConnection(t, e, n, a) {
1421
+ return A(this.configuration).createConnection(t, e, n, a).then((r) => r(this.axios, this.basePath));
1296
1422
  }
1297
1423
  /**
1298
1424
  * Permanently deletes a database connection from the environment.
@@ -1302,8 +1428,8 @@ class ke extends C {
1302
1428
  * @param {*} [options] Override http request option.
1303
1429
  * @throws {RequiredError}
1304
1430
  */
1305
- deleteConnection(t, e, r) {
1306
- return y(this.configuration).deleteConnection(t, e, r).then((a) => a(this.axios, this.basePath));
1431
+ deleteConnection(t, e, n) {
1432
+ return A(this.configuration).deleteConnection(t, e, n).then((a) => a(this.axios, this.basePath));
1307
1433
  }
1308
1434
  /**
1309
1435
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -1313,8 +1439,8 @@ class ke extends C {
1313
1439
  * @param {*} [options] Override http request option.
1314
1440
  * @throws {RequiredError}
1315
1441
  */
1316
- getConnection(t, e, r) {
1317
- return y(this.configuration).getConnection(t, e, r).then((a) => a(this.axios, this.basePath));
1442
+ getConnection(t, e, n) {
1443
+ return A(this.configuration).getConnection(t, e, n).then((a) => a(this.axios, this.basePath));
1318
1444
  }
1319
1445
  /**
1320
1446
  * Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
@@ -1326,8 +1452,8 @@ class ke extends C {
1326
1452
  * @param {*} [options] Override http request option.
1327
1453
  * @throws {RequiredError}
1328
1454
  */
1329
- getTable(t, e, r, a, n) {
1330
- return y(this.configuration).getTable(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1455
+ getTable(t, e, n, a, r) {
1456
+ return A(this.configuration).getTable(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1331
1457
  }
1332
1458
  /**
1333
1459
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1340,8 +1466,8 @@ class ke extends C {
1340
1466
  * @param {*} [options] Override http request option.
1341
1467
  * @throws {RequiredError}
1342
1468
  */
1343
- getTableInPackage(t, e, r, a, n, o) {
1344
- return y(this.configuration).getTableInPackage(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
1469
+ getTableInPackage(t, e, n, a, r, o) {
1470
+ return A(this.configuration).getTableInPackage(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
1345
1471
  }
1346
1472
  /**
1347
1473
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
@@ -1351,7 +1477,7 @@ class ke extends C {
1351
1477
  * @throws {RequiredError}
1352
1478
  */
1353
1479
  listConnections(t, e) {
1354
- return y(this.configuration).listConnections(t, e).then((r) => r(this.axios, this.basePath));
1480
+ return A(this.configuration).listConnections(t, e).then((n) => n(this.axios, this.basePath));
1355
1481
  }
1356
1482
  /**
1357
1483
  * Retrieves a list of all schemas (databases) available in the specified connection. Each schema includes metadata such as name, description, and whether it\'s the default schema. This endpoint is useful for exploring the database structure and discovering available data sources.
@@ -1361,8 +1487,8 @@ class ke extends C {
1361
1487
  * @param {*} [options] Override http request option.
1362
1488
  * @throws {RequiredError}
1363
1489
  */
1364
- listSchemas(t, e, r) {
1365
- return y(this.configuration).listSchemas(t, e, r).then((a) => a(this.axios, this.basePath));
1490
+ listSchemas(t, e, n) {
1491
+ return A(this.configuration).listSchemas(t, e, n).then((a) => a(this.axios, this.basePath));
1366
1492
  }
1367
1493
  /**
1368
1494
  * Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
@@ -1373,8 +1499,8 @@ class ke extends C {
1373
1499
  * @param {*} [options] Override http request option.
1374
1500
  * @throws {RequiredError}
1375
1501
  */
1376
- listSchemasInPackage(t, e, r, a) {
1377
- return y(this.configuration).listSchemasInPackage(t, e, r, a).then((n) => n(this.axios, this.basePath));
1502
+ listSchemasInPackage(t, e, n, a) {
1503
+ return A(this.configuration).listSchemasInPackage(t, e, n, a).then((r) => r(this.axios, this.basePath));
1378
1504
  }
1379
1505
  /**
1380
1506
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
@@ -1386,8 +1512,8 @@ class ke extends C {
1386
1512
  * @param {*} [options] Override http request option.
1387
1513
  * @throws {RequiredError}
1388
1514
  */
1389
- listTables(t, e, r, a, n) {
1390
- return y(this.configuration).listTables(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1515
+ listTables(t, e, n, a, r) {
1516
+ return A(this.configuration).listTables(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1391
1517
  }
1392
1518
  /**
1393
1519
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1400,8 +1526,8 @@ class ke extends C {
1400
1526
  * @param {*} [options] Override http request option.
1401
1527
  * @throws {RequiredError}
1402
1528
  */
1403
- listTablesInPackage(t, e, r, a, n, o) {
1404
- return y(this.configuration).listTablesInPackage(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
1529
+ listTablesInPackage(t, e, n, a, r, o) {
1530
+ return A(this.configuration).listTablesInPackage(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
1405
1531
  }
1406
1532
  /**
1407
1533
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
@@ -1412,8 +1538,8 @@ class ke extends C {
1412
1538
  * @param {*} [options] Override http request option.
1413
1539
  * @throws {RequiredError}
1414
1540
  */
1415
- postQuerydata(t, e, r, a) {
1416
- return y(this.configuration).postQuerydata(t, e, r, a).then((n) => n(this.axios, this.basePath));
1541
+ postQuerydata(t, e, n, a) {
1542
+ return A(this.configuration).postQuerydata(t, e, n, a).then((r) => r(this.axios, this.basePath));
1417
1543
  }
1418
1544
  /**
1419
1545
  * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
@@ -1425,8 +1551,8 @@ class ke extends C {
1425
1551
  * @param {*} [options] Override http request option.
1426
1552
  * @throws {RequiredError}
1427
1553
  */
1428
- postQuerydataInPackage(t, e, r, a, n) {
1429
- return y(this.configuration).postQuerydataInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1554
+ postQuerydataInPackage(t, e, n, a, r) {
1555
+ return A(this.configuration).postQuerydataInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1430
1556
  }
1431
1557
  /**
1432
1558
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -1437,8 +1563,8 @@ class ke extends C {
1437
1563
  * @param {*} [options] Override http request option.
1438
1564
  * @throws {RequiredError}
1439
1565
  */
1440
- postSqlsource(t, e, r, a) {
1441
- return y(this.configuration).postSqlsource(t, e, r, a).then((n) => n(this.axios, this.basePath));
1566
+ postSqlsource(t, e, n, a) {
1567
+ return A(this.configuration).postSqlsource(t, e, n, a).then((r) => r(this.axios, this.basePath));
1442
1568
  }
1443
1569
  /**
1444
1570
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1450,8 +1576,8 @@ class ke extends C {
1450
1576
  * @param {*} [options] Override http request option.
1451
1577
  * @throws {RequiredError}
1452
1578
  */
1453
- postSqlsourceInPackage(t, e, r, a, n) {
1454
- return y(this.configuration).postSqlsourceInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1579
+ postSqlsourceInPackage(t, e, n, a, r) {
1580
+ return A(this.configuration).postSqlsourceInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1455
1581
  }
1456
1582
  /**
1457
1583
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
@@ -1462,8 +1588,8 @@ class ke extends C {
1462
1588
  * @param {*} [options] Override http request option.
1463
1589
  * @throws {RequiredError}
1464
1590
  */
1465
- postTemporarytable(t, e, r, a) {
1466
- return y(this.configuration).postTemporarytable(t, e, r, a).then((n) => n(this.axios, this.basePath));
1591
+ postTemporarytable(t, e, n, a) {
1592
+ return A(this.configuration).postTemporarytable(t, e, n, a).then((r) => r(this.axios, this.basePath));
1467
1593
  }
1468
1594
  /**
1469
1595
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1475,8 +1601,8 @@ class ke extends C {
1475
1601
  * @param {*} [options] Override http request option.
1476
1602
  * @throws {RequiredError}
1477
1603
  */
1478
- postTemporarytableInPackage(t, e, r, a, n) {
1479
- return y(this.configuration).postTemporarytableInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1604
+ postTemporarytableInPackage(t, e, n, a, r) {
1605
+ return A(this.configuration).postTemporarytableInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1480
1606
  }
1481
1607
  /**
1482
1608
  * Updates the configuration of an existing database connection.
@@ -1487,11 +1613,11 @@ class ke extends C {
1487
1613
  * @param {*} [options] Override http request option.
1488
1614
  * @throws {RequiredError}
1489
1615
  */
1490
- updateConnection(t, e, r, a) {
1491
- return y(this.configuration).updateConnection(t, e, r, a).then((n) => n(this.axios, this.basePath));
1616
+ updateConnection(t, e, n, a) {
1617
+ return A(this.configuration).updateConnection(t, e, n, a).then((r) => r(this.axios, this.basePath));
1492
1618
  }
1493
1619
  }
1494
- const ye = function(l) {
1620
+ const fe = function(c) {
1495
1621
  return {
1496
1622
  /**
1497
1623
  * 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.
@@ -1502,20 +1628,20 @@ const ye = function(l) {
1502
1628
  */
1503
1629
  testConnectionConfiguration: async (t, e = {}) => {
1504
1630
  h("testConnectionConfiguration", "connection", t);
1505
- const r = "/connections/test", a = new URL(r, P);
1506
- let n;
1507
- l && (n = l.baseOptions);
1508
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1509
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
1510
- let i = n && n.headers ? n.headers : {};
1511
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
1631
+ const n = "/connections/test", a = new URL(n, P);
1632
+ let r;
1633
+ c && (r = c.baseOptions);
1634
+ const o = { method: "POST", ...r, ...e }, s = {}, l = {};
1635
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
1636
+ let i = r && r.headers ? r.headers : {};
1637
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(t, o, c), {
1512
1638
  url: V(a),
1513
1639
  options: o
1514
1640
  };
1515
1641
  }
1516
1642
  };
1517
- }, X = function(l) {
1518
- const t = ye(l);
1643
+ }, oe = function(c) {
1644
+ const t = fe(c);
1519
1645
  return {
1520
1646
  /**
1521
1647
  * 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.
@@ -1524,13 +1650,13 @@ const ye = function(l) {
1524
1650
  * @param {*} [options] Override http request option.
1525
1651
  * @throws {RequiredError}
1526
1652
  */
1527
- async testConnectionConfiguration(e, r) {
1528
- const a = await t.testConnectionConfiguration(e, r), n = l?.serverIndex ?? 0, o = b["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1529
- return (s, c) => O(a, u, g, l)(s, o || c);
1653
+ async testConnectionConfiguration(e, n) {
1654
+ const a = await t.testConnectionConfiguration(e, n), r = c?.serverIndex ?? 0, o = b["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
1655
+ return (s, l) => O(a, u, g, c)(s, o || l);
1530
1656
  }
1531
1657
  };
1532
- }, rt = function(l, t, e) {
1533
- const r = X(l);
1658
+ }, Vt = function(c, t, e) {
1659
+ const n = oe(c);
1534
1660
  return {
1535
1661
  /**
1536
1662
  * 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.
@@ -1539,12 +1665,12 @@ const ye = function(l) {
1539
1665
  * @param {*} [options] Override http request option.
1540
1666
  * @throws {RequiredError}
1541
1667
  */
1542
- testConnectionConfiguration(a, n) {
1543
- return r.testConnectionConfiguration(a, n).then((o) => o(e, t));
1668
+ testConnectionConfiguration(a, r) {
1669
+ return n.testConnectionConfiguration(a, r).then((o) => o(e, t));
1544
1670
  }
1545
1671
  };
1546
1672
  };
1547
- class ot extends C {
1673
+ class Ot extends x {
1548
1674
  /**
1549
1675
  * 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.
1550
1676
  * @summary Test database connection configuration
@@ -1553,10 +1679,10 @@ class ot extends C {
1553
1679
  * @throws {RequiredError}
1554
1680
  */
1555
1681
  testConnectionConfiguration(t, e) {
1556
- return X(this.configuration).testConnectionConfiguration(t, e).then((r) => r(this.axios, this.basePath));
1682
+ return oe(this.configuration).testConnectionConfiguration(t, e).then((n) => n(this.axios, this.basePath));
1557
1683
  }
1558
1684
  }
1559
- const Ae = function(l) {
1685
+ const Me = function(c) {
1560
1686
  return {
1561
1687
  /**
1562
1688
  * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard 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.
@@ -1568,15 +1694,15 @@ const Ae = function(l) {
1568
1694
  * @param {*} [options] Override http request option.
1569
1695
  * @throws {RequiredError}
1570
1696
  */
1571
- getDashboard: async (t, e, r, a, n = {}) => {
1572
- h("getDashboard", "environmentName", t), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", r);
1573
- const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(r))), s = new URL(o, P);
1574
- let c;
1575
- l && (c = l.baseOptions);
1576
- const i = { method: "GET", ...c, ...n }, p = {}, d = {};
1697
+ getDashboard: async (t, e, n, a, r = {}) => {
1698
+ h("getDashboard", "environmentName", t), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", n);
1699
+ const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(n))), s = new URL(o, P);
1700
+ let l;
1701
+ c && (l = c.baseOptions);
1702
+ const i = { method: "GET", ...l, ...r }, p = {}, d = {};
1577
1703
  a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
1578
- let m = c && c.headers ? c.headers : {};
1579
- return i.headers = { ...p, ...m, ...n.headers }, {
1704
+ let m = l && l.headers ? l.headers : {};
1705
+ return i.headers = { ...p, ...m, ...r.headers }, {
1580
1706
  url: V(s),
1581
1707
  options: i
1582
1708
  };
@@ -1590,22 +1716,22 @@ const Ae = function(l) {
1590
1716
  * @param {*} [options] Override http request option.
1591
1717
  * @throws {RequiredError}
1592
1718
  */
1593
- listDashboards: async (t, e, r, a = {}) => {
1719
+ listDashboards: async (t, e, n, a = {}) => {
1594
1720
  h("listDashboards", "environmentName", t), h("listDashboards", "packageName", e);
1595
- const n = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
1721
+ const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1596
1722
  let s;
1597
- l && (s = l.baseOptions);
1598
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1599
- r !== void 0 && (p.versionId = r), i.Accept = "application/json", v(o, p);
1723
+ c && (s = c.baseOptions);
1724
+ const l = { method: "GET", ...s, ...a }, i = {}, p = {};
1725
+ n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(o, p);
1600
1726
  let d = s && s.headers ? s.headers : {};
1601
- return c.headers = { ...i, ...d, ...a.headers }, {
1727
+ return l.headers = { ...i, ...d, ...a.headers }, {
1602
1728
  url: V(o),
1603
- options: c
1729
+ options: l
1604
1730
  };
1605
1731
  }
1606
1732
  };
1607
- }, z = function(l) {
1608
- const t = Ae(l);
1733
+ }, G = function(c) {
1734
+ const t = Me(c);
1609
1735
  return {
1610
1736
  /**
1611
1737
  * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard 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.
@@ -1617,9 +1743,9 @@ const Ae = function(l) {
1617
1743
  * @param {*} [options] Override http request option.
1618
1744
  * @throws {RequiredError}
1619
1745
  */
1620
- async getDashboard(e, r, a, n, o) {
1621
- const s = await t.getDashboard(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["DashboardsApi.getDashboard"]?.[c]?.url;
1622
- return (p, d) => O(s, u, g, l)(p, i || d);
1746
+ async getDashboard(e, n, a, r, o) {
1747
+ const s = await t.getDashboard(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["DashboardsApi.getDashboard"]?.[l]?.url;
1748
+ return (p, d) => O(s, u, g, c)(p, i || d);
1623
1749
  },
1624
1750
  /**
1625
1751
  * Lists the dashboards in the specified package — every tagged `.malloy` file at the top of `dashboards/` or `notebooks/` carrying an `# artifact` (or model-level `## artifact`) annotation whose `kind` is `dashboard`, or names none under `dashboards/`. A `kind=notebook` file is listed as a notebook instead, whichever folder it sits in. A file with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1630,13 +1756,13 @@ const Ae = function(l) {
1630
1756
  * @param {*} [options] Override http request option.
1631
1757
  * @throws {RequiredError}
1632
1758
  */
1633
- async listDashboards(e, r, a, n) {
1634
- const o = await t.listDashboards(e, r, a, n), s = l?.serverIndex ?? 0, c = b["DashboardsApi.listDashboards"]?.[s]?.url;
1635
- return (i, p) => O(o, u, g, l)(i, c || p);
1759
+ async listDashboards(e, n, a, r) {
1760
+ const o = await t.listDashboards(e, n, a, r), s = c?.serverIndex ?? 0, l = b["DashboardsApi.listDashboards"]?.[s]?.url;
1761
+ return (i, p) => O(o, u, g, c)(i, l || p);
1636
1762
  }
1637
1763
  };
1638
- }, st = function(l, t, e) {
1639
- const r = z(l);
1764
+ }, St = function(c, t, e) {
1765
+ const n = G(c);
1640
1766
  return {
1641
1767
  /**
1642
1768
  * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard 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.
@@ -1648,8 +1774,8 @@ const Ae = function(l) {
1648
1774
  * @param {*} [options] Override http request option.
1649
1775
  * @throws {RequiredError}
1650
1776
  */
1651
- getDashboard(a, n, o, s, c) {
1652
- return r.getDashboard(a, n, o, s, c).then((i) => i(e, t));
1777
+ getDashboard(a, r, o, s, l) {
1778
+ return n.getDashboard(a, r, o, s, l).then((i) => i(e, t));
1653
1779
  },
1654
1780
  /**
1655
1781
  * Lists the dashboards in the specified package — every tagged `.malloy` file at the top of `dashboards/` or `notebooks/` carrying an `# artifact` (or model-level `## artifact`) annotation whose `kind` is `dashboard`, or names none under `dashboards/`. A `kind=notebook` file is listed as a notebook instead, whichever folder it sits in. A file with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1660,12 +1786,12 @@ const Ae = function(l) {
1660
1786
  * @param {*} [options] Override http request option.
1661
1787
  * @throws {RequiredError}
1662
1788
  */
1663
- listDashboards(a, n, o, s) {
1664
- return r.listDashboards(a, n, o, s).then((c) => c(e, t));
1789
+ listDashboards(a, r, o, s) {
1790
+ return n.listDashboards(a, r, o, s).then((l) => l(e, t));
1665
1791
  }
1666
1792
  };
1667
1793
  };
1668
- class Ce extends C {
1794
+ class Be extends x {
1669
1795
  /**
1670
1796
  * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard 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.
1671
1797
  * @summary Get a dashboard manifest
@@ -1676,8 +1802,8 @@ class Ce extends C {
1676
1802
  * @param {*} [options] Override http request option.
1677
1803
  * @throws {RequiredError}
1678
1804
  */
1679
- getDashboard(t, e, r, a, n) {
1680
- return z(this.configuration).getDashboard(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1805
+ getDashboard(t, e, n, a, r) {
1806
+ return G(this.configuration).getDashboard(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1681
1807
  }
1682
1808
  /**
1683
1809
  * Lists the dashboards in the specified package — every tagged `.malloy` file at the top of `dashboards/` or `notebooks/` carrying an `# artifact` (or model-level `## artifact`) annotation whose `kind` is `dashboard`, or names none under `dashboards/`. A `kind=notebook` file is listed as a notebook instead, whichever folder it sits in. A file with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1688,11 +1814,11 @@ class Ce extends C {
1688
1814
  * @param {*} [options] Override http request option.
1689
1815
  * @throws {RequiredError}
1690
1816
  */
1691
- listDashboards(t, e, r, a) {
1692
- return z(this.configuration).listDashboards(t, e, r, a).then((n) => n(this.axios, this.basePath));
1817
+ listDashboards(t, e, n, a) {
1818
+ return G(this.configuration).listDashboards(t, e, n, a).then((r) => r(this.axios, this.basePath));
1693
1819
  }
1694
1820
  }
1695
- const Ie = function(l) {
1821
+ const je = function(c) {
1696
1822
  return {
1697
1823
  /**
1698
1824
  * 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.
@@ -1702,22 +1828,22 @@ const Ie = function(l) {
1702
1828
  * @param {*} [options] Override http request option.
1703
1829
  * @throws {RequiredError}
1704
1830
  */
1705
- listDataApps: async (t, e, r = {}) => {
1831
+ listDataApps: async (t, e, n = {}) => {
1706
1832
  h("listDataApps", "environmentName", t), h("listDataApps", "packageName", e);
1707
- const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
1833
+ const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
1708
1834
  let o;
1709
- l && (o = l.baseOptions);
1710
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1711
- c.Accept = "application/json", v(n, i);
1835
+ c && (o = c.baseOptions);
1836
+ const s = { method: "GET", ...o, ...n }, l = {}, i = {};
1837
+ l.Accept = "application/json", v(r, i);
1712
1838
  let p = o && o.headers ? o.headers : {};
1713
- return s.headers = { ...c, ...p, ...r.headers }, {
1714
- url: V(n),
1839
+ return s.headers = { ...l, ...p, ...n.headers }, {
1840
+ url: V(r),
1715
1841
  options: s
1716
1842
  };
1717
1843
  }
1718
1844
  };
1719
- }, Z = function(l) {
1720
- const t = Ie(l);
1845
+ }, se = function(c) {
1846
+ const t = je(c);
1721
1847
  return {
1722
1848
  /**
1723
1849
  * 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.
@@ -1727,13 +1853,13 @@ const Ie = function(l) {
1727
1853
  * @param {*} [options] Override http request option.
1728
1854
  * @throws {RequiredError}
1729
1855
  */
1730
- async listDataApps(e, r, a) {
1731
- const n = await t.listDataApps(e, r, a), o = l?.serverIndex ?? 0, s = b["DataAppsApi.listDataApps"]?.[o]?.url;
1732
- return (c, i) => O(n, u, g, l)(c, s || i);
1856
+ async listDataApps(e, n, a) {
1857
+ const r = await t.listDataApps(e, n, a), o = c?.serverIndex ?? 0, s = b["DataAppsApi.listDataApps"]?.[o]?.url;
1858
+ return (l, i) => O(r, u, g, c)(l, s || i);
1733
1859
  }
1734
1860
  };
1735
- }, ct = function(l, t, e) {
1736
- const r = Z(l);
1861
+ }, kt = function(c, t, e) {
1862
+ const n = se(c);
1737
1863
  return {
1738
1864
  /**
1739
1865
  * 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.
@@ -1743,12 +1869,12 @@ const Ie = function(l) {
1743
1869
  * @param {*} [options] Override http request option.
1744
1870
  * @throws {RequiredError}
1745
1871
  */
1746
- listDataApps(a, n, o) {
1747
- return r.listDataApps(a, n, o).then((s) => s(e, t));
1872
+ listDataApps(a, r, o) {
1873
+ return n.listDataApps(a, r, o).then((s) => s(e, t));
1748
1874
  }
1749
1875
  };
1750
1876
  };
1751
- class xe extends C {
1877
+ class Fe extends x {
1752
1878
  /**
1753
1879
  * 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.
1754
1880
  * @summary List package data apps
@@ -1757,11 +1883,11 @@ class xe extends C {
1757
1883
  * @param {*} [options] Override http request option.
1758
1884
  * @throws {RequiredError}
1759
1885
  */
1760
- listDataApps(t, e, r) {
1761
- return Z(this.configuration).listDataApps(t, e, r).then((a) => a(this.axios, this.basePath));
1886
+ listDataApps(t, e, n) {
1887
+ return se(this.configuration).listDataApps(t, e, n).then((a) => a(this.axios, this.basePath));
1762
1888
  }
1763
1889
  }
1764
- const Re = function(l) {
1890
+ const De = function(c) {
1765
1891
  return {
1766
1892
  /**
1767
1893
  * 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.
@@ -1772,22 +1898,22 @@ const Re = function(l) {
1772
1898
  * @param {*} [options] Override http request option.
1773
1899
  * @throws {RequiredError}
1774
1900
  */
1775
- listDatabases: async (t, e, r, a = {}) => {
1901
+ listDatabases: async (t, e, n, a = {}) => {
1776
1902
  h("listDatabases", "environmentName", t), h("listDatabases", "packageName", e);
1777
- const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
1903
+ const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1778
1904
  let s;
1779
- l && (s = l.baseOptions);
1780
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1781
- r !== void 0 && (p.versionId = r), i.Accept = "application/json", v(o, p);
1905
+ c && (s = c.baseOptions);
1906
+ const l = { method: "GET", ...s, ...a }, i = {}, p = {};
1907
+ n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(o, p);
1782
1908
  let d = s && s.headers ? s.headers : {};
1783
- return c.headers = { ...i, ...d, ...a.headers }, {
1909
+ return l.headers = { ...i, ...d, ...a.headers }, {
1784
1910
  url: V(o),
1785
- options: c
1911
+ options: l
1786
1912
  };
1787
1913
  }
1788
1914
  };
1789
- }, ee = function(l) {
1790
- const t = Re(l);
1915
+ }, ce = function(c) {
1916
+ const t = De(c);
1791
1917
  return {
1792
1918
  /**
1793
1919
  * 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.
@@ -1798,13 +1924,13 @@ const Re = function(l) {
1798
1924
  * @param {*} [options] Override http request option.
1799
1925
  * @throws {RequiredError}
1800
1926
  */
1801
- async listDatabases(e, r, a, n) {
1802
- const o = await t.listDatabases(e, r, a, n), s = l?.serverIndex ?? 0, c = b["DatabasesApi.listDatabases"]?.[s]?.url;
1803
- return (i, p) => O(o, u, g, l)(i, c || p);
1927
+ async listDatabases(e, n, a, r) {
1928
+ const o = await t.listDatabases(e, n, a, r), s = c?.serverIndex ?? 0, l = b["DatabasesApi.listDatabases"]?.[s]?.url;
1929
+ return (i, p) => O(o, u, g, c)(i, l || p);
1804
1930
  }
1805
1931
  };
1806
- }, lt = function(l, t, e) {
1807
- const r = ee(l);
1932
+ }, yt = function(c, t, e) {
1933
+ const n = ce(c);
1808
1934
  return {
1809
1935
  /**
1810
1936
  * 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.
@@ -1815,12 +1941,12 @@ const Re = function(l) {
1815
1941
  * @param {*} [options] Override http request option.
1816
1942
  * @throws {RequiredError}
1817
1943
  */
1818
- listDatabases(a, n, o, s) {
1819
- return r.listDatabases(a, n, o, s).then((c) => c(e, t));
1944
+ listDatabases(a, r, o, s) {
1945
+ return n.listDatabases(a, r, o, s).then((l) => l(e, t));
1820
1946
  }
1821
1947
  };
1822
1948
  };
1823
- class Ne extends C {
1949
+ class qe extends x {
1824
1950
  /**
1825
1951
  * 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.
1826
1952
  * @summary List embedded databases
@@ -1830,11 +1956,11 @@ class Ne extends C {
1830
1956
  * @param {*} [options] Override http request option.
1831
1957
  * @throws {RequiredError}
1832
1958
  */
1833
- listDatabases(t, e, r, a) {
1834
- return ee(this.configuration).listDatabases(t, e, r, a).then((n) => n(this.axios, this.basePath));
1959
+ listDatabases(t, e, n, a) {
1960
+ return ce(this.configuration).listDatabases(t, e, n, a).then((r) => r(this.axios, this.basePath));
1835
1961
  }
1836
1962
  }
1837
- const Te = function(l) {
1963
+ const Qe = function(c) {
1838
1964
  return {
1839
1965
  /**
1840
1966
  * 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.
@@ -1845,13 +1971,13 @@ const Te = function(l) {
1845
1971
  */
1846
1972
  createEnvironment: async (t, e = {}) => {
1847
1973
  h("createEnvironment", "environment", t);
1848
- const r = "/environments", a = new URL(r, P);
1849
- let n;
1850
- l && (n = l.baseOptions);
1851
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1852
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
1853
- let i = n && n.headers ? n.headers : {};
1854
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
1974
+ const n = "/environments", a = new URL(n, P);
1975
+ let r;
1976
+ c && (r = c.baseOptions);
1977
+ const o = { method: "POST", ...r, ...e }, s = {}, l = {};
1978
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
1979
+ let i = r && r.headers ? r.headers : {};
1980
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(t, o, c), {
1855
1981
  url: V(a),
1856
1982
  options: o
1857
1983
  };
@@ -1865,12 +1991,12 @@ const Te = function(l) {
1865
1991
  */
1866
1992
  deleteEnvironment: async (t, e = {}) => {
1867
1993
  h("deleteEnvironment", "environmentName", t);
1868
- const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
1869
- let n;
1870
- l && (n = l.baseOptions);
1871
- const o = { method: "DELETE", ...n, ...e }, s = {}, c = {};
1872
- s.Accept = "application/json", v(a, c);
1873
- let i = n && n.headers ? n.headers : {};
1994
+ const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
1995
+ let r;
1996
+ c && (r = c.baseOptions);
1997
+ const o = { method: "DELETE", ...r, ...e }, s = {}, l = {};
1998
+ s.Accept = "application/json", v(a, l);
1999
+ let i = r && r.headers ? r.headers : {};
1874
2000
  return o.headers = { ...s, ...i, ...e.headers }, {
1875
2001
  url: V(a),
1876
2002
  options: o
@@ -1884,16 +2010,16 @@ const Te = function(l) {
1884
2010
  * @param {*} [options] Override http request option.
1885
2011
  * @throws {RequiredError}
1886
2012
  */
1887
- getEnvironment: async (t, e, r = {}) => {
2013
+ getEnvironment: async (t, e, n = {}) => {
1888
2014
  h("getEnvironment", "environmentName", t);
1889
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
2015
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
1890
2016
  let o;
1891
- l && (o = l.baseOptions);
1892
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1893
- e !== void 0 && (i.reload = e), c.Accept = "application/json", v(n, i);
2017
+ c && (o = c.baseOptions);
2018
+ const s = { method: "GET", ...o, ...n }, l = {}, i = {};
2019
+ e !== void 0 && (i.reload = e), l.Accept = "application/json", v(r, i);
1894
2020
  let p = o && o.headers ? o.headers : {};
1895
- return s.headers = { ...c, ...p, ...r.headers }, {
1896
- url: V(n),
2021
+ return s.headers = { ...l, ...p, ...n.headers }, {
2022
+ url: V(r),
1897
2023
  options: s
1898
2024
  };
1899
2025
  },
@@ -1904,15 +2030,15 @@ const Te = function(l) {
1904
2030
  * @throws {RequiredError}
1905
2031
  */
1906
2032
  listEnvironments: async (t = {}) => {
1907
- const e = "/environments", r = new URL(e, P);
2033
+ const e = "/environments", n = new URL(e, P);
1908
2034
  let a;
1909
- l && (a = l.baseOptions);
1910
- const n = { method: "GET", ...a, ...t }, o = {}, s = {};
1911
- o.Accept = "application/json", v(r, s);
1912
- let c = a && a.headers ? a.headers : {};
1913
- return n.headers = { ...o, ...c, ...t.headers }, {
1914
- url: V(r),
1915
- options: n
2035
+ c && (a = c.baseOptions);
2036
+ const r = { method: "GET", ...a, ...t }, o = {}, s = {};
2037
+ o.Accept = "application/json", v(n, s);
2038
+ let l = a && a.headers ? a.headers : {};
2039
+ return r.headers = { ...o, ...l, ...t.headers }, {
2040
+ url: V(n),
2041
+ options: r
1916
2042
  };
1917
2043
  },
1918
2044
  /**
@@ -1923,22 +2049,22 @@ const Te = function(l) {
1923
2049
  * @param {*} [options] Override http request option.
1924
2050
  * @throws {RequiredError}
1925
2051
  */
1926
- updateEnvironment: async (t, e, r = {}) => {
2052
+ updateEnvironment: async (t, e, n = {}) => {
1927
2053
  h("updateEnvironment", "environmentName", t), h("updateEnvironment", "environment", e);
1928
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
2054
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
1929
2055
  let o;
1930
- l && (o = l.baseOptions);
1931
- const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
1932
- c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
2056
+ c && (o = c.baseOptions);
2057
+ const s = { method: "PATCH", ...o, ...n }, l = {}, i = {};
2058
+ l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
1933
2059
  let p = o && o.headers ? o.headers : {};
1934
- return s.headers = { ...c, ...p, ...r.headers }, s.data = k(e, s, l), {
1935
- url: V(n),
2060
+ return s.headers = { ...l, ...p, ...n.headers }, s.data = y(e, s, c), {
2061
+ url: V(r),
1936
2062
  options: s
1937
2063
  };
1938
2064
  }
1939
2065
  };
1940
- }, T = function(l) {
1941
- const t = Te(l);
2066
+ }, w = function(c) {
2067
+ const t = Qe(c);
1942
2068
  return {
1943
2069
  /**
1944
2070
  * 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.
@@ -1947,9 +2073,9 @@ const Te = function(l) {
1947
2073
  * @param {*} [options] Override http request option.
1948
2074
  * @throws {RequiredError}
1949
2075
  */
1950
- async createEnvironment(e, r) {
1951
- const a = await t.createEnvironment(e, r), n = l?.serverIndex ?? 0, o = b["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1952
- return (s, c) => O(a, u, g, l)(s, o || c);
2076
+ async createEnvironment(e, n) {
2077
+ const a = await t.createEnvironment(e, n), r = c?.serverIndex ?? 0, o = b["EnvironmentsApi.createEnvironment"]?.[r]?.url;
2078
+ return (s, l) => O(a, u, g, c)(s, o || l);
1953
2079
  },
1954
2080
  /**
1955
2081
  * 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.
@@ -1958,9 +2084,9 @@ const Te = function(l) {
1958
2084
  * @param {*} [options] Override http request option.
1959
2085
  * @throws {RequiredError}
1960
2086
  */
1961
- async deleteEnvironment(e, r) {
1962
- const a = await t.deleteEnvironment(e, r), n = l?.serverIndex ?? 0, o = b["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1963
- return (s, c) => O(a, u, g, l)(s, o || c);
2087
+ async deleteEnvironment(e, n) {
2088
+ const a = await t.deleteEnvironment(e, n), r = c?.serverIndex ?? 0, o = b["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
2089
+ return (s, l) => O(a, u, g, c)(s, o || l);
1964
2090
  },
1965
2091
  /**
1966
2092
  * 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.
@@ -1970,9 +2096,9 @@ const Te = function(l) {
1970
2096
  * @param {*} [options] Override http request option.
1971
2097
  * @throws {RequiredError}
1972
2098
  */
1973
- async getEnvironment(e, r, a) {
1974
- const n = await t.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = b["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1975
- return (c, i) => O(n, u, g, l)(c, s || i);
2099
+ async getEnvironment(e, n, a) {
2100
+ const r = await t.getEnvironment(e, n, a), o = c?.serverIndex ?? 0, s = b["EnvironmentsApi.getEnvironment"]?.[o]?.url;
2101
+ return (l, i) => O(r, u, g, c)(l, s || i);
1976
2102
  },
1977
2103
  /**
1978
2104
  * 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`.
@@ -1981,8 +2107,8 @@ const Te = function(l) {
1981
2107
  * @throws {RequiredError}
1982
2108
  */
1983
2109
  async listEnvironments(e) {
1984
- const r = await t.listEnvironments(e), a = l?.serverIndex ?? 0, n = b["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1985
- return (o, s) => O(r, u, g, l)(o, n || s);
2110
+ const n = await t.listEnvironments(e), a = c?.serverIndex ?? 0, r = b["EnvironmentsApi.listEnvironments"]?.[a]?.url;
2111
+ return (o, s) => O(n, u, g, c)(o, r || s);
1986
2112
  },
1987
2113
  /**
1988
2114
  * 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.
@@ -1992,13 +2118,13 @@ const Te = function(l) {
1992
2118
  * @param {*} [options] Override http request option.
1993
2119
  * @throws {RequiredError}
1994
2120
  */
1995
- async updateEnvironment(e, r, a) {
1996
- const n = await t.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = b["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1997
- return (c, i) => O(n, u, g, l)(c, s || i);
2121
+ async updateEnvironment(e, n, a) {
2122
+ const r = await t.updateEnvironment(e, n, a), o = c?.serverIndex ?? 0, s = b["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
2123
+ return (l, i) => O(r, u, g, c)(l, s || i);
1998
2124
  }
1999
2125
  };
2000
- }, it = function(l, t, e) {
2001
- const r = T(l);
2126
+ }, At = function(c, t, e) {
2127
+ const n = w(c);
2002
2128
  return {
2003
2129
  /**
2004
2130
  * 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.
@@ -2007,8 +2133,8 @@ const Te = function(l) {
2007
2133
  * @param {*} [options] Override http request option.
2008
2134
  * @throws {RequiredError}
2009
2135
  */
2010
- createEnvironment(a, n) {
2011
- return r.createEnvironment(a, n).then((o) => o(e, t));
2136
+ createEnvironment(a, r) {
2137
+ return n.createEnvironment(a, r).then((o) => o(e, t));
2012
2138
  },
2013
2139
  /**
2014
2140
  * 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.
@@ -2017,8 +2143,8 @@ const Te = function(l) {
2017
2143
  * @param {*} [options] Override http request option.
2018
2144
  * @throws {RequiredError}
2019
2145
  */
2020
- deleteEnvironment(a, n) {
2021
- return r.deleteEnvironment(a, n).then((o) => o(e, t));
2146
+ deleteEnvironment(a, r) {
2147
+ return n.deleteEnvironment(a, r).then((o) => o(e, t));
2022
2148
  },
2023
2149
  /**
2024
2150
  * 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.
@@ -2028,8 +2154,8 @@ const Te = function(l) {
2028
2154
  * @param {*} [options] Override http request option.
2029
2155
  * @throws {RequiredError}
2030
2156
  */
2031
- getEnvironment(a, n, o) {
2032
- return r.getEnvironment(a, n, o).then((s) => s(e, t));
2157
+ getEnvironment(a, r, o) {
2158
+ return n.getEnvironment(a, r, o).then((s) => s(e, t));
2033
2159
  },
2034
2160
  /**
2035
2161
  * 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`.
@@ -2038,7 +2164,7 @@ const Te = function(l) {
2038
2164
  * @throws {RequiredError}
2039
2165
  */
2040
2166
  listEnvironments(a) {
2041
- return r.listEnvironments(a).then((n) => n(e, t));
2167
+ return n.listEnvironments(a).then((r) => r(e, t));
2042
2168
  },
2043
2169
  /**
2044
2170
  * 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.
@@ -2048,12 +2174,12 @@ const Te = function(l) {
2048
2174
  * @param {*} [options] Override http request option.
2049
2175
  * @throws {RequiredError}
2050
2176
  */
2051
- updateEnvironment(a, n, o) {
2052
- return r.updateEnvironment(a, n, o).then((s) => s(e, t));
2177
+ updateEnvironment(a, r, o) {
2178
+ return n.updateEnvironment(a, r, o).then((s) => s(e, t));
2053
2179
  }
2054
2180
  };
2055
2181
  };
2056
- class Ue extends C {
2182
+ class ze extends x {
2057
2183
  /**
2058
2184
  * 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.
2059
2185
  * @summary Create a new environment
@@ -2062,7 +2188,7 @@ class Ue extends C {
2062
2188
  * @throws {RequiredError}
2063
2189
  */
2064
2190
  createEnvironment(t, e) {
2065
- return T(this.configuration).createEnvironment(t, e).then((r) => r(this.axios, this.basePath));
2191
+ return w(this.configuration).createEnvironment(t, e).then((n) => n(this.axios, this.basePath));
2066
2192
  }
2067
2193
  /**
2068
2194
  * 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.
@@ -2072,7 +2198,7 @@ class Ue extends C {
2072
2198
  * @throws {RequiredError}
2073
2199
  */
2074
2200
  deleteEnvironment(t, e) {
2075
- return T(this.configuration).deleteEnvironment(t, e).then((r) => r(this.axios, this.basePath));
2201
+ return w(this.configuration).deleteEnvironment(t, e).then((n) => n(this.axios, this.basePath));
2076
2202
  }
2077
2203
  /**
2078
2204
  * 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.
@@ -2082,8 +2208,8 @@ class Ue extends C {
2082
2208
  * @param {*} [options] Override http request option.
2083
2209
  * @throws {RequiredError}
2084
2210
  */
2085
- getEnvironment(t, e, r) {
2086
- return T(this.configuration).getEnvironment(t, e, r).then((a) => a(this.axios, this.basePath));
2211
+ getEnvironment(t, e, n) {
2212
+ return w(this.configuration).getEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
2087
2213
  }
2088
2214
  /**
2089
2215
  * 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`.
@@ -2092,7 +2218,7 @@ class Ue extends C {
2092
2218
  * @throws {RequiredError}
2093
2219
  */
2094
2220
  listEnvironments(t) {
2095
- return T(this.configuration).listEnvironments(t).then((e) => e(this.axios, this.basePath));
2221
+ return w(this.configuration).listEnvironments(t).then((e) => e(this.axios, this.basePath));
2096
2222
  }
2097
2223
  /**
2098
2224
  * 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.
@@ -2102,11 +2228,11 @@ class Ue extends C {
2102
2228
  * @param {*} [options] Override http request option.
2103
2229
  * @throws {RequiredError}
2104
2230
  */
2105
- updateEnvironment(t, e, r) {
2106
- return T(this.configuration).updateEnvironment(t, e, r).then((a) => a(this.axios, this.basePath));
2231
+ updateEnvironment(t, e, n) {
2232
+ return w(this.configuration).updateEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
2107
2233
  }
2108
2234
  }
2109
- const we = function(l) {
2235
+ const Le = function(c) {
2110
2236
  return {
2111
2237
  /**
2112
2238
  * 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.
@@ -2117,17 +2243,17 @@ const we = function(l) {
2117
2243
  * @param {*} [options] Override http request option.
2118
2244
  * @throws {RequiredError}
2119
2245
  */
2120
- createMaterialization: async (t, e, r, a = {}) => {
2246
+ createMaterialization: async (t, e, n, a = {}) => {
2121
2247
  h("createMaterialization", "environmentName", t), h("createMaterialization", "packageName", e);
2122
- const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
2248
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2123
2249
  let s;
2124
- l && (s = l.baseOptions);
2125
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
2250
+ c && (s = c.baseOptions);
2251
+ const l = { method: "POST", ...s, ...a }, i = {}, p = {};
2126
2252
  i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
2127
2253
  let d = s && s.headers ? s.headers : {};
2128
- return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
2254
+ return l.headers = { ...i, ...d, ...a.headers }, l.data = y(n, l, c), {
2129
2255
  url: V(o),
2130
- options: c
2256
+ options: l
2131
2257
  };
2132
2258
  },
2133
2259
  /**
@@ -2140,15 +2266,15 @@ const we = function(l) {
2140
2266
  * @param {*} [options] Override http request option.
2141
2267
  * @throws {RequiredError}
2142
2268
  */
2143
- deleteMaterialization: async (t, e, r, a, n = {}) => {
2144
- h("deleteMaterialization", "environmentName", t), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", r);
2145
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
2146
- let c;
2147
- l && (c = l.baseOptions);
2148
- const i = { method: "DELETE", ...c, ...n }, p = {}, d = {};
2269
+ deleteMaterialization: async (t, e, n, a, r = {}) => {
2270
+ h("deleteMaterialization", "environmentName", t), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", n);
2271
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, P);
2272
+ let l;
2273
+ c && (l = c.baseOptions);
2274
+ const i = { method: "DELETE", ...l, ...r }, p = {}, d = {};
2149
2275
  a !== void 0 && (d.dropTables = a), p.Accept = "application/json", v(s, d);
2150
- let m = c && c.headers ? c.headers : {};
2151
- return i.headers = { ...p, ...m, ...n.headers }, {
2276
+ let m = l && l.headers ? l.headers : {};
2277
+ return i.headers = { ...p, ...m, ...r.headers }, {
2152
2278
  url: V(s),
2153
2279
  options: i
2154
2280
  };
@@ -2162,17 +2288,17 @@ const we = function(l) {
2162
2288
  * @param {*} [options] Override http request option.
2163
2289
  * @throws {RequiredError}
2164
2290
  */
2165
- getMaterialization: async (t, e, r, a = {}) => {
2166
- h("getMaterialization", "environmentName", t), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", r);
2167
- const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(n, P);
2291
+ getMaterialization: async (t, e, n, a = {}) => {
2292
+ h("getMaterialization", "environmentName", t), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", n);
2293
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(r, P);
2168
2294
  let s;
2169
- l && (s = l.baseOptions);
2170
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2295
+ c && (s = c.baseOptions);
2296
+ const l = { method: "GET", ...s, ...a }, i = {}, p = {};
2171
2297
  i.Accept = "application/json", v(o, p);
2172
2298
  let d = s && s.headers ? s.headers : {};
2173
- return c.headers = { ...i, ...d, ...a.headers }, {
2299
+ return l.headers = { ...i, ...d, ...a.headers }, {
2174
2300
  url: V(o),
2175
- options: c
2301
+ options: l
2176
2302
  };
2177
2303
  },
2178
2304
  /**
@@ -2185,15 +2311,15 @@ const we = function(l) {
2185
2311
  * @param {*} [options] Override http request option.
2186
2312
  * @throws {RequiredError}
2187
2313
  */
2188
- listMaterializations: async (t, e, r, a, n = {}) => {
2314
+ listMaterializations: async (t, e, n, a, r = {}) => {
2189
2315
  h("listMaterializations", "environmentName", t), h("listMaterializations", "packageName", e);
2190
2316
  const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2191
- let c;
2192
- l && (c = l.baseOptions);
2193
- const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2194
- r !== void 0 && (d.limit = r), a !== void 0 && (d.offset = a), p.Accept = "application/json", v(s, d);
2195
- let m = c && c.headers ? c.headers : {};
2196
- return i.headers = { ...p, ...m, ...n.headers }, {
2317
+ let l;
2318
+ c && (l = c.baseOptions);
2319
+ const i = { method: "GET", ...l, ...r }, p = {}, d = {};
2320
+ n !== void 0 && (d.limit = n), a !== void 0 && (d.offset = a), p.Accept = "application/json", v(s, d);
2321
+ let m = l && l.headers ? l.headers : {};
2322
+ return i.headers = { ...p, ...m, ...r.headers }, {
2197
2323
  url: V(s),
2198
2324
  options: i
2199
2325
  };
@@ -2208,22 +2334,22 @@ const we = function(l) {
2208
2334
  * @param {*} [options] Override http request option.
2209
2335
  * @throws {RequiredError}
2210
2336
  */
2211
- materializationAction: async (t, e, r, a, n = {}) => {
2212
- h("materializationAction", "environmentName", t), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", r), h("materializationAction", "action", a);
2213
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
2214
- let c;
2215
- l && (c = l.baseOptions);
2216
- const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2337
+ materializationAction: async (t, e, n, a, r = {}) => {
2338
+ h("materializationAction", "environmentName", t), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", n), h("materializationAction", "action", a);
2339
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, P);
2340
+ let l;
2341
+ c && (l = c.baseOptions);
2342
+ const i = { method: "POST", ...l, ...r }, p = {}, d = {};
2217
2343
  a !== void 0 && (d.action = a), p.Accept = "application/json", v(s, d);
2218
- let m = c && c.headers ? c.headers : {};
2219
- return i.headers = { ...p, ...m, ...n.headers }, {
2344
+ let m = l && l.headers ? l.headers : {};
2345
+ return i.headers = { ...p, ...m, ...r.headers }, {
2220
2346
  url: V(s),
2221
2347
  options: i
2222
2348
  };
2223
2349
  }
2224
2350
  };
2225
- }, U = function(l) {
2226
- const t = we(l);
2351
+ }, E = function(c) {
2352
+ const t = Le(c);
2227
2353
  return {
2228
2354
  /**
2229
2355
  * 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.
@@ -2234,9 +2360,9 @@ const we = function(l) {
2234
2360
  * @param {*} [options] Override http request option.
2235
2361
  * @throws {RequiredError}
2236
2362
  */
2237
- async createMaterialization(e, r, a, n) {
2238
- const o = await t.createMaterialization(e, r, a, n), s = l?.serverIndex ?? 0, c = b["MaterializationsApi.createMaterialization"]?.[s]?.url;
2239
- return (i, p) => O(o, u, g, l)(i, c || p);
2363
+ async createMaterialization(e, n, a, r) {
2364
+ const o = await t.createMaterialization(e, n, a, r), s = c?.serverIndex ?? 0, l = b["MaterializationsApi.createMaterialization"]?.[s]?.url;
2365
+ return (i, p) => O(o, u, g, c)(i, l || p);
2240
2366
  },
2241
2367
  /**
2242
2368
  * 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.
@@ -2248,9 +2374,9 @@ const we = function(l) {
2248
2374
  * @param {*} [options] Override http request option.
2249
2375
  * @throws {RequiredError}
2250
2376
  */
2251
- async deleteMaterialization(e, r, a, n, o) {
2252
- const s = await t.deleteMaterialization(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
2253
- return (p, d) => O(s, u, g, l)(p, i || d);
2377
+ async deleteMaterialization(e, n, a, r, o) {
2378
+ const s = await t.deleteMaterialization(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.deleteMaterialization"]?.[l]?.url;
2379
+ return (p, d) => O(s, u, g, c)(p, i || d);
2254
2380
  },
2255
2381
  /**
2256
2382
  *
@@ -2261,9 +2387,9 @@ const we = function(l) {
2261
2387
  * @param {*} [options] Override http request option.
2262
2388
  * @throws {RequiredError}
2263
2389
  */
2264
- async getMaterialization(e, r, a, n) {
2265
- const o = await t.getMaterialization(e, r, a, n), s = l?.serverIndex ?? 0, c = b["MaterializationsApi.getMaterialization"]?.[s]?.url;
2266
- return (i, p) => O(o, u, g, l)(i, c || p);
2390
+ async getMaterialization(e, n, a, r) {
2391
+ const o = await t.getMaterialization(e, n, a, r), s = c?.serverIndex ?? 0, l = b["MaterializationsApi.getMaterialization"]?.[s]?.url;
2392
+ return (i, p) => O(o, u, g, c)(i, l || p);
2267
2393
  },
2268
2394
  /**
2269
2395
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2275,9 +2401,9 @@ const we = function(l) {
2275
2401
  * @param {*} [options] Override http request option.
2276
2402
  * @throws {RequiredError}
2277
2403
  */
2278
- async listMaterializations(e, r, a, n, o) {
2279
- const s = await t.listMaterializations(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["MaterializationsApi.listMaterializations"]?.[c]?.url;
2280
- return (p, d) => O(s, u, g, l)(p, i || d);
2404
+ async listMaterializations(e, n, a, r, o) {
2405
+ const s = await t.listMaterializations(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.listMaterializations"]?.[l]?.url;
2406
+ return (p, d) => O(s, u, g, c)(p, i || d);
2281
2407
  },
2282
2408
  /**
2283
2409
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2289,13 +2415,13 @@ const we = function(l) {
2289
2415
  * @param {*} [options] Override http request option.
2290
2416
  * @throws {RequiredError}
2291
2417
  */
2292
- async materializationAction(e, r, a, n, o) {
2293
- const s = await t.materializationAction(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["MaterializationsApi.materializationAction"]?.[c]?.url;
2294
- return (p, d) => O(s, u, g, l)(p, i || d);
2418
+ async materializationAction(e, n, a, r, o) {
2419
+ const s = await t.materializationAction(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.materializationAction"]?.[l]?.url;
2420
+ return (p, d) => O(s, u, g, c)(p, i || d);
2295
2421
  }
2296
2422
  };
2297
- }, pt = function(l, t, e) {
2298
- const r = U(l);
2423
+ }, Ct = function(c, t, e) {
2424
+ const n = E(c);
2299
2425
  return {
2300
2426
  /**
2301
2427
  * 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.
@@ -2306,8 +2432,8 @@ const we = function(l) {
2306
2432
  * @param {*} [options] Override http request option.
2307
2433
  * @throws {RequiredError}
2308
2434
  */
2309
- createMaterialization(a, n, o, s) {
2310
- return r.createMaterialization(a, n, o, s).then((c) => c(e, t));
2435
+ createMaterialization(a, r, o, s) {
2436
+ return n.createMaterialization(a, r, o, s).then((l) => l(e, t));
2311
2437
  },
2312
2438
  /**
2313
2439
  * 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.
@@ -2319,8 +2445,8 @@ const we = function(l) {
2319
2445
  * @param {*} [options] Override http request option.
2320
2446
  * @throws {RequiredError}
2321
2447
  */
2322
- deleteMaterialization(a, n, o, s, c) {
2323
- return r.deleteMaterialization(a, n, o, s, c).then((i) => i(e, t));
2448
+ deleteMaterialization(a, r, o, s, l) {
2449
+ return n.deleteMaterialization(a, r, o, s, l).then((i) => i(e, t));
2324
2450
  },
2325
2451
  /**
2326
2452
  *
@@ -2331,8 +2457,8 @@ const we = function(l) {
2331
2457
  * @param {*} [options] Override http request option.
2332
2458
  * @throws {RequiredError}
2333
2459
  */
2334
- getMaterialization(a, n, o, s) {
2335
- return r.getMaterialization(a, n, o, s).then((c) => c(e, t));
2460
+ getMaterialization(a, r, o, s) {
2461
+ return n.getMaterialization(a, r, o, s).then((l) => l(e, t));
2336
2462
  },
2337
2463
  /**
2338
2464
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2344,8 +2470,8 @@ const we = function(l) {
2344
2470
  * @param {*} [options] Override http request option.
2345
2471
  * @throws {RequiredError}
2346
2472
  */
2347
- listMaterializations(a, n, o, s, c) {
2348
- return r.listMaterializations(a, n, o, s, c).then((i) => i(e, t));
2473
+ listMaterializations(a, r, o, s, l) {
2474
+ return n.listMaterializations(a, r, o, s, l).then((i) => i(e, t));
2349
2475
  },
2350
2476
  /**
2351
2477
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2357,12 +2483,12 @@ const we = function(l) {
2357
2483
  * @param {*} [options] Override http request option.
2358
2484
  * @throws {RequiredError}
2359
2485
  */
2360
- materializationAction(a, n, o, s, c) {
2361
- return r.materializationAction(a, n, o, s, c).then((i) => i(e, t));
2486
+ materializationAction(a, r, o, s, l) {
2487
+ return n.materializationAction(a, r, o, s, l).then((i) => i(e, t));
2362
2488
  }
2363
2489
  };
2364
2490
  };
2365
- class Ee extends C {
2491
+ class He extends x {
2366
2492
  /**
2367
2493
  * 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.
2368
2494
  * @summary Create a materialization
@@ -2372,8 +2498,8 @@ class Ee extends C {
2372
2498
  * @param {*} [options] Override http request option.
2373
2499
  * @throws {RequiredError}
2374
2500
  */
2375
- createMaterialization(t, e, r, a) {
2376
- return U(this.configuration).createMaterialization(t, e, r, a).then((n) => n(this.axios, this.basePath));
2501
+ createMaterialization(t, e, n, a) {
2502
+ return E(this.configuration).createMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
2377
2503
  }
2378
2504
  /**
2379
2505
  * 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.
@@ -2385,8 +2511,8 @@ class Ee extends C {
2385
2511
  * @param {*} [options] Override http request option.
2386
2512
  * @throws {RequiredError}
2387
2513
  */
2388
- deleteMaterialization(t, e, r, a, n) {
2389
- return U(this.configuration).deleteMaterialization(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2514
+ deleteMaterialization(t, e, n, a, r) {
2515
+ return E(this.configuration).deleteMaterialization(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2390
2516
  }
2391
2517
  /**
2392
2518
  *
@@ -2397,8 +2523,8 @@ class Ee extends C {
2397
2523
  * @param {*} [options] Override http request option.
2398
2524
  * @throws {RequiredError}
2399
2525
  */
2400
- getMaterialization(t, e, r, a) {
2401
- return U(this.configuration).getMaterialization(t, e, r, a).then((n) => n(this.axios, this.basePath));
2526
+ getMaterialization(t, e, n, a) {
2527
+ return E(this.configuration).getMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
2402
2528
  }
2403
2529
  /**
2404
2530
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2410,8 +2536,8 @@ class Ee extends C {
2410
2536
  * @param {*} [options] Override http request option.
2411
2537
  * @throws {RequiredError}
2412
2538
  */
2413
- listMaterializations(t, e, r, a, n) {
2414
- return U(this.configuration).listMaterializations(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2539
+ listMaterializations(t, e, n, a, r) {
2540
+ return E(this.configuration).listMaterializations(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2415
2541
  }
2416
2542
  /**
2417
2543
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2423,16 +2549,16 @@ class Ee extends C {
2423
2549
  * @param {*} [options] Override http request option.
2424
2550
  * @throws {RequiredError}
2425
2551
  */
2426
- materializationAction(t, e, r, a, n) {
2427
- return U(this.configuration).materializationAction(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2552
+ materializationAction(t, e, n, a, r) {
2553
+ return E(this.configuration).materializationAction(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2428
2554
  }
2429
2555
  }
2430
- const dt = {
2556
+ const It = {
2431
2557
  Stop: "stop"
2432
- }, Me = function(l) {
2558
+ }, _e = function(c) {
2433
2559
  return {
2434
2560
  /**
2435
- * 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.
2561
+ * 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`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
2436
2562
  * @summary Compile Malloy source code
2437
2563
  * @param {string} environmentName Name of the environment
2438
2564
  * @param {string} packageName Name of the package
@@ -2441,15 +2567,15 @@ const dt = {
2441
2567
  * @param {*} [options] Override http request option.
2442
2568
  * @throws {RequiredError}
2443
2569
  */
2444
- compileModelSource: async (t, e, r, a, n = {}) => {
2445
- h("compileModelSource", "environmentName", t), h("compileModelSource", "packageName", e), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", a);
2446
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2447
- let c;
2448
- l && (c = l.baseOptions);
2449
- const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2570
+ compileModelSource: async (t, e, n, a, r = {}) => {
2571
+ h("compileModelSource", "environmentName", t), h("compileModelSource", "packageName", e), h("compileModelSource", "path", n), h("compileModelSource", "compileRequest", a);
2572
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
2573
+ let l;
2574
+ c && (l = c.baseOptions);
2575
+ const i = { method: "POST", ...l, ...r }, p = {}, d = {};
2450
2576
  p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
2451
- let m = c && c.headers ? c.headers : {};
2452
- return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
2577
+ let m = l && l.headers ? l.headers : {};
2578
+ return i.headers = { ...p, ...m, ...r.headers }, i.data = y(a, i, c), {
2453
2579
  url: V(s),
2454
2580
  options: i
2455
2581
  };
@@ -2465,16 +2591,16 @@ const dt = {
2465
2591
  * @param {*} [options] Override http request option.
2466
2592
  * @throws {RequiredError}
2467
2593
  */
2468
- executeQueryModel: async (t, e, r, a, n, o = {}) => {
2469
- h("executeQueryModel", "environmentName", t), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", a);
2470
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, P);
2594
+ executeQueryModel: async (t, e, n, a, r, o = {}) => {
2595
+ h("executeQueryModel", "environmentName", t), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", n), h("executeQueryModel", "queryRequest", a);
2596
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), l = new URL(s, P);
2471
2597
  let i;
2472
- l && (i = l.baseOptions);
2598
+ c && (i = c.baseOptions);
2473
2599
  const p = { method: "POST", ...i, ...o }, d = {}, m = {};
2474
- n !== void 0 && (m.includeHiddenFilesAndSources = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, m);
2600
+ r !== void 0 && (m.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, m);
2475
2601
  let S = i && i.headers ? i.headers : {};
2476
- return p.headers = { ...d, ...S, ...o.headers }, p.data = k(a, p, l), {
2477
- url: V(c),
2602
+ return p.headers = { ...d, ...S, ...o.headers }, p.data = y(a, p, c), {
2603
+ url: V(l),
2478
2604
  options: p
2479
2605
  };
2480
2606
  },
@@ -2489,16 +2615,16 @@ const dt = {
2489
2615
  * @param {*} [options] Override http request option.
2490
2616
  * @throws {RequiredError}
2491
2617
  */
2492
- getModel: async (t, e, r, a, n, o = {}) => {
2493
- h("getModel", "environmentName", t), h("getModel", "packageName", e), h("getModel", "path", r);
2494
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, P);
2618
+ getModel: async (t, e, n, a, r, o = {}) => {
2619
+ h("getModel", "environmentName", t), h("getModel", "packageName", e), h("getModel", "path", n);
2620
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), l = new URL(s, P);
2495
2621
  let i;
2496
- l && (i = l.baseOptions);
2622
+ c && (i = c.baseOptions);
2497
2623
  const p = { method: "GET", ...i, ...o }, d = {}, m = {};
2498
- a !== void 0 && (m.versionId = a), n !== void 0 && (m.includeHiddenFilesAndSources = n), d.Accept = "application/json", v(c, m);
2624
+ a !== void 0 && (m.versionId = a), r !== void 0 && (m.includeHiddenFilesAndSources = r), d.Accept = "application/json", v(l, m);
2499
2625
  let S = i && i.headers ? i.headers : {};
2500
2626
  return p.headers = { ...d, ...S, ...o.headers }, {
2501
- url: V(c),
2627
+ url: V(l),
2502
2628
  options: p
2503
2629
  };
2504
2630
  },
@@ -2512,15 +2638,15 @@ const dt = {
2512
2638
  * @param {*} [options] Override http request option.
2513
2639
  * @throws {RequiredError}
2514
2640
  */
2515
- listModels: async (t, e, r, a, n = {}) => {
2641
+ listModels: async (t, e, n, a, r = {}) => {
2516
2642
  h("listModels", "environmentName", t), h("listModels", "packageName", e);
2517
2643
  const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2518
- let c;
2519
- l && (c = l.baseOptions);
2520
- const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2521
- r !== void 0 && (d.versionId = r), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
2522
- let m = c && c.headers ? c.headers : {};
2523
- return i.headers = { ...p, ...m, ...n.headers }, {
2644
+ let l;
2645
+ c && (l = c.baseOptions);
2646
+ const i = { method: "GET", ...l, ...r }, p = {}, d = {};
2647
+ n !== void 0 && (d.versionId = n), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
2648
+ let m = l && l.headers ? l.headers : {};
2649
+ return i.headers = { ...p, ...m, ...r.headers }, {
2524
2650
  url: V(s),
2525
2651
  options: i
2526
2652
  };
@@ -2536,25 +2662,25 @@ const dt = {
2536
2662
  * @param {*} [options] Override http request option.
2537
2663
  * @throws {RequiredError}
2538
2664
  */
2539
- updateModelSource: async (t, e, r, a, n, o = {}) => {
2540
- h("updateModelSource", "environmentName", t), h("updateModelSource", "packageName", e), h("updateModelSource", "path", r), h("updateModelSource", "modelSourceWriteRequest", a);
2541
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, P);
2665
+ updateModelSource: async (t, e, n, a, r, o = {}) => {
2666
+ h("updateModelSource", "environmentName", t), h("updateModelSource", "packageName", e), h("updateModelSource", "path", n), h("updateModelSource", "modelSourceWriteRequest", a);
2667
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), l = new URL(s, P);
2542
2668
  let i;
2543
- l && (i = l.baseOptions);
2669
+ c && (i = c.baseOptions);
2544
2670
  const p = { method: "PUT", ...i, ...o }, d = {}, m = {};
2545
- n !== void 0 && (m.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, m);
2671
+ r !== void 0 && (m.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, m);
2546
2672
  let S = i && i.headers ? i.headers : {};
2547
- return p.headers = { ...d, ...S, ...o.headers }, p.data = k(a, p, l), {
2548
- url: V(c),
2673
+ return p.headers = { ...d, ...S, ...o.headers }, p.data = y(a, p, c), {
2674
+ url: V(l),
2549
2675
  options: p
2550
2676
  };
2551
2677
  }
2552
2678
  };
2553
- }, w = function(l) {
2554
- const t = Me(l);
2679
+ }, f = function(c) {
2680
+ const t = _e(c);
2555
2681
  return {
2556
2682
  /**
2557
- * 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.
2683
+ * 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`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
2558
2684
  * @summary Compile Malloy source code
2559
2685
  * @param {string} environmentName Name of the environment
2560
2686
  * @param {string} packageName Name of the package
@@ -2563,9 +2689,9 @@ const dt = {
2563
2689
  * @param {*} [options] Override http request option.
2564
2690
  * @throws {RequiredError}
2565
2691
  */
2566
- async compileModelSource(e, r, a, n, o) {
2567
- const s = await t.compileModelSource(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ModelsApi.compileModelSource"]?.[c]?.url;
2568
- return (p, d) => O(s, u, g, l)(p, i || d);
2692
+ async compileModelSource(e, n, a, r, o) {
2693
+ const s = await t.compileModelSource(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ModelsApi.compileModelSource"]?.[l]?.url;
2694
+ return (p, d) => O(s, u, g, c)(p, i || d);
2569
2695
  },
2570
2696
  /**
2571
2697
  * 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.
@@ -2578,9 +2704,9 @@ const dt = {
2578
2704
  * @param {*} [options] Override http request option.
2579
2705
  * @throws {RequiredError}
2580
2706
  */
2581
- async executeQueryModel(e, r, a, n, o, s) {
2582
- const c = await t.executeQueryModel(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ModelsApi.executeQueryModel"]?.[i]?.url;
2583
- return (d, m) => O(c, u, g, l)(d, p || m);
2707
+ async executeQueryModel(e, n, a, r, o, s) {
2708
+ const l = await t.executeQueryModel(e, n, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.executeQueryModel"]?.[i]?.url;
2709
+ return (d, m) => O(l, u, g, c)(d, p || m);
2584
2710
  },
2585
2711
  /**
2586
2712
  * 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. Dashboard files and served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) 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 dashboard is always returned.
@@ -2593,9 +2719,9 @@ const dt = {
2593
2719
  * @param {*} [options] Override http request option.
2594
2720
  * @throws {RequiredError}
2595
2721
  */
2596
- async getModel(e, r, a, n, o, s) {
2597
- const c = await t.getModel(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ModelsApi.getModel"]?.[i]?.url;
2598
- return (d, m) => O(c, u, g, l)(d, p || m);
2722
+ async getModel(e, n, a, r, o, s) {
2723
+ const l = await t.getModel(e, n, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.getModel"]?.[i]?.url;
2724
+ return (d, m) => O(l, u, g, c)(d, p || m);
2599
2725
  },
2600
2726
  /**
2601
2727
  * 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. Dashboard files are listed by the dashboards route either way. Served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are not models here, with or without a surface; they are listed by list-notebooks.
@@ -2607,9 +2733,9 @@ const dt = {
2607
2733
  * @param {*} [options] Override http request option.
2608
2734
  * @throws {RequiredError}
2609
2735
  */
2610
- async listModels(e, r, a, n, o) {
2611
- const s = await t.listModels(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ModelsApi.listModels"]?.[c]?.url;
2612
- return (p, d) => O(s, u, g, l)(p, i || d);
2736
+ async listModels(e, n, a, r, o) {
2737
+ const s = await t.listModels(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["ModelsApi.listModels"]?.[l]?.url;
2738
+ return (p, d) => O(s, u, g, c)(p, i || d);
2613
2739
  },
2614
2740
  /**
2615
2741
  * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy` — or a notebook file — `notebooks/<slug>.malloy`, which must carry an `## artifact` tag (an untagged file there is a shared include and is refused with 400, and so is a write over an existing file that is not a notebook) — the only paths this endpoint accepts, into the package, and reloads the package in place so it is served from the new text. This is the dashboard and notebook builder\'s save. 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 notebook path over an existing file the package does not serve as a notebook 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 dashboard whose name (the file\'s basename) another file already holds is refused with 409 before anything is written, since the name is its URL and its `# drill` target. A `dashboards/` file whose text has no `# artifact` or `## artifact` tag (an `artifact` property anywhere on a tag line, outside a string) is refused with 400 before anything is written; a tag only inside a block comment passes that check but the compiled model carries none, so it is rolled back and answers 500. A tagged dashboard 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.
@@ -2622,16 +2748,16 @@ const dt = {
2622
2748
  * @param {*} [options] Override http request option.
2623
2749
  * @throws {RequiredError}
2624
2750
  */
2625
- async updateModelSource(e, r, a, n, o, s) {
2626
- const c = await t.updateModelSource(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ModelsApi.updateModelSource"]?.[i]?.url;
2627
- return (d, m) => O(c, u, g, l)(d, p || m);
2751
+ async updateModelSource(e, n, a, r, o, s) {
2752
+ const l = await t.updateModelSource(e, n, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.updateModelSource"]?.[i]?.url;
2753
+ return (d, m) => O(l, u, g, c)(d, p || m);
2628
2754
  }
2629
2755
  };
2630
- }, ht = function(l, t, e) {
2631
- const r = w(l);
2756
+ }, xt = function(c, t, e) {
2757
+ const n = f(c);
2632
2758
  return {
2633
2759
  /**
2634
- * 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.
2760
+ * 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`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
2635
2761
  * @summary Compile Malloy source code
2636
2762
  * @param {string} environmentName Name of the environment
2637
2763
  * @param {string} packageName Name of the package
@@ -2640,8 +2766,8 @@ const dt = {
2640
2766
  * @param {*} [options] Override http request option.
2641
2767
  * @throws {RequiredError}
2642
2768
  */
2643
- compileModelSource(a, n, o, s, c) {
2644
- return r.compileModelSource(a, n, o, s, c).then((i) => i(e, t));
2769
+ compileModelSource(a, r, o, s, l) {
2770
+ return n.compileModelSource(a, r, o, s, l).then((i) => i(e, t));
2645
2771
  },
2646
2772
  /**
2647
2773
  * 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.
@@ -2654,8 +2780,8 @@ const dt = {
2654
2780
  * @param {*} [options] Override http request option.
2655
2781
  * @throws {RequiredError}
2656
2782
  */
2657
- executeQueryModel(a, n, o, s, c, i) {
2658
- return r.executeQueryModel(a, n, o, s, c, i).then((p) => p(e, t));
2783
+ executeQueryModel(a, r, o, s, l, i) {
2784
+ return n.executeQueryModel(a, r, o, s, l, i).then((p) => p(e, t));
2659
2785
  },
2660
2786
  /**
2661
2787
  * 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. Dashboard files and served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) 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 dashboard is always returned.
@@ -2668,8 +2794,8 @@ const dt = {
2668
2794
  * @param {*} [options] Override http request option.
2669
2795
  * @throws {RequiredError}
2670
2796
  */
2671
- getModel(a, n, o, s, c, i) {
2672
- return r.getModel(a, n, o, s, c, i).then((p) => p(e, t));
2797
+ getModel(a, r, o, s, l, i) {
2798
+ return n.getModel(a, r, o, s, l, i).then((p) => p(e, t));
2673
2799
  },
2674
2800
  /**
2675
2801
  * 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. Dashboard files are listed by the dashboards route either way. Served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are not models here, with or without a surface; they are listed by list-notebooks.
@@ -2681,8 +2807,8 @@ const dt = {
2681
2807
  * @param {*} [options] Override http request option.
2682
2808
  * @throws {RequiredError}
2683
2809
  */
2684
- listModels(a, n, o, s, c) {
2685
- return r.listModels(a, n, o, s, c).then((i) => i(e, t));
2810
+ listModels(a, r, o, s, l) {
2811
+ return n.listModels(a, r, o, s, l).then((i) => i(e, t));
2686
2812
  },
2687
2813
  /**
2688
2814
  * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy` — or a notebook file — `notebooks/<slug>.malloy`, which must carry an `## artifact` tag (an untagged file there is a shared include and is refused with 400, and so is a write over an existing file that is not a notebook) — the only paths this endpoint accepts, into the package, and reloads the package in place so it is served from the new text. This is the dashboard and notebook builder\'s save. 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 notebook path over an existing file the package does not serve as a notebook 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 dashboard whose name (the file\'s basename) another file already holds is refused with 409 before anything is written, since the name is its URL and its `# drill` target. A `dashboards/` file whose text has no `# artifact` or `## artifact` tag (an `artifact` property anywhere on a tag line, outside a string) is refused with 400 before anything is written; a tag only inside a block comment passes that check but the compiled model carries none, so it is rolled back and answers 500. A tagged dashboard 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.
@@ -2695,14 +2821,14 @@ const dt = {
2695
2821
  * @param {*} [options] Override http request option.
2696
2822
  * @throws {RequiredError}
2697
2823
  */
2698
- updateModelSource(a, n, o, s, c, i) {
2699
- return r.updateModelSource(a, n, o, s, c, i).then((p) => p(e, t));
2824
+ updateModelSource(a, r, o, s, l, i) {
2825
+ return n.updateModelSource(a, r, o, s, l, i).then((p) => p(e, t));
2700
2826
  }
2701
2827
  };
2702
2828
  };
2703
- class fe extends C {
2829
+ class We extends x {
2704
2830
  /**
2705
- * 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.
2831
+ * 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`. A tag that names no `kind` is a dashboard when it lists `tiles` or carries a `dashboard { … }` grid tag, and a notebook otherwise, since submitted text has no folder to take a kind from.
2706
2832
  * @summary Compile Malloy source code
2707
2833
  * @param {string} environmentName Name of the environment
2708
2834
  * @param {string} packageName Name of the package
@@ -2711,8 +2837,8 @@ class fe extends C {
2711
2837
  * @param {*} [options] Override http request option.
2712
2838
  * @throws {RequiredError}
2713
2839
  */
2714
- compileModelSource(t, e, r, a, n) {
2715
- return w(this.configuration).compileModelSource(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2840
+ compileModelSource(t, e, n, a, r) {
2841
+ return f(this.configuration).compileModelSource(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2716
2842
  }
2717
2843
  /**
2718
2844
  * 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.
@@ -2725,8 +2851,8 @@ class fe extends C {
2725
2851
  * @param {*} [options] Override http request option.
2726
2852
  * @throws {RequiredError}
2727
2853
  */
2728
- executeQueryModel(t, e, r, a, n, o) {
2729
- return w(this.configuration).executeQueryModel(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
2854
+ executeQueryModel(t, e, n, a, r, o) {
2855
+ return f(this.configuration).executeQueryModel(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
2730
2856
  }
2731
2857
  /**
2732
2858
  * 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. Dashboard files and served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) 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 dashboard is always returned.
@@ -2739,8 +2865,8 @@ class fe extends C {
2739
2865
  * @param {*} [options] Override http request option.
2740
2866
  * @throws {RequiredError}
2741
2867
  */
2742
- getModel(t, e, r, a, n, o) {
2743
- return w(this.configuration).getModel(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
2868
+ getModel(t, e, n, a, r, o) {
2869
+ return f(this.configuration).getModel(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
2744
2870
  }
2745
2871
  /**
2746
2872
  * 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. Dashboard files are listed by the dashboards route either way. Served notebooks (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) are not models here, with or without a surface; they are listed by list-notebooks.
@@ -2752,8 +2878,8 @@ class fe extends C {
2752
2878
  * @param {*} [options] Override http request option.
2753
2879
  * @throws {RequiredError}
2754
2880
  */
2755
- listModels(t, e, r, a, n) {
2756
- return w(this.configuration).listModels(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2881
+ listModels(t, e, n, a, r) {
2882
+ return f(this.configuration).listModels(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2757
2883
  }
2758
2884
  /**
2759
2885
  * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy` — or a notebook file — `notebooks/<slug>.malloy`, which must carry an `## artifact` tag (an untagged file there is a shared include and is refused with 400, and so is a write over an existing file that is not a notebook) — the only paths this endpoint accepts, into the package, and reloads the package in place so it is served from the new text. This is the dashboard and notebook builder\'s save. 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 notebook path over an existing file the package does not serve as a notebook 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 dashboard whose name (the file\'s basename) another file already holds is refused with 409 before anything is written, since the name is its URL and its `# drill` target. A `dashboards/` file whose text has no `# artifact` or `## artifact` tag (an `artifact` property anywhere on a tag line, outside a string) is refused with 400 before anything is written; a tag only inside a block comment passes that check but the compiled model carries none, so it is rolled back and answers 500. A tagged dashboard 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.
@@ -2766,11 +2892,11 @@ class fe extends C {
2766
2892
  * @param {*} [options] Override http request option.
2767
2893
  * @throws {RequiredError}
2768
2894
  */
2769
- updateModelSource(t, e, r, a, n, o) {
2770
- return w(this.configuration).updateModelSource(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
2895
+ updateModelSource(t, e, n, a, r, o) {
2896
+ return f(this.configuration).updateModelSource(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
2771
2897
  }
2772
2898
  }
2773
- const je = function(l) {
2899
+ const Ge = function(c) {
2774
2900
  return {
2775
2901
  /**
2776
2902
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) 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.
@@ -2786,15 +2912,15 @@ const je = function(l) {
2786
2912
  * @param {*} [options] Override http request option.
2787
2913
  * @throws {RequiredError}
2788
2914
  */
2789
- executeNotebookCell: async (t, e, r, a, n, o, s, c, i = {}) => {
2790
- h("executeNotebookCell", "environmentName", t), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", a);
2791
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, P);
2915
+ executeNotebookCell: async (t, e, n, a, r, o, s, l, i = {}) => {
2916
+ h("executeNotebookCell", "environmentName", t), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", n), h("executeNotebookCell", "cellIndex", a);
2917
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, P);
2792
2918
  let m;
2793
- l && (m = l.baseOptions);
2794
- const S = { method: "GET", ...m, ...i }, R = {}, I = {};
2795
- n !== void 0 && (I.versionId = n), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), c !== void 0 && (I.givens = c), R.Accept = "application/json", v(d, I);
2796
- let D = m && m.headers ? m.headers : {};
2797
- return S.headers = { ...R, ...D, ...i.headers }, {
2919
+ c && (m = c.baseOptions);
2920
+ const S = { method: "GET", ...m, ...i }, k = {}, C = {};
2921
+ 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);
2922
+ let R = m && m.headers ? m.headers : {};
2923
+ return S.headers = { ...k, ...R, ...i.headers }, {
2798
2924
  url: V(d),
2799
2925
  options: S
2800
2926
  };
@@ -2809,15 +2935,15 @@ const je = function(l) {
2809
2935
  * @param {*} [options] Override http request option.
2810
2936
  * @throws {RequiredError}
2811
2937
  */
2812
- getNotebook: async (t, e, r, a, n = {}) => {
2813
- h("getNotebook", "environmentName", t), h("getNotebook", "packageName", e), h("getNotebook", "path", r);
2814
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2815
- let c;
2816
- l && (c = l.baseOptions);
2817
- const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2938
+ getNotebook: async (t, e, n, a, r = {}) => {
2939
+ h("getNotebook", "environmentName", t), h("getNotebook", "packageName", e), h("getNotebook", "path", n);
2940
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
2941
+ let l;
2942
+ c && (l = c.baseOptions);
2943
+ const i = { method: "GET", ...l, ...r }, p = {}, d = {};
2818
2944
  a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
2819
- let m = c && c.headers ? c.headers : {};
2820
- return i.headers = { ...p, ...m, ...n.headers }, {
2945
+ let m = l && l.headers ? l.headers : {};
2946
+ return i.headers = { ...p, ...m, ...r.headers }, {
2821
2947
  url: V(s),
2822
2948
  options: i
2823
2949
  };
@@ -2831,22 +2957,22 @@ const je = function(l) {
2831
2957
  * @param {*} [options] Override http request option.
2832
2958
  * @throws {RequiredError}
2833
2959
  */
2834
- listNotebooks: async (t, e, r, a = {}) => {
2960
+ listNotebooks: async (t, e, n, a = {}) => {
2835
2961
  h("listNotebooks", "environmentName", t), h("listNotebooks", "packageName", e);
2836
- const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
2962
+ const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2837
2963
  let s;
2838
- l && (s = l.baseOptions);
2839
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2840
- r !== void 0 && (p.versionId = r), i.Accept = "application/json", v(o, p);
2964
+ c && (s = c.baseOptions);
2965
+ const l = { method: "GET", ...s, ...a }, i = {}, p = {};
2966
+ n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(o, p);
2841
2967
  let d = s && s.headers ? s.headers : {};
2842
- return c.headers = { ...i, ...d, ...a.headers }, {
2968
+ return l.headers = { ...i, ...d, ...a.headers }, {
2843
2969
  url: V(o),
2844
- options: c
2970
+ options: l
2845
2971
  };
2846
2972
  }
2847
2973
  };
2848
- }, F = function(l) {
2849
- const t = je(l);
2974
+ }, Q = function(c) {
2975
+ const t = Ge(c);
2850
2976
  return {
2851
2977
  /**
2852
2978
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) 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.
@@ -2862,9 +2988,9 @@ const je = function(l) {
2862
2988
  * @param {*} [options] Override http request option.
2863
2989
  * @throws {RequiredError}
2864
2990
  */
2865
- async executeNotebookCell(e, r, a, n, o, s, c, i, p) {
2866
- const d = await t.executeNotebookCell(e, r, a, n, o, s, c, i, p), m = l?.serverIndex ?? 0, S = b["NotebooksApi.executeNotebookCell"]?.[m]?.url;
2867
- return (R, I) => O(d, u, g, l)(R, S || I);
2991
+ async executeNotebookCell(e, n, a, r, o, s, l, i, p) {
2992
+ const d = await t.executeNotebookCell(e, n, a, r, o, s, l, i, p), m = c?.serverIndex ?? 0, S = b["NotebooksApi.executeNotebookCell"]?.[m]?.url;
2993
+ return (k, C) => O(d, u, g, c)(k, S || C);
2868
2994
  },
2869
2995
  /**
2870
2996
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served notebook (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -2876,9 +3002,9 @@ const je = function(l) {
2876
3002
  * @param {*} [options] Override http request option.
2877
3003
  * @throws {RequiredError}
2878
3004
  */
2879
- async getNotebook(e, r, a, n, o) {
2880
- const s = await t.getNotebook(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["NotebooksApi.getNotebook"]?.[c]?.url;
2881
- return (p, d) => O(s, u, g, l)(p, i || d);
3005
+ async getNotebook(e, n, a, r, o) {
3006
+ const s = await t.getNotebook(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["NotebooksApi.getNotebook"]?.[l]?.url;
3007
+ return (p, d) => O(s, u, g, c)(p, i || d);
2882
3008
  },
2883
3009
  /**
2884
3010
  * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`). Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2889,13 +3015,13 @@ const je = function(l) {
2889
3015
  * @param {*} [options] Override http request option.
2890
3016
  * @throws {RequiredError}
2891
3017
  */
2892
- async listNotebooks(e, r, a, n) {
2893
- const o = await t.listNotebooks(e, r, a, n), s = l?.serverIndex ?? 0, c = b["NotebooksApi.listNotebooks"]?.[s]?.url;
2894
- return (i, p) => O(o, u, g, l)(i, c || p);
3018
+ async listNotebooks(e, n, a, r) {
3019
+ const o = await t.listNotebooks(e, n, a, r), s = c?.serverIndex ?? 0, l = b["NotebooksApi.listNotebooks"]?.[s]?.url;
3020
+ return (i, p) => O(o, u, g, c)(i, l || p);
2895
3021
  }
2896
3022
  };
2897
- }, mt = function(l, t, e) {
2898
- const r = F(l);
3023
+ }, Rt = function(c, t, e) {
3024
+ const n = Q(c);
2899
3025
  return {
2900
3026
  /**
2901
3027
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) 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.
@@ -2911,8 +3037,8 @@ const je = function(l) {
2911
3037
  * @param {*} [options] Override http request option.
2912
3038
  * @throws {RequiredError}
2913
3039
  */
2914
- executeNotebookCell(a, n, o, s, c, i, p, d, m) {
2915
- return r.executeNotebookCell(a, n, o, s, c, i, p, d, m).then((S) => S(e, t));
3040
+ executeNotebookCell(a, r, o, s, l, i, p, d, m) {
3041
+ return n.executeNotebookCell(a, r, o, s, l, i, p, d, m).then((S) => S(e, t));
2916
3042
  },
2917
3043
  /**
2918
3044
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served notebook (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -2924,8 +3050,8 @@ const je = function(l) {
2924
3050
  * @param {*} [options] Override http request option.
2925
3051
  * @throws {RequiredError}
2926
3052
  */
2927
- getNotebook(a, n, o, s, c) {
2928
- return r.getNotebook(a, n, o, s, c).then((i) => i(e, t));
3053
+ getNotebook(a, r, o, s, l) {
3054
+ return n.getNotebook(a, r, o, s, l).then((i) => i(e, t));
2929
3055
  },
2930
3056
  /**
2931
3057
  * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`). Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2936,12 +3062,12 @@ const je = function(l) {
2936
3062
  * @param {*} [options] Override http request option.
2937
3063
  * @throws {RequiredError}
2938
3064
  */
2939
- listNotebooks(a, n, o, s) {
2940
- return r.listNotebooks(a, n, o, s).then((c) => c(e, t));
3065
+ listNotebooks(a, r, o, s) {
3066
+ return n.listNotebooks(a, r, o, s).then((l) => l(e, t));
2941
3067
  }
2942
3068
  };
2943
3069
  };
2944
- class Be extends C {
3070
+ class $e extends x {
2945
3071
  /**
2946
3072
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A served notebook (tagged `kind=notebook`, or untagged-kind under `notebooks/`) 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.
2947
3073
  * @summary Execute a specific notebook cell
@@ -2956,8 +3082,8 @@ class Be extends C {
2956
3082
  * @param {*} [options] Override http request option.
2957
3083
  * @throws {RequiredError}
2958
3084
  */
2959
- executeNotebookCell(t, e, r, a, n, o, s, c, i) {
2960
- return F(this.configuration).executeNotebookCell(t, e, r, a, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
3085
+ executeNotebookCell(t, e, n, a, r, o, s, l, i) {
3086
+ return Q(this.configuration).executeNotebookCell(t, e, n, a, r, o, s, l, i).then((p) => p(this.axios, this.basePath));
2961
3087
  }
2962
3088
  /**
2963
3089
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served notebook (a `.malloy` at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook`, or names no `kind` and sits under `notebooks/`) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -2969,8 +3095,8 @@ class Be extends C {
2969
3095
  * @param {*} [options] Override http request option.
2970
3096
  * @throws {RequiredError}
2971
3097
  */
2972
- getNotebook(t, e, r, a, n) {
2973
- return F(this.configuration).getNotebook(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
3098
+ getNotebook(t, e, n, a, r) {
3099
+ return Q(this.configuration).getNotebook(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2974
3100
  }
2975
3101
  /**
2976
3102
  * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file at the top of `notebooks/` or `dashboards/` whose model-level `## artifact` tag says `kind=notebook` (or names no `kind` and sits under `notebooks/`). Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2981,14 +3107,14 @@ class Be extends C {
2981
3107
  * @param {*} [options] Override http request option.
2982
3108
  * @throws {RequiredError}
2983
3109
  */
2984
- listNotebooks(t, e, r, a) {
2985
- return F(this.configuration).listNotebooks(t, e, r, a).then((n) => n(this.axios, this.basePath));
3110
+ listNotebooks(t, e, n, a) {
3111
+ return Q(this.configuration).listNotebooks(t, e, n, a).then((r) => r(this.axios, this.basePath));
2986
3112
  }
2987
3113
  }
2988
- const ut = {
3114
+ const Nt = {
2989
3115
  True: "true",
2990
3116
  False: "false"
2991
- }, Fe = function(l) {
3117
+ }, Ke = function(c) {
2992
3118
  return {
2993
3119
  /**
2994
3120
  * 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.
@@ -2998,16 +3124,16 @@ const ut = {
2998
3124
  * @param {*} [options] Override http request option.
2999
3125
  * @throws {RequiredError}
3000
3126
  */
3001
- createPackage: async (t, e, r = {}) => {
3127
+ createPackage: async (t, e, n = {}) => {
3002
3128
  h("createPackage", "environmentName", t), h("createPackage", "_package", e);
3003
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
3129
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
3004
3130
  let o;
3005
- l && (o = l.baseOptions);
3006
- const s = { method: "POST", ...o, ...r }, c = {}, i = {};
3007
- c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
3131
+ c && (o = c.baseOptions);
3132
+ const s = { method: "POST", ...o, ...n }, l = {}, i = {};
3133
+ l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
3008
3134
  let p = o && o.headers ? o.headers : {};
3009
- return s.headers = { ...c, ...p, ...r.headers }, s.data = k(e, s, l), {
3010
- url: V(n),
3135
+ return s.headers = { ...l, ...p, ...n.headers }, s.data = y(e, s, c), {
3136
+ url: V(r),
3011
3137
  options: s
3012
3138
  };
3013
3139
  },
@@ -3019,16 +3145,16 @@ const ut = {
3019
3145
  * @param {*} [options] Override http request option.
3020
3146
  * @throws {RequiredError}
3021
3147
  */
3022
- deletePackage: async (t, e, r = {}) => {
3148
+ deletePackage: async (t, e, n = {}) => {
3023
3149
  h("deletePackage", "environmentName", t), h("deletePackage", "packageName", e);
3024
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
3150
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
3025
3151
  let o;
3026
- l && (o = l.baseOptions);
3027
- const s = { method: "DELETE", ...o, ...r }, c = {}, i = {};
3028
- c.Accept = "application/json", v(n, i);
3152
+ c && (o = c.baseOptions);
3153
+ const s = { method: "DELETE", ...o, ...n }, l = {}, i = {};
3154
+ l.Accept = "application/json", v(r, i);
3029
3155
  let p = o && o.headers ? o.headers : {};
3030
- return s.headers = { ...c, ...p, ...r.headers }, {
3031
- url: V(n),
3156
+ return s.headers = { ...l, ...p, ...n.headers }, {
3157
+ url: V(r),
3032
3158
  options: s
3033
3159
  };
3034
3160
  },
@@ -3042,15 +3168,15 @@ const ut = {
3042
3168
  * @param {*} [options] Override http request option.
3043
3169
  * @throws {RequiredError}
3044
3170
  */
3045
- getPackage: async (t, e, r, a, n = {}) => {
3171
+ getPackage: async (t, e, n, a, r = {}) => {
3046
3172
  h("getPackage", "environmentName", t), h("getPackage", "packageName", e);
3047
3173
  const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
3048
- let c;
3049
- l && (c = l.baseOptions);
3050
- const i = { method: "GET", ...c, ...n }, p = {}, d = {};
3051
- r !== void 0 && (d.versionId = r), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
3052
- let m = c && c.headers ? c.headers : {};
3053
- return i.headers = { ...p, ...m, ...n.headers }, {
3174
+ let l;
3175
+ c && (l = c.baseOptions);
3176
+ const i = { method: "GET", ...l, ...r }, p = {}, d = {};
3177
+ n !== void 0 && (d.versionId = n), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
3178
+ let m = l && l.headers ? l.headers : {};
3179
+ return i.headers = { ...p, ...m, ...r.headers }, {
3054
3180
  url: V(s),
3055
3181
  options: i
3056
3182
  };
@@ -3064,12 +3190,12 @@ const ut = {
3064
3190
  */
3065
3191
  listPackages: async (t, e = {}) => {
3066
3192
  h("listPackages", "environmentName", t);
3067
- const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
3068
- let n;
3069
- l && (n = l.baseOptions);
3070
- const o = { method: "GET", ...n, ...e }, s = {}, c = {};
3071
- s.Accept = "application/json", v(a, c);
3072
- let i = n && n.headers ? n.headers : {};
3193
+ const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
3194
+ let r;
3195
+ c && (r = c.baseOptions);
3196
+ const o = { method: "GET", ...r, ...e }, s = {}, l = {};
3197
+ s.Accept = "application/json", v(a, l);
3198
+ let i = r && r.headers ? r.headers : {};
3073
3199
  return o.headers = { ...s, ...i, ...e.headers }, {
3074
3200
  url: V(a),
3075
3201
  options: o
@@ -3084,22 +3210,22 @@ const ut = {
3084
3210
  * @param {*} [options] Override http request option.
3085
3211
  * @throws {RequiredError}
3086
3212
  */
3087
- updatePackage: async (t, e, r, a = {}) => {
3088
- h("updatePackage", "environmentName", t), h("updatePackage", "packageName", e), h("updatePackage", "_package", r);
3089
- const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
3213
+ updatePackage: async (t, e, n, a = {}) => {
3214
+ h("updatePackage", "environmentName", t), h("updatePackage", "packageName", e), h("updatePackage", "_package", n);
3215
+ const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
3090
3216
  let s;
3091
- l && (s = l.baseOptions);
3092
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
3217
+ c && (s = c.baseOptions);
3218
+ const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
3093
3219
  i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
3094
3220
  let d = s && s.headers ? s.headers : {};
3095
- return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
3221
+ return l.headers = { ...i, ...d, ...a.headers }, l.data = y(n, l, c), {
3096
3222
  url: V(o),
3097
- options: c
3223
+ options: l
3098
3224
  };
3099
3225
  }
3100
3226
  };
3101
- }, E = function(l) {
3102
- const t = Fe(l);
3227
+ }, M = function(c) {
3228
+ const t = Ke(c);
3103
3229
  return {
3104
3230
  /**
3105
3231
  * 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.
@@ -3109,9 +3235,9 @@ const ut = {
3109
3235
  * @param {*} [options] Override http request option.
3110
3236
  * @throws {RequiredError}
3111
3237
  */
3112
- async createPackage(e, r, a) {
3113
- const n = await t.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = b["PackagesApi.createPackage"]?.[o]?.url;
3114
- return (c, i) => O(n, u, g, l)(c, s || i);
3238
+ async createPackage(e, n, a) {
3239
+ const r = await t.createPackage(e, n, a), o = c?.serverIndex ?? 0, s = b["PackagesApi.createPackage"]?.[o]?.url;
3240
+ return (l, i) => O(r, u, g, c)(l, s || i);
3115
3241
  },
3116
3242
  /**
3117
3243
  * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
@@ -3121,9 +3247,9 @@ const ut = {
3121
3247
  * @param {*} [options] Override http request option.
3122
3248
  * @throws {RequiredError}
3123
3249
  */
3124
- async deletePackage(e, r, a) {
3125
- const n = await t.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = b["PackagesApi.deletePackage"]?.[o]?.url;
3126
- return (c, i) => O(n, u, g, l)(c, s || i);
3250
+ async deletePackage(e, n, a) {
3251
+ const r = await t.deletePackage(e, n, a), o = c?.serverIndex ?? 0, s = b["PackagesApi.deletePackage"]?.[o]?.url;
3252
+ return (l, i) => O(r, u, g, c)(l, s || i);
3127
3253
  },
3128
3254
  /**
3129
3255
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -3135,9 +3261,9 @@ const ut = {
3135
3261
  * @param {*} [options] Override http request option.
3136
3262
  * @throws {RequiredError}
3137
3263
  */
3138
- async getPackage(e, r, a, n, o) {
3139
- const s = await t.getPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["PackagesApi.getPackage"]?.[c]?.url;
3140
- return (p, d) => O(s, u, g, l)(p, i || d);
3264
+ async getPackage(e, n, a, r, o) {
3265
+ const s = await t.getPackage(e, n, a, r, o), l = c?.serverIndex ?? 0, i = b["PackagesApi.getPackage"]?.[l]?.url;
3266
+ return (p, d) => O(s, u, g, c)(p, i || d);
3141
3267
  },
3142
3268
  /**
3143
3269
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. 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-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
@@ -3146,9 +3272,9 @@ const ut = {
3146
3272
  * @param {*} [options] Override http request option.
3147
3273
  * @throws {RequiredError}
3148
3274
  */
3149
- async listPackages(e, r) {
3150
- const a = await t.listPackages(e, r), n = l?.serverIndex ?? 0, o = b["PackagesApi.listPackages"]?.[n]?.url;
3151
- return (s, c) => O(a, u, g, l)(s, o || c);
3275
+ async listPackages(e, n) {
3276
+ const a = await t.listPackages(e, n), r = c?.serverIndex ?? 0, o = b["PackagesApi.listPackages"]?.[r]?.url;
3277
+ return (s, l) => O(a, u, g, c)(s, o || l);
3152
3278
  },
3153
3279
  /**
3154
3280
  * Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
@@ -3159,13 +3285,13 @@ const ut = {
3159
3285
  * @param {*} [options] Override http request option.
3160
3286
  * @throws {RequiredError}
3161
3287
  */
3162
- async updatePackage(e, r, a, n) {
3163
- const o = await t.updatePackage(e, r, a, n), s = l?.serverIndex ?? 0, c = b["PackagesApi.updatePackage"]?.[s]?.url;
3164
- return (i, p) => O(o, u, g, l)(i, c || p);
3288
+ async updatePackage(e, n, a, r) {
3289
+ const o = await t.updatePackage(e, n, a, r), s = c?.serverIndex ?? 0, l = b["PackagesApi.updatePackage"]?.[s]?.url;
3290
+ return (i, p) => O(o, u, g, c)(i, l || p);
3165
3291
  }
3166
3292
  };
3167
- }, gt = function(l, t, e) {
3168
- const r = E(l);
3293
+ }, Tt = function(c, t, e) {
3294
+ const n = M(c);
3169
3295
  return {
3170
3296
  /**
3171
3297
  * 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.
@@ -3175,8 +3301,8 @@ const ut = {
3175
3301
  * @param {*} [options] Override http request option.
3176
3302
  * @throws {RequiredError}
3177
3303
  */
3178
- createPackage(a, n, o) {
3179
- return r.createPackage(a, n, o).then((s) => s(e, t));
3304
+ createPackage(a, r, o) {
3305
+ return n.createPackage(a, r, o).then((s) => s(e, t));
3180
3306
  },
3181
3307
  /**
3182
3308
  * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
@@ -3186,8 +3312,8 @@ const ut = {
3186
3312
  * @param {*} [options] Override http request option.
3187
3313
  * @throws {RequiredError}
3188
3314
  */
3189
- deletePackage(a, n, o) {
3190
- return r.deletePackage(a, n, o).then((s) => s(e, t));
3315
+ deletePackage(a, r, o) {
3316
+ return n.deletePackage(a, r, o).then((s) => s(e, t));
3191
3317
  },
3192
3318
  /**
3193
3319
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -3199,8 +3325,8 @@ const ut = {
3199
3325
  * @param {*} [options] Override http request option.
3200
3326
  * @throws {RequiredError}
3201
3327
  */
3202
- getPackage(a, n, o, s, c) {
3203
- return r.getPackage(a, n, o, s, c).then((i) => i(e, t));
3328
+ getPackage(a, r, o, s, l) {
3329
+ return n.getPackage(a, r, o, s, l).then((i) => i(e, t));
3204
3330
  },
3205
3331
  /**
3206
3332
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. 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-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
@@ -3209,8 +3335,8 @@ const ut = {
3209
3335
  * @param {*} [options] Override http request option.
3210
3336
  * @throws {RequiredError}
3211
3337
  */
3212
- listPackages(a, n) {
3213
- return r.listPackages(a, n).then((o) => o(e, t));
3338
+ listPackages(a, r) {
3339
+ return n.listPackages(a, r).then((o) => o(e, t));
3214
3340
  },
3215
3341
  /**
3216
3342
  * Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
@@ -3221,12 +3347,12 @@ const ut = {
3221
3347
  * @param {*} [options] Override http request option.
3222
3348
  * @throws {RequiredError}
3223
3349
  */
3224
- updatePackage(a, n, o, s) {
3225
- return r.updatePackage(a, n, o, s).then((c) => c(e, t));
3350
+ updatePackage(a, r, o, s) {
3351
+ return n.updatePackage(a, r, o, s).then((l) => l(e, t));
3226
3352
  }
3227
3353
  };
3228
3354
  };
3229
- class De extends C {
3355
+ class Ye extends x {
3230
3356
  /**
3231
3357
  * 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.
3232
3358
  * @summary Create a new package
@@ -3235,8 +3361,8 @@ class De extends C {
3235
3361
  * @param {*} [options] Override http request option.
3236
3362
  * @throws {RequiredError}
3237
3363
  */
3238
- createPackage(t, e, r) {
3239
- return E(this.configuration).createPackage(t, e, r).then((a) => a(this.axios, this.basePath));
3364
+ createPackage(t, e, n) {
3365
+ return M(this.configuration).createPackage(t, e, n).then((a) => a(this.axios, this.basePath));
3240
3366
  }
3241
3367
  /**
3242
3368
  * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
@@ -3246,8 +3372,8 @@ class De extends C {
3246
3372
  * @param {*} [options] Override http request option.
3247
3373
  * @throws {RequiredError}
3248
3374
  */
3249
- deletePackage(t, e, r) {
3250
- return E(this.configuration).deletePackage(t, e, r).then((a) => a(this.axios, this.basePath));
3375
+ deletePackage(t, e, n) {
3376
+ return M(this.configuration).deletePackage(t, e, n).then((a) => a(this.axios, this.basePath));
3251
3377
  }
3252
3378
  /**
3253
3379
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -3259,8 +3385,8 @@ class De extends C {
3259
3385
  * @param {*} [options] Override http request option.
3260
3386
  * @throws {RequiredError}
3261
3387
  */
3262
- getPackage(t, e, r, a, n) {
3263
- return E(this.configuration).getPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
3388
+ getPackage(t, e, n, a, r) {
3389
+ return M(this.configuration).getPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
3264
3390
  }
3265
3391
  /**
3266
3392
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. 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-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
@@ -3270,7 +3396,7 @@ class De extends C {
3270
3396
  * @throws {RequiredError}
3271
3397
  */
3272
3398
  listPackages(t, e) {
3273
- return E(this.configuration).listPackages(t, e).then((r) => r(this.axios, this.basePath));
3399
+ return M(this.configuration).listPackages(t, e).then((n) => n(this.axios, this.basePath));
3274
3400
  }
3275
3401
  /**
3276
3402
  * Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
@@ -3281,11 +3407,11 @@ class De extends C {
3281
3407
  * @param {*} [options] Override http request option.
3282
3408
  * @throws {RequiredError}
3283
3409
  */
3284
- updatePackage(t, e, r, a) {
3285
- return E(this.configuration).updatePackage(t, e, r, a).then((n) => n(this.axios, this.basePath));
3410
+ updatePackage(t, e, n, a) {
3411
+ return M(this.configuration).updatePackage(t, e, n, a).then((r) => r(this.axios, this.basePath));
3286
3412
  }
3287
3413
  }
3288
- const qe = function(l) {
3414
+ const Je = function(c) {
3289
3415
  return {
3290
3416
  /**
3291
3417
  * 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.
@@ -3294,15 +3420,15 @@ const qe = function(l) {
3294
3420
  * @throws {RequiredError}
3295
3421
  */
3296
3422
  deleteTheme: async (t = {}) => {
3297
- const e = "/theme", r = new URL(e, P);
3423
+ const e = "/theme", n = new URL(e, P);
3298
3424
  let a;
3299
- l && (a = l.baseOptions);
3300
- const n = { method: "DELETE", ...a, ...t }, o = {}, s = {};
3301
- o.Accept = "application/json", v(r, s);
3302
- let c = a && a.headers ? a.headers : {};
3303
- return n.headers = { ...o, ...c, ...t.headers }, {
3304
- url: V(r),
3305
- options: n
3425
+ c && (a = c.baseOptions);
3426
+ const r = { method: "DELETE", ...a, ...t }, o = {}, s = {};
3427
+ o.Accept = "application/json", v(n, s);
3428
+ let l = a && a.headers ? a.headers : {};
3429
+ return r.headers = { ...o, ...l, ...t.headers }, {
3430
+ url: V(n),
3431
+ options: r
3306
3432
  };
3307
3433
  },
3308
3434
  /**
@@ -3312,15 +3438,15 @@ const qe = function(l) {
3312
3438
  * @throws {RequiredError}
3313
3439
  */
3314
3440
  getStatus: async (t = {}) => {
3315
- const e = "/status", r = new URL(e, P);
3441
+ const e = "/status", n = new URL(e, P);
3316
3442
  let a;
3317
- l && (a = l.baseOptions);
3318
- const n = { method: "GET", ...a, ...t }, o = {}, s = {};
3319
- o.Accept = "application/json", v(r, s);
3320
- let c = a && a.headers ? a.headers : {};
3321
- return n.headers = { ...o, ...c, ...t.headers }, {
3322
- url: V(r),
3323
- options: n
3443
+ c && (a = c.baseOptions);
3444
+ const r = { method: "GET", ...a, ...t }, o = {}, s = {};
3445
+ o.Accept = "application/json", v(n, s);
3446
+ let l = a && a.headers ? a.headers : {};
3447
+ return r.headers = { ...o, ...l, ...t.headers }, {
3448
+ url: V(n),
3449
+ options: r
3324
3450
  };
3325
3451
  },
3326
3452
  /**
@@ -3330,15 +3456,15 @@ const qe = function(l) {
3330
3456
  * @throws {RequiredError}
3331
3457
  */
3332
3458
  getTheme: async (t = {}) => {
3333
- const e = "/theme", r = new URL(e, P);
3459
+ const e = "/theme", n = new URL(e, P);
3334
3460
  let a;
3335
- l && (a = l.baseOptions);
3336
- const n = { method: "GET", ...a, ...t }, o = {}, s = {};
3337
- o.Accept = "application/json", v(r, s);
3338
- let c = a && a.headers ? a.headers : {};
3339
- return n.headers = { ...o, ...c, ...t.headers }, {
3340
- url: V(r),
3341
- options: n
3461
+ c && (a = c.baseOptions);
3462
+ const r = { method: "GET", ...a, ...t }, o = {}, s = {};
3463
+ o.Accept = "application/json", v(n, s);
3464
+ let l = a && a.headers ? a.headers : {};
3465
+ return r.headers = { ...o, ...l, ...t.headers }, {
3466
+ url: V(n),
3467
+ options: r
3342
3468
  };
3343
3469
  },
3344
3470
  /**
@@ -3350,20 +3476,20 @@ const qe = function(l) {
3350
3476
  */
3351
3477
  updateTheme: async (t, e = {}) => {
3352
3478
  h("updateTheme", "theme", t);
3353
- const r = "/theme", a = new URL(r, P);
3354
- let n;
3355
- l && (n = l.baseOptions);
3356
- const o = { method: "PUT", ...n, ...e }, s = {}, c = {};
3357
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
3358
- let i = n && n.headers ? n.headers : {};
3359
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
3479
+ const n = "/theme", a = new URL(n, P);
3480
+ let r;
3481
+ c && (r = c.baseOptions);
3482
+ const o = { method: "PUT", ...r, ...e }, s = {}, l = {};
3483
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
3484
+ let i = r && r.headers ? r.headers : {};
3485
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(t, o, c), {
3360
3486
  url: V(a),
3361
3487
  options: o
3362
3488
  };
3363
3489
  }
3364
3490
  };
3365
- }, M = function(l) {
3366
- const t = qe(l);
3491
+ }, B = function(c) {
3492
+ const t = Je(c);
3367
3493
  return {
3368
3494
  /**
3369
3495
  * 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.
@@ -3372,8 +3498,8 @@ const qe = function(l) {
3372
3498
  * @throws {RequiredError}
3373
3499
  */
3374
3500
  async deleteTheme(e) {
3375
- const r = await t.deleteTheme(e), a = l?.serverIndex ?? 0, n = b["PublisherApi.deleteTheme"]?.[a]?.url;
3376
- return (o, s) => O(r, u, g, l)(o, n || s);
3501
+ const n = await t.deleteTheme(e), a = c?.serverIndex ?? 0, r = b["PublisherApi.deleteTheme"]?.[a]?.url;
3502
+ return (o, s) => O(n, u, g, c)(o, r || s);
3377
3503
  },
3378
3504
  /**
3379
3505
  * 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.
@@ -3382,8 +3508,8 @@ const qe = function(l) {
3382
3508
  * @throws {RequiredError}
3383
3509
  */
3384
3510
  async getStatus(e) {
3385
- const r = await t.getStatus(e), a = l?.serverIndex ?? 0, n = b["PublisherApi.getStatus"]?.[a]?.url;
3386
- return (o, s) => O(r, u, g, l)(o, n || s);
3511
+ const n = await t.getStatus(e), a = c?.serverIndex ?? 0, r = b["PublisherApi.getStatus"]?.[a]?.url;
3512
+ return (o, s) => O(n, u, g, c)(o, r || s);
3387
3513
  },
3388
3514
  /**
3389
3515
  * 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.
@@ -3392,8 +3518,8 @@ const qe = function(l) {
3392
3518
  * @throws {RequiredError}
3393
3519
  */
3394
3520
  async getTheme(e) {
3395
- const r = await t.getTheme(e), a = l?.serverIndex ?? 0, n = b["PublisherApi.getTheme"]?.[a]?.url;
3396
- return (o, s) => O(r, u, g, l)(o, n || s);
3521
+ const n = await t.getTheme(e), a = c?.serverIndex ?? 0, r = b["PublisherApi.getTheme"]?.[a]?.url;
3522
+ return (o, s) => O(n, u, g, c)(o, r || s);
3397
3523
  },
3398
3524
  /**
3399
3525
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3402,13 +3528,13 @@ const qe = function(l) {
3402
3528
  * @param {*} [options] Override http request option.
3403
3529
  * @throws {RequiredError}
3404
3530
  */
3405
- async updateTheme(e, r) {
3406
- const a = await t.updateTheme(e, r), n = l?.serverIndex ?? 0, o = b["PublisherApi.updateTheme"]?.[n]?.url;
3407
- return (s, c) => O(a, u, g, l)(s, o || c);
3531
+ async updateTheme(e, n) {
3532
+ const a = await t.updateTheme(e, n), r = c?.serverIndex ?? 0, o = b["PublisherApi.updateTheme"]?.[r]?.url;
3533
+ return (s, l) => O(a, u, g, c)(s, o || l);
3408
3534
  }
3409
3535
  };
3410
- }, bt = function(l, t, e) {
3411
- const r = M(l);
3536
+ }, Ut = function(c, t, e) {
3537
+ const n = B(c);
3412
3538
  return {
3413
3539
  /**
3414
3540
  * 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.
@@ -3417,7 +3543,7 @@ const qe = function(l) {
3417
3543
  * @throws {RequiredError}
3418
3544
  */
3419
3545
  deleteTheme(a) {
3420
- return r.deleteTheme(a).then((n) => n(e, t));
3546
+ return n.deleteTheme(a).then((r) => r(e, t));
3421
3547
  },
3422
3548
  /**
3423
3549
  * 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.
@@ -3426,7 +3552,7 @@ const qe = function(l) {
3426
3552
  * @throws {RequiredError}
3427
3553
  */
3428
3554
  getStatus(a) {
3429
- return r.getStatus(a).then((n) => n(e, t));
3555
+ return n.getStatus(a).then((r) => r(e, t));
3430
3556
  },
3431
3557
  /**
3432
3558
  * 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.
@@ -3435,7 +3561,7 @@ const qe = function(l) {
3435
3561
  * @throws {RequiredError}
3436
3562
  */
3437
3563
  getTheme(a) {
3438
- return r.getTheme(a).then((n) => n(e, t));
3564
+ return n.getTheme(a).then((r) => r(e, t));
3439
3565
  },
3440
3566
  /**
3441
3567
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3444,12 +3570,12 @@ const qe = function(l) {
3444
3570
  * @param {*} [options] Override http request option.
3445
3571
  * @throws {RequiredError}
3446
3572
  */
3447
- updateTheme(a, n) {
3448
- return r.updateTheme(a, n).then((o) => o(e, t));
3573
+ updateTheme(a, r) {
3574
+ return n.updateTheme(a, r).then((o) => o(e, t));
3449
3575
  }
3450
3576
  };
3451
3577
  };
3452
- class Qe extends C {
3578
+ class Xe extends x {
3453
3579
  /**
3454
3580
  * 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.
3455
3581
  * @summary Reset the instance theme to the boot seed or default
@@ -3457,7 +3583,7 @@ class Qe extends C {
3457
3583
  * @throws {RequiredError}
3458
3584
  */
3459
3585
  deleteTheme(t) {
3460
- return M(this.configuration).deleteTheme(t).then((e) => e(this.axios, this.basePath));
3586
+ return B(this.configuration).deleteTheme(t).then((e) => e(this.axios, this.basePath));
3461
3587
  }
3462
3588
  /**
3463
3589
  * 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.
@@ -3466,7 +3592,7 @@ class Qe extends C {
3466
3592
  * @throws {RequiredError}
3467
3593
  */
3468
3594
  getStatus(t) {
3469
- return M(this.configuration).getStatus(t).then((e) => e(this.axios, this.basePath));
3595
+ return B(this.configuration).getStatus(t).then((e) => e(this.axios, this.basePath));
3470
3596
  }
3471
3597
  /**
3472
3598
  * 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.
@@ -3475,7 +3601,7 @@ class Qe extends C {
3475
3601
  * @throws {RequiredError}
3476
3602
  */
3477
3603
  getTheme(t) {
3478
- return M(this.configuration).getTheme(t).then((e) => e(this.axios, this.basePath));
3604
+ return B(this.configuration).getTheme(t).then((e) => e(this.axios, this.basePath));
3479
3605
  }
3480
3606
  /**
3481
3607
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3485,10 +3611,10 @@ class Qe extends C {
3485
3611
  * @throws {RequiredError}
3486
3612
  */
3487
3613
  updateTheme(t, e) {
3488
- return M(this.configuration).updateTheme(t, e).then((r) => r(this.axios, this.basePath));
3614
+ return B(this.configuration).updateTheme(t, e).then((n) => n(this.axios, this.basePath));
3489
3615
  }
3490
3616
  }
3491
- const ze = function(l) {
3617
+ const Ze = function(c) {
3492
3618
  return {
3493
3619
  /**
3494
3620
  * 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.
@@ -3497,15 +3623,15 @@ const ze = function(l) {
3497
3623
  * @throws {RequiredError}
3498
3624
  */
3499
3625
  getWatchStatus: async (t = {}) => {
3500
- const e = "/watch-mode/status", r = new URL(e, P);
3626
+ const e = "/watch-mode/status", n = new URL(e, P);
3501
3627
  let a;
3502
- l && (a = l.baseOptions);
3503
- const n = { method: "GET", ...a, ...t }, o = {}, s = {};
3504
- o.Accept = "application/json", v(r, s);
3505
- let c = a && a.headers ? a.headers : {};
3506
- return n.headers = { ...o, ...c, ...t.headers }, {
3507
- url: V(r),
3508
- options: n
3628
+ c && (a = c.baseOptions);
3629
+ const r = { method: "GET", ...a, ...t }, o = {}, s = {};
3630
+ o.Accept = "application/json", v(n, s);
3631
+ let l = a && a.headers ? a.headers : {};
3632
+ return r.headers = { ...o, ...l, ...t.headers }, {
3633
+ url: V(n),
3634
+ options: r
3509
3635
  };
3510
3636
  },
3511
3637
  /**
@@ -3517,13 +3643,13 @@ const ze = function(l) {
3517
3643
  */
3518
3644
  startWatching: async (t, e = {}) => {
3519
3645
  h("startWatching", "startWatchRequest", t);
3520
- const r = "/watch-mode/start", a = new URL(r, P);
3521
- let n;
3522
- l && (n = l.baseOptions);
3523
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
3524
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
3525
- let i = n && n.headers ? n.headers : {};
3526
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
3646
+ const n = "/watch-mode/start", a = new URL(n, P);
3647
+ let r;
3648
+ c && (r = c.baseOptions);
3649
+ const o = { method: "POST", ...r, ...e }, s = {}, l = {};
3650
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
3651
+ let i = r && r.headers ? r.headers : {};
3652
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(t, o, c), {
3527
3653
  url: V(a),
3528
3654
  options: o
3529
3655
  };
@@ -3535,15 +3661,15 @@ const ze = function(l) {
3535
3661
  * @throws {RequiredError}
3536
3662
  */
3537
3663
  stopWatching: async (t = {}) => {
3538
- const e = "/watch-mode/stop", r = new URL(e, P);
3664
+ const e = "/watch-mode/stop", n = new URL(e, P);
3539
3665
  let a;
3540
- l && (a = l.baseOptions);
3541
- const n = { method: "POST", ...a, ...t }, o = {}, s = {};
3542
- o.Accept = "application/json", v(r, s);
3543
- let c = a && a.headers ? a.headers : {};
3544
- return n.headers = { ...o, ...c, ...t.headers }, {
3545
- url: V(r),
3546
- options: n
3666
+ c && (a = c.baseOptions);
3667
+ const r = { method: "POST", ...a, ...t }, o = {}, s = {};
3668
+ o.Accept = "application/json", v(n, s);
3669
+ let l = a && a.headers ? a.headers : {};
3670
+ return r.headers = { ...o, ...l, ...t.headers }, {
3671
+ url: V(n),
3672
+ options: r
3547
3673
  };
3548
3674
  },
3549
3675
  /**
@@ -3554,22 +3680,22 @@ const ze = function(l) {
3554
3680
  * @param {*} [options] Override http request option.
3555
3681
  * @throws {RequiredError}
3556
3682
  */
3557
- streamPackageEvents: async (t, e, r = {}) => {
3683
+ streamPackageEvents: async (t, e, n = {}) => {
3558
3684
  h("streamPackageEvents", "environmentName", t), h("streamPackageEvents", "packageName", e);
3559
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
3685
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
3560
3686
  let o;
3561
- l && (o = l.baseOptions);
3562
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
3563
- c.Accept = "text/event-stream,application/json", v(n, i);
3687
+ c && (o = c.baseOptions);
3688
+ const s = { method: "GET", ...o, ...n }, l = {}, i = {};
3689
+ l.Accept = "text/event-stream,application/json", v(r, i);
3564
3690
  let p = o && o.headers ? o.headers : {};
3565
- return s.headers = { ...c, ...p, ...r.headers }, {
3566
- url: V(n),
3691
+ return s.headers = { ...l, ...p, ...n.headers }, {
3692
+ url: V(r),
3567
3693
  options: s
3568
3694
  };
3569
3695
  }
3570
3696
  };
3571
- }, f = function(l) {
3572
- const t = ze(l);
3697
+ }, j = function(c) {
3698
+ const t = Ze(c);
3573
3699
  return {
3574
3700
  /**
3575
3701
  * 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.
@@ -3578,8 +3704,8 @@ const ze = function(l) {
3578
3704
  * @throws {RequiredError}
3579
3705
  */
3580
3706
  async getWatchStatus(e) {
3581
- const r = await t.getWatchStatus(e), a = l?.serverIndex ?? 0, n = b["WatchModeApi.getWatchStatus"]?.[a]?.url;
3582
- return (o, s) => O(r, u, g, l)(o, n || s);
3707
+ const n = await t.getWatchStatus(e), a = c?.serverIndex ?? 0, r = b["WatchModeApi.getWatchStatus"]?.[a]?.url;
3708
+ return (o, s) => O(n, u, g, c)(o, r || s);
3583
3709
  },
3584
3710
  /**
3585
3711
  * 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.
@@ -3588,9 +3714,9 @@ const ze = function(l) {
3588
3714
  * @param {*} [options] Override http request option.
3589
3715
  * @throws {RequiredError}
3590
3716
  */
3591
- async startWatching(e, r) {
3592
- const a = await t.startWatching(e, r), n = l?.serverIndex ?? 0, o = b["WatchModeApi.startWatching"]?.[n]?.url;
3593
- return (s, c) => O(a, u, g, l)(s, o || c);
3717
+ async startWatching(e, n) {
3718
+ const a = await t.startWatching(e, n), r = c?.serverIndex ?? 0, o = b["WatchModeApi.startWatching"]?.[r]?.url;
3719
+ return (s, l) => O(a, u, g, c)(s, o || l);
3594
3720
  },
3595
3721
  /**
3596
3722
  * 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.
@@ -3599,8 +3725,8 @@ const ze = function(l) {
3599
3725
  * @throws {RequiredError}
3600
3726
  */
3601
3727
  async stopWatching(e) {
3602
- const r = await t.stopWatching(e), a = l?.serverIndex ?? 0, n = b["WatchModeApi.stopWatching"]?.[a]?.url;
3603
- return (o, s) => O(r, u, g, l)(o, n || s);
3728
+ const n = await t.stopWatching(e), a = c?.serverIndex ?? 0, r = b["WatchModeApi.stopWatching"]?.[a]?.url;
3729
+ return (o, s) => O(n, u, g, c)(o, r || s);
3604
3730
  },
3605
3731
  /**
3606
3732
  * 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.
@@ -3610,13 +3736,13 @@ const ze = function(l) {
3610
3736
  * @param {*} [options] Override http request option.
3611
3737
  * @throws {RequiredError}
3612
3738
  */
3613
- async streamPackageEvents(e, r, a) {
3614
- const n = await t.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = b["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3615
- return (c, i) => O(n, u, g, l)(c, s || i);
3739
+ async streamPackageEvents(e, n, a) {
3740
+ const r = await t.streamPackageEvents(e, n, a), o = c?.serverIndex ?? 0, s = b["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3741
+ return (l, i) => O(r, u, g, c)(l, s || i);
3616
3742
  }
3617
3743
  };
3618
- }, Pt = function(l, t, e) {
3619
- const r = f(l);
3744
+ }, wt = function(c, t, e) {
3745
+ const n = j(c);
3620
3746
  return {
3621
3747
  /**
3622
3748
  * 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.
@@ -3625,7 +3751,7 @@ const ze = function(l) {
3625
3751
  * @throws {RequiredError}
3626
3752
  */
3627
3753
  getWatchStatus(a) {
3628
- return r.getWatchStatus(a).then((n) => n(e, t));
3754
+ return n.getWatchStatus(a).then((r) => r(e, t));
3629
3755
  },
3630
3756
  /**
3631
3757
  * 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.
@@ -3634,8 +3760,8 @@ const ze = function(l) {
3634
3760
  * @param {*} [options] Override http request option.
3635
3761
  * @throws {RequiredError}
3636
3762
  */
3637
- startWatching(a, n) {
3638
- return r.startWatching(a, n).then((o) => o(e, t));
3763
+ startWatching(a, r) {
3764
+ return n.startWatching(a, r).then((o) => o(e, t));
3639
3765
  },
3640
3766
  /**
3641
3767
  * 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.
@@ -3644,7 +3770,7 @@ const ze = function(l) {
3644
3770
  * @throws {RequiredError}
3645
3771
  */
3646
3772
  stopWatching(a) {
3647
- return r.stopWatching(a).then((n) => n(e, t));
3773
+ return n.stopWatching(a).then((r) => r(e, t));
3648
3774
  },
3649
3775
  /**
3650
3776
  * 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.
@@ -3654,12 +3780,12 @@ const ze = function(l) {
3654
3780
  * @param {*} [options] Override http request option.
3655
3781
  * @throws {RequiredError}
3656
3782
  */
3657
- streamPackageEvents(a, n, o) {
3658
- return r.streamPackageEvents(a, n, o).then((s) => s(e, t));
3783
+ streamPackageEvents(a, r, o) {
3784
+ return n.streamPackageEvents(a, r, o).then((s) => s(e, t));
3659
3785
  }
3660
3786
  };
3661
3787
  };
3662
- class Le extends C {
3788
+ class ea extends x {
3663
3789
  /**
3664
3790
  * 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.
3665
3791
  * @summary Get watch mode status
@@ -3667,7 +3793,7 @@ class Le extends C {
3667
3793
  * @throws {RequiredError}
3668
3794
  */
3669
3795
  getWatchStatus(t) {
3670
- return f(this.configuration).getWatchStatus(t).then((e) => e(this.axios, this.basePath));
3796
+ return j(this.configuration).getWatchStatus(t).then((e) => e(this.axios, this.basePath));
3671
3797
  }
3672
3798
  /**
3673
3799
  * 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.
@@ -3677,7 +3803,7 @@ class Le extends C {
3677
3803
  * @throws {RequiredError}
3678
3804
  */
3679
3805
  startWatching(t, e) {
3680
- return f(this.configuration).startWatching(t, e).then((r) => r(this.axios, this.basePath));
3806
+ return j(this.configuration).startWatching(t, e).then((n) => n(this.axios, this.basePath));
3681
3807
  }
3682
3808
  /**
3683
3809
  * 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.
@@ -3686,7 +3812,7 @@ class Le extends C {
3686
3812
  * @throws {RequiredError}
3687
3813
  */
3688
3814
  stopWatching(t) {
3689
- return f(this.configuration).stopWatching(t).then((e) => e(this.axios, this.basePath));
3815
+ return j(this.configuration).stopWatching(t).then((e) => e(this.axios, this.basePath));
3690
3816
  }
3691
3817
  /**
3692
3818
  * 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.
@@ -3696,11 +3822,11 @@ class Le extends C {
3696
3822
  * @param {*} [options] Override http request option.
3697
3823
  * @throws {RequiredError}
3698
3824
  */
3699
- streamPackageEvents(t, e, r) {
3700
- return f(this.configuration).streamPackageEvents(t, e, r).then((a) => a(this.axios, this.basePath));
3825
+ streamPackageEvents(t, e, n) {
3826
+ return j(this.configuration).streamPackageEvents(t, e, n).then((a) => a(this.axios, this.basePath));
3701
3827
  }
3702
3828
  }
3703
- class He {
3829
+ class aa {
3704
3830
  /**
3705
3831
  * parameter for apiKey security
3706
3832
  * @param name security name
@@ -3773,247 +3899,260 @@ class He {
3773
3899
  return t !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(t);
3774
3900
  }
3775
3901
  }
3776
- const _e = new se({
3902
+ const ta = new me({
3777
3903
  defaultOptions: {
3778
3904
  queries: {
3905
+ // Not retried: `useQueryWithApiError` surfaces a failure the moment it
3906
+ // happens, and the SDK's specs and error states are written for that.
3779
3907
  retry: !1,
3780
- throwOnError: !1
3908
+ throwOnError: !1,
3909
+ // Returning to the tab is not a reason to re-read: navigation, a
3910
+ // mutation's invalidation or a hook's own polling is. Without this,
3911
+ // every query on the page (a dashboard's tiles among them, billed by
3912
+ // the warehouse) refetched on each refocus once stale. A query whose
3913
+ // data changes while the reader is away opts back in.
3914
+ refetchOnWindowFocus: !1
3781
3915
  },
3782
3916
  mutations: {
3783
3917
  retry: !1,
3784
3918
  throwOnError: !1
3785
3919
  }
3786
3920
  }
3787
- }), vt = {
3921
+ }), Et = {
3788
3922
  staleTime: 300 * 1e3,
3789
3923
  refetchOnWindowFocus: !1,
3790
3924
  refetchOnReconnect: !1
3791
- }, L = "publisher:themeMode";
3792
- function We() {
3925
+ }, $ = "publisher:themeMode";
3926
+ function na() {
3793
3927
  if (!(typeof window > "u"))
3794
3928
  try {
3795
- const l = window.localStorage.getItem(L);
3796
- if (l === "light" || l === "dark" || l === "auto") return l;
3929
+ const c = window.localStorage.getItem($);
3930
+ if (c === "light" || c === "dark" || c === "auto") return c;
3797
3931
  } catch {
3798
3932
  }
3799
3933
  }
3800
- function Ge(l) {
3934
+ function ra(c) {
3801
3935
  if (!(typeof window > "u"))
3802
3936
  try {
3803
- l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
3937
+ c === void 0 ? window.localStorage.removeItem($) : window.localStorage.setItem($, c);
3804
3938
  } catch {
3805
3939
  }
3806
3940
  }
3807
- function Ye() {
3941
+ function oa() {
3808
3942
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3809
3943
  }
3810
3944
  u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3811
- const ae = K(void 0), Ke = (l, t) => {
3812
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
3813
- baseURL: l || e,
3945
+ const le = ae(void 0), sa = (c, t) => {
3946
+ const e = `${window.location.protocol}//${window.location.host}/api/v0`, n = u.create({
3947
+ baseURL: c || e,
3814
3948
  withCredentials: !0,
3815
3949
  timeout: 6e5
3816
3950
  });
3817
- r.interceptors.request.use(async (n) => {
3951
+ n.interceptors.request.use(async (r) => {
3818
3952
  const o = await t?.();
3819
- return n.headers.Authorization = o || "", n;
3953
+ return r.headers.Authorization = o || "", r;
3820
3954
  });
3821
- const a = new He({ basePath: e });
3955
+ const a = new aa({ basePath: e });
3822
3956
  return {
3823
- models: new fe(a, e, r),
3824
- publisher: new Qe(a, e, r),
3825
- environments: new Ue(a, e, r),
3826
- packages: new De(a, e, r),
3827
- dashboards: new Ce(a, e, r),
3828
- dataApps: new xe(a, e, r),
3829
- notebooks: new Be(a, e, r),
3830
- connections: new ke(a, e, r),
3831
- databases: new Ne(a, e, r),
3832
- materializations: new Ee(
3957
+ models: new We(a, e, n),
3958
+ publisher: new Xe(a, e, n),
3959
+ environments: new ze(a, e, n),
3960
+ packages: new Ye(a, e, n),
3961
+ dashboards: new Be(a, e, n),
3962
+ dataApps: new Fe(a, e, n),
3963
+ notebooks: new $e(a, e, n),
3964
+ connections: new Ee(a, e, n),
3965
+ databases: new qe(a, e, n),
3966
+ materializations: new He(
3833
3967
  a,
3834
3968
  e,
3835
- r
3969
+ n
3836
3970
  ),
3837
- watchMode: new Le(a, e, r)
3971
+ watchMode: new ea(a, e, n)
3838
3972
  };
3839
- }, Vt = (l) => /* @__PURE__ */ B(ce, { client: _e, children: /* @__PURE__ */ B($e, { ...l }) }), $e = ({
3840
- children: l,
3973
+ }, ft = (c) => /* @__PURE__ */ D(ue, { client: ta, children: /* @__PURE__ */ D(ca, { ...c }) }), ca = ({
3974
+ children: c,
3841
3975
  getAccessToken: t,
3842
3976
  baseURL: e,
3843
- mutable: r,
3977
+ mutable: n,
3844
3978
  theme: a
3845
3979
  }) => {
3846
- const n = j(
3847
- () => Ke(e, t),
3980
+ const r = F(
3981
+ () => sa(e, t),
3848
3982
  [e, t]
3849
- ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = le({
3983
+ ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = ge({
3850
3984
  queryKey: ["status"],
3851
- queryFn: async () => (await n.publisher.getStatus()).data
3985
+ queryFn: async () => (await r.publisher.getStatus()).data
3852
3986
  });
3853
3987
  s.error && console.error("Failed to fetch publisher status:", s.error);
3854
- const c = s.data?.frozenConfig, i = s.data?.theme, p = s.isLoading;
3988
+ const l = s.data?.frozenConfig, i = s.data?.theme, p = s.isLoading;
3855
3989
  let d;
3856
- s.isLoading || s.error ? d = r : c ? d = !1 : d = r ?? !0;
3857
- const m = j(
3990
+ s.isLoading || s.error ? d = n : l ? d = !1 : d = n ?? !0;
3991
+ const m = F(
3858
3992
  () => [i, a],
3859
3993
  [i, a]
3860
- ), [S, R] = W(
3861
- We
3862
- ), [I, D] = W(Ye);
3863
- ie(() => {
3994
+ ), [S, k] = J(
3995
+ na
3996
+ ), [C, R] = J(oa);
3997
+ be(() => {
3864
3998
  if (typeof window > "u" || !window.matchMedia) return;
3865
- const N = window.matchMedia("(prefers-color-scheme: dark)"), _ = (oe) => D(oe.matches);
3866
- return N.addEventListener("change", _), () => N.removeEventListener("change", _);
3999
+ const U = window.matchMedia("(prefers-color-scheme: dark)"), Y = (he) => R(he.matches);
4000
+ return U.addEventListener("change", Y), () => U.removeEventListener("change", Y);
3867
4001
  }, []);
3868
- const te = pe((N) => {
3869
- R(N), Ge(N);
3870
- }, []), H = i?.allowUserToggle ?? !0, q = H ? S : void 0, ne = j(
3871
- () => Pe(
4002
+ const ie = Pe((U) => {
4003
+ k(U), ra(U);
4004
+ }, []), K = i?.allowUserToggle ?? !0, z = K ? S : void 0, pe = F(
4005
+ () => Re(
3872
4006
  i?.defaultMode,
3873
- q,
3874
- I
4007
+ z,
4008
+ C
3875
4009
  ),
3876
- [i?.defaultMode, q, I]
3877
- ), re = {
4010
+ [i?.defaultMode, z, C]
4011
+ ), de = {
3878
4012
  server: o,
3879
4013
  getAccessToken: t,
3880
- apiClients: n,
4014
+ apiClients: r,
3881
4015
  mutable: d,
3882
4016
  isLoadingStatus: p,
3883
4017
  instanceTheme: i
3884
4018
  };
3885
- return /* @__PURE__ */ B(ae.Provider, { value: re, children: /* @__PURE__ */ B(
3886
- ve,
4019
+ return /* @__PURE__ */ D(le.Provider, { value: de, children: /* @__PURE__ */ D(
4020
+ Ne,
3887
4021
  {
3888
4022
  layers: m,
3889
- mode: ne,
3890
- userChoice: q,
3891
- setMode: te,
3892
- allowUserToggle: H,
3893
- children: l
4023
+ mode: pe,
4024
+ userChoice: z,
4025
+ setMode: ie,
4026
+ allowUserToggle: K,
4027
+ children: c
3894
4028
  }
3895
4029
  ) });
3896
- }, Ot = () => {
3897
- const l = Y(ae);
3898
- if (l === void 0)
4030
+ }, Mt = () => {
4031
+ const c = ee(le);
4032
+ if (c === void 0)
3899
4033
  throw new Error("useServer must be used within a ServerProvider");
3900
- return l;
4034
+ return c;
3901
4035
  };
3902
4036
  export {
3903
- Me as $,
3904
- ma as A,
3905
- Ne as B,
3906
- ga as C,
3907
- Sa as D,
3908
- Re as E,
3909
- lt as F,
3910
- ee as G,
3911
- Ue as H,
3912
- Te as I,
3913
- it as J,
3914
- T as K,
3915
- ut as L,
3916
- Ca as M,
3917
- Ia as N,
3918
- xa as O,
3919
- Ra as P,
3920
- Na as Q,
3921
- Ua as R,
3922
- Ta as S,
3923
- wa as T,
3924
- dt as U,
3925
- Ea as V,
3926
- Ee as W,
3927
- we as X,
3928
- pt as Y,
3929
- U as Z,
3930
- fe as _,
3931
- ua as a,
3932
- ht as a0,
3933
- w as a1,
3934
- fa as a2,
3935
- Ba as a3,
3936
- ja as a4,
3937
- Ma as a5,
3938
- Be as a6,
3939
- je as a7,
3940
- mt as a8,
3941
- F as a9,
3942
- at as aA,
3943
- tt as aB,
3944
- Le as aC,
3945
- ze as aD,
4037
+ We as $,
4038
+ Ca as A,
4039
+ ja as B,
4040
+ xa as C,
4041
+ fa as D,
4042
+ qe as E,
4043
+ De as F,
4044
+ yt as G,
4045
+ ce as H,
4046
+ ze as I,
4047
+ Qe as J,
4048
+ At as K,
4049
+ w as L,
4050
+ Nt as M,
4051
+ Fa as N,
4052
+ Da as O,
4053
+ qa as P,
4054
+ Qa as Q,
4055
+ za as R,
4056
+ Ha as S,
4057
+ La as T,
4058
+ _a as U,
4059
+ It as V,
4060
+ Wa as W,
4061
+ He as X,
4062
+ Le as Y,
4063
+ Ct as Z,
4064
+ E as _,
4065
+ Ia as a,
4066
+ X as a$,
4067
+ _e as a0,
4068
+ xt as a1,
4069
+ f as a2,
4070
+ $a as a3,
4071
+ Ya as a4,
4072
+ Ka as a5,
4073
+ Ga as a6,
4074
+ $e as a7,
4075
+ Ge as a8,
4076
+ Rt as a9,
4077
+ ut as aA,
4078
+ gt as aB,
4079
+ ft as aC,
4080
+ bt as aD,
3946
4081
  Pt as aE,
3947
- f as aF,
3948
- _e as aG,
3949
- Ot as aH,
3950
- be as aI,
3951
- ha as aJ,
3952
- $ as aK,
3953
- sa as aL,
3954
- pa as aM,
3955
- da as aN,
3956
- ra as aO,
3957
- oa as aP,
3958
- na as aQ,
3959
- ta as aR,
3960
- ia as aS,
3961
- ca as aT,
3962
- la as aU,
3963
- A as aV,
3964
- G as aW,
3965
- ve as aX,
3966
- Pe as aY,
3967
- vt as aZ,
3968
- Qa as aa,
3969
- qa as ab,
3970
- Da as ac,
3971
- Fa as ad,
3972
- za as ae,
3973
- La as af,
3974
- De as ag,
3975
- Fe as ah,
3976
- gt as ai,
3977
- E as aj,
3978
- Ha as ak,
3979
- _a as al,
3980
- Qe as am,
3981
- qe as an,
3982
- bt as ao,
3983
- M as ap,
3984
- Wa as aq,
3985
- Ga as ar,
3986
- Ya as as,
3987
- Ka as at,
3988
- $a as au,
3989
- Xa as av,
3990
- Ja as aw,
3991
- Za as ax,
3992
- et as ay,
3993
- Vt as az,
3994
- ba as b,
3995
- Pa as c,
3996
- He as d,
3997
- Va as e,
3998
- Oa as f,
3999
- va as g,
4000
- ke as h,
4001
- Se as i,
4002
- nt as j,
4003
- y as k,
4004
- ot as l,
4005
- ye as m,
4006
- rt as n,
4007
- X as o,
4008
- ka as p,
4009
- Ce as q,
4010
- Ae as r,
4011
- st as s,
4012
- z as t,
4013
- ya as u,
4014
- xe as v,
4015
- Ie as w,
4016
- ct as x,
4017
- Z as y,
4018
- Aa as z
4082
+ ea as aF,
4083
+ Ze as aG,
4084
+ wt as aH,
4085
+ j as aI,
4086
+ ta as aJ,
4087
+ Aa as aK,
4088
+ Mt as aL,
4089
+ xe as aM,
4090
+ ne as aN,
4091
+ ua as aO,
4092
+ ma as aP,
4093
+ Oa as aQ,
4094
+ Pa as aR,
4095
+ Sa as aS,
4096
+ ka as aT,
4097
+ ga as aU,
4098
+ ba as aV,
4099
+ va as aW,
4100
+ Va as aX,
4101
+ I as aY,
4102
+ Z as aZ,
4103
+ Ne as a_,
4104
+ Q as aa,
4105
+ at as ab,
4106
+ tt as ac,
4107
+ et as ad,
4108
+ Za as ae,
4109
+ Xa as af,
4110
+ Ja as ag,
4111
+ nt as ah,
4112
+ rt as ai,
4113
+ Ye as aj,
4114
+ Ke as ak,
4115
+ Tt as al,
4116
+ M as am,
4117
+ ot as an,
4118
+ st as ao,
4119
+ Xe as ap,
4120
+ Je as aq,
4121
+ Ut as ar,
4122
+ B as as,
4123
+ ct as at,
4124
+ lt as au,
4125
+ it as av,
4126
+ pt as aw,
4127
+ dt as ax,
4128
+ mt as ay,
4129
+ ht as az,
4130
+ Ra as b,
4131
+ ya as b0,
4132
+ Re as b1,
4133
+ Et as b2,
4134
+ Na as c,
4135
+ Ta as d,
4136
+ aa as e,
4137
+ wa as f,
4138
+ Ea as g,
4139
+ Ua as h,
4140
+ Ee as i,
4141
+ we as j,
4142
+ vt as k,
4143
+ A as l,
4144
+ Ot as m,
4145
+ fe as n,
4146
+ Vt as o,
4147
+ oe as p,
4148
+ Ma as q,
4149
+ Be as r,
4150
+ Me as s,
4151
+ St as t,
4152
+ G as u,
4153
+ Ba as v,
4154
+ Fe as w,
4155
+ je as x,
4156
+ kt as y,
4157
+ se as z
4019
4158
  };