@malloy-publisher/sdk 0.12.2 → 0.12.4

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.
@@ -118,9 +118,9 @@ function $(l, r, e = fe) {
118
118
  const t = E(l), a = E(r);
119
119
  if (!t || !a || q(t, a) >= e) return l;
120
120
  const n = K(a) < 0.5 ? 255 : 0;
121
- for (let o = 0.05; o < 1; o += 0.05) {
122
- const s = E(W(t, n, o));
123
- if (s && q(s, a) >= e) return pe(s);
121
+ for (let s = 0.05; s < 1; s += 0.05) {
122
+ const o = E(W(t, n, s));
123
+ if (o && q(o, a) >= e) return pe(o);
124
124
  }
125
125
  return n === 255 ? "#ffffff" : "#000000";
126
126
  }
@@ -129,11 +129,11 @@ function ce(l, r, e = Ee[r]) {
129
129
  if (!l || l.toLowerCase() === x.blue) return t;
130
130
  if (!E(l))
131
131
  return r === "light" ? { ...t, accent: l, accentHover: l } : t;
132
- const a = $(l, e), n = E(a), o = r === "dark" ? W(n, 255, 0.25) : W(n, 0, 0.2), s = q(n, [255, 255, 255]), c = q(n, we);
132
+ const a = $(l, e), n = E(a), s = r === "dark" ? W(n, 255, 0.25) : W(n, 0, 0.2), o = q(n, [255, 255, 255]), c = q(n, we);
133
133
  return {
134
134
  accent: a,
135
- accentHover: o,
136
- accentContrast: s >= c ? "#ffffff" : "#0f172a"
135
+ accentHover: s,
136
+ accentContrast: o >= c ? "#ffffff" : "#0f172a"
137
137
  };
138
138
  }
139
139
  const Me = [
@@ -258,7 +258,7 @@ function de(l, r) {
258
258
  family: "sans-serif",
259
259
  size: 12
260
260
  };
261
- let a = [...e.series ?? []], n = !1, o = t.family ?? "sans-serif", s = t.size ?? 12;
261
+ let a = [...e.series ?? []], n = !1, s = t.family ?? "sans-serif", o = t.size ?? 12;
262
262
  const c = {
263
263
  background: { ...e.background ?? {} },
264
264
  tableHeader: { ...e.tableHeader ?? {} },
@@ -286,7 +286,7 @@ function de(l, r) {
286
286
  const N = O.palette?.[I];
287
287
  N && (c[I] = { ...c[I], ...N }, N.light !== void 0 && i.light.add(I), N.dark !== void 0 && i.dark.add(I));
288
288
  }
289
- typeof O.font?.family == "string" && (o = O.font.family), typeof O.font?.size == "number" && (s = O.font.size);
289
+ typeof O.font?.family == "string" && (s = O.font.family), typeof O.font?.size == "number" && (o = O.font.size);
290
290
  }
291
291
  const p = r === "dark", d = (O) => c[O][r] ?? e[O]?.[r], h = d("background"), k = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? $(c.mapColor.light, h) : d("mapColor");
292
292
  return {
@@ -298,7 +298,7 @@ function de(l, r) {
298
298
  // reads. The defaults are drawn as they always were.
299
299
  series: p && n ? a.map((O) => $(O, h)) : a,
300
300
  ...ce(a[0], r, h),
301
- font: { family: o, size: s },
301
+ font: { family: s, size: o },
302
302
  background: h,
303
303
  tableHeader: d("tableHeader"),
304
304
  tableHeaderBackground: d("tableHeaderBackground"),
@@ -354,9 +354,9 @@ function qa(l, r) {
354
354
  const t = e[0], a = l.reduce(
355
355
  (i, p) => Array.isArray(p?.palette?.series) ? p.palette.series : i,
356
356
  Y.palette?.series ?? []
357
- ), n = (i) => i.toLowerCase() === t.toLowerCase(), [o, ...s] = a, c = s.length > 0 ? s.map((i) => n(i) ? o : i) : (
357
+ ), n = (i) => i.toLowerCase() === t.toLowerCase(), [s, ...o] = a, c = o.length > 0 ? o.map((i) => n(i) ? s : i) : (
358
358
  // A one-colour host palette has no second slot, so its one colour is the second series.
359
- [o].filter(
359
+ [s].filter(
360
360
  (i) => i !== void 0 && !n(i)
361
361
  )
362
362
  );
@@ -377,12 +377,12 @@ function De({
377
377
  setMode: t,
378
378
  allowUserToggle: a = !0,
379
379
  ui: n,
380
- children: o
380
+ children: s
381
381
  }) {
382
- const s = JSON.stringify(n ?? null), c = B(
382
+ const o = JSON.stringify(n ?? null), c = B(
383
383
  () => Ue(n),
384
384
  // eslint-disable-next-line react-hooks/exhaustive-deps
385
- [s]
385
+ [o]
386
386
  ), i = B(
387
387
  () => ({ ...de(l, r), ui: c }),
388
388
  [l, r, c]
@@ -390,7 +390,7 @@ function De({
390
390
  () => ({ theme: i, layers: l, mode: r, userChoice: e, setMode: t, allowUserToggle: a }),
391
391
  [i, l, r, e, t, a]
392
392
  );
393
- return /* @__PURE__ */ Q(me.Provider, { value: p, children: o });
393
+ return /* @__PURE__ */ Q(me.Provider, { value: p, children: s });
394
394
  }
395
395
  function za() {
396
396
  const l = le(me);
@@ -437,8 +437,8 @@ const v = function(l, ...r) {
437
437
  return l.pathname + l.search + l.hash;
438
438
  }, S = function(l, r, e, t) {
439
439
  return (a = r, n = e) => {
440
- const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
441
- return a.request(o);
440
+ const s = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
441
+ return a.request(s);
442
442
  };
443
443
  }, Ha = {
444
444
  Bigquery: "bigquery",
@@ -722,15 +722,15 @@ const v = function(l, ...r) {
722
722
  * @param {*} [options] Override http request option.
723
723
  * @throws {RequiredError}
724
724
  */
725
- getAgent: async (r, e, t, a, n, o = {}) => {
725
+ getAgent: async (r, e, t, a, n, s = {}) => {
726
726
  m("getAgent", "environmentName", r), m("getAgent", "packageName", e), m("getAgent", "agentName", t);
727
- const s = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), c = new URL(s, V);
727
+ const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), c = new URL(o, V);
728
728
  let i;
729
729
  l && (i = l.baseOptions);
730
- const p = { method: "GET", ...i, ...o }, d = {}, h = {};
730
+ const p = { method: "GET", ...i, ...s }, d = {}, h = {};
731
731
  a !== void 0 && (h.skills = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
732
732
  let k = i && i.headers ? i.headers : {};
733
- return p.headers = { ...d, ...k, ...o.headers }, {
733
+ return p.headers = { ...d, ...k, ...s.headers }, {
734
734
  url: b(c),
735
735
  options: p
736
736
  };
@@ -746,15 +746,15 @@ const v = function(l, ...r) {
746
746
  * @param {*} [options] Override http request option.
747
747
  * @throws {RequiredError}
748
748
  */
749
- getAgentSkillFile: async (r, e, t, a, n, o = {}) => {
749
+ getAgentSkillFile: async (r, e, t, a, n, s = {}) => {
750
750
  m("getAgentSkillFile", "environmentName", r), m("getAgentSkillFile", "packageName", e), m("getAgentSkillFile", "agentName", t), m("getAgentSkillFile", "relativeFilepath", a);
751
- const s = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), c = new URL(s, V);
751
+ const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), c = new URL(o, V);
752
752
  let i;
753
753
  l && (i = l.baseOptions);
754
- const p = { method: "GET", ...i, ...o }, d = {}, h = {};
754
+ const p = { method: "GET", ...i, ...s }, d = {}, h = {};
755
755
  n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
756
756
  let k = i && i.headers ? i.headers : {};
757
- return p.headers = { ...d, ...k, ...o.headers }, {
757
+ return p.headers = { ...d, ...k, ...s.headers }, {
758
758
  url: b(c),
759
759
  options: p
760
760
  };
@@ -770,14 +770,14 @@ const v = function(l, ...r) {
770
770
  */
771
771
  listAgents: async (r, e, t, a = {}) => {
772
772
  m("listAgents", "environmentName", r), m("listAgents", "packageName", e);
773
- const n = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
774
- let s;
775
- l && (s = l.baseOptions);
776
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
777
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
778
- let d = s && s.headers ? s.headers : {};
773
+ const n = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
774
+ let o;
775
+ l && (o = l.baseOptions);
776
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
777
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
778
+ let d = o && o.headers ? o.headers : {};
779
779
  return c.headers = { ...i, ...d, ...a.headers }, {
780
- url: b(o),
780
+ url: b(s),
781
781
  options: c
782
782
  };
783
783
  }
@@ -796,8 +796,8 @@ const v = function(l, ...r) {
796
796
  * @param {*} [options] Override http request option.
797
797
  * @throws {RequiredError}
798
798
  */
799
- async getAgent(e, t, a, n, o, s) {
800
- const c = await r.getAgent(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgent"]?.[i]?.url;
799
+ async getAgent(e, t, a, n, s, o) {
800
+ const c = await r.getAgent(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgent"]?.[i]?.url;
801
801
  return (d, h) => S(c, u, g, l)(d, p || h);
802
802
  },
803
803
  /**
@@ -811,8 +811,8 @@ const v = function(l, ...r) {
811
811
  * @param {*} [options] Override http request option.
812
812
  * @throws {RequiredError}
813
813
  */
814
- async getAgentSkillFile(e, t, a, n, o, s) {
815
- const c = await r.getAgentSkillFile(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgentSkillFile"]?.[i]?.url;
814
+ async getAgentSkillFile(e, t, a, n, s, o) {
815
+ const c = await r.getAgentSkillFile(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgentSkillFile"]?.[i]?.url;
816
816
  return (d, h) => S(c, u, g, l)(d, p || h);
817
817
  },
818
818
  /**
@@ -825,8 +825,8 @@ const v = function(l, ...r) {
825
825
  * @throws {RequiredError}
826
826
  */
827
827
  async listAgents(e, t, a, n) {
828
- const o = await r.listAgents(e, t, a, n), s = l?.serverIndex ?? 0, c = P["AgentsApi.listAgents"]?.[s]?.url;
829
- return (i, p) => S(o, u, g, l)(i, c || p);
828
+ const s = await r.listAgents(e, t, a, n), o = l?.serverIndex ?? 0, c = P["AgentsApi.listAgents"]?.[o]?.url;
829
+ return (i, p) => S(s, u, g, l)(i, c || p);
830
830
  }
831
831
  };
832
832
  }, cn = function(l, r, e) {
@@ -843,8 +843,8 @@ const v = function(l, ...r) {
843
843
  * @param {*} [options] Override http request option.
844
844
  * @throws {RequiredError}
845
845
  */
846
- getAgent(a, n, o, s, c, i) {
847
- return t.getAgent(a, n, o, s, c, i).then((p) => p(e, r));
846
+ getAgent(a, n, s, o, c, i) {
847
+ return t.getAgent(a, n, s, o, c, i).then((p) => p(e, r));
848
848
  },
849
849
  /**
850
850
  * 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.
@@ -857,8 +857,8 @@ const v = function(l, ...r) {
857
857
  * @param {*} [options] Override http request option.
858
858
  * @throws {RequiredError}
859
859
  */
860
- getAgentSkillFile(a, n, o, s, c, i) {
861
- return t.getAgentSkillFile(a, n, o, s, c, i).then((p) => p(e, r));
860
+ getAgentSkillFile(a, n, s, o, c, i) {
861
+ return t.getAgentSkillFile(a, n, s, o, c, i).then((p) => p(e, r));
862
862
  },
863
863
  /**
864
864
  * 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.
@@ -869,8 +869,8 @@ const v = function(l, ...r) {
869
869
  * @param {*} [options] Override http request option.
870
870
  * @throws {RequiredError}
871
871
  */
872
- listAgents(a, n, o, s) {
873
- return t.listAgents(a, n, o, s).then((c) => c(e, r));
872
+ listAgents(a, n, s, o) {
873
+ return t.listAgents(a, n, s, o).then((c) => c(e, r));
874
874
  }
875
875
  };
876
876
  };
@@ -886,8 +886,8 @@ class ze extends C {
886
886
  * @param {*} [options] Override http request option.
887
887
  * @throws {RequiredError}
888
888
  */
889
- getAgent(r, e, t, a, n, o) {
890
- return z(this.configuration).getAgent(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
889
+ getAgent(r, e, t, a, n, s) {
890
+ return z(this.configuration).getAgent(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
891
891
  }
892
892
  /**
893
893
  * 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.
@@ -900,8 +900,8 @@ class ze extends C {
900
900
  * @param {*} [options] Override http request option.
901
901
  * @throws {RequiredError}
902
902
  */
903
- getAgentSkillFile(r, e, t, a, n, o) {
904
- return z(this.configuration).getAgentSkillFile(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
903
+ getAgentSkillFile(r, e, t, a, n, s) {
904
+ return z(this.configuration).getAgentSkillFile(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
905
905
  }
906
906
  /**
907
907
  * 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.
@@ -932,14 +932,14 @@ const ln = {
932
932
  */
933
933
  createConnection: async (r, e, t, a = {}) => {
934
934
  m("createConnection", "environmentName", r), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
935
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
936
- let s;
937
- l && (s = l.baseOptions);
938
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
939
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
940
- let d = s && s.headers ? s.headers : {};
935
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(n, V);
936
+ let o;
937
+ l && (o = l.baseOptions);
938
+ const c = { method: "POST", ...o, ...a }, i = {}, p = {};
939
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
940
+ let d = o && o.headers ? o.headers : {};
941
941
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
942
- url: b(o),
942
+ url: b(s),
943
943
  options: c
944
944
  };
945
945
  },
@@ -954,14 +954,14 @@ const ln = {
954
954
  deleteConnection: async (r, e, t = {}) => {
955
955
  m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", e);
956
956
  const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
957
- let o;
958
- l && (o = l.baseOptions);
959
- const s = { method: "DELETE", ...o, ...t }, c = {}, i = {};
957
+ let s;
958
+ l && (s = l.baseOptions);
959
+ const o = { method: "DELETE", ...s, ...t }, c = {}, i = {};
960
960
  c.Accept = "application/json", v(n, i);
961
- let p = o && o.headers ? o.headers : {};
962
- return s.headers = { ...c, ...p, ...t.headers }, {
961
+ let p = s && s.headers ? s.headers : {};
962
+ return o.headers = { ...c, ...p, ...t.headers }, {
963
963
  url: b(n),
964
- options: s
964
+ options: o
965
965
  };
966
966
  },
967
967
  /**
@@ -975,14 +975,14 @@ const ln = {
975
975
  getConnection: async (r, e, t = {}) => {
976
976
  m("getConnection", "environmentName", r), m("getConnection", "connectionName", e);
977
977
  const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
978
- let o;
979
- l && (o = l.baseOptions);
980
- const s = { method: "GET", ...o, ...t }, c = {}, i = {};
978
+ let s;
979
+ l && (s = l.baseOptions);
980
+ const o = { method: "GET", ...s, ...t }, c = {}, i = {};
981
981
  c.Accept = "application/json", v(n, i);
982
- let p = o && o.headers ? o.headers : {};
983
- return s.headers = { ...c, ...p, ...t.headers }, {
982
+ let p = s && s.headers ? s.headers : {};
983
+ return o.headers = { ...c, ...p, ...t.headers }, {
984
984
  url: b(n),
985
- options: s
985
+ options: o
986
986
  };
987
987
  },
988
988
  /**
@@ -997,14 +997,14 @@ const ln = {
997
997
  */
998
998
  getTable: async (r, e, t, a, n = {}) => {
999
999
  m("getTable", "environmentName", r), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
1000
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, V);
1000
+ const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), o = new URL(s, V);
1001
1001
  let c;
1002
1002
  l && (c = l.baseOptions);
1003
1003
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
1004
- p.Accept = "application/json", v(s, d);
1004
+ p.Accept = "application/json", v(o, d);
1005
1005
  let h = c && c.headers ? c.headers : {};
1006
1006
  return i.headers = { ...p, ...h, ...n.headers }, {
1007
- url: b(s),
1007
+ url: b(o),
1008
1008
  options: i
1009
1009
  };
1010
1010
  },
@@ -1020,15 +1020,15 @@ const ln = {
1020
1020
  * @param {*} [options] Override http request option.
1021
1021
  * @throws {RequiredError}
1022
1022
  */
1023
- getTableInPackage: async (r, e, t, a, n, o, s = {}) => {
1023
+ getTableInPackage: async (r, e, t, a, n, s, o = {}) => {
1024
1024
  m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", n);
1025
1025
  const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), i = new URL(c, V);
1026
1026
  let p;
1027
1027
  l && (p = l.baseOptions);
1028
- const d = { method: "GET", ...p, ...s }, h = {}, k = {};
1029
- o !== void 0 && (k.versionId = o), h.Accept = "application/json", v(i, k);
1028
+ const d = { method: "GET", ...p, ...o }, h = {}, k = {};
1029
+ s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(i, k);
1030
1030
  let O = p && p.headers ? p.headers : {};
1031
- return d.headers = { ...h, ...O, ...s.headers }, {
1031
+ return d.headers = { ...h, ...O, ...o.headers }, {
1032
1032
  url: b(i),
1033
1033
  options: d
1034
1034
  };
@@ -1045,12 +1045,12 @@ const ln = {
1045
1045
  const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
1046
1046
  let n;
1047
1047
  l && (n = l.baseOptions);
1048
- const o = { method: "GET", ...n, ...e }, s = {}, c = {};
1049
- s.Accept = "application/json", v(a, c);
1048
+ const s = { method: "GET", ...n, ...e }, o = {}, c = {};
1049
+ o.Accept = "application/json", v(a, c);
1050
1050
  let i = n && n.headers ? n.headers : {};
1051
- return o.headers = { ...s, ...i, ...e.headers }, {
1051
+ return s.headers = { ...o, ...i, ...e.headers }, {
1052
1052
  url: b(a),
1053
- options: o
1053
+ options: s
1054
1054
  };
1055
1055
  },
1056
1056
  /**
@@ -1064,14 +1064,14 @@ const ln = {
1064
1064
  listSchemas: async (r, e, t = {}) => {
1065
1065
  m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", e);
1066
1066
  const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
1067
- let o;
1068
- l && (o = l.baseOptions);
1069
- const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1067
+ let s;
1068
+ l && (s = l.baseOptions);
1069
+ const o = { method: "GET", ...s, ...t }, c = {}, i = {};
1070
1070
  c.Accept = "application/json", v(n, i);
1071
- let p = o && o.headers ? o.headers : {};
1072
- return s.headers = { ...c, ...p, ...t.headers }, {
1071
+ let p = s && s.headers ? s.headers : {};
1072
+ return o.headers = { ...c, ...p, ...t.headers }, {
1073
1073
  url: b(n),
1074
- options: s
1074
+ options: o
1075
1075
  };
1076
1076
  },
1077
1077
  /**
@@ -1086,14 +1086,14 @@ const ln = {
1086
1086
  */
1087
1087
  listSchemasInPackage: async (r, e, t, a, n = {}) => {
1088
1088
  m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
1089
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
1089
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(s, V);
1090
1090
  let c;
1091
1091
  l && (c = l.baseOptions);
1092
1092
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
1093
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
1093
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(o, d);
1094
1094
  let h = c && c.headers ? c.headers : {};
1095
1095
  return i.headers = { ...p, ...h, ...n.headers }, {
1096
- url: b(s),
1096
+ url: b(o),
1097
1097
  options: i
1098
1098
  };
1099
1099
  },
@@ -1109,14 +1109,14 @@ const ln = {
1109
1109
  */
1110
1110
  listTables: async (r, e, t, a, n = {}) => {
1111
1111
  m("listTables", "environmentName", r), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
1112
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, V);
1112
+ const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), o = new URL(s, V);
1113
1113
  let c;
1114
1114
  l && (c = l.baseOptions);
1115
1115
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
1116
- a && (d.tableNames = a), p.Accept = "application/json", v(s, d);
1116
+ a && (d.tableNames = a), p.Accept = "application/json", v(o, d);
1117
1117
  let h = c && c.headers ? c.headers : {};
1118
1118
  return i.headers = { ...p, ...h, ...n.headers }, {
1119
- url: b(s),
1119
+ url: b(o),
1120
1120
  options: i
1121
1121
  };
1122
1122
  },
@@ -1132,15 +1132,15 @@ const ln = {
1132
1132
  * @param {*} [options] Override http request option.
1133
1133
  * @throws {RequiredError}
1134
1134
  */
1135
- listTablesInPackage: async (r, e, t, a, n, o, s = {}) => {
1135
+ listTablesInPackage: async (r, e, t, a, n, s, o = {}) => {
1136
1136
  m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
1137
1137
  const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), i = new URL(c, V);
1138
1138
  let p;
1139
1139
  l && (p = l.baseOptions);
1140
- const d = { method: "GET", ...p, ...s }, h = {}, k = {};
1141
- n && (k.tableNames = n), o !== void 0 && (k.versionId = o), h.Accept = "application/json", v(i, k);
1140
+ const d = { method: "GET", ...p, ...o }, h = {}, k = {};
1141
+ n && (k.tableNames = n), s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(i, k);
1142
1142
  let O = p && p.headers ? p.headers : {};
1143
- return d.headers = { ...h, ...O, ...s.headers }, {
1143
+ return d.headers = { ...h, ...O, ...o.headers }, {
1144
1144
  url: b(i),
1145
1145
  options: d
1146
1146
  };
@@ -1156,14 +1156,14 @@ const ln = {
1156
1156
  */
1157
1157
  postQuerydata: async (r, e, t, a = {}) => {
1158
1158
  m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
1159
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
1160
- let s;
1161
- l && (s = l.baseOptions);
1162
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
1163
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1164
- let d = s && s.headers ? s.headers : {};
1159
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(n, V);
1160
+ let o;
1161
+ l && (o = l.baseOptions);
1162
+ const c = { method: "POST", ...o, ...a }, i = {}, p = {};
1163
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1164
+ let d = o && o.headers ? o.headers : {};
1165
1165
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
1166
- url: b(o),
1166
+ url: b(s),
1167
1167
  options: c
1168
1168
  };
1169
1169
  },
@@ -1178,15 +1178,15 @@ const ln = {
1178
1178
  * @param {*} [options] Override http request option.
1179
1179
  * @throws {RequiredError}
1180
1180
  */
1181
- postQuerydataInPackage: async (r, e, t, a, n, o = {}) => {
1181
+ postQuerydataInPackage: async (r, e, t, a, n, s = {}) => {
1182
1182
  m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
1183
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, V);
1183
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(o, V);
1184
1184
  let i;
1185
1185
  l && (i = l.baseOptions);
1186
- const p = { method: "POST", ...i, ...o }, d = {}, h = {};
1186
+ const p = { method: "POST", ...i, ...s }, d = {}, h = {};
1187
1187
  n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
1188
1188
  let k = i && i.headers ? i.headers : {};
1189
- return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
1189
+ return p.headers = { ...d, ...k, ...s.headers }, p.data = A(a, p, l), {
1190
1190
  url: b(c),
1191
1191
  options: p
1192
1192
  };
@@ -1202,14 +1202,14 @@ const ln = {
1202
1202
  */
1203
1203
  postSqlsource: async (r, e, t, a = {}) => {
1204
1204
  m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
1205
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
1206
- let s;
1207
- l && (s = l.baseOptions);
1208
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
1209
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1210
- let d = s && s.headers ? s.headers : {};
1205
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(n, V);
1206
+ let o;
1207
+ l && (o = l.baseOptions);
1208
+ const c = { method: "POST", ...o, ...a }, i = {}, p = {};
1209
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1210
+ let d = o && o.headers ? o.headers : {};
1211
1211
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
1212
- url: b(o),
1212
+ url: b(s),
1213
1213
  options: c
1214
1214
  };
1215
1215
  },
@@ -1224,15 +1224,15 @@ const ln = {
1224
1224
  * @param {*} [options] Override http request option.
1225
1225
  * @throws {RequiredError}
1226
1226
  */
1227
- postSqlsourceInPackage: async (r, e, t, a, n, o = {}) => {
1227
+ postSqlsourceInPackage: async (r, e, t, a, n, s = {}) => {
1228
1228
  m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
1229
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, V);
1229
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(o, V);
1230
1230
  let i;
1231
1231
  l && (i = l.baseOptions);
1232
- const p = { method: "POST", ...i, ...o }, d = {}, h = {};
1232
+ const p = { method: "POST", ...i, ...s }, d = {}, h = {};
1233
1233
  n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
1234
1234
  let k = i && i.headers ? i.headers : {};
1235
- return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
1235
+ return p.headers = { ...d, ...k, ...s.headers }, p.data = A(a, p, l), {
1236
1236
  url: b(c),
1237
1237
  options: p
1238
1238
  };
@@ -1248,14 +1248,14 @@ const ln = {
1248
1248
  */
1249
1249
  postTemporarytable: async (r, e, t, a = {}) => {
1250
1250
  m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
1251
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
1252
- let s;
1253
- l && (s = l.baseOptions);
1254
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
1255
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1256
- let d = s && s.headers ? s.headers : {};
1251
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(n, V);
1252
+ let o;
1253
+ l && (o = l.baseOptions);
1254
+ const c = { method: "POST", ...o, ...a }, i = {}, p = {};
1255
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1256
+ let d = o && o.headers ? o.headers : {};
1257
1257
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
1258
- url: b(o),
1258
+ url: b(s),
1259
1259
  options: c
1260
1260
  };
1261
1261
  },
@@ -1270,15 +1270,15 @@ const ln = {
1270
1270
  * @param {*} [options] Override http request option.
1271
1271
  * @throws {RequiredError}
1272
1272
  */
1273
- postTemporarytableInPackage: async (r, e, t, a, n, o = {}) => {
1273
+ postTemporarytableInPackage: async (r, e, t, a, n, s = {}) => {
1274
1274
  m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
1275
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, V);
1275
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(o, V);
1276
1276
  let i;
1277
1277
  l && (i = l.baseOptions);
1278
- const p = { method: "POST", ...i, ...o }, d = {}, h = {};
1278
+ const p = { method: "POST", ...i, ...s }, d = {}, h = {};
1279
1279
  n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
1280
1280
  let k = i && i.headers ? i.headers : {};
1281
- return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
1281
+ return p.headers = { ...d, ...k, ...s.headers }, p.data = A(a, p, l), {
1282
1282
  url: b(c),
1283
1283
  options: p
1284
1284
  };
@@ -1294,14 +1294,14 @@ const ln = {
1294
1294
  */
1295
1295
  updateConnection: async (r, e, t, a = {}) => {
1296
1296
  m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
1297
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
1298
- let s;
1299
- l && (s = l.baseOptions);
1300
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
1301
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1302
- let d = s && s.headers ? s.headers : {};
1297
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(n, V);
1298
+ let o;
1299
+ l && (o = l.baseOptions);
1300
+ const c = { method: "PATCH", ...o, ...a }, i = {}, p = {};
1301
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
1302
+ let d = o && o.headers ? o.headers : {};
1303
1303
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
1304
- url: b(o),
1304
+ url: b(s),
1305
1305
  options: c
1306
1306
  };
1307
1307
  }
@@ -1319,8 +1319,8 @@ const ln = {
1319
1319
  * @throws {RequiredError}
1320
1320
  */
1321
1321
  async createConnection(e, t, a, n) {
1322
- const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
1323
- return (i, p) => S(o, u, g, l)(i, c || p);
1322
+ const s = await r.createConnection(e, t, a, n), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[o]?.url;
1323
+ return (i, p) => S(s, u, g, l)(i, c || p);
1324
1324
  },
1325
1325
  /**
1326
1326
  * Permanently deletes a database connection from the environment.
@@ -1331,8 +1331,8 @@ const ln = {
1331
1331
  * @throws {RequiredError}
1332
1332
  */
1333
1333
  async deleteConnection(e, t, a) {
1334
- const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
1335
- return (c, i) => S(n, u, g, l)(c, s || i);
1334
+ const n = await r.deleteConnection(e, t, a), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.deleteConnection"]?.[s]?.url;
1335
+ return (c, i) => S(n, u, g, l)(c, o || i);
1336
1336
  },
1337
1337
  /**
1338
1338
  * 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.
@@ -1343,8 +1343,8 @@ const ln = {
1343
1343
  * @throws {RequiredError}
1344
1344
  */
1345
1345
  async getConnection(e, t, a) {
1346
- const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
1347
- return (c, i) => S(n, u, g, l)(c, s || i);
1346
+ const n = await r.getConnection(e, t, a), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.getConnection"]?.[s]?.url;
1347
+ return (c, i) => S(n, u, g, l)(c, o || i);
1348
1348
  },
1349
1349
  /**
1350
1350
  * 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.
@@ -1356,9 +1356,9 @@ const ln = {
1356
1356
  * @param {*} [options] Override http request option.
1357
1357
  * @throws {RequiredError}
1358
1358
  */
1359
- async getTable(e, t, a, n, o) {
1360
- const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
1361
- return (p, d) => S(s, u, g, l)(p, i || d);
1359
+ async getTable(e, t, a, n, s) {
1360
+ const o = await r.getTable(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
1361
+ return (p, d) => S(o, u, g, l)(p, i || d);
1362
1362
  },
1363
1363
  /**
1364
1364
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1372,8 +1372,8 @@ const ln = {
1372
1372
  * @param {*} [options] Override http request option.
1373
1373
  * @throws {RequiredError}
1374
1374
  */
1375
- async getTableInPackage(e, t, a, n, o, s, c) {
1376
- const i = await r.getTableInPackage(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[p]?.url;
1375
+ async getTableInPackage(e, t, a, n, s, o, c) {
1376
+ const i = await r.getTableInPackage(e, t, a, n, s, o, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[p]?.url;
1377
1377
  return (h, k) => S(i, u, g, l)(h, d || k);
1378
1378
  },
1379
1379
  /**
@@ -1384,8 +1384,8 @@ const ln = {
1384
1384
  * @throws {RequiredError}
1385
1385
  */
1386
1386
  async listConnections(e, t) {
1387
- const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[n]?.url;
1388
- return (s, c) => S(a, u, g, l)(s, o || c);
1387
+ const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, s = P["ConnectionsApi.listConnections"]?.[n]?.url;
1388
+ return (o, c) => S(a, u, g, l)(o, s || c);
1389
1389
  },
1390
1390
  /**
1391
1391
  * 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.
@@ -1396,8 +1396,8 @@ const ln = {
1396
1396
  * @throws {RequiredError}
1397
1397
  */
1398
1398
  async listSchemas(e, t, a) {
1399
- const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
1400
- return (c, i) => S(n, u, g, l)(c, s || i);
1399
+ const n = await r.listSchemas(e, t, a), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.listSchemas"]?.[s]?.url;
1400
+ return (c, i) => S(n, u, g, l)(c, o || i);
1401
1401
  },
1402
1402
  /**
1403
1403
  * 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).
@@ -1409,9 +1409,9 @@ const ln = {
1409
1409
  * @param {*} [options] Override http request option.
1410
1410
  * @throws {RequiredError}
1411
1411
  */
1412
- async listSchemasInPackage(e, t, a, n, o) {
1413
- const s = await r.listSchemasInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listSchemasInPackage"]?.[c]?.url;
1414
- return (p, d) => S(s, u, g, l)(p, i || d);
1412
+ async listSchemasInPackage(e, t, a, n, s) {
1413
+ const o = await r.listSchemasInPackage(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listSchemasInPackage"]?.[c]?.url;
1414
+ return (p, d) => S(o, u, g, l)(p, i || d);
1415
1415
  },
1416
1416
  /**
1417
1417
  * 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.
@@ -1423,9 +1423,9 @@ const ln = {
1423
1423
  * @param {*} [options] Override http request option.
1424
1424
  * @throws {RequiredError}
1425
1425
  */
1426
- async listTables(e, t, a, n, o) {
1427
- const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
1428
- return (p, d) => S(s, u, g, l)(p, i || d);
1426
+ async listTables(e, t, a, n, s) {
1427
+ const o = await r.listTables(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
1428
+ return (p, d) => S(o, u, g, l)(p, i || d);
1429
1429
  },
1430
1430
  /**
1431
1431
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1439,8 +1439,8 @@ const ln = {
1439
1439
  * @param {*} [options] Override http request option.
1440
1440
  * @throws {RequiredError}
1441
1441
  */
1442
- async listTablesInPackage(e, t, a, n, o, s, c) {
1443
- const i = await r.listTablesInPackage(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[p]?.url;
1442
+ async listTablesInPackage(e, t, a, n, s, o, c) {
1443
+ const i = await r.listTablesInPackage(e, t, a, n, s, o, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[p]?.url;
1444
1444
  return (h, k) => S(i, u, g, l)(h, d || k);
1445
1445
  },
1446
1446
  /**
@@ -1453,8 +1453,8 @@ const ln = {
1453
1453
  * @throws {RequiredError}
1454
1454
  */
1455
1455
  async postQuerydata(e, t, a, n) {
1456
- const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
1457
- return (i, p) => S(o, u, g, l)(i, c || p);
1456
+ const s = await r.postQuerydata(e, t, a, n), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[o]?.url;
1457
+ return (i, p) => S(s, u, g, l)(i, c || p);
1458
1458
  },
1459
1459
  /**
1460
1460
  * 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.
@@ -1467,8 +1467,8 @@ const ln = {
1467
1467
  * @param {*} [options] Override http request option.
1468
1468
  * @throws {RequiredError}
1469
1469
  */
1470
- async postQuerydataInPackage(e, t, a, n, o, s) {
1471
- const c = await r.postQuerydataInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
1470
+ async postQuerydataInPackage(e, t, a, n, s, o) {
1471
+ const c = await r.postQuerydataInPackage(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
1472
1472
  return (d, h) => S(c, u, g, l)(d, p || h);
1473
1473
  },
1474
1474
  /**
@@ -1481,8 +1481,8 @@ const ln = {
1481
1481
  * @throws {RequiredError}
1482
1482
  */
1483
1483
  async postSqlsource(e, t, a, n) {
1484
- const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
1485
- return (i, p) => S(o, u, g, l)(i, c || p);
1484
+ const s = await r.postSqlsource(e, t, a, n), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[o]?.url;
1485
+ return (i, p) => S(s, u, g, l)(i, c || p);
1486
1486
  },
1487
1487
  /**
1488
1488
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1495,8 +1495,8 @@ const ln = {
1495
1495
  * @param {*} [options] Override http request option.
1496
1496
  * @throws {RequiredError}
1497
1497
  */
1498
- async postSqlsourceInPackage(e, t, a, n, o, s) {
1499
- const c = await r.postSqlsourceInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postSqlsourceInPackage"]?.[i]?.url;
1498
+ async postSqlsourceInPackage(e, t, a, n, s, o) {
1499
+ const c = await r.postSqlsourceInPackage(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postSqlsourceInPackage"]?.[i]?.url;
1500
1500
  return (d, h) => S(c, u, g, l)(d, p || h);
1501
1501
  },
1502
1502
  /**
@@ -1509,8 +1509,8 @@ const ln = {
1509
1509
  * @throws {RequiredError}
1510
1510
  */
1511
1511
  async postTemporarytable(e, t, a, n) {
1512
- const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
1513
- return (i, p) => S(o, u, g, l)(i, c || p);
1512
+ const s = await r.postTemporarytable(e, t, a, n), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[o]?.url;
1513
+ return (i, p) => S(s, u, g, l)(i, c || p);
1514
1514
  },
1515
1515
  /**
1516
1516
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1523,8 +1523,8 @@ const ln = {
1523
1523
  * @param {*} [options] Override http request option.
1524
1524
  * @throws {RequiredError}
1525
1525
  */
1526
- async postTemporarytableInPackage(e, t, a, n, o, s) {
1527
- const c = await r.postTemporarytableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postTemporarytableInPackage"]?.[i]?.url;
1526
+ async postTemporarytableInPackage(e, t, a, n, s, o) {
1527
+ const c = await r.postTemporarytableInPackage(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postTemporarytableInPackage"]?.[i]?.url;
1528
1528
  return (d, h) => S(c, u, g, l)(d, p || h);
1529
1529
  },
1530
1530
  /**
@@ -1537,8 +1537,8 @@ const ln = {
1537
1537
  * @throws {RequiredError}
1538
1538
  */
1539
1539
  async updateConnection(e, t, a, n) {
1540
- const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
1541
- return (i, p) => S(o, u, g, l)(i, c || p);
1540
+ const s = await r.updateConnection(e, t, a, n), o = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[o]?.url;
1541
+ return (i, p) => S(s, u, g, l)(i, c || p);
1542
1542
  }
1543
1543
  };
1544
1544
  }, pn = function(l, r, e) {
@@ -1553,8 +1553,8 @@ const ln = {
1553
1553
  * @param {*} [options] Override http request option.
1554
1554
  * @throws {RequiredError}
1555
1555
  */
1556
- createConnection(a, n, o, s) {
1557
- return t.createConnection(a, n, o, s).then((c) => c(e, r));
1556
+ createConnection(a, n, s, o) {
1557
+ return t.createConnection(a, n, s, o).then((c) => c(e, r));
1558
1558
  },
1559
1559
  /**
1560
1560
  * Permanently deletes a database connection from the environment.
@@ -1564,8 +1564,8 @@ const ln = {
1564
1564
  * @param {*} [options] Override http request option.
1565
1565
  * @throws {RequiredError}
1566
1566
  */
1567
- deleteConnection(a, n, o) {
1568
- return t.deleteConnection(a, n, o).then((s) => s(e, r));
1567
+ deleteConnection(a, n, s) {
1568
+ return t.deleteConnection(a, n, s).then((o) => o(e, r));
1569
1569
  },
1570
1570
  /**
1571
1571
  * 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.
@@ -1575,8 +1575,8 @@ const ln = {
1575
1575
  * @param {*} [options] Override http request option.
1576
1576
  * @throws {RequiredError}
1577
1577
  */
1578
- getConnection(a, n, o) {
1579
- return t.getConnection(a, n, o).then((s) => s(e, r));
1578
+ getConnection(a, n, s) {
1579
+ return t.getConnection(a, n, s).then((o) => o(e, r));
1580
1580
  },
1581
1581
  /**
1582
1582
  * 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.
@@ -1588,8 +1588,8 @@ const ln = {
1588
1588
  * @param {*} [options] Override http request option.
1589
1589
  * @throws {RequiredError}
1590
1590
  */
1591
- getTable(a, n, o, s, c) {
1592
- return t.getTable(a, n, o, s, c).then((i) => i(e, r));
1591
+ getTable(a, n, s, o, c) {
1592
+ return t.getTable(a, n, s, o, c).then((i) => i(e, r));
1593
1593
  },
1594
1594
  /**
1595
1595
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1603,8 +1603,8 @@ const ln = {
1603
1603
  * @param {*} [options] Override http request option.
1604
1604
  * @throws {RequiredError}
1605
1605
  */
1606
- getTableInPackage(a, n, o, s, c, i, p) {
1607
- return t.getTableInPackage(a, n, o, s, c, i, p).then((d) => d(e, r));
1606
+ getTableInPackage(a, n, s, o, c, i, p) {
1607
+ return t.getTableInPackage(a, n, s, o, c, i, p).then((d) => d(e, r));
1608
1608
  },
1609
1609
  /**
1610
1610
  * 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.
@@ -1614,7 +1614,7 @@ const ln = {
1614
1614
  * @throws {RequiredError}
1615
1615
  */
1616
1616
  listConnections(a, n) {
1617
- return t.listConnections(a, n).then((o) => o(e, r));
1617
+ return t.listConnections(a, n).then((s) => s(e, r));
1618
1618
  },
1619
1619
  /**
1620
1620
  * 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.
@@ -1624,8 +1624,8 @@ const ln = {
1624
1624
  * @param {*} [options] Override http request option.
1625
1625
  * @throws {RequiredError}
1626
1626
  */
1627
- listSchemas(a, n, o) {
1628
- return t.listSchemas(a, n, o).then((s) => s(e, r));
1627
+ listSchemas(a, n, s) {
1628
+ return t.listSchemas(a, n, s).then((o) => o(e, r));
1629
1629
  },
1630
1630
  /**
1631
1631
  * 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).
@@ -1637,8 +1637,8 @@ const ln = {
1637
1637
  * @param {*} [options] Override http request option.
1638
1638
  * @throws {RequiredError}
1639
1639
  */
1640
- listSchemasInPackage(a, n, o, s, c) {
1641
- return t.listSchemasInPackage(a, n, o, s, c).then((i) => i(e, r));
1640
+ listSchemasInPackage(a, n, s, o, c) {
1641
+ return t.listSchemasInPackage(a, n, s, o, c).then((i) => i(e, r));
1642
1642
  },
1643
1643
  /**
1644
1644
  * 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.
@@ -1650,8 +1650,8 @@ const ln = {
1650
1650
  * @param {*} [options] Override http request option.
1651
1651
  * @throws {RequiredError}
1652
1652
  */
1653
- listTables(a, n, o, s, c) {
1654
- return t.listTables(a, n, o, s, c).then((i) => i(e, r));
1653
+ listTables(a, n, s, o, c) {
1654
+ return t.listTables(a, n, s, o, c).then((i) => i(e, r));
1655
1655
  },
1656
1656
  /**
1657
1657
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1665,8 +1665,8 @@ const ln = {
1665
1665
  * @param {*} [options] Override http request option.
1666
1666
  * @throws {RequiredError}
1667
1667
  */
1668
- listTablesInPackage(a, n, o, s, c, i, p) {
1669
- return t.listTablesInPackage(a, n, o, s, c, i, p).then((d) => d(e, r));
1668
+ listTablesInPackage(a, n, s, o, c, i, p) {
1669
+ return t.listTablesInPackage(a, n, s, o, c, i, p).then((d) => d(e, r));
1670
1670
  },
1671
1671
  /**
1672
1672
  * 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.
@@ -1677,8 +1677,8 @@ const ln = {
1677
1677
  * @param {*} [options] Override http request option.
1678
1678
  * @throws {RequiredError}
1679
1679
  */
1680
- postQuerydata(a, n, o, s) {
1681
- return t.postQuerydata(a, n, o, s).then((c) => c(e, r));
1680
+ postQuerydata(a, n, s, o) {
1681
+ return t.postQuerydata(a, n, s, o).then((c) => c(e, r));
1682
1682
  },
1683
1683
  /**
1684
1684
  * 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.
@@ -1691,8 +1691,8 @@ const ln = {
1691
1691
  * @param {*} [options] Override http request option.
1692
1692
  * @throws {RequiredError}
1693
1693
  */
1694
- postQuerydataInPackage(a, n, o, s, c, i) {
1695
- return t.postQuerydataInPackage(a, n, o, s, c, i).then((p) => p(e, r));
1694
+ postQuerydataInPackage(a, n, s, o, c, i) {
1695
+ return t.postQuerydataInPackage(a, n, s, o, c, i).then((p) => p(e, r));
1696
1696
  },
1697
1697
  /**
1698
1698
  * 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.
@@ -1703,8 +1703,8 @@ const ln = {
1703
1703
  * @param {*} [options] Override http request option.
1704
1704
  * @throws {RequiredError}
1705
1705
  */
1706
- postSqlsource(a, n, o, s) {
1707
- return t.postSqlsource(a, n, o, s).then((c) => c(e, r));
1706
+ postSqlsource(a, n, s, o) {
1707
+ return t.postSqlsource(a, n, s, o).then((c) => c(e, r));
1708
1708
  },
1709
1709
  /**
1710
1710
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1717,8 +1717,8 @@ const ln = {
1717
1717
  * @param {*} [options] Override http request option.
1718
1718
  * @throws {RequiredError}
1719
1719
  */
1720
- postSqlsourceInPackage(a, n, o, s, c, i) {
1721
- return t.postSqlsourceInPackage(a, n, o, s, c, i).then((p) => p(e, r));
1720
+ postSqlsourceInPackage(a, n, s, o, c, i) {
1721
+ return t.postSqlsourceInPackage(a, n, s, o, c, i).then((p) => p(e, r));
1722
1722
  },
1723
1723
  /**
1724
1724
  * 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.
@@ -1729,8 +1729,8 @@ const ln = {
1729
1729
  * @param {*} [options] Override http request option.
1730
1730
  * @throws {RequiredError}
1731
1731
  */
1732
- postTemporarytable(a, n, o, s) {
1733
- return t.postTemporarytable(a, n, o, s).then((c) => c(e, r));
1732
+ postTemporarytable(a, n, s, o) {
1733
+ return t.postTemporarytable(a, n, s, o).then((c) => c(e, r));
1734
1734
  },
1735
1735
  /**
1736
1736
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1743,8 +1743,8 @@ const ln = {
1743
1743
  * @param {*} [options] Override http request option.
1744
1744
  * @throws {RequiredError}
1745
1745
  */
1746
- postTemporarytableInPackage(a, n, o, s, c, i) {
1747
- return t.postTemporarytableInPackage(a, n, o, s, c, i).then((p) => p(e, r));
1746
+ postTemporarytableInPackage(a, n, s, o, c, i) {
1747
+ return t.postTemporarytableInPackage(a, n, s, o, c, i).then((p) => p(e, r));
1748
1748
  },
1749
1749
  /**
1750
1750
  * Updates the configuration of an existing database connection.
@@ -1755,8 +1755,8 @@ const ln = {
1755
1755
  * @param {*} [options] Override http request option.
1756
1756
  * @throws {RequiredError}
1757
1757
  */
1758
- updateConnection(a, n, o, s) {
1759
- return t.updateConnection(a, n, o, s).then((c) => c(e, r));
1758
+ updateConnection(a, n, s, o) {
1759
+ return t.updateConnection(a, n, s, o).then((c) => c(e, r));
1760
1760
  }
1761
1761
  };
1762
1762
  };
@@ -1806,7 +1806,7 @@ class _e extends C {
1806
1806
  * @throws {RequiredError}
1807
1807
  */
1808
1808
  getTable(r, e, t, a, n) {
1809
- return y(this.configuration).getTable(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1809
+ return y(this.configuration).getTable(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
1810
1810
  }
1811
1811
  /**
1812
1812
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1820,8 +1820,8 @@ class _e extends C {
1820
1820
  * @param {*} [options] Override http request option.
1821
1821
  * @throws {RequiredError}
1822
1822
  */
1823
- getTableInPackage(r, e, t, a, n, o, s) {
1824
- return y(this.configuration).getTableInPackage(r, e, t, a, n, o, s).then((c) => c(this.axios, this.basePath));
1823
+ getTableInPackage(r, e, t, a, n, s, o) {
1824
+ return y(this.configuration).getTableInPackage(r, e, t, a, n, s, o).then((c) => c(this.axios, this.basePath));
1825
1825
  }
1826
1826
  /**
1827
1827
  * 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.
@@ -1855,7 +1855,7 @@ class _e extends C {
1855
1855
  * @throws {RequiredError}
1856
1856
  */
1857
1857
  listSchemasInPackage(r, e, t, a, n) {
1858
- return y(this.configuration).listSchemasInPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1858
+ return y(this.configuration).listSchemasInPackage(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
1859
1859
  }
1860
1860
  /**
1861
1861
  * 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.
@@ -1868,7 +1868,7 @@ class _e extends C {
1868
1868
  * @throws {RequiredError}
1869
1869
  */
1870
1870
  listTables(r, e, t, a, n) {
1871
- return y(this.configuration).listTables(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1871
+ return y(this.configuration).listTables(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
1872
1872
  }
1873
1873
  /**
1874
1874
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1882,8 +1882,8 @@ class _e extends C {
1882
1882
  * @param {*} [options] Override http request option.
1883
1883
  * @throws {RequiredError}
1884
1884
  */
1885
- listTablesInPackage(r, e, t, a, n, o, s) {
1886
- return y(this.configuration).listTablesInPackage(r, e, t, a, n, o, s).then((c) => c(this.axios, this.basePath));
1885
+ listTablesInPackage(r, e, t, a, n, s, o) {
1886
+ return y(this.configuration).listTablesInPackage(r, e, t, a, n, s, o).then((c) => c(this.axios, this.basePath));
1887
1887
  }
1888
1888
  /**
1889
1889
  * 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.
@@ -1908,8 +1908,8 @@ class _e extends C {
1908
1908
  * @param {*} [options] Override http request option.
1909
1909
  * @throws {RequiredError}
1910
1910
  */
1911
- postQuerydataInPackage(r, e, t, a, n, o) {
1912
- return y(this.configuration).postQuerydataInPackage(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
1911
+ postQuerydataInPackage(r, e, t, a, n, s) {
1912
+ return y(this.configuration).postQuerydataInPackage(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
1913
1913
  }
1914
1914
  /**
1915
1915
  * 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.
@@ -1934,8 +1934,8 @@ class _e extends C {
1934
1934
  * @param {*} [options] Override http request option.
1935
1935
  * @throws {RequiredError}
1936
1936
  */
1937
- postSqlsourceInPackage(r, e, t, a, n, o) {
1938
- return y(this.configuration).postSqlsourceInPackage(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
1937
+ postSqlsourceInPackage(r, e, t, a, n, s) {
1938
+ return y(this.configuration).postSqlsourceInPackage(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
1939
1939
  }
1940
1940
  /**
1941
1941
  * 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.
@@ -1960,8 +1960,8 @@ class _e extends C {
1960
1960
  * @param {*} [options] Override http request option.
1961
1961
  * @throws {RequiredError}
1962
1962
  */
1963
- postTemporarytableInPackage(r, e, t, a, n, o) {
1964
- return y(this.configuration).postTemporarytableInPackage(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
1963
+ postTemporarytableInPackage(r, e, t, a, n, s) {
1964
+ return y(this.configuration).postTemporarytableInPackage(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
1965
1965
  }
1966
1966
  /**
1967
1967
  * Updates the configuration of an existing database connection.
@@ -1990,12 +1990,12 @@ const Ge = function(l) {
1990
1990
  const t = "/connections/test", a = new URL(t, V);
1991
1991
  let n;
1992
1992
  l && (n = l.baseOptions);
1993
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1994
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
1993
+ const s = { method: "POST", ...n, ...e }, o = {}, c = {};
1994
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(a, c);
1995
1995
  let i = n && n.headers ? n.headers : {};
1996
- return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
1996
+ return s.headers = { ...o, ...i, ...e.headers }, s.data = A(r, s, l), {
1997
1997
  url: b(a),
1998
- options: o
1998
+ options: s
1999
1999
  };
2000
2000
  }
2001
2001
  };
@@ -2010,8 +2010,8 @@ const Ge = function(l) {
2010
2010
  * @throws {RequiredError}
2011
2011
  */
2012
2012
  async testConnectionConfiguration(e, t) {
2013
- const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
2014
- return (s, c) => S(a, u, g, l)(s, o || c);
2013
+ const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, s = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
2014
+ return (o, c) => S(a, u, g, l)(o, s || c);
2015
2015
  }
2016
2016
  };
2017
2017
  }, dn = function(l, r, e) {
@@ -2025,7 +2025,7 @@ const Ge = function(l) {
2025
2025
  * @throws {RequiredError}
2026
2026
  */
2027
2027
  testConnectionConfiguration(a, n) {
2028
- return t.testConnectionConfiguration(a, n).then((o) => o(e, r));
2028
+ return t.testConnectionConfiguration(a, n).then((s) => s(e, r));
2029
2029
  }
2030
2030
  };
2031
2031
  };
@@ -2056,14 +2056,14 @@ const We = function(l) {
2056
2056
  */
2057
2057
  getDashboard: async (r, e, t, a, n = {}) => {
2058
2058
  m("getDashboard", "environmentName", r), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
2059
- const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, V);
2059
+ const s = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), o = new URL(s, V);
2060
2060
  let c;
2061
2061
  l && (c = l.baseOptions);
2062
2062
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2063
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
2063
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(o, d);
2064
2064
  let h = c && c.headers ? c.headers : {};
2065
2065
  return i.headers = { ...p, ...h, ...n.headers }, {
2066
- url: b(s),
2066
+ url: b(o),
2067
2067
  options: i
2068
2068
  };
2069
2069
  },
@@ -2079,14 +2079,14 @@ const We = function(l) {
2079
2079
  */
2080
2080
  listDashboards: async (r, e, t, a = {}) => {
2081
2081
  m("listDashboards", "environmentName", r), m("listDashboards", "packageName", e);
2082
- const n = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2083
- let s;
2084
- l && (s = l.baseOptions);
2085
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2086
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
2087
- let d = s && s.headers ? s.headers : {};
2082
+ const n = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
2083
+ let o;
2084
+ l && (o = l.baseOptions);
2085
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
2086
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
2087
+ let d = o && o.headers ? o.headers : {};
2088
2088
  return c.headers = { ...i, ...d, ...a.headers }, {
2089
- url: b(o),
2089
+ url: b(s),
2090
2090
  options: c
2091
2091
  };
2092
2092
  }
@@ -2105,9 +2105,9 @@ const We = function(l) {
2105
2105
  * @deprecated
2106
2106
  * @throws {RequiredError}
2107
2107
  */
2108
- async getDashboard(e, t, a, n, o) {
2109
- const s = await r.getDashboard(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[c]?.url;
2110
- return (p, d) => S(s, u, g, l)(p, i || d);
2108
+ async getDashboard(e, t, a, n, s) {
2109
+ const o = await r.getDashboard(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[c]?.url;
2110
+ return (p, d) => S(o, u, g, l)(p, i || d);
2111
2111
  },
2112
2112
  /**
2113
2113
  * **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.
@@ -2120,8 +2120,8 @@ const We = function(l) {
2120
2120
  * @throws {RequiredError}
2121
2121
  */
2122
2122
  async listDashboards(e, t, a, n) {
2123
- const o = await r.listDashboards(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DashboardsApi.listDashboards"]?.[s]?.url;
2124
- return (i, p) => S(o, u, g, l)(i, c || p);
2123
+ const s = await r.listDashboards(e, t, a, n), o = l?.serverIndex ?? 0, c = P["DashboardsApi.listDashboards"]?.[o]?.url;
2124
+ return (i, p) => S(s, u, g, l)(i, c || p);
2125
2125
  }
2126
2126
  };
2127
2127
  }, hn = function(l, r, e) {
@@ -2138,8 +2138,8 @@ const We = function(l) {
2138
2138
  * @deprecated
2139
2139
  * @throws {RequiredError}
2140
2140
  */
2141
- getDashboard(a, n, o, s, c) {
2142
- return t.getDashboard(a, n, o, s, c).then((i) => i(e, r));
2141
+ getDashboard(a, n, s, o, c) {
2142
+ return t.getDashboard(a, n, s, o, c).then((i) => i(e, r));
2143
2143
  },
2144
2144
  /**
2145
2145
  * **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.
@@ -2151,8 +2151,8 @@ const We = function(l) {
2151
2151
  * @deprecated
2152
2152
  * @throws {RequiredError}
2153
2153
  */
2154
- listDashboards(a, n, o, s) {
2155
- return t.listDashboards(a, n, o, s).then((c) => c(e, r));
2154
+ listDashboards(a, n, s, o) {
2155
+ return t.listDashboards(a, n, s, o).then((c) => c(e, r));
2156
2156
  }
2157
2157
  };
2158
2158
  };
@@ -2169,7 +2169,7 @@ class Ke extends C {
2169
2169
  * @throws {RequiredError}
2170
2170
  */
2171
2171
  getDashboard(r, e, t, a, n) {
2172
- return X(this.configuration).getDashboard(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
2172
+ return X(this.configuration).getDashboard(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
2173
2173
  }
2174
2174
  /**
2175
2175
  * **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.
@@ -2198,14 +2198,14 @@ const $e = function(l) {
2198
2198
  */
2199
2199
  listDataApps: async (r, e, t, a = {}) => {
2200
2200
  m("listDataApps", "environmentName", r), m("listDataApps", "packageName", e);
2201
- const n = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2202
- let s;
2203
- l && (s = l.baseOptions);
2204
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2205
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
2206
- let d = s && s.headers ? s.headers : {};
2201
+ const n = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
2202
+ let o;
2203
+ l && (o = l.baseOptions);
2204
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
2205
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
2206
+ let d = o && o.headers ? o.headers : {};
2207
2207
  return c.headers = { ...i, ...d, ...a.headers }, {
2208
- url: b(o),
2208
+ url: b(s),
2209
2209
  options: c
2210
2210
  };
2211
2211
  }
@@ -2223,8 +2223,8 @@ const $e = function(l) {
2223
2223
  * @throws {RequiredError}
2224
2224
  */
2225
2225
  async listDataApps(e, t, a, n) {
2226
- const o = await r.listDataApps(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DataAppsApi.listDataApps"]?.[s]?.url;
2227
- return (i, p) => S(o, u, g, l)(i, c || p);
2226
+ const s = await r.listDataApps(e, t, a, n), o = l?.serverIndex ?? 0, c = P["DataAppsApi.listDataApps"]?.[o]?.url;
2227
+ return (i, p) => S(s, u, g, l)(i, c || p);
2228
2228
  }
2229
2229
  };
2230
2230
  }, un = function(l, r, e) {
@@ -2239,8 +2239,8 @@ const $e = function(l) {
2239
2239
  * @param {*} [options] Override http request option.
2240
2240
  * @throws {RequiredError}
2241
2241
  */
2242
- listDataApps(a, n, o, s) {
2243
- return t.listDataApps(a, n, o, s).then((c) => c(e, r));
2242
+ listDataApps(a, n, s, o) {
2243
+ return t.listDataApps(a, n, s, o).then((c) => c(e, r));
2244
2244
  }
2245
2245
  };
2246
2246
  };
@@ -2271,14 +2271,14 @@ const Je = function(l) {
2271
2271
  */
2272
2272
  listDatabases: async (r, e, t, a = {}) => {
2273
2273
  m("listDatabases", "environmentName", r), m("listDatabases", "packageName", e);
2274
- const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2275
- let s;
2276
- l && (s = l.baseOptions);
2277
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2278
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
2279
- let d = s && s.headers ? s.headers : {};
2274
+ const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
2275
+ let o;
2276
+ l && (o = l.baseOptions);
2277
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
2278
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
2279
+ let d = o && o.headers ? o.headers : {};
2280
2280
  return c.headers = { ...i, ...d, ...a.headers }, {
2281
- url: b(o),
2281
+ url: b(s),
2282
2282
  options: c
2283
2283
  };
2284
2284
  }
@@ -2296,8 +2296,8 @@ const Je = function(l) {
2296
2296
  * @throws {RequiredError}
2297
2297
  */
2298
2298
  async listDatabases(e, t, a, n) {
2299
- const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
2300
- return (i, p) => S(o, u, g, l)(i, c || p);
2299
+ const s = await r.listDatabases(e, t, a, n), o = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[o]?.url;
2300
+ return (i, p) => S(s, u, g, l)(i, c || p);
2301
2301
  }
2302
2302
  };
2303
2303
  }, gn = function(l, r, e) {
@@ -2312,8 +2312,8 @@ const Je = function(l) {
2312
2312
  * @param {*} [options] Override http request option.
2313
2313
  * @throws {RequiredError}
2314
2314
  */
2315
- listDatabases(a, n, o, s) {
2316
- return t.listDatabases(a, n, o, s).then((c) => c(e, r));
2315
+ listDatabases(a, n, s, o) {
2316
+ return t.listDatabases(a, n, s, o).then((c) => c(e, r));
2317
2317
  }
2318
2318
  };
2319
2319
  };
@@ -2345,12 +2345,12 @@ const Ze = function(l) {
2345
2345
  const t = "/environments", a = new URL(t, V);
2346
2346
  let n;
2347
2347
  l && (n = l.baseOptions);
2348
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
2349
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
2348
+ const s = { method: "POST", ...n, ...e }, o = {}, c = {};
2349
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(a, c);
2350
2350
  let i = n && n.headers ? n.headers : {};
2351
- return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
2351
+ return s.headers = { ...o, ...i, ...e.headers }, s.data = A(r, s, l), {
2352
2352
  url: b(a),
2353
- options: o
2353
+ options: s
2354
2354
  };
2355
2355
  },
2356
2356
  /**
@@ -2365,12 +2365,12 @@ const Ze = function(l) {
2365
2365
  const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
2366
2366
  let n;
2367
2367
  l && (n = l.baseOptions);
2368
- const o = { method: "DELETE", ...n, ...e }, s = {}, c = {};
2369
- s.Accept = "application/json", v(a, c);
2368
+ const s = { method: "DELETE", ...n, ...e }, o = {}, c = {};
2369
+ o.Accept = "application/json", v(a, c);
2370
2370
  let i = n && n.headers ? n.headers : {};
2371
- return o.headers = { ...s, ...i, ...e.headers }, {
2371
+ return s.headers = { ...o, ...i, ...e.headers }, {
2372
2372
  url: b(a),
2373
- options: o
2373
+ options: s
2374
2374
  };
2375
2375
  },
2376
2376
  /**
@@ -2384,14 +2384,14 @@ const Ze = function(l) {
2384
2384
  getEnvironment: async (r, e, t = {}) => {
2385
2385
  m("getEnvironment", "environmentName", r);
2386
2386
  const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
2387
- let o;
2388
- l && (o = l.baseOptions);
2389
- const s = { method: "GET", ...o, ...t }, c = {}, i = {};
2387
+ let s;
2388
+ l && (s = l.baseOptions);
2389
+ const o = { method: "GET", ...s, ...t }, c = {}, i = {};
2390
2390
  e !== void 0 && (i.reload = e), c.Accept = "application/json", v(n, i);
2391
- let p = o && o.headers ? o.headers : {};
2392
- return s.headers = { ...c, ...p, ...t.headers }, {
2391
+ let p = s && s.headers ? s.headers : {};
2392
+ return o.headers = { ...c, ...p, ...t.headers }, {
2393
2393
  url: b(n),
2394
- options: s
2394
+ options: o
2395
2395
  };
2396
2396
  },
2397
2397
  /**
@@ -2404,10 +2404,10 @@ const Ze = function(l) {
2404
2404
  const e = "/environments", t = new URL(e, V);
2405
2405
  let a;
2406
2406
  l && (a = l.baseOptions);
2407
- const n = { method: "GET", ...a, ...r }, o = {}, s = {};
2408
- o.Accept = "application/json", v(t, s);
2407
+ const n = { method: "GET", ...a, ...r }, s = {}, o = {};
2408
+ s.Accept = "application/json", v(t, o);
2409
2409
  let c = a && a.headers ? a.headers : {};
2410
- return n.headers = { ...o, ...c, ...r.headers }, {
2410
+ return n.headers = { ...s, ...c, ...r.headers }, {
2411
2411
  url: b(t),
2412
2412
  options: n
2413
2413
  };
@@ -2423,14 +2423,14 @@ const Ze = function(l) {
2423
2423
  updateEnvironment: async (r, e, t = {}) => {
2424
2424
  m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", e);
2425
2425
  const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
2426
- let o;
2427
- l && (o = l.baseOptions);
2428
- const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
2426
+ let s;
2427
+ l && (s = l.baseOptions);
2428
+ const o = { method: "PATCH", ...s, ...t }, c = {}, i = {};
2429
2429
  c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
2430
- let p = o && o.headers ? o.headers : {};
2431
- return s.headers = { ...c, ...p, ...t.headers }, s.data = A(e, s, l), {
2430
+ let p = s && s.headers ? s.headers : {};
2431
+ return o.headers = { ...c, ...p, ...t.headers }, o.data = A(e, o, l), {
2432
2432
  url: b(n),
2433
- options: s
2433
+ options: o
2434
2434
  };
2435
2435
  }
2436
2436
  };
@@ -2445,8 +2445,8 @@ const Ze = function(l) {
2445
2445
  * @throws {RequiredError}
2446
2446
  */
2447
2447
  async createEnvironment(e, t) {
2448
- const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
2449
- return (s, c) => S(a, u, g, l)(s, o || c);
2448
+ const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, s = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
2449
+ return (o, c) => S(a, u, g, l)(o, s || c);
2450
2450
  },
2451
2451
  /**
2452
2452
  * 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.
@@ -2456,8 +2456,8 @@ const Ze = function(l) {
2456
2456
  * @throws {RequiredError}
2457
2457
  */
2458
2458
  async deleteEnvironment(e, t) {
2459
- const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
2460
- return (s, c) => S(a, u, g, l)(s, o || c);
2459
+ const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, s = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
2460
+ return (o, c) => S(a, u, g, l)(o, s || c);
2461
2461
  },
2462
2462
  /**
2463
2463
  * 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.
@@ -2468,8 +2468,8 @@ const Ze = function(l) {
2468
2468
  * @throws {RequiredError}
2469
2469
  */
2470
2470
  async getEnvironment(e, t, a) {
2471
- const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
2472
- return (c, i) => S(n, u, g, l)(c, s || i);
2471
+ const n = await r.getEnvironment(e, t, a), s = l?.serverIndex ?? 0, o = P["EnvironmentsApi.getEnvironment"]?.[s]?.url;
2472
+ return (c, i) => S(n, u, g, l)(c, o || i);
2473
2473
  },
2474
2474
  /**
2475
2475
  * 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`.
@@ -2479,7 +2479,7 @@ const Ze = function(l) {
2479
2479
  */
2480
2480
  async listEnvironments(e) {
2481
2481
  const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
2482
- return (o, s) => S(t, u, g, l)(o, n || s);
2482
+ return (s, o) => S(t, u, g, l)(s, n || o);
2483
2483
  },
2484
2484
  /**
2485
2485
  * Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
@@ -2490,8 +2490,8 @@ const Ze = function(l) {
2490
2490
  * @throws {RequiredError}
2491
2491
  */
2492
2492
  async updateEnvironment(e, t, a) {
2493
- const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
2494
- return (c, i) => S(n, u, g, l)(c, s || i);
2493
+ const n = await r.updateEnvironment(e, t, a), s = l?.serverIndex ?? 0, o = P["EnvironmentsApi.updateEnvironment"]?.[s]?.url;
2494
+ return (c, i) => S(n, u, g, l)(c, o || i);
2495
2495
  }
2496
2496
  };
2497
2497
  }, Pn = function(l, r, e) {
@@ -2505,7 +2505,7 @@ const Ze = function(l) {
2505
2505
  * @throws {RequiredError}
2506
2506
  */
2507
2507
  createEnvironment(a, n) {
2508
- return t.createEnvironment(a, n).then((o) => o(e, r));
2508
+ return t.createEnvironment(a, n).then((s) => s(e, r));
2509
2509
  },
2510
2510
  /**
2511
2511
  * 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.
@@ -2515,7 +2515,7 @@ const Ze = function(l) {
2515
2515
  * @throws {RequiredError}
2516
2516
  */
2517
2517
  deleteEnvironment(a, n) {
2518
- return t.deleteEnvironment(a, n).then((o) => o(e, r));
2518
+ return t.deleteEnvironment(a, n).then((s) => s(e, r));
2519
2519
  },
2520
2520
  /**
2521
2521
  * 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.
@@ -2525,8 +2525,8 @@ const Ze = function(l) {
2525
2525
  * @param {*} [options] Override http request option.
2526
2526
  * @throws {RequiredError}
2527
2527
  */
2528
- getEnvironment(a, n, o) {
2529
- return t.getEnvironment(a, n, o).then((s) => s(e, r));
2528
+ getEnvironment(a, n, s) {
2529
+ return t.getEnvironment(a, n, s).then((o) => o(e, r));
2530
2530
  },
2531
2531
  /**
2532
2532
  * 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`.
@@ -2545,8 +2545,8 @@ const Ze = function(l) {
2545
2545
  * @param {*} [options] Override http request option.
2546
2546
  * @throws {RequiredError}
2547
2547
  */
2548
- updateEnvironment(a, n, o) {
2549
- return t.updateEnvironment(a, n, o).then((s) => s(e, r));
2548
+ updateEnvironment(a, n, s) {
2549
+ return t.updateEnvironment(a, n, s).then((o) => o(e, r));
2550
2550
  }
2551
2551
  };
2552
2552
  };
@@ -2616,14 +2616,14 @@ const aa = function(l) {
2616
2616
  */
2617
2617
  createMaterialization: async (r, e, t, a = {}) => {
2618
2618
  m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", e);
2619
- const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2620
- let s;
2621
- l && (s = l.baseOptions);
2622
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
2623
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
2624
- let d = s && s.headers ? s.headers : {};
2619
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
2620
+ let o;
2621
+ l && (o = l.baseOptions);
2622
+ const c = { method: "POST", ...o, ...a }, i = {}, p = {};
2623
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
2624
+ let d = o && o.headers ? o.headers : {};
2625
2625
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
2626
- url: b(o),
2626
+ url: b(s),
2627
2627
  options: c
2628
2628
  };
2629
2629
  },
@@ -2638,15 +2638,15 @@ const aa = function(l) {
2638
2638
  * @param {*} [options] Override http request option.
2639
2639
  * @throws {RequiredError}
2640
2640
  */
2641
- deleteMaterialization: async (r, e, t, a, n, o = {}) => {
2641
+ deleteMaterialization: async (r, e, t, a, n, s = {}) => {
2642
2642
  m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
2643
- const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s, V);
2643
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(o, V);
2644
2644
  let i;
2645
2645
  l && (i = l.baseOptions);
2646
- const p = { method: "DELETE", ...i, ...o }, d = {}, h = {};
2646
+ const p = { method: "DELETE", ...i, ...s }, d = {}, h = {};
2647
2647
  a !== void 0 && (h.dropTables = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
2648
2648
  let k = i && i.headers ? i.headers : {};
2649
- return p.headers = { ...d, ...k, ...o.headers }, {
2649
+ return p.headers = { ...d, ...k, ...s.headers }, {
2650
2650
  url: b(c),
2651
2651
  options: p
2652
2652
  };
@@ -2663,14 +2663,14 @@ const aa = function(l) {
2663
2663
  */
2664
2664
  getMaterialization: async (r, e, t, a, n = {}) => {
2665
2665
  m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
2666
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, V);
2666
+ const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(s, V);
2667
2667
  let c;
2668
2668
  l && (c = l.baseOptions);
2669
2669
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2670
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
2670
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(o, d);
2671
2671
  let h = c && c.headers ? c.headers : {};
2672
2672
  return i.headers = { ...p, ...h, ...n.headers }, {
2673
- url: b(s),
2673
+ url: b(o),
2674
2674
  options: i
2675
2675
  };
2676
2676
  },
@@ -2685,15 +2685,15 @@ const aa = function(l) {
2685
2685
  * @param {*} [options] Override http request option.
2686
2686
  * @throws {RequiredError}
2687
2687
  */
2688
- listMaterializations: async (r, e, t, a, n, o = {}) => {
2688
+ listMaterializations: async (r, e, t, a, n, s = {}) => {
2689
2689
  m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", e);
2690
- const s = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), c = new URL(s, V);
2690
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), c = new URL(o, V);
2691
2691
  let i;
2692
2692
  l && (i = l.baseOptions);
2693
- const p = { method: "GET", ...i, ...o }, d = {}, h = {};
2693
+ const p = { method: "GET", ...i, ...s }, d = {}, h = {};
2694
2694
  t !== void 0 && (h.limit = t), a !== void 0 && (h.offset = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
2695
2695
  let k = i && i.headers ? i.headers : {};
2696
- return p.headers = { ...d, ...k, ...o.headers }, {
2696
+ return p.headers = { ...d, ...k, ...s.headers }, {
2697
2697
  url: b(c),
2698
2698
  options: p
2699
2699
  };
@@ -2709,15 +2709,15 @@ const aa = function(l) {
2709
2709
  * @param {*} [options] Override http request option.
2710
2710
  * @throws {RequiredError}
2711
2711
  */
2712
- materializationAction: async (r, e, t, a, n, o = {}) => {
2712
+ materializationAction: async (r, e, t, a, n, s = {}) => {
2713
2713
  m("materializationAction", "environmentName", r), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
2714
- const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s, V);
2714
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(o, V);
2715
2715
  let i;
2716
2716
  l && (i = l.baseOptions);
2717
- const p = { method: "POST", ...i, ...o }, d = {}, h = {};
2717
+ const p = { method: "POST", ...i, ...s }, d = {}, h = {};
2718
2718
  a !== void 0 && (h.action = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
2719
2719
  let k = i && i.headers ? i.headers : {};
2720
- return p.headers = { ...d, ...k, ...o.headers }, {
2720
+ return p.headers = { ...d, ...k, ...s.headers }, {
2721
2721
  url: b(c),
2722
2722
  options: p
2723
2723
  };
@@ -2736,8 +2736,8 @@ const aa = function(l) {
2736
2736
  * @throws {RequiredError}
2737
2737
  */
2738
2738
  async createMaterialization(e, t, a, n) {
2739
- const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2740
- return (i, p) => S(o, u, g, l)(i, c || p);
2739
+ const s = await r.createMaterialization(e, t, a, n), o = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[o]?.url;
2740
+ return (i, p) => S(s, u, g, l)(i, c || p);
2741
2741
  },
2742
2742
  /**
2743
2743
  * 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.
@@ -2750,8 +2750,8 @@ const aa = function(l) {
2750
2750
  * @param {*} [options] Override http request option.
2751
2751
  * @throws {RequiredError}
2752
2752
  */
2753
- async deleteMaterialization(e, t, a, n, o, s) {
2754
- const c = await r.deleteMaterialization(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.deleteMaterialization"]?.[i]?.url;
2753
+ async deleteMaterialization(e, t, a, n, s, o) {
2754
+ const c = await r.deleteMaterialization(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.deleteMaterialization"]?.[i]?.url;
2755
2755
  return (d, h) => S(c, u, g, l)(d, p || h);
2756
2756
  },
2757
2757
  /**
@@ -2764,9 +2764,9 @@ const aa = function(l) {
2764
2764
  * @param {*} [options] Override http request option.
2765
2765
  * @throws {RequiredError}
2766
2766
  */
2767
- async getMaterialization(e, t, a, n, o) {
2768
- const s = await r.getMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.getMaterialization"]?.[c]?.url;
2769
- return (p, d) => S(s, u, g, l)(p, i || d);
2767
+ async getMaterialization(e, t, a, n, s) {
2768
+ const o = await r.getMaterialization(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.getMaterialization"]?.[c]?.url;
2769
+ return (p, d) => S(o, u, g, l)(p, i || d);
2770
2770
  },
2771
2771
  /**
2772
2772
  * 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.
@@ -2779,8 +2779,8 @@ const aa = function(l) {
2779
2779
  * @param {*} [options] Override http request option.
2780
2780
  * @throws {RequiredError}
2781
2781
  */
2782
- async listMaterializations(e, t, a, n, o, s) {
2783
- const c = await r.listMaterializations(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.listMaterializations"]?.[i]?.url;
2782
+ async listMaterializations(e, t, a, n, s, o) {
2783
+ const c = await r.listMaterializations(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.listMaterializations"]?.[i]?.url;
2784
2784
  return (d, h) => S(c, u, g, l)(d, p || h);
2785
2785
  },
2786
2786
  /**
@@ -2794,8 +2794,8 @@ const aa = function(l) {
2794
2794
  * @param {*} [options] Override http request option.
2795
2795
  * @throws {RequiredError}
2796
2796
  */
2797
- async materializationAction(e, t, a, n, o, s) {
2798
- const c = await r.materializationAction(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.materializationAction"]?.[i]?.url;
2797
+ async materializationAction(e, t, a, n, s, o) {
2798
+ const c = await r.materializationAction(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.materializationAction"]?.[i]?.url;
2799
2799
  return (d, h) => S(c, u, g, l)(d, p || h);
2800
2800
  }
2801
2801
  };
@@ -2811,8 +2811,8 @@ const aa = function(l) {
2811
2811
  * @param {*} [options] Override http request option.
2812
2812
  * @throws {RequiredError}
2813
2813
  */
2814
- createMaterialization(a, n, o, s) {
2815
- return t.createMaterialization(a, n, o, s).then((c) => c(e, r));
2814
+ createMaterialization(a, n, s, o) {
2815
+ return t.createMaterialization(a, n, s, o).then((c) => c(e, r));
2816
2816
  },
2817
2817
  /**
2818
2818
  * 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.
@@ -2825,8 +2825,8 @@ const aa = function(l) {
2825
2825
  * @param {*} [options] Override http request option.
2826
2826
  * @throws {RequiredError}
2827
2827
  */
2828
- deleteMaterialization(a, n, o, s, c, i) {
2829
- return t.deleteMaterialization(a, n, o, s, c, i).then((p) => p(e, r));
2828
+ deleteMaterialization(a, n, s, o, c, i) {
2829
+ return t.deleteMaterialization(a, n, s, o, c, i).then((p) => p(e, r));
2830
2830
  },
2831
2831
  /**
2832
2832
  * 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.
@@ -2838,8 +2838,8 @@ const aa = function(l) {
2838
2838
  * @param {*} [options] Override http request option.
2839
2839
  * @throws {RequiredError}
2840
2840
  */
2841
- getMaterialization(a, n, o, s, c) {
2842
- return t.getMaterialization(a, n, o, s, c).then((i) => i(e, r));
2841
+ getMaterialization(a, n, s, o, c) {
2842
+ return t.getMaterialization(a, n, s, o, c).then((i) => i(e, r));
2843
2843
  },
2844
2844
  /**
2845
2845
  * 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.
@@ -2852,8 +2852,8 @@ const aa = function(l) {
2852
2852
  * @param {*} [options] Override http request option.
2853
2853
  * @throws {RequiredError}
2854
2854
  */
2855
- listMaterializations(a, n, o, s, c, i) {
2856
- return t.listMaterializations(a, n, o, s, c, i).then((p) => p(e, r));
2855
+ listMaterializations(a, n, s, o, c, i) {
2856
+ return t.listMaterializations(a, n, s, o, c, i).then((p) => p(e, r));
2857
2857
  },
2858
2858
  /**
2859
2859
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2866,8 +2866,8 @@ const aa = function(l) {
2866
2866
  * @param {*} [options] Override http request option.
2867
2867
  * @throws {RequiredError}
2868
2868
  */
2869
- materializationAction(a, n, o, s, c, i) {
2870
- return t.materializationAction(a, n, o, s, c, i).then((p) => p(e, r));
2869
+ materializationAction(a, n, s, o, c, i) {
2870
+ return t.materializationAction(a, n, s, o, c, i).then((p) => p(e, r));
2871
2871
  }
2872
2872
  };
2873
2873
  };
@@ -2895,8 +2895,8 @@ class ta extends C {
2895
2895
  * @param {*} [options] Override http request option.
2896
2896
  * @throws {RequiredError}
2897
2897
  */
2898
- deleteMaterialization(r, e, t, a, n, o) {
2899
- return M(this.configuration).deleteMaterialization(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
2898
+ deleteMaterialization(r, e, t, a, n, s) {
2899
+ return M(this.configuration).deleteMaterialization(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
2900
2900
  }
2901
2901
  /**
2902
2902
  * 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.
@@ -2909,7 +2909,7 @@ class ta extends C {
2909
2909
  * @throws {RequiredError}
2910
2910
  */
2911
2911
  getMaterialization(r, e, t, a, n) {
2912
- return M(this.configuration).getMaterialization(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
2912
+ return M(this.configuration).getMaterialization(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
2913
2913
  }
2914
2914
  /**
2915
2915
  * 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.
@@ -2922,8 +2922,8 @@ class ta extends C {
2922
2922
  * @param {*} [options] Override http request option.
2923
2923
  * @throws {RequiredError}
2924
2924
  */
2925
- listMaterializations(r, e, t, a, n, o) {
2926
- return M(this.configuration).listMaterializations(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
2925
+ listMaterializations(r, e, t, a, n, s) {
2926
+ return M(this.configuration).listMaterializations(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
2927
2927
  }
2928
2928
  /**
2929
2929
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2936,8 +2936,8 @@ class ta extends C {
2936
2936
  * @param {*} [options] Override http request option.
2937
2937
  * @throws {RequiredError}
2938
2938
  */
2939
- materializationAction(r, e, t, a, n, o) {
2940
- return M(this.configuration).materializationAction(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
2939
+ materializationAction(r, e, t, a, n, s) {
2940
+ return M(this.configuration).materializationAction(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
2941
2941
  }
2942
2942
  }
2943
2943
  const vn = {
@@ -2945,7 +2945,7 @@ const vn = {
2945
2945
  }, na = function(l) {
2946
2946
  return {
2947
2947
  /**
2948
- * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
2948
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it. At scope \"file\" or \"package\", `files` overlays package files for this compile only: the model in the URL and everything it imports read the overlaid text where one is given, and an overlaid file new to the package is compiled with the rest at \"package\". A problem\'s `model` names the package file it belongs to, overlaid or not, and its `at` gives the position in that file\'s text, so an author\'s tool can show each file\'s errors in place without saving any of them.
2949
2949
  * @summary Compile Malloy source code
2950
2950
  * @param {string} environmentName Name of the environment
2951
2951
  * @param {string} packageName Name of the package
@@ -2955,15 +2955,15 @@ const vn = {
2955
2955
  * @param {*} [options] Override http request option.
2956
2956
  * @throws {RequiredError}
2957
2957
  */
2958
- compileModelSource: async (r, e, t, a, n, o = {}) => {
2958
+ compileModelSource: async (r, e, t, a, n, s = {}) => {
2959
2959
  m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
2960
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s, V);
2960
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(o, V);
2961
2961
  let i;
2962
2962
  l && (i = l.baseOptions);
2963
- const p = { method: "POST", ...i, ...o }, d = {}, h = {};
2963
+ const p = { method: "POST", ...i, ...s }, d = {}, h = {};
2964
2964
  n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
2965
2965
  let k = i && i.headers ? i.headers : {};
2966
- return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
2966
+ return p.headers = { ...d, ...k, ...s.headers }, p.data = A(a, p, l), {
2967
2967
  url: b(c),
2968
2968
  options: p
2969
2969
  };
@@ -2979,15 +2979,15 @@ const vn = {
2979
2979
  * @param {*} [options] Override http request option.
2980
2980
  * @throws {RequiredError}
2981
2981
  */
2982
- executeQueryModel: async (r, e, t, a, n, o = {}) => {
2982
+ executeQueryModel: async (r, e, t, a, n, s = {}) => {
2983
2983
  m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
2984
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s, V);
2984
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(o, V);
2985
2985
  let i;
2986
2986
  l && (i = l.baseOptions);
2987
- const p = { method: "POST", ...i, ...o }, d = {}, h = {};
2987
+ const p = { method: "POST", ...i, ...s }, d = {}, h = {};
2988
2988
  n !== void 0 && (h.includeHiddenFilesAndSources = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
2989
2989
  let k = i && i.headers ? i.headers : {};
2990
- return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
2990
+ return p.headers = { ...d, ...k, ...s.headers }, p.data = A(a, p, l), {
2991
2991
  url: b(c),
2992
2992
  options: p
2993
2993
  };
@@ -3004,15 +3004,15 @@ const vn = {
3004
3004
  * @param {*} [options] Override http request option.
3005
3005
  * @throws {RequiredError}
3006
3006
  */
3007
- getModel: async (r, e, t, a, n, o, s = {}) => {
3007
+ getModel: async (r, e, t, a, n, s, o = {}) => {
3008
3008
  m("getModel", "environmentName", r), m("getModel", "packageName", e), m("getModel", "path", t);
3009
3009
  const c = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), i = new URL(c, V);
3010
3010
  let p;
3011
3011
  l && (p = l.baseOptions);
3012
- const d = { method: "GET", ...p, ...s }, h = {}, k = {};
3013
- a !== void 0 && (k.versionId = a), n !== void 0 && (k.includeHiddenFilesAndSources = n), o !== void 0 && (k.givens = o), h.Accept = "application/json", v(i, k);
3012
+ const d = { method: "GET", ...p, ...o }, h = {}, k = {};
3013
+ a !== void 0 && (k.versionId = a), n !== void 0 && (k.includeHiddenFilesAndSources = n), s !== void 0 && (k.givens = s), h.Accept = "application/json", v(i, k);
3014
3014
  let O = p && p.headers ? p.headers : {};
3015
- return d.headers = { ...h, ...O, ...s.headers }, {
3015
+ return d.headers = { ...h, ...O, ...o.headers }, {
3016
3016
  url: b(i),
3017
3017
  options: d
3018
3018
  };
@@ -3029,14 +3029,14 @@ const vn = {
3029
3029
  */
3030
3030
  listModels: async (r, e, t, a, n = {}) => {
3031
3031
  m("listModels", "environmentName", r), m("listModels", "packageName", e);
3032
- const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
3032
+ const s = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
3033
3033
  let c;
3034
3034
  l && (c = l.baseOptions);
3035
3035
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
3036
- t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
3036
+ t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(o, d);
3037
3037
  let h = c && c.headers ? c.headers : {};
3038
3038
  return i.headers = { ...p, ...h, ...n.headers }, {
3039
- url: b(s),
3039
+ url: b(o),
3040
3040
  options: i
3041
3041
  };
3042
3042
  },
@@ -3051,15 +3051,15 @@ const vn = {
3051
3051
  * @param {*} [options] Override http request option.
3052
3052
  * @throws {RequiredError}
3053
3053
  */
3054
- updateModelSource: async (r, e, t, a, n, o = {}) => {
3054
+ updateModelSource: async (r, e, t, a, n, s = {}) => {
3055
3055
  m("updateModelSource", "environmentName", r), m("updateModelSource", "packageName", e), m("updateModelSource", "path", t), m("updateModelSource", "modelSourceWriteRequest", a);
3056
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s, V);
3056
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(o, V);
3057
3057
  let i;
3058
3058
  l && (i = l.baseOptions);
3059
- const p = { method: "PUT", ...i, ...o }, d = {}, h = {};
3059
+ const p = { method: "PUT", ...i, ...s }, d = {}, h = {};
3060
3060
  n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
3061
3061
  let k = i && i.headers ? i.headers : {};
3062
- return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
3062
+ return p.headers = { ...d, ...k, ...s.headers }, p.data = A(a, p, l), {
3063
3063
  url: b(c),
3064
3064
  options: p
3065
3065
  };
@@ -3069,7 +3069,7 @@ const vn = {
3069
3069
  const r = na(l);
3070
3070
  return {
3071
3071
  /**
3072
- * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
3072
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it. At scope \"file\" or \"package\", `files` overlays package files for this compile only: the model in the URL and everything it imports read the overlaid text where one is given, and an overlaid file new to the package is compiled with the rest at \"package\". A problem\'s `model` names the package file it belongs to, overlaid or not, and its `at` gives the position in that file\'s text, so an author\'s tool can show each file\'s errors in place without saving any of them.
3073
3073
  * @summary Compile Malloy source code
3074
3074
  * @param {string} environmentName Name of the environment
3075
3075
  * @param {string} packageName Name of the package
@@ -3079,8 +3079,8 @@ const vn = {
3079
3079
  * @param {*} [options] Override http request option.
3080
3080
  * @throws {RequiredError}
3081
3081
  */
3082
- async compileModelSource(e, t, a, n, o, s) {
3083
- const c = await r.compileModelSource(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ModelsApi.compileModelSource"]?.[i]?.url;
3082
+ async compileModelSource(e, t, a, n, s, o) {
3083
+ const c = await r.compileModelSource(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["ModelsApi.compileModelSource"]?.[i]?.url;
3084
3084
  return (d, h) => S(c, u, g, l)(d, p || h);
3085
3085
  },
3086
3086
  /**
@@ -3094,8 +3094,8 @@ const vn = {
3094
3094
  * @param {*} [options] Override http request option.
3095
3095
  * @throws {RequiredError}
3096
3096
  */
3097
- async executeQueryModel(e, t, a, n, o, s) {
3098
- const c = await r.executeQueryModel(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ModelsApi.executeQueryModel"]?.[i]?.url;
3097
+ async executeQueryModel(e, t, a, n, s, o) {
3098
+ const c = await r.executeQueryModel(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["ModelsApi.executeQueryModel"]?.[i]?.url;
3099
3099
  return (d, h) => S(c, u, g, l)(d, p || h);
3100
3100
  },
3101
3101
  /**
@@ -3110,8 +3110,8 @@ const vn = {
3110
3110
  * @param {*} [options] Override http request option.
3111
3111
  * @throws {RequiredError}
3112
3112
  */
3113
- async getModel(e, t, a, n, o, s, c) {
3114
- const i = await r.getModel(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d = P["ModelsApi.getModel"]?.[p]?.url;
3113
+ async getModel(e, t, a, n, s, o, c) {
3114
+ const i = await r.getModel(e, t, a, n, s, o, c), p = l?.serverIndex ?? 0, d = P["ModelsApi.getModel"]?.[p]?.url;
3115
3115
  return (h, k) => S(i, u, g, l)(h, d || k);
3116
3116
  },
3117
3117
  /**
@@ -3124,9 +3124,9 @@ const vn = {
3124
3124
  * @param {*} [options] Override http request option.
3125
3125
  * @throws {RequiredError}
3126
3126
  */
3127
- async listModels(e, t, a, n, o) {
3128
- const s = await r.listModels(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.listModels"]?.[c]?.url;
3129
- return (p, d) => S(s, u, g, l)(p, i || d);
3127
+ async listModels(e, t, a, n, s) {
3128
+ const o = await r.listModels(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["ModelsApi.listModels"]?.[c]?.url;
3129
+ return (p, d) => S(o, u, g, l)(p, i || d);
3130
3130
  },
3131
3131
  /**
3132
3132
  * 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, so 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`).
@@ -3139,8 +3139,8 @@ const vn = {
3139
3139
  * @param {*} [options] Override http request option.
3140
3140
  * @throws {RequiredError}
3141
3141
  */
3142
- async updateModelSource(e, t, a, n, o, s) {
3143
- const c = await r.updateModelSource(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ModelsApi.updateModelSource"]?.[i]?.url;
3142
+ async updateModelSource(e, t, a, n, s, o) {
3143
+ const c = await r.updateModelSource(e, t, a, n, s, o), i = l?.serverIndex ?? 0, p = P["ModelsApi.updateModelSource"]?.[i]?.url;
3144
3144
  return (d, h) => S(c, u, g, l)(d, p || h);
3145
3145
  }
3146
3146
  };
@@ -3148,7 +3148,7 @@ const vn = {
3148
3148
  const t = F(l);
3149
3149
  return {
3150
3150
  /**
3151
- * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
3151
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it. At scope \"file\" or \"package\", `files` overlays package files for this compile only: the model in the URL and everything it imports read the overlaid text where one is given, and an overlaid file new to the package is compiled with the rest at \"package\". A problem\'s `model` names the package file it belongs to, overlaid or not, and its `at` gives the position in that file\'s text, so an author\'s tool can show each file\'s errors in place without saving any of them.
3152
3152
  * @summary Compile Malloy source code
3153
3153
  * @param {string} environmentName Name of the environment
3154
3154
  * @param {string} packageName Name of the package
@@ -3158,8 +3158,8 @@ const vn = {
3158
3158
  * @param {*} [options] Override http request option.
3159
3159
  * @throws {RequiredError}
3160
3160
  */
3161
- compileModelSource(a, n, o, s, c, i) {
3162
- return t.compileModelSource(a, n, o, s, c, i).then((p) => p(e, r));
3161
+ compileModelSource(a, n, s, o, c, i) {
3162
+ return t.compileModelSource(a, n, s, o, c, i).then((p) => p(e, r));
3163
3163
  },
3164
3164
  /**
3165
3165
  * 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.
@@ -3172,8 +3172,8 @@ const vn = {
3172
3172
  * @param {*} [options] Override http request option.
3173
3173
  * @throws {RequiredError}
3174
3174
  */
3175
- executeQueryModel(a, n, o, s, c, i) {
3176
- return t.executeQueryModel(a, n, o, s, c, i).then((p) => p(e, r));
3175
+ executeQueryModel(a, n, s, o, c, i) {
3176
+ return t.executeQueryModel(a, n, s, o, c, i).then((p) => p(e, r));
3177
3177
  },
3178
3178
  /**
3179
3179
  * 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.
@@ -3187,8 +3187,8 @@ const vn = {
3187
3187
  * @param {*} [options] Override http request option.
3188
3188
  * @throws {RequiredError}
3189
3189
  */
3190
- getModel(a, n, o, s, c, i, p) {
3191
- return t.getModel(a, n, o, s, c, i, p).then((d) => d(e, r));
3190
+ getModel(a, n, s, o, c, i, p) {
3191
+ return t.getModel(a, n, s, o, c, i, p).then((d) => d(e, r));
3192
3192
  },
3193
3193
  /**
3194
3194
  * 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.
@@ -3200,8 +3200,8 @@ const vn = {
3200
3200
  * @param {*} [options] Override http request option.
3201
3201
  * @throws {RequiredError}
3202
3202
  */
3203
- listModels(a, n, o, s, c) {
3204
- return t.listModels(a, n, o, s, c).then((i) => i(e, r));
3203
+ listModels(a, n, s, o, c) {
3204
+ return t.listModels(a, n, s, o, c).then((i) => i(e, r));
3205
3205
  },
3206
3206
  /**
3207
3207
  * 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, so 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`).
@@ -3214,14 +3214,14 @@ const vn = {
3214
3214
  * @param {*} [options] Override http request option.
3215
3215
  * @throws {RequiredError}
3216
3216
  */
3217
- updateModelSource(a, n, o, s, c, i) {
3218
- return t.updateModelSource(a, n, o, s, c, i).then((p) => p(e, r));
3217
+ updateModelSource(a, n, s, o, c, i) {
3218
+ return t.updateModelSource(a, n, s, o, c, i).then((p) => p(e, r));
3219
3219
  }
3220
3220
  };
3221
3221
  };
3222
3222
  class ra extends C {
3223
3223
  /**
3224
- * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
3224
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it. At scope \"file\" or \"package\", `files` overlays package files for this compile only: the model in the URL and everything it imports read the overlaid text where one is given, and an overlaid file new to the package is compiled with the rest at \"package\". A problem\'s `model` names the package file it belongs to, overlaid or not, and its `at` gives the position in that file\'s text, so an author\'s tool can show each file\'s errors in place without saving any of them.
3225
3225
  * @summary Compile Malloy source code
3226
3226
  * @param {string} environmentName Name of the environment
3227
3227
  * @param {string} packageName Name of the package
@@ -3231,8 +3231,8 @@ class ra extends C {
3231
3231
  * @param {*} [options] Override http request option.
3232
3232
  * @throws {RequiredError}
3233
3233
  */
3234
- compileModelSource(r, e, t, a, n, o) {
3235
- return F(this.configuration).compileModelSource(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
3234
+ compileModelSource(r, e, t, a, n, s) {
3235
+ return F(this.configuration).compileModelSource(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
3236
3236
  }
3237
3237
  /**
3238
3238
  * 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.
@@ -3245,8 +3245,8 @@ class ra extends C {
3245
3245
  * @param {*} [options] Override http request option.
3246
3246
  * @throws {RequiredError}
3247
3247
  */
3248
- executeQueryModel(r, e, t, a, n, o) {
3249
- return F(this.configuration).executeQueryModel(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
3248
+ executeQueryModel(r, e, t, a, n, s) {
3249
+ return F(this.configuration).executeQueryModel(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
3250
3250
  }
3251
3251
  /**
3252
3252
  * 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.
@@ -3260,8 +3260,8 @@ class ra extends C {
3260
3260
  * @param {*} [options] Override http request option.
3261
3261
  * @throws {RequiredError}
3262
3262
  */
3263
- getModel(r, e, t, a, n, o, s) {
3264
- return F(this.configuration).getModel(r, e, t, a, n, o, s).then((c) => c(this.axios, this.basePath));
3263
+ getModel(r, e, t, a, n, s, o) {
3264
+ return F(this.configuration).getModel(r, e, t, a, n, s, o).then((c) => c(this.axios, this.basePath));
3265
3265
  }
3266
3266
  /**
3267
3267
  * 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.
@@ -3274,7 +3274,7 @@ class ra extends C {
3274
3274
  * @throws {RequiredError}
3275
3275
  */
3276
3276
  listModels(r, e, t, a, n) {
3277
- return F(this.configuration).listModels(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
3277
+ return F(this.configuration).listModels(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
3278
3278
  }
3279
3279
  /**
3280
3280
  * 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, so 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`).
@@ -3287,8 +3287,8 @@ class ra extends C {
3287
3287
  * @param {*} [options] Override http request option.
3288
3288
  * @throws {RequiredError}
3289
3289
  */
3290
- updateModelSource(r, e, t, a, n, o) {
3291
- return F(this.configuration).updateModelSource(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
3290
+ updateModelSource(r, e, t, a, n, s) {
3291
+ return F(this.configuration).updateModelSource(r, e, t, a, n, s).then((o) => o(this.axios, this.basePath));
3292
3292
  }
3293
3293
  }
3294
3294
  const oa = function(l) {
@@ -3308,13 +3308,13 @@ const oa = function(l) {
3308
3308
  * @deprecated
3309
3309
  * @throws {RequiredError}
3310
3310
  */
3311
- executeNotebookCell: async (r, e, t, a, n, o, s, c, i = {}) => {
3311
+ executeNotebookCell: async (r, e, t, a, n, s, o, c, i = {}) => {
3312
3312
  m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
3313
3313
  const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, V);
3314
3314
  let h;
3315
3315
  l && (h = l.baseOptions);
3316
3316
  const k = { method: "GET", ...h, ...i }, O = {}, I = {};
3317
- n !== void 0 && (I.versionId = n), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), c !== void 0 && (I.givens = c), O.Accept = "application/json", v(d, I);
3317
+ n !== void 0 && (I.versionId = n), s !== void 0 && (I.filter_params = s), o !== void 0 && (I.bypass_filters = o), c !== void 0 && (I.givens = c), O.Accept = "application/json", v(d, I);
3318
3318
  let N = h && h.headers ? h.headers : {};
3319
3319
  return k.headers = { ...O, ...N, ...i.headers }, {
3320
3320
  url: b(d),
@@ -3334,14 +3334,14 @@ const oa = function(l) {
3334
3334
  */
3335
3335
  getNotebook: async (r, e, t, a, n = {}) => {
3336
3336
  m("getNotebook", "environmentName", r), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
3337
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
3337
+ const s = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), o = new URL(s, V);
3338
3338
  let c;
3339
3339
  l && (c = l.baseOptions);
3340
3340
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
3341
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
3341
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(o, d);
3342
3342
  let h = c && c.headers ? c.headers : {};
3343
3343
  return i.headers = { ...p, ...h, ...n.headers }, {
3344
- url: b(s),
3344
+ url: b(o),
3345
3345
  options: i
3346
3346
  };
3347
3347
  },
@@ -3357,14 +3357,14 @@ const oa = function(l) {
3357
3357
  */
3358
3358
  listNotebooks: async (r, e, t, a = {}) => {
3359
3359
  m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", e);
3360
- const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
3361
- let s;
3362
- l && (s = l.baseOptions);
3363
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
3364
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
3365
- let d = s && s.headers ? s.headers : {};
3360
+ const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
3361
+ let o;
3362
+ l && (o = l.baseOptions);
3363
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
3364
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
3365
+ let d = o && o.headers ? o.headers : {};
3366
3366
  return c.headers = { ...i, ...d, ...a.headers }, {
3367
- url: b(o),
3367
+ url: b(s),
3368
3368
  options: c
3369
3369
  };
3370
3370
  }
@@ -3387,8 +3387,8 @@ const oa = function(l) {
3387
3387
  * @deprecated
3388
3388
  * @throws {RequiredError}
3389
3389
  */
3390
- async executeNotebookCell(e, t, a, n, o, s, c, i, p) {
3391
- const d = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), h = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
3390
+ async executeNotebookCell(e, t, a, n, s, o, c, i, p) {
3391
+ const d = await r.executeNotebookCell(e, t, a, n, s, o, c, i, p), h = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
3392
3392
  return (O, I) => S(d, u, g, l)(O, k || I);
3393
3393
  },
3394
3394
  /**
@@ -3402,9 +3402,9 @@ const oa = function(l) {
3402
3402
  * @deprecated
3403
3403
  * @throws {RequiredError}
3404
3404
  */
3405
- async getNotebook(e, t, a, n, o) {
3406
- const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
3407
- return (p, d) => S(s, u, g, l)(p, i || d);
3405
+ async getNotebook(e, t, a, n, s) {
3406
+ const o = await r.getNotebook(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
3407
+ return (p, d) => S(o, u, g, l)(p, i || d);
3408
3408
  },
3409
3409
  /**
3410
3410
  * **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.
@@ -3417,8 +3417,8 @@ const oa = function(l) {
3417
3417
  * @throws {RequiredError}
3418
3418
  */
3419
3419
  async listNotebooks(e, t, a, n) {
3420
- const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
3421
- return (i, p) => S(o, u, g, l)(i, c || p);
3420
+ const s = await r.listNotebooks(e, t, a, n), o = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[o]?.url;
3421
+ return (i, p) => S(s, u, g, l)(i, c || p);
3422
3422
  }
3423
3423
  };
3424
3424
  }, Sn = function(l, r, e) {
@@ -3439,8 +3439,8 @@ const oa = function(l) {
3439
3439
  * @deprecated
3440
3440
  * @throws {RequiredError}
3441
3441
  */
3442
- executeNotebookCell(a, n, o, s, c, i, p, d, h) {
3443
- return t.executeNotebookCell(a, n, o, s, c, i, p, d, h).then((k) => k(e, r));
3442
+ executeNotebookCell(a, n, s, o, c, i, p, d, h) {
3443
+ return t.executeNotebookCell(a, n, s, o, c, i, p, d, h).then((k) => k(e, r));
3444
3444
  },
3445
3445
  /**
3446
3446
  * **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.
@@ -3453,8 +3453,8 @@ const oa = function(l) {
3453
3453
  * @deprecated
3454
3454
  * @throws {RequiredError}
3455
3455
  */
3456
- getNotebook(a, n, o, s, c) {
3457
- return t.getNotebook(a, n, o, s, c).then((i) => i(e, r));
3456
+ getNotebook(a, n, s, o, c) {
3457
+ return t.getNotebook(a, n, s, o, c).then((i) => i(e, r));
3458
3458
  },
3459
3459
  /**
3460
3460
  * **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.
@@ -3466,8 +3466,8 @@ const oa = function(l) {
3466
3466
  * @deprecated
3467
3467
  * @throws {RequiredError}
3468
3468
  */
3469
- listNotebooks(a, n, o, s) {
3470
- return t.listNotebooks(a, n, o, s).then((c) => c(e, r));
3469
+ listNotebooks(a, n, s, o) {
3470
+ return t.listNotebooks(a, n, s, o).then((c) => c(e, r));
3471
3471
  }
3472
3472
  };
3473
3473
  };
@@ -3487,8 +3487,8 @@ class sa extends C {
3487
3487
  * @deprecated
3488
3488
  * @throws {RequiredError}
3489
3489
  */
3490
- executeNotebookCell(r, e, t, a, n, o, s, c, i) {
3491
- return H(this.configuration).executeNotebookCell(r, e, t, a, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
3490
+ executeNotebookCell(r, e, t, a, n, s, o, c, i) {
3491
+ return H(this.configuration).executeNotebookCell(r, e, t, a, n, s, o, c, i).then((p) => p(this.axios, this.basePath));
3492
3492
  }
3493
3493
  /**
3494
3494
  * **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.
@@ -3502,7 +3502,7 @@ class sa extends C {
3502
3502
  * @throws {RequiredError}
3503
3503
  */
3504
3504
  getNotebook(r, e, t, a, n) {
3505
- return H(this.configuration).getNotebook(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
3505
+ return H(this.configuration).getNotebook(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
3506
3506
  }
3507
3507
  /**
3508
3508
  * **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.
@@ -3524,24 +3524,25 @@ const kn = {
3524
3524
  }, ca = function(l) {
3525
3525
  return {
3526
3526
  /**
3527
- * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` 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`).
3527
+ * 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. 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` (`off` 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`).
3528
3528
  * @summary Create a new package
3529
3529
  * @param {string} environmentName Name of the environment
3530
3530
  * @param {Package} _package
3531
+ * @param {boolean} [dryRun] Load and check the package at &#x60;location&#x60; as a publish would, and install nothing. See \&quot;Dry run\&quot; above.
3531
3532
  * @param {*} [options] Override http request option.
3532
3533
  * @throws {RequiredError}
3533
3534
  */
3534
- createPackage: async (r, e, t = {}) => {
3535
+ createPackage: async (r, e, t, a = {}) => {
3535
3536
  m("createPackage", "environmentName", r), m("createPackage", "_package", e);
3536
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
3537
+ const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), s = new URL(n, V);
3537
3538
  let o;
3538
3539
  l && (o = l.baseOptions);
3539
- const s = { method: "POST", ...o, ...t }, c = {}, i = {};
3540
- c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
3541
- let p = o && o.headers ? o.headers : {};
3542
- return s.headers = { ...c, ...p, ...t.headers }, s.data = A(e, s, l), {
3543
- url: b(n),
3544
- options: s
3540
+ const c = { method: "POST", ...o, ...a }, i = {}, p = {};
3541
+ t !== void 0 && (p.dryRun = t), i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
3542
+ let d = o && o.headers ? o.headers : {};
3543
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = A(e, c, l), {
3544
+ url: b(s),
3545
+ options: c
3545
3546
  };
3546
3547
  },
3547
3548
  /**
@@ -3555,14 +3556,14 @@ const kn = {
3555
3556
  deletePackage: async (r, e, t = {}) => {
3556
3557
  m("deletePackage", "environmentName", r), m("deletePackage", "packageName", e);
3557
3558
  const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
3558
- let o;
3559
- l && (o = l.baseOptions);
3560
- const s = { method: "DELETE", ...o, ...t }, c = {}, i = {};
3559
+ let s;
3560
+ l && (s = l.baseOptions);
3561
+ const o = { method: "DELETE", ...s, ...t }, c = {}, i = {};
3561
3562
  c.Accept = "application/json", v(n, i);
3562
- let p = o && o.headers ? o.headers : {};
3563
- return s.headers = { ...c, ...p, ...t.headers }, {
3563
+ let p = s && s.headers ? s.headers : {};
3564
+ return o.headers = { ...c, ...p, ...t.headers }, {
3564
3565
  url: b(n),
3565
- options: s
3566
+ options: o
3566
3567
  };
3567
3568
  },
3568
3569
  /**
@@ -3577,14 +3578,14 @@ const kn = {
3577
3578
  */
3578
3579
  getPackage: async (r, e, t, a, n = {}) => {
3579
3580
  m("getPackage", "environmentName", r), m("getPackage", "packageName", e);
3580
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
3581
+ const s = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
3581
3582
  let c;
3582
3583
  l && (c = l.baseOptions);
3583
3584
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
3584
- t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
3585
+ t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(o, d);
3585
3586
  let h = c && c.headers ? c.headers : {};
3586
3587
  return i.headers = { ...p, ...h, ...n.headers }, {
3587
- url: b(s),
3588
+ url: b(o),
3588
3589
  options: i
3589
3590
  };
3590
3591
  },
@@ -3599,14 +3600,14 @@ const kn = {
3599
3600
  */
3600
3601
  getPackageBuildPlan: async (r, e, t, a = {}) => {
3601
3602
  m("getPackageBuildPlan", "environmentName", r), m("getPackageBuildPlan", "packageName", e);
3602
- const n = "/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
3603
- let s;
3604
- l && (s = l.baseOptions);
3605
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
3606
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
3607
- let d = s && s.headers ? s.headers : {};
3603
+ const n = "/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
3604
+ let o;
3605
+ l && (o = l.baseOptions);
3606
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
3607
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
3608
+ let d = o && o.headers ? o.headers : {};
3608
3609
  return c.headers = { ...i, ...d, ...a.headers }, {
3609
- url: b(o),
3610
+ url: b(s),
3610
3611
  options: c
3611
3612
  };
3612
3613
  },
@@ -3621,14 +3622,14 @@ const kn = {
3621
3622
  */
3622
3623
  getPackageClassification: async (r, e, t, a = {}) => {
3623
3624
  m("getPackageClassification", "environmentName", r), m("getPackageClassification", "packageName", e);
3624
- const n = "/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
3625
- let s;
3626
- l && (s = l.baseOptions);
3627
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
3628
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
3629
- let d = s && s.headers ? s.headers : {};
3625
+ const n = "/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
3626
+ let o;
3627
+ l && (o = l.baseOptions);
3628
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
3629
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
3630
+ let d = o && o.headers ? o.headers : {};
3630
3631
  return c.headers = { ...i, ...d, ...a.headers }, {
3631
- url: b(o),
3632
+ url: b(s),
3632
3633
  options: c
3633
3634
  };
3634
3635
  },
@@ -3643,14 +3644,14 @@ const kn = {
3643
3644
  */
3644
3645
  getPackageEmbeddingIndex: async (r, e, t, a = {}) => {
3645
3646
  m("getPackageEmbeddingIndex", "environmentName", r), m("getPackageEmbeddingIndex", "packageName", e);
3646
- const n = "/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
3647
- let s;
3648
- l && (s = l.baseOptions);
3649
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
3650
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
3651
- let d = s && s.headers ? s.headers : {};
3647
+ const n = "/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
3648
+ let o;
3649
+ l && (o = l.baseOptions);
3650
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
3651
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
3652
+ let d = o && o.headers ? o.headers : {};
3652
3653
  return c.headers = { ...i, ...d, ...a.headers }, {
3653
- url: b(o),
3654
+ url: b(s),
3654
3655
  options: c
3655
3656
  };
3656
3657
  },
@@ -3666,14 +3667,14 @@ const kn = {
3666
3667
  */
3667
3668
  getPackageEntities: async (r, e, t, a, n = {}) => {
3668
3669
  m("getPackageEntities", "environmentName", r), m("getPackageEntities", "packageName", e);
3669
- const o = "/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
3670
+ const s = "/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
3670
3671
  let c;
3671
3672
  l && (c = l.baseOptions);
3672
3673
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
3673
- t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
3674
+ t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(o, d);
3674
3675
  let h = c && c.headers ? c.headers : {};
3675
3676
  return i.headers = { ...p, ...h, ...n.headers }, {
3676
- url: b(s),
3677
+ url: b(o),
3677
3678
  options: i
3678
3679
  };
3679
3680
  },
@@ -3688,14 +3689,14 @@ const kn = {
3688
3689
  */
3689
3690
  getPackageStatus: async (r, e, t, a = {}) => {
3690
3691
  m("getPackageStatus", "environmentName", r), m("getPackageStatus", "packageName", e);
3691
- const n = "/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
3692
- let s;
3693
- l && (s = l.baseOptions);
3694
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
3695
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
3696
- let d = s && s.headers ? s.headers : {};
3692
+ const n = "/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
3693
+ let o;
3694
+ l && (o = l.baseOptions);
3695
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
3696
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
3697
+ let d = o && o.headers ? o.headers : {};
3697
3698
  return c.headers = { ...i, ...d, ...a.headers }, {
3698
- url: b(o),
3699
+ url: b(s),
3699
3700
  options: c
3700
3701
  };
3701
3702
  },
@@ -3711,12 +3712,12 @@ const kn = {
3711
3712
  const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
3712
3713
  let n;
3713
3714
  l && (n = l.baseOptions);
3714
- const o = { method: "GET", ...n, ...e }, s = {}, c = {};
3715
- s.Accept = "application/json", v(a, c);
3715
+ const s = { method: "GET", ...n, ...e }, o = {}, c = {};
3716
+ o.Accept = "application/json", v(a, c);
3716
3717
  let i = n && n.headers ? n.headers : {};
3717
- return o.headers = { ...s, ...i, ...e.headers }, {
3718
+ return s.headers = { ...o, ...i, ...e.headers }, {
3718
3719
  url: b(a),
3719
- options: o
3720
+ options: s
3720
3721
  };
3721
3722
  },
3722
3723
  /**
@@ -3731,14 +3732,14 @@ const kn = {
3731
3732
  */
3732
3733
  updatePackage: async (r, e, t, a = {}) => {
3733
3734
  m("updatePackage", "environmentName", r), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
3734
- const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
3735
- let s;
3736
- l && (s = l.baseOptions);
3737
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
3738
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
3739
- let d = s && s.headers ? s.headers : {};
3735
+ const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
3736
+ let o;
3737
+ l && (o = l.baseOptions);
3738
+ const c = { method: "PATCH", ...o, ...a }, i = {}, p = {};
3739
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
3740
+ let d = o && o.headers ? o.headers : {};
3740
3741
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
3741
- url: b(o),
3742
+ url: b(s),
3742
3743
  options: c
3743
3744
  };
3744
3745
  }
@@ -3747,16 +3748,17 @@ const kn = {
3747
3748
  const r = ca(l);
3748
3749
  return {
3749
3750
  /**
3750
- * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` 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`).
3751
+ * 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. 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` (`off` 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`).
3751
3752
  * @summary Create a new package
3752
3753
  * @param {string} environmentName Name of the environment
3753
3754
  * @param {Package} _package
3755
+ * @param {boolean} [dryRun] Load and check the package at &#x60;location&#x60; as a publish would, and install nothing. See \&quot;Dry run\&quot; above.
3754
3756
  * @param {*} [options] Override http request option.
3755
3757
  * @throws {RequiredError}
3756
3758
  */
3757
- async createPackage(e, t, a) {
3758
- const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
3759
- return (c, i) => S(n, u, g, l)(c, s || i);
3759
+ async createPackage(e, t, a, n) {
3760
+ const s = await r.createPackage(e, t, a, n), o = l?.serverIndex ?? 0, c = P["PackagesApi.createPackage"]?.[o]?.url;
3761
+ return (i, p) => S(s, u, g, l)(i, c || p);
3760
3762
  },
3761
3763
  /**
3762
3764
  * 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}`.
@@ -3767,8 +3769,8 @@ const kn = {
3767
3769
  * @throws {RequiredError}
3768
3770
  */
3769
3771
  async deletePackage(e, t, a) {
3770
- const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
3771
- return (c, i) => S(n, u, g, l)(c, s || i);
3772
+ const n = await r.deletePackage(e, t, a), s = l?.serverIndex ?? 0, o = P["PackagesApi.deletePackage"]?.[s]?.url;
3773
+ return (c, i) => S(n, u, g, l)(c, o || i);
3772
3774
  },
3773
3775
  /**
3774
3776
  * 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.
@@ -3780,9 +3782,9 @@ const kn = {
3780
3782
  * @param {*} [options] Override http request option.
3781
3783
  * @throws {RequiredError}
3782
3784
  */
3783
- async getPackage(e, t, a, n, o) {
3784
- const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
3785
- return (p, d) => S(s, u, g, l)(p, i || d);
3785
+ async getPackage(e, t, a, n, s) {
3786
+ const o = await r.getPackage(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
3787
+ return (p, d) => S(o, u, g, l)(p, i || d);
3786
3788
  },
3787
3789
  /**
3788
3790
  * 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.
@@ -3794,8 +3796,8 @@ const kn = {
3794
3796
  * @throws {RequiredError}
3795
3797
  */
3796
3798
  async getPackageBuildPlan(e, t, a, n) {
3797
- const o = await r.getPackageBuildPlan(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageBuildPlan"]?.[s]?.url;
3798
- return (i, p) => S(o, u, g, l)(i, c || p);
3799
+ const s = await r.getPackageBuildPlan(e, t, a, n), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageBuildPlan"]?.[o]?.url;
3800
+ return (i, p) => S(s, u, g, l)(i, c || p);
3799
3801
  },
3800
3802
  /**
3801
3803
  * 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.
@@ -3807,8 +3809,8 @@ const kn = {
3807
3809
  * @throws {RequiredError}
3808
3810
  */
3809
3811
  async getPackageClassification(e, t, a, n) {
3810
- const o = await r.getPackageClassification(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageClassification"]?.[s]?.url;
3811
- return (i, p) => S(o, u, g, l)(i, c || p);
3812
+ const s = await r.getPackageClassification(e, t, a, n), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageClassification"]?.[o]?.url;
3813
+ return (i, p) => S(s, u, g, l)(i, c || p);
3812
3814
  },
3813
3815
  /**
3814
3816
  * 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`).
@@ -3820,8 +3822,8 @@ const kn = {
3820
3822
  * @throws {RequiredError}
3821
3823
  */
3822
3824
  async getPackageEmbeddingIndex(e, t, a, n) {
3823
- const o = await r.getPackageEmbeddingIndex(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageEmbeddingIndex"]?.[s]?.url;
3824
- return (i, p) => S(o, u, g, l)(i, c || p);
3825
+ const s = await r.getPackageEmbeddingIndex(e, t, a, n), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageEmbeddingIndex"]?.[o]?.url;
3826
+ return (i, p) => S(s, u, g, l)(i, c || p);
3825
3827
  },
3826
3828
  /**
3827
3829
  * 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-`.
@@ -3833,9 +3835,9 @@ const kn = {
3833
3835
  * @param {*} [options] Override http request option.
3834
3836
  * @throws {RequiredError}
3835
3837
  */
3836
- async getPackageEntities(e, t, a, n, o) {
3837
- const s = await r.getPackageEntities(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageEntities"]?.[c]?.url;
3838
- return (p, d) => S(s, u, g, l)(p, i || d);
3838
+ async getPackageEntities(e, t, a, n, s) {
3839
+ const o = await r.getPackageEntities(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageEntities"]?.[c]?.url;
3840
+ return (p, d) => S(o, u, g, l)(p, i || d);
3839
3841
  },
3840
3842
  /**
3841
3843
  * 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.
@@ -3847,8 +3849,8 @@ const kn = {
3847
3849
  * @throws {RequiredError}
3848
3850
  */
3849
3851
  async getPackageStatus(e, t, a, n) {
3850
- const o = await r.getPackageStatus(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageStatus"]?.[s]?.url;
3851
- return (i, p) => S(o, u, g, l)(i, c || p);
3852
+ const s = await r.getPackageStatus(e, t, a, n), o = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageStatus"]?.[o]?.url;
3853
+ return (i, p) => S(s, u, g, l)(i, c || p);
3852
3854
  },
3853
3855
  /**
3854
3856
  * 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=`.
@@ -3858,8 +3860,8 @@ const kn = {
3858
3860
  * @throws {RequiredError}
3859
3861
  */
3860
3862
  async listPackages(e, t) {
3861
- const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[n]?.url;
3862
- return (s, c) => S(a, u, g, l)(s, o || c);
3863
+ const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, s = P["PackagesApi.listPackages"]?.[n]?.url;
3864
+ return (o, c) => S(a, u, g, l)(o, s || c);
3863
3865
  },
3864
3866
  /**
3865
3867
  * 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.
@@ -3872,23 +3874,24 @@ const kn = {
3872
3874
  * @throws {RequiredError}
3873
3875
  */
3874
3876
  async updatePackage(e, t, a, n) {
3875
- const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
3876
- return (i, p) => S(o, u, g, l)(i, c || p);
3877
+ const s = await r.updatePackage(e, t, a, n), o = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[o]?.url;
3878
+ return (i, p) => S(s, u, g, l)(i, c || p);
3877
3879
  }
3878
3880
  };
3879
3881
  }, On = function(l, r, e) {
3880
3882
  const t = R(l);
3881
3883
  return {
3882
3884
  /**
3883
- * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` 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`).
3885
+ * 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. 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` (`off` 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`).
3884
3886
  * @summary Create a new package
3885
3887
  * @param {string} environmentName Name of the environment
3886
3888
  * @param {Package} _package
3889
+ * @param {boolean} [dryRun] Load and check the package at &#x60;location&#x60; as a publish would, and install nothing. See \&quot;Dry run\&quot; above.
3887
3890
  * @param {*} [options] Override http request option.
3888
3891
  * @throws {RequiredError}
3889
3892
  */
3890
- createPackage(a, n, o) {
3891
- return t.createPackage(a, n, o).then((s) => s(e, r));
3893
+ createPackage(a, n, s, o) {
3894
+ return t.createPackage(a, n, s, o).then((c) => c(e, r));
3892
3895
  },
3893
3896
  /**
3894
3897
  * 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}`.
@@ -3898,8 +3901,8 @@ const kn = {
3898
3901
  * @param {*} [options] Override http request option.
3899
3902
  * @throws {RequiredError}
3900
3903
  */
3901
- deletePackage(a, n, o) {
3902
- return t.deletePackage(a, n, o).then((s) => s(e, r));
3904
+ deletePackage(a, n, s) {
3905
+ return t.deletePackage(a, n, s).then((o) => o(e, r));
3903
3906
  },
3904
3907
  /**
3905
3908
  * 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.
@@ -3911,8 +3914,8 @@ const kn = {
3911
3914
  * @param {*} [options] Override http request option.
3912
3915
  * @throws {RequiredError}
3913
3916
  */
3914
- getPackage(a, n, o, s, c) {
3915
- return t.getPackage(a, n, o, s, c).then((i) => i(e, r));
3917
+ getPackage(a, n, s, o, c) {
3918
+ return t.getPackage(a, n, s, o, c).then((i) => i(e, r));
3916
3919
  },
3917
3920
  /**
3918
3921
  * 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.
@@ -3923,8 +3926,8 @@ const kn = {
3923
3926
  * @param {*} [options] Override http request option.
3924
3927
  * @throws {RequiredError}
3925
3928
  */
3926
- getPackageBuildPlan(a, n, o, s) {
3927
- return t.getPackageBuildPlan(a, n, o, s).then((c) => c(e, r));
3929
+ getPackageBuildPlan(a, n, s, o) {
3930
+ return t.getPackageBuildPlan(a, n, s, o).then((c) => c(e, r));
3928
3931
  },
3929
3932
  /**
3930
3933
  * 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.
@@ -3935,8 +3938,8 @@ const kn = {
3935
3938
  * @param {*} [options] Override http request option.
3936
3939
  * @throws {RequiredError}
3937
3940
  */
3938
- getPackageClassification(a, n, o, s) {
3939
- return t.getPackageClassification(a, n, o, s).then((c) => c(e, r));
3941
+ getPackageClassification(a, n, s, o) {
3942
+ return t.getPackageClassification(a, n, s, o).then((c) => c(e, r));
3940
3943
  },
3941
3944
  /**
3942
3945
  * 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`).
@@ -3947,8 +3950,8 @@ const kn = {
3947
3950
  * @param {*} [options] Override http request option.
3948
3951
  * @throws {RequiredError}
3949
3952
  */
3950
- getPackageEmbeddingIndex(a, n, o, s) {
3951
- return t.getPackageEmbeddingIndex(a, n, o, s).then((c) => c(e, r));
3953
+ getPackageEmbeddingIndex(a, n, s, o) {
3954
+ return t.getPackageEmbeddingIndex(a, n, s, o).then((c) => c(e, r));
3952
3955
  },
3953
3956
  /**
3954
3957
  * 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-`.
@@ -3960,8 +3963,8 @@ const kn = {
3960
3963
  * @param {*} [options] Override http request option.
3961
3964
  * @throws {RequiredError}
3962
3965
  */
3963
- getPackageEntities(a, n, o, s, c) {
3964
- return t.getPackageEntities(a, n, o, s, c).then((i) => i(e, r));
3966
+ getPackageEntities(a, n, s, o, c) {
3967
+ return t.getPackageEntities(a, n, s, o, c).then((i) => i(e, r));
3965
3968
  },
3966
3969
  /**
3967
3970
  * 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.
@@ -3972,8 +3975,8 @@ const kn = {
3972
3975
  * @param {*} [options] Override http request option.
3973
3976
  * @throws {RequiredError}
3974
3977
  */
3975
- getPackageStatus(a, n, o, s) {
3976
- return t.getPackageStatus(a, n, o, s).then((c) => c(e, r));
3978
+ getPackageStatus(a, n, s, o) {
3979
+ return t.getPackageStatus(a, n, s, o).then((c) => c(e, r));
3977
3980
  },
3978
3981
  /**
3979
3982
  * 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=`.
@@ -3983,7 +3986,7 @@ const kn = {
3983
3986
  * @throws {RequiredError}
3984
3987
  */
3985
3988
  listPackages(a, n) {
3986
- return t.listPackages(a, n).then((o) => o(e, r));
3989
+ return t.listPackages(a, n).then((s) => s(e, r));
3987
3990
  },
3988
3991
  /**
3989
3992
  * 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.
@@ -3995,22 +3998,23 @@ const kn = {
3995
3998
  * @deprecated
3996
3999
  * @throws {RequiredError}
3997
4000
  */
3998
- updatePackage(a, n, o, s) {
3999
- return t.updatePackage(a, n, o, s).then((c) => c(e, r));
4001
+ updatePackage(a, n, s, o) {
4002
+ return t.updatePackage(a, n, s, o).then((c) => c(e, r));
4000
4003
  }
4001
4004
  };
4002
4005
  };
4003
4006
  class la extends C {
4004
4007
  /**
4005
- * 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` 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`).
4008
+ * 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. 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` (`off` 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`).
4006
4009
  * @summary Create a new package
4007
4010
  * @param {string} environmentName Name of the environment
4008
4011
  * @param {Package} _package
4012
+ * @param {boolean} [dryRun] Load and check the package at &#x60;location&#x60; as a publish would, and install nothing. See \&quot;Dry run\&quot; above.
4009
4013
  * @param {*} [options] Override http request option.
4010
4014
  * @throws {RequiredError}
4011
4015
  */
4012
- createPackage(r, e, t) {
4013
- return R(this.configuration).createPackage(r, e, t).then((a) => a(this.axios, this.basePath));
4016
+ createPackage(r, e, t, a) {
4017
+ return R(this.configuration).createPackage(r, e, t, a).then((n) => n(this.axios, this.basePath));
4014
4018
  }
4015
4019
  /**
4016
4020
  * 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}`.
@@ -4034,7 +4038,7 @@ class la extends C {
4034
4038
  * @throws {RequiredError}
4035
4039
  */
4036
4040
  getPackage(r, e, t, a, n) {
4037
- return R(this.configuration).getPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
4041
+ return R(this.configuration).getPackage(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
4038
4042
  }
4039
4043
  /**
4040
4044
  * 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.
@@ -4083,7 +4087,7 @@ class la extends C {
4083
4087
  * @throws {RequiredError}
4084
4088
  */
4085
4089
  getPackageEntities(r, e, t, a, n) {
4086
- return R(this.configuration).getPackageEntities(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
4090
+ return R(this.configuration).getPackageEntities(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
4087
4091
  }
4088
4092
  /**
4089
4093
  * 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.
@@ -4133,10 +4137,10 @@ const ia = function(l) {
4133
4137
  const e = "/theme", t = new URL(e, V);
4134
4138
  let a;
4135
4139
  l && (a = l.baseOptions);
4136
- const n = { method: "DELETE", ...a, ...r }, o = {}, s = {};
4137
- o.Accept = "application/json", v(t, s);
4140
+ const n = { method: "DELETE", ...a, ...r }, s = {}, o = {};
4141
+ s.Accept = "application/json", v(t, o);
4138
4142
  let c = a && a.headers ? a.headers : {};
4139
- return n.headers = { ...o, ...c, ...r.headers }, {
4143
+ return n.headers = { ...s, ...c, ...r.headers }, {
4140
4144
  url: b(t),
4141
4145
  options: n
4142
4146
  };
@@ -4152,12 +4156,12 @@ const ia = function(l) {
4152
4156
  const t = "/status", a = new URL(t, V);
4153
4157
  let n;
4154
4158
  l && (n = l.baseOptions);
4155
- const o = { method: "GET", ...n, ...e }, s = {}, c = {};
4156
- r !== void 0 && (c.includeLoading = r), s.Accept = "application/json", v(a, c);
4159
+ const s = { method: "GET", ...n, ...e }, o = {}, c = {};
4160
+ r !== void 0 && (c.includeLoading = r), o.Accept = "application/json", v(a, c);
4157
4161
  let i = n && n.headers ? n.headers : {};
4158
- return o.headers = { ...s, ...i, ...e.headers }, {
4162
+ return s.headers = { ...o, ...i, ...e.headers }, {
4159
4163
  url: b(a),
4160
- options: o
4164
+ options: s
4161
4165
  };
4162
4166
  },
4163
4167
  /**
@@ -4170,10 +4174,10 @@ const ia = function(l) {
4170
4174
  const e = "/theme", t = new URL(e, V);
4171
4175
  let a;
4172
4176
  l && (a = l.baseOptions);
4173
- const n = { method: "GET", ...a, ...r }, o = {}, s = {};
4174
- o.Accept = "application/json", v(t, s);
4177
+ const n = { method: "GET", ...a, ...r }, s = {}, o = {};
4178
+ s.Accept = "application/json", v(t, o);
4175
4179
  let c = a && a.headers ? a.headers : {};
4176
- return n.headers = { ...o, ...c, ...r.headers }, {
4180
+ return n.headers = { ...s, ...c, ...r.headers }, {
4177
4181
  url: b(t),
4178
4182
  options: n
4179
4183
  };
@@ -4190,12 +4194,12 @@ const ia = function(l) {
4190
4194
  const t = "/theme", a = new URL(t, V);
4191
4195
  let n;
4192
4196
  l && (n = l.baseOptions);
4193
- const o = { method: "PUT", ...n, ...e }, s = {}, c = {};
4194
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
4197
+ const s = { method: "PUT", ...n, ...e }, o = {}, c = {};
4198
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(a, c);
4195
4199
  let i = n && n.headers ? n.headers : {};
4196
- return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
4200
+ return s.headers = { ...o, ...i, ...e.headers }, s.data = A(r, s, l), {
4197
4201
  url: b(a),
4198
- options: o
4202
+ options: s
4199
4203
  };
4200
4204
  }
4201
4205
  };
@@ -4210,7 +4214,7 @@ const ia = function(l) {
4210
4214
  */
4211
4215
  async deleteTheme(e) {
4212
4216
  const t = await r.deleteTheme(e), a = l?.serverIndex ?? 0, n = P["PublisherApi.deleteTheme"]?.[a]?.url;
4213
- return (o, s) => S(t, u, g, l)(o, n || s);
4217
+ return (s, o) => S(t, u, g, l)(s, n || o);
4214
4218
  },
4215
4219
  /**
4216
4220
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -4220,8 +4224,8 @@ const ia = function(l) {
4220
4224
  * @throws {RequiredError}
4221
4225
  */
4222
4226
  async getStatus(e, t) {
4223
- const a = await r.getStatus(e, t), n = l?.serverIndex ?? 0, o = P["PublisherApi.getStatus"]?.[n]?.url;
4224
- return (s, c) => S(a, u, g, l)(s, o || c);
4227
+ const a = await r.getStatus(e, t), n = l?.serverIndex ?? 0, s = P["PublisherApi.getStatus"]?.[n]?.url;
4228
+ return (o, c) => S(a, u, g, l)(o, s || c);
4225
4229
  },
4226
4230
  /**
4227
4231
  * 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.
@@ -4231,7 +4235,7 @@ const ia = function(l) {
4231
4235
  */
4232
4236
  async getTheme(e) {
4233
4237
  const t = await r.getTheme(e), a = l?.serverIndex ?? 0, n = P["PublisherApi.getTheme"]?.[a]?.url;
4234
- return (o, s) => S(t, u, g, l)(o, n || s);
4238
+ return (s, o) => S(t, u, g, l)(s, n || o);
4235
4239
  },
4236
4240
  /**
4237
4241
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -4241,8 +4245,8 @@ const ia = function(l) {
4241
4245
  * @throws {RequiredError}
4242
4246
  */
4243
4247
  async updateTheme(e, t) {
4244
- const a = await r.updateTheme(e, t), n = l?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[n]?.url;
4245
- return (s, c) => S(a, u, g, l)(s, o || c);
4248
+ const a = await r.updateTheme(e, t), n = l?.serverIndex ?? 0, s = P["PublisherApi.updateTheme"]?.[n]?.url;
4249
+ return (o, c) => S(a, u, g, l)(o, s || c);
4246
4250
  }
4247
4251
  };
4248
4252
  }, An = function(l, r, e) {
@@ -4265,7 +4269,7 @@ const ia = function(l) {
4265
4269
  * @throws {RequiredError}
4266
4270
  */
4267
4271
  getStatus(a, n) {
4268
- return t.getStatus(a, n).then((o) => o(e, r));
4272
+ return t.getStatus(a, n).then((s) => s(e, r));
4269
4273
  },
4270
4274
  /**
4271
4275
  * 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.
@@ -4284,7 +4288,7 @@ const ia = function(l) {
4284
4288
  * @throws {RequiredError}
4285
4289
  */
4286
4290
  updateTheme(a, n) {
4287
- return t.updateTheme(a, n).then((o) => o(e, r));
4291
+ return t.updateTheme(a, n).then((s) => s(e, r));
4288
4292
  }
4289
4293
  };
4290
4294
  };
@@ -4342,14 +4346,14 @@ const da = function(l) {
4342
4346
  */
4343
4347
  getReport: async (r, e, t, a, n = {}) => {
4344
4348
  m("getReport", "environmentName", r), m("getReport", "packageName", e), m("getReport", "path", t);
4345
- const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
4349
+ const s = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), o = new URL(s, V);
4346
4350
  let c;
4347
4351
  l && (c = l.baseOptions);
4348
4352
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
4349
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
4353
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(o, d);
4350
4354
  let h = c && c.headers ? c.headers : {};
4351
4355
  return i.headers = { ...p, ...h, ...n.headers }, {
4352
- url: b(s),
4356
+ url: b(o),
4353
4357
  options: i
4354
4358
  };
4355
4359
  },
@@ -4364,14 +4368,14 @@ const da = function(l) {
4364
4368
  */
4365
4369
  listReports: async (r, e, t, a = {}) => {
4366
4370
  m("listReports", "environmentName", r), m("listReports", "packageName", e);
4367
- const n = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
4368
- let s;
4369
- l && (s = l.baseOptions);
4370
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
4371
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
4372
- let d = s && s.headers ? s.headers : {};
4371
+ const n = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
4372
+ let o;
4373
+ l && (o = l.baseOptions);
4374
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
4375
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
4376
+ let d = o && o.headers ? o.headers : {};
4373
4377
  return c.headers = { ...i, ...d, ...a.headers }, {
4374
- url: b(o),
4378
+ url: b(s),
4375
4379
  options: c
4376
4380
  };
4377
4381
  }
@@ -4389,9 +4393,9 @@ const da = function(l) {
4389
4393
  * @param {*} [options] Override http request option.
4390
4394
  * @throws {RequiredError}
4391
4395
  */
4392
- async getReport(e, t, a, n, o) {
4393
- const s = await r.getReport(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ReportsApi.getReport"]?.[c]?.url;
4394
- return (p, d) => S(s, u, g, l)(p, i || d);
4396
+ async getReport(e, t, a, n, s) {
4397
+ const o = await r.getReport(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["ReportsApi.getReport"]?.[c]?.url;
4398
+ return (p, d) => S(o, u, g, l)(p, i || d);
4395
4399
  },
4396
4400
  /**
4397
4401
  * 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.
@@ -4403,8 +4407,8 @@ const da = function(l) {
4403
4407
  * @throws {RequiredError}
4404
4408
  */
4405
4409
  async listReports(e, t, a, n) {
4406
- const o = await r.listReports(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ReportsApi.listReports"]?.[s]?.url;
4407
- return (i, p) => S(o, u, g, l)(i, c || p);
4410
+ const s = await r.listReports(e, t, a, n), o = l?.serverIndex ?? 0, c = P["ReportsApi.listReports"]?.[o]?.url;
4411
+ return (i, p) => S(s, u, g, l)(i, c || p);
4408
4412
  }
4409
4413
  };
4410
4414
  }, yn = function(l, r, e) {
@@ -4420,8 +4424,8 @@ const da = function(l) {
4420
4424
  * @param {*} [options] Override http request option.
4421
4425
  * @throws {RequiredError}
4422
4426
  */
4423
- getReport(a, n, o, s, c) {
4424
- return t.getReport(a, n, o, s, c).then((i) => i(e, r));
4427
+ getReport(a, n, s, o, c) {
4428
+ return t.getReport(a, n, s, o, c).then((i) => i(e, r));
4425
4429
  },
4426
4430
  /**
4427
4431
  * 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.
@@ -4432,8 +4436,8 @@ const da = function(l) {
4432
4436
  * @param {*} [options] Override http request option.
4433
4437
  * @throws {RequiredError}
4434
4438
  */
4435
- listReports(a, n, o, s) {
4436
- return t.listReports(a, n, o, s).then((c) => c(e, r));
4439
+ listReports(a, n, s, o) {
4440
+ return t.listReports(a, n, s, o).then((c) => c(e, r));
4437
4441
  }
4438
4442
  };
4439
4443
  };
@@ -4449,7 +4453,7 @@ class ma extends C {
4449
4453
  * @throws {RequiredError}
4450
4454
  */
4451
4455
  getReport(r, e, t, a, n) {
4452
- return Z(this.configuration).getReport(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
4456
+ return Z(this.configuration).getReport(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
4453
4457
  }
4454
4458
  /**
4455
4459
  * 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.
@@ -4478,14 +4482,14 @@ const ha = function(l) {
4478
4482
  */
4479
4483
  getSkill: async (r, e, t, a, n = {}) => {
4480
4484
  m("getSkill", "environmentName", r), m("getSkill", "packageName", e), m("getSkill", "skillName", t);
4481
- const o = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), s = new URL(o, V);
4485
+ const s = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(s, V);
4482
4486
  let c;
4483
4487
  l && (c = l.baseOptions);
4484
4488
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
4485
- a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
4489
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(o, d);
4486
4490
  let h = c && c.headers ? c.headers : {};
4487
4491
  return i.headers = { ...p, ...h, ...n.headers }, {
4488
- url: b(s),
4492
+ url: b(o),
4489
4493
  options: i
4490
4494
  };
4491
4495
  },
@@ -4500,14 +4504,14 @@ const ha = function(l) {
4500
4504
  */
4501
4505
  listSkills: async (r, e, t, a = {}) => {
4502
4506
  m("listSkills", "environmentName", r), m("listSkills", "packageName", e);
4503
- const n = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
4504
- let s;
4505
- l && (s = l.baseOptions);
4506
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
4507
- t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
4508
- let d = s && s.headers ? s.headers : {};
4507
+ const n = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
4508
+ let o;
4509
+ l && (o = l.baseOptions);
4510
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
4511
+ t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(s, p);
4512
+ let d = o && o.headers ? o.headers : {};
4509
4513
  return c.headers = { ...i, ...d, ...a.headers }, {
4510
- url: b(o),
4514
+ url: b(s),
4511
4515
  options: c
4512
4516
  };
4513
4517
  }
@@ -4525,9 +4529,9 @@ const ha = function(l) {
4525
4529
  * @param {*} [options] Override http request option.
4526
4530
  * @throws {RequiredError}
4527
4531
  */
4528
- async getSkill(e, t, a, n, o) {
4529
- const s = await r.getSkill(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["SkillsApi.getSkill"]?.[c]?.url;
4530
- return (p, d) => S(s, u, g, l)(p, i || d);
4532
+ async getSkill(e, t, a, n, s) {
4533
+ const o = await r.getSkill(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["SkillsApi.getSkill"]?.[c]?.url;
4534
+ return (p, d) => S(o, u, g, l)(p, i || d);
4531
4535
  },
4532
4536
  /**
4533
4537
  * 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.
@@ -4539,8 +4543,8 @@ const ha = function(l) {
4539
4543
  * @throws {RequiredError}
4540
4544
  */
4541
4545
  async listSkills(e, t, a, n) {
4542
- const o = await r.listSkills(e, t, a, n), s = l?.serverIndex ?? 0, c = P["SkillsApi.listSkills"]?.[s]?.url;
4543
- return (i, p) => S(o, u, g, l)(i, c || p);
4546
+ const s = await r.listSkills(e, t, a, n), o = l?.serverIndex ?? 0, c = P["SkillsApi.listSkills"]?.[o]?.url;
4547
+ return (i, p) => S(s, u, g, l)(i, c || p);
4544
4548
  }
4545
4549
  };
4546
4550
  }, Cn = function(l, r, e) {
@@ -4556,8 +4560,8 @@ const ha = function(l) {
4556
4560
  * @param {*} [options] Override http request option.
4557
4561
  * @throws {RequiredError}
4558
4562
  */
4559
- getSkill(a, n, o, s, c) {
4560
- return t.getSkill(a, n, o, s, c).then((i) => i(e, r));
4563
+ getSkill(a, n, s, o, c) {
4564
+ return t.getSkill(a, n, s, o, c).then((i) => i(e, r));
4561
4565
  },
4562
4566
  /**
4563
4567
  * 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.
@@ -4568,8 +4572,8 @@ const ha = function(l) {
4568
4572
  * @param {*} [options] Override http request option.
4569
4573
  * @throws {RequiredError}
4570
4574
  */
4571
- listSkills(a, n, o, s) {
4572
- return t.listSkills(a, n, o, s).then((c) => c(e, r));
4575
+ listSkills(a, n, s, o) {
4576
+ return t.listSkills(a, n, s, o).then((c) => c(e, r));
4573
4577
  }
4574
4578
  };
4575
4579
  };
@@ -4585,7 +4589,7 @@ class In extends C {
4585
4589
  * @throws {RequiredError}
4586
4590
  */
4587
4591
  getSkill(r, e, t, a, n) {
4588
- return ee(this.configuration).getSkill(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
4592
+ return ee(this.configuration).getSkill(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
4589
4593
  }
4590
4594
  /**
4591
4595
  * 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.
@@ -4614,14 +4618,14 @@ const ua = function(l) {
4614
4618
  */
4615
4619
  createStorageDestinationFileCleanup: async (r, e, t, a = {}) => {
4616
4620
  m("createStorageDestinationFileCleanup", "environmentName", r), m("createStorageDestinationFileCleanup", "destinationName", e), m("createStorageDestinationFileCleanup", "storageFileCleanupRequest", t);
4617
- const n = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))), o = new URL(n, V);
4618
- let s;
4619
- l && (s = l.baseOptions);
4620
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
4621
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
4622
- let d = s && s.headers ? s.headers : {};
4621
+ const n = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))), s = new URL(n, V);
4622
+ let o;
4623
+ l && (o = l.baseOptions);
4624
+ const c = { method: "POST", ...o, ...a }, i = {}, p = {};
4625
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
4626
+ let d = o && o.headers ? o.headers : {};
4623
4627
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
4624
- url: b(o),
4628
+ url: b(s),
4625
4629
  options: c
4626
4630
  };
4627
4631
  },
@@ -4638,14 +4642,14 @@ const ua = function(l) {
4638
4642
  */
4639
4643
  deleteStorageDestinationTable: async (r, e, t, a, n = {}) => {
4640
4644
  m("deleteStorageDestinationTable", "environmentName", r), m("deleteStorageDestinationTable", "destinationName", e), m("deleteStorageDestinationTable", "schemaName", t), m("deleteStorageDestinationTable", "tableName", a);
4641
- const o = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tableName}", encodeURIComponent(String(a))), s = new URL(o, V);
4645
+ const s = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tableName}", encodeURIComponent(String(a))), o = new URL(s, V);
4642
4646
  let c;
4643
4647
  l && (c = l.baseOptions);
4644
4648
  const i = { method: "DELETE", ...c, ...n }, p = {}, d = {};
4645
- p.Accept = "application/json", v(s, d);
4649
+ p.Accept = "application/json", v(o, d);
4646
4650
  let h = c && c.headers ? c.headers : {};
4647
4651
  return i.headers = { ...p, ...h, ...n.headers }, {
4648
- url: b(s),
4652
+ url: b(o),
4649
4653
  options: i
4650
4654
  };
4651
4655
  },
@@ -4661,14 +4665,14 @@ const ua = function(l) {
4661
4665
  */
4662
4666
  listStorageDestinationTables: async (r, e, t, a = {}) => {
4663
4667
  m("listStorageDestinationTables", "environmentName", r), m("listStorageDestinationTables", "destinationName", e), m("listStorageDestinationTables", "schemaName", t);
4664
- const n = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), o = new URL(n, V);
4665
- let s;
4666
- l && (s = l.baseOptions);
4667
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
4668
- i.Accept = "application/json", v(o, p);
4669
- let d = s && s.headers ? s.headers : {};
4668
+ const n = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(n, V);
4669
+ let o;
4670
+ l && (o = l.baseOptions);
4671
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
4672
+ i.Accept = "application/json", v(s, p);
4673
+ let d = o && o.headers ? o.headers : {};
4670
4674
  return c.headers = { ...i, ...d, ...a.headers }, {
4671
- url: b(o),
4675
+ url: b(s),
4672
4676
  options: c
4673
4677
  };
4674
4678
  }
@@ -4687,8 +4691,8 @@ const ua = function(l) {
4687
4691
  * @throws {RequiredError}
4688
4692
  */
4689
4693
  async createStorageDestinationFileCleanup(e, t, a, n) {
4690
- const o = await r.createStorageDestinationFileCleanup(e, t, a, n), s = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[s]?.url;
4691
- return (i, p) => S(o, u, g, l)(i, c || p);
4694
+ const s = await r.createStorageDestinationFileCleanup(e, t, a, n), o = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[o]?.url;
4695
+ return (i, p) => S(s, u, g, l)(i, c || p);
4692
4696
  },
4693
4697
  /**
4694
4698
  * **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.
@@ -4701,9 +4705,9 @@ const ua = function(l) {
4701
4705
  * @deprecated
4702
4706
  * @throws {RequiredError}
4703
4707
  */
4704
- async deleteStorageDestinationTable(e, t, a, n, o) {
4705
- const s = await r.deleteStorageDestinationTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.deleteStorageDestinationTable"]?.[c]?.url;
4706
- return (p, d) => S(s, u, g, l)(p, i || d);
4708
+ async deleteStorageDestinationTable(e, t, a, n, s) {
4709
+ const o = await r.deleteStorageDestinationTable(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.deleteStorageDestinationTable"]?.[c]?.url;
4710
+ return (p, d) => S(o, u, g, l)(p, i || d);
4707
4711
  },
4708
4712
  /**
4709
4713
  * **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.
@@ -4716,8 +4720,8 @@ const ua = function(l) {
4716
4720
  * @throws {RequiredError}
4717
4721
  */
4718
4722
  async listStorageDestinationTables(e, t, a, n) {
4719
- const o = await r.listStorageDestinationTables(e, t, a, n), s = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.listStorageDestinationTables"]?.[s]?.url;
4720
- return (i, p) => S(o, u, g, l)(i, c || p);
4723
+ const s = await r.listStorageDestinationTables(e, t, a, n), o = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.listStorageDestinationTables"]?.[o]?.url;
4724
+ return (i, p) => S(s, u, g, l)(i, c || p);
4721
4725
  }
4722
4726
  };
4723
4727
  }, xn = function(l, r, e) {
@@ -4733,8 +4737,8 @@ const ua = function(l) {
4733
4737
  * @deprecated
4734
4738
  * @throws {RequiredError}
4735
4739
  */
4736
- createStorageDestinationFileCleanup(a, n, o, s) {
4737
- return t.createStorageDestinationFileCleanup(a, n, o, s).then((c) => c(e, r));
4740
+ createStorageDestinationFileCleanup(a, n, s, o) {
4741
+ return t.createStorageDestinationFileCleanup(a, n, s, o).then((c) => c(e, r));
4738
4742
  },
4739
4743
  /**
4740
4744
  * **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.
@@ -4747,8 +4751,8 @@ const ua = function(l) {
4747
4751
  * @deprecated
4748
4752
  * @throws {RequiredError}
4749
4753
  */
4750
- deleteStorageDestinationTable(a, n, o, s, c) {
4751
- return t.deleteStorageDestinationTable(a, n, o, s, c).then((i) => i(e, r));
4754
+ deleteStorageDestinationTable(a, n, s, o, c) {
4755
+ return t.deleteStorageDestinationTable(a, n, s, o, c).then((i) => i(e, r));
4752
4756
  },
4753
4757
  /**
4754
4758
  * **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.
@@ -4760,8 +4764,8 @@ const ua = function(l) {
4760
4764
  * @deprecated
4761
4765
  * @throws {RequiredError}
4762
4766
  */
4763
- listStorageDestinationTables(a, n, o, s) {
4764
- return t.listStorageDestinationTables(a, n, o, s).then((c) => c(e, r));
4767
+ listStorageDestinationTables(a, n, s, o) {
4768
+ return t.listStorageDestinationTables(a, n, s, o).then((c) => c(e, r));
4765
4769
  }
4766
4770
  };
4767
4771
  };
@@ -4791,7 +4795,7 @@ class Rn extends C {
4791
4795
  * @throws {RequiredError}
4792
4796
  */
4793
4797
  deleteStorageDestinationTable(r, e, t, a, n) {
4794
- return _(this.configuration).deleteStorageDestinationTable(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
4798
+ return _(this.configuration).deleteStorageDestinationTable(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
4795
4799
  }
4796
4800
  /**
4797
4801
  * **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.
@@ -4820,14 +4824,14 @@ const ga = function(l) {
4820
4824
  */
4821
4825
  deletePackageVersion: async (r, e, t, a = {}) => {
4822
4826
  m("deletePackageVersion", "environmentName", r), m("deletePackageVersion", "packageName", e), m("deletePackageVersion", "version", t);
4823
- const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(n, V);
4824
- let s;
4825
- l && (s = l.baseOptions);
4826
- const c = { method: "DELETE", ...s, ...a }, i = {}, p = {};
4827
- i.Accept = "application/json", v(o, p);
4828
- let d = s && s.headers ? s.headers : {};
4827
+ const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(n, V);
4828
+ let o;
4829
+ l && (o = l.baseOptions);
4830
+ const c = { method: "DELETE", ...o, ...a }, i = {}, p = {};
4831
+ i.Accept = "application/json", v(s, p);
4832
+ let d = o && o.headers ? o.headers : {};
4829
4833
  return c.headers = { ...i, ...d, ...a.headers }, {
4830
- url: b(o),
4834
+ url: b(s),
4831
4835
  options: c
4832
4836
  };
4833
4837
  },
@@ -4842,14 +4846,14 @@ const ga = function(l) {
4842
4846
  */
4843
4847
  getPackageVersion: async (r, e, t, a = {}) => {
4844
4848
  m("getPackageVersion", "environmentName", r), m("getPackageVersion", "packageName", e), m("getPackageVersion", "version", t);
4845
- const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(n, V);
4846
- let s;
4847
- l && (s = l.baseOptions);
4848
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
4849
- i.Accept = "application/json", v(o, p);
4850
- let d = s && s.headers ? s.headers : {};
4849
+ const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(n, V);
4850
+ let o;
4851
+ l && (o = l.baseOptions);
4852
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
4853
+ i.Accept = "application/json", v(s, p);
4854
+ let d = o && o.headers ? o.headers : {};
4851
4855
  return c.headers = { ...i, ...d, ...a.headers }, {
4852
- url: b(o),
4856
+ url: b(s),
4853
4857
  options: c
4854
4858
  };
4855
4859
  },
@@ -4864,14 +4868,14 @@ const ga = function(l) {
4864
4868
  listPackageVersions: async (r, e, t = {}) => {
4865
4869
  m("listPackageVersions", "environmentName", r), m("listPackageVersions", "packageName", e);
4866
4870
  const a = "/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
4867
- let o;
4868
- l && (o = l.baseOptions);
4869
- const s = { method: "GET", ...o, ...t }, c = {}, i = {};
4871
+ let s;
4872
+ l && (s = l.baseOptions);
4873
+ const o = { method: "GET", ...s, ...t }, c = {}, i = {};
4870
4874
  c.Accept = "application/json", v(n, i);
4871
- let p = o && o.headers ? o.headers : {};
4872
- return s.headers = { ...c, ...p, ...t.headers }, {
4875
+ let p = s && s.headers ? s.headers : {};
4876
+ return o.headers = { ...c, ...p, ...t.headers }, {
4873
4877
  url: b(n),
4874
- options: s
4878
+ options: o
4875
4879
  };
4876
4880
  },
4877
4881
  /**
@@ -4885,14 +4889,14 @@ const ga = function(l) {
4885
4889
  */
4886
4890
  setPackageLatestVersion: async (r, e, t, a = {}) => {
4887
4891
  m("setPackageLatestVersion", "environmentName", r), m("setPackageLatestVersion", "packageName", e), m("setPackageLatestVersion", "packageLatestVersion", t);
4888
- const n = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
4889
- let s;
4890
- l && (s = l.baseOptions);
4891
- const c = { method: "PUT", ...s, ...a }, i = {}, p = {};
4892
- i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
4893
- let d = s && s.headers ? s.headers : {};
4892
+ const n = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
4893
+ let o;
4894
+ l && (o = l.baseOptions);
4895
+ const c = { method: "PUT", ...o, ...a }, i = {}, p = {};
4896
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(s, p);
4897
+ let d = o && o.headers ? o.headers : {};
4894
4898
  return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
4895
- url: b(o),
4899
+ url: b(s),
4896
4900
  options: c
4897
4901
  };
4898
4902
  },
@@ -4908,14 +4912,14 @@ const ga = function(l) {
4908
4912
  */
4909
4913
  setPackageVersionManifest: async (r, e, t, a, n = {}) => {
4910
4914
  m("setPackageVersionManifest", "environmentName", r), m("setPackageVersionManifest", "packageName", e), m("setPackageVersionManifest", "version", t), m("setPackageVersionManifest", "packageVersionManifest", a);
4911
- const o = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(o, V);
4915
+ const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(s, V);
4912
4916
  let c;
4913
4917
  l && (c = l.baseOptions);
4914
4918
  const i = { method: "PUT", ...c, ...n }, p = {}, d = {};
4915
- p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
4919
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(o, d);
4916
4920
  let h = c && c.headers ? c.headers : {};
4917
4921
  return i.headers = { ...p, ...h, ...n.headers }, i.data = A(a, i, l), {
4918
- url: b(s),
4922
+ url: b(o),
4919
4923
  options: i
4920
4924
  };
4921
4925
  },
@@ -4931,14 +4935,14 @@ const ga = function(l) {
4931
4935
  */
4932
4936
  updatePackageVersion: async (r, e, t, a, n = {}) => {
4933
4937
  m("updatePackageVersion", "environmentName", r), m("updatePackageVersion", "packageName", e), m("updatePackageVersion", "version", t), m("updatePackageVersion", "packageVersionUpdate", a);
4934
- const o = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(o, V);
4938
+ const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(s, V);
4935
4939
  let c;
4936
4940
  l && (c = l.baseOptions);
4937
4941
  const i = { method: "PATCH", ...c, ...n }, p = {}, d = {};
4938
- p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
4942
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(o, d);
4939
4943
  let h = c && c.headers ? c.headers : {};
4940
4944
  return i.headers = { ...p, ...h, ...n.headers }, i.data = A(a, i, l), {
4941
- url: b(s),
4945
+ url: b(o),
4942
4946
  options: i
4943
4947
  };
4944
4948
  }
@@ -4956,8 +4960,8 @@ const ga = function(l) {
4956
4960
  * @throws {RequiredError}
4957
4961
  */
4958
4962
  async deletePackageVersion(e, t, a, n) {
4959
- const o = await r.deletePackageVersion(e, t, a, n), s = l?.serverIndex ?? 0, c = P["VersionsApi.deletePackageVersion"]?.[s]?.url;
4960
- return (i, p) => S(o, u, g, l)(i, c || p);
4963
+ const s = await r.deletePackageVersion(e, t, a, n), o = l?.serverIndex ?? 0, c = P["VersionsApi.deletePackageVersion"]?.[o]?.url;
4964
+ return (i, p) => S(s, u, g, l)(i, c || p);
4961
4965
  },
4962
4966
  /**
4963
4967
  * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
@@ -4969,8 +4973,8 @@ const ga = function(l) {
4969
4973
  * @throws {RequiredError}
4970
4974
  */
4971
4975
  async getPackageVersion(e, t, a, n) {
4972
- const o = await r.getPackageVersion(e, t, a, n), s = l?.serverIndex ?? 0, c = P["VersionsApi.getPackageVersion"]?.[s]?.url;
4973
- return (i, p) => S(o, u, g, l)(i, c || p);
4976
+ const s = await r.getPackageVersion(e, t, a, n), o = l?.serverIndex ?? 0, c = P["VersionsApi.getPackageVersion"]?.[o]?.url;
4977
+ return (i, p) => S(s, u, g, l)(i, c || p);
4974
4978
  },
4975
4979
  /**
4976
4980
  * 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, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
@@ -4981,8 +4985,8 @@ const ga = function(l) {
4981
4985
  * @throws {RequiredError}
4982
4986
  */
4983
4987
  async listPackageVersions(e, t, a) {
4984
- const n = await r.listPackageVersions(e, t, a), o = l?.serverIndex ?? 0, s = P["VersionsApi.listPackageVersions"]?.[o]?.url;
4985
- return (c, i) => S(n, u, g, l)(c, s || i);
4988
+ const n = await r.listPackageVersions(e, t, a), s = l?.serverIndex ?? 0, o = P["VersionsApi.listPackageVersions"]?.[s]?.url;
4989
+ return (c, i) => S(n, u, g, l)(c, o || i);
4986
4990
  },
4987
4991
  /**
4988
4992
  * 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.
@@ -4994,8 +4998,8 @@ const ga = function(l) {
4994
4998
  * @throws {RequiredError}
4995
4999
  */
4996
5000
  async setPackageLatestVersion(e, t, a, n) {
4997
- const o = await r.setPackageLatestVersion(e, t, a, n), s = l?.serverIndex ?? 0, c = P["VersionsApi.setPackageLatestVersion"]?.[s]?.url;
4998
- return (i, p) => S(o, u, g, l)(i, c || p);
5001
+ const s = await r.setPackageLatestVersion(e, t, a, n), o = l?.serverIndex ?? 0, c = P["VersionsApi.setPackageLatestVersion"]?.[o]?.url;
5002
+ return (i, p) => S(s, u, g, l)(i, c || p);
4999
5003
  },
5000
5004
  /**
5001
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. 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.
@@ -5007,9 +5011,9 @@ const ga = function(l) {
5007
5011
  * @param {*} [options] Override http request option.
5008
5012
  * @throws {RequiredError}
5009
5013
  */
5010
- async setPackageVersionManifest(e, t, a, n, o) {
5011
- const s = await r.setPackageVersionManifest(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["VersionsApi.setPackageVersionManifest"]?.[c]?.url;
5012
- return (p, d) => S(s, u, g, l)(p, i || d);
5014
+ async setPackageVersionManifest(e, t, a, n, s) {
5015
+ const o = await r.setPackageVersionManifest(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["VersionsApi.setPackageVersionManifest"]?.[c]?.url;
5016
+ return (p, d) => S(o, u, g, l)(p, i || d);
5013
5017
  },
5014
5018
  /**
5015
5019
  * 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.
@@ -5021,9 +5025,9 @@ const ga = function(l) {
5021
5025
  * @param {*} [options] Override http request option.
5022
5026
  * @throws {RequiredError}
5023
5027
  */
5024
- async updatePackageVersion(e, t, a, n, o) {
5025
- const s = await r.updatePackageVersion(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["VersionsApi.updatePackageVersion"]?.[c]?.url;
5026
- return (p, d) => S(s, u, g, l)(p, i || d);
5028
+ async updatePackageVersion(e, t, a, n, s) {
5029
+ const o = await r.updatePackageVersion(e, t, a, n, s), c = l?.serverIndex ?? 0, i = P["VersionsApi.updatePackageVersion"]?.[c]?.url;
5030
+ return (p, d) => S(o, u, g, l)(p, i || d);
5027
5031
  }
5028
5032
  };
5029
5033
  }, Nn = function(l, r, e) {
@@ -5038,8 +5042,8 @@ const ga = function(l) {
5038
5042
  * @param {*} [options] Override http request option.
5039
5043
  * @throws {RequiredError}
5040
5044
  */
5041
- deletePackageVersion(a, n, o, s) {
5042
- return t.deletePackageVersion(a, n, o, s).then((c) => c(e, r));
5045
+ deletePackageVersion(a, n, s, o) {
5046
+ return t.deletePackageVersion(a, n, s, o).then((c) => c(e, r));
5043
5047
  },
5044
5048
  /**
5045
5049
  * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
@@ -5050,8 +5054,8 @@ const ga = function(l) {
5050
5054
  * @param {*} [options] Override http request option.
5051
5055
  * @throws {RequiredError}
5052
5056
  */
5053
- getPackageVersion(a, n, o, s) {
5054
- return t.getPackageVersion(a, n, o, s).then((c) => c(e, r));
5057
+ getPackageVersion(a, n, s, o) {
5058
+ return t.getPackageVersion(a, n, s, o).then((c) => c(e, r));
5055
5059
  },
5056
5060
  /**
5057
5061
  * 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, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
@@ -5061,8 +5065,8 @@ const ga = function(l) {
5061
5065
  * @param {*} [options] Override http request option.
5062
5066
  * @throws {RequiredError}
5063
5067
  */
5064
- listPackageVersions(a, n, o) {
5065
- return t.listPackageVersions(a, n, o).then((s) => s(e, r));
5068
+ listPackageVersions(a, n, s) {
5069
+ return t.listPackageVersions(a, n, s).then((o) => o(e, r));
5066
5070
  },
5067
5071
  /**
5068
5072
  * 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.
@@ -5073,8 +5077,8 @@ const ga = function(l) {
5073
5077
  * @param {*} [options] Override http request option.
5074
5078
  * @throws {RequiredError}
5075
5079
  */
5076
- setPackageLatestVersion(a, n, o, s) {
5077
- return t.setPackageLatestVersion(a, n, o, s).then((c) => c(e, r));
5080
+ setPackageLatestVersion(a, n, s, o) {
5081
+ return t.setPackageLatestVersion(a, n, s, o).then((c) => c(e, r));
5078
5082
  },
5079
5083
  /**
5080
5084
  * 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.
@@ -5086,8 +5090,8 @@ const ga = function(l) {
5086
5090
  * @param {*} [options] Override http request option.
5087
5091
  * @throws {RequiredError}
5088
5092
  */
5089
- setPackageVersionManifest(a, n, o, s, c) {
5090
- return t.setPackageVersionManifest(a, n, o, s, c).then((i) => i(e, r));
5093
+ setPackageVersionManifest(a, n, s, o, c) {
5094
+ return t.setPackageVersionManifest(a, n, s, o, c).then((i) => i(e, r));
5091
5095
  },
5092
5096
  /**
5093
5097
  * 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.
@@ -5099,8 +5103,8 @@ const ga = function(l) {
5099
5103
  * @param {*} [options] Override http request option.
5100
5104
  * @throws {RequiredError}
5101
5105
  */
5102
- updatePackageVersion(a, n, o, s, c) {
5103
- return t.updatePackageVersion(a, n, o, s, c).then((i) => i(e, r));
5106
+ updatePackageVersion(a, n, s, o, c) {
5107
+ return t.updatePackageVersion(a, n, s, o, c).then((i) => i(e, r));
5104
5108
  }
5105
5109
  };
5106
5110
  };
@@ -5163,7 +5167,7 @@ class Pa extends C {
5163
5167
  * @throws {RequiredError}
5164
5168
  */
5165
5169
  setPackageVersionManifest(r, e, t, a, n) {
5166
- return T(this.configuration).setPackageVersionManifest(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
5170
+ return T(this.configuration).setPackageVersionManifest(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
5167
5171
  }
5168
5172
  /**
5169
5173
  * 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.
@@ -5176,7 +5180,7 @@ class Pa extends C {
5176
5180
  * @throws {RequiredError}
5177
5181
  */
5178
5182
  updatePackageVersion(r, e, t, a, n) {
5179
- return T(this.configuration).updatePackageVersion(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
5183
+ return T(this.configuration).updatePackageVersion(r, e, t, a, n).then((s) => s(this.axios, this.basePath));
5180
5184
  }
5181
5185
  }
5182
5186
  const Va = function(l) {
@@ -5192,10 +5196,10 @@ const Va = function(l) {
5192
5196
  const e = "/watch-mode/status", t = new URL(e, V);
5193
5197
  let a;
5194
5198
  l && (a = l.baseOptions);
5195
- const n = { method: "GET", ...a, ...r }, o = {}, s = {};
5196
- o.Accept = "application/json", v(t, s);
5199
+ const n = { method: "GET", ...a, ...r }, s = {}, o = {};
5200
+ s.Accept = "application/json", v(t, o);
5197
5201
  let c = a && a.headers ? a.headers : {};
5198
- return n.headers = { ...o, ...c, ...r.headers }, {
5202
+ return n.headers = { ...s, ...c, ...r.headers }, {
5199
5203
  url: b(t),
5200
5204
  options: n
5201
5205
  };
@@ -5213,12 +5217,12 @@ const Va = function(l) {
5213
5217
  const t = "/watch-mode/start", a = new URL(t, V);
5214
5218
  let n;
5215
5219
  l && (n = l.baseOptions);
5216
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
5217
- s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
5220
+ const s = { method: "POST", ...n, ...e }, o = {}, c = {};
5221
+ o["Content-Type"] = "application/json", o.Accept = "application/json", v(a, c);
5218
5222
  let i = n && n.headers ? n.headers : {};
5219
- return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
5223
+ return s.headers = { ...o, ...i, ...e.headers }, s.data = A(r, s, l), {
5220
5224
  url: b(a),
5221
- options: o
5225
+ options: s
5222
5226
  };
5223
5227
  },
5224
5228
  /**
@@ -5232,10 +5236,10 @@ const Va = function(l) {
5232
5236
  const e = "/watch-mode/stop", t = new URL(e, V);
5233
5237
  let a;
5234
5238
  l && (a = l.baseOptions);
5235
- const n = { method: "POST", ...a, ...r }, o = {}, s = {};
5236
- o.Accept = "application/json", v(t, s);
5239
+ const n = { method: "POST", ...a, ...r }, s = {}, o = {};
5240
+ s.Accept = "application/json", v(t, o);
5237
5241
  let c = a && a.headers ? a.headers : {};
5238
- return n.headers = { ...o, ...c, ...r.headers }, {
5242
+ return n.headers = { ...s, ...c, ...r.headers }, {
5239
5243
  url: b(t),
5240
5244
  options: n
5241
5245
  };
@@ -5251,14 +5255,14 @@ const Va = function(l) {
5251
5255
  */
5252
5256
  streamPackageEvents: async (r, e, t, a = {}) => {
5253
5257
  m("streamPackageEvents", "environmentName", r), m("streamPackageEvents", "packageName", e);
5254
- const n = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
5255
- let s;
5256
- l && (s = l.baseOptions);
5257
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
5258
- t !== void 0 && (p.versionId = t), i.Accept = "text/event-stream,application/json", v(o, p);
5259
- let d = s && s.headers ? s.headers : {};
5258
+ const n = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(n, V);
5259
+ let o;
5260
+ l && (o = l.baseOptions);
5261
+ const c = { method: "GET", ...o, ...a }, i = {}, p = {};
5262
+ t !== void 0 && (p.versionId = t), i.Accept = "text/event-stream,application/json", v(s, p);
5263
+ let d = o && o.headers ? o.headers : {};
5260
5264
  return c.headers = { ...i, ...d, ...a.headers }, {
5261
- url: b(o),
5265
+ url: b(s),
5262
5266
  options: c
5263
5267
  };
5264
5268
  }
@@ -5275,7 +5279,7 @@ const Va = function(l) {
5275
5279
  */
5276
5280
  async getWatchStatus(e) {
5277
5281
  const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
5278
- return (o, s) => S(t, u, g, l)(o, n || s);
5282
+ return (s, o) => S(t, u, g, l)(s, n || o);
5279
5283
  },
5280
5284
  /**
5281
5285
  * **DEPRECATED**: use the admin API\'s `PUT /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. Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
@@ -5286,8 +5290,8 @@ const Va = function(l) {
5286
5290
  * @throws {RequiredError}
5287
5291
  */
5288
5292
  async startWatching(e, t) {
5289
- const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[n]?.url;
5290
- return (s, c) => S(a, u, g, l)(s, o || c);
5293
+ const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, s = P["WatchModeApi.startWatching"]?.[n]?.url;
5294
+ return (o, c) => S(a, u, g, l)(o, s || c);
5291
5295
  },
5292
5296
  /**
5293
5297
  * **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.
@@ -5298,7 +5302,7 @@ const Va = function(l) {
5298
5302
  */
5299
5303
  async stopWatching(e) {
5300
5304
  const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.stopWatching"]?.[a]?.url;
5301
- return (o, s) => S(t, u, g, l)(o, n || s);
5305
+ return (s, o) => S(t, u, g, l)(s, n || o);
5302
5306
  },
5303
5307
  /**
5304
5308
  * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection. `versionId` is accepted so a data app can send it on every call, but a published version never changes: its stream carries `hello`, `mode` and heartbeats and no `changed` event. Watch mode only ever mounts unversioned packages.
@@ -5310,8 +5314,8 @@ const Va = function(l) {
5310
5314
  * @throws {RequiredError}
5311
5315
  */
5312
5316
  async streamPackageEvents(e, t, a, n) {
5313
- const o = await r.streamPackageEvents(e, t, a, n), s = l?.serverIndex ?? 0, c = P["WatchModeApi.streamPackageEvents"]?.[s]?.url;
5314
- return (i, p) => S(o, u, g, l)(i, c || p);
5317
+ const s = await r.streamPackageEvents(e, t, a, n), o = l?.serverIndex ?? 0, c = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
5318
+ return (i, p) => S(s, u, g, l)(i, c || p);
5315
5319
  }
5316
5320
  };
5317
5321
  }, Un = function(l, r, e) {
@@ -5336,7 +5340,7 @@ const Va = function(l) {
5336
5340
  * @throws {RequiredError}
5337
5341
  */
5338
5342
  startWatching(a, n) {
5339
- return t.startWatching(a, n).then((o) => o(e, r));
5343
+ return t.startWatching(a, n).then((s) => s(e, r));
5340
5344
  },
5341
5345
  /**
5342
5346
  * **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.
@@ -5357,8 +5361,8 @@ const Va = function(l) {
5357
5361
  * @param {*} [options] Override http request option.
5358
5362
  * @throws {RequiredError}
5359
5363
  */
5360
- streamPackageEvents(a, n, o, s) {
5361
- return t.streamPackageEvents(a, n, o, s).then((c) => c(e, r));
5364
+ streamPackageEvents(a, n, s, o) {
5365
+ return t.streamPackageEvents(a, n, s, o).then((c) => c(e, r));
5362
5366
  }
5363
5367
  };
5364
5368
  };
@@ -5543,8 +5547,8 @@ const Pe = ie(void 0), Ia = (l, r) => {
5543
5547
  timeout: 6e5
5544
5548
  });
5545
5549
  t.interceptors.request.use(async (n) => {
5546
- const o = await r?.();
5547
- return n.headers.Authorization = o || "", n;
5550
+ const s = await r?.();
5551
+ return n.headers.Authorization = s || "", n;
5548
5552
  });
5549
5553
  const a = new ba({ basePath: e });
5550
5554
  return {
@@ -5575,16 +5579,16 @@ const Pe = ie(void 0), Ia = (l, r) => {
5575
5579
  theme: a,
5576
5580
  ui: n
5577
5581
  }) => {
5578
- const o = B(
5582
+ const s = B(
5579
5583
  () => Ia(e, r),
5580
5584
  [e, r]
5581
- ), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, c = ye({
5582
- queryKey: ["status", s],
5585
+ ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, c = ye({
5586
+ queryKey: ["status", o],
5583
5587
  // Retried, unlike the client's other reads: the model page depends on
5584
5588
  // the answer for the whole session, and one dropped request would
5585
5589
  // otherwise settle it.
5586
5590
  retry: 3,
5587
- queryFn: async () => (await o.publisher.getStatus()).data
5591
+ queryFn: async () => (await s.publisher.getStatus()).data
5588
5592
  });
5589
5593
  c.error && console.error("Failed to fetch publisher status:", c.error);
5590
5594
  const i = c.data?.frozenConfig, p = c.data?.theme, { modelPage: d, isLoadingStatus: h } = Oa(c);
@@ -5611,9 +5615,9 @@ const Pe = ie(void 0), Ia = (l, r) => {
5611
5615
  ),
5612
5616
  [p?.defaultMode, G, te]
5613
5617
  ), Se = {
5614
- server: s,
5618
+ server: o,
5615
5619
  getAccessToken: r,
5616
- apiClients: o,
5620
+ apiClients: s,
5617
5621
  mutable: k,
5618
5622
  isLoadingStatus: h,
5619
5623
  instanceTheme: p,