@malloy-publisher/sdk 0.0.203 → 0.0.205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/{ServerProvider-a1T2FnBE.es.js → ServerProvider-CV37_sr_.es.js} +972 -835
  2. package/dist/ServerProvider-Ci6NBOLe.cjs.js +1 -0
  3. package/dist/client/api.d.ts +143 -0
  4. package/dist/client/index.cjs.js +1 -1
  5. package/dist/client/index.es.js +31 -27
  6. package/dist/components/Materializations/CreateMaterializationDialog.d.ts +11 -0
  7. package/dist/components/Materializations/DeleteMaterializationDialog.d.ts +7 -0
  8. package/dist/components/Materializations/ManifestView.d.ts +14 -0
  9. package/dist/components/Materializations/MaterializationDetailDialog.d.ts +7 -0
  10. package/dist/components/Materializations/MaterializationRunsList.d.ts +11 -0
  11. package/dist/components/Materializations/Materializations.d.ts +7 -0
  12. package/dist/components/Materializations/index.d.ts +1 -0
  13. package/dist/components/Materializations/utils.d.ts +33 -0
  14. package/dist/components/Package/ContentTypeIcon.d.ts +3 -4
  15. package/dist/components/PageViewer/PageViewer.d.ts +17 -0
  16. package/dist/components/PageViewer/index.d.ts +1 -0
  17. package/dist/components/ServerProvider.d.ts +4 -1
  18. package/dist/components/given/GivenInput.d.ts +7 -0
  19. package/dist/components/given/utils.d.ts +17 -0
  20. package/dist/components/index.d.ts +2 -0
  21. package/dist/{core-GinK_1j5.cjs.js → core-BWQQVODR.cjs.js} +1 -1
  22. package/dist/{core-BPLlx5VM.es.js → core-C2sQrwVu.es.js} +1 -1
  23. package/dist/{index-BNOut93L.es.js → index-CBRWGN55.es.js} +11905 -10886
  24. package/dist/index-Dky6W6d1.cjs.js +235 -0
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +41 -39
  27. package/dist/utils/pageEmbed.d.ts +24 -0
  28. package/package.json +5 -5
  29. package/src/components/Materializations/CreateMaterializationDialog.tsx +123 -0
  30. package/src/components/Materializations/DeleteMaterializationDialog.tsx +91 -0
  31. package/src/components/Materializations/ManifestView.tsx +102 -0
  32. package/src/components/Materializations/MaterializationDetailDialog.tsx +204 -0
  33. package/src/components/Materializations/MaterializationRunsList.tsx +213 -0
  34. package/src/components/Materializations/Materializations.tsx +320 -0
  35. package/src/components/Materializations/index.ts +1 -0
  36. package/src/components/Materializations/utils.ts +98 -0
  37. package/src/components/Package/ContentTypeIcon.tsx +28 -4
  38. package/src/components/Package/Package.tsx +134 -5
  39. package/src/components/PageViewer/PageViewer.tsx +164 -0
  40. package/src/components/PageViewer/index.ts +1 -0
  41. package/src/components/ServerProvider.tsx +10 -0
  42. package/src/components/given/GivenInput.tsx +63 -15
  43. package/src/components/given/utils.spec.ts +57 -0
  44. package/src/components/given/utils.ts +76 -0
  45. package/src/components/index.ts +2 -0
  46. package/src/utils/pageEmbed.spec.ts +60 -0
  47. package/src/utils/pageEmbed.ts +46 -0
  48. package/dist/ServerProvider-F3zU218S.cjs.js +0 -1
  49. package/dist/index-B8kmVFxA.cjs.js +0 -234
@@ -1,59 +1,59 @@
1
1
  import { jsx as $ } from "react/jsx-runtime";
2
- import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
2
+ import { QueryClient as H, QueryClientProvider as f } from "@tanstack/react-query";
3
3
  import h from "axios";
4
- import { useContext as f, createContext as D, useMemo as W, useState as Q, useEffect as G } from "react";
4
+ import { useContext as D, createContext as W, useMemo as G, useState as Q, useEffect as _ } from "react";
5
5
  const u = "http://localhost/api/v0".replace(/\/+$/, "");
6
6
  class k {
7
- constructor(r, a = u, n = h) {
8
- this.basePath = a, this.axios = n, r && (this.configuration = r, this.basePath = r.basePath ?? a);
7
+ constructor(r, a = u, t = h) {
8
+ this.basePath = a, this.axios = t, r && (this.configuration = r, this.basePath = r.basePath ?? a);
9
9
  }
10
10
  configuration;
11
11
  }
12
- class _ extends Error {
12
+ class J extends Error {
13
13
  constructor(r, a) {
14
14
  super(a), this.field = r, this.name = "RequiredError";
15
15
  }
16
16
  }
17
- const g = {}, V = "https://example.com", m = function(l, r, a) {
17
+ const P = {}, g = "https://example.com", m = function(l, r, a) {
18
18
  if (a == null)
19
- throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
19
+ throw new J(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
20
20
  };
21
21
  function E(l, r, a = "") {
22
- r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((n) => E(l, n, a)) : Object.keys(r).forEach(
23
- (n) => E(l, r[n], `${a}${a !== "" ? "." : ""}${n}`)
22
+ r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((t) => E(l, t, a)) : Object.keys(r).forEach(
23
+ (t) => E(l, r[t], `${a}${a !== "" ? "." : ""}${t}`)
24
24
  ) : l.has(a) ? l.append(a, r) : l.set(a, r));
25
25
  }
26
- const v = function(l, ...r) {
26
+ const V = function(l, ...r) {
27
27
  const a = new URLSearchParams(l.search);
28
28
  E(a, r), l.search = a.toString();
29
29
  }, I = function(l, r, a) {
30
- const n = typeof l != "string";
31
- return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
- }, O = function(l) {
30
+ const t = typeof l != "string";
31
+ return (t && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
+ }, v = function(l) {
33
33
  return l.pathname + l.search + l.hash;
34
- }, b = function(l, r, a, n) {
35
- return (e = r, t = a) => {
36
- const o = { ...l.options, url: (e.defaults.baseURL ? "" : n?.basePath ?? t) + l.url };
34
+ }, O = function(l, r, a, t) {
35
+ return (e = r, n = a) => {
36
+ const o = { ...l.options, url: (e.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
37
37
  return e.request(o);
38
38
  };
39
- }, Se = {
39
+ }, Ae = {
40
40
  Bigquery: "bigquery",
41
41
  Snowflake: "snowflake",
42
42
  Postgres: "postgres",
43
43
  Gcs: "gcs",
44
44
  S3: "s3",
45
45
  Azure: "azure"
46
- }, Ie = {
46
+ }, xe = {
47
47
  ServicePrincipal: "service_principal",
48
48
  SasToken: "sas_token"
49
- }, ye = {
49
+ }, Ne = {
50
50
  Error: "error",
51
51
  Warn: "warn",
52
52
  Debug: "debug"
53
- }, ke = {
53
+ }, Re = {
54
54
  Success: "success",
55
55
  Error: "error"
56
- }, Ce = {
56
+ }, Ue = {
57
57
  Postgres: "postgres",
58
58
  Bigquery: "bigquery",
59
59
  Snowflake: "snowflake",
@@ -63,41 +63,41 @@ const v = function(l, ...r) {
63
63
  Duckdb: "duckdb",
64
64
  Motherduck: "motherduck",
65
65
  Ducklake: "ducklake"
66
- }, Ae = {
66
+ }, Te = {
67
67
  Ok: "ok",
68
68
  Failed: "failed"
69
- }, xe = {
69
+ }, we = {
70
70
  Embedded: "embedded",
71
71
  Materialized: "materialized"
72
- }, Ne = {
72
+ }, Me = {
73
73
  Equal: "equal",
74
74
  In: "in",
75
75
  Like: "like",
76
76
  GreaterThan: "greater_than",
77
77
  LessThan: "less_than"
78
- }, Re = {
78
+ }, Ee = {
79
79
  Debug: "debug",
80
80
  Info: "info",
81
81
  Warn: "warn",
82
82
  Error: "error"
83
- }, Ue = {
83
+ }, qe = {
84
84
  Pending: "PENDING",
85
85
  Running: "RUNNING",
86
86
  Success: "SUCCESS",
87
87
  Failed: "FAILED",
88
88
  Cancelled: "CANCELLED"
89
- }, Te = {
89
+ }, $e = {
90
90
  Markdown: "markdown",
91
91
  Code: "code"
92
- }, we = {
92
+ }, Qe = {
93
93
  Markdown: "markdown",
94
94
  Code: "code"
95
- }, Me = {
95
+ }, Be = {
96
96
  Initializing: "initializing",
97
97
  Serving: "serving",
98
98
  Draining: "draining",
99
99
  Throttled: "throttled"
100
- }, J = function(l) {
100
+ }, K = function(l) {
101
101
  return {
102
102
  /**
103
103
  * Creates a new database connection in the specified environment.
@@ -108,16 +108,16 @@ const v = function(l, ...r) {
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
110
  */
111
- createConnection: async (r, a, n, e = {}) => {
112
- m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", n);
113
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
111
+ createConnection: async (r, a, t, e = {}) => {
112
+ m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", t);
113
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
114
114
  let s;
115
115
  l && (s = l.baseOptions);
116
116
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
117
- i["Content-Type"] = "application/json", v(o, p);
117
+ i["Content-Type"] = "application/json", V(o, p);
118
118
  let d = s && s.headers ? s.headers : {};
119
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
120
- url: O(o),
119
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
120
+ url: v(o),
121
121
  options: c
122
122
  };
123
123
  },
@@ -129,16 +129,16 @@ const v = function(l, ...r) {
129
129
  * @param {*} [options] Override http request option.
130
130
  * @throws {RequiredError}
131
131
  */
132
- deleteConnection: async (r, a, n = {}) => {
132
+ deleteConnection: async (r, a, t = {}) => {
133
133
  m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", a);
134
- const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
134
+ const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, g);
135
135
  let o;
136
136
  l && (o = l.baseOptions);
137
- const s = { method: "DELETE", ...o, ...n }, c = {};
138
- v(t, {});
137
+ const s = { method: "DELETE", ...o, ...t }, c = {};
138
+ V(n, {});
139
139
  let p = o && o.headers ? o.headers : {};
140
- return s.headers = { ...c, ...p, ...n.headers }, {
141
- url: O(t),
140
+ return s.headers = { ...c, ...p, ...t.headers }, {
141
+ url: v(n),
142
142
  options: s
143
143
  };
144
144
  },
@@ -150,16 +150,16 @@ const v = function(l, ...r) {
150
150
  * @param {*} [options] Override http request option.
151
151
  * @throws {RequiredError}
152
152
  */
153
- getConnection: async (r, a, n = {}) => {
153
+ getConnection: async (r, a, t = {}) => {
154
154
  m("getConnection", "environmentName", r), m("getConnection", "connectionName", a);
155
- const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
155
+ const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, g);
156
156
  let o;
157
157
  l && (o = l.baseOptions);
158
- const s = { method: "GET", ...o, ...n }, c = {};
159
- v(t, {});
158
+ const s = { method: "GET", ...o, ...t }, c = {};
159
+ V(n, {});
160
160
  let p = o && o.headers ? o.headers : {};
161
- return s.headers = { ...c, ...p, ...n.headers }, {
162
- url: O(t),
161
+ return s.headers = { ...c, ...p, ...t.headers }, {
162
+ url: v(n),
163
163
  options: s
164
164
  };
165
165
  },
@@ -173,16 +173,16 @@ const v = function(l, ...r) {
173
173
  * @deprecated
174
174
  * @throws {RequiredError}
175
175
  */
176
- getSqlsource: async (r, a, n, e = {}) => {
176
+ getSqlsource: async (r, a, t, e = {}) => {
177
177
  m("getSqlsource", "environmentName", r), m("getSqlsource", "connectionName", a);
178
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
178
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
179
179
  let s;
180
180
  l && (s = l.baseOptions);
181
181
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
182
- n !== void 0 && (p.sqlStatement = n), v(o, p);
182
+ t !== void 0 && (p.sqlStatement = t), V(o, p);
183
183
  let d = s && s.headers ? s.headers : {};
184
184
  return c.headers = { ...i, ...d, ...e.headers }, {
185
- url: O(o),
185
+ url: v(o),
186
186
  options: c
187
187
  };
188
188
  },
@@ -197,16 +197,16 @@ const v = function(l, ...r) {
197
197
  * @deprecated
198
198
  * @throws {RequiredError}
199
199
  */
200
- getSqlsourceInPackage: async (r, a, n, e, t = {}) => {
201
- m("getSqlsourceInPackage", "environmentName", r), m("getSqlsourceInPackage", "packageName", a), m("getSqlsourceInPackage", "connectionName", n);
202
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
200
+ getSqlsourceInPackage: async (r, a, t, e, n = {}) => {
201
+ m("getSqlsourceInPackage", "environmentName", r), m("getSqlsourceInPackage", "packageName", a), m("getSqlsourceInPackage", "connectionName", t);
202
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
203
203
  let c;
204
204
  l && (c = l.baseOptions);
205
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
206
- e !== void 0 && (d.sqlStatement = e), v(s, d);
207
- let P = c && c.headers ? c.headers : {};
208
- return i.headers = { ...p, ...P, ...t.headers }, {
209
- url: O(s),
205
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
206
+ e !== void 0 && (d.sqlStatement = e), V(s, d);
207
+ let b = c && c.headers ? c.headers : {};
208
+ return i.headers = { ...p, ...b, ...n.headers }, {
209
+ url: v(s),
210
210
  options: i
211
211
  };
212
212
  },
@@ -220,16 +220,16 @@ const v = function(l, ...r) {
220
220
  * @param {*} [options] Override http request option.
221
221
  * @throws {RequiredError}
222
222
  */
223
- getTable: async (r, a, n, e, t = {}) => {
224
- m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", n), m("getTable", "tablePath", e);
225
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), s = new URL(o, V);
223
+ getTable: async (r, a, t, e, n = {}) => {
224
+ m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", t), m("getTable", "tablePath", e);
225
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(e))), s = new URL(o, g);
226
226
  let c;
227
227
  l && (c = l.baseOptions);
228
- const i = { method: "GET", ...c, ...t }, p = {};
229
- v(s, {});
230
- let P = c && c.headers ? c.headers : {};
231
- return i.headers = { ...p, ...P, ...t.headers }, {
232
- url: O(s),
228
+ const i = { method: "GET", ...c, ...n }, p = {};
229
+ V(s, {});
230
+ let b = c && c.headers ? c.headers : {};
231
+ return i.headers = { ...p, ...b, ...n.headers }, {
232
+ url: v(s),
233
233
  options: i
234
234
  };
235
235
  },
@@ -244,16 +244,16 @@ const v = function(l, ...r) {
244
244
  * @param {*} [options] Override http request option.
245
245
  * @throws {RequiredError}
246
246
  */
247
- getTableInPackage: async (r, a, n, e, t, o = {}) => {
248
- m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", n), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", t);
249
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, V);
247
+ getTableInPackage: async (r, a, t, e, n, o = {}) => {
248
+ m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", n);
249
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, g);
250
250
  let i;
251
251
  l && (i = l.baseOptions);
252
252
  const p = { method: "GET", ...i, ...o }, d = {};
253
- v(c, {});
253
+ V(c, {});
254
254
  let y = i && i.headers ? i.headers : {};
255
255
  return p.headers = { ...d, ...y, ...o.headers }, {
256
- url: O(c),
256
+ url: v(c),
257
257
  options: p
258
258
  };
259
259
  },
@@ -267,16 +267,16 @@ const v = function(l, ...r) {
267
267
  * @deprecated
268
268
  * @throws {RequiredError}
269
269
  */
270
- getTemporarytable: async (r, a, n, e = {}) => {
270
+ getTemporarytable: async (r, a, t, e = {}) => {
271
271
  m("getTemporarytable", "environmentName", r), m("getTemporarytable", "connectionName", a);
272
- const t = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
272
+ const n = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
273
273
  let s;
274
274
  l && (s = l.baseOptions);
275
275
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
276
- n !== void 0 && (p.sqlStatement = n), v(o, p);
276
+ t !== void 0 && (p.sqlStatement = t), V(o, p);
277
277
  let d = s && s.headers ? s.headers : {};
278
278
  return c.headers = { ...i, ...d, ...e.headers }, {
279
- url: O(o),
279
+ url: v(o),
280
280
  options: c
281
281
  };
282
282
  },
@@ -291,16 +291,16 @@ const v = function(l, ...r) {
291
291
  * @deprecated
292
292
  * @throws {RequiredError}
293
293
  */
294
- getTemporarytableInPackage: async (r, a, n, e, t = {}) => {
295
- m("getTemporarytableInPackage", "environmentName", r), m("getTemporarytableInPackage", "packageName", a), m("getTemporarytableInPackage", "connectionName", n);
296
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
294
+ getTemporarytableInPackage: async (r, a, t, e, n = {}) => {
295
+ m("getTemporarytableInPackage", "environmentName", r), m("getTemporarytableInPackage", "packageName", a), m("getTemporarytableInPackage", "connectionName", t);
296
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
297
297
  let c;
298
298
  l && (c = l.baseOptions);
299
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
300
- e !== void 0 && (d.sqlStatement = e), v(s, d);
301
- let P = c && c.headers ? c.headers : {};
302
- return i.headers = { ...p, ...P, ...t.headers }, {
303
- url: O(s),
299
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
300
+ e !== void 0 && (d.sqlStatement = e), V(s, d);
301
+ let b = c && c.headers ? c.headers : {};
302
+ return i.headers = { ...p, ...b, ...n.headers }, {
303
+ url: v(s),
304
304
  options: i
305
305
  };
306
306
  },
@@ -313,14 +313,14 @@ const v = function(l, ...r) {
313
313
  */
314
314
  listConnections: async (r, a = {}) => {
315
315
  m("listConnections", "environmentName", r);
316
- const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
317
- let t;
318
- l && (t = l.baseOptions);
319
- const o = { method: "GET", ...t, ...a }, s = {};
320
- v(e, {});
321
- let i = t && t.headers ? t.headers : {};
316
+ const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, g);
317
+ let n;
318
+ l && (n = l.baseOptions);
319
+ const o = { method: "GET", ...n, ...a }, s = {};
320
+ V(e, {});
321
+ let i = n && n.headers ? n.headers : {};
322
322
  return o.headers = { ...s, ...i, ...a.headers }, {
323
- url: O(e),
323
+ url: v(e),
324
324
  options: o
325
325
  };
326
326
  },
@@ -332,16 +332,16 @@ const v = function(l, ...r) {
332
332
  * @param {*} [options] Override http request option.
333
333
  * @throws {RequiredError}
334
334
  */
335
- listSchemas: async (r, a, n = {}) => {
335
+ listSchemas: async (r, a, t = {}) => {
336
336
  m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", a);
337
- const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
337
+ const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, g);
338
338
  let o;
339
339
  l && (o = l.baseOptions);
340
- const s = { method: "GET", ...o, ...n }, c = {};
341
- v(t, {});
340
+ const s = { method: "GET", ...o, ...t }, c = {};
341
+ V(n, {});
342
342
  let p = o && o.headers ? o.headers : {};
343
- return s.headers = { ...c, ...p, ...n.headers }, {
344
- url: O(t),
343
+ return s.headers = { ...c, ...p, ...t.headers }, {
344
+ url: v(n),
345
345
  options: s
346
346
  };
347
347
  },
@@ -354,16 +354,16 @@ const v = function(l, ...r) {
354
354
  * @param {*} [options] Override http request option.
355
355
  * @throws {RequiredError}
356
356
  */
357
- listSchemasInPackage: async (r, a, n, e = {}) => {
358
- m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", n);
359
- const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(t, V);
357
+ listSchemasInPackage: async (r, a, t, e = {}) => {
358
+ m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", t);
359
+ const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(n, g);
360
360
  let s;
361
361
  l && (s = l.baseOptions);
362
362
  const c = { method: "GET", ...s, ...e }, i = {};
363
- v(o, {});
363
+ V(o, {});
364
364
  let d = s && s.headers ? s.headers : {};
365
365
  return c.headers = { ...i, ...d, ...e.headers }, {
366
- url: O(o),
366
+ url: v(o),
367
367
  options: c
368
368
  };
369
369
  },
@@ -377,16 +377,16 @@ const v = function(l, ...r) {
377
377
  * @param {*} [options] Override http request option.
378
378
  * @throws {RequiredError}
379
379
  */
380
- listTables: async (r, a, n, e, t = {}) => {
381
- m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", n);
382
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(o, V);
380
+ listTables: async (r, a, t, e, n = {}) => {
381
+ m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", t);
382
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, g);
383
383
  let c;
384
384
  l && (c = l.baseOptions);
385
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
386
- e && (d.tableNames = e), v(s, d);
387
- let P = c && c.headers ? c.headers : {};
388
- return i.headers = { ...p, ...P, ...t.headers }, {
389
- url: O(s),
385
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
386
+ e && (d.tableNames = e), V(s, d);
387
+ let b = c && c.headers ? c.headers : {};
388
+ return i.headers = { ...p, ...b, ...n.headers }, {
389
+ url: v(s),
390
390
  options: i
391
391
  };
392
392
  },
@@ -401,16 +401,16 @@ const v = function(l, ...r) {
401
401
  * @param {*} [options] Override http request option.
402
402
  * @throws {RequiredError}
403
403
  */
404
- listTablesInPackage: async (r, a, n, e, t, o = {}) => {
405
- m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", n), m("listTablesInPackage", "schemaName", e);
406
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(s, V);
404
+ listTablesInPackage: async (r, a, t, e, n, o = {}) => {
405
+ m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", e);
406
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(s, g);
407
407
  let i;
408
408
  l && (i = l.baseOptions);
409
- const p = { method: "GET", ...i, ...o }, d = {}, P = {};
410
- t && (P.tableNames = t), v(c, P);
409
+ const p = { method: "GET", ...i, ...o }, d = {}, b = {};
410
+ n && (b.tableNames = n), V(c, b);
411
411
  let y = i && i.headers ? i.headers : {};
412
412
  return p.headers = { ...d, ...y, ...o.headers }, {
413
- url: O(c),
413
+ url: v(c),
414
414
  options: p
415
415
  };
416
416
  },
@@ -424,16 +424,16 @@ const v = function(l, ...r) {
424
424
  * @param {*} [options] Override http request option.
425
425
  * @throws {RequiredError}
426
426
  */
427
- postQuerydata: async (r, a, n, e, t = {}) => {
428
- m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", n);
429
- const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
427
+ postQuerydata: async (r, a, t, e, n = {}) => {
428
+ m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", t);
429
+ const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, g);
430
430
  let c;
431
431
  l && (c = l.baseOptions);
432
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
433
- e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", v(s, d);
434
- let P = c && c.headers ? c.headers : {};
435
- return i.headers = { ...p, ...P, ...t.headers }, i.data = I(n, i, l), {
436
- url: O(s),
432
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
433
+ e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", V(s, d);
434
+ let b = c && c.headers ? c.headers : {};
435
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(t, i, l), {
436
+ url: v(s),
437
437
  options: i
438
438
  };
439
439
  },
@@ -448,16 +448,16 @@ const v = function(l, ...r) {
448
448
  * @param {*} [options] Override http request option.
449
449
  * @throws {RequiredError}
450
450
  */
451
- postQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
452
- m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", n), m("postQuerydataInPackage", "postQuerydataRequest", e);
453
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(s, V);
451
+ postQuerydataInPackage: async (r, a, t, e, n, o = {}) => {
452
+ m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", e);
453
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, g);
454
454
  let i;
455
455
  l && (i = l.baseOptions);
456
- const p = { method: "POST", ...i, ...o }, d = {}, P = {};
457
- t !== void 0 && (P.options = t), d["Content-Type"] = "application/json", v(c, P);
456
+ const p = { method: "POST", ...i, ...o }, d = {}, b = {};
457
+ n !== void 0 && (b.options = n), d["Content-Type"] = "application/json", V(c, b);
458
458
  let y = i && i.headers ? i.headers : {};
459
459
  return p.headers = { ...d, ...y, ...o.headers }, p.data = I(e, p, l), {
460
- url: O(c),
460
+ url: v(c),
461
461
  options: p
462
462
  };
463
463
  },
@@ -470,16 +470,16 @@ const v = function(l, ...r) {
470
470
  * @param {*} [options] Override http request option.
471
471
  * @throws {RequiredError}
472
472
  */
473
- postSqlsource: async (r, a, n, e = {}) => {
474
- m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", n);
475
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
473
+ postSqlsource: async (r, a, t, e = {}) => {
474
+ m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", t);
475
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
476
476
  let s;
477
477
  l && (s = l.baseOptions);
478
478
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
479
- i["Content-Type"] = "application/json", v(o, p);
479
+ i["Content-Type"] = "application/json", V(o, p);
480
480
  let d = s && s.headers ? s.headers : {};
481
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
482
- url: O(o),
481
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
482
+ url: v(o),
483
483
  options: c
484
484
  };
485
485
  },
@@ -493,16 +493,16 @@ const v = function(l, ...r) {
493
493
  * @param {*} [options] Override http request option.
494
494
  * @throws {RequiredError}
495
495
  */
496
- postSqlsourceInPackage: async (r, a, n, e, t = {}) => {
497
- m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", n), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
498
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
496
+ postSqlsourceInPackage: async (r, a, t, e, n = {}) => {
497
+ m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
498
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
499
499
  let c;
500
500
  l && (c = l.baseOptions);
501
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
502
- p["Content-Type"] = "application/json", v(s, d);
503
- let P = c && c.headers ? c.headers : {};
504
- return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
505
- url: O(s),
501
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
502
+ p["Content-Type"] = "application/json", V(s, d);
503
+ let b = c && c.headers ? c.headers : {};
504
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
505
+ url: v(s),
506
506
  options: i
507
507
  };
508
508
  },
@@ -515,16 +515,16 @@ const v = function(l, ...r) {
515
515
  * @param {*} [options] Override http request option.
516
516
  * @throws {RequiredError}
517
517
  */
518
- postTemporarytable: async (r, a, n, e = {}) => {
519
- m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", n);
520
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
518
+ postTemporarytable: async (r, a, t, e = {}) => {
519
+ m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", t);
520
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
521
521
  let s;
522
522
  l && (s = l.baseOptions);
523
523
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
524
- i["Content-Type"] = "application/json", v(o, p);
524
+ i["Content-Type"] = "application/json", V(o, p);
525
525
  let d = s && s.headers ? s.headers : {};
526
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
527
- url: O(o),
526
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
527
+ url: v(o),
528
528
  options: c
529
529
  };
530
530
  },
@@ -538,16 +538,16 @@ const v = function(l, ...r) {
538
538
  * @param {*} [options] Override http request option.
539
539
  * @throws {RequiredError}
540
540
  */
541
- postTemporarytableInPackage: async (r, a, n, e, t = {}) => {
542
- m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", n), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
543
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
541
+ postTemporarytableInPackage: async (r, a, t, e, n = {}) => {
542
+ m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
543
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
544
544
  let c;
545
545
  l && (c = l.baseOptions);
546
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
547
- p["Content-Type"] = "application/json", v(s, d);
548
- let P = c && c.headers ? c.headers : {};
549
- return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
550
- url: O(s),
546
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
547
+ p["Content-Type"] = "application/json", V(s, d);
548
+ let b = c && c.headers ? c.headers : {};
549
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
550
+ url: v(s),
551
551
  options: i
552
552
  };
553
553
  },
@@ -560,22 +560,22 @@ const v = function(l, ...r) {
560
560
  * @param {*} [options] Override http request option.
561
561
  * @throws {RequiredError}
562
562
  */
563
- updateConnection: async (r, a, n, e = {}) => {
564
- m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", n);
565
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
563
+ updateConnection: async (r, a, t, e = {}) => {
564
+ m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", t);
565
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
566
566
  let s;
567
567
  l && (s = l.baseOptions);
568
568
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
569
- i["Content-Type"] = "application/json", v(o, p);
569
+ i["Content-Type"] = "application/json", V(o, p);
570
570
  let d = s && s.headers ? s.headers : {};
571
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
572
- url: O(o),
571
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
572
+ url: v(o),
573
573
  options: c
574
574
  };
575
575
  }
576
576
  };
577
577
  }, S = function(l) {
578
- const r = J(l);
578
+ const r = K(l);
579
579
  return {
580
580
  /**
581
581
  * Creates a new database connection in the specified environment.
@@ -586,9 +586,9 @@ const v = function(l, ...r) {
586
586
  * @param {*} [options] Override http request option.
587
587
  * @throws {RequiredError}
588
588
  */
589
- async createConnection(a, n, e, t) {
590
- const o = await r.createConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
591
- return (i, p) => b(o, h, u, l)(i, c || p);
589
+ async createConnection(a, t, e, n) {
590
+ const o = await r.createConnection(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
591
+ return (i, p) => O(o, h, u, l)(i, c || p);
592
592
  },
593
593
  /**
594
594
  * Permanently deletes a database connection from the environment.
@@ -598,9 +598,9 @@ const v = function(l, ...r) {
598
598
  * @param {*} [options] Override http request option.
599
599
  * @throws {RequiredError}
600
600
  */
601
- async deleteConnection(a, n, e) {
602
- const t = await r.deleteConnection(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
603
- return (c, i) => b(t, h, u, l)(c, s || i);
601
+ async deleteConnection(a, t, e) {
602
+ const n = await r.deleteConnection(a, t, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
603
+ return (c, i) => O(n, h, u, l)(c, s || i);
604
604
  },
605
605
  /**
606
606
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -610,9 +610,9 @@ const v = function(l, ...r) {
610
610
  * @param {*} [options] Override http request option.
611
611
  * @throws {RequiredError}
612
612
  */
613
- async getConnection(a, n, e) {
614
- const t = await r.getConnection(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
615
- return (c, i) => b(t, h, u, l)(c, s || i);
613
+ async getConnection(a, t, e) {
614
+ const n = await r.getConnection(a, t, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
615
+ return (c, i) => O(n, h, u, l)(c, s || i);
616
616
  },
617
617
  /**
618
618
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -624,9 +624,9 @@ const v = function(l, ...r) {
624
624
  * @deprecated
625
625
  * @throws {RequiredError}
626
626
  */
627
- async getSqlsource(a, n, e, t) {
628
- const o = await r.getSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getSqlsource"]?.[s]?.url;
629
- return (i, p) => b(o, h, u, l)(i, c || p);
627
+ async getSqlsource(a, t, e, n) {
628
+ const o = await r.getSqlsource(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getSqlsource"]?.[s]?.url;
629
+ return (i, p) => O(o, h, u, l)(i, c || p);
630
630
  },
631
631
  /**
632
632
  * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -639,9 +639,9 @@ const v = function(l, ...r) {
639
639
  * @deprecated
640
640
  * @throws {RequiredError}
641
641
  */
642
- async getSqlsourceInPackage(a, n, e, t, o) {
643
- const s = await r.getSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
644
- return (p, d) => b(s, h, u, l)(p, i || d);
642
+ async getSqlsourceInPackage(a, t, e, n, o) {
643
+ const s = await r.getSqlsourceInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
644
+ return (p, d) => O(s, h, u, l)(p, i || d);
645
645
  },
646
646
  /**
647
647
  * 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.
@@ -653,9 +653,9 @@ const v = function(l, ...r) {
653
653
  * @param {*} [options] Override http request option.
654
654
  * @throws {RequiredError}
655
655
  */
656
- async getTable(a, n, e, t, o) {
657
- const s = await r.getTable(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
658
- return (p, d) => b(s, h, u, l)(p, i || d);
656
+ async getTable(a, t, e, n, o) {
657
+ const s = await r.getTable(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
658
+ return (p, d) => O(s, h, u, l)(p, i || d);
659
659
  },
660
660
  /**
661
661
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -668,9 +668,9 @@ const v = function(l, ...r) {
668
668
  * @param {*} [options] Override http request option.
669
669
  * @throws {RequiredError}
670
670
  */
671
- async getTableInPackage(a, n, e, t, o, s) {
672
- const c = await r.getTableInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
673
- return (d, P) => b(c, h, u, l)(d, p || P);
671
+ async getTableInPackage(a, t, e, n, o, s) {
672
+ const c = await r.getTableInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
673
+ return (d, b) => O(c, h, u, l)(d, p || b);
674
674
  },
675
675
  /**
676
676
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -682,9 +682,9 @@ const v = function(l, ...r) {
682
682
  * @deprecated
683
683
  * @throws {RequiredError}
684
684
  */
685
- async getTemporarytable(a, n, e, t) {
686
- const o = await r.getTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getTemporarytable"]?.[s]?.url;
687
- return (i, p) => b(o, h, u, l)(i, c || p);
685
+ async getTemporarytable(a, t, e, n) {
686
+ const o = await r.getTemporarytable(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getTemporarytable"]?.[s]?.url;
687
+ return (i, p) => O(o, h, u, l)(i, c || p);
688
688
  },
689
689
  /**
690
690
  * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -697,9 +697,9 @@ const v = function(l, ...r) {
697
697
  * @deprecated
698
698
  * @throws {RequiredError}
699
699
  */
700
- async getTemporarytableInPackage(a, n, e, t, o) {
701
- const s = await r.getTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
702
- return (p, d) => b(s, h, u, l)(p, i || d);
700
+ async getTemporarytableInPackage(a, t, e, n, o) {
701
+ const s = await r.getTemporarytableInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
702
+ return (p, d) => O(s, h, u, l)(p, i || d);
703
703
  },
704
704
  /**
705
705
  * 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.
@@ -708,9 +708,9 @@ const v = function(l, ...r) {
708
708
  * @param {*} [options] Override http request option.
709
709
  * @throws {RequiredError}
710
710
  */
711
- async listConnections(a, n) {
712
- const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[t]?.url;
713
- return (s, c) => b(e, h, u, l)(s, o || c);
711
+ async listConnections(a, t) {
712
+ const e = await r.listConnections(a, t), n = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[n]?.url;
713
+ return (s, c) => O(e, h, u, l)(s, o || c);
714
714
  },
715
715
  /**
716
716
  * 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.
@@ -720,9 +720,9 @@ const v = function(l, ...r) {
720
720
  * @param {*} [options] Override http request option.
721
721
  * @throws {RequiredError}
722
722
  */
723
- async listSchemas(a, n, e) {
724
- const t = await r.listSchemas(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
725
- return (c, i) => b(t, h, u, l)(c, s || i);
723
+ async listSchemas(a, t, e) {
724
+ const n = await r.listSchemas(a, t, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
725
+ return (c, i) => O(n, h, u, l)(c, s || i);
726
726
  },
727
727
  /**
728
728
  * 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).
@@ -733,9 +733,9 @@ const v = function(l, ...r) {
733
733
  * @param {*} [options] Override http request option.
734
734
  * @throws {RequiredError}
735
735
  */
736
- async listSchemasInPackage(a, n, e, t) {
737
- const o = await r.listSchemasInPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
738
- return (i, p) => b(o, h, u, l)(i, c || p);
736
+ async listSchemasInPackage(a, t, e, n) {
737
+ const o = await r.listSchemasInPackage(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
738
+ return (i, p) => O(o, h, u, l)(i, c || p);
739
739
  },
740
740
  /**
741
741
  * 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.
@@ -747,9 +747,9 @@ const v = function(l, ...r) {
747
747
  * @param {*} [options] Override http request option.
748
748
  * @throws {RequiredError}
749
749
  */
750
- async listTables(a, n, e, t, o) {
751
- const s = await r.listTables(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
752
- return (p, d) => b(s, h, u, l)(p, i || d);
750
+ async listTables(a, t, e, n, o) {
751
+ const s = await r.listTables(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
752
+ return (p, d) => O(s, h, u, l)(p, i || d);
753
753
  },
754
754
  /**
755
755
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -762,9 +762,9 @@ const v = function(l, ...r) {
762
762
  * @param {*} [options] Override http request option.
763
763
  * @throws {RequiredError}
764
764
  */
765
- async listTablesInPackage(a, n, e, t, o, s) {
766
- const c = await r.listTablesInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
767
- return (d, P) => b(c, h, u, l)(d, p || P);
765
+ async listTablesInPackage(a, t, e, n, o, s) {
766
+ const c = await r.listTablesInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
767
+ return (d, b) => O(c, h, u, l)(d, p || b);
768
768
  },
769
769
  /**
770
770
  * 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.
@@ -776,9 +776,9 @@ const v = function(l, ...r) {
776
776
  * @param {*} [options] Override http request option.
777
777
  * @throws {RequiredError}
778
778
  */
779
- async postQuerydata(a, n, e, t, o) {
780
- const s = await r.postQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydata"]?.[c]?.url;
781
- return (p, d) => b(s, h, u, l)(p, i || d);
779
+ async postQuerydata(a, t, e, n, o) {
780
+ const s = await r.postQuerydata(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[c]?.url;
781
+ return (p, d) => O(s, h, u, l)(p, i || d);
782
782
  },
783
783
  /**
784
784
  * 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.
@@ -791,9 +791,9 @@ const v = function(l, ...r) {
791
791
  * @param {*} [options] Override http request option.
792
792
  * @throws {RequiredError}
793
793
  */
794
- async postQuerydataInPackage(a, n, e, t, o, s) {
795
- const c = await r.postQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
796
- return (d, P) => b(c, h, u, l)(d, p || P);
794
+ async postQuerydataInPackage(a, t, e, n, o, s) {
795
+ const c = await r.postQuerydataInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
796
+ return (d, b) => O(c, h, u, l)(d, p || b);
797
797
  },
798
798
  /**
799
799
  * 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.
@@ -804,9 +804,9 @@ const v = function(l, ...r) {
804
804
  * @param {*} [options] Override http request option.
805
805
  * @throws {RequiredError}
806
806
  */
807
- async postSqlsource(a, n, e, t) {
808
- const o = await r.postSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
809
- return (i, p) => b(o, h, u, l)(i, c || p);
807
+ async postSqlsource(a, t, e, n) {
808
+ const o = await r.postSqlsource(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
809
+ return (i, p) => O(o, h, u, l)(i, c || p);
810
810
  },
811
811
  /**
812
812
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -818,9 +818,9 @@ const v = function(l, ...r) {
818
818
  * @param {*} [options] Override http request option.
819
819
  * @throws {RequiredError}
820
820
  */
821
- async postSqlsourceInPackage(a, n, e, t, o) {
822
- const s = await r.postSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
823
- return (p, d) => b(s, h, u, l)(p, i || d);
821
+ async postSqlsourceInPackage(a, t, e, n, o) {
822
+ const s = await r.postSqlsourceInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
823
+ return (p, d) => O(s, h, u, l)(p, i || d);
824
824
  },
825
825
  /**
826
826
  * 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.
@@ -831,9 +831,9 @@ const v = function(l, ...r) {
831
831
  * @param {*} [options] Override http request option.
832
832
  * @throws {RequiredError}
833
833
  */
834
- async postTemporarytable(a, n, e, t) {
835
- const o = await r.postTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
836
- return (i, p) => b(o, h, u, l)(i, c || p);
834
+ async postTemporarytable(a, t, e, n) {
835
+ const o = await r.postTemporarytable(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
836
+ return (i, p) => O(o, h, u, l)(i, c || p);
837
837
  },
838
838
  /**
839
839
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -845,9 +845,9 @@ const v = function(l, ...r) {
845
845
  * @param {*} [options] Override http request option.
846
846
  * @throws {RequiredError}
847
847
  */
848
- async postTemporarytableInPackage(a, n, e, t, o) {
849
- const s = await r.postTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
850
- return (p, d) => b(s, h, u, l)(p, i || d);
848
+ async postTemporarytableInPackage(a, t, e, n, o) {
849
+ const s = await r.postTemporarytableInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
850
+ return (p, d) => O(s, h, u, l)(p, i || d);
851
851
  },
852
852
  /**
853
853
  * Updates the configuration of an existing database connection.
@@ -858,13 +858,13 @@ const v = function(l, ...r) {
858
858
  * @param {*} [options] Override http request option.
859
859
  * @throws {RequiredError}
860
860
  */
861
- async updateConnection(a, n, e, t) {
862
- const o = await r.updateConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
863
- return (i, p) => b(o, h, u, l)(i, c || p);
861
+ async updateConnection(a, t, e, n) {
862
+ const o = await r.updateConnection(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
863
+ return (i, p) => O(o, h, u, l)(i, c || p);
864
864
  }
865
865
  };
866
- }, Ee = function(l, r, a) {
867
- const n = S(l);
866
+ }, Fe = function(l, r, a) {
867
+ const t = S(l);
868
868
  return {
869
869
  /**
870
870
  * Creates a new database connection in the specified environment.
@@ -875,8 +875,8 @@ const v = function(l, ...r) {
875
875
  * @param {*} [options] Override http request option.
876
876
  * @throws {RequiredError}
877
877
  */
878
- createConnection(e, t, o, s) {
879
- return n.createConnection(e, t, o, s).then((c) => c(a, r));
878
+ createConnection(e, n, o, s) {
879
+ return t.createConnection(e, n, o, s).then((c) => c(a, r));
880
880
  },
881
881
  /**
882
882
  * Permanently deletes a database connection from the environment.
@@ -886,8 +886,8 @@ const v = function(l, ...r) {
886
886
  * @param {*} [options] Override http request option.
887
887
  * @throws {RequiredError}
888
888
  */
889
- deleteConnection(e, t, o) {
890
- return n.deleteConnection(e, t, o).then((s) => s(a, r));
889
+ deleteConnection(e, n, o) {
890
+ return t.deleteConnection(e, n, o).then((s) => s(a, r));
891
891
  },
892
892
  /**
893
893
  * 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.
@@ -897,8 +897,8 @@ const v = function(l, ...r) {
897
897
  * @param {*} [options] Override http request option.
898
898
  * @throws {RequiredError}
899
899
  */
900
- getConnection(e, t, o) {
901
- return n.getConnection(e, t, o).then((s) => s(a, r));
900
+ getConnection(e, n, o) {
901
+ return t.getConnection(e, n, o).then((s) => s(a, r));
902
902
  },
903
903
  /**
904
904
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -910,8 +910,8 @@ const v = function(l, ...r) {
910
910
  * @deprecated
911
911
  * @throws {RequiredError}
912
912
  */
913
- getSqlsource(e, t, o, s) {
914
- return n.getSqlsource(e, t, o, s).then((c) => c(a, r));
913
+ getSqlsource(e, n, o, s) {
914
+ return t.getSqlsource(e, n, o, s).then((c) => c(a, r));
915
915
  },
916
916
  /**
917
917
  * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -924,8 +924,8 @@ const v = function(l, ...r) {
924
924
  * @deprecated
925
925
  * @throws {RequiredError}
926
926
  */
927
- getSqlsourceInPackage(e, t, o, s, c) {
928
- return n.getSqlsourceInPackage(e, t, o, s, c).then((i) => i(a, r));
927
+ getSqlsourceInPackage(e, n, o, s, c) {
928
+ return t.getSqlsourceInPackage(e, n, o, s, c).then((i) => i(a, r));
929
929
  },
930
930
  /**
931
931
  * 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.
@@ -937,8 +937,8 @@ const v = function(l, ...r) {
937
937
  * @param {*} [options] Override http request option.
938
938
  * @throws {RequiredError}
939
939
  */
940
- getTable(e, t, o, s, c) {
941
- return n.getTable(e, t, o, s, c).then((i) => i(a, r));
940
+ getTable(e, n, o, s, c) {
941
+ return t.getTable(e, n, o, s, c).then((i) => i(a, r));
942
942
  },
943
943
  /**
944
944
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -951,8 +951,8 @@ const v = function(l, ...r) {
951
951
  * @param {*} [options] Override http request option.
952
952
  * @throws {RequiredError}
953
953
  */
954
- getTableInPackage(e, t, o, s, c, i) {
955
- return n.getTableInPackage(e, t, o, s, c, i).then((p) => p(a, r));
954
+ getTableInPackage(e, n, o, s, c, i) {
955
+ return t.getTableInPackage(e, n, o, s, c, i).then((p) => p(a, r));
956
956
  },
957
957
  /**
958
958
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -964,8 +964,8 @@ const v = function(l, ...r) {
964
964
  * @deprecated
965
965
  * @throws {RequiredError}
966
966
  */
967
- getTemporarytable(e, t, o, s) {
968
- return n.getTemporarytable(e, t, o, s).then((c) => c(a, r));
967
+ getTemporarytable(e, n, o, s) {
968
+ return t.getTemporarytable(e, n, o, s).then((c) => c(a, r));
969
969
  },
970
970
  /**
971
971
  * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -978,8 +978,8 @@ const v = function(l, ...r) {
978
978
  * @deprecated
979
979
  * @throws {RequiredError}
980
980
  */
981
- getTemporarytableInPackage(e, t, o, s, c) {
982
- return n.getTemporarytableInPackage(e, t, o, s, c).then((i) => i(a, r));
981
+ getTemporarytableInPackage(e, n, o, s, c) {
982
+ return t.getTemporarytableInPackage(e, n, o, s, c).then((i) => i(a, r));
983
983
  },
984
984
  /**
985
985
  * 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.
@@ -988,8 +988,8 @@ const v = function(l, ...r) {
988
988
  * @param {*} [options] Override http request option.
989
989
  * @throws {RequiredError}
990
990
  */
991
- listConnections(e, t) {
992
- return n.listConnections(e, t).then((o) => o(a, r));
991
+ listConnections(e, n) {
992
+ return t.listConnections(e, n).then((o) => o(a, r));
993
993
  },
994
994
  /**
995
995
  * 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.
@@ -999,8 +999,8 @@ const v = function(l, ...r) {
999
999
  * @param {*} [options] Override http request option.
1000
1000
  * @throws {RequiredError}
1001
1001
  */
1002
- listSchemas(e, t, o) {
1003
- return n.listSchemas(e, t, o).then((s) => s(a, r));
1002
+ listSchemas(e, n, o) {
1003
+ return t.listSchemas(e, n, o).then((s) => s(a, r));
1004
1004
  },
1005
1005
  /**
1006
1006
  * 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).
@@ -1011,8 +1011,8 @@ const v = function(l, ...r) {
1011
1011
  * @param {*} [options] Override http request option.
1012
1012
  * @throws {RequiredError}
1013
1013
  */
1014
- listSchemasInPackage(e, t, o, s) {
1015
- return n.listSchemasInPackage(e, t, o, s).then((c) => c(a, r));
1014
+ listSchemasInPackage(e, n, o, s) {
1015
+ return t.listSchemasInPackage(e, n, o, s).then((c) => c(a, r));
1016
1016
  },
1017
1017
  /**
1018
1018
  * 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.
@@ -1024,8 +1024,8 @@ const v = function(l, ...r) {
1024
1024
  * @param {*} [options] Override http request option.
1025
1025
  * @throws {RequiredError}
1026
1026
  */
1027
- listTables(e, t, o, s, c) {
1028
- return n.listTables(e, t, o, s, c).then((i) => i(a, r));
1027
+ listTables(e, n, o, s, c) {
1028
+ return t.listTables(e, n, o, s, c).then((i) => i(a, r));
1029
1029
  },
1030
1030
  /**
1031
1031
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1038,8 +1038,8 @@ const v = function(l, ...r) {
1038
1038
  * @param {*} [options] Override http request option.
1039
1039
  * @throws {RequiredError}
1040
1040
  */
1041
- listTablesInPackage(e, t, o, s, c, i) {
1042
- return n.listTablesInPackage(e, t, o, s, c, i).then((p) => p(a, r));
1041
+ listTablesInPackage(e, n, o, s, c, i) {
1042
+ return t.listTablesInPackage(e, n, o, s, c, i).then((p) => p(a, r));
1043
1043
  },
1044
1044
  /**
1045
1045
  * 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.
@@ -1051,8 +1051,8 @@ const v = function(l, ...r) {
1051
1051
  * @param {*} [options] Override http request option.
1052
1052
  * @throws {RequiredError}
1053
1053
  */
1054
- postQuerydata(e, t, o, s, c) {
1055
- return n.postQuerydata(e, t, o, s, c).then((i) => i(a, r));
1054
+ postQuerydata(e, n, o, s, c) {
1055
+ return t.postQuerydata(e, n, o, s, c).then((i) => i(a, r));
1056
1056
  },
1057
1057
  /**
1058
1058
  * 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.
@@ -1065,8 +1065,8 @@ const v = function(l, ...r) {
1065
1065
  * @param {*} [options] Override http request option.
1066
1066
  * @throws {RequiredError}
1067
1067
  */
1068
- postQuerydataInPackage(e, t, o, s, c, i) {
1069
- return n.postQuerydataInPackage(e, t, o, s, c, i).then((p) => p(a, r));
1068
+ postQuerydataInPackage(e, n, o, s, c, i) {
1069
+ return t.postQuerydataInPackage(e, n, o, s, c, i).then((p) => p(a, r));
1070
1070
  },
1071
1071
  /**
1072
1072
  * 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.
@@ -1077,8 +1077,8 @@ const v = function(l, ...r) {
1077
1077
  * @param {*} [options] Override http request option.
1078
1078
  * @throws {RequiredError}
1079
1079
  */
1080
- postSqlsource(e, t, o, s) {
1081
- return n.postSqlsource(e, t, o, s).then((c) => c(a, r));
1080
+ postSqlsource(e, n, o, s) {
1081
+ return t.postSqlsource(e, n, o, s).then((c) => c(a, r));
1082
1082
  },
1083
1083
  /**
1084
1084
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1090,8 +1090,8 @@ const v = function(l, ...r) {
1090
1090
  * @param {*} [options] Override http request option.
1091
1091
  * @throws {RequiredError}
1092
1092
  */
1093
- postSqlsourceInPackage(e, t, o, s, c) {
1094
- return n.postSqlsourceInPackage(e, t, o, s, c).then((i) => i(a, r));
1093
+ postSqlsourceInPackage(e, n, o, s, c) {
1094
+ return t.postSqlsourceInPackage(e, n, o, s, c).then((i) => i(a, r));
1095
1095
  },
1096
1096
  /**
1097
1097
  * 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.
@@ -1102,8 +1102,8 @@ const v = function(l, ...r) {
1102
1102
  * @param {*} [options] Override http request option.
1103
1103
  * @throws {RequiredError}
1104
1104
  */
1105
- postTemporarytable(e, t, o, s) {
1106
- return n.postTemporarytable(e, t, o, s).then((c) => c(a, r));
1105
+ postTemporarytable(e, n, o, s) {
1106
+ return t.postTemporarytable(e, n, o, s).then((c) => c(a, r));
1107
1107
  },
1108
1108
  /**
1109
1109
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1115,8 +1115,8 @@ const v = function(l, ...r) {
1115
1115
  * @param {*} [options] Override http request option.
1116
1116
  * @throws {RequiredError}
1117
1117
  */
1118
- postTemporarytableInPackage(e, t, o, s, c) {
1119
- return n.postTemporarytableInPackage(e, t, o, s, c).then((i) => i(a, r));
1118
+ postTemporarytableInPackage(e, n, o, s, c) {
1119
+ return t.postTemporarytableInPackage(e, n, o, s, c).then((i) => i(a, r));
1120
1120
  },
1121
1121
  /**
1122
1122
  * Updates the configuration of an existing database connection.
@@ -1127,12 +1127,12 @@ const v = function(l, ...r) {
1127
1127
  * @param {*} [options] Override http request option.
1128
1128
  * @throws {RequiredError}
1129
1129
  */
1130
- updateConnection(e, t, o, s) {
1131
- return n.updateConnection(e, t, o, s).then((c) => c(a, r));
1130
+ updateConnection(e, n, o, s) {
1131
+ return t.updateConnection(e, n, o, s).then((c) => c(a, r));
1132
1132
  }
1133
1133
  };
1134
1134
  };
1135
- class K extends k {
1135
+ class Y extends k {
1136
1136
  /**
1137
1137
  * Creates a new database connection in the specified environment.
1138
1138
  * @summary Create a new database connection
@@ -1143,8 +1143,8 @@ class K extends k {
1143
1143
  * @throws {RequiredError}
1144
1144
  * @memberof ConnectionsApi
1145
1145
  */
1146
- createConnection(r, a, n, e) {
1147
- return S(this.configuration).createConnection(r, a, n, e).then((t) => t(this.axios, this.basePath));
1146
+ createConnection(r, a, t, e) {
1147
+ return S(this.configuration).createConnection(r, a, t, e).then((n) => n(this.axios, this.basePath));
1148
1148
  }
1149
1149
  /**
1150
1150
  * Permanently deletes a database connection from the environment.
@@ -1155,8 +1155,8 @@ class K extends k {
1155
1155
  * @throws {RequiredError}
1156
1156
  * @memberof ConnectionsApi
1157
1157
  */
1158
- deleteConnection(r, a, n) {
1159
- return S(this.configuration).deleteConnection(r, a, n).then((e) => e(this.axios, this.basePath));
1158
+ deleteConnection(r, a, t) {
1159
+ return S(this.configuration).deleteConnection(r, a, t).then((e) => e(this.axios, this.basePath));
1160
1160
  }
1161
1161
  /**
1162
1162
  * 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.
@@ -1167,8 +1167,8 @@ class K extends k {
1167
1167
  * @throws {RequiredError}
1168
1168
  * @memberof ConnectionsApi
1169
1169
  */
1170
- getConnection(r, a, n) {
1171
- return S(this.configuration).getConnection(r, a, n).then((e) => e(this.axios, this.basePath));
1170
+ getConnection(r, a, t) {
1171
+ return S(this.configuration).getConnection(r, a, t).then((e) => e(this.axios, this.basePath));
1172
1172
  }
1173
1173
  /**
1174
1174
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -1181,8 +1181,8 @@ class K extends k {
1181
1181
  * @throws {RequiredError}
1182
1182
  * @memberof ConnectionsApi
1183
1183
  */
1184
- getSqlsource(r, a, n, e) {
1185
- return S(this.configuration).getSqlsource(r, a, n, e).then((t) => t(this.axios, this.basePath));
1184
+ getSqlsource(r, a, t, e) {
1185
+ return S(this.configuration).getSqlsource(r, a, t, e).then((n) => n(this.axios, this.basePath));
1186
1186
  }
1187
1187
  /**
1188
1188
  * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1196,8 +1196,8 @@ class K extends k {
1196
1196
  * @throws {RequiredError}
1197
1197
  * @memberof ConnectionsApi
1198
1198
  */
1199
- getSqlsourceInPackage(r, a, n, e, t) {
1200
- return S(this.configuration).getSqlsourceInPackage(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1199
+ getSqlsourceInPackage(r, a, t, e, n) {
1200
+ return S(this.configuration).getSqlsourceInPackage(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
1201
1201
  }
1202
1202
  /**
1203
1203
  * 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.
@@ -1210,8 +1210,8 @@ class K extends k {
1210
1210
  * @throws {RequiredError}
1211
1211
  * @memberof ConnectionsApi
1212
1212
  */
1213
- getTable(r, a, n, e, t) {
1214
- return S(this.configuration).getTable(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1213
+ getTable(r, a, t, e, n) {
1214
+ return S(this.configuration).getTable(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
1215
1215
  }
1216
1216
  /**
1217
1217
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1225,8 +1225,8 @@ class K extends k {
1225
1225
  * @throws {RequiredError}
1226
1226
  * @memberof ConnectionsApi
1227
1227
  */
1228
- getTableInPackage(r, a, n, e, t, o) {
1229
- return S(this.configuration).getTableInPackage(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
1228
+ getTableInPackage(r, a, t, e, n, o) {
1229
+ return S(this.configuration).getTableInPackage(r, a, t, e, n, o).then((s) => s(this.axios, this.basePath));
1230
1230
  }
1231
1231
  /**
1232
1232
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -1239,8 +1239,8 @@ class K extends k {
1239
1239
  * @throws {RequiredError}
1240
1240
  * @memberof ConnectionsApi
1241
1241
  */
1242
- getTemporarytable(r, a, n, e) {
1243
- return S(this.configuration).getTemporarytable(r, a, n, e).then((t) => t(this.axios, this.basePath));
1242
+ getTemporarytable(r, a, t, e) {
1243
+ return S(this.configuration).getTemporarytable(r, a, t, e).then((n) => n(this.axios, this.basePath));
1244
1244
  }
1245
1245
  /**
1246
1246
  * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1254,8 +1254,8 @@ class K extends k {
1254
1254
  * @throws {RequiredError}
1255
1255
  * @memberof ConnectionsApi
1256
1256
  */
1257
- getTemporarytableInPackage(r, a, n, e, t) {
1258
- return S(this.configuration).getTemporarytableInPackage(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1257
+ getTemporarytableInPackage(r, a, t, e, n) {
1258
+ return S(this.configuration).getTemporarytableInPackage(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
1259
1259
  }
1260
1260
  /**
1261
1261
  * 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.
@@ -1266,7 +1266,7 @@ class K extends k {
1266
1266
  * @memberof ConnectionsApi
1267
1267
  */
1268
1268
  listConnections(r, a) {
1269
- return S(this.configuration).listConnections(r, a).then((n) => n(this.axios, this.basePath));
1269
+ return S(this.configuration).listConnections(r, a).then((t) => t(this.axios, this.basePath));
1270
1270
  }
1271
1271
  /**
1272
1272
  * 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.
@@ -1277,8 +1277,8 @@ class K extends k {
1277
1277
  * @throws {RequiredError}
1278
1278
  * @memberof ConnectionsApi
1279
1279
  */
1280
- listSchemas(r, a, n) {
1281
- return S(this.configuration).listSchemas(r, a, n).then((e) => e(this.axios, this.basePath));
1280
+ listSchemas(r, a, t) {
1281
+ return S(this.configuration).listSchemas(r, a, t).then((e) => e(this.axios, this.basePath));
1282
1282
  }
1283
1283
  /**
1284
1284
  * 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).
@@ -1290,8 +1290,8 @@ class K extends k {
1290
1290
  * @throws {RequiredError}
1291
1291
  * @memberof ConnectionsApi
1292
1292
  */
1293
- listSchemasInPackage(r, a, n, e) {
1294
- return S(this.configuration).listSchemasInPackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
1293
+ listSchemasInPackage(r, a, t, e) {
1294
+ return S(this.configuration).listSchemasInPackage(r, a, t, e).then((n) => n(this.axios, this.basePath));
1295
1295
  }
1296
1296
  /**
1297
1297
  * 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.
@@ -1304,8 +1304,8 @@ class K extends k {
1304
1304
  * @throws {RequiredError}
1305
1305
  * @memberof ConnectionsApi
1306
1306
  */
1307
- listTables(r, a, n, e, t) {
1308
- return S(this.configuration).listTables(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1307
+ listTables(r, a, t, e, n) {
1308
+ return S(this.configuration).listTables(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
1309
1309
  }
1310
1310
  /**
1311
1311
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1319,8 +1319,8 @@ class K extends k {
1319
1319
  * @throws {RequiredError}
1320
1320
  * @memberof ConnectionsApi
1321
1321
  */
1322
- listTablesInPackage(r, a, n, e, t, o) {
1323
- return S(this.configuration).listTablesInPackage(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
1322
+ listTablesInPackage(r, a, t, e, n, o) {
1323
+ return S(this.configuration).listTablesInPackage(r, a, t, e, n, o).then((s) => s(this.axios, this.basePath));
1324
1324
  }
1325
1325
  /**
1326
1326
  * 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.
@@ -1333,8 +1333,8 @@ class K extends k {
1333
1333
  * @throws {RequiredError}
1334
1334
  * @memberof ConnectionsApi
1335
1335
  */
1336
- postQuerydata(r, a, n, e, t) {
1337
- return S(this.configuration).postQuerydata(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1336
+ postQuerydata(r, a, t, e, n) {
1337
+ return S(this.configuration).postQuerydata(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
1338
1338
  }
1339
1339
  /**
1340
1340
  * 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.
@@ -1348,8 +1348,8 @@ class K extends k {
1348
1348
  * @throws {RequiredError}
1349
1349
  * @memberof ConnectionsApi
1350
1350
  */
1351
- postQuerydataInPackage(r, a, n, e, t, o) {
1352
- return S(this.configuration).postQuerydataInPackage(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
1351
+ postQuerydataInPackage(r, a, t, e, n, o) {
1352
+ return S(this.configuration).postQuerydataInPackage(r, a, t, e, n, o).then((s) => s(this.axios, this.basePath));
1353
1353
  }
1354
1354
  /**
1355
1355
  * 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.
@@ -1361,8 +1361,8 @@ class K extends k {
1361
1361
  * @throws {RequiredError}
1362
1362
  * @memberof ConnectionsApi
1363
1363
  */
1364
- postSqlsource(r, a, n, e) {
1365
- return S(this.configuration).postSqlsource(r, a, n, e).then((t) => t(this.axios, this.basePath));
1364
+ postSqlsource(r, a, t, e) {
1365
+ return S(this.configuration).postSqlsource(r, a, t, e).then((n) => n(this.axios, this.basePath));
1366
1366
  }
1367
1367
  /**
1368
1368
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1375,8 +1375,8 @@ class K extends k {
1375
1375
  * @throws {RequiredError}
1376
1376
  * @memberof ConnectionsApi
1377
1377
  */
1378
- postSqlsourceInPackage(r, a, n, e, t) {
1379
- return S(this.configuration).postSqlsourceInPackage(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1378
+ postSqlsourceInPackage(r, a, t, e, n) {
1379
+ return S(this.configuration).postSqlsourceInPackage(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
1380
1380
  }
1381
1381
  /**
1382
1382
  * 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.
@@ -1388,8 +1388,8 @@ class K extends k {
1388
1388
  * @throws {RequiredError}
1389
1389
  * @memberof ConnectionsApi
1390
1390
  */
1391
- postTemporarytable(r, a, n, e) {
1392
- return S(this.configuration).postTemporarytable(r, a, n, e).then((t) => t(this.axios, this.basePath));
1391
+ postTemporarytable(r, a, t, e) {
1392
+ return S(this.configuration).postTemporarytable(r, a, t, e).then((n) => n(this.axios, this.basePath));
1393
1393
  }
1394
1394
  /**
1395
1395
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1402,8 +1402,8 @@ class K extends k {
1402
1402
  * @throws {RequiredError}
1403
1403
  * @memberof ConnectionsApi
1404
1404
  */
1405
- postTemporarytableInPackage(r, a, n, e, t) {
1406
- return S(this.configuration).postTemporarytableInPackage(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1405
+ postTemporarytableInPackage(r, a, t, e, n) {
1406
+ return S(this.configuration).postTemporarytableInPackage(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
1407
1407
  }
1408
1408
  /**
1409
1409
  * Updates the configuration of an existing database connection.
@@ -1415,11 +1415,11 @@ class K extends k {
1415
1415
  * @throws {RequiredError}
1416
1416
  * @memberof ConnectionsApi
1417
1417
  */
1418
- updateConnection(r, a, n, e) {
1419
- return S(this.configuration).updateConnection(r, a, n, e).then((t) => t(this.axios, this.basePath));
1418
+ updateConnection(r, a, t, e) {
1419
+ return S(this.configuration).updateConnection(r, a, t, e).then((n) => n(this.axios, this.basePath));
1420
1420
  }
1421
1421
  }
1422
- const Y = function(l) {
1422
+ const X = function(l) {
1423
1423
  return {
1424
1424
  /**
1425
1425
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1430,20 +1430,20 @@ const Y = function(l) {
1430
1430
  */
1431
1431
  testConnectionConfiguration: async (r, a = {}) => {
1432
1432
  m("testConnectionConfiguration", "connection", r);
1433
- const n = "/connections/test", e = new URL(n, V);
1434
- let t;
1435
- l && (t = l.baseOptions);
1436
- const o = { method: "POST", ...t, ...a }, s = {}, c = {};
1437
- s["Content-Type"] = "application/json", v(e, c);
1438
- let i = t && t.headers ? t.headers : {};
1433
+ const t = "/connections/test", e = new URL(t, g);
1434
+ let n;
1435
+ l && (n = l.baseOptions);
1436
+ const o = { method: "POST", ...n, ...a }, s = {}, c = {};
1437
+ s["Content-Type"] = "application/json", V(e, c);
1438
+ let i = n && n.headers ? n.headers : {};
1439
1439
  return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
1440
- url: O(e),
1440
+ url: v(e),
1441
1441
  options: o
1442
1442
  };
1443
1443
  }
1444
1444
  };
1445
1445
  }, B = function(l) {
1446
- const r = Y(l);
1446
+ const r = X(l);
1447
1447
  return {
1448
1448
  /**
1449
1449
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1452,13 +1452,13 @@ const Y = function(l) {
1452
1452
  * @param {*} [options] Override http request option.
1453
1453
  * @throws {RequiredError}
1454
1454
  */
1455
- async testConnectionConfiguration(a, n) {
1456
- const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1457
- return (s, c) => b(e, h, u, l)(s, o || c);
1455
+ async testConnectionConfiguration(a, t) {
1456
+ const e = await r.testConnectionConfiguration(a, t), n = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1457
+ return (s, c) => O(e, h, u, l)(s, o || c);
1458
1458
  }
1459
1459
  };
1460
- }, qe = function(l, r, a) {
1461
- const n = B(l);
1460
+ }, ze = function(l, r, a) {
1461
+ const t = B(l);
1462
1462
  return {
1463
1463
  /**
1464
1464
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1467,12 +1467,12 @@ const Y = function(l) {
1467
1467
  * @param {*} [options] Override http request option.
1468
1468
  * @throws {RequiredError}
1469
1469
  */
1470
- testConnectionConfiguration(e, t) {
1471
- return n.testConnectionConfiguration(e, t).then((o) => o(a, r));
1470
+ testConnectionConfiguration(e, n) {
1471
+ return t.testConnectionConfiguration(e, n).then((o) => o(a, r));
1472
1472
  }
1473
1473
  };
1474
1474
  };
1475
- class $e extends k {
1475
+ class je extends k {
1476
1476
  /**
1477
1477
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
1478
1478
  * @summary Test database connection configuration
@@ -1482,10 +1482,10 @@ class $e extends k {
1482
1482
  * @memberof ConnectionsTestApi
1483
1483
  */
1484
1484
  testConnectionConfiguration(r, a) {
1485
- return B(this.configuration).testConnectionConfiguration(r, a).then((n) => n(this.axios, this.basePath));
1485
+ return B(this.configuration).testConnectionConfiguration(r, a).then((t) => t(this.axios, this.basePath));
1486
1486
  }
1487
1487
  }
1488
- const X = function(l) {
1488
+ const Z = function(l) {
1489
1489
  return {
1490
1490
  /**
1491
1491
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1496,22 +1496,22 @@ const X = function(l) {
1496
1496
  * @param {*} [options] Override http request option.
1497
1497
  * @throws {RequiredError}
1498
1498
  */
1499
- listDatabases: async (r, a, n, e = {}) => {
1499
+ listDatabases: async (r, a, t, e = {}) => {
1500
1500
  m("listDatabases", "environmentName", r), m("listDatabases", "packageName", a);
1501
- const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
1501
+ const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
1502
1502
  let s;
1503
1503
  l && (s = l.baseOptions);
1504
1504
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
1505
- n !== void 0 && (p.versionId = n), v(o, p);
1505
+ t !== void 0 && (p.versionId = t), V(o, p);
1506
1506
  let d = s && s.headers ? s.headers : {};
1507
1507
  return c.headers = { ...i, ...d, ...e.headers }, {
1508
- url: O(o),
1508
+ url: v(o),
1509
1509
  options: c
1510
1510
  };
1511
1511
  }
1512
1512
  };
1513
1513
  }, F = function(l) {
1514
- const r = X(l);
1514
+ const r = Z(l);
1515
1515
  return {
1516
1516
  /**
1517
1517
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1522,13 +1522,13 @@ const X = function(l) {
1522
1522
  * @param {*} [options] Override http request option.
1523
1523
  * @throws {RequiredError}
1524
1524
  */
1525
- async listDatabases(a, n, e, t) {
1526
- const o = await r.listDatabases(a, n, e, t), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1527
- return (i, p) => b(o, h, u, l)(i, c || p);
1525
+ async listDatabases(a, t, e, n) {
1526
+ const o = await r.listDatabases(a, t, e, n), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1527
+ return (i, p) => O(o, h, u, l)(i, c || p);
1528
1528
  }
1529
1529
  };
1530
- }, Qe = function(l, r, a) {
1531
- const n = F(l);
1530
+ }, Le = function(l, r, a) {
1531
+ const t = F(l);
1532
1532
  return {
1533
1533
  /**
1534
1534
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1539,12 +1539,12 @@ const X = function(l) {
1539
1539
  * @param {*} [options] Override http request option.
1540
1540
  * @throws {RequiredError}
1541
1541
  */
1542
- listDatabases(e, t, o, s) {
1543
- return n.listDatabases(e, t, o, s).then((c) => c(a, r));
1542
+ listDatabases(e, n, o, s) {
1543
+ return t.listDatabases(e, n, o, s).then((c) => c(a, r));
1544
1544
  }
1545
1545
  };
1546
1546
  };
1547
- class Z extends k {
1547
+ class ee extends k {
1548
1548
  /**
1549
1549
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
1550
1550
  * @summary List embedded databases
@@ -1555,11 +1555,11 @@ class Z extends k {
1555
1555
  * @throws {RequiredError}
1556
1556
  * @memberof DatabasesApi
1557
1557
  */
1558
- listDatabases(r, a, n, e) {
1559
- return F(this.configuration).listDatabases(r, a, n, e).then((t) => t(this.axios, this.basePath));
1558
+ listDatabases(r, a, t, e) {
1559
+ return F(this.configuration).listDatabases(r, a, t, e).then((n) => n(this.axios, this.basePath));
1560
1560
  }
1561
1561
  }
1562
- const ee = function(l) {
1562
+ const ae = function(l) {
1563
1563
  return {
1564
1564
  /**
1565
1565
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1570,14 +1570,14 @@ const ee = function(l) {
1570
1570
  */
1571
1571
  createEnvironment: async (r, a = {}) => {
1572
1572
  m("createEnvironment", "environment", r);
1573
- const n = "/environments", e = new URL(n, V);
1574
- let t;
1575
- l && (t = l.baseOptions);
1576
- const o = { method: "POST", ...t, ...a }, s = {}, c = {};
1577
- s["Content-Type"] = "application/json", v(e, c);
1578
- let i = t && t.headers ? t.headers : {};
1573
+ const t = "/environments", e = new URL(t, g);
1574
+ let n;
1575
+ l && (n = l.baseOptions);
1576
+ const o = { method: "POST", ...n, ...a }, s = {}, c = {};
1577
+ s["Content-Type"] = "application/json", V(e, c);
1578
+ let i = n && n.headers ? n.headers : {};
1579
1579
  return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
1580
- url: O(e),
1580
+ url: v(e),
1581
1581
  options: o
1582
1582
  };
1583
1583
  },
@@ -1590,14 +1590,14 @@ const ee = function(l) {
1590
1590
  */
1591
1591
  deleteEnvironment: async (r, a = {}) => {
1592
1592
  m("deleteEnvironment", "environmentName", r);
1593
- const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
1594
- let t;
1595
- l && (t = l.baseOptions);
1596
- const o = { method: "DELETE", ...t, ...a }, s = {};
1597
- v(e, {});
1598
- let i = t && t.headers ? t.headers : {};
1593
+ const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, g);
1594
+ let n;
1595
+ l && (n = l.baseOptions);
1596
+ const o = { method: "DELETE", ...n, ...a }, s = {};
1597
+ V(e, {});
1598
+ let i = n && n.headers ? n.headers : {};
1599
1599
  return o.headers = { ...s, ...i, ...a.headers }, {
1600
- url: O(e),
1600
+ url: v(e),
1601
1601
  options: o
1602
1602
  };
1603
1603
  },
@@ -1609,16 +1609,16 @@ const ee = function(l) {
1609
1609
  * @param {*} [options] Override http request option.
1610
1610
  * @throws {RequiredError}
1611
1611
  */
1612
- getEnvironment: async (r, a, n = {}) => {
1612
+ getEnvironment: async (r, a, t = {}) => {
1613
1613
  m("getEnvironment", "environmentName", r);
1614
- const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
1614
+ const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(e, g);
1615
1615
  let o;
1616
1616
  l && (o = l.baseOptions);
1617
- const s = { method: "GET", ...o, ...n }, c = {}, i = {};
1618
- a !== void 0 && (i.reload = a), v(t, i);
1617
+ const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1618
+ a !== void 0 && (i.reload = a), V(n, i);
1619
1619
  let p = o && o.headers ? o.headers : {};
1620
- return s.headers = { ...c, ...p, ...n.headers }, {
1621
- url: O(t),
1620
+ return s.headers = { ...c, ...p, ...t.headers }, {
1621
+ url: v(n),
1622
1622
  options: s
1623
1623
  };
1624
1624
  },
@@ -1629,15 +1629,15 @@ const ee = function(l) {
1629
1629
  * @throws {RequiredError}
1630
1630
  */
1631
1631
  listEnvironments: async (r = {}) => {
1632
- const a = "/environments", n = new URL(a, V);
1632
+ const a = "/environments", t = new URL(a, g);
1633
1633
  let e;
1634
1634
  l && (e = l.baseOptions);
1635
- const t = { method: "GET", ...e, ...r }, o = {};
1636
- v(n, {});
1635
+ const n = { method: "GET", ...e, ...r }, o = {};
1636
+ V(t, {});
1637
1637
  let c = e && e.headers ? e.headers : {};
1638
- return t.headers = { ...o, ...c, ...r.headers }, {
1639
- url: O(n),
1640
- options: t
1638
+ return n.headers = { ...o, ...c, ...r.headers }, {
1639
+ url: v(t),
1640
+ options: n
1641
1641
  };
1642
1642
  },
1643
1643
  /**
@@ -1648,22 +1648,22 @@ const ee = function(l) {
1648
1648
  * @param {*} [options] Override http request option.
1649
1649
  * @throws {RequiredError}
1650
1650
  */
1651
- updateEnvironment: async (r, a, n = {}) => {
1651
+ updateEnvironment: async (r, a, t = {}) => {
1652
1652
  m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", a);
1653
- const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
1653
+ const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(e, g);
1654
1654
  let o;
1655
1655
  l && (o = l.baseOptions);
1656
- const s = { method: "PATCH", ...o, ...n }, c = {}, i = {};
1657
- c["Content-Type"] = "application/json", v(t, i);
1656
+ const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1657
+ c["Content-Type"] = "application/json", V(n, i);
1658
1658
  let p = o && o.headers ? o.headers : {};
1659
- return s.headers = { ...c, ...p, ...n.headers }, s.data = I(a, s, l), {
1660
- url: O(t),
1659
+ return s.headers = { ...c, ...p, ...t.headers }, s.data = I(a, s, l), {
1660
+ url: v(n),
1661
1661
  options: s
1662
1662
  };
1663
1663
  }
1664
1664
  };
1665
1665
  }, x = function(l) {
1666
- const r = ee(l);
1666
+ const r = ae(l);
1667
1667
  return {
1668
1668
  /**
1669
1669
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1672,9 +1672,9 @@ const ee = function(l) {
1672
1672
  * @param {*} [options] Override http request option.
1673
1673
  * @throws {RequiredError}
1674
1674
  */
1675
- async createEnvironment(a, n) {
1676
- const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1677
- return (s, c) => b(e, h, u, l)(s, o || c);
1675
+ async createEnvironment(a, t) {
1676
+ const e = await r.createEnvironment(a, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1677
+ return (s, c) => O(e, h, u, l)(s, o || c);
1678
1678
  },
1679
1679
  /**
1680
1680
  * 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.
@@ -1683,9 +1683,9 @@ const ee = function(l) {
1683
1683
  * @param {*} [options] Override http request option.
1684
1684
  * @throws {RequiredError}
1685
1685
  */
1686
- async deleteEnvironment(a, n) {
1687
- const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1688
- return (s, c) => b(e, h, u, l)(s, o || c);
1686
+ async deleteEnvironment(a, t) {
1687
+ const e = await r.deleteEnvironment(a, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1688
+ return (s, c) => O(e, h, u, l)(s, o || c);
1689
1689
  },
1690
1690
  /**
1691
1691
  * 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.
@@ -1695,9 +1695,9 @@ const ee = function(l) {
1695
1695
  * @param {*} [options] Override http request option.
1696
1696
  * @throws {RequiredError}
1697
1697
  */
1698
- async getEnvironment(a, n, e) {
1699
- const t = await r.getEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1700
- return (c, i) => b(t, h, u, l)(c, s || i);
1698
+ async getEnvironment(a, t, e) {
1699
+ const n = await r.getEnvironment(a, t, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1700
+ return (c, i) => O(n, h, u, l)(c, s || i);
1701
1701
  },
1702
1702
  /**
1703
1703
  * 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.
@@ -1706,8 +1706,8 @@ const ee = function(l) {
1706
1706
  * @throws {RequiredError}
1707
1707
  */
1708
1708
  async listEnvironments(a) {
1709
- const n = await r.listEnvironments(a), e = l?.serverIndex ?? 0, t = g["EnvironmentsApi.listEnvironments"]?.[e]?.url;
1710
- return (o, s) => b(n, h, u, l)(o, t || s);
1709
+ const t = await r.listEnvironments(a), e = l?.serverIndex ?? 0, n = P["EnvironmentsApi.listEnvironments"]?.[e]?.url;
1710
+ return (o, s) => O(t, h, u, l)(o, n || s);
1711
1711
  },
1712
1712
  /**
1713
1713
  * 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.
@@ -1717,13 +1717,13 @@ const ee = function(l) {
1717
1717
  * @param {*} [options] Override http request option.
1718
1718
  * @throws {RequiredError}
1719
1719
  */
1720
- async updateEnvironment(a, n, e) {
1721
- const t = await r.updateEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1722
- return (c, i) => b(t, h, u, l)(c, s || i);
1720
+ async updateEnvironment(a, t, e) {
1721
+ const n = await r.updateEnvironment(a, t, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1722
+ return (c, i) => O(n, h, u, l)(c, s || i);
1723
1723
  }
1724
1724
  };
1725
- }, Be = function(l, r, a) {
1726
- const n = x(l);
1725
+ }, He = function(l, r, a) {
1726
+ const t = x(l);
1727
1727
  return {
1728
1728
  /**
1729
1729
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1732,8 +1732,8 @@ const ee = function(l) {
1732
1732
  * @param {*} [options] Override http request option.
1733
1733
  * @throws {RequiredError}
1734
1734
  */
1735
- createEnvironment(e, t) {
1736
- return n.createEnvironment(e, t).then((o) => o(a, r));
1735
+ createEnvironment(e, n) {
1736
+ return t.createEnvironment(e, n).then((o) => o(a, r));
1737
1737
  },
1738
1738
  /**
1739
1739
  * 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.
@@ -1742,8 +1742,8 @@ const ee = function(l) {
1742
1742
  * @param {*} [options] Override http request option.
1743
1743
  * @throws {RequiredError}
1744
1744
  */
1745
- deleteEnvironment(e, t) {
1746
- return n.deleteEnvironment(e, t).then((o) => o(a, r));
1745
+ deleteEnvironment(e, n) {
1746
+ return t.deleteEnvironment(e, n).then((o) => o(a, r));
1747
1747
  },
1748
1748
  /**
1749
1749
  * 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.
@@ -1753,8 +1753,8 @@ const ee = function(l) {
1753
1753
  * @param {*} [options] Override http request option.
1754
1754
  * @throws {RequiredError}
1755
1755
  */
1756
- getEnvironment(e, t, o) {
1757
- return n.getEnvironment(e, t, o).then((s) => s(a, r));
1756
+ getEnvironment(e, n, o) {
1757
+ return t.getEnvironment(e, n, o).then((s) => s(a, r));
1758
1758
  },
1759
1759
  /**
1760
1760
  * 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.
@@ -1763,7 +1763,7 @@ const ee = function(l) {
1763
1763
  * @throws {RequiredError}
1764
1764
  */
1765
1765
  listEnvironments(e) {
1766
- return n.listEnvironments(e).then((t) => t(a, r));
1766
+ return t.listEnvironments(e).then((n) => n(a, r));
1767
1767
  },
1768
1768
  /**
1769
1769
  * 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.
@@ -1773,12 +1773,12 @@ const ee = function(l) {
1773
1773
  * @param {*} [options] Override http request option.
1774
1774
  * @throws {RequiredError}
1775
1775
  */
1776
- updateEnvironment(e, t, o) {
1777
- return n.updateEnvironment(e, t, o).then((s) => s(a, r));
1776
+ updateEnvironment(e, n, o) {
1777
+ return t.updateEnvironment(e, n, o).then((s) => s(a, r));
1778
1778
  }
1779
1779
  };
1780
1780
  };
1781
- class ae extends k {
1781
+ class te extends k {
1782
1782
  /**
1783
1783
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
1784
1784
  * @summary Create a new environment
@@ -1788,7 +1788,7 @@ class ae extends k {
1788
1788
  * @memberof EnvironmentsApi
1789
1789
  */
1790
1790
  createEnvironment(r, a) {
1791
- return x(this.configuration).createEnvironment(r, a).then((n) => n(this.axios, this.basePath));
1791
+ return x(this.configuration).createEnvironment(r, a).then((t) => t(this.axios, this.basePath));
1792
1792
  }
1793
1793
  /**
1794
1794
  * 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.
@@ -1799,7 +1799,7 @@ class ae extends k {
1799
1799
  * @memberof EnvironmentsApi
1800
1800
  */
1801
1801
  deleteEnvironment(r, a) {
1802
- return x(this.configuration).deleteEnvironment(r, a).then((n) => n(this.axios, this.basePath));
1802
+ return x(this.configuration).deleteEnvironment(r, a).then((t) => t(this.axios, this.basePath));
1803
1803
  }
1804
1804
  /**
1805
1805
  * 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.
@@ -1810,8 +1810,8 @@ class ae extends k {
1810
1810
  * @throws {RequiredError}
1811
1811
  * @memberof EnvironmentsApi
1812
1812
  */
1813
- getEnvironment(r, a, n) {
1814
- return x(this.configuration).getEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
1813
+ getEnvironment(r, a, t) {
1814
+ return x(this.configuration).getEnvironment(r, a, t).then((e) => e(this.axios, this.basePath));
1815
1815
  }
1816
1816
  /**
1817
1817
  * 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.
@@ -1832,11 +1832,11 @@ class ae extends k {
1832
1832
  * @throws {RequiredError}
1833
1833
  * @memberof EnvironmentsApi
1834
1834
  */
1835
- updateEnvironment(r, a, n) {
1836
- return x(this.configuration).updateEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
1835
+ updateEnvironment(r, a, t) {
1836
+ return x(this.configuration).updateEnvironment(r, a, t).then((e) => e(this.axios, this.basePath));
1837
1837
  }
1838
1838
  }
1839
- const te = function(l) {
1839
+ const ne = function(l) {
1840
1840
  return {
1841
1841
  /**
1842
1842
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -1846,16 +1846,16 @@ const te = function(l) {
1846
1846
  * @param {*} [options] Override http request option.
1847
1847
  * @throws {RequiredError}
1848
1848
  */
1849
- getManifest: async (r, a, n = {}) => {
1849
+ getManifest: async (r, a, t = {}) => {
1850
1850
  m("getManifest", "environmentName", r), m("getManifest", "packageName", a);
1851
- const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
1851
+ const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
1852
1852
  let o;
1853
1853
  l && (o = l.baseOptions);
1854
- const s = { method: "GET", ...o, ...n }, c = {};
1855
- v(t, {});
1854
+ const s = { method: "GET", ...o, ...t }, c = {};
1855
+ V(n, {});
1856
1856
  let p = o && o.headers ? o.headers : {};
1857
- return s.headers = { ...c, ...p, ...n.headers }, {
1858
- url: O(t),
1857
+ return s.headers = { ...c, ...p, ...t.headers }, {
1858
+ url: v(n),
1859
1859
  options: s
1860
1860
  };
1861
1861
  },
@@ -1868,22 +1868,22 @@ const te = function(l) {
1868
1868
  * @param {*} [options] Override http request option.
1869
1869
  * @throws {RequiredError}
1870
1870
  */
1871
- manifestAction: async (r, a, n, e = {}) => {
1872
- m("manifestAction", "environmentName", r), m("manifestAction", "packageName", a), m("manifestAction", "action", n);
1873
- const t = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
1871
+ manifestAction: async (r, a, t, e = {}) => {
1872
+ m("manifestAction", "environmentName", r), m("manifestAction", "packageName", a), m("manifestAction", "action", t);
1873
+ const n = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
1874
1874
  let s;
1875
1875
  l && (s = l.baseOptions);
1876
1876
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
1877
- n !== void 0 && (p.action = n), v(o, p);
1877
+ t !== void 0 && (p.action = t), V(o, p);
1878
1878
  let d = s && s.headers ? s.headers : {};
1879
1879
  return c.headers = { ...i, ...d, ...e.headers }, {
1880
- url: O(o),
1880
+ url: v(o),
1881
1881
  options: c
1882
1882
  };
1883
1883
  }
1884
1884
  };
1885
1885
  }, q = function(l) {
1886
- const r = te(l);
1886
+ const r = ne(l);
1887
1887
  return {
1888
1888
  /**
1889
1889
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -1893,9 +1893,9 @@ const te = function(l) {
1893
1893
  * @param {*} [options] Override http request option.
1894
1894
  * @throws {RequiredError}
1895
1895
  */
1896
- async getManifest(a, n, e) {
1897
- const t = await r.getManifest(a, n, e), o = l?.serverIndex ?? 0, s = g["ManifestsApi.getManifest"]?.[o]?.url;
1898
- return (c, i) => b(t, h, u, l)(c, s || i);
1896
+ async getManifest(a, t, e) {
1897
+ const n = await r.getManifest(a, t, e), o = l?.serverIndex ?? 0, s = P["ManifestsApi.getManifest"]?.[o]?.url;
1898
+ return (c, i) => O(n, h, u, l)(c, s || i);
1899
1899
  },
1900
1900
  /**
1901
1901
  * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
@@ -1906,13 +1906,13 @@ const te = function(l) {
1906
1906
  * @param {*} [options] Override http request option.
1907
1907
  * @throws {RequiredError}
1908
1908
  */
1909
- async manifestAction(a, n, e, t) {
1910
- const o = await r.manifestAction(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ManifestsApi.manifestAction"]?.[s]?.url;
1911
- return (i, p) => b(o, h, u, l)(i, c || p);
1909
+ async manifestAction(a, t, e, n) {
1910
+ const o = await r.manifestAction(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ManifestsApi.manifestAction"]?.[s]?.url;
1911
+ return (i, p) => O(o, h, u, l)(i, c || p);
1912
1912
  }
1913
1913
  };
1914
- }, Fe = function(l, r, a) {
1915
- const n = q(l);
1914
+ }, fe = function(l, r, a) {
1915
+ const t = q(l);
1916
1916
  return {
1917
1917
  /**
1918
1918
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -1922,8 +1922,8 @@ const te = function(l) {
1922
1922
  * @param {*} [options] Override http request option.
1923
1923
  * @throws {RequiredError}
1924
1924
  */
1925
- getManifest(e, t, o) {
1926
- return n.getManifest(e, t, o).then((s) => s(a, r));
1925
+ getManifest(e, n, o) {
1926
+ return t.getManifest(e, n, o).then((s) => s(a, r));
1927
1927
  },
1928
1928
  /**
1929
1929
  * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
@@ -1934,12 +1934,12 @@ const te = function(l) {
1934
1934
  * @param {*} [options] Override http request option.
1935
1935
  * @throws {RequiredError}
1936
1936
  */
1937
- manifestAction(e, t, o, s) {
1938
- return n.manifestAction(e, t, o, s).then((c) => c(a, r));
1937
+ manifestAction(e, n, o, s) {
1938
+ return t.manifestAction(e, n, o, s).then((c) => c(a, r));
1939
1939
  }
1940
1940
  };
1941
1941
  };
1942
- class ze extends k {
1942
+ class re extends k {
1943
1943
  /**
1944
1944
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1945
1945
  * @summary Get the build manifest for a package
@@ -1949,8 +1949,8 @@ class ze extends k {
1949
1949
  * @throws {RequiredError}
1950
1950
  * @memberof ManifestsApi
1951
1951
  */
1952
- getManifest(r, a, n) {
1953
- return q(this.configuration).getManifest(r, a, n).then((e) => e(this.axios, this.basePath));
1952
+ getManifest(r, a, t) {
1953
+ return q(this.configuration).getManifest(r, a, t).then((e) => e(this.axios, this.basePath));
1954
1954
  }
1955
1955
  /**
1956
1956
  * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
@@ -1962,13 +1962,13 @@ class ze extends k {
1962
1962
  * @throws {RequiredError}
1963
1963
  * @memberof ManifestsApi
1964
1964
  */
1965
- manifestAction(r, a, n, e) {
1966
- return q(this.configuration).manifestAction(r, a, n, e).then((t) => t(this.axios, this.basePath));
1965
+ manifestAction(r, a, t, e) {
1966
+ return q(this.configuration).manifestAction(r, a, t, e).then((n) => n(this.axios, this.basePath));
1967
1967
  }
1968
1968
  }
1969
- const je = {
1969
+ const De = {
1970
1970
  Reload: "reload"
1971
- }, ne = function(l) {
1971
+ }, oe = function(l) {
1972
1972
  return {
1973
1973
  /**
1974
1974
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
@@ -1979,16 +1979,16 @@ const je = {
1979
1979
  * @param {*} [options] Override http request option.
1980
1980
  * @throws {RequiredError}
1981
1981
  */
1982
- createMaterialization: async (r, a, n, e = {}) => {
1982
+ createMaterialization: async (r, a, t, e = {}) => {
1983
1983
  m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", a);
1984
- const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
1984
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
1985
1985
  let s;
1986
1986
  l && (s = l.baseOptions);
1987
1987
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
1988
- i["Content-Type"] = "application/json", v(o, p);
1988
+ i["Content-Type"] = "application/json", V(o, p);
1989
1989
  let d = s && s.headers ? s.headers : {};
1990
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
1991
- url: O(o),
1990
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
1991
+ url: v(o),
1992
1992
  options: c
1993
1993
  };
1994
1994
  },
@@ -2001,16 +2001,16 @@ const je = {
2001
2001
  * @param {*} [options] Override http request option.
2002
2002
  * @throws {RequiredError}
2003
2003
  */
2004
- deleteMaterialization: async (r, a, n, e = {}) => {
2005
- m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", n);
2006
- const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
2004
+ deleteMaterialization: async (r, a, t, e = {}) => {
2005
+ m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", t);
2006
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, g);
2007
2007
  let s;
2008
2008
  l && (s = l.baseOptions);
2009
2009
  const c = { method: "DELETE", ...s, ...e }, i = {};
2010
- v(o, {});
2010
+ V(o, {});
2011
2011
  let d = s && s.headers ? s.headers : {};
2012
2012
  return c.headers = { ...i, ...d, ...e.headers }, {
2013
- url: O(o),
2013
+ url: v(o),
2014
2014
  options: c
2015
2015
  };
2016
2016
  },
@@ -2023,16 +2023,16 @@ const je = {
2023
2023
  * @param {*} [options] Override http request option.
2024
2024
  * @throws {RequiredError}
2025
2025
  */
2026
- getMaterialization: async (r, a, n, e = {}) => {
2027
- m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", n);
2028
- const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
2026
+ getMaterialization: async (r, a, t, e = {}) => {
2027
+ m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", t);
2028
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, g);
2029
2029
  let s;
2030
2030
  l && (s = l.baseOptions);
2031
2031
  const c = { method: "GET", ...s, ...e }, i = {};
2032
- v(o, {});
2032
+ V(o, {});
2033
2033
  let d = s && s.headers ? s.headers : {};
2034
2034
  return c.headers = { ...i, ...d, ...e.headers }, {
2035
- url: O(o),
2035
+ url: v(o),
2036
2036
  options: c
2037
2037
  };
2038
2038
  },
@@ -2046,16 +2046,16 @@ const je = {
2046
2046
  * @param {*} [options] Override http request option.
2047
2047
  * @throws {RequiredError}
2048
2048
  */
2049
- listMaterializations: async (r, a, n, e, t = {}) => {
2049
+ listMaterializations: async (r, a, t, e, n = {}) => {
2050
2050
  m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", a);
2051
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2051
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, g);
2052
2052
  let c;
2053
2053
  l && (c = l.baseOptions);
2054
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2055
- n !== void 0 && (d.limit = n), e !== void 0 && (d.offset = e), v(s, d);
2056
- let P = c && c.headers ? c.headers : {};
2057
- return i.headers = { ...p, ...P, ...t.headers }, {
2058
- url: O(s),
2054
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2055
+ t !== void 0 && (d.limit = t), e !== void 0 && (d.offset = e), V(s, d);
2056
+ let b = c && c.headers ? c.headers : {};
2057
+ return i.headers = { ...p, ...b, ...n.headers }, {
2058
+ url: v(s),
2059
2059
  options: i
2060
2060
  };
2061
2061
  },
@@ -2069,22 +2069,22 @@ const je = {
2069
2069
  * @param {*} [options] Override http request option.
2070
2070
  * @throws {RequiredError}
2071
2071
  */
2072
- materializationAction: async (r, a, n, e, t = {}) => {
2073
- m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", n), m("materializationAction", "action", e);
2074
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, V);
2072
+ materializationAction: async (r, a, t, e, n = {}) => {
2073
+ m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", t), m("materializationAction", "action", e);
2074
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, g);
2075
2075
  let c;
2076
2076
  l && (c = l.baseOptions);
2077
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2078
- e !== void 0 && (d.action = e), v(s, d);
2079
- let P = c && c.headers ? c.headers : {};
2080
- return i.headers = { ...p, ...P, ...t.headers }, {
2081
- url: O(s),
2077
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2078
+ e !== void 0 && (d.action = e), V(s, d);
2079
+ let b = c && c.headers ? c.headers : {};
2080
+ return i.headers = { ...p, ...b, ...n.headers }, {
2081
+ url: v(s),
2082
2082
  options: i
2083
2083
  };
2084
2084
  }
2085
2085
  };
2086
2086
  }, N = function(l) {
2087
- const r = ne(l);
2087
+ const r = oe(l);
2088
2088
  return {
2089
2089
  /**
2090
2090
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
@@ -2095,9 +2095,9 @@ const je = {
2095
2095
  * @param {*} [options] Override http request option.
2096
2096
  * @throws {RequiredError}
2097
2097
  */
2098
- async createMaterialization(a, n, e, t) {
2099
- const o = await r.createMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
2100
- return (i, p) => b(o, h, u, l)(i, c || p);
2098
+ async createMaterialization(a, t, e, n) {
2099
+ const o = await r.createMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2100
+ return (i, p) => O(o, h, u, l)(i, c || p);
2101
2101
  },
2102
2102
  /**
2103
2103
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -2108,9 +2108,9 @@ const je = {
2108
2108
  * @param {*} [options] Override http request option.
2109
2109
  * @throws {RequiredError}
2110
2110
  */
2111
- async deleteMaterialization(a, n, e, t) {
2112
- const o = await r.deleteMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
2113
- return (i, p) => b(o, h, u, l)(i, c || p);
2111
+ async deleteMaterialization(a, t, e, n) {
2112
+ const o = await r.deleteMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
2113
+ return (i, p) => O(o, h, u, l)(i, c || p);
2114
2114
  },
2115
2115
  /**
2116
2116
  *
@@ -2121,9 +2121,9 @@ const je = {
2121
2121
  * @param {*} [options] Override http request option.
2122
2122
  * @throws {RequiredError}
2123
2123
  */
2124
- async getMaterialization(a, n, e, t) {
2125
- const o = await r.getMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
2126
- return (i, p) => b(o, h, u, l)(i, c || p);
2124
+ async getMaterialization(a, t, e, n) {
2125
+ const o = await r.getMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
2126
+ return (i, p) => O(o, h, u, l)(i, c || p);
2127
2127
  },
2128
2128
  /**
2129
2129
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2135,9 +2135,9 @@ const je = {
2135
2135
  * @param {*} [options] Override http request option.
2136
2136
  * @throws {RequiredError}
2137
2137
  */
2138
- async listMaterializations(a, n, e, t, o) {
2139
- const s = await r.listMaterializations(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
2140
- return (p, d) => b(s, h, u, l)(p, i || d);
2138
+ async listMaterializations(a, t, e, n, o) {
2139
+ const s = await r.listMaterializations(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
2140
+ return (p, d) => O(s, h, u, l)(p, i || d);
2141
2141
  },
2142
2142
  /**
2143
2143
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
@@ -2149,13 +2149,13 @@ const je = {
2149
2149
  * @param {*} [options] Override http request option.
2150
2150
  * @throws {RequiredError}
2151
2151
  */
2152
- async materializationAction(a, n, e, t, o) {
2153
- const s = await r.materializationAction(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
2154
- return (p, d) => b(s, h, u, l)(p, i || d);
2152
+ async materializationAction(a, t, e, n, o) {
2153
+ const s = await r.materializationAction(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
2154
+ return (p, d) => O(s, h, u, l)(p, i || d);
2155
2155
  }
2156
2156
  };
2157
- }, Le = function(l, r, a) {
2158
- const n = N(l);
2157
+ }, We = function(l, r, a) {
2158
+ const t = N(l);
2159
2159
  return {
2160
2160
  /**
2161
2161
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
@@ -2166,8 +2166,8 @@ const je = {
2166
2166
  * @param {*} [options] Override http request option.
2167
2167
  * @throws {RequiredError}
2168
2168
  */
2169
- createMaterialization(e, t, o, s) {
2170
- return n.createMaterialization(e, t, o, s).then((c) => c(a, r));
2169
+ createMaterialization(e, n, o, s) {
2170
+ return t.createMaterialization(e, n, o, s).then((c) => c(a, r));
2171
2171
  },
2172
2172
  /**
2173
2173
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -2178,8 +2178,8 @@ const je = {
2178
2178
  * @param {*} [options] Override http request option.
2179
2179
  * @throws {RequiredError}
2180
2180
  */
2181
- deleteMaterialization(e, t, o, s) {
2182
- return n.deleteMaterialization(e, t, o, s).then((c) => c(a, r));
2181
+ deleteMaterialization(e, n, o, s) {
2182
+ return t.deleteMaterialization(e, n, o, s).then((c) => c(a, r));
2183
2183
  },
2184
2184
  /**
2185
2185
  *
@@ -2190,8 +2190,8 @@ const je = {
2190
2190
  * @param {*} [options] Override http request option.
2191
2191
  * @throws {RequiredError}
2192
2192
  */
2193
- getMaterialization(e, t, o, s) {
2194
- return n.getMaterialization(e, t, o, s).then((c) => c(a, r));
2193
+ getMaterialization(e, n, o, s) {
2194
+ return t.getMaterialization(e, n, o, s).then((c) => c(a, r));
2195
2195
  },
2196
2196
  /**
2197
2197
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2203,8 +2203,8 @@ const je = {
2203
2203
  * @param {*} [options] Override http request option.
2204
2204
  * @throws {RequiredError}
2205
2205
  */
2206
- listMaterializations(e, t, o, s, c) {
2207
- return n.listMaterializations(e, t, o, s, c).then((i) => i(a, r));
2206
+ listMaterializations(e, n, o, s, c) {
2207
+ return t.listMaterializations(e, n, o, s, c).then((i) => i(a, r));
2208
2208
  },
2209
2209
  /**
2210
2210
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
@@ -2216,12 +2216,12 @@ const je = {
2216
2216
  * @param {*} [options] Override http request option.
2217
2217
  * @throws {RequiredError}
2218
2218
  */
2219
- materializationAction(e, t, o, s, c) {
2220
- return n.materializationAction(e, t, o, s, c).then((i) => i(a, r));
2219
+ materializationAction(e, n, o, s, c) {
2220
+ return t.materializationAction(e, n, o, s, c).then((i) => i(a, r));
2221
2221
  }
2222
2222
  };
2223
2223
  };
2224
- class He extends k {
2224
+ class se extends k {
2225
2225
  /**
2226
2226
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
2227
2227
  * @summary Create a materialization
@@ -2232,8 +2232,8 @@ class He extends k {
2232
2232
  * @throws {RequiredError}
2233
2233
  * @memberof MaterializationsApi
2234
2234
  */
2235
- createMaterialization(r, a, n, e) {
2236
- return N(this.configuration).createMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2235
+ createMaterialization(r, a, t, e) {
2236
+ return N(this.configuration).createMaterialization(r, a, t, e).then((n) => n(this.axios, this.basePath));
2237
2237
  }
2238
2238
  /**
2239
2239
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -2245,8 +2245,8 @@ class He extends k {
2245
2245
  * @throws {RequiredError}
2246
2246
  * @memberof MaterializationsApi
2247
2247
  */
2248
- deleteMaterialization(r, a, n, e) {
2249
- return N(this.configuration).deleteMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2248
+ deleteMaterialization(r, a, t, e) {
2249
+ return N(this.configuration).deleteMaterialization(r, a, t, e).then((n) => n(this.axios, this.basePath));
2250
2250
  }
2251
2251
  /**
2252
2252
  *
@@ -2258,8 +2258,8 @@ class He extends k {
2258
2258
  * @throws {RequiredError}
2259
2259
  * @memberof MaterializationsApi
2260
2260
  */
2261
- getMaterialization(r, a, n, e) {
2262
- return N(this.configuration).getMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2261
+ getMaterialization(r, a, t, e) {
2262
+ return N(this.configuration).getMaterialization(r, a, t, e).then((n) => n(this.axios, this.basePath));
2263
2263
  }
2264
2264
  /**
2265
2265
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2272,8 +2272,8 @@ class He extends k {
2272
2272
  * @throws {RequiredError}
2273
2273
  * @memberof MaterializationsApi
2274
2274
  */
2275
- listMaterializations(r, a, n, e, t) {
2276
- return N(this.configuration).listMaterializations(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2275
+ listMaterializations(r, a, t, e, n) {
2276
+ return N(this.configuration).listMaterializations(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2277
2277
  }
2278
2278
  /**
2279
2279
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
@@ -2286,14 +2286,14 @@ class He extends k {
2286
2286
  * @throws {RequiredError}
2287
2287
  * @memberof MaterializationsApi
2288
2288
  */
2289
- materializationAction(r, a, n, e, t) {
2290
- return N(this.configuration).materializationAction(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2289
+ materializationAction(r, a, t, e, n) {
2290
+ return N(this.configuration).materializationAction(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2291
2291
  }
2292
2292
  }
2293
- const fe = {
2293
+ const Ge = {
2294
2294
  Start: "start",
2295
2295
  Stop: "stop"
2296
- }, re = function(l) {
2296
+ }, ce = function(l) {
2297
2297
  return {
2298
2298
  /**
2299
2299
  * 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.
@@ -2305,16 +2305,16 @@ const fe = {
2305
2305
  * @param {*} [options] Override http request option.
2306
2306
  * @throws {RequiredError}
2307
2307
  */
2308
- compileModelSource: async (r, a, n, e, t = {}) => {
2309
- m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", n), m("compileModelSource", "compileRequest", e);
2310
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2308
+ compileModelSource: async (r, a, t, e, n = {}) => {
2309
+ m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", e);
2310
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2311
2311
  let c;
2312
2312
  l && (c = l.baseOptions);
2313
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2314
- p["Content-Type"] = "application/json", v(s, d);
2315
- let P = c && c.headers ? c.headers : {};
2316
- return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
2317
- url: O(s),
2313
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2314
+ p["Content-Type"] = "application/json", V(s, d);
2315
+ let b = c && c.headers ? c.headers : {};
2316
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
2317
+ url: v(s),
2318
2318
  options: i
2319
2319
  };
2320
2320
  },
@@ -2328,16 +2328,16 @@ const fe = {
2328
2328
  * @param {*} [options] Override http request option.
2329
2329
  * @throws {RequiredError}
2330
2330
  */
2331
- executeQueryModel: async (r, a, n, e, t = {}) => {
2332
- m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", n), m("executeQueryModel", "queryRequest", e);
2333
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2331
+ executeQueryModel: async (r, a, t, e, n = {}) => {
2332
+ m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", e);
2333
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2334
2334
  let c;
2335
2335
  l && (c = l.baseOptions);
2336
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2337
- p["Content-Type"] = "application/json", v(s, d);
2338
- let P = c && c.headers ? c.headers : {};
2339
- return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
2340
- url: O(s),
2336
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2337
+ p["Content-Type"] = "application/json", V(s, d);
2338
+ let b = c && c.headers ? c.headers : {};
2339
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
2340
+ url: v(s),
2341
2341
  options: i
2342
2342
  };
2343
2343
  },
@@ -2351,16 +2351,16 @@ const fe = {
2351
2351
  * @param {*} [options] Override http request option.
2352
2352
  * @throws {RequiredError}
2353
2353
  */
2354
- getModel: async (r, a, n, e, t = {}) => {
2355
- m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", n);
2356
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2354
+ getModel: async (r, a, t, e, n = {}) => {
2355
+ m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", t);
2356
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2357
2357
  let c;
2358
2358
  l && (c = l.baseOptions);
2359
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2360
- e !== void 0 && (d.versionId = e), v(s, d);
2361
- let P = c && c.headers ? c.headers : {};
2362
- return i.headers = { ...p, ...P, ...t.headers }, {
2363
- url: O(s),
2359
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2360
+ e !== void 0 && (d.versionId = e), V(s, d);
2361
+ let b = c && c.headers ? c.headers : {};
2362
+ return i.headers = { ...p, ...b, ...n.headers }, {
2363
+ url: v(s),
2364
2364
  options: i
2365
2365
  };
2366
2366
  },
@@ -2373,22 +2373,22 @@ const fe = {
2373
2373
  * @param {*} [options] Override http request option.
2374
2374
  * @throws {RequiredError}
2375
2375
  */
2376
- listModels: async (r, a, n, e = {}) => {
2376
+ listModels: async (r, a, t, e = {}) => {
2377
2377
  m("listModels", "environmentName", r), m("listModels", "packageName", a);
2378
- const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2378
+ const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
2379
2379
  let s;
2380
2380
  l && (s = l.baseOptions);
2381
2381
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2382
- n !== void 0 && (p.versionId = n), v(o, p);
2382
+ t !== void 0 && (p.versionId = t), V(o, p);
2383
2383
  let d = s && s.headers ? s.headers : {};
2384
2384
  return c.headers = { ...i, ...d, ...e.headers }, {
2385
- url: O(o),
2385
+ url: v(o),
2386
2386
  options: c
2387
2387
  };
2388
2388
  }
2389
2389
  };
2390
2390
  }, U = function(l) {
2391
- const r = re(l);
2391
+ const r = ce(l);
2392
2392
  return {
2393
2393
  /**
2394
2394
  * 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.
@@ -2400,9 +2400,9 @@ const fe = {
2400
2400
  * @param {*} [options] Override http request option.
2401
2401
  * @throws {RequiredError}
2402
2402
  */
2403
- async compileModelSource(a, n, e, t, o) {
2404
- const s = await r.compileModelSource(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2405
- return (p, d) => b(s, h, u, l)(p, i || d);
2403
+ async compileModelSource(a, t, e, n, o) {
2404
+ const s = await r.compileModelSource(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2405
+ return (p, d) => O(s, h, u, l)(p, i || d);
2406
2406
  },
2407
2407
  /**
2408
2408
  * 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.
@@ -2414,9 +2414,9 @@ const fe = {
2414
2414
  * @param {*} [options] Override http request option.
2415
2415
  * @throws {RequiredError}
2416
2416
  */
2417
- async executeQueryModel(a, n, e, t, o) {
2418
- const s = await r.executeQueryModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2419
- return (p, d) => b(s, h, u, l)(p, i || d);
2417
+ async executeQueryModel(a, t, e, n, o) {
2418
+ const s = await r.executeQueryModel(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2419
+ return (p, d) => O(s, h, u, l)(p, i || d);
2420
2420
  },
2421
2421
  /**
2422
2422
  * 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.
@@ -2428,9 +2428,9 @@ const fe = {
2428
2428
  * @param {*} [options] Override http request option.
2429
2429
  * @throws {RequiredError}
2430
2430
  */
2431
- async getModel(a, n, e, t, o) {
2432
- const s = await r.getModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2433
- return (p, d) => b(s, h, u, l)(p, i || d);
2431
+ async getModel(a, t, e, n, o) {
2432
+ const s = await r.getModel(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2433
+ return (p, d) => O(s, h, u, l)(p, i || d);
2434
2434
  },
2435
2435
  /**
2436
2436
  * Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
@@ -2441,13 +2441,13 @@ const fe = {
2441
2441
  * @param {*} [options] Override http request option.
2442
2442
  * @throws {RequiredError}
2443
2443
  */
2444
- async listModels(a, n, e, t) {
2445
- const o = await r.listModels(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2446
- return (i, p) => b(o, h, u, l)(i, c || p);
2444
+ async listModels(a, t, e, n) {
2445
+ const o = await r.listModels(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
2446
+ return (i, p) => O(o, h, u, l)(i, c || p);
2447
2447
  }
2448
2448
  };
2449
- }, De = function(l, r, a) {
2450
- const n = U(l);
2449
+ }, _e = function(l, r, a) {
2450
+ const t = U(l);
2451
2451
  return {
2452
2452
  /**
2453
2453
  * 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.
@@ -2459,8 +2459,8 @@ const fe = {
2459
2459
  * @param {*} [options] Override http request option.
2460
2460
  * @throws {RequiredError}
2461
2461
  */
2462
- compileModelSource(e, t, o, s, c) {
2463
- return n.compileModelSource(e, t, o, s, c).then((i) => i(a, r));
2462
+ compileModelSource(e, n, o, s, c) {
2463
+ return t.compileModelSource(e, n, o, s, c).then((i) => i(a, r));
2464
2464
  },
2465
2465
  /**
2466
2466
  * 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.
@@ -2472,8 +2472,8 @@ const fe = {
2472
2472
  * @param {*} [options] Override http request option.
2473
2473
  * @throws {RequiredError}
2474
2474
  */
2475
- executeQueryModel(e, t, o, s, c) {
2476
- return n.executeQueryModel(e, t, o, s, c).then((i) => i(a, r));
2475
+ executeQueryModel(e, n, o, s, c) {
2476
+ return t.executeQueryModel(e, n, o, s, c).then((i) => i(a, r));
2477
2477
  },
2478
2478
  /**
2479
2479
  * 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.
@@ -2485,8 +2485,8 @@ const fe = {
2485
2485
  * @param {*} [options] Override http request option.
2486
2486
  * @throws {RequiredError}
2487
2487
  */
2488
- getModel(e, t, o, s, c) {
2489
- return n.getModel(e, t, o, s, c).then((i) => i(a, r));
2488
+ getModel(e, n, o, s, c) {
2489
+ return t.getModel(e, n, o, s, c).then((i) => i(a, r));
2490
2490
  },
2491
2491
  /**
2492
2492
  * Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
@@ -2497,12 +2497,12 @@ const fe = {
2497
2497
  * @param {*} [options] Override http request option.
2498
2498
  * @throws {RequiredError}
2499
2499
  */
2500
- listModels(e, t, o, s) {
2501
- return n.listModels(e, t, o, s).then((c) => c(a, r));
2500
+ listModels(e, n, o, s) {
2501
+ return t.listModels(e, n, o, s).then((c) => c(a, r));
2502
2502
  }
2503
2503
  };
2504
2504
  };
2505
- class oe extends k {
2505
+ class le extends k {
2506
2506
  /**
2507
2507
  * 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.
2508
2508
  * @summary Compile Malloy source code
@@ -2514,8 +2514,8 @@ class oe extends k {
2514
2514
  * @throws {RequiredError}
2515
2515
  * @memberof ModelsApi
2516
2516
  */
2517
- compileModelSource(r, a, n, e, t) {
2518
- return U(this.configuration).compileModelSource(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2517
+ compileModelSource(r, a, t, e, n) {
2518
+ return U(this.configuration).compileModelSource(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2519
2519
  }
2520
2520
  /**
2521
2521
  * 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.
@@ -2528,8 +2528,8 @@ class oe extends k {
2528
2528
  * @throws {RequiredError}
2529
2529
  * @memberof ModelsApi
2530
2530
  */
2531
- executeQueryModel(r, a, n, e, t) {
2532
- return U(this.configuration).executeQueryModel(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2531
+ executeQueryModel(r, a, t, e, n) {
2532
+ return U(this.configuration).executeQueryModel(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2533
2533
  }
2534
2534
  /**
2535
2535
  * 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.
@@ -2542,8 +2542,8 @@ class oe extends k {
2542
2542
  * @throws {RequiredError}
2543
2543
  * @memberof ModelsApi
2544
2544
  */
2545
- getModel(r, a, n, e, t) {
2546
- return U(this.configuration).getModel(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2545
+ getModel(r, a, t, e, n) {
2546
+ return U(this.configuration).getModel(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2547
2547
  }
2548
2548
  /**
2549
2549
  * Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
@@ -2555,11 +2555,11 @@ class oe extends k {
2555
2555
  * @throws {RequiredError}
2556
2556
  * @memberof ModelsApi
2557
2557
  */
2558
- listModels(r, a, n, e) {
2559
- return U(this.configuration).listModels(r, a, n, e).then((t) => t(this.axios, this.basePath));
2558
+ listModels(r, a, t, e) {
2559
+ return U(this.configuration).listModels(r, a, t, e).then((n) => n(this.axios, this.basePath));
2560
2560
  }
2561
2561
  }
2562
- const se = function(l) {
2562
+ const ie = function(l) {
2563
2563
  return {
2564
2564
  /**
2565
2565
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -2575,16 +2575,16 @@ const se = function(l) {
2575
2575
  * @param {*} [options] Override http request option.
2576
2576
  * @throws {RequiredError}
2577
2577
  */
2578
- executeNotebookCell: async (r, a, n, e, t, o, s, c, i = {}) => {
2579
- m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", n), m("executeNotebookCell", "cellIndex", e);
2580
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, V);
2581
- let P;
2582
- l && (P = l.baseOptions);
2583
- const y = { method: "GET", ...P, ...i }, T = {}, C = {};
2584
- t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(d, C);
2585
- let A = P && P.headers ? P.headers : {};
2586
- return y.headers = { ...T, ...A, ...i.headers }, {
2587
- url: O(d),
2578
+ executeNotebookCell: async (r, a, t, e, n, o, s, c, i = {}) => {
2579
+ m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", e);
2580
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, g);
2581
+ let b;
2582
+ l && (b = l.baseOptions);
2583
+ const y = { method: "GET", ...b, ...i }, w = {}, C = {};
2584
+ n !== void 0 && (C.versionId = n), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), V(d, C);
2585
+ let A = b && b.headers ? b.headers : {};
2586
+ return y.headers = { ...w, ...A, ...i.headers }, {
2587
+ url: v(d),
2588
2588
  options: y
2589
2589
  };
2590
2590
  },
@@ -2598,16 +2598,16 @@ const se = function(l) {
2598
2598
  * @param {*} [options] Override http request option.
2599
2599
  * @throws {RequiredError}
2600
2600
  */
2601
- getNotebook: async (r, a, n, e, t = {}) => {
2602
- m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", n);
2603
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2601
+ getNotebook: async (r, a, t, e, n = {}) => {
2602
+ m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", t);
2603
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2604
2604
  let c;
2605
2605
  l && (c = l.baseOptions);
2606
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2607
- e !== void 0 && (d.versionId = e), v(s, d);
2608
- let P = c && c.headers ? c.headers : {};
2609
- return i.headers = { ...p, ...P, ...t.headers }, {
2610
- url: O(s),
2606
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2607
+ e !== void 0 && (d.versionId = e), V(s, d);
2608
+ let b = c && c.headers ? c.headers : {};
2609
+ return i.headers = { ...p, ...b, ...n.headers }, {
2610
+ url: v(s),
2611
2611
  options: i
2612
2612
  };
2613
2613
  },
@@ -2620,22 +2620,22 @@ const se = function(l) {
2620
2620
  * @param {*} [options] Override http request option.
2621
2621
  * @throws {RequiredError}
2622
2622
  */
2623
- listNotebooks: async (r, a, n, e = {}) => {
2623
+ listNotebooks: async (r, a, t, e = {}) => {
2624
2624
  m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", a);
2625
- const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2625
+ const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
2626
2626
  let s;
2627
2627
  l && (s = l.baseOptions);
2628
2628
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2629
- n !== void 0 && (p.versionId = n), v(o, p);
2629
+ t !== void 0 && (p.versionId = t), V(o, p);
2630
2630
  let d = s && s.headers ? s.headers : {};
2631
2631
  return c.headers = { ...i, ...d, ...e.headers }, {
2632
- url: O(o),
2632
+ url: v(o),
2633
2633
  options: c
2634
2634
  };
2635
2635
  }
2636
2636
  };
2637
- }, w = function(l) {
2638
- const r = se(l);
2637
+ }, M = function(l) {
2638
+ const r = ie(l);
2639
2639
  return {
2640
2640
  /**
2641
2641
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -2651,9 +2651,9 @@ const se = function(l) {
2651
2651
  * @param {*} [options] Override http request option.
2652
2652
  * @throws {RequiredError}
2653
2653
  */
2654
- async executeNotebookCell(a, n, e, t, o, s, c, i, p) {
2655
- const d = await r.executeNotebookCell(a, n, e, t, o, s, c, i, p), P = l?.serverIndex ?? 0, y = g["NotebooksApi.executeNotebookCell"]?.[P]?.url;
2656
- return (T, C) => b(d, h, u, l)(T, y || C);
2654
+ async executeNotebookCell(a, t, e, n, o, s, c, i, p) {
2655
+ const d = await r.executeNotebookCell(a, t, e, n, o, s, c, i, p), b = l?.serverIndex ?? 0, y = P["NotebooksApi.executeNotebookCell"]?.[b]?.url;
2656
+ return (w, C) => O(d, h, u, l)(w, y || C);
2657
2657
  },
2658
2658
  /**
2659
2659
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2665,9 +2665,9 @@ const se = function(l) {
2665
2665
  * @param {*} [options] Override http request option.
2666
2666
  * @throws {RequiredError}
2667
2667
  */
2668
- async getNotebook(a, n, e, t, o) {
2669
- const s = await r.getNotebook(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2670
- return (p, d) => b(s, h, u, l)(p, i || d);
2668
+ async getNotebook(a, t, e, n, o) {
2669
+ const s = await r.getNotebook(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2670
+ return (p, d) => O(s, h, u, l)(p, i || d);
2671
2671
  },
2672
2672
  /**
2673
2673
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2678,13 +2678,13 @@ const se = function(l) {
2678
2678
  * @param {*} [options] Override http request option.
2679
2679
  * @throws {RequiredError}
2680
2680
  */
2681
- async listNotebooks(a, n, e, t) {
2682
- const o = await r.listNotebooks(a, n, e, t), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2683
- return (i, p) => b(o, h, u, l)(i, c || p);
2681
+ async listNotebooks(a, t, e, n) {
2682
+ const o = await r.listNotebooks(a, t, e, n), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2683
+ return (i, p) => O(o, h, u, l)(i, c || p);
2684
2684
  }
2685
2685
  };
2686
- }, We = function(l, r, a) {
2687
- const n = w(l);
2686
+ }, Je = function(l, r, a) {
2687
+ const t = M(l);
2688
2688
  return {
2689
2689
  /**
2690
2690
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -2700,8 +2700,8 @@ const se = function(l) {
2700
2700
  * @param {*} [options] Override http request option.
2701
2701
  * @throws {RequiredError}
2702
2702
  */
2703
- executeNotebookCell(e, t, o, s, c, i, p, d, P) {
2704
- return n.executeNotebookCell(e, t, o, s, c, i, p, d, P).then((y) => y(a, r));
2703
+ executeNotebookCell(e, n, o, s, c, i, p, d, b) {
2704
+ return t.executeNotebookCell(e, n, o, s, c, i, p, d, b).then((y) => y(a, r));
2705
2705
  },
2706
2706
  /**
2707
2707
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2713,8 +2713,8 @@ const se = function(l) {
2713
2713
  * @param {*} [options] Override http request option.
2714
2714
  * @throws {RequiredError}
2715
2715
  */
2716
- getNotebook(e, t, o, s, c) {
2717
- return n.getNotebook(e, t, o, s, c).then((i) => i(a, r));
2716
+ getNotebook(e, n, o, s, c) {
2717
+ return t.getNotebook(e, n, o, s, c).then((i) => i(a, r));
2718
2718
  },
2719
2719
  /**
2720
2720
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2725,12 +2725,12 @@ const se = function(l) {
2725
2725
  * @param {*} [options] Override http request option.
2726
2726
  * @throws {RequiredError}
2727
2727
  */
2728
- listNotebooks(e, t, o, s) {
2729
- return n.listNotebooks(e, t, o, s).then((c) => c(a, r));
2728
+ listNotebooks(e, n, o, s) {
2729
+ return t.listNotebooks(e, n, o, s).then((c) => c(a, r));
2730
2730
  }
2731
2731
  };
2732
2732
  };
2733
- class ce extends k {
2733
+ class pe extends k {
2734
2734
  /**
2735
2735
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2736
2736
  * @summary Execute a specific notebook cell
@@ -2746,8 +2746,8 @@ class ce extends k {
2746
2746
  * @throws {RequiredError}
2747
2747
  * @memberof NotebooksApi
2748
2748
  */
2749
- executeNotebookCell(r, a, n, e, t, o, s, c, i) {
2750
- return w(this.configuration).executeNotebookCell(r, a, n, e, t, o, s, c, i).then((p) => p(this.axios, this.basePath));
2749
+ executeNotebookCell(r, a, t, e, n, o, s, c, i) {
2750
+ return M(this.configuration).executeNotebookCell(r, a, t, e, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
2751
2751
  }
2752
2752
  /**
2753
2753
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2760,8 +2760,8 @@ class ce extends k {
2760
2760
  * @throws {RequiredError}
2761
2761
  * @memberof NotebooksApi
2762
2762
  */
2763
- getNotebook(r, a, n, e, t) {
2764
- return w(this.configuration).getNotebook(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2763
+ getNotebook(r, a, t, e, n) {
2764
+ return M(this.configuration).getNotebook(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2765
2765
  }
2766
2766
  /**
2767
2767
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2773,14 +2773,14 @@ class ce extends k {
2773
2773
  * @throws {RequiredError}
2774
2774
  * @memberof NotebooksApi
2775
2775
  */
2776
- listNotebooks(r, a, n, e) {
2777
- return w(this.configuration).listNotebooks(r, a, n, e).then((t) => t(this.axios, this.basePath));
2776
+ listNotebooks(r, a, t, e) {
2777
+ return M(this.configuration).listNotebooks(r, a, t, e).then((n) => n(this.axios, this.basePath));
2778
2778
  }
2779
2779
  }
2780
- const Ge = {
2780
+ const Ke = {
2781
2781
  True: "true",
2782
2782
  False: "false"
2783
- }, le = function(l) {
2783
+ }, me = function(l) {
2784
2784
  return {
2785
2785
  /**
2786
2786
  * 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.
@@ -2791,16 +2791,16 @@ const Ge = {
2791
2791
  * @param {*} [options] Override http request option.
2792
2792
  * @throws {RequiredError}
2793
2793
  */
2794
- createPackage: async (r, a, n, e = {}) => {
2794
+ createPackage: async (r, a, t, e = {}) => {
2795
2795
  m("createPackage", "environmentName", r), m("createPackage", "_package", a);
2796
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(t, V);
2796
+ const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(n, g);
2797
2797
  let s;
2798
2798
  l && (s = l.baseOptions);
2799
2799
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2800
- n !== void 0 && (p.autoLoadManifest = n), i["Content-Type"] = "application/json", v(o, p);
2800
+ t !== void 0 && (p.autoLoadManifest = t), i["Content-Type"] = "application/json", V(o, p);
2801
2801
  let d = s && s.headers ? s.headers : {};
2802
2802
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(a, c, l), {
2803
- url: O(o),
2803
+ url: v(o),
2804
2804
  options: c
2805
2805
  };
2806
2806
  },
@@ -2812,16 +2812,16 @@ const Ge = {
2812
2812
  * @param {*} [options] Override http request option.
2813
2813
  * @throws {RequiredError}
2814
2814
  */
2815
- deletePackage: async (r, a, n = {}) => {
2815
+ deletePackage: async (r, a, t = {}) => {
2816
2816
  m("deletePackage", "environmentName", r), m("deletePackage", "packageName", a);
2817
- const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
2817
+ const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
2818
2818
  let o;
2819
2819
  l && (o = l.baseOptions);
2820
- const s = { method: "DELETE", ...o, ...n }, c = {};
2821
- v(t, {});
2820
+ const s = { method: "DELETE", ...o, ...t }, c = {};
2821
+ V(n, {});
2822
2822
  let p = o && o.headers ? o.headers : {};
2823
- return s.headers = { ...c, ...p, ...n.headers }, {
2824
- url: O(t),
2823
+ return s.headers = { ...c, ...p, ...t.headers }, {
2824
+ url: v(n),
2825
2825
  options: s
2826
2826
  };
2827
2827
  },
@@ -2835,16 +2835,16 @@ const Ge = {
2835
2835
  * @param {*} [options] Override http request option.
2836
2836
  * @throws {RequiredError}
2837
2837
  */
2838
- getPackage: async (r, a, n, e, t = {}) => {
2838
+ getPackage: async (r, a, t, e, n = {}) => {
2839
2839
  m("getPackage", "environmentName", r), m("getPackage", "packageName", a);
2840
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2840
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, g);
2841
2841
  let c;
2842
2842
  l && (c = l.baseOptions);
2843
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2844
- n !== void 0 && (d.versionId = n), e !== void 0 && (d.reload = e), v(s, d);
2845
- let P = c && c.headers ? c.headers : {};
2846
- return i.headers = { ...p, ...P, ...t.headers }, {
2847
- url: O(s),
2843
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2844
+ t !== void 0 && (d.versionId = t), e !== void 0 && (d.reload = e), V(s, d);
2845
+ let b = c && c.headers ? c.headers : {};
2846
+ return i.headers = { ...p, ...b, ...n.headers }, {
2847
+ url: v(s),
2848
2848
  options: i
2849
2849
  };
2850
2850
  },
@@ -2857,14 +2857,14 @@ const Ge = {
2857
2857
  */
2858
2858
  listPackages: async (r, a = {}) => {
2859
2859
  m("listPackages", "environmentName", r);
2860
- const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
2861
- let t;
2862
- l && (t = l.baseOptions);
2863
- const o = { method: "GET", ...t, ...a }, s = {};
2864
- v(e, {});
2865
- let i = t && t.headers ? t.headers : {};
2860
+ const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, g);
2861
+ let n;
2862
+ l && (n = l.baseOptions);
2863
+ const o = { method: "GET", ...n, ...a }, s = {};
2864
+ V(e, {});
2865
+ let i = n && n.headers ? n.headers : {};
2866
2866
  return o.headers = { ...s, ...i, ...a.headers }, {
2867
- url: O(e),
2867
+ url: v(e),
2868
2868
  options: o
2869
2869
  };
2870
2870
  },
@@ -2877,22 +2877,22 @@ const Ge = {
2877
2877
  * @param {*} [options] Override http request option.
2878
2878
  * @throws {RequiredError}
2879
2879
  */
2880
- updatePackage: async (r, a, n, e = {}) => {
2881
- m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", n);
2882
- const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2880
+ updatePackage: async (r, a, t, e = {}) => {
2881
+ m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", t);
2882
+ const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
2883
2883
  let s;
2884
2884
  l && (s = l.baseOptions);
2885
2885
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
2886
- i["Content-Type"] = "application/json", v(o, p);
2886
+ i["Content-Type"] = "application/json", V(o, p);
2887
2887
  let d = s && s.headers ? s.headers : {};
2888
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
2889
- url: O(o),
2888
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
2889
+ url: v(o),
2890
2890
  options: c
2891
2891
  };
2892
2892
  }
2893
2893
  };
2894
2894
  }, R = function(l) {
2895
- const r = le(l);
2895
+ const r = me(l);
2896
2896
  return {
2897
2897
  /**
2898
2898
  * 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.
@@ -2903,9 +2903,9 @@ const Ge = {
2903
2903
  * @param {*} [options] Override http request option.
2904
2904
  * @throws {RequiredError}
2905
2905
  */
2906
- async createPackage(a, n, e, t) {
2907
- const o = await r.createPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.createPackage"]?.[s]?.url;
2908
- return (i, p) => b(o, h, u, l)(i, c || p);
2906
+ async createPackage(a, t, e, n) {
2907
+ const o = await r.createPackage(a, t, e, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.createPackage"]?.[s]?.url;
2908
+ return (i, p) => O(o, h, u, l)(i, c || p);
2909
2909
  },
2910
2910
  /**
2911
2911
  * 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.
@@ -2915,9 +2915,9 @@ const Ge = {
2915
2915
  * @param {*} [options] Override http request option.
2916
2916
  * @throws {RequiredError}
2917
2917
  */
2918
- async deletePackage(a, n, e) {
2919
- const t = await r.deletePackage(a, n, e), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2920
- return (c, i) => b(t, h, u, l)(c, s || i);
2918
+ async deletePackage(a, t, e) {
2919
+ const n = await r.deletePackage(a, t, e), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
2920
+ return (c, i) => O(n, h, u, l)(c, s || i);
2921
2921
  },
2922
2922
  /**
2923
2923
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -2929,9 +2929,9 @@ const Ge = {
2929
2929
  * @param {*} [options] Override http request option.
2930
2930
  * @throws {RequiredError}
2931
2931
  */
2932
- async getPackage(a, n, e, t, o) {
2933
- const s = await r.getPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2934
- return (p, d) => b(s, h, u, l)(p, i || d);
2932
+ async getPackage(a, t, e, n, o) {
2933
+ const s = await r.getPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
2934
+ return (p, d) => O(s, h, u, l)(p, i || d);
2935
2935
  },
2936
2936
  /**
2937
2937
  * 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.
@@ -2940,9 +2940,9 @@ const Ge = {
2940
2940
  * @param {*} [options] Override http request option.
2941
2941
  * @throws {RequiredError}
2942
2942
  */
2943
- async listPackages(a, n) {
2944
- const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[t]?.url;
2945
- return (s, c) => b(e, h, u, l)(s, o || c);
2943
+ async listPackages(a, t) {
2944
+ const e = await r.listPackages(a, t), n = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[n]?.url;
2945
+ return (s, c) => O(e, h, u, l)(s, o || c);
2946
2946
  },
2947
2947
  /**
2948
2948
  * 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.
@@ -2953,13 +2953,13 @@ const Ge = {
2953
2953
  * @param {*} [options] Override http request option.
2954
2954
  * @throws {RequiredError}
2955
2955
  */
2956
- async updatePackage(a, n, e, t) {
2957
- const o = await r.updatePackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2958
- return (i, p) => b(o, h, u, l)(i, c || p);
2956
+ async updatePackage(a, t, e, n) {
2957
+ const o = await r.updatePackage(a, t, e, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
2958
+ return (i, p) => O(o, h, u, l)(i, c || p);
2959
2959
  }
2960
2960
  };
2961
- }, _e = function(l, r, a) {
2962
- const n = R(l);
2961
+ }, Ye = function(l, r, a) {
2962
+ const t = R(l);
2963
2963
  return {
2964
2964
  /**
2965
2965
  * 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.
@@ -2970,8 +2970,8 @@ const Ge = {
2970
2970
  * @param {*} [options] Override http request option.
2971
2971
  * @throws {RequiredError}
2972
2972
  */
2973
- createPackage(e, t, o, s) {
2974
- return n.createPackage(e, t, o, s).then((c) => c(a, r));
2973
+ createPackage(e, n, o, s) {
2974
+ return t.createPackage(e, n, o, s).then((c) => c(a, r));
2975
2975
  },
2976
2976
  /**
2977
2977
  * 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.
@@ -2981,8 +2981,8 @@ const Ge = {
2981
2981
  * @param {*} [options] Override http request option.
2982
2982
  * @throws {RequiredError}
2983
2983
  */
2984
- deletePackage(e, t, o) {
2985
- return n.deletePackage(e, t, o).then((s) => s(a, r));
2984
+ deletePackage(e, n, o) {
2985
+ return t.deletePackage(e, n, o).then((s) => s(a, r));
2986
2986
  },
2987
2987
  /**
2988
2988
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -2994,8 +2994,8 @@ const Ge = {
2994
2994
  * @param {*} [options] Override http request option.
2995
2995
  * @throws {RequiredError}
2996
2996
  */
2997
- getPackage(e, t, o, s, c) {
2998
- return n.getPackage(e, t, o, s, c).then((i) => i(a, r));
2997
+ getPackage(e, n, o, s, c) {
2998
+ return t.getPackage(e, n, o, s, c).then((i) => i(a, r));
2999
2999
  },
3000
3000
  /**
3001
3001
  * 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.
@@ -3004,8 +3004,8 @@ const Ge = {
3004
3004
  * @param {*} [options] Override http request option.
3005
3005
  * @throws {RequiredError}
3006
3006
  */
3007
- listPackages(e, t) {
3008
- return n.listPackages(e, t).then((o) => o(a, r));
3007
+ listPackages(e, n) {
3008
+ return t.listPackages(e, n).then((o) => o(a, r));
3009
3009
  },
3010
3010
  /**
3011
3011
  * 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.
@@ -3016,12 +3016,12 @@ const Ge = {
3016
3016
  * @param {*} [options] Override http request option.
3017
3017
  * @throws {RequiredError}
3018
3018
  */
3019
- updatePackage(e, t, o, s) {
3020
- return n.updatePackage(e, t, o, s).then((c) => c(a, r));
3019
+ updatePackage(e, n, o, s) {
3020
+ return t.updatePackage(e, n, o, s).then((c) => c(a, r));
3021
3021
  }
3022
3022
  };
3023
3023
  };
3024
- class ie extends k {
3024
+ class de extends k {
3025
3025
  /**
3026
3026
  * 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.
3027
3027
  * @summary Create a new package
@@ -3032,8 +3032,8 @@ class ie extends k {
3032
3032
  * @throws {RequiredError}
3033
3033
  * @memberof PackagesApi
3034
3034
  */
3035
- createPackage(r, a, n, e) {
3036
- return R(this.configuration).createPackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
3035
+ createPackage(r, a, t, e) {
3036
+ return R(this.configuration).createPackage(r, a, t, e).then((n) => n(this.axios, this.basePath));
3037
3037
  }
3038
3038
  /**
3039
3039
  * 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.
@@ -3044,8 +3044,8 @@ class ie extends k {
3044
3044
  * @throws {RequiredError}
3045
3045
  * @memberof PackagesApi
3046
3046
  */
3047
- deletePackage(r, a, n) {
3048
- return R(this.configuration).deletePackage(r, a, n).then((e) => e(this.axios, this.basePath));
3047
+ deletePackage(r, a, t) {
3048
+ return R(this.configuration).deletePackage(r, a, t).then((e) => e(this.axios, this.basePath));
3049
3049
  }
3050
3050
  /**
3051
3051
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -3058,8 +3058,8 @@ class ie extends k {
3058
3058
  * @throws {RequiredError}
3059
3059
  * @memberof PackagesApi
3060
3060
  */
3061
- getPackage(r, a, n, e, t) {
3062
- return R(this.configuration).getPackage(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
3061
+ getPackage(r, a, t, e, n) {
3062
+ return R(this.configuration).getPackage(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
3063
3063
  }
3064
3064
  /**
3065
3065
  * 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.
@@ -3070,7 +3070,7 @@ class ie extends k {
3070
3070
  * @memberof PackagesApi
3071
3071
  */
3072
3072
  listPackages(r, a) {
3073
- return R(this.configuration).listPackages(r, a).then((n) => n(this.axios, this.basePath));
3073
+ return R(this.configuration).listPackages(r, a).then((t) => t(this.axios, this.basePath));
3074
3074
  }
3075
3075
  /**
3076
3076
  * 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.
@@ -3082,11 +3082,81 @@ class ie extends k {
3082
3082
  * @throws {RequiredError}
3083
3083
  * @memberof PackagesApi
3084
3084
  */
3085
- updatePackage(r, a, n, e) {
3086
- return R(this.configuration).updatePackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
3085
+ updatePackage(r, a, t, e) {
3086
+ return R(this.configuration).updatePackage(r, a, t, e).then((n) => n(this.axios, this.basePath));
3087
3087
  }
3088
3088
  }
3089
- const pe = function(l) {
3089
+ const he = function(l) {
3090
+ return {
3091
+ /**
3092
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3093
+ * @summary List package pages
3094
+ * @param {string} environmentName Name of the environment
3095
+ * @param {string} packageName Name of the package
3096
+ * @param {*} [options] Override http request option.
3097
+ * @throws {RequiredError}
3098
+ */
3099
+ listPages: async (r, a, t = {}) => {
3100
+ m("listPages", "environmentName", r), m("listPages", "packageName", a);
3101
+ const e = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
3102
+ let o;
3103
+ l && (o = l.baseOptions);
3104
+ const s = { method: "GET", ...o, ...t }, c = {};
3105
+ V(n, {});
3106
+ let p = o && o.headers ? o.headers : {};
3107
+ return s.headers = { ...c, ...p, ...t.headers }, {
3108
+ url: v(n),
3109
+ options: s
3110
+ };
3111
+ }
3112
+ };
3113
+ }, z = function(l) {
3114
+ const r = he(l);
3115
+ return {
3116
+ /**
3117
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3118
+ * @summary List package pages
3119
+ * @param {string} environmentName Name of the environment
3120
+ * @param {string} packageName Name of the package
3121
+ * @param {*} [options] Override http request option.
3122
+ * @throws {RequiredError}
3123
+ */
3124
+ async listPages(a, t, e) {
3125
+ const n = await r.listPages(a, t, e), o = l?.serverIndex ?? 0, s = P["PagesApi.listPages"]?.[o]?.url;
3126
+ return (c, i) => O(n, h, u, l)(c, s || i);
3127
+ }
3128
+ };
3129
+ }, Xe = function(l, r, a) {
3130
+ const t = z(l);
3131
+ return {
3132
+ /**
3133
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3134
+ * @summary List package pages
3135
+ * @param {string} environmentName Name of the environment
3136
+ * @param {string} packageName Name of the package
3137
+ * @param {*} [options] Override http request option.
3138
+ * @throws {RequiredError}
3139
+ */
3140
+ listPages(e, n, o) {
3141
+ return t.listPages(e, n, o).then((s) => s(a, r));
3142
+ }
3143
+ };
3144
+ };
3145
+ class ue extends k {
3146
+ /**
3147
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3148
+ * @summary List package pages
3149
+ * @param {string} environmentName Name of the environment
3150
+ * @param {string} packageName Name of the package
3151
+ * @param {*} [options] Override http request option.
3152
+ * @throws {RequiredError}
3153
+ * @memberof PagesApi
3154
+ */
3155
+ listPages(r, a, t) {
3156
+ return z(this.configuration).listPages(r, a, t).then((e) => e(this.axios, this.basePath));
3157
+ }
3158
+ }
3159
+ const Pe = function(l) {
3090
3160
  return {
3091
3161
  /**
3092
3162
  * 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.
@@ -3095,20 +3165,20 @@ const pe = function(l) {
3095
3165
  * @throws {RequiredError}
3096
3166
  */
3097
3167
  getStatus: async (r = {}) => {
3098
- const a = "/status", n = new URL(a, V);
3168
+ const a = "/status", t = new URL(a, g);
3099
3169
  let e;
3100
3170
  l && (e = l.baseOptions);
3101
- const t = { method: "GET", ...e, ...r }, o = {};
3102
- v(n, {});
3171
+ const n = { method: "GET", ...e, ...r }, o = {};
3172
+ V(t, {});
3103
3173
  let c = e && e.headers ? e.headers : {};
3104
- return t.headers = { ...o, ...c, ...r.headers }, {
3105
- url: O(n),
3106
- options: t
3174
+ return n.headers = { ...o, ...c, ...r.headers }, {
3175
+ url: v(t),
3176
+ options: n
3107
3177
  };
3108
3178
  }
3109
3179
  };
3110
- }, z = function(l) {
3111
- const r = pe(l);
3180
+ }, j = function(l) {
3181
+ const r = Pe(l);
3112
3182
  return {
3113
3183
  /**
3114
3184
  * 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.
@@ -3117,12 +3187,12 @@ const pe = function(l) {
3117
3187
  * @throws {RequiredError}
3118
3188
  */
3119
3189
  async getStatus(a) {
3120
- const n = await r.getStatus(a), e = l?.serverIndex ?? 0, t = g["PublisherApi.getStatus"]?.[e]?.url;
3121
- return (o, s) => b(n, h, u, l)(o, t || s);
3190
+ const t = await r.getStatus(a), e = l?.serverIndex ?? 0, n = P["PublisherApi.getStatus"]?.[e]?.url;
3191
+ return (o, s) => O(t, h, u, l)(o, n || s);
3122
3192
  }
3123
3193
  };
3124
- }, Je = function(l, r, a) {
3125
- const n = z(l);
3194
+ }, Ze = function(l, r, a) {
3195
+ const t = j(l);
3126
3196
  return {
3127
3197
  /**
3128
3198
  * 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.
@@ -3131,11 +3201,11 @@ const pe = function(l) {
3131
3201
  * @throws {RequiredError}
3132
3202
  */
3133
3203
  getStatus(e) {
3134
- return n.getStatus(e).then((t) => t(a, r));
3204
+ return t.getStatus(e).then((n) => n(a, r));
3135
3205
  }
3136
3206
  };
3137
3207
  };
3138
- class me extends k {
3208
+ class ge extends k {
3139
3209
  /**
3140
3210
  * 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.
3141
3211
  * @summary Get server status and health information
@@ -3144,10 +3214,10 @@ class me extends k {
3144
3214
  * @memberof PublisherApi
3145
3215
  */
3146
3216
  getStatus(r) {
3147
- return z(this.configuration).getStatus(r).then((a) => a(this.axios, this.basePath));
3217
+ return j(this.configuration).getStatus(r).then((a) => a(this.axios, this.basePath));
3148
3218
  }
3149
3219
  }
3150
- const de = function(l) {
3220
+ const Ve = function(l) {
3151
3221
  return {
3152
3222
  /**
3153
3223
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3156,15 +3226,15 @@ const de = function(l) {
3156
3226
  * @throws {RequiredError}
3157
3227
  */
3158
3228
  getWatchStatus: async (r = {}) => {
3159
- const a = "/watch-mode/status", n = new URL(a, V);
3229
+ const a = "/watch-mode/status", t = new URL(a, g);
3160
3230
  let e;
3161
3231
  l && (e = l.baseOptions);
3162
- const t = { method: "GET", ...e, ...r }, o = {};
3163
- v(n, {});
3232
+ const n = { method: "GET", ...e, ...r }, o = {};
3233
+ V(t, {});
3164
3234
  let c = e && e.headers ? e.headers : {};
3165
- return t.headers = { ...o, ...c, ...r.headers }, {
3166
- url: O(n),
3167
- options: t
3235
+ return n.headers = { ...o, ...c, ...r.headers }, {
3236
+ url: v(t),
3237
+ options: n
3168
3238
  };
3169
3239
  },
3170
3240
  /**
@@ -3176,14 +3246,14 @@ const de = function(l) {
3176
3246
  */
3177
3247
  startWatching: async (r, a = {}) => {
3178
3248
  m("startWatching", "startWatchRequest", r);
3179
- const n = "/watch-mode/start", e = new URL(n, V);
3180
- let t;
3181
- l && (t = l.baseOptions);
3182
- const o = { method: "POST", ...t, ...a }, s = {}, c = {};
3183
- s["Content-Type"] = "application/json", v(e, c);
3184
- let i = t && t.headers ? t.headers : {};
3249
+ const t = "/watch-mode/start", e = new URL(t, g);
3250
+ let n;
3251
+ l && (n = l.baseOptions);
3252
+ const o = { method: "POST", ...n, ...a }, s = {}, c = {};
3253
+ s["Content-Type"] = "application/json", V(e, c);
3254
+ let i = n && n.headers ? n.headers : {};
3185
3255
  return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
3186
- url: O(e),
3256
+ url: v(e),
3187
3257
  options: o
3188
3258
  };
3189
3259
  },
@@ -3194,20 +3264,41 @@ const de = function(l) {
3194
3264
  * @throws {RequiredError}
3195
3265
  */
3196
3266
  stopWatching: async (r = {}) => {
3197
- const a = "/watch-mode/stop", n = new URL(a, V);
3267
+ const a = "/watch-mode/stop", t = new URL(a, g);
3198
3268
  let e;
3199
3269
  l && (e = l.baseOptions);
3200
- const t = { method: "POST", ...e, ...r }, o = {};
3201
- v(n, {});
3270
+ const n = { method: "POST", ...e, ...r }, o = {};
3271
+ V(t, {});
3202
3272
  let c = e && e.headers ? e.headers : {};
3203
- return t.headers = { ...o, ...c, ...r.headers }, {
3204
- url: O(n),
3205
- options: t
3273
+ return n.headers = { ...o, ...c, ...r.headers }, {
3274
+ url: v(t),
3275
+ options: n
3276
+ };
3277
+ },
3278
+ /**
3279
+ * 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.
3280
+ * @summary Stream package change events (SSE)
3281
+ * @param {string} environmentName Name of the environment
3282
+ * @param {string} packageName Name of the package
3283
+ * @param {*} [options] Override http request option.
3284
+ * @throws {RequiredError}
3285
+ */
3286
+ streamPackageEvents: async (r, a, t = {}) => {
3287
+ m("streamPackageEvents", "environmentName", r), m("streamPackageEvents", "packageName", a);
3288
+ const e = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
3289
+ let o;
3290
+ l && (o = l.baseOptions);
3291
+ const s = { method: "GET", ...o, ...t }, c = {};
3292
+ V(n, {});
3293
+ let p = o && o.headers ? o.headers : {};
3294
+ return s.headers = { ...c, ...p, ...t.headers }, {
3295
+ url: v(n),
3296
+ options: s
3206
3297
  };
3207
3298
  }
3208
3299
  };
3209
- }, M = function(l) {
3210
- const r = de(l);
3300
+ }, T = function(l) {
3301
+ const r = Ve(l);
3211
3302
  return {
3212
3303
  /**
3213
3304
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3216,8 +3307,8 @@ const de = function(l) {
3216
3307
  * @throws {RequiredError}
3217
3308
  */
3218
3309
  async getWatchStatus(a) {
3219
- const n = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.getWatchStatus"]?.[e]?.url;
3220
- return (o, s) => b(n, h, u, l)(o, t || s);
3310
+ const t = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, n = P["WatchModeApi.getWatchStatus"]?.[e]?.url;
3311
+ return (o, s) => O(t, h, u, l)(o, n || s);
3221
3312
  },
3222
3313
  /**
3223
3314
  * 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.
@@ -3226,9 +3317,9 @@ const de = function(l) {
3226
3317
  * @param {*} [options] Override http request option.
3227
3318
  * @throws {RequiredError}
3228
3319
  */
3229
- async startWatching(a, n) {
3230
- const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[t]?.url;
3231
- return (s, c) => b(e, h, u, l)(s, o || c);
3320
+ async startWatching(a, t) {
3321
+ const e = await r.startWatching(a, t), n = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[n]?.url;
3322
+ return (s, c) => O(e, h, u, l)(s, o || c);
3232
3323
  },
3233
3324
  /**
3234
3325
  * 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.
@@ -3237,12 +3328,24 @@ const de = function(l) {
3237
3328
  * @throws {RequiredError}
3238
3329
  */
3239
3330
  async stopWatching(a) {
3240
- const n = await r.stopWatching(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.stopWatching"]?.[e]?.url;
3241
- return (o, s) => b(n, h, u, l)(o, t || s);
3331
+ const t = await r.stopWatching(a), e = l?.serverIndex ?? 0, n = P["WatchModeApi.stopWatching"]?.[e]?.url;
3332
+ return (o, s) => O(t, h, u, l)(o, n || s);
3333
+ },
3334
+ /**
3335
+ * 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.
3336
+ * @summary Stream package change events (SSE)
3337
+ * @param {string} environmentName Name of the environment
3338
+ * @param {string} packageName Name of the package
3339
+ * @param {*} [options] Override http request option.
3340
+ * @throws {RequiredError}
3341
+ */
3342
+ async streamPackageEvents(a, t, e) {
3343
+ const n = await r.streamPackageEvents(a, t, e), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3344
+ return (c, i) => O(n, h, u, l)(c, s || i);
3242
3345
  }
3243
3346
  };
3244
- }, Ke = function(l, r, a) {
3245
- const n = M(l);
3347
+ }, ea = function(l, r, a) {
3348
+ const t = T(l);
3246
3349
  return {
3247
3350
  /**
3248
3351
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3251,7 +3354,7 @@ const de = function(l) {
3251
3354
  * @throws {RequiredError}
3252
3355
  */
3253
3356
  getWatchStatus(e) {
3254
- return n.getWatchStatus(e).then((t) => t(a, r));
3357
+ return t.getWatchStatus(e).then((n) => n(a, r));
3255
3358
  },
3256
3359
  /**
3257
3360
  * 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.
@@ -3260,8 +3363,8 @@ const de = function(l) {
3260
3363
  * @param {*} [options] Override http request option.
3261
3364
  * @throws {RequiredError}
3262
3365
  */
3263
- startWatching(e, t) {
3264
- return n.startWatching(e, t).then((o) => o(a, r));
3366
+ startWatching(e, n) {
3367
+ return t.startWatching(e, n).then((o) => o(a, r));
3265
3368
  },
3266
3369
  /**
3267
3370
  * 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.
@@ -3270,11 +3373,22 @@ const de = function(l) {
3270
3373
  * @throws {RequiredError}
3271
3374
  */
3272
3375
  stopWatching(e) {
3273
- return n.stopWatching(e).then((t) => t(a, r));
3376
+ return t.stopWatching(e).then((n) => n(a, r));
3377
+ },
3378
+ /**
3379
+ * 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.
3380
+ * @summary Stream package change events (SSE)
3381
+ * @param {string} environmentName Name of the environment
3382
+ * @param {string} packageName Name of the package
3383
+ * @param {*} [options] Override http request option.
3384
+ * @throws {RequiredError}
3385
+ */
3386
+ streamPackageEvents(e, n, o) {
3387
+ return t.streamPackageEvents(e, n, o).then((s) => s(a, r));
3274
3388
  }
3275
3389
  };
3276
3390
  };
3277
- class he extends k {
3391
+ class ve extends k {
3278
3392
  /**
3279
3393
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
3280
3394
  * @summary Get watch mode status
@@ -3283,7 +3397,7 @@ class he extends k {
3283
3397
  * @memberof WatchModeApi
3284
3398
  */
3285
3399
  getWatchStatus(r) {
3286
- return M(this.configuration).getWatchStatus(r).then((a) => a(this.axios, this.basePath));
3400
+ return T(this.configuration).getWatchStatus(r).then((a) => a(this.axios, this.basePath));
3287
3401
  }
3288
3402
  /**
3289
3403
  * 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.
@@ -3294,7 +3408,7 @@ class he extends k {
3294
3408
  * @memberof WatchModeApi
3295
3409
  */
3296
3410
  startWatching(r, a) {
3297
- return M(this.configuration).startWatching(r, a).then((n) => n(this.axios, this.basePath));
3411
+ return T(this.configuration).startWatching(r, a).then((t) => t(this.axios, this.basePath));
3298
3412
  }
3299
3413
  /**
3300
3414
  * 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.
@@ -3304,10 +3418,22 @@ class he extends k {
3304
3418
  * @memberof WatchModeApi
3305
3419
  */
3306
3420
  stopWatching(r) {
3307
- return M(this.configuration).stopWatching(r).then((a) => a(this.axios, this.basePath));
3421
+ return T(this.configuration).stopWatching(r).then((a) => a(this.axios, this.basePath));
3422
+ }
3423
+ /**
3424
+ * 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.
3425
+ * @summary Stream package change events (SSE)
3426
+ * @param {string} environmentName Name of the environment
3427
+ * @param {string} packageName Name of the package
3428
+ * @param {*} [options] Override http request option.
3429
+ * @throws {RequiredError}
3430
+ * @memberof WatchModeApi
3431
+ */
3432
+ streamPackageEvents(r, a, t) {
3433
+ return T(this.configuration).streamPackageEvents(r, a, t).then((e) => e(this.axios, this.basePath));
3308
3434
  }
3309
3435
  }
3310
- class ue {
3436
+ class Oe {
3311
3437
  /**
3312
3438
  * parameter for apiKey security
3313
3439
  * @param name security name
@@ -3387,7 +3513,7 @@ class ue {
3387
3513
  return r !== null && (a.test(r) || r.toLowerCase() === "application/json-patch+json");
3388
3514
  }
3389
3515
  }
3390
- const Pe = new L({
3516
+ const be = new H({
3391
3517
  defaultOptions: {
3392
3518
  queries: {
3393
3519
  retry: !1,
@@ -3400,38 +3526,45 @@ const Pe = new L({
3400
3526
  }
3401
3527
  });
3402
3528
  h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3403
- const j = D(void 0), ge = (l, r) => {
3404
- const a = `${window.location.protocol}//${window.location.host}/api/v0`, n = h.create({
3529
+ const L = W(void 0), Se = (l, r) => {
3530
+ const a = `${window.location.protocol}//${window.location.host}/api/v0`, t = h.create({
3405
3531
  baseURL: l || a,
3406
3532
  withCredentials: !0,
3407
3533
  timeout: 6e5
3408
3534
  });
3409
- n.interceptors.request.use(async (t) => {
3535
+ t.interceptors.request.use(async (n) => {
3410
3536
  const o = await r?.();
3411
- return t.headers.Authorization = o || "", t;
3537
+ return n.headers.Authorization = o || "", n;
3412
3538
  });
3413
- const e = new ue({ basePath: a });
3539
+ const e = new Oe({ basePath: a });
3414
3540
  return {
3415
- models: new oe(e, a, n),
3416
- publisher: new me(e, a, n),
3417
- environments: new ae(e, a, n),
3418
- packages: new ie(e, a, n),
3419
- notebooks: new ce(e, a, n),
3420
- connections: new K(e, a, n),
3421
- databases: new Z(e, a, n),
3422
- watchMode: new he(e, a, n)
3541
+ models: new le(e, a, t),
3542
+ publisher: new ge(e, a, t),
3543
+ environments: new te(e, a, t),
3544
+ packages: new de(e, a, t),
3545
+ pages: new ue(e, a, t),
3546
+ notebooks: new pe(e, a, t),
3547
+ connections: new Y(e, a, t),
3548
+ databases: new ee(e, a, t),
3549
+ materializations: new se(
3550
+ e,
3551
+ a,
3552
+ t
3553
+ ),
3554
+ manifests: new re(e, a, t),
3555
+ watchMode: new ve(e, a, t)
3423
3556
  };
3424
- }, Ye = ({
3557
+ }, aa = ({
3425
3558
  children: l,
3426
3559
  getAccessToken: r,
3427
3560
  baseURL: a,
3428
- mutable: n
3561
+ mutable: t
3429
3562
  }) => {
3430
- const e = W(
3431
- () => ge(a, r),
3563
+ const e = G(
3564
+ () => Se(a, r),
3432
3565
  [a, r]
3433
- ), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = Q(n), [c, i] = Q(!0);
3434
- G(() => {
3566
+ ), n = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = Q(t), [c, i] = Q(!0);
3567
+ _(() => {
3435
3568
  let d = !0;
3436
3569
  return (async () => {
3437
3570
  try {
@@ -3439,92 +3572,96 @@ const j = D(void 0), ge = (l, r) => {
3439
3572
  if (d) {
3440
3573
  const C = y.data?.frozenConfig;
3441
3574
  let A;
3442
- C ? A = !1 : n === void 0 ? A = !0 : A = n, s(A), i(!1);
3575
+ C ? A = !1 : t === void 0 ? A = !0 : A = t, s(A), i(!1);
3443
3576
  }
3444
3577
  } catch (y) {
3445
- console.error("Failed to fetch publisher status:", y), d && (s(n), i(!1));
3578
+ console.error("Failed to fetch publisher status:", y), d && (s(t), i(!1));
3446
3579
  }
3447
3580
  })(), () => {
3448
3581
  d = !1;
3449
3582
  };
3450
- }, [e, n]);
3583
+ }, [e, t]);
3451
3584
  const p = {
3452
- server: t,
3585
+ server: n,
3453
3586
  getAccessToken: r,
3454
3587
  apiClients: e,
3455
3588
  mutable: o,
3456
3589
  isLoadingStatus: c
3457
3590
  };
3458
- return /* @__PURE__ */ $(H, { client: Pe, children: /* @__PURE__ */ $(j.Provider, { value: p, children: l }) });
3459
- }, Xe = () => {
3460
- const l = f(j);
3591
+ return /* @__PURE__ */ $(f, { client: be, children: /* @__PURE__ */ $(L.Provider, { value: p, children: l }) });
3592
+ }, ta = () => {
3593
+ const l = D(L);
3461
3594
  if (l === void 0)
3462
3595
  throw new Error("useServer must be used within a ServerProvider");
3463
3596
  return l;
3464
3597
  };
3465
3598
  export {
3466
- _e as $,
3467
- Se as A,
3468
- ze as B,
3469
- ye as C,
3470
- xe as D,
3471
- ee as E,
3472
- Ne as F,
3473
- je as G,
3474
- ne as H,
3599
+ Ye as $,
3600
+ Ae as A,
3601
+ re as B,
3602
+ Ne as C,
3603
+ we as D,
3604
+ ae as E,
3605
+ Me as F,
3606
+ De as G,
3607
+ oe as H,
3475
3608
  N as I,
3476
- Le as J,
3477
- He as K,
3478
- Re as L,
3479
- Ue as M,
3480
- Te as N,
3481
- fe as O,
3482
- re as P,
3609
+ We as J,
3610
+ se as K,
3611
+ Ee as L,
3612
+ qe as M,
3613
+ $e as N,
3614
+ Ge as O,
3615
+ ce as P,
3483
3616
  U as Q,
3484
- De as R,
3485
- Ye as S,
3486
- oe as T,
3487
- se as U,
3488
- w as V,
3489
- We as W,
3490
- ce as X,
3491
- Ge as Y,
3492
- le as Z,
3617
+ _e as R,
3618
+ aa as S,
3619
+ le as T,
3620
+ ie as U,
3621
+ M as V,
3622
+ Je as W,
3623
+ pe as X,
3624
+ Ke as Y,
3625
+ me as Z,
3493
3626
  R as _,
3494
- Ie as a,
3495
- ie as a0,
3496
- pe as a1,
3627
+ xe as a,
3628
+ de as a0,
3629
+ he as a1,
3497
3630
  z as a2,
3498
- Je as a3,
3499
- me as a4,
3500
- de as a5,
3501
- M as a6,
3502
- Ke as a7,
3503
- he as a8,
3504
- ue as a9,
3505
- ke as b,
3506
- Ce as c,
3507
- Ae as d,
3508
- we as e,
3509
- Me as f,
3510
- Pe as g,
3511
- J as h,
3631
+ Xe as a3,
3632
+ ue as a4,
3633
+ Pe as a5,
3634
+ j as a6,
3635
+ Ze as a7,
3636
+ ge as a8,
3637
+ Ve as a9,
3638
+ T as aa,
3639
+ ea as ab,
3640
+ ve as ac,
3641
+ Oe as ad,
3642
+ Re as b,
3643
+ Ue as c,
3644
+ Te as d,
3645
+ Qe as e,
3646
+ Be as f,
3647
+ be as g,
3648
+ K as h,
3512
3649
  S as i,
3513
- Ee as j,
3514
- K as k,
3515
- Y as l,
3650
+ Fe as j,
3651
+ Y as k,
3652
+ X as l,
3516
3653
  B as m,
3517
- qe as n,
3518
- $e as o,
3519
- X as p,
3654
+ ze as n,
3655
+ je as o,
3656
+ Z as p,
3520
3657
  F as q,
3521
- Qe as r,
3522
- Z as s,
3658
+ Le as r,
3659
+ ee as s,
3523
3660
  x as t,
3524
- Xe as u,
3525
- Be as v,
3526
- ae as w,
3527
- te as x,
3661
+ ta as u,
3662
+ He as v,
3663
+ te as w,
3664
+ ne as x,
3528
3665
  q as y,
3529
- Fe as z
3666
+ fe as z
3530
3667
  };