@malloy-publisher/sdk 0.4.1 → 0.5.1

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 (59) hide show
  1. package/dist/{DocumentStorage-BiFqO15i.es.js → DocumentStorage-DkwqA8SA.es.js} +2284 -2319
  2. package/dist/{DocumentStorage-CMyLifsz.cjs.js → DocumentStorage-mMn5SZ1c.cjs.js} +29 -29
  3. package/dist/{RenderedResult-CvrmYyr5.es.js → RenderedResult-CTD2Ej2S.es.js} +100 -80
  4. package/dist/{RenderedResult-CZzE8wv-.cjs.js → RenderedResult-GukOadCi.cjs.js} +27 -7
  5. package/dist/ServerProvider-CC9ein5-.cjs.js +1 -0
  6. package/dist/{ServerProvider-BWOEKg0O.es.js → ServerProvider-IzXlqSVe.es.js} +572 -553
  7. package/dist/builder/index.cjs.js +54 -49
  8. package/dist/builder/index.es.js +4124 -3521
  9. package/dist/client/api.d.ts +54 -2
  10. package/dist/client/index.cjs.js +1 -1
  11. package/dist/client/index.es.js +1 -1
  12. package/dist/components/Dashboard/TileCard.d.ts +7 -3
  13. package/dist/components/DashboardBuilder/DashboardEditor.d.ts +15 -4
  14. package/dist/components/DashboardBuilder/controls.d.ts +8 -6
  15. package/dist/components/DashboardBuilder/document.d.ts +19 -5
  16. package/dist/components/DashboardBuilder/malloyText.d.ts +0 -30
  17. package/dist/components/DashboardBuilder/malloyTree.d.ts +232 -0
  18. package/dist/components/DashboardBuilder/preview.d.ts +17 -0
  19. package/dist/components/DashboardBuilder/readDocument.d.ts +23 -28
  20. package/dist/components/DashboardBuilder/spliceDocument.d.ts +12 -0
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.es.js +5 -5
  23. package/dist/theme/resolveTheme.d.ts +1 -1
  24. package/dist/theme/types.d.ts +12 -2
  25. package/package.json +1 -1
  26. package/src/components/Dashboard/TileCard.tsx +8 -4
  27. package/src/components/DashboardBuilder/BuilderToolbar.tsx +4 -5
  28. package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +356 -0
  29. package/src/components/DashboardBuilder/DashboardEditor.tsx +116 -25
  30. package/src/components/DashboardBuilder/FilterDialog.tsx +19 -6
  31. package/src/components/DashboardBuilder/TileFrame.tsx +11 -2
  32. package/src/components/DashboardBuilder/TileMenu.tsx +6 -0
  33. package/src/components/DashboardBuilder/__test__/inventory.ts +367 -0
  34. package/src/components/DashboardBuilder/controls.spec.ts +53 -3
  35. package/src/components/DashboardBuilder/controls.ts +9 -7
  36. package/src/components/DashboardBuilder/document.ts +17 -5
  37. package/src/components/DashboardBuilder/invariants.spec.ts +297 -0
  38. package/src/components/DashboardBuilder/malloyText.spec.ts +27 -66
  39. package/src/components/DashboardBuilder/malloyText.ts +4 -109
  40. package/src/components/DashboardBuilder/malloyTree.spec.ts +362 -0
  41. package/src/components/DashboardBuilder/malloyTree.ts +954 -0
  42. package/src/components/DashboardBuilder/preview.spec.ts +18 -0
  43. package/src/components/DashboardBuilder/preview.ts +24 -6
  44. package/src/components/DashboardBuilder/readDocument.spec.ts +312 -21
  45. package/src/components/DashboardBuilder/readDocument.ts +144 -165
  46. package/src/components/DashboardBuilder/scannerShapes.spec.ts +550 -0
  47. package/src/components/DashboardBuilder/spliceDocument.spec.ts +955 -21
  48. package/src/components/DashboardBuilder/spliceDocument.ts +509 -119
  49. package/src/components/DashboardBuilder/statementExtent.spec.ts +606 -0
  50. package/src/components/RenderedResult/RenderedResult.tsx +21 -1
  51. package/src/components/given/GivensPanel.tsx +15 -3
  52. package/src/theme/buildTableCssVars.spec.ts +3 -0
  53. package/src/theme/buildTableCssVars.ts +6 -0
  54. package/src/theme/defaults.ts +16 -12
  55. package/src/theme/resolveTheme.spec.ts +14 -7
  56. package/src/theme/resolveTheme.ts +14 -8
  57. package/src/theme/types.ts +12 -2
  58. package/tsconfig.spec.json +5 -1
  59. package/dist/ServerProvider-Cc489A3f.cjs.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import { jsx as F } from "react/jsx-runtime";
2
2
  import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
3
- import m from "axios";
3
+ import h from "axios";
4
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";
5
+ import { styled as x, Card as pe, CardContent as me, CardMedia as he } from "@mui/material";
6
6
  const C = {
7
7
  blue: "#2563eb",
8
8
  indigo: "#4f46e5",
@@ -27,15 +27,15 @@ const C = {
27
27
  boxShadow: "none",
28
28
  border: "none",
29
29
  backgroundColor: "transparent"
30
- }), na = x(he)({
30
+ }), na = x(me)({
31
31
  display: "flex",
32
32
  flexDirection: "column",
33
33
  padding: "0",
34
34
  flexGrow: 1
35
- }), oa = x(me)({
35
+ }), oa = x(he)({
36
36
  padding: "0"
37
- }), sa = x("div")(({ theme: l }) => ({
38
- backgroundColor: l.palette.background.default,
37
+ }), sa = x("div")(({ theme: c }) => ({
38
+ backgroundColor: c.palette.background.default,
39
39
  padding: "0 8px 0px 8px",
40
40
  borderRadius: "12px",
41
41
  boxShadow: "none",
@@ -76,12 +76,12 @@ const C = {
76
76
  allowUserToggle: !0,
77
77
  palette: {
78
78
  series: ue,
79
+ // The chart canvas. One ground for the whole dashboard in both modes —
80
+ // canvas, card and the panel between cards are all this value, and the
81
+ // borders do the separating. See `tile`.
79
82
  background: {
80
83
  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"
84
+ dark: "#0f172a"
85
85
  },
86
86
  tableHeader: {
87
87
  light: "#475569",
@@ -98,16 +98,20 @@ const C = {
98
98
  light: "#475569",
99
99
  dark: "#e2e8f0"
100
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.
101
+ // The padded container that wraps each chart / table in a dashboard.
104
102
  //
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.
103
+ // The SAME value as the canvas it holds and the panel it sits on, in
104
+ // both modes: a card is separated by its border and its radius, not by
105
+ // a wash. A tinted card reads as a recess — something switched off —
106
+ // and stacking card, canvas and panel as three values put three greys
107
+ // on one tile.
108
+ //
109
+ // Both modes are built the same way on purpose. They used to differ in
110
+ // structure, not just in value — light separated by border, dark by
111
+ // elevation — so a change to how a card reads had to be reasoned about
112
+ // twice and could land correct in one mode and wrong in the other.
109
113
  tile: {
110
- light: "#f8fafc",
114
+ light: "#ffffff",
111
115
  dark: "#0f172a"
112
116
  },
113
117
  tileTitle: {
@@ -135,7 +139,7 @@ const C = {
135
139
  "tileTitle",
136
140
  "mapColor"
137
141
  ];
138
- function J(l, n) {
142
+ function J(c, n) {
139
143
  const e = W.palette ?? {}, r = W.font ?? {
140
144
  family: "sans-serif",
141
145
  size: 12
@@ -152,7 +156,7 @@ function J(l, n) {
152
156
  tileTitle: { ...e.tileTitle ?? {} },
153
157
  mapColor: { ...e.mapColor ?? {} }
154
158
  };
155
- for (const p of l)
159
+ for (const p of c)
156
160
  if (p) {
157
161
  Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
158
162
  for (const u of Pe) {
@@ -161,7 +165,7 @@ function J(l, n) {
161
165
  }
162
166
  typeof p.font?.family == "string" && (t = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
163
167
  }
164
- const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
168
+ const l = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
165
169
  return {
166
170
  mode: n,
167
171
  series: a,
@@ -180,48 +184,54 @@ function J(l, n) {
180
184
  // v1; they're consistent borders / readable foreground text for
181
185
  // each mode. If a user later asks to customise them, expose them
182
186
  // on the schema and the editor and replace the literals below.
183
- border: c ? "1px solid #334155" : "1px solid #e2e8f0",
187
+ border: l ? "1px solid #334155" : "1px solid #e2e8f0",
188
+ // A card's edge, one stop darker than a table's gridline on the same
189
+ // slate ramp. See `cardBorder` on ResolvedTheme for why the two are not
190
+ // the same value.
191
+ cardBorder: l ? "1px solid #475569" : "1px solid #cbd5e1",
184
192
  // Slate, not the teal-cast `#daedf3` this was: a pinned table header
185
193
  // 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",
194
+ pinnedBorder: l ? "1px solid #475569" : "1px solid #cbd5e1",
195
+ valueColor: l ? "#f1f5f9" : "#0f172a",
196
+ foreground: l ? "#e2e8f0" : "#0f172a",
197
+ axisFaint: l ? "#475569" : "#cbd5e1",
198
+ // Dashboard panel background (the area BETWEEN tiles). The page's own
199
+ // ground in both modes, so the panel, the cards on it and the canvases
200
+ // inside them are one surface that borders divide up — see
201
+ // `palette.tile`.
202
+ //
203
+ // Still NOT tied to `palette.background`, which an operator may set to
204
+ // a bold accent for the chart canvas. The panel stays the neutral it is
205
+ // here so that accent cannot bleed into the surrounding chrome.
206
+ dashboardRoot: l ? "#0f172a" : "#ffffff",
197
207
  // Drill link hover: the palette's anchor blue, so a drill reads as the
198
208
  // same affordance as every other primary action; dark lightens it for
199
209
  // contrast on the slate panel.
200
- drillLink: c ? "#60a5fa" : C.blue
210
+ drillLink: l ? "#60a5fa" : C.blue
201
211
  };
202
212
  }
203
- function be(l, n, e) {
204
- const r = n ?? l ?? "light";
213
+ function be(c, n, e) {
214
+ const r = n ?? c ?? "light";
205
215
  return r === "auto" ? e ? "dark" : "light" : r;
206
216
  }
207
217
  const K = G(void 0);
208
218
  function Ve({
209
- layers: l,
219
+ layers: c,
210
220
  mode: n,
211
221
  userChoice: e,
212
222
  setMode: r,
213
223
  allowUserToggle: a = !0,
214
224
  children: t
215
225
  }) {
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]
226
+ const o = B(() => J(c, n), [c, n]), s = B(
227
+ () => ({ theme: o, layers: c, mode: n, userChoice: e, setMode: r, allowUserToggle: a }),
228
+ [o, c, n, e, r, a]
219
229
  );
220
230
  return /* @__PURE__ */ F(K.Provider, { value: s, children: t });
221
231
  }
222
232
  function pa() {
223
- const l = Y(K);
224
- return l || {
233
+ const c = Y(K);
234
+ return c || {
225
235
  theme: J([], "light"),
226
236
  layers: [],
227
237
  mode: "light",
@@ -233,7 +243,7 @@ function pa() {
233
243
  }
234
244
  const g = "http://localhost/api/v0".replace(/\/+$/, "");
235
245
  class I {
236
- constructor(n, e = g, r = m) {
246
+ constructor(n, e = g, r = h) {
237
247
  this.basePath = e, this.axios = r, n && (this.configuration = n, this.basePath = n.basePath ?? e);
238
248
  }
239
249
  configuration;
@@ -243,36 +253,36 @@ class ve extends Error {
243
253
  super(e), this.field = n, this.name = "RequiredError";
244
254
  }
245
255
  }
246
- const P = {}, b = "https://example.com", h = function(l, n, e) {
256
+ const P = {}, b = "https://example.com", m = function(c, n, e) {
247
257
  if (e == null)
248
- throw new ve(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
258
+ throw new ve(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
249
259
  };
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}`)
253
- ) : l.has(e) ? l.append(e, n) : l.set(e, n));
260
+ function D(c, n, e = "") {
261
+ n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => D(c, r, e)) : Object.keys(n).forEach(
262
+ (r) => D(c, n[r], `${e}${e !== "" ? "." : ""}${r}`)
263
+ ) : c.has(e) ? c.append(e, n) : c.set(e, n));
254
264
  }
255
- const V = function(l, ...n) {
256
- const e = new URLSearchParams(l.search);
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 || "";
261
- }, v = function(l) {
262
- return l.pathname + l.search + l.hash;
263
- }, O = function(l, n, e, r) {
265
+ const V = function(c, ...n) {
266
+ const e = new URLSearchParams(c.search);
267
+ D(e, n), c.search = e.toString();
268
+ }, S = function(c, n, e) {
269
+ const r = typeof c != "string";
270
+ return (r && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : r) ? JSON.stringify(c !== void 0 ? c : {}) : c || "";
271
+ }, v = function(c) {
272
+ return c.pathname + c.search + c.hash;
273
+ }, O = function(c, n, e, r) {
264
274
  return (a = n, t = e) => {
265
- const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
275
+ const o = { ...c.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + c.url };
266
276
  return a.request(o);
267
277
  };
268
- }, ha = {
278
+ }, ma = {
269
279
  Bigquery: "bigquery",
270
280
  Snowflake: "snowflake",
271
281
  Postgres: "postgres",
272
282
  Gcs: "gcs",
273
283
  S3: "s3",
274
284
  Azure: "azure"
275
- }, ma = {
285
+ }, ha = {
276
286
  ServicePrincipal: "service_principal",
277
287
  SasToken: "sas_token"
278
288
  }, ua = {
@@ -380,12 +390,12 @@ const V = function(l, ...n) {
380
390
  NoVerify: "no-verify",
381
391
  VerifyCa: "verify-ca",
382
392
  VerifyFull: "verify-full"
383
- }, za = {
393
+ }, Da = {
384
394
  Interactive: "interactive",
385
395
  Materialize: "materialize",
386
396
  Index: "index",
387
397
  Ops: "ops"
388
- }, Da = {
398
+ }, za = {
389
399
  Query: "query",
390
400
  ServerDefault: "server_default"
391
401
  }, La = {
@@ -401,6 +411,15 @@ const V = function(l, ...n) {
401
411
  }, _a = {
402
412
  FreeParameter: "free_parameter",
403
413
  Given: "given",
414
+ GivenInPersistedQuery: "given_in_persisted_query",
415
+ DynamicProjection: "dynamic_projection",
416
+ DynamicJoin: "dynamic_join",
417
+ DynamicJoinedWhere: "dynamic_joined_where",
418
+ PartitionWithoutStorage: "partition_without_storage",
419
+ PartitionColumnUnknown: "partition_column_unknown",
420
+ PartitionColumnNotPublic: "partition_column_not_public",
421
+ MergeKeyScopeUnresolved: "merge_key_scope_unresolved",
422
+ PreaggregateOverDynamicSource: "preaggregate_over_dynamic_source",
404
423
  Authorize: "authorize",
405
424
  Partition: "partition",
406
425
  NotDuckdbPortable: "not_duckdb_portable",
@@ -421,7 +440,7 @@ const V = function(l, ...n) {
421
440
  Light: "light",
422
441
  Dark: "dark",
423
442
  Auto: "auto"
424
- }, Oe = function(l) {
443
+ }, Oe = function(c) {
425
444
  return {
426
445
  /**
427
446
  * Creates a new database connection in the specified environment.
@@ -433,16 +452,16 @@ const V = function(l, ...n) {
433
452
  * @throws {RequiredError}
434
453
  */
435
454
  createConnection: async (n, e, r, a = {}) => {
436
- h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection", r);
455
+ m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", r);
437
456
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
438
457
  let s;
439
- l && (s = l.baseOptions);
440
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
458
+ c && (s = c.baseOptions);
459
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
441
460
  i["Content-Type"] = "application/json", V(o, d);
442
461
  let p = s && s.headers ? s.headers : {};
443
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
462
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
444
463
  url: v(o),
445
- options: c
464
+ options: l
446
465
  };
447
466
  },
448
467
  /**
@@ -454,14 +473,14 @@ const V = function(l, ...n) {
454
473
  * @throws {RequiredError}
455
474
  */
456
475
  deleteConnection: async (n, e, r = {}) => {
457
- h("deleteConnection", "environmentName", n), h("deleteConnection", "connectionName", e);
476
+ m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
458
477
  const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
459
478
  let o;
460
- l && (o = l.baseOptions);
461
- const s = { method: "DELETE", ...o, ...r }, c = {};
479
+ c && (o = c.baseOptions);
480
+ const s = { method: "DELETE", ...o, ...r }, l = {};
462
481
  V(t, {});
463
482
  let d = o && o.headers ? o.headers : {};
464
- return s.headers = { ...c, ...d, ...r.headers }, {
483
+ return s.headers = { ...l, ...d, ...r.headers }, {
465
484
  url: v(t),
466
485
  options: s
467
486
  };
@@ -475,14 +494,14 @@ const V = function(l, ...n) {
475
494
  * @throws {RequiredError}
476
495
  */
477
496
  getConnection: async (n, e, r = {}) => {
478
- h("getConnection", "environmentName", n), h("getConnection", "connectionName", e);
497
+ m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
479
498
  const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
480
499
  let o;
481
- l && (o = l.baseOptions);
482
- const s = { method: "GET", ...o, ...r }, c = {};
500
+ c && (o = c.baseOptions);
501
+ const s = { method: "GET", ...o, ...r }, l = {};
483
502
  V(t, {});
484
503
  let d = o && o.headers ? o.headers : {};
485
- return s.headers = { ...c, ...d, ...r.headers }, {
504
+ return s.headers = { ...l, ...d, ...r.headers }, {
486
505
  url: v(t),
487
506
  options: s
488
507
  };
@@ -498,13 +517,13 @@ const V = function(l, ...n) {
498
517
  * @throws {RequiredError}
499
518
  */
500
519
  getTable: async (n, e, r, a, t = {}) => {
501
- h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName", r), h("getTable", "tablePath", a);
520
+ m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", r), m("getTable", "tablePath", a);
502
521
  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);
503
- let c;
504
- l && (c = l.baseOptions);
505
- const i = { method: "GET", ...c, ...t }, d = {};
522
+ let l;
523
+ c && (l = c.baseOptions);
524
+ const i = { method: "GET", ...l, ...t }, d = {};
506
525
  V(s, {});
507
- let u = c && c.headers ? c.headers : {};
526
+ let u = l && l.headers ? l.headers : {};
508
527
  return i.headers = { ...d, ...u, ...t.headers }, {
509
528
  url: v(s),
510
529
  options: i
@@ -522,15 +541,15 @@ const V = function(l, ...n) {
522
541
  * @throws {RequiredError}
523
542
  */
524
543
  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);
544
+ m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", r), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", t);
545
+ 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))), l = new URL(s, b);
527
546
  let i;
528
- l && (i = l.baseOptions);
547
+ c && (i = c.baseOptions);
529
548
  const d = { method: "GET", ...i, ...o }, p = {};
530
- V(c, {});
549
+ V(l, {});
531
550
  let k = i && i.headers ? i.headers : {};
532
551
  return d.headers = { ...p, ...k, ...o.headers }, {
533
- url: v(c),
552
+ url: v(l),
534
553
  options: d
535
554
  };
536
555
  },
@@ -542,10 +561,10 @@ const V = function(l, ...n) {
542
561
  * @throws {RequiredError}
543
562
  */
544
563
  listConnections: async (n, e = {}) => {
545
- h("listConnections", "environmentName", n);
564
+ m("listConnections", "environmentName", n);
546
565
  const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
547
566
  let t;
548
- l && (t = l.baseOptions);
567
+ c && (t = c.baseOptions);
549
568
  const o = { method: "GET", ...t, ...e }, s = {};
550
569
  V(a, {});
551
570
  let i = t && t.headers ? t.headers : {};
@@ -563,14 +582,14 @@ const V = function(l, ...n) {
563
582
  * @throws {RequiredError}
564
583
  */
565
584
  listSchemas: async (n, e, r = {}) => {
566
- h("listSchemas", "environmentName", n), h("listSchemas", "connectionName", e);
585
+ m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
567
586
  const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
568
587
  let o;
569
- l && (o = l.baseOptions);
570
- const s = { method: "GET", ...o, ...r }, c = {};
588
+ c && (o = c.baseOptions);
589
+ const s = { method: "GET", ...o, ...r }, l = {};
571
590
  V(t, {});
572
591
  let d = o && o.headers ? o.headers : {};
573
- return s.headers = { ...c, ...d, ...r.headers }, {
592
+ return s.headers = { ...l, ...d, ...r.headers }, {
574
593
  url: v(t),
575
594
  options: s
576
595
  };
@@ -585,16 +604,16 @@ const V = function(l, ...n) {
585
604
  * @throws {RequiredError}
586
605
  */
587
606
  listSchemasInPackage: async (n, e, r, a = {}) => {
588
- h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", r);
607
+ m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", r);
589
608
  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);
590
609
  let s;
591
- l && (s = l.baseOptions);
592
- const c = { method: "GET", ...s, ...a }, i = {};
610
+ c && (s = c.baseOptions);
611
+ const l = { method: "GET", ...s, ...a }, i = {};
593
612
  V(o, {});
594
613
  let p = s && s.headers ? s.headers : {};
595
- return c.headers = { ...i, ...p, ...a.headers }, {
614
+ return l.headers = { ...i, ...p, ...a.headers }, {
596
615
  url: v(o),
597
- options: c
616
+ options: l
598
617
  };
599
618
  },
600
619
  /**
@@ -608,13 +627,13 @@ const V = function(l, ...n) {
608
627
  * @throws {RequiredError}
609
628
  */
610
629
  listTables: async (n, e, r, a, t = {}) => {
611
- h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName", r);
630
+ m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", r);
612
631
  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);
613
- let c;
614
- l && (c = l.baseOptions);
615
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
632
+ let l;
633
+ c && (l = c.baseOptions);
634
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
616
635
  a && (p.tableNames = a), V(s, p);
617
- let u = c && c.headers ? c.headers : {};
636
+ let u = l && l.headers ? l.headers : {};
618
637
  return i.headers = { ...d, ...u, ...t.headers }, {
619
638
  url: v(s),
620
639
  options: i
@@ -632,15 +651,15 @@ const V = function(l, ...n) {
632
651
  * @throws {RequiredError}
633
652
  */
634
653
  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);
654
+ m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", r), m("listTablesInPackage", "schemaName", a);
655
+ 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))), l = new URL(s, b);
637
656
  let i;
638
- l && (i = l.baseOptions);
657
+ c && (i = c.baseOptions);
639
658
  const d = { method: "GET", ...i, ...o }, p = {}, u = {};
640
- t && (u.tableNames = t), V(c, u);
659
+ t && (u.tableNames = t), V(l, u);
641
660
  let k = i && i.headers ? i.headers : {};
642
661
  return d.headers = { ...p, ...k, ...o.headers }, {
643
- url: v(c),
662
+ url: v(l),
644
663
  options: d
645
664
  };
646
665
  },
@@ -654,16 +673,16 @@ const V = function(l, ...n) {
654
673
  * @throws {RequiredError}
655
674
  */
656
675
  postQuerydata: async (n, e, r, a = {}) => {
657
- h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", r);
676
+ m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", r);
658
677
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
659
678
  let s;
660
- l && (s = l.baseOptions);
661
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
679
+ c && (s = c.baseOptions);
680
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
662
681
  i["Content-Type"] = "application/json", V(o, d);
663
682
  let p = s && s.headers ? s.headers : {};
664
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
683
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
665
684
  url: v(o),
666
- options: c
685
+ options: l
667
686
  };
668
687
  },
669
688
  /**
@@ -677,14 +696,14 @@ const V = function(l, ...n) {
677
696
  * @throws {RequiredError}
678
697
  */
679
698
  postQuerydataInPackage: async (n, e, r, a, t = {}) => {
680
- h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", a);
699
+ m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", r), m("postQuerydataInPackage", "postQuerydataRequest", a);
681
700
  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);
682
- let c;
683
- l && (c = l.baseOptions);
684
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
701
+ let l;
702
+ c && (l = c.baseOptions);
703
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
685
704
  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), {
705
+ let u = l && l.headers ? l.headers : {};
706
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
688
707
  url: v(s),
689
708
  options: i
690
709
  };
@@ -699,16 +718,16 @@ const V = function(l, ...n) {
699
718
  * @throws {RequiredError}
700
719
  */
701
720
  postSqlsource: async (n, e, r, a = {}) => {
702
- h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", r);
721
+ m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", r);
703
722
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
704
723
  let s;
705
- l && (s = l.baseOptions);
706
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
724
+ c && (s = c.baseOptions);
725
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
707
726
  i["Content-Type"] = "application/json", V(o, d);
708
727
  let p = s && s.headers ? s.headers : {};
709
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
728
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
710
729
  url: v(o),
711
- options: c
730
+ options: l
712
731
  };
713
732
  },
714
733
  /**
@@ -722,14 +741,14 @@ const V = function(l, ...n) {
722
741
  * @throws {RequiredError}
723
742
  */
724
743
  postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
725
- h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
744
+ m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", r), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
726
745
  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);
727
- let c;
728
- l && (c = l.baseOptions);
729
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
746
+ let l;
747
+ c && (l = c.baseOptions);
748
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
730
749
  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), {
750
+ let u = l && l.headers ? l.headers : {};
751
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
733
752
  url: v(s),
734
753
  options: i
735
754
  };
@@ -744,16 +763,16 @@ const V = function(l, ...n) {
744
763
  * @throws {RequiredError}
745
764
  */
746
765
  postTemporarytable: async (n, e, r, a = {}) => {
747
- h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", r);
766
+ m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", r);
748
767
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
749
768
  let s;
750
- l && (s = l.baseOptions);
751
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
769
+ c && (s = c.baseOptions);
770
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
752
771
  i["Content-Type"] = "application/json", V(o, d);
753
772
  let p = s && s.headers ? s.headers : {};
754
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
773
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
755
774
  url: v(o),
756
- options: c
775
+ options: l
757
776
  };
758
777
  },
759
778
  /**
@@ -767,14 +786,14 @@ const V = function(l, ...n) {
767
786
  * @throws {RequiredError}
768
787
  */
769
788
  postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
770
- h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
789
+ m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", r), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
771
790
  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);
772
- let c;
773
- l && (c = l.baseOptions);
774
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
791
+ let l;
792
+ c && (l = c.baseOptions);
793
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
775
794
  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), {
795
+ let u = l && l.headers ? l.headers : {};
796
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
778
797
  url: v(s),
779
798
  options: i
780
799
  };
@@ -789,21 +808,21 @@ const V = function(l, ...n) {
789
808
  * @throws {RequiredError}
790
809
  */
791
810
  updateConnection: async (n, e, r, a = {}) => {
792
- h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", r);
811
+ m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", r);
793
812
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
794
813
  let s;
795
- l && (s = l.baseOptions);
796
- const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
814
+ c && (s = c.baseOptions);
815
+ const l = { method: "PATCH", ...s, ...a }, i = {}, d = {};
797
816
  i["Content-Type"] = "application/json", V(o, d);
798
817
  let p = s && s.headers ? s.headers : {};
799
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
818
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
800
819
  url: v(o),
801
- options: c
820
+ options: l
802
821
  };
803
822
  }
804
823
  };
805
- }, y = function(l) {
806
- const n = Oe(l);
824
+ }, y = function(c) {
825
+ const n = Oe(c);
807
826
  return {
808
827
  /**
809
828
  * Creates a new database connection in the specified environment.
@@ -815,8 +834,8 @@ const V = function(l, ...n) {
815
834
  * @throws {RequiredError}
816
835
  */
817
836
  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);
837
+ const o = await n.createConnection(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.createConnection"]?.[s]?.url;
838
+ return (i, d) => O(o, h, g, c)(i, l || d);
820
839
  },
821
840
  /**
822
841
  * Permanently deletes a database connection from the environment.
@@ -827,8 +846,8 @@ const V = function(l, ...n) {
827
846
  * @throws {RequiredError}
828
847
  */
829
848
  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);
849
+ const t = await n.deleteConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
850
+ return (l, i) => O(t, h, g, c)(l, s || i);
832
851
  },
833
852
  /**
834
853
  * 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.
@@ -839,8 +858,8 @@ const V = function(l, ...n) {
839
858
  * @throws {RequiredError}
840
859
  */
841
860
  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);
861
+ const t = await n.getConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
862
+ return (l, i) => O(t, h, g, c)(l, s || i);
844
863
  },
845
864
  /**
846
865
  * 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.
@@ -853,8 +872,8 @@ const V = function(l, ...n) {
853
872
  * @throws {RequiredError}
854
873
  */
855
874
  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);
875
+ const s = await n.getTable(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
876
+ return (d, p) => O(s, h, g, c)(d, i || p);
858
877
  },
859
878
  /**
860
879
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -868,8 +887,8 @@ const V = function(l, ...n) {
868
887
  * @throws {RequiredError}
869
888
  */
870
889
  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);
890
+ const l = await n.getTableInPackage(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
891
+ return (p, u) => O(l, h, g, c)(p, d || u);
873
892
  },
874
893
  /**
875
894
  * 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.
@@ -879,8 +898,8 @@ const V = function(l, ...n) {
879
898
  * @throws {RequiredError}
880
899
  */
881
900
  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);
901
+ const a = await n.listConnections(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
902
+ return (s, l) => O(a, h, g, c)(s, o || l);
884
903
  },
885
904
  /**
886
905
  * 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.
@@ -891,8 +910,8 @@ const V = function(l, ...n) {
891
910
  * @throws {RequiredError}
892
911
  */
893
912
  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);
913
+ const t = await n.listSchemas(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
914
+ return (l, i) => O(t, h, g, c)(l, s || i);
896
915
  },
897
916
  /**
898
917
  * 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).
@@ -904,8 +923,8 @@ const V = function(l, ...n) {
904
923
  * @throws {RequiredError}
905
924
  */
906
925
  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);
926
+ const o = await n.listSchemasInPackage(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
927
+ return (i, d) => O(o, h, g, c)(i, l || d);
909
928
  },
910
929
  /**
911
930
  * 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.
@@ -918,8 +937,8 @@ const V = function(l, ...n) {
918
937
  * @throws {RequiredError}
919
938
  */
920
939
  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);
940
+ const s = await n.listTables(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[l]?.url;
941
+ return (d, p) => O(s, h, g, c)(d, i || p);
923
942
  },
924
943
  /**
925
944
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -933,8 +952,8 @@ const V = function(l, ...n) {
933
952
  * @throws {RequiredError}
934
953
  */
935
954
  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);
955
+ const l = await n.listTablesInPackage(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
956
+ return (p, u) => O(l, h, g, c)(p, d || u);
938
957
  },
939
958
  /**
940
959
  * 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.
@@ -946,8 +965,8 @@ const V = function(l, ...n) {
946
965
  * @throws {RequiredError}
947
966
  */
948
967
  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);
968
+ const o = await n.postQuerydata(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
969
+ return (i, d) => O(o, h, g, c)(i, l || d);
951
970
  },
952
971
  /**
953
972
  * 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.
@@ -960,8 +979,8 @@ const V = function(l, ...n) {
960
979
  * @throws {RequiredError}
961
980
  */
962
981
  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);
982
+ const s = await n.postQuerydataInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[l]?.url;
983
+ return (d, p) => O(s, h, g, c)(d, i || p);
965
984
  },
966
985
  /**
967
986
  * 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.
@@ -973,8 +992,8 @@ const V = function(l, ...n) {
973
992
  * @throws {RequiredError}
974
993
  */
975
994
  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);
995
+ const o = await n.postSqlsource(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
996
+ return (i, d) => O(o, h, g, c)(i, l || d);
978
997
  },
979
998
  /**
980
999
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -987,8 +1006,8 @@ const V = function(l, ...n) {
987
1006
  * @throws {RequiredError}
988
1007
  */
989
1008
  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);
1009
+ const s = await n.postSqlsourceInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[l]?.url;
1010
+ return (d, p) => O(s, h, g, c)(d, i || p);
992
1011
  },
993
1012
  /**
994
1013
  * 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.
@@ -1000,8 +1019,8 @@ const V = function(l, ...n) {
1000
1019
  * @throws {RequiredError}
1001
1020
  */
1002
1021
  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);
1022
+ const o = await n.postTemporarytable(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
1023
+ return (i, d) => O(o, h, g, c)(i, l || d);
1005
1024
  },
1006
1025
  /**
1007
1026
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1014,8 +1033,8 @@ const V = function(l, ...n) {
1014
1033
  * @throws {RequiredError}
1015
1034
  */
1016
1035
  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);
1036
+ const s = await n.postTemporarytableInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[l]?.url;
1037
+ return (d, p) => O(s, h, g, c)(d, i || p);
1019
1038
  },
1020
1039
  /**
1021
1040
  * Updates the configuration of an existing database connection.
@@ -1027,12 +1046,12 @@ const V = function(l, ...n) {
1027
1046
  * @throws {RequiredError}
1028
1047
  */
1029
1048
  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);
1049
+ const o = await n.updateConnection(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.updateConnection"]?.[s]?.url;
1050
+ return (i, d) => O(o, h, g, c)(i, l || d);
1032
1051
  }
1033
1052
  };
1034
- }, Ka = function(l, n, e) {
1035
- const r = y(l);
1053
+ }, Ka = function(c, n, e) {
1054
+ const r = y(c);
1036
1055
  return {
1037
1056
  /**
1038
1057
  * Creates a new database connection in the specified environment.
@@ -1044,7 +1063,7 @@ const V = function(l, ...n) {
1044
1063
  * @throws {RequiredError}
1045
1064
  */
1046
1065
  createConnection(a, t, o, s) {
1047
- return r.createConnection(a, t, o, s).then((c) => c(e, n));
1066
+ return r.createConnection(a, t, o, s).then((l) => l(e, n));
1048
1067
  },
1049
1068
  /**
1050
1069
  * Permanently deletes a database connection from the environment.
@@ -1078,8 +1097,8 @@ const V = function(l, ...n) {
1078
1097
  * @param {*} [options] Override http request option.
1079
1098
  * @throws {RequiredError}
1080
1099
  */
1081
- getTable(a, t, o, s, c) {
1082
- return r.getTable(a, t, o, s, c).then((i) => i(e, n));
1100
+ getTable(a, t, o, s, l) {
1101
+ return r.getTable(a, t, o, s, l).then((i) => i(e, n));
1083
1102
  },
1084
1103
  /**
1085
1104
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1092,8 +1111,8 @@ const V = function(l, ...n) {
1092
1111
  * @param {*} [options] Override http request option.
1093
1112
  * @throws {RequiredError}
1094
1113
  */
1095
- getTableInPackage(a, t, o, s, c, i) {
1096
- return r.getTableInPackage(a, t, o, s, c, i).then((d) => d(e, n));
1114
+ getTableInPackage(a, t, o, s, l, i) {
1115
+ return r.getTableInPackage(a, t, o, s, l, i).then((d) => d(e, n));
1097
1116
  },
1098
1117
  /**
1099
1118
  * 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.
@@ -1126,7 +1145,7 @@ const V = function(l, ...n) {
1126
1145
  * @throws {RequiredError}
1127
1146
  */
1128
1147
  listSchemasInPackage(a, t, o, s) {
1129
- return r.listSchemasInPackage(a, t, o, s).then((c) => c(e, n));
1148
+ return r.listSchemasInPackage(a, t, o, s).then((l) => l(e, n));
1130
1149
  },
1131
1150
  /**
1132
1151
  * 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.
@@ -1138,8 +1157,8 @@ const V = function(l, ...n) {
1138
1157
  * @param {*} [options] Override http request option.
1139
1158
  * @throws {RequiredError}
1140
1159
  */
1141
- listTables(a, t, o, s, c) {
1142
- return r.listTables(a, t, o, s, c).then((i) => i(e, n));
1160
+ listTables(a, t, o, s, l) {
1161
+ return r.listTables(a, t, o, s, l).then((i) => i(e, n));
1143
1162
  },
1144
1163
  /**
1145
1164
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1152,8 +1171,8 @@ const V = function(l, ...n) {
1152
1171
  * @param {*} [options] Override http request option.
1153
1172
  * @throws {RequiredError}
1154
1173
  */
1155
- listTablesInPackage(a, t, o, s, c, i) {
1156
- return r.listTablesInPackage(a, t, o, s, c, i).then((d) => d(e, n));
1174
+ listTablesInPackage(a, t, o, s, l, i) {
1175
+ return r.listTablesInPackage(a, t, o, s, l, i).then((d) => d(e, n));
1157
1176
  },
1158
1177
  /**
1159
1178
  * 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.
@@ -1165,7 +1184,7 @@ const V = function(l, ...n) {
1165
1184
  * @throws {RequiredError}
1166
1185
  */
1167
1186
  postQuerydata(a, t, o, s) {
1168
- return r.postQuerydata(a, t, o, s).then((c) => c(e, n));
1187
+ return r.postQuerydata(a, t, o, s).then((l) => l(e, n));
1169
1188
  },
1170
1189
  /**
1171
1190
  * 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.
@@ -1177,8 +1196,8 @@ const V = function(l, ...n) {
1177
1196
  * @param {*} [options] Override http request option.
1178
1197
  * @throws {RequiredError}
1179
1198
  */
1180
- postQuerydataInPackage(a, t, o, s, c) {
1181
- return r.postQuerydataInPackage(a, t, o, s, c).then((i) => i(e, n));
1199
+ postQuerydataInPackage(a, t, o, s, l) {
1200
+ return r.postQuerydataInPackage(a, t, o, s, l).then((i) => i(e, n));
1182
1201
  },
1183
1202
  /**
1184
1203
  * 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.
@@ -1190,7 +1209,7 @@ const V = function(l, ...n) {
1190
1209
  * @throws {RequiredError}
1191
1210
  */
1192
1211
  postSqlsource(a, t, o, s) {
1193
- return r.postSqlsource(a, t, o, s).then((c) => c(e, n));
1212
+ return r.postSqlsource(a, t, o, s).then((l) => l(e, n));
1194
1213
  },
1195
1214
  /**
1196
1215
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1202,8 +1221,8 @@ const V = function(l, ...n) {
1202
1221
  * @param {*} [options] Override http request option.
1203
1222
  * @throws {RequiredError}
1204
1223
  */
1205
- postSqlsourceInPackage(a, t, o, s, c) {
1206
- return r.postSqlsourceInPackage(a, t, o, s, c).then((i) => i(e, n));
1224
+ postSqlsourceInPackage(a, t, o, s, l) {
1225
+ return r.postSqlsourceInPackage(a, t, o, s, l).then((i) => i(e, n));
1207
1226
  },
1208
1227
  /**
1209
1228
  * 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.
@@ -1215,7 +1234,7 @@ const V = function(l, ...n) {
1215
1234
  * @throws {RequiredError}
1216
1235
  */
1217
1236
  postTemporarytable(a, t, o, s) {
1218
- return r.postTemporarytable(a, t, o, s).then((c) => c(e, n));
1237
+ return r.postTemporarytable(a, t, o, s).then((l) => l(e, n));
1219
1238
  },
1220
1239
  /**
1221
1240
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1227,8 +1246,8 @@ const V = function(l, ...n) {
1227
1246
  * @param {*} [options] Override http request option.
1228
1247
  * @throws {RequiredError}
1229
1248
  */
1230
- postTemporarytableInPackage(a, t, o, s, c) {
1231
- return r.postTemporarytableInPackage(a, t, o, s, c).then((i) => i(e, n));
1249
+ postTemporarytableInPackage(a, t, o, s, l) {
1250
+ return r.postTemporarytableInPackage(a, t, o, s, l).then((i) => i(e, n));
1232
1251
  },
1233
1252
  /**
1234
1253
  * Updates the configuration of an existing database connection.
@@ -1240,7 +1259,7 @@ const V = function(l, ...n) {
1240
1259
  * @throws {RequiredError}
1241
1260
  */
1242
1261
  updateConnection(a, t, o, s) {
1243
- return r.updateConnection(a, t, o, s).then((c) => c(e, n));
1262
+ return r.updateConnection(a, t, o, s).then((l) => l(e, n));
1244
1263
  }
1245
1264
  };
1246
1265
  };
@@ -1471,7 +1490,7 @@ class Se extends I {
1471
1490
  return y(this.configuration).updateConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1472
1491
  }
1473
1492
  }
1474
- const ye = function(l) {
1493
+ const ye = function(c) {
1475
1494
  return {
1476
1495
  /**
1477
1496
  * 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.
@@ -1481,21 +1500,21 @@ const ye = function(l) {
1481
1500
  * @throws {RequiredError}
1482
1501
  */
1483
1502
  testConnectionConfiguration: async (n, e = {}) => {
1484
- h("testConnectionConfiguration", "connection", n);
1503
+ m("testConnectionConfiguration", "connection", n);
1485
1504
  const r = "/connections/test", a = new URL(r, b);
1486
1505
  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);
1506
+ c && (t = c.baseOptions);
1507
+ const o = { method: "POST", ...t, ...e }, s = {}, l = {};
1508
+ s["Content-Type"] = "application/json", V(a, l);
1490
1509
  let i = t && t.headers ? t.headers : {};
1491
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
1510
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
1492
1511
  url: v(a),
1493
1512
  options: o
1494
1513
  };
1495
1514
  }
1496
1515
  };
1497
- }, X = function(l) {
1498
- const n = ye(l);
1516
+ }, X = function(c) {
1517
+ const n = ye(c);
1499
1518
  return {
1500
1519
  /**
1501
1520
  * 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.
@@ -1505,12 +1524,12 @@ const ye = function(l) {
1505
1524
  * @throws {RequiredError}
1506
1525
  */
1507
1526
  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);
1527
+ const a = await n.testConnectionConfiguration(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1528
+ return (s, l) => O(a, h, g, c)(s, o || l);
1510
1529
  }
1511
1530
  };
1512
- }, Xa = function(l, n, e) {
1513
- const r = X(l);
1531
+ }, Xa = function(c, n, e) {
1532
+ const r = X(c);
1514
1533
  return {
1515
1534
  /**
1516
1535
  * 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.
@@ -1537,7 +1556,7 @@ class Za extends I {
1537
1556
  return X(this.configuration).testConnectionConfiguration(n, e).then((r) => r(this.axios, this.basePath));
1538
1557
  }
1539
1558
  }
1540
- const ke = function(l) {
1559
+ const ke = function(c) {
1541
1560
  return {
1542
1561
  /**
1543
1562
  * 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.
@@ -1550,13 +1569,13 @@ const ke = function(l) {
1550
1569
  * @throws {RequiredError}
1551
1570
  */
1552
1571
  getDashboard: async (n, e, r, a, t = {}) => {
1553
- h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", r);
1572
+ m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", r);
1554
1573
  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);
1555
- let c;
1556
- l && (c = l.baseOptions);
1557
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
1574
+ let l;
1575
+ c && (l = c.baseOptions);
1576
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
1558
1577
  a !== void 0 && (p.versionId = a), V(s, p);
1559
- let u = c && c.headers ? c.headers : {};
1578
+ let u = l && l.headers ? l.headers : {};
1560
1579
  return i.headers = { ...d, ...u, ...t.headers }, {
1561
1580
  url: v(s),
1562
1581
  options: i
@@ -1572,21 +1591,21 @@ const ke = function(l) {
1572
1591
  * @throws {RequiredError}
1573
1592
  */
1574
1593
  listDashboards: async (n, e, r, a = {}) => {
1575
- h("listDashboards", "environmentName", n), h("listDashboards", "packageName", e);
1594
+ m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
1576
1595
  const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1577
1596
  let s;
1578
- l && (s = l.baseOptions);
1579
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1597
+ c && (s = c.baseOptions);
1598
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
1580
1599
  r !== void 0 && (d.versionId = r), V(o, d);
1581
1600
  let p = s && s.headers ? s.headers : {};
1582
- return c.headers = { ...i, ...p, ...a.headers }, {
1601
+ return l.headers = { ...i, ...p, ...a.headers }, {
1583
1602
  url: v(o),
1584
- options: c
1603
+ options: l
1585
1604
  };
1586
1605
  }
1587
1606
  };
1588
- }, D = function(l) {
1589
- const n = ke(l);
1607
+ }, z = function(c) {
1608
+ const n = ke(c);
1590
1609
  return {
1591
1610
  /**
1592
1611
  * 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.
@@ -1599,8 +1618,8 @@ const ke = function(l) {
1599
1618
  * @throws {RequiredError}
1600
1619
  */
1601
1620
  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);
1621
+ const s = await n.getDashboard(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[l]?.url;
1622
+ return (d, p) => O(s, h, g, c)(d, i || p);
1604
1623
  },
1605
1624
  /**
1606
1625
  * 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.
@@ -1612,12 +1631,12 @@ const ke = function(l) {
1612
1631
  * @throws {RequiredError}
1613
1632
  */
1614
1633
  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);
1634
+ const o = await n.listDashboards(e, r, a, t), s = c?.serverIndex ?? 0, l = P["DashboardsApi.listDashboards"]?.[s]?.url;
1635
+ return (i, d) => O(o, h, g, c)(i, l || d);
1617
1636
  }
1618
1637
  };
1619
- }, et = function(l, n, e) {
1620
- const r = D(l);
1638
+ }, et = function(c, n, e) {
1639
+ const r = z(c);
1621
1640
  return {
1622
1641
  /**
1623
1642
  * 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.
@@ -1629,8 +1648,8 @@ const ke = function(l) {
1629
1648
  * @param {*} [options] Override http request option.
1630
1649
  * @throws {RequiredError}
1631
1650
  */
1632
- getDashboard(a, t, o, s, c) {
1633
- return r.getDashboard(a, t, o, s, c).then((i) => i(e, n));
1651
+ getDashboard(a, t, o, s, l) {
1652
+ return r.getDashboard(a, t, o, s, l).then((i) => i(e, n));
1634
1653
  },
1635
1654
  /**
1636
1655
  * 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.
@@ -1642,7 +1661,7 @@ const ke = function(l) {
1642
1661
  * @throws {RequiredError}
1643
1662
  */
1644
1663
  listDashboards(a, t, o, s) {
1645
- return r.listDashboards(a, t, o, s).then((c) => c(e, n));
1664
+ return r.listDashboards(a, t, o, s).then((l) => l(e, n));
1646
1665
  }
1647
1666
  };
1648
1667
  };
@@ -1659,7 +1678,7 @@ class Ce extends I {
1659
1678
  * @memberof DashboardsApi
1660
1679
  */
1661
1680
  getDashboard(n, e, r, a, t) {
1662
- return D(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1681
+ return z(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1663
1682
  }
1664
1683
  /**
1665
1684
  * 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.
@@ -1672,10 +1691,10 @@ class Ce extends I {
1672
1691
  * @memberof DashboardsApi
1673
1692
  */
1674
1693
  listDashboards(n, e, r, a) {
1675
- return D(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
1694
+ return z(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
1676
1695
  }
1677
1696
  }
1678
- const Ie = function(l) {
1697
+ const Ie = function(c) {
1679
1698
  return {
1680
1699
  /**
1681
1700
  * 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.
@@ -1686,21 +1705,21 @@ const Ie = function(l) {
1686
1705
  * @throws {RequiredError}
1687
1706
  */
1688
1707
  listDataApps: async (n, e, r = {}) => {
1689
- h("listDataApps", "environmentName", n), h("listDataApps", "packageName", e);
1708
+ m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
1690
1709
  const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
1691
1710
  let o;
1692
- l && (o = l.baseOptions);
1693
- const s = { method: "GET", ...o, ...r }, c = {};
1711
+ c && (o = c.baseOptions);
1712
+ const s = { method: "GET", ...o, ...r }, l = {};
1694
1713
  V(t, {});
1695
1714
  let d = o && o.headers ? o.headers : {};
1696
- return s.headers = { ...c, ...d, ...r.headers }, {
1715
+ return s.headers = { ...l, ...d, ...r.headers }, {
1697
1716
  url: v(t),
1698
1717
  options: s
1699
1718
  };
1700
1719
  }
1701
1720
  };
1702
- }, Z = function(l) {
1703
- const n = Ie(l);
1721
+ }, Z = function(c) {
1722
+ const n = Ie(c);
1704
1723
  return {
1705
1724
  /**
1706
1725
  * 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.
@@ -1711,12 +1730,12 @@ const Ie = function(l) {
1711
1730
  * @throws {RequiredError}
1712
1731
  */
1713
1732
  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);
1733
+ const t = await n.listDataApps(e, r, a), o = c?.serverIndex ?? 0, s = P["DataAppsApi.listDataApps"]?.[o]?.url;
1734
+ return (l, i) => O(t, h, g, c)(l, s || i);
1716
1735
  }
1717
1736
  };
1718
- }, at = function(l, n, e) {
1719
- const r = Z(l);
1737
+ }, at = function(c, n, e) {
1738
+ const r = Z(c);
1720
1739
  return {
1721
1740
  /**
1722
1741
  * 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.
@@ -1745,7 +1764,7 @@ class Ae extends I {
1745
1764
  return Z(this.configuration).listDataApps(n, e, r).then((a) => a(this.axios, this.basePath));
1746
1765
  }
1747
1766
  }
1748
- const xe = function(l) {
1767
+ const xe = function(c) {
1749
1768
  return {
1750
1769
  /**
1751
1770
  * 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.
@@ -1757,21 +1776,21 @@ const xe = function(l) {
1757
1776
  * @throws {RequiredError}
1758
1777
  */
1759
1778
  listDatabases: async (n, e, r, a = {}) => {
1760
- h("listDatabases", "environmentName", n), h("listDatabases", "packageName", e);
1779
+ m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
1761
1780
  const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1762
1781
  let s;
1763
- l && (s = l.baseOptions);
1764
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1782
+ c && (s = c.baseOptions);
1783
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
1765
1784
  r !== void 0 && (d.versionId = r), V(o, d);
1766
1785
  let p = s && s.headers ? s.headers : {};
1767
- return c.headers = { ...i, ...p, ...a.headers }, {
1786
+ return l.headers = { ...i, ...p, ...a.headers }, {
1768
1787
  url: v(o),
1769
- options: c
1788
+ options: l
1770
1789
  };
1771
1790
  }
1772
1791
  };
1773
- }, ee = function(l) {
1774
- const n = xe(l);
1792
+ }, ee = function(c) {
1793
+ const n = xe(c);
1775
1794
  return {
1776
1795
  /**
1777
1796
  * 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.
@@ -1783,12 +1802,12 @@ const xe = function(l) {
1783
1802
  * @throws {RequiredError}
1784
1803
  */
1785
1804
  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);
1805
+ const o = await n.listDatabases(e, r, a, t), s = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[s]?.url;
1806
+ return (i, d) => O(o, h, g, c)(i, l || d);
1788
1807
  }
1789
1808
  };
1790
- }, tt = function(l, n, e) {
1791
- const r = ee(l);
1809
+ }, tt = function(c, n, e) {
1810
+ const r = ee(c);
1792
1811
  return {
1793
1812
  /**
1794
1813
  * 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.
@@ -1800,7 +1819,7 @@ const xe = function(l) {
1800
1819
  * @throws {RequiredError}
1801
1820
  */
1802
1821
  listDatabases(a, t, o, s) {
1803
- return r.listDatabases(a, t, o, s).then((c) => c(e, n));
1822
+ return r.listDatabases(a, t, o, s).then((l) => l(e, n));
1804
1823
  }
1805
1824
  };
1806
1825
  };
@@ -1819,7 +1838,7 @@ class Re extends I {
1819
1838
  return ee(this.configuration).listDatabases(n, e, r, a).then((t) => t(this.axios, this.basePath));
1820
1839
  }
1821
1840
  }
1822
- const Ne = function(l) {
1841
+ const Ne = function(c) {
1823
1842
  return {
1824
1843
  /**
1825
1844
  * 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.
@@ -1829,14 +1848,14 @@ const Ne = function(l) {
1829
1848
  * @throws {RequiredError}
1830
1849
  */
1831
1850
  createEnvironment: async (n, e = {}) => {
1832
- h("createEnvironment", "environment", n);
1851
+ m("createEnvironment", "environment", n);
1833
1852
  const r = "/environments", a = new URL(r, b);
1834
1853
  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);
1854
+ c && (t = c.baseOptions);
1855
+ const o = { method: "POST", ...t, ...e }, s = {}, l = {};
1856
+ s["Content-Type"] = "application/json", V(a, l);
1838
1857
  let i = t && t.headers ? t.headers : {};
1839
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
1858
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
1840
1859
  url: v(a),
1841
1860
  options: o
1842
1861
  };
@@ -1849,10 +1868,10 @@ const Ne = function(l) {
1849
1868
  * @throws {RequiredError}
1850
1869
  */
1851
1870
  deleteEnvironment: async (n, e = {}) => {
1852
- h("deleteEnvironment", "environmentName", n);
1871
+ m("deleteEnvironment", "environmentName", n);
1853
1872
  const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
1854
1873
  let t;
1855
- l && (t = l.baseOptions);
1874
+ c && (t = c.baseOptions);
1856
1875
  const o = { method: "DELETE", ...t, ...e }, s = {};
1857
1876
  V(a, {});
1858
1877
  let i = t && t.headers ? t.headers : {};
@@ -1870,14 +1889,14 @@ const Ne = function(l) {
1870
1889
  * @throws {RequiredError}
1871
1890
  */
1872
1891
  getEnvironment: async (n, e, r = {}) => {
1873
- h("getEnvironment", "environmentName", n);
1892
+ m("getEnvironment", "environmentName", n);
1874
1893
  const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1875
1894
  let o;
1876
- l && (o = l.baseOptions);
1877
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1895
+ c && (o = c.baseOptions);
1896
+ const s = { method: "GET", ...o, ...r }, l = {}, i = {};
1878
1897
  e !== void 0 && (i.reload = e), V(t, i);
1879
1898
  let d = o && o.headers ? o.headers : {};
1880
- return s.headers = { ...c, ...d, ...r.headers }, {
1899
+ return s.headers = { ...l, ...d, ...r.headers }, {
1881
1900
  url: v(t),
1882
1901
  options: s
1883
1902
  };
@@ -1891,11 +1910,11 @@ const Ne = function(l) {
1891
1910
  listEnvironments: async (n = {}) => {
1892
1911
  const e = "/environments", r = new URL(e, b);
1893
1912
  let a;
1894
- l && (a = l.baseOptions);
1913
+ c && (a = c.baseOptions);
1895
1914
  const t = { method: "GET", ...a, ...n }, o = {};
1896
1915
  V(r, {});
1897
- let c = a && a.headers ? a.headers : {};
1898
- return t.headers = { ...o, ...c, ...n.headers }, {
1916
+ let l = a && a.headers ? a.headers : {};
1917
+ return t.headers = { ...o, ...l, ...n.headers }, {
1899
1918
  url: v(r),
1900
1919
  options: t
1901
1920
  };
@@ -1909,21 +1928,21 @@ const Ne = function(l) {
1909
1928
  * @throws {RequiredError}
1910
1929
  */
1911
1930
  updateEnvironment: async (n, e, r = {}) => {
1912
- h("updateEnvironment", "environmentName", n), h("updateEnvironment", "environment", e);
1931
+ m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
1913
1932
  const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1914
1933
  let o;
1915
- l && (o = l.baseOptions);
1916
- const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
1917
- c["Content-Type"] = "application/json", V(t, i);
1934
+ c && (o = c.baseOptions);
1935
+ const s = { method: "PATCH", ...o, ...r }, l = {}, i = {};
1936
+ l["Content-Type"] = "application/json", V(t, i);
1918
1937
  let d = o && o.headers ? o.headers : {};
1919
- return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
1938
+ return s.headers = { ...l, ...d, ...r.headers }, s.data = S(e, s, c), {
1920
1939
  url: v(t),
1921
1940
  options: s
1922
1941
  };
1923
1942
  }
1924
1943
  };
1925
- }, N = function(l) {
1926
- const n = Ne(l);
1944
+ }, N = function(c) {
1945
+ const n = Ne(c);
1927
1946
  return {
1928
1947
  /**
1929
1948
  * 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.
@@ -1933,8 +1952,8 @@ const Ne = function(l) {
1933
1952
  * @throws {RequiredError}
1934
1953
  */
1935
1954
  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);
1955
+ const a = await n.createEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1956
+ return (s, l) => O(a, h, g, c)(s, o || l);
1938
1957
  },
1939
1958
  /**
1940
1959
  * 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.
@@ -1944,8 +1963,8 @@ const Ne = function(l) {
1944
1963
  * @throws {RequiredError}
1945
1964
  */
1946
1965
  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);
1966
+ const a = await n.deleteEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1967
+ return (s, l) => O(a, h, g, c)(s, o || l);
1949
1968
  },
1950
1969
  /**
1951
1970
  * 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.
@@ -1956,8 +1975,8 @@ const Ne = function(l) {
1956
1975
  * @throws {RequiredError}
1957
1976
  */
1958
1977
  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);
1978
+ const t = await n.getEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1979
+ return (l, i) => O(t, h, g, c)(l, s || i);
1961
1980
  },
1962
1981
  /**
1963
1982
  * 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`.
@@ -1966,8 +1985,8 @@ const Ne = function(l) {
1966
1985
  * @throws {RequiredError}
1967
1986
  */
1968
1987
  async listEnvironments(e) {
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);
1988
+ const r = await n.listEnvironments(e), a = c?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1989
+ return (o, s) => O(r, h, g, c)(o, t || s);
1971
1990
  },
1972
1991
  /**
1973
1992
  * 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.
@@ -1978,12 +1997,12 @@ const Ne = function(l) {
1978
1997
  * @throws {RequiredError}
1979
1998
  */
1980
1999
  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);
2000
+ const t = await n.updateEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
2001
+ return (l, i) => O(t, h, g, c)(l, s || i);
1983
2002
  }
1984
2003
  };
1985
- }, rt = function(l, n, e) {
1986
- const r = N(l);
2004
+ }, rt = function(c, n, e) {
2005
+ const r = N(c);
1987
2006
  return {
1988
2007
  /**
1989
2008
  * 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.
@@ -2096,7 +2115,7 @@ class Te extends I {
2096
2115
  return N(this.configuration).updateEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
2097
2116
  }
2098
2117
  }
2099
- const Ue = function(l) {
2118
+ const Ue = function(c) {
2100
2119
  return {
2101
2120
  /**
2102
2121
  * 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.
@@ -2108,16 +2127,16 @@ const Ue = function(l) {
2108
2127
  * @throws {RequiredError}
2109
2128
  */
2110
2129
  createMaterialization: async (n, e, r, a = {}) => {
2111
- h("createMaterialization", "environmentName", n), h("createMaterialization", "packageName", e);
2130
+ m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
2112
2131
  const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2113
2132
  let s;
2114
- l && (s = l.baseOptions);
2115
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
2133
+ c && (s = c.baseOptions);
2134
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
2116
2135
  i["Content-Type"] = "application/json", V(o, d);
2117
2136
  let p = s && s.headers ? s.headers : {};
2118
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
2137
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
2119
2138
  url: v(o),
2120
- options: c
2139
+ options: l
2121
2140
  };
2122
2141
  },
2123
2142
  /**
@@ -2131,13 +2150,13 @@ const Ue = function(l) {
2131
2150
  * @throws {RequiredError}
2132
2151
  */
2133
2152
  deleteMaterialization: async (n, e, r, a, t = {}) => {
2134
- h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", r);
2153
+ m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", r);
2135
2154
  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);
2136
- let c;
2137
- l && (c = l.baseOptions);
2138
- const i = { method: "DELETE", ...c, ...t }, d = {}, p = {};
2155
+ let l;
2156
+ c && (l = c.baseOptions);
2157
+ const i = { method: "DELETE", ...l, ...t }, d = {}, p = {};
2139
2158
  a !== void 0 && (p.dropTables = a), V(s, p);
2140
- let u = c && c.headers ? c.headers : {};
2159
+ let u = l && l.headers ? l.headers : {};
2141
2160
  return i.headers = { ...d, ...u, ...t.headers }, {
2142
2161
  url: v(s),
2143
2162
  options: i
@@ -2153,16 +2172,16 @@ const Ue = function(l) {
2153
2172
  * @throws {RequiredError}
2154
2173
  */
2155
2174
  getMaterialization: async (n, e, r, a = {}) => {
2156
- h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", r);
2175
+ m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", r);
2157
2176
  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);
2158
2177
  let s;
2159
- l && (s = l.baseOptions);
2160
- const c = { method: "GET", ...s, ...a }, i = {};
2178
+ c && (s = c.baseOptions);
2179
+ const l = { method: "GET", ...s, ...a }, i = {};
2161
2180
  V(o, {});
2162
2181
  let p = s && s.headers ? s.headers : {};
2163
- return c.headers = { ...i, ...p, ...a.headers }, {
2182
+ return l.headers = { ...i, ...p, ...a.headers }, {
2164
2183
  url: v(o),
2165
- options: c
2184
+ options: l
2166
2185
  };
2167
2186
  },
2168
2187
  /**
@@ -2176,13 +2195,13 @@ const Ue = function(l) {
2176
2195
  * @throws {RequiredError}
2177
2196
  */
2178
2197
  listMaterializations: async (n, e, r, a, t = {}) => {
2179
- h("listMaterializations", "environmentName", n), h("listMaterializations", "packageName", e);
2198
+ m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
2180
2199
  const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
2181
- let c;
2182
- l && (c = l.baseOptions);
2183
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2200
+ let l;
2201
+ c && (l = c.baseOptions);
2202
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
2184
2203
  r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), V(s, p);
2185
- let u = c && c.headers ? c.headers : {};
2204
+ let u = l && l.headers ? l.headers : {};
2186
2205
  return i.headers = { ...d, ...u, ...t.headers }, {
2187
2206
  url: v(s),
2188
2207
  options: i
@@ -2199,21 +2218,21 @@ const Ue = function(l) {
2199
2218
  * @throws {RequiredError}
2200
2219
  */
2201
2220
  materializationAction: async (n, e, r, a, t = {}) => {
2202
- h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", r), h("materializationAction", "action", a);
2221
+ m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", r), m("materializationAction", "action", a);
2203
2222
  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);
2204
- let c;
2205
- l && (c = l.baseOptions);
2206
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2223
+ let l;
2224
+ c && (l = c.baseOptions);
2225
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
2207
2226
  a !== void 0 && (p.action = a), V(s, p);
2208
- let u = c && c.headers ? c.headers : {};
2227
+ let u = l && l.headers ? l.headers : {};
2209
2228
  return i.headers = { ...d, ...u, ...t.headers }, {
2210
2229
  url: v(s),
2211
2230
  options: i
2212
2231
  };
2213
2232
  }
2214
2233
  };
2215
- }, T = function(l) {
2216
- const n = Ue(l);
2234
+ }, T = function(c) {
2235
+ const n = Ue(c);
2217
2236
  return {
2218
2237
  /**
2219
2238
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -2225,8 +2244,8 @@ const Ue = function(l) {
2225
2244
  * @throws {RequiredError}
2226
2245
  */
2227
2246
  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);
2247
+ const o = await n.createMaterialization(e, r, a, t), s = c?.serverIndex ?? 0, l = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2248
+ return (i, d) => O(o, h, g, c)(i, l || d);
2230
2249
  },
2231
2250
  /**
2232
2251
  * 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.
@@ -2239,8 +2258,8 @@ const Ue = function(l) {
2239
2258
  * @throws {RequiredError}
2240
2259
  */
2241
2260
  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);
2261
+ const s = await n.deleteMaterialization(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[l]?.url;
2262
+ return (d, p) => O(s, h, g, c)(d, i || p);
2244
2263
  },
2245
2264
  /**
2246
2265
  *
@@ -2252,8 +2271,8 @@ const Ue = function(l) {
2252
2271
  * @throws {RequiredError}
2253
2272
  */
2254
2273
  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);
2274
+ const o = await n.getMaterialization(e, r, a, t), s = c?.serverIndex ?? 0, l = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
2275
+ return (i, d) => O(o, h, g, c)(i, l || d);
2257
2276
  },
2258
2277
  /**
2259
2278
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2266,8 +2285,8 @@ const Ue = function(l) {
2266
2285
  * @throws {RequiredError}
2267
2286
  */
2268
2287
  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);
2288
+ const s = await n.listMaterializations(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[l]?.url;
2289
+ return (d, p) => O(s, h, g, c)(d, i || p);
2271
2290
  },
2272
2291
  /**
2273
2292
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2280,12 +2299,12 @@ const Ue = function(l) {
2280
2299
  * @throws {RequiredError}
2281
2300
  */
2282
2301
  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);
2302
+ const s = await n.materializationAction(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[l]?.url;
2303
+ return (d, p) => O(s, h, g, c)(d, i || p);
2285
2304
  }
2286
2305
  };
2287
- }, nt = function(l, n, e) {
2288
- const r = T(l);
2306
+ }, nt = function(c, n, e) {
2307
+ const r = T(c);
2289
2308
  return {
2290
2309
  /**
2291
2310
  * 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.
@@ -2297,7 +2316,7 @@ const Ue = function(l) {
2297
2316
  * @throws {RequiredError}
2298
2317
  */
2299
2318
  createMaterialization(a, t, o, s) {
2300
- return r.createMaterialization(a, t, o, s).then((c) => c(e, n));
2319
+ return r.createMaterialization(a, t, o, s).then((l) => l(e, n));
2301
2320
  },
2302
2321
  /**
2303
2322
  * 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.
@@ -2309,8 +2328,8 @@ const Ue = function(l) {
2309
2328
  * @param {*} [options] Override http request option.
2310
2329
  * @throws {RequiredError}
2311
2330
  */
2312
- deleteMaterialization(a, t, o, s, c) {
2313
- return r.deleteMaterialization(a, t, o, s, c).then((i) => i(e, n));
2331
+ deleteMaterialization(a, t, o, s, l) {
2332
+ return r.deleteMaterialization(a, t, o, s, l).then((i) => i(e, n));
2314
2333
  },
2315
2334
  /**
2316
2335
  *
@@ -2322,7 +2341,7 @@ const Ue = function(l) {
2322
2341
  * @throws {RequiredError}
2323
2342
  */
2324
2343
  getMaterialization(a, t, o, s) {
2325
- return r.getMaterialization(a, t, o, s).then((c) => c(e, n));
2344
+ return r.getMaterialization(a, t, o, s).then((l) => l(e, n));
2326
2345
  },
2327
2346
  /**
2328
2347
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2334,8 +2353,8 @@ const Ue = function(l) {
2334
2353
  * @param {*} [options] Override http request option.
2335
2354
  * @throws {RequiredError}
2336
2355
  */
2337
- listMaterializations(a, t, o, s, c) {
2338
- return r.listMaterializations(a, t, o, s, c).then((i) => i(e, n));
2356
+ listMaterializations(a, t, o, s, l) {
2357
+ return r.listMaterializations(a, t, o, s, l).then((i) => i(e, n));
2339
2358
  },
2340
2359
  /**
2341
2360
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2347,8 +2366,8 @@ const Ue = function(l) {
2347
2366
  * @param {*} [options] Override http request option.
2348
2367
  * @throws {RequiredError}
2349
2368
  */
2350
- materializationAction(a, t, o, s, c) {
2351
- return r.materializationAction(a, t, o, s, c).then((i) => i(e, n));
2369
+ materializationAction(a, t, o, s, l) {
2370
+ return r.materializationAction(a, t, o, s, l).then((i) => i(e, n));
2352
2371
  }
2353
2372
  };
2354
2373
  };
@@ -2424,7 +2443,7 @@ class we extends I {
2424
2443
  }
2425
2444
  const ot = {
2426
2445
  Stop: "stop"
2427
- }, Ee = function(l) {
2446
+ }, Ee = function(c) {
2428
2447
  return {
2429
2448
  /**
2430
2449
  * 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.
@@ -2437,14 +2456,14 @@ const ot = {
2437
2456
  * @throws {RequiredError}
2438
2457
  */
2439
2458
  compileModelSource: async (n, e, r, a, t = {}) => {
2440
- h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", a);
2459
+ m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", r), m("compileModelSource", "compileRequest", a);
2441
2460
  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);
2442
- let c;
2443
- l && (c = l.baseOptions);
2444
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2461
+ let l;
2462
+ c && (l = c.baseOptions);
2463
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
2445
2464
  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), {
2465
+ let u = l && l.headers ? l.headers : {};
2466
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
2448
2467
  url: v(s),
2449
2468
  options: i
2450
2469
  };
@@ -2460,14 +2479,14 @@ const ot = {
2460
2479
  * @throws {RequiredError}
2461
2480
  */
2462
2481
  executeQueryModel: async (n, e, r, a, t = {}) => {
2463
- h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", a);
2482
+ m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", r), m("executeQueryModel", "queryRequest", a);
2464
2483
  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);
2465
- let c;
2466
- l && (c = l.baseOptions);
2467
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2484
+ let l;
2485
+ c && (l = c.baseOptions);
2486
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
2468
2487
  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), {
2488
+ let u = l && l.headers ? l.headers : {};
2489
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
2471
2490
  url: v(s),
2472
2491
  options: i
2473
2492
  };
@@ -2483,13 +2502,13 @@ const ot = {
2483
2502
  * @throws {RequiredError}
2484
2503
  */
2485
2504
  getModel: async (n, e, r, a, t = {}) => {
2486
- h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path", r);
2505
+ m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", r);
2487
2506
  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);
2488
- let c;
2489
- l && (c = l.baseOptions);
2490
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2507
+ let l;
2508
+ c && (l = c.baseOptions);
2509
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
2491
2510
  a !== void 0 && (p.versionId = a), V(s, p);
2492
- let u = c && c.headers ? c.headers : {};
2511
+ let u = l && l.headers ? l.headers : {};
2493
2512
  return i.headers = { ...d, ...u, ...t.headers }, {
2494
2513
  url: v(s),
2495
2514
  options: i
@@ -2505,16 +2524,16 @@ const ot = {
2505
2524
  * @throws {RequiredError}
2506
2525
  */
2507
2526
  listModels: async (n, e, r, a = {}) => {
2508
- h("listModels", "environmentName", n), h("listModels", "packageName", e);
2527
+ m("listModels", "environmentName", n), m("listModels", "packageName", e);
2509
2528
  const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2510
2529
  let s;
2511
- l && (s = l.baseOptions);
2512
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2530
+ c && (s = c.baseOptions);
2531
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
2513
2532
  r !== void 0 && (d.versionId = r), V(o, d);
2514
2533
  let p = s && s.headers ? s.headers : {};
2515
- return c.headers = { ...i, ...p, ...a.headers }, {
2534
+ return l.headers = { ...i, ...p, ...a.headers }, {
2516
2535
  url: v(o),
2517
- options: c
2536
+ options: l
2518
2537
  };
2519
2538
  },
2520
2539
  /**
@@ -2529,21 +2548,21 @@ const ot = {
2529
2548
  * @throws {RequiredError}
2530
2549
  */
2531
2550
  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);
2551
+ m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", r), m("updateModelSource", "modelSourceWriteRequest", a);
2552
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), l = new URL(s, b);
2534
2553
  let i;
2535
- l && (i = l.baseOptions);
2554
+ c && (i = c.baseOptions);
2536
2555
  const d = { method: "PUT", ...i, ...o }, p = {}, u = {};
2537
- t !== void 0 && (u.versionId = t), p["Content-Type"] = "application/json", V(c, u);
2556
+ t !== void 0 && (u.versionId = t), p["Content-Type"] = "application/json", V(l, u);
2538
2557
  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),
2558
+ return d.headers = { ...p, ...k, ...o.headers }, d.data = S(a, d, c), {
2559
+ url: v(l),
2541
2560
  options: d
2542
2561
  };
2543
2562
  }
2544
2563
  };
2545
- }, U = function(l) {
2546
- const n = Ee(l);
2564
+ }, U = function(c) {
2565
+ const n = Ee(c);
2547
2566
  return {
2548
2567
  /**
2549
2568
  * 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.
@@ -2556,8 +2575,8 @@ const ot = {
2556
2575
  * @throws {RequiredError}
2557
2576
  */
2558
2577
  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);
2578
+ const s = await n.compileModelSource(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[l]?.url;
2579
+ return (d, p) => O(s, h, g, c)(d, i || p);
2561
2580
  },
2562
2581
  /**
2563
2582
  * 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.
@@ -2570,8 +2589,8 @@ const ot = {
2570
2589
  * @throws {RequiredError}
2571
2590
  */
2572
2591
  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);
2592
+ const s = await n.executeQueryModel(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
2593
+ return (d, p) => O(s, h, g, c)(d, i || p);
2575
2594
  },
2576
2595
  /**
2577
2596
  * 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.
@@ -2584,8 +2603,8 @@ const ot = {
2584
2603
  * @throws {RequiredError}
2585
2604
  */
2586
2605
  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);
2606
+ const s = await n.getModel(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
2607
+ return (d, p) => O(s, h, g, c)(d, i || p);
2589
2608
  },
2590
2609
  /**
2591
2610
  * 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.
@@ -2597,8 +2616,8 @@ const ot = {
2597
2616
  * @throws {RequiredError}
2598
2617
  */
2599
2618
  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);
2619
+ const o = await n.listModels(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[s]?.url;
2620
+ return (i, d) => O(o, h, g, c)(i, l || d);
2602
2621
  },
2603
2622
  /**
2604
2623
  * 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.
@@ -2612,12 +2631,12 @@ const ot = {
2612
2631
  * @throws {RequiredError}
2613
2632
  */
2614
2633
  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);
2634
+ const l = await n.updateModelSource(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ModelsApi.updateModelSource"]?.[i]?.url;
2635
+ return (p, u) => O(l, h, g, c)(p, d || u);
2617
2636
  }
2618
2637
  };
2619
- }, st = function(l, n, e) {
2620
- const r = U(l);
2638
+ }, st = function(c, n, e) {
2639
+ const r = U(c);
2621
2640
  return {
2622
2641
  /**
2623
2642
  * 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.
@@ -2629,8 +2648,8 @@ const ot = {
2629
2648
  * @param {*} [options] Override http request option.
2630
2649
  * @throws {RequiredError}
2631
2650
  */
2632
- compileModelSource(a, t, o, s, c) {
2633
- return r.compileModelSource(a, t, o, s, c).then((i) => i(e, n));
2651
+ compileModelSource(a, t, o, s, l) {
2652
+ return r.compileModelSource(a, t, o, s, l).then((i) => i(e, n));
2634
2653
  },
2635
2654
  /**
2636
2655
  * 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.
@@ -2642,8 +2661,8 @@ const ot = {
2642
2661
  * @param {*} [options] Override http request option.
2643
2662
  * @throws {RequiredError}
2644
2663
  */
2645
- executeQueryModel(a, t, o, s, c) {
2646
- return r.executeQueryModel(a, t, o, s, c).then((i) => i(e, n));
2664
+ executeQueryModel(a, t, o, s, l) {
2665
+ return r.executeQueryModel(a, t, o, s, l).then((i) => i(e, n));
2647
2666
  },
2648
2667
  /**
2649
2668
  * 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.
@@ -2655,8 +2674,8 @@ const ot = {
2655
2674
  * @param {*} [options] Override http request option.
2656
2675
  * @throws {RequiredError}
2657
2676
  */
2658
- getModel(a, t, o, s, c) {
2659
- return r.getModel(a, t, o, s, c).then((i) => i(e, n));
2677
+ getModel(a, t, o, s, l) {
2678
+ return r.getModel(a, t, o, s, l).then((i) => i(e, n));
2660
2679
  },
2661
2680
  /**
2662
2681
  * 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.
@@ -2668,7 +2687,7 @@ const ot = {
2668
2687
  * @throws {RequiredError}
2669
2688
  */
2670
2689
  listModels(a, t, o, s) {
2671
- return r.listModels(a, t, o, s).then((c) => c(e, n));
2690
+ return r.listModels(a, t, o, s).then((l) => l(e, n));
2672
2691
  },
2673
2692
  /**
2674
2693
  * 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.
@@ -2681,8 +2700,8 @@ const ot = {
2681
2700
  * @param {*} [options] Override http request option.
2682
2701
  * @throws {RequiredError}
2683
2702
  */
2684
- updateModelSource(a, t, o, s, c, i) {
2685
- return r.updateModelSource(a, t, o, s, c, i).then((d) => d(e, n));
2703
+ updateModelSource(a, t, o, s, l, i) {
2704
+ return r.updateModelSource(a, t, o, s, l, i).then((d) => d(e, n));
2686
2705
  }
2687
2706
  };
2688
2707
  };
@@ -2758,7 +2777,7 @@ class Me extends I {
2758
2777
  return U(this.configuration).updateModelSource(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
2759
2778
  }
2760
2779
  }
2761
- const fe = function(l) {
2780
+ const fe = function(c) {
2762
2781
  return {
2763
2782
  /**
2764
2783
  * 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.
@@ -2774,13 +2793,13 @@ const fe = function(l) {
2774
2793
  * @param {*} [options] Override http request option.
2775
2794
  * @throws {RequiredError}
2776
2795
  */
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);
2796
+ executeNotebookCell: async (n, e, r, a, t, o, s, l, i = {}) => {
2797
+ m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", r), m("executeNotebookCell", "cellIndex", a);
2779
2798
  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
2799
  let u;
2781
- l && (u = l.baseOptions);
2800
+ c && (u = c.baseOptions);
2782
2801
  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);
2802
+ t !== void 0 && (A.versionId = t), o !== void 0 && (A.filter_params = o), s !== void 0 && (A.bypass_filters = s), l !== void 0 && (A.givens = l), V(p, A);
2784
2803
  let $ = u && u.headers ? u.headers : {};
2785
2804
  return k.headers = { ...E, ...$, ...i.headers }, {
2786
2805
  url: v(p),
@@ -2798,13 +2817,13 @@ const fe = function(l) {
2798
2817
  * @throws {RequiredError}
2799
2818
  */
2800
2819
  getNotebook: async (n, e, r, a, t = {}) => {
2801
- h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path", r);
2820
+ m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", r);
2802
2821
  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);
2803
- let c;
2804
- l && (c = l.baseOptions);
2805
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2822
+ let l;
2823
+ c && (l = c.baseOptions);
2824
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
2806
2825
  a !== void 0 && (p.versionId = a), V(s, p);
2807
- let u = c && c.headers ? c.headers : {};
2826
+ let u = l && l.headers ? l.headers : {};
2808
2827
  return i.headers = { ...d, ...u, ...t.headers }, {
2809
2828
  url: v(s),
2810
2829
  options: i
@@ -2820,21 +2839,21 @@ const fe = function(l) {
2820
2839
  * @throws {RequiredError}
2821
2840
  */
2822
2841
  listNotebooks: async (n, e, r, a = {}) => {
2823
- h("listNotebooks", "environmentName", n), h("listNotebooks", "packageName", e);
2842
+ m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
2824
2843
  const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2825
2844
  let s;
2826
- l && (s = l.baseOptions);
2827
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2845
+ c && (s = c.baseOptions);
2846
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
2828
2847
  r !== void 0 && (d.versionId = r), V(o, d);
2829
2848
  let p = s && s.headers ? s.headers : {};
2830
- return c.headers = { ...i, ...p, ...a.headers }, {
2849
+ return l.headers = { ...i, ...p, ...a.headers }, {
2831
2850
  url: v(o),
2832
- options: c
2851
+ options: l
2833
2852
  };
2834
2853
  }
2835
2854
  };
2836
- }, Q = function(l) {
2837
- const n = fe(l);
2855
+ }, Q = function(c) {
2856
+ const n = fe(c);
2838
2857
  return {
2839
2858
  /**
2840
2859
  * 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.
@@ -2850,9 +2869,9 @@ const fe = function(l) {
2850
2869
  * @param {*} [options] Override http request option.
2851
2870
  * @throws {RequiredError}
2852
2871
  */
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);
2872
+ async executeNotebookCell(e, r, a, t, o, s, l, i, d) {
2873
+ const p = await n.executeNotebookCell(e, r, a, t, o, s, l, i, d), u = c?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[u]?.url;
2874
+ return (E, A) => O(p, h, g, c)(E, k || A);
2856
2875
  },
2857
2876
  /**
2858
2877
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2865,8 +2884,8 @@ const fe = function(l) {
2865
2884
  * @throws {RequiredError}
2866
2885
  */
2867
2886
  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);
2887
+ const s = await n.getNotebook(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
2888
+ return (d, p) => O(s, h, g, c)(d, i || p);
2870
2889
  },
2871
2890
  /**
2872
2891
  * 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.
@@ -2878,12 +2897,12 @@ const fe = function(l) {
2878
2897
  * @throws {RequiredError}
2879
2898
  */
2880
2899
  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);
2900
+ const o = await n.listNotebooks(e, r, a, t), s = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2901
+ return (i, d) => O(o, h, g, c)(i, l || d);
2883
2902
  }
2884
2903
  };
2885
- }, lt = function(l, n, e) {
2886
- const r = Q(l);
2904
+ }, lt = function(c, n, e) {
2905
+ const r = Q(c);
2887
2906
  return {
2888
2907
  /**
2889
2908
  * 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.
@@ -2899,8 +2918,8 @@ const fe = function(l) {
2899
2918
  * @param {*} [options] Override http request option.
2900
2919
  * @throws {RequiredError}
2901
2920
  */
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));
2921
+ executeNotebookCell(a, t, o, s, l, i, d, p, u) {
2922
+ return r.executeNotebookCell(a, t, o, s, l, i, d, p, u).then((k) => k(e, n));
2904
2923
  },
2905
2924
  /**
2906
2925
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2912,8 +2931,8 @@ const fe = function(l) {
2912
2931
  * @param {*} [options] Override http request option.
2913
2932
  * @throws {RequiredError}
2914
2933
  */
2915
- getNotebook(a, t, o, s, c) {
2916
- return r.getNotebook(a, t, o, s, c).then((i) => i(e, n));
2934
+ getNotebook(a, t, o, s, l) {
2935
+ return r.getNotebook(a, t, o, s, l).then((i) => i(e, n));
2917
2936
  },
2918
2937
  /**
2919
2938
  * 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.
@@ -2925,7 +2944,7 @@ const fe = function(l) {
2925
2944
  * @throws {RequiredError}
2926
2945
  */
2927
2946
  listNotebooks(a, t, o, s) {
2928
- return r.listNotebooks(a, t, o, s).then((c) => c(e, n));
2947
+ return r.listNotebooks(a, t, o, s).then((l) => l(e, n));
2929
2948
  }
2930
2949
  };
2931
2950
  };
@@ -2945,8 +2964,8 @@ class Be extends I {
2945
2964
  * @throws {RequiredError}
2946
2965
  * @memberof NotebooksApi
2947
2966
  */
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));
2967
+ executeNotebookCell(n, e, r, a, t, o, s, l, i) {
2968
+ return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, l, i).then((d) => d(this.axios, this.basePath));
2950
2969
  }
2951
2970
  /**
2952
2971
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2979,7 +2998,7 @@ class Be extends I {
2979
2998
  const ct = {
2980
2999
  True: "true",
2981
3000
  False: "false"
2982
- }, Fe = function(l) {
3001
+ }, Fe = function(c) {
2983
3002
  return {
2984
3003
  /**
2985
3004
  * 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.
@@ -2990,14 +3009,14 @@ const ct = {
2990
3009
  * @throws {RequiredError}
2991
3010
  */
2992
3011
  createPackage: async (n, e, r = {}) => {
2993
- h("createPackage", "environmentName", n), h("createPackage", "_package", e);
3012
+ m("createPackage", "environmentName", n), m("createPackage", "_package", e);
2994
3013
  const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
2995
3014
  let o;
2996
- l && (o = l.baseOptions);
2997
- const s = { method: "POST", ...o, ...r }, c = {}, i = {};
2998
- c["Content-Type"] = "application/json", V(t, i);
3015
+ c && (o = c.baseOptions);
3016
+ const s = { method: "POST", ...o, ...r }, l = {}, i = {};
3017
+ l["Content-Type"] = "application/json", V(t, i);
2999
3018
  let d = o && o.headers ? o.headers : {};
3000
- return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
3019
+ return s.headers = { ...l, ...d, ...r.headers }, s.data = S(e, s, c), {
3001
3020
  url: v(t),
3002
3021
  options: s
3003
3022
  };
@@ -3011,14 +3030,14 @@ const ct = {
3011
3030
  * @throws {RequiredError}
3012
3031
  */
3013
3032
  deletePackage: async (n, e, r = {}) => {
3014
- h("deletePackage", "environmentName", n), h("deletePackage", "packageName", e);
3033
+ m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
3015
3034
  const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
3016
3035
  let o;
3017
- l && (o = l.baseOptions);
3018
- const s = { method: "DELETE", ...o, ...r }, c = {};
3036
+ c && (o = c.baseOptions);
3037
+ const s = { method: "DELETE", ...o, ...r }, l = {};
3019
3038
  V(t, {});
3020
3039
  let d = o && o.headers ? o.headers : {};
3021
- return s.headers = { ...c, ...d, ...r.headers }, {
3040
+ return s.headers = { ...l, ...d, ...r.headers }, {
3022
3041
  url: v(t),
3023
3042
  options: s
3024
3043
  };
@@ -3034,13 +3053,13 @@ const ct = {
3034
3053
  * @throws {RequiredError}
3035
3054
  */
3036
3055
  getPackage: async (n, e, r, a, t = {}) => {
3037
- h("getPackage", "environmentName", n), h("getPackage", "packageName", e);
3056
+ m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
3038
3057
  const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
3039
- let c;
3040
- l && (c = l.baseOptions);
3041
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
3058
+ let l;
3059
+ c && (l = c.baseOptions);
3060
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
3042
3061
  r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), V(s, p);
3043
- let u = c && c.headers ? c.headers : {};
3062
+ let u = l && l.headers ? l.headers : {};
3044
3063
  return i.headers = { ...d, ...u, ...t.headers }, {
3045
3064
  url: v(s),
3046
3065
  options: i
@@ -3054,10 +3073,10 @@ const ct = {
3054
3073
  * @throws {RequiredError}
3055
3074
  */
3056
3075
  listPackages: async (n, e = {}) => {
3057
- h("listPackages", "environmentName", n);
3076
+ m("listPackages", "environmentName", n);
3058
3077
  const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
3059
3078
  let t;
3060
- l && (t = l.baseOptions);
3079
+ c && (t = c.baseOptions);
3061
3080
  const o = { method: "GET", ...t, ...e }, s = {};
3062
3081
  V(a, {});
3063
3082
  let i = t && t.headers ? t.headers : {};
@@ -3076,21 +3095,21 @@ const ct = {
3076
3095
  * @throws {RequiredError}
3077
3096
  */
3078
3097
  updatePackage: async (n, e, r, a = {}) => {
3079
- h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package", r);
3098
+ m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", r);
3080
3099
  const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
3081
3100
  let s;
3082
- l && (s = l.baseOptions);
3083
- const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
3101
+ c && (s = c.baseOptions);
3102
+ const l = { method: "PATCH", ...s, ...a }, i = {}, d = {};
3084
3103
  i["Content-Type"] = "application/json", V(o, d);
3085
3104
  let p = s && s.headers ? s.headers : {};
3086
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
3105
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
3087
3106
  url: v(o),
3088
- options: c
3107
+ options: l
3089
3108
  };
3090
3109
  }
3091
3110
  };
3092
- }, w = function(l) {
3093
- const n = Fe(l);
3111
+ }, w = function(c) {
3112
+ const n = Fe(c);
3094
3113
  return {
3095
3114
  /**
3096
3115
  * 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.
@@ -3101,8 +3120,8 @@ const ct = {
3101
3120
  * @throws {RequiredError}
3102
3121
  */
3103
3122
  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);
3123
+ const t = await n.createPackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
3124
+ return (l, i) => O(t, h, g, c)(l, s || i);
3106
3125
  },
3107
3126
  /**
3108
3127
  * 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.
@@ -3113,8 +3132,8 @@ const ct = {
3113
3132
  * @throws {RequiredError}
3114
3133
  */
3115
3134
  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);
3135
+ const t = await n.deletePackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
3136
+ return (l, i) => O(t, h, g, c)(l, s || i);
3118
3137
  },
3119
3138
  /**
3120
3139
  * 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.
@@ -3127,8 +3146,8 @@ const ct = {
3127
3146
  * @throws {RequiredError}
3128
3147
  */
3129
3148
  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);
3149
+ const s = await n.getPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
3150
+ return (d, p) => O(s, h, g, c)(d, i || p);
3132
3151
  },
3133
3152
  /**
3134
3153
  * 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`.
@@ -3138,8 +3157,8 @@ const ct = {
3138
3157
  * @throws {RequiredError}
3139
3158
  */
3140
3159
  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);
3160
+ const a = await n.listPackages(e, r), t = c?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
3161
+ return (s, l) => O(a, h, g, c)(s, o || l);
3143
3162
  },
3144
3163
  /**
3145
3164
  * 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.
@@ -3151,12 +3170,12 @@ const ct = {
3151
3170
  * @throws {RequiredError}
3152
3171
  */
3153
3172
  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);
3173
+ const o = await n.updatePackage(e, r, a, t), s = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[s]?.url;
3174
+ return (i, d) => O(o, h, g, c)(i, l || d);
3156
3175
  }
3157
3176
  };
3158
- }, it = function(l, n, e) {
3159
- const r = w(l);
3177
+ }, it = function(c, n, e) {
3178
+ const r = w(c);
3160
3179
  return {
3161
3180
  /**
3162
3181
  * 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.
@@ -3190,8 +3209,8 @@ const ct = {
3190
3209
  * @param {*} [options] Override http request option.
3191
3210
  * @throws {RequiredError}
3192
3211
  */
3193
- getPackage(a, t, o, s, c) {
3194
- return r.getPackage(a, t, o, s, c).then((i) => i(e, n));
3212
+ getPackage(a, t, o, s, l) {
3213
+ return r.getPackage(a, t, o, s, l).then((i) => i(e, n));
3195
3214
  },
3196
3215
  /**
3197
3216
  * 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`.
@@ -3213,7 +3232,7 @@ const ct = {
3213
3232
  * @throws {RequiredError}
3214
3233
  */
3215
3234
  updatePackage(a, t, o, s) {
3216
- return r.updatePackage(a, t, o, s).then((c) => c(e, n));
3235
+ return r.updatePackage(a, t, o, s).then((l) => l(e, n));
3217
3236
  }
3218
3237
  };
3219
3238
  };
@@ -3281,7 +3300,7 @@ class Qe extends I {
3281
3300
  return w(this.configuration).updatePackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
3282
3301
  }
3283
3302
  }
3284
- const $e = function(l) {
3303
+ const $e = function(c) {
3285
3304
  return {
3286
3305
  /**
3287
3306
  * 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.
@@ -3292,11 +3311,11 @@ const $e = function(l) {
3292
3311
  deleteTheme: async (n = {}) => {
3293
3312
  const e = "/theme", r = new URL(e, b);
3294
3313
  let a;
3295
- l && (a = l.baseOptions);
3314
+ c && (a = c.baseOptions);
3296
3315
  const t = { method: "DELETE", ...a, ...n }, o = {};
3297
3316
  V(r, {});
3298
- let c = a && a.headers ? a.headers : {};
3299
- return t.headers = { ...o, ...c, ...n.headers }, {
3317
+ let l = a && a.headers ? a.headers : {};
3318
+ return t.headers = { ...o, ...l, ...n.headers }, {
3300
3319
  url: v(r),
3301
3320
  options: t
3302
3321
  };
@@ -3310,11 +3329,11 @@ const $e = function(l) {
3310
3329
  getStatus: async (n = {}) => {
3311
3330
  const e = "/status", r = new URL(e, b);
3312
3331
  let a;
3313
- l && (a = l.baseOptions);
3332
+ c && (a = c.baseOptions);
3314
3333
  const t = { method: "GET", ...a, ...n }, o = {};
3315
3334
  V(r, {});
3316
- let c = a && a.headers ? a.headers : {};
3317
- return t.headers = { ...o, ...c, ...n.headers }, {
3335
+ let l = a && a.headers ? a.headers : {};
3336
+ return t.headers = { ...o, ...l, ...n.headers }, {
3318
3337
  url: v(r),
3319
3338
  options: t
3320
3339
  };
@@ -3328,11 +3347,11 @@ const $e = function(l) {
3328
3347
  getTheme: async (n = {}) => {
3329
3348
  const e = "/theme", r = new URL(e, b);
3330
3349
  let a;
3331
- l && (a = l.baseOptions);
3350
+ c && (a = c.baseOptions);
3332
3351
  const t = { method: "GET", ...a, ...n }, o = {};
3333
3352
  V(r, {});
3334
- let c = a && a.headers ? a.headers : {};
3335
- return t.headers = { ...o, ...c, ...n.headers }, {
3353
+ let l = a && a.headers ? a.headers : {};
3354
+ return t.headers = { ...o, ...l, ...n.headers }, {
3336
3355
  url: v(r),
3337
3356
  options: t
3338
3357
  };
@@ -3345,21 +3364,21 @@ const $e = function(l) {
3345
3364
  * @throws {RequiredError}
3346
3365
  */
3347
3366
  updateTheme: async (n, e = {}) => {
3348
- h("updateTheme", "theme", n);
3367
+ m("updateTheme", "theme", n);
3349
3368
  const r = "/theme", a = new URL(r, b);
3350
3369
  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);
3370
+ c && (t = c.baseOptions);
3371
+ const o = { method: "PUT", ...t, ...e }, s = {}, l = {};
3372
+ s["Content-Type"] = "application/json", V(a, l);
3354
3373
  let i = t && t.headers ? t.headers : {};
3355
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
3374
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
3356
3375
  url: v(a),
3357
3376
  options: o
3358
3377
  };
3359
3378
  }
3360
3379
  };
3361
- }, M = function(l) {
3362
- const n = $e(l);
3380
+ }, M = function(c) {
3381
+ const n = $e(c);
3363
3382
  return {
3364
3383
  /**
3365
3384
  * 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.
@@ -3368,8 +3387,8 @@ const $e = function(l) {
3368
3387
  * @throws {RequiredError}
3369
3388
  */
3370
3389
  async deleteTheme(e) {
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);
3390
+ const r = await n.deleteTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.deleteTheme"]?.[a]?.url;
3391
+ return (o, s) => O(r, h, g, c)(o, t || s);
3373
3392
  },
3374
3393
  /**
3375
3394
  * 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.
@@ -3378,8 +3397,8 @@ const $e = function(l) {
3378
3397
  * @throws {RequiredError}
3379
3398
  */
3380
3399
  async getStatus(e) {
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);
3400
+ const r = await n.getStatus(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[a]?.url;
3401
+ return (o, s) => O(r, h, g, c)(o, t || s);
3383
3402
  },
3384
3403
  /**
3385
3404
  * 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.
@@ -3388,8 +3407,8 @@ const $e = function(l) {
3388
3407
  * @throws {RequiredError}
3389
3408
  */
3390
3409
  async getTheme(e) {
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);
3410
+ const r = await n.getTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getTheme"]?.[a]?.url;
3411
+ return (o, s) => O(r, h, g, c)(o, t || s);
3393
3412
  },
3394
3413
  /**
3395
3414
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3399,12 +3418,12 @@ const $e = function(l) {
3399
3418
  * @throws {RequiredError}
3400
3419
  */
3401
3420
  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);
3421
+ const a = await n.updateTheme(e, r), t = c?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[t]?.url;
3422
+ return (s, l) => O(a, h, g, c)(s, o || l);
3404
3423
  }
3405
3424
  };
3406
- }, dt = function(l, n, e) {
3407
- const r = M(l);
3425
+ }, dt = function(c, n, e) {
3426
+ const r = M(c);
3408
3427
  return {
3409
3428
  /**
3410
3429
  * 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.
@@ -3488,7 +3507,7 @@ class qe extends I {
3488
3507
  return M(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
3489
3508
  }
3490
3509
  }
3491
- const ze = function(l) {
3510
+ const De = function(c) {
3492
3511
  return {
3493
3512
  /**
3494
3513
  * 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.
@@ -3499,11 +3518,11 @@ const ze = function(l) {
3499
3518
  getWatchStatus: async (n = {}) => {
3500
3519
  const e = "/watch-mode/status", r = new URL(e, b);
3501
3520
  let a;
3502
- l && (a = l.baseOptions);
3521
+ c && (a = c.baseOptions);
3503
3522
  const t = { method: "GET", ...a, ...n }, o = {};
3504
3523
  V(r, {});
3505
- let c = a && a.headers ? a.headers : {};
3506
- return t.headers = { ...o, ...c, ...n.headers }, {
3524
+ let l = a && a.headers ? a.headers : {};
3525
+ return t.headers = { ...o, ...l, ...n.headers }, {
3507
3526
  url: v(r),
3508
3527
  options: t
3509
3528
  };
@@ -3516,14 +3535,14 @@ const ze = function(l) {
3516
3535
  * @throws {RequiredError}
3517
3536
  */
3518
3537
  startWatching: async (n, e = {}) => {
3519
- h("startWatching", "startWatchRequest", n);
3538
+ m("startWatching", "startWatchRequest", n);
3520
3539
  const r = "/watch-mode/start", a = new URL(r, b);
3521
3540
  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);
3541
+ c && (t = c.baseOptions);
3542
+ const o = { method: "POST", ...t, ...e }, s = {}, l = {};
3543
+ s["Content-Type"] = "application/json", V(a, l);
3525
3544
  let i = t && t.headers ? t.headers : {};
3526
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
3545
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
3527
3546
  url: v(a),
3528
3547
  options: o
3529
3548
  };
@@ -3537,11 +3556,11 @@ const ze = function(l) {
3537
3556
  stopWatching: async (n = {}) => {
3538
3557
  const e = "/watch-mode/stop", r = new URL(e, b);
3539
3558
  let a;
3540
- l && (a = l.baseOptions);
3559
+ c && (a = c.baseOptions);
3541
3560
  const t = { method: "POST", ...a, ...n }, o = {};
3542
3561
  V(r, {});
3543
- let c = a && a.headers ? a.headers : {};
3544
- return t.headers = { ...o, ...c, ...n.headers }, {
3562
+ let l = a && a.headers ? a.headers : {};
3563
+ return t.headers = { ...o, ...l, ...n.headers }, {
3545
3564
  url: v(r),
3546
3565
  options: t
3547
3566
  };
@@ -3555,21 +3574,21 @@ const ze = function(l) {
3555
3574
  * @throws {RequiredError}
3556
3575
  */
3557
3576
  streamPackageEvents: async (n, e, r = {}) => {
3558
- h("streamPackageEvents", "environmentName", n), h("streamPackageEvents", "packageName", e);
3577
+ m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
3559
3578
  const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
3560
3579
  let o;
3561
- l && (o = l.baseOptions);
3562
- const s = { method: "GET", ...o, ...r }, c = {};
3580
+ c && (o = c.baseOptions);
3581
+ const s = { method: "GET", ...o, ...r }, l = {};
3563
3582
  V(t, {});
3564
3583
  let d = o && o.headers ? o.headers : {};
3565
- return s.headers = { ...c, ...d, ...r.headers }, {
3584
+ return s.headers = { ...l, ...d, ...r.headers }, {
3566
3585
  url: v(t),
3567
3586
  options: s
3568
3587
  };
3569
3588
  }
3570
3589
  };
3571
- }, f = function(l) {
3572
- const n = ze(l);
3590
+ }, f = function(c) {
3591
+ const n = De(c);
3573
3592
  return {
3574
3593
  /**
3575
3594
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3578,8 +3597,8 @@ const ze = function(l) {
3578
3597
  * @throws {RequiredError}
3579
3598
  */
3580
3599
  async getWatchStatus(e) {
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);
3600
+ const r = await n.getWatchStatus(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
3601
+ return (o, s) => O(r, h, g, c)(o, t || s);
3583
3602
  },
3584
3603
  /**
3585
3604
  * 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.
@@ -3589,8 +3608,8 @@ const ze = function(l) {
3589
3608
  * @throws {RequiredError}
3590
3609
  */
3591
3610
  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);
3611
+ const a = await n.startWatching(e, r), t = c?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
3612
+ return (s, l) => O(a, h, g, c)(s, o || l);
3594
3613
  },
3595
3614
  /**
3596
3615
  * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
@@ -3599,8 +3618,8 @@ const ze = function(l) {
3599
3618
  * @throws {RequiredError}
3600
3619
  */
3601
3620
  async stopWatching(e) {
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);
3621
+ const r = await n.stopWatching(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[a]?.url;
3622
+ return (o, s) => O(r, h, g, c)(o, t || s);
3604
3623
  },
3605
3624
  /**
3606
3625
  * 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.
@@ -3611,12 +3630,12 @@ const ze = function(l) {
3611
3630
  * @throws {RequiredError}
3612
3631
  */
3613
3632
  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);
3633
+ const t = await n.streamPackageEvents(e, r, a), o = c?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3634
+ return (l, i) => O(t, h, g, c)(l, s || i);
3616
3635
  }
3617
3636
  };
3618
- }, pt = function(l, n, e) {
3619
- const r = f(l);
3637
+ }, pt = function(c, n, e) {
3638
+ const r = f(c);
3620
3639
  return {
3621
3640
  /**
3622
3641
  * 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.
@@ -3659,7 +3678,7 @@ const ze = function(l) {
3659
3678
  }
3660
3679
  };
3661
3680
  };
3662
- class De extends I {
3681
+ class ze extends I {
3663
3682
  /**
3664
3683
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
3665
3684
  * @summary Get watch mode status
@@ -3795,7 +3814,7 @@ const je = new se({
3795
3814
  throwOnError: !1
3796
3815
  }
3797
3816
  }
3798
- }), ht = {
3817
+ }), mt = {
3799
3818
  staleTime: 300 * 1e3,
3800
3819
  refetchOnWindowFocus: !1,
3801
3820
  refetchOnReconnect: !1
@@ -3803,25 +3822,25 @@ const je = new se({
3803
3822
  function He() {
3804
3823
  if (!(typeof window > "u"))
3805
3824
  try {
3806
- const l = window.localStorage.getItem(L);
3807
- if (l === "light" || l === "dark" || l === "auto") return l;
3825
+ const c = window.localStorage.getItem(L);
3826
+ if (c === "light" || c === "dark" || c === "auto") return c;
3808
3827
  } catch {
3809
3828
  }
3810
3829
  }
3811
- function _e(l) {
3830
+ function _e(c) {
3812
3831
  if (!(typeof window > "u"))
3813
3832
  try {
3814
- l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
3833
+ c === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, c);
3815
3834
  } catch {
3816
3835
  }
3817
3836
  }
3818
3837
  function We() {
3819
3838
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3820
3839
  }
3821
- m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3822
- const ae = G(void 0), Ge = (l, n) => {
3823
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = m.create({
3824
- baseURL: l || e,
3840
+ h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3841
+ const ae = G(void 0), Ge = (c, n) => {
3842
+ const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = h.create({
3843
+ baseURL: c || e,
3825
3844
  withCredentials: !0,
3826
3845
  timeout: 6e5
3827
3846
  });
@@ -3845,10 +3864,10 @@ const ae = G(void 0), Ge = (l, n) => {
3845
3864
  e,
3846
3865
  r
3847
3866
  ),
3848
- watchMode: new De(a, e, r)
3867
+ watchMode: new ze(a, e, r)
3849
3868
  };
3850
- }, mt = (l) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3851
- children: l,
3869
+ }, ht = (c) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...c }) }), Ye = ({
3870
+ children: c,
3852
3871
  getAccessToken: n,
3853
3872
  baseURL: e,
3854
3873
  mutable: r,
@@ -3862,9 +3881,9 @@ const ae = G(void 0), Ge = (l, n) => {
3862
3881
  queryFn: async () => (await t.publisher.getStatus()).data
3863
3882
  });
3864
3883
  s.error && console.error("Failed to fetch publisher status:", s.error);
3865
- const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
3884
+ const l = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
3866
3885
  let p;
3867
- s.isLoading || s.error ? p = r : c ? p = !1 : p = r ?? !0;
3886
+ s.isLoading || s.error ? p = r : l ? p = !1 : p = r ?? !0;
3868
3887
  const u = B(
3869
3888
  () => [i, a],
3870
3889
  [i, a]
@@ -3901,18 +3920,18 @@ const ae = G(void 0), Ge = (l, n) => {
3901
3920
  userChoice: q,
3902
3921
  setMode: te,
3903
3922
  allowUserToggle: j,
3904
- children: l
3923
+ children: c
3905
3924
  }
3906
3925
  ) });
3907
3926
  }, ut = () => {
3908
- const l = Y(ae);
3909
- if (l === void 0)
3927
+ const c = Y(ae);
3928
+ if (c === void 0)
3910
3929
  throw new Error("useServer must be used within a ServerProvider");
3911
- return l;
3930
+ return c;
3912
3931
  };
3913
3932
  export {
3914
3933
  Ce as $,
3915
- ha as A,
3934
+ ma as A,
3916
3935
  Wa as B,
3917
3936
  ua as C,
3918
3937
  Oa as D,
@@ -3928,18 +3947,18 @@ export {
3928
3947
  Ua as N,
3929
3948
  Se as O,
3930
3949
  Ea as P,
3931
- za as Q,
3950
+ Da as Q,
3932
3951
  ja as R,
3933
- mt as S,
3952
+ ht as S,
3934
3953
  Ja as T,
3935
3954
  ye as U,
3936
3955
  X as V,
3937
3956
  Xa as W,
3938
3957
  Za as X,
3939
3958
  ke as Y,
3940
- D as Z,
3959
+ z as Z,
3941
3960
  et as _,
3942
- ma as a,
3961
+ ha as a,
3943
3962
  Ie as a0,
3944
3963
  Z as a1,
3945
3964
  at as a2,
@@ -3951,7 +3970,7 @@ export {
3951
3970
  Ne as a8,
3952
3971
  N as a9,
3953
3972
  pt as aA,
3954
- De as aB,
3973
+ ze as aB,
3955
3974
  Le as aC,
3956
3975
  Pe as aD,
3957
3976
  pa as aE,
@@ -3965,7 +3984,7 @@ export {
3965
3984
  W as aM,
3966
3985
  be as aN,
3967
3986
  Ve as aO,
3968
- ht as aP,
3987
+ mt as aP,
3969
3988
  oa as aQ,
3970
3989
  ia as aR,
3971
3990
  da as aS,
@@ -3995,7 +4014,7 @@ export {
3995
4014
  M as av,
3996
4015
  dt as aw,
3997
4016
  qe as ax,
3998
- ze as ay,
4017
+ De as ay,
3999
4018
  f as az,
4000
4019
  ga as b,
4001
4020
  Pa as c,
@@ -4018,7 +4037,7 @@ export {
4018
4037
  $a as t,
4019
4038
  ut as u,
4020
4039
  qa as v,
4021
- Da as w,
4040
+ za as w,
4022
4041
  La as x,
4023
4042
  Ha as y,
4024
4043
  _a as z