@malloy-publisher/sdk 0.3.1 → 0.4.0

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 (129) hide show
  1. package/README.md +14 -9
  2. package/dist/{DocumentStorageProvider-tGvodI8f.es.js → DocumentStorageProvider-CyOJ0hqf.es.js} +7114 -6939
  3. package/dist/DocumentStorageProvider-DGPQEd_l.cjs.js +134 -0
  4. package/dist/{RenderedResult-mDE-4u8S.es.js → RenderedResult-BnPzJ9Jf.es.js} +64 -57
  5. package/dist/{RenderedResult-CPi6uQWq.cjs.js → RenderedResult-Dp22kZsQ.cjs.js} +2 -2
  6. package/dist/{ServerProvider-X2Ma0HRs.es.js → ServerProvider-BWOEKg0O.es.js} +1217 -1244
  7. package/dist/ServerProvider-Cc489A3f.cjs.js +1 -0
  8. package/dist/builder/index.cjs.js +41 -41
  9. package/dist/builder/index.es.js +2752 -2831
  10. package/dist/client/api.d.ts +100 -42
  11. package/dist/client/index.cjs.js +1 -1
  12. package/dist/client/index.es.js +1 -1
  13. package/dist/components/AppDialog.d.ts +30 -0
  14. package/dist/components/BackLink.d.ts +32 -0
  15. package/dist/components/Dashboard/DashboardBar.d.ts +21 -0
  16. package/dist/components/Dashboard/telemetry.d.ts +10 -5
  17. package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +12 -10
  18. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +8 -2
  19. package/dist/components/DashboardBuilder/DashboardEditor.d.ts +8 -10
  20. package/dist/components/DashboardBuilder/newDashboard.d.ts +17 -0
  21. package/dist/components/DashboardBuilder/spliceDocument.d.ts +10 -1
  22. package/dist/components/ItemRow.d.ts +38 -0
  23. package/dist/components/Materializations/MaterializationDetailDialog.d.ts +1 -2
  24. package/dist/components/Materializations/MaterializationRunsList.d.ts +1 -5
  25. package/dist/components/Materializations/Materializations.d.ts +7 -3
  26. package/dist/components/Materializations/ScopeButton.d.ts +18 -0
  27. package/dist/components/Materializations/SectionLabel.d.ts +7 -4
  28. package/dist/components/Materializations/TriggerLabel.d.ts +14 -0
  29. package/dist/components/Materializations/index.d.ts +0 -1
  30. package/dist/components/Package/ContentTypeIcon.d.ts +3 -5
  31. package/dist/components/Package/NewDashboardDialog.d.ts +18 -0
  32. package/dist/components/Package/index.d.ts +0 -1
  33. package/dist/components/PackageSection.d.ts +23 -0
  34. package/dist/components/buttons.d.ts +53 -0
  35. package/dist/components/index.d.ts +5 -0
  36. package/dist/components/styles.d.ts +49 -40
  37. package/dist/hooks/useCrudMutation.d.ts +42 -0
  38. package/dist/index.cjs.js +22 -26
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.es.js +17425 -20672
  41. package/dist/telemetry/consoleEvents.d.ts +60 -0
  42. package/dist/utils/sha256.d.ts +2 -0
  43. package/package.json +1 -1
  44. package/src/components/AppDialog.tsx +115 -0
  45. package/src/components/BackLink.tsx +83 -0
  46. package/src/components/Connections/AddConnectionDialog.tsx +50 -70
  47. package/src/components/Connections/DeleteConnectionDialog.tsx +23 -50
  48. package/src/components/Connections/EditConnectionDialog.tsx +54 -73
  49. package/src/components/Dashboard/DashboardBar.tsx +88 -0
  50. package/src/components/Dashboard/telemetry.ts +10 -3
  51. package/src/components/DashboardBuilder/AddTileDialog.tsx +141 -143
  52. package/src/components/DashboardBuilder/BuilderToolbar.tsx +110 -218
  53. package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +5 -11
  54. package/src/components/DashboardBuilder/DashboardBuilder.tsx +184 -171
  55. package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +163 -0
  56. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +2 -25
  57. package/src/components/DashboardBuilder/DashboardEditor.tsx +135 -61
  58. package/src/components/DashboardBuilder/DiffDialog.tsx +75 -82
  59. package/src/components/DashboardBuilder/DrillDialog.tsx +144 -156
  60. package/src/components/DashboardBuilder/FilterDialog.tsx +276 -295
  61. package/src/components/DashboardBuilder/FilterStrip.tsx +11 -10
  62. package/src/components/DashboardBuilder/newDashboard.spec.ts +40 -0
  63. package/src/components/DashboardBuilder/newDashboard.ts +48 -0
  64. package/src/components/DashboardBuilder/spliceDocument.spec.ts +53 -0
  65. package/src/components/DashboardBuilder/spliceDocument.ts +45 -8
  66. package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +56 -0
  67. package/src/components/DashboardBuilder/useDashboardEditor.ts +12 -4
  68. package/src/components/Environment/About.tsx +14 -28
  69. package/src/components/Environment/AddPackageDialog.tsx +85 -154
  70. package/src/components/Environment/Connections.tsx +125 -205
  71. package/src/components/Environment/DeletePackageDialog.tsx +32 -77
  72. package/src/components/Environment/EditPackageDialog.tsx +46 -58
  73. package/src/components/Environment/Environment.tsx +34 -36
  74. package/src/components/Environment/Packages.tsx +63 -128
  75. package/src/components/Home/AddEnvironmentDialog.tsx +47 -70
  76. package/src/components/Home/DeleteEnvironmentDialog.tsx +32 -77
  77. package/src/components/Home/EditEnvironmentDialog.tsx +47 -61
  78. package/src/components/Home/Home.tsx +101 -214
  79. package/src/components/ItemRow.tsx +165 -0
  80. package/src/components/Materializations/CreateMaterializationDialog.tsx +34 -51
  81. package/src/components/Materializations/DeleteMaterializationDialog.tsx +31 -53
  82. package/src/components/Materializations/MaterializationDetailDialog.tsx +60 -69
  83. package/src/components/Materializations/MaterializationRunsList.tsx +29 -42
  84. package/src/components/Materializations/Materializations.tsx +137 -140
  85. package/src/components/Materializations/ScopeButton.tsx +85 -0
  86. package/src/components/Materializations/SectionLabel.tsx +7 -4
  87. package/src/components/Materializations/SetScheduleDialog.tsx +48 -89
  88. package/src/components/Materializations/TriggerLabel.tsx +36 -0
  89. package/src/components/Materializations/cron.spec.ts +113 -0
  90. package/src/components/Materializations/index.ts +0 -1
  91. package/src/components/Materializations/utils.spec.ts +182 -0
  92. package/src/components/Package/ContentTypeIcon.spec.ts +22 -37
  93. package/src/components/Package/ContentTypeIcon.tsx +10 -12
  94. package/src/components/Package/NewDashboardDialog.spec.tsx +129 -0
  95. package/src/components/Package/NewDashboardDialog.tsx +265 -0
  96. package/src/components/Package/Package.tsx +179 -238
  97. package/src/components/Package/index.ts +0 -1
  98. package/src/components/PackageSection.tsx +85 -0
  99. package/src/components/RenderedResult/RenderedResult.lifecycle.spec.tsx +198 -0
  100. package/src/components/RenderedResult/RenderedResult.tsx +22 -8
  101. package/src/components/ResultsDialog.tsx +8 -32
  102. package/src/components/buttons.tsx +114 -0
  103. package/src/components/designSystem.spec.tsx +316 -0
  104. package/src/components/given/paramCodec.spec.ts +1 -1
  105. package/src/components/index.ts +10 -0
  106. package/src/components/styles.ts +49 -85
  107. package/src/hooks/useCrudMutation.spec.tsx +119 -0
  108. package/src/hooks/useCrudMutation.tsx +85 -0
  109. package/src/index.ts +9 -0
  110. package/src/telemetry/consoleEvents.spec.ts +130 -0
  111. package/src/telemetry/consoleEvents.ts +124 -0
  112. package/src/theme/defaults.ts +34 -23
  113. package/src/theme/resolveTheme.spec.ts +9 -4
  114. package/src/theme/resolveTheme.ts +12 -8
  115. package/src/utils/sha256.ts +13 -0
  116. package/test/README.md +1 -1
  117. package/test/serverProvider.tsx +5 -2
  118. package/dist/DocumentStorageProvider-BeBD0uWc.cjs.js +0 -134
  119. package/dist/ServerProvider-CH71GsoL.cjs.js +0 -1
  120. package/dist/components/Materializations/CreateEnvMaterializationDialog.d.ts +0 -14
  121. package/dist/components/Materializations/EnvironmentMaterializations.d.ts +0 -7
  122. package/dist/components/Materializations/ScheduleCard.d.ts +0 -20
  123. package/dist/components/Materializations/TriggerChip.d.ts +0 -10
  124. package/dist/components/Package/Models.d.ts +0 -6
  125. package/src/components/Materializations/CreateEnvMaterializationDialog.tsx +0 -179
  126. package/src/components/Materializations/EnvironmentMaterializations.tsx +0 -267
  127. package/src/components/Materializations/ScheduleCard.tsx +0 -231
  128. package/src/components/Materializations/TriggerChip.tsx +0 -44
  129. package/src/components/Package/Models.tsx +0 -71
@@ -1,64 +1,292 @@
1
1
  import { jsx as F } from "react/jsx-runtime";
2
- import { QueryClient as ce, QueryClientProvider as ie, useQuery as de } from "@tanstack/react-query";
2
+ import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
3
3
  import m from "axios";
4
- import { useMemo as f, createContext as G, useContext as Y, useState as _, useEffect as pe, useCallback as he } from "react";
5
- import { styled as C, Card as J, CardContent as K, CardMedia as me } from "@mui/material";
6
- const u = "http://localhost/api/v0".replace(/\/+$/, "");
4
+ import { useMemo as B, createContext as G, useContext as Y, useState as _, useEffect as ie, useCallback as de } from "react";
5
+ import { styled as x, Card as pe, CardContent as he, CardMedia as me } from "@mui/material";
6
+ const C = {
7
+ blue: "#2563eb",
8
+ indigo: "#4f46e5",
9
+ violet: "#7c3aed",
10
+ pink: "#be185d",
11
+ red: "#dc2626",
12
+ orange: "#c2410c",
13
+ amber: "#b45309",
14
+ lime: "#4d7c0f",
15
+ emerald: "#059669",
16
+ teal: "#0f766e",
17
+ cyan: "#0e7490",
18
+ slate: "#475569"
19
+ }, aa = {
20
+ environment: C.emerald,
21
+ package: C.teal,
22
+ connection: C.orange
23
+ }, ta = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', ra = x(pe)({
24
+ display: "flex",
25
+ flexDirection: "column",
26
+ height: "100%",
27
+ boxShadow: "none",
28
+ border: "none",
29
+ backgroundColor: "transparent"
30
+ }), na = x(he)({
31
+ display: "flex",
32
+ flexDirection: "column",
33
+ padding: "0",
34
+ flexGrow: 1
35
+ }), oa = x(me)({
36
+ padding: "0"
37
+ }), sa = x("div")(({ theme: l }) => ({
38
+ backgroundColor: l.palette.background.default,
39
+ padding: "0 8px 0px 8px",
40
+ borderRadius: "12px",
41
+ boxShadow: "none",
42
+ border: "none",
43
+ maxWidth: "1200px",
44
+ margin: "0 auto"
45
+ })), la = x("div")({
46
+ marginBottom: "48px",
47
+ padding: "0",
48
+ backgroundColor: "transparent",
49
+ border: "none",
50
+ boxShadow: "none"
51
+ }), ca = x("div")({
52
+ backgroundColor: "transparent",
53
+ paddingTop: "12px",
54
+ paddingBottom: "2px",
55
+ borderRadius: "8px",
56
+ border: "none",
57
+ boxShadow: "none",
58
+ marginBottom: "0"
59
+ }), ia = x("div")({
60
+ height: "100%"
61
+ }), da = x("div")({
62
+ height: "75vh",
63
+ width: "100%",
64
+ overflowY: "auto"
65
+ }), ue = [
66
+ C.blue,
67
+ C.orange,
68
+ C.emerald,
69
+ C.pink,
70
+ C.violet,
71
+ C.amber,
72
+ C.cyan,
73
+ C.lime
74
+ ], ge = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
75
+ defaultMode: "light",
76
+ allowUserToggle: !0,
77
+ palette: {
78
+ series: ue,
79
+ background: {
80
+ light: "#ffffff",
81
+ // Slate to match the Publisher app's sidebar surface so
82
+ // rendered charts sit on the same elevation as the chrome
83
+ // around them.
84
+ dark: "#1e293b"
85
+ },
86
+ tableHeader: {
87
+ light: "#475569",
88
+ dark: "#cbd5e1"
89
+ },
90
+ // Background of the table header row, independent of the
91
+ // tile (dashboard tile container) so the operator can theme
92
+ // the header band on its own.
93
+ tableHeaderBackground: {
94
+ light: "#f8fafc",
95
+ dark: "#1e293b"
96
+ },
97
+ tableBody: {
98
+ light: "#475569",
99
+ dark: "#e2e8f0"
100
+ },
101
+ // The padded container that wraps each chart / table in a
102
+ // dashboard. Light mode: a faint recess off white; dark mode:
103
+ // page-outer slate.
104
+ //
105
+ // Neutral slate, not a tint. This was `#f5fafc`, a cyan-cast
106
+ // near-white left from the logo palette, and it was the most visible
107
+ // survivor of it: every dashboard on the server painted a pale blue
108
+ // panel behind its tiles, under charts that were no longer blue-green.
109
+ tile: {
110
+ light: "#f8fafc",
111
+ dark: "#0f172a"
112
+ },
113
+ tileTitle: {
114
+ light: "#475569",
115
+ dark: "#94a3b8"
116
+ },
117
+ // Saturated end of the choropleth / heatmap gradient. The renderer
118
+ // pairs this with a near-neutral low end. Matches the first series
119
+ // colour, so a map and a chart on one page ramp to the same hue.
120
+ mapColor: {
121
+ light: C.blue,
122
+ dark: C.blue
123
+ }
124
+ },
125
+ font: {
126
+ family: ge,
127
+ size: 12
128
+ }
129
+ }, Pe = [
130
+ "background",
131
+ "tableHeader",
132
+ "tableHeaderBackground",
133
+ "tableBody",
134
+ "tile",
135
+ "tileTitle",
136
+ "mapColor"
137
+ ];
138
+ function J(l, n) {
139
+ const e = W.palette ?? {}, r = W.font ?? {
140
+ family: "sans-serif",
141
+ size: 12
142
+ };
143
+ let a = [...e.series ?? []], t = r.family ?? "sans-serif", o = r.size ?? 12;
144
+ const s = {
145
+ background: { ...e.background ?? {} },
146
+ tableHeader: { ...e.tableHeader ?? {} },
147
+ tableHeaderBackground: {
148
+ ...e.tableHeaderBackground ?? {}
149
+ },
150
+ tableBody: { ...e.tableBody ?? {} },
151
+ tile: { ...e.tile ?? {} },
152
+ tileTitle: { ...e.tileTitle ?? {} },
153
+ mapColor: { ...e.mapColor ?? {} }
154
+ };
155
+ for (const p of l)
156
+ if (p) {
157
+ Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
158
+ for (const u of Pe) {
159
+ const k = p.palette?.[u];
160
+ k && (s[u] = { ...s[u], ...k });
161
+ }
162
+ typeof p.font?.family == "string" && (t = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
163
+ }
164
+ const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
165
+ return {
166
+ mode: n,
167
+ series: a,
168
+ font: { family: t, size: o },
169
+ background: d,
170
+ tableHeader: i("tableHeader"),
171
+ tableHeaderBackground: i("tableHeaderBackground"),
172
+ tableBody: i("tableBody"),
173
+ tile: i("tile"),
174
+ tileTitle: i("tileTitle"),
175
+ mapColor: i("mapColor"),
176
+ // Table interior follows the operator's chart background so
177
+ // tables and chart canvases share a single "viz surface" colour.
178
+ tableBackground: d,
179
+ // Derived, mode-keyed defaults. Operators don't edit these in
180
+ // v1; they're consistent borders / readable foreground text for
181
+ // each mode. If a user later asks to customise them, expose them
182
+ // on the schema and the editor and replace the literals below.
183
+ border: c ? "1px solid #334155" : "1px solid #e2e8f0",
184
+ // Slate, not the teal-cast `#daedf3` this was: a pinned table header
185
+ // outlined in a hue no longer anywhere else on the page.
186
+ pinnedBorder: c ? "1px solid #475569" : "1px solid #cbd5e1",
187
+ valueColor: c ? "#f1f5f9" : "#0f172a",
188
+ foreground: c ? "#e2e8f0" : "#0f172a",
189
+ axisFaint: c ? "#475569" : "#cbd5e1",
190
+ // Dashboard panel background (area BETWEEN tiles). Light keeps
191
+ // white so the page stays visually unchanged. Dark uses slate so
192
+ // the panel doesn't read as a bright box against the dark page
193
+ // chrome. Intentionally NOT tied to `palette.background`: the
194
+ // panel stays neutral so a bold accent on the chart canvas
195
+ // doesn't bleed into the surrounding chrome.
196
+ dashboardRoot: c ? "#1e293b" : "#ffffff",
197
+ // Drill link hover: the palette's anchor blue, so a drill reads as the
198
+ // same affordance as every other primary action; dark lightens it for
199
+ // contrast on the slate panel.
200
+ drillLink: c ? "#60a5fa" : C.blue
201
+ };
202
+ }
203
+ function be(l, n, e) {
204
+ const r = n ?? l ?? "light";
205
+ return r === "auto" ? e ? "dark" : "light" : r;
206
+ }
207
+ const K = G(void 0);
208
+ function Ve({
209
+ layers: l,
210
+ mode: n,
211
+ userChoice: e,
212
+ setMode: r,
213
+ allowUserToggle: a = !0,
214
+ children: t
215
+ }) {
216
+ const o = B(() => J(l, n), [l, n]), s = B(
217
+ () => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: r, allowUserToggle: a }),
218
+ [o, l, n, e, r, a]
219
+ );
220
+ return /* @__PURE__ */ F(K.Provider, { value: s, children: t });
221
+ }
222
+ function pa() {
223
+ const l = Y(K);
224
+ return l || {
225
+ theme: J([], "light"),
226
+ layers: [],
227
+ mode: "light",
228
+ userChoice: void 0,
229
+ setMode: () => {
230
+ },
231
+ allowUserToggle: !1
232
+ };
233
+ }
234
+ const g = "http://localhost/api/v0".replace(/\/+$/, "");
7
235
  class I {
8
- constructor(n, e = u, t = m) {
9
- this.basePath = e, this.axios = t, n && (this.configuration = n, this.basePath = n.basePath ?? e);
236
+ constructor(n, e = g, r = m) {
237
+ this.basePath = e, this.axios = r, n && (this.configuration = n, this.basePath = n.basePath ?? e);
10
238
  }
11
239
  configuration;
12
240
  }
13
- class ue extends Error {
241
+ class ve extends Error {
14
242
  constructor(n, e) {
15
243
  super(e), this.field = n, this.name = "RequiredError";
16
244
  }
17
245
  }
18
- const g = {}, P = "https://example.com", h = function(l, n, e) {
246
+ const P = {}, b = "https://example.com", h = function(l, n, e) {
19
247
  if (e == null)
20
- throw new ue(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
248
+ throw new ve(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
21
249
  };
22
- function q(l, n, e = "") {
23
- n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((t) => q(l, t, e)) : Object.keys(n).forEach(
24
- (t) => q(l, n[t], `${e}${e !== "" ? "." : ""}${t}`)
250
+ function z(l, n, e = "") {
251
+ n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => z(l, r, e)) : Object.keys(n).forEach(
252
+ (r) => z(l, n[r], `${e}${e !== "" ? "." : ""}${r}`)
25
253
  ) : l.has(e) ? l.append(e, n) : l.set(e, n));
26
254
  }
27
- const b = function(l, ...n) {
255
+ const V = function(l, ...n) {
28
256
  const e = new URLSearchParams(l.search);
29
- q(e, n), l.search = e.toString();
30
- }, y = function(l, n, e) {
31
- const t = typeof l != "string";
32
- return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
257
+ z(e, n), l.search = e.toString();
258
+ }, S = function(l, n, e) {
259
+ const r = typeof l != "string";
260
+ return (r && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
33
261
  }, v = function(l) {
34
262
  return l.pathname + l.search + l.hash;
35
- }, V = function(l, n, e, t) {
36
- return (a = n, r = e) => {
37
- const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + l.url };
263
+ }, O = function(l, n, e, r) {
264
+ return (a = n, t = e) => {
265
+ const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
38
266
  return a.request(o);
39
267
  };
40
- }, aa = {
268
+ }, ha = {
41
269
  Bigquery: "bigquery",
42
270
  Snowflake: "snowflake",
43
271
  Postgres: "postgres",
44
272
  Gcs: "gcs",
45
273
  S3: "s3",
46
274
  Azure: "azure"
47
- }, ta = {
275
+ }, ma = {
48
276
  ServicePrincipal: "service_principal",
49
277
  SasToken: "sas_token"
50
- }, ra = {
278
+ }, ua = {
51
279
  Error: "error",
52
280
  Warn: "warn",
53
281
  Debug: "debug"
54
- }, na = {
282
+ }, ga = {
55
283
  Append: "append",
56
284
  File: "file",
57
285
  Package: "package"
58
- }, oa = {
286
+ }, Pa = {
59
287
  Success: "success",
60
288
  Error: "error"
61
- }, sa = {
289
+ }, ba = {
62
290
  Postgres: "postgres",
63
291
  Bigquery: "bigquery",
64
292
  Snowflake: "snowflake",
@@ -69,131 +297,131 @@ const b = function(l, ...n) {
69
297
  Motherduck: "motherduck",
70
298
  Ducklake: "ducklake",
71
299
  Publisher: "publisher"
72
- }, la = {
300
+ }, Va = {
73
301
  Ssh: "ssh"
74
- }, ca = {
302
+ }, va = {
75
303
  Ok: "ok",
76
304
  Failed: "failed"
77
- }, ia = {
305
+ }, Oa = {
78
306
  Viewport: "viewport"
79
- }, da = {
307
+ }, Sa = {
80
308
  Embedded: "embedded",
81
309
  Materialized: "materialized"
82
- }, pa = {
310
+ }, ya = {
83
311
  Equal: "equal",
84
312
  In: "in",
85
313
  Like: "like",
86
314
  GreaterThan: "greater_than",
87
315
  LessThan: "less_than"
88
- }, ha = {
316
+ }, ka = {
89
317
  Live: "live",
90
318
  StaleOk: "stale_ok",
91
319
  Fail: "fail"
92
- }, ma = {
320
+ }, Ca = {
93
321
  Select: "select",
94
322
  Multiselect: "multiselect"
95
- }, ua = {
323
+ }, Ia = {
96
324
  Merge: "merge",
97
325
  RangeReplace: "range_replace"
98
- }, ga = {
326
+ }, Aa = {
99
327
  Debug: "debug",
100
328
  Info: "info",
101
329
  Warn: "warn",
102
330
  Error: "error"
103
- }, Pa = {
331
+ }, xa = {
104
332
  Persist: "persist",
105
333
  Preaggregate: "preaggregate"
106
- }, ba = {
334
+ }, Ra = {
107
335
  Live: "live",
108
336
  StaleOk: "stale_ok",
109
337
  Fail: "fail"
110
- }, va = {
338
+ }, Na = {
111
339
  Delta: "delta",
112
340
  Full: "full",
113
341
  None: "none"
114
- }, Va = {
342
+ }, Ta = {
115
343
  Pending: "PENDING",
116
344
  ManifestRowsReady: "MANIFEST_ROWS_READY",
117
345
  ManifestFileReady: "MANIFEST_FILE_READY",
118
346
  Failed: "FAILED",
119
347
  Cancelled: "CANCELLED"
120
- }, Oa = {
348
+ }, Ua = {
121
349
  Markdown: "markdown",
122
350
  Code: "code"
123
- }, Sa = {
351
+ }, wa = {
124
352
  Markdown: "markdown",
125
353
  Code: "code"
126
- }, ya = {
354
+ }, Ea = {
127
355
  Version: "version",
128
356
  Package: "package"
129
- }, ka = {
357
+ }, Ma = {
130
358
  Declared: "declared",
131
359
  All: "all"
132
- }, Ca = {
360
+ }, fa = {
133
361
  Unbound: "unbound",
134
362
  Bound: "bound",
135
363
  LiveFallback: "live_fallback"
136
- }, Ia = {
364
+ }, Ba = {
137
365
  Indexing: "indexing",
138
366
  Ready: "ready",
139
367
  Cooldown: "cooldown",
140
368
  TooManyEntities: "too-many-entities"
141
- }, xa = {
369
+ }, Fa = {
142
370
  Persist: "persist",
143
371
  Preaggregate: "preaggregate"
144
- }, Aa = {
372
+ }, Qa = {
145
373
  Error: "error",
146
374
  Warn: "warn"
147
- }, Ra = {
375
+ }, $a = {
148
376
  Persist: "persist",
149
377
  Preaggregate: "preaggregate"
150
- }, Na = {
378
+ }, qa = {
151
379
  Disable: "disable",
152
380
  NoVerify: "no-verify",
153
381
  VerifyCa: "verify-ca",
154
382
  VerifyFull: "verify-full"
155
- }, Ta = {
383
+ }, za = {
156
384
  Interactive: "interactive",
157
385
  Materialize: "materialize",
158
386
  Index: "index",
159
387
  Ops: "ops"
160
- }, Ua = {
388
+ }, Da = {
161
389
  Query: "query",
162
390
  ServerDefault: "server_default"
163
- }, Ea = {
391
+ }, La = {
164
392
  Storage: "storage",
165
393
  LiveFallback: "live_fallback"
166
- }, wa = {
394
+ }, ja = {
167
395
  Snapshot: "SNAPSHOT",
168
396
  Copy: "COPY"
169
- }, Ma = {
397
+ }, Ha = {
170
398
  Storage: "storage",
171
399
  Colocated: "colocated",
172
400
  Preaggregate: "preaggregate"
173
- }, fa = {
401
+ }, _a = {
174
402
  FreeParameter: "free_parameter",
175
403
  Given: "given",
176
404
  Authorize: "authorize",
177
405
  Partition: "partition",
178
406
  NotDuckdbPortable: "not_duckdb_portable",
179
407
  PublicSurfaceUnknown: "public_surface_unknown"
180
- }, Ba = {
408
+ }, Wa = {
181
409
  Publish: "publish",
182
410
  OnDemand: "on_demand",
183
411
  Scheduler: "scheduler"
184
- }, Fa = {
412
+ }, Ga = {
185
413
  Config: "config",
186
414
  CredentialChain: "credential_chain"
187
- }, Qa = {
415
+ }, Ya = {
188
416
  Initializing: "initializing",
189
417
  Serving: "serving",
190
418
  Draining: "draining",
191
419
  Throttled: "throttled"
192
- }, za = {
420
+ }, Ja = {
193
421
  Light: "light",
194
422
  Dark: "dark",
195
423
  Auto: "auto"
196
- }, ge = function(l) {
424
+ }, Oe = function(l) {
197
425
  return {
198
426
  /**
199
427
  * Creates a new database connection in the specified environment.
@@ -204,15 +432,15 @@ const b = function(l, ...n) {
204
432
  * @param {*} [options] Override http request option.
205
433
  * @throws {RequiredError}
206
434
  */
207
- createConnection: async (n, e, t, a = {}) => {
208
- h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection", t);
209
- const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
435
+ createConnection: async (n, e, r, a = {}) => {
436
+ h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection", r);
437
+ const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
210
438
  let s;
211
439
  l && (s = l.baseOptions);
212
440
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
213
- i["Content-Type"] = "application/json", b(o, d);
441
+ i["Content-Type"] = "application/json", V(o, d);
214
442
  let p = s && s.headers ? s.headers : {};
215
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
443
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
216
444
  url: v(o),
217
445
  options: c
218
446
  };
@@ -225,16 +453,16 @@ const b = function(l, ...n) {
225
453
  * @param {*} [options] Override http request option.
226
454
  * @throws {RequiredError}
227
455
  */
228
- deleteConnection: async (n, e, t = {}) => {
456
+ deleteConnection: async (n, e, r = {}) => {
229
457
  h("deleteConnection", "environmentName", n), h("deleteConnection", "connectionName", e);
230
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
458
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
231
459
  let o;
232
460
  l && (o = l.baseOptions);
233
- const s = { method: "DELETE", ...o, ...t }, c = {};
234
- b(r, {});
461
+ const s = { method: "DELETE", ...o, ...r }, c = {};
462
+ V(t, {});
235
463
  let d = o && o.headers ? o.headers : {};
236
- return s.headers = { ...c, ...d, ...t.headers }, {
237
- url: v(r),
464
+ return s.headers = { ...c, ...d, ...r.headers }, {
465
+ url: v(t),
238
466
  options: s
239
467
  };
240
468
  },
@@ -246,16 +474,16 @@ const b = function(l, ...n) {
246
474
  * @param {*} [options] Override http request option.
247
475
  * @throws {RequiredError}
248
476
  */
249
- getConnection: async (n, e, t = {}) => {
477
+ getConnection: async (n, e, r = {}) => {
250
478
  h("getConnection", "environmentName", n), h("getConnection", "connectionName", e);
251
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
479
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
252
480
  let o;
253
481
  l && (o = l.baseOptions);
254
- const s = { method: "GET", ...o, ...t }, c = {};
255
- b(r, {});
482
+ const s = { method: "GET", ...o, ...r }, c = {};
483
+ V(t, {});
256
484
  let d = o && o.headers ? o.headers : {};
257
- return s.headers = { ...c, ...d, ...t.headers }, {
258
- url: v(r),
485
+ return s.headers = { ...c, ...d, ...r.headers }, {
486
+ url: v(t),
259
487
  options: s
260
488
  };
261
489
  },
@@ -269,15 +497,15 @@ const b = function(l, ...n) {
269
497
  * @param {*} [options] Override http request option.
270
498
  * @throws {RequiredError}
271
499
  */
272
- getTable: async (n, e, t, a, r = {}) => {
273
- h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName", t), h("getTable", "tablePath", a);
274
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
500
+ getTable: async (n, e, r, a, t = {}) => {
501
+ h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName", r), h("getTable", "tablePath", a);
502
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, b);
275
503
  let c;
276
504
  l && (c = l.baseOptions);
277
- const i = { method: "GET", ...c, ...r }, d = {};
278
- b(s, {});
279
- let O = c && c.headers ? c.headers : {};
280
- return i.headers = { ...d, ...O, ...r.headers }, {
505
+ const i = { method: "GET", ...c, ...t }, d = {};
506
+ V(s, {});
507
+ let u = c && c.headers ? c.headers : {};
508
+ return i.headers = { ...d, ...u, ...t.headers }, {
281
509
  url: v(s),
282
510
  options: i
283
511
  };
@@ -293,13 +521,13 @@ const b = function(l, ...n) {
293
521
  * @param {*} [options] Override http request option.
294
522
  * @throws {RequiredError}
295
523
  */
296
- getTableInPackage: async (n, e, t, a, r, o = {}) => {
297
- h("getTableInPackage", "environmentName", n), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", t), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", r);
298
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), c = new URL(s, P);
524
+ getTableInPackage: async (n, e, r, a, t, o = {}) => {
525
+ h("getTableInPackage", "environmentName", n), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", r), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", t);
526
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, b);
299
527
  let i;
300
528
  l && (i = l.baseOptions);
301
529
  const d = { method: "GET", ...i, ...o }, p = {};
302
- b(c, {});
530
+ V(c, {});
303
531
  let k = i && i.headers ? i.headers : {};
304
532
  return d.headers = { ...p, ...k, ...o.headers }, {
305
533
  url: v(c),
@@ -315,12 +543,12 @@ const b = function(l, ...n) {
315
543
  */
316
544
  listConnections: async (n, e = {}) => {
317
545
  h("listConnections", "environmentName", n);
318
- const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
319
- let r;
320
- l && (r = l.baseOptions);
321
- const o = { method: "GET", ...r, ...e }, s = {};
322
- b(a, {});
323
- let i = r && r.headers ? r.headers : {};
546
+ const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
547
+ let t;
548
+ l && (t = l.baseOptions);
549
+ const o = { method: "GET", ...t, ...e }, s = {};
550
+ V(a, {});
551
+ let i = t && t.headers ? t.headers : {};
324
552
  return o.headers = { ...s, ...i, ...e.headers }, {
325
553
  url: v(a),
326
554
  options: o
@@ -334,16 +562,16 @@ const b = function(l, ...n) {
334
562
  * @param {*} [options] Override http request option.
335
563
  * @throws {RequiredError}
336
564
  */
337
- listSchemas: async (n, e, t = {}) => {
565
+ listSchemas: async (n, e, r = {}) => {
338
566
  h("listSchemas", "environmentName", n), h("listSchemas", "connectionName", e);
339
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
567
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
340
568
  let o;
341
569
  l && (o = l.baseOptions);
342
- const s = { method: "GET", ...o, ...t }, c = {};
343
- b(r, {});
570
+ const s = { method: "GET", ...o, ...r }, c = {};
571
+ V(t, {});
344
572
  let d = o && o.headers ? o.headers : {};
345
- return s.headers = { ...c, ...d, ...t.headers }, {
346
- url: v(r),
573
+ return s.headers = { ...c, ...d, ...r.headers }, {
574
+ url: v(t),
347
575
  options: s
348
576
  };
349
577
  },
@@ -356,13 +584,13 @@ const b = function(l, ...n) {
356
584
  * @param {*} [options] Override http request option.
357
585
  * @throws {RequiredError}
358
586
  */
359
- listSchemasInPackage: async (n, e, t, a = {}) => {
360
- h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", t);
361
- const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r, P);
587
+ listSchemasInPackage: async (n, e, r, a = {}) => {
588
+ h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", r);
589
+ const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(t, b);
362
590
  let s;
363
591
  l && (s = l.baseOptions);
364
592
  const c = { method: "GET", ...s, ...a }, i = {};
365
- b(o, {});
593
+ V(o, {});
366
594
  let p = s && s.headers ? s.headers : {};
367
595
  return c.headers = { ...i, ...p, ...a.headers }, {
368
596
  url: v(o),
@@ -379,15 +607,15 @@ const b = function(l, ...n) {
379
607
  * @param {*} [options] Override http request option.
380
608
  * @throws {RequiredError}
381
609
  */
382
- listTables: async (n, e, t, a, r = {}) => {
383
- h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName", t);
384
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, P);
610
+ listTables: async (n, e, r, a, t = {}) => {
611
+ h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName", r);
612
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, b);
385
613
  let c;
386
614
  l && (c = l.baseOptions);
387
- const i = { method: "GET", ...c, ...r }, d = {}, p = {};
388
- a && (p.tableNames = a), b(s, p);
389
- let O = c && c.headers ? c.headers : {};
390
- return i.headers = { ...d, ...O, ...r.headers }, {
615
+ const i = { method: "GET", ...c, ...t }, d = {}, p = {};
616
+ a && (p.tableNames = a), V(s, p);
617
+ let u = c && c.headers ? c.headers : {};
618
+ return i.headers = { ...d, ...u, ...t.headers }, {
391
619
  url: v(s),
392
620
  options: i
393
621
  };
@@ -403,13 +631,13 @@ const b = function(l, ...n) {
403
631
  * @param {*} [options] Override http request option.
404
632
  * @throws {RequiredError}
405
633
  */
406
- listTablesInPackage: async (n, e, t, a, r, o = {}) => {
407
- h("listTablesInPackage", "environmentName", n), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", t), h("listTablesInPackage", "schemaName", a);
408
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
634
+ listTablesInPackage: async (n, e, r, a, t, o = {}) => {
635
+ h("listTablesInPackage", "environmentName", n), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", r), h("listTablesInPackage", "schemaName", a);
636
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, b);
409
637
  let i;
410
638
  l && (i = l.baseOptions);
411
- const d = { method: "GET", ...i, ...o }, p = {}, O = {};
412
- r && (O.tableNames = r), b(c, O);
639
+ const d = { method: "GET", ...i, ...o }, p = {}, u = {};
640
+ t && (u.tableNames = t), V(c, u);
413
641
  let k = i && i.headers ? i.headers : {};
414
642
  return d.headers = { ...p, ...k, ...o.headers }, {
415
643
  url: v(c),
@@ -425,15 +653,15 @@ const b = function(l, ...n) {
425
653
  * @param {*} [options] Override http request option.
426
654
  * @throws {RequiredError}
427
655
  */
428
- postQuerydata: async (n, e, t, a = {}) => {
429
- h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", t);
430
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
656
+ postQuerydata: async (n, e, r, a = {}) => {
657
+ h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", r);
658
+ const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
431
659
  let s;
432
660
  l && (s = l.baseOptions);
433
661
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
434
- i["Content-Type"] = "application/json", b(o, d);
662
+ i["Content-Type"] = "application/json", V(o, d);
435
663
  let p = s && s.headers ? s.headers : {};
436
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
664
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
437
665
  url: v(o),
438
666
  options: c
439
667
  };
@@ -448,15 +676,15 @@ const b = function(l, ...n) {
448
676
  * @param {*} [options] Override http request option.
449
677
  * @throws {RequiredError}
450
678
  */
451
- postQuerydataInPackage: async (n, e, t, a, r = {}) => {
452
- h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", t), h("postQuerydataInPackage", "postQuerydataRequest", a);
453
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
679
+ postQuerydataInPackage: async (n, e, r, a, t = {}) => {
680
+ h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", a);
681
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
454
682
  let c;
455
683
  l && (c = l.baseOptions);
456
- const i = { method: "POST", ...c, ...r }, d = {}, p = {};
457
- d["Content-Type"] = "application/json", b(s, p);
458
- let O = c && c.headers ? c.headers : {};
459
- return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
684
+ const i = { method: "POST", ...c, ...t }, d = {}, p = {};
685
+ d["Content-Type"] = "application/json", V(s, p);
686
+ let u = c && c.headers ? c.headers : {};
687
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
460
688
  url: v(s),
461
689
  options: i
462
690
  };
@@ -470,15 +698,15 @@ const b = function(l, ...n) {
470
698
  * @param {*} [options] Override http request option.
471
699
  * @throws {RequiredError}
472
700
  */
473
- postSqlsource: async (n, e, t, a = {}) => {
474
- h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", t);
475
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
701
+ postSqlsource: async (n, e, r, a = {}) => {
702
+ h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", r);
703
+ const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
476
704
  let s;
477
705
  l && (s = l.baseOptions);
478
706
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
479
- i["Content-Type"] = "application/json", b(o, d);
707
+ i["Content-Type"] = "application/json", V(o, d);
480
708
  let p = s && s.headers ? s.headers : {};
481
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
709
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
482
710
  url: v(o),
483
711
  options: c
484
712
  };
@@ -493,15 +721,15 @@ const b = function(l, ...n) {
493
721
  * @param {*} [options] Override http request option.
494
722
  * @throws {RequiredError}
495
723
  */
496
- postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
497
- h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", t), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
498
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
724
+ postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
725
+ h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
726
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
499
727
  let c;
500
728
  l && (c = l.baseOptions);
501
- const i = { method: "POST", ...c, ...r }, d = {}, p = {};
502
- d["Content-Type"] = "application/json", b(s, p);
503
- let O = c && c.headers ? c.headers : {};
504
- return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
729
+ const i = { method: "POST", ...c, ...t }, d = {}, p = {};
730
+ d["Content-Type"] = "application/json", V(s, p);
731
+ let u = c && c.headers ? c.headers : {};
732
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
505
733
  url: v(s),
506
734
  options: i
507
735
  };
@@ -515,15 +743,15 @@ const b = function(l, ...n) {
515
743
  * @param {*} [options] Override http request option.
516
744
  * @throws {RequiredError}
517
745
  */
518
- postTemporarytable: async (n, e, t, a = {}) => {
519
- h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", t);
520
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
746
+ postTemporarytable: async (n, e, r, a = {}) => {
747
+ h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", r);
748
+ const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
521
749
  let s;
522
750
  l && (s = l.baseOptions);
523
751
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
524
- i["Content-Type"] = "application/json", b(o, d);
752
+ i["Content-Type"] = "application/json", V(o, d);
525
753
  let p = s && s.headers ? s.headers : {};
526
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
754
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
527
755
  url: v(o),
528
756
  options: c
529
757
  };
@@ -538,15 +766,15 @@ const b = function(l, ...n) {
538
766
  * @param {*} [options] Override http request option.
539
767
  * @throws {RequiredError}
540
768
  */
541
- postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
542
- h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", t), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
543
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
769
+ postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
770
+ h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
771
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
544
772
  let c;
545
773
  l && (c = l.baseOptions);
546
- const i = { method: "POST", ...c, ...r }, d = {}, p = {};
547
- d["Content-Type"] = "application/json", b(s, p);
548
- let O = c && c.headers ? c.headers : {};
549
- return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
774
+ const i = { method: "POST", ...c, ...t }, d = {}, p = {};
775
+ d["Content-Type"] = "application/json", V(s, p);
776
+ let u = c && c.headers ? c.headers : {};
777
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
550
778
  url: v(s),
551
779
  options: i
552
780
  };
@@ -560,22 +788,22 @@ const b = function(l, ...n) {
560
788
  * @param {*} [options] Override http request option.
561
789
  * @throws {RequiredError}
562
790
  */
563
- updateConnection: async (n, e, t, a = {}) => {
564
- h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", t);
565
- const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
791
+ updateConnection: async (n, e, r, a = {}) => {
792
+ h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", r);
793
+ const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
566
794
  let s;
567
795
  l && (s = l.baseOptions);
568
796
  const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
569
- i["Content-Type"] = "application/json", b(o, d);
797
+ i["Content-Type"] = "application/json", V(o, d);
570
798
  let p = s && s.headers ? s.headers : {};
571
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
799
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
572
800
  url: v(o),
573
801
  options: c
574
802
  };
575
803
  }
576
804
  };
577
- }, S = function(l) {
578
- const n = ge(l);
805
+ }, y = function(l) {
806
+ const n = Oe(l);
579
807
  return {
580
808
  /**
581
809
  * Creates a new database connection in the specified environment.
@@ -586,9 +814,9 @@ const b = function(l, ...n) {
586
814
  * @param {*} [options] Override http request option.
587
815
  * @throws {RequiredError}
588
816
  */
589
- async createConnection(e, t, a, r) {
590
- const o = await n.createConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
591
- return (i, d) => V(o, m, u, l)(i, c || d);
817
+ async createConnection(e, r, a, t) {
818
+ const o = await n.createConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
819
+ return (i, d) => O(o, m, g, l)(i, c || d);
592
820
  },
593
821
  /**
594
822
  * Permanently deletes a database connection from the environment.
@@ -598,9 +826,9 @@ const b = function(l, ...n) {
598
826
  * @param {*} [options] Override http request option.
599
827
  * @throws {RequiredError}
600
828
  */
601
- async deleteConnection(e, t, a) {
602
- const r = await n.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
603
- return (c, i) => V(r, m, u, l)(c, s || i);
829
+ async deleteConnection(e, r, a) {
830
+ const t = await n.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
831
+ return (c, i) => O(t, m, g, l)(c, s || i);
604
832
  },
605
833
  /**
606
834
  * 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.
@@ -610,9 +838,9 @@ const b = function(l, ...n) {
610
838
  * @param {*} [options] Override http request option.
611
839
  * @throws {RequiredError}
612
840
  */
613
- async getConnection(e, t, a) {
614
- const r = await n.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
615
- return (c, i) => V(r, m, u, l)(c, s || i);
841
+ async getConnection(e, r, a) {
842
+ const t = await n.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
843
+ return (c, i) => O(t, m, g, l)(c, s || i);
616
844
  },
617
845
  /**
618
846
  * 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.
@@ -624,9 +852,9 @@ const b = function(l, ...n) {
624
852
  * @param {*} [options] Override http request option.
625
853
  * @throws {RequiredError}
626
854
  */
627
- async getTable(e, t, a, r, o) {
628
- const s = await n.getTable(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
629
- return (d, p) => V(s, m, u, l)(d, i || p);
855
+ async getTable(e, r, a, t, o) {
856
+ const s = await n.getTable(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
857
+ return (d, p) => O(s, m, g, l)(d, i || p);
630
858
  },
631
859
  /**
632
860
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -639,9 +867,9 @@ const b = function(l, ...n) {
639
867
  * @param {*} [options] Override http request option.
640
868
  * @throws {RequiredError}
641
869
  */
642
- async getTableInPackage(e, t, a, r, o, s) {
643
- const c = await n.getTableInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
644
- return (p, O) => V(c, m, u, l)(p, d || O);
870
+ async getTableInPackage(e, r, a, t, o, s) {
871
+ const c = await n.getTableInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
872
+ return (p, u) => O(c, m, g, l)(p, d || u);
645
873
  },
646
874
  /**
647
875
  * 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.
@@ -650,9 +878,9 @@ const b = function(l, ...n) {
650
878
  * @param {*} [options] Override http request option.
651
879
  * @throws {RequiredError}
652
880
  */
653
- async listConnections(e, t) {
654
- const a = await n.listConnections(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[r]?.url;
655
- return (s, c) => V(a, m, u, l)(s, o || c);
881
+ async listConnections(e, r) {
882
+ const a = await n.listConnections(e, r), t = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
883
+ return (s, c) => O(a, m, g, l)(s, o || c);
656
884
  },
657
885
  /**
658
886
  * 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.
@@ -662,9 +890,9 @@ const b = function(l, ...n) {
662
890
  * @param {*} [options] Override http request option.
663
891
  * @throws {RequiredError}
664
892
  */
665
- async listSchemas(e, t, a) {
666
- const r = await n.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
667
- return (c, i) => V(r, m, u, l)(c, s || i);
893
+ async listSchemas(e, r, a) {
894
+ const t = await n.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
895
+ return (c, i) => O(t, m, g, l)(c, s || i);
668
896
  },
669
897
  /**
670
898
  * 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).
@@ -675,9 +903,9 @@ const b = function(l, ...n) {
675
903
  * @param {*} [options] Override http request option.
676
904
  * @throws {RequiredError}
677
905
  */
678
- async listSchemasInPackage(e, t, a, r) {
679
- const o = await n.listSchemasInPackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
680
- return (i, d) => V(o, m, u, l)(i, c || d);
906
+ async listSchemasInPackage(e, r, a, t) {
907
+ const o = await n.listSchemasInPackage(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
908
+ return (i, d) => O(o, m, g, l)(i, c || d);
681
909
  },
682
910
  /**
683
911
  * 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.
@@ -689,9 +917,9 @@ const b = function(l, ...n) {
689
917
  * @param {*} [options] Override http request option.
690
918
  * @throws {RequiredError}
691
919
  */
692
- async listTables(e, t, a, r, o) {
693
- const s = await n.listTables(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
694
- return (d, p) => V(s, m, u, l)(d, i || p);
920
+ async listTables(e, r, a, t, o) {
921
+ const s = await n.listTables(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
922
+ return (d, p) => O(s, m, g, l)(d, i || p);
695
923
  },
696
924
  /**
697
925
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -704,9 +932,9 @@ const b = function(l, ...n) {
704
932
  * @param {*} [options] Override http request option.
705
933
  * @throws {RequiredError}
706
934
  */
707
- async listTablesInPackage(e, t, a, r, o, s) {
708
- const c = await n.listTablesInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
709
- return (p, O) => V(c, m, u, l)(p, d || O);
935
+ async listTablesInPackage(e, r, a, t, o, s) {
936
+ const c = await n.listTablesInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
937
+ return (p, u) => O(c, m, g, l)(p, d || u);
710
938
  },
711
939
  /**
712
940
  * 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.
@@ -717,9 +945,9 @@ const b = function(l, ...n) {
717
945
  * @param {*} [options] Override http request option.
718
946
  * @throws {RequiredError}
719
947
  */
720
- async postQuerydata(e, t, a, r) {
721
- const o = await n.postQuerydata(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
722
- return (i, d) => V(o, m, u, l)(i, c || d);
948
+ async postQuerydata(e, r, a, t) {
949
+ const o = await n.postQuerydata(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
950
+ return (i, d) => O(o, m, g, l)(i, c || d);
723
951
  },
724
952
  /**
725
953
  * 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.
@@ -731,9 +959,9 @@ const b = function(l, ...n) {
731
959
  * @param {*} [options] Override http request option.
732
960
  * @throws {RequiredError}
733
961
  */
734
- async postQuerydataInPackage(e, t, a, r, o) {
735
- const s = await n.postQuerydataInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
736
- return (d, p) => V(s, m, u, l)(d, i || p);
962
+ async postQuerydataInPackage(e, r, a, t, o) {
963
+ const s = await n.postQuerydataInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
964
+ return (d, p) => O(s, m, g, l)(d, i || p);
737
965
  },
738
966
  /**
739
967
  * 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.
@@ -744,9 +972,9 @@ const b = function(l, ...n) {
744
972
  * @param {*} [options] Override http request option.
745
973
  * @throws {RequiredError}
746
974
  */
747
- async postSqlsource(e, t, a, r) {
748
- const o = await n.postSqlsource(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
749
- return (i, d) => V(o, m, u, l)(i, c || d);
975
+ async postSqlsource(e, r, a, t) {
976
+ const o = await n.postSqlsource(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
977
+ return (i, d) => O(o, m, g, l)(i, c || d);
750
978
  },
751
979
  /**
752
980
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -758,9 +986,9 @@ const b = function(l, ...n) {
758
986
  * @param {*} [options] Override http request option.
759
987
  * @throws {RequiredError}
760
988
  */
761
- async postSqlsourceInPackage(e, t, a, r, o) {
762
- const s = await n.postSqlsourceInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
763
- return (d, p) => V(s, m, u, l)(d, i || p);
989
+ async postSqlsourceInPackage(e, r, a, t, o) {
990
+ const s = await n.postSqlsourceInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
991
+ return (d, p) => O(s, m, g, l)(d, i || p);
764
992
  },
765
993
  /**
766
994
  * 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.
@@ -771,9 +999,9 @@ const b = function(l, ...n) {
771
999
  * @param {*} [options] Override http request option.
772
1000
  * @throws {RequiredError}
773
1001
  */
774
- async postTemporarytable(e, t, a, r) {
775
- const o = await n.postTemporarytable(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
776
- return (i, d) => V(o, m, u, l)(i, c || d);
1002
+ async postTemporarytable(e, r, a, t) {
1003
+ const o = await n.postTemporarytable(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
1004
+ return (i, d) => O(o, m, g, l)(i, c || d);
777
1005
  },
778
1006
  /**
779
1007
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -785,9 +1013,9 @@ const b = function(l, ...n) {
785
1013
  * @param {*} [options] Override http request option.
786
1014
  * @throws {RequiredError}
787
1015
  */
788
- async postTemporarytableInPackage(e, t, a, r, o) {
789
- const s = await n.postTemporarytableInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
790
- return (d, p) => V(s, m, u, l)(d, i || p);
1016
+ async postTemporarytableInPackage(e, r, a, t, o) {
1017
+ const s = await n.postTemporarytableInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
1018
+ return (d, p) => O(s, m, g, l)(d, i || p);
791
1019
  },
792
1020
  /**
793
1021
  * Updates the configuration of an existing database connection.
@@ -798,13 +1026,13 @@ const b = function(l, ...n) {
798
1026
  * @param {*} [options] Override http request option.
799
1027
  * @throws {RequiredError}
800
1028
  */
801
- async updateConnection(e, t, a, r) {
802
- const o = await n.updateConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
803
- return (i, d) => V(o, m, u, l)(i, c || d);
1029
+ async updateConnection(e, r, a, t) {
1030
+ const o = await n.updateConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
1031
+ return (i, d) => O(o, m, g, l)(i, c || d);
804
1032
  }
805
1033
  };
806
- }, $a = function(l, n, e) {
807
- const t = S(l);
1034
+ }, Ka = function(l, n, e) {
1035
+ const r = y(l);
808
1036
  return {
809
1037
  /**
810
1038
  * Creates a new database connection in the specified environment.
@@ -815,8 +1043,8 @@ const b = function(l, ...n) {
815
1043
  * @param {*} [options] Override http request option.
816
1044
  * @throws {RequiredError}
817
1045
  */
818
- createConnection(a, r, o, s) {
819
- return t.createConnection(a, r, o, s).then((c) => c(e, n));
1046
+ createConnection(a, t, o, s) {
1047
+ return r.createConnection(a, t, o, s).then((c) => c(e, n));
820
1048
  },
821
1049
  /**
822
1050
  * Permanently deletes a database connection from the environment.
@@ -826,8 +1054,8 @@ const b = function(l, ...n) {
826
1054
  * @param {*} [options] Override http request option.
827
1055
  * @throws {RequiredError}
828
1056
  */
829
- deleteConnection(a, r, o) {
830
- return t.deleteConnection(a, r, o).then((s) => s(e, n));
1057
+ deleteConnection(a, t, o) {
1058
+ return r.deleteConnection(a, t, o).then((s) => s(e, n));
831
1059
  },
832
1060
  /**
833
1061
  * 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.
@@ -837,8 +1065,8 @@ const b = function(l, ...n) {
837
1065
  * @param {*} [options] Override http request option.
838
1066
  * @throws {RequiredError}
839
1067
  */
840
- getConnection(a, r, o) {
841
- return t.getConnection(a, r, o).then((s) => s(e, n));
1068
+ getConnection(a, t, o) {
1069
+ return r.getConnection(a, t, o).then((s) => s(e, n));
842
1070
  },
843
1071
  /**
844
1072
  * 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.
@@ -850,8 +1078,8 @@ const b = function(l, ...n) {
850
1078
  * @param {*} [options] Override http request option.
851
1079
  * @throws {RequiredError}
852
1080
  */
853
- getTable(a, r, o, s, c) {
854
- return t.getTable(a, r, o, s, c).then((i) => i(e, n));
1081
+ getTable(a, t, o, s, c) {
1082
+ return r.getTable(a, t, o, s, c).then((i) => i(e, n));
855
1083
  },
856
1084
  /**
857
1085
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -864,8 +1092,8 @@ const b = function(l, ...n) {
864
1092
  * @param {*} [options] Override http request option.
865
1093
  * @throws {RequiredError}
866
1094
  */
867
- getTableInPackage(a, r, o, s, c, i) {
868
- return t.getTableInPackage(a, r, o, s, c, i).then((d) => d(e, n));
1095
+ getTableInPackage(a, t, o, s, c, i) {
1096
+ return r.getTableInPackage(a, t, o, s, c, i).then((d) => d(e, n));
869
1097
  },
870
1098
  /**
871
1099
  * 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.
@@ -874,8 +1102,8 @@ const b = function(l, ...n) {
874
1102
  * @param {*} [options] Override http request option.
875
1103
  * @throws {RequiredError}
876
1104
  */
877
- listConnections(a, r) {
878
- return t.listConnections(a, r).then((o) => o(e, n));
1105
+ listConnections(a, t) {
1106
+ return r.listConnections(a, t).then((o) => o(e, n));
879
1107
  },
880
1108
  /**
881
1109
  * 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.
@@ -885,8 +1113,8 @@ const b = function(l, ...n) {
885
1113
  * @param {*} [options] Override http request option.
886
1114
  * @throws {RequiredError}
887
1115
  */
888
- listSchemas(a, r, o) {
889
- return t.listSchemas(a, r, o).then((s) => s(e, n));
1116
+ listSchemas(a, t, o) {
1117
+ return r.listSchemas(a, t, o).then((s) => s(e, n));
890
1118
  },
891
1119
  /**
892
1120
  * 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).
@@ -897,8 +1125,8 @@ const b = function(l, ...n) {
897
1125
  * @param {*} [options] Override http request option.
898
1126
  * @throws {RequiredError}
899
1127
  */
900
- listSchemasInPackage(a, r, o, s) {
901
- return t.listSchemasInPackage(a, r, o, s).then((c) => c(e, n));
1128
+ listSchemasInPackage(a, t, o, s) {
1129
+ return r.listSchemasInPackage(a, t, o, s).then((c) => c(e, n));
902
1130
  },
903
1131
  /**
904
1132
  * 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.
@@ -910,8 +1138,8 @@ const b = function(l, ...n) {
910
1138
  * @param {*} [options] Override http request option.
911
1139
  * @throws {RequiredError}
912
1140
  */
913
- listTables(a, r, o, s, c) {
914
- return t.listTables(a, r, o, s, c).then((i) => i(e, n));
1141
+ listTables(a, t, o, s, c) {
1142
+ return r.listTables(a, t, o, s, c).then((i) => i(e, n));
915
1143
  },
916
1144
  /**
917
1145
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -924,8 +1152,8 @@ const b = function(l, ...n) {
924
1152
  * @param {*} [options] Override http request option.
925
1153
  * @throws {RequiredError}
926
1154
  */
927
- listTablesInPackage(a, r, o, s, c, i) {
928
- return t.listTablesInPackage(a, r, o, s, c, i).then((d) => d(e, n));
1155
+ listTablesInPackage(a, t, o, s, c, i) {
1156
+ return r.listTablesInPackage(a, t, o, s, c, i).then((d) => d(e, n));
929
1157
  },
930
1158
  /**
931
1159
  * 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.
@@ -936,8 +1164,8 @@ const b = function(l, ...n) {
936
1164
  * @param {*} [options] Override http request option.
937
1165
  * @throws {RequiredError}
938
1166
  */
939
- postQuerydata(a, r, o, s) {
940
- return t.postQuerydata(a, r, o, s).then((c) => c(e, n));
1167
+ postQuerydata(a, t, o, s) {
1168
+ return r.postQuerydata(a, t, o, s).then((c) => c(e, n));
941
1169
  },
942
1170
  /**
943
1171
  * 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.
@@ -949,8 +1177,8 @@ const b = function(l, ...n) {
949
1177
  * @param {*} [options] Override http request option.
950
1178
  * @throws {RequiredError}
951
1179
  */
952
- postQuerydataInPackage(a, r, o, s, c) {
953
- return t.postQuerydataInPackage(a, r, o, s, c).then((i) => i(e, n));
1180
+ postQuerydataInPackage(a, t, o, s, c) {
1181
+ return r.postQuerydataInPackage(a, t, o, s, c).then((i) => i(e, n));
954
1182
  },
955
1183
  /**
956
1184
  * 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.
@@ -961,8 +1189,8 @@ const b = function(l, ...n) {
961
1189
  * @param {*} [options] Override http request option.
962
1190
  * @throws {RequiredError}
963
1191
  */
964
- postSqlsource(a, r, o, s) {
965
- return t.postSqlsource(a, r, o, s).then((c) => c(e, n));
1192
+ postSqlsource(a, t, o, s) {
1193
+ return r.postSqlsource(a, t, o, s).then((c) => c(e, n));
966
1194
  },
967
1195
  /**
968
1196
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -974,8 +1202,8 @@ const b = function(l, ...n) {
974
1202
  * @param {*} [options] Override http request option.
975
1203
  * @throws {RequiredError}
976
1204
  */
977
- postSqlsourceInPackage(a, r, o, s, c) {
978
- return t.postSqlsourceInPackage(a, r, o, s, c).then((i) => i(e, n));
1205
+ postSqlsourceInPackage(a, t, o, s, c) {
1206
+ return r.postSqlsourceInPackage(a, t, o, s, c).then((i) => i(e, n));
979
1207
  },
980
1208
  /**
981
1209
  * 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.
@@ -986,8 +1214,8 @@ const b = function(l, ...n) {
986
1214
  * @param {*} [options] Override http request option.
987
1215
  * @throws {RequiredError}
988
1216
  */
989
- postTemporarytable(a, r, o, s) {
990
- return t.postTemporarytable(a, r, o, s).then((c) => c(e, n));
1217
+ postTemporarytable(a, t, o, s) {
1218
+ return r.postTemporarytable(a, t, o, s).then((c) => c(e, n));
991
1219
  },
992
1220
  /**
993
1221
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -999,8 +1227,8 @@ const b = function(l, ...n) {
999
1227
  * @param {*} [options] Override http request option.
1000
1228
  * @throws {RequiredError}
1001
1229
  */
1002
- postTemporarytableInPackage(a, r, o, s, c) {
1003
- return t.postTemporarytableInPackage(a, r, o, s, c).then((i) => i(e, n));
1230
+ postTemporarytableInPackage(a, t, o, s, c) {
1231
+ return r.postTemporarytableInPackage(a, t, o, s, c).then((i) => i(e, n));
1004
1232
  },
1005
1233
  /**
1006
1234
  * Updates the configuration of an existing database connection.
@@ -1011,12 +1239,12 @@ const b = function(l, ...n) {
1011
1239
  * @param {*} [options] Override http request option.
1012
1240
  * @throws {RequiredError}
1013
1241
  */
1014
- updateConnection(a, r, o, s) {
1015
- return t.updateConnection(a, r, o, s).then((c) => c(e, n));
1242
+ updateConnection(a, t, o, s) {
1243
+ return r.updateConnection(a, t, o, s).then((c) => c(e, n));
1016
1244
  }
1017
1245
  };
1018
1246
  };
1019
- class Pe extends I {
1247
+ class Se extends I {
1020
1248
  /**
1021
1249
  * Creates a new database connection in the specified environment.
1022
1250
  * @summary Create a new database connection
@@ -1027,8 +1255,8 @@ class Pe extends I {
1027
1255
  * @throws {RequiredError}
1028
1256
  * @memberof ConnectionsApi
1029
1257
  */
1030
- createConnection(n, e, t, a) {
1031
- return S(this.configuration).createConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
1258
+ createConnection(n, e, r, a) {
1259
+ return y(this.configuration).createConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1032
1260
  }
1033
1261
  /**
1034
1262
  * Permanently deletes a database connection from the environment.
@@ -1039,8 +1267,8 @@ class Pe extends I {
1039
1267
  * @throws {RequiredError}
1040
1268
  * @memberof ConnectionsApi
1041
1269
  */
1042
- deleteConnection(n, e, t) {
1043
- return S(this.configuration).deleteConnection(n, e, t).then((a) => a(this.axios, this.basePath));
1270
+ deleteConnection(n, e, r) {
1271
+ return y(this.configuration).deleteConnection(n, e, r).then((a) => a(this.axios, this.basePath));
1044
1272
  }
1045
1273
  /**
1046
1274
  * 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.
@@ -1051,8 +1279,8 @@ class Pe extends I {
1051
1279
  * @throws {RequiredError}
1052
1280
  * @memberof ConnectionsApi
1053
1281
  */
1054
- getConnection(n, e, t) {
1055
- return S(this.configuration).getConnection(n, e, t).then((a) => a(this.axios, this.basePath));
1282
+ getConnection(n, e, r) {
1283
+ return y(this.configuration).getConnection(n, e, r).then((a) => a(this.axios, this.basePath));
1056
1284
  }
1057
1285
  /**
1058
1286
  * 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.
@@ -1065,8 +1293,8 @@ class Pe extends I {
1065
1293
  * @throws {RequiredError}
1066
1294
  * @memberof ConnectionsApi
1067
1295
  */
1068
- getTable(n, e, t, a, r) {
1069
- return S(this.configuration).getTable(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1296
+ getTable(n, e, r, a, t) {
1297
+ return y(this.configuration).getTable(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1070
1298
  }
1071
1299
  /**
1072
1300
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1080,8 +1308,8 @@ class Pe extends I {
1080
1308
  * @throws {RequiredError}
1081
1309
  * @memberof ConnectionsApi
1082
1310
  */
1083
- getTableInPackage(n, e, t, a, r, o) {
1084
- return S(this.configuration).getTableInPackage(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
1311
+ getTableInPackage(n, e, r, a, t, o) {
1312
+ return y(this.configuration).getTableInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
1085
1313
  }
1086
1314
  /**
1087
1315
  * 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.
@@ -1092,7 +1320,7 @@ class Pe extends I {
1092
1320
  * @memberof ConnectionsApi
1093
1321
  */
1094
1322
  listConnections(n, e) {
1095
- return S(this.configuration).listConnections(n, e).then((t) => t(this.axios, this.basePath));
1323
+ return y(this.configuration).listConnections(n, e).then((r) => r(this.axios, this.basePath));
1096
1324
  }
1097
1325
  /**
1098
1326
  * 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.
@@ -1103,8 +1331,8 @@ class Pe extends I {
1103
1331
  * @throws {RequiredError}
1104
1332
  * @memberof ConnectionsApi
1105
1333
  */
1106
- listSchemas(n, e, t) {
1107
- return S(this.configuration).listSchemas(n, e, t).then((a) => a(this.axios, this.basePath));
1334
+ listSchemas(n, e, r) {
1335
+ return y(this.configuration).listSchemas(n, e, r).then((a) => a(this.axios, this.basePath));
1108
1336
  }
1109
1337
  /**
1110
1338
  * 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).
@@ -1116,8 +1344,8 @@ class Pe extends I {
1116
1344
  * @throws {RequiredError}
1117
1345
  * @memberof ConnectionsApi
1118
1346
  */
1119
- listSchemasInPackage(n, e, t, a) {
1120
- return S(this.configuration).listSchemasInPackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
1347
+ listSchemasInPackage(n, e, r, a) {
1348
+ return y(this.configuration).listSchemasInPackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
1121
1349
  }
1122
1350
  /**
1123
1351
  * 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.
@@ -1130,8 +1358,8 @@ class Pe extends I {
1130
1358
  * @throws {RequiredError}
1131
1359
  * @memberof ConnectionsApi
1132
1360
  */
1133
- listTables(n, e, t, a, r) {
1134
- return S(this.configuration).listTables(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1361
+ listTables(n, e, r, a, t) {
1362
+ return y(this.configuration).listTables(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1135
1363
  }
1136
1364
  /**
1137
1365
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1145,8 +1373,8 @@ class Pe extends I {
1145
1373
  * @throws {RequiredError}
1146
1374
  * @memberof ConnectionsApi
1147
1375
  */
1148
- listTablesInPackage(n, e, t, a, r, o) {
1149
- return S(this.configuration).listTablesInPackage(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
1376
+ listTablesInPackage(n, e, r, a, t, o) {
1377
+ return y(this.configuration).listTablesInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
1150
1378
  }
1151
1379
  /**
1152
1380
  * 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.
@@ -1158,8 +1386,8 @@ class Pe extends I {
1158
1386
  * @throws {RequiredError}
1159
1387
  * @memberof ConnectionsApi
1160
1388
  */
1161
- postQuerydata(n, e, t, a) {
1162
- return S(this.configuration).postQuerydata(n, e, t, a).then((r) => r(this.axios, this.basePath));
1389
+ postQuerydata(n, e, r, a) {
1390
+ return y(this.configuration).postQuerydata(n, e, r, a).then((t) => t(this.axios, this.basePath));
1163
1391
  }
1164
1392
  /**
1165
1393
  * 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.
@@ -1172,8 +1400,8 @@ class Pe extends I {
1172
1400
  * @throws {RequiredError}
1173
1401
  * @memberof ConnectionsApi
1174
1402
  */
1175
- postQuerydataInPackage(n, e, t, a, r) {
1176
- return S(this.configuration).postQuerydataInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1403
+ postQuerydataInPackage(n, e, r, a, t) {
1404
+ return y(this.configuration).postQuerydataInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1177
1405
  }
1178
1406
  /**
1179
1407
  * 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.
@@ -1185,8 +1413,8 @@ class Pe extends I {
1185
1413
  * @throws {RequiredError}
1186
1414
  * @memberof ConnectionsApi
1187
1415
  */
1188
- postSqlsource(n, e, t, a) {
1189
- return S(this.configuration).postSqlsource(n, e, t, a).then((r) => r(this.axios, this.basePath));
1416
+ postSqlsource(n, e, r, a) {
1417
+ return y(this.configuration).postSqlsource(n, e, r, a).then((t) => t(this.axios, this.basePath));
1190
1418
  }
1191
1419
  /**
1192
1420
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1199,8 +1427,8 @@ class Pe extends I {
1199
1427
  * @throws {RequiredError}
1200
1428
  * @memberof ConnectionsApi
1201
1429
  */
1202
- postSqlsourceInPackage(n, e, t, a, r) {
1203
- return S(this.configuration).postSqlsourceInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1430
+ postSqlsourceInPackage(n, e, r, a, t) {
1431
+ return y(this.configuration).postSqlsourceInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1204
1432
  }
1205
1433
  /**
1206
1434
  * 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.
@@ -1212,8 +1440,8 @@ class Pe extends I {
1212
1440
  * @throws {RequiredError}
1213
1441
  * @memberof ConnectionsApi
1214
1442
  */
1215
- postTemporarytable(n, e, t, a) {
1216
- return S(this.configuration).postTemporarytable(n, e, t, a).then((r) => r(this.axios, this.basePath));
1443
+ postTemporarytable(n, e, r, a) {
1444
+ return y(this.configuration).postTemporarytable(n, e, r, a).then((t) => t(this.axios, this.basePath));
1217
1445
  }
1218
1446
  /**
1219
1447
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1226,8 +1454,8 @@ class Pe extends I {
1226
1454
  * @throws {RequiredError}
1227
1455
  * @memberof ConnectionsApi
1228
1456
  */
1229
- postTemporarytableInPackage(n, e, t, a, r) {
1230
- return S(this.configuration).postTemporarytableInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1457
+ postTemporarytableInPackage(n, e, r, a, t) {
1458
+ return y(this.configuration).postTemporarytableInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1231
1459
  }
1232
1460
  /**
1233
1461
  * Updates the configuration of an existing database connection.
@@ -1239,11 +1467,11 @@ class Pe extends I {
1239
1467
  * @throws {RequiredError}
1240
1468
  * @memberof ConnectionsApi
1241
1469
  */
1242
- updateConnection(n, e, t, a) {
1243
- return S(this.configuration).updateConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
1470
+ updateConnection(n, e, r, a) {
1471
+ return y(this.configuration).updateConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1244
1472
  }
1245
1473
  }
1246
- const be = function(l) {
1474
+ const ye = function(l) {
1247
1475
  return {
1248
1476
  /**
1249
1477
  * 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.
@@ -1254,20 +1482,20 @@ const be = function(l) {
1254
1482
  */
1255
1483
  testConnectionConfiguration: async (n, e = {}) => {
1256
1484
  h("testConnectionConfiguration", "connection", n);
1257
- const t = "/connections/test", a = new URL(t, P);
1258
- let r;
1259
- l && (r = l.baseOptions);
1260
- const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1261
- s["Content-Type"] = "application/json", b(a, c);
1262
- let i = r && r.headers ? r.headers : {};
1263
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1485
+ const r = "/connections/test", a = new URL(r, b);
1486
+ let t;
1487
+ l && (t = l.baseOptions);
1488
+ const o = { method: "POST", ...t, ...e }, s = {}, c = {};
1489
+ s["Content-Type"] = "application/json", V(a, c);
1490
+ let i = t && t.headers ? t.headers : {};
1491
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
1264
1492
  url: v(a),
1265
1493
  options: o
1266
1494
  };
1267
1495
  }
1268
1496
  };
1269
1497
  }, X = function(l) {
1270
- const n = be(l);
1498
+ const n = ye(l);
1271
1499
  return {
1272
1500
  /**
1273
1501
  * 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.
@@ -1276,13 +1504,13 @@ const be = function(l) {
1276
1504
  * @param {*} [options] Override http request option.
1277
1505
  * @throws {RequiredError}
1278
1506
  */
1279
- async testConnectionConfiguration(e, t) {
1280
- const a = await n.testConnectionConfiguration(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
1281
- return (s, c) => V(a, m, u, l)(s, o || c);
1507
+ async testConnectionConfiguration(e, r) {
1508
+ const a = await n.testConnectionConfiguration(e, r), t = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1509
+ return (s, c) => O(a, m, g, l)(s, o || c);
1282
1510
  }
1283
1511
  };
1284
- }, qa = function(l, n, e) {
1285
- const t = X(l);
1512
+ }, Xa = function(l, n, e) {
1513
+ const r = X(l);
1286
1514
  return {
1287
1515
  /**
1288
1516
  * 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.
@@ -1291,12 +1519,12 @@ const be = function(l) {
1291
1519
  * @param {*} [options] Override http request option.
1292
1520
  * @throws {RequiredError}
1293
1521
  */
1294
- testConnectionConfiguration(a, r) {
1295
- return t.testConnectionConfiguration(a, r).then((o) => o(e, n));
1522
+ testConnectionConfiguration(a, t) {
1523
+ return r.testConnectionConfiguration(a, t).then((o) => o(e, n));
1296
1524
  }
1297
1525
  };
1298
1526
  };
1299
- class Da extends I {
1527
+ class Za extends I {
1300
1528
  /**
1301
1529
  * 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.
1302
1530
  * @summary Test database connection configuration
@@ -1306,10 +1534,10 @@ class Da extends I {
1306
1534
  * @memberof ConnectionsTestApi
1307
1535
  */
1308
1536
  testConnectionConfiguration(n, e) {
1309
- return X(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
1537
+ return X(this.configuration).testConnectionConfiguration(n, e).then((r) => r(this.axios, this.basePath));
1310
1538
  }
1311
1539
  }
1312
- const ve = function(l) {
1540
+ const ke = function(l) {
1313
1541
  return {
1314
1542
  /**
1315
1543
  * 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.
@@ -1321,15 +1549,15 @@ const ve = function(l) {
1321
1549
  * @param {*} [options] Override http request option.
1322
1550
  * @throws {RequiredError}
1323
1551
  */
1324
- getDashboard: async (n, e, t, a, r = {}) => {
1325
- h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", t);
1326
- const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, P);
1552
+ getDashboard: async (n, e, r, a, t = {}) => {
1553
+ h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", r);
1554
+ const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(r))), s = new URL(o, b);
1327
1555
  let c;
1328
1556
  l && (c = l.baseOptions);
1329
- const i = { method: "GET", ...c, ...r }, d = {}, p = {};
1330
- a !== void 0 && (p.versionId = a), b(s, p);
1331
- let O = c && c.headers ? c.headers : {};
1332
- return i.headers = { ...d, ...O, ...r.headers }, {
1557
+ const i = { method: "GET", ...c, ...t }, d = {}, p = {};
1558
+ a !== void 0 && (p.versionId = a), V(s, p);
1559
+ let u = c && c.headers ? c.headers : {};
1560
+ return i.headers = { ...d, ...u, ...t.headers }, {
1333
1561
  url: v(s),
1334
1562
  options: i
1335
1563
  };
@@ -1343,13 +1571,13 @@ const ve = function(l) {
1343
1571
  * @param {*} [options] Override http request option.
1344
1572
  * @throws {RequiredError}
1345
1573
  */
1346
- listDashboards: async (n, e, t, a = {}) => {
1574
+ listDashboards: async (n, e, r, a = {}) => {
1347
1575
  h("listDashboards", "environmentName", n), h("listDashboards", "packageName", e);
1348
- const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1576
+ const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1349
1577
  let s;
1350
1578
  l && (s = l.baseOptions);
1351
1579
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1352
- t !== void 0 && (d.versionId = t), b(o, d);
1580
+ r !== void 0 && (d.versionId = r), V(o, d);
1353
1581
  let p = s && s.headers ? s.headers : {};
1354
1582
  return c.headers = { ...i, ...p, ...a.headers }, {
1355
1583
  url: v(o),
@@ -1358,7 +1586,7 @@ const ve = function(l) {
1358
1586
  }
1359
1587
  };
1360
1588
  }, D = function(l) {
1361
- const n = ve(l);
1589
+ const n = ke(l);
1362
1590
  return {
1363
1591
  /**
1364
1592
  * 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.
@@ -1370,9 +1598,9 @@ const ve = function(l) {
1370
1598
  * @param {*} [options] Override http request option.
1371
1599
  * @throws {RequiredError}
1372
1600
  */
1373
- async getDashboard(e, t, a, r, o) {
1374
- const s = await n.getDashboard(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["DashboardsApi.getDashboard"]?.[c]?.url;
1375
- return (d, p) => V(s, m, u, l)(d, i || p);
1601
+ async getDashboard(e, r, a, t, o) {
1602
+ const s = await n.getDashboard(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[c]?.url;
1603
+ return (d, p) => O(s, m, g, l)(d, i || p);
1376
1604
  },
1377
1605
  /**
1378
1606
  * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1383,13 +1611,13 @@ const ve = function(l) {
1383
1611
  * @param {*} [options] Override http request option.
1384
1612
  * @throws {RequiredError}
1385
1613
  */
1386
- async listDashboards(e, t, a, r) {
1387
- const o = await n.listDashboards(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DashboardsApi.listDashboards"]?.[s]?.url;
1388
- return (i, d) => V(o, m, u, l)(i, c || d);
1614
+ async listDashboards(e, r, a, t) {
1615
+ const o = await n.listDashboards(e, r, a, t), s = l?.serverIndex ?? 0, c = P["DashboardsApi.listDashboards"]?.[s]?.url;
1616
+ return (i, d) => O(o, m, g, l)(i, c || d);
1389
1617
  }
1390
1618
  };
1391
- }, La = function(l, n, e) {
1392
- const t = D(l);
1619
+ }, et = function(l, n, e) {
1620
+ const r = D(l);
1393
1621
  return {
1394
1622
  /**
1395
1623
  * 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.
@@ -1401,8 +1629,8 @@ const ve = function(l) {
1401
1629
  * @param {*} [options] Override http request option.
1402
1630
  * @throws {RequiredError}
1403
1631
  */
1404
- getDashboard(a, r, o, s, c) {
1405
- return t.getDashboard(a, r, o, s, c).then((i) => i(e, n));
1632
+ getDashboard(a, t, o, s, c) {
1633
+ return r.getDashboard(a, t, o, s, c).then((i) => i(e, n));
1406
1634
  },
1407
1635
  /**
1408
1636
  * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1413,12 +1641,12 @@ const ve = function(l) {
1413
1641
  * @param {*} [options] Override http request option.
1414
1642
  * @throws {RequiredError}
1415
1643
  */
1416
- listDashboards(a, r, o, s) {
1417
- return t.listDashboards(a, r, o, s).then((c) => c(e, n));
1644
+ listDashboards(a, t, o, s) {
1645
+ return r.listDashboards(a, t, o, s).then((c) => c(e, n));
1418
1646
  }
1419
1647
  };
1420
1648
  };
1421
- class Ve extends I {
1649
+ class Ce extends I {
1422
1650
  /**
1423
1651
  * 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.
1424
1652
  * @summary Get a dashboard manifest
@@ -1430,8 +1658,8 @@ class Ve extends I {
1430
1658
  * @throws {RequiredError}
1431
1659
  * @memberof DashboardsApi
1432
1660
  */
1433
- getDashboard(n, e, t, a, r) {
1434
- return D(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1661
+ getDashboard(n, e, r, a, t) {
1662
+ return D(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1435
1663
  }
1436
1664
  /**
1437
1665
  * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1443,11 +1671,11 @@ class Ve extends I {
1443
1671
  * @throws {RequiredError}
1444
1672
  * @memberof DashboardsApi
1445
1673
  */
1446
- listDashboards(n, e, t, a) {
1447
- return D(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
1674
+ listDashboards(n, e, r, a) {
1675
+ return D(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
1448
1676
  }
1449
1677
  }
1450
- const Oe = function(l) {
1678
+ const Ie = function(l) {
1451
1679
  return {
1452
1680
  /**
1453
1681
  * 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.
@@ -1457,22 +1685,22 @@ const Oe = function(l) {
1457
1685
  * @param {*} [options] Override http request option.
1458
1686
  * @throws {RequiredError}
1459
1687
  */
1460
- listDataApps: async (n, e, t = {}) => {
1688
+ listDataApps: async (n, e, r = {}) => {
1461
1689
  h("listDataApps", "environmentName", n), h("listDataApps", "packageName", e);
1462
- const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
1690
+ const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
1463
1691
  let o;
1464
1692
  l && (o = l.baseOptions);
1465
- const s = { method: "GET", ...o, ...t }, c = {};
1466
- b(r, {});
1693
+ const s = { method: "GET", ...o, ...r }, c = {};
1694
+ V(t, {});
1467
1695
  let d = o && o.headers ? o.headers : {};
1468
- return s.headers = { ...c, ...d, ...t.headers }, {
1469
- url: v(r),
1696
+ return s.headers = { ...c, ...d, ...r.headers }, {
1697
+ url: v(t),
1470
1698
  options: s
1471
1699
  };
1472
1700
  }
1473
1701
  };
1474
1702
  }, Z = function(l) {
1475
- const n = Oe(l);
1703
+ const n = Ie(l);
1476
1704
  return {
1477
1705
  /**
1478
1706
  * 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.
@@ -1482,13 +1710,13 @@ const Oe = function(l) {
1482
1710
  * @param {*} [options] Override http request option.
1483
1711
  * @throws {RequiredError}
1484
1712
  */
1485
- async listDataApps(e, t, a) {
1486
- const r = await n.listDataApps(e, t, a), o = l?.serverIndex ?? 0, s = g["DataAppsApi.listDataApps"]?.[o]?.url;
1487
- return (c, i) => V(r, m, u, l)(c, s || i);
1713
+ async listDataApps(e, r, a) {
1714
+ const t = await n.listDataApps(e, r, a), o = l?.serverIndex ?? 0, s = P["DataAppsApi.listDataApps"]?.[o]?.url;
1715
+ return (c, i) => O(t, m, g, l)(c, s || i);
1488
1716
  }
1489
1717
  };
1490
- }, ja = function(l, n, e) {
1491
- const t = Z(l);
1718
+ }, at = function(l, n, e) {
1719
+ const r = Z(l);
1492
1720
  return {
1493
1721
  /**
1494
1722
  * 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.
@@ -1498,12 +1726,12 @@ const Oe = function(l) {
1498
1726
  * @param {*} [options] Override http request option.
1499
1727
  * @throws {RequiredError}
1500
1728
  */
1501
- listDataApps(a, r, o) {
1502
- return t.listDataApps(a, r, o).then((s) => s(e, n));
1729
+ listDataApps(a, t, o) {
1730
+ return r.listDataApps(a, t, o).then((s) => s(e, n));
1503
1731
  }
1504
1732
  };
1505
1733
  };
1506
- class Se extends I {
1734
+ class Ae extends I {
1507
1735
  /**
1508
1736
  * 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.
1509
1737
  * @summary List package data apps
@@ -1513,11 +1741,11 @@ class Se extends I {
1513
1741
  * @throws {RequiredError}
1514
1742
  * @memberof DataAppsApi
1515
1743
  */
1516
- listDataApps(n, e, t) {
1517
- return Z(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
1744
+ listDataApps(n, e, r) {
1745
+ return Z(this.configuration).listDataApps(n, e, r).then((a) => a(this.axios, this.basePath));
1518
1746
  }
1519
1747
  }
1520
- const ye = function(l) {
1748
+ const xe = function(l) {
1521
1749
  return {
1522
1750
  /**
1523
1751
  * 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.
@@ -1528,13 +1756,13 @@ const ye = function(l) {
1528
1756
  * @param {*} [options] Override http request option.
1529
1757
  * @throws {RequiredError}
1530
1758
  */
1531
- listDatabases: async (n, e, t, a = {}) => {
1759
+ listDatabases: async (n, e, r, a = {}) => {
1532
1760
  h("listDatabases", "environmentName", n), h("listDatabases", "packageName", e);
1533
- const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1761
+ const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1534
1762
  let s;
1535
1763
  l && (s = l.baseOptions);
1536
1764
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1537
- t !== void 0 && (d.versionId = t), b(o, d);
1765
+ r !== void 0 && (d.versionId = r), V(o, d);
1538
1766
  let p = s && s.headers ? s.headers : {};
1539
1767
  return c.headers = { ...i, ...p, ...a.headers }, {
1540
1768
  url: v(o),
@@ -1543,7 +1771,7 @@ const ye = function(l) {
1543
1771
  }
1544
1772
  };
1545
1773
  }, ee = function(l) {
1546
- const n = ye(l);
1774
+ const n = xe(l);
1547
1775
  return {
1548
1776
  /**
1549
1777
  * 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.
@@ -1554,13 +1782,13 @@ const ye = function(l) {
1554
1782
  * @param {*} [options] Override http request option.
1555
1783
  * @throws {RequiredError}
1556
1784
  */
1557
- async listDatabases(e, t, a, r) {
1558
- const o = await n.listDatabases(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1559
- return (i, d) => V(o, m, u, l)(i, c || d);
1785
+ async listDatabases(e, r, a, t) {
1786
+ const o = await n.listDatabases(e, r, a, t), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1787
+ return (i, d) => O(o, m, g, l)(i, c || d);
1560
1788
  }
1561
1789
  };
1562
- }, Ha = function(l, n, e) {
1563
- const t = ee(l);
1790
+ }, tt = function(l, n, e) {
1791
+ const r = ee(l);
1564
1792
  return {
1565
1793
  /**
1566
1794
  * 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.
@@ -1571,12 +1799,12 @@ const ye = function(l) {
1571
1799
  * @param {*} [options] Override http request option.
1572
1800
  * @throws {RequiredError}
1573
1801
  */
1574
- listDatabases(a, r, o, s) {
1575
- return t.listDatabases(a, r, o, s).then((c) => c(e, n));
1802
+ listDatabases(a, t, o, s) {
1803
+ return r.listDatabases(a, t, o, s).then((c) => c(e, n));
1576
1804
  }
1577
1805
  };
1578
1806
  };
1579
- class ke extends I {
1807
+ class Re extends I {
1580
1808
  /**
1581
1809
  * 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.
1582
1810
  * @summary List embedded databases
@@ -1587,11 +1815,11 @@ class ke extends I {
1587
1815
  * @throws {RequiredError}
1588
1816
  * @memberof DatabasesApi
1589
1817
  */
1590
- listDatabases(n, e, t, a) {
1591
- return ee(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
1818
+ listDatabases(n, e, r, a) {
1819
+ return ee(this.configuration).listDatabases(n, e, r, a).then((t) => t(this.axios, this.basePath));
1592
1820
  }
1593
1821
  }
1594
- const Ce = function(l) {
1822
+ const Ne = function(l) {
1595
1823
  return {
1596
1824
  /**
1597
1825
  * 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.
@@ -1602,13 +1830,13 @@ const Ce = function(l) {
1602
1830
  */
1603
1831
  createEnvironment: async (n, e = {}) => {
1604
1832
  h("createEnvironment", "environment", n);
1605
- const t = "/environments", a = new URL(t, P);
1606
- let r;
1607
- l && (r = l.baseOptions);
1608
- const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1609
- s["Content-Type"] = "application/json", b(a, c);
1610
- let i = r && r.headers ? r.headers : {};
1611
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1833
+ const r = "/environments", a = new URL(r, b);
1834
+ let t;
1835
+ l && (t = l.baseOptions);
1836
+ const o = { method: "POST", ...t, ...e }, s = {}, c = {};
1837
+ s["Content-Type"] = "application/json", V(a, c);
1838
+ let i = t && t.headers ? t.headers : {};
1839
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
1612
1840
  url: v(a),
1613
1841
  options: o
1614
1842
  };
@@ -1622,12 +1850,12 @@ const Ce = function(l) {
1622
1850
  */
1623
1851
  deleteEnvironment: async (n, e = {}) => {
1624
1852
  h("deleteEnvironment", "environmentName", n);
1625
- const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
1626
- let r;
1627
- l && (r = l.baseOptions);
1628
- const o = { method: "DELETE", ...r, ...e }, s = {};
1629
- b(a, {});
1630
- let i = r && r.headers ? r.headers : {};
1853
+ const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
1854
+ let t;
1855
+ l && (t = l.baseOptions);
1856
+ const o = { method: "DELETE", ...t, ...e }, s = {};
1857
+ V(a, {});
1858
+ let i = t && t.headers ? t.headers : {};
1631
1859
  return o.headers = { ...s, ...i, ...e.headers }, {
1632
1860
  url: v(a),
1633
1861
  options: o
@@ -1641,16 +1869,16 @@ const Ce = function(l) {
1641
1869
  * @param {*} [options] Override http request option.
1642
1870
  * @throws {RequiredError}
1643
1871
  */
1644
- getEnvironment: async (n, e, t = {}) => {
1872
+ getEnvironment: async (n, e, r = {}) => {
1645
1873
  h("getEnvironment", "environmentName", n);
1646
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
1874
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1647
1875
  let o;
1648
1876
  l && (o = l.baseOptions);
1649
- const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1650
- e !== void 0 && (i.reload = e), b(r, i);
1877
+ const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1878
+ e !== void 0 && (i.reload = e), V(t, i);
1651
1879
  let d = o && o.headers ? o.headers : {};
1652
- return s.headers = { ...c, ...d, ...t.headers }, {
1653
- url: v(r),
1880
+ return s.headers = { ...c, ...d, ...r.headers }, {
1881
+ url: v(t),
1654
1882
  options: s
1655
1883
  };
1656
1884
  },
@@ -1661,15 +1889,15 @@ const Ce = function(l) {
1661
1889
  * @throws {RequiredError}
1662
1890
  */
1663
1891
  listEnvironments: async (n = {}) => {
1664
- const e = "/environments", t = new URL(e, P);
1892
+ const e = "/environments", r = new URL(e, b);
1665
1893
  let a;
1666
1894
  l && (a = l.baseOptions);
1667
- const r = { method: "GET", ...a, ...n }, o = {};
1668
- b(t, {});
1895
+ const t = { method: "GET", ...a, ...n }, o = {};
1896
+ V(r, {});
1669
1897
  let c = a && a.headers ? a.headers : {};
1670
- return r.headers = { ...o, ...c, ...n.headers }, {
1671
- url: v(t),
1672
- options: r
1898
+ return t.headers = { ...o, ...c, ...n.headers }, {
1899
+ url: v(r),
1900
+ options: t
1673
1901
  };
1674
1902
  },
1675
1903
  /**
@@ -1680,22 +1908,22 @@ const Ce = function(l) {
1680
1908
  * @param {*} [options] Override http request option.
1681
1909
  * @throws {RequiredError}
1682
1910
  */
1683
- updateEnvironment: async (n, e, t = {}) => {
1911
+ updateEnvironment: async (n, e, r = {}) => {
1684
1912
  h("updateEnvironment", "environmentName", n), h("updateEnvironment", "environment", e);
1685
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
1913
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1686
1914
  let o;
1687
1915
  l && (o = l.baseOptions);
1688
- const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1689
- c["Content-Type"] = "application/json", b(r, i);
1916
+ const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
1917
+ c["Content-Type"] = "application/json", V(t, i);
1690
1918
  let d = o && o.headers ? o.headers : {};
1691
- return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
1692
- url: v(r),
1919
+ return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
1920
+ url: v(t),
1693
1921
  options: s
1694
1922
  };
1695
1923
  }
1696
1924
  };
1697
1925
  }, N = function(l) {
1698
- const n = Ce(l);
1926
+ const n = Ne(l);
1699
1927
  return {
1700
1928
  /**
1701
1929
  * 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.
@@ -1704,9 +1932,9 @@ const Ce = function(l) {
1704
1932
  * @param {*} [options] Override http request option.
1705
1933
  * @throws {RequiredError}
1706
1934
  */
1707
- async createEnvironment(e, t) {
1708
- const a = await n.createEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[r]?.url;
1709
- return (s, c) => V(a, m, u, l)(s, o || c);
1935
+ async createEnvironment(e, r) {
1936
+ const a = await n.createEnvironment(e, r), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1937
+ return (s, c) => O(a, m, g, l)(s, o || c);
1710
1938
  },
1711
1939
  /**
1712
1940
  * 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.
@@ -1715,9 +1943,9 @@ const Ce = function(l) {
1715
1943
  * @param {*} [options] Override http request option.
1716
1944
  * @throws {RequiredError}
1717
1945
  */
1718
- async deleteEnvironment(e, t) {
1719
- const a = await n.deleteEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
1720
- return (s, c) => V(a, m, u, l)(s, o || c);
1946
+ async deleteEnvironment(e, r) {
1947
+ const a = await n.deleteEnvironment(e, r), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1948
+ return (s, c) => O(a, m, g, l)(s, o || c);
1721
1949
  },
1722
1950
  /**
1723
1951
  * 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.
@@ -1727,9 +1955,9 @@ const Ce = function(l) {
1727
1955
  * @param {*} [options] Override http request option.
1728
1956
  * @throws {RequiredError}
1729
1957
  */
1730
- async getEnvironment(e, t, a) {
1731
- const r = await n.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1732
- return (c, i) => V(r, m, u, l)(c, s || i);
1958
+ async getEnvironment(e, r, a) {
1959
+ const t = await n.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1960
+ return (c, i) => O(t, m, g, l)(c, s || i);
1733
1961
  },
1734
1962
  /**
1735
1963
  * 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`.
@@ -1738,8 +1966,8 @@ const Ce = function(l) {
1738
1966
  * @throws {RequiredError}
1739
1967
  */
1740
1968
  async listEnvironments(e) {
1741
- const t = await n.listEnvironments(e), a = l?.serverIndex ?? 0, r = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1742
- return (o, s) => V(t, m, u, l)(o, r || s);
1969
+ const r = await n.listEnvironments(e), a = l?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1970
+ return (o, s) => O(r, m, g, l)(o, t || s);
1743
1971
  },
1744
1972
  /**
1745
1973
  * 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.
@@ -1749,13 +1977,13 @@ const Ce = function(l) {
1749
1977
  * @param {*} [options] Override http request option.
1750
1978
  * @throws {RequiredError}
1751
1979
  */
1752
- async updateEnvironment(e, t, a) {
1753
- const r = await n.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1754
- return (c, i) => V(r, m, u, l)(c, s || i);
1980
+ async updateEnvironment(e, r, a) {
1981
+ const t = await n.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1982
+ return (c, i) => O(t, m, g, l)(c, s || i);
1755
1983
  }
1756
1984
  };
1757
- }, _a = function(l, n, e) {
1758
- const t = N(l);
1985
+ }, rt = function(l, n, e) {
1986
+ const r = N(l);
1759
1987
  return {
1760
1988
  /**
1761
1989
  * 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.
@@ -1764,8 +1992,8 @@ const Ce = function(l) {
1764
1992
  * @param {*} [options] Override http request option.
1765
1993
  * @throws {RequiredError}
1766
1994
  */
1767
- createEnvironment(a, r) {
1768
- return t.createEnvironment(a, r).then((o) => o(e, n));
1995
+ createEnvironment(a, t) {
1996
+ return r.createEnvironment(a, t).then((o) => o(e, n));
1769
1997
  },
1770
1998
  /**
1771
1999
  * 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.
@@ -1774,8 +2002,8 @@ const Ce = function(l) {
1774
2002
  * @param {*} [options] Override http request option.
1775
2003
  * @throws {RequiredError}
1776
2004
  */
1777
- deleteEnvironment(a, r) {
1778
- return t.deleteEnvironment(a, r).then((o) => o(e, n));
2005
+ deleteEnvironment(a, t) {
2006
+ return r.deleteEnvironment(a, t).then((o) => o(e, n));
1779
2007
  },
1780
2008
  /**
1781
2009
  * 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.
@@ -1785,8 +2013,8 @@ const Ce = function(l) {
1785
2013
  * @param {*} [options] Override http request option.
1786
2014
  * @throws {RequiredError}
1787
2015
  */
1788
- getEnvironment(a, r, o) {
1789
- return t.getEnvironment(a, r, o).then((s) => s(e, n));
2016
+ getEnvironment(a, t, o) {
2017
+ return r.getEnvironment(a, t, o).then((s) => s(e, n));
1790
2018
  },
1791
2019
  /**
1792
2020
  * 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`.
@@ -1795,7 +2023,7 @@ const Ce = function(l) {
1795
2023
  * @throws {RequiredError}
1796
2024
  */
1797
2025
  listEnvironments(a) {
1798
- return t.listEnvironments(a).then((r) => r(e, n));
2026
+ return r.listEnvironments(a).then((t) => t(e, n));
1799
2027
  },
1800
2028
  /**
1801
2029
  * 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.
@@ -1805,12 +2033,12 @@ const Ce = function(l) {
1805
2033
  * @param {*} [options] Override http request option.
1806
2034
  * @throws {RequiredError}
1807
2035
  */
1808
- updateEnvironment(a, r, o) {
1809
- return t.updateEnvironment(a, r, o).then((s) => s(e, n));
2036
+ updateEnvironment(a, t, o) {
2037
+ return r.updateEnvironment(a, t, o).then((s) => s(e, n));
1810
2038
  }
1811
2039
  };
1812
2040
  };
1813
- class Ie extends I {
2041
+ class Te extends I {
1814
2042
  /**
1815
2043
  * 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.
1816
2044
  * @summary Create a new environment
@@ -1820,7 +2048,7 @@ class Ie extends I {
1820
2048
  * @memberof EnvironmentsApi
1821
2049
  */
1822
2050
  createEnvironment(n, e) {
1823
- return N(this.configuration).createEnvironment(n, e).then((t) => t(this.axios, this.basePath));
2051
+ return N(this.configuration).createEnvironment(n, e).then((r) => r(this.axios, this.basePath));
1824
2052
  }
1825
2053
  /**
1826
2054
  * 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.
@@ -1831,7 +2059,7 @@ class Ie extends I {
1831
2059
  * @memberof EnvironmentsApi
1832
2060
  */
1833
2061
  deleteEnvironment(n, e) {
1834
- return N(this.configuration).deleteEnvironment(n, e).then((t) => t(this.axios, this.basePath));
2062
+ return N(this.configuration).deleteEnvironment(n, e).then((r) => r(this.axios, this.basePath));
1835
2063
  }
1836
2064
  /**
1837
2065
  * 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.
@@ -1842,8 +2070,8 @@ class Ie extends I {
1842
2070
  * @throws {RequiredError}
1843
2071
  * @memberof EnvironmentsApi
1844
2072
  */
1845
- getEnvironment(n, e, t) {
1846
- return N(this.configuration).getEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
2073
+ getEnvironment(n, e, r) {
2074
+ return N(this.configuration).getEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
1847
2075
  }
1848
2076
  /**
1849
2077
  * 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`.
@@ -1864,11 +2092,11 @@ class Ie extends I {
1864
2092
  * @throws {RequiredError}
1865
2093
  * @memberof EnvironmentsApi
1866
2094
  */
1867
- updateEnvironment(n, e, t) {
1868
- return N(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
2095
+ updateEnvironment(n, e, r) {
2096
+ return N(this.configuration).updateEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
1869
2097
  }
1870
2098
  }
1871
- const xe = function(l) {
2099
+ const Ue = function(l) {
1872
2100
  return {
1873
2101
  /**
1874
2102
  * 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.
@@ -1879,15 +2107,15 @@ const xe = function(l) {
1879
2107
  * @param {*} [options] Override http request option.
1880
2108
  * @throws {RequiredError}
1881
2109
  */
1882
- createMaterialization: async (n, e, t, a = {}) => {
2110
+ createMaterialization: async (n, e, r, a = {}) => {
1883
2111
  h("createMaterialization", "environmentName", n), h("createMaterialization", "packageName", e);
1884
- const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2112
+ const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1885
2113
  let s;
1886
2114
  l && (s = l.baseOptions);
1887
2115
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
1888
- i["Content-Type"] = "application/json", b(o, d);
2116
+ i["Content-Type"] = "application/json", V(o, d);
1889
2117
  let p = s && s.headers ? s.headers : {};
1890
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
2118
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
1891
2119
  url: v(o),
1892
2120
  options: c
1893
2121
  };
@@ -1902,15 +2130,15 @@ const xe = function(l) {
1902
2130
  * @param {*} [options] Override http request option.
1903
2131
  * @throws {RequiredError}
1904
2132
  */
1905
- deleteMaterialization: async (n, e, t, a, r = {}) => {
1906
- h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", t);
1907
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
2133
+ deleteMaterialization: async (n, e, r, a, t = {}) => {
2134
+ h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", r);
2135
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
1908
2136
  let c;
1909
2137
  l && (c = l.baseOptions);
1910
- const i = { method: "DELETE", ...c, ...r }, d = {}, p = {};
1911
- a !== void 0 && (p.dropTables = a), b(s, p);
1912
- let O = c && c.headers ? c.headers : {};
1913
- return i.headers = { ...d, ...O, ...r.headers }, {
2138
+ const i = { method: "DELETE", ...c, ...t }, d = {}, p = {};
2139
+ a !== void 0 && (p.dropTables = a), V(s, p);
2140
+ let u = c && c.headers ? c.headers : {};
2141
+ return i.headers = { ...d, ...u, ...t.headers }, {
1914
2142
  url: v(s),
1915
2143
  options: i
1916
2144
  };
@@ -1924,35 +2152,13 @@ const xe = function(l) {
1924
2152
  * @param {*} [options] Override http request option.
1925
2153
  * @throws {RequiredError}
1926
2154
  */
1927
- getMaterialization: async (n, e, t, a = {}) => {
1928
- h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", t);
1929
- const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r, P);
2155
+ getMaterialization: async (n, e, r, a = {}) => {
2156
+ h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", r);
2157
+ const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(t, b);
1930
2158
  let s;
1931
2159
  l && (s = l.baseOptions);
1932
2160
  const c = { method: "GET", ...s, ...a }, i = {};
1933
- b(o, {});
1934
- let p = s && s.headers ? s.headers : {};
1935
- return c.headers = { ...i, ...p, ...a.headers }, {
1936
- url: v(o),
1937
- options: c
1938
- };
1939
- },
1940
- /**
1941
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
1942
- * @summary List all materializations in an environment
1943
- * @param {string} environmentName Name of the environment
1944
- * @param {number} [limit] Maximum number of materializations to return
1945
- * @param {number} [offset] Number of materializations to skip
1946
- * @param {*} [options] Override http request option.
1947
- * @throws {RequiredError}
1948
- */
1949
- listEnvironmentMaterializations: async (n, e, t, a = {}) => {
1950
- h("listEnvironmentMaterializations", "environmentName", n);
1951
- const r = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(r, P);
1952
- let s;
1953
- l && (s = l.baseOptions);
1954
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1955
- e !== void 0 && (d.limit = e), t !== void 0 && (d.offset = t), b(o, d);
2161
+ V(o, {});
1956
2162
  let p = s && s.headers ? s.headers : {};
1957
2163
  return c.headers = { ...i, ...p, ...a.headers }, {
1958
2164
  url: v(o),
@@ -1969,15 +2175,15 @@ const xe = function(l) {
1969
2175
  * @param {*} [options] Override http request option.
1970
2176
  * @throws {RequiredError}
1971
2177
  */
1972
- listMaterializations: async (n, e, t, a, r = {}) => {
2178
+ listMaterializations: async (n, e, r, a, t = {}) => {
1973
2179
  h("listMaterializations", "environmentName", n), h("listMaterializations", "packageName", e);
1974
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2180
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
1975
2181
  let c;
1976
2182
  l && (c = l.baseOptions);
1977
- const i = { method: "GET", ...c, ...r }, d = {}, p = {};
1978
- t !== void 0 && (p.limit = t), a !== void 0 && (p.offset = a), b(s, p);
1979
- let O = c && c.headers ? c.headers : {};
1980
- return i.headers = { ...d, ...O, ...r.headers }, {
2183
+ const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2184
+ r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), V(s, p);
2185
+ let u = c && c.headers ? c.headers : {};
2186
+ return i.headers = { ...d, ...u, ...t.headers }, {
1981
2187
  url: v(s),
1982
2188
  options: i
1983
2189
  };
@@ -1992,22 +2198,22 @@ const xe = function(l) {
1992
2198
  * @param {*} [options] Override http request option.
1993
2199
  * @throws {RequiredError}
1994
2200
  */
1995
- materializationAction: async (n, e, t, a, r = {}) => {
1996
- h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", t), h("materializationAction", "action", a);
1997
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
2201
+ materializationAction: async (n, e, r, a, t = {}) => {
2202
+ h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", r), h("materializationAction", "action", a);
2203
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
1998
2204
  let c;
1999
2205
  l && (c = l.baseOptions);
2000
- const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2001
- a !== void 0 && (p.action = a), b(s, p);
2002
- let O = c && c.headers ? c.headers : {};
2003
- return i.headers = { ...d, ...O, ...r.headers }, {
2206
+ const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2207
+ a !== void 0 && (p.action = a), V(s, p);
2208
+ let u = c && c.headers ? c.headers : {};
2209
+ return i.headers = { ...d, ...u, ...t.headers }, {
2004
2210
  url: v(s),
2005
2211
  options: i
2006
2212
  };
2007
2213
  }
2008
2214
  };
2009
- }, A = function(l) {
2010
- const n = xe(l);
2215
+ }, T = function(l) {
2216
+ const n = Ue(l);
2011
2217
  return {
2012
2218
  /**
2013
2219
  * 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.
@@ -2018,9 +2224,9 @@ const xe = function(l) {
2018
2224
  * @param {*} [options] Override http request option.
2019
2225
  * @throws {RequiredError}
2020
2226
  */
2021
- async createMaterialization(e, t, a, r) {
2022
- const o = await n.createMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
2023
- return (i, d) => V(o, m, u, l)(i, c || d);
2227
+ async createMaterialization(e, r, a, t) {
2228
+ const o = await n.createMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2229
+ return (i, d) => O(o, m, g, l)(i, c || d);
2024
2230
  },
2025
2231
  /**
2026
2232
  * 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.
@@ -2032,9 +2238,9 @@ const xe = function(l) {
2032
2238
  * @param {*} [options] Override http request option.
2033
2239
  * @throws {RequiredError}
2034
2240
  */
2035
- async deleteMaterialization(e, t, a, r, o) {
2036
- const s = await n.deleteMaterialization(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
2037
- return (d, p) => V(s, m, u, l)(d, i || p);
2241
+ async deleteMaterialization(e, r, a, t, o) {
2242
+ const s = await n.deleteMaterialization(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
2243
+ return (d, p) => O(s, m, g, l)(d, i || p);
2038
2244
  },
2039
2245
  /**
2040
2246
  *
@@ -2045,22 +2251,9 @@ const xe = function(l) {
2045
2251
  * @param {*} [options] Override http request option.
2046
2252
  * @throws {RequiredError}
2047
2253
  */
2048
- async getMaterialization(e, t, a, r) {
2049
- const o = await n.getMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
2050
- return (i, d) => V(o, m, u, l)(i, c || d);
2051
- },
2052
- /**
2053
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
2054
- * @summary List all materializations in an environment
2055
- * @param {string} environmentName Name of the environment
2056
- * @param {number} [limit] Maximum number of materializations to return
2057
- * @param {number} [offset] Number of materializations to skip
2058
- * @param {*} [options] Override http request option.
2059
- * @throws {RequiredError}
2060
- */
2061
- async listEnvironmentMaterializations(e, t, a, r) {
2062
- const o = await n.listEnvironmentMaterializations(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;
2063
- return (i, d) => V(o, m, u, l)(i, c || d);
2254
+ async getMaterialization(e, r, a, t) {
2255
+ const o = await n.getMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
2256
+ return (i, d) => O(o, m, g, l)(i, c || d);
2064
2257
  },
2065
2258
  /**
2066
2259
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2072,9 +2265,9 @@ const xe = function(l) {
2072
2265
  * @param {*} [options] Override http request option.
2073
2266
  * @throws {RequiredError}
2074
2267
  */
2075
- async listMaterializations(e, t, a, r, o) {
2076
- const s = await n.listMaterializations(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
2077
- return (d, p) => V(s, m, u, l)(d, i || p);
2268
+ async listMaterializations(e, r, a, t, o) {
2269
+ const s = await n.listMaterializations(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
2270
+ return (d, p) => O(s, m, g, l)(d, i || p);
2078
2271
  },
2079
2272
  /**
2080
2273
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2086,13 +2279,13 @@ const xe = function(l) {
2086
2279
  * @param {*} [options] Override http request option.
2087
2280
  * @throws {RequiredError}
2088
2281
  */
2089
- async materializationAction(e, t, a, r, o) {
2090
- const s = await n.materializationAction(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
2091
- return (d, p) => V(s, m, u, l)(d, i || p);
2282
+ async materializationAction(e, r, a, t, o) {
2283
+ const s = await n.materializationAction(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
2284
+ return (d, p) => O(s, m, g, l)(d, i || p);
2092
2285
  }
2093
2286
  };
2094
- }, Wa = function(l, n, e) {
2095
- const t = A(l);
2287
+ }, nt = function(l, n, e) {
2288
+ const r = T(l);
2096
2289
  return {
2097
2290
  /**
2098
2291
  * 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.
@@ -2103,8 +2296,8 @@ const xe = function(l) {
2103
2296
  * @param {*} [options] Override http request option.
2104
2297
  * @throws {RequiredError}
2105
2298
  */
2106
- createMaterialization(a, r, o, s) {
2107
- return t.createMaterialization(a, r, o, s).then((c) => c(e, n));
2299
+ createMaterialization(a, t, o, s) {
2300
+ return r.createMaterialization(a, t, o, s).then((c) => c(e, n));
2108
2301
  },
2109
2302
  /**
2110
2303
  * 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.
@@ -2116,8 +2309,8 @@ const xe = function(l) {
2116
2309
  * @param {*} [options] Override http request option.
2117
2310
  * @throws {RequiredError}
2118
2311
  */
2119
- deleteMaterialization(a, r, o, s, c) {
2120
- return t.deleteMaterialization(a, r, o, s, c).then((i) => i(e, n));
2312
+ deleteMaterialization(a, t, o, s, c) {
2313
+ return r.deleteMaterialization(a, t, o, s, c).then((i) => i(e, n));
2121
2314
  },
2122
2315
  /**
2123
2316
  *
@@ -2128,20 +2321,8 @@ const xe = function(l) {
2128
2321
  * @param {*} [options] Override http request option.
2129
2322
  * @throws {RequiredError}
2130
2323
  */
2131
- getMaterialization(a, r, o, s) {
2132
- return t.getMaterialization(a, r, o, s).then((c) => c(e, n));
2133
- },
2134
- /**
2135
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
2136
- * @summary List all materializations in an environment
2137
- * @param {string} environmentName Name of the environment
2138
- * @param {number} [limit] Maximum number of materializations to return
2139
- * @param {number} [offset] Number of materializations to skip
2140
- * @param {*} [options] Override http request option.
2141
- * @throws {RequiredError}
2142
- */
2143
- listEnvironmentMaterializations(a, r, o, s) {
2144
- return t.listEnvironmentMaterializations(a, r, o, s).then((c) => c(e, n));
2324
+ getMaterialization(a, t, o, s) {
2325
+ return r.getMaterialization(a, t, o, s).then((c) => c(e, n));
2145
2326
  },
2146
2327
  /**
2147
2328
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2153,8 +2334,8 @@ const xe = function(l) {
2153
2334
  * @param {*} [options] Override http request option.
2154
2335
  * @throws {RequiredError}
2155
2336
  */
2156
- listMaterializations(a, r, o, s, c) {
2157
- return t.listMaterializations(a, r, o, s, c).then((i) => i(e, n));
2337
+ listMaterializations(a, t, o, s, c) {
2338
+ return r.listMaterializations(a, t, o, s, c).then((i) => i(e, n));
2158
2339
  },
2159
2340
  /**
2160
2341
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2166,12 +2347,12 @@ const xe = function(l) {
2166
2347
  * @param {*} [options] Override http request option.
2167
2348
  * @throws {RequiredError}
2168
2349
  */
2169
- materializationAction(a, r, o, s, c) {
2170
- return t.materializationAction(a, r, o, s, c).then((i) => i(e, n));
2350
+ materializationAction(a, t, o, s, c) {
2351
+ return r.materializationAction(a, t, o, s, c).then((i) => i(e, n));
2171
2352
  }
2172
2353
  };
2173
2354
  };
2174
- class Ae extends I {
2355
+ class we extends I {
2175
2356
  /**
2176
2357
  * 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.
2177
2358
  * @summary Create a materialization
@@ -2182,8 +2363,8 @@ class Ae extends I {
2182
2363
  * @throws {RequiredError}
2183
2364
  * @memberof MaterializationsApi
2184
2365
  */
2185
- createMaterialization(n, e, t, a) {
2186
- return A(this.configuration).createMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2366
+ createMaterialization(n, e, r, a) {
2367
+ return T(this.configuration).createMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
2187
2368
  }
2188
2369
  /**
2189
2370
  * 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.
@@ -2196,8 +2377,8 @@ class Ae extends I {
2196
2377
  * @throws {RequiredError}
2197
2378
  * @memberof MaterializationsApi
2198
2379
  */
2199
- deleteMaterialization(n, e, t, a, r) {
2200
- return A(this.configuration).deleteMaterialization(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2380
+ deleteMaterialization(n, e, r, a, t) {
2381
+ return T(this.configuration).deleteMaterialization(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2201
2382
  }
2202
2383
  /**
2203
2384
  *
@@ -2209,21 +2390,8 @@ class Ae extends I {
2209
2390
  * @throws {RequiredError}
2210
2391
  * @memberof MaterializationsApi
2211
2392
  */
2212
- getMaterialization(n, e, t, a) {
2213
- return A(this.configuration).getMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2214
- }
2215
- /**
2216
- * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
2217
- * @summary List all materializations in an environment
2218
- * @param {string} environmentName Name of the environment
2219
- * @param {number} [limit] Maximum number of materializations to return
2220
- * @param {number} [offset] Number of materializations to skip
2221
- * @param {*} [options] Override http request option.
2222
- * @throws {RequiredError}
2223
- * @memberof MaterializationsApi
2224
- */
2225
- listEnvironmentMaterializations(n, e, t, a) {
2226
- return A(this.configuration).listEnvironmentMaterializations(n, e, t, a).then((r) => r(this.axios, this.basePath));
2393
+ getMaterialization(n, e, r, a) {
2394
+ return T(this.configuration).getMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
2227
2395
  }
2228
2396
  /**
2229
2397
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2236,8 +2404,8 @@ class Ae extends I {
2236
2404
  * @throws {RequiredError}
2237
2405
  * @memberof MaterializationsApi
2238
2406
  */
2239
- listMaterializations(n, e, t, a, r) {
2240
- return A(this.configuration).listMaterializations(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2407
+ listMaterializations(n, e, r, a, t) {
2408
+ return T(this.configuration).listMaterializations(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2241
2409
  }
2242
2410
  /**
2243
2411
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2250,13 +2418,13 @@ class Ae extends I {
2250
2418
  * @throws {RequiredError}
2251
2419
  * @memberof MaterializationsApi
2252
2420
  */
2253
- materializationAction(n, e, t, a, r) {
2254
- return A(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2421
+ materializationAction(n, e, r, a, t) {
2422
+ return T(this.configuration).materializationAction(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2255
2423
  }
2256
2424
  }
2257
- const Ga = {
2425
+ const ot = {
2258
2426
  Stop: "stop"
2259
- }, Re = function(l) {
2427
+ }, Ee = function(l) {
2260
2428
  return {
2261
2429
  /**
2262
2430
  * 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.
@@ -2268,15 +2436,15 @@ const Ga = {
2268
2436
  * @param {*} [options] Override http request option.
2269
2437
  * @throws {RequiredError}
2270
2438
  */
2271
- compileModelSource: async (n, e, t, a, r = {}) => {
2272
- h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path", t), h("compileModelSource", "compileRequest", a);
2273
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
2439
+ compileModelSource: async (n, e, r, a, t = {}) => {
2440
+ h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", a);
2441
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
2274
2442
  let c;
2275
2443
  l && (c = l.baseOptions);
2276
- const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2277
- d["Content-Type"] = "application/json", b(s, p);
2278
- let O = c && c.headers ? c.headers : {};
2279
- return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
2444
+ const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2445
+ d["Content-Type"] = "application/json", V(s, p);
2446
+ let u = c && c.headers ? c.headers : {};
2447
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
2280
2448
  url: v(s),
2281
2449
  options: i
2282
2450
  };
@@ -2291,15 +2459,15 @@ const Ga = {
2291
2459
  * @param {*} [options] Override http request option.
2292
2460
  * @throws {RequiredError}
2293
2461
  */
2294
- executeQueryModel: async (n, e, t, a, r = {}) => {
2295
- h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", t), h("executeQueryModel", "queryRequest", a);
2296
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
2462
+ executeQueryModel: async (n, e, r, a, t = {}) => {
2463
+ h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", a);
2464
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
2297
2465
  let c;
2298
2466
  l && (c = l.baseOptions);
2299
- const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2300
- d["Content-Type"] = "application/json", b(s, p);
2301
- let O = c && c.headers ? c.headers : {};
2302
- return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
2467
+ const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2468
+ d["Content-Type"] = "application/json", V(s, p);
2469
+ let u = c && c.headers ? c.headers : {};
2470
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
2303
2471
  url: v(s),
2304
2472
  options: i
2305
2473
  };
@@ -2314,15 +2482,15 @@ const Ga = {
2314
2482
  * @param {*} [options] Override http request option.
2315
2483
  * @throws {RequiredError}
2316
2484
  */
2317
- getModel: async (n, e, t, a, r = {}) => {
2318
- h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path", t);
2319
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
2485
+ getModel: async (n, e, r, a, t = {}) => {
2486
+ h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path", r);
2487
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
2320
2488
  let c;
2321
2489
  l && (c = l.baseOptions);
2322
- const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2323
- a !== void 0 && (p.versionId = a), b(s, p);
2324
- let O = c && c.headers ? c.headers : {};
2325
- return i.headers = { ...d, ...O, ...r.headers }, {
2490
+ const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2491
+ a !== void 0 && (p.versionId = a), V(s, p);
2492
+ let u = c && c.headers ? c.headers : {};
2493
+ return i.headers = { ...d, ...u, ...t.headers }, {
2326
2494
  url: v(s),
2327
2495
  options: i
2328
2496
  };
@@ -2336,22 +2504,46 @@ const Ga = {
2336
2504
  * @param {*} [options] Override http request option.
2337
2505
  * @throws {RequiredError}
2338
2506
  */
2339
- listModels: async (n, e, t, a = {}) => {
2507
+ listModels: async (n, e, r, a = {}) => {
2340
2508
  h("listModels", "environmentName", n), h("listModels", "packageName", e);
2341
- const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2509
+ const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2342
2510
  let s;
2343
2511
  l && (s = l.baseOptions);
2344
2512
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2345
- t !== void 0 && (d.versionId = t), b(o, d);
2513
+ r !== void 0 && (d.versionId = r), V(o, d);
2346
2514
  let p = s && s.headers ? s.headers : {};
2347
2515
  return c.headers = { ...i, ...p, ...a.headers }, {
2348
2516
  url: v(o),
2349
2517
  options: c
2350
2518
  };
2519
+ },
2520
+ /**
2521
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard 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 text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. 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. 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 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.
2522
+ * @summary Write a dashboard file into the package
2523
+ * @param {string} environmentName Name of the environment
2524
+ * @param {string} packageName Name of the package
2525
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
2526
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
2527
+ * @param {string} [versionId] Version identifier for the package
2528
+ * @param {*} [options] Override http request option.
2529
+ * @throws {RequiredError}
2530
+ */
2531
+ updateModelSource: async (n, e, r, a, t, o = {}) => {
2532
+ h("updateModelSource", "environmentName", n), h("updateModelSource", "packageName", e), h("updateModelSource", "path", r), h("updateModelSource", "modelSourceWriteRequest", a);
2533
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, b);
2534
+ let i;
2535
+ l && (i = l.baseOptions);
2536
+ const d = { method: "PUT", ...i, ...o }, p = {}, u = {};
2537
+ t !== void 0 && (u.versionId = t), p["Content-Type"] = "application/json", V(c, u);
2538
+ let k = i && i.headers ? i.headers : {};
2539
+ return d.headers = { ...p, ...k, ...o.headers }, d.data = S(a, d, l), {
2540
+ url: v(c),
2541
+ options: d
2542
+ };
2351
2543
  }
2352
2544
  };
2353
- }, E = function(l) {
2354
- const n = Re(l);
2545
+ }, U = function(l) {
2546
+ const n = Ee(l);
2355
2547
  return {
2356
2548
  /**
2357
2549
  * 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.
@@ -2363,9 +2555,9 @@ const Ga = {
2363
2555
  * @param {*} [options] Override http request option.
2364
2556
  * @throws {RequiredError}
2365
2557
  */
2366
- async compileModelSource(e, t, a, r, o) {
2367
- const s = await n.compileModelSource(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2368
- return (d, p) => V(s, m, u, l)(d, i || p);
2558
+ async compileModelSource(e, r, a, t, o) {
2559
+ const s = await n.compileModelSource(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2560
+ return (d, p) => O(s, m, g, l)(d, i || p);
2369
2561
  },
2370
2562
  /**
2371
2563
  * 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.
@@ -2377,9 +2569,9 @@ const Ga = {
2377
2569
  * @param {*} [options] Override http request option.
2378
2570
  * @throws {RequiredError}
2379
2571
  */
2380
- async executeQueryModel(e, t, a, r, o) {
2381
- const s = await n.executeQueryModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2382
- return (d, p) => V(s, m, u, l)(d, i || p);
2572
+ async executeQueryModel(e, r, a, t, o) {
2573
+ const s = await n.executeQueryModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2574
+ return (d, p) => O(s, m, g, l)(d, i || p);
2383
2575
  },
2384
2576
  /**
2385
2577
  * 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.
@@ -2391,9 +2583,9 @@ const Ga = {
2391
2583
  * @param {*} [options] Override http request option.
2392
2584
  * @throws {RequiredError}
2393
2585
  */
2394
- async getModel(e, t, a, r, o) {
2395
- const s = await n.getModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2396
- return (d, p) => V(s, m, u, l)(d, i || p);
2586
+ async getModel(e, r, a, t, o) {
2587
+ const s = await n.getModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2588
+ return (d, p) => O(s, m, g, l)(d, i || p);
2397
2589
  },
2398
2590
  /**
2399
2591
  * Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
@@ -2404,13 +2596,28 @@ const Ga = {
2404
2596
  * @param {*} [options] Override http request option.
2405
2597
  * @throws {RequiredError}
2406
2598
  */
2407
- async listModels(e, t, a, r) {
2408
- const o = await n.listModels(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2409
- return (i, d) => V(o, m, u, l)(i, c || d);
2599
+ async listModels(e, r, a, t) {
2600
+ const o = await n.listModels(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
2601
+ return (i, d) => O(o, m, g, l)(i, c || d);
2602
+ },
2603
+ /**
2604
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard 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 text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. 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. 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 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.
2605
+ * @summary Write a dashboard file into the package
2606
+ * @param {string} environmentName Name of the environment
2607
+ * @param {string} packageName Name of the package
2608
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
2609
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
2610
+ * @param {string} [versionId] Version identifier for the package
2611
+ * @param {*} [options] Override http request option.
2612
+ * @throws {RequiredError}
2613
+ */
2614
+ async updateModelSource(e, r, a, t, o, s) {
2615
+ const c = await n.updateModelSource(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ModelsApi.updateModelSource"]?.[i]?.url;
2616
+ return (p, u) => O(c, m, g, l)(p, d || u);
2410
2617
  }
2411
2618
  };
2412
- }, Ya = function(l, n, e) {
2413
- const t = E(l);
2619
+ }, st = function(l, n, e) {
2620
+ const r = U(l);
2414
2621
  return {
2415
2622
  /**
2416
2623
  * 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.
@@ -2422,8 +2629,8 @@ const Ga = {
2422
2629
  * @param {*} [options] Override http request option.
2423
2630
  * @throws {RequiredError}
2424
2631
  */
2425
- compileModelSource(a, r, o, s, c) {
2426
- return t.compileModelSource(a, r, o, s, c).then((i) => i(e, n));
2632
+ compileModelSource(a, t, o, s, c) {
2633
+ return r.compileModelSource(a, t, o, s, c).then((i) => i(e, n));
2427
2634
  },
2428
2635
  /**
2429
2636
  * 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.
@@ -2435,8 +2642,8 @@ const Ga = {
2435
2642
  * @param {*} [options] Override http request option.
2436
2643
  * @throws {RequiredError}
2437
2644
  */
2438
- executeQueryModel(a, r, o, s, c) {
2439
- return t.executeQueryModel(a, r, o, s, c).then((i) => i(e, n));
2645
+ executeQueryModel(a, t, o, s, c) {
2646
+ return r.executeQueryModel(a, t, o, s, c).then((i) => i(e, n));
2440
2647
  },
2441
2648
  /**
2442
2649
  * 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.
@@ -2448,8 +2655,8 @@ const Ga = {
2448
2655
  * @param {*} [options] Override http request option.
2449
2656
  * @throws {RequiredError}
2450
2657
  */
2451
- getModel(a, r, o, s, c) {
2452
- return t.getModel(a, r, o, s, c).then((i) => i(e, n));
2658
+ getModel(a, t, o, s, c) {
2659
+ return r.getModel(a, t, o, s, c).then((i) => i(e, n));
2453
2660
  },
2454
2661
  /**
2455
2662
  * Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
@@ -2460,12 +2667,26 @@ const Ga = {
2460
2667
  * @param {*} [options] Override http request option.
2461
2668
  * @throws {RequiredError}
2462
2669
  */
2463
- listModels(a, r, o, s) {
2464
- return t.listModels(a, r, o, s).then((c) => c(e, n));
2670
+ listModels(a, t, o, s) {
2671
+ return r.listModels(a, t, o, s).then((c) => c(e, n));
2672
+ },
2673
+ /**
2674
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard 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 text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. 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. 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 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.
2675
+ * @summary Write a dashboard file into the package
2676
+ * @param {string} environmentName Name of the environment
2677
+ * @param {string} packageName Name of the package
2678
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
2679
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
2680
+ * @param {string} [versionId] Version identifier for the package
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ */
2684
+ updateModelSource(a, t, o, s, c, i) {
2685
+ return r.updateModelSource(a, t, o, s, c, i).then((d) => d(e, n));
2465
2686
  }
2466
2687
  };
2467
2688
  };
2468
- class Ne extends I {
2689
+ class Me extends I {
2469
2690
  /**
2470
2691
  * 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.
2471
2692
  * @summary Compile Malloy source code
@@ -2477,8 +2698,8 @@ class Ne extends I {
2477
2698
  * @throws {RequiredError}
2478
2699
  * @memberof ModelsApi
2479
2700
  */
2480
- compileModelSource(n, e, t, a, r) {
2481
- return E(this.configuration).compileModelSource(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2701
+ compileModelSource(n, e, r, a, t) {
2702
+ return U(this.configuration).compileModelSource(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2482
2703
  }
2483
2704
  /**
2484
2705
  * 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.
@@ -2491,8 +2712,8 @@ class Ne extends I {
2491
2712
  * @throws {RequiredError}
2492
2713
  * @memberof ModelsApi
2493
2714
  */
2494
- executeQueryModel(n, e, t, a, r) {
2495
- return E(this.configuration).executeQueryModel(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2715
+ executeQueryModel(n, e, r, a, t) {
2716
+ return U(this.configuration).executeQueryModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2496
2717
  }
2497
2718
  /**
2498
2719
  * 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.
@@ -2505,8 +2726,8 @@ class Ne extends I {
2505
2726
  * @throws {RequiredError}
2506
2727
  * @memberof ModelsApi
2507
2728
  */
2508
- getModel(n, e, t, a, r) {
2509
- return E(this.configuration).getModel(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2729
+ getModel(n, e, r, a, t) {
2730
+ return U(this.configuration).getModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2510
2731
  }
2511
2732
  /**
2512
2733
  * Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
@@ -2518,11 +2739,26 @@ class Ne extends I {
2518
2739
  * @throws {RequiredError}
2519
2740
  * @memberof ModelsApi
2520
2741
  */
2521
- listModels(n, e, t, a) {
2522
- return E(this.configuration).listModels(n, e, t, a).then((r) => r(this.axios, this.basePath));
2742
+ listModels(n, e, r, a) {
2743
+ return U(this.configuration).listModels(n, e, r, a).then((t) => t(this.axios, this.basePath));
2744
+ }
2745
+ /**
2746
+ * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard 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 text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. 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. 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 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.
2747
+ * @summary Write a dashboard file into the package
2748
+ * @param {string} environmentName Name of the environment
2749
+ * @param {string} packageName Name of the package
2750
+ * @param {string} path The dashboard file, &#x60;dashboards/&lt;slug&gt;.malloy&#x60;
2751
+ * @param {ModelSourceWriteRequest} modelSourceWriteRequest
2752
+ * @param {string} [versionId] Version identifier for the package
2753
+ * @param {*} [options] Override http request option.
2754
+ * @throws {RequiredError}
2755
+ * @memberof ModelsApi
2756
+ */
2757
+ updateModelSource(n, e, r, a, t, o) {
2758
+ return U(this.configuration).updateModelSource(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
2523
2759
  }
2524
2760
  }
2525
- const Te = function(l) {
2761
+ const fe = function(l) {
2526
2762
  return {
2527
2763
  /**
2528
2764
  * 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.
@@ -2538,15 +2774,15 @@ const Te = function(l) {
2538
2774
  * @param {*} [options] Override http request option.
2539
2775
  * @throws {RequiredError}
2540
2776
  */
2541
- executeNotebookCell: async (n, e, t, a, r, o, s, c, i = {}) => {
2542
- h("executeNotebookCell", "environmentName", n), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", t), h("executeNotebookCell", "cellIndex", a);
2543
- const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, P);
2544
- let O;
2545
- l && (O = l.baseOptions);
2546
- const k = { method: "GET", ...O, ...i }, U = {}, x = {};
2547
- r !== void 0 && (x.versionId = r), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), b(p, x);
2548
- let z = O && O.headers ? O.headers : {};
2549
- return k.headers = { ...U, ...z, ...i.headers }, {
2777
+ executeNotebookCell: async (n, e, r, a, t, o, s, c, i = {}) => {
2778
+ h("executeNotebookCell", "environmentName", n), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", a);
2779
+ const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, b);
2780
+ let u;
2781
+ l && (u = l.baseOptions);
2782
+ const k = { method: "GET", ...u, ...i }, E = {}, A = {};
2783
+ t !== void 0 && (A.versionId = t), o !== void 0 && (A.filter_params = o), s !== void 0 && (A.bypass_filters = s), c !== void 0 && (A.givens = c), V(p, A);
2784
+ let $ = u && u.headers ? u.headers : {};
2785
+ return k.headers = { ...E, ...$, ...i.headers }, {
2550
2786
  url: v(p),
2551
2787
  options: k
2552
2788
  };
@@ -2561,15 +2797,15 @@ const Te = function(l) {
2561
2797
  * @param {*} [options] Override http request option.
2562
2798
  * @throws {RequiredError}
2563
2799
  */
2564
- getNotebook: async (n, e, t, a, r = {}) => {
2565
- h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path", t);
2566
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
2800
+ getNotebook: async (n, e, r, a, t = {}) => {
2801
+ h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path", r);
2802
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
2567
2803
  let c;
2568
2804
  l && (c = l.baseOptions);
2569
- const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2570
- a !== void 0 && (p.versionId = a), b(s, p);
2571
- let O = c && c.headers ? c.headers : {};
2572
- return i.headers = { ...d, ...O, ...r.headers }, {
2805
+ const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2806
+ a !== void 0 && (p.versionId = a), V(s, p);
2807
+ let u = c && c.headers ? c.headers : {};
2808
+ return i.headers = { ...d, ...u, ...t.headers }, {
2573
2809
  url: v(s),
2574
2810
  options: i
2575
2811
  };
@@ -2583,13 +2819,13 @@ const Te = function(l) {
2583
2819
  * @param {*} [options] Override http request option.
2584
2820
  * @throws {RequiredError}
2585
2821
  */
2586
- listNotebooks: async (n, e, t, a = {}) => {
2822
+ listNotebooks: async (n, e, r, a = {}) => {
2587
2823
  h("listNotebooks", "environmentName", n), h("listNotebooks", "packageName", e);
2588
- const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2824
+ const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2589
2825
  let s;
2590
2826
  l && (s = l.baseOptions);
2591
2827
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2592
- t !== void 0 && (d.versionId = t), b(o, d);
2828
+ r !== void 0 && (d.versionId = r), V(o, d);
2593
2829
  let p = s && s.headers ? s.headers : {};
2594
2830
  return c.headers = { ...i, ...p, ...a.headers }, {
2595
2831
  url: v(o),
@@ -2598,7 +2834,7 @@ const Te = function(l) {
2598
2834
  }
2599
2835
  };
2600
2836
  }, Q = function(l) {
2601
- const n = Te(l);
2837
+ const n = fe(l);
2602
2838
  return {
2603
2839
  /**
2604
2840
  * 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.
@@ -2614,9 +2850,9 @@ const Te = function(l) {
2614
2850
  * @param {*} [options] Override http request option.
2615
2851
  * @throws {RequiredError}
2616
2852
  */
2617
- async executeNotebookCell(e, t, a, r, o, s, c, i, d) {
2618
- const p = await n.executeNotebookCell(e, t, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0, k = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
2619
- return (U, x) => V(p, m, u, l)(U, k || x);
2853
+ async executeNotebookCell(e, r, a, t, o, s, c, i, d) {
2854
+ const p = await n.executeNotebookCell(e, r, a, t, o, s, c, i, d), u = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[u]?.url;
2855
+ return (E, A) => O(p, m, g, l)(E, k || A);
2620
2856
  },
2621
2857
  /**
2622
2858
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2628,9 +2864,9 @@ const Te = function(l) {
2628
2864
  * @param {*} [options] Override http request option.
2629
2865
  * @throws {RequiredError}
2630
2866
  */
2631
- async getNotebook(e, t, a, r, o) {
2632
- const s = await n.getNotebook(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2633
- return (d, p) => V(s, m, u, l)(d, i || p);
2867
+ async getNotebook(e, r, a, t, o) {
2868
+ const s = await n.getNotebook(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2869
+ return (d, p) => O(s, m, g, l)(d, i || p);
2634
2870
  },
2635
2871
  /**
2636
2872
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2641,13 +2877,13 @@ const Te = function(l) {
2641
2877
  * @param {*} [options] Override http request option.
2642
2878
  * @throws {RequiredError}
2643
2879
  */
2644
- async listNotebooks(e, t, a, r) {
2645
- const o = await n.listNotebooks(e, t, a, r), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2646
- return (i, d) => V(o, m, u, l)(i, c || d);
2880
+ async listNotebooks(e, r, a, t) {
2881
+ const o = await n.listNotebooks(e, r, a, t), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2882
+ return (i, d) => O(o, m, g, l)(i, c || d);
2647
2883
  }
2648
2884
  };
2649
- }, Ja = function(l, n, e) {
2650
- const t = Q(l);
2885
+ }, lt = function(l, n, e) {
2886
+ const r = Q(l);
2651
2887
  return {
2652
2888
  /**
2653
2889
  * 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.
@@ -2663,8 +2899,8 @@ const Te = function(l) {
2663
2899
  * @param {*} [options] Override http request option.
2664
2900
  * @throws {RequiredError}
2665
2901
  */
2666
- executeNotebookCell(a, r, o, s, c, i, d, p, O) {
2667
- return t.executeNotebookCell(a, r, o, s, c, i, d, p, O).then((k) => k(e, n));
2902
+ executeNotebookCell(a, t, o, s, c, i, d, p, u) {
2903
+ return r.executeNotebookCell(a, t, o, s, c, i, d, p, u).then((k) => k(e, n));
2668
2904
  },
2669
2905
  /**
2670
2906
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2676,8 +2912,8 @@ const Te = function(l) {
2676
2912
  * @param {*} [options] Override http request option.
2677
2913
  * @throws {RequiredError}
2678
2914
  */
2679
- getNotebook(a, r, o, s, c) {
2680
- return t.getNotebook(a, r, o, s, c).then((i) => i(e, n));
2915
+ getNotebook(a, t, o, s, c) {
2916
+ return r.getNotebook(a, t, o, s, c).then((i) => i(e, n));
2681
2917
  },
2682
2918
  /**
2683
2919
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2688,12 +2924,12 @@ const Te = function(l) {
2688
2924
  * @param {*} [options] Override http request option.
2689
2925
  * @throws {RequiredError}
2690
2926
  */
2691
- listNotebooks(a, r, o, s) {
2692
- return t.listNotebooks(a, r, o, s).then((c) => c(e, n));
2927
+ listNotebooks(a, t, o, s) {
2928
+ return r.listNotebooks(a, t, o, s).then((c) => c(e, n));
2693
2929
  }
2694
2930
  };
2695
2931
  };
2696
- class Ue extends I {
2932
+ class Be extends I {
2697
2933
  /**
2698
2934
  * 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.
2699
2935
  * @summary Execute a specific notebook cell
@@ -2709,8 +2945,8 @@ class Ue extends I {
2709
2945
  * @throws {RequiredError}
2710
2946
  * @memberof NotebooksApi
2711
2947
  */
2712
- executeNotebookCell(n, e, t, a, r, o, s, c, i) {
2713
- return Q(this.configuration).executeNotebookCell(n, e, t, a, r, o, s, c, i).then((d) => d(this.axios, this.basePath));
2948
+ executeNotebookCell(n, e, r, a, t, o, s, c, i) {
2949
+ return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, c, i).then((d) => d(this.axios, this.basePath));
2714
2950
  }
2715
2951
  /**
2716
2952
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2723,8 +2959,8 @@ class Ue extends I {
2723
2959
  * @throws {RequiredError}
2724
2960
  * @memberof NotebooksApi
2725
2961
  */
2726
- getNotebook(n, e, t, a, r) {
2727
- return Q(this.configuration).getNotebook(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2962
+ getNotebook(n, e, r, a, t) {
2963
+ return Q(this.configuration).getNotebook(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2728
2964
  }
2729
2965
  /**
2730
2966
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2736,14 +2972,14 @@ class Ue extends I {
2736
2972
  * @throws {RequiredError}
2737
2973
  * @memberof NotebooksApi
2738
2974
  */
2739
- listNotebooks(n, e, t, a) {
2740
- return Q(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
2975
+ listNotebooks(n, e, r, a) {
2976
+ return Q(this.configuration).listNotebooks(n, e, r, a).then((t) => t(this.axios, this.basePath));
2741
2977
  }
2742
2978
  }
2743
- const Ka = {
2979
+ const ct = {
2744
2980
  True: "true",
2745
2981
  False: "false"
2746
- }, Ee = function(l) {
2982
+ }, Fe = function(l) {
2747
2983
  return {
2748
2984
  /**
2749
2985
  * 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.
@@ -2753,16 +2989,16 @@ const Ka = {
2753
2989
  * @param {*} [options] Override http request option.
2754
2990
  * @throws {RequiredError}
2755
2991
  */
2756
- createPackage: async (n, e, t = {}) => {
2992
+ createPackage: async (n, e, r = {}) => {
2757
2993
  h("createPackage", "environmentName", n), h("createPackage", "_package", e);
2758
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
2994
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
2759
2995
  let o;
2760
2996
  l && (o = l.baseOptions);
2761
- const s = { method: "POST", ...o, ...t }, c = {}, i = {};
2762
- c["Content-Type"] = "application/json", b(r, i);
2997
+ const s = { method: "POST", ...o, ...r }, c = {}, i = {};
2998
+ c["Content-Type"] = "application/json", V(t, i);
2763
2999
  let d = o && o.headers ? o.headers : {};
2764
- return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
2765
- url: v(r),
3000
+ return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
3001
+ url: v(t),
2766
3002
  options: s
2767
3003
  };
2768
3004
  },
@@ -2774,16 +3010,16 @@ const Ka = {
2774
3010
  * @param {*} [options] Override http request option.
2775
3011
  * @throws {RequiredError}
2776
3012
  */
2777
- deletePackage: async (n, e, t = {}) => {
3013
+ deletePackage: async (n, e, r = {}) => {
2778
3014
  h("deletePackage", "environmentName", n), h("deletePackage", "packageName", e);
2779
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
3015
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
2780
3016
  let o;
2781
3017
  l && (o = l.baseOptions);
2782
- const s = { method: "DELETE", ...o, ...t }, c = {};
2783
- b(r, {});
3018
+ const s = { method: "DELETE", ...o, ...r }, c = {};
3019
+ V(t, {});
2784
3020
  let d = o && o.headers ? o.headers : {};
2785
- return s.headers = { ...c, ...d, ...t.headers }, {
2786
- url: v(r),
3021
+ return s.headers = { ...c, ...d, ...r.headers }, {
3022
+ url: v(t),
2787
3023
  options: s
2788
3024
  };
2789
3025
  },
@@ -2797,15 +3033,15 @@ const Ka = {
2797
3033
  * @param {*} [options] Override http request option.
2798
3034
  * @throws {RequiredError}
2799
3035
  */
2800
- getPackage: async (n, e, t, a, r = {}) => {
3036
+ getPackage: async (n, e, r, a, t = {}) => {
2801
3037
  h("getPackage", "environmentName", n), h("getPackage", "packageName", e);
2802
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
3038
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
2803
3039
  let c;
2804
3040
  l && (c = l.baseOptions);
2805
- const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2806
- t !== void 0 && (p.versionId = t), a !== void 0 && (p.reload = a), b(s, p);
2807
- let O = c && c.headers ? c.headers : {};
2808
- return i.headers = { ...d, ...O, ...r.headers }, {
3041
+ const i = { method: "GET", ...c, ...t }, d = {}, p = {};
3042
+ r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), V(s, p);
3043
+ let u = c && c.headers ? c.headers : {};
3044
+ return i.headers = { ...d, ...u, ...t.headers }, {
2809
3045
  url: v(s),
2810
3046
  options: i
2811
3047
  };
@@ -2819,12 +3055,12 @@ const Ka = {
2819
3055
  */
2820
3056
  listPackages: async (n, e = {}) => {
2821
3057
  h("listPackages", "environmentName", n);
2822
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
2823
- let r;
2824
- l && (r = l.baseOptions);
2825
- const o = { method: "GET", ...r, ...e }, s = {};
2826
- b(a, {});
2827
- let i = r && r.headers ? r.headers : {};
3058
+ const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
3059
+ let t;
3060
+ l && (t = l.baseOptions);
3061
+ const o = { method: "GET", ...t, ...e }, s = {};
3062
+ V(a, {});
3063
+ let i = t && t.headers ? t.headers : {};
2828
3064
  return o.headers = { ...s, ...i, ...e.headers }, {
2829
3065
  url: v(a),
2830
3066
  options: o
@@ -2839,22 +3075,22 @@ const Ka = {
2839
3075
  * @param {*} [options] Override http request option.
2840
3076
  * @throws {RequiredError}
2841
3077
  */
2842
- updatePackage: async (n, e, t, a = {}) => {
2843
- h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package", t);
2844
- const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
3078
+ updatePackage: async (n, e, r, a = {}) => {
3079
+ h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package", r);
3080
+ const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2845
3081
  let s;
2846
3082
  l && (s = l.baseOptions);
2847
3083
  const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
2848
- i["Content-Type"] = "application/json", b(o, d);
3084
+ i["Content-Type"] = "application/json", V(o, d);
2849
3085
  let p = s && s.headers ? s.headers : {};
2850
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
3086
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
2851
3087
  url: v(o),
2852
3088
  options: c
2853
3089
  };
2854
3090
  }
2855
3091
  };
2856
- }, T = function(l) {
2857
- const n = Ee(l);
3092
+ }, w = function(l) {
3093
+ const n = Fe(l);
2858
3094
  return {
2859
3095
  /**
2860
3096
  * 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.
@@ -2864,9 +3100,9 @@ const Ka = {
2864
3100
  * @param {*} [options] Override http request option.
2865
3101
  * @throws {RequiredError}
2866
3102
  */
2867
- async createPackage(e, t, a) {
2868
- const r = await n.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
2869
- return (c, i) => V(r, m, u, l)(c, s || i);
3103
+ async createPackage(e, r, a) {
3104
+ const t = await n.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
3105
+ return (c, i) => O(t, m, g, l)(c, s || i);
2870
3106
  },
2871
3107
  /**
2872
3108
  * 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.
@@ -2876,9 +3112,9 @@ const Ka = {
2876
3112
  * @param {*} [options] Override http request option.
2877
3113
  * @throws {RequiredError}
2878
3114
  */
2879
- async deletePackage(e, t, a) {
2880
- const r = await n.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2881
- return (c, i) => V(r, m, u, l)(c, s || i);
3115
+ async deletePackage(e, r, a) {
3116
+ const t = await n.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
3117
+ return (c, i) => O(t, m, g, l)(c, s || i);
2882
3118
  },
2883
3119
  /**
2884
3120
  * 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.
@@ -2890,9 +3126,9 @@ const Ka = {
2890
3126
  * @param {*} [options] Override http request option.
2891
3127
  * @throws {RequiredError}
2892
3128
  */
2893
- async getPackage(e, t, a, r, o) {
2894
- const s = await n.getPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2895
- return (d, p) => V(s, m, u, l)(d, i || p);
3129
+ async getPackage(e, r, a, t, o) {
3130
+ const s = await n.getPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
3131
+ return (d, p) => O(s, m, g, l)(d, i || p);
2896
3132
  },
2897
3133
  /**
2898
3134
  * 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`.
@@ -2901,9 +3137,9 @@ const Ka = {
2901
3137
  * @param {*} [options] Override http request option.
2902
3138
  * @throws {RequiredError}
2903
3139
  */
2904
- async listPackages(e, t) {
2905
- const a = await n.listPackages(e, t), r = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[r]?.url;
2906
- return (s, c) => V(a, m, u, l)(s, o || c);
3140
+ async listPackages(e, r) {
3141
+ const a = await n.listPackages(e, r), t = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
3142
+ return (s, c) => O(a, m, g, l)(s, o || c);
2907
3143
  },
2908
3144
  /**
2909
3145
  * 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.
@@ -2914,13 +3150,13 @@ const Ka = {
2914
3150
  * @param {*} [options] Override http request option.
2915
3151
  * @throws {RequiredError}
2916
3152
  */
2917
- async updatePackage(e, t, a, r) {
2918
- const o = await n.updatePackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2919
- return (i, d) => V(o, m, u, l)(i, c || d);
3153
+ async updatePackage(e, r, a, t) {
3154
+ const o = await n.updatePackage(e, r, a, t), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
3155
+ return (i, d) => O(o, m, g, l)(i, c || d);
2920
3156
  }
2921
3157
  };
2922
- }, Xa = function(l, n, e) {
2923
- const t = T(l);
3158
+ }, it = function(l, n, e) {
3159
+ const r = w(l);
2924
3160
  return {
2925
3161
  /**
2926
3162
  * 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.
@@ -2930,8 +3166,8 @@ const Ka = {
2930
3166
  * @param {*} [options] Override http request option.
2931
3167
  * @throws {RequiredError}
2932
3168
  */
2933
- createPackage(a, r, o) {
2934
- return t.createPackage(a, r, o).then((s) => s(e, n));
3169
+ createPackage(a, t, o) {
3170
+ return r.createPackage(a, t, o).then((s) => s(e, n));
2935
3171
  },
2936
3172
  /**
2937
3173
  * 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.
@@ -2941,8 +3177,8 @@ const Ka = {
2941
3177
  * @param {*} [options] Override http request option.
2942
3178
  * @throws {RequiredError}
2943
3179
  */
2944
- deletePackage(a, r, o) {
2945
- return t.deletePackage(a, r, o).then((s) => s(e, n));
3180
+ deletePackage(a, t, o) {
3181
+ return r.deletePackage(a, t, o).then((s) => s(e, n));
2946
3182
  },
2947
3183
  /**
2948
3184
  * 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.
@@ -2954,8 +3190,8 @@ const Ka = {
2954
3190
  * @param {*} [options] Override http request option.
2955
3191
  * @throws {RequiredError}
2956
3192
  */
2957
- getPackage(a, r, o, s, c) {
2958
- return t.getPackage(a, r, o, s, c).then((i) => i(e, n));
3193
+ getPackage(a, t, o, s, c) {
3194
+ return r.getPackage(a, t, o, s, c).then((i) => i(e, n));
2959
3195
  },
2960
3196
  /**
2961
3197
  * 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`.
@@ -2964,8 +3200,8 @@ const Ka = {
2964
3200
  * @param {*} [options] Override http request option.
2965
3201
  * @throws {RequiredError}
2966
3202
  */
2967
- listPackages(a, r) {
2968
- return t.listPackages(a, r).then((o) => o(e, n));
3203
+ listPackages(a, t) {
3204
+ return r.listPackages(a, t).then((o) => o(e, n));
2969
3205
  },
2970
3206
  /**
2971
3207
  * 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.
@@ -2976,12 +3212,12 @@ const Ka = {
2976
3212
  * @param {*} [options] Override http request option.
2977
3213
  * @throws {RequiredError}
2978
3214
  */
2979
- updatePackage(a, r, o, s) {
2980
- return t.updatePackage(a, r, o, s).then((c) => c(e, n));
3215
+ updatePackage(a, t, o, s) {
3216
+ return r.updatePackage(a, t, o, s).then((c) => c(e, n));
2981
3217
  }
2982
3218
  };
2983
3219
  };
2984
- class we extends I {
3220
+ class Qe extends I {
2985
3221
  /**
2986
3222
  * 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.
2987
3223
  * @summary Create a new package
@@ -2991,8 +3227,8 @@ class we extends I {
2991
3227
  * @throws {RequiredError}
2992
3228
  * @memberof PackagesApi
2993
3229
  */
2994
- createPackage(n, e, t) {
2995
- return T(this.configuration).createPackage(n, e, t).then((a) => a(this.axios, this.basePath));
3230
+ createPackage(n, e, r) {
3231
+ return w(this.configuration).createPackage(n, e, r).then((a) => a(this.axios, this.basePath));
2996
3232
  }
2997
3233
  /**
2998
3234
  * 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.
@@ -3003,8 +3239,8 @@ class we extends I {
3003
3239
  * @throws {RequiredError}
3004
3240
  * @memberof PackagesApi
3005
3241
  */
3006
- deletePackage(n, e, t) {
3007
- return T(this.configuration).deletePackage(n, e, t).then((a) => a(this.axios, this.basePath));
3242
+ deletePackage(n, e, r) {
3243
+ return w(this.configuration).deletePackage(n, e, r).then((a) => a(this.axios, this.basePath));
3008
3244
  }
3009
3245
  /**
3010
3246
  * 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.
@@ -3017,8 +3253,8 @@ class we extends I {
3017
3253
  * @throws {RequiredError}
3018
3254
  * @memberof PackagesApi
3019
3255
  */
3020
- getPackage(n, e, t, a, r) {
3021
- return T(this.configuration).getPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
3256
+ getPackage(n, e, r, a, t) {
3257
+ return w(this.configuration).getPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
3022
3258
  }
3023
3259
  /**
3024
3260
  * 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`.
@@ -3029,7 +3265,7 @@ class we extends I {
3029
3265
  * @memberof PackagesApi
3030
3266
  */
3031
3267
  listPackages(n, e) {
3032
- return T(this.configuration).listPackages(n, e).then((t) => t(this.axios, this.basePath));
3268
+ return w(this.configuration).listPackages(n, e).then((r) => r(this.axios, this.basePath));
3033
3269
  }
3034
3270
  /**
3035
3271
  * 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.
@@ -3041,11 +3277,11 @@ class we extends I {
3041
3277
  * @throws {RequiredError}
3042
3278
  * @memberof PackagesApi
3043
3279
  */
3044
- updatePackage(n, e, t, a) {
3045
- return T(this.configuration).updatePackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
3280
+ updatePackage(n, e, r, a) {
3281
+ return w(this.configuration).updatePackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
3046
3282
  }
3047
3283
  }
3048
- const Me = function(l) {
3284
+ const $e = function(l) {
3049
3285
  return {
3050
3286
  /**
3051
3287
  * 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.
@@ -3054,15 +3290,15 @@ const Me = function(l) {
3054
3290
  * @throws {RequiredError}
3055
3291
  */
3056
3292
  deleteTheme: async (n = {}) => {
3057
- const e = "/theme", t = new URL(e, P);
3293
+ const e = "/theme", r = new URL(e, b);
3058
3294
  let a;
3059
3295
  l && (a = l.baseOptions);
3060
- const r = { method: "DELETE", ...a, ...n }, o = {};
3061
- b(t, {});
3296
+ const t = { method: "DELETE", ...a, ...n }, o = {};
3297
+ V(r, {});
3062
3298
  let c = a && a.headers ? a.headers : {};
3063
- return r.headers = { ...o, ...c, ...n.headers }, {
3064
- url: v(t),
3065
- options: r
3299
+ return t.headers = { ...o, ...c, ...n.headers }, {
3300
+ url: v(r),
3301
+ options: t
3066
3302
  };
3067
3303
  },
3068
3304
  /**
@@ -3072,15 +3308,15 @@ const Me = function(l) {
3072
3308
  * @throws {RequiredError}
3073
3309
  */
3074
3310
  getStatus: async (n = {}) => {
3075
- const e = "/status", t = new URL(e, P);
3311
+ const e = "/status", r = new URL(e, b);
3076
3312
  let a;
3077
3313
  l && (a = l.baseOptions);
3078
- const r = { method: "GET", ...a, ...n }, o = {};
3079
- b(t, {});
3314
+ const t = { method: "GET", ...a, ...n }, o = {};
3315
+ V(r, {});
3080
3316
  let c = a && a.headers ? a.headers : {};
3081
- return r.headers = { ...o, ...c, ...n.headers }, {
3082
- url: v(t),
3083
- options: r
3317
+ return t.headers = { ...o, ...c, ...n.headers }, {
3318
+ url: v(r),
3319
+ options: t
3084
3320
  };
3085
3321
  },
3086
3322
  /**
@@ -3090,15 +3326,15 @@ const Me = function(l) {
3090
3326
  * @throws {RequiredError}
3091
3327
  */
3092
3328
  getTheme: async (n = {}) => {
3093
- const e = "/theme", t = new URL(e, P);
3329
+ const e = "/theme", r = new URL(e, b);
3094
3330
  let a;
3095
3331
  l && (a = l.baseOptions);
3096
- const r = { method: "GET", ...a, ...n }, o = {};
3097
- b(t, {});
3332
+ const t = { method: "GET", ...a, ...n }, o = {};
3333
+ V(r, {});
3098
3334
  let c = a && a.headers ? a.headers : {};
3099
- return r.headers = { ...o, ...c, ...n.headers }, {
3100
- url: v(t),
3101
- options: r
3335
+ return t.headers = { ...o, ...c, ...n.headers }, {
3336
+ url: v(r),
3337
+ options: t
3102
3338
  };
3103
3339
  },
3104
3340
  /**
@@ -3110,20 +3346,20 @@ const Me = function(l) {
3110
3346
  */
3111
3347
  updateTheme: async (n, e = {}) => {
3112
3348
  h("updateTheme", "theme", n);
3113
- const t = "/theme", a = new URL(t, P);
3114
- let r;
3115
- l && (r = l.baseOptions);
3116
- const o = { method: "PUT", ...r, ...e }, s = {}, c = {};
3117
- s["Content-Type"] = "application/json", b(a, c);
3118
- let i = r && r.headers ? r.headers : {};
3119
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
3349
+ const r = "/theme", a = new URL(r, b);
3350
+ let t;
3351
+ l && (t = l.baseOptions);
3352
+ const o = { method: "PUT", ...t, ...e }, s = {}, c = {};
3353
+ s["Content-Type"] = "application/json", V(a, c);
3354
+ let i = t && t.headers ? t.headers : {};
3355
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
3120
3356
  url: v(a),
3121
3357
  options: o
3122
3358
  };
3123
3359
  }
3124
3360
  };
3125
- }, w = function(l) {
3126
- const n = Me(l);
3361
+ }, M = function(l) {
3362
+ const n = $e(l);
3127
3363
  return {
3128
3364
  /**
3129
3365
  * 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.
@@ -3132,8 +3368,8 @@ const Me = function(l) {
3132
3368
  * @throws {RequiredError}
3133
3369
  */
3134
3370
  async deleteTheme(e) {
3135
- const t = await n.deleteTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.deleteTheme"]?.[a]?.url;
3136
- return (o, s) => V(t, m, u, l)(o, r || s);
3371
+ const r = await n.deleteTheme(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.deleteTheme"]?.[a]?.url;
3372
+ return (o, s) => O(r, m, g, l)(o, t || s);
3137
3373
  },
3138
3374
  /**
3139
3375
  * 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.
@@ -3142,8 +3378,8 @@ const Me = function(l) {
3142
3378
  * @throws {RequiredError}
3143
3379
  */
3144
3380
  async getStatus(e) {
3145
- const t = await n.getStatus(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getStatus"]?.[a]?.url;
3146
- return (o, s) => V(t, m, u, l)(o, r || s);
3381
+ const r = await n.getStatus(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[a]?.url;
3382
+ return (o, s) => O(r, m, g, l)(o, t || s);
3147
3383
  },
3148
3384
  /**
3149
3385
  * 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.
@@ -3152,8 +3388,8 @@ const Me = function(l) {
3152
3388
  * @throws {RequiredError}
3153
3389
  */
3154
3390
  async getTheme(e) {
3155
- const t = await n.getTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getTheme"]?.[a]?.url;
3156
- return (o, s) => V(t, m, u, l)(o, r || s);
3391
+ const r = await n.getTheme(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.getTheme"]?.[a]?.url;
3392
+ return (o, s) => O(r, m, g, l)(o, t || s);
3157
3393
  },
3158
3394
  /**
3159
3395
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3162,13 +3398,13 @@ const Me = function(l) {
3162
3398
  * @param {*} [options] Override http request option.
3163
3399
  * @throws {RequiredError}
3164
3400
  */
3165
- async updateTheme(e, t) {
3166
- const a = await n.updateTheme(e, t), r = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[r]?.url;
3167
- return (s, c) => V(a, m, u, l)(s, o || c);
3401
+ async updateTheme(e, r) {
3402
+ const a = await n.updateTheme(e, r), t = l?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[t]?.url;
3403
+ return (s, c) => O(a, m, g, l)(s, o || c);
3168
3404
  }
3169
3405
  };
3170
- }, Za = function(l, n, e) {
3171
- const t = w(l);
3406
+ }, dt = function(l, n, e) {
3407
+ const r = M(l);
3172
3408
  return {
3173
3409
  /**
3174
3410
  * 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.
@@ -3177,7 +3413,7 @@ const Me = function(l) {
3177
3413
  * @throws {RequiredError}
3178
3414
  */
3179
3415
  deleteTheme(a) {
3180
- return t.deleteTheme(a).then((r) => r(e, n));
3416
+ return r.deleteTheme(a).then((t) => t(e, n));
3181
3417
  },
3182
3418
  /**
3183
3419
  * 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.
@@ -3186,7 +3422,7 @@ const Me = function(l) {
3186
3422
  * @throws {RequiredError}
3187
3423
  */
3188
3424
  getStatus(a) {
3189
- return t.getStatus(a).then((r) => r(e, n));
3425
+ return r.getStatus(a).then((t) => t(e, n));
3190
3426
  },
3191
3427
  /**
3192
3428
  * 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.
@@ -3195,7 +3431,7 @@ const Me = function(l) {
3195
3431
  * @throws {RequiredError}
3196
3432
  */
3197
3433
  getTheme(a) {
3198
- return t.getTheme(a).then((r) => r(e, n));
3434
+ return r.getTheme(a).then((t) => t(e, n));
3199
3435
  },
3200
3436
  /**
3201
3437
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3204,12 +3440,12 @@ const Me = function(l) {
3204
3440
  * @param {*} [options] Override http request option.
3205
3441
  * @throws {RequiredError}
3206
3442
  */
3207
- updateTheme(a, r) {
3208
- return t.updateTheme(a, r).then((o) => o(e, n));
3443
+ updateTheme(a, t) {
3444
+ return r.updateTheme(a, t).then((o) => o(e, n));
3209
3445
  }
3210
3446
  };
3211
3447
  };
3212
- class fe extends I {
3448
+ class qe extends I {
3213
3449
  /**
3214
3450
  * 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.
3215
3451
  * @summary Reset the instance theme to the boot seed or default
@@ -3218,7 +3454,7 @@ class fe extends I {
3218
3454
  * @memberof PublisherApi
3219
3455
  */
3220
3456
  deleteTheme(n) {
3221
- return w(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
3457
+ return M(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
3222
3458
  }
3223
3459
  /**
3224
3460
  * 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.
@@ -3228,7 +3464,7 @@ class fe extends I {
3228
3464
  * @memberof PublisherApi
3229
3465
  */
3230
3466
  getStatus(n) {
3231
- return w(this.configuration).getStatus(n).then((e) => e(this.axios, this.basePath));
3467
+ return M(this.configuration).getStatus(n).then((e) => e(this.axios, this.basePath));
3232
3468
  }
3233
3469
  /**
3234
3470
  * 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.
@@ -3238,7 +3474,7 @@ class fe extends I {
3238
3474
  * @memberof PublisherApi
3239
3475
  */
3240
3476
  getTheme(n) {
3241
- return w(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
3477
+ return M(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
3242
3478
  }
3243
3479
  /**
3244
3480
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3249,10 +3485,10 @@ class fe extends I {
3249
3485
  * @memberof PublisherApi
3250
3486
  */
3251
3487
  updateTheme(n, e) {
3252
- return w(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
3488
+ return M(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
3253
3489
  }
3254
3490
  }
3255
- const Be = function(l) {
3491
+ const ze = function(l) {
3256
3492
  return {
3257
3493
  /**
3258
3494
  * 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.
@@ -3261,15 +3497,15 @@ const Be = function(l) {
3261
3497
  * @throws {RequiredError}
3262
3498
  */
3263
3499
  getWatchStatus: async (n = {}) => {
3264
- const e = "/watch-mode/status", t = new URL(e, P);
3500
+ const e = "/watch-mode/status", r = new URL(e, b);
3265
3501
  let a;
3266
3502
  l && (a = l.baseOptions);
3267
- const r = { method: "GET", ...a, ...n }, o = {};
3268
- b(t, {});
3503
+ const t = { method: "GET", ...a, ...n }, o = {};
3504
+ V(r, {});
3269
3505
  let c = a && a.headers ? a.headers : {};
3270
- return r.headers = { ...o, ...c, ...n.headers }, {
3271
- url: v(t),
3272
- options: r
3506
+ return t.headers = { ...o, ...c, ...n.headers }, {
3507
+ url: v(r),
3508
+ options: t
3273
3509
  };
3274
3510
  },
3275
3511
  /**
@@ -3281,13 +3517,13 @@ const Be = function(l) {
3281
3517
  */
3282
3518
  startWatching: async (n, e = {}) => {
3283
3519
  h("startWatching", "startWatchRequest", n);
3284
- const t = "/watch-mode/start", a = new URL(t, P);
3285
- let r;
3286
- l && (r = l.baseOptions);
3287
- const o = { method: "POST", ...r, ...e }, s = {}, c = {};
3288
- s["Content-Type"] = "application/json", b(a, c);
3289
- let i = r && r.headers ? r.headers : {};
3290
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
3520
+ const r = "/watch-mode/start", a = new URL(r, b);
3521
+ let t;
3522
+ l && (t = l.baseOptions);
3523
+ const o = { method: "POST", ...t, ...e }, s = {}, c = {};
3524
+ s["Content-Type"] = "application/json", V(a, c);
3525
+ let i = t && t.headers ? t.headers : {};
3526
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
3291
3527
  url: v(a),
3292
3528
  options: o
3293
3529
  };
@@ -3299,15 +3535,15 @@ const Be = function(l) {
3299
3535
  * @throws {RequiredError}
3300
3536
  */
3301
3537
  stopWatching: async (n = {}) => {
3302
- const e = "/watch-mode/stop", t = new URL(e, P);
3538
+ const e = "/watch-mode/stop", r = new URL(e, b);
3303
3539
  let a;
3304
3540
  l && (a = l.baseOptions);
3305
- const r = { method: "POST", ...a, ...n }, o = {};
3306
- b(t, {});
3541
+ const t = { method: "POST", ...a, ...n }, o = {};
3542
+ V(r, {});
3307
3543
  let c = a && a.headers ? a.headers : {};
3308
- return r.headers = { ...o, ...c, ...n.headers }, {
3309
- url: v(t),
3310
- options: r
3544
+ return t.headers = { ...o, ...c, ...n.headers }, {
3545
+ url: v(r),
3546
+ options: t
3311
3547
  };
3312
3548
  },
3313
3549
  /**
@@ -3318,22 +3554,22 @@ const Be = function(l) {
3318
3554
  * @param {*} [options] Override http request option.
3319
3555
  * @throws {RequiredError}
3320
3556
  */
3321
- streamPackageEvents: async (n, e, t = {}) => {
3557
+ streamPackageEvents: async (n, e, r = {}) => {
3322
3558
  h("streamPackageEvents", "environmentName", n), h("streamPackageEvents", "packageName", e);
3323
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
3559
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
3324
3560
  let o;
3325
3561
  l && (o = l.baseOptions);
3326
- const s = { method: "GET", ...o, ...t }, c = {};
3327
- b(r, {});
3562
+ const s = { method: "GET", ...o, ...r }, c = {};
3563
+ V(t, {});
3328
3564
  let d = o && o.headers ? o.headers : {};
3329
- return s.headers = { ...c, ...d, ...t.headers }, {
3330
- url: v(r),
3565
+ return s.headers = { ...c, ...d, ...r.headers }, {
3566
+ url: v(t),
3331
3567
  options: s
3332
3568
  };
3333
3569
  }
3334
3570
  };
3335
- }, M = function(l) {
3336
- const n = Be(l);
3571
+ }, f = function(l) {
3572
+ const n = ze(l);
3337
3573
  return {
3338
3574
  /**
3339
3575
  * 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.
@@ -3342,8 +3578,8 @@ const Be = function(l) {
3342
3578
  * @throws {RequiredError}
3343
3579
  */
3344
3580
  async getWatchStatus(e) {
3345
- const t = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
3346
- return (o, s) => V(t, m, u, l)(o, r || s);
3581
+ const r = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
3582
+ return (o, s) => O(r, m, g, l)(o, t || s);
3347
3583
  },
3348
3584
  /**
3349
3585
  * 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.
@@ -3352,9 +3588,9 @@ const Be = function(l) {
3352
3588
  * @param {*} [options] Override http request option.
3353
3589
  * @throws {RequiredError}
3354
3590
  */
3355
- async startWatching(e, t) {
3356
- const a = await n.startWatching(e, t), r = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[r]?.url;
3357
- return (s, c) => V(a, m, u, l)(s, o || c);
3591
+ async startWatching(e, r) {
3592
+ const a = await n.startWatching(e, r), t = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
3593
+ return (s, c) => O(a, m, g, l)(s, o || c);
3358
3594
  },
3359
3595
  /**
3360
3596
  * 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.
@@ -3363,8 +3599,8 @@ const Be = function(l) {
3363
3599
  * @throws {RequiredError}
3364
3600
  */
3365
3601
  async stopWatching(e) {
3366
- const t = await n.stopWatching(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.stopWatching"]?.[a]?.url;
3367
- return (o, s) => V(t, m, u, l)(o, r || s);
3602
+ const r = await n.stopWatching(e), a = l?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[a]?.url;
3603
+ return (o, s) => O(r, m, g, l)(o, t || s);
3368
3604
  },
3369
3605
  /**
3370
3606
  * 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.
@@ -3374,13 +3610,13 @@ const Be = function(l) {
3374
3610
  * @param {*} [options] Override http request option.
3375
3611
  * @throws {RequiredError}
3376
3612
  */
3377
- async streamPackageEvents(e, t, a) {
3378
- const r = await n.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3379
- return (c, i) => V(r, m, u, l)(c, s || i);
3613
+ async streamPackageEvents(e, r, a) {
3614
+ const t = await n.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3615
+ return (c, i) => O(t, m, g, l)(c, s || i);
3380
3616
  }
3381
3617
  };
3382
- }, et = function(l, n, e) {
3383
- const t = M(l);
3618
+ }, pt = function(l, n, e) {
3619
+ const r = f(l);
3384
3620
  return {
3385
3621
  /**
3386
3622
  * 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.
@@ -3389,7 +3625,7 @@ const Be = function(l) {
3389
3625
  * @throws {RequiredError}
3390
3626
  */
3391
3627
  getWatchStatus(a) {
3392
- return t.getWatchStatus(a).then((r) => r(e, n));
3628
+ return r.getWatchStatus(a).then((t) => t(e, n));
3393
3629
  },
3394
3630
  /**
3395
3631
  * 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.
@@ -3398,8 +3634,8 @@ const Be = function(l) {
3398
3634
  * @param {*} [options] Override http request option.
3399
3635
  * @throws {RequiredError}
3400
3636
  */
3401
- startWatching(a, r) {
3402
- return t.startWatching(a, r).then((o) => o(e, n));
3637
+ startWatching(a, t) {
3638
+ return r.startWatching(a, t).then((o) => o(e, n));
3403
3639
  },
3404
3640
  /**
3405
3641
  * 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.
@@ -3408,7 +3644,7 @@ const Be = function(l) {
3408
3644
  * @throws {RequiredError}
3409
3645
  */
3410
3646
  stopWatching(a) {
3411
- return t.stopWatching(a).then((r) => r(e, n));
3647
+ return r.stopWatching(a).then((t) => t(e, n));
3412
3648
  },
3413
3649
  /**
3414
3650
  * 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.
@@ -3418,12 +3654,12 @@ const Be = function(l) {
3418
3654
  * @param {*} [options] Override http request option.
3419
3655
  * @throws {RequiredError}
3420
3656
  */
3421
- streamPackageEvents(a, r, o) {
3422
- return t.streamPackageEvents(a, r, o).then((s) => s(e, n));
3657
+ streamPackageEvents(a, t, o) {
3658
+ return r.streamPackageEvents(a, t, o).then((s) => s(e, n));
3423
3659
  }
3424
3660
  };
3425
3661
  };
3426
- class Fe extends I {
3662
+ class De extends I {
3427
3663
  /**
3428
3664
  * 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.
3429
3665
  * @summary Get watch mode status
@@ -3432,7 +3668,7 @@ class Fe extends I {
3432
3668
  * @memberof WatchModeApi
3433
3669
  */
3434
3670
  getWatchStatus(n) {
3435
- return M(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
3671
+ return f(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
3436
3672
  }
3437
3673
  /**
3438
3674
  * 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.
@@ -3443,7 +3679,7 @@ class Fe extends I {
3443
3679
  * @memberof WatchModeApi
3444
3680
  */
3445
3681
  startWatching(n, e) {
3446
- return M(this.configuration).startWatching(n, e).then((t) => t(this.axios, this.basePath));
3682
+ return f(this.configuration).startWatching(n, e).then((r) => r(this.axios, this.basePath));
3447
3683
  }
3448
3684
  /**
3449
3685
  * 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.
@@ -3453,7 +3689,7 @@ class Fe extends I {
3453
3689
  * @memberof WatchModeApi
3454
3690
  */
3455
3691
  stopWatching(n) {
3456
- return M(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
3692
+ return f(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
3457
3693
  }
3458
3694
  /**
3459
3695
  * 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.
@@ -3464,11 +3700,11 @@ class Fe extends I {
3464
3700
  * @throws {RequiredError}
3465
3701
  * @memberof WatchModeApi
3466
3702
  */
3467
- streamPackageEvents(n, e, t) {
3468
- return M(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
3703
+ streamPackageEvents(n, e, r) {
3704
+ return f(this.configuration).streamPackageEvents(n, e, r).then((a) => a(this.axios, this.basePath));
3469
3705
  }
3470
3706
  }
3471
- class Qe {
3707
+ class Le {
3472
3708
  /**
3473
3709
  * parameter for apiKey security
3474
3710
  * @param name security name
@@ -3548,267 +3784,7 @@ class Qe {
3548
3784
  return n !== null && (e.test(n) || n.toLowerCase() === "application/json-patch+json");
3549
3785
  }
3550
3786
  }
3551
- const B = {
3552
- teal: "#14b3cb",
3553
- // light wing of the M
3554
- orange: "#e47404",
3555
- // right wing of the M
3556
- darkBlue: "#1474a4"
3557
- // deep shadow of the M
3558
- }, at = {
3559
- violet: "#7c4dcc",
3560
- magenta: "#c2478f",
3561
- moss: "#5c8f3f"
3562
- }, tt = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', rt = C(J)({
3563
- display: "flex",
3564
- flexDirection: "column",
3565
- height: "100%",
3566
- boxShadow: "none",
3567
- border: "none",
3568
- backgroundColor: "transparent"
3569
- }), nt = C(K)({
3570
- display: "flex",
3571
- flexDirection: "column",
3572
- padding: "0",
3573
- flexGrow: 1
3574
- }), ot = C(me)({
3575
- padding: "0"
3576
- }), st = C("div")(({ theme: l }) => ({
3577
- backgroundColor: l.palette.background.default,
3578
- padding: "0 8px 0px 8px",
3579
- borderRadius: "12px",
3580
- boxShadow: "none",
3581
- border: "none",
3582
- maxWidth: "1200px",
3583
- margin: "0 auto"
3584
- })), lt = C("div")({
3585
- marginBottom: "48px",
3586
- padding: "0",
3587
- backgroundColor: "transparent",
3588
- border: "none",
3589
- boxShadow: "none"
3590
- }), ct = C("div")({
3591
- backgroundColor: "transparent",
3592
- paddingTop: "12px",
3593
- paddingBottom: "2px",
3594
- borderRadius: "8px",
3595
- border: "none",
3596
- boxShadow: "none",
3597
- marginBottom: "0"
3598
- }), it = C("div")({
3599
- height: "100%"
3600
- });
3601
- C("div")({
3602
- height: "30px",
3603
- backgroundColor: "rgba(225, 240, 255, 1)",
3604
- display: "flex",
3605
- padding: "4px",
3606
- alignItems: "center"
3607
- });
3608
- const dt = C("div")({
3609
- height: "75vh",
3610
- width: "100%",
3611
- overflowY: "auto"
3612
- });
3613
- C("div")({
3614
- position: "relative",
3615
- height: "100%",
3616
- flex: "0 0 auto"
3617
- });
3618
- const pt = C(J)(({ theme: l }) => ({
3619
- backgroundColor: l.palette.background.paper,
3620
- padding: "24px",
3621
- borderRadius: "8px",
3622
- border: `1px solid ${l.palette.divider}`,
3623
- boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
3624
- height: "100%",
3625
- transition: "box-shadow 0.2s ease-in-out",
3626
- "&:hover": {
3627
- boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
3628
- }
3629
- })), ht = C(K)({
3630
- padding: "0",
3631
- "&:last-child": {
3632
- paddingBottom: "0"
3633
- }
3634
- }), mt = C("div")(({ theme: l }) => ({
3635
- fontSize: "0.875rem",
3636
- fontWeight: 500,
3637
- color: l.palette.text.secondary,
3638
- marginBottom: "16px",
3639
- paddingBottom: "8px",
3640
- borderBottom: `1px solid ${l.palette.divider}`
3641
- }));
3642
- C("div")({
3643
- padding: "32px",
3644
- maxWidth: "1400px",
3645
- margin: "0 auto",
3646
- minHeight: "100vh"
3647
- });
3648
- const ze = [
3649
- B.teal,
3650
- B.orange,
3651
- B.darkBlue,
3652
- "#66cedc",
3653
- "#ec72b8",
3654
- "#f9c85b",
3655
- "#aacd85",
3656
- "#b87ced"
3657
- ], $e = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
3658
- defaultMode: "light",
3659
- allowUserToggle: !0,
3660
- palette: {
3661
- series: ze,
3662
- background: {
3663
- light: "#ffffff",
3664
- // Slate to match the Publisher app's sidebar surface so
3665
- // rendered charts sit on the same elevation as the chrome
3666
- // around them.
3667
- dark: "#1e293b"
3668
- },
3669
- tableHeader: {
3670
- light: "#5d626b",
3671
- dark: "#cbd5e1"
3672
- },
3673
- // Background of the table header row, independent of the
3674
- // tile (dashboard tile container) so the operator can theme
3675
- // the header band on its own.
3676
- tableHeaderBackground: {
3677
- light: "#f5fafc",
3678
- dark: "#1e293b"
3679
- },
3680
- tableBody: {
3681
- light: "#727883",
3682
- dark: "#e2e8f0"
3683
- },
3684
- // The padded container that wraps each chart / table in a
3685
- // dashboard. Light mode: a faint tint so tiles read as recessed
3686
- // cards on the page; dark mode: page-outer slate.
3687
- tile: {
3688
- light: "#f5fafc",
3689
- dark: "#0f172a"
3690
- },
3691
- tileTitle: {
3692
- light: "#5d626b",
3693
- dark: "#94a3b8"
3694
- },
3695
- // Saturated end of the choropleth / heatmap gradient. The
3696
- // renderer pairs this with a near-neutral low end. Defaults
3697
- // match the first series colour (teal) so unbranded installs
3698
- // get a brand-coherent gradient instead of the renderer's
3699
- // hardcoded blue ramp.
3700
- mapColor: {
3701
- light: B.teal,
3702
- dark: B.teal
3703
- }
3704
- },
3705
- font: {
3706
- family: $e,
3707
- size: 12
3708
- }
3709
- }, qe = [
3710
- "background",
3711
- "tableHeader",
3712
- "tableHeaderBackground",
3713
- "tableBody",
3714
- "tile",
3715
- "tileTitle",
3716
- "mapColor"
3717
- ];
3718
- function ae(l, n) {
3719
- const e = W.palette ?? {}, t = W.font ?? {
3720
- family: "sans-serif",
3721
- size: 12
3722
- };
3723
- let a = [...e.series ?? []], r = t.family ?? "sans-serif", o = t.size ?? 12;
3724
- const s = {
3725
- background: { ...e.background ?? {} },
3726
- tableHeader: { ...e.tableHeader ?? {} },
3727
- tableHeaderBackground: {
3728
- ...e.tableHeaderBackground ?? {}
3729
- },
3730
- tableBody: { ...e.tableBody ?? {} },
3731
- tile: { ...e.tile ?? {} },
3732
- tileTitle: { ...e.tileTitle ?? {} },
3733
- mapColor: { ...e.mapColor ?? {} }
3734
- };
3735
- for (const p of l)
3736
- if (p) {
3737
- Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
3738
- for (const O of qe) {
3739
- const k = p.palette?.[O];
3740
- k && (s[O] = { ...s[O], ...k });
3741
- }
3742
- typeof p.font?.family == "string" && (r = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
3743
- }
3744
- const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
3745
- return {
3746
- mode: n,
3747
- series: a,
3748
- font: { family: r, size: o },
3749
- background: d,
3750
- tableHeader: i("tableHeader"),
3751
- tableHeaderBackground: i("tableHeaderBackground"),
3752
- tableBody: i("tableBody"),
3753
- tile: i("tile"),
3754
- tileTitle: i("tileTitle"),
3755
- mapColor: i("mapColor"),
3756
- // Table interior follows the operator's chart background so
3757
- // tables and chart canvases share a single "viz surface" colour.
3758
- tableBackground: d,
3759
- // Derived, mode-keyed defaults. Operators don't edit these in
3760
- // v1; they're consistent borders / readable foreground text for
3761
- // each mode. If a user later asks to customise them, expose them
3762
- // on the schema and the editor and replace the literals below.
3763
- border: c ? "1px solid #334155" : "1px solid #e5e7eb",
3764
- pinnedBorder: c ? "1px solid #475569" : "1px solid #daedf3",
3765
- valueColor: c ? "#f1f5f9" : "#1f2937",
3766
- foreground: c ? "#e2e8f0" : "#1f2937",
3767
- axisFaint: c ? "#475569" : "#d1d5db",
3768
- // Dashboard panel background (area BETWEEN tiles). Light keeps
3769
- // white so the page stays visually unchanged. Dark uses slate so
3770
- // the panel doesn't read as a bright box against the dark page
3771
- // chrome. Intentionally NOT tied to `palette.background`: the
3772
- // panel stays neutral so a bold accent on the chart canvas
3773
- // doesn't bleed into the surrounding chrome.
3774
- dashboardRoot: c ? "#1e293b" : "#ffffff",
3775
- // Drill link hover. Light is Malloyyo's own blue, so the same drill reads
3776
- // the same in both; dark lightens it for contrast on the slate panel.
3777
- drillLink: c ? "#60a5fa" : "#2563eb"
3778
- };
3779
- }
3780
- function De(l, n, e) {
3781
- const t = n ?? l ?? "light";
3782
- return t === "auto" ? e ? "dark" : "light" : t;
3783
- }
3784
- const te = G(void 0);
3785
- function Le({
3786
- layers: l,
3787
- mode: n,
3788
- userChoice: e,
3789
- setMode: t,
3790
- allowUserToggle: a = !0,
3791
- children: r
3792
- }) {
3793
- const o = f(() => ae(l, n), [l, n]), s = f(
3794
- () => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
3795
- [o, l, n, e, t, a]
3796
- );
3797
- return /* @__PURE__ */ F(te.Provider, { value: s, children: r });
3798
- }
3799
- function ut() {
3800
- const l = Y(te);
3801
- return l || {
3802
- theme: ae([], "light"),
3803
- layers: [],
3804
- mode: "light",
3805
- userChoice: void 0,
3806
- setMode: () => {
3807
- },
3808
- allowUserToggle: !1
3809
- };
3810
- }
3811
- const je = new ce({
3787
+ const je = new se({
3812
3788
  defaultOptions: {
3813
3789
  queries: {
3814
3790
  retry: !1,
@@ -3819,7 +3795,7 @@ const je = new ce({
3819
3795
  throwOnError: !1
3820
3796
  }
3821
3797
  }
3822
- }), gt = {
3798
+ }), ht = {
3823
3799
  staleTime: 300 * 1e3,
3824
3800
  refetchOnWindowFocus: !1,
3825
3801
  refetchOnReconnect: !1
@@ -3843,210 +3819,207 @@ function We() {
3843
3819
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3844
3820
  }
3845
3821
  m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3846
- const re = G(void 0), Ge = (l, n) => {
3847
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = m.create({
3822
+ const ae = G(void 0), Ge = (l, n) => {
3823
+ const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = m.create({
3848
3824
  baseURL: l || e,
3849
3825
  withCredentials: !0,
3850
3826
  timeout: 6e5
3851
3827
  });
3852
- t.interceptors.request.use(async (r) => {
3828
+ r.interceptors.request.use(async (t) => {
3853
3829
  const o = await n?.();
3854
- return r.headers.Authorization = o || "", r;
3830
+ return t.headers.Authorization = o || "", t;
3855
3831
  });
3856
- const a = new Qe({ basePath: e });
3832
+ const a = new Le({ basePath: e });
3857
3833
  return {
3858
- models: new Ne(a, e, t),
3859
- publisher: new fe(a, e, t),
3860
- environments: new Ie(a, e, t),
3861
- packages: new we(a, e, t),
3862
- dashboards: new Ve(a, e, t),
3863
- dataApps: new Se(a, e, t),
3864
- notebooks: new Ue(a, e, t),
3865
- connections: new Pe(a, e, t),
3866
- databases: new ke(a, e, t),
3867
- materializations: new Ae(
3834
+ models: new Me(a, e, r),
3835
+ publisher: new qe(a, e, r),
3836
+ environments: new Te(a, e, r),
3837
+ packages: new Qe(a, e, r),
3838
+ dashboards: new Ce(a, e, r),
3839
+ dataApps: new Ae(a, e, r),
3840
+ notebooks: new Be(a, e, r),
3841
+ connections: new Se(a, e, r),
3842
+ databases: new Re(a, e, r),
3843
+ materializations: new we(
3868
3844
  a,
3869
3845
  e,
3870
- t
3846
+ r
3871
3847
  ),
3872
- watchMode: new Fe(a, e, t)
3848
+ watchMode: new De(a, e, r)
3873
3849
  };
3874
- }, Pt = (l) => /* @__PURE__ */ F(ie, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3850
+ }, mt = (l) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3875
3851
  children: l,
3876
3852
  getAccessToken: n,
3877
3853
  baseURL: e,
3878
- mutable: t,
3854
+ mutable: r,
3879
3855
  theme: a
3880
3856
  }) => {
3881
- const r = f(
3857
+ const t = B(
3882
3858
  () => Ge(e, n),
3883
3859
  [e, n]
3884
- ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = de({
3860
+ ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = ce({
3885
3861
  queryKey: ["status"],
3886
- queryFn: async () => (await r.publisher.getStatus()).data
3862
+ queryFn: async () => (await t.publisher.getStatus()).data
3887
3863
  });
3888
3864
  s.error && console.error("Failed to fetch publisher status:", s.error);
3889
3865
  const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
3890
3866
  let p;
3891
- s.isLoading || s.error ? p = t : c ? p = !1 : p = t ?? !0;
3892
- const O = f(
3867
+ s.isLoading || s.error ? p = r : c ? p = !1 : p = r ?? !0;
3868
+ const u = B(
3893
3869
  () => [i, a],
3894
3870
  [i, a]
3895
- ), [k, U] = _(
3871
+ ), [k, E] = _(
3896
3872
  He
3897
- ), [x, z] = _(We);
3898
- pe(() => {
3873
+ ), [A, $] = _(We);
3874
+ ie(() => {
3899
3875
  if (typeof window > "u" || !window.matchMedia) return;
3900
- const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (le) => z(le.matches);
3876
+ const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (oe) => $(oe.matches);
3901
3877
  return R.addEventListener("change", H), () => R.removeEventListener("change", H);
3902
3878
  }, []);
3903
- const ne = he((R) => {
3904
- U(R), _e(R);
3905
- }, []), j = i?.allowUserToggle ?? !0, $ = j ? k : void 0, oe = f(
3906
- () => De(
3879
+ const te = de((R) => {
3880
+ E(R), _e(R);
3881
+ }, []), j = i?.allowUserToggle ?? !0, q = j ? k : void 0, re = B(
3882
+ () => be(
3907
3883
  i?.defaultMode,
3908
- $,
3909
- x
3884
+ q,
3885
+ A
3910
3886
  ),
3911
- [i?.defaultMode, $, x]
3912
- ), se = {
3887
+ [i?.defaultMode, q, A]
3888
+ ), ne = {
3913
3889
  server: o,
3914
3890
  getAccessToken: n,
3915
- apiClients: r,
3891
+ apiClients: t,
3916
3892
  mutable: p,
3917
3893
  isLoadingStatus: d,
3918
3894
  instanceTheme: i
3919
3895
  };
3920
- return /* @__PURE__ */ F(re.Provider, { value: se, children: /* @__PURE__ */ F(
3921
- Le,
3896
+ return /* @__PURE__ */ F(ae.Provider, { value: ne, children: /* @__PURE__ */ F(
3897
+ Ve,
3922
3898
  {
3923
- layers: O,
3924
- mode: oe,
3925
- userChoice: $,
3926
- setMode: ne,
3899
+ layers: u,
3900
+ mode: re,
3901
+ userChoice: q,
3902
+ setMode: te,
3927
3903
  allowUserToggle: j,
3928
3904
  children: l
3929
3905
  }
3930
3906
  ) });
3931
- }, bt = () => {
3932
- const l = Y(re);
3907
+ }, ut = () => {
3908
+ const l = Y(ae);
3933
3909
  if (l === void 0)
3934
3910
  throw new Error("useServer must be used within a ServerProvider");
3935
3911
  return l;
3936
3912
  };
3937
3913
  export {
3938
- Ve as $,
3939
- aa as A,
3940
- Ba as B,
3941
- ra as C,
3942
- ia as D,
3943
- Fa as E,
3944
- pa as F,
3945
- ma as G,
3946
- Qa as H,
3947
- ge as I,
3948
- S as J,
3949
- $a as K,
3950
- ua as L,
3951
- Pa as M,
3952
- Oa as N,
3953
- Pe as O,
3954
- ya as P,
3955
- Ta as Q,
3956
- wa as R,
3957
- Pt as S,
3958
- za as T,
3959
- be as U,
3914
+ Ce as $,
3915
+ ha as A,
3916
+ Wa as B,
3917
+ ua as C,
3918
+ Oa as D,
3919
+ Ga as E,
3920
+ ya as F,
3921
+ Ca as G,
3922
+ Ya as H,
3923
+ Oe as I,
3924
+ y as J,
3925
+ Ka as K,
3926
+ Ia as L,
3927
+ xa as M,
3928
+ Ua as N,
3929
+ Se as O,
3930
+ Ea as P,
3931
+ za as Q,
3932
+ ja as R,
3933
+ mt as S,
3934
+ Ja as T,
3935
+ ye as U,
3960
3936
  X as V,
3961
- qa as W,
3962
- Da as X,
3963
- ve as Y,
3937
+ Xa as W,
3938
+ Za as X,
3939
+ ke as Y,
3964
3940
  D as Z,
3965
- La as _,
3966
- ta as a,
3967
- Oe as a0,
3941
+ et as _,
3942
+ ma as a,
3943
+ Ie as a0,
3968
3944
  Z as a1,
3969
- ja as a2,
3970
- Se as a3,
3971
- ye as a4,
3945
+ at as a2,
3946
+ Ae as a3,
3947
+ xe as a4,
3972
3948
  ee as a5,
3973
- Ha as a6,
3974
- ke as a7,
3975
- Ce as a8,
3949
+ tt as a6,
3950
+ Re as a7,
3951
+ Ne as a8,
3976
3952
  N as a9,
3977
- et as aA,
3978
- Fe as aB,
3979
- Qe as aC,
3980
- qe as aD,
3981
- ut as aE,
3982
- ae as aF,
3983
- tt as aG,
3984
- pt as aH,
3985
- ht as aI,
3986
- mt as aJ,
3987
- B as aK,
3988
- ct as aL,
3989
- st as aM,
3990
- lt as aN,
3991
- at as aO,
3992
- W as aP,
3993
- De as aQ,
3994
- Le as aR,
3995
- gt as aS,
3996
- ot as aT,
3997
- it as aU,
3998
- dt as aV,
3999
- rt as aW,
4000
- nt as aX,
4001
- _a as aa,
4002
- Ie as ab,
4003
- xe as ac,
4004
- A as ad,
4005
- Wa as ae,
4006
- Ae as af,
4007
- Ga as ag,
4008
- Re as ah,
4009
- E as ai,
4010
- Ya as aj,
4011
- Ne as ak,
4012
- Te as al,
3953
+ pt as aA,
3954
+ De as aB,
3955
+ Le as aC,
3956
+ Pe as aD,
3957
+ pa as aE,
3958
+ J as aF,
3959
+ ta as aG,
3960
+ aa as aH,
3961
+ ca as aI,
3962
+ sa as aJ,
3963
+ la as aK,
3964
+ C as aL,
3965
+ W as aM,
3966
+ be as aN,
3967
+ Ve as aO,
3968
+ ht as aP,
3969
+ oa as aQ,
3970
+ ia as aR,
3971
+ da as aS,
3972
+ ra as aT,
3973
+ na as aU,
3974
+ rt as aa,
3975
+ Te as ab,
3976
+ Ue as ac,
3977
+ T as ad,
3978
+ nt as ae,
3979
+ we as af,
3980
+ ot as ag,
3981
+ Ee as ah,
3982
+ U as ai,
3983
+ st as aj,
3984
+ Me as ak,
3985
+ fe as al,
4013
3986
  Q as am,
4014
- Ja as an,
4015
- Ue as ao,
4016
- Ka as ap,
4017
- Ee as aq,
4018
- T as ar,
4019
- Xa as as,
4020
- we as at,
4021
- Me as au,
4022
- w as av,
4023
- Za as aw,
4024
- fe as ax,
4025
- Be as ay,
4026
- M as az,
4027
- na as b,
4028
- oa as c,
4029
- sa as d,
4030
- la as e,
4031
- ca as f,
3987
+ lt as an,
3988
+ Be as ao,
3989
+ ct as ap,
3990
+ Fe as aq,
3991
+ w as ar,
3992
+ it as as,
3993
+ Qe as at,
3994
+ $e as au,
3995
+ M as av,
3996
+ dt as aw,
3997
+ qe as ax,
3998
+ ze as ay,
3999
+ f as az,
4000
+ ga as b,
4001
+ Pa as c,
4002
+ ba as d,
4003
+ Va as e,
4004
+ va as f,
4032
4005
  je as g,
4033
- da as h,
4034
- ha as i,
4035
- ga as j,
4036
- ba as k,
4037
- va as l,
4038
- Va as m,
4039
- Sa as n,
4040
- ka as o,
4041
- Ca as p,
4042
- Ia as q,
4043
- xa as r,
4044
- Aa as s,
4045
- Ra as t,
4046
- bt as u,
4047
- Na as v,
4048
- Ua as w,
4049
- Ea as x,
4050
- Ma as y,
4051
- fa as z
4006
+ Sa as h,
4007
+ ka as i,
4008
+ Aa as j,
4009
+ Ra as k,
4010
+ Na as l,
4011
+ Ta as m,
4012
+ wa as n,
4013
+ Ma as o,
4014
+ fa as p,
4015
+ Ba as q,
4016
+ Fa as r,
4017
+ Qa as s,
4018
+ $a as t,
4019
+ ut as u,
4020
+ qa as v,
4021
+ Da as w,
4022
+ La as x,
4023
+ Ha as y,
4024
+ _a as z
4052
4025
  };