@malloy-publisher/sdk 0.14.0 → 0.15.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 (28) hide show
  1. package/dist/{RenderedResult-C9PiHrGC.cjs.js → RenderedResult-B2VzqpJV.cjs.js} +1 -1
  2. package/dist/{RenderedResult-D0kAzSrP.es.js → RenderedResult-Ct3z543g.es.js} +9 -9
  3. package/dist/{ServerProvider-BHM9y5l0.es.js → ServerProvider-Be9eusDF.es.js} +1066 -989
  4. package/dist/ServerProvider-DDr5VOVF.cjs.js +1 -0
  5. package/dist/builder/index.cjs.js +1 -1
  6. package/dist/builder/index.es.js +335 -335
  7. package/dist/client/api.d.ts +245 -73
  8. package/dist/client/index.cjs.js +1 -1
  9. package/dist/client/index.es.js +110 -104
  10. package/dist/components/Materializations/DeleteMaterializationDialog.d.ts +1 -1
  11. package/dist/components/Materializations/MaterializationRunsList.d.ts +1 -1
  12. package/dist/components/Materializations/utils.d.ts +7 -4
  13. package/dist/components/Package/PackageProblems.d.ts +6 -0
  14. package/dist/index.cjs.js +38 -38
  15. package/dist/index.es.js +6176 -6665
  16. package/dist/{useCompiledDocument-Co-INO6B.cjs.js → useCompiledDocument-CQG6VO-x.cjs.js} +20 -20
  17. package/dist/{useCompiledDocument-CF5s0cXj.es.js → useCompiledDocument-CuSAYHX_.es.js} +56 -60
  18. package/package.json +1 -1
  19. package/src/components/Materializations/DeleteMaterializationDialog.tsx +5 -16
  20. package/src/components/Materializations/MaterializationRunsList.tsx +3 -5
  21. package/src/components/Materializations/Materializations.tsx +3 -13
  22. package/src/components/Materializations/Materializations.versions.spec.tsx +6 -3
  23. package/src/components/Materializations/TriggerLabel.tsx +2 -2
  24. package/src/components/Materializations/utils.spec.ts +6 -1
  25. package/src/components/Materializations/utils.ts +11 -5
  26. package/src/components/Package/PackageProblems.spec.tsx +25 -1
  27. package/src/components/Package/PackageProblems.tsx +30 -12
  28. package/dist/ServerProvider-D97_rUv5.cjs.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as Q } from "react/jsx-runtime";
2
2
  import { QueryClient as ye, QueryClientProvider as Ce, useQuery as Ie } from "@tanstack/react-query";
3
3
  import u from "axios";
4
- import { useContext as le, useMemo as B, createContext as ie, useState as oe, useEffect as xe, useCallback as Re } from "react";
4
+ import { useContext as le, useMemo as B, createContext as ce, useState as oe, useEffect as Re, useCallback as xe } from "react";
5
5
  import { styled as j, Card as Ne, CardContent as Ue, CardMedia as Te } from "@mui/material";
6
6
  const se = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", U = {
7
7
  radius: { control: "6px", tile: "8px", menu: "10px", dialog: "12px" },
@@ -35,7 +35,7 @@ function Ee(l) {
35
35
  shadow: { ...U.shadow, ...l.shadow }
36
36
  };
37
37
  }
38
- const x = {
38
+ const R = {
39
39
  blue: "#2563eb",
40
40
  indigo: "#4f46e5",
41
41
  violet: "#7c3aed",
@@ -49,9 +49,9 @@ const x = {
49
49
  cyan: "#0e7490",
50
50
  slate: "#475569"
51
51
  }, Ma = {
52
- environment: x.emerald,
53
- package: x.teal,
54
- connection: x.orange
52
+ environment: R.emerald,
53
+ package: R.teal,
54
+ connection: R.orange
55
55
  }, Fa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ba = j(Ne)({
56
56
  display: "flex",
57
57
  flexDirection: "column",
@@ -76,13 +76,13 @@ const x = {
76
76
  marginBottom: "0"
77
77
  }), Qa = j("div")({
78
78
  height: "100%"
79
- }), qa = j("div")({
79
+ }), _a = j("div")({
80
80
  height: "75vh",
81
81
  width: "100%",
82
82
  overflowY: "auto"
83
83
  }), fe = {
84
84
  light: {
85
- accent: x.blue,
85
+ accent: R.blue,
86
86
  accentHover: "#1d4ed8",
87
87
  accentContrast: "#ffffff"
88
88
  },
@@ -105,46 +105,46 @@ const x = {
105
105
  return t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4;
106
106
  });
107
107
  return 0.2126 * r + 0.7152 * a + 0.0722 * n;
108
- }, q = (l, r) => {
108
+ }, _ = (l, r) => {
109
109
  const [a, n] = [K(l), K(r)].sort((e, t) => t - e);
110
110
  return (a + 0.05) / (n + 0.05);
111
111
  };
112
- function za(l, r) {
112
+ function qa(l, r) {
113
113
  const a = E(l), n = E(r);
114
- return a && n ? q(a, n) : void 0;
114
+ return a && n ? _(a, n) : void 0;
115
115
  }
116
116
  const Fe = [15, 23, 42];
117
117
  function $(l, r, a = Me) {
118
118
  const n = E(l), e = E(r);
119
- if (!n || !e || q(n, e) >= a) return l;
119
+ if (!n || !e || _(n, e) >= a) return l;
120
120
  const t = K(e) < 0.5 ? 255 : 0;
121
121
  for (let s = 0.05; s < 1; s += 0.05) {
122
122
  const o = E(W(n, t, s));
123
- if (o && q(o, e) >= a) return pe(o);
123
+ if (o && _(o, e) >= a) return pe(o);
124
124
  }
125
125
  return t === 255 ? "#ffffff" : "#000000";
126
126
  }
127
- function ce(l, r, a = we[r]) {
127
+ function ie(l, r, a = we[r]) {
128
128
  const n = fe[r];
129
- if (!l || l.toLowerCase() === x.blue) return n;
129
+ if (!l || l.toLowerCase() === R.blue) return n;
130
130
  if (!E(l))
131
131
  return r === "light" ? { ...n, accent: l, accentHover: l } : n;
132
- const e = $(l, a), t = E(e), s = r === "dark" ? W(t, 255, 0.25) : W(t, 0, 0.2), o = q(t, [255, 255, 255]), c = q(t, Fe);
132
+ const e = $(l, a), t = E(e), s = r === "dark" ? W(t, 255, 0.25) : W(t, 0, 0.2), o = _(t, [255, 255, 255]), i = _(t, Fe);
133
133
  return {
134
134
  accent: e,
135
135
  accentHover: s,
136
- accentContrast: o >= c ? "#ffffff" : "#0f172a"
136
+ accentContrast: o >= i ? "#ffffff" : "#0f172a"
137
137
  };
138
138
  }
139
139
  const Be = [
140
- x.blue,
141
- x.orange,
142
- x.emerald,
143
- x.pink,
144
- x.violet,
145
- x.amber,
146
- x.cyan,
147
- x.lime
140
+ R.blue,
141
+ R.orange,
142
+ R.emerald,
143
+ R.pink,
144
+ R.violet,
145
+ R.amber,
146
+ R.cyan,
147
+ R.lime
148
148
  ], je = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", Y = {
149
149
  defaultMode: "light",
150
150
  allowUserToggle: !0,
@@ -196,8 +196,8 @@ const Be = [
196
196
  // pairs this with a near-neutral low end. Matches the first series
197
197
  // colour, so a map and a chart on one page ramp to the same hue.
198
198
  mapColor: {
199
- light: x.blue,
200
- dark: x.blue
199
+ light: R.blue,
200
+ dark: R.blue
201
201
  },
202
202
  // Table gridlines and row rules: a hairline, because a table has dozens
203
203
  // of them and they only have to separate rows.
@@ -259,7 +259,7 @@ function de(l, r) {
259
259
  size: 12
260
260
  };
261
261
  let e = [...a.series ?? []], t = !1, s = n.family ?? "sans-serif", o = n.size ?? 12;
262
- const c = {
262
+ const i = {
263
263
  background: { ...a.background ?? {} },
264
264
  tableHeader: { ...a.tableHeader ?? {} },
265
265
  tableHeaderBackground: {
@@ -275,7 +275,7 @@ function de(l, r) {
275
275
  gridline: { ...a.gridline ?? {} },
276
276
  chartText: { ...a.chartText ?? {} },
277
277
  value: { ...a.value ?? {} }
278
- }, i = {
278
+ }, c = {
279
279
  light: /* @__PURE__ */ new Set(),
280
280
  dark: /* @__PURE__ */ new Set()
281
281
  };
@@ -284,11 +284,11 @@ function de(l, r) {
284
284
  Array.isArray(O.palette?.series) && (e = [...O.palette.series], t = !0);
285
285
  for (const y of De) {
286
286
  const N = O.palette?.[y];
287
- N && (c[y] = { ...c[y], ...N }, N.light !== void 0 && i.light.add(y), N.dark !== void 0 && i.dark.add(y));
287
+ N && (i[y] = { ...i[y], ...N }, N.light !== void 0 && c.light.add(y), N.dark !== void 0 && c.dark.add(y));
288
288
  }
289
289
  typeof O.font?.family == "string" && (s = O.font.family), typeof O.font?.size == "number" && (o = O.font.size);
290
290
  }
291
- const p = r === "dark", d = (O) => c[O][r] ?? a[O]?.[r], h = d("background"), k = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? $(c.mapColor.light, h) : d("mapColor");
291
+ const p = r === "dark", d = (O) => i[O][r] ?? a[O]?.[r], h = d("background"), k = p && c.light.has("mapColor") && !c.dark.has("mapColor") ? $(i.mapColor.light, h) : d("mapColor");
292
292
  return {
293
293
  mode: r,
294
294
  // The host's chrome tokens are laid over this by `ThemeProvider`.
@@ -297,7 +297,7 @@ function de(l, r) {
297
297
  // an operator's colour too dark to see on the canvas is lifted until it
298
298
  // reads. The defaults are drawn as they always were.
299
299
  series: p && t ? e.map((O) => $(O, h)) : e,
300
- ...ce(e[0], r, h),
300
+ ...ie(e[0], r, h),
301
301
  font: { family: s, size: o },
302
302
  background: h,
303
303
  tableHeader: d("tableHeader"),
@@ -345,31 +345,31 @@ function de(l, r) {
345
345
  // contrast on the slate panel.
346
346
  // The Console's default accent, not the palette's: a drill reads as a
347
347
  // link whatever the operator picked for the data.
348
- drillLink: ce(void 0, r).accent
348
+ drillLink: ie(void 0, r).accent
349
349
  };
350
350
  }
351
- function Ha(l, r) {
351
+ function za(l, r) {
352
352
  const a = r.palette?.series;
353
353
  if (!Array.isArray(a) || a.length !== 1) return r;
354
354
  const n = a[0], e = l.reduce(
355
- (i, p) => Array.isArray(p?.palette?.series) ? p.palette.series : i,
355
+ (c, p) => Array.isArray(p?.palette?.series) ? p.palette.series : c,
356
356
  Y.palette?.series ?? []
357
- ), t = (i) => i.toLowerCase() === n.toLowerCase(), [s, ...o] = e, c = o.length > 0 ? o.map((i) => t(i) ? s : i) : (
357
+ ), t = (c) => c.toLowerCase() === n.toLowerCase(), [s, ...o] = e, i = o.length > 0 ? o.map((c) => t(c) ? s : c) : (
358
358
  // A one-colour host palette has no second slot, so its one colour is the second series.
359
359
  [s].filter(
360
- (i) => i !== void 0 && !t(i)
360
+ (c) => c !== void 0 && !t(c)
361
361
  )
362
362
  );
363
363
  return {
364
364
  ...r,
365
- palette: { ...r.palette, series: [n, ...c] }
365
+ palette: { ...r.palette, series: [n, ...i] }
366
366
  };
367
367
  }
368
368
  function Le(l, r, a) {
369
369
  const n = r ?? l ?? "light";
370
370
  return n === "auto" ? a ? "dark" : "light" : n;
371
371
  }
372
- const me = ie(void 0);
372
+ const me = ce(void 0);
373
373
  function Qe({
374
374
  layers: l,
375
375
  mode: r,
@@ -379,20 +379,20 @@ function Qe({
379
379
  ui: t,
380
380
  children: s
381
381
  }) {
382
- const o = JSON.stringify(t ?? null), c = B(
382
+ const o = JSON.stringify(t ?? null), i = B(
383
383
  () => Ee(t),
384
384
  // eslint-disable-next-line react-hooks/exhaustive-deps
385
385
  [o]
386
- ), i = B(
387
- () => ({ ...de(l, r), ui: c }),
388
- [l, r, c]
386
+ ), c = B(
387
+ () => ({ ...de(l, r), ui: i }),
388
+ [l, r, i]
389
389
  ), p = B(
390
- () => ({ theme: i, layers: l, mode: r, userChoice: a, setMode: n, allowUserToggle: e }),
391
- [i, l, r, a, n, e]
390
+ () => ({ theme: c, layers: l, mode: r, userChoice: a, setMode: n, allowUserToggle: e }),
391
+ [c, l, r, a, n, e]
392
392
  );
393
393
  return /* @__PURE__ */ Q(me.Provider, { value: p, children: s });
394
394
  }
395
- function _a() {
395
+ function Ha() {
396
396
  const l = le(me);
397
397
  return l || {
398
398
  theme: de([], "light"),
@@ -411,14 +411,14 @@ class I {
411
411
  }
412
412
  configuration;
413
413
  }
414
- class qe extends Error {
414
+ class _e extends Error {
415
415
  constructor(r, a) {
416
416
  super(a), this.field = r, this.name = "RequiredError";
417
417
  }
418
418
  }
419
- const P = {}, V = "https://example.com", m = function(l, r, a) {
419
+ const P = {}, b = "https://example.com", m = function(l, r, a) {
420
420
  if (a == null)
421
- throw new qe(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
421
+ throw new _e(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
422
422
  };
423
423
  function J(l, r, a = "") {
424
424
  r != null && (typeof r == "object" ? Array.isArray(r) || r instanceof Set ? r.forEach((n) => J(l, n, a)) : Object.keys(r).forEach(
@@ -428,12 +428,12 @@ function J(l, r, a = "") {
428
428
  const v = function(l, ...r) {
429
429
  const a = new URLSearchParams(l.search);
430
430
  J(a, r), l.search = a.toString();
431
- }, ze = function(l, r) {
431
+ }, qe = function(l, r) {
432
432
  return r instanceof Set ? Array.from(r) : r;
433
433
  }, A = function(l, r, a) {
434
434
  const n = typeof l != "string";
435
- return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}, ze) : l || "";
436
- }, b = function(l) {
435
+ return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}, qe) : l || "";
436
+ }, V = function(l) {
437
437
  return l.pathname + l.search + l.hash;
438
438
  }, S = function(l, r, a, n) {
439
439
  return (e = r, t = a) => {
@@ -498,7 +498,7 @@ const v = function(l, ...r) {
498
498
  }, st = {
499
499
  Embedded: "embedded",
500
500
  Materialized: "materialized"
501
- }, ct = {
501
+ }, it = {
502
502
  Equal: "equal",
503
503
  In: "in",
504
504
  Like: "like",
@@ -508,7 +508,7 @@ const v = function(l, ...r) {
508
508
  Live: "live",
509
509
  StaleOk: "stale_ok",
510
510
  Fail: "fail"
511
- }, it = {
511
+ }, ct = {
512
512
  Select: "select",
513
513
  Multiselect: "multiselect"
514
514
  }, pt = {
@@ -521,6 +521,10 @@ const v = function(l, ...r) {
521
521
  Error: "error"
522
522
  }, mt = {
523
523
  Persist: "persist",
524
+ Materialize: "materialize",
525
+ View: "view",
526
+ Query: "query",
527
+ Rollup: "rollup",
524
528
  Preaggregate: "preaggregate"
525
529
  }, ht = {
526
530
  Reused: "reused",
@@ -534,42 +538,47 @@ const v = function(l, ...r) {
534
538
  Full: "full",
535
539
  None: "none"
536
540
  }, Pt = {
541
+ AuthorName: "author_name",
542
+ DestinationMissing: "destination_missing",
543
+ MayBeServed: "may_be_served"
544
+ }, bt = {
537
545
  Pending: "PENDING",
538
546
  ManifestRowsReady: "MANIFEST_ROWS_READY",
539
547
  ManifestFileReady: "MANIFEST_FILE_READY",
540
548
  Failed: "FAILED",
541
549
  Cancelled: "CANCELLED"
542
- }, Vt = {
550
+ }, vt = {
543
551
  Compile: "compile",
544
552
  Extraction: "extraction"
545
- }, vt = {
553
+ }, Vt = {
546
554
  Markdown: "markdown",
547
555
  Code: "code"
548
- }, bt = {
556
+ }, St = {
549
557
  Markdown: "markdown",
550
558
  Query: "query",
551
559
  Definition: "definition"
552
- }, St = {
560
+ }, kt = {
553
561
  Markdown: "markdown",
554
562
  Code: "code"
555
- }, kt = {
563
+ }, Ot = {
556
564
  Markdown: "markdown",
557
565
  Query: "query",
558
566
  Definition: "definition"
559
- }, Ot = {
567
+ }, At = {
560
568
  Archive: "archive",
561
569
  Unarchive: "unarchive"
562
- }, At = {
570
+ }, yt = {
563
571
  Version: "version",
564
572
  Package: "package"
565
- }, yt = {
573
+ }, Ct = {
566
574
  Declared: "declared",
567
575
  All: "all"
568
- }, Ct = {
576
+ }, It = {
569
577
  Unbound: "unbound",
570
578
  Bound: "bound",
579
+ BindFailed: "bind_failed",
571
580
  LiveFallback: "live_fallback"
572
- }, It = {
581
+ }, Rt = {
573
582
  Lexical: "lexical",
574
583
  Indexing: "indexing",
575
584
  Ready: "ready",
@@ -579,49 +588,56 @@ const v = function(l, ...r) {
579
588
  }, xt = {
580
589
  Cooldown: "cooldown",
581
590
  TooManyEntities: "too-many-entities"
582
- }, Rt = {
591
+ }, Nt = {
583
592
  Keyphrase: "keyphrase",
584
593
  SourceSummary: "source_summary"
585
- }, Nt = {
594
+ }, Ut = {
586
595
  Archive: "archive",
587
596
  Unarchive: "unarchive"
588
- }, Ut = {
597
+ }, Tt = {
589
598
  Unbound: "unbound",
590
599
  Bound: "bound",
600
+ BindFailed: "bind_failed",
591
601
  LiveFallback: "live_fallback"
592
- }, Tt = {
602
+ }, Et = {
593
603
  Archive: "archive",
594
604
  Unarchive: "unarchive"
595
- }, Et = {
605
+ }, ft = {
596
606
  Version: "version",
597
607
  Package: "package"
598
- }, ft = {
608
+ }, wt = {
599
609
  Declared: "declared",
600
610
  All: "all"
601
- }, wt = {
611
+ }, Mt = {
602
612
  Unbound: "unbound",
603
613
  Bound: "bound",
614
+ BindFailed: "bind_failed",
604
615
  LiveFallback: "live_fallback"
605
- }, Mt = {
616
+ }, Ft = {
606
617
  Archive: "archive",
607
618
  Unarchive: "unarchive"
608
- }, Ft = {
619
+ }, Bt = {
609
620
  Unbound: "unbound",
610
621
  Bound: "bound",
622
+ BindFailed: "bind_failed",
611
623
  LiveFallback: "live_fallback"
612
- }, Bt = {
613
- Archive: "archive",
614
- Unarchive: "unarchive"
615
624
  }, jt = {
616
625
  Archive: "archive",
617
626
  Unarchive: "unarchive"
618
627
  }, Dt = {
628
+ Archive: "archive",
629
+ Unarchive: "unarchive"
630
+ }, Lt = {
619
631
  Error: "error",
620
632
  Warn: "warn"
621
- }, Lt = {
633
+ }, Qt = {
622
634
  Persist: "persist",
635
+ Materialize: "materialize",
636
+ View: "view",
637
+ Query: "query",
638
+ Rollup: "rollup",
623
639
  Preaggregate: "preaggregate"
624
- }, Qt = {
640
+ }, _t = {
625
641
  Disable: "disable",
626
642
  NoVerify: "no-verify",
627
643
  VerifyCa: "verify-ca",
@@ -632,34 +648,63 @@ const v = function(l, ...r) {
632
648
  Index: "index",
633
649
  Ops: "ops"
634
650
  }, zt = {
651
+ Persist: "persist",
652
+ Materialize: "materialize",
653
+ View: "view",
654
+ Query: "query",
655
+ Rollup: "rollup"
656
+ }, Ht = {
635
657
  Used: "used",
636
658
  Skipped: "skipped"
637
- }, Ht = {
659
+ }, Gt = {
660
+ Persist: "persist",
661
+ Materialize: "materialize",
662
+ View: "view",
663
+ Query: "query",
664
+ Rollup: "rollup"
665
+ }, Wt = {
638
666
  Sibling: "sibling",
639
667
  Below: "below"
640
- }, _t = {
668
+ }, Kt = {
669
+ Persist: "persist",
670
+ Materialize: "materialize",
671
+ View: "view",
672
+ Query: "query",
673
+ Rollup: "rollup"
674
+ }, $t = {
675
+ Database: "database",
676
+ Storage: "storage"
677
+ }, Yt = {
641
678
  View: "view",
642
679
  Query: "query",
643
680
  Rollup: "rollup",
644
681
  Materialized: "materialized",
645
682
  Live: "live"
646
- }, Gt = {
683
+ }, Jt = {
647
684
  Query: "query",
648
685
  ServerDefault: "server_default"
649
- }, Wt = {
686
+ }, Zt = {
650
687
  Storage: "storage",
688
+ Database: "database",
651
689
  LiveFallback: "live_fallback"
652
- }, Kt = {
690
+ }, Xt = {
653
691
  Malloynb: "malloynb",
654
692
  Malloy: "malloy"
655
- }, $t = {
693
+ }, en = {
656
694
  Snapshot: "SNAPSHOT",
657
695
  Copy: "COPY"
658
- }, Yt = {
696
+ }, an = {
697
+ Persist: "persist",
698
+ Materialize: "materialize",
699
+ View: "view",
700
+ Query: "query",
701
+ Rollup: "rollup"
702
+ }, tn = {
659
703
  Storage: "storage",
660
- Colocated: "colocated",
661
- Preaggregate: "preaggregate"
662
- }, Jt = {
704
+ Database: "database",
705
+ Preaggregate: "preaggregate",
706
+ Colocated: "colocated"
707
+ }, nn = {
663
708
  FreeParameter: "free_parameter",
664
709
  Given: "given",
665
710
  GivenInPersistedQuery: "given_in_persisted_query",
@@ -676,70 +721,100 @@ const v = function(l, ...r) {
676
721
  NotDuckdbPortable: "not_duckdb_portable",
677
722
  PublicSurfaceUnknown: "public_surface_unknown",
678
723
  ReadOnlyDialect: "read_only_dialect",
724
+ ConnectionCannotHoldTable: "connection_cannot_hold_table",
679
725
  StorageSourceUnsupported: "storage_source_unsupported",
680
726
  EnvReference: "env_reference",
681
727
  RollupNameCollision: "rollup_name_collision",
682
728
  EmptyStorage: "empty_storage",
683
729
  TableNameCollision: "table_name_collision",
684
- CurrentTime: "current_time"
685
- }, Zt = {
730
+ CurrentTime: "current_time",
731
+ ReadsGiven: "reads_given",
732
+ IncrementalUnsupported: "incremental_unsupported",
733
+ MaterializationOff: "materialization_off",
734
+ MultiLineAnnotation: "multi_line_annotation",
735
+ BuildNameCollision: "build_name_collision",
736
+ RunTargetUnsupported: "run_target_unsupported",
737
+ NestedResult: "nested_result",
738
+ InheritedPersist: "inherited_persist",
739
+ InlineUnsupported: "inline_unsupported",
740
+ NoStoredColumns: "no_stored_columns",
741
+ NeedsQualifiedName: "needs_qualified_name",
742
+ GeneratedBuildFailed: "generated_build_failed",
743
+ HiddenField: "hidden_field",
744
+ AccessFilter: "access_filter",
745
+ TimeZone: "time_zone",
746
+ UnreadableMeasure: "unreadable_measure",
747
+ JoinNotInGrain: "join_not_in_grain",
748
+ PartialNameCollision: "partial_name_collision",
749
+ GivenWhereOverUnstoredField: "given_where_over_unstored_field",
750
+ UnreadableGrain: "unreadable_grain"
751
+ }, rn = {
686
752
  Grid: "grid",
687
753
  Linear: "linear"
688
- }, Xt = {
754
+ }, on = {
689
755
  Malloynb: "malloynb",
690
756
  Malloy: "malloy"
691
- }, en = {
757
+ }, sn = {
692
758
  Grid: "grid",
693
759
  Linear: "linear"
694
- }, an = {
760
+ }, ln = {
695
761
  Query: "query",
696
762
  Text: "text"
697
- }, tn = {
763
+ }, cn = {
698
764
  Publish: "publish",
699
765
  OnDemand: "on_demand",
700
766
  Scheduler: "scheduler"
701
- }, nn = {
767
+ }, pn = {
702
768
  Config: "config",
703
769
  CredentialChain: "credential_chain"
704
- }, rn = {
770
+ }, dn = {
705
771
  Initializing: "initializing",
706
772
  Serving: "serving",
707
773
  Draining: "draining",
708
774
  Throttled: "throttled"
709
- }, on = {
775
+ }, mn = {
710
776
  Off: "off",
711
777
  On: "on"
712
- }, sn = {
778
+ }, hn = {
713
779
  OnPublish: "on-publish",
714
780
  Explicit: "explicit"
715
- }, cn = {
781
+ }, un = {
716
782
  Explorer: "explorer",
717
783
  Viewer: "viewer"
718
- }, ln = {
784
+ }, gn = {
719
785
  Bundled: "bundled",
720
786
  Package: "package"
721
- }, pn = {
787
+ }, Pn = {
722
788
  Bundled: "bundled",
723
789
  Package: "package"
724
- }, dn = {
790
+ }, bn = {
725
791
  NotBuilt: "NOT_BUILT",
726
- Warned: "WARNED",
792
+ NotServed: "NOT_SERVED",
793
+ OptedOut: "OPTED_OUT",
727
794
  MissingField: "MISSING_FIELD",
728
- Contract: "CONTRACT",
795
+ ShapeMismatch: "SHAPE_MISMATCH",
796
+ RowLevelGate: "ROW_LEVEL_GATE",
729
797
  GrainTooCoarse: "GRAIN_TOO_COARSE",
730
798
  TimeZone: "TIME_ZONE",
731
799
  CrossConnection: "CROSS_CONNECTION",
732
800
  CountSemantics: "COUNT_SEMANTICS",
733
801
  Stale: "STALE",
802
+ ReadFailed: "READ_FAILED",
803
+ Warned: "WARNED",
804
+ Contract: "CONTRACT",
734
805
  RunFailed: "RUN_FAILED"
735
- }, mn = {
806
+ }, vn = {
736
807
  Persist: "persist",
808
+ Materialize: "materialize",
809
+ View: "view",
810
+ Query: "query",
811
+ Rollup: "rollup",
737
812
  Preaggregate: "preaggregate"
738
- }, hn = {
813
+ }, Vn = {
739
814
  Light: "light",
740
815
  Dark: "dark",
741
816
  Auto: "auto"
742
- }, He = function(l) {
817
+ }, ze = function(l) {
743
818
  return {
744
819
  /**
745
820
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
@@ -754,14 +829,14 @@ const v = function(l, ...r) {
754
829
  */
755
830
  getAgent: async (r, a, n, e, t, s = {}) => {
756
831
  m("getAgent", "environmentName", r), m("getAgent", "packageName", a), m("getAgent", "agentName", n);
757
- const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))), c = new URL(o, V);
758
- let i;
759
- l && (i = l.baseOptions);
760
- const p = { method: "GET", ...i, ...s }, d = {}, h = {};
761
- e !== void 0 && (h.skills = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(c, h);
762
- let k = i && i.headers ? i.headers : {};
832
+ const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))), i = new URL(o, b);
833
+ let c;
834
+ l && (c = l.baseOptions);
835
+ const p = { method: "GET", ...c, ...s }, d = {}, h = {};
836
+ e !== void 0 && (h.skills = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
837
+ let k = c && c.headers ? c.headers : {};
763
838
  return p.headers = { ...d, ...k, ...s.headers }, {
764
- url: b(c),
839
+ url: V(i),
765
840
  options: p
766
841
  };
767
842
  },
@@ -778,14 +853,14 @@ const v = function(l, ...r) {
778
853
  */
779
854
  getAgentSkillFile: async (r, a, n, e, t, s = {}) => {
780
855
  m("getAgentSkillFile", "environmentName", r), m("getAgentSkillFile", "packageName", a), m("getAgentSkillFile", "agentName", n), m("getAgentSkillFile", "relativeFilepath", e);
781
- const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))).replace("{relativeFilepath}", encodeURIComponent(String(e))), c = new URL(o, V);
782
- let i;
783
- l && (i = l.baseOptions);
784
- const p = { method: "GET", ...i, ...s }, d = {}, h = {};
785
- t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(c, h);
786
- let k = i && i.headers ? i.headers : {};
856
+ const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))).replace("{relativeFilepath}", encodeURIComponent(String(e))), i = new URL(o, b);
857
+ let c;
858
+ l && (c = l.baseOptions);
859
+ const p = { method: "GET", ...c, ...s }, d = {}, h = {};
860
+ t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
861
+ let k = c && c.headers ? c.headers : {};
787
862
  return p.headers = { ...d, ...k, ...s.headers }, {
788
- url: b(c),
863
+ url: V(i),
789
864
  options: p
790
865
  };
791
866
  },
@@ -800,20 +875,20 @@ const v = function(l, ...r) {
800
875
  */
801
876
  listAgents: async (r, a, n, e = {}) => {
802
877
  m("listAgents", "environmentName", r), m("listAgents", "packageName", a);
803
- const t = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
878
+ const t = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
804
879
  let o;
805
880
  l && (o = l.baseOptions);
806
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
807
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
881
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
882
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
808
883
  let d = o && o.headers ? o.headers : {};
809
- return c.headers = { ...i, ...d, ...e.headers }, {
810
- url: b(s),
811
- options: c
884
+ return i.headers = { ...c, ...d, ...e.headers }, {
885
+ url: V(s),
886
+ options: i
812
887
  };
813
888
  }
814
889
  };
815
- }, z = function(l) {
816
- const r = He(l);
890
+ }, q = function(l) {
891
+ const r = ze(l);
817
892
  return {
818
893
  /**
819
894
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
@@ -827,8 +902,8 @@ const v = function(l, ...r) {
827
902
  * @throws {RequiredError}
828
903
  */
829
904
  async getAgent(a, n, e, t, s, o) {
830
- const c = await r.getAgent(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgent"]?.[i]?.url;
831
- return (d, h) => S(c, u, g, l)(d, p || h);
905
+ const i = await r.getAgent(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["AgentsApi.getAgent"]?.[c]?.url;
906
+ return (d, h) => S(i, u, g, l)(d, p || h);
832
907
  },
833
908
  /**
834
909
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. A `relative_filepath` from the agent\'s `assets` listing (`<skill>/assets/...`, full view only) is matched exactly against the listing, then read from disk as UTF-8 text and served only if it still hashes to its listed `sha256`; one that changed, or became a link, since the load is a 404. 404 when the agent or the file is not served.
@@ -842,8 +917,8 @@ const v = function(l, ...r) {
842
917
  * @throws {RequiredError}
843
918
  */
844
919
  async getAgentSkillFile(a, n, e, t, s, o) {
845
- const c = await r.getAgentSkillFile(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgentSkillFile"]?.[i]?.url;
846
- return (d, h) => S(c, u, g, l)(d, p || h);
920
+ const i = await r.getAgentSkillFile(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["AgentsApi.getAgentSkillFile"]?.[c]?.url;
921
+ return (d, h) => S(i, u, g, l)(d, p || h);
847
922
  },
848
923
  /**
849
924
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
@@ -855,12 +930,12 @@ const v = function(l, ...r) {
855
930
  * @throws {RequiredError}
856
931
  */
857
932
  async listAgents(a, n, e, t) {
858
- const s = await r.listAgents(a, n, e, t), o = l?.serverIndex ?? 0, c = P["AgentsApi.listAgents"]?.[o]?.url;
859
- return (i, p) => S(s, u, g, l)(i, c || p);
933
+ const s = await r.listAgents(a, n, e, t), o = l?.serverIndex ?? 0, i = P["AgentsApi.listAgents"]?.[o]?.url;
934
+ return (c, p) => S(s, u, g, l)(c, i || p);
860
935
  }
861
936
  };
862
- }, un = function(l, r, a) {
863
- const n = z(l);
937
+ }, Sn = function(l, r, a) {
938
+ const n = q(l);
864
939
  return {
865
940
  /**
866
941
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
@@ -873,8 +948,8 @@ const v = function(l, ...r) {
873
948
  * @param {*} [options] Override http request option.
874
949
  * @throws {RequiredError}
875
950
  */
876
- getAgent(e, t, s, o, c, i) {
877
- return n.getAgent(e, t, s, o, c, i).then((p) => p(a, r));
951
+ getAgent(e, t, s, o, i, c) {
952
+ return n.getAgent(e, t, s, o, i, c).then((p) => p(a, r));
878
953
  },
879
954
  /**
880
955
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. A `relative_filepath` from the agent\'s `assets` listing (`<skill>/assets/...`, full view only) is matched exactly against the listing, then read from disk as UTF-8 text and served only if it still hashes to its listed `sha256`; one that changed, or became a link, since the load is a 404. 404 when the agent or the file is not served.
@@ -887,8 +962,8 @@ const v = function(l, ...r) {
887
962
  * @param {*} [options] Override http request option.
888
963
  * @throws {RequiredError}
889
964
  */
890
- getAgentSkillFile(e, t, s, o, c, i) {
891
- return n.getAgentSkillFile(e, t, s, o, c, i).then((p) => p(a, r));
965
+ getAgentSkillFile(e, t, s, o, i, c) {
966
+ return n.getAgentSkillFile(e, t, s, o, i, c).then((p) => p(a, r));
892
967
  },
893
968
  /**
894
969
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
@@ -900,11 +975,11 @@ const v = function(l, ...r) {
900
975
  * @throws {RequiredError}
901
976
  */
902
977
  listAgents(e, t, s, o) {
903
- return n.listAgents(e, t, s, o).then((c) => c(a, r));
978
+ return n.listAgents(e, t, s, o).then((i) => i(a, r));
904
979
  }
905
980
  };
906
981
  };
907
- class _e extends I {
982
+ class He extends I {
908
983
  /**
909
984
  * Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
910
985
  * @summary Get one agent, resolved
@@ -917,7 +992,7 @@ class _e extends I {
917
992
  * @throws {RequiredError}
918
993
  */
919
994
  getAgent(r, a, n, e, t, s) {
920
- return z(this.configuration).getAgent(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
995
+ return q(this.configuration).getAgent(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
921
996
  }
922
997
  /**
923
998
  * Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. A `relative_filepath` from the agent\'s `assets` listing (`<skill>/assets/...`, full view only) is matched exactly against the listing, then read from disk as UTF-8 text and served only if it still hashes to its listed `sha256`; one that changed, or became a link, since the load is a 404. 404 when the agent or the file is not served.
@@ -931,7 +1006,7 @@ class _e extends I {
931
1006
  * @throws {RequiredError}
932
1007
  */
933
1008
  getAgentSkillFile(r, a, n, e, t, s) {
934
- return z(this.configuration).getAgentSkillFile(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
1009
+ return q(this.configuration).getAgentSkillFile(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
935
1010
  }
936
1011
  /**
937
1012
  * Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
@@ -943,10 +1018,10 @@ class _e extends I {
943
1018
  * @throws {RequiredError}
944
1019
  */
945
1020
  listAgents(r, a, n, e) {
946
- return z(this.configuration).listAgents(r, a, n, e).then((t) => t(this.axios, this.basePath));
1021
+ return q(this.configuration).listAgents(r, a, n, e).then((t) => t(this.axios, this.basePath));
947
1022
  }
948
1023
  }
949
- const gn = {
1024
+ const kn = {
950
1025
  Full: "full",
951
1026
  Summary: "summary"
952
1027
  }, Ge = function(l) {
@@ -962,15 +1037,15 @@ const gn = {
962
1037
  */
963
1038
  createConnection: async (r, a, n, e = {}) => {
964
1039
  m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", n);
965
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
1040
+ const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
966
1041
  let o;
967
1042
  l && (o = l.baseOptions);
968
- const c = { method: "POST", ...o, ...e }, i = {}, p = {};
969
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1043
+ const i = { method: "POST", ...o, ...e }, c = {}, p = {};
1044
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
970
1045
  let d = o && o.headers ? o.headers : {};
971
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
972
- url: b(s),
973
- options: c
1046
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
1047
+ url: V(s),
1048
+ options: i
974
1049
  };
975
1050
  },
976
1051
  /**
@@ -983,14 +1058,14 @@ const gn = {
983
1058
  */
984
1059
  deleteConnection: async (r, a, n = {}) => {
985
1060
  m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", a);
986
- const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
1061
+ const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, b);
987
1062
  let s;
988
1063
  l && (s = l.baseOptions);
989
- const o = { method: "DELETE", ...s, ...n }, c = {}, i = {};
990
- c.Accept = "application/json", v(t, i);
1064
+ const o = { method: "DELETE", ...s, ...n }, i = {}, c = {};
1065
+ i.Accept = "application/json", v(t, c);
991
1066
  let p = s && s.headers ? s.headers : {};
992
- return o.headers = { ...c, ...p, ...n.headers }, {
993
- url: b(t),
1067
+ return o.headers = { ...i, ...p, ...n.headers }, {
1068
+ url: V(t),
994
1069
  options: o
995
1070
  };
996
1071
  },
@@ -1004,14 +1079,14 @@ const gn = {
1004
1079
  */
1005
1080
  getConnection: async (r, a, n = {}) => {
1006
1081
  m("getConnection", "environmentName", r), m("getConnection", "connectionName", a);
1007
- const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
1082
+ const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, b);
1008
1083
  let s;
1009
1084
  l && (s = l.baseOptions);
1010
- const o = { method: "GET", ...s, ...n }, c = {}, i = {};
1011
- c.Accept = "application/json", v(t, i);
1085
+ const o = { method: "GET", ...s, ...n }, i = {}, c = {};
1086
+ i.Accept = "application/json", v(t, c);
1012
1087
  let p = s && s.headers ? s.headers : {};
1013
- return o.headers = { ...c, ...p, ...n.headers }, {
1014
- url: b(t),
1088
+ return o.headers = { ...i, ...p, ...n.headers }, {
1089
+ url: V(t),
1015
1090
  options: o
1016
1091
  };
1017
1092
  },
@@ -1027,15 +1102,15 @@ const gn = {
1027
1102
  */
1028
1103
  getTable: async (r, a, n, e, t = {}) => {
1029
1104
  m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", n), m("getTable", "tablePath", e);
1030
- const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), o = new URL(s, V);
1031
- let c;
1032
- l && (c = l.baseOptions);
1033
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
1105
+ const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), o = new URL(s, b);
1106
+ let i;
1107
+ l && (i = l.baseOptions);
1108
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
1034
1109
  p.Accept = "application/json", v(o, d);
1035
- let h = c && c.headers ? c.headers : {};
1036
- return i.headers = { ...p, ...h, ...t.headers }, {
1037
- url: b(o),
1038
- options: i
1110
+ let h = i && i.headers ? i.headers : {};
1111
+ return c.headers = { ...p, ...h, ...t.headers }, {
1112
+ url: V(o),
1113
+ options: c
1039
1114
  };
1040
1115
  },
1041
1116
  /**
@@ -1052,14 +1127,14 @@ const gn = {
1052
1127
  */
1053
1128
  getTableInPackage: async (r, a, n, e, t, s, o = {}) => {
1054
1129
  m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", n), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", t);
1055
- const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), i = new URL(c, V);
1130
+ const i = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(i, b);
1056
1131
  let p;
1057
1132
  l && (p = l.baseOptions);
1058
1133
  const d = { method: "GET", ...p, ...o }, h = {}, k = {};
1059
- s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(i, k);
1134
+ s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(c, k);
1060
1135
  let O = p && p.headers ? p.headers : {};
1061
1136
  return d.headers = { ...h, ...O, ...o.headers }, {
1062
- url: b(i),
1137
+ url: V(c),
1063
1138
  options: d
1064
1139
  };
1065
1140
  },
@@ -1072,14 +1147,14 @@ const gn = {
1072
1147
  */
1073
1148
  listConnections: async (r, a = {}) => {
1074
1149
  m("listConnections", "environmentName", r);
1075
- const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
1150
+ const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, b);
1076
1151
  let t;
1077
1152
  l && (t = l.baseOptions);
1078
- const s = { method: "GET", ...t, ...a }, o = {}, c = {};
1079
- o.Accept = "application/json", v(e, c);
1080
- let i = t && t.headers ? t.headers : {};
1081
- return s.headers = { ...o, ...i, ...a.headers }, {
1082
- url: b(e),
1153
+ const s = { method: "GET", ...t, ...a }, o = {}, i = {};
1154
+ o.Accept = "application/json", v(e, i);
1155
+ let c = t && t.headers ? t.headers : {};
1156
+ return s.headers = { ...o, ...c, ...a.headers }, {
1157
+ url: V(e),
1083
1158
  options: s
1084
1159
  };
1085
1160
  },
@@ -1093,14 +1168,14 @@ const gn = {
1093
1168
  */
1094
1169
  listSchemas: async (r, a, n = {}) => {
1095
1170
  m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", a);
1096
- const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
1171
+ const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, b);
1097
1172
  let s;
1098
1173
  l && (s = l.baseOptions);
1099
- const o = { method: "GET", ...s, ...n }, c = {}, i = {};
1100
- c.Accept = "application/json", v(t, i);
1174
+ const o = { method: "GET", ...s, ...n }, i = {}, c = {};
1175
+ i.Accept = "application/json", v(t, c);
1101
1176
  let p = s && s.headers ? s.headers : {};
1102
- return o.headers = { ...c, ...p, ...n.headers }, {
1103
- url: b(t),
1177
+ return o.headers = { ...i, ...p, ...n.headers }, {
1178
+ url: V(t),
1104
1179
  options: o
1105
1180
  };
1106
1181
  },
@@ -1116,15 +1191,15 @@ const gn = {
1116
1191
  */
1117
1192
  listSchemasInPackage: async (r, a, n, e, t = {}) => {
1118
1193
  m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", n);
1119
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(s, V);
1120
- let c;
1121
- l && (c = l.baseOptions);
1122
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
1194
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(s, b);
1195
+ let i;
1196
+ l && (i = l.baseOptions);
1197
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
1123
1198
  e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
1124
- let h = c && c.headers ? c.headers : {};
1125
- return i.headers = { ...p, ...h, ...t.headers }, {
1126
- url: b(o),
1127
- options: i
1199
+ let h = i && i.headers ? i.headers : {};
1200
+ return c.headers = { ...p, ...h, ...t.headers }, {
1201
+ url: V(o),
1202
+ options: c
1128
1203
  };
1129
1204
  },
1130
1205
  /**
@@ -1139,15 +1214,15 @@ const gn = {
1139
1214
  */
1140
1215
  listTables: async (r, a, n, e, t = {}) => {
1141
1216
  m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", n);
1142
- const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), o = new URL(s, V);
1143
- let c;
1144
- l && (c = l.baseOptions);
1145
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
1217
+ const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), o = new URL(s, b);
1218
+ let i;
1219
+ l && (i = l.baseOptions);
1220
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
1146
1221
  e && (d.tableNames = e), p.Accept = "application/json", v(o, d);
1147
- let h = c && c.headers ? c.headers : {};
1148
- return i.headers = { ...p, ...h, ...t.headers }, {
1149
- url: b(o),
1150
- options: i
1222
+ let h = i && i.headers ? i.headers : {};
1223
+ return c.headers = { ...p, ...h, ...t.headers }, {
1224
+ url: V(o),
1225
+ options: c
1151
1226
  };
1152
1227
  },
1153
1228
  /**
@@ -1164,14 +1239,14 @@ const gn = {
1164
1239
  */
1165
1240
  listTablesInPackage: async (r, a, n, e, t, s, o = {}) => {
1166
1241
  m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", n), m("listTablesInPackage", "schemaName", e);
1167
- const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))), i = new URL(c, V);
1242
+ const i = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(i, b);
1168
1243
  let p;
1169
1244
  l && (p = l.baseOptions);
1170
1245
  const d = { method: "GET", ...p, ...o }, h = {}, k = {};
1171
- t && (k.tableNames = t), s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(i, k);
1246
+ t && (k.tableNames = t), s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(c, k);
1172
1247
  let O = p && p.headers ? p.headers : {};
1173
1248
  return d.headers = { ...h, ...O, ...o.headers }, {
1174
- url: b(i),
1249
+ url: V(c),
1175
1250
  options: d
1176
1251
  };
1177
1252
  },
@@ -1186,15 +1261,15 @@ const gn = {
1186
1261
  */
1187
1262
  postQuerydata: async (r, a, n, e = {}) => {
1188
1263
  m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", n);
1189
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
1264
+ const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
1190
1265
  let o;
1191
1266
  l && (o = l.baseOptions);
1192
- const c = { method: "POST", ...o, ...e }, i = {}, p = {};
1193
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1267
+ const i = { method: "POST", ...o, ...e }, c = {}, p = {};
1268
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
1194
1269
  let d = o && o.headers ? o.headers : {};
1195
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
1196
- url: b(s),
1197
- options: c
1270
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
1271
+ url: V(s),
1272
+ options: i
1198
1273
  };
1199
1274
  },
1200
1275
  /**
@@ -1210,14 +1285,14 @@ const gn = {
1210
1285
  */
1211
1286
  postQuerydataInPackage: async (r, a, n, e, t, s = {}) => {
1212
1287
  m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", n), m("postQuerydataInPackage", "postQuerydataRequest", e);
1213
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(o, V);
1214
- let i;
1215
- l && (i = l.baseOptions);
1216
- const p = { method: "POST", ...i, ...s }, d = {}, h = {};
1217
- t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
1218
- let k = i && i.headers ? i.headers : {};
1288
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), i = new URL(o, b);
1289
+ let c;
1290
+ l && (c = l.baseOptions);
1291
+ const p = { method: "POST", ...c, ...s }, d = {}, h = {};
1292
+ t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
1293
+ let k = c && c.headers ? c.headers : {};
1219
1294
  return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
1220
- url: b(c),
1295
+ url: V(i),
1221
1296
  options: p
1222
1297
  };
1223
1298
  },
@@ -1232,15 +1307,15 @@ const gn = {
1232
1307
  */
1233
1308
  postSqlsource: async (r, a, n, e = {}) => {
1234
1309
  m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", n);
1235
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
1310
+ const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
1236
1311
  let o;
1237
1312
  l && (o = l.baseOptions);
1238
- const c = { method: "POST", ...o, ...e }, i = {}, p = {};
1239
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1313
+ const i = { method: "POST", ...o, ...e }, c = {}, p = {};
1314
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
1240
1315
  let d = o && o.headers ? o.headers : {};
1241
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
1242
- url: b(s),
1243
- options: c
1316
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
1317
+ url: V(s),
1318
+ options: i
1244
1319
  };
1245
1320
  },
1246
1321
  /**
@@ -1256,14 +1331,14 @@ const gn = {
1256
1331
  */
1257
1332
  postSqlsourceInPackage: async (r, a, n, e, t, s = {}) => {
1258
1333
  m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", n), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
1259
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(o, V);
1260
- let i;
1261
- l && (i = l.baseOptions);
1262
- const p = { method: "POST", ...i, ...s }, d = {}, h = {};
1263
- t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
1264
- let k = i && i.headers ? i.headers : {};
1334
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), i = new URL(o, b);
1335
+ let c;
1336
+ l && (c = l.baseOptions);
1337
+ const p = { method: "POST", ...c, ...s }, d = {}, h = {};
1338
+ t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
1339
+ let k = c && c.headers ? c.headers : {};
1265
1340
  return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
1266
- url: b(c),
1341
+ url: V(i),
1267
1342
  options: p
1268
1343
  };
1269
1344
  },
@@ -1278,15 +1353,15 @@ const gn = {
1278
1353
  */
1279
1354
  postTemporarytable: async (r, a, n, e = {}) => {
1280
1355
  m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", n);
1281
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
1356
+ const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
1282
1357
  let o;
1283
1358
  l && (o = l.baseOptions);
1284
- const c = { method: "POST", ...o, ...e }, i = {}, p = {};
1285
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1359
+ const i = { method: "POST", ...o, ...e }, c = {}, p = {};
1360
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
1286
1361
  let d = o && o.headers ? o.headers : {};
1287
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
1288
- url: b(s),
1289
- options: c
1362
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
1363
+ url: V(s),
1364
+ options: i
1290
1365
  };
1291
1366
  },
1292
1367
  /**
@@ -1302,14 +1377,14 @@ const gn = {
1302
1377
  */
1303
1378
  postTemporarytableInPackage: async (r, a, n, e, t, s = {}) => {
1304
1379
  m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", n), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
1305
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(o, V);
1306
- let i;
1307
- l && (i = l.baseOptions);
1308
- const p = { method: "POST", ...i, ...s }, d = {}, h = {};
1309
- t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
1310
- let k = i && i.headers ? i.headers : {};
1380
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), i = new URL(o, b);
1381
+ let c;
1382
+ l && (c = l.baseOptions);
1383
+ const p = { method: "POST", ...c, ...s }, d = {}, h = {};
1384
+ t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
1385
+ let k = c && c.headers ? c.headers : {};
1311
1386
  return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
1312
- url: b(c),
1387
+ url: V(i),
1313
1388
  options: p
1314
1389
  };
1315
1390
  },
@@ -1324,15 +1399,15 @@ const gn = {
1324
1399
  */
1325
1400
  updateConnection: async (r, a, n, e = {}) => {
1326
1401
  m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", n);
1327
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
1402
+ const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
1328
1403
  let o;
1329
1404
  l && (o = l.baseOptions);
1330
- const c = { method: "PATCH", ...o, ...e }, i = {}, p = {};
1331
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1405
+ const i = { method: "PATCH", ...o, ...e }, c = {}, p = {};
1406
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
1332
1407
  let d = o && o.headers ? o.headers : {};
1333
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
1334
- url: b(s),
1335
- options: c
1408
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
1409
+ url: V(s),
1410
+ options: i
1336
1411
  };
1337
1412
  }
1338
1413
  };
@@ -1349,8 +1424,8 @@ const gn = {
1349
1424
  * @throws {RequiredError}
1350
1425
  */
1351
1426
  async createConnection(a, n, e, t) {
1352
- const s = await r.createConnection(a, n, e, t), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[o]?.url;
1353
- return (i, p) => S(s, u, g, l)(i, c || p);
1427
+ const s = await r.createConnection(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.createConnection"]?.[o]?.url;
1428
+ return (c, p) => S(s, u, g, l)(c, i || p);
1354
1429
  },
1355
1430
  /**
1356
1431
  * Permanently deletes a database connection from the environment.
@@ -1362,7 +1437,7 @@ const gn = {
1362
1437
  */
1363
1438
  async deleteConnection(a, n, e) {
1364
1439
  const t = await r.deleteConnection(a, n, e), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.deleteConnection"]?.[s]?.url;
1365
- return (c, i) => S(t, u, g, l)(c, o || i);
1440
+ return (i, c) => S(t, u, g, l)(i, o || c);
1366
1441
  },
1367
1442
  /**
1368
1443
  * 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.
@@ -1374,7 +1449,7 @@ const gn = {
1374
1449
  */
1375
1450
  async getConnection(a, n, e) {
1376
1451
  const t = await r.getConnection(a, n, e), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.getConnection"]?.[s]?.url;
1377
- return (c, i) => S(t, u, g, l)(c, o || i);
1452
+ return (i, c) => S(t, u, g, l)(i, o || c);
1378
1453
  },
1379
1454
  /**
1380
1455
  * 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. On a DuckLake connection, a bare tablePath equal to schemaName reads the catalog\'s default schema.
@@ -1387,8 +1462,8 @@ const gn = {
1387
1462
  * @throws {RequiredError}
1388
1463
  */
1389
1464
  async getTable(a, n, e, t, s) {
1390
- const o = await r.getTable(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
1391
- return (p, d) => S(o, u, g, l)(p, i || d);
1465
+ const o = await r.getTable(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ConnectionsApi.getTable"]?.[i]?.url;
1466
+ return (p, d) => S(o, u, g, l)(p, c || d);
1392
1467
  },
1393
1468
  /**
1394
1469
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1402,9 +1477,9 @@ const gn = {
1402
1477
  * @param {*} [options] Override http request option.
1403
1478
  * @throws {RequiredError}
1404
1479
  */
1405
- async getTableInPackage(a, n, e, t, s, o, c) {
1406
- const i = await r.getTableInPackage(a, n, e, t, s, o, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[p]?.url;
1407
- return (h, k) => S(i, u, g, l)(h, d || k);
1480
+ async getTableInPackage(a, n, e, t, s, o, i) {
1481
+ const c = await r.getTableInPackage(a, n, e, t, s, o, i), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[p]?.url;
1482
+ return (h, k) => S(c, u, g, l)(h, d || k);
1408
1483
  },
1409
1484
  /**
1410
1485
  * 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.
@@ -1415,7 +1490,7 @@ const gn = {
1415
1490
  */
1416
1491
  async listConnections(a, n) {
1417
1492
  const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, s = P["ConnectionsApi.listConnections"]?.[t]?.url;
1418
- return (o, c) => S(e, u, g, l)(o, s || c);
1493
+ return (o, i) => S(e, u, g, l)(o, s || i);
1419
1494
  },
1420
1495
  /**
1421
1496
  * 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.
@@ -1427,7 +1502,7 @@ const gn = {
1427
1502
  */
1428
1503
  async listSchemas(a, n, e) {
1429
1504
  const t = await r.listSchemas(a, n, e), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.listSchemas"]?.[s]?.url;
1430
- return (c, i) => S(t, u, g, l)(c, o || i);
1505
+ return (i, c) => S(t, u, g, l)(i, o || c);
1431
1506
  },
1432
1507
  /**
1433
1508
  * 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).
@@ -1440,8 +1515,8 @@ const gn = {
1440
1515
  * @throws {RequiredError}
1441
1516
  */
1442
1517
  async listSchemasInPackage(a, n, e, t, s) {
1443
- const o = await r.listSchemasInPackage(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listSchemasInPackage"]?.[c]?.url;
1444
- return (p, d) => S(o, u, g, l)(p, i || d);
1518
+ const o = await r.listSchemasInPackage(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[i]?.url;
1519
+ return (p, d) => S(o, u, g, l)(p, c || d);
1445
1520
  },
1446
1521
  /**
1447
1522
  * 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.
@@ -1454,8 +1529,8 @@ const gn = {
1454
1529
  * @throws {RequiredError}
1455
1530
  */
1456
1531
  async listTables(a, n, e, t, s) {
1457
- const o = await r.listTables(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
1458
- return (p, d) => S(o, u, g, l)(p, i || d);
1532
+ const o = await r.listTables(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ConnectionsApi.listTables"]?.[i]?.url;
1533
+ return (p, d) => S(o, u, g, l)(p, c || d);
1459
1534
  },
1460
1535
  /**
1461
1536
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1469,9 +1544,9 @@ const gn = {
1469
1544
  * @param {*} [options] Override http request option.
1470
1545
  * @throws {RequiredError}
1471
1546
  */
1472
- async listTablesInPackage(a, n, e, t, s, o, c) {
1473
- const i = await r.listTablesInPackage(a, n, e, t, s, o, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[p]?.url;
1474
- return (h, k) => S(i, u, g, l)(h, d || k);
1547
+ async listTablesInPackage(a, n, e, t, s, o, i) {
1548
+ const c = await r.listTablesInPackage(a, n, e, t, s, o, i), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[p]?.url;
1549
+ return (h, k) => S(c, u, g, l)(h, d || k);
1475
1550
  },
1476
1551
  /**
1477
1552
  * 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.
@@ -1483,8 +1558,8 @@ const gn = {
1483
1558
  * @throws {RequiredError}
1484
1559
  */
1485
1560
  async postQuerydata(a, n, e, t) {
1486
- const s = await r.postQuerydata(a, n, e, t), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[o]?.url;
1487
- return (i, p) => S(s, u, g, l)(i, c || p);
1561
+ const s = await r.postQuerydata(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[o]?.url;
1562
+ return (c, p) => S(s, u, g, l)(c, i || p);
1488
1563
  },
1489
1564
  /**
1490
1565
  * 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.
@@ -1498,8 +1573,8 @@ const gn = {
1498
1573
  * @throws {RequiredError}
1499
1574
  */
1500
1575
  async postQuerydataInPackage(a, n, e, t, s, o) {
1501
- const c = await r.postQuerydataInPackage(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
1502
- return (d, h) => S(c, u, g, l)(d, p || h);
1576
+ const i = await r.postQuerydataInPackage(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
1577
+ return (d, h) => S(i, u, g, l)(d, p || h);
1503
1578
  },
1504
1579
  /**
1505
1580
  * 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.
@@ -1511,8 +1586,8 @@ const gn = {
1511
1586
  * @throws {RequiredError}
1512
1587
  */
1513
1588
  async postSqlsource(a, n, e, t) {
1514
- const s = await r.postSqlsource(a, n, e, t), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[o]?.url;
1515
- return (i, p) => S(s, u, g, l)(i, c || p);
1589
+ const s = await r.postSqlsource(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsource"]?.[o]?.url;
1590
+ return (c, p) => S(s, u, g, l)(c, i || p);
1516
1591
  },
1517
1592
  /**
1518
1593
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1526,8 +1601,8 @@ const gn = {
1526
1601
  * @throws {RequiredError}
1527
1602
  */
1528
1603
  async postSqlsourceInPackage(a, n, e, t, s, o) {
1529
- const c = await r.postSqlsourceInPackage(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postSqlsourceInPackage"]?.[i]?.url;
1530
- return (d, h) => S(c, u, g, l)(d, p || h);
1604
+ const i = await r.postSqlsourceInPackage(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
1605
+ return (d, h) => S(i, u, g, l)(d, p || h);
1531
1606
  },
1532
1607
  /**
1533
1608
  * 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.
@@ -1539,8 +1614,8 @@ const gn = {
1539
1614
  * @throws {RequiredError}
1540
1615
  */
1541
1616
  async postTemporarytable(a, n, e, t) {
1542
- const s = await r.postTemporarytable(a, n, e, t), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[o]?.url;
1543
- return (i, p) => S(s, u, g, l)(i, c || p);
1617
+ const s = await r.postTemporarytable(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytable"]?.[o]?.url;
1618
+ return (c, p) => S(s, u, g, l)(c, i || p);
1544
1619
  },
1545
1620
  /**
1546
1621
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1554,8 +1629,8 @@ const gn = {
1554
1629
  * @throws {RequiredError}
1555
1630
  */
1556
1631
  async postTemporarytableInPackage(a, n, e, t, s, o) {
1557
- const c = await r.postTemporarytableInPackage(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postTemporarytableInPackage"]?.[i]?.url;
1558
- return (d, h) => S(c, u, g, l)(d, p || h);
1632
+ const i = await r.postTemporarytableInPackage(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
1633
+ return (d, h) => S(i, u, g, l)(d, p || h);
1559
1634
  },
1560
1635
  /**
1561
1636
  * Updates the configuration of an existing database connection.
@@ -1567,11 +1642,11 @@ const gn = {
1567
1642
  * @throws {RequiredError}
1568
1643
  */
1569
1644
  async updateConnection(a, n, e, t) {
1570
- const s = await r.updateConnection(a, n, e, t), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[o]?.url;
1571
- return (i, p) => S(s, u, g, l)(i, c || p);
1645
+ const s = await r.updateConnection(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.updateConnection"]?.[o]?.url;
1646
+ return (c, p) => S(s, u, g, l)(c, i || p);
1572
1647
  }
1573
1648
  };
1574
- }, Pn = function(l, r, a) {
1649
+ }, On = function(l, r, a) {
1575
1650
  const n = C(l);
1576
1651
  return {
1577
1652
  /**
@@ -1584,7 +1659,7 @@ const gn = {
1584
1659
  * @throws {RequiredError}
1585
1660
  */
1586
1661
  createConnection(e, t, s, o) {
1587
- return n.createConnection(e, t, s, o).then((c) => c(a, r));
1662
+ return n.createConnection(e, t, s, o).then((i) => i(a, r));
1588
1663
  },
1589
1664
  /**
1590
1665
  * Permanently deletes a database connection from the environment.
@@ -1618,8 +1693,8 @@ const gn = {
1618
1693
  * @param {*} [options] Override http request option.
1619
1694
  * @throws {RequiredError}
1620
1695
  */
1621
- getTable(e, t, s, o, c) {
1622
- return n.getTable(e, t, s, o, c).then((i) => i(a, r));
1696
+ getTable(e, t, s, o, i) {
1697
+ return n.getTable(e, t, s, o, i).then((c) => c(a, r));
1623
1698
  },
1624
1699
  /**
1625
1700
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1633,8 +1708,8 @@ const gn = {
1633
1708
  * @param {*} [options] Override http request option.
1634
1709
  * @throws {RequiredError}
1635
1710
  */
1636
- getTableInPackage(e, t, s, o, c, i, p) {
1637
- return n.getTableInPackage(e, t, s, o, c, i, p).then((d) => d(a, r));
1711
+ getTableInPackage(e, t, s, o, i, c, p) {
1712
+ return n.getTableInPackage(e, t, s, o, i, c, p).then((d) => d(a, r));
1638
1713
  },
1639
1714
  /**
1640
1715
  * 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.
@@ -1667,8 +1742,8 @@ const gn = {
1667
1742
  * @param {*} [options] Override http request option.
1668
1743
  * @throws {RequiredError}
1669
1744
  */
1670
- listSchemasInPackage(e, t, s, o, c) {
1671
- return n.listSchemasInPackage(e, t, s, o, c).then((i) => i(a, r));
1745
+ listSchemasInPackage(e, t, s, o, i) {
1746
+ return n.listSchemasInPackage(e, t, s, o, i).then((c) => c(a, r));
1672
1747
  },
1673
1748
  /**
1674
1749
  * 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.
@@ -1680,8 +1755,8 @@ const gn = {
1680
1755
  * @param {*} [options] Override http request option.
1681
1756
  * @throws {RequiredError}
1682
1757
  */
1683
- listTables(e, t, s, o, c) {
1684
- return n.listTables(e, t, s, o, c).then((i) => i(a, r));
1758
+ listTables(e, t, s, o, i) {
1759
+ return n.listTables(e, t, s, o, i).then((c) => c(a, r));
1685
1760
  },
1686
1761
  /**
1687
1762
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1695,8 +1770,8 @@ const gn = {
1695
1770
  * @param {*} [options] Override http request option.
1696
1771
  * @throws {RequiredError}
1697
1772
  */
1698
- listTablesInPackage(e, t, s, o, c, i, p) {
1699
- return n.listTablesInPackage(e, t, s, o, c, i, p).then((d) => d(a, r));
1773
+ listTablesInPackage(e, t, s, o, i, c, p) {
1774
+ return n.listTablesInPackage(e, t, s, o, i, c, p).then((d) => d(a, r));
1700
1775
  },
1701
1776
  /**
1702
1777
  * 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.
@@ -1708,7 +1783,7 @@ const gn = {
1708
1783
  * @throws {RequiredError}
1709
1784
  */
1710
1785
  postQuerydata(e, t, s, o) {
1711
- return n.postQuerydata(e, t, s, o).then((c) => c(a, r));
1786
+ return n.postQuerydata(e, t, s, o).then((i) => i(a, r));
1712
1787
  },
1713
1788
  /**
1714
1789
  * 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.
@@ -1721,8 +1796,8 @@ const gn = {
1721
1796
  * @param {*} [options] Override http request option.
1722
1797
  * @throws {RequiredError}
1723
1798
  */
1724
- postQuerydataInPackage(e, t, s, o, c, i) {
1725
- return n.postQuerydataInPackage(e, t, s, o, c, i).then((p) => p(a, r));
1799
+ postQuerydataInPackage(e, t, s, o, i, c) {
1800
+ return n.postQuerydataInPackage(e, t, s, o, i, c).then((p) => p(a, r));
1726
1801
  },
1727
1802
  /**
1728
1803
  * 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.
@@ -1734,7 +1809,7 @@ const gn = {
1734
1809
  * @throws {RequiredError}
1735
1810
  */
1736
1811
  postSqlsource(e, t, s, o) {
1737
- return n.postSqlsource(e, t, s, o).then((c) => c(a, r));
1812
+ return n.postSqlsource(e, t, s, o).then((i) => i(a, r));
1738
1813
  },
1739
1814
  /**
1740
1815
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1747,8 +1822,8 @@ const gn = {
1747
1822
  * @param {*} [options] Override http request option.
1748
1823
  * @throws {RequiredError}
1749
1824
  */
1750
- postSqlsourceInPackage(e, t, s, o, c, i) {
1751
- return n.postSqlsourceInPackage(e, t, s, o, c, i).then((p) => p(a, r));
1825
+ postSqlsourceInPackage(e, t, s, o, i, c) {
1826
+ return n.postSqlsourceInPackage(e, t, s, o, i, c).then((p) => p(a, r));
1752
1827
  },
1753
1828
  /**
1754
1829
  * 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.
@@ -1760,7 +1835,7 @@ const gn = {
1760
1835
  * @throws {RequiredError}
1761
1836
  */
1762
1837
  postTemporarytable(e, t, s, o) {
1763
- return n.postTemporarytable(e, t, s, o).then((c) => c(a, r));
1838
+ return n.postTemporarytable(e, t, s, o).then((i) => i(a, r));
1764
1839
  },
1765
1840
  /**
1766
1841
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1773,8 +1848,8 @@ const gn = {
1773
1848
  * @param {*} [options] Override http request option.
1774
1849
  * @throws {RequiredError}
1775
1850
  */
1776
- postTemporarytableInPackage(e, t, s, o, c, i) {
1777
- return n.postTemporarytableInPackage(e, t, s, o, c, i).then((p) => p(a, r));
1851
+ postTemporarytableInPackage(e, t, s, o, i, c) {
1852
+ return n.postTemporarytableInPackage(e, t, s, o, i, c).then((p) => p(a, r));
1778
1853
  },
1779
1854
  /**
1780
1855
  * Updates the configuration of an existing database connection.
@@ -1786,7 +1861,7 @@ const gn = {
1786
1861
  * @throws {RequiredError}
1787
1862
  */
1788
1863
  updateConnection(e, t, s, o) {
1789
- return n.updateConnection(e, t, s, o).then((c) => c(a, r));
1864
+ return n.updateConnection(e, t, s, o).then((i) => i(a, r));
1790
1865
  }
1791
1866
  };
1792
1867
  };
@@ -1851,7 +1926,7 @@ class We extends I {
1851
1926
  * @throws {RequiredError}
1852
1927
  */
1853
1928
  getTableInPackage(r, a, n, e, t, s, o) {
1854
- return C(this.configuration).getTableInPackage(r, a, n, e, t, s, o).then((c) => c(this.axios, this.basePath));
1929
+ return C(this.configuration).getTableInPackage(r, a, n, e, t, s, o).then((i) => i(this.axios, this.basePath));
1855
1930
  }
1856
1931
  /**
1857
1932
  * 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.
@@ -1913,7 +1988,7 @@ class We extends I {
1913
1988
  * @throws {RequiredError}
1914
1989
  */
1915
1990
  listTablesInPackage(r, a, n, e, t, s, o) {
1916
- return C(this.configuration).listTablesInPackage(r, a, n, e, t, s, o).then((c) => c(this.axios, this.basePath));
1991
+ return C(this.configuration).listTablesInPackage(r, a, n, e, t, s, o).then((i) => i(this.axios, this.basePath));
1917
1992
  }
1918
1993
  /**
1919
1994
  * 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.
@@ -2017,14 +2092,14 @@ const Ke = function(l) {
2017
2092
  */
2018
2093
  testConnectionConfiguration: async (r, a = {}) => {
2019
2094
  m("testConnectionConfiguration", "connection", r);
2020
- const n = "/connections/test", e = new URL(n, V);
2095
+ const n = "/connections/test", e = new URL(n, b);
2021
2096
  let t;
2022
2097
  l && (t = l.baseOptions);
2023
- const s = { method: "POST", ...t, ...a }, o = {}, c = {};
2024
- o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, c);
2025
- let i = t && t.headers ? t.headers : {};
2026
- return s.headers = { ...o, ...i, ...a.headers }, s.data = A(r, s, l), {
2027
- url: b(e),
2098
+ const s = { method: "POST", ...t, ...a }, o = {}, i = {};
2099
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
2100
+ let c = t && t.headers ? t.headers : {};
2101
+ return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
2102
+ url: V(e),
2028
2103
  options: s
2029
2104
  };
2030
2105
  }
@@ -2041,10 +2116,10 @@ const Ke = function(l) {
2041
2116
  */
2042
2117
  async testConnectionConfiguration(a, n) {
2043
2118
  const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, s = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
2044
- return (o, c) => S(e, u, g, l)(o, s || c);
2119
+ return (o, i) => S(e, u, g, l)(o, s || i);
2045
2120
  }
2046
2121
  };
2047
- }, Vn = function(l, r, a) {
2122
+ }, An = function(l, r, a) {
2048
2123
  const n = he(l);
2049
2124
  return {
2050
2125
  /**
@@ -2059,7 +2134,7 @@ const Ke = function(l) {
2059
2134
  }
2060
2135
  };
2061
2136
  };
2062
- class vn extends I {
2137
+ class yn extends I {
2063
2138
  /**
2064
2139
  * 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.
2065
2140
  * @summary Test database connection configuration
@@ -2086,15 +2161,15 @@ const $e = function(l) {
2086
2161
  */
2087
2162
  getDashboard: async (r, a, n, e, t = {}) => {
2088
2163
  m("getDashboard", "environmentName", r), m("getDashboard", "packageName", a), m("getDashboard", "dashboardName", n);
2089
- const s = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{dashboardName}", encodeURIComponent(String(n))), o = new URL(s, V);
2090
- let c;
2091
- l && (c = l.baseOptions);
2092
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2164
+ const s = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{dashboardName}", encodeURIComponent(String(n))), o = new URL(s, b);
2165
+ let i;
2166
+ l && (i = l.baseOptions);
2167
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
2093
2168
  e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
2094
- let h = c && c.headers ? c.headers : {};
2095
- return i.headers = { ...p, ...h, ...t.headers }, {
2096
- url: b(o),
2097
- options: i
2169
+ let h = i && i.headers ? i.headers : {};
2170
+ return c.headers = { ...p, ...h, ...t.headers }, {
2171
+ url: V(o),
2172
+ options: c
2098
2173
  };
2099
2174
  },
2100
2175
  /**
@@ -2109,15 +2184,15 @@ const $e = function(l) {
2109
2184
  */
2110
2185
  listDashboards: async (r, a, n, e = {}) => {
2111
2186
  m("listDashboards", "environmentName", r), m("listDashboards", "packageName", a);
2112
- const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
2187
+ const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
2113
2188
  let o;
2114
2189
  l && (o = l.baseOptions);
2115
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
2116
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
2190
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
2191
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
2117
2192
  let d = o && o.headers ? o.headers : {};
2118
- return c.headers = { ...i, ...d, ...e.headers }, {
2119
- url: b(s),
2120
- options: c
2193
+ return i.headers = { ...c, ...d, ...e.headers }, {
2194
+ url: V(s),
2195
+ options: i
2121
2196
  };
2122
2197
  }
2123
2198
  };
@@ -2136,8 +2211,8 @@ const $e = function(l) {
2136
2211
  * @throws {RequiredError}
2137
2212
  */
2138
2213
  async getDashboard(a, n, e, t, s) {
2139
- const o = await r.getDashboard(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[c]?.url;
2140
- return (p, d) => S(o, u, g, l)(p, i || d);
2214
+ const o = await r.getDashboard(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["DashboardsApi.getDashboard"]?.[i]?.url;
2215
+ return (p, d) => S(o, u, g, l)(p, c || d);
2141
2216
  },
2142
2217
  /**
2143
2218
  * **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -2150,11 +2225,11 @@ const $e = function(l) {
2150
2225
  * @throws {RequiredError}
2151
2226
  */
2152
2227
  async listDashboards(a, n, e, t) {
2153
- const s = await r.listDashboards(a, n, e, t), o = l?.serverIndex ?? 0, c = P["DashboardsApi.listDashboards"]?.[o]?.url;
2154
- return (i, p) => S(s, u, g, l)(i, c || p);
2228
+ const s = await r.listDashboards(a, n, e, t), o = l?.serverIndex ?? 0, i = P["DashboardsApi.listDashboards"]?.[o]?.url;
2229
+ return (c, p) => S(s, u, g, l)(c, i || p);
2155
2230
  }
2156
2231
  };
2157
- }, bn = function(l, r, a) {
2232
+ }, Cn = function(l, r, a) {
2158
2233
  const n = Z(l);
2159
2234
  return {
2160
2235
  /**
@@ -2168,8 +2243,8 @@ const $e = function(l) {
2168
2243
  * @deprecated
2169
2244
  * @throws {RequiredError}
2170
2245
  */
2171
- getDashboard(e, t, s, o, c) {
2172
- return n.getDashboard(e, t, s, o, c).then((i) => i(a, r));
2246
+ getDashboard(e, t, s, o, i) {
2247
+ return n.getDashboard(e, t, s, o, i).then((c) => c(a, r));
2173
2248
  },
2174
2249
  /**
2175
2250
  * **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -2182,7 +2257,7 @@ const $e = function(l) {
2182
2257
  * @throws {RequiredError}
2183
2258
  */
2184
2259
  listDashboards(e, t, s, o) {
2185
- return n.listDashboards(e, t, s, o).then((c) => c(a, r));
2260
+ return n.listDashboards(e, t, s, o).then((i) => i(a, r));
2186
2261
  }
2187
2262
  };
2188
2263
  };
@@ -2228,15 +2303,15 @@ const Je = function(l) {
2228
2303
  */
2229
2304
  listDataApps: async (r, a, n, e = {}) => {
2230
2305
  m("listDataApps", "environmentName", r), m("listDataApps", "packageName", a);
2231
- const t = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
2306
+ const t = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
2232
2307
  let o;
2233
2308
  l && (o = l.baseOptions);
2234
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
2235
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
2309
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
2310
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
2236
2311
  let d = o && o.headers ? o.headers : {};
2237
- return c.headers = { ...i, ...d, ...e.headers }, {
2238
- url: b(s),
2239
- options: c
2312
+ return i.headers = { ...c, ...d, ...e.headers }, {
2313
+ url: V(s),
2314
+ options: i
2240
2315
  };
2241
2316
  }
2242
2317
  };
@@ -2253,11 +2328,11 @@ const Je = function(l) {
2253
2328
  * @throws {RequiredError}
2254
2329
  */
2255
2330
  async listDataApps(a, n, e, t) {
2256
- const s = await r.listDataApps(a, n, e, t), o = l?.serverIndex ?? 0, c = P["DataAppsApi.listDataApps"]?.[o]?.url;
2257
- return (i, p) => S(s, u, g, l)(i, c || p);
2331
+ const s = await r.listDataApps(a, n, e, t), o = l?.serverIndex ?? 0, i = P["DataAppsApi.listDataApps"]?.[o]?.url;
2332
+ return (c, p) => S(s, u, g, l)(c, i || p);
2258
2333
  }
2259
2334
  };
2260
- }, Sn = function(l, r, a) {
2335
+ }, In = function(l, r, a) {
2261
2336
  const n = ue(l);
2262
2337
  return {
2263
2338
  /**
@@ -2270,7 +2345,7 @@ const Je = function(l) {
2270
2345
  * @throws {RequiredError}
2271
2346
  */
2272
2347
  listDataApps(e, t, s, o) {
2273
- return n.listDataApps(e, t, s, o).then((c) => c(a, r));
2348
+ return n.listDataApps(e, t, s, o).then((i) => i(a, r));
2274
2349
  }
2275
2350
  };
2276
2351
  };
@@ -2301,15 +2376,15 @@ const Xe = function(l) {
2301
2376
  */
2302
2377
  listDatabases: async (r, a, n, e = {}) => {
2303
2378
  m("listDatabases", "environmentName", r), m("listDatabases", "packageName", a);
2304
- const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
2379
+ const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
2305
2380
  let o;
2306
2381
  l && (o = l.baseOptions);
2307
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
2308
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
2382
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
2383
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
2309
2384
  let d = o && o.headers ? o.headers : {};
2310
- return c.headers = { ...i, ...d, ...e.headers }, {
2311
- url: b(s),
2312
- options: c
2385
+ return i.headers = { ...c, ...d, ...e.headers }, {
2386
+ url: V(s),
2387
+ options: i
2313
2388
  };
2314
2389
  }
2315
2390
  };
@@ -2326,11 +2401,11 @@ const Xe = function(l) {
2326
2401
  * @throws {RequiredError}
2327
2402
  */
2328
2403
  async listDatabases(a, n, e, t) {
2329
- const s = await r.listDatabases(a, n, e, t), o = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[o]?.url;
2330
- return (i, p) => S(s, u, g, l)(i, c || p);
2404
+ const s = await r.listDatabases(a, n, e, t), o = l?.serverIndex ?? 0, i = P["DatabasesApi.listDatabases"]?.[o]?.url;
2405
+ return (c, p) => S(s, u, g, l)(c, i || p);
2331
2406
  }
2332
2407
  };
2333
- }, kn = function(l, r, a) {
2408
+ }, Rn = function(l, r, a) {
2334
2409
  const n = ge(l);
2335
2410
  return {
2336
2411
  /**
@@ -2343,7 +2418,7 @@ const Xe = function(l) {
2343
2418
  * @throws {RequiredError}
2344
2419
  */
2345
2420
  listDatabases(e, t, s, o) {
2346
- return n.listDatabases(e, t, s, o).then((c) => c(a, r));
2421
+ return n.listDatabases(e, t, s, o).then((i) => i(a, r));
2347
2422
  }
2348
2423
  };
2349
2424
  };
@@ -2372,14 +2447,14 @@ const aa = function(l) {
2372
2447
  */
2373
2448
  createEnvironment: async (r, a = {}) => {
2374
2449
  m("createEnvironment", "environment", r);
2375
- const n = "/environments", e = new URL(n, V);
2450
+ const n = "/environments", e = new URL(n, b);
2376
2451
  let t;
2377
2452
  l && (t = l.baseOptions);
2378
- const s = { method: "POST", ...t, ...a }, o = {}, c = {};
2379
- o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, c);
2380
- let i = t && t.headers ? t.headers : {};
2381
- return s.headers = { ...o, ...i, ...a.headers }, s.data = A(r, s, l), {
2382
- url: b(e),
2453
+ const s = { method: "POST", ...t, ...a }, o = {}, i = {};
2454
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
2455
+ let c = t && t.headers ? t.headers : {};
2456
+ return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
2457
+ url: V(e),
2383
2458
  options: s
2384
2459
  };
2385
2460
  },
@@ -2392,14 +2467,14 @@ const aa = function(l) {
2392
2467
  */
2393
2468
  deleteEnvironment: async (r, a = {}) => {
2394
2469
  m("deleteEnvironment", "environmentName", r);
2395
- const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
2470
+ const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, b);
2396
2471
  let t;
2397
2472
  l && (t = l.baseOptions);
2398
- const s = { method: "DELETE", ...t, ...a }, o = {}, c = {};
2399
- o.Accept = "application/json", v(e, c);
2400
- let i = t && t.headers ? t.headers : {};
2401
- return s.headers = { ...o, ...i, ...a.headers }, {
2402
- url: b(e),
2473
+ const s = { method: "DELETE", ...t, ...a }, o = {}, i = {};
2474
+ o.Accept = "application/json", v(e, i);
2475
+ let c = t && t.headers ? t.headers : {};
2476
+ return s.headers = { ...o, ...c, ...a.headers }, {
2477
+ url: V(e),
2403
2478
  options: s
2404
2479
  };
2405
2480
  },
@@ -2413,14 +2488,14 @@ const aa = function(l) {
2413
2488
  */
2414
2489
  getEnvironment: async (r, a, n = {}) => {
2415
2490
  m("getEnvironment", "environmentName", r);
2416
- const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
2491
+ const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, b);
2417
2492
  let s;
2418
2493
  l && (s = l.baseOptions);
2419
- const o = { method: "GET", ...s, ...n }, c = {}, i = {};
2420
- a !== void 0 && (i.reload = a), c.Accept = "application/json", v(t, i);
2494
+ const o = { method: "GET", ...s, ...n }, i = {}, c = {};
2495
+ a !== void 0 && (c.reload = a), i.Accept = "application/json", v(t, c);
2421
2496
  let p = s && s.headers ? s.headers : {};
2422
- return o.headers = { ...c, ...p, ...n.headers }, {
2423
- url: b(t),
2497
+ return o.headers = { ...i, ...p, ...n.headers }, {
2498
+ url: V(t),
2424
2499
  options: o
2425
2500
  };
2426
2501
  },
@@ -2431,14 +2506,14 @@ const aa = function(l) {
2431
2506
  * @throws {RequiredError}
2432
2507
  */
2433
2508
  listEnvironments: async (r = {}) => {
2434
- const a = "/environments", n = new URL(a, V);
2509
+ const a = "/environments", n = new URL(a, b);
2435
2510
  let e;
2436
2511
  l && (e = l.baseOptions);
2437
2512
  const t = { method: "GET", ...e, ...r }, s = {}, o = {};
2438
2513
  s.Accept = "application/json", v(n, o);
2439
- let c = e && e.headers ? e.headers : {};
2440
- return t.headers = { ...s, ...c, ...r.headers }, {
2441
- url: b(n),
2514
+ let i = e && e.headers ? e.headers : {};
2515
+ return t.headers = { ...s, ...i, ...r.headers }, {
2516
+ url: V(n),
2442
2517
  options: t
2443
2518
  };
2444
2519
  },
@@ -2452,14 +2527,14 @@ const aa = function(l) {
2452
2527
  */
2453
2528
  updateEnvironment: async (r, a, n = {}) => {
2454
2529
  m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", a);
2455
- const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
2530
+ const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, b);
2456
2531
  let s;
2457
2532
  l && (s = l.baseOptions);
2458
- const o = { method: "PATCH", ...s, ...n }, c = {}, i = {};
2459
- c["Content-Type"] = "application/json", c.Accept = "application/json", v(t, i);
2533
+ const o = { method: "PATCH", ...s, ...n }, i = {}, c = {};
2534
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(t, c);
2460
2535
  let p = s && s.headers ? s.headers : {};
2461
- return o.headers = { ...c, ...p, ...n.headers }, o.data = A(a, o, l), {
2462
- url: b(t),
2536
+ return o.headers = { ...i, ...p, ...n.headers }, o.data = A(a, o, l), {
2537
+ url: V(t),
2463
2538
  options: o
2464
2539
  };
2465
2540
  }
@@ -2476,7 +2551,7 @@ const aa = function(l) {
2476
2551
  */
2477
2552
  async createEnvironment(a, n) {
2478
2553
  const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, s = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
2479
- return (o, c) => S(e, u, g, l)(o, s || c);
2554
+ return (o, i) => S(e, u, g, l)(o, s || i);
2480
2555
  },
2481
2556
  /**
2482
2557
  * 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.
@@ -2487,7 +2562,7 @@ const aa = function(l) {
2487
2562
  */
2488
2563
  async deleteEnvironment(a, n) {
2489
2564
  const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, s = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
2490
- return (o, c) => S(e, u, g, l)(o, s || c);
2565
+ return (o, i) => S(e, u, g, l)(o, s || i);
2491
2566
  },
2492
2567
  /**
2493
2568
  * 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.
@@ -2499,7 +2574,7 @@ const aa = function(l) {
2499
2574
  */
2500
2575
  async getEnvironment(a, n, e) {
2501
2576
  const t = await r.getEnvironment(a, n, e), s = l?.serverIndex ?? 0, o = P["EnvironmentsApi.getEnvironment"]?.[s]?.url;
2502
- return (c, i) => S(t, u, g, l)(c, o || i);
2577
+ return (i, c) => S(t, u, g, l)(i, o || c);
2503
2578
  },
2504
2579
  /**
2505
2580
  * 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`.
@@ -2521,10 +2596,10 @@ const aa = function(l) {
2521
2596
  */
2522
2597
  async updateEnvironment(a, n, e) {
2523
2598
  const t = await r.updateEnvironment(a, n, e), s = l?.serverIndex ?? 0, o = P["EnvironmentsApi.updateEnvironment"]?.[s]?.url;
2524
- return (c, i) => S(t, u, g, l)(c, o || i);
2599
+ return (i, c) => S(t, u, g, l)(i, o || c);
2525
2600
  }
2526
2601
  };
2527
- }, On = function(l, r, a) {
2602
+ }, xn = function(l, r, a) {
2528
2603
  const n = w(l);
2529
2604
  return {
2530
2605
  /**
@@ -2646,39 +2721,38 @@ const na = function(l) {
2646
2721
  */
2647
2722
  createMaterialization: async (r, a, n, e = {}) => {
2648
2723
  m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", a);
2649
- const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
2724
+ const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
2650
2725
  let o;
2651
2726
  l && (o = l.baseOptions);
2652
- const c = { method: "POST", ...o, ...e }, i = {}, p = {};
2653
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
2727
+ const i = { method: "POST", ...o, ...e }, c = {}, p = {};
2728
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
2654
2729
  let d = o && o.headers ? o.headers : {};
2655
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
2656
- url: b(s),
2657
- options: c
2730
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
2731
+ url: V(s),
2732
+ options: i
2658
2733
  };
2659
2734
  },
2660
2735
  /**
2661
- * 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.
2736
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
2662
2737
  * @summary Delete a materialization
2663
2738
  * @param {string} environmentName Name of the environment
2664
2739
  * @param {string} packageName Name of the package
2665
2740
  * @param {string} materializationId ID of the materialization
2666
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
2667
2741
  * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
2668
2742
  * @param {*} [options] Override http request option.
2669
2743
  * @throws {RequiredError}
2670
2744
  */
2671
- deleteMaterialization: async (r, a, n, e, t, s = {}) => {
2745
+ deleteMaterialization: async (r, a, n, e, t = {}) => {
2672
2746
  m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", n);
2673
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), c = new URL(o, V);
2747
+ const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(s, b);
2674
2748
  let i;
2675
2749
  l && (i = l.baseOptions);
2676
- const p = { method: "DELETE", ...i, ...s }, d = {}, h = {};
2677
- e !== void 0 && (h.dropTables = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(c, h);
2678
- let k = i && i.headers ? i.headers : {};
2679
- return p.headers = { ...d, ...k, ...s.headers }, {
2680
- url: b(c),
2681
- options: p
2750
+ const c = { method: "DELETE", ...i, ...t }, p = {}, d = {};
2751
+ e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
2752
+ let h = i && i.headers ? i.headers : {};
2753
+ return c.headers = { ...p, ...h, ...t.headers }, {
2754
+ url: V(o),
2755
+ options: c
2682
2756
  };
2683
2757
  },
2684
2758
  /**
@@ -2693,15 +2767,15 @@ const na = function(l) {
2693
2767
  */
2694
2768
  getMaterialization: async (r, a, n, e, t = {}) => {
2695
2769
  m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", n);
2696
- const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(s, V);
2697
- let c;
2698
- l && (c = l.baseOptions);
2699
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2770
+ const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(s, b);
2771
+ let i;
2772
+ l && (i = l.baseOptions);
2773
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
2700
2774
  e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
2701
- let h = c && c.headers ? c.headers : {};
2702
- return i.headers = { ...p, ...h, ...t.headers }, {
2703
- url: b(o),
2704
- options: i
2775
+ let h = i && i.headers ? i.headers : {};
2776
+ return c.headers = { ...p, ...h, ...t.headers }, {
2777
+ url: V(o),
2778
+ options: c
2705
2779
  };
2706
2780
  },
2707
2781
  /**
@@ -2717,14 +2791,14 @@ const na = function(l) {
2717
2791
  */
2718
2792
  listMaterializations: async (r, a, n, e, t, s = {}) => {
2719
2793
  m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", a);
2720
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), c = new URL(o, V);
2721
- let i;
2722
- l && (i = l.baseOptions);
2723
- const p = { method: "GET", ...i, ...s }, d = {}, h = {};
2724
- n !== void 0 && (h.limit = n), e !== void 0 && (h.offset = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(c, h);
2725
- let k = i && i.headers ? i.headers : {};
2794
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), i = new URL(o, b);
2795
+ let c;
2796
+ l && (c = l.baseOptions);
2797
+ const p = { method: "GET", ...c, ...s }, d = {}, h = {};
2798
+ n !== void 0 && (h.limit = n), e !== void 0 && (h.offset = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
2799
+ let k = c && c.headers ? c.headers : {};
2726
2800
  return p.headers = { ...d, ...k, ...s.headers }, {
2727
- url: b(c),
2801
+ url: V(i),
2728
2802
  options: p
2729
2803
  };
2730
2804
  },
@@ -2741,14 +2815,14 @@ const na = function(l) {
2741
2815
  */
2742
2816
  materializationAction: async (r, a, n, e, t, s = {}) => {
2743
2817
  m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", n), m("materializationAction", "action", e);
2744
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), c = new URL(o, V);
2745
- let i;
2746
- l && (i = l.baseOptions);
2747
- const p = { method: "POST", ...i, ...s }, d = {}, h = {};
2748
- e !== void 0 && (h.action = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(c, h);
2749
- let k = i && i.headers ? i.headers : {};
2818
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), i = new URL(o, b);
2819
+ let c;
2820
+ l && (c = l.baseOptions);
2821
+ const p = { method: "POST", ...c, ...s }, d = {}, h = {};
2822
+ e !== void 0 && (h.action = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
2823
+ let k = c && c.headers ? c.headers : {};
2750
2824
  return p.headers = { ...d, ...k, ...s.headers }, {
2751
- url: b(c),
2825
+ url: V(i),
2752
2826
  options: p
2753
2827
  };
2754
2828
  }
@@ -2766,23 +2840,22 @@ const na = function(l) {
2766
2840
  * @throws {RequiredError}
2767
2841
  */
2768
2842
  async createMaterialization(a, n, e, t) {
2769
- const s = await r.createMaterialization(a, n, e, t), o = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[o]?.url;
2770
- return (i, p) => S(s, u, g, l)(i, c || p);
2843
+ const s = await r.createMaterialization(a, n, e, t), o = l?.serverIndex ?? 0, i = P["MaterializationsApi.createMaterialization"]?.[o]?.url;
2844
+ return (c, p) => S(s, u, g, l)(c, i || p);
2771
2845
  },
2772
2846
  /**
2773
- * 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.
2847
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
2774
2848
  * @summary Delete a materialization
2775
2849
  * @param {string} environmentName Name of the environment
2776
2850
  * @param {string} packageName Name of the package
2777
2851
  * @param {string} materializationId ID of the materialization
2778
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
2779
2852
  * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
2780
2853
  * @param {*} [options] Override http request option.
2781
2854
  * @throws {RequiredError}
2782
2855
  */
2783
- async deleteMaterialization(a, n, e, t, s, o) {
2784
- const c = await r.deleteMaterialization(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.deleteMaterialization"]?.[i]?.url;
2785
- return (d, h) => S(c, u, g, l)(d, p || h);
2856
+ async deleteMaterialization(a, n, e, t, s) {
2857
+ const o = await r.deleteMaterialization(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["MaterializationsApi.deleteMaterialization"]?.[i]?.url;
2858
+ return (p, d) => S(o, u, g, l)(p, c || d);
2786
2859
  },
2787
2860
  /**
2788
2861
  * A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
@@ -2795,8 +2868,8 @@ const na = function(l) {
2795
2868
  * @throws {RequiredError}
2796
2869
  */
2797
2870
  async getMaterialization(a, n, e, t, s) {
2798
- const o = await r.getMaterialization(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.getMaterialization"]?.[c]?.url;
2799
- return (p, d) => S(o, u, g, l)(p, i || d);
2871
+ const o = await r.getMaterialization(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[i]?.url;
2872
+ return (p, d) => S(o, u, g, l)(p, c || d);
2800
2873
  },
2801
2874
  /**
2802
2875
  * Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
@@ -2810,8 +2883,8 @@ const na = function(l) {
2810
2883
  * @throws {RequiredError}
2811
2884
  */
2812
2885
  async listMaterializations(a, n, e, t, s, o) {
2813
- const c = await r.listMaterializations(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.listMaterializations"]?.[i]?.url;
2814
- return (d, h) => S(c, u, g, l)(d, p || h);
2886
+ const i = await r.listMaterializations(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
2887
+ return (d, h) => S(i, u, g, l)(d, p || h);
2815
2888
  },
2816
2889
  /**
2817
2890
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2825,11 +2898,11 @@ const na = function(l) {
2825
2898
  * @throws {RequiredError}
2826
2899
  */
2827
2900
  async materializationAction(a, n, e, t, s, o) {
2828
- const c = await r.materializationAction(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.materializationAction"]?.[i]?.url;
2829
- return (d, h) => S(c, u, g, l)(d, p || h);
2901
+ const i = await r.materializationAction(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["MaterializationsApi.materializationAction"]?.[c]?.url;
2902
+ return (d, h) => S(i, u, g, l)(d, p || h);
2830
2903
  }
2831
2904
  };
2832
- }, An = function(l, r, a) {
2905
+ }, Nn = function(l, r, a) {
2833
2906
  const n = M(l);
2834
2907
  return {
2835
2908
  /**
@@ -2842,21 +2915,20 @@ const na = function(l) {
2842
2915
  * @throws {RequiredError}
2843
2916
  */
2844
2917
  createMaterialization(e, t, s, o) {
2845
- return n.createMaterialization(e, t, s, o).then((c) => c(a, r));
2918
+ return n.createMaterialization(e, t, s, o).then((i) => i(a, r));
2846
2919
  },
2847
2920
  /**
2848
- * 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.
2921
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
2849
2922
  * @summary Delete a materialization
2850
2923
  * @param {string} environmentName Name of the environment
2851
2924
  * @param {string} packageName Name of the package
2852
2925
  * @param {string} materializationId ID of the materialization
2853
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
2854
2926
  * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
2855
2927
  * @param {*} [options] Override http request option.
2856
2928
  * @throws {RequiredError}
2857
2929
  */
2858
- deleteMaterialization(e, t, s, o, c, i) {
2859
- return n.deleteMaterialization(e, t, s, o, c, i).then((p) => p(a, r));
2930
+ deleteMaterialization(e, t, s, o, i) {
2931
+ return n.deleteMaterialization(e, t, s, o, i).then((c) => c(a, r));
2860
2932
  },
2861
2933
  /**
2862
2934
  * A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
@@ -2868,8 +2940,8 @@ const na = function(l) {
2868
2940
  * @param {*} [options] Override http request option.
2869
2941
  * @throws {RequiredError}
2870
2942
  */
2871
- getMaterialization(e, t, s, o, c) {
2872
- return n.getMaterialization(e, t, s, o, c).then((i) => i(a, r));
2943
+ getMaterialization(e, t, s, o, i) {
2944
+ return n.getMaterialization(e, t, s, o, i).then((c) => c(a, r));
2873
2945
  },
2874
2946
  /**
2875
2947
  * Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
@@ -2882,8 +2954,8 @@ const na = function(l) {
2882
2954
  * @param {*} [options] Override http request option.
2883
2955
  * @throws {RequiredError}
2884
2956
  */
2885
- listMaterializations(e, t, s, o, c, i) {
2886
- return n.listMaterializations(e, t, s, o, c, i).then((p) => p(a, r));
2957
+ listMaterializations(e, t, s, o, i, c) {
2958
+ return n.listMaterializations(e, t, s, o, i, c).then((p) => p(a, r));
2887
2959
  },
2888
2960
  /**
2889
2961
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2896,8 +2968,8 @@ const na = function(l) {
2896
2968
  * @param {*} [options] Override http request option.
2897
2969
  * @throws {RequiredError}
2898
2970
  */
2899
- materializationAction(e, t, s, o, c, i) {
2900
- return n.materializationAction(e, t, s, o, c, i).then((p) => p(a, r));
2971
+ materializationAction(e, t, s, o, i, c) {
2972
+ return n.materializationAction(e, t, s, o, i, c).then((p) => p(a, r));
2901
2973
  }
2902
2974
  };
2903
2975
  };
@@ -2915,18 +2987,17 @@ class ra extends I {
2915
2987
  return M(this.configuration).createMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2916
2988
  }
2917
2989
  /**
2918
- * 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.
2990
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
2919
2991
  * @summary Delete a materialization
2920
2992
  * @param {string} environmentName Name of the environment
2921
2993
  * @param {string} packageName Name of the package
2922
2994
  * @param {string} materializationId ID of the materialization
2923
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
2924
2995
  * @param {string} [versionId] The published version of the package to serve, a semantic version such as &#x60;1.2.0&#x60; or &#x60;1.2.0-rc1&#x60;. &#x60;latest&#x60;, omitted or empty (&#x60;versionId&#x3D;&#x60;, which a proxy forwarding a page\&#39;s query string may send), the request is served from the package\&#39;s &#x60;latest&#x60; version. Any other value that is not a semantic version answers 400 with &#x60;reason&#x60; VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with &#x60;reason&#x60; VERSION_NOT_FOUND, and an archived one answers 410 with &#x60;reason&#x60; VERSION_ARCHIVED. A package that has no versions (one loaded from &#x60;publisher.config.json&#x60; or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send &#x60;1.2.0+build.5&#x60; as &#x60;1.2.0%2Bbuild.5&#x60;, since a bare &#x60;+&#x60; in a query string decodes to a space.
2925
2996
  * @param {*} [options] Override http request option.
2926
2997
  * @throws {RequiredError}
2927
2998
  */
2928
- deleteMaterialization(r, a, n, e, t, s) {
2929
- return M(this.configuration).deleteMaterialization(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
2999
+ deleteMaterialization(r, a, n, e, t) {
3000
+ return M(this.configuration).deleteMaterialization(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
2930
3001
  }
2931
3002
  /**
2932
3003
  * A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
@@ -2970,7 +3041,7 @@ class ra extends I {
2970
3041
  return M(this.configuration).materializationAction(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
2971
3042
  }
2972
3043
  }
2973
- const yn = {
3044
+ const Un = {
2974
3045
  Stop: "stop"
2975
3046
  }, oa = function(l) {
2976
3047
  return {
@@ -2987,14 +3058,14 @@ const yn = {
2987
3058
  */
2988
3059
  compileModelSource: async (r, a, n, e, t, s = {}) => {
2989
3060
  m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", n), m("compileModelSource", "compileRequest", e);
2990
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), c = new URL(o, V);
2991
- let i;
2992
- l && (i = l.baseOptions);
2993
- const p = { method: "POST", ...i, ...s }, d = {}, h = {};
2994
- t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
2995
- let k = i && i.headers ? i.headers : {};
3061
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), i = new URL(o, b);
3062
+ let c;
3063
+ l && (c = l.baseOptions);
3064
+ const p = { method: "POST", ...c, ...s }, d = {}, h = {};
3065
+ t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
3066
+ let k = c && c.headers ? c.headers : {};
2996
3067
  return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
2997
- url: b(c),
3068
+ url: V(i),
2998
3069
  options: p
2999
3070
  };
3000
3071
  },
@@ -3011,14 +3082,14 @@ const yn = {
3011
3082
  */
3012
3083
  executeQueryModel: async (r, a, n, e, t, s = {}) => {
3013
3084
  m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", n), m("executeQueryModel", "queryRequest", e);
3014
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), c = new URL(o, V);
3015
- let i;
3016
- l && (i = l.baseOptions);
3017
- const p = { method: "POST", ...i, ...s }, d = {}, h = {};
3018
- t !== void 0 && (h.includeHiddenFilesAndSources = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
3019
- let k = i && i.headers ? i.headers : {};
3085
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), i = new URL(o, b);
3086
+ let c;
3087
+ l && (c = l.baseOptions);
3088
+ const p = { method: "POST", ...c, ...s }, d = {}, h = {};
3089
+ t !== void 0 && (h.includeHiddenFilesAndSources = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
3090
+ let k = c && c.headers ? c.headers : {};
3020
3091
  return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
3021
- url: b(c),
3092
+ url: V(i),
3022
3093
  options: p
3023
3094
  };
3024
3095
  },
@@ -3036,14 +3107,14 @@ const yn = {
3036
3107
  */
3037
3108
  getModel: async (r, a, n, e, t, s, o = {}) => {
3038
3109
  m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", n);
3039
- const c = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), i = new URL(c, V);
3110
+ const i = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), c = new URL(i, b);
3040
3111
  let p;
3041
3112
  l && (p = l.baseOptions);
3042
3113
  const d = { method: "GET", ...p, ...o }, h = {}, k = {};
3043
- e !== void 0 && (k.versionId = e), t !== void 0 && (k.includeHiddenFilesAndSources = t), s !== void 0 && (k.givens = s), h.Accept = "application/json", v(i, k);
3114
+ e !== void 0 && (k.versionId = e), t !== void 0 && (k.includeHiddenFilesAndSources = t), s !== void 0 && (k.givens = s), h.Accept = "application/json", v(c, k);
3044
3115
  let O = p && p.headers ? p.headers : {};
3045
3116
  return d.headers = { ...h, ...O, ...o.headers }, {
3046
- url: b(i),
3117
+ url: V(c),
3047
3118
  options: d
3048
3119
  };
3049
3120
  },
@@ -3059,15 +3130,15 @@ const yn = {
3059
3130
  */
3060
3131
  listModels: async (r, a, n, e, t = {}) => {
3061
3132
  m("listModels", "environmentName", r), m("listModels", "packageName", a);
3062
- const s = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, V);
3063
- let c;
3064
- l && (c = l.baseOptions);
3065
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
3133
+ const s = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, b);
3134
+ let i;
3135
+ l && (i = l.baseOptions);
3136
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
3066
3137
  n !== void 0 && (d.versionId = n), e !== void 0 && (d.includeHiddenFilesAndSources = e), p.Accept = "application/json", v(o, d);
3067
- let h = c && c.headers ? c.headers : {};
3068
- return i.headers = { ...p, ...h, ...t.headers }, {
3069
- url: b(o),
3070
- options: i
3138
+ let h = i && i.headers ? i.headers : {};
3139
+ return c.headers = { ...p, ...h, ...t.headers }, {
3140
+ url: V(o),
3141
+ options: c
3071
3142
  };
3072
3143
  },
3073
3144
  /**
@@ -3083,14 +3154,14 @@ const yn = {
3083
3154
  */
3084
3155
  updateModelSource: async (r, a, n, e, t, s = {}) => {
3085
3156
  m("updateModelSource", "environmentName", r), m("updateModelSource", "packageName", a), m("updateModelSource", "path", n), m("updateModelSource", "modelSourceWriteRequest", e);
3086
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), c = new URL(o, V);
3087
- let i;
3088
- l && (i = l.baseOptions);
3089
- const p = { method: "PUT", ...i, ...s }, d = {}, h = {};
3090
- t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
3091
- let k = i && i.headers ? i.headers : {};
3157
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), i = new URL(o, b);
3158
+ let c;
3159
+ l && (c = l.baseOptions);
3160
+ const p = { method: "PUT", ...c, ...s }, d = {}, h = {};
3161
+ t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
3162
+ let k = c && c.headers ? c.headers : {};
3092
3163
  return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
3093
- url: b(c),
3164
+ url: V(i),
3094
3165
  options: p
3095
3166
  };
3096
3167
  }
@@ -3110,8 +3181,8 @@ const yn = {
3110
3181
  * @throws {RequiredError}
3111
3182
  */
3112
3183
  async compileModelSource(a, n, e, t, s, o) {
3113
- const c = await r.compileModelSource(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["ModelsApi.compileModelSource"]?.[i]?.url;
3114
- return (d, h) => S(c, u, g, l)(d, p || h);
3184
+ const i = await r.compileModelSource(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ModelsApi.compileModelSource"]?.[c]?.url;
3185
+ return (d, h) => S(i, u, g, l)(d, p || h);
3115
3186
  },
3116
3187
  /**
3117
3188
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
@@ -3125,8 +3196,8 @@ const yn = {
3125
3196
  * @throws {RequiredError}
3126
3197
  */
3127
3198
  async executeQueryModel(a, n, e, t, s, o) {
3128
- const c = await r.executeQueryModel(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["ModelsApi.executeQueryModel"]?.[i]?.url;
3129
- return (d, h) => S(c, u, g, l)(d, p || h);
3199
+ const i = await r.executeQueryModel(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ModelsApi.executeQueryModel"]?.[c]?.url;
3200
+ return (d, h) => S(i, u, g, l)(d, p || h);
3130
3201
  },
3131
3202
  /**
3132
3203
  * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
@@ -3140,9 +3211,9 @@ const yn = {
3140
3211
  * @param {*} [options] Override http request option.
3141
3212
  * @throws {RequiredError}
3142
3213
  */
3143
- async getModel(a, n, e, t, s, o, c) {
3144
- const i = await r.getModel(a, n, e, t, s, o, c), p = l?.serverIndex ?? 0, d = P["ModelsApi.getModel"]?.[p]?.url;
3145
- return (h, k) => S(i, u, g, l)(h, d || k);
3214
+ async getModel(a, n, e, t, s, o, i) {
3215
+ const c = await r.getModel(a, n, e, t, s, o, i), p = l?.serverIndex ?? 0, d = P["ModelsApi.getModel"]?.[p]?.url;
3216
+ return (h, k) => S(c, u, g, l)(h, d || k);
3146
3217
  },
3147
3218
  /**
3148
3219
  * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
@@ -3155,8 +3226,8 @@ const yn = {
3155
3226
  * @throws {RequiredError}
3156
3227
  */
3157
3228
  async listModels(a, n, e, t, s) {
3158
- const o = await r.listModels(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["ModelsApi.listModels"]?.[c]?.url;
3159
- return (p, d) => S(o, u, g, l)(p, i || d);
3229
+ const o = await r.listModels(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[i]?.url;
3230
+ return (p, d) => S(o, u, g, l)(p, c || d);
3160
3231
  },
3161
3232
  /**
3162
3233
  * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
@@ -3170,11 +3241,11 @@ const yn = {
3170
3241
  * @throws {RequiredError}
3171
3242
  */
3172
3243
  async updateModelSource(a, n, e, t, s, o) {
3173
- const c = await r.updateModelSource(a, n, e, t, s, o), i = l?.serverIndex ?? 0, p = P["ModelsApi.updateModelSource"]?.[i]?.url;
3174
- return (d, h) => S(c, u, g, l)(d, p || h);
3244
+ const i = await r.updateModelSource(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ModelsApi.updateModelSource"]?.[c]?.url;
3245
+ return (d, h) => S(i, u, g, l)(d, p || h);
3175
3246
  }
3176
3247
  };
3177
- }, Cn = function(l, r, a) {
3248
+ }, Tn = function(l, r, a) {
3178
3249
  const n = F(l);
3179
3250
  return {
3180
3251
  /**
@@ -3188,8 +3259,8 @@ const yn = {
3188
3259
  * @param {*} [options] Override http request option.
3189
3260
  * @throws {RequiredError}
3190
3261
  */
3191
- compileModelSource(e, t, s, o, c, i) {
3192
- return n.compileModelSource(e, t, s, o, c, i).then((p) => p(a, r));
3262
+ compileModelSource(e, t, s, o, i, c) {
3263
+ return n.compileModelSource(e, t, s, o, i, c).then((p) => p(a, r));
3193
3264
  },
3194
3265
  /**
3195
3266
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
@@ -3202,8 +3273,8 @@ const yn = {
3202
3273
  * @param {*} [options] Override http request option.
3203
3274
  * @throws {RequiredError}
3204
3275
  */
3205
- executeQueryModel(e, t, s, o, c, i) {
3206
- return n.executeQueryModel(e, t, s, o, c, i).then((p) => p(a, r));
3276
+ executeQueryModel(e, t, s, o, i, c) {
3277
+ return n.executeQueryModel(e, t, s, o, i, c).then((p) => p(a, r));
3207
3278
  },
3208
3279
  /**
3209
3280
  * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
@@ -3217,8 +3288,8 @@ const yn = {
3217
3288
  * @param {*} [options] Override http request option.
3218
3289
  * @throws {RequiredError}
3219
3290
  */
3220
- getModel(e, t, s, o, c, i, p) {
3221
- return n.getModel(e, t, s, o, c, i, p).then((d) => d(a, r));
3291
+ getModel(e, t, s, o, i, c, p) {
3292
+ return n.getModel(e, t, s, o, i, c, p).then((d) => d(a, r));
3222
3293
  },
3223
3294
  /**
3224
3295
  * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
@@ -3230,8 +3301,8 @@ const yn = {
3230
3301
  * @param {*} [options] Override http request option.
3231
3302
  * @throws {RequiredError}
3232
3303
  */
3233
- listModels(e, t, s, o, c) {
3234
- return n.listModels(e, t, s, o, c).then((i) => i(a, r));
3304
+ listModels(e, t, s, o, i) {
3305
+ return n.listModels(e, t, s, o, i).then((c) => c(a, r));
3235
3306
  },
3236
3307
  /**
3237
3308
  * Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
@@ -3244,8 +3315,8 @@ const yn = {
3244
3315
  * @param {*} [options] Override http request option.
3245
3316
  * @throws {RequiredError}
3246
3317
  */
3247
- updateModelSource(e, t, s, o, c, i) {
3248
- return n.updateModelSource(e, t, s, o, c, i).then((p) => p(a, r));
3318
+ updateModelSource(e, t, s, o, i, c) {
3319
+ return n.updateModelSource(e, t, s, o, i, c).then((p) => p(a, r));
3249
3320
  }
3250
3321
  };
3251
3322
  };
@@ -3291,7 +3362,7 @@ class sa extends I {
3291
3362
  * @throws {RequiredError}
3292
3363
  */
3293
3364
  getModel(r, a, n, e, t, s, o) {
3294
- return F(this.configuration).getModel(r, a, n, e, t, s, o).then((c) => c(this.axios, this.basePath));
3365
+ return F(this.configuration).getModel(r, a, n, e, t, s, o).then((i) => i(this.axios, this.basePath));
3295
3366
  }
3296
3367
  /**
3297
3368
  * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
@@ -3321,7 +3392,7 @@ class sa extends I {
3321
3392
  return F(this.configuration).updateModelSource(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
3322
3393
  }
3323
3394
  }
3324
- const ca = function(l) {
3395
+ const ia = function(l) {
3325
3396
  return {
3326
3397
  /**
3327
3398
  * **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -3338,16 +3409,16 @@ const ca = function(l) {
3338
3409
  * @deprecated
3339
3410
  * @throws {RequiredError}
3340
3411
  */
3341
- executeNotebookCell: async (r, a, n, e, t, s, o, c, i = {}) => {
3412
+ executeNotebookCell: async (r, a, n, e, t, s, o, i, c = {}) => {
3342
3413
  m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", n), m("executeNotebookCell", "cellIndex", e);
3343
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, V);
3414
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, b);
3344
3415
  let h;
3345
3416
  l && (h = l.baseOptions);
3346
- const k = { method: "GET", ...h, ...i }, O = {}, y = {};
3347
- t !== void 0 && (y.versionId = t), s !== void 0 && (y.filter_params = s), o !== void 0 && (y.bypass_filters = o), c !== void 0 && (y.givens = c), O.Accept = "application/json", v(d, y);
3417
+ const k = { method: "GET", ...h, ...c }, O = {}, y = {};
3418
+ t !== void 0 && (y.versionId = t), s !== void 0 && (y.filter_params = s), o !== void 0 && (y.bypass_filters = o), i !== void 0 && (y.givens = i), O.Accept = "application/json", v(d, y);
3348
3419
  let N = h && h.headers ? h.headers : {};
3349
- return k.headers = { ...O, ...N, ...i.headers }, {
3350
- url: b(d),
3420
+ return k.headers = { ...O, ...N, ...c.headers }, {
3421
+ url: V(d),
3351
3422
  options: k
3352
3423
  };
3353
3424
  },
@@ -3364,15 +3435,15 @@ const ca = function(l) {
3364
3435
  */
3365
3436
  getNotebook: async (r, a, n, e, t = {}) => {
3366
3437
  m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", n);
3367
- const s = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s, V);
3368
- let c;
3369
- l && (c = l.baseOptions);
3370
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
3438
+ const s = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s, b);
3439
+ let i;
3440
+ l && (i = l.baseOptions);
3441
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
3371
3442
  e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
3372
- let h = c && c.headers ? c.headers : {};
3373
- return i.headers = { ...p, ...h, ...t.headers }, {
3374
- url: b(o),
3375
- options: i
3443
+ let h = i && i.headers ? i.headers : {};
3444
+ return c.headers = { ...p, ...h, ...t.headers }, {
3445
+ url: V(o),
3446
+ options: c
3376
3447
  };
3377
3448
  },
3378
3449
  /**
@@ -3387,20 +3458,20 @@ const ca = function(l) {
3387
3458
  */
3388
3459
  listNotebooks: async (r, a, n, e = {}) => {
3389
3460
  m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", a);
3390
- const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
3461
+ const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
3391
3462
  let o;
3392
3463
  l && (o = l.baseOptions);
3393
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
3394
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
3464
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
3465
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
3395
3466
  let d = o && o.headers ? o.headers : {};
3396
- return c.headers = { ...i, ...d, ...e.headers }, {
3397
- url: b(s),
3398
- options: c
3467
+ return i.headers = { ...c, ...d, ...e.headers }, {
3468
+ url: V(s),
3469
+ options: i
3399
3470
  };
3400
3471
  }
3401
3472
  };
3402
- }, H = function(l) {
3403
- const r = ca(l);
3473
+ }, z = function(l) {
3474
+ const r = ia(l);
3404
3475
  return {
3405
3476
  /**
3406
3477
  * **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -3417,8 +3488,8 @@ const ca = function(l) {
3417
3488
  * @deprecated
3418
3489
  * @throws {RequiredError}
3419
3490
  */
3420
- async executeNotebookCell(a, n, e, t, s, o, c, i, p) {
3421
- const d = await r.executeNotebookCell(a, n, e, t, s, o, c, i, p), h = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
3491
+ async executeNotebookCell(a, n, e, t, s, o, i, c, p) {
3492
+ const d = await r.executeNotebookCell(a, n, e, t, s, o, i, c, p), h = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
3422
3493
  return (O, y) => S(d, u, g, l)(O, k || y);
3423
3494
  },
3424
3495
  /**
@@ -3433,8 +3504,8 @@ const ca = function(l) {
3433
3504
  * @throws {RequiredError}
3434
3505
  */
3435
3506
  async getNotebook(a, n, e, t, s) {
3436
- const o = await r.getNotebook(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
3437
- return (p, d) => S(o, u, g, l)(p, i || d);
3507
+ const o = await r.getNotebook(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["NotebooksApi.getNotebook"]?.[i]?.url;
3508
+ return (p, d) => S(o, u, g, l)(p, c || d);
3438
3509
  },
3439
3510
  /**
3440
3511
  * **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
@@ -3447,12 +3518,12 @@ const ca = function(l) {
3447
3518
  * @throws {RequiredError}
3448
3519
  */
3449
3520
  async listNotebooks(a, n, e, t) {
3450
- const s = await r.listNotebooks(a, n, e, t), o = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[o]?.url;
3451
- return (i, p) => S(s, u, g, l)(i, c || p);
3521
+ const s = await r.listNotebooks(a, n, e, t), o = l?.serverIndex ?? 0, i = P["NotebooksApi.listNotebooks"]?.[o]?.url;
3522
+ return (c, p) => S(s, u, g, l)(c, i || p);
3452
3523
  }
3453
3524
  };
3454
- }, In = function(l, r, a) {
3455
- const n = H(l);
3525
+ }, En = function(l, r, a) {
3526
+ const n = z(l);
3456
3527
  return {
3457
3528
  /**
3458
3529
  * **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -3469,8 +3540,8 @@ const ca = function(l) {
3469
3540
  * @deprecated
3470
3541
  * @throws {RequiredError}
3471
3542
  */
3472
- executeNotebookCell(e, t, s, o, c, i, p, d, h) {
3473
- return n.executeNotebookCell(e, t, s, o, c, i, p, d, h).then((k) => k(a, r));
3543
+ executeNotebookCell(e, t, s, o, i, c, p, d, h) {
3544
+ return n.executeNotebookCell(e, t, s, o, i, c, p, d, h).then((k) => k(a, r));
3474
3545
  },
3475
3546
  /**
3476
3547
  * **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -3483,8 +3554,8 @@ const ca = function(l) {
3483
3554
  * @deprecated
3484
3555
  * @throws {RequiredError}
3485
3556
  */
3486
- getNotebook(e, t, s, o, c) {
3487
- return n.getNotebook(e, t, s, o, c).then((i) => i(a, r));
3557
+ getNotebook(e, t, s, o, i) {
3558
+ return n.getNotebook(e, t, s, o, i).then((c) => c(a, r));
3488
3559
  },
3489
3560
  /**
3490
3561
  * **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
@@ -3497,7 +3568,7 @@ const ca = function(l) {
3497
3568
  * @throws {RequiredError}
3498
3569
  */
3499
3570
  listNotebooks(e, t, s, o) {
3500
- return n.listNotebooks(e, t, s, o).then((c) => c(a, r));
3571
+ return n.listNotebooks(e, t, s, o).then((i) => i(a, r));
3501
3572
  }
3502
3573
  };
3503
3574
  };
@@ -3517,8 +3588,8 @@ class la extends I {
3517
3588
  * @deprecated
3518
3589
  * @throws {RequiredError}
3519
3590
  */
3520
- executeNotebookCell(r, a, n, e, t, s, o, c, i) {
3521
- return H(this.configuration).executeNotebookCell(r, a, n, e, t, s, o, c, i).then((p) => p(this.axios, this.basePath));
3591
+ executeNotebookCell(r, a, n, e, t, s, o, i, c) {
3592
+ return z(this.configuration).executeNotebookCell(r, a, n, e, t, s, o, i, c).then((p) => p(this.axios, this.basePath));
3522
3593
  }
3523
3594
  /**
3524
3595
  * **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -3532,7 +3603,7 @@ class la extends I {
3532
3603
  * @throws {RequiredError}
3533
3604
  */
3534
3605
  getNotebook(r, a, n, e, t) {
3535
- return H(this.configuration).getNotebook(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
3606
+ return z(this.configuration).getNotebook(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
3536
3607
  }
3537
3608
  /**
3538
3609
  * **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
@@ -3545,13 +3616,13 @@ class la extends I {
3545
3616
  * @throws {RequiredError}
3546
3617
  */
3547
3618
  listNotebooks(r, a, n, e) {
3548
- return H(this.configuration).listNotebooks(r, a, n, e).then((t) => t(this.axios, this.basePath));
3619
+ return z(this.configuration).listNotebooks(r, a, n, e).then((t) => t(this.axios, this.basePath));
3549
3620
  }
3550
3621
  }
3551
- const xn = {
3622
+ const fn = {
3552
3623
  True: "true",
3553
3624
  False: "false"
3554
- }, ia = function(l) {
3625
+ }, ca = function(l) {
3555
3626
  return {
3556
3627
  /**
3557
3628
  * 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
@@ -3564,15 +3635,15 @@ const xn = {
3564
3635
  */
3565
3636
  createPackage: async (r, a, n, e = {}) => {
3566
3637
  m("createPackage", "environmentName", r), m("createPackage", "_package", a);
3567
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), s = new URL(t, V);
3638
+ const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), s = new URL(t, b);
3568
3639
  let o;
3569
3640
  l && (o = l.baseOptions);
3570
- const c = { method: "POST", ...o, ...e }, i = {}, p = {};
3571
- n !== void 0 && (p.dryRun = n), i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
3641
+ const i = { method: "POST", ...o, ...e }, c = {}, p = {};
3642
+ n !== void 0 && (p.dryRun = n), c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
3572
3643
  let d = o && o.headers ? o.headers : {};
3573
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(a, c, l), {
3574
- url: b(s),
3575
- options: c
3644
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(a, i, l), {
3645
+ url: V(s),
3646
+ options: i
3576
3647
  };
3577
3648
  },
3578
3649
  /**
@@ -3585,14 +3656,14 @@ const xn = {
3585
3656
  */
3586
3657
  deletePackage: async (r, a, n = {}) => {
3587
3658
  m("deletePackage", "environmentName", r), m("deletePackage", "packageName", a);
3588
- const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
3659
+ const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, b);
3589
3660
  let s;
3590
3661
  l && (s = l.baseOptions);
3591
- const o = { method: "DELETE", ...s, ...n }, c = {}, i = {};
3592
- c.Accept = "application/json", v(t, i);
3662
+ const o = { method: "DELETE", ...s, ...n }, i = {}, c = {};
3663
+ i.Accept = "application/json", v(t, c);
3593
3664
  let p = s && s.headers ? s.headers : {};
3594
- return o.headers = { ...c, ...p, ...n.headers }, {
3595
- url: b(t),
3665
+ return o.headers = { ...i, ...p, ...n.headers }, {
3666
+ url: V(t),
3596
3667
  options: o
3597
3668
  };
3598
3669
  },
@@ -3608,15 +3679,15 @@ const xn = {
3608
3679
  */
3609
3680
  getPackage: async (r, a, n, e, t = {}) => {
3610
3681
  m("getPackage", "environmentName", r), m("getPackage", "packageName", a);
3611
- const s = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, V);
3612
- let c;
3613
- l && (c = l.baseOptions);
3614
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
3682
+ const s = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, b);
3683
+ let i;
3684
+ l && (i = l.baseOptions);
3685
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
3615
3686
  n !== void 0 && (d.versionId = n), e !== void 0 && (d.reload = e), p.Accept = "application/json", v(o, d);
3616
- let h = c && c.headers ? c.headers : {};
3617
- return i.headers = { ...p, ...h, ...t.headers }, {
3618
- url: b(o),
3619
- options: i
3687
+ let h = i && i.headers ? i.headers : {};
3688
+ return c.headers = { ...p, ...h, ...t.headers }, {
3689
+ url: V(o),
3690
+ options: c
3620
3691
  };
3621
3692
  },
3622
3693
  /**
@@ -3630,15 +3701,15 @@ const xn = {
3630
3701
  */
3631
3702
  getPackageBuildPlan: async (r, a, n, e = {}) => {
3632
3703
  m("getPackageBuildPlan", "environmentName", r), m("getPackageBuildPlan", "packageName", a);
3633
- const t = "/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
3704
+ const t = "/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
3634
3705
  let o;
3635
3706
  l && (o = l.baseOptions);
3636
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
3637
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
3707
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
3708
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
3638
3709
  let d = o && o.headers ? o.headers : {};
3639
- return c.headers = { ...i, ...d, ...e.headers }, {
3640
- url: b(s),
3641
- options: c
3710
+ return i.headers = { ...c, ...d, ...e.headers }, {
3711
+ url: V(s),
3712
+ options: i
3642
3713
  };
3643
3714
  },
3644
3715
  /**
@@ -3652,15 +3723,15 @@ const xn = {
3652
3723
  */
3653
3724
  getPackageClassification: async (r, a, n, e = {}) => {
3654
3725
  m("getPackageClassification", "environmentName", r), m("getPackageClassification", "packageName", a);
3655
- const t = "/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
3726
+ const t = "/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
3656
3727
  let o;
3657
3728
  l && (o = l.baseOptions);
3658
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
3659
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
3729
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
3730
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
3660
3731
  let d = o && o.headers ? o.headers : {};
3661
- return c.headers = { ...i, ...d, ...e.headers }, {
3662
- url: b(s),
3663
- options: c
3732
+ return i.headers = { ...c, ...d, ...e.headers }, {
3733
+ url: V(s),
3734
+ options: i
3664
3735
  };
3665
3736
  },
3666
3737
  /**
@@ -3674,15 +3745,15 @@ const xn = {
3674
3745
  */
3675
3746
  getPackageEmbeddingIndex: async (r, a, n, e = {}) => {
3676
3747
  m("getPackageEmbeddingIndex", "environmentName", r), m("getPackageEmbeddingIndex", "packageName", a);
3677
- const t = "/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
3748
+ const t = "/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
3678
3749
  let o;
3679
3750
  l && (o = l.baseOptions);
3680
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
3681
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
3751
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
3752
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
3682
3753
  let d = o && o.headers ? o.headers : {};
3683
- return c.headers = { ...i, ...d, ...e.headers }, {
3684
- url: b(s),
3685
- options: c
3754
+ return i.headers = { ...c, ...d, ...e.headers }, {
3755
+ url: V(s),
3756
+ options: i
3686
3757
  };
3687
3758
  },
3688
3759
  /**
@@ -3697,15 +3768,15 @@ const xn = {
3697
3768
  */
3698
3769
  getPackageEntities: async (r, a, n, e, t = {}) => {
3699
3770
  m("getPackageEntities", "environmentName", r), m("getPackageEntities", "packageName", a);
3700
- const s = "/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, V);
3701
- let c;
3702
- l && (c = l.baseOptions);
3703
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
3771
+ const s = "/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, b);
3772
+ let i;
3773
+ l && (i = l.baseOptions);
3774
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
3704
3775
  n !== void 0 && (d.versionId = n), e !== void 0 && (d.includeHiddenFilesAndSources = e), p.Accept = "application/json", v(o, d);
3705
- let h = c && c.headers ? c.headers : {};
3706
- return i.headers = { ...p, ...h, ...t.headers }, {
3707
- url: b(o),
3708
- options: i
3776
+ let h = i && i.headers ? i.headers : {};
3777
+ return c.headers = { ...p, ...h, ...t.headers }, {
3778
+ url: V(o),
3779
+ options: c
3709
3780
  };
3710
3781
  },
3711
3782
  /**
@@ -3719,15 +3790,15 @@ const xn = {
3719
3790
  */
3720
3791
  getPackageStatus: async (r, a, n, e = {}) => {
3721
3792
  m("getPackageStatus", "environmentName", r), m("getPackageStatus", "packageName", a);
3722
- const t = "/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
3793
+ const t = "/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
3723
3794
  let o;
3724
3795
  l && (o = l.baseOptions);
3725
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
3726
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
3796
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
3797
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
3727
3798
  let d = o && o.headers ? o.headers : {};
3728
- return c.headers = { ...i, ...d, ...e.headers }, {
3729
- url: b(s),
3730
- options: c
3799
+ return i.headers = { ...c, ...d, ...e.headers }, {
3800
+ url: V(s),
3801
+ options: i
3731
3802
  };
3732
3803
  },
3733
3804
  /**
@@ -3739,14 +3810,14 @@ const xn = {
3739
3810
  */
3740
3811
  listPackages: async (r, a = {}) => {
3741
3812
  m("listPackages", "environmentName", r);
3742
- const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
3813
+ const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, b);
3743
3814
  let t;
3744
3815
  l && (t = l.baseOptions);
3745
- const s = { method: "GET", ...t, ...a }, o = {}, c = {};
3746
- o.Accept = "application/json", v(e, c);
3747
- let i = t && t.headers ? t.headers : {};
3748
- return s.headers = { ...o, ...i, ...a.headers }, {
3749
- url: b(e),
3816
+ const s = { method: "GET", ...t, ...a }, o = {}, i = {};
3817
+ o.Accept = "application/json", v(e, i);
3818
+ let c = t && t.headers ? t.headers : {};
3819
+ return s.headers = { ...o, ...c, ...a.headers }, {
3820
+ url: V(e),
3750
3821
  options: s
3751
3822
  };
3752
3823
  },
@@ -3762,20 +3833,20 @@ const xn = {
3762
3833
  */
3763
3834
  updatePackage: async (r, a, n, e = {}) => {
3764
3835
  m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", n);
3765
- const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
3836
+ const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
3766
3837
  let o;
3767
3838
  l && (o = l.baseOptions);
3768
- const c = { method: "PATCH", ...o, ...e }, i = {}, p = {};
3769
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
3839
+ const i = { method: "PATCH", ...o, ...e }, c = {}, p = {};
3840
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
3770
3841
  let d = o && o.headers ? o.headers : {};
3771
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
3772
- url: b(s),
3773
- options: c
3842
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
3843
+ url: V(s),
3844
+ options: i
3774
3845
  };
3775
3846
  }
3776
3847
  };
3777
- }, R = function(l) {
3778
- const r = ia(l);
3848
+ }, x = function(l) {
3849
+ const r = ca(l);
3779
3850
  return {
3780
3851
  /**
3781
3852
  * 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
@@ -3787,8 +3858,8 @@ const xn = {
3787
3858
  * @throws {RequiredError}
3788
3859
  */
3789
3860
  async createPackage(a, n, e, t) {
3790
- const s = await r.createPackage(a, n, e, t), o = l?.serverIndex ?? 0, c = P["PackagesApi.createPackage"]?.[o]?.url;
3791
- return (i, p) => S(s, u, g, l)(i, c || p);
3861
+ const s = await r.createPackage(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.createPackage"]?.[o]?.url;
3862
+ return (c, p) => S(s, u, g, l)(c, i || p);
3792
3863
  },
3793
3864
  /**
3794
3865
  * 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. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
@@ -3800,7 +3871,7 @@ const xn = {
3800
3871
  */
3801
3872
  async deletePackage(a, n, e) {
3802
3873
  const t = await r.deletePackage(a, n, e), s = l?.serverIndex ?? 0, o = P["PackagesApi.deletePackage"]?.[s]?.url;
3803
- return (c, i) => S(t, u, g, l)(c, o || i);
3874
+ return (i, c) => S(t, u, g, l)(i, o || c);
3804
3875
  },
3805
3876
  /**
3806
3877
  * 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 selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
@@ -3813,8 +3884,8 @@ const xn = {
3813
3884
  * @throws {RequiredError}
3814
3885
  */
3815
3886
  async getPackage(a, n, e, t, s) {
3816
- const o = await r.getPackage(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
3817
- return (p, d) => S(o, u, g, l)(p, i || d);
3887
+ const o = await r.getPackage(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["PackagesApi.getPackage"]?.[i]?.url;
3888
+ return (p, d) => S(o, u, g, l)(p, c || d);
3818
3889
  },
3819
3890
  /**
3820
3891
  * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
@@ -3826,8 +3897,8 @@ const xn = {
3826
3897
  * @throws {RequiredError}
3827
3898
  */
3828
3899
  async getPackageBuildPlan(a, n, e, t) {
3829
- const s = await r.getPackageBuildPlan(a, n, e, t), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageBuildPlan"]?.[o]?.url;
3830
- return (i, p) => S(s, u, g, l)(i, c || p);
3900
+ const s = await r.getPackageBuildPlan(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageBuildPlan"]?.[o]?.url;
3901
+ return (c, p) => S(s, u, g, l)(c, i || p);
3831
3902
  },
3832
3903
  /**
3833
3904
  * For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
@@ -3839,8 +3910,8 @@ const xn = {
3839
3910
  * @throws {RequiredError}
3840
3911
  */
3841
3912
  async getPackageClassification(a, n, e, t) {
3842
- const s = await r.getPackageClassification(a, n, e, t), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageClassification"]?.[o]?.url;
3843
- return (i, p) => S(s, u, g, l)(i, c || p);
3913
+ const s = await r.getPackageClassification(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageClassification"]?.[o]?.url;
3914
+ return (c, p) => S(s, u, g, l)(c, i || p);
3844
3915
  },
3845
3916
  /**
3846
3917
  * The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
@@ -3852,8 +3923,8 @@ const xn = {
3852
3923
  * @throws {RequiredError}
3853
3924
  */
3854
3925
  async getPackageEmbeddingIndex(a, n, e, t) {
3855
- const s = await r.getPackageEmbeddingIndex(a, n, e, t), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageEmbeddingIndex"]?.[o]?.url;
3856
- return (i, p) => S(s, u, g, l)(i, c || p);
3926
+ const s = await r.getPackageEmbeddingIndex(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageEmbeddingIndex"]?.[o]?.url;
3927
+ return (c, p) => S(s, u, g, l)(c, i || p);
3857
3928
  },
3858
3929
  /**
3859
3930
  * What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
@@ -3866,8 +3937,8 @@ const xn = {
3866
3937
  * @throws {RequiredError}
3867
3938
  */
3868
3939
  async getPackageEntities(a, n, e, t, s) {
3869
- const o = await r.getPackageEntities(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageEntities"]?.[c]?.url;
3870
- return (p, d) => S(o, u, g, l)(p, i || d);
3940
+ const o = await r.getPackageEntities(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageEntities"]?.[i]?.url;
3941
+ return (p, d) => S(o, u, g, l)(p, c || d);
3871
3942
  },
3872
3943
  /**
3873
3944
  * The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
@@ -3879,8 +3950,8 @@ const xn = {
3879
3950
  * @throws {RequiredError}
3880
3951
  */
3881
3952
  async getPackageStatus(a, n, e, t) {
3882
- const s = await r.getPackageStatus(a, n, e, t), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageStatus"]?.[o]?.url;
3883
- return (i, p) => S(s, u, g, l)(i, c || p);
3953
+ const s = await r.getPackageStatus(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageStatus"]?.[o]?.url;
3954
+ return (c, p) => S(s, u, g, l)(c, i || p);
3884
3955
  },
3885
3956
  /**
3886
3957
  * 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`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
@@ -3891,7 +3962,7 @@ const xn = {
3891
3962
  */
3892
3963
  async listPackages(a, n) {
3893
3964
  const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, s = P["PackagesApi.listPackages"]?.[t]?.url;
3894
- return (o, c) => S(e, u, g, l)(o, s || c);
3965
+ return (o, i) => S(e, u, g, l)(o, s || i);
3895
3966
  },
3896
3967
  /**
3897
3968
  * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. 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. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
@@ -3904,12 +3975,12 @@ const xn = {
3904
3975
  * @throws {RequiredError}
3905
3976
  */
3906
3977
  async updatePackage(a, n, e, t) {
3907
- const s = await r.updatePackage(a, n, e, t), o = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[o]?.url;
3908
- return (i, p) => S(s, u, g, l)(i, c || p);
3978
+ const s = await r.updatePackage(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.updatePackage"]?.[o]?.url;
3979
+ return (c, p) => S(s, u, g, l)(c, i || p);
3909
3980
  }
3910
3981
  };
3911
- }, Rn = function(l, r, a) {
3912
- const n = R(l);
3982
+ }, wn = function(l, r, a) {
3983
+ const n = x(l);
3913
3984
  return {
3914
3985
  /**
3915
3986
  * 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
@@ -3921,7 +3992,7 @@ const xn = {
3921
3992
  * @throws {RequiredError}
3922
3993
  */
3923
3994
  createPackage(e, t, s, o) {
3924
- return n.createPackage(e, t, s, o).then((c) => c(a, r));
3995
+ return n.createPackage(e, t, s, o).then((i) => i(a, r));
3925
3996
  },
3926
3997
  /**
3927
3998
  * 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. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
@@ -3944,8 +4015,8 @@ const xn = {
3944
4015
  * @param {*} [options] Override http request option.
3945
4016
  * @throws {RequiredError}
3946
4017
  */
3947
- getPackage(e, t, s, o, c) {
3948
- return n.getPackage(e, t, s, o, c).then((i) => i(a, r));
4018
+ getPackage(e, t, s, o, i) {
4019
+ return n.getPackage(e, t, s, o, i).then((c) => c(a, r));
3949
4020
  },
3950
4021
  /**
3951
4022
  * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
@@ -3957,7 +4028,7 @@ const xn = {
3957
4028
  * @throws {RequiredError}
3958
4029
  */
3959
4030
  getPackageBuildPlan(e, t, s, o) {
3960
- return n.getPackageBuildPlan(e, t, s, o).then((c) => c(a, r));
4031
+ return n.getPackageBuildPlan(e, t, s, o).then((i) => i(a, r));
3961
4032
  },
3962
4033
  /**
3963
4034
  * For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
@@ -3969,7 +4040,7 @@ const xn = {
3969
4040
  * @throws {RequiredError}
3970
4041
  */
3971
4042
  getPackageClassification(e, t, s, o) {
3972
- return n.getPackageClassification(e, t, s, o).then((c) => c(a, r));
4043
+ return n.getPackageClassification(e, t, s, o).then((i) => i(a, r));
3973
4044
  },
3974
4045
  /**
3975
4046
  * The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
@@ -3981,7 +4052,7 @@ const xn = {
3981
4052
  * @throws {RequiredError}
3982
4053
  */
3983
4054
  getPackageEmbeddingIndex(e, t, s, o) {
3984
- return n.getPackageEmbeddingIndex(e, t, s, o).then((c) => c(a, r));
4055
+ return n.getPackageEmbeddingIndex(e, t, s, o).then((i) => i(a, r));
3985
4056
  },
3986
4057
  /**
3987
4058
  * What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
@@ -3993,8 +4064,8 @@ const xn = {
3993
4064
  * @param {*} [options] Override http request option.
3994
4065
  * @throws {RequiredError}
3995
4066
  */
3996
- getPackageEntities(e, t, s, o, c) {
3997
- return n.getPackageEntities(e, t, s, o, c).then((i) => i(a, r));
4067
+ getPackageEntities(e, t, s, o, i) {
4068
+ return n.getPackageEntities(e, t, s, o, i).then((c) => c(a, r));
3998
4069
  },
3999
4070
  /**
4000
4071
  * The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
@@ -4006,7 +4077,7 @@ const xn = {
4006
4077
  * @throws {RequiredError}
4007
4078
  */
4008
4079
  getPackageStatus(e, t, s, o) {
4009
- return n.getPackageStatus(e, t, s, o).then((c) => c(a, r));
4080
+ return n.getPackageStatus(e, t, s, o).then((i) => i(a, r));
4010
4081
  },
4011
4082
  /**
4012
4083
  * 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`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
@@ -4029,7 +4100,7 @@ const xn = {
4029
4100
  * @throws {RequiredError}
4030
4101
  */
4031
4102
  updatePackage(e, t, s, o) {
4032
- return n.updatePackage(e, t, s, o).then((c) => c(a, r));
4103
+ return n.updatePackage(e, t, s, o).then((i) => i(a, r));
4033
4104
  }
4034
4105
  };
4035
4106
  };
@@ -4044,7 +4115,7 @@ class pa extends I {
4044
4115
  * @throws {RequiredError}
4045
4116
  */
4046
4117
  createPackage(r, a, n, e) {
4047
- return R(this.configuration).createPackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
4118
+ return x(this.configuration).createPackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
4048
4119
  }
4049
4120
  /**
4050
4121
  * 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. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
@@ -4055,7 +4126,7 @@ class pa extends I {
4055
4126
  * @throws {RequiredError}
4056
4127
  */
4057
4128
  deletePackage(r, a, n) {
4058
- return R(this.configuration).deletePackage(r, a, n).then((e) => e(this.axios, this.basePath));
4129
+ return x(this.configuration).deletePackage(r, a, n).then((e) => e(this.axios, this.basePath));
4059
4130
  }
4060
4131
  /**
4061
4132
  * 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 selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
@@ -4068,7 +4139,7 @@ class pa extends I {
4068
4139
  * @throws {RequiredError}
4069
4140
  */
4070
4141
  getPackage(r, a, n, e, t) {
4071
- return R(this.configuration).getPackage(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4142
+ return x(this.configuration).getPackage(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4072
4143
  }
4073
4144
  /**
4074
4145
  * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
@@ -4080,7 +4151,7 @@ class pa extends I {
4080
4151
  * @throws {RequiredError}
4081
4152
  */
4082
4153
  getPackageBuildPlan(r, a, n, e) {
4083
- return R(this.configuration).getPackageBuildPlan(r, a, n, e).then((t) => t(this.axios, this.basePath));
4154
+ return x(this.configuration).getPackageBuildPlan(r, a, n, e).then((t) => t(this.axios, this.basePath));
4084
4155
  }
4085
4156
  /**
4086
4157
  * For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
@@ -4092,7 +4163,7 @@ class pa extends I {
4092
4163
  * @throws {RequiredError}
4093
4164
  */
4094
4165
  getPackageClassification(r, a, n, e) {
4095
- return R(this.configuration).getPackageClassification(r, a, n, e).then((t) => t(this.axios, this.basePath));
4166
+ return x(this.configuration).getPackageClassification(r, a, n, e).then((t) => t(this.axios, this.basePath));
4096
4167
  }
4097
4168
  /**
4098
4169
  * The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
@@ -4104,7 +4175,7 @@ class pa extends I {
4104
4175
  * @throws {RequiredError}
4105
4176
  */
4106
4177
  getPackageEmbeddingIndex(r, a, n, e) {
4107
- return R(this.configuration).getPackageEmbeddingIndex(r, a, n, e).then((t) => t(this.axios, this.basePath));
4178
+ return x(this.configuration).getPackageEmbeddingIndex(r, a, n, e).then((t) => t(this.axios, this.basePath));
4108
4179
  }
4109
4180
  /**
4110
4181
  * What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
@@ -4117,7 +4188,7 @@ class pa extends I {
4117
4188
  * @throws {RequiredError}
4118
4189
  */
4119
4190
  getPackageEntities(r, a, n, e, t) {
4120
- return R(this.configuration).getPackageEntities(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4191
+ return x(this.configuration).getPackageEntities(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4121
4192
  }
4122
4193
  /**
4123
4194
  * The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
@@ -4129,7 +4200,7 @@ class pa extends I {
4129
4200
  * @throws {RequiredError}
4130
4201
  */
4131
4202
  getPackageStatus(r, a, n, e) {
4132
- return R(this.configuration).getPackageStatus(r, a, n, e).then((t) => t(this.axios, this.basePath));
4203
+ return x(this.configuration).getPackageStatus(r, a, n, e).then((t) => t(this.axios, this.basePath));
4133
4204
  }
4134
4205
  /**
4135
4206
  * 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`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
@@ -4139,7 +4210,7 @@ class pa extends I {
4139
4210
  * @throws {RequiredError}
4140
4211
  */
4141
4212
  listPackages(r, a) {
4142
- return R(this.configuration).listPackages(r, a).then((n) => n(this.axios, this.basePath));
4213
+ return x(this.configuration).listPackages(r, a).then((n) => n(this.axios, this.basePath));
4143
4214
  }
4144
4215
  /**
4145
4216
  * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. 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. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
@@ -4152,7 +4223,7 @@ class pa extends I {
4152
4223
  * @throws {RequiredError}
4153
4224
  */
4154
4225
  updatePackage(r, a, n, e) {
4155
- return R(this.configuration).updatePackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
4226
+ return x(this.configuration).updatePackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
4156
4227
  }
4157
4228
  }
4158
4229
  const da = function(l) {
@@ -4164,14 +4235,14 @@ const da = function(l) {
4164
4235
  * @throws {RequiredError}
4165
4236
  */
4166
4237
  deleteTheme: async (r = {}) => {
4167
- const a = "/theme", n = new URL(a, V);
4238
+ const a = "/theme", n = new URL(a, b);
4168
4239
  let e;
4169
4240
  l && (e = l.baseOptions);
4170
4241
  const t = { method: "DELETE", ...e, ...r }, s = {}, o = {};
4171
4242
  s.Accept = "application/json", v(n, o);
4172
- let c = e && e.headers ? e.headers : {};
4173
- return t.headers = { ...s, ...c, ...r.headers }, {
4174
- url: b(n),
4243
+ let i = e && e.headers ? e.headers : {};
4244
+ return t.headers = { ...s, ...i, ...r.headers }, {
4245
+ url: V(n),
4175
4246
  options: t
4176
4247
  };
4177
4248
  },
@@ -4183,14 +4254,14 @@ const da = function(l) {
4183
4254
  * @throws {RequiredError}
4184
4255
  */
4185
4256
  getStatus: async (r, a = {}) => {
4186
- const n = "/status", e = new URL(n, V);
4257
+ const n = "/status", e = new URL(n, b);
4187
4258
  let t;
4188
4259
  l && (t = l.baseOptions);
4189
- const s = { method: "GET", ...t, ...a }, o = {}, c = {};
4190
- r !== void 0 && (c.includeLoading = r), o.Accept = "application/json", v(e, c);
4191
- let i = t && t.headers ? t.headers : {};
4192
- return s.headers = { ...o, ...i, ...a.headers }, {
4193
- url: b(e),
4260
+ const s = { method: "GET", ...t, ...a }, o = {}, i = {};
4261
+ r !== void 0 && (i.includeLoading = r), o.Accept = "application/json", v(e, i);
4262
+ let c = t && t.headers ? t.headers : {};
4263
+ return s.headers = { ...o, ...c, ...a.headers }, {
4264
+ url: V(e),
4194
4265
  options: s
4195
4266
  };
4196
4267
  },
@@ -4201,14 +4272,14 @@ const da = function(l) {
4201
4272
  * @throws {RequiredError}
4202
4273
  */
4203
4274
  getTheme: async (r = {}) => {
4204
- const a = "/theme", n = new URL(a, V);
4275
+ const a = "/theme", n = new URL(a, b);
4205
4276
  let e;
4206
4277
  l && (e = l.baseOptions);
4207
4278
  const t = { method: "GET", ...e, ...r }, s = {}, o = {};
4208
4279
  s.Accept = "application/json", v(n, o);
4209
- let c = e && e.headers ? e.headers : {};
4210
- return t.headers = { ...s, ...c, ...r.headers }, {
4211
- url: b(n),
4280
+ let i = e && e.headers ? e.headers : {};
4281
+ return t.headers = { ...s, ...i, ...r.headers }, {
4282
+ url: V(n),
4212
4283
  options: t
4213
4284
  };
4214
4285
  },
@@ -4221,14 +4292,14 @@ const da = function(l) {
4221
4292
  */
4222
4293
  updateTheme: async (r, a = {}) => {
4223
4294
  m("updateTheme", "theme", r);
4224
- const n = "/theme", e = new URL(n, V);
4295
+ const n = "/theme", e = new URL(n, b);
4225
4296
  let t;
4226
4297
  l && (t = l.baseOptions);
4227
- const s = { method: "PUT", ...t, ...a }, o = {}, c = {};
4228
- o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, c);
4229
- let i = t && t.headers ? t.headers : {};
4230
- return s.headers = { ...o, ...i, ...a.headers }, s.data = A(r, s, l), {
4231
- url: b(e),
4298
+ const s = { method: "PUT", ...t, ...a }, o = {}, i = {};
4299
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
4300
+ let c = t && t.headers ? t.headers : {};
4301
+ return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
4302
+ url: V(e),
4232
4303
  options: s
4233
4304
  };
4234
4305
  }
@@ -4255,7 +4326,7 @@ const da = function(l) {
4255
4326
  */
4256
4327
  async getStatus(a, n) {
4257
4328
  const e = await r.getStatus(a, n), t = l?.serverIndex ?? 0, s = P["PublisherApi.getStatus"]?.[t]?.url;
4258
- return (o, c) => S(e, u, g, l)(o, s || c);
4329
+ return (o, i) => S(e, u, g, l)(o, s || i);
4259
4330
  },
4260
4331
  /**
4261
4332
  * 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.
@@ -4276,10 +4347,10 @@ const da = function(l) {
4276
4347
  */
4277
4348
  async updateTheme(a, n) {
4278
4349
  const e = await r.updateTheme(a, n), t = l?.serverIndex ?? 0, s = P["PublisherApi.updateTheme"]?.[t]?.url;
4279
- return (o, c) => S(e, u, g, l)(o, s || c);
4350
+ return (o, i) => S(e, u, g, l)(o, s || i);
4280
4351
  }
4281
4352
  };
4282
- }, Nn = function(l, r, a) {
4353
+ }, Mn = function(l, r, a) {
4283
4354
  const n = D(l);
4284
4355
  return {
4285
4356
  /**
@@ -4376,15 +4447,15 @@ const ha = function(l) {
4376
4447
  */
4377
4448
  getReport: async (r, a, n, e, t = {}) => {
4378
4449
  m("getReport", "environmentName", r), m("getReport", "packageName", a), m("getReport", "path", n);
4379
- const s = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s, V);
4380
- let c;
4381
- l && (c = l.baseOptions);
4382
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
4450
+ const s = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s, b);
4451
+ let i;
4452
+ l && (i = l.baseOptions);
4453
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
4383
4454
  e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
4384
- let h = c && c.headers ? c.headers : {};
4385
- return i.headers = { ...p, ...h, ...t.headers }, {
4386
- url: b(o),
4387
- options: i
4455
+ let h = i && i.headers ? i.headers : {};
4456
+ return c.headers = { ...p, ...h, ...t.headers }, {
4457
+ url: V(o),
4458
+ options: c
4388
4459
  };
4389
4460
  },
4390
4461
  /**
@@ -4398,15 +4469,15 @@ const ha = function(l) {
4398
4469
  */
4399
4470
  listReports: async (r, a, n, e = {}) => {
4400
4471
  m("listReports", "environmentName", r), m("listReports", "packageName", a);
4401
- const t = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
4472
+ const t = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
4402
4473
  let o;
4403
4474
  l && (o = l.baseOptions);
4404
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
4405
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
4475
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
4476
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
4406
4477
  let d = o && o.headers ? o.headers : {};
4407
- return c.headers = { ...i, ...d, ...e.headers }, {
4408
- url: b(s),
4409
- options: c
4478
+ return i.headers = { ...c, ...d, ...e.headers }, {
4479
+ url: V(s),
4480
+ options: i
4410
4481
  };
4411
4482
  }
4412
4483
  };
@@ -4424,8 +4495,8 @@ const ha = function(l) {
4424
4495
  * @throws {RequiredError}
4425
4496
  */
4426
4497
  async getReport(a, n, e, t, s) {
4427
- const o = await r.getReport(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["ReportsApi.getReport"]?.[c]?.url;
4428
- return (p, d) => S(o, u, g, l)(p, i || d);
4498
+ const o = await r.getReport(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ReportsApi.getReport"]?.[i]?.url;
4499
+ return (p, d) => S(o, u, g, l)(p, c || d);
4429
4500
  },
4430
4501
  /**
4431
4502
  * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
@@ -4437,11 +4508,11 @@ const ha = function(l) {
4437
4508
  * @throws {RequiredError}
4438
4509
  */
4439
4510
  async listReports(a, n, e, t) {
4440
- const s = await r.listReports(a, n, e, t), o = l?.serverIndex ?? 0, c = P["ReportsApi.listReports"]?.[o]?.url;
4441
- return (i, p) => S(s, u, g, l)(i, c || p);
4511
+ const s = await r.listReports(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ReportsApi.listReports"]?.[o]?.url;
4512
+ return (c, p) => S(s, u, g, l)(c, i || p);
4442
4513
  }
4443
4514
  };
4444
- }, Un = function(l, r, a) {
4515
+ }, Fn = function(l, r, a) {
4445
4516
  const n = X(l);
4446
4517
  return {
4447
4518
  /**
@@ -4454,8 +4525,8 @@ const ha = function(l) {
4454
4525
  * @param {*} [options] Override http request option.
4455
4526
  * @throws {RequiredError}
4456
4527
  */
4457
- getReport(e, t, s, o, c) {
4458
- return n.getReport(e, t, s, o, c).then((i) => i(a, r));
4528
+ getReport(e, t, s, o, i) {
4529
+ return n.getReport(e, t, s, o, i).then((c) => c(a, r));
4459
4530
  },
4460
4531
  /**
4461
4532
  * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
@@ -4467,7 +4538,7 @@ const ha = function(l) {
4467
4538
  * @throws {RequiredError}
4468
4539
  */
4469
4540
  listReports(e, t, s, o) {
4470
- return n.listReports(e, t, s, o).then((c) => c(a, r));
4541
+ return n.listReports(e, t, s, o).then((i) => i(a, r));
4471
4542
  }
4472
4543
  };
4473
4544
  };
@@ -4512,15 +4583,15 @@ const ga = function(l) {
4512
4583
  */
4513
4584
  getSkill: async (r, a, n, e, t = {}) => {
4514
4585
  m("getSkill", "environmentName", r), m("getSkill", "packageName", a), m("getSkill", "skillName", n);
4515
- const s = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{skillName}", encodeURIComponent(String(n))), o = new URL(s, V);
4516
- let c;
4517
- l && (c = l.baseOptions);
4518
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
4586
+ const s = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{skillName}", encodeURIComponent(String(n))), o = new URL(s, b);
4587
+ let i;
4588
+ l && (i = l.baseOptions);
4589
+ const c = { method: "GET", ...i, ...t }, p = {}, d = {};
4519
4590
  e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
4520
- let h = c && c.headers ? c.headers : {};
4521
- return i.headers = { ...p, ...h, ...t.headers }, {
4522
- url: b(o),
4523
- options: i
4591
+ let h = i && i.headers ? i.headers : {};
4592
+ return c.headers = { ...p, ...h, ...t.headers }, {
4593
+ url: V(o),
4594
+ options: c
4524
4595
  };
4525
4596
  },
4526
4597
  /**
@@ -4534,15 +4605,15 @@ const ga = function(l) {
4534
4605
  */
4535
4606
  listSkills: async (r, a, n, e = {}) => {
4536
4607
  m("listSkills", "environmentName", r), m("listSkills", "packageName", a);
4537
- const t = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
4608
+ const t = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
4538
4609
  let o;
4539
4610
  l && (o = l.baseOptions);
4540
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
4541
- n !== void 0 && (p.versionId = n), i.Accept = "application/json", v(s, p);
4611
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
4612
+ n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
4542
4613
  let d = o && o.headers ? o.headers : {};
4543
- return c.headers = { ...i, ...d, ...e.headers }, {
4544
- url: b(s),
4545
- options: c
4614
+ return i.headers = { ...c, ...d, ...e.headers }, {
4615
+ url: V(s),
4616
+ options: i
4546
4617
  };
4547
4618
  }
4548
4619
  };
@@ -4560,8 +4631,8 @@ const ga = function(l) {
4560
4631
  * @throws {RequiredError}
4561
4632
  */
4562
4633
  async getSkill(a, n, e, t, s) {
4563
- const o = await r.getSkill(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["SkillsApi.getSkill"]?.[c]?.url;
4564
- return (p, d) => S(o, u, g, l)(p, i || d);
4634
+ const o = await r.getSkill(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["SkillsApi.getSkill"]?.[i]?.url;
4635
+ return (p, d) => S(o, u, g, l)(p, c || d);
4565
4636
  },
4566
4637
  /**
4567
4638
  * Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
@@ -4573,11 +4644,11 @@ const ga = function(l) {
4573
4644
  * @throws {RequiredError}
4574
4645
  */
4575
4646
  async listSkills(a, n, e, t) {
4576
- const s = await r.listSkills(a, n, e, t), o = l?.serverIndex ?? 0, c = P["SkillsApi.listSkills"]?.[o]?.url;
4577
- return (i, p) => S(s, u, g, l)(i, c || p);
4647
+ const s = await r.listSkills(a, n, e, t), o = l?.serverIndex ?? 0, i = P["SkillsApi.listSkills"]?.[o]?.url;
4648
+ return (c, p) => S(s, u, g, l)(c, i || p);
4578
4649
  }
4579
4650
  };
4580
- }, Tn = function(l, r, a) {
4651
+ }, Bn = function(l, r, a) {
4581
4652
  const n = ee(l);
4582
4653
  return {
4583
4654
  /**
@@ -4590,8 +4661,8 @@ const ga = function(l) {
4590
4661
  * @param {*} [options] Override http request option.
4591
4662
  * @throws {RequiredError}
4592
4663
  */
4593
- getSkill(e, t, s, o, c) {
4594
- return n.getSkill(e, t, s, o, c).then((i) => i(a, r));
4664
+ getSkill(e, t, s, o, i) {
4665
+ return n.getSkill(e, t, s, o, i).then((c) => c(a, r));
4595
4666
  },
4596
4667
  /**
4597
4668
  * Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
@@ -4603,11 +4674,11 @@ const ga = function(l) {
4603
4674
  * @throws {RequiredError}
4604
4675
  */
4605
4676
  listSkills(e, t, s, o) {
4606
- return n.listSkills(e, t, s, o).then((c) => c(a, r));
4677
+ return n.listSkills(e, t, s, o).then((i) => i(a, r));
4607
4678
  }
4608
4679
  };
4609
4680
  };
4610
- class En extends I {
4681
+ class jn extends I {
4611
4682
  /**
4612
4683
  * Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
4613
4684
  * @summary Get one agent skill, with its body
@@ -4648,15 +4719,15 @@ const Pa = function(l) {
4648
4719
  */
4649
4720
  createStorageDestinationFileCleanup: async (r, a, n, e = {}) => {
4650
4721
  m("createStorageDestinationFileCleanup", "environmentName", r), m("createStorageDestinationFileCleanup", "destinationName", a), m("createStorageDestinationFileCleanup", "storageFileCleanupRequest", n);
4651
- const t = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))), s = new URL(t, V);
4722
+ const t = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))), s = new URL(t, b);
4652
4723
  let o;
4653
4724
  l && (o = l.baseOptions);
4654
- const c = { method: "POST", ...o, ...e }, i = {}, p = {};
4655
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
4725
+ const i = { method: "POST", ...o, ...e }, c = {}, p = {};
4726
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
4656
4727
  let d = o && o.headers ? o.headers : {};
4657
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
4658
- url: b(s),
4659
- options: c
4728
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
4729
+ url: V(s),
4730
+ options: i
4660
4731
  };
4661
4732
  },
4662
4733
  /**
@@ -4672,15 +4743,15 @@ const Pa = function(l) {
4672
4743
  */
4673
4744
  deleteStorageDestinationTable: async (r, a, n, e, t = {}) => {
4674
4745
  m("deleteStorageDestinationTable", "environmentName", r), m("deleteStorageDestinationTable", "destinationName", a), m("deleteStorageDestinationTable", "schemaName", n), m("deleteStorageDestinationTable", "tableName", e);
4675
- const s = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tableName}", encodeURIComponent(String(e))), o = new URL(s, V);
4676
- let c;
4677
- l && (c = l.baseOptions);
4678
- const i = { method: "DELETE", ...c, ...t }, p = {}, d = {};
4746
+ const s = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tableName}", encodeURIComponent(String(e))), o = new URL(s, b);
4747
+ let i;
4748
+ l && (i = l.baseOptions);
4749
+ const c = { method: "DELETE", ...i, ...t }, p = {}, d = {};
4679
4750
  p.Accept = "application/json", v(o, d);
4680
- let h = c && c.headers ? c.headers : {};
4681
- return i.headers = { ...p, ...h, ...t.headers }, {
4682
- url: b(o),
4683
- options: i
4751
+ let h = i && i.headers ? i.headers : {};
4752
+ return c.headers = { ...p, ...h, ...t.headers }, {
4753
+ url: V(o),
4754
+ options: c
4684
4755
  };
4685
4756
  },
4686
4757
  /**
@@ -4695,19 +4766,19 @@ const Pa = function(l) {
4695
4766
  */
4696
4767
  listStorageDestinationTables: async (r, a, n, e = {}) => {
4697
4768
  m("listStorageDestinationTables", "environmentName", r), m("listStorageDestinationTables", "destinationName", a), m("listStorageDestinationTables", "schemaName", n);
4698
- const t = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(t, V);
4769
+ const t = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(t, b);
4699
4770
  let o;
4700
4771
  l && (o = l.baseOptions);
4701
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
4702
- i.Accept = "application/json", v(s, p);
4772
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
4773
+ c.Accept = "application/json", v(s, p);
4703
4774
  let d = o && o.headers ? o.headers : {};
4704
- return c.headers = { ...i, ...d, ...e.headers }, {
4705
- url: b(s),
4706
- options: c
4775
+ return i.headers = { ...c, ...d, ...e.headers }, {
4776
+ url: V(s),
4777
+ options: i
4707
4778
  };
4708
4779
  }
4709
4780
  };
4710
- }, _ = function(l) {
4781
+ }, H = function(l) {
4711
4782
  const r = Pa(l);
4712
4783
  return {
4713
4784
  /**
@@ -4721,8 +4792,8 @@ const Pa = function(l) {
4721
4792
  * @throws {RequiredError}
4722
4793
  */
4723
4794
  async createStorageDestinationFileCleanup(a, n, e, t) {
4724
- const s = await r.createStorageDestinationFileCleanup(a, n, e, t), o = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[o]?.url;
4725
- return (i, p) => S(s, u, g, l)(i, c || p);
4795
+ const s = await r.createStorageDestinationFileCleanup(a, n, e, t), o = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[o]?.url;
4796
+ return (c, p) => S(s, u, g, l)(c, i || p);
4726
4797
  },
4727
4798
  /**
4728
4799
  * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
@@ -4736,8 +4807,8 @@ const Pa = function(l) {
4736
4807
  * @throws {RequiredError}
4737
4808
  */
4738
4809
  async deleteStorageDestinationTable(a, n, e, t, s) {
4739
- const o = await r.deleteStorageDestinationTable(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.deleteStorageDestinationTable"]?.[c]?.url;
4740
- return (p, d) => S(o, u, g, l)(p, i || d);
4810
+ const o = await r.deleteStorageDestinationTable(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.deleteStorageDestinationTable"]?.[i]?.url;
4811
+ return (p, d) => S(o, u, g, l)(p, c || d);
4741
4812
  },
4742
4813
  /**
4743
4814
  * **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
@@ -4750,12 +4821,12 @@ const Pa = function(l) {
4750
4821
  * @throws {RequiredError}
4751
4822
  */
4752
4823
  async listStorageDestinationTables(a, n, e, t) {
4753
- const s = await r.listStorageDestinationTables(a, n, e, t), o = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.listStorageDestinationTables"]?.[o]?.url;
4754
- return (i, p) => S(s, u, g, l)(i, c || p);
4824
+ const s = await r.listStorageDestinationTables(a, n, e, t), o = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.listStorageDestinationTables"]?.[o]?.url;
4825
+ return (c, p) => S(s, u, g, l)(c, i || p);
4755
4826
  }
4756
4827
  };
4757
- }, fn = function(l, r, a) {
4758
- const n = _(l);
4828
+ }, Dn = function(l, r, a) {
4829
+ const n = H(l);
4759
4830
  return {
4760
4831
  /**
4761
4832
  * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
@@ -4768,7 +4839,7 @@ const Pa = function(l) {
4768
4839
  * @throws {RequiredError}
4769
4840
  */
4770
4841
  createStorageDestinationFileCleanup(e, t, s, o) {
4771
- return n.createStorageDestinationFileCleanup(e, t, s, o).then((c) => c(a, r));
4842
+ return n.createStorageDestinationFileCleanup(e, t, s, o).then((i) => i(a, r));
4772
4843
  },
4773
4844
  /**
4774
4845
  * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
@@ -4781,8 +4852,8 @@ const Pa = function(l) {
4781
4852
  * @deprecated
4782
4853
  * @throws {RequiredError}
4783
4854
  */
4784
- deleteStorageDestinationTable(e, t, s, o, c) {
4785
- return n.deleteStorageDestinationTable(e, t, s, o, c).then((i) => i(a, r));
4855
+ deleteStorageDestinationTable(e, t, s, o, i) {
4856
+ return n.deleteStorageDestinationTable(e, t, s, o, i).then((c) => c(a, r));
4786
4857
  },
4787
4858
  /**
4788
4859
  * **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
@@ -4795,11 +4866,11 @@ const Pa = function(l) {
4795
4866
  * @throws {RequiredError}
4796
4867
  */
4797
4868
  listStorageDestinationTables(e, t, s, o) {
4798
- return n.listStorageDestinationTables(e, t, s, o).then((c) => c(a, r));
4869
+ return n.listStorageDestinationTables(e, t, s, o).then((i) => i(a, r));
4799
4870
  }
4800
4871
  };
4801
4872
  };
4802
- class wn extends I {
4873
+ class Ln extends I {
4803
4874
  /**
4804
4875
  * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
4805
4876
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
@@ -4811,7 +4882,7 @@ class wn extends I {
4811
4882
  * @throws {RequiredError}
4812
4883
  */
4813
4884
  createStorageDestinationFileCleanup(r, a, n, e) {
4814
- return _(this.configuration).createStorageDestinationFileCleanup(r, a, n, e).then((t) => t(this.axios, this.basePath));
4885
+ return H(this.configuration).createStorageDestinationFileCleanup(r, a, n, e).then((t) => t(this.axios, this.basePath));
4815
4886
  }
4816
4887
  /**
4817
4888
  * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
@@ -4825,7 +4896,7 @@ class wn extends I {
4825
4896
  * @throws {RequiredError}
4826
4897
  */
4827
4898
  deleteStorageDestinationTable(r, a, n, e, t) {
4828
- return _(this.configuration).deleteStorageDestinationTable(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4899
+ return H(this.configuration).deleteStorageDestinationTable(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4829
4900
  }
4830
4901
  /**
4831
4902
  * **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
@@ -4838,10 +4909,10 @@ class wn extends I {
4838
4909
  * @throws {RequiredError}
4839
4910
  */
4840
4911
  listStorageDestinationTables(r, a, n, e) {
4841
- return _(this.configuration).listStorageDestinationTables(r, a, n, e).then((t) => t(this.axios, this.basePath));
4912
+ return H(this.configuration).listStorageDestinationTables(r, a, n, e).then((t) => t(this.axios, this.basePath));
4842
4913
  }
4843
4914
  }
4844
- const Va = function(l) {
4915
+ const ba = function(l) {
4845
4916
  return {
4846
4917
  /**
4847
4918
  * Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
@@ -4854,15 +4925,15 @@ const Va = function(l) {
4854
4925
  */
4855
4926
  deletePackageVersion: async (r, a, n, e = {}) => {
4856
4927
  m("deletePackageVersion", "environmentName", r), m("deletePackageVersion", "packageName", a), m("deletePackageVersion", "version", n);
4857
- const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t, V);
4928
+ const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t, b);
4858
4929
  let o;
4859
4930
  l && (o = l.baseOptions);
4860
- const c = { method: "DELETE", ...o, ...e }, i = {}, p = {};
4861
- i.Accept = "application/json", v(s, p);
4931
+ const i = { method: "DELETE", ...o, ...e }, c = {}, p = {};
4932
+ c.Accept = "application/json", v(s, p);
4862
4933
  let d = o && o.headers ? o.headers : {};
4863
- return c.headers = { ...i, ...d, ...e.headers }, {
4864
- url: b(s),
4865
- options: c
4934
+ return i.headers = { ...c, ...d, ...e.headers }, {
4935
+ url: V(s),
4936
+ options: i
4866
4937
  };
4867
4938
  },
4868
4939
  /**
@@ -4876,15 +4947,15 @@ const Va = function(l) {
4876
4947
  */
4877
4948
  getPackageVersion: async (r, a, n, e = {}) => {
4878
4949
  m("getPackageVersion", "environmentName", r), m("getPackageVersion", "packageName", a), m("getPackageVersion", "version", n);
4879
- const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t, V);
4950
+ const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t, b);
4880
4951
  let o;
4881
4952
  l && (o = l.baseOptions);
4882
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
4883
- i.Accept = "application/json", v(s, p);
4953
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
4954
+ c.Accept = "application/json", v(s, p);
4884
4955
  let d = o && o.headers ? o.headers : {};
4885
- return c.headers = { ...i, ...d, ...e.headers }, {
4886
- url: b(s),
4887
- options: c
4956
+ return i.headers = { ...c, ...d, ...e.headers }, {
4957
+ url: V(s),
4958
+ options: i
4888
4959
  };
4889
4960
  },
4890
4961
  /**
@@ -4897,14 +4968,14 @@ const Va = function(l) {
4897
4968
  */
4898
4969
  listPackageVersions: async (r, a, n = {}) => {
4899
4970
  m("listPackageVersions", "environmentName", r), m("listPackageVersions", "packageName", a);
4900
- const e = "/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
4971
+ const e = "/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, b);
4901
4972
  let s;
4902
4973
  l && (s = l.baseOptions);
4903
- const o = { method: "GET", ...s, ...n }, c = {}, i = {};
4904
- c.Accept = "application/json", v(t, i);
4974
+ const o = { method: "GET", ...s, ...n }, i = {}, c = {};
4975
+ i.Accept = "application/json", v(t, c);
4905
4976
  let p = s && s.headers ? s.headers : {};
4906
- return o.headers = { ...c, ...p, ...n.headers }, {
4907
- url: b(t),
4977
+ return o.headers = { ...i, ...p, ...n.headers }, {
4978
+ url: V(t),
4908
4979
  options: o
4909
4980
  };
4910
4981
  },
@@ -4919,19 +4990,19 @@ const Va = function(l) {
4919
4990
  */
4920
4991
  setPackageLatestVersion: async (r, a, n, e = {}) => {
4921
4992
  m("setPackageLatestVersion", "environmentName", r), m("setPackageLatestVersion", "packageName", a), m("setPackageLatestVersion", "packageLatestVersion", n);
4922
- const t = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
4993
+ const t = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
4923
4994
  let o;
4924
4995
  l && (o = l.baseOptions);
4925
- const c = { method: "PUT", ...o, ...e }, i = {}, p = {};
4926
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
4996
+ const i = { method: "PUT", ...o, ...e }, c = {}, p = {};
4997
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
4927
4998
  let d = o && o.headers ? o.headers : {};
4928
- return c.headers = { ...i, ...d, ...e.headers }, c.data = A(n, c, l), {
4929
- url: b(s),
4930
- options: c
4999
+ return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
5000
+ url: V(s),
5001
+ options: i
4931
5002
  };
4932
5003
  },
4933
5004
  /**
4934
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
5005
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
4935
5006
  * @summary Bind a version to a build manifest
4936
5007
  * @param {string} environmentName Name of the environment
4937
5008
  * @param {string} packageName Name of the package
@@ -4942,15 +5013,15 @@ const Va = function(l) {
4942
5013
  */
4943
5014
  setPackageVersionManifest: async (r, a, n, e, t = {}) => {
4944
5015
  m("setPackageVersionManifest", "environmentName", r), m("setPackageVersionManifest", "packageName", a), m("setPackageVersionManifest", "version", n), m("setPackageVersionManifest", "packageVersionManifest", e);
4945
- const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s, V);
4946
- let c;
4947
- l && (c = l.baseOptions);
4948
- const i = { method: "PUT", ...c, ...t }, p = {}, d = {};
5016
+ const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s, b);
5017
+ let i;
5018
+ l && (i = l.baseOptions);
5019
+ const c = { method: "PUT", ...i, ...t }, p = {}, d = {};
4949
5020
  p["Content-Type"] = "application/json", p.Accept = "application/json", v(o, d);
4950
- let h = c && c.headers ? c.headers : {};
4951
- return i.headers = { ...p, ...h, ...t.headers }, i.data = A(e, i, l), {
4952
- url: b(o),
4953
- options: i
5021
+ let h = i && i.headers ? i.headers : {};
5022
+ return c.headers = { ...p, ...h, ...t.headers }, c.data = A(e, c, l), {
5023
+ url: V(o),
5024
+ options: c
4954
5025
  };
4955
5026
  },
4956
5027
  /**
@@ -4965,20 +5036,20 @@ const Va = function(l) {
4965
5036
  */
4966
5037
  updatePackageVersion: async (r, a, n, e, t = {}) => {
4967
5038
  m("updatePackageVersion", "environmentName", r), m("updatePackageVersion", "packageName", a), m("updatePackageVersion", "version", n), m("updatePackageVersion", "packageVersionUpdate", e);
4968
- const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s, V);
4969
- let c;
4970
- l && (c = l.baseOptions);
4971
- const i = { method: "PATCH", ...c, ...t }, p = {}, d = {};
5039
+ const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s, b);
5040
+ let i;
5041
+ l && (i = l.baseOptions);
5042
+ const c = { method: "PATCH", ...i, ...t }, p = {}, d = {};
4972
5043
  p["Content-Type"] = "application/json", p.Accept = "application/json", v(o, d);
4973
- let h = c && c.headers ? c.headers : {};
4974
- return i.headers = { ...p, ...h, ...t.headers }, i.data = A(e, i, l), {
4975
- url: b(o),
4976
- options: i
5044
+ let h = i && i.headers ? i.headers : {};
5045
+ return c.headers = { ...p, ...h, ...t.headers }, c.data = A(e, c, l), {
5046
+ url: V(o),
5047
+ options: c
4977
5048
  };
4978
5049
  }
4979
5050
  };
4980
5051
  }, T = function(l) {
4981
- const r = Va(l);
5052
+ const r = ba(l);
4982
5053
  return {
4983
5054
  /**
4984
5055
  * Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
@@ -4990,8 +5061,8 @@ const Va = function(l) {
4990
5061
  * @throws {RequiredError}
4991
5062
  */
4992
5063
  async deletePackageVersion(a, n, e, t) {
4993
- const s = await r.deletePackageVersion(a, n, e, t), o = l?.serverIndex ?? 0, c = P["VersionsApi.deletePackageVersion"]?.[o]?.url;
4994
- return (i, p) => S(s, u, g, l)(i, c || p);
5064
+ const s = await r.deletePackageVersion(a, n, e, t), o = l?.serverIndex ?? 0, i = P["VersionsApi.deletePackageVersion"]?.[o]?.url;
5065
+ return (c, p) => S(s, u, g, l)(c, i || p);
4995
5066
  },
4996
5067
  /**
4997
5068
  * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
@@ -5003,8 +5074,8 @@ const Va = function(l) {
5003
5074
  * @throws {RequiredError}
5004
5075
  */
5005
5076
  async getPackageVersion(a, n, e, t) {
5006
- const s = await r.getPackageVersion(a, n, e, t), o = l?.serverIndex ?? 0, c = P["VersionsApi.getPackageVersion"]?.[o]?.url;
5007
- return (i, p) => S(s, u, g, l)(i, c || p);
5077
+ const s = await r.getPackageVersion(a, n, e, t), o = l?.serverIndex ?? 0, i = P["VersionsApi.getPackageVersion"]?.[o]?.url;
5078
+ return (c, p) => S(s, u, g, l)(c, i || p);
5008
5079
  },
5009
5080
  /**
5010
5081
  * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
@@ -5016,7 +5087,7 @@ const Va = function(l) {
5016
5087
  */
5017
5088
  async listPackageVersions(a, n, e) {
5018
5089
  const t = await r.listPackageVersions(a, n, e), s = l?.serverIndex ?? 0, o = P["VersionsApi.listPackageVersions"]?.[s]?.url;
5019
- return (c, i) => S(t, u, g, l)(c, o || i);
5090
+ return (i, c) => S(t, u, g, l)(i, o || c);
5020
5091
  },
5021
5092
  /**
5022
5093
  * Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
@@ -5028,11 +5099,11 @@ const Va = function(l) {
5028
5099
  * @throws {RequiredError}
5029
5100
  */
5030
5101
  async setPackageLatestVersion(a, n, e, t) {
5031
- const s = await r.setPackageLatestVersion(a, n, e, t), o = l?.serverIndex ?? 0, c = P["VersionsApi.setPackageLatestVersion"]?.[o]?.url;
5032
- return (i, p) => S(s, u, g, l)(i, c || p);
5102
+ const s = await r.setPackageLatestVersion(a, n, e, t), o = l?.serverIndex ?? 0, i = P["VersionsApi.setPackageLatestVersion"]?.[o]?.url;
5103
+ return (c, p) => S(s, u, g, l)(c, i || p);
5033
5104
  },
5034
5105
  /**
5035
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
5106
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
5036
5107
  * @summary Bind a version to a build manifest
5037
5108
  * @param {string} environmentName Name of the environment
5038
5109
  * @param {string} packageName Name of the package
@@ -5042,8 +5113,8 @@ const Va = function(l) {
5042
5113
  * @throws {RequiredError}
5043
5114
  */
5044
5115
  async setPackageVersionManifest(a, n, e, t, s) {
5045
- const o = await r.setPackageVersionManifest(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["VersionsApi.setPackageVersionManifest"]?.[c]?.url;
5046
- return (p, d) => S(o, u, g, l)(p, i || d);
5116
+ const o = await r.setPackageVersionManifest(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["VersionsApi.setPackageVersionManifest"]?.[i]?.url;
5117
+ return (p, d) => S(o, u, g, l)(p, c || d);
5047
5118
  },
5048
5119
  /**
5049
5120
  * Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
@@ -5056,11 +5127,11 @@ const Va = function(l) {
5056
5127
  * @throws {RequiredError}
5057
5128
  */
5058
5129
  async updatePackageVersion(a, n, e, t, s) {
5059
- const o = await r.updatePackageVersion(a, n, e, t, s), c = l?.serverIndex ?? 0, i = P["VersionsApi.updatePackageVersion"]?.[c]?.url;
5060
- return (p, d) => S(o, u, g, l)(p, i || d);
5130
+ const o = await r.updatePackageVersion(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["VersionsApi.updatePackageVersion"]?.[i]?.url;
5131
+ return (p, d) => S(o, u, g, l)(p, c || d);
5061
5132
  }
5062
5133
  };
5063
- }, Mn = function(l, r, a) {
5134
+ }, Qn = function(l, r, a) {
5064
5135
  const n = T(l);
5065
5136
  return {
5066
5137
  /**
@@ -5073,7 +5144,7 @@ const Va = function(l) {
5073
5144
  * @throws {RequiredError}
5074
5145
  */
5075
5146
  deletePackageVersion(e, t, s, o) {
5076
- return n.deletePackageVersion(e, t, s, o).then((c) => c(a, r));
5147
+ return n.deletePackageVersion(e, t, s, o).then((i) => i(a, r));
5077
5148
  },
5078
5149
  /**
5079
5150
  * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
@@ -5085,7 +5156,7 @@ const Va = function(l) {
5085
5156
  * @throws {RequiredError}
5086
5157
  */
5087
5158
  getPackageVersion(e, t, s, o) {
5088
- return n.getPackageVersion(e, t, s, o).then((c) => c(a, r));
5159
+ return n.getPackageVersion(e, t, s, o).then((i) => i(a, r));
5089
5160
  },
5090
5161
  /**
5091
5162
  * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
@@ -5108,10 +5179,10 @@ const Va = function(l) {
5108
5179
  * @throws {RequiredError}
5109
5180
  */
5110
5181
  setPackageLatestVersion(e, t, s, o) {
5111
- return n.setPackageLatestVersion(e, t, s, o).then((c) => c(a, r));
5182
+ return n.setPackageLatestVersion(e, t, s, o).then((i) => i(a, r));
5112
5183
  },
5113
5184
  /**
5114
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
5185
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
5115
5186
  * @summary Bind a version to a build manifest
5116
5187
  * @param {string} environmentName Name of the environment
5117
5188
  * @param {string} packageName Name of the package
@@ -5120,8 +5191,8 @@ const Va = function(l) {
5120
5191
  * @param {*} [options] Override http request option.
5121
5192
  * @throws {RequiredError}
5122
5193
  */
5123
- setPackageVersionManifest(e, t, s, o, c) {
5124
- return n.setPackageVersionManifest(e, t, s, o, c).then((i) => i(a, r));
5194
+ setPackageVersionManifest(e, t, s, o, i) {
5195
+ return n.setPackageVersionManifest(e, t, s, o, i).then((c) => c(a, r));
5125
5196
  },
5126
5197
  /**
5127
5198
  * Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
@@ -5133,8 +5204,8 @@ const Va = function(l) {
5133
5204
  * @param {*} [options] Override http request option.
5134
5205
  * @throws {RequiredError}
5135
5206
  */
5136
- updatePackageVersion(e, t, s, o, c) {
5137
- return n.updatePackageVersion(e, t, s, o, c).then((i) => i(a, r));
5207
+ updatePackageVersion(e, t, s, o, i) {
5208
+ return n.updatePackageVersion(e, t, s, o, i).then((c) => c(a, r));
5138
5209
  }
5139
5210
  };
5140
5211
  };
@@ -5187,7 +5258,7 @@ class va extends I {
5187
5258
  return T(this.configuration).setPackageLatestVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
5188
5259
  }
5189
5260
  /**
5190
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
5261
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
5191
5262
  * @summary Bind a version to a build manifest
5192
5263
  * @param {string} environmentName Name of the environment
5193
5264
  * @param {string} packageName Name of the package
@@ -5213,7 +5284,7 @@ class va extends I {
5213
5284
  return T(this.configuration).updatePackageVersion(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
5214
5285
  }
5215
5286
  }
5216
- const ba = function(l) {
5287
+ const Va = function(l) {
5217
5288
  return {
5218
5289
  /**
5219
5290
  * **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. 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.
@@ -5223,14 +5294,14 @@ const ba = function(l) {
5223
5294
  * @throws {RequiredError}
5224
5295
  */
5225
5296
  getWatchStatus: async (r = {}) => {
5226
- const a = "/watch-mode/status", n = new URL(a, V);
5297
+ const a = "/watch-mode/status", n = new URL(a, b);
5227
5298
  let e;
5228
5299
  l && (e = l.baseOptions);
5229
5300
  const t = { method: "GET", ...e, ...r }, s = {}, o = {};
5230
5301
  s.Accept = "application/json", v(n, o);
5231
- let c = e && e.headers ? e.headers : {};
5232
- return t.headers = { ...s, ...c, ...r.headers }, {
5233
- url: b(n),
5302
+ let i = e && e.headers ? e.headers : {};
5303
+ return t.headers = { ...s, ...i, ...r.headers }, {
5304
+ url: V(n),
5234
5305
  options: t
5235
5306
  };
5236
5307
  },
@@ -5244,14 +5315,14 @@ const ba = function(l) {
5244
5315
  */
5245
5316
  startWatching: async (r, a = {}) => {
5246
5317
  m("startWatching", "startWatchRequest", r);
5247
- const n = "/watch-mode/start", e = new URL(n, V);
5318
+ const n = "/watch-mode/start", e = new URL(n, b);
5248
5319
  let t;
5249
5320
  l && (t = l.baseOptions);
5250
- const s = { method: "POST", ...t, ...a }, o = {}, c = {};
5251
- o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, c);
5252
- let i = t && t.headers ? t.headers : {};
5253
- return s.headers = { ...o, ...i, ...a.headers }, s.data = A(r, s, l), {
5254
- url: b(e),
5321
+ const s = { method: "POST", ...t, ...a }, o = {}, i = {};
5322
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
5323
+ let c = t && t.headers ? t.headers : {};
5324
+ return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
5325
+ url: V(e),
5255
5326
  options: s
5256
5327
  };
5257
5328
  },
@@ -5263,14 +5334,14 @@ const ba = function(l) {
5263
5334
  * @throws {RequiredError}
5264
5335
  */
5265
5336
  stopWatching: async (r = {}) => {
5266
- const a = "/watch-mode/stop", n = new URL(a, V);
5337
+ const a = "/watch-mode/stop", n = new URL(a, b);
5267
5338
  let e;
5268
5339
  l && (e = l.baseOptions);
5269
5340
  const t = { method: "POST", ...e, ...r }, s = {}, o = {};
5270
5341
  s.Accept = "application/json", v(n, o);
5271
- let c = e && e.headers ? e.headers : {};
5272
- return t.headers = { ...s, ...c, ...r.headers }, {
5273
- url: b(n),
5342
+ let i = e && e.headers ? e.headers : {};
5343
+ return t.headers = { ...s, ...i, ...r.headers }, {
5344
+ url: V(n),
5274
5345
  options: t
5275
5346
  };
5276
5347
  },
@@ -5285,20 +5356,20 @@ const ba = function(l) {
5285
5356
  */
5286
5357
  streamPackageEvents: async (r, a, n, e = {}) => {
5287
5358
  m("streamPackageEvents", "environmentName", r), m("streamPackageEvents", "packageName", a);
5288
- const t = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
5359
+ const t = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
5289
5360
  let o;
5290
5361
  l && (o = l.baseOptions);
5291
- const c = { method: "GET", ...o, ...e }, i = {}, p = {};
5292
- n !== void 0 && (p.versionId = n), i.Accept = "text/event-stream,application/json", v(s, p);
5362
+ const i = { method: "GET", ...o, ...e }, c = {}, p = {};
5363
+ n !== void 0 && (p.versionId = n), c.Accept = "text/event-stream,application/json", v(s, p);
5293
5364
  let d = o && o.headers ? o.headers : {};
5294
- return c.headers = { ...i, ...d, ...e.headers }, {
5295
- url: b(s),
5296
- options: c
5365
+ return i.headers = { ...c, ...d, ...e.headers }, {
5366
+ url: V(s),
5367
+ options: i
5297
5368
  };
5298
5369
  }
5299
5370
  };
5300
5371
  }, L = function(l) {
5301
- const r = ba(l);
5372
+ const r = Va(l);
5302
5373
  return {
5303
5374
  /**
5304
5375
  * **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. 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.
@@ -5321,7 +5392,7 @@ const ba = function(l) {
5321
5392
  */
5322
5393
  async startWatching(a, n) {
5323
5394
  const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, s = P["WatchModeApi.startWatching"]?.[t]?.url;
5324
- return (o, c) => S(e, u, g, l)(o, s || c);
5395
+ return (o, i) => S(e, u, g, l)(o, s || i);
5325
5396
  },
5326
5397
  /**
5327
5398
  * **DEPRECATED**: use the admin API\'s `DELETE /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. 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.
@@ -5344,11 +5415,11 @@ const ba = function(l) {
5344
5415
  * @throws {RequiredError}
5345
5416
  */
5346
5417
  async streamPackageEvents(a, n, e, t) {
5347
- const s = await r.streamPackageEvents(a, n, e, t), o = l?.serverIndex ?? 0, c = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
5348
- return (i, p) => S(s, u, g, l)(i, c || p);
5418
+ const s = await r.streamPackageEvents(a, n, e, t), o = l?.serverIndex ?? 0, i = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
5419
+ return (c, p) => S(s, u, g, l)(c, i || p);
5349
5420
  }
5350
5421
  };
5351
- }, Fn = function(l, r, a) {
5422
+ }, _n = function(l, r, a) {
5352
5423
  const n = L(l);
5353
5424
  return {
5354
5425
  /**
@@ -5392,7 +5463,7 @@ const ba = function(l) {
5392
5463
  * @throws {RequiredError}
5393
5464
  */
5394
5465
  streamPackageEvents(e, t, s, o) {
5395
- return n.streamPackageEvents(e, t, s, o).then((c) => c(a, r));
5466
+ return n.streamPackageEvents(e, t, s, o).then((i) => i(a, r));
5396
5467
  }
5397
5468
  };
5398
5469
  };
@@ -5533,7 +5604,7 @@ const Oa = new ye({
5533
5604
  throwOnError: !1
5534
5605
  }
5535
5606
  }
5536
- }), Bn = {
5607
+ }), qn = {
5537
5608
  staleTime: 300 * 1e3,
5538
5609
  refetchOnWindowFocus: !1,
5539
5610
  refetchOnReconnect: !1
@@ -5566,11 +5637,11 @@ function Ia(l) {
5566
5637
  } catch {
5567
5638
  }
5568
5639
  }
5569
- function xa() {
5640
+ function Ra() {
5570
5641
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
5571
5642
  }
5572
5643
  u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
5573
- const Pe = ie(void 0), Ra = (l, r, a) => {
5644
+ const Pe = ce(void 0), xa = (l, r, a) => {
5574
5645
  const n = `${window.location.protocol}//${window.location.host}/api/v0`, e = u.create({
5575
5646
  baseURL: l || n,
5576
5647
  withCredentials: !0,
@@ -5587,7 +5658,7 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
5587
5658
  publisher: new ma(t, n, e),
5588
5659
  environments: new ta(t, n, e),
5589
5660
  packages: new pa(t, n, e),
5590
- agents: new _e(t, n, e),
5661
+ agents: new He(t, n, e),
5591
5662
  dashboards: new Ye(t, n, e),
5592
5663
  dataApps: new Ze(t, n, e),
5593
5664
  notebooks: new la(t, n, e),
@@ -5602,7 +5673,7 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
5602
5673
  watchMode: new Sa(t, n, e),
5603
5674
  versions: new va(t, n, e)
5604
5675
  };
5605
- }, jn = (l) => /* @__PURE__ */ Q(Ce, { client: Oa, children: /* @__PURE__ */ Q(Na, { ...l }) }), Na = ({
5676
+ }, zn = (l) => /* @__PURE__ */ Q(Ce, { client: Oa, children: /* @__PURE__ */ Q(Na, { ...l }) }), Na = ({
5606
5677
  children: l,
5607
5678
  getAccessToken: r,
5608
5679
  baseURL: a,
@@ -5612,16 +5683,16 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
5612
5683
  adapter: s,
5613
5684
  mode: o
5614
5685
  }) => {
5615
- const c = B(
5616
- () => Ra(a, r, s),
5686
+ const i = B(
5687
+ () => xa(a, r, s),
5617
5688
  [a, r, s]
5618
- ), i = a || `${window.location.protocol}//${window.location.host}/api/v0`, p = Ie({
5619
- queryKey: ["status", i],
5689
+ ), c = a || `${window.location.protocol}//${window.location.host}/api/v0`, p = Ie({
5690
+ queryKey: ["status", c],
5620
5691
  // Retried, unlike the client's other reads: the model page depends on
5621
5692
  // the answer for the whole session, and one dropped request would
5622
5693
  // otherwise settle it.
5623
5694
  retry: 3,
5624
- queryFn: async () => (await c.publisher.getStatus()).data
5695
+ queryFn: async () => (await i.publisher.getStatus()).data
5625
5696
  });
5626
5697
  p.error && console.error("Failed to fetch publisher status:", p.error);
5627
5698
  const d = p.data?.frozenConfig, h = p.data?.theme, { modelPage: k, isLoadingStatus: O } = ya(p);
@@ -5630,17 +5701,17 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
5630
5701
  const N = B(
5631
5702
  () => [h, e],
5632
5703
  [h, e]
5633
- ), [Ve, ve] = oe(
5704
+ ), [be, ve] = oe(
5634
5705
  Ca
5635
- ), [te, be] = oe(xa);
5636
- xe(() => {
5706
+ ), [te, Ve] = oe(Ra);
5707
+ Re(() => {
5637
5708
  if (typeof window > "u" || !window.matchMedia) return;
5638
- const f = window.matchMedia("(prefers-color-scheme: dark)"), re = (Ae) => be(Ae.matches);
5709
+ const f = window.matchMedia("(prefers-color-scheme: dark)"), re = (Ae) => Ve(Ae.matches);
5639
5710
  return f.addEventListener("change", re), () => f.removeEventListener("change", re);
5640
5711
  }, []);
5641
- const Se = Re((f) => {
5712
+ const Se = xe((f) => {
5642
5713
  ve(f), Ia(f);
5643
- }, []), ne = h?.allowUserToggle ?? !0, G = ne ? Ve : void 0, ke = B(
5714
+ }, []), ne = h?.allowUserToggle ?? !0, G = ne ? be : void 0, ke = B(
5644
5715
  () => o ?? Le(
5645
5716
  h?.defaultMode,
5646
5717
  G,
@@ -5648,9 +5719,9 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
5648
5719
  ),
5649
5720
  [o, h?.defaultMode, G, te]
5650
5721
  ), Oe = {
5651
- server: i,
5722
+ server: c,
5652
5723
  getAccessToken: r,
5653
- apiClients: c,
5724
+ apiClients: i,
5654
5725
  mutable: y,
5655
5726
  isLoadingStatus: O,
5656
5727
  instanceTheme: h,
@@ -5668,7 +5739,7 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
5668
5739
  children: l
5669
5740
  }
5670
5741
  ) });
5671
- }, Dn = () => {
5742
+ }, Hn = () => {
5672
5743
  const l = le(Pe);
5673
5744
  if (l === void 0)
5674
5745
  throw new Error("useServer must be used within a ServerProvider");
@@ -5676,153 +5747,159 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
5676
5747
  };
5677
5748
  export {
5678
5749
  gt as $,
5679
- _e as A,
5750
+ He as A,
5680
5751
  Z as B,
5681
5752
  Ka as C,
5682
5753
  nt as D,
5683
5754
  ot as E,
5684
5755
  Ze as F,
5685
5756
  Je as G,
5686
- Sn as H,
5757
+ In as H,
5687
5758
  ue as I,
5688
5759
  st as J,
5689
5760
  ea as K,
5690
5761
  Xe as L,
5691
- kn as M,
5762
+ Rn as M,
5692
5763
  ge as N,
5693
5764
  ta as O,
5694
5765
  aa as P,
5695
- On as Q,
5766
+ xn as Q,
5696
5767
  w as R,
5697
- xn as S,
5698
- ct as T,
5768
+ fn as S,
5769
+ it as T,
5699
5770
  lt as U,
5700
- gn as V,
5701
- it as W,
5771
+ kn as V,
5772
+ ct as W,
5702
5773
  pt as X,
5703
5774
  dt as Y,
5704
5775
  ut as Z,
5705
5776
  mt as _,
5706
- He as a,
5707
- ha as a$,
5777
+ ze as a,
5778
+ tn as a$,
5708
5779
  ht as a0,
5709
- yn as a1,
5780
+ Un as a1,
5710
5781
  Pt as a2,
5711
- ra as a3,
5712
- na as a4,
5713
- An as a5,
5714
- M as a6,
5715
- Vt as a7,
5716
- sa as a8,
5717
- oa as a9,
5782
+ bt as a3,
5783
+ ra as a4,
5784
+ na as a5,
5785
+ Nn as a6,
5786
+ M as a7,
5787
+ vt as a8,
5788
+ sa as a9,
5718
5789
  jt as aA,
5719
5790
  Dt as aB,
5720
- pa as aC,
5721
- ia as aD,
5722
- Rn as aE,
5723
- R as aF,
5724
- Lt as aG,
5791
+ Lt as aC,
5792
+ pa as aD,
5793
+ ca as aE,
5794
+ wn as aF,
5795
+ x as aG,
5725
5796
  Qt as aH,
5726
- ma as aI,
5727
- da as aJ,
5728
- Nn as aK,
5729
- D as aL,
5730
- qt as aM,
5731
- zt as aN,
5732
- Ht as aO,
5733
- _t as aP,
5797
+ _t as aI,
5798
+ ma as aJ,
5799
+ da as aK,
5800
+ Mn as aL,
5801
+ D as aM,
5802
+ qt as aN,
5803
+ zt as aO,
5804
+ Ht as aP,
5734
5805
  Gt as aQ,
5735
5806
  Wt as aR,
5736
5807
  Kt as aS,
5737
5808
  $t as aT,
5738
- Jt as aU,
5739
- Yt as aV,
5740
- Xt as aW,
5741
- Zt as aX,
5809
+ Yt as aU,
5810
+ Jt as aV,
5811
+ Zt as aW,
5812
+ Xt as aX,
5742
5813
  en as aY,
5743
5814
  an as aZ,
5744
- ua as a_,
5745
- Cn as aa,
5746
- F as ab,
5747
- bt as ac,
5748
- kt as ad,
5749
- St as ae,
5750
- vt as af,
5751
- la as ag,
5752
- ca as ah,
5753
- In as ai,
5754
- H as aj,
5755
- Ot as ak,
5756
- xt as al,
5757
- Rt as am,
5758
- It as an,
5759
- Ct as ao,
5760
- yt as ap,
5761
- At as aq,
5762
- Nt as ar,
5815
+ nn as a_,
5816
+ oa as aa,
5817
+ Tn as ab,
5818
+ F as ac,
5819
+ St as ad,
5820
+ Ot as ae,
5821
+ kt as af,
5822
+ Vt as ag,
5823
+ la as ah,
5824
+ ia as ai,
5825
+ En as aj,
5826
+ z as ak,
5827
+ At as al,
5828
+ xt as am,
5829
+ Nt as an,
5830
+ Rt as ao,
5831
+ It as ap,
5832
+ Ct as aq,
5833
+ yt as ar,
5763
5834
  Ut as as,
5764
5835
  Tt as at,
5765
- Mt as au,
5836
+ Et as au,
5766
5837
  Ft as av,
5767
- wt as aw,
5768
- ft as ax,
5769
- Et as ay,
5770
- Bt as az,
5771
- un as b,
5772
- Un as b0,
5773
- X as b1,
5774
- tn as b2,
5775
- nn as b3,
5776
- jn as b4,
5777
- cn as b5,
5778
- rn as b6,
5779
- on as b7,
5780
- sn as b8,
5781
- ln as b9,
5782
- U as bA,
5783
- Fa as bB,
5784
- Ma as bC,
5785
- x as bD,
5786
- La as bE,
5787
- Da as bF,
5788
- Qa as bG,
5789
- qa as bH,
5790
- Ba as bI,
5791
- ja as bJ,
5792
- Y as bK,
5793
- Qe as bL,
5794
- ce as bM,
5795
- za as bN,
5796
- Ee as bO,
5797
- Le as bP,
5798
- Bn as bQ,
5799
- pn as ba,
5800
- En as bb,
5801
- ga as bc,
5802
- Tn as bd,
5803
- ee as be,
5804
- dn as bf,
5805
- wn as bg,
5806
- Pa as bh,
5807
- fn as bi,
5808
- _ as bj,
5809
- mn as bk,
5810
- hn as bl,
5811
- va as bm,
5812
- Va as bn,
5813
- Mn as bo,
5814
- T as bp,
5815
- Sa as bq,
5816
- ba as br,
5817
- Fn as bs,
5818
- L as bt,
5819
- Oa as bu,
5820
- _a as bv,
5821
- Dn as bw,
5822
- De as bx,
5823
- de as by,
5824
- Ha as bz,
5825
- z as c,
5838
+ Bt as aw,
5839
+ Mt as ax,
5840
+ wt as ay,
5841
+ ft as az,
5842
+ Sn as b,
5843
+ on as b0,
5844
+ rn as b1,
5845
+ sn as b2,
5846
+ ln as b3,
5847
+ ua as b4,
5848
+ ha as b5,
5849
+ Fn as b6,
5850
+ X as b7,
5851
+ cn as b8,
5852
+ pn as b9,
5853
+ Oa as bA,
5854
+ Ha as bB,
5855
+ Hn as bC,
5856
+ De as bD,
5857
+ de as bE,
5858
+ za as bF,
5859
+ U as bG,
5860
+ Fa as bH,
5861
+ Ma as bI,
5862
+ R as bJ,
5863
+ La as bK,
5864
+ Da as bL,
5865
+ Qa as bM,
5866
+ _a as bN,
5867
+ Ba as bO,
5868
+ ja as bP,
5869
+ Y as bQ,
5870
+ Qe as bR,
5871
+ ie as bS,
5872
+ qa as bT,
5873
+ Ee as bU,
5874
+ Le as bV,
5875
+ qn as bW,
5876
+ zn as ba,
5877
+ un as bb,
5878
+ dn as bc,
5879
+ mn as bd,
5880
+ hn as be,
5881
+ gn as bf,
5882
+ Pn as bg,
5883
+ jn as bh,
5884
+ ga as bi,
5885
+ Bn as bj,
5886
+ ee as bk,
5887
+ bn as bl,
5888
+ Ln as bm,
5889
+ Pa as bn,
5890
+ Dn as bo,
5891
+ H as bp,
5892
+ vn as bq,
5893
+ Vn as br,
5894
+ va as bs,
5895
+ ba as bt,
5896
+ Qn as bu,
5897
+ T as bv,
5898
+ Sa as bw,
5899
+ Va as bx,
5900
+ _n as by,
5901
+ L as bz,
5902
+ q as c,
5826
5903
  Ga as d,
5827
5904
  Wa as e,
5828
5905
  $a as f,
@@ -5835,15 +5912,15 @@ export {
5835
5912
  Xa as m,
5836
5913
  We as n,
5837
5914
  Ge as o,
5838
- Pn as p,
5915
+ On as p,
5839
5916
  C as q,
5840
- vn as r,
5917
+ yn as r,
5841
5918
  Ke as s,
5842
- Vn as t,
5919
+ An as t,
5843
5920
  he as u,
5844
5921
  tt as v,
5845
5922
  rt as w,
5846
5923
  Ye as x,
5847
5924
  $e as y,
5848
- bn as z
5925
+ Cn as z
5849
5926
  };