@malloy-publisher/sdk 0.0.219 → 0.0.220

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 (60) hide show
  1. package/dist/ServerProvider-C5fRNp_p.cjs.js +1 -0
  2. package/dist/{ServerProvider-DaYKdCxq.es.js → ServerProvider-DP5VyYD-.es.js} +1419 -924
  3. package/dist/client/api.d.ts +365 -12
  4. package/dist/client/index.cjs.js +1 -1
  5. package/dist/client/index.es.js +22 -21
  6. package/dist/components/Materializations/ManifestView.d.ts +1 -1
  7. package/dist/components/ServerProvider.d.ts +12 -0
  8. package/dist/components/highlighter.d.ts +6 -1
  9. package/dist/{core-BiGj7BML.es.js → core-DFvqRVqM.es.js} +1 -1
  10. package/dist/{core-CnTkTGYk.cjs.js → core-Dqqyj1Tc.cjs.js} +1 -1
  11. package/dist/github-dark-BKL9xNgN.cjs.js +1 -0
  12. package/dist/github-dark-DenFmJkN.es.js +4 -0
  13. package/dist/index-BG4wWx4I.cjs.js +307 -0
  14. package/dist/{index-BTfp6uRs.es.js → index-fSSQGelK.es.js} +13617 -13497
  15. package/dist/index.cjs.js +1 -1
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.es.js +46 -37
  18. package/dist/theme/ThemeContext.d.ts +45 -0
  19. package/dist/theme/buildMalloyExplicitTheme.d.ts +34 -0
  20. package/dist/theme/buildTableCssVars.d.ts +25 -0
  21. package/dist/theme/buildVegaThemeOverride.d.ts +16 -0
  22. package/dist/theme/defaults.d.ts +7 -0
  23. package/dist/theme/index.d.ts +8 -0
  24. package/dist/theme/keys.d.ts +20 -0
  25. package/dist/theme/readChartAnnotations.d.ts +23 -0
  26. package/dist/theme/resolveTheme.d.ts +22 -0
  27. package/dist/theme/types.d.ts +61 -0
  28. package/package.json +7 -5
  29. package/src/components/AnalyzePackageButton.tsx +6 -3
  30. package/src/components/Environment/Packages.tsx +6 -3
  31. package/src/components/Home/AddEnvironmentDialog.tsx +1 -1
  32. package/src/components/Home/Home.tsx +6 -3
  33. package/src/components/Materializations/ManifestView.tsx +4 -4
  34. package/src/components/Materializations/MaterializationDetailDialog.tsx +2 -2
  35. package/src/components/Model/ModelCell.tsx +4 -2
  36. package/src/components/Notebook/NotebookCell.tsx +36 -18
  37. package/src/components/Package/Package.tsx +8 -3
  38. package/src/components/RenderedResult/RenderedResult.tsx +253 -31
  39. package/src/components/ServerProvider.tsx +142 -46
  40. package/src/components/Workbook/MutableCell.tsx +7 -5
  41. package/src/components/Workbook/Workbook.tsx +1 -1
  42. package/src/components/highlighter.ts +19 -5
  43. package/src/components/styles.ts +19 -18
  44. package/src/index.ts +1 -0
  45. package/src/theme/ThemeContext.tsx +83 -0
  46. package/src/theme/buildMalloyExplicitTheme.ts +58 -0
  47. package/src/theme/buildTableCssVars.spec.ts +64 -0
  48. package/src/theme/buildTableCssVars.ts +60 -0
  49. package/src/theme/buildVegaThemeOverride.spec.ts +53 -0
  50. package/src/theme/buildVegaThemeOverride.ts +44 -0
  51. package/src/theme/defaults.ts +75 -0
  52. package/src/theme/index.ts +8 -0
  53. package/src/theme/keys.ts +29 -0
  54. package/src/theme/readChartAnnotations.spec.ts +55 -0
  55. package/src/theme/readChartAnnotations.ts +66 -0
  56. package/src/theme/resolveTheme.spec.ts +144 -0
  57. package/src/theme/resolveTheme.ts +115 -0
  58. package/src/theme/types.ts +67 -0
  59. package/dist/ServerProvider-RXwIqb5f.cjs.js +0 -1
  60. package/dist/index-CQMDeQ_C.cjs.js +0 -235
@@ -1,59 +1,60 @@
1
1
  import { jsx as Q } from "react/jsx-runtime";
2
- import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
2
+ import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
3
3
  import h from "axios";
4
- import { useContext as D, createContext as W, useMemo as f, useState as $, useEffect as G } from "react";
4
+ import { useMemo as f, createContext as G, useContext as _, useState as D, useEffect as ie, useCallback as de } from "react";
5
+ import { styled as y, Card as Y, CardContent as J, CardMedia as pe } from "@mui/material";
5
6
  const u = "http://localhost/api/v0".replace(/\/+$/, "");
6
7
  class I {
7
- constructor(r, e = u, t = h) {
8
- this.basePath = e, this.axios = t, r && (this.configuration = r, this.basePath = r.basePath ?? e);
8
+ constructor(t, e = u, n = h) {
9
+ this.basePath = e, this.axios = n, t && (this.configuration = t, this.basePath = t.basePath ?? e);
9
10
  }
10
11
  configuration;
11
12
  }
12
- class _ extends Error {
13
- constructor(r, e) {
14
- super(e), this.field = r, this.name = "RequiredError";
13
+ class me extends Error {
14
+ constructor(t, e) {
15
+ super(e), this.field = t, this.name = "RequiredError";
15
16
  }
16
17
  }
17
- const P = {}, V = "https://example.com", d = function(l, r, e) {
18
+ const g = {}, P = "https://example.com", p = function(l, t, e) {
18
19
  if (e == null)
19
- throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
20
+ throw new me(t, `Required parameter ${t} was null or undefined when calling ${l}.`);
20
21
  };
21
- function M(l, r, e = "") {
22
- r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((t) => M(l, t, e)) : Object.keys(r).forEach(
23
- (t) => M(l, r[t], `${e}${e !== "" ? "." : ""}${t}`)
24
- ) : l.has(e) ? l.append(e, r) : l.set(e, r));
22
+ function q(l, t, e = "") {
23
+ t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((n) => q(l, n, e)) : Object.keys(t).forEach(
24
+ (n) => q(l, t[n], `${e}${e !== "" ? "." : ""}${n}`)
25
+ ) : l.has(e) ? l.append(e, t) : l.set(e, t));
25
26
  }
26
- const g = function(l, ...r) {
27
+ const b = function(l, ...t) {
27
28
  const e = new URLSearchParams(l.search);
28
- M(e, r), l.search = e.toString();
29
- }, k = function(l, r, e) {
30
- const t = typeof l != "string";
31
- return (t && e && e.isJsonMime ? e.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
- }, v = function(l) {
29
+ q(e, t), l.search = e.toString();
30
+ }, k = function(l, t, e) {
31
+ const n = typeof l != "string";
32
+ return (n && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
33
+ }, V = function(l) {
33
34
  return l.pathname + l.search + l.hash;
34
- }, O = function(l, r, e, t) {
35
- return (a = r, n = e) => {
36
- const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
35
+ }, v = function(l, t, e, n) {
36
+ return (a = t, r = e) => {
37
+ const o = { ...l.options, url: (a.defaults.baseURL ? "" : n?.basePath ?? r) + l.url };
37
38
  return a.request(o);
38
39
  };
39
- }, ye = {
40
+ }, Ke = {
40
41
  Bigquery: "bigquery",
41
42
  Snowflake: "snowflake",
42
43
  Postgres: "postgres",
43
44
  Gcs: "gcs",
44
45
  S3: "s3",
45
46
  Azure: "azure"
46
- }, Ie = {
47
+ }, Xe = {
47
48
  ServicePrincipal: "service_principal",
48
49
  SasToken: "sas_token"
49
- }, Ce = {
50
+ }, Ze = {
50
51
  Error: "error",
51
52
  Warn: "warn",
52
53
  Debug: "debug"
53
- }, Ae = {
54
+ }, ea = {
54
55
  Success: "success",
55
56
  Error: "error"
56
- }, xe = {
57
+ }, aa = {
57
58
  Postgres: "postgres",
58
59
  Bigquery: "bigquery",
59
60
  Snowflake: "snowflake",
@@ -64,62 +65,66 @@ const g = function(l, ...r) {
64
65
  Motherduck: "motherduck",
65
66
  Ducklake: "ducklake",
66
67
  Publisher: "publisher"
67
- }, Ne = {
68
+ }, ta = {
68
69
  Ssh: "ssh"
69
- }, Re = {
70
+ }, na = {
70
71
  Ok: "ok",
71
72
  Failed: "failed"
72
- }, Ue = {
73
+ }, ra = {
73
74
  Embedded: "embedded",
74
75
  Materialized: "materialized"
75
- }, Te = {
76
+ }, oa = {
76
77
  Equal: "equal",
77
78
  In: "in",
78
79
  Like: "like",
79
80
  GreaterThan: "greater_than",
80
81
  LessThan: "less_than"
81
- }, we = {
82
+ }, sa = {
82
83
  Debug: "debug",
83
84
  Info: "info",
84
85
  Warn: "warn",
85
86
  Error: "error"
86
- }, Ee = {
87
+ }, la = {
87
88
  Pending: "PENDING",
88
89
  ManifestRowsReady: "MANIFEST_ROWS_READY",
89
90
  ManifestFileReady: "MANIFEST_FILE_READY",
90
91
  Failed: "FAILED",
91
92
  Cancelled: "CANCELLED"
92
- }, Me = {
93
+ }, ca = {
93
94
  Markdown: "markdown",
94
95
  Code: "code"
95
- }, Qe = {
96
+ }, ia = {
96
97
  Markdown: "markdown",
97
98
  Code: "code"
98
- }, $e = {
99
+ }, da = {
99
100
  Declared: "declared",
100
101
  All: "all"
101
- }, Be = {
102
+ }, pa = {
102
103
  Unbound: "unbound",
103
104
  Bound: "bound",
104
105
  LiveFallback: "live_fallback"
105
- }, Fe = {
106
+ }, ma = {
106
107
  Error: "error",
107
108
  Warn: "warn"
108
- }, qe = {
109
+ }, ha = {
109
110
  Viewport: "viewport"
110
- }, ze = {
111
+ }, ua = {
111
112
  Disable: "disable",
112
113
  NoVerify: "no-verify",
113
114
  VerifyCa: "verify-ca"
114
- }, je = {
115
+ }, ga = {
115
116
  Snapshot: "SNAPSHOT",
116
117
  Copy: "COPY"
117
- }, Le = {
118
+ }, Pa = {
118
119
  Initializing: "initializing",
119
120
  Serving: "serving",
120
121
  Draining: "draining",
121
122
  Throttled: "throttled"
122
- }, Y = function(l) {
123
+ }, ba = {
124
+ Light: "light",
125
+ Dark: "dark",
126
+ Auto: "auto"
127
+ }, he = function(l) {
123
128
  return {
124
129
  /**
125
130
  * Creates a new database connection in the specified environment.
@@ -130,16 +135,16 @@ const g = function(l, ...r) {
130
135
  * @param {*} [options] Override http request option.
131
136
  * @throws {RequiredError}
132
137
  */
133
- createConnection: async (r, e, t, a = {}) => {
134
- d("createConnection", "environmentName", r), d("createConnection", "connectionName", e), d("createConnection", "connection", t);
135
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
138
+ createConnection: async (t, e, n, a = {}) => {
139
+ p("createConnection", "environmentName", t), p("createConnection", "connectionName", e), p("createConnection", "connection", n);
140
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
136
141
  let s;
137
142
  l && (s = l.baseOptions);
138
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
139
- i["Content-Type"] = "application/json", g(o, p);
143
+ const c = { method: "POST", ...s, ...a }, i = {}, d = {};
144
+ i["Content-Type"] = "application/json", b(o, d);
140
145
  let m = s && s.headers ? s.headers : {};
141
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
142
- url: v(o),
146
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
147
+ url: V(o),
143
148
  options: c
144
149
  };
145
150
  },
@@ -151,16 +156,16 @@ const g = function(l, ...r) {
151
156
  * @param {*} [options] Override http request option.
152
157
  * @throws {RequiredError}
153
158
  */
154
- deleteConnection: async (r, e, t = {}) => {
155
- d("deleteConnection", "environmentName", r), d("deleteConnection", "connectionName", e);
156
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
159
+ deleteConnection: async (t, e, n = {}) => {
160
+ p("deleteConnection", "environmentName", t), p("deleteConnection", "connectionName", e);
161
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
157
162
  let o;
158
163
  l && (o = l.baseOptions);
159
- const s = { method: "DELETE", ...o, ...t }, c = {};
160
- g(n, {});
161
- let p = o && o.headers ? o.headers : {};
162
- return s.headers = { ...c, ...p, ...t.headers }, {
163
- url: v(n),
164
+ const s = { method: "DELETE", ...o, ...n }, c = {};
165
+ b(r, {});
166
+ let d = o && o.headers ? o.headers : {};
167
+ return s.headers = { ...c, ...d, ...n.headers }, {
168
+ url: V(r),
164
169
  options: s
165
170
  };
166
171
  },
@@ -172,16 +177,16 @@ const g = function(l, ...r) {
172
177
  * @param {*} [options] Override http request option.
173
178
  * @throws {RequiredError}
174
179
  */
175
- getConnection: async (r, e, t = {}) => {
176
- d("getConnection", "environmentName", r), d("getConnection", "connectionName", e);
177
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
180
+ getConnection: async (t, e, n = {}) => {
181
+ p("getConnection", "environmentName", t), p("getConnection", "connectionName", e);
182
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
178
183
  let o;
179
184
  l && (o = l.baseOptions);
180
- const s = { method: "GET", ...o, ...t }, c = {};
181
- g(n, {});
182
- let p = o && o.headers ? o.headers : {};
183
- return s.headers = { ...c, ...p, ...t.headers }, {
184
- url: v(n),
185
+ const s = { method: "GET", ...o, ...n }, c = {};
186
+ b(r, {});
187
+ let d = o && o.headers ? o.headers : {};
188
+ return s.headers = { ...c, ...d, ...n.headers }, {
189
+ url: V(r),
185
190
  options: s
186
191
  };
187
192
  },
@@ -195,16 +200,16 @@ const g = function(l, ...r) {
195
200
  * @param {*} [options] Override http request option.
196
201
  * @throws {RequiredError}
197
202
  */
198
- getTable: async (r, e, t, a, n = {}) => {
199
- d("getTable", "environmentName", r), d("getTable", "connectionName", e), d("getTable", "schemaName", t), d("getTable", "tablePath", a);
200
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, V);
203
+ getTable: async (t, e, n, a, r = {}) => {
204
+ p("getTable", "environmentName", t), p("getTable", "connectionName", e), p("getTable", "schemaName", n), p("getTable", "tablePath", a);
205
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
201
206
  let c;
202
207
  l && (c = l.baseOptions);
203
- const i = { method: "GET", ...c, ...n }, p = {};
204
- g(s, {});
205
- let b = c && c.headers ? c.headers : {};
206
- return i.headers = { ...p, ...b, ...n.headers }, {
207
- url: v(s),
208
+ const i = { method: "GET", ...c, ...r }, d = {};
209
+ b(s, {});
210
+ let O = c && c.headers ? c.headers : {};
211
+ return i.headers = { ...d, ...O, ...r.headers }, {
212
+ url: V(s),
208
213
  options: i
209
214
  };
210
215
  },
@@ -219,17 +224,17 @@ const g = function(l, ...r) {
219
224
  * @param {*} [options] Override http request option.
220
225
  * @throws {RequiredError}
221
226
  */
222
- getTableInPackage: async (r, e, t, a, n, o = {}) => {
223
- d("getTableInPackage", "environmentName", r), d("getTableInPackage", "packageName", e), d("getTableInPackage", "connectionName", t), d("getTableInPackage", "schemaName", a), d("getTableInPackage", "tablePath", n);
224
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, V);
227
+ getTableInPackage: async (t, e, n, a, r, o = {}) => {
228
+ p("getTableInPackage", "environmentName", t), p("getTableInPackage", "packageName", e), p("getTableInPackage", "connectionName", n), p("getTableInPackage", "schemaName", a), p("getTableInPackage", "tablePath", r);
229
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), c = new URL(s, P);
225
230
  let i;
226
231
  l && (i = l.baseOptions);
227
- const p = { method: "GET", ...i, ...o }, m = {};
228
- g(c, {});
229
- let y = i && i.headers ? i.headers : {};
230
- return p.headers = { ...m, ...y, ...o.headers }, {
231
- url: v(c),
232
- options: p
232
+ const d = { method: "GET", ...i, ...o }, m = {};
233
+ b(c, {});
234
+ let C = i && i.headers ? i.headers : {};
235
+ return d.headers = { ...m, ...C, ...o.headers }, {
236
+ url: V(c),
237
+ options: d
233
238
  };
234
239
  },
235
240
  /**
@@ -239,16 +244,16 @@ const g = function(l, ...r) {
239
244
  * @param {*} [options] Override http request option.
240
245
  * @throws {RequiredError}
241
246
  */
242
- listConnections: async (r, e = {}) => {
243
- d("listConnections", "environmentName", r);
244
- const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
245
- let n;
246
- l && (n = l.baseOptions);
247
- const o = { method: "GET", ...n, ...e }, s = {};
248
- g(a, {});
249
- let i = n && n.headers ? n.headers : {};
247
+ listConnections: async (t, e = {}) => {
248
+ p("listConnections", "environmentName", t);
249
+ const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
250
+ let r;
251
+ l && (r = l.baseOptions);
252
+ const o = { method: "GET", ...r, ...e }, s = {};
253
+ b(a, {});
254
+ let i = r && r.headers ? r.headers : {};
250
255
  return o.headers = { ...s, ...i, ...e.headers }, {
251
- url: v(a),
256
+ url: V(a),
252
257
  options: o
253
258
  };
254
259
  },
@@ -260,16 +265,16 @@ const g = function(l, ...r) {
260
265
  * @param {*} [options] Override http request option.
261
266
  * @throws {RequiredError}
262
267
  */
263
- listSchemas: async (r, e, t = {}) => {
264
- d("listSchemas", "environmentName", r), d("listSchemas", "connectionName", e);
265
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
268
+ listSchemas: async (t, e, n = {}) => {
269
+ p("listSchemas", "environmentName", t), p("listSchemas", "connectionName", e);
270
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
266
271
  let o;
267
272
  l && (o = l.baseOptions);
268
- const s = { method: "GET", ...o, ...t }, c = {};
269
- g(n, {});
270
- let p = o && o.headers ? o.headers : {};
271
- return s.headers = { ...c, ...p, ...t.headers }, {
272
- url: v(n),
273
+ const s = { method: "GET", ...o, ...n }, c = {};
274
+ b(r, {});
275
+ let d = o && o.headers ? o.headers : {};
276
+ return s.headers = { ...c, ...d, ...n.headers }, {
277
+ url: V(r),
273
278
  options: s
274
279
  };
275
280
  },
@@ -282,16 +287,16 @@ const g = function(l, ...r) {
282
287
  * @param {*} [options] Override http request option.
283
288
  * @throws {RequiredError}
284
289
  */
285
- listSchemasInPackage: async (r, e, t, a = {}) => {
286
- d("listSchemasInPackage", "environmentName", r), d("listSchemasInPackage", "packageName", e), d("listSchemasInPackage", "connectionName", t);
287
- const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(n, V);
290
+ listSchemasInPackage: async (t, e, n, a = {}) => {
291
+ p("listSchemasInPackage", "environmentName", t), p("listSchemasInPackage", "packageName", e), p("listSchemasInPackage", "connectionName", n);
292
+ const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(r, P);
288
293
  let s;
289
294
  l && (s = l.baseOptions);
290
295
  const c = { method: "GET", ...s, ...a }, i = {};
291
- g(o, {});
296
+ b(o, {});
292
297
  let m = s && s.headers ? s.headers : {};
293
298
  return c.headers = { ...i, ...m, ...a.headers }, {
294
- url: v(o),
299
+ url: V(o),
295
300
  options: c
296
301
  };
297
302
  },
@@ -305,16 +310,16 @@ const g = function(l, ...r) {
305
310
  * @param {*} [options] Override http request option.
306
311
  * @throws {RequiredError}
307
312
  */
308
- listTables: async (r, e, t, a, n = {}) => {
309
- d("listTables", "environmentName", r), d("listTables", "connectionName", e), d("listTables", "schemaName", t);
310
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, V);
313
+ listTables: async (t, e, n, a, r = {}) => {
314
+ p("listTables", "environmentName", t), p("listTables", "connectionName", e), p("listTables", "schemaName", n);
315
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(o, P);
311
316
  let c;
312
317
  l && (c = l.baseOptions);
313
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
314
- a && (m.tableNames = a), g(s, m);
315
- let b = c && c.headers ? c.headers : {};
316
- return i.headers = { ...p, ...b, ...n.headers }, {
317
- url: v(s),
318
+ const i = { method: "GET", ...c, ...r }, d = {}, m = {};
319
+ a && (m.tableNames = a), b(s, m);
320
+ let O = c && c.headers ? c.headers : {};
321
+ return i.headers = { ...d, ...O, ...r.headers }, {
322
+ url: V(s),
318
323
  options: i
319
324
  };
320
325
  },
@@ -329,17 +334,17 @@ const g = function(l, ...r) {
329
334
  * @param {*} [options] Override http request option.
330
335
  * @throws {RequiredError}
331
336
  */
332
- listTablesInPackage: async (r, e, t, a, n, o = {}) => {
333
- d("listTablesInPackage", "environmentName", r), d("listTablesInPackage", "packageName", e), d("listTablesInPackage", "connectionName", t), d("listTablesInPackage", "schemaName", a);
334
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, V);
337
+ listTablesInPackage: async (t, e, n, a, r, o = {}) => {
338
+ p("listTablesInPackage", "environmentName", t), p("listTablesInPackage", "packageName", e), p("listTablesInPackage", "connectionName", n), p("listTablesInPackage", "schemaName", a);
339
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
335
340
  let i;
336
341
  l && (i = l.baseOptions);
337
- const p = { method: "GET", ...i, ...o }, m = {}, b = {};
338
- n && (b.tableNames = n), g(c, b);
339
- let y = i && i.headers ? i.headers : {};
340
- return p.headers = { ...m, ...y, ...o.headers }, {
341
- url: v(c),
342
- options: p
342
+ const d = { method: "GET", ...i, ...o }, m = {}, O = {};
343
+ r && (O.tableNames = r), b(c, O);
344
+ let C = i && i.headers ? i.headers : {};
345
+ return d.headers = { ...m, ...C, ...o.headers }, {
346
+ url: V(c),
347
+ options: d
343
348
  };
344
349
  },
345
350
  /**
@@ -351,16 +356,16 @@ const g = function(l, ...r) {
351
356
  * @param {*} [options] Override http request option.
352
357
  * @throws {RequiredError}
353
358
  */
354
- postQuerydata: async (r, e, t, a = {}) => {
355
- d("postQuerydata", "environmentName", r), d("postQuerydata", "connectionName", e), d("postQuerydata", "postQuerydataRequest", t);
356
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
359
+ postQuerydata: async (t, e, n, a = {}) => {
360
+ p("postQuerydata", "environmentName", t), p("postQuerydata", "connectionName", e), p("postQuerydata", "postQuerydataRequest", n);
361
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
357
362
  let s;
358
363
  l && (s = l.baseOptions);
359
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
360
- i["Content-Type"] = "application/json", g(o, p);
364
+ const c = { method: "POST", ...s, ...a }, i = {}, d = {};
365
+ i["Content-Type"] = "application/json", b(o, d);
361
366
  let m = s && s.headers ? s.headers : {};
362
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
363
- url: v(o),
367
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
368
+ url: V(o),
364
369
  options: c
365
370
  };
366
371
  },
@@ -374,16 +379,16 @@ const g = function(l, ...r) {
374
379
  * @param {*} [options] Override http request option.
375
380
  * @throws {RequiredError}
376
381
  */
377
- postQuerydataInPackage: async (r, e, t, a, n = {}) => {
378
- d("postQuerydataInPackage", "environmentName", r), d("postQuerydataInPackage", "packageName", e), d("postQuerydataInPackage", "connectionName", t), d("postQuerydataInPackage", "postQuerydataRequest", a);
379
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
382
+ postQuerydataInPackage: async (t, e, n, a, r = {}) => {
383
+ p("postQuerydataInPackage", "environmentName", t), p("postQuerydataInPackage", "packageName", e), p("postQuerydataInPackage", "connectionName", n), p("postQuerydataInPackage", "postQuerydataRequest", a);
384
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
380
385
  let c;
381
386
  l && (c = l.baseOptions);
382
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
383
- p["Content-Type"] = "application/json", g(s, m);
384
- let b = c && c.headers ? c.headers : {};
385
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
386
- url: v(s),
387
+ const i = { method: "POST", ...c, ...r }, d = {}, m = {};
388
+ d["Content-Type"] = "application/json", b(s, m);
389
+ let O = c && c.headers ? c.headers : {};
390
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
391
+ url: V(s),
387
392
  options: i
388
393
  };
389
394
  },
@@ -396,16 +401,16 @@ const g = function(l, ...r) {
396
401
  * @param {*} [options] Override http request option.
397
402
  * @throws {RequiredError}
398
403
  */
399
- postSqlsource: async (r, e, t, a = {}) => {
400
- d("postSqlsource", "environmentName", r), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", t);
401
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
404
+ postSqlsource: async (t, e, n, a = {}) => {
405
+ p("postSqlsource", "environmentName", t), p("postSqlsource", "connectionName", e), p("postSqlsource", "postSqlsourceRequest", n);
406
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
402
407
  let s;
403
408
  l && (s = l.baseOptions);
404
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
405
- i["Content-Type"] = "application/json", g(o, p);
409
+ const c = { method: "POST", ...s, ...a }, i = {}, d = {};
410
+ i["Content-Type"] = "application/json", b(o, d);
406
411
  let m = s && s.headers ? s.headers : {};
407
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
408
- url: v(o),
412
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
413
+ url: V(o),
409
414
  options: c
410
415
  };
411
416
  },
@@ -419,16 +424,16 @@ const g = function(l, ...r) {
419
424
  * @param {*} [options] Override http request option.
420
425
  * @throws {RequiredError}
421
426
  */
422
- postSqlsourceInPackage: async (r, e, t, a, n = {}) => {
423
- d("postSqlsourceInPackage", "environmentName", r), d("postSqlsourceInPackage", "packageName", e), d("postSqlsourceInPackage", "connectionName", t), d("postSqlsourceInPackage", "postSqlsourceRequest", a);
424
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
427
+ postSqlsourceInPackage: async (t, e, n, a, r = {}) => {
428
+ p("postSqlsourceInPackage", "environmentName", t), p("postSqlsourceInPackage", "packageName", e), p("postSqlsourceInPackage", "connectionName", n), p("postSqlsourceInPackage", "postSqlsourceRequest", a);
429
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
425
430
  let c;
426
431
  l && (c = l.baseOptions);
427
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
428
- p["Content-Type"] = "application/json", g(s, m);
429
- let b = c && c.headers ? c.headers : {};
430
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
431
- url: v(s),
432
+ const i = { method: "POST", ...c, ...r }, d = {}, m = {};
433
+ d["Content-Type"] = "application/json", b(s, m);
434
+ let O = c && c.headers ? c.headers : {};
435
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
436
+ url: V(s),
432
437
  options: i
433
438
  };
434
439
  },
@@ -441,16 +446,16 @@ const g = function(l, ...r) {
441
446
  * @param {*} [options] Override http request option.
442
447
  * @throws {RequiredError}
443
448
  */
444
- postTemporarytable: async (r, e, t, a = {}) => {
445
- d("postTemporarytable", "environmentName", r), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", t);
446
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
449
+ postTemporarytable: async (t, e, n, a = {}) => {
450
+ p("postTemporarytable", "environmentName", t), p("postTemporarytable", "connectionName", e), p("postTemporarytable", "postSqlsourceRequest", n);
451
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
447
452
  let s;
448
453
  l && (s = l.baseOptions);
449
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
450
- i["Content-Type"] = "application/json", g(o, p);
454
+ const c = { method: "POST", ...s, ...a }, i = {}, d = {};
455
+ i["Content-Type"] = "application/json", b(o, d);
451
456
  let m = s && s.headers ? s.headers : {};
452
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
453
- url: v(o),
457
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
458
+ url: V(o),
454
459
  options: c
455
460
  };
456
461
  },
@@ -464,16 +469,16 @@ const g = function(l, ...r) {
464
469
  * @param {*} [options] Override http request option.
465
470
  * @throws {RequiredError}
466
471
  */
467
- postTemporarytableInPackage: async (r, e, t, a, n = {}) => {
468
- d("postTemporarytableInPackage", "environmentName", r), d("postTemporarytableInPackage", "packageName", e), d("postTemporarytableInPackage", "connectionName", t), d("postTemporarytableInPackage", "postSqlsourceRequest", a);
469
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
472
+ postTemporarytableInPackage: async (t, e, n, a, r = {}) => {
473
+ p("postTemporarytableInPackage", "environmentName", t), p("postTemporarytableInPackage", "packageName", e), p("postTemporarytableInPackage", "connectionName", n), p("postTemporarytableInPackage", "postSqlsourceRequest", a);
474
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
470
475
  let c;
471
476
  l && (c = l.baseOptions);
472
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
473
- p["Content-Type"] = "application/json", g(s, m);
474
- let b = c && c.headers ? c.headers : {};
475
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
476
- url: v(s),
477
+ const i = { method: "POST", ...c, ...r }, d = {}, m = {};
478
+ d["Content-Type"] = "application/json", b(s, m);
479
+ let O = c && c.headers ? c.headers : {};
480
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
481
+ url: V(s),
477
482
  options: i
478
483
  };
479
484
  },
@@ -486,22 +491,22 @@ const g = function(l, ...r) {
486
491
  * @param {*} [options] Override http request option.
487
492
  * @throws {RequiredError}
488
493
  */
489
- updateConnection: async (r, e, t, a = {}) => {
490
- d("updateConnection", "environmentName", r), d("updateConnection", "connectionName", e), d("updateConnection", "updateConnectionRequest", t);
491
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
494
+ updateConnection: async (t, e, n, a = {}) => {
495
+ p("updateConnection", "environmentName", t), p("updateConnection", "connectionName", e), p("updateConnection", "updateConnectionRequest", n);
496
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
492
497
  let s;
493
498
  l && (s = l.baseOptions);
494
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
495
- i["Content-Type"] = "application/json", g(o, p);
499
+ const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
500
+ i["Content-Type"] = "application/json", b(o, d);
496
501
  let m = s && s.headers ? s.headers : {};
497
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
498
- url: v(o),
502
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
503
+ url: V(o),
499
504
  options: c
500
505
  };
501
506
  }
502
507
  };
503
508
  }, S = function(l) {
504
- const r = Y(l);
509
+ const t = he(l);
505
510
  return {
506
511
  /**
507
512
  * Creates a new database connection in the specified environment.
@@ -512,9 +517,9 @@ const g = function(l, ...r) {
512
517
  * @param {*} [options] Override http request option.
513
518
  * @throws {RequiredError}
514
519
  */
515
- async createConnection(e, t, a, n) {
516
- const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
517
- return (i, p) => O(o, h, u, l)(i, c || p);
520
+ async createConnection(e, n, a, r) {
521
+ const o = await t.createConnection(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
522
+ return (i, d) => v(o, h, u, l)(i, c || d);
518
523
  },
519
524
  /**
520
525
  * Permanently deletes a database connection from the environment.
@@ -524,9 +529,9 @@ const g = function(l, ...r) {
524
529
  * @param {*} [options] Override http request option.
525
530
  * @throws {RequiredError}
526
531
  */
527
- async deleteConnection(e, t, a) {
528
- const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
529
- return (c, i) => O(n, h, u, l)(c, s || i);
532
+ async deleteConnection(e, n, a) {
533
+ const r = await t.deleteConnection(e, n, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
534
+ return (c, i) => v(r, h, u, l)(c, s || i);
530
535
  },
531
536
  /**
532
537
  * 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.
@@ -536,9 +541,9 @@ const g = function(l, ...r) {
536
541
  * @param {*} [options] Override http request option.
537
542
  * @throws {RequiredError}
538
543
  */
539
- async getConnection(e, t, a) {
540
- const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
541
- return (c, i) => O(n, h, u, l)(c, s || i);
544
+ async getConnection(e, n, a) {
545
+ const r = await t.getConnection(e, n, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
546
+ return (c, i) => v(r, h, u, l)(c, s || i);
542
547
  },
543
548
  /**
544
549
  * 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.
@@ -550,9 +555,9 @@ const g = function(l, ...r) {
550
555
  * @param {*} [options] Override http request option.
551
556
  * @throws {RequiredError}
552
557
  */
553
- async getTable(e, t, a, n, o) {
554
- const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
555
- return (p, m) => O(s, h, u, l)(p, i || m);
558
+ async getTable(e, n, a, r, o) {
559
+ const s = await t.getTable(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
560
+ return (d, m) => v(s, h, u, l)(d, i || m);
556
561
  },
557
562
  /**
558
563
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -565,9 +570,9 @@ const g = function(l, ...r) {
565
570
  * @param {*} [options] Override http request option.
566
571
  * @throws {RequiredError}
567
572
  */
568
- async getTableInPackage(e, t, a, n, o, s) {
569
- const c = await r.getTableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
570
- return (m, b) => O(c, h, u, l)(m, p || b);
573
+ async getTableInPackage(e, n, a, r, o, s) {
574
+ const c = await t.getTableInPackage(e, n, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
575
+ return (m, O) => v(c, h, u, l)(m, d || O);
571
576
  },
572
577
  /**
573
578
  * 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.
@@ -576,9 +581,9 @@ const g = function(l, ...r) {
576
581
  * @param {*} [options] Override http request option.
577
582
  * @throws {RequiredError}
578
583
  */
579
- async listConnections(e, t) {
580
- const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[n]?.url;
581
- return (s, c) => O(a, h, u, l)(s, o || c);
584
+ async listConnections(e, n) {
585
+ const a = await t.listConnections(e, n), r = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[r]?.url;
586
+ return (s, c) => v(a, h, u, l)(s, o || c);
582
587
  },
583
588
  /**
584
589
  * 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.
@@ -588,9 +593,9 @@ const g = function(l, ...r) {
588
593
  * @param {*} [options] Override http request option.
589
594
  * @throws {RequiredError}
590
595
  */
591
- async listSchemas(e, t, a) {
592
- const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
593
- return (c, i) => O(n, h, u, l)(c, s || i);
596
+ async listSchemas(e, n, a) {
597
+ const r = await t.listSchemas(e, n, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
598
+ return (c, i) => v(r, h, u, l)(c, s || i);
594
599
  },
595
600
  /**
596
601
  * 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).
@@ -601,9 +606,9 @@ const g = function(l, ...r) {
601
606
  * @param {*} [options] Override http request option.
602
607
  * @throws {RequiredError}
603
608
  */
604
- async listSchemasInPackage(e, t, a, n) {
605
- const o = await r.listSchemasInPackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
606
- return (i, p) => O(o, h, u, l)(i, c || p);
609
+ async listSchemasInPackage(e, n, a, r) {
610
+ const o = await t.listSchemasInPackage(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
611
+ return (i, d) => v(o, h, u, l)(i, c || d);
607
612
  },
608
613
  /**
609
614
  * 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.
@@ -615,9 +620,9 @@ const g = function(l, ...r) {
615
620
  * @param {*} [options] Override http request option.
616
621
  * @throws {RequiredError}
617
622
  */
618
- async listTables(e, t, a, n, o) {
619
- const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
620
- return (p, m) => O(s, h, u, l)(p, i || m);
623
+ async listTables(e, n, a, r, o) {
624
+ const s = await t.listTables(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
625
+ return (d, m) => v(s, h, u, l)(d, i || m);
621
626
  },
622
627
  /**
623
628
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -630,9 +635,9 @@ const g = function(l, ...r) {
630
635
  * @param {*} [options] Override http request option.
631
636
  * @throws {RequiredError}
632
637
  */
633
- async listTablesInPackage(e, t, a, n, o, s) {
634
- const c = await r.listTablesInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
635
- return (m, b) => O(c, h, u, l)(m, p || b);
638
+ async listTablesInPackage(e, n, a, r, o, s) {
639
+ const c = await t.listTablesInPackage(e, n, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
640
+ return (m, O) => v(c, h, u, l)(m, d || O);
636
641
  },
637
642
  /**
638
643
  * 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.
@@ -643,9 +648,9 @@ const g = function(l, ...r) {
643
648
  * @param {*} [options] Override http request option.
644
649
  * @throws {RequiredError}
645
650
  */
646
- async postQuerydata(e, t, a, n) {
647
- const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
648
- return (i, p) => O(o, h, u, l)(i, c || p);
651
+ async postQuerydata(e, n, a, r) {
652
+ const o = await t.postQuerydata(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
653
+ return (i, d) => v(o, h, u, l)(i, c || d);
649
654
  },
650
655
  /**
651
656
  * 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.
@@ -657,9 +662,9 @@ const g = function(l, ...r) {
657
662
  * @param {*} [options] Override http request option.
658
663
  * @throws {RequiredError}
659
664
  */
660
- async postQuerydataInPackage(e, t, a, n, o) {
661
- const s = await r.postQuerydataInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
662
- return (p, m) => O(s, h, u, l)(p, i || m);
665
+ async postQuerydataInPackage(e, n, a, r, o) {
666
+ const s = await t.postQuerydataInPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
667
+ return (d, m) => v(s, h, u, l)(d, i || m);
663
668
  },
664
669
  /**
665
670
  * 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.
@@ -670,9 +675,9 @@ const g = function(l, ...r) {
670
675
  * @param {*} [options] Override http request option.
671
676
  * @throws {RequiredError}
672
677
  */
673
- async postSqlsource(e, t, a, n) {
674
- const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
675
- return (i, p) => O(o, h, u, l)(i, c || p);
678
+ async postSqlsource(e, n, a, r) {
679
+ const o = await t.postSqlsource(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
680
+ return (i, d) => v(o, h, u, l)(i, c || d);
676
681
  },
677
682
  /**
678
683
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -684,9 +689,9 @@ const g = function(l, ...r) {
684
689
  * @param {*} [options] Override http request option.
685
690
  * @throws {RequiredError}
686
691
  */
687
- async postSqlsourceInPackage(e, t, a, n, o) {
688
- const s = await r.postSqlsourceInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
689
- return (p, m) => O(s, h, u, l)(p, i || m);
692
+ async postSqlsourceInPackage(e, n, a, r, o) {
693
+ const s = await t.postSqlsourceInPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
694
+ return (d, m) => v(s, h, u, l)(d, i || m);
690
695
  },
691
696
  /**
692
697
  * 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.
@@ -697,9 +702,9 @@ const g = function(l, ...r) {
697
702
  * @param {*} [options] Override http request option.
698
703
  * @throws {RequiredError}
699
704
  */
700
- async postTemporarytable(e, t, a, n) {
701
- const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
702
- return (i, p) => O(o, h, u, l)(i, c || p);
705
+ async postTemporarytable(e, n, a, r) {
706
+ const o = await t.postTemporarytable(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
707
+ return (i, d) => v(o, h, u, l)(i, c || d);
703
708
  },
704
709
  /**
705
710
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -711,9 +716,9 @@ const g = function(l, ...r) {
711
716
  * @param {*} [options] Override http request option.
712
717
  * @throws {RequiredError}
713
718
  */
714
- async postTemporarytableInPackage(e, t, a, n, o) {
715
- const s = await r.postTemporarytableInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
716
- return (p, m) => O(s, h, u, l)(p, i || m);
719
+ async postTemporarytableInPackage(e, n, a, r, o) {
720
+ const s = await t.postTemporarytableInPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
721
+ return (d, m) => v(s, h, u, l)(d, i || m);
717
722
  },
718
723
  /**
719
724
  * Updates the configuration of an existing database connection.
@@ -724,13 +729,13 @@ const g = function(l, ...r) {
724
729
  * @param {*} [options] Override http request option.
725
730
  * @throws {RequiredError}
726
731
  */
727
- async updateConnection(e, t, a, n) {
728
- const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
729
- return (i, p) => O(o, h, u, l)(i, c || p);
732
+ async updateConnection(e, n, a, r) {
733
+ const o = await t.updateConnection(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
734
+ return (i, d) => v(o, h, u, l)(i, c || d);
730
735
  }
731
736
  };
732
- }, He = function(l, r, e) {
733
- const t = S(l);
737
+ }, Va = function(l, t, e) {
738
+ const n = S(l);
734
739
  return {
735
740
  /**
736
741
  * Creates a new database connection in the specified environment.
@@ -741,8 +746,8 @@ const g = function(l, ...r) {
741
746
  * @param {*} [options] Override http request option.
742
747
  * @throws {RequiredError}
743
748
  */
744
- createConnection(a, n, o, s) {
745
- return t.createConnection(a, n, o, s).then((c) => c(e, r));
749
+ createConnection(a, r, o, s) {
750
+ return n.createConnection(a, r, o, s).then((c) => c(e, t));
746
751
  },
747
752
  /**
748
753
  * Permanently deletes a database connection from the environment.
@@ -752,8 +757,8 @@ const g = function(l, ...r) {
752
757
  * @param {*} [options] Override http request option.
753
758
  * @throws {RequiredError}
754
759
  */
755
- deleteConnection(a, n, o) {
756
- return t.deleteConnection(a, n, o).then((s) => s(e, r));
760
+ deleteConnection(a, r, o) {
761
+ return n.deleteConnection(a, r, o).then((s) => s(e, t));
757
762
  },
758
763
  /**
759
764
  * 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.
@@ -763,8 +768,8 @@ const g = function(l, ...r) {
763
768
  * @param {*} [options] Override http request option.
764
769
  * @throws {RequiredError}
765
770
  */
766
- getConnection(a, n, o) {
767
- return t.getConnection(a, n, o).then((s) => s(e, r));
771
+ getConnection(a, r, o) {
772
+ return n.getConnection(a, r, o).then((s) => s(e, t));
768
773
  },
769
774
  /**
770
775
  * 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.
@@ -776,8 +781,8 @@ const g = function(l, ...r) {
776
781
  * @param {*} [options] Override http request option.
777
782
  * @throws {RequiredError}
778
783
  */
779
- getTable(a, n, o, s, c) {
780
- return t.getTable(a, n, o, s, c).then((i) => i(e, r));
784
+ getTable(a, r, o, s, c) {
785
+ return n.getTable(a, r, o, s, c).then((i) => i(e, t));
781
786
  },
782
787
  /**
783
788
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -790,8 +795,8 @@ const g = function(l, ...r) {
790
795
  * @param {*} [options] Override http request option.
791
796
  * @throws {RequiredError}
792
797
  */
793
- getTableInPackage(a, n, o, s, c, i) {
794
- return t.getTableInPackage(a, n, o, s, c, i).then((p) => p(e, r));
798
+ getTableInPackage(a, r, o, s, c, i) {
799
+ return n.getTableInPackage(a, r, o, s, c, i).then((d) => d(e, t));
795
800
  },
796
801
  /**
797
802
  * 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.
@@ -800,8 +805,8 @@ const g = function(l, ...r) {
800
805
  * @param {*} [options] Override http request option.
801
806
  * @throws {RequiredError}
802
807
  */
803
- listConnections(a, n) {
804
- return t.listConnections(a, n).then((o) => o(e, r));
808
+ listConnections(a, r) {
809
+ return n.listConnections(a, r).then((o) => o(e, t));
805
810
  },
806
811
  /**
807
812
  * 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.
@@ -811,8 +816,8 @@ const g = function(l, ...r) {
811
816
  * @param {*} [options] Override http request option.
812
817
  * @throws {RequiredError}
813
818
  */
814
- listSchemas(a, n, o) {
815
- return t.listSchemas(a, n, o).then((s) => s(e, r));
819
+ listSchemas(a, r, o) {
820
+ return n.listSchemas(a, r, o).then((s) => s(e, t));
816
821
  },
817
822
  /**
818
823
  * 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).
@@ -823,8 +828,8 @@ const g = function(l, ...r) {
823
828
  * @param {*} [options] Override http request option.
824
829
  * @throws {RequiredError}
825
830
  */
826
- listSchemasInPackage(a, n, o, s) {
827
- return t.listSchemasInPackage(a, n, o, s).then((c) => c(e, r));
831
+ listSchemasInPackage(a, r, o, s) {
832
+ return n.listSchemasInPackage(a, r, o, s).then((c) => c(e, t));
828
833
  },
829
834
  /**
830
835
  * 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.
@@ -836,8 +841,8 @@ const g = function(l, ...r) {
836
841
  * @param {*} [options] Override http request option.
837
842
  * @throws {RequiredError}
838
843
  */
839
- listTables(a, n, o, s, c) {
840
- return t.listTables(a, n, o, s, c).then((i) => i(e, r));
844
+ listTables(a, r, o, s, c) {
845
+ return n.listTables(a, r, o, s, c).then((i) => i(e, t));
841
846
  },
842
847
  /**
843
848
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -850,8 +855,8 @@ const g = function(l, ...r) {
850
855
  * @param {*} [options] Override http request option.
851
856
  * @throws {RequiredError}
852
857
  */
853
- listTablesInPackage(a, n, o, s, c, i) {
854
- return t.listTablesInPackage(a, n, o, s, c, i).then((p) => p(e, r));
858
+ listTablesInPackage(a, r, o, s, c, i) {
859
+ return n.listTablesInPackage(a, r, o, s, c, i).then((d) => d(e, t));
855
860
  },
856
861
  /**
857
862
  * 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.
@@ -862,8 +867,8 @@ const g = function(l, ...r) {
862
867
  * @param {*} [options] Override http request option.
863
868
  * @throws {RequiredError}
864
869
  */
865
- postQuerydata(a, n, o, s) {
866
- return t.postQuerydata(a, n, o, s).then((c) => c(e, r));
870
+ postQuerydata(a, r, o, s) {
871
+ return n.postQuerydata(a, r, o, s).then((c) => c(e, t));
867
872
  },
868
873
  /**
869
874
  * 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.
@@ -875,8 +880,8 @@ const g = function(l, ...r) {
875
880
  * @param {*} [options] Override http request option.
876
881
  * @throws {RequiredError}
877
882
  */
878
- postQuerydataInPackage(a, n, o, s, c) {
879
- return t.postQuerydataInPackage(a, n, o, s, c).then((i) => i(e, r));
883
+ postQuerydataInPackage(a, r, o, s, c) {
884
+ return n.postQuerydataInPackage(a, r, o, s, c).then((i) => i(e, t));
880
885
  },
881
886
  /**
882
887
  * 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.
@@ -887,8 +892,8 @@ const g = function(l, ...r) {
887
892
  * @param {*} [options] Override http request option.
888
893
  * @throws {RequiredError}
889
894
  */
890
- postSqlsource(a, n, o, s) {
891
- return t.postSqlsource(a, n, o, s).then((c) => c(e, r));
895
+ postSqlsource(a, r, o, s) {
896
+ return n.postSqlsource(a, r, o, s).then((c) => c(e, t));
892
897
  },
893
898
  /**
894
899
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -900,8 +905,8 @@ const g = function(l, ...r) {
900
905
  * @param {*} [options] Override http request option.
901
906
  * @throws {RequiredError}
902
907
  */
903
- postSqlsourceInPackage(a, n, o, s, c) {
904
- return t.postSqlsourceInPackage(a, n, o, s, c).then((i) => i(e, r));
908
+ postSqlsourceInPackage(a, r, o, s, c) {
909
+ return n.postSqlsourceInPackage(a, r, o, s, c).then((i) => i(e, t));
905
910
  },
906
911
  /**
907
912
  * 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.
@@ -912,8 +917,8 @@ const g = function(l, ...r) {
912
917
  * @param {*} [options] Override http request option.
913
918
  * @throws {RequiredError}
914
919
  */
915
- postTemporarytable(a, n, o, s) {
916
- return t.postTemporarytable(a, n, o, s).then((c) => c(e, r));
920
+ postTemporarytable(a, r, o, s) {
921
+ return n.postTemporarytable(a, r, o, s).then((c) => c(e, t));
917
922
  },
918
923
  /**
919
924
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -925,8 +930,8 @@ const g = function(l, ...r) {
925
930
  * @param {*} [options] Override http request option.
926
931
  * @throws {RequiredError}
927
932
  */
928
- postTemporarytableInPackage(a, n, o, s, c) {
929
- return t.postTemporarytableInPackage(a, n, o, s, c).then((i) => i(e, r));
933
+ postTemporarytableInPackage(a, r, o, s, c) {
934
+ return n.postTemporarytableInPackage(a, r, o, s, c).then((i) => i(e, t));
930
935
  },
931
936
  /**
932
937
  * Updates the configuration of an existing database connection.
@@ -937,12 +942,12 @@ const g = function(l, ...r) {
937
942
  * @param {*} [options] Override http request option.
938
943
  * @throws {RequiredError}
939
944
  */
940
- updateConnection(a, n, o, s) {
941
- return t.updateConnection(a, n, o, s).then((c) => c(e, r));
945
+ updateConnection(a, r, o, s) {
946
+ return n.updateConnection(a, r, o, s).then((c) => c(e, t));
942
947
  }
943
948
  };
944
949
  };
945
- class J extends I {
950
+ class ue extends I {
946
951
  /**
947
952
  * Creates a new database connection in the specified environment.
948
953
  * @summary Create a new database connection
@@ -953,8 +958,8 @@ class J extends I {
953
958
  * @throws {RequiredError}
954
959
  * @memberof ConnectionsApi
955
960
  */
956
- createConnection(r, e, t, a) {
957
- return S(this.configuration).createConnection(r, e, t, a).then((n) => n(this.axios, this.basePath));
961
+ createConnection(t, e, n, a) {
962
+ return S(this.configuration).createConnection(t, e, n, a).then((r) => r(this.axios, this.basePath));
958
963
  }
959
964
  /**
960
965
  * Permanently deletes a database connection from the environment.
@@ -965,8 +970,8 @@ class J extends I {
965
970
  * @throws {RequiredError}
966
971
  * @memberof ConnectionsApi
967
972
  */
968
- deleteConnection(r, e, t) {
969
- return S(this.configuration).deleteConnection(r, e, t).then((a) => a(this.axios, this.basePath));
973
+ deleteConnection(t, e, n) {
974
+ return S(this.configuration).deleteConnection(t, e, n).then((a) => a(this.axios, this.basePath));
970
975
  }
971
976
  /**
972
977
  * 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.
@@ -977,8 +982,8 @@ class J extends I {
977
982
  * @throws {RequiredError}
978
983
  * @memberof ConnectionsApi
979
984
  */
980
- getConnection(r, e, t) {
981
- return S(this.configuration).getConnection(r, e, t).then((a) => a(this.axios, this.basePath));
985
+ getConnection(t, e, n) {
986
+ return S(this.configuration).getConnection(t, e, n).then((a) => a(this.axios, this.basePath));
982
987
  }
983
988
  /**
984
989
  * 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.
@@ -991,8 +996,8 @@ class J extends I {
991
996
  * @throws {RequiredError}
992
997
  * @memberof ConnectionsApi
993
998
  */
994
- getTable(r, e, t, a, n) {
995
- return S(this.configuration).getTable(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
999
+ getTable(t, e, n, a, r) {
1000
+ return S(this.configuration).getTable(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
996
1001
  }
997
1002
  /**
998
1003
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1006,8 +1011,8 @@ class J extends I {
1006
1011
  * @throws {RequiredError}
1007
1012
  * @memberof ConnectionsApi
1008
1013
  */
1009
- getTableInPackage(r, e, t, a, n, o) {
1010
- return S(this.configuration).getTableInPackage(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
1014
+ getTableInPackage(t, e, n, a, r, o) {
1015
+ return S(this.configuration).getTableInPackage(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
1011
1016
  }
1012
1017
  /**
1013
1018
  * 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.
@@ -1017,8 +1022,8 @@ class J extends I {
1017
1022
  * @throws {RequiredError}
1018
1023
  * @memberof ConnectionsApi
1019
1024
  */
1020
- listConnections(r, e) {
1021
- return S(this.configuration).listConnections(r, e).then((t) => t(this.axios, this.basePath));
1025
+ listConnections(t, e) {
1026
+ return S(this.configuration).listConnections(t, e).then((n) => n(this.axios, this.basePath));
1022
1027
  }
1023
1028
  /**
1024
1029
  * 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.
@@ -1029,8 +1034,8 @@ class J extends I {
1029
1034
  * @throws {RequiredError}
1030
1035
  * @memberof ConnectionsApi
1031
1036
  */
1032
- listSchemas(r, e, t) {
1033
- return S(this.configuration).listSchemas(r, e, t).then((a) => a(this.axios, this.basePath));
1037
+ listSchemas(t, e, n) {
1038
+ return S(this.configuration).listSchemas(t, e, n).then((a) => a(this.axios, this.basePath));
1034
1039
  }
1035
1040
  /**
1036
1041
  * 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).
@@ -1042,8 +1047,8 @@ class J extends I {
1042
1047
  * @throws {RequiredError}
1043
1048
  * @memberof ConnectionsApi
1044
1049
  */
1045
- listSchemasInPackage(r, e, t, a) {
1046
- return S(this.configuration).listSchemasInPackage(r, e, t, a).then((n) => n(this.axios, this.basePath));
1050
+ listSchemasInPackage(t, e, n, a) {
1051
+ return S(this.configuration).listSchemasInPackage(t, e, n, a).then((r) => r(this.axios, this.basePath));
1047
1052
  }
1048
1053
  /**
1049
1054
  * 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.
@@ -1056,8 +1061,8 @@ class J extends I {
1056
1061
  * @throws {RequiredError}
1057
1062
  * @memberof ConnectionsApi
1058
1063
  */
1059
- listTables(r, e, t, a, n) {
1060
- return S(this.configuration).listTables(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1064
+ listTables(t, e, n, a, r) {
1065
+ return S(this.configuration).listTables(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1061
1066
  }
1062
1067
  /**
1063
1068
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1071,8 +1076,8 @@ class J extends I {
1071
1076
  * @throws {RequiredError}
1072
1077
  * @memberof ConnectionsApi
1073
1078
  */
1074
- listTablesInPackage(r, e, t, a, n, o) {
1075
- return S(this.configuration).listTablesInPackage(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
1079
+ listTablesInPackage(t, e, n, a, r, o) {
1080
+ return S(this.configuration).listTablesInPackage(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
1076
1081
  }
1077
1082
  /**
1078
1083
  * 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.
@@ -1084,8 +1089,8 @@ class J extends I {
1084
1089
  * @throws {RequiredError}
1085
1090
  * @memberof ConnectionsApi
1086
1091
  */
1087
- postQuerydata(r, e, t, a) {
1088
- return S(this.configuration).postQuerydata(r, e, t, a).then((n) => n(this.axios, this.basePath));
1092
+ postQuerydata(t, e, n, a) {
1093
+ return S(this.configuration).postQuerydata(t, e, n, a).then((r) => r(this.axios, this.basePath));
1089
1094
  }
1090
1095
  /**
1091
1096
  * 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.
@@ -1098,8 +1103,8 @@ class J extends I {
1098
1103
  * @throws {RequiredError}
1099
1104
  * @memberof ConnectionsApi
1100
1105
  */
1101
- postQuerydataInPackage(r, e, t, a, n) {
1102
- return S(this.configuration).postQuerydataInPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1106
+ postQuerydataInPackage(t, e, n, a, r) {
1107
+ return S(this.configuration).postQuerydataInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1103
1108
  }
1104
1109
  /**
1105
1110
  * 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.
@@ -1111,8 +1116,8 @@ class J extends I {
1111
1116
  * @throws {RequiredError}
1112
1117
  * @memberof ConnectionsApi
1113
1118
  */
1114
- postSqlsource(r, e, t, a) {
1115
- return S(this.configuration).postSqlsource(r, e, t, a).then((n) => n(this.axios, this.basePath));
1119
+ postSqlsource(t, e, n, a) {
1120
+ return S(this.configuration).postSqlsource(t, e, n, a).then((r) => r(this.axios, this.basePath));
1116
1121
  }
1117
1122
  /**
1118
1123
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1125,8 +1130,8 @@ class J extends I {
1125
1130
  * @throws {RequiredError}
1126
1131
  * @memberof ConnectionsApi
1127
1132
  */
1128
- postSqlsourceInPackage(r, e, t, a, n) {
1129
- return S(this.configuration).postSqlsourceInPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1133
+ postSqlsourceInPackage(t, e, n, a, r) {
1134
+ return S(this.configuration).postSqlsourceInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1130
1135
  }
1131
1136
  /**
1132
1137
  * 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.
@@ -1138,8 +1143,8 @@ class J extends I {
1138
1143
  * @throws {RequiredError}
1139
1144
  * @memberof ConnectionsApi
1140
1145
  */
1141
- postTemporarytable(r, e, t, a) {
1142
- return S(this.configuration).postTemporarytable(r, e, t, a).then((n) => n(this.axios, this.basePath));
1146
+ postTemporarytable(t, e, n, a) {
1147
+ return S(this.configuration).postTemporarytable(t, e, n, a).then((r) => r(this.axios, this.basePath));
1143
1148
  }
1144
1149
  /**
1145
1150
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1152,8 +1157,8 @@ class J extends I {
1152
1157
  * @throws {RequiredError}
1153
1158
  * @memberof ConnectionsApi
1154
1159
  */
1155
- postTemporarytableInPackage(r, e, t, a, n) {
1156
- return S(this.configuration).postTemporarytableInPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1160
+ postTemporarytableInPackage(t, e, n, a, r) {
1161
+ return S(this.configuration).postTemporarytableInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1157
1162
  }
1158
1163
  /**
1159
1164
  * Updates the configuration of an existing database connection.
@@ -1165,11 +1170,11 @@ class J extends I {
1165
1170
  * @throws {RequiredError}
1166
1171
  * @memberof ConnectionsApi
1167
1172
  */
1168
- updateConnection(r, e, t, a) {
1169
- return S(this.configuration).updateConnection(r, e, t, a).then((n) => n(this.axios, this.basePath));
1173
+ updateConnection(t, e, n, a) {
1174
+ return S(this.configuration).updateConnection(t, e, n, a).then((r) => r(this.axios, this.basePath));
1170
1175
  }
1171
1176
  }
1172
- const K = function(l) {
1177
+ const ge = function(l) {
1173
1178
  return {
1174
1179
  /**
1175
1180
  * 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.
@@ -1178,22 +1183,22 @@ const K = function(l) {
1178
1183
  * @param {*} [options] Override http request option.
1179
1184
  * @throws {RequiredError}
1180
1185
  */
1181
- testConnectionConfiguration: async (r, e = {}) => {
1182
- d("testConnectionConfiguration", "connection", r);
1183
- const t = "/connections/test", a = new URL(t, V);
1184
- let n;
1185
- l && (n = l.baseOptions);
1186
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1187
- s["Content-Type"] = "application/json", g(a, c);
1188
- let i = n && n.headers ? n.headers : {};
1189
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
1190
- url: v(a),
1186
+ testConnectionConfiguration: async (t, e = {}) => {
1187
+ p("testConnectionConfiguration", "connection", t);
1188
+ const n = "/connections/test", a = new URL(n, P);
1189
+ let r;
1190
+ l && (r = l.baseOptions);
1191
+ const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1192
+ s["Content-Type"] = "application/json", b(a, c);
1193
+ let i = r && r.headers ? r.headers : {};
1194
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
1195
+ url: V(a),
1191
1196
  options: o
1192
1197
  };
1193
1198
  }
1194
1199
  };
1195
- }, B = function(l) {
1196
- const r = K(l);
1200
+ }, K = function(l) {
1201
+ const t = ge(l);
1197
1202
  return {
1198
1203
  /**
1199
1204
  * 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.
@@ -1202,13 +1207,13 @@ const K = function(l) {
1202
1207
  * @param {*} [options] Override http request option.
1203
1208
  * @throws {RequiredError}
1204
1209
  */
1205
- async testConnectionConfiguration(e, t) {
1206
- const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1207
- return (s, c) => O(a, h, u, l)(s, o || c);
1210
+ async testConnectionConfiguration(e, n) {
1211
+ const a = await t.testConnectionConfiguration(e, n), r = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
1212
+ return (s, c) => v(a, h, u, l)(s, o || c);
1208
1213
  }
1209
1214
  };
1210
- }, De = function(l, r, e) {
1211
- const t = B(l);
1215
+ }, va = function(l, t, e) {
1216
+ const n = K(l);
1212
1217
  return {
1213
1218
  /**
1214
1219
  * 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.
@@ -1217,12 +1222,12 @@ const K = function(l) {
1217
1222
  * @param {*} [options] Override http request option.
1218
1223
  * @throws {RequiredError}
1219
1224
  */
1220
- testConnectionConfiguration(a, n) {
1221
- return t.testConnectionConfiguration(a, n).then((o) => o(e, r));
1225
+ testConnectionConfiguration(a, r) {
1226
+ return n.testConnectionConfiguration(a, r).then((o) => o(e, t));
1222
1227
  }
1223
1228
  };
1224
1229
  };
1225
- class We extends I {
1230
+ class Oa extends I {
1226
1231
  /**
1227
1232
  * 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.
1228
1233
  * @summary Test database connection configuration
@@ -1231,11 +1236,11 @@ class We extends I {
1231
1236
  * @throws {RequiredError}
1232
1237
  * @memberof ConnectionsTestApi
1233
1238
  */
1234
- testConnectionConfiguration(r, e) {
1235
- return B(this.configuration).testConnectionConfiguration(r, e).then((t) => t(this.axios, this.basePath));
1239
+ testConnectionConfiguration(t, e) {
1240
+ return K(this.configuration).testConnectionConfiguration(t, e).then((n) => n(this.axios, this.basePath));
1236
1241
  }
1237
1242
  }
1238
- const X = function(l) {
1243
+ const Pe = function(l) {
1239
1244
  return {
1240
1245
  /**
1241
1246
  * 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.
@@ -1246,22 +1251,22 @@ const X = function(l) {
1246
1251
  * @param {*} [options] Override http request option.
1247
1252
  * @throws {RequiredError}
1248
1253
  */
1249
- listDatabases: async (r, e, t, a = {}) => {
1250
- d("listDatabases", "environmentName", r), d("listDatabases", "packageName", e);
1251
- const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
1254
+ listDatabases: async (t, e, n, a = {}) => {
1255
+ p("listDatabases", "environmentName", t), p("listDatabases", "packageName", e);
1256
+ const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1252
1257
  let s;
1253
1258
  l && (s = l.baseOptions);
1254
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1255
- t !== void 0 && (p.versionId = t), g(o, p);
1259
+ const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1260
+ n !== void 0 && (d.versionId = n), b(o, d);
1256
1261
  let m = s && s.headers ? s.headers : {};
1257
1262
  return c.headers = { ...i, ...m, ...a.headers }, {
1258
- url: v(o),
1263
+ url: V(o),
1259
1264
  options: c
1260
1265
  };
1261
1266
  }
1262
1267
  };
1263
- }, F = function(l) {
1264
- const r = X(l);
1268
+ }, X = function(l) {
1269
+ const t = Pe(l);
1265
1270
  return {
1266
1271
  /**
1267
1272
  * 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.
@@ -1272,13 +1277,13 @@ const X = function(l) {
1272
1277
  * @param {*} [options] Override http request option.
1273
1278
  * @throws {RequiredError}
1274
1279
  */
1275
- async listDatabases(e, t, a, n) {
1276
- const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1277
- return (i, p) => O(o, h, u, l)(i, c || p);
1280
+ async listDatabases(e, n, a, r) {
1281
+ const o = await t.listDatabases(e, n, a, r), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1282
+ return (i, d) => v(o, h, u, l)(i, c || d);
1278
1283
  }
1279
1284
  };
1280
- }, fe = function(l, r, e) {
1281
- const t = F(l);
1285
+ }, Sa = function(l, t, e) {
1286
+ const n = X(l);
1282
1287
  return {
1283
1288
  /**
1284
1289
  * 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.
@@ -1289,12 +1294,12 @@ const X = function(l) {
1289
1294
  * @param {*} [options] Override http request option.
1290
1295
  * @throws {RequiredError}
1291
1296
  */
1292
- listDatabases(a, n, o, s) {
1293
- return t.listDatabases(a, n, o, s).then((c) => c(e, r));
1297
+ listDatabases(a, r, o, s) {
1298
+ return n.listDatabases(a, r, o, s).then((c) => c(e, t));
1294
1299
  }
1295
1300
  };
1296
1301
  };
1297
- class Z extends I {
1302
+ class be extends I {
1298
1303
  /**
1299
1304
  * 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.
1300
1305
  * @summary List embedded databases
@@ -1305,11 +1310,11 @@ class Z extends I {
1305
1310
  * @throws {RequiredError}
1306
1311
  * @memberof DatabasesApi
1307
1312
  */
1308
- listDatabases(r, e, t, a) {
1309
- return F(this.configuration).listDatabases(r, e, t, a).then((n) => n(this.axios, this.basePath));
1313
+ listDatabases(t, e, n, a) {
1314
+ return X(this.configuration).listDatabases(t, e, n, a).then((r) => r(this.axios, this.basePath));
1310
1315
  }
1311
1316
  }
1312
- const ee = function(l) {
1317
+ const Ve = function(l) {
1313
1318
  return {
1314
1319
  /**
1315
1320
  * 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.
@@ -1318,16 +1323,16 @@ const ee = function(l) {
1318
1323
  * @param {*} [options] Override http request option.
1319
1324
  * @throws {RequiredError}
1320
1325
  */
1321
- createEnvironment: async (r, e = {}) => {
1322
- d("createEnvironment", "environment", r);
1323
- const t = "/environments", a = new URL(t, V);
1324
- let n;
1325
- l && (n = l.baseOptions);
1326
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1327
- s["Content-Type"] = "application/json", g(a, c);
1328
- let i = n && n.headers ? n.headers : {};
1329
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
1330
- url: v(a),
1326
+ createEnvironment: async (t, e = {}) => {
1327
+ p("createEnvironment", "environment", t);
1328
+ const n = "/environments", a = new URL(n, P);
1329
+ let r;
1330
+ l && (r = l.baseOptions);
1331
+ const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1332
+ s["Content-Type"] = "application/json", b(a, c);
1333
+ let i = r && r.headers ? r.headers : {};
1334
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
1335
+ url: V(a),
1331
1336
  options: o
1332
1337
  };
1333
1338
  },
@@ -1338,16 +1343,16 @@ const ee = function(l) {
1338
1343
  * @param {*} [options] Override http request option.
1339
1344
  * @throws {RequiredError}
1340
1345
  */
1341
- deleteEnvironment: async (r, e = {}) => {
1342
- d("deleteEnvironment", "environmentName", r);
1343
- const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
1344
- let n;
1345
- l && (n = l.baseOptions);
1346
- const o = { method: "DELETE", ...n, ...e }, s = {};
1347
- g(a, {});
1348
- let i = n && n.headers ? n.headers : {};
1346
+ deleteEnvironment: async (t, e = {}) => {
1347
+ p("deleteEnvironment", "environmentName", t);
1348
+ const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
1349
+ let r;
1350
+ l && (r = l.baseOptions);
1351
+ const o = { method: "DELETE", ...r, ...e }, s = {};
1352
+ b(a, {});
1353
+ let i = r && r.headers ? r.headers : {};
1349
1354
  return o.headers = { ...s, ...i, ...e.headers }, {
1350
- url: v(a),
1355
+ url: V(a),
1351
1356
  options: o
1352
1357
  };
1353
1358
  },
@@ -1359,16 +1364,16 @@ const ee = function(l) {
1359
1364
  * @param {*} [options] Override http request option.
1360
1365
  * @throws {RequiredError}
1361
1366
  */
1362
- getEnvironment: async (r, e, t = {}) => {
1363
- d("getEnvironment", "environmentName", r);
1364
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
1367
+ getEnvironment: async (t, e, n = {}) => {
1368
+ p("getEnvironment", "environmentName", t);
1369
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
1365
1370
  let o;
1366
1371
  l && (o = l.baseOptions);
1367
- const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1368
- e !== void 0 && (i.reload = e), g(n, i);
1369
- let p = o && o.headers ? o.headers : {};
1370
- return s.headers = { ...c, ...p, ...t.headers }, {
1371
- url: v(n),
1372
+ const s = { method: "GET", ...o, ...n }, c = {}, i = {};
1373
+ e !== void 0 && (i.reload = e), b(r, i);
1374
+ let d = o && o.headers ? o.headers : {};
1375
+ return s.headers = { ...c, ...d, ...n.headers }, {
1376
+ url: V(r),
1372
1377
  options: s
1373
1378
  };
1374
1379
  },
@@ -1378,16 +1383,16 @@ const ee = function(l) {
1378
1383
  * @param {*} [options] Override http request option.
1379
1384
  * @throws {RequiredError}
1380
1385
  */
1381
- listEnvironments: async (r = {}) => {
1382
- const e = "/environments", t = new URL(e, V);
1386
+ listEnvironments: async (t = {}) => {
1387
+ const e = "/environments", n = new URL(e, P);
1383
1388
  let a;
1384
1389
  l && (a = l.baseOptions);
1385
- const n = { method: "GET", ...a, ...r }, o = {};
1386
- g(t, {});
1390
+ const r = { method: "GET", ...a, ...t }, o = {};
1391
+ b(n, {});
1387
1392
  let c = a && a.headers ? a.headers : {};
1388
- return n.headers = { ...o, ...c, ...r.headers }, {
1389
- url: v(t),
1390
- options: n
1393
+ return r.headers = { ...o, ...c, ...t.headers }, {
1394
+ url: V(n),
1395
+ options: r
1391
1396
  };
1392
1397
  },
1393
1398
  /**
@@ -1398,22 +1403,22 @@ const ee = function(l) {
1398
1403
  * @param {*} [options] Override http request option.
1399
1404
  * @throws {RequiredError}
1400
1405
  */
1401
- updateEnvironment: async (r, e, t = {}) => {
1402
- d("updateEnvironment", "environmentName", r), d("updateEnvironment", "environment", e);
1403
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
1406
+ updateEnvironment: async (t, e, n = {}) => {
1407
+ p("updateEnvironment", "environmentName", t), p("updateEnvironment", "environment", e);
1408
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
1404
1409
  let o;
1405
1410
  l && (o = l.baseOptions);
1406
- const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1407
- c["Content-Type"] = "application/json", g(n, i);
1408
- let p = o && o.headers ? o.headers : {};
1409
- return s.headers = { ...c, ...p, ...t.headers }, s.data = k(e, s, l), {
1410
- url: v(n),
1411
+ const s = { method: "PATCH", ...o, ...n }, c = {}, i = {};
1412
+ c["Content-Type"] = "application/json", b(r, i);
1413
+ let d = o && o.headers ? o.headers : {};
1414
+ return s.headers = { ...c, ...d, ...n.headers }, s.data = k(e, s, l), {
1415
+ url: V(r),
1411
1416
  options: s
1412
1417
  };
1413
1418
  }
1414
1419
  };
1415
- }, x = function(l) {
1416
- const r = ee(l);
1420
+ }, N = function(l) {
1421
+ const t = Ve(l);
1417
1422
  return {
1418
1423
  /**
1419
1424
  * 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.
@@ -1422,9 +1427,9 @@ const ee = function(l) {
1422
1427
  * @param {*} [options] Override http request option.
1423
1428
  * @throws {RequiredError}
1424
1429
  */
1425
- async createEnvironment(e, t) {
1426
- const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1427
- return (s, c) => O(a, h, u, l)(s, o || c);
1430
+ async createEnvironment(e, n) {
1431
+ const a = await t.createEnvironment(e, n), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[r]?.url;
1432
+ return (s, c) => v(a, h, u, l)(s, o || c);
1428
1433
  },
1429
1434
  /**
1430
1435
  * 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.
@@ -1433,9 +1438,9 @@ const ee = function(l) {
1433
1438
  * @param {*} [options] Override http request option.
1434
1439
  * @throws {RequiredError}
1435
1440
  */
1436
- async deleteEnvironment(e, t) {
1437
- const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1438
- return (s, c) => O(a, h, u, l)(s, o || c);
1441
+ async deleteEnvironment(e, n) {
1442
+ const a = await t.deleteEnvironment(e, n), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
1443
+ return (s, c) => v(a, h, u, l)(s, o || c);
1439
1444
  },
1440
1445
  /**
1441
1446
  * 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.
@@ -1445,9 +1450,9 @@ const ee = function(l) {
1445
1450
  * @param {*} [options] Override http request option.
1446
1451
  * @throws {RequiredError}
1447
1452
  */
1448
- async getEnvironment(e, t, a) {
1449
- const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1450
- return (c, i) => O(n, h, u, l)(c, s || i);
1453
+ async getEnvironment(e, n, a) {
1454
+ const r = await t.getEnvironment(e, n, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1455
+ return (c, i) => v(r, h, u, l)(c, s || i);
1451
1456
  },
1452
1457
  /**
1453
1458
  * 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.
@@ -1456,8 +1461,8 @@ const ee = function(l) {
1456
1461
  * @throws {RequiredError}
1457
1462
  */
1458
1463
  async listEnvironments(e) {
1459
- const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1460
- return (o, s) => O(t, h, u, l)(o, n || s);
1464
+ const n = await t.listEnvironments(e), a = l?.serverIndex ?? 0, r = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1465
+ return (o, s) => v(n, h, u, l)(o, r || s);
1461
1466
  },
1462
1467
  /**
1463
1468
  * 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.
@@ -1467,13 +1472,13 @@ const ee = function(l) {
1467
1472
  * @param {*} [options] Override http request option.
1468
1473
  * @throws {RequiredError}
1469
1474
  */
1470
- async updateEnvironment(e, t, a) {
1471
- const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1472
- return (c, i) => O(n, h, u, l)(c, s || i);
1475
+ async updateEnvironment(e, n, a) {
1476
+ const r = await t.updateEnvironment(e, n, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1477
+ return (c, i) => v(r, h, u, l)(c, s || i);
1473
1478
  }
1474
1479
  };
1475
- }, Ge = function(l, r, e) {
1476
- const t = x(l);
1480
+ }, ka = function(l, t, e) {
1481
+ const n = N(l);
1477
1482
  return {
1478
1483
  /**
1479
1484
  * 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.
@@ -1482,8 +1487,8 @@ const ee = function(l) {
1482
1487
  * @param {*} [options] Override http request option.
1483
1488
  * @throws {RequiredError}
1484
1489
  */
1485
- createEnvironment(a, n) {
1486
- return t.createEnvironment(a, n).then((o) => o(e, r));
1490
+ createEnvironment(a, r) {
1491
+ return n.createEnvironment(a, r).then((o) => o(e, t));
1487
1492
  },
1488
1493
  /**
1489
1494
  * 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.
@@ -1492,8 +1497,8 @@ const ee = function(l) {
1492
1497
  * @param {*} [options] Override http request option.
1493
1498
  * @throws {RequiredError}
1494
1499
  */
1495
- deleteEnvironment(a, n) {
1496
- return t.deleteEnvironment(a, n).then((o) => o(e, r));
1500
+ deleteEnvironment(a, r) {
1501
+ return n.deleteEnvironment(a, r).then((o) => o(e, t));
1497
1502
  },
1498
1503
  /**
1499
1504
  * 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.
@@ -1503,8 +1508,8 @@ const ee = function(l) {
1503
1508
  * @param {*} [options] Override http request option.
1504
1509
  * @throws {RequiredError}
1505
1510
  */
1506
- getEnvironment(a, n, o) {
1507
- return t.getEnvironment(a, n, o).then((s) => s(e, r));
1511
+ getEnvironment(a, r, o) {
1512
+ return n.getEnvironment(a, r, o).then((s) => s(e, t));
1508
1513
  },
1509
1514
  /**
1510
1515
  * 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.
@@ -1513,7 +1518,7 @@ const ee = function(l) {
1513
1518
  * @throws {RequiredError}
1514
1519
  */
1515
1520
  listEnvironments(a) {
1516
- return t.listEnvironments(a).then((n) => n(e, r));
1521
+ return n.listEnvironments(a).then((r) => r(e, t));
1517
1522
  },
1518
1523
  /**
1519
1524
  * 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.
@@ -1523,12 +1528,12 @@ const ee = function(l) {
1523
1528
  * @param {*} [options] Override http request option.
1524
1529
  * @throws {RequiredError}
1525
1530
  */
1526
- updateEnvironment(a, n, o) {
1527
- return t.updateEnvironment(a, n, o).then((s) => s(e, r));
1531
+ updateEnvironment(a, r, o) {
1532
+ return n.updateEnvironment(a, r, o).then((s) => s(e, t));
1528
1533
  }
1529
1534
  };
1530
1535
  };
1531
- class ae extends I {
1536
+ class ve extends I {
1532
1537
  /**
1533
1538
  * 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.
1534
1539
  * @summary Create a new environment
@@ -1537,8 +1542,8 @@ class ae extends I {
1537
1542
  * @throws {RequiredError}
1538
1543
  * @memberof EnvironmentsApi
1539
1544
  */
1540
- createEnvironment(r, e) {
1541
- return x(this.configuration).createEnvironment(r, e).then((t) => t(this.axios, this.basePath));
1545
+ createEnvironment(t, e) {
1546
+ return N(this.configuration).createEnvironment(t, e).then((n) => n(this.axios, this.basePath));
1542
1547
  }
1543
1548
  /**
1544
1549
  * 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.
@@ -1548,8 +1553,8 @@ class ae extends I {
1548
1553
  * @throws {RequiredError}
1549
1554
  * @memberof EnvironmentsApi
1550
1555
  */
1551
- deleteEnvironment(r, e) {
1552
- return x(this.configuration).deleteEnvironment(r, e).then((t) => t(this.axios, this.basePath));
1556
+ deleteEnvironment(t, e) {
1557
+ return N(this.configuration).deleteEnvironment(t, e).then((n) => n(this.axios, this.basePath));
1553
1558
  }
1554
1559
  /**
1555
1560
  * 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.
@@ -1560,8 +1565,8 @@ class ae extends I {
1560
1565
  * @throws {RequiredError}
1561
1566
  * @memberof EnvironmentsApi
1562
1567
  */
1563
- getEnvironment(r, e, t) {
1564
- return x(this.configuration).getEnvironment(r, e, t).then((a) => a(this.axios, this.basePath));
1568
+ getEnvironment(t, e, n) {
1569
+ return N(this.configuration).getEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
1565
1570
  }
1566
1571
  /**
1567
1572
  * 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.
@@ -1570,8 +1575,8 @@ class ae extends I {
1570
1575
  * @throws {RequiredError}
1571
1576
  * @memberof EnvironmentsApi
1572
1577
  */
1573
- listEnvironments(r) {
1574
- return x(this.configuration).listEnvironments(r).then((e) => e(this.axios, this.basePath));
1578
+ listEnvironments(t) {
1579
+ return N(this.configuration).listEnvironments(t).then((e) => e(this.axios, this.basePath));
1575
1580
  }
1576
1581
  /**
1577
1582
  * 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.
@@ -1582,11 +1587,11 @@ class ae extends I {
1582
1587
  * @throws {RequiredError}
1583
1588
  * @memberof EnvironmentsApi
1584
1589
  */
1585
- updateEnvironment(r, e, t) {
1586
- return x(this.configuration).updateEnvironment(r, e, t).then((a) => a(this.axios, this.basePath));
1590
+ updateEnvironment(t, e, n) {
1591
+ return N(this.configuration).updateEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
1587
1592
  }
1588
1593
  }
1589
- const te = function(l) {
1594
+ const Oe = function(l) {
1590
1595
  return {
1591
1596
  /**
1592
1597
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -1597,16 +1602,16 @@ const te = function(l) {
1597
1602
  * @param {*} [options] Override http request option.
1598
1603
  * @throws {RequiredError}
1599
1604
  */
1600
- createMaterialization: async (r, e, t, a = {}) => {
1601
- d("createMaterialization", "environmentName", r), d("createMaterialization", "packageName", e);
1602
- const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
1605
+ createMaterialization: async (t, e, n, a = {}) => {
1606
+ p("createMaterialization", "environmentName", t), p("createMaterialization", "packageName", e);
1607
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1603
1608
  let s;
1604
1609
  l && (s = l.baseOptions);
1605
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
1606
- i["Content-Type"] = "application/json", g(o, p);
1610
+ const c = { method: "POST", ...s, ...a }, i = {}, d = {};
1611
+ i["Content-Type"] = "application/json", b(o, d);
1607
1612
  let m = s && s.headers ? s.headers : {};
1608
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
1609
- url: v(o),
1613
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
1614
+ url: V(o),
1610
1615
  options: c
1611
1616
  };
1612
1617
  },
@@ -1620,16 +1625,16 @@ const te = function(l) {
1620
1625
  * @param {*} [options] Override http request option.
1621
1626
  * @throws {RequiredError}
1622
1627
  */
1623
- deleteMaterialization: async (r, e, t, a, n = {}) => {
1624
- d("deleteMaterialization", "environmentName", r), d("deleteMaterialization", "packageName", e), d("deleteMaterialization", "materializationId", t);
1625
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, V);
1628
+ deleteMaterialization: async (t, e, n, a, r = {}) => {
1629
+ p("deleteMaterialization", "environmentName", t), p("deleteMaterialization", "packageName", e), p("deleteMaterialization", "materializationId", n);
1630
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, P);
1626
1631
  let c;
1627
1632
  l && (c = l.baseOptions);
1628
- const i = { method: "DELETE", ...c, ...n }, p = {}, m = {};
1629
- a !== void 0 && (m.dropTables = a), g(s, m);
1630
- let b = c && c.headers ? c.headers : {};
1631
- return i.headers = { ...p, ...b, ...n.headers }, {
1632
- url: v(s),
1633
+ const i = { method: "DELETE", ...c, ...r }, d = {}, m = {};
1634
+ a !== void 0 && (m.dropTables = a), b(s, m);
1635
+ let O = c && c.headers ? c.headers : {};
1636
+ return i.headers = { ...d, ...O, ...r.headers }, {
1637
+ url: V(s),
1633
1638
  options: i
1634
1639
  };
1635
1640
  },
@@ -1642,16 +1647,16 @@ const te = function(l) {
1642
1647
  * @param {*} [options] Override http request option.
1643
1648
  * @throws {RequiredError}
1644
1649
  */
1645
- getMaterialization: async (r, e, t, a = {}) => {
1646
- d("getMaterialization", "environmentName", r), d("getMaterialization", "packageName", e), d("getMaterialization", "materializationId", t);
1647
- const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, V);
1650
+ getMaterialization: async (t, e, n, a = {}) => {
1651
+ p("getMaterialization", "environmentName", t), p("getMaterialization", "packageName", e), p("getMaterialization", "materializationId", n);
1652
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(r, P);
1648
1653
  let s;
1649
1654
  l && (s = l.baseOptions);
1650
1655
  const c = { method: "GET", ...s, ...a }, i = {};
1651
- g(o, {});
1656
+ b(o, {});
1652
1657
  let m = s && s.headers ? s.headers : {};
1653
1658
  return c.headers = { ...i, ...m, ...a.headers }, {
1654
- url: v(o),
1659
+ url: V(o),
1655
1660
  options: c
1656
1661
  };
1657
1662
  },
@@ -1665,16 +1670,16 @@ const te = function(l) {
1665
1670
  * @param {*} [options] Override http request option.
1666
1671
  * @throws {RequiredError}
1667
1672
  */
1668
- listMaterializations: async (r, e, t, a, n = {}) => {
1669
- d("listMaterializations", "environmentName", r), d("listMaterializations", "packageName", e);
1670
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
1673
+ listMaterializations: async (t, e, n, a, r = {}) => {
1674
+ p("listMaterializations", "environmentName", t), p("listMaterializations", "packageName", e);
1675
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
1671
1676
  let c;
1672
1677
  l && (c = l.baseOptions);
1673
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
1674
- t !== void 0 && (m.limit = t), a !== void 0 && (m.offset = a), g(s, m);
1675
- let b = c && c.headers ? c.headers : {};
1676
- return i.headers = { ...p, ...b, ...n.headers }, {
1677
- url: v(s),
1678
+ const i = { method: "GET", ...c, ...r }, d = {}, m = {};
1679
+ n !== void 0 && (m.limit = n), a !== void 0 && (m.offset = a), b(s, m);
1680
+ let O = c && c.headers ? c.headers : {};
1681
+ return i.headers = { ...d, ...O, ...r.headers }, {
1682
+ url: V(s),
1678
1683
  options: i
1679
1684
  };
1680
1685
  },
@@ -1688,22 +1693,22 @@ const te = function(l) {
1688
1693
  * @param {*} [options] Override http request option.
1689
1694
  * @throws {RequiredError}
1690
1695
  */
1691
- materializationAction: async (r, e, t, a, n = {}) => {
1692
- d("materializationAction", "environmentName", r), d("materializationAction", "packageName", e), d("materializationAction", "materializationId", t), d("materializationAction", "action", a);
1693
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, V);
1696
+ materializationAction: async (t, e, n, a, r = {}) => {
1697
+ p("materializationAction", "environmentName", t), p("materializationAction", "packageName", e), p("materializationAction", "materializationId", n), p("materializationAction", "action", a);
1698
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, P);
1694
1699
  let c;
1695
1700
  l && (c = l.baseOptions);
1696
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1697
- a !== void 0 && (m.action = a), g(s, m);
1698
- let b = c && c.headers ? c.headers : {};
1699
- return i.headers = { ...p, ...b, ...n.headers }, {
1700
- url: v(s),
1701
+ const i = { method: "POST", ...c, ...r }, d = {}, m = {};
1702
+ a !== void 0 && (m.action = a), b(s, m);
1703
+ let O = c && c.headers ? c.headers : {};
1704
+ return i.headers = { ...d, ...O, ...r.headers }, {
1705
+ url: V(s),
1701
1706
  options: i
1702
1707
  };
1703
1708
  }
1704
1709
  };
1705
- }, N = function(l) {
1706
- const r = te(l);
1710
+ }, T = function(l) {
1711
+ const t = Oe(l);
1707
1712
  return {
1708
1713
  /**
1709
1714
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -1714,9 +1719,9 @@ const te = function(l) {
1714
1719
  * @param {*} [options] Override http request option.
1715
1720
  * @throws {RequiredError}
1716
1721
  */
1717
- async createMaterialization(e, t, a, n) {
1718
- const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
1719
- return (i, p) => O(o, h, u, l)(i, c || p);
1722
+ async createMaterialization(e, n, a, r) {
1723
+ const o = await t.createMaterialization(e, n, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
1724
+ return (i, d) => v(o, h, u, l)(i, c || d);
1720
1725
  },
1721
1726
  /**
1722
1727
  * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
@@ -1728,9 +1733,9 @@ const te = function(l) {
1728
1733
  * @param {*} [options] Override http request option.
1729
1734
  * @throws {RequiredError}
1730
1735
  */
1731
- async deleteMaterialization(e, t, a, n, o) {
1732
- const s = await r.deleteMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
1733
- return (p, m) => O(s, h, u, l)(p, i || m);
1736
+ async deleteMaterialization(e, n, a, r, o) {
1737
+ const s = await t.deleteMaterialization(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
1738
+ return (d, m) => v(s, h, u, l)(d, i || m);
1734
1739
  },
1735
1740
  /**
1736
1741
  *
@@ -1741,9 +1746,9 @@ const te = function(l) {
1741
1746
  * @param {*} [options] Override http request option.
1742
1747
  * @throws {RequiredError}
1743
1748
  */
1744
- async getMaterialization(e, t, a, n) {
1745
- const o = await r.getMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
1746
- return (i, p) => O(o, h, u, l)(i, c || p);
1749
+ async getMaterialization(e, n, a, r) {
1750
+ const o = await t.getMaterialization(e, n, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
1751
+ return (i, d) => v(o, h, u, l)(i, c || d);
1747
1752
  },
1748
1753
  /**
1749
1754
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1755,9 +1760,9 @@ const te = function(l) {
1755
1760
  * @param {*} [options] Override http request option.
1756
1761
  * @throws {RequiredError}
1757
1762
  */
1758
- async listMaterializations(e, t, a, n, o) {
1759
- const s = await r.listMaterializations(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
1760
- return (p, m) => O(s, h, u, l)(p, i || m);
1763
+ async listMaterializations(e, n, a, r, o) {
1764
+ const s = await t.listMaterializations(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
1765
+ return (d, m) => v(s, h, u, l)(d, i || m);
1761
1766
  },
1762
1767
  /**
1763
1768
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -1769,13 +1774,13 @@ const te = function(l) {
1769
1774
  * @param {*} [options] Override http request option.
1770
1775
  * @throws {RequiredError}
1771
1776
  */
1772
- async materializationAction(e, t, a, n, o) {
1773
- const s = await r.materializationAction(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
1774
- return (p, m) => O(s, h, u, l)(p, i || m);
1777
+ async materializationAction(e, n, a, r, o) {
1778
+ const s = await t.materializationAction(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
1779
+ return (d, m) => v(s, h, u, l)(d, i || m);
1775
1780
  }
1776
1781
  };
1777
- }, _e = function(l, r, e) {
1778
- const t = N(l);
1782
+ }, ya = function(l, t, e) {
1783
+ const n = T(l);
1779
1784
  return {
1780
1785
  /**
1781
1786
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -1786,8 +1791,8 @@ const te = function(l) {
1786
1791
  * @param {*} [options] Override http request option.
1787
1792
  * @throws {RequiredError}
1788
1793
  */
1789
- createMaterialization(a, n, o, s) {
1790
- return t.createMaterialization(a, n, o, s).then((c) => c(e, r));
1794
+ createMaterialization(a, r, o, s) {
1795
+ return n.createMaterialization(a, r, o, s).then((c) => c(e, t));
1791
1796
  },
1792
1797
  /**
1793
1798
  * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
@@ -1799,8 +1804,8 @@ const te = function(l) {
1799
1804
  * @param {*} [options] Override http request option.
1800
1805
  * @throws {RequiredError}
1801
1806
  */
1802
- deleteMaterialization(a, n, o, s, c) {
1803
- return t.deleteMaterialization(a, n, o, s, c).then((i) => i(e, r));
1807
+ deleteMaterialization(a, r, o, s, c) {
1808
+ return n.deleteMaterialization(a, r, o, s, c).then((i) => i(e, t));
1804
1809
  },
1805
1810
  /**
1806
1811
  *
@@ -1811,8 +1816,8 @@ const te = function(l) {
1811
1816
  * @param {*} [options] Override http request option.
1812
1817
  * @throws {RequiredError}
1813
1818
  */
1814
- getMaterialization(a, n, o, s) {
1815
- return t.getMaterialization(a, n, o, s).then((c) => c(e, r));
1819
+ getMaterialization(a, r, o, s) {
1820
+ return n.getMaterialization(a, r, o, s).then((c) => c(e, t));
1816
1821
  },
1817
1822
  /**
1818
1823
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1824,8 +1829,8 @@ const te = function(l) {
1824
1829
  * @param {*} [options] Override http request option.
1825
1830
  * @throws {RequiredError}
1826
1831
  */
1827
- listMaterializations(a, n, o, s, c) {
1828
- return t.listMaterializations(a, n, o, s, c).then((i) => i(e, r));
1832
+ listMaterializations(a, r, o, s, c) {
1833
+ return n.listMaterializations(a, r, o, s, c).then((i) => i(e, t));
1829
1834
  },
1830
1835
  /**
1831
1836
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -1837,12 +1842,12 @@ const te = function(l) {
1837
1842
  * @param {*} [options] Override http request option.
1838
1843
  * @throws {RequiredError}
1839
1844
  */
1840
- materializationAction(a, n, o, s, c) {
1841
- return t.materializationAction(a, n, o, s, c).then((i) => i(e, r));
1845
+ materializationAction(a, r, o, s, c) {
1846
+ return n.materializationAction(a, r, o, s, c).then((i) => i(e, t));
1842
1847
  }
1843
1848
  };
1844
1849
  };
1845
- class ne extends I {
1850
+ class Se extends I {
1846
1851
  /**
1847
1852
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
1848
1853
  * @summary Create a materialization
@@ -1853,8 +1858,8 @@ class ne extends I {
1853
1858
  * @throws {RequiredError}
1854
1859
  * @memberof MaterializationsApi
1855
1860
  */
1856
- createMaterialization(r, e, t, a) {
1857
- return N(this.configuration).createMaterialization(r, e, t, a).then((n) => n(this.axios, this.basePath));
1861
+ createMaterialization(t, e, n, a) {
1862
+ return T(this.configuration).createMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
1858
1863
  }
1859
1864
  /**
1860
1865
  * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
@@ -1867,8 +1872,8 @@ class ne extends I {
1867
1872
  * @throws {RequiredError}
1868
1873
  * @memberof MaterializationsApi
1869
1874
  */
1870
- deleteMaterialization(r, e, t, a, n) {
1871
- return N(this.configuration).deleteMaterialization(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1875
+ deleteMaterialization(t, e, n, a, r) {
1876
+ return T(this.configuration).deleteMaterialization(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1872
1877
  }
1873
1878
  /**
1874
1879
  *
@@ -1880,8 +1885,8 @@ class ne extends I {
1880
1885
  * @throws {RequiredError}
1881
1886
  * @memberof MaterializationsApi
1882
1887
  */
1883
- getMaterialization(r, e, t, a) {
1884
- return N(this.configuration).getMaterialization(r, e, t, a).then((n) => n(this.axios, this.basePath));
1888
+ getMaterialization(t, e, n, a) {
1889
+ return T(this.configuration).getMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
1885
1890
  }
1886
1891
  /**
1887
1892
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1894,8 +1899,8 @@ class ne extends I {
1894
1899
  * @throws {RequiredError}
1895
1900
  * @memberof MaterializationsApi
1896
1901
  */
1897
- listMaterializations(r, e, t, a, n) {
1898
- return N(this.configuration).listMaterializations(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1902
+ listMaterializations(t, e, n, a, r) {
1903
+ return T(this.configuration).listMaterializations(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1899
1904
  }
1900
1905
  /**
1901
1906
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -1908,13 +1913,13 @@ class ne extends I {
1908
1913
  * @throws {RequiredError}
1909
1914
  * @memberof MaterializationsApi
1910
1915
  */
1911
- materializationAction(r, e, t, a, n) {
1912
- return N(this.configuration).materializationAction(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1916
+ materializationAction(t, e, n, a, r) {
1917
+ return T(this.configuration).materializationAction(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
1913
1918
  }
1914
1919
  }
1915
- const Ye = {
1920
+ const Ca = {
1916
1921
  Stop: "stop"
1917
- }, re = function(l) {
1922
+ }, ke = function(l) {
1918
1923
  return {
1919
1924
  /**
1920
1925
  * 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.
@@ -1926,16 +1931,16 @@ const Ye = {
1926
1931
  * @param {*} [options] Override http request option.
1927
1932
  * @throws {RequiredError}
1928
1933
  */
1929
- compileModelSource: async (r, e, t, a, n = {}) => {
1930
- d("compileModelSource", "environmentName", r), d("compileModelSource", "packageName", e), d("compileModelSource", "path", t), d("compileModelSource", "compileRequest", a);
1931
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
1934
+ compileModelSource: async (t, e, n, a, r = {}) => {
1935
+ p("compileModelSource", "environmentName", t), p("compileModelSource", "packageName", e), p("compileModelSource", "path", n), p("compileModelSource", "compileRequest", a);
1936
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
1932
1937
  let c;
1933
1938
  l && (c = l.baseOptions);
1934
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1935
- p["Content-Type"] = "application/json", g(s, m);
1936
- let b = c && c.headers ? c.headers : {};
1937
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
1938
- url: v(s),
1939
+ const i = { method: "POST", ...c, ...r }, d = {}, m = {};
1940
+ d["Content-Type"] = "application/json", b(s, m);
1941
+ let O = c && c.headers ? c.headers : {};
1942
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
1943
+ url: V(s),
1939
1944
  options: i
1940
1945
  };
1941
1946
  },
@@ -1949,16 +1954,16 @@ const Ye = {
1949
1954
  * @param {*} [options] Override http request option.
1950
1955
  * @throws {RequiredError}
1951
1956
  */
1952
- executeQueryModel: async (r, e, t, a, n = {}) => {
1953
- d("executeQueryModel", "environmentName", r), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", t), d("executeQueryModel", "queryRequest", a);
1954
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
1957
+ executeQueryModel: async (t, e, n, a, r = {}) => {
1958
+ p("executeQueryModel", "environmentName", t), p("executeQueryModel", "packageName", e), p("executeQueryModel", "path", n), p("executeQueryModel", "queryRequest", a);
1959
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
1955
1960
  let c;
1956
1961
  l && (c = l.baseOptions);
1957
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1958
- p["Content-Type"] = "application/json", g(s, m);
1959
- let b = c && c.headers ? c.headers : {};
1960
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
1961
- url: v(s),
1962
+ const i = { method: "POST", ...c, ...r }, d = {}, m = {};
1963
+ d["Content-Type"] = "application/json", b(s, m);
1964
+ let O = c && c.headers ? c.headers : {};
1965
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
1966
+ url: V(s),
1962
1967
  options: i
1963
1968
  };
1964
1969
  },
@@ -1972,16 +1977,16 @@ const Ye = {
1972
1977
  * @param {*} [options] Override http request option.
1973
1978
  * @throws {RequiredError}
1974
1979
  */
1975
- getModel: async (r, e, t, a, n = {}) => {
1976
- d("getModel", "environmentName", r), d("getModel", "packageName", e), d("getModel", "path", t);
1977
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
1980
+ getModel: async (t, e, n, a, r = {}) => {
1981
+ p("getModel", "environmentName", t), p("getModel", "packageName", e), p("getModel", "path", n);
1982
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
1978
1983
  let c;
1979
1984
  l && (c = l.baseOptions);
1980
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
1981
- a !== void 0 && (m.versionId = a), g(s, m);
1982
- let b = c && c.headers ? c.headers : {};
1983
- return i.headers = { ...p, ...b, ...n.headers }, {
1984
- url: v(s),
1985
+ const i = { method: "GET", ...c, ...r }, d = {}, m = {};
1986
+ a !== void 0 && (m.versionId = a), b(s, m);
1987
+ let O = c && c.headers ? c.headers : {};
1988
+ return i.headers = { ...d, ...O, ...r.headers }, {
1989
+ url: V(s),
1985
1990
  options: i
1986
1991
  };
1987
1992
  },
@@ -1994,22 +1999,22 @@ const Ye = {
1994
1999
  * @param {*} [options] Override http request option.
1995
2000
  * @throws {RequiredError}
1996
2001
  */
1997
- listModels: async (r, e, t, a = {}) => {
1998
- d("listModels", "environmentName", r), d("listModels", "packageName", e);
1999
- const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2002
+ listModels: async (t, e, n, a = {}) => {
2003
+ p("listModels", "environmentName", t), p("listModels", "packageName", e);
2004
+ const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2000
2005
  let s;
2001
2006
  l && (s = l.baseOptions);
2002
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2003
- t !== void 0 && (p.versionId = t), g(o, p);
2007
+ const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2008
+ n !== void 0 && (d.versionId = n), b(o, d);
2004
2009
  let m = s && s.headers ? s.headers : {};
2005
2010
  return c.headers = { ...i, ...m, ...a.headers }, {
2006
- url: v(o),
2011
+ url: V(o),
2007
2012
  options: c
2008
2013
  };
2009
2014
  }
2010
2015
  };
2011
- }, U = function(l) {
2012
- const r = re(l);
2016
+ }, w = function(l) {
2017
+ const t = ke(l);
2013
2018
  return {
2014
2019
  /**
2015
2020
  * 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.
@@ -2021,9 +2026,9 @@ const Ye = {
2021
2026
  * @param {*} [options] Override http request option.
2022
2027
  * @throws {RequiredError}
2023
2028
  */
2024
- async compileModelSource(e, t, a, n, o) {
2025
- const s = await r.compileModelSource(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2026
- return (p, m) => O(s, h, u, l)(p, i || m);
2029
+ async compileModelSource(e, n, a, r, o) {
2030
+ const s = await t.compileModelSource(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2031
+ return (d, m) => v(s, h, u, l)(d, i || m);
2027
2032
  },
2028
2033
  /**
2029
2034
  * 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.
@@ -2035,9 +2040,9 @@ const Ye = {
2035
2040
  * @param {*} [options] Override http request option.
2036
2041
  * @throws {RequiredError}
2037
2042
  */
2038
- async executeQueryModel(e, t, a, n, o) {
2039
- const s = await r.executeQueryModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2040
- return (p, m) => O(s, h, u, l)(p, i || m);
2043
+ async executeQueryModel(e, n, a, r, o) {
2044
+ const s = await t.executeQueryModel(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2045
+ return (d, m) => v(s, h, u, l)(d, i || m);
2041
2046
  },
2042
2047
  /**
2043
2048
  * 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.
@@ -2049,9 +2054,9 @@ const Ye = {
2049
2054
  * @param {*} [options] Override http request option.
2050
2055
  * @throws {RequiredError}
2051
2056
  */
2052
- async getModel(e, t, a, n, o) {
2053
- const s = await r.getModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2054
- return (p, m) => O(s, h, u, l)(p, i || m);
2057
+ async getModel(e, n, a, r, o) {
2058
+ const s = await t.getModel(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2059
+ return (d, m) => v(s, h, u, l)(d, i || m);
2055
2060
  },
2056
2061
  /**
2057
2062
  * 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.
@@ -2062,13 +2067,13 @@ const Ye = {
2062
2067
  * @param {*} [options] Override http request option.
2063
2068
  * @throws {RequiredError}
2064
2069
  */
2065
- async listModels(e, t, a, n) {
2066
- const o = await r.listModels(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
2067
- return (i, p) => O(o, h, u, l)(i, c || p);
2070
+ async listModels(e, n, a, r) {
2071
+ const o = await t.listModels(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2072
+ return (i, d) => v(o, h, u, l)(i, c || d);
2068
2073
  }
2069
2074
  };
2070
- }, Je = function(l, r, e) {
2071
- const t = U(l);
2075
+ }, Ia = function(l, t, e) {
2076
+ const n = w(l);
2072
2077
  return {
2073
2078
  /**
2074
2079
  * 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.
@@ -2080,8 +2085,8 @@ const Ye = {
2080
2085
  * @param {*} [options] Override http request option.
2081
2086
  * @throws {RequiredError}
2082
2087
  */
2083
- compileModelSource(a, n, o, s, c) {
2084
- return t.compileModelSource(a, n, o, s, c).then((i) => i(e, r));
2088
+ compileModelSource(a, r, o, s, c) {
2089
+ return n.compileModelSource(a, r, o, s, c).then((i) => i(e, t));
2085
2090
  },
2086
2091
  /**
2087
2092
  * 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.
@@ -2093,8 +2098,8 @@ const Ye = {
2093
2098
  * @param {*} [options] Override http request option.
2094
2099
  * @throws {RequiredError}
2095
2100
  */
2096
- executeQueryModel(a, n, o, s, c) {
2097
- return t.executeQueryModel(a, n, o, s, c).then((i) => i(e, r));
2101
+ executeQueryModel(a, r, o, s, c) {
2102
+ return n.executeQueryModel(a, r, o, s, c).then((i) => i(e, t));
2098
2103
  },
2099
2104
  /**
2100
2105
  * 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.
@@ -2106,8 +2111,8 @@ const Ye = {
2106
2111
  * @param {*} [options] Override http request option.
2107
2112
  * @throws {RequiredError}
2108
2113
  */
2109
- getModel(a, n, o, s, c) {
2110
- return t.getModel(a, n, o, s, c).then((i) => i(e, r));
2114
+ getModel(a, r, o, s, c) {
2115
+ return n.getModel(a, r, o, s, c).then((i) => i(e, t));
2111
2116
  },
2112
2117
  /**
2113
2118
  * 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.
@@ -2118,12 +2123,12 @@ const Ye = {
2118
2123
  * @param {*} [options] Override http request option.
2119
2124
  * @throws {RequiredError}
2120
2125
  */
2121
- listModels(a, n, o, s) {
2122
- return t.listModels(a, n, o, s).then((c) => c(e, r));
2126
+ listModels(a, r, o, s) {
2127
+ return n.listModels(a, r, o, s).then((c) => c(e, t));
2123
2128
  }
2124
2129
  };
2125
2130
  };
2126
- class oe extends I {
2131
+ class ye extends I {
2127
2132
  /**
2128
2133
  * 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.
2129
2134
  * @summary Compile Malloy source code
@@ -2135,8 +2140,8 @@ class oe extends I {
2135
2140
  * @throws {RequiredError}
2136
2141
  * @memberof ModelsApi
2137
2142
  */
2138
- compileModelSource(r, e, t, a, n) {
2139
- return U(this.configuration).compileModelSource(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
2143
+ compileModelSource(t, e, n, a, r) {
2144
+ return w(this.configuration).compileModelSource(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2140
2145
  }
2141
2146
  /**
2142
2147
  * 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.
@@ -2149,8 +2154,8 @@ class oe extends I {
2149
2154
  * @throws {RequiredError}
2150
2155
  * @memberof ModelsApi
2151
2156
  */
2152
- executeQueryModel(r, e, t, a, n) {
2153
- return U(this.configuration).executeQueryModel(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
2157
+ executeQueryModel(t, e, n, a, r) {
2158
+ return w(this.configuration).executeQueryModel(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2154
2159
  }
2155
2160
  /**
2156
2161
  * 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.
@@ -2163,8 +2168,8 @@ class oe extends I {
2163
2168
  * @throws {RequiredError}
2164
2169
  * @memberof ModelsApi
2165
2170
  */
2166
- getModel(r, e, t, a, n) {
2167
- return U(this.configuration).getModel(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
2171
+ getModel(t, e, n, a, r) {
2172
+ return w(this.configuration).getModel(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2168
2173
  }
2169
2174
  /**
2170
2175
  * 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.
@@ -2176,11 +2181,11 @@ class oe extends I {
2176
2181
  * @throws {RequiredError}
2177
2182
  * @memberof ModelsApi
2178
2183
  */
2179
- listModels(r, e, t, a) {
2180
- return U(this.configuration).listModels(r, e, t, a).then((n) => n(this.axios, this.basePath));
2184
+ listModels(t, e, n, a) {
2185
+ return w(this.configuration).listModels(t, e, n, a).then((r) => r(this.axios, this.basePath));
2181
2186
  }
2182
2187
  }
2183
- const se = function(l) {
2188
+ const Ce = function(l) {
2184
2189
  return {
2185
2190
  /**
2186
2191
  * 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.
@@ -2196,17 +2201,17 @@ const se = function(l) {
2196
2201
  * @param {*} [options] Override http request option.
2197
2202
  * @throws {RequiredError}
2198
2203
  */
2199
- executeNotebookCell: async (r, e, t, a, n, o, s, c, i = {}) => {
2200
- d("executeNotebookCell", "environmentName", r), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", t), d("executeNotebookCell", "cellIndex", a);
2201
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), m = new URL(p, V);
2202
- let b;
2203
- l && (b = l.baseOptions);
2204
- const y = { method: "GET", ...b, ...i }, w = {}, C = {};
2205
- 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), g(m, C);
2206
- let A = b && b.headers ? b.headers : {};
2207
- return y.headers = { ...w, ...A, ...i.headers }, {
2208
- url: v(m),
2209
- options: y
2204
+ executeNotebookCell: async (t, e, n, a, r, o, s, c, i = {}) => {
2205
+ p("executeNotebookCell", "environmentName", t), p("executeNotebookCell", "packageName", e), p("executeNotebookCell", "path", n), p("executeNotebookCell", "cellIndex", a);
2206
+ const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(a))), m = new URL(d, P);
2207
+ let O;
2208
+ l && (O = l.baseOptions);
2209
+ const C = { method: "GET", ...O, ...i }, A = {}, x = {};
2210
+ r !== void 0 && (x.versionId = r), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), b(m, x);
2211
+ let $ = O && O.headers ? O.headers : {};
2212
+ return C.headers = { ...A, ...$, ...i.headers }, {
2213
+ url: V(m),
2214
+ options: C
2210
2215
  };
2211
2216
  },
2212
2217
  /**
@@ -2219,16 +2224,16 @@ const se = function(l) {
2219
2224
  * @param {*} [options] Override http request option.
2220
2225
  * @throws {RequiredError}
2221
2226
  */
2222
- getNotebook: async (r, e, t, a, n = {}) => {
2223
- d("getNotebook", "environmentName", r), d("getNotebook", "packageName", e), d("getNotebook", "path", t);
2224
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
2227
+ getNotebook: async (t, e, n, a, r = {}) => {
2228
+ p("getNotebook", "environmentName", t), p("getNotebook", "packageName", e), p("getNotebook", "path", n);
2229
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
2225
2230
  let c;
2226
2231
  l && (c = l.baseOptions);
2227
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
2228
- a !== void 0 && (m.versionId = a), g(s, m);
2229
- let b = c && c.headers ? c.headers : {};
2230
- return i.headers = { ...p, ...b, ...n.headers }, {
2231
- url: v(s),
2232
+ const i = { method: "GET", ...c, ...r }, d = {}, m = {};
2233
+ a !== void 0 && (m.versionId = a), b(s, m);
2234
+ let O = c && c.headers ? c.headers : {};
2235
+ return i.headers = { ...d, ...O, ...r.headers }, {
2236
+ url: V(s),
2232
2237
  options: i
2233
2238
  };
2234
2239
  },
@@ -2241,22 +2246,22 @@ const se = function(l) {
2241
2246
  * @param {*} [options] Override http request option.
2242
2247
  * @throws {RequiredError}
2243
2248
  */
2244
- listNotebooks: async (r, e, t, a = {}) => {
2245
- d("listNotebooks", "environmentName", r), d("listNotebooks", "packageName", e);
2246
- const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2249
+ listNotebooks: async (t, e, n, a = {}) => {
2250
+ p("listNotebooks", "environmentName", t), p("listNotebooks", "packageName", e);
2251
+ const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2247
2252
  let s;
2248
2253
  l && (s = l.baseOptions);
2249
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2250
- t !== void 0 && (p.versionId = t), g(o, p);
2254
+ const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2255
+ n !== void 0 && (d.versionId = n), b(o, d);
2251
2256
  let m = s && s.headers ? s.headers : {};
2252
2257
  return c.headers = { ...i, ...m, ...a.headers }, {
2253
- url: v(o),
2258
+ url: V(o),
2254
2259
  options: c
2255
2260
  };
2256
2261
  }
2257
2262
  };
2258
- }, E = function(l) {
2259
- const r = se(l);
2263
+ }, F = function(l) {
2264
+ const t = Ce(l);
2260
2265
  return {
2261
2266
  /**
2262
2267
  * 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.
@@ -2272,9 +2277,9 @@ const se = function(l) {
2272
2277
  * @param {*} [options] Override http request option.
2273
2278
  * @throws {RequiredError}
2274
2279
  */
2275
- async executeNotebookCell(e, t, a, n, o, s, c, i, p) {
2276
- const m = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), b = l?.serverIndex ?? 0, y = P["NotebooksApi.executeNotebookCell"]?.[b]?.url;
2277
- return (w, C) => O(m, h, u, l)(w, y || C);
2280
+ async executeNotebookCell(e, n, a, r, o, s, c, i, d) {
2281
+ const m = await t.executeNotebookCell(e, n, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0, C = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
2282
+ return (A, x) => v(m, h, u, l)(A, C || x);
2278
2283
  },
2279
2284
  /**
2280
2285
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2286,9 +2291,9 @@ const se = function(l) {
2286
2291
  * @param {*} [options] Override http request option.
2287
2292
  * @throws {RequiredError}
2288
2293
  */
2289
- async getNotebook(e, t, a, n, o) {
2290
- const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2291
- return (p, m) => O(s, h, u, l)(p, i || m);
2294
+ async getNotebook(e, n, a, r, o) {
2295
+ const s = await t.getNotebook(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2296
+ return (d, m) => v(s, h, u, l)(d, i || m);
2292
2297
  },
2293
2298
  /**
2294
2299
  * 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.
@@ -2299,13 +2304,13 @@ const se = function(l) {
2299
2304
  * @param {*} [options] Override http request option.
2300
2305
  * @throws {RequiredError}
2301
2306
  */
2302
- async listNotebooks(e, t, a, n) {
2303
- const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2304
- return (i, p) => O(o, h, u, l)(i, c || p);
2307
+ async listNotebooks(e, n, a, r) {
2308
+ const o = await t.listNotebooks(e, n, a, r), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2309
+ return (i, d) => v(o, h, u, l)(i, c || d);
2305
2310
  }
2306
2311
  };
2307
- }, Ke = function(l, r, e) {
2308
- const t = E(l);
2312
+ }, xa = function(l, t, e) {
2313
+ const n = F(l);
2309
2314
  return {
2310
2315
  /**
2311
2316
  * 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.
@@ -2321,8 +2326,8 @@ const se = function(l) {
2321
2326
  * @param {*} [options] Override http request option.
2322
2327
  * @throws {RequiredError}
2323
2328
  */
2324
- executeNotebookCell(a, n, o, s, c, i, p, m, b) {
2325
- return t.executeNotebookCell(a, n, o, s, c, i, p, m, b).then((y) => y(e, r));
2329
+ executeNotebookCell(a, r, o, s, c, i, d, m, O) {
2330
+ return n.executeNotebookCell(a, r, o, s, c, i, d, m, O).then((C) => C(e, t));
2326
2331
  },
2327
2332
  /**
2328
2333
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2334,8 +2339,8 @@ const se = function(l) {
2334
2339
  * @param {*} [options] Override http request option.
2335
2340
  * @throws {RequiredError}
2336
2341
  */
2337
- getNotebook(a, n, o, s, c) {
2338
- return t.getNotebook(a, n, o, s, c).then((i) => i(e, r));
2342
+ getNotebook(a, r, o, s, c) {
2343
+ return n.getNotebook(a, r, o, s, c).then((i) => i(e, t));
2339
2344
  },
2340
2345
  /**
2341
2346
  * 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.
@@ -2346,12 +2351,12 @@ const se = function(l) {
2346
2351
  * @param {*} [options] Override http request option.
2347
2352
  * @throws {RequiredError}
2348
2353
  */
2349
- listNotebooks(a, n, o, s) {
2350
- return t.listNotebooks(a, n, o, s).then((c) => c(e, r));
2354
+ listNotebooks(a, r, o, s) {
2355
+ return n.listNotebooks(a, r, o, s).then((c) => c(e, t));
2351
2356
  }
2352
2357
  };
2353
2358
  };
2354
- class ce extends I {
2359
+ class Ie extends I {
2355
2360
  /**
2356
2361
  * 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.
2357
2362
  * @summary Execute a specific notebook cell
@@ -2367,8 +2372,8 @@ class ce extends I {
2367
2372
  * @throws {RequiredError}
2368
2373
  * @memberof NotebooksApi
2369
2374
  */
2370
- executeNotebookCell(r, e, t, a, n, o, s, c, i) {
2371
- return E(this.configuration).executeNotebookCell(r, e, t, a, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
2375
+ executeNotebookCell(t, e, n, a, r, o, s, c, i) {
2376
+ return F(this.configuration).executeNotebookCell(t, e, n, a, r, o, s, c, i).then((d) => d(this.axios, this.basePath));
2372
2377
  }
2373
2378
  /**
2374
2379
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2381,8 +2386,8 @@ class ce extends I {
2381
2386
  * @throws {RequiredError}
2382
2387
  * @memberof NotebooksApi
2383
2388
  */
2384
- getNotebook(r, e, t, a, n) {
2385
- return E(this.configuration).getNotebook(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
2389
+ getNotebook(t, e, n, a, r) {
2390
+ return F(this.configuration).getNotebook(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2386
2391
  }
2387
2392
  /**
2388
2393
  * 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.
@@ -2394,14 +2399,14 @@ class ce extends I {
2394
2399
  * @throws {RequiredError}
2395
2400
  * @memberof NotebooksApi
2396
2401
  */
2397
- listNotebooks(r, e, t, a) {
2398
- return E(this.configuration).listNotebooks(r, e, t, a).then((n) => n(this.axios, this.basePath));
2402
+ listNotebooks(t, e, n, a) {
2403
+ return F(this.configuration).listNotebooks(t, e, n, a).then((r) => r(this.axios, this.basePath));
2399
2404
  }
2400
2405
  }
2401
- const Xe = {
2406
+ const Aa = {
2402
2407
  True: "true",
2403
2408
  False: "false"
2404
- }, le = function(l) {
2409
+ }, xe = function(l) {
2405
2410
  return {
2406
2411
  /**
2407
2412
  * 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.
@@ -2411,16 +2416,16 @@ const Xe = {
2411
2416
  * @param {*} [options] Override http request option.
2412
2417
  * @throws {RequiredError}
2413
2418
  */
2414
- createPackage: async (r, e, t = {}) => {
2415
- d("createPackage", "environmentName", r), d("createPackage", "_package", e);
2416
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
2419
+ createPackage: async (t, e, n = {}) => {
2420
+ p("createPackage", "environmentName", t), p("createPackage", "_package", e);
2421
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
2417
2422
  let o;
2418
2423
  l && (o = l.baseOptions);
2419
- const s = { method: "POST", ...o, ...t }, c = {}, i = {};
2420
- c["Content-Type"] = "application/json", g(n, i);
2421
- let p = o && o.headers ? o.headers : {};
2422
- return s.headers = { ...c, ...p, ...t.headers }, s.data = k(e, s, l), {
2423
- url: v(n),
2424
+ const s = { method: "POST", ...o, ...n }, c = {}, i = {};
2425
+ c["Content-Type"] = "application/json", b(r, i);
2426
+ let d = o && o.headers ? o.headers : {};
2427
+ return s.headers = { ...c, ...d, ...n.headers }, s.data = k(e, s, l), {
2428
+ url: V(r),
2424
2429
  options: s
2425
2430
  };
2426
2431
  },
@@ -2432,16 +2437,16 @@ const Xe = {
2432
2437
  * @param {*} [options] Override http request option.
2433
2438
  * @throws {RequiredError}
2434
2439
  */
2435
- deletePackage: async (r, e, t = {}) => {
2436
- d("deletePackage", "environmentName", r), d("deletePackage", "packageName", e);
2437
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
2440
+ deletePackage: async (t, e, n = {}) => {
2441
+ p("deletePackage", "environmentName", t), p("deletePackage", "packageName", e);
2442
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
2438
2443
  let o;
2439
2444
  l && (o = l.baseOptions);
2440
- const s = { method: "DELETE", ...o, ...t }, c = {};
2441
- g(n, {});
2442
- let p = o && o.headers ? o.headers : {};
2443
- return s.headers = { ...c, ...p, ...t.headers }, {
2444
- url: v(n),
2445
+ const s = { method: "DELETE", ...o, ...n }, c = {};
2446
+ b(r, {});
2447
+ let d = o && o.headers ? o.headers : {};
2448
+ return s.headers = { ...c, ...d, ...n.headers }, {
2449
+ url: V(r),
2445
2450
  options: s
2446
2451
  };
2447
2452
  },
@@ -2455,16 +2460,16 @@ const Xe = {
2455
2460
  * @param {*} [options] Override http request option.
2456
2461
  * @throws {RequiredError}
2457
2462
  */
2458
- getPackage: async (r, e, t, a, n = {}) => {
2459
- d("getPackage", "environmentName", r), d("getPackage", "packageName", e);
2460
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
2463
+ getPackage: async (t, e, n, a, r = {}) => {
2464
+ p("getPackage", "environmentName", t), p("getPackage", "packageName", e);
2465
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2461
2466
  let c;
2462
2467
  l && (c = l.baseOptions);
2463
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
2464
- t !== void 0 && (m.versionId = t), a !== void 0 && (m.reload = a), g(s, m);
2465
- let b = c && c.headers ? c.headers : {};
2466
- return i.headers = { ...p, ...b, ...n.headers }, {
2467
- url: v(s),
2468
+ const i = { method: "GET", ...c, ...r }, d = {}, m = {};
2469
+ n !== void 0 && (m.versionId = n), a !== void 0 && (m.reload = a), b(s, m);
2470
+ let O = c && c.headers ? c.headers : {};
2471
+ return i.headers = { ...d, ...O, ...r.headers }, {
2472
+ url: V(s),
2468
2473
  options: i
2469
2474
  };
2470
2475
  },
@@ -2475,16 +2480,16 @@ const Xe = {
2475
2480
  * @param {*} [options] Override http request option.
2476
2481
  * @throws {RequiredError}
2477
2482
  */
2478
- listPackages: async (r, e = {}) => {
2479
- d("listPackages", "environmentName", r);
2480
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
2481
- let n;
2482
- l && (n = l.baseOptions);
2483
- const o = { method: "GET", ...n, ...e }, s = {};
2484
- g(a, {});
2485
- let i = n && n.headers ? n.headers : {};
2483
+ listPackages: async (t, e = {}) => {
2484
+ p("listPackages", "environmentName", t);
2485
+ const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
2486
+ let r;
2487
+ l && (r = l.baseOptions);
2488
+ const o = { method: "GET", ...r, ...e }, s = {};
2489
+ b(a, {});
2490
+ let i = r && r.headers ? r.headers : {};
2486
2491
  return o.headers = { ...s, ...i, ...e.headers }, {
2487
- url: v(a),
2492
+ url: V(a),
2488
2493
  options: o
2489
2494
  };
2490
2495
  },
@@ -2497,22 +2502,22 @@ const Xe = {
2497
2502
  * @param {*} [options] Override http request option.
2498
2503
  * @throws {RequiredError}
2499
2504
  */
2500
- updatePackage: async (r, e, t, a = {}) => {
2501
- d("updatePackage", "environmentName", r), d("updatePackage", "packageName", e), d("updatePackage", "_package", t);
2502
- const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2505
+ updatePackage: async (t, e, n, a = {}) => {
2506
+ p("updatePackage", "environmentName", t), p("updatePackage", "packageName", e), p("updatePackage", "_package", n);
2507
+ const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2503
2508
  let s;
2504
2509
  l && (s = l.baseOptions);
2505
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
2506
- i["Content-Type"] = "application/json", g(o, p);
2510
+ const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
2511
+ i["Content-Type"] = "application/json", b(o, d);
2507
2512
  let m = s && s.headers ? s.headers : {};
2508
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
2509
- url: v(o),
2513
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
2514
+ url: V(o),
2510
2515
  options: c
2511
2516
  };
2512
2517
  }
2513
2518
  };
2514
- }, R = function(l) {
2515
- const r = le(l);
2519
+ }, U = function(l) {
2520
+ const t = xe(l);
2516
2521
  return {
2517
2522
  /**
2518
2523
  * 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.
@@ -2522,9 +2527,9 @@ const Xe = {
2522
2527
  * @param {*} [options] Override http request option.
2523
2528
  * @throws {RequiredError}
2524
2529
  */
2525
- async createPackage(e, t, a) {
2526
- const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
2527
- return (c, i) => O(n, h, u, l)(c, s || i);
2530
+ async createPackage(e, n, a) {
2531
+ const r = await t.createPackage(e, n, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
2532
+ return (c, i) => v(r, h, u, l)(c, s || i);
2528
2533
  },
2529
2534
  /**
2530
2535
  * 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.
@@ -2534,9 +2539,9 @@ const Xe = {
2534
2539
  * @param {*} [options] Override http request option.
2535
2540
  * @throws {RequiredError}
2536
2541
  */
2537
- async deletePackage(e, t, a) {
2538
- const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
2539
- return (c, i) => O(n, h, u, l)(c, s || i);
2542
+ async deletePackage(e, n, a) {
2543
+ const r = await t.deletePackage(e, n, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2544
+ return (c, i) => v(r, h, u, l)(c, s || i);
2540
2545
  },
2541
2546
  /**
2542
2547
  * 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.
@@ -2548,9 +2553,9 @@ const Xe = {
2548
2553
  * @param {*} [options] Override http request option.
2549
2554
  * @throws {RequiredError}
2550
2555
  */
2551
- async getPackage(e, t, a, n, o) {
2552
- const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
2553
- return (p, m) => O(s, h, u, l)(p, i || m);
2556
+ async getPackage(e, n, a, r, o) {
2557
+ const s = await t.getPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2558
+ return (d, m) => v(s, h, u, l)(d, i || m);
2554
2559
  },
2555
2560
  /**
2556
2561
  * 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.
@@ -2559,9 +2564,9 @@ const Xe = {
2559
2564
  * @param {*} [options] Override http request option.
2560
2565
  * @throws {RequiredError}
2561
2566
  */
2562
- async listPackages(e, t) {
2563
- const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[n]?.url;
2564
- return (s, c) => O(a, h, u, l)(s, o || c);
2567
+ async listPackages(e, n) {
2568
+ const a = await t.listPackages(e, n), r = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[r]?.url;
2569
+ return (s, c) => v(a, h, u, l)(s, o || c);
2565
2570
  },
2566
2571
  /**
2567
2572
  * 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.
@@ -2572,13 +2577,13 @@ const Xe = {
2572
2577
  * @param {*} [options] Override http request option.
2573
2578
  * @throws {RequiredError}
2574
2579
  */
2575
- async updatePackage(e, t, a, n) {
2576
- const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
2577
- return (i, p) => O(o, h, u, l)(i, c || p);
2580
+ async updatePackage(e, n, a, r) {
2581
+ const o = await t.updatePackage(e, n, a, r), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2582
+ return (i, d) => v(o, h, u, l)(i, c || d);
2578
2583
  }
2579
2584
  };
2580
- }, Ze = function(l, r, e) {
2581
- const t = R(l);
2585
+ }, Ra = function(l, t, e) {
2586
+ const n = U(l);
2582
2587
  return {
2583
2588
  /**
2584
2589
  * 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.
@@ -2588,8 +2593,8 @@ const Xe = {
2588
2593
  * @param {*} [options] Override http request option.
2589
2594
  * @throws {RequiredError}
2590
2595
  */
2591
- createPackage(a, n, o) {
2592
- return t.createPackage(a, n, o).then((s) => s(e, r));
2596
+ createPackage(a, r, o) {
2597
+ return n.createPackage(a, r, o).then((s) => s(e, t));
2593
2598
  },
2594
2599
  /**
2595
2600
  * 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.
@@ -2599,8 +2604,8 @@ const Xe = {
2599
2604
  * @param {*} [options] Override http request option.
2600
2605
  * @throws {RequiredError}
2601
2606
  */
2602
- deletePackage(a, n, o) {
2603
- return t.deletePackage(a, n, o).then((s) => s(e, r));
2607
+ deletePackage(a, r, o) {
2608
+ return n.deletePackage(a, r, o).then((s) => s(e, t));
2604
2609
  },
2605
2610
  /**
2606
2611
  * 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.
@@ -2612,8 +2617,8 @@ const Xe = {
2612
2617
  * @param {*} [options] Override http request option.
2613
2618
  * @throws {RequiredError}
2614
2619
  */
2615
- getPackage(a, n, o, s, c) {
2616
- return t.getPackage(a, n, o, s, c).then((i) => i(e, r));
2620
+ getPackage(a, r, o, s, c) {
2621
+ return n.getPackage(a, r, o, s, c).then((i) => i(e, t));
2617
2622
  },
2618
2623
  /**
2619
2624
  * 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.
@@ -2622,8 +2627,8 @@ const Xe = {
2622
2627
  * @param {*} [options] Override http request option.
2623
2628
  * @throws {RequiredError}
2624
2629
  */
2625
- listPackages(a, n) {
2626
- return t.listPackages(a, n).then((o) => o(e, r));
2630
+ listPackages(a, r) {
2631
+ return n.listPackages(a, r).then((o) => o(e, t));
2627
2632
  },
2628
2633
  /**
2629
2634
  * 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.
@@ -2634,12 +2639,12 @@ const Xe = {
2634
2639
  * @param {*} [options] Override http request option.
2635
2640
  * @throws {RequiredError}
2636
2641
  */
2637
- updatePackage(a, n, o, s) {
2638
- return t.updatePackage(a, n, o, s).then((c) => c(e, r));
2642
+ updatePackage(a, r, o, s) {
2643
+ return n.updatePackage(a, r, o, s).then((c) => c(e, t));
2639
2644
  }
2640
2645
  };
2641
2646
  };
2642
- class ie extends I {
2647
+ class Ae extends I {
2643
2648
  /**
2644
2649
  * 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.
2645
2650
  * @summary Create a new package
@@ -2649,8 +2654,8 @@ class ie extends I {
2649
2654
  * @throws {RequiredError}
2650
2655
  * @memberof PackagesApi
2651
2656
  */
2652
- createPackage(r, e, t) {
2653
- return R(this.configuration).createPackage(r, e, t).then((a) => a(this.axios, this.basePath));
2657
+ createPackage(t, e, n) {
2658
+ return U(this.configuration).createPackage(t, e, n).then((a) => a(this.axios, this.basePath));
2654
2659
  }
2655
2660
  /**
2656
2661
  * 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.
@@ -2661,8 +2666,8 @@ class ie extends I {
2661
2666
  * @throws {RequiredError}
2662
2667
  * @memberof PackagesApi
2663
2668
  */
2664
- deletePackage(r, e, t) {
2665
- return R(this.configuration).deletePackage(r, e, t).then((a) => a(this.axios, this.basePath));
2669
+ deletePackage(t, e, n) {
2670
+ return U(this.configuration).deletePackage(t, e, n).then((a) => a(this.axios, this.basePath));
2666
2671
  }
2667
2672
  /**
2668
2673
  * 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.
@@ -2675,8 +2680,8 @@ class ie extends I {
2675
2680
  * @throws {RequiredError}
2676
2681
  * @memberof PackagesApi
2677
2682
  */
2678
- getPackage(r, e, t, a, n) {
2679
- return R(this.configuration).getPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
2683
+ getPackage(t, e, n, a, r) {
2684
+ return U(this.configuration).getPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
2680
2685
  }
2681
2686
  /**
2682
2687
  * 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.
@@ -2686,8 +2691,8 @@ class ie extends I {
2686
2691
  * @throws {RequiredError}
2687
2692
  * @memberof PackagesApi
2688
2693
  */
2689
- listPackages(r, e) {
2690
- return R(this.configuration).listPackages(r, e).then((t) => t(this.axios, this.basePath));
2694
+ listPackages(t, e) {
2695
+ return U(this.configuration).listPackages(t, e).then((n) => n(this.axios, this.basePath));
2691
2696
  }
2692
2697
  /**
2693
2698
  * 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.
@@ -2699,11 +2704,11 @@ class ie extends I {
2699
2704
  * @throws {RequiredError}
2700
2705
  * @memberof PackagesApi
2701
2706
  */
2702
- updatePackage(r, e, t, a) {
2703
- return R(this.configuration).updatePackage(r, e, t, a).then((n) => n(this.axios, this.basePath));
2707
+ updatePackage(t, e, n, a) {
2708
+ return U(this.configuration).updatePackage(t, e, n, a).then((r) => r(this.axios, this.basePath));
2704
2709
  }
2705
2710
  }
2706
- const pe = function(l) {
2711
+ const Re = function(l) {
2707
2712
  return {
2708
2713
  /**
2709
2714
  * 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.
@@ -2713,22 +2718,22 @@ const pe = function(l) {
2713
2718
  * @param {*} [options] Override http request option.
2714
2719
  * @throws {RequiredError}
2715
2720
  */
2716
- listPages: async (r, e, t = {}) => {
2717
- d("listPages", "environmentName", r), d("listPages", "packageName", e);
2718
- const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
2721
+ listPages: async (t, e, n = {}) => {
2722
+ p("listPages", "environmentName", t), p("listPages", "packageName", e);
2723
+ const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
2719
2724
  let o;
2720
2725
  l && (o = l.baseOptions);
2721
- const s = { method: "GET", ...o, ...t }, c = {};
2722
- g(n, {});
2723
- let p = o && o.headers ? o.headers : {};
2724
- return s.headers = { ...c, ...p, ...t.headers }, {
2725
- url: v(n),
2726
+ const s = { method: "GET", ...o, ...n }, c = {};
2727
+ b(r, {});
2728
+ let d = o && o.headers ? o.headers : {};
2729
+ return s.headers = { ...c, ...d, ...n.headers }, {
2730
+ url: V(r),
2726
2731
  options: s
2727
2732
  };
2728
2733
  }
2729
2734
  };
2730
- }, q = function(l) {
2731
- const r = pe(l);
2735
+ }, Z = function(l) {
2736
+ const t = Re(l);
2732
2737
  return {
2733
2738
  /**
2734
2739
  * 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.
@@ -2738,13 +2743,13 @@ const pe = function(l) {
2738
2743
  * @param {*} [options] Override http request option.
2739
2744
  * @throws {RequiredError}
2740
2745
  */
2741
- async listPages(e, t, a) {
2742
- const n = await r.listPages(e, t, a), o = l?.serverIndex ?? 0, s = P["PagesApi.listPages"]?.[o]?.url;
2743
- return (c, i) => O(n, h, u, l)(c, s || i);
2746
+ async listPages(e, n, a) {
2747
+ const r = await t.listPages(e, n, a), o = l?.serverIndex ?? 0, s = g["PagesApi.listPages"]?.[o]?.url;
2748
+ return (c, i) => v(r, h, u, l)(c, s || i);
2744
2749
  }
2745
2750
  };
2746
- }, ea = function(l, r, e) {
2747
- const t = q(l);
2751
+ }, Na = function(l, t, e) {
2752
+ const n = Z(l);
2748
2753
  return {
2749
2754
  /**
2750
2755
  * 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.
@@ -2754,12 +2759,12 @@ const pe = function(l) {
2754
2759
  * @param {*} [options] Override http request option.
2755
2760
  * @throws {RequiredError}
2756
2761
  */
2757
- listPages(a, n, o) {
2758
- return t.listPages(a, n, o).then((s) => s(e, r));
2762
+ listPages(a, r, o) {
2763
+ return n.listPages(a, r, o).then((s) => s(e, t));
2759
2764
  }
2760
2765
  };
2761
2766
  };
2762
- class de extends I {
2767
+ class Ne extends I {
2763
2768
  /**
2764
2769
  * 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.
2765
2770
  * @summary List package pages
@@ -2769,34 +2774,100 @@ class de extends I {
2769
2774
  * @throws {RequiredError}
2770
2775
  * @memberof PagesApi
2771
2776
  */
2772
- listPages(r, e, t) {
2773
- return q(this.configuration).listPages(r, e, t).then((a) => a(this.axios, this.basePath));
2777
+ listPages(t, e, n) {
2778
+ return Z(this.configuration).listPages(t, e, n).then((a) => a(this.axios, this.basePath));
2774
2779
  }
2775
2780
  }
2776
- const me = function(l) {
2781
+ const Te = function(l) {
2777
2782
  return {
2783
+ /**
2784
+ * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
2785
+ * @summary Reset the instance theme to the boot seed or default
2786
+ * @param {*} [options] Override http request option.
2787
+ * @throws {RequiredError}
2788
+ */
2789
+ deleteTheme: async (t = {}) => {
2790
+ const e = "/theme", n = new URL(e, P);
2791
+ let a;
2792
+ l && (a = l.baseOptions);
2793
+ const r = { method: "DELETE", ...a, ...t }, o = {};
2794
+ b(n, {});
2795
+ let c = a && a.headers ? a.headers : {};
2796
+ return r.headers = { ...o, ...c, ...t.headers }, {
2797
+ url: V(n),
2798
+ options: r
2799
+ };
2800
+ },
2778
2801
  /**
2779
2802
  * 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.
2780
2803
  * @summary Get server status and health information
2781
2804
  * @param {*} [options] Override http request option.
2782
2805
  * @throws {RequiredError}
2783
2806
  */
2784
- getStatus: async (r = {}) => {
2785
- const e = "/status", t = new URL(e, V);
2807
+ getStatus: async (t = {}) => {
2808
+ const e = "/status", n = new URL(e, P);
2809
+ let a;
2810
+ l && (a = l.baseOptions);
2811
+ const r = { method: "GET", ...a, ...t }, o = {};
2812
+ b(n, {});
2813
+ let c = a && a.headers ? a.headers : {};
2814
+ return r.headers = { ...o, ...c, ...t.headers }, {
2815
+ url: V(n),
2816
+ options: r
2817
+ };
2818
+ },
2819
+ /**
2820
+ * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
2821
+ * @summary Get the active instance theme
2822
+ * @param {*} [options] Override http request option.
2823
+ * @throws {RequiredError}
2824
+ */
2825
+ getTheme: async (t = {}) => {
2826
+ const e = "/theme", n = new URL(e, P);
2786
2827
  let a;
2787
2828
  l && (a = l.baseOptions);
2788
- const n = { method: "GET", ...a, ...r }, o = {};
2789
- g(t, {});
2829
+ const r = { method: "GET", ...a, ...t }, o = {};
2830
+ b(n, {});
2790
2831
  let c = a && a.headers ? a.headers : {};
2791
- return n.headers = { ...o, ...c, ...r.headers }, {
2792
- url: v(t),
2793
- options: n
2832
+ return r.headers = { ...o, ...c, ...t.headers }, {
2833
+ url: V(n),
2834
+ options: r
2835
+ };
2836
+ },
2837
+ /**
2838
+ * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
2839
+ * @summary Save the instance theme
2840
+ * @param {Theme} theme
2841
+ * @param {*} [options] Override http request option.
2842
+ * @throws {RequiredError}
2843
+ */
2844
+ updateTheme: async (t, e = {}) => {
2845
+ p("updateTheme", "theme", t);
2846
+ const n = "/theme", a = new URL(n, P);
2847
+ let r;
2848
+ l && (r = l.baseOptions);
2849
+ const o = { method: "PUT", ...r, ...e }, s = {}, c = {};
2850
+ s["Content-Type"] = "application/json", b(a, c);
2851
+ let i = r && r.headers ? r.headers : {};
2852
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
2853
+ url: V(a),
2854
+ options: o
2794
2855
  };
2795
2856
  }
2796
2857
  };
2797
- }, z = function(l) {
2798
- const r = me(l);
2858
+ }, E = function(l) {
2859
+ const t = Te(l);
2799
2860
  return {
2861
+ /**
2862
+ * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
2863
+ * @summary Reset the instance theme to the boot seed or default
2864
+ * @param {*} [options] Override http request option.
2865
+ * @throws {RequiredError}
2866
+ */
2867
+ async deleteTheme(e) {
2868
+ const n = await t.deleteTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.deleteTheme"]?.[a]?.url;
2869
+ return (o, s) => v(n, h, u, l)(o, r || s);
2870
+ },
2800
2871
  /**
2801
2872
  * 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.
2802
2873
  * @summary Get server status and health information
@@ -2804,13 +2875,43 @@ const me = function(l) {
2804
2875
  * @throws {RequiredError}
2805
2876
  */
2806
2877
  async getStatus(e) {
2807
- const t = await r.getStatus(e), a = l?.serverIndex ?? 0, n = P["PublisherApi.getStatus"]?.[a]?.url;
2808
- return (o, s) => O(t, h, u, l)(o, n || s);
2878
+ const n = await t.getStatus(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getStatus"]?.[a]?.url;
2879
+ return (o, s) => v(n, h, u, l)(o, r || s);
2880
+ },
2881
+ /**
2882
+ * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
2883
+ * @summary Get the active instance theme
2884
+ * @param {*} [options] Override http request option.
2885
+ * @throws {RequiredError}
2886
+ */
2887
+ async getTheme(e) {
2888
+ const n = await t.getTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getTheme"]?.[a]?.url;
2889
+ return (o, s) => v(n, h, u, l)(o, r || s);
2890
+ },
2891
+ /**
2892
+ * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
2893
+ * @summary Save the instance theme
2894
+ * @param {Theme} theme
2895
+ * @param {*} [options] Override http request option.
2896
+ * @throws {RequiredError}
2897
+ */
2898
+ async updateTheme(e, n) {
2899
+ const a = await t.updateTheme(e, n), r = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[r]?.url;
2900
+ return (s, c) => v(a, h, u, l)(s, o || c);
2809
2901
  }
2810
2902
  };
2811
- }, aa = function(l, r, e) {
2812
- const t = z(l);
2903
+ }, Ta = function(l, t, e) {
2904
+ const n = E(l);
2813
2905
  return {
2906
+ /**
2907
+ * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
2908
+ * @summary Reset the instance theme to the boot seed or default
2909
+ * @param {*} [options] Override http request option.
2910
+ * @throws {RequiredError}
2911
+ */
2912
+ deleteTheme(a) {
2913
+ return n.deleteTheme(a).then((r) => r(e, t));
2914
+ },
2814
2915
  /**
2815
2916
  * 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.
2816
2917
  * @summary Get server status and health information
@@ -2818,11 +2919,40 @@ const me = function(l) {
2818
2919
  * @throws {RequiredError}
2819
2920
  */
2820
2921
  getStatus(a) {
2821
- return t.getStatus(a).then((n) => n(e, r));
2922
+ return n.getStatus(a).then((r) => r(e, t));
2923
+ },
2924
+ /**
2925
+ * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
2926
+ * @summary Get the active instance theme
2927
+ * @param {*} [options] Override http request option.
2928
+ * @throws {RequiredError}
2929
+ */
2930
+ getTheme(a) {
2931
+ return n.getTheme(a).then((r) => r(e, t));
2932
+ },
2933
+ /**
2934
+ * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
2935
+ * @summary Save the instance theme
2936
+ * @param {Theme} theme
2937
+ * @param {*} [options] Override http request option.
2938
+ * @throws {RequiredError}
2939
+ */
2940
+ updateTheme(a, r) {
2941
+ return n.updateTheme(a, r).then((o) => o(e, t));
2822
2942
  }
2823
2943
  };
2824
2944
  };
2825
- class he extends I {
2945
+ class Ue extends I {
2946
+ /**
2947
+ * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
2948
+ * @summary Reset the instance theme to the boot seed or default
2949
+ * @param {*} [options] Override http request option.
2950
+ * @throws {RequiredError}
2951
+ * @memberof PublisherApi
2952
+ */
2953
+ deleteTheme(t) {
2954
+ return E(this.configuration).deleteTheme(t).then((e) => e(this.axios, this.basePath));
2955
+ }
2826
2956
  /**
2827
2957
  * 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.
2828
2958
  * @summary Get server status and health information
@@ -2830,11 +2960,32 @@ class he extends I {
2830
2960
  * @throws {RequiredError}
2831
2961
  * @memberof PublisherApi
2832
2962
  */
2833
- getStatus(r) {
2834
- return z(this.configuration).getStatus(r).then((e) => e(this.axios, this.basePath));
2963
+ getStatus(t) {
2964
+ return E(this.configuration).getStatus(t).then((e) => e(this.axios, this.basePath));
2965
+ }
2966
+ /**
2967
+ * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
2968
+ * @summary Get the active instance theme
2969
+ * @param {*} [options] Override http request option.
2970
+ * @throws {RequiredError}
2971
+ * @memberof PublisherApi
2972
+ */
2973
+ getTheme(t) {
2974
+ return E(this.configuration).getTheme(t).then((e) => e(this.axios, this.basePath));
2975
+ }
2976
+ /**
2977
+ * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
2978
+ * @summary Save the instance theme
2979
+ * @param {Theme} theme
2980
+ * @param {*} [options] Override http request option.
2981
+ * @throws {RequiredError}
2982
+ * @memberof PublisherApi
2983
+ */
2984
+ updateTheme(t, e) {
2985
+ return E(this.configuration).updateTheme(t, e).then((n) => n(this.axios, this.basePath));
2835
2986
  }
2836
2987
  }
2837
- const ue = function(l) {
2988
+ const we = function(l) {
2838
2989
  return {
2839
2990
  /**
2840
2991
  * 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.
@@ -2842,16 +2993,16 @@ const ue = function(l) {
2842
2993
  * @param {*} [options] Override http request option.
2843
2994
  * @throws {RequiredError}
2844
2995
  */
2845
- getWatchStatus: async (r = {}) => {
2846
- const e = "/watch-mode/status", t = new URL(e, V);
2996
+ getWatchStatus: async (t = {}) => {
2997
+ const e = "/watch-mode/status", n = new URL(e, P);
2847
2998
  let a;
2848
2999
  l && (a = l.baseOptions);
2849
- const n = { method: "GET", ...a, ...r }, o = {};
2850
- g(t, {});
3000
+ const r = { method: "GET", ...a, ...t }, o = {};
3001
+ b(n, {});
2851
3002
  let c = a && a.headers ? a.headers : {};
2852
- return n.headers = { ...o, ...c, ...r.headers }, {
2853
- url: v(t),
2854
- options: n
3003
+ return r.headers = { ...o, ...c, ...t.headers }, {
3004
+ url: V(n),
3005
+ options: r
2855
3006
  };
2856
3007
  },
2857
3008
  /**
@@ -2861,16 +3012,16 @@ const ue = function(l) {
2861
3012
  * @param {*} [options] Override http request option.
2862
3013
  * @throws {RequiredError}
2863
3014
  */
2864
- startWatching: async (r, e = {}) => {
2865
- d("startWatching", "startWatchRequest", r);
2866
- const t = "/watch-mode/start", a = new URL(t, V);
2867
- let n;
2868
- l && (n = l.baseOptions);
2869
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
2870
- s["Content-Type"] = "application/json", g(a, c);
2871
- let i = n && n.headers ? n.headers : {};
2872
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
2873
- url: v(a),
3015
+ startWatching: async (t, e = {}) => {
3016
+ p("startWatching", "startWatchRequest", t);
3017
+ const n = "/watch-mode/start", a = new URL(n, P);
3018
+ let r;
3019
+ l && (r = l.baseOptions);
3020
+ const o = { method: "POST", ...r, ...e }, s = {}, c = {};
3021
+ s["Content-Type"] = "application/json", b(a, c);
3022
+ let i = r && r.headers ? r.headers : {};
3023
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
3024
+ url: V(a),
2874
3025
  options: o
2875
3026
  };
2876
3027
  },
@@ -2880,16 +3031,16 @@ const ue = function(l) {
2880
3031
  * @param {*} [options] Override http request option.
2881
3032
  * @throws {RequiredError}
2882
3033
  */
2883
- stopWatching: async (r = {}) => {
2884
- const e = "/watch-mode/stop", t = new URL(e, V);
3034
+ stopWatching: async (t = {}) => {
3035
+ const e = "/watch-mode/stop", n = new URL(e, P);
2885
3036
  let a;
2886
3037
  l && (a = l.baseOptions);
2887
- const n = { method: "POST", ...a, ...r }, o = {};
2888
- g(t, {});
3038
+ const r = { method: "POST", ...a, ...t }, o = {};
3039
+ b(n, {});
2889
3040
  let c = a && a.headers ? a.headers : {};
2890
- return n.headers = { ...o, ...c, ...r.headers }, {
2891
- url: v(t),
2892
- options: n
3041
+ return r.headers = { ...o, ...c, ...t.headers }, {
3042
+ url: V(n),
3043
+ options: r
2893
3044
  };
2894
3045
  },
2895
3046
  /**
@@ -2900,22 +3051,22 @@ const ue = function(l) {
2900
3051
  * @param {*} [options] Override http request option.
2901
3052
  * @throws {RequiredError}
2902
3053
  */
2903
- streamPackageEvents: async (r, e, t = {}) => {
2904
- d("streamPackageEvents", "environmentName", r), d("streamPackageEvents", "packageName", e);
2905
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
3054
+ streamPackageEvents: async (t, e, n = {}) => {
3055
+ p("streamPackageEvents", "environmentName", t), p("streamPackageEvents", "packageName", e);
3056
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
2906
3057
  let o;
2907
3058
  l && (o = l.baseOptions);
2908
- const s = { method: "GET", ...o, ...t }, c = {};
2909
- g(n, {});
2910
- let p = o && o.headers ? o.headers : {};
2911
- return s.headers = { ...c, ...p, ...t.headers }, {
2912
- url: v(n),
3059
+ const s = { method: "GET", ...o, ...n }, c = {};
3060
+ b(r, {});
3061
+ let d = o && o.headers ? o.headers : {};
3062
+ return s.headers = { ...c, ...d, ...n.headers }, {
3063
+ url: V(r),
2913
3064
  options: s
2914
3065
  };
2915
3066
  }
2916
3067
  };
2917
- }, T = function(l) {
2918
- const r = ue(l);
3068
+ }, M = function(l) {
3069
+ const t = we(l);
2919
3070
  return {
2920
3071
  /**
2921
3072
  * 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.
@@ -2924,8 +3075,8 @@ const ue = function(l) {
2924
3075
  * @throws {RequiredError}
2925
3076
  */
2926
3077
  async getWatchStatus(e) {
2927
- const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
2928
- return (o, s) => O(t, h, u, l)(o, n || s);
3078
+ const n = await t.getWatchStatus(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
3079
+ return (o, s) => v(n, h, u, l)(o, r || s);
2929
3080
  },
2930
3081
  /**
2931
3082
  * 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.
@@ -2934,9 +3085,9 @@ const ue = function(l) {
2934
3085
  * @param {*} [options] Override http request option.
2935
3086
  * @throws {RequiredError}
2936
3087
  */
2937
- async startWatching(e, t) {
2938
- const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[n]?.url;
2939
- return (s, c) => O(a, h, u, l)(s, o || c);
3088
+ async startWatching(e, n) {
3089
+ const a = await t.startWatching(e, n), r = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[r]?.url;
3090
+ return (s, c) => v(a, h, u, l)(s, o || c);
2940
3091
  },
2941
3092
  /**
2942
3093
  * 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.
@@ -2945,8 +3096,8 @@ const ue = function(l) {
2945
3096
  * @throws {RequiredError}
2946
3097
  */
2947
3098
  async stopWatching(e) {
2948
- const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.stopWatching"]?.[a]?.url;
2949
- return (o, s) => O(t, h, u, l)(o, n || s);
3099
+ const n = await t.stopWatching(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.stopWatching"]?.[a]?.url;
3100
+ return (o, s) => v(n, h, u, l)(o, r || s);
2950
3101
  },
2951
3102
  /**
2952
3103
  * 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.
@@ -2956,13 +3107,13 @@ const ue = function(l) {
2956
3107
  * @param {*} [options] Override http request option.
2957
3108
  * @throws {RequiredError}
2958
3109
  */
2959
- async streamPackageEvents(e, t, a) {
2960
- const n = await r.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
2961
- return (c, i) => O(n, h, u, l)(c, s || i);
3110
+ async streamPackageEvents(e, n, a) {
3111
+ const r = await t.streamPackageEvents(e, n, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3112
+ return (c, i) => v(r, h, u, l)(c, s || i);
2962
3113
  }
2963
3114
  };
2964
- }, ta = function(l, r, e) {
2965
- const t = T(l);
3115
+ }, Ua = function(l, t, e) {
3116
+ const n = M(l);
2966
3117
  return {
2967
3118
  /**
2968
3119
  * 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.
@@ -2971,7 +3122,7 @@ const ue = function(l) {
2971
3122
  * @throws {RequiredError}
2972
3123
  */
2973
3124
  getWatchStatus(a) {
2974
- return t.getWatchStatus(a).then((n) => n(e, r));
3125
+ return n.getWatchStatus(a).then((r) => r(e, t));
2975
3126
  },
2976
3127
  /**
2977
3128
  * 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.
@@ -2980,8 +3131,8 @@ const ue = function(l) {
2980
3131
  * @param {*} [options] Override http request option.
2981
3132
  * @throws {RequiredError}
2982
3133
  */
2983
- startWatching(a, n) {
2984
- return t.startWatching(a, n).then((o) => o(e, r));
3134
+ startWatching(a, r) {
3135
+ return n.startWatching(a, r).then((o) => o(e, t));
2985
3136
  },
2986
3137
  /**
2987
3138
  * 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.
@@ -2990,7 +3141,7 @@ const ue = function(l) {
2990
3141
  * @throws {RequiredError}
2991
3142
  */
2992
3143
  stopWatching(a) {
2993
- return t.stopWatching(a).then((n) => n(e, r));
3144
+ return n.stopWatching(a).then((r) => r(e, t));
2994
3145
  },
2995
3146
  /**
2996
3147
  * 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.
@@ -3000,12 +3151,12 @@ const ue = function(l) {
3000
3151
  * @param {*} [options] Override http request option.
3001
3152
  * @throws {RequiredError}
3002
3153
  */
3003
- streamPackageEvents(a, n, o) {
3004
- return t.streamPackageEvents(a, n, o).then((s) => s(e, r));
3154
+ streamPackageEvents(a, r, o) {
3155
+ return n.streamPackageEvents(a, r, o).then((s) => s(e, t));
3005
3156
  }
3006
3157
  };
3007
3158
  };
3008
- class Pe extends I {
3159
+ class Ee extends I {
3009
3160
  /**
3010
3161
  * 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.
3011
3162
  * @summary Get watch mode status
@@ -3013,8 +3164,8 @@ class Pe extends I {
3013
3164
  * @throws {RequiredError}
3014
3165
  * @memberof WatchModeApi
3015
3166
  */
3016
- getWatchStatus(r) {
3017
- return T(this.configuration).getWatchStatus(r).then((e) => e(this.axios, this.basePath));
3167
+ getWatchStatus(t) {
3168
+ return M(this.configuration).getWatchStatus(t).then((e) => e(this.axios, this.basePath));
3018
3169
  }
3019
3170
  /**
3020
3171
  * 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.
@@ -3024,8 +3175,8 @@ class Pe extends I {
3024
3175
  * @throws {RequiredError}
3025
3176
  * @memberof WatchModeApi
3026
3177
  */
3027
- startWatching(r, e) {
3028
- return T(this.configuration).startWatching(r, e).then((t) => t(this.axios, this.basePath));
3178
+ startWatching(t, e) {
3179
+ return M(this.configuration).startWatching(t, e).then((n) => n(this.axios, this.basePath));
3029
3180
  }
3030
3181
  /**
3031
3182
  * 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.
@@ -3034,8 +3185,8 @@ class Pe extends I {
3034
3185
  * @throws {RequiredError}
3035
3186
  * @memberof WatchModeApi
3036
3187
  */
3037
- stopWatching(r) {
3038
- return T(this.configuration).stopWatching(r).then((e) => e(this.axios, this.basePath));
3188
+ stopWatching(t) {
3189
+ return M(this.configuration).stopWatching(t).then((e) => e(this.axios, this.basePath));
3039
3190
  }
3040
3191
  /**
3041
3192
  * 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.
@@ -3046,11 +3197,11 @@ class Pe extends I {
3046
3197
  * @throws {RequiredError}
3047
3198
  * @memberof WatchModeApi
3048
3199
  */
3049
- streamPackageEvents(r, e, t) {
3050
- return T(this.configuration).streamPackageEvents(r, e, t).then((a) => a(this.axios, this.basePath));
3200
+ streamPackageEvents(t, e, n) {
3201
+ return M(this.configuration).streamPackageEvents(t, e, n).then((a) => a(this.axios, this.basePath));
3051
3202
  }
3052
3203
  }
3053
- class Ve {
3204
+ class Me {
3054
3205
  /**
3055
3206
  * parameter for apiKey security
3056
3207
  * @param name security name
@@ -3107,13 +3258,13 @@ class Ve {
3107
3258
  * @type {new () => FormData}
3108
3259
  */
3109
3260
  formDataCtor;
3110
- constructor(r = {}) {
3111
- this.apiKey = r.apiKey, this.username = r.username, this.password = r.password, this.accessToken = r.accessToken, this.basePath = r.basePath, this.serverIndex = r.serverIndex, this.baseOptions = {
3112
- ...r.baseOptions,
3261
+ constructor(t = {}) {
3262
+ this.apiKey = t.apiKey, this.username = t.username, this.password = t.password, this.accessToken = t.accessToken, this.basePath = t.basePath, this.serverIndex = t.serverIndex, this.baseOptions = {
3263
+ ...t.baseOptions,
3113
3264
  headers: {
3114
- ...r.baseOptions?.headers
3265
+ ...t.baseOptions?.headers
3115
3266
  }
3116
- }, this.formDataCtor = r.formDataCtor;
3267
+ }, this.formDataCtor = t.formDataCtor;
3117
3268
  }
3118
3269
  /**
3119
3270
  * Check if the given MIME is a JSON MIME.
@@ -3125,12 +3276,299 @@ class Ve {
3125
3276
  * @param mime - MIME (Multipurpose Internet Mail Extensions)
3126
3277
  * @return True if the given MIME is JSON, false otherwise.
3127
3278
  */
3128
- isJsonMime(r) {
3279
+ isJsonMime(t) {
3129
3280
  const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
3130
- return r !== null && (e.test(r) || r.toLowerCase() === "application/json-patch+json");
3281
+ return t !== null && (e.test(t) || t.toLowerCase() === "application/json-patch+json");
3131
3282
  }
3132
3283
  }
3133
- const ge = new L({
3284
+ const B = {
3285
+ teal: "#14b3cb",
3286
+ // light wing of the M (governed reports)
3287
+ orange: "#e47404",
3288
+ // right wing of the M (semantic models)
3289
+ darkBlue: "#1474a4"
3290
+ // deep shadow of the M (package data)
3291
+ }, wa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ea = y(Y)({
3292
+ display: "flex",
3293
+ flexDirection: "column",
3294
+ height: "100%",
3295
+ boxShadow: "none",
3296
+ border: "none",
3297
+ backgroundColor: "transparent"
3298
+ }), Ma = y(J)({
3299
+ display: "flex",
3300
+ flexDirection: "column",
3301
+ padding: "0",
3302
+ flexGrow: 1
3303
+ }), fa = y(pe)({
3304
+ padding: "0"
3305
+ }), Ba = y("div")(({ theme: l }) => ({
3306
+ backgroundColor: l.palette.background.default,
3307
+ padding: "0 8px 0px 8px",
3308
+ borderRadius: "12px",
3309
+ boxShadow: "none",
3310
+ border: "none",
3311
+ maxWidth: "1200px",
3312
+ margin: "0 auto"
3313
+ }));
3314
+ y("div")(({ theme: l }) => ({
3315
+ marginBottom: "40px",
3316
+ paddingBottom: "24px",
3317
+ borderBottom: `1px solid ${l.palette.divider}`
3318
+ }));
3319
+ const Qa = y("div")({
3320
+ marginBottom: "48px",
3321
+ padding: "0",
3322
+ backgroundColor: "transparent",
3323
+ border: "none",
3324
+ boxShadow: "none"
3325
+ }), Fa = y("div")({
3326
+ marginBottom: "0",
3327
+ padding: "0",
3328
+ backgroundColor: "transparent",
3329
+ border: "none",
3330
+ boxShadow: "none"
3331
+ }), $a = y("div")({
3332
+ backgroundColor: "transparent",
3333
+ paddingTop: "12px",
3334
+ paddingBottom: "2px",
3335
+ borderRadius: "8px",
3336
+ border: "none",
3337
+ boxShadow: "none",
3338
+ marginBottom: "0"
3339
+ });
3340
+ y("div")(({ theme: l }) => ({
3341
+ backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
3342
+ padding: "16px",
3343
+ borderRadius: "8px",
3344
+ border: `1px solid ${l.palette.divider}`,
3345
+ fontFamily: "'Monaco', 'Menlo', 'Ubuntu Mono', monospace",
3346
+ fontSize: "13px",
3347
+ lineHeight: "1.5",
3348
+ overflowX: "auto",
3349
+ color: l.palette.text.primary
3350
+ }));
3351
+ y("div")(({ theme: l }) => ({
3352
+ backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
3353
+ padding: "12px 16px",
3354
+ borderRadius: "8px",
3355
+ border: `1px solid ${l.palette.divider}`,
3356
+ marginBottom: "16px",
3357
+ display: "flex",
3358
+ justifyContent: "space-between",
3359
+ alignItems: "center"
3360
+ }));
3361
+ const za = y("div")({
3362
+ height: "100%"
3363
+ });
3364
+ y("div")({
3365
+ height: "30px",
3366
+ backgroundColor: "rgba(225, 240, 255, 1)",
3367
+ display: "flex",
3368
+ padding: "4px",
3369
+ alignItems: "center"
3370
+ });
3371
+ const qa = y("div")({
3372
+ height: "75vh",
3373
+ width: "100%",
3374
+ overflowY: "auto"
3375
+ });
3376
+ y("div")({
3377
+ position: "relative",
3378
+ height: "100%",
3379
+ flex: "0 0 auto"
3380
+ });
3381
+ const La = y(Y)(({ theme: l }) => ({
3382
+ backgroundColor: l.palette.background.paper,
3383
+ padding: "24px",
3384
+ borderRadius: "8px",
3385
+ border: `1px solid ${l.palette.divider}`,
3386
+ boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
3387
+ height: "100%",
3388
+ transition: "box-shadow 0.2s ease-in-out",
3389
+ "&:hover": {
3390
+ boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
3391
+ }
3392
+ })), ja = y(J)({
3393
+ padding: "0",
3394
+ "&:last-child": {
3395
+ paddingBottom: "0"
3396
+ }
3397
+ }), Ha = y("div")(({ theme: l }) => ({
3398
+ fontSize: "0.875rem",
3399
+ fontWeight: 500,
3400
+ color: l.palette.text.secondary,
3401
+ marginBottom: "16px",
3402
+ paddingBottom: "8px",
3403
+ borderBottom: `1px solid ${l.palette.divider}`
3404
+ }));
3405
+ y("div")({
3406
+ padding: "32px",
3407
+ maxWidth: "1400px",
3408
+ margin: "0 auto",
3409
+ minHeight: "100vh"
3410
+ });
3411
+ const fe = [
3412
+ B.teal,
3413
+ B.orange,
3414
+ B.darkBlue,
3415
+ "#66cedc",
3416
+ "#ec72b8",
3417
+ "#f9c85b",
3418
+ "#aacd85",
3419
+ "#b87ced"
3420
+ ], Be = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
3421
+ defaultMode: "light",
3422
+ allowUserToggle: !0,
3423
+ palette: {
3424
+ series: fe,
3425
+ background: {
3426
+ light: "#ffffff",
3427
+ // Slate to match the Publisher app's sidebar surface so
3428
+ // rendered charts sit on the same elevation as the chrome
3429
+ // around them.
3430
+ dark: "#1e293b"
3431
+ },
3432
+ tableHeader: {
3433
+ light: "#5d626b",
3434
+ dark: "#cbd5e1"
3435
+ },
3436
+ // Background of the table header row, independent of the
3437
+ // tile (dashboard tile container) so the operator can theme
3438
+ // the header band on its own.
3439
+ tableHeaderBackground: {
3440
+ light: "#f5fafc",
3441
+ dark: "#1e293b"
3442
+ },
3443
+ tableBody: {
3444
+ light: "#727883",
3445
+ dark: "#e2e8f0"
3446
+ },
3447
+ // The padded container that wraps each chart / table in a
3448
+ // dashboard. Light mode: a faint tint so tiles read as recessed
3449
+ // cards on the page; dark mode: page-outer slate.
3450
+ tile: {
3451
+ light: "#f5fafc",
3452
+ dark: "#0f172a"
3453
+ },
3454
+ tileTitle: {
3455
+ light: "#5d626b",
3456
+ dark: "#94a3b8"
3457
+ },
3458
+ // Saturated end of the choropleth / heatmap gradient. The
3459
+ // renderer pairs this with a near-neutral low end. Defaults
3460
+ // match the first series colour (teal) so unbranded installs
3461
+ // get a brand-coherent gradient instead of the renderer's
3462
+ // hardcoded blue ramp.
3463
+ mapColor: {
3464
+ light: B.teal,
3465
+ dark: B.teal
3466
+ }
3467
+ },
3468
+ font: {
3469
+ family: Be,
3470
+ size: 12
3471
+ }
3472
+ }, Qe = [
3473
+ "background",
3474
+ "tableHeader",
3475
+ "tableHeaderBackground",
3476
+ "tableBody",
3477
+ "tile",
3478
+ "tileTitle",
3479
+ "mapColor"
3480
+ ];
3481
+ function ee(l, t) {
3482
+ const e = W.palette ?? {}, n = W.font ?? {
3483
+ family: "sans-serif",
3484
+ size: 12
3485
+ };
3486
+ let a = [...e.series ?? []], r = n.family ?? "sans-serif", o = n.size ?? 12;
3487
+ const s = {
3488
+ background: { ...e.background ?? {} },
3489
+ tableHeader: { ...e.tableHeader ?? {} },
3490
+ tableHeaderBackground: {
3491
+ ...e.tableHeaderBackground ?? {}
3492
+ },
3493
+ tableBody: { ...e.tableBody ?? {} },
3494
+ tile: { ...e.tile ?? {} },
3495
+ tileTitle: { ...e.tileTitle ?? {} },
3496
+ mapColor: { ...e.mapColor ?? {} }
3497
+ };
3498
+ for (const m of l)
3499
+ if (m) {
3500
+ Array.isArray(m.palette?.series) && (a = [...m.palette.series]);
3501
+ for (const O of Qe) {
3502
+ const C = m.palette?.[O];
3503
+ C && (s[O] = { ...s[O], ...C });
3504
+ }
3505
+ typeof m.font?.family == "string" && (r = m.font.family), typeof m.font?.size == "number" && (o = m.font.size);
3506
+ }
3507
+ const c = t === "dark", i = (m) => s[m][t] ?? e[m]?.[t], d = i("background");
3508
+ return {
3509
+ mode: t,
3510
+ series: a,
3511
+ font: { family: r, size: o },
3512
+ background: d,
3513
+ tableHeader: i("tableHeader"),
3514
+ tableHeaderBackground: i("tableHeaderBackground"),
3515
+ tableBody: i("tableBody"),
3516
+ tile: i("tile"),
3517
+ tileTitle: i("tileTitle"),
3518
+ mapColor: i("mapColor"),
3519
+ // Table interior follows the operator's chart background so
3520
+ // tables and chart canvases share a single "viz surface" colour.
3521
+ tableBackground: d,
3522
+ // Derived, mode-keyed defaults. Operators don't edit these in
3523
+ // v1; they're consistent borders / readable foreground text for
3524
+ // each mode. If a user later asks to customise them, expose them
3525
+ // on the schema and the editor and replace the literals below.
3526
+ border: c ? "1px solid #334155" : "1px solid #e5e7eb",
3527
+ pinnedBorder: c ? "1px solid #475569" : "1px solid #daedf3",
3528
+ valueColor: c ? "#f1f5f9" : "#1f2937",
3529
+ foreground: c ? "#e2e8f0" : "#1f2937",
3530
+ axisFaint: c ? "#475569" : "#d1d5db",
3531
+ // Dashboard panel background (area BETWEEN tiles). Light keeps
3532
+ // white so the page stays visually unchanged. Dark uses slate so
3533
+ // the panel doesn't read as a bright box against the dark page
3534
+ // chrome. Intentionally NOT tied to `palette.background`: the
3535
+ // panel stays neutral so a bold accent on the chart canvas
3536
+ // doesn't bleed into the surrounding chrome.
3537
+ dashboardRoot: c ? "#1e293b" : "#ffffff"
3538
+ };
3539
+ }
3540
+ function Fe(l, t, e) {
3541
+ const n = t ?? l ?? "light";
3542
+ return n === "auto" ? e ? "dark" : "light" : n;
3543
+ }
3544
+ const ae = G(void 0);
3545
+ function $e({
3546
+ layers: l,
3547
+ mode: t,
3548
+ userChoice: e,
3549
+ setMode: n,
3550
+ allowUserToggle: a = !0,
3551
+ children: r
3552
+ }) {
3553
+ const o = f(() => ee(l, t), [l, t]), s = f(
3554
+ () => ({ theme: o, layers: l, mode: t, userChoice: e, setMode: n, allowUserToggle: a }),
3555
+ [o, l, t, e, n, a]
3556
+ );
3557
+ return /* @__PURE__ */ Q(ae.Provider, { value: s, children: r });
3558
+ }
3559
+ function Da() {
3560
+ const l = _(ae);
3561
+ return l || {
3562
+ theme: ee([], "light"),
3563
+ layers: [],
3564
+ mode: "light",
3565
+ userChoice: void 0,
3566
+ setMode: () => {
3567
+ },
3568
+ allowUserToggle: !1
3569
+ };
3570
+ }
3571
+ const ze = new se({
3134
3572
  defaultOptions: {
3135
3573
  queries: {
3136
3574
  retry: !1,
@@ -3141,145 +3579,202 @@ const ge = new L({
3141
3579
  throwOnError: !1
3142
3580
  }
3143
3581
  }
3144
- });
3582
+ }), L = "publisher:themeMode";
3583
+ function qe() {
3584
+ if (!(typeof window > "u"))
3585
+ try {
3586
+ const l = window.localStorage.getItem(L);
3587
+ if (l === "light" || l === "dark" || l === "auto") return l;
3588
+ } catch {
3589
+ }
3590
+ }
3591
+ function Le(l) {
3592
+ if (!(typeof window > "u"))
3593
+ try {
3594
+ l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
3595
+ } catch {
3596
+ }
3597
+ }
3598
+ function je() {
3599
+ return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3600
+ }
3145
3601
  h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3146
- const j = W(void 0), ve = (l, r) => {
3147
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = h.create({
3602
+ const te = G(void 0), He = (l, t) => {
3603
+ const e = `${window.location.protocol}//${window.location.host}/api/v0`, n = h.create({
3148
3604
  baseURL: l || e,
3149
3605
  withCredentials: !0,
3150
3606
  timeout: 6e5
3151
3607
  });
3152
- t.interceptors.request.use(async (n) => {
3153
- const o = await r?.();
3154
- return n.headers.Authorization = o || "", n;
3608
+ n.interceptors.request.use(async (r) => {
3609
+ const o = await t?.();
3610
+ return r.headers.Authorization = o || "", r;
3155
3611
  });
3156
- const a = new Ve({ basePath: e });
3612
+ const a = new Me({ basePath: e });
3157
3613
  return {
3158
- models: new oe(a, e, t),
3159
- publisher: new he(a, e, t),
3160
- environments: new ae(a, e, t),
3161
- packages: new ie(a, e, t),
3162
- pages: new de(a, e, t),
3163
- notebooks: new ce(a, e, t),
3164
- connections: new J(a, e, t),
3165
- databases: new Z(a, e, t),
3166
- materializations: new ne(
3614
+ models: new ye(a, e, n),
3615
+ publisher: new Ue(a, e, n),
3616
+ environments: new ve(a, e, n),
3617
+ packages: new Ae(a, e, n),
3618
+ pages: new Ne(a, e, n),
3619
+ notebooks: new Ie(a, e, n),
3620
+ connections: new ue(a, e, n),
3621
+ databases: new be(a, e, n),
3622
+ materializations: new Se(
3167
3623
  a,
3168
3624
  e,
3169
- t
3625
+ n
3170
3626
  ),
3171
- watchMode: new Pe(a, e, t)
3627
+ watchMode: new Ee(a, e, n)
3172
3628
  };
3173
- }, na = ({
3629
+ }, Wa = (l) => /* @__PURE__ */ Q(le, { client: ze, children: /* @__PURE__ */ Q(De, { ...l }) }), De = ({
3174
3630
  children: l,
3175
- getAccessToken: r,
3631
+ getAccessToken: t,
3176
3632
  baseURL: e,
3177
- mutable: t
3633
+ mutable: n
3178
3634
  }) => {
3179
3635
  const a = f(
3180
- () => ve(e, r),
3181
- [e, r]
3182
- ), n = e || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = $(t), [c, i] = $(!0);
3183
- G(() => {
3184
- let m = !0;
3185
- return (async () => {
3186
- try {
3187
- const y = await a.publisher.getStatus();
3188
- if (m) {
3189
- const C = y.data?.frozenConfig;
3190
- let A;
3191
- C ? A = !1 : t === void 0 ? A = !0 : A = t, s(A), i(!1);
3192
- }
3193
- } catch (y) {
3194
- console.error("Failed to fetch publisher status:", y), m && (s(t), i(!1));
3195
- }
3196
- })(), () => {
3197
- m = !1;
3198
- };
3199
- }, [a, t]);
3200
- const p = {
3201
- server: n,
3202
- getAccessToken: r,
3636
+ () => He(e, t),
3637
+ [e, t]
3638
+ ), r = e || `${window.location.protocol}//${window.location.host}/api/v0`, o = ce({
3639
+ queryKey: ["status"],
3640
+ queryFn: async () => (await a.publisher.getStatus()).data
3641
+ });
3642
+ o.error && console.error("Failed to fetch publisher status:", o.error);
3643
+ const s = o.data?.frozenConfig, c = o.data?.theme, i = o.isLoading;
3644
+ let d;
3645
+ o.isLoading || o.error ? d = n : s ? d = !1 : d = n ?? !0;
3646
+ const m = f(() => [c], [c]), [O, C] = D(
3647
+ qe
3648
+ ), [A, x] = D(je);
3649
+ ie(() => {
3650
+ if (typeof window > "u" || !window.matchMedia) return;
3651
+ const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (oe) => x(oe.matches);
3652
+ return R.addEventListener("change", H), () => R.removeEventListener("change", H);
3653
+ }, []);
3654
+ const $ = de((R) => {
3655
+ C(R), Le(R);
3656
+ }, []), j = c?.allowUserToggle ?? !0, z = j ? O : void 0, ne = f(
3657
+ () => Fe(
3658
+ c?.defaultMode,
3659
+ z,
3660
+ A
3661
+ ),
3662
+ [c?.defaultMode, z, A]
3663
+ ), re = {
3664
+ server: r,
3665
+ getAccessToken: t,
3203
3666
  apiClients: a,
3204
- mutable: o,
3205
- isLoadingStatus: c
3667
+ mutable: d,
3668
+ isLoadingStatus: i,
3669
+ instanceTheme: c
3206
3670
  };
3207
- return /* @__PURE__ */ Q(H, { client: ge, children: /* @__PURE__ */ Q(j.Provider, { value: p, children: l }) });
3208
- }, ra = () => {
3209
- const l = D(j);
3671
+ return /* @__PURE__ */ Q(te.Provider, { value: re, children: /* @__PURE__ */ Q(
3672
+ $e,
3673
+ {
3674
+ layers: m,
3675
+ mode: ne,
3676
+ userChoice: z,
3677
+ setMode: $,
3678
+ allowUserToggle: j,
3679
+ children: l
3680
+ }
3681
+ ) });
3682
+ }, Ga = () => {
3683
+ const l = _(te);
3210
3684
  if (l === void 0)
3211
3685
  throw new Error("useServer must be used within a ServerProvider");
3212
3686
  return l;
3213
3687
  };
3214
3688
  export {
3215
- le as $,
3216
- ye as A,
3217
- Ge as B,
3218
- Ce as C,
3219
- Ue as D,
3220
- ee as E,
3221
- Te as F,
3222
- ae as G,
3223
- te as H,
3224
- N as I,
3225
- _e as J,
3226
- ne as K,
3227
- we as L,
3228
- Ee as M,
3229
- Me as N,
3230
- Ye as O,
3231
- $e as P,
3232
- re as Q,
3233
- je as R,
3234
- na as S,
3235
- U as T,
3236
- Je as U,
3237
- oe as V,
3238
- se as W,
3239
- E as X,
3240
- Ke as Y,
3241
- ce as Z,
3242
- Xe as _,
3243
- Ie as a,
3244
- R as a0,
3245
- Ze as a1,
3246
- ie as a2,
3247
- pe as a3,
3248
- q as a4,
3249
- ea as a5,
3250
- de as a6,
3251
- me as a7,
3252
- z as a8,
3253
- aa as a9,
3254
- he as aa,
3255
- ue as ab,
3256
- T as ac,
3257
- ta as ad,
3258
- Pe as ae,
3259
- Ve as af,
3260
- Ae as b,
3261
- xe as c,
3262
- Ne as d,
3263
- Re as e,
3264
- Qe as f,
3265
- ge as g,
3266
- Be as h,
3267
- Fe as i,
3268
- qe as j,
3269
- ze as k,
3270
- Le as l,
3271
- Y as m,
3689
+ Aa as $,
3690
+ Ke as A,
3691
+ ka as B,
3692
+ Ze as C,
3693
+ ra as D,
3694
+ Ve as E,
3695
+ oa as F,
3696
+ ve as G,
3697
+ Oe as H,
3698
+ T as I,
3699
+ ya as J,
3700
+ Se as K,
3701
+ sa as L,
3702
+ la as M,
3703
+ ca as N,
3704
+ Ca as O,
3705
+ da as P,
3706
+ ke as Q,
3707
+ ga as R,
3708
+ Wa as S,
3709
+ ba as T,
3710
+ w as U,
3711
+ Ia as V,
3712
+ ye as W,
3713
+ Ce as X,
3714
+ F as Y,
3715
+ xa as Z,
3716
+ Ie as _,
3717
+ Xe as a,
3718
+ xe as a0,
3719
+ U as a1,
3720
+ Ra as a2,
3721
+ Ae as a3,
3722
+ Re as a4,
3723
+ Z as a5,
3724
+ Na as a6,
3725
+ Ne as a7,
3726
+ Te as a8,
3727
+ E as a9,
3728
+ $e as aA,
3729
+ Ta as aa,
3730
+ Ue as ab,
3731
+ we as ac,
3732
+ M as ad,
3733
+ Ua as ae,
3734
+ Ee as af,
3735
+ Me as ag,
3736
+ fa as ah,
3737
+ za as ai,
3738
+ qa as aj,
3739
+ Da as ak,
3740
+ Ea as al,
3741
+ Ma as am,
3742
+ La as an,
3743
+ ja as ao,
3744
+ Ha as ap,
3745
+ B as aq,
3746
+ wa as ar,
3747
+ Fa as as,
3748
+ $a as at,
3749
+ Ba as au,
3750
+ Qa as av,
3751
+ Qe as aw,
3752
+ ee as ax,
3753
+ W as ay,
3754
+ Fe as az,
3755
+ ea as b,
3756
+ aa as c,
3757
+ ta as d,
3758
+ na as e,
3759
+ ia as f,
3760
+ ze as g,
3761
+ pa as h,
3762
+ ma as i,
3763
+ ha as j,
3764
+ ua as k,
3765
+ Pa as l,
3766
+ he as m,
3272
3767
  S as n,
3273
- He as o,
3274
- J as p,
3275
- K as q,
3276
- B as r,
3277
- De as s,
3278
- We as t,
3279
- ra as u,
3280
- X as v,
3281
- F as w,
3282
- fe as x,
3283
- Z as y,
3284
- x as z
3768
+ Va as o,
3769
+ ue as p,
3770
+ ge as q,
3771
+ K as r,
3772
+ va as s,
3773
+ Oa as t,
3774
+ Ga as u,
3775
+ Pe as v,
3776
+ X as w,
3777
+ Sa as x,
3778
+ be as y,
3779
+ N as z
3285
3780
  };