@malloy-publisher/sdk 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/{DocumentStorage-BiFqO15i.es.js → DocumentStorage-B04sZ5Ie.es.js} +2284 -2319
  2. package/dist/{DocumentStorage-CMyLifsz.cjs.js → DocumentStorage-B_MMJ0Ot.cjs.js} +29 -29
  3. package/dist/{RenderedResult-CvrmYyr5.es.js → RenderedResult-BB7eokcf.es.js} +100 -80
  4. package/dist/{RenderedResult-CZzE8wv-.cjs.js → RenderedResult-DVuGhatg.cjs.js} +27 -7
  5. package/dist/ServerProvider-D-jjzfE5.cjs.js +1 -0
  6. package/dist/{ServerProvider-BWOEKg0O.es.js → ServerProvider-Do-GBvpn.es.js} +492 -481
  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 +14 -1
  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
@@ -34,8 +34,8 @@ const C = {
34
34
  flexGrow: 1
35
35
  }), oa = x(me)({
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.
102
+ //
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.
104
108
  //
105
- // Neutral slate, not a tint. This was `#f5fafc`, a cyan-cast
106
- // near-white left from the logo palette, and it was the most visible
107
- // survivor of it: every dashboard on the server painted a pale blue
108
- // panel behind its tiles, under charts that were no longer blue-green.
109
+ // 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",
@@ -243,26 +253,26 @@ 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", h = 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 z(c, n, e = "") {
261
+ n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => z(c, r, e)) : Object.keys(n).forEach(
262
+ (r) => z(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
+ z(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
278
  }, ha = {
@@ -401,6 +411,7 @@ const V = function(l, ...n) {
401
411
  }, _a = {
402
412
  FreeParameter: "free_parameter",
403
413
  Given: "given",
414
+ GivenInPersistedQuery: "given_in_persisted_query",
404
415
  Authorize: "authorize",
405
416
  Partition: "partition",
406
417
  NotDuckdbPortable: "not_duckdb_portable",
@@ -421,7 +432,7 @@ const V = function(l, ...n) {
421
432
  Light: "light",
422
433
  Dark: "dark",
423
434
  Auto: "auto"
424
- }, Oe = function(l) {
435
+ }, Oe = function(c) {
425
436
  return {
426
437
  /**
427
438
  * Creates a new database connection in the specified environment.
@@ -436,13 +447,13 @@ const V = function(l, ...n) {
436
447
  h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection", r);
437
448
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
438
449
  let s;
439
- l && (s = l.baseOptions);
440
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
450
+ c && (s = c.baseOptions);
451
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
441
452
  i["Content-Type"] = "application/json", V(o, d);
442
453
  let p = s && s.headers ? s.headers : {};
443
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
454
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
444
455
  url: v(o),
445
- options: c
456
+ options: l
446
457
  };
447
458
  },
448
459
  /**
@@ -457,11 +468,11 @@ const V = function(l, ...n) {
457
468
  h("deleteConnection", "environmentName", n), h("deleteConnection", "connectionName", e);
458
469
  const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
459
470
  let o;
460
- l && (o = l.baseOptions);
461
- const s = { method: "DELETE", ...o, ...r }, c = {};
471
+ c && (o = c.baseOptions);
472
+ const s = { method: "DELETE", ...o, ...r }, l = {};
462
473
  V(t, {});
463
474
  let d = o && o.headers ? o.headers : {};
464
- return s.headers = { ...c, ...d, ...r.headers }, {
475
+ return s.headers = { ...l, ...d, ...r.headers }, {
465
476
  url: v(t),
466
477
  options: s
467
478
  };
@@ -478,11 +489,11 @@ const V = function(l, ...n) {
478
489
  h("getConnection", "environmentName", n), h("getConnection", "connectionName", e);
479
490
  const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
480
491
  let o;
481
- l && (o = l.baseOptions);
482
- const s = { method: "GET", ...o, ...r }, c = {};
492
+ c && (o = c.baseOptions);
493
+ const s = { method: "GET", ...o, ...r }, l = {};
483
494
  V(t, {});
484
495
  let d = o && o.headers ? o.headers : {};
485
- return s.headers = { ...c, ...d, ...r.headers }, {
496
+ return s.headers = { ...l, ...d, ...r.headers }, {
486
497
  url: v(t),
487
498
  options: s
488
499
  };
@@ -500,11 +511,11 @@ const V = function(l, ...n) {
500
511
  getTable: async (n, e, r, a, t = {}) => {
501
512
  h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName", r), h("getTable", "tablePath", a);
502
513
  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 = {};
514
+ let l;
515
+ c && (l = c.baseOptions);
516
+ const i = { method: "GET", ...l, ...t }, d = {};
506
517
  V(s, {});
507
- let u = c && c.headers ? c.headers : {};
518
+ let u = l && l.headers ? l.headers : {};
508
519
  return i.headers = { ...d, ...u, ...t.headers }, {
509
520
  url: v(s),
510
521
  options: i
@@ -523,14 +534,14 @@ const V = function(l, ...n) {
523
534
  */
524
535
  getTableInPackage: async (n, e, r, a, t, o = {}) => {
525
536
  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);
537
+ 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
538
  let i;
528
- l && (i = l.baseOptions);
539
+ c && (i = c.baseOptions);
529
540
  const d = { method: "GET", ...i, ...o }, p = {};
530
- V(c, {});
541
+ V(l, {});
531
542
  let k = i && i.headers ? i.headers : {};
532
543
  return d.headers = { ...p, ...k, ...o.headers }, {
533
- url: v(c),
544
+ url: v(l),
534
545
  options: d
535
546
  };
536
547
  },
@@ -545,7 +556,7 @@ const V = function(l, ...n) {
545
556
  h("listConnections", "environmentName", n);
546
557
  const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
547
558
  let t;
548
- l && (t = l.baseOptions);
559
+ c && (t = c.baseOptions);
549
560
  const o = { method: "GET", ...t, ...e }, s = {};
550
561
  V(a, {});
551
562
  let i = t && t.headers ? t.headers : {};
@@ -566,11 +577,11 @@ const V = function(l, ...n) {
566
577
  h("listSchemas", "environmentName", n), h("listSchemas", "connectionName", e);
567
578
  const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
568
579
  let o;
569
- l && (o = l.baseOptions);
570
- const s = { method: "GET", ...o, ...r }, c = {};
580
+ c && (o = c.baseOptions);
581
+ const s = { method: "GET", ...o, ...r }, l = {};
571
582
  V(t, {});
572
583
  let d = o && o.headers ? o.headers : {};
573
- return s.headers = { ...c, ...d, ...r.headers }, {
584
+ return s.headers = { ...l, ...d, ...r.headers }, {
574
585
  url: v(t),
575
586
  options: s
576
587
  };
@@ -588,13 +599,13 @@ const V = function(l, ...n) {
588
599
  h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", r);
589
600
  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
601
  let s;
591
- l && (s = l.baseOptions);
592
- const c = { method: "GET", ...s, ...a }, i = {};
602
+ c && (s = c.baseOptions);
603
+ const l = { method: "GET", ...s, ...a }, i = {};
593
604
  V(o, {});
594
605
  let p = s && s.headers ? s.headers : {};
595
- return c.headers = { ...i, ...p, ...a.headers }, {
606
+ return l.headers = { ...i, ...p, ...a.headers }, {
596
607
  url: v(o),
597
- options: c
608
+ options: l
598
609
  };
599
610
  },
600
611
  /**
@@ -610,11 +621,11 @@ const V = function(l, ...n) {
610
621
  listTables: async (n, e, r, a, t = {}) => {
611
622
  h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName", r);
612
623
  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 = {};
624
+ let l;
625
+ c && (l = c.baseOptions);
626
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
616
627
  a && (p.tableNames = a), V(s, p);
617
- let u = c && c.headers ? c.headers : {};
628
+ let u = l && l.headers ? l.headers : {};
618
629
  return i.headers = { ...d, ...u, ...t.headers }, {
619
630
  url: v(s),
620
631
  options: i
@@ -633,14 +644,14 @@ const V = function(l, ...n) {
633
644
  */
634
645
  listTablesInPackage: async (n, e, r, a, t, o = {}) => {
635
646
  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);
647
+ 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
648
  let i;
638
- l && (i = l.baseOptions);
649
+ c && (i = c.baseOptions);
639
650
  const d = { method: "GET", ...i, ...o }, p = {}, u = {};
640
- t && (u.tableNames = t), V(c, u);
651
+ t && (u.tableNames = t), V(l, u);
641
652
  let k = i && i.headers ? i.headers : {};
642
653
  return d.headers = { ...p, ...k, ...o.headers }, {
643
- url: v(c),
654
+ url: v(l),
644
655
  options: d
645
656
  };
646
657
  },
@@ -657,13 +668,13 @@ const V = function(l, ...n) {
657
668
  h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", r);
658
669
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
659
670
  let s;
660
- l && (s = l.baseOptions);
661
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
671
+ c && (s = c.baseOptions);
672
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
662
673
  i["Content-Type"] = "application/json", V(o, d);
663
674
  let p = s && s.headers ? s.headers : {};
664
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
675
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
665
676
  url: v(o),
666
- options: c
677
+ options: l
667
678
  };
668
679
  },
669
680
  /**
@@ -679,12 +690,12 @@ const V = function(l, ...n) {
679
690
  postQuerydataInPackage: async (n, e, r, a, t = {}) => {
680
691
  h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", a);
681
692
  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 = {};
693
+ let l;
694
+ c && (l = c.baseOptions);
695
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
685
696
  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), {
697
+ let u = l && l.headers ? l.headers : {};
698
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
688
699
  url: v(s),
689
700
  options: i
690
701
  };
@@ -702,13 +713,13 @@ const V = function(l, ...n) {
702
713
  h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", r);
703
714
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
704
715
  let s;
705
- l && (s = l.baseOptions);
706
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
716
+ c && (s = c.baseOptions);
717
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
707
718
  i["Content-Type"] = "application/json", V(o, d);
708
719
  let p = s && s.headers ? s.headers : {};
709
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
720
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
710
721
  url: v(o),
711
- options: c
722
+ options: l
712
723
  };
713
724
  },
714
725
  /**
@@ -724,12 +735,12 @@ const V = function(l, ...n) {
724
735
  postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
725
736
  h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
726
737
  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 = {};
738
+ let l;
739
+ c && (l = c.baseOptions);
740
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
730
741
  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), {
742
+ let u = l && l.headers ? l.headers : {};
743
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
733
744
  url: v(s),
734
745
  options: i
735
746
  };
@@ -747,13 +758,13 @@ const V = function(l, ...n) {
747
758
  h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", r);
748
759
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
749
760
  let s;
750
- l && (s = l.baseOptions);
751
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
761
+ c && (s = c.baseOptions);
762
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
752
763
  i["Content-Type"] = "application/json", V(o, d);
753
764
  let p = s && s.headers ? s.headers : {};
754
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
765
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
755
766
  url: v(o),
756
- options: c
767
+ options: l
757
768
  };
758
769
  },
759
770
  /**
@@ -769,12 +780,12 @@ const V = function(l, ...n) {
769
780
  postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
770
781
  h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
771
782
  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 = {};
783
+ let l;
784
+ c && (l = c.baseOptions);
785
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
775
786
  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), {
787
+ let u = l && l.headers ? l.headers : {};
788
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
778
789
  url: v(s),
779
790
  options: i
780
791
  };
@@ -792,18 +803,18 @@ const V = function(l, ...n) {
792
803
  h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", r);
793
804
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
794
805
  let s;
795
- l && (s = l.baseOptions);
796
- const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
806
+ c && (s = c.baseOptions);
807
+ const l = { method: "PATCH", ...s, ...a }, i = {}, d = {};
797
808
  i["Content-Type"] = "application/json", V(o, d);
798
809
  let p = s && s.headers ? s.headers : {};
799
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
810
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
800
811
  url: v(o),
801
- options: c
812
+ options: l
802
813
  };
803
814
  }
804
815
  };
805
- }, y = function(l) {
806
- const n = Oe(l);
816
+ }, y = function(c) {
817
+ const n = Oe(c);
807
818
  return {
808
819
  /**
809
820
  * Creates a new database connection in the specified environment.
@@ -815,8 +826,8 @@ const V = function(l, ...n) {
815
826
  * @throws {RequiredError}
816
827
  */
817
828
  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);
829
+ const o = await n.createConnection(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.createConnection"]?.[s]?.url;
830
+ return (i, d) => O(o, m, g, c)(i, l || d);
820
831
  },
821
832
  /**
822
833
  * Permanently deletes a database connection from the environment.
@@ -827,8 +838,8 @@ const V = function(l, ...n) {
827
838
  * @throws {RequiredError}
828
839
  */
829
840
  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);
841
+ const t = await n.deleteConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
842
+ return (l, i) => O(t, m, g, c)(l, s || i);
832
843
  },
833
844
  /**
834
845
  * 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 +850,8 @@ const V = function(l, ...n) {
839
850
  * @throws {RequiredError}
840
851
  */
841
852
  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);
853
+ const t = await n.getConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
854
+ return (l, i) => O(t, m, g, c)(l, s || i);
844
855
  },
845
856
  /**
846
857
  * 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 +864,8 @@ const V = function(l, ...n) {
853
864
  * @throws {RequiredError}
854
865
  */
855
866
  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);
867
+ const s = await n.getTable(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
868
+ return (d, p) => O(s, m, g, c)(d, i || p);
858
869
  },
859
870
  /**
860
871
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -868,8 +879,8 @@ const V = function(l, ...n) {
868
879
  * @throws {RequiredError}
869
880
  */
870
881
  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);
882
+ const l = await n.getTableInPackage(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
883
+ return (p, u) => O(l, m, g, c)(p, d || u);
873
884
  },
874
885
  /**
875
886
  * 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 +890,8 @@ const V = function(l, ...n) {
879
890
  * @throws {RequiredError}
880
891
  */
881
892
  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);
893
+ const a = await n.listConnections(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
894
+ return (s, l) => O(a, m, g, c)(s, o || l);
884
895
  },
885
896
  /**
886
897
  * 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 +902,8 @@ const V = function(l, ...n) {
891
902
  * @throws {RequiredError}
892
903
  */
893
904
  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);
905
+ const t = await n.listSchemas(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
906
+ return (l, i) => O(t, m, g, c)(l, s || i);
896
907
  },
897
908
  /**
898
909
  * 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 +915,8 @@ const V = function(l, ...n) {
904
915
  * @throws {RequiredError}
905
916
  */
906
917
  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);
918
+ const o = await n.listSchemasInPackage(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
919
+ return (i, d) => O(o, m, g, c)(i, l || d);
909
920
  },
910
921
  /**
911
922
  * 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 +929,8 @@ const V = function(l, ...n) {
918
929
  * @throws {RequiredError}
919
930
  */
920
931
  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);
932
+ const s = await n.listTables(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[l]?.url;
933
+ return (d, p) => O(s, m, g, c)(d, i || p);
923
934
  },
924
935
  /**
925
936
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -933,8 +944,8 @@ const V = function(l, ...n) {
933
944
  * @throws {RequiredError}
934
945
  */
935
946
  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);
947
+ const l = await n.listTablesInPackage(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
948
+ return (p, u) => O(l, m, g, c)(p, d || u);
938
949
  },
939
950
  /**
940
951
  * 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 +957,8 @@ const V = function(l, ...n) {
946
957
  * @throws {RequiredError}
947
958
  */
948
959
  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);
960
+ const o = await n.postQuerydata(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
961
+ return (i, d) => O(o, m, g, c)(i, l || d);
951
962
  },
952
963
  /**
953
964
  * 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 +971,8 @@ const V = function(l, ...n) {
960
971
  * @throws {RequiredError}
961
972
  */
962
973
  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);
974
+ const s = await n.postQuerydataInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[l]?.url;
975
+ return (d, p) => O(s, m, g, c)(d, i || p);
965
976
  },
966
977
  /**
967
978
  * 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 +984,8 @@ const V = function(l, ...n) {
973
984
  * @throws {RequiredError}
974
985
  */
975
986
  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);
987
+ const o = await n.postSqlsource(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
988
+ return (i, d) => O(o, m, g, c)(i, l || d);
978
989
  },
979
990
  /**
980
991
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -987,8 +998,8 @@ const V = function(l, ...n) {
987
998
  * @throws {RequiredError}
988
999
  */
989
1000
  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);
1001
+ const s = await n.postSqlsourceInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[l]?.url;
1002
+ return (d, p) => O(s, m, g, c)(d, i || p);
992
1003
  },
993
1004
  /**
994
1005
  * 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 +1011,8 @@ const V = function(l, ...n) {
1000
1011
  * @throws {RequiredError}
1001
1012
  */
1002
1013
  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);
1014
+ const o = await n.postTemporarytable(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
1015
+ return (i, d) => O(o, m, g, c)(i, l || d);
1005
1016
  },
1006
1017
  /**
1007
1018
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1014,8 +1025,8 @@ const V = function(l, ...n) {
1014
1025
  * @throws {RequiredError}
1015
1026
  */
1016
1027
  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);
1028
+ const s = await n.postTemporarytableInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[l]?.url;
1029
+ return (d, p) => O(s, m, g, c)(d, i || p);
1019
1030
  },
1020
1031
  /**
1021
1032
  * Updates the configuration of an existing database connection.
@@ -1027,12 +1038,12 @@ const V = function(l, ...n) {
1027
1038
  * @throws {RequiredError}
1028
1039
  */
1029
1040
  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);
1041
+ const o = await n.updateConnection(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.updateConnection"]?.[s]?.url;
1042
+ return (i, d) => O(o, m, g, c)(i, l || d);
1032
1043
  }
1033
1044
  };
1034
- }, Ka = function(l, n, e) {
1035
- const r = y(l);
1045
+ }, Ka = function(c, n, e) {
1046
+ const r = y(c);
1036
1047
  return {
1037
1048
  /**
1038
1049
  * Creates a new database connection in the specified environment.
@@ -1044,7 +1055,7 @@ const V = function(l, ...n) {
1044
1055
  * @throws {RequiredError}
1045
1056
  */
1046
1057
  createConnection(a, t, o, s) {
1047
- return r.createConnection(a, t, o, s).then((c) => c(e, n));
1058
+ return r.createConnection(a, t, o, s).then((l) => l(e, n));
1048
1059
  },
1049
1060
  /**
1050
1061
  * Permanently deletes a database connection from the environment.
@@ -1078,8 +1089,8 @@ const V = function(l, ...n) {
1078
1089
  * @param {*} [options] Override http request option.
1079
1090
  * @throws {RequiredError}
1080
1091
  */
1081
- getTable(a, t, o, s, c) {
1082
- return r.getTable(a, t, o, s, c).then((i) => i(e, n));
1092
+ getTable(a, t, o, s, l) {
1093
+ return r.getTable(a, t, o, s, l).then((i) => i(e, n));
1083
1094
  },
1084
1095
  /**
1085
1096
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1092,8 +1103,8 @@ const V = function(l, ...n) {
1092
1103
  * @param {*} [options] Override http request option.
1093
1104
  * @throws {RequiredError}
1094
1105
  */
1095
- getTableInPackage(a, t, o, s, c, i) {
1096
- return r.getTableInPackage(a, t, o, s, c, i).then((d) => d(e, n));
1106
+ getTableInPackage(a, t, o, s, l, i) {
1107
+ return r.getTableInPackage(a, t, o, s, l, i).then((d) => d(e, n));
1097
1108
  },
1098
1109
  /**
1099
1110
  * 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 +1137,7 @@ const V = function(l, ...n) {
1126
1137
  * @throws {RequiredError}
1127
1138
  */
1128
1139
  listSchemasInPackage(a, t, o, s) {
1129
- return r.listSchemasInPackage(a, t, o, s).then((c) => c(e, n));
1140
+ return r.listSchemasInPackage(a, t, o, s).then((l) => l(e, n));
1130
1141
  },
1131
1142
  /**
1132
1143
  * 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 +1149,8 @@ const V = function(l, ...n) {
1138
1149
  * @param {*} [options] Override http request option.
1139
1150
  * @throws {RequiredError}
1140
1151
  */
1141
- listTables(a, t, o, s, c) {
1142
- return r.listTables(a, t, o, s, c).then((i) => i(e, n));
1152
+ listTables(a, t, o, s, l) {
1153
+ return r.listTables(a, t, o, s, l).then((i) => i(e, n));
1143
1154
  },
1144
1155
  /**
1145
1156
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1152,8 +1163,8 @@ const V = function(l, ...n) {
1152
1163
  * @param {*} [options] Override http request option.
1153
1164
  * @throws {RequiredError}
1154
1165
  */
1155
- listTablesInPackage(a, t, o, s, c, i) {
1156
- return r.listTablesInPackage(a, t, o, s, c, i).then((d) => d(e, n));
1166
+ listTablesInPackage(a, t, o, s, l, i) {
1167
+ return r.listTablesInPackage(a, t, o, s, l, i).then((d) => d(e, n));
1157
1168
  },
1158
1169
  /**
1159
1170
  * 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 +1176,7 @@ const V = function(l, ...n) {
1165
1176
  * @throws {RequiredError}
1166
1177
  */
1167
1178
  postQuerydata(a, t, o, s) {
1168
- return r.postQuerydata(a, t, o, s).then((c) => c(e, n));
1179
+ return r.postQuerydata(a, t, o, s).then((l) => l(e, n));
1169
1180
  },
1170
1181
  /**
1171
1182
  * 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 +1188,8 @@ const V = function(l, ...n) {
1177
1188
  * @param {*} [options] Override http request option.
1178
1189
  * @throws {RequiredError}
1179
1190
  */
1180
- postQuerydataInPackage(a, t, o, s, c) {
1181
- return r.postQuerydataInPackage(a, t, o, s, c).then((i) => i(e, n));
1191
+ postQuerydataInPackage(a, t, o, s, l) {
1192
+ return r.postQuerydataInPackage(a, t, o, s, l).then((i) => i(e, n));
1182
1193
  },
1183
1194
  /**
1184
1195
  * 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 +1201,7 @@ const V = function(l, ...n) {
1190
1201
  * @throws {RequiredError}
1191
1202
  */
1192
1203
  postSqlsource(a, t, o, s) {
1193
- return r.postSqlsource(a, t, o, s).then((c) => c(e, n));
1204
+ return r.postSqlsource(a, t, o, s).then((l) => l(e, n));
1194
1205
  },
1195
1206
  /**
1196
1207
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1202,8 +1213,8 @@ const V = function(l, ...n) {
1202
1213
  * @param {*} [options] Override http request option.
1203
1214
  * @throws {RequiredError}
1204
1215
  */
1205
- postSqlsourceInPackage(a, t, o, s, c) {
1206
- return r.postSqlsourceInPackage(a, t, o, s, c).then((i) => i(e, n));
1216
+ postSqlsourceInPackage(a, t, o, s, l) {
1217
+ return r.postSqlsourceInPackage(a, t, o, s, l).then((i) => i(e, n));
1207
1218
  },
1208
1219
  /**
1209
1220
  * 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 +1226,7 @@ const V = function(l, ...n) {
1215
1226
  * @throws {RequiredError}
1216
1227
  */
1217
1228
  postTemporarytable(a, t, o, s) {
1218
- return r.postTemporarytable(a, t, o, s).then((c) => c(e, n));
1229
+ return r.postTemporarytable(a, t, o, s).then((l) => l(e, n));
1219
1230
  },
1220
1231
  /**
1221
1232
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1227,8 +1238,8 @@ const V = function(l, ...n) {
1227
1238
  * @param {*} [options] Override http request option.
1228
1239
  * @throws {RequiredError}
1229
1240
  */
1230
- postTemporarytableInPackage(a, t, o, s, c) {
1231
- return r.postTemporarytableInPackage(a, t, o, s, c).then((i) => i(e, n));
1241
+ postTemporarytableInPackage(a, t, o, s, l) {
1242
+ return r.postTemporarytableInPackage(a, t, o, s, l).then((i) => i(e, n));
1232
1243
  },
1233
1244
  /**
1234
1245
  * Updates the configuration of an existing database connection.
@@ -1240,7 +1251,7 @@ const V = function(l, ...n) {
1240
1251
  * @throws {RequiredError}
1241
1252
  */
1242
1253
  updateConnection(a, t, o, s) {
1243
- return r.updateConnection(a, t, o, s).then((c) => c(e, n));
1254
+ return r.updateConnection(a, t, o, s).then((l) => l(e, n));
1244
1255
  }
1245
1256
  };
1246
1257
  };
@@ -1471,7 +1482,7 @@ class Se extends I {
1471
1482
  return y(this.configuration).updateConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1472
1483
  }
1473
1484
  }
1474
- const ye = function(l) {
1485
+ const ye = function(c) {
1475
1486
  return {
1476
1487
  /**
1477
1488
  * 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.
@@ -1484,18 +1495,18 @@ const ye = function(l) {
1484
1495
  h("testConnectionConfiguration", "connection", n);
1485
1496
  const r = "/connections/test", a = new URL(r, b);
1486
1497
  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);
1498
+ c && (t = c.baseOptions);
1499
+ const o = { method: "POST", ...t, ...e }, s = {}, l = {};
1500
+ s["Content-Type"] = "application/json", V(a, l);
1490
1501
  let i = t && t.headers ? t.headers : {};
1491
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
1502
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
1492
1503
  url: v(a),
1493
1504
  options: o
1494
1505
  };
1495
1506
  }
1496
1507
  };
1497
- }, X = function(l) {
1498
- const n = ye(l);
1508
+ }, X = function(c) {
1509
+ const n = ye(c);
1499
1510
  return {
1500
1511
  /**
1501
1512
  * 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 +1516,12 @@ const ye = function(l) {
1505
1516
  * @throws {RequiredError}
1506
1517
  */
1507
1518
  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);
1519
+ const a = await n.testConnectionConfiguration(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1520
+ return (s, l) => O(a, m, g, c)(s, o || l);
1510
1521
  }
1511
1522
  };
1512
- }, Xa = function(l, n, e) {
1513
- const r = X(l);
1523
+ }, Xa = function(c, n, e) {
1524
+ const r = X(c);
1514
1525
  return {
1515
1526
  /**
1516
1527
  * 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 +1548,7 @@ class Za extends I {
1537
1548
  return X(this.configuration).testConnectionConfiguration(n, e).then((r) => r(this.axios, this.basePath));
1538
1549
  }
1539
1550
  }
1540
- const ke = function(l) {
1551
+ const ke = function(c) {
1541
1552
  return {
1542
1553
  /**
1543
1554
  * 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.
@@ -1552,11 +1563,11 @@ const ke = function(l) {
1552
1563
  getDashboard: async (n, e, r, a, t = {}) => {
1553
1564
  h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", r);
1554
1565
  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 = {};
1566
+ let l;
1567
+ c && (l = c.baseOptions);
1568
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
1558
1569
  a !== void 0 && (p.versionId = a), V(s, p);
1559
- let u = c && c.headers ? c.headers : {};
1570
+ let u = l && l.headers ? l.headers : {};
1560
1571
  return i.headers = { ...d, ...u, ...t.headers }, {
1561
1572
  url: v(s),
1562
1573
  options: i
@@ -1575,18 +1586,18 @@ const ke = function(l) {
1575
1586
  h("listDashboards", "environmentName", n), h("listDashboards", "packageName", e);
1576
1587
  const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1577
1588
  let s;
1578
- l && (s = l.baseOptions);
1579
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1589
+ c && (s = c.baseOptions);
1590
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
1580
1591
  r !== void 0 && (d.versionId = r), V(o, d);
1581
1592
  let p = s && s.headers ? s.headers : {};
1582
- return c.headers = { ...i, ...p, ...a.headers }, {
1593
+ return l.headers = { ...i, ...p, ...a.headers }, {
1583
1594
  url: v(o),
1584
- options: c
1595
+ options: l
1585
1596
  };
1586
1597
  }
1587
1598
  };
1588
- }, D = function(l) {
1589
- const n = ke(l);
1599
+ }, D = function(c) {
1600
+ const n = ke(c);
1590
1601
  return {
1591
1602
  /**
1592
1603
  * 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 +1610,8 @@ const ke = function(l) {
1599
1610
  * @throws {RequiredError}
1600
1611
  */
1601
1612
  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);
1613
+ const s = await n.getDashboard(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[l]?.url;
1614
+ return (d, p) => O(s, m, g, c)(d, i || p);
1604
1615
  },
1605
1616
  /**
1606
1617
  * 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 +1623,12 @@ const ke = function(l) {
1612
1623
  * @throws {RequiredError}
1613
1624
  */
1614
1625
  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);
1626
+ const o = await n.listDashboards(e, r, a, t), s = c?.serverIndex ?? 0, l = P["DashboardsApi.listDashboards"]?.[s]?.url;
1627
+ return (i, d) => O(o, m, g, c)(i, l || d);
1617
1628
  }
1618
1629
  };
1619
- }, et = function(l, n, e) {
1620
- const r = D(l);
1630
+ }, et = function(c, n, e) {
1631
+ const r = D(c);
1621
1632
  return {
1622
1633
  /**
1623
1634
  * 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 +1640,8 @@ const ke = function(l) {
1629
1640
  * @param {*} [options] Override http request option.
1630
1641
  * @throws {RequiredError}
1631
1642
  */
1632
- getDashboard(a, t, o, s, c) {
1633
- return r.getDashboard(a, t, o, s, c).then((i) => i(e, n));
1643
+ getDashboard(a, t, o, s, l) {
1644
+ return r.getDashboard(a, t, o, s, l).then((i) => i(e, n));
1634
1645
  },
1635
1646
  /**
1636
1647
  * 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 +1653,7 @@ const ke = function(l) {
1642
1653
  * @throws {RequiredError}
1643
1654
  */
1644
1655
  listDashboards(a, t, o, s) {
1645
- return r.listDashboards(a, t, o, s).then((c) => c(e, n));
1656
+ return r.listDashboards(a, t, o, s).then((l) => l(e, n));
1646
1657
  }
1647
1658
  };
1648
1659
  };
@@ -1675,7 +1686,7 @@ class Ce extends I {
1675
1686
  return D(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
1676
1687
  }
1677
1688
  }
1678
- const Ie = function(l) {
1689
+ const Ie = function(c) {
1679
1690
  return {
1680
1691
  /**
1681
1692
  * 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.
@@ -1689,18 +1700,18 @@ const Ie = function(l) {
1689
1700
  h("listDataApps", "environmentName", n), h("listDataApps", "packageName", e);
1690
1701
  const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
1691
1702
  let o;
1692
- l && (o = l.baseOptions);
1693
- const s = { method: "GET", ...o, ...r }, c = {};
1703
+ c && (o = c.baseOptions);
1704
+ const s = { method: "GET", ...o, ...r }, l = {};
1694
1705
  V(t, {});
1695
1706
  let d = o && o.headers ? o.headers : {};
1696
- return s.headers = { ...c, ...d, ...r.headers }, {
1707
+ return s.headers = { ...l, ...d, ...r.headers }, {
1697
1708
  url: v(t),
1698
1709
  options: s
1699
1710
  };
1700
1711
  }
1701
1712
  };
1702
- }, Z = function(l) {
1703
- const n = Ie(l);
1713
+ }, Z = function(c) {
1714
+ const n = Ie(c);
1704
1715
  return {
1705
1716
  /**
1706
1717
  * 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 +1722,12 @@ const Ie = function(l) {
1711
1722
  * @throws {RequiredError}
1712
1723
  */
1713
1724
  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);
1725
+ const t = await n.listDataApps(e, r, a), o = c?.serverIndex ?? 0, s = P["DataAppsApi.listDataApps"]?.[o]?.url;
1726
+ return (l, i) => O(t, m, g, c)(l, s || i);
1716
1727
  }
1717
1728
  };
1718
- }, at = function(l, n, e) {
1719
- const r = Z(l);
1729
+ }, at = function(c, n, e) {
1730
+ const r = Z(c);
1720
1731
  return {
1721
1732
  /**
1722
1733
  * 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 +1756,7 @@ class Ae extends I {
1745
1756
  return Z(this.configuration).listDataApps(n, e, r).then((a) => a(this.axios, this.basePath));
1746
1757
  }
1747
1758
  }
1748
- const xe = function(l) {
1759
+ const xe = function(c) {
1749
1760
  return {
1750
1761
  /**
1751
1762
  * 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.
@@ -1760,18 +1771,18 @@ const xe = function(l) {
1760
1771
  h("listDatabases", "environmentName", n), h("listDatabases", "packageName", e);
1761
1772
  const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1762
1773
  let s;
1763
- l && (s = l.baseOptions);
1764
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1774
+ c && (s = c.baseOptions);
1775
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
1765
1776
  r !== void 0 && (d.versionId = r), V(o, d);
1766
1777
  let p = s && s.headers ? s.headers : {};
1767
- return c.headers = { ...i, ...p, ...a.headers }, {
1778
+ return l.headers = { ...i, ...p, ...a.headers }, {
1768
1779
  url: v(o),
1769
- options: c
1780
+ options: l
1770
1781
  };
1771
1782
  }
1772
1783
  };
1773
- }, ee = function(l) {
1774
- const n = xe(l);
1784
+ }, ee = function(c) {
1785
+ const n = xe(c);
1775
1786
  return {
1776
1787
  /**
1777
1788
  * 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 +1794,12 @@ const xe = function(l) {
1783
1794
  * @throws {RequiredError}
1784
1795
  */
1785
1796
  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);
1797
+ const o = await n.listDatabases(e, r, a, t), s = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[s]?.url;
1798
+ return (i, d) => O(o, m, g, c)(i, l || d);
1788
1799
  }
1789
1800
  };
1790
- }, tt = function(l, n, e) {
1791
- const r = ee(l);
1801
+ }, tt = function(c, n, e) {
1802
+ const r = ee(c);
1792
1803
  return {
1793
1804
  /**
1794
1805
  * 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 +1811,7 @@ const xe = function(l) {
1800
1811
  * @throws {RequiredError}
1801
1812
  */
1802
1813
  listDatabases(a, t, o, s) {
1803
- return r.listDatabases(a, t, o, s).then((c) => c(e, n));
1814
+ return r.listDatabases(a, t, o, s).then((l) => l(e, n));
1804
1815
  }
1805
1816
  };
1806
1817
  };
@@ -1819,7 +1830,7 @@ class Re extends I {
1819
1830
  return ee(this.configuration).listDatabases(n, e, r, a).then((t) => t(this.axios, this.basePath));
1820
1831
  }
1821
1832
  }
1822
- const Ne = function(l) {
1833
+ const Ne = function(c) {
1823
1834
  return {
1824
1835
  /**
1825
1836
  * 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.
@@ -1832,11 +1843,11 @@ const Ne = function(l) {
1832
1843
  h("createEnvironment", "environment", n);
1833
1844
  const r = "/environments", a = new URL(r, b);
1834
1845
  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);
1846
+ c && (t = c.baseOptions);
1847
+ const o = { method: "POST", ...t, ...e }, s = {}, l = {};
1848
+ s["Content-Type"] = "application/json", V(a, l);
1838
1849
  let i = t && t.headers ? t.headers : {};
1839
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
1850
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
1840
1851
  url: v(a),
1841
1852
  options: o
1842
1853
  };
@@ -1852,7 +1863,7 @@ const Ne = function(l) {
1852
1863
  h("deleteEnvironment", "environmentName", n);
1853
1864
  const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
1854
1865
  let t;
1855
- l && (t = l.baseOptions);
1866
+ c && (t = c.baseOptions);
1856
1867
  const o = { method: "DELETE", ...t, ...e }, s = {};
1857
1868
  V(a, {});
1858
1869
  let i = t && t.headers ? t.headers : {};
@@ -1873,11 +1884,11 @@ const Ne = function(l) {
1873
1884
  h("getEnvironment", "environmentName", n);
1874
1885
  const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1875
1886
  let o;
1876
- l && (o = l.baseOptions);
1877
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1887
+ c && (o = c.baseOptions);
1888
+ const s = { method: "GET", ...o, ...r }, l = {}, i = {};
1878
1889
  e !== void 0 && (i.reload = e), V(t, i);
1879
1890
  let d = o && o.headers ? o.headers : {};
1880
- return s.headers = { ...c, ...d, ...r.headers }, {
1891
+ return s.headers = { ...l, ...d, ...r.headers }, {
1881
1892
  url: v(t),
1882
1893
  options: s
1883
1894
  };
@@ -1891,11 +1902,11 @@ const Ne = function(l) {
1891
1902
  listEnvironments: async (n = {}) => {
1892
1903
  const e = "/environments", r = new URL(e, b);
1893
1904
  let a;
1894
- l && (a = l.baseOptions);
1905
+ c && (a = c.baseOptions);
1895
1906
  const t = { method: "GET", ...a, ...n }, o = {};
1896
1907
  V(r, {});
1897
- let c = a && a.headers ? a.headers : {};
1898
- return t.headers = { ...o, ...c, ...n.headers }, {
1908
+ let l = a && a.headers ? a.headers : {};
1909
+ return t.headers = { ...o, ...l, ...n.headers }, {
1899
1910
  url: v(r),
1900
1911
  options: t
1901
1912
  };
@@ -1912,18 +1923,18 @@ const Ne = function(l) {
1912
1923
  h("updateEnvironment", "environmentName", n), h("updateEnvironment", "environment", e);
1913
1924
  const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1914
1925
  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);
1926
+ c && (o = c.baseOptions);
1927
+ const s = { method: "PATCH", ...o, ...r }, l = {}, i = {};
1928
+ l["Content-Type"] = "application/json", V(t, i);
1918
1929
  let d = o && o.headers ? o.headers : {};
1919
- return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
1930
+ return s.headers = { ...l, ...d, ...r.headers }, s.data = S(e, s, c), {
1920
1931
  url: v(t),
1921
1932
  options: s
1922
1933
  };
1923
1934
  }
1924
1935
  };
1925
- }, N = function(l) {
1926
- const n = Ne(l);
1936
+ }, N = function(c) {
1937
+ const n = Ne(c);
1927
1938
  return {
1928
1939
  /**
1929
1940
  * 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 +1944,8 @@ const Ne = function(l) {
1933
1944
  * @throws {RequiredError}
1934
1945
  */
1935
1946
  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);
1947
+ const a = await n.createEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1948
+ return (s, l) => O(a, m, g, c)(s, o || l);
1938
1949
  },
1939
1950
  /**
1940
1951
  * 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 +1955,8 @@ const Ne = function(l) {
1944
1955
  * @throws {RequiredError}
1945
1956
  */
1946
1957
  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);
1958
+ const a = await n.deleteEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1959
+ return (s, l) => O(a, m, g, c)(s, o || l);
1949
1960
  },
1950
1961
  /**
1951
1962
  * 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 +1967,8 @@ const Ne = function(l) {
1956
1967
  * @throws {RequiredError}
1957
1968
  */
1958
1969
  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);
1970
+ const t = await n.getEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1971
+ return (l, i) => O(t, m, g, c)(l, s || i);
1961
1972
  },
1962
1973
  /**
1963
1974
  * 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 +1977,8 @@ const Ne = function(l) {
1966
1977
  * @throws {RequiredError}
1967
1978
  */
1968
1979
  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);
1980
+ const r = await n.listEnvironments(e), a = c?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1981
+ return (o, s) => O(r, m, g, c)(o, t || s);
1971
1982
  },
1972
1983
  /**
1973
1984
  * 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 +1989,12 @@ const Ne = function(l) {
1978
1989
  * @throws {RequiredError}
1979
1990
  */
1980
1991
  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);
1992
+ const t = await n.updateEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1993
+ return (l, i) => O(t, m, g, c)(l, s || i);
1983
1994
  }
1984
1995
  };
1985
- }, rt = function(l, n, e) {
1986
- const r = N(l);
1996
+ }, rt = function(c, n, e) {
1997
+ const r = N(c);
1987
1998
  return {
1988
1999
  /**
1989
2000
  * 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 +2107,7 @@ class Te extends I {
2096
2107
  return N(this.configuration).updateEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
2097
2108
  }
2098
2109
  }
2099
- const Ue = function(l) {
2110
+ const Ue = function(c) {
2100
2111
  return {
2101
2112
  /**
2102
2113
  * 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.
@@ -2111,13 +2122,13 @@ const Ue = function(l) {
2111
2122
  h("createMaterialization", "environmentName", n), h("createMaterialization", "packageName", e);
2112
2123
  const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2113
2124
  let s;
2114
- l && (s = l.baseOptions);
2115
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
2125
+ c && (s = c.baseOptions);
2126
+ const l = { method: "POST", ...s, ...a }, i = {}, d = {};
2116
2127
  i["Content-Type"] = "application/json", V(o, d);
2117
2128
  let p = s && s.headers ? s.headers : {};
2118
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
2129
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
2119
2130
  url: v(o),
2120
- options: c
2131
+ options: l
2121
2132
  };
2122
2133
  },
2123
2134
  /**
@@ -2133,11 +2144,11 @@ const Ue = function(l) {
2133
2144
  deleteMaterialization: async (n, e, r, a, t = {}) => {
2134
2145
  h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", r);
2135
2146
  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 = {};
2147
+ let l;
2148
+ c && (l = c.baseOptions);
2149
+ const i = { method: "DELETE", ...l, ...t }, d = {}, p = {};
2139
2150
  a !== void 0 && (p.dropTables = a), V(s, p);
2140
- let u = c && c.headers ? c.headers : {};
2151
+ let u = l && l.headers ? l.headers : {};
2141
2152
  return i.headers = { ...d, ...u, ...t.headers }, {
2142
2153
  url: v(s),
2143
2154
  options: i
@@ -2156,13 +2167,13 @@ const Ue = function(l) {
2156
2167
  h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", r);
2157
2168
  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
2169
  let s;
2159
- l && (s = l.baseOptions);
2160
- const c = { method: "GET", ...s, ...a }, i = {};
2170
+ c && (s = c.baseOptions);
2171
+ const l = { method: "GET", ...s, ...a }, i = {};
2161
2172
  V(o, {});
2162
2173
  let p = s && s.headers ? s.headers : {};
2163
- return c.headers = { ...i, ...p, ...a.headers }, {
2174
+ return l.headers = { ...i, ...p, ...a.headers }, {
2164
2175
  url: v(o),
2165
- options: c
2176
+ options: l
2166
2177
  };
2167
2178
  },
2168
2179
  /**
@@ -2178,11 +2189,11 @@ const Ue = function(l) {
2178
2189
  listMaterializations: async (n, e, r, a, t = {}) => {
2179
2190
  h("listMaterializations", "environmentName", n), h("listMaterializations", "packageName", e);
2180
2191
  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 = {};
2192
+ let l;
2193
+ c && (l = c.baseOptions);
2194
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
2184
2195
  r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), V(s, p);
2185
- let u = c && c.headers ? c.headers : {};
2196
+ let u = l && l.headers ? l.headers : {};
2186
2197
  return i.headers = { ...d, ...u, ...t.headers }, {
2187
2198
  url: v(s),
2188
2199
  options: i
@@ -2201,19 +2212,19 @@ const Ue = function(l) {
2201
2212
  materializationAction: async (n, e, r, a, t = {}) => {
2202
2213
  h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", r), h("materializationAction", "action", a);
2203
2214
  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 = {};
2215
+ let l;
2216
+ c && (l = c.baseOptions);
2217
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
2207
2218
  a !== void 0 && (p.action = a), V(s, p);
2208
- let u = c && c.headers ? c.headers : {};
2219
+ let u = l && l.headers ? l.headers : {};
2209
2220
  return i.headers = { ...d, ...u, ...t.headers }, {
2210
2221
  url: v(s),
2211
2222
  options: i
2212
2223
  };
2213
2224
  }
2214
2225
  };
2215
- }, T = function(l) {
2216
- const n = Ue(l);
2226
+ }, T = function(c) {
2227
+ const n = Ue(c);
2217
2228
  return {
2218
2229
  /**
2219
2230
  * 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 +2236,8 @@ const Ue = function(l) {
2225
2236
  * @throws {RequiredError}
2226
2237
  */
2227
2238
  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);
2239
+ const o = await n.createMaterialization(e, r, a, t), s = c?.serverIndex ?? 0, l = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2240
+ return (i, d) => O(o, m, g, c)(i, l || d);
2230
2241
  },
2231
2242
  /**
2232
2243
  * 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 +2250,8 @@ const Ue = function(l) {
2239
2250
  * @throws {RequiredError}
2240
2251
  */
2241
2252
  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);
2253
+ const s = await n.deleteMaterialization(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[l]?.url;
2254
+ return (d, p) => O(s, m, g, c)(d, i || p);
2244
2255
  },
2245
2256
  /**
2246
2257
  *
@@ -2252,8 +2263,8 @@ const Ue = function(l) {
2252
2263
  * @throws {RequiredError}
2253
2264
  */
2254
2265
  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);
2266
+ const o = await n.getMaterialization(e, r, a, t), s = c?.serverIndex ?? 0, l = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
2267
+ return (i, d) => O(o, m, g, c)(i, l || d);
2257
2268
  },
2258
2269
  /**
2259
2270
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2266,8 +2277,8 @@ const Ue = function(l) {
2266
2277
  * @throws {RequiredError}
2267
2278
  */
2268
2279
  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);
2280
+ const s = await n.listMaterializations(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[l]?.url;
2281
+ return (d, p) => O(s, m, g, c)(d, i || p);
2271
2282
  },
2272
2283
  /**
2273
2284
  * 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 +2291,12 @@ const Ue = function(l) {
2280
2291
  * @throws {RequiredError}
2281
2292
  */
2282
2293
  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);
2294
+ const s = await n.materializationAction(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[l]?.url;
2295
+ return (d, p) => O(s, m, g, c)(d, i || p);
2285
2296
  }
2286
2297
  };
2287
- }, nt = function(l, n, e) {
2288
- const r = T(l);
2298
+ }, nt = function(c, n, e) {
2299
+ const r = T(c);
2289
2300
  return {
2290
2301
  /**
2291
2302
  * 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 +2308,7 @@ const Ue = function(l) {
2297
2308
  * @throws {RequiredError}
2298
2309
  */
2299
2310
  createMaterialization(a, t, o, s) {
2300
- return r.createMaterialization(a, t, o, s).then((c) => c(e, n));
2311
+ return r.createMaterialization(a, t, o, s).then((l) => l(e, n));
2301
2312
  },
2302
2313
  /**
2303
2314
  * 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 +2320,8 @@ const Ue = function(l) {
2309
2320
  * @param {*} [options] Override http request option.
2310
2321
  * @throws {RequiredError}
2311
2322
  */
2312
- deleteMaterialization(a, t, o, s, c) {
2313
- return r.deleteMaterialization(a, t, o, s, c).then((i) => i(e, n));
2323
+ deleteMaterialization(a, t, o, s, l) {
2324
+ return r.deleteMaterialization(a, t, o, s, l).then((i) => i(e, n));
2314
2325
  },
2315
2326
  /**
2316
2327
  *
@@ -2322,7 +2333,7 @@ const Ue = function(l) {
2322
2333
  * @throws {RequiredError}
2323
2334
  */
2324
2335
  getMaterialization(a, t, o, s) {
2325
- return r.getMaterialization(a, t, o, s).then((c) => c(e, n));
2336
+ return r.getMaterialization(a, t, o, s).then((l) => l(e, n));
2326
2337
  },
2327
2338
  /**
2328
2339
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2334,8 +2345,8 @@ const Ue = function(l) {
2334
2345
  * @param {*} [options] Override http request option.
2335
2346
  * @throws {RequiredError}
2336
2347
  */
2337
- listMaterializations(a, t, o, s, c) {
2338
- return r.listMaterializations(a, t, o, s, c).then((i) => i(e, n));
2348
+ listMaterializations(a, t, o, s, l) {
2349
+ return r.listMaterializations(a, t, o, s, l).then((i) => i(e, n));
2339
2350
  },
2340
2351
  /**
2341
2352
  * 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 +2358,8 @@ const Ue = function(l) {
2347
2358
  * @param {*} [options] Override http request option.
2348
2359
  * @throws {RequiredError}
2349
2360
  */
2350
- materializationAction(a, t, o, s, c) {
2351
- return r.materializationAction(a, t, o, s, c).then((i) => i(e, n));
2361
+ materializationAction(a, t, o, s, l) {
2362
+ return r.materializationAction(a, t, o, s, l).then((i) => i(e, n));
2352
2363
  }
2353
2364
  };
2354
2365
  };
@@ -2424,7 +2435,7 @@ class we extends I {
2424
2435
  }
2425
2436
  const ot = {
2426
2437
  Stop: "stop"
2427
- }, Ee = function(l) {
2438
+ }, Ee = function(c) {
2428
2439
  return {
2429
2440
  /**
2430
2441
  * 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.
@@ -2439,12 +2450,12 @@ const ot = {
2439
2450
  compileModelSource: async (n, e, r, a, t = {}) => {
2440
2451
  h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", a);
2441
2452
  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 = {};
2453
+ let l;
2454
+ c && (l = c.baseOptions);
2455
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
2445
2456
  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), {
2457
+ let u = l && l.headers ? l.headers : {};
2458
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
2448
2459
  url: v(s),
2449
2460
  options: i
2450
2461
  };
@@ -2462,12 +2473,12 @@ const ot = {
2462
2473
  executeQueryModel: async (n, e, r, a, t = {}) => {
2463
2474
  h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", a);
2464
2475
  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 = {};
2476
+ let l;
2477
+ c && (l = c.baseOptions);
2478
+ const i = { method: "POST", ...l, ...t }, d = {}, p = {};
2468
2479
  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), {
2480
+ let u = l && l.headers ? l.headers : {};
2481
+ return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, c), {
2471
2482
  url: v(s),
2472
2483
  options: i
2473
2484
  };
@@ -2485,11 +2496,11 @@ const ot = {
2485
2496
  getModel: async (n, e, r, a, t = {}) => {
2486
2497
  h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path", r);
2487
2498
  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 = {};
2499
+ let l;
2500
+ c && (l = c.baseOptions);
2501
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
2491
2502
  a !== void 0 && (p.versionId = a), V(s, p);
2492
- let u = c && c.headers ? c.headers : {};
2503
+ let u = l && l.headers ? l.headers : {};
2493
2504
  return i.headers = { ...d, ...u, ...t.headers }, {
2494
2505
  url: v(s),
2495
2506
  options: i
@@ -2508,13 +2519,13 @@ const ot = {
2508
2519
  h("listModels", "environmentName", n), h("listModels", "packageName", e);
2509
2520
  const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2510
2521
  let s;
2511
- l && (s = l.baseOptions);
2512
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2522
+ c && (s = c.baseOptions);
2523
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
2513
2524
  r !== void 0 && (d.versionId = r), V(o, d);
2514
2525
  let p = s && s.headers ? s.headers : {};
2515
- return c.headers = { ...i, ...p, ...a.headers }, {
2526
+ return l.headers = { ...i, ...p, ...a.headers }, {
2516
2527
  url: v(o),
2517
- options: c
2528
+ options: l
2518
2529
  };
2519
2530
  },
2520
2531
  /**
@@ -2530,20 +2541,20 @@ const ot = {
2530
2541
  */
2531
2542
  updateModelSource: async (n, e, r, a, t, o = {}) => {
2532
2543
  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);
2544
+ 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
2545
  let i;
2535
- l && (i = l.baseOptions);
2546
+ c && (i = c.baseOptions);
2536
2547
  const d = { method: "PUT", ...i, ...o }, p = {}, u = {};
2537
- t !== void 0 && (u.versionId = t), p["Content-Type"] = "application/json", V(c, u);
2548
+ t !== void 0 && (u.versionId = t), p["Content-Type"] = "application/json", V(l, u);
2538
2549
  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),
2550
+ return d.headers = { ...p, ...k, ...o.headers }, d.data = S(a, d, c), {
2551
+ url: v(l),
2541
2552
  options: d
2542
2553
  };
2543
2554
  }
2544
2555
  };
2545
- }, U = function(l) {
2546
- const n = Ee(l);
2556
+ }, U = function(c) {
2557
+ const n = Ee(c);
2547
2558
  return {
2548
2559
  /**
2549
2560
  * 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 +2567,8 @@ const ot = {
2556
2567
  * @throws {RequiredError}
2557
2568
  */
2558
2569
  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);
2570
+ const s = await n.compileModelSource(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[l]?.url;
2571
+ return (d, p) => O(s, m, g, c)(d, i || p);
2561
2572
  },
2562
2573
  /**
2563
2574
  * 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 +2581,8 @@ const ot = {
2570
2581
  * @throws {RequiredError}
2571
2582
  */
2572
2583
  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);
2584
+ const s = await n.executeQueryModel(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
2585
+ return (d, p) => O(s, m, g, c)(d, i || p);
2575
2586
  },
2576
2587
  /**
2577
2588
  * 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 +2595,8 @@ const ot = {
2584
2595
  * @throws {RequiredError}
2585
2596
  */
2586
2597
  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);
2598
+ const s = await n.getModel(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
2599
+ return (d, p) => O(s, m, g, c)(d, i || p);
2589
2600
  },
2590
2601
  /**
2591
2602
  * 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 +2608,8 @@ const ot = {
2597
2608
  * @throws {RequiredError}
2598
2609
  */
2599
2610
  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);
2611
+ const o = await n.listModels(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[s]?.url;
2612
+ return (i, d) => O(o, m, g, c)(i, l || d);
2602
2613
  },
2603
2614
  /**
2604
2615
  * 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 +2623,12 @@ const ot = {
2612
2623
  * @throws {RequiredError}
2613
2624
  */
2614
2625
  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);
2626
+ const l = await n.updateModelSource(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ModelsApi.updateModelSource"]?.[i]?.url;
2627
+ return (p, u) => O(l, m, g, c)(p, d || u);
2617
2628
  }
2618
2629
  };
2619
- }, st = function(l, n, e) {
2620
- const r = U(l);
2630
+ }, st = function(c, n, e) {
2631
+ const r = U(c);
2621
2632
  return {
2622
2633
  /**
2623
2634
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -2629,8 +2640,8 @@ const ot = {
2629
2640
  * @param {*} [options] Override http request option.
2630
2641
  * @throws {RequiredError}
2631
2642
  */
2632
- compileModelSource(a, t, o, s, c) {
2633
- return r.compileModelSource(a, t, o, s, c).then((i) => i(e, n));
2643
+ compileModelSource(a, t, o, s, l) {
2644
+ return r.compileModelSource(a, t, o, s, l).then((i) => i(e, n));
2634
2645
  },
2635
2646
  /**
2636
2647
  * 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 +2653,8 @@ const ot = {
2642
2653
  * @param {*} [options] Override http request option.
2643
2654
  * @throws {RequiredError}
2644
2655
  */
2645
- executeQueryModel(a, t, o, s, c) {
2646
- return r.executeQueryModel(a, t, o, s, c).then((i) => i(e, n));
2656
+ executeQueryModel(a, t, o, s, l) {
2657
+ return r.executeQueryModel(a, t, o, s, l).then((i) => i(e, n));
2647
2658
  },
2648
2659
  /**
2649
2660
  * 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 +2666,8 @@ const ot = {
2655
2666
  * @param {*} [options] Override http request option.
2656
2667
  * @throws {RequiredError}
2657
2668
  */
2658
- getModel(a, t, o, s, c) {
2659
- return r.getModel(a, t, o, s, c).then((i) => i(e, n));
2669
+ getModel(a, t, o, s, l) {
2670
+ return r.getModel(a, t, o, s, l).then((i) => i(e, n));
2660
2671
  },
2661
2672
  /**
2662
2673
  * 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 +2679,7 @@ const ot = {
2668
2679
  * @throws {RequiredError}
2669
2680
  */
2670
2681
  listModels(a, t, o, s) {
2671
- return r.listModels(a, t, o, s).then((c) => c(e, n));
2682
+ return r.listModels(a, t, o, s).then((l) => l(e, n));
2672
2683
  },
2673
2684
  /**
2674
2685
  * 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 +2692,8 @@ const ot = {
2681
2692
  * @param {*} [options] Override http request option.
2682
2693
  * @throws {RequiredError}
2683
2694
  */
2684
- updateModelSource(a, t, o, s, c, i) {
2685
- return r.updateModelSource(a, t, o, s, c, i).then((d) => d(e, n));
2695
+ updateModelSource(a, t, o, s, l, i) {
2696
+ return r.updateModelSource(a, t, o, s, l, i).then((d) => d(e, n));
2686
2697
  }
2687
2698
  };
2688
2699
  };
@@ -2758,7 +2769,7 @@ class Me extends I {
2758
2769
  return U(this.configuration).updateModelSource(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
2759
2770
  }
2760
2771
  }
2761
- const fe = function(l) {
2772
+ const fe = function(c) {
2762
2773
  return {
2763
2774
  /**
2764
2775
  * 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 +2785,13 @@ const fe = function(l) {
2774
2785
  * @param {*} [options] Override http request option.
2775
2786
  * @throws {RequiredError}
2776
2787
  */
2777
- executeNotebookCell: async (n, e, r, a, t, o, s, c, i = {}) => {
2788
+ executeNotebookCell: async (n, e, r, a, t, o, s, l, i = {}) => {
2778
2789
  h("executeNotebookCell", "environmentName", n), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", a);
2779
2790
  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
2791
  let u;
2781
- l && (u = l.baseOptions);
2792
+ c && (u = c.baseOptions);
2782
2793
  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);
2794
+ 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
2795
  let $ = u && u.headers ? u.headers : {};
2785
2796
  return k.headers = { ...E, ...$, ...i.headers }, {
2786
2797
  url: v(p),
@@ -2800,11 +2811,11 @@ const fe = function(l) {
2800
2811
  getNotebook: async (n, e, r, a, t = {}) => {
2801
2812
  h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path", r);
2802
2813
  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 = {};
2814
+ let l;
2815
+ c && (l = c.baseOptions);
2816
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
2806
2817
  a !== void 0 && (p.versionId = a), V(s, p);
2807
- let u = c && c.headers ? c.headers : {};
2818
+ let u = l && l.headers ? l.headers : {};
2808
2819
  return i.headers = { ...d, ...u, ...t.headers }, {
2809
2820
  url: v(s),
2810
2821
  options: i
@@ -2823,18 +2834,18 @@ const fe = function(l) {
2823
2834
  h("listNotebooks", "environmentName", n), h("listNotebooks", "packageName", e);
2824
2835
  const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2825
2836
  let s;
2826
- l && (s = l.baseOptions);
2827
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2837
+ c && (s = c.baseOptions);
2838
+ const l = { method: "GET", ...s, ...a }, i = {}, d = {};
2828
2839
  r !== void 0 && (d.versionId = r), V(o, d);
2829
2840
  let p = s && s.headers ? s.headers : {};
2830
- return c.headers = { ...i, ...p, ...a.headers }, {
2841
+ return l.headers = { ...i, ...p, ...a.headers }, {
2831
2842
  url: v(o),
2832
- options: c
2843
+ options: l
2833
2844
  };
2834
2845
  }
2835
2846
  };
2836
- }, Q = function(l) {
2837
- const n = fe(l);
2847
+ }, Q = function(c) {
2848
+ const n = fe(c);
2838
2849
  return {
2839
2850
  /**
2840
2851
  * 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 +2861,9 @@ const fe = function(l) {
2850
2861
  * @param {*} [options] Override http request option.
2851
2862
  * @throws {RequiredError}
2852
2863
  */
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);
2864
+ async executeNotebookCell(e, r, a, t, o, s, l, i, d) {
2865
+ const p = await n.executeNotebookCell(e, r, a, t, o, s, l, i, d), u = c?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[u]?.url;
2866
+ return (E, A) => O(p, m, g, c)(E, k || A);
2856
2867
  },
2857
2868
  /**
2858
2869
  * 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 +2876,8 @@ const fe = function(l) {
2865
2876
  * @throws {RequiredError}
2866
2877
  */
2867
2878
  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);
2879
+ const s = await n.getNotebook(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
2880
+ return (d, p) => O(s, m, g, c)(d, i || p);
2870
2881
  },
2871
2882
  /**
2872
2883
  * 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 +2889,12 @@ const fe = function(l) {
2878
2889
  * @throws {RequiredError}
2879
2890
  */
2880
2891
  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);
2892
+ const o = await n.listNotebooks(e, r, a, t), s = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2893
+ return (i, d) => O(o, m, g, c)(i, l || d);
2883
2894
  }
2884
2895
  };
2885
- }, lt = function(l, n, e) {
2886
- const r = Q(l);
2896
+ }, lt = function(c, n, e) {
2897
+ const r = Q(c);
2887
2898
  return {
2888
2899
  /**
2889
2900
  * 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 +2910,8 @@ const fe = function(l) {
2899
2910
  * @param {*} [options] Override http request option.
2900
2911
  * @throws {RequiredError}
2901
2912
  */
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));
2913
+ executeNotebookCell(a, t, o, s, l, i, d, p, u) {
2914
+ return r.executeNotebookCell(a, t, o, s, l, i, d, p, u).then((k) => k(e, n));
2904
2915
  },
2905
2916
  /**
2906
2917
  * 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 +2923,8 @@ const fe = function(l) {
2912
2923
  * @param {*} [options] Override http request option.
2913
2924
  * @throws {RequiredError}
2914
2925
  */
2915
- getNotebook(a, t, o, s, c) {
2916
- return r.getNotebook(a, t, o, s, c).then((i) => i(e, n));
2926
+ getNotebook(a, t, o, s, l) {
2927
+ return r.getNotebook(a, t, o, s, l).then((i) => i(e, n));
2917
2928
  },
2918
2929
  /**
2919
2930
  * 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 +2936,7 @@ const fe = function(l) {
2925
2936
  * @throws {RequiredError}
2926
2937
  */
2927
2938
  listNotebooks(a, t, o, s) {
2928
- return r.listNotebooks(a, t, o, s).then((c) => c(e, n));
2939
+ return r.listNotebooks(a, t, o, s).then((l) => l(e, n));
2929
2940
  }
2930
2941
  };
2931
2942
  };
@@ -2945,8 +2956,8 @@ class Be extends I {
2945
2956
  * @throws {RequiredError}
2946
2957
  * @memberof NotebooksApi
2947
2958
  */
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));
2959
+ executeNotebookCell(n, e, r, a, t, o, s, l, i) {
2960
+ return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, l, i).then((d) => d(this.axios, this.basePath));
2950
2961
  }
2951
2962
  /**
2952
2963
  * 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 +2990,7 @@ class Be extends I {
2979
2990
  const ct = {
2980
2991
  True: "true",
2981
2992
  False: "false"
2982
- }, Fe = function(l) {
2993
+ }, Fe = function(c) {
2983
2994
  return {
2984
2995
  /**
2985
2996
  * 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.
@@ -2993,11 +3004,11 @@ const ct = {
2993
3004
  h("createPackage", "environmentName", n), h("createPackage", "_package", e);
2994
3005
  const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
2995
3006
  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);
3007
+ c && (o = c.baseOptions);
3008
+ const s = { method: "POST", ...o, ...r }, l = {}, i = {};
3009
+ l["Content-Type"] = "application/json", V(t, i);
2999
3010
  let d = o && o.headers ? o.headers : {};
3000
- return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
3011
+ return s.headers = { ...l, ...d, ...r.headers }, s.data = S(e, s, c), {
3001
3012
  url: v(t),
3002
3013
  options: s
3003
3014
  };
@@ -3014,11 +3025,11 @@ const ct = {
3014
3025
  h("deletePackage", "environmentName", n), h("deletePackage", "packageName", e);
3015
3026
  const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
3016
3027
  let o;
3017
- l && (o = l.baseOptions);
3018
- const s = { method: "DELETE", ...o, ...r }, c = {};
3028
+ c && (o = c.baseOptions);
3029
+ const s = { method: "DELETE", ...o, ...r }, l = {};
3019
3030
  V(t, {});
3020
3031
  let d = o && o.headers ? o.headers : {};
3021
- return s.headers = { ...c, ...d, ...r.headers }, {
3032
+ return s.headers = { ...l, ...d, ...r.headers }, {
3022
3033
  url: v(t),
3023
3034
  options: s
3024
3035
  };
@@ -3036,11 +3047,11 @@ const ct = {
3036
3047
  getPackage: async (n, e, r, a, t = {}) => {
3037
3048
  h("getPackage", "environmentName", n), h("getPackage", "packageName", e);
3038
3049
  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 = {};
3050
+ let l;
3051
+ c && (l = c.baseOptions);
3052
+ const i = { method: "GET", ...l, ...t }, d = {}, p = {};
3042
3053
  r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), V(s, p);
3043
- let u = c && c.headers ? c.headers : {};
3054
+ let u = l && l.headers ? l.headers : {};
3044
3055
  return i.headers = { ...d, ...u, ...t.headers }, {
3045
3056
  url: v(s),
3046
3057
  options: i
@@ -3057,7 +3068,7 @@ const ct = {
3057
3068
  h("listPackages", "environmentName", n);
3058
3069
  const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
3059
3070
  let t;
3060
- l && (t = l.baseOptions);
3071
+ c && (t = c.baseOptions);
3061
3072
  const o = { method: "GET", ...t, ...e }, s = {};
3062
3073
  V(a, {});
3063
3074
  let i = t && t.headers ? t.headers : {};
@@ -3079,18 +3090,18 @@ const ct = {
3079
3090
  h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package", r);
3080
3091
  const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
3081
3092
  let s;
3082
- l && (s = l.baseOptions);
3083
- const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
3093
+ c && (s = c.baseOptions);
3094
+ const l = { method: "PATCH", ...s, ...a }, i = {}, d = {};
3084
3095
  i["Content-Type"] = "application/json", V(o, d);
3085
3096
  let p = s && s.headers ? s.headers : {};
3086
- return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
3097
+ return l.headers = { ...i, ...p, ...a.headers }, l.data = S(r, l, c), {
3087
3098
  url: v(o),
3088
- options: c
3099
+ options: l
3089
3100
  };
3090
3101
  }
3091
3102
  };
3092
- }, w = function(l) {
3093
- const n = Fe(l);
3103
+ }, w = function(c) {
3104
+ const n = Fe(c);
3094
3105
  return {
3095
3106
  /**
3096
3107
  * 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 +3112,8 @@ const ct = {
3101
3112
  * @throws {RequiredError}
3102
3113
  */
3103
3114
  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);
3115
+ const t = await n.createPackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
3116
+ return (l, i) => O(t, m, g, c)(l, s || i);
3106
3117
  },
3107
3118
  /**
3108
3119
  * 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 +3124,8 @@ const ct = {
3113
3124
  * @throws {RequiredError}
3114
3125
  */
3115
3126
  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);
3127
+ const t = await n.deletePackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
3128
+ return (l, i) => O(t, m, g, c)(l, s || i);
3118
3129
  },
3119
3130
  /**
3120
3131
  * 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 +3138,8 @@ const ct = {
3127
3138
  * @throws {RequiredError}
3128
3139
  */
3129
3140
  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);
3141
+ const s = await n.getPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
3142
+ return (d, p) => O(s, m, g, c)(d, i || p);
3132
3143
  },
3133
3144
  /**
3134
3145
  * 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 +3149,8 @@ const ct = {
3138
3149
  * @throws {RequiredError}
3139
3150
  */
3140
3151
  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);
3152
+ const a = await n.listPackages(e, r), t = c?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
3153
+ return (s, l) => O(a, m, g, c)(s, o || l);
3143
3154
  },
3144
3155
  /**
3145
3156
  * 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 +3162,12 @@ const ct = {
3151
3162
  * @throws {RequiredError}
3152
3163
  */
3153
3164
  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);
3165
+ const o = await n.updatePackage(e, r, a, t), s = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[s]?.url;
3166
+ return (i, d) => O(o, m, g, c)(i, l || d);
3156
3167
  }
3157
3168
  };
3158
- }, it = function(l, n, e) {
3159
- const r = w(l);
3169
+ }, it = function(c, n, e) {
3170
+ const r = w(c);
3160
3171
  return {
3161
3172
  /**
3162
3173
  * 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 +3201,8 @@ const ct = {
3190
3201
  * @param {*} [options] Override http request option.
3191
3202
  * @throws {RequiredError}
3192
3203
  */
3193
- getPackage(a, t, o, s, c) {
3194
- return r.getPackage(a, t, o, s, c).then((i) => i(e, n));
3204
+ getPackage(a, t, o, s, l) {
3205
+ return r.getPackage(a, t, o, s, l).then((i) => i(e, n));
3195
3206
  },
3196
3207
  /**
3197
3208
  * 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 +3224,7 @@ const ct = {
3213
3224
  * @throws {RequiredError}
3214
3225
  */
3215
3226
  updatePackage(a, t, o, s) {
3216
- return r.updatePackage(a, t, o, s).then((c) => c(e, n));
3227
+ return r.updatePackage(a, t, o, s).then((l) => l(e, n));
3217
3228
  }
3218
3229
  };
3219
3230
  };
@@ -3281,7 +3292,7 @@ class Qe extends I {
3281
3292
  return w(this.configuration).updatePackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
3282
3293
  }
3283
3294
  }
3284
- const $e = function(l) {
3295
+ const $e = function(c) {
3285
3296
  return {
3286
3297
  /**
3287
3298
  * 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 +3303,11 @@ const $e = function(l) {
3292
3303
  deleteTheme: async (n = {}) => {
3293
3304
  const e = "/theme", r = new URL(e, b);
3294
3305
  let a;
3295
- l && (a = l.baseOptions);
3306
+ c && (a = c.baseOptions);
3296
3307
  const t = { method: "DELETE", ...a, ...n }, o = {};
3297
3308
  V(r, {});
3298
- let c = a && a.headers ? a.headers : {};
3299
- return t.headers = { ...o, ...c, ...n.headers }, {
3309
+ let l = a && a.headers ? a.headers : {};
3310
+ return t.headers = { ...o, ...l, ...n.headers }, {
3300
3311
  url: v(r),
3301
3312
  options: t
3302
3313
  };
@@ -3310,11 +3321,11 @@ const $e = function(l) {
3310
3321
  getStatus: async (n = {}) => {
3311
3322
  const e = "/status", r = new URL(e, b);
3312
3323
  let a;
3313
- l && (a = l.baseOptions);
3324
+ c && (a = c.baseOptions);
3314
3325
  const t = { method: "GET", ...a, ...n }, o = {};
3315
3326
  V(r, {});
3316
- let c = a && a.headers ? a.headers : {};
3317
- return t.headers = { ...o, ...c, ...n.headers }, {
3327
+ let l = a && a.headers ? a.headers : {};
3328
+ return t.headers = { ...o, ...l, ...n.headers }, {
3318
3329
  url: v(r),
3319
3330
  options: t
3320
3331
  };
@@ -3328,11 +3339,11 @@ const $e = function(l) {
3328
3339
  getTheme: async (n = {}) => {
3329
3340
  const e = "/theme", r = new URL(e, b);
3330
3341
  let a;
3331
- l && (a = l.baseOptions);
3342
+ c && (a = c.baseOptions);
3332
3343
  const t = { method: "GET", ...a, ...n }, o = {};
3333
3344
  V(r, {});
3334
- let c = a && a.headers ? a.headers : {};
3335
- return t.headers = { ...o, ...c, ...n.headers }, {
3345
+ let l = a && a.headers ? a.headers : {};
3346
+ return t.headers = { ...o, ...l, ...n.headers }, {
3336
3347
  url: v(r),
3337
3348
  options: t
3338
3349
  };
@@ -3348,18 +3359,18 @@ const $e = function(l) {
3348
3359
  h("updateTheme", "theme", n);
3349
3360
  const r = "/theme", a = new URL(r, b);
3350
3361
  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);
3362
+ c && (t = c.baseOptions);
3363
+ const o = { method: "PUT", ...t, ...e }, s = {}, l = {};
3364
+ s["Content-Type"] = "application/json", V(a, l);
3354
3365
  let i = t && t.headers ? t.headers : {};
3355
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
3366
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
3356
3367
  url: v(a),
3357
3368
  options: o
3358
3369
  };
3359
3370
  }
3360
3371
  };
3361
- }, M = function(l) {
3362
- const n = $e(l);
3372
+ }, M = function(c) {
3373
+ const n = $e(c);
3363
3374
  return {
3364
3375
  /**
3365
3376
  * 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 +3379,8 @@ const $e = function(l) {
3368
3379
  * @throws {RequiredError}
3369
3380
  */
3370
3381
  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);
3382
+ const r = await n.deleteTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.deleteTheme"]?.[a]?.url;
3383
+ return (o, s) => O(r, m, g, c)(o, t || s);
3373
3384
  },
3374
3385
  /**
3375
3386
  * 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 +3389,8 @@ const $e = function(l) {
3378
3389
  * @throws {RequiredError}
3379
3390
  */
3380
3391
  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);
3392
+ const r = await n.getStatus(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[a]?.url;
3393
+ return (o, s) => O(r, m, g, c)(o, t || s);
3383
3394
  },
3384
3395
  /**
3385
3396
  * 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 +3399,8 @@ const $e = function(l) {
3388
3399
  * @throws {RequiredError}
3389
3400
  */
3390
3401
  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);
3402
+ const r = await n.getTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getTheme"]?.[a]?.url;
3403
+ return (o, s) => O(r, m, g, c)(o, t || s);
3393
3404
  },
3394
3405
  /**
3395
3406
  * 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 +3410,12 @@ const $e = function(l) {
3399
3410
  * @throws {RequiredError}
3400
3411
  */
3401
3412
  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);
3413
+ const a = await n.updateTheme(e, r), t = c?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[t]?.url;
3414
+ return (s, l) => O(a, m, g, c)(s, o || l);
3404
3415
  }
3405
3416
  };
3406
- }, dt = function(l, n, e) {
3407
- const r = M(l);
3417
+ }, dt = function(c, n, e) {
3418
+ const r = M(c);
3408
3419
  return {
3409
3420
  /**
3410
3421
  * 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 +3499,7 @@ class qe extends I {
3488
3499
  return M(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
3489
3500
  }
3490
3501
  }
3491
- const ze = function(l) {
3502
+ const ze = function(c) {
3492
3503
  return {
3493
3504
  /**
3494
3505
  * 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 +3510,11 @@ const ze = function(l) {
3499
3510
  getWatchStatus: async (n = {}) => {
3500
3511
  const e = "/watch-mode/status", r = new URL(e, b);
3501
3512
  let a;
3502
- l && (a = l.baseOptions);
3513
+ c && (a = c.baseOptions);
3503
3514
  const t = { method: "GET", ...a, ...n }, o = {};
3504
3515
  V(r, {});
3505
- let c = a && a.headers ? a.headers : {};
3506
- return t.headers = { ...o, ...c, ...n.headers }, {
3516
+ let l = a && a.headers ? a.headers : {};
3517
+ return t.headers = { ...o, ...l, ...n.headers }, {
3507
3518
  url: v(r),
3508
3519
  options: t
3509
3520
  };
@@ -3519,11 +3530,11 @@ const ze = function(l) {
3519
3530
  h("startWatching", "startWatchRequest", n);
3520
3531
  const r = "/watch-mode/start", a = new URL(r, b);
3521
3532
  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);
3533
+ c && (t = c.baseOptions);
3534
+ const o = { method: "POST", ...t, ...e }, s = {}, l = {};
3535
+ s["Content-Type"] = "application/json", V(a, l);
3525
3536
  let i = t && t.headers ? t.headers : {};
3526
- return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
3537
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, c), {
3527
3538
  url: v(a),
3528
3539
  options: o
3529
3540
  };
@@ -3537,11 +3548,11 @@ const ze = function(l) {
3537
3548
  stopWatching: async (n = {}) => {
3538
3549
  const e = "/watch-mode/stop", r = new URL(e, b);
3539
3550
  let a;
3540
- l && (a = l.baseOptions);
3551
+ c && (a = c.baseOptions);
3541
3552
  const t = { method: "POST", ...a, ...n }, o = {};
3542
3553
  V(r, {});
3543
- let c = a && a.headers ? a.headers : {};
3544
- return t.headers = { ...o, ...c, ...n.headers }, {
3554
+ let l = a && a.headers ? a.headers : {};
3555
+ return t.headers = { ...o, ...l, ...n.headers }, {
3545
3556
  url: v(r),
3546
3557
  options: t
3547
3558
  };
@@ -3558,18 +3569,18 @@ const ze = function(l) {
3558
3569
  h("streamPackageEvents", "environmentName", n), h("streamPackageEvents", "packageName", e);
3559
3570
  const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
3560
3571
  let o;
3561
- l && (o = l.baseOptions);
3562
- const s = { method: "GET", ...o, ...r }, c = {};
3572
+ c && (o = c.baseOptions);
3573
+ const s = { method: "GET", ...o, ...r }, l = {};
3563
3574
  V(t, {});
3564
3575
  let d = o && o.headers ? o.headers : {};
3565
- return s.headers = { ...c, ...d, ...r.headers }, {
3576
+ return s.headers = { ...l, ...d, ...r.headers }, {
3566
3577
  url: v(t),
3567
3578
  options: s
3568
3579
  };
3569
3580
  }
3570
3581
  };
3571
- }, f = function(l) {
3572
- const n = ze(l);
3582
+ }, f = function(c) {
3583
+ const n = ze(c);
3573
3584
  return {
3574
3585
  /**
3575
3586
  * 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 +3589,8 @@ const ze = function(l) {
3578
3589
  * @throws {RequiredError}
3579
3590
  */
3580
3591
  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);
3592
+ const r = await n.getWatchStatus(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
3593
+ return (o, s) => O(r, m, g, c)(o, t || s);
3583
3594
  },
3584
3595
  /**
3585
3596
  * 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 +3600,8 @@ const ze = function(l) {
3589
3600
  * @throws {RequiredError}
3590
3601
  */
3591
3602
  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);
3603
+ const a = await n.startWatching(e, r), t = c?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
3604
+ return (s, l) => O(a, m, g, c)(s, o || l);
3594
3605
  },
3595
3606
  /**
3596
3607
  * 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 +3610,8 @@ const ze = function(l) {
3599
3610
  * @throws {RequiredError}
3600
3611
  */
3601
3612
  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);
3613
+ const r = await n.stopWatching(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[a]?.url;
3614
+ return (o, s) => O(r, m, g, c)(o, t || s);
3604
3615
  },
3605
3616
  /**
3606
3617
  * 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 +3622,12 @@ const ze = function(l) {
3611
3622
  * @throws {RequiredError}
3612
3623
  */
3613
3624
  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);
3625
+ const t = await n.streamPackageEvents(e, r, a), o = c?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3626
+ return (l, i) => O(t, m, g, c)(l, s || i);
3616
3627
  }
3617
3628
  };
3618
- }, pt = function(l, n, e) {
3619
- const r = f(l);
3629
+ }, pt = function(c, n, e) {
3630
+ const r = f(c);
3620
3631
  return {
3621
3632
  /**
3622
3633
  * 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.
@@ -3803,15 +3814,15 @@ const je = new se({
3803
3814
  function He() {
3804
3815
  if (!(typeof window > "u"))
3805
3816
  try {
3806
- const l = window.localStorage.getItem(L);
3807
- if (l === "light" || l === "dark" || l === "auto") return l;
3817
+ const c = window.localStorage.getItem(L);
3818
+ if (c === "light" || c === "dark" || c === "auto") return c;
3808
3819
  } catch {
3809
3820
  }
3810
3821
  }
3811
- function _e(l) {
3822
+ function _e(c) {
3812
3823
  if (!(typeof window > "u"))
3813
3824
  try {
3814
- l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
3825
+ c === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, c);
3815
3826
  } catch {
3816
3827
  }
3817
3828
  }
@@ -3819,9 +3830,9 @@ function We() {
3819
3830
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3820
3831
  }
3821
3832
  m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3822
- const ae = G(void 0), Ge = (l, n) => {
3833
+ const ae = G(void 0), Ge = (c, n) => {
3823
3834
  const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = m.create({
3824
- baseURL: l || e,
3835
+ baseURL: c || e,
3825
3836
  withCredentials: !0,
3826
3837
  timeout: 6e5
3827
3838
  });
@@ -3847,8 +3858,8 @@ const ae = G(void 0), Ge = (l, n) => {
3847
3858
  ),
3848
3859
  watchMode: new De(a, e, r)
3849
3860
  };
3850
- }, mt = (l) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3851
- children: l,
3861
+ }, mt = (c) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...c }) }), Ye = ({
3862
+ children: c,
3852
3863
  getAccessToken: n,
3853
3864
  baseURL: e,
3854
3865
  mutable: r,
@@ -3862,9 +3873,9 @@ const ae = G(void 0), Ge = (l, n) => {
3862
3873
  queryFn: async () => (await t.publisher.getStatus()).data
3863
3874
  });
3864
3875
  s.error && console.error("Failed to fetch publisher status:", s.error);
3865
- const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
3876
+ const l = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
3866
3877
  let p;
3867
- s.isLoading || s.error ? p = r : c ? p = !1 : p = r ?? !0;
3878
+ s.isLoading || s.error ? p = r : l ? p = !1 : p = r ?? !0;
3868
3879
  const u = B(
3869
3880
  () => [i, a],
3870
3881
  [i, a]
@@ -3901,14 +3912,14 @@ const ae = G(void 0), Ge = (l, n) => {
3901
3912
  userChoice: q,
3902
3913
  setMode: te,
3903
3914
  allowUserToggle: j,
3904
- children: l
3915
+ children: c
3905
3916
  }
3906
3917
  ) });
3907
3918
  }, ut = () => {
3908
- const l = Y(ae);
3909
- if (l === void 0)
3919
+ const c = Y(ae);
3920
+ if (c === void 0)
3910
3921
  throw new Error("useServer must be used within a ServerProvider");
3911
- return l;
3922
+ return c;
3912
3923
  };
3913
3924
  export {
3914
3925
  Ce as $,