@malloy-publisher/sdk 0.0.218 → 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-BG3gkv-_.es.js → ServerProvider-DP5VyYD-.es.js} +1424 -924
  3. package/dist/client/api.d.ts +378 -13
  4. package/dist/client/index.cjs.js +1 -1
  5. package/dist/client/index.es.js +33 -31
  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-B95VQkAV.es.js → core-DFvqRVqM.es.js} +1 -1
  10. package/dist/{core-XPfPHme9.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-DYCNcUfd.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-CU1qLBGz.cjs.js +0 -1
  60. package/dist/index-DrGwF6d1.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
- class y {
7
- constructor(r, e = u, t = h) {
8
- this.basePath = e, this.axios = t, r && (this.configuration = r, this.basePath = r.basePath ?? e);
7
+ class I {
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
- }, Ie = {
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
- }, ye = {
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,58 +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 = {
112
+ Disable: "disable",
113
+ NoVerify: "no-verify",
114
+ VerifyCa: "verify-ca"
115
+ }, ga = {
111
116
  Snapshot: "SNAPSHOT",
112
117
  Copy: "COPY"
113
- }, je = {
118
+ }, Pa = {
114
119
  Initializing: "initializing",
115
120
  Serving: "serving",
116
121
  Draining: "draining",
117
122
  Throttled: "throttled"
118
- }, Y = function(l) {
123
+ }, ba = {
124
+ Light: "light",
125
+ Dark: "dark",
126
+ Auto: "auto"
127
+ }, he = function(l) {
119
128
  return {
120
129
  /**
121
130
  * Creates a new database connection in the specified environment.
@@ -126,16 +135,16 @@ const g = function(l, ...r) {
126
135
  * @param {*} [options] Override http request option.
127
136
  * @throws {RequiredError}
128
137
  */
129
- createConnection: async (r, e, t, a = {}) => {
130
- d("createConnection", "environmentName", r), d("createConnection", "connectionName", e), d("createConnection", "connection", t);
131
- 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);
132
141
  let s;
133
142
  l && (s = l.baseOptions);
134
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
135
- 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);
136
145
  let m = s && s.headers ? s.headers : {};
137
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
138
- url: v(o),
146
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
147
+ url: V(o),
139
148
  options: c
140
149
  };
141
150
  },
@@ -147,16 +156,16 @@ const g = function(l, ...r) {
147
156
  * @param {*} [options] Override http request option.
148
157
  * @throws {RequiredError}
149
158
  */
150
- deleteConnection: async (r, e, t = {}) => {
151
- d("deleteConnection", "environmentName", r), d("deleteConnection", "connectionName", e);
152
- 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);
153
162
  let o;
154
163
  l && (o = l.baseOptions);
155
- const s = { method: "DELETE", ...o, ...t }, c = {};
156
- g(n, {});
157
- let p = o && o.headers ? o.headers : {};
158
- return s.headers = { ...c, ...p, ...t.headers }, {
159
- 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),
160
169
  options: s
161
170
  };
162
171
  },
@@ -168,16 +177,16 @@ const g = function(l, ...r) {
168
177
  * @param {*} [options] Override http request option.
169
178
  * @throws {RequiredError}
170
179
  */
171
- getConnection: async (r, e, t = {}) => {
172
- d("getConnection", "environmentName", r), d("getConnection", "connectionName", e);
173
- 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);
174
183
  let o;
175
184
  l && (o = l.baseOptions);
176
- const s = { method: "GET", ...o, ...t }, c = {};
177
- g(n, {});
178
- let p = o && o.headers ? o.headers : {};
179
- return s.headers = { ...c, ...p, ...t.headers }, {
180
- 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),
181
190
  options: s
182
191
  };
183
192
  },
@@ -191,16 +200,16 @@ const g = function(l, ...r) {
191
200
  * @param {*} [options] Override http request option.
192
201
  * @throws {RequiredError}
193
202
  */
194
- getTable: async (r, e, t, a, n = {}) => {
195
- d("getTable", "environmentName", r), d("getTable", "connectionName", e), d("getTable", "schemaName", t), d("getTable", "tablePath", a);
196
- 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);
197
206
  let c;
198
207
  l && (c = l.baseOptions);
199
- const i = { method: "GET", ...c, ...n }, p = {};
200
- g(s, {});
201
- let b = c && c.headers ? c.headers : {};
202
- return i.headers = { ...p, ...b, ...n.headers }, {
203
- 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),
204
213
  options: i
205
214
  };
206
215
  },
@@ -215,17 +224,17 @@ const g = function(l, ...r) {
215
224
  * @param {*} [options] Override http request option.
216
225
  * @throws {RequiredError}
217
226
  */
218
- getTableInPackage: async (r, e, t, a, n, o = {}) => {
219
- d("getTableInPackage", "environmentName", r), d("getTableInPackage", "packageName", e), d("getTableInPackage", "connectionName", t), d("getTableInPackage", "schemaName", a), d("getTableInPackage", "tablePath", n);
220
- 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);
221
230
  let i;
222
231
  l && (i = l.baseOptions);
223
- const p = { method: "GET", ...i, ...o }, m = {};
224
- g(c, {});
225
- let I = i && i.headers ? i.headers : {};
226
- return p.headers = { ...m, ...I, ...o.headers }, {
227
- url: v(c),
228
- 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
229
238
  };
230
239
  },
231
240
  /**
@@ -235,16 +244,16 @@ const g = function(l, ...r) {
235
244
  * @param {*} [options] Override http request option.
236
245
  * @throws {RequiredError}
237
246
  */
238
- listConnections: async (r, e = {}) => {
239
- d("listConnections", "environmentName", r);
240
- const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
241
- let n;
242
- l && (n = l.baseOptions);
243
- const o = { method: "GET", ...n, ...e }, s = {};
244
- g(a, {});
245
- 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 : {};
246
255
  return o.headers = { ...s, ...i, ...e.headers }, {
247
- url: v(a),
256
+ url: V(a),
248
257
  options: o
249
258
  };
250
259
  },
@@ -256,16 +265,16 @@ const g = function(l, ...r) {
256
265
  * @param {*} [options] Override http request option.
257
266
  * @throws {RequiredError}
258
267
  */
259
- listSchemas: async (r, e, t = {}) => {
260
- d("listSchemas", "environmentName", r), d("listSchemas", "connectionName", e);
261
- 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);
262
271
  let o;
263
272
  l && (o = l.baseOptions);
264
- const s = { method: "GET", ...o, ...t }, c = {};
265
- g(n, {});
266
- let p = o && o.headers ? o.headers : {};
267
- return s.headers = { ...c, ...p, ...t.headers }, {
268
- 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),
269
278
  options: s
270
279
  };
271
280
  },
@@ -278,16 +287,16 @@ const g = function(l, ...r) {
278
287
  * @param {*} [options] Override http request option.
279
288
  * @throws {RequiredError}
280
289
  */
281
- listSchemasInPackage: async (r, e, t, a = {}) => {
282
- d("listSchemasInPackage", "environmentName", r), d("listSchemasInPackage", "packageName", e), d("listSchemasInPackage", "connectionName", t);
283
- 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);
284
293
  let s;
285
294
  l && (s = l.baseOptions);
286
295
  const c = { method: "GET", ...s, ...a }, i = {};
287
- g(o, {});
296
+ b(o, {});
288
297
  let m = s && s.headers ? s.headers : {};
289
298
  return c.headers = { ...i, ...m, ...a.headers }, {
290
- url: v(o),
299
+ url: V(o),
291
300
  options: c
292
301
  };
293
302
  },
@@ -301,16 +310,16 @@ const g = function(l, ...r) {
301
310
  * @param {*} [options] Override http request option.
302
311
  * @throws {RequiredError}
303
312
  */
304
- listTables: async (r, e, t, a, n = {}) => {
305
- d("listTables", "environmentName", r), d("listTables", "connectionName", e), d("listTables", "schemaName", t);
306
- 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);
307
316
  let c;
308
317
  l && (c = l.baseOptions);
309
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
310
- a && (m.tableNames = a), g(s, m);
311
- let b = c && c.headers ? c.headers : {};
312
- return i.headers = { ...p, ...b, ...n.headers }, {
313
- 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),
314
323
  options: i
315
324
  };
316
325
  },
@@ -325,17 +334,17 @@ const g = function(l, ...r) {
325
334
  * @param {*} [options] Override http request option.
326
335
  * @throws {RequiredError}
327
336
  */
328
- listTablesInPackage: async (r, e, t, a, n, o = {}) => {
329
- d("listTablesInPackage", "environmentName", r), d("listTablesInPackage", "packageName", e), d("listTablesInPackage", "connectionName", t), d("listTablesInPackage", "schemaName", a);
330
- 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);
331
340
  let i;
332
341
  l && (i = l.baseOptions);
333
- const p = { method: "GET", ...i, ...o }, m = {}, b = {};
334
- n && (b.tableNames = n), g(c, b);
335
- let I = i && i.headers ? i.headers : {};
336
- return p.headers = { ...m, ...I, ...o.headers }, {
337
- url: v(c),
338
- 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
339
348
  };
340
349
  },
341
350
  /**
@@ -347,16 +356,16 @@ const g = function(l, ...r) {
347
356
  * @param {*} [options] Override http request option.
348
357
  * @throws {RequiredError}
349
358
  */
350
- postQuerydata: async (r, e, t, a = {}) => {
351
- d("postQuerydata", "environmentName", r), d("postQuerydata", "connectionName", e), d("postQuerydata", "postQuerydataRequest", t);
352
- 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);
353
362
  let s;
354
363
  l && (s = l.baseOptions);
355
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
356
- 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);
357
366
  let m = s && s.headers ? s.headers : {};
358
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
359
- url: v(o),
367
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
368
+ url: V(o),
360
369
  options: c
361
370
  };
362
371
  },
@@ -370,16 +379,16 @@ const g = function(l, ...r) {
370
379
  * @param {*} [options] Override http request option.
371
380
  * @throws {RequiredError}
372
381
  */
373
- postQuerydataInPackage: async (r, e, t, a, n = {}) => {
374
- d("postQuerydataInPackage", "environmentName", r), d("postQuerydataInPackage", "packageName", e), d("postQuerydataInPackage", "connectionName", t), d("postQuerydataInPackage", "postQuerydataRequest", a);
375
- 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);
376
385
  let c;
377
386
  l && (c = l.baseOptions);
378
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
379
- p["Content-Type"] = "application/json", g(s, m);
380
- let b = c && c.headers ? c.headers : {};
381
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
382
- 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),
383
392
  options: i
384
393
  };
385
394
  },
@@ -392,16 +401,16 @@ const g = function(l, ...r) {
392
401
  * @param {*} [options] Override http request option.
393
402
  * @throws {RequiredError}
394
403
  */
395
- postSqlsource: async (r, e, t, a = {}) => {
396
- d("postSqlsource", "environmentName", r), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", t);
397
- 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);
398
407
  let s;
399
408
  l && (s = l.baseOptions);
400
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
401
- 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);
402
411
  let m = s && s.headers ? s.headers : {};
403
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
404
- url: v(o),
412
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
413
+ url: V(o),
405
414
  options: c
406
415
  };
407
416
  },
@@ -415,16 +424,16 @@ const g = function(l, ...r) {
415
424
  * @param {*} [options] Override http request option.
416
425
  * @throws {RequiredError}
417
426
  */
418
- postSqlsourceInPackage: async (r, e, t, a, n = {}) => {
419
- d("postSqlsourceInPackage", "environmentName", r), d("postSqlsourceInPackage", "packageName", e), d("postSqlsourceInPackage", "connectionName", t), d("postSqlsourceInPackage", "postSqlsourceRequest", a);
420
- 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);
421
430
  let c;
422
431
  l && (c = l.baseOptions);
423
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
424
- p["Content-Type"] = "application/json", g(s, m);
425
- let b = c && c.headers ? c.headers : {};
426
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
427
- 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),
428
437
  options: i
429
438
  };
430
439
  },
@@ -437,16 +446,16 @@ const g = function(l, ...r) {
437
446
  * @param {*} [options] Override http request option.
438
447
  * @throws {RequiredError}
439
448
  */
440
- postTemporarytable: async (r, e, t, a = {}) => {
441
- d("postTemporarytable", "environmentName", r), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", t);
442
- 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);
443
452
  let s;
444
453
  l && (s = l.baseOptions);
445
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
446
- 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);
447
456
  let m = s && s.headers ? s.headers : {};
448
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
449
- url: v(o),
457
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
458
+ url: V(o),
450
459
  options: c
451
460
  };
452
461
  },
@@ -460,16 +469,16 @@ const g = function(l, ...r) {
460
469
  * @param {*} [options] Override http request option.
461
470
  * @throws {RequiredError}
462
471
  */
463
- postTemporarytableInPackage: async (r, e, t, a, n = {}) => {
464
- d("postTemporarytableInPackage", "environmentName", r), d("postTemporarytableInPackage", "packageName", e), d("postTemporarytableInPackage", "connectionName", t), d("postTemporarytableInPackage", "postSqlsourceRequest", a);
465
- 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);
466
475
  let c;
467
476
  l && (c = l.baseOptions);
468
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
469
- p["Content-Type"] = "application/json", g(s, m);
470
- let b = c && c.headers ? c.headers : {};
471
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
472
- 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),
473
482
  options: i
474
483
  };
475
484
  },
@@ -482,22 +491,22 @@ const g = function(l, ...r) {
482
491
  * @param {*} [options] Override http request option.
483
492
  * @throws {RequiredError}
484
493
  */
485
- updateConnection: async (r, e, t, a = {}) => {
486
- d("updateConnection", "environmentName", r), d("updateConnection", "connectionName", e), d("updateConnection", "updateConnectionRequest", t);
487
- 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);
488
497
  let s;
489
498
  l && (s = l.baseOptions);
490
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
491
- 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);
492
501
  let m = s && s.headers ? s.headers : {};
493
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
494
- url: v(o),
502
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
503
+ url: V(o),
495
504
  options: c
496
505
  };
497
506
  }
498
507
  };
499
508
  }, S = function(l) {
500
- const r = Y(l);
509
+ const t = he(l);
501
510
  return {
502
511
  /**
503
512
  * Creates a new database connection in the specified environment.
@@ -508,9 +517,9 @@ const g = function(l, ...r) {
508
517
  * @param {*} [options] Override http request option.
509
518
  * @throws {RequiredError}
510
519
  */
511
- async createConnection(e, t, a, n) {
512
- const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
513
- 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);
514
523
  },
515
524
  /**
516
525
  * Permanently deletes a database connection from the environment.
@@ -520,9 +529,9 @@ const g = function(l, ...r) {
520
529
  * @param {*} [options] Override http request option.
521
530
  * @throws {RequiredError}
522
531
  */
523
- async deleteConnection(e, t, a) {
524
- const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
525
- 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);
526
535
  },
527
536
  /**
528
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.
@@ -532,9 +541,9 @@ const g = function(l, ...r) {
532
541
  * @param {*} [options] Override http request option.
533
542
  * @throws {RequiredError}
534
543
  */
535
- async getConnection(e, t, a) {
536
- const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
537
- 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);
538
547
  },
539
548
  /**
540
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.
@@ -546,9 +555,9 @@ const g = function(l, ...r) {
546
555
  * @param {*} [options] Override http request option.
547
556
  * @throws {RequiredError}
548
557
  */
549
- async getTable(e, t, a, n, o) {
550
- const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
551
- 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);
552
561
  },
553
562
  /**
554
563
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -561,9 +570,9 @@ const g = function(l, ...r) {
561
570
  * @param {*} [options] Override http request option.
562
571
  * @throws {RequiredError}
563
572
  */
564
- async getTableInPackage(e, t, a, n, o, s) {
565
- const c = await r.getTableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
566
- 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);
567
576
  },
568
577
  /**
569
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.
@@ -572,9 +581,9 @@ const g = function(l, ...r) {
572
581
  * @param {*} [options] Override http request option.
573
582
  * @throws {RequiredError}
574
583
  */
575
- async listConnections(e, t) {
576
- const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[n]?.url;
577
- 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);
578
587
  },
579
588
  /**
580
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.
@@ -584,9 +593,9 @@ const g = function(l, ...r) {
584
593
  * @param {*} [options] Override http request option.
585
594
  * @throws {RequiredError}
586
595
  */
587
- async listSchemas(e, t, a) {
588
- const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
589
- 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);
590
599
  },
591
600
  /**
592
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).
@@ -597,9 +606,9 @@ const g = function(l, ...r) {
597
606
  * @param {*} [options] Override http request option.
598
607
  * @throws {RequiredError}
599
608
  */
600
- async listSchemasInPackage(e, t, a, n) {
601
- const o = await r.listSchemasInPackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
602
- 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);
603
612
  },
604
613
  /**
605
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.
@@ -611,9 +620,9 @@ const g = function(l, ...r) {
611
620
  * @param {*} [options] Override http request option.
612
621
  * @throws {RequiredError}
613
622
  */
614
- async listTables(e, t, a, n, o) {
615
- const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
616
- 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);
617
626
  },
618
627
  /**
619
628
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -626,9 +635,9 @@ const g = function(l, ...r) {
626
635
  * @param {*} [options] Override http request option.
627
636
  * @throws {RequiredError}
628
637
  */
629
- async listTablesInPackage(e, t, a, n, o, s) {
630
- const c = await r.listTablesInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
631
- 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);
632
641
  },
633
642
  /**
634
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.
@@ -639,9 +648,9 @@ const g = function(l, ...r) {
639
648
  * @param {*} [options] Override http request option.
640
649
  * @throws {RequiredError}
641
650
  */
642
- async postQuerydata(e, t, a, n) {
643
- const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
644
- 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);
645
654
  },
646
655
  /**
647
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.
@@ -653,9 +662,9 @@ const g = function(l, ...r) {
653
662
  * @param {*} [options] Override http request option.
654
663
  * @throws {RequiredError}
655
664
  */
656
- async postQuerydataInPackage(e, t, a, n, o) {
657
- const s = await r.postQuerydataInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
658
- 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);
659
668
  },
660
669
  /**
661
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.
@@ -666,9 +675,9 @@ const g = function(l, ...r) {
666
675
  * @param {*} [options] Override http request option.
667
676
  * @throws {RequiredError}
668
677
  */
669
- async postSqlsource(e, t, a, n) {
670
- const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
671
- 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);
672
681
  },
673
682
  /**
674
683
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -680,9 +689,9 @@ const g = function(l, ...r) {
680
689
  * @param {*} [options] Override http request option.
681
690
  * @throws {RequiredError}
682
691
  */
683
- async postSqlsourceInPackage(e, t, a, n, o) {
684
- const s = await r.postSqlsourceInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
685
- 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);
686
695
  },
687
696
  /**
688
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.
@@ -693,9 +702,9 @@ const g = function(l, ...r) {
693
702
  * @param {*} [options] Override http request option.
694
703
  * @throws {RequiredError}
695
704
  */
696
- async postTemporarytable(e, t, a, n) {
697
- const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
698
- 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);
699
708
  },
700
709
  /**
701
710
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -707,9 +716,9 @@ const g = function(l, ...r) {
707
716
  * @param {*} [options] Override http request option.
708
717
  * @throws {RequiredError}
709
718
  */
710
- async postTemporarytableInPackage(e, t, a, n, o) {
711
- const s = await r.postTemporarytableInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
712
- 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);
713
722
  },
714
723
  /**
715
724
  * Updates the configuration of an existing database connection.
@@ -720,13 +729,13 @@ const g = function(l, ...r) {
720
729
  * @param {*} [options] Override http request option.
721
730
  * @throws {RequiredError}
722
731
  */
723
- async updateConnection(e, t, a, n) {
724
- const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
725
- 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);
726
735
  }
727
736
  };
728
- }, Le = function(l, r, e) {
729
- const t = S(l);
737
+ }, Va = function(l, t, e) {
738
+ const n = S(l);
730
739
  return {
731
740
  /**
732
741
  * Creates a new database connection in the specified environment.
@@ -737,8 +746,8 @@ const g = function(l, ...r) {
737
746
  * @param {*} [options] Override http request option.
738
747
  * @throws {RequiredError}
739
748
  */
740
- createConnection(a, n, o, s) {
741
- 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));
742
751
  },
743
752
  /**
744
753
  * Permanently deletes a database connection from the environment.
@@ -748,8 +757,8 @@ const g = function(l, ...r) {
748
757
  * @param {*} [options] Override http request option.
749
758
  * @throws {RequiredError}
750
759
  */
751
- deleteConnection(a, n, o) {
752
- 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));
753
762
  },
754
763
  /**
755
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.
@@ -759,8 +768,8 @@ const g = function(l, ...r) {
759
768
  * @param {*} [options] Override http request option.
760
769
  * @throws {RequiredError}
761
770
  */
762
- getConnection(a, n, o) {
763
- 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));
764
773
  },
765
774
  /**
766
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.
@@ -772,8 +781,8 @@ const g = function(l, ...r) {
772
781
  * @param {*} [options] Override http request option.
773
782
  * @throws {RequiredError}
774
783
  */
775
- getTable(a, n, o, s, c) {
776
- 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));
777
786
  },
778
787
  /**
779
788
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -786,8 +795,8 @@ const g = function(l, ...r) {
786
795
  * @param {*} [options] Override http request option.
787
796
  * @throws {RequiredError}
788
797
  */
789
- getTableInPackage(a, n, o, s, c, i) {
790
- 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));
791
800
  },
792
801
  /**
793
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.
@@ -796,8 +805,8 @@ const g = function(l, ...r) {
796
805
  * @param {*} [options] Override http request option.
797
806
  * @throws {RequiredError}
798
807
  */
799
- listConnections(a, n) {
800
- 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));
801
810
  },
802
811
  /**
803
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.
@@ -807,8 +816,8 @@ const g = function(l, ...r) {
807
816
  * @param {*} [options] Override http request option.
808
817
  * @throws {RequiredError}
809
818
  */
810
- listSchemas(a, n, o) {
811
- 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));
812
821
  },
813
822
  /**
814
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).
@@ -819,8 +828,8 @@ const g = function(l, ...r) {
819
828
  * @param {*} [options] Override http request option.
820
829
  * @throws {RequiredError}
821
830
  */
822
- listSchemasInPackage(a, n, o, s) {
823
- 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));
824
833
  },
825
834
  /**
826
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.
@@ -832,8 +841,8 @@ const g = function(l, ...r) {
832
841
  * @param {*} [options] Override http request option.
833
842
  * @throws {RequiredError}
834
843
  */
835
- listTables(a, n, o, s, c) {
836
- 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));
837
846
  },
838
847
  /**
839
848
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -846,8 +855,8 @@ const g = function(l, ...r) {
846
855
  * @param {*} [options] Override http request option.
847
856
  * @throws {RequiredError}
848
857
  */
849
- listTablesInPackage(a, n, o, s, c, i) {
850
- 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));
851
860
  },
852
861
  /**
853
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.
@@ -858,8 +867,8 @@ const g = function(l, ...r) {
858
867
  * @param {*} [options] Override http request option.
859
868
  * @throws {RequiredError}
860
869
  */
861
- postQuerydata(a, n, o, s) {
862
- 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));
863
872
  },
864
873
  /**
865
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.
@@ -871,8 +880,8 @@ const g = function(l, ...r) {
871
880
  * @param {*} [options] Override http request option.
872
881
  * @throws {RequiredError}
873
882
  */
874
- postQuerydataInPackage(a, n, o, s, c) {
875
- 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));
876
885
  },
877
886
  /**
878
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.
@@ -883,8 +892,8 @@ const g = function(l, ...r) {
883
892
  * @param {*} [options] Override http request option.
884
893
  * @throws {RequiredError}
885
894
  */
886
- postSqlsource(a, n, o, s) {
887
- 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));
888
897
  },
889
898
  /**
890
899
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -896,8 +905,8 @@ const g = function(l, ...r) {
896
905
  * @param {*} [options] Override http request option.
897
906
  * @throws {RequiredError}
898
907
  */
899
- postSqlsourceInPackage(a, n, o, s, c) {
900
- 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));
901
910
  },
902
911
  /**
903
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.
@@ -908,8 +917,8 @@ const g = function(l, ...r) {
908
917
  * @param {*} [options] Override http request option.
909
918
  * @throws {RequiredError}
910
919
  */
911
- postTemporarytable(a, n, o, s) {
912
- 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));
913
922
  },
914
923
  /**
915
924
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -921,8 +930,8 @@ const g = function(l, ...r) {
921
930
  * @param {*} [options] Override http request option.
922
931
  * @throws {RequiredError}
923
932
  */
924
- postTemporarytableInPackage(a, n, o, s, c) {
925
- 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));
926
935
  },
927
936
  /**
928
937
  * Updates the configuration of an existing database connection.
@@ -933,12 +942,12 @@ const g = function(l, ...r) {
933
942
  * @param {*} [options] Override http request option.
934
943
  * @throws {RequiredError}
935
944
  */
936
- updateConnection(a, n, o, s) {
937
- 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));
938
947
  }
939
948
  };
940
949
  };
941
- class J extends y {
950
+ class ue extends I {
942
951
  /**
943
952
  * Creates a new database connection in the specified environment.
944
953
  * @summary Create a new database connection
@@ -949,8 +958,8 @@ class J extends y {
949
958
  * @throws {RequiredError}
950
959
  * @memberof ConnectionsApi
951
960
  */
952
- createConnection(r, e, t, a) {
953
- 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));
954
963
  }
955
964
  /**
956
965
  * Permanently deletes a database connection from the environment.
@@ -961,8 +970,8 @@ class J extends y {
961
970
  * @throws {RequiredError}
962
971
  * @memberof ConnectionsApi
963
972
  */
964
- deleteConnection(r, e, t) {
965
- 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));
966
975
  }
967
976
  /**
968
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.
@@ -973,8 +982,8 @@ class J extends y {
973
982
  * @throws {RequiredError}
974
983
  * @memberof ConnectionsApi
975
984
  */
976
- getConnection(r, e, t) {
977
- 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));
978
987
  }
979
988
  /**
980
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.
@@ -987,8 +996,8 @@ class J extends y {
987
996
  * @throws {RequiredError}
988
997
  * @memberof ConnectionsApi
989
998
  */
990
- getTable(r, e, t, a, n) {
991
- 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));
992
1001
  }
993
1002
  /**
994
1003
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1002,8 +1011,8 @@ class J extends y {
1002
1011
  * @throws {RequiredError}
1003
1012
  * @memberof ConnectionsApi
1004
1013
  */
1005
- getTableInPackage(r, e, t, a, n, o) {
1006
- 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));
1007
1016
  }
1008
1017
  /**
1009
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.
@@ -1013,8 +1022,8 @@ class J extends y {
1013
1022
  * @throws {RequiredError}
1014
1023
  * @memberof ConnectionsApi
1015
1024
  */
1016
- listConnections(r, e) {
1017
- 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));
1018
1027
  }
1019
1028
  /**
1020
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.
@@ -1025,8 +1034,8 @@ class J extends y {
1025
1034
  * @throws {RequiredError}
1026
1035
  * @memberof ConnectionsApi
1027
1036
  */
1028
- listSchemas(r, e, t) {
1029
- 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));
1030
1039
  }
1031
1040
  /**
1032
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).
@@ -1038,8 +1047,8 @@ class J extends y {
1038
1047
  * @throws {RequiredError}
1039
1048
  * @memberof ConnectionsApi
1040
1049
  */
1041
- listSchemasInPackage(r, e, t, a) {
1042
- 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));
1043
1052
  }
1044
1053
  /**
1045
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.
@@ -1052,8 +1061,8 @@ class J extends y {
1052
1061
  * @throws {RequiredError}
1053
1062
  * @memberof ConnectionsApi
1054
1063
  */
1055
- listTables(r, e, t, a, n) {
1056
- 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));
1057
1066
  }
1058
1067
  /**
1059
1068
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1067,8 +1076,8 @@ class J extends y {
1067
1076
  * @throws {RequiredError}
1068
1077
  * @memberof ConnectionsApi
1069
1078
  */
1070
- listTablesInPackage(r, e, t, a, n, o) {
1071
- 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));
1072
1081
  }
1073
1082
  /**
1074
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.
@@ -1080,8 +1089,8 @@ class J extends y {
1080
1089
  * @throws {RequiredError}
1081
1090
  * @memberof ConnectionsApi
1082
1091
  */
1083
- postQuerydata(r, e, t, a) {
1084
- 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));
1085
1094
  }
1086
1095
  /**
1087
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.
@@ -1094,8 +1103,8 @@ class J extends y {
1094
1103
  * @throws {RequiredError}
1095
1104
  * @memberof ConnectionsApi
1096
1105
  */
1097
- postQuerydataInPackage(r, e, t, a, n) {
1098
- 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));
1099
1108
  }
1100
1109
  /**
1101
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.
@@ -1107,8 +1116,8 @@ class J extends y {
1107
1116
  * @throws {RequiredError}
1108
1117
  * @memberof ConnectionsApi
1109
1118
  */
1110
- postSqlsource(r, e, t, a) {
1111
- 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));
1112
1121
  }
1113
1122
  /**
1114
1123
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1121,8 +1130,8 @@ class J extends y {
1121
1130
  * @throws {RequiredError}
1122
1131
  * @memberof ConnectionsApi
1123
1132
  */
1124
- postSqlsourceInPackage(r, e, t, a, n) {
1125
- 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));
1126
1135
  }
1127
1136
  /**
1128
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.
@@ -1134,8 +1143,8 @@ class J extends y {
1134
1143
  * @throws {RequiredError}
1135
1144
  * @memberof ConnectionsApi
1136
1145
  */
1137
- postTemporarytable(r, e, t, a) {
1138
- 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));
1139
1148
  }
1140
1149
  /**
1141
1150
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1148,8 +1157,8 @@ class J extends y {
1148
1157
  * @throws {RequiredError}
1149
1158
  * @memberof ConnectionsApi
1150
1159
  */
1151
- postTemporarytableInPackage(r, e, t, a, n) {
1152
- 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));
1153
1162
  }
1154
1163
  /**
1155
1164
  * Updates the configuration of an existing database connection.
@@ -1161,11 +1170,11 @@ class J extends y {
1161
1170
  * @throws {RequiredError}
1162
1171
  * @memberof ConnectionsApi
1163
1172
  */
1164
- updateConnection(r, e, t, a) {
1165
- 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));
1166
1175
  }
1167
1176
  }
1168
- const K = function(l) {
1177
+ const ge = function(l) {
1169
1178
  return {
1170
1179
  /**
1171
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.
@@ -1174,22 +1183,22 @@ const K = function(l) {
1174
1183
  * @param {*} [options] Override http request option.
1175
1184
  * @throws {RequiredError}
1176
1185
  */
1177
- testConnectionConfiguration: async (r, e = {}) => {
1178
- d("testConnectionConfiguration", "connection", r);
1179
- const t = "/connections/test", a = new URL(t, V);
1180
- let n;
1181
- l && (n = l.baseOptions);
1182
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1183
- s["Content-Type"] = "application/json", g(a, c);
1184
- let i = n && n.headers ? n.headers : {};
1185
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
1186
- 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),
1187
1196
  options: o
1188
1197
  };
1189
1198
  }
1190
1199
  };
1191
- }, B = function(l) {
1192
- const r = K(l);
1200
+ }, K = function(l) {
1201
+ const t = ge(l);
1193
1202
  return {
1194
1203
  /**
1195
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.
@@ -1198,13 +1207,13 @@ const K = function(l) {
1198
1207
  * @param {*} [options] Override http request option.
1199
1208
  * @throws {RequiredError}
1200
1209
  */
1201
- async testConnectionConfiguration(e, t) {
1202
- const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1203
- 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);
1204
1213
  }
1205
1214
  };
1206
- }, He = function(l, r, e) {
1207
- const t = B(l);
1215
+ }, va = function(l, t, e) {
1216
+ const n = K(l);
1208
1217
  return {
1209
1218
  /**
1210
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.
@@ -1213,12 +1222,12 @@ const K = function(l) {
1213
1222
  * @param {*} [options] Override http request option.
1214
1223
  * @throws {RequiredError}
1215
1224
  */
1216
- testConnectionConfiguration(a, n) {
1217
- 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));
1218
1227
  }
1219
1228
  };
1220
1229
  };
1221
- class De extends y {
1230
+ class Oa extends I {
1222
1231
  /**
1223
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.
1224
1233
  * @summary Test database connection configuration
@@ -1227,11 +1236,11 @@ class De extends y {
1227
1236
  * @throws {RequiredError}
1228
1237
  * @memberof ConnectionsTestApi
1229
1238
  */
1230
- testConnectionConfiguration(r, e) {
1231
- 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));
1232
1241
  }
1233
1242
  }
1234
- const X = function(l) {
1243
+ const Pe = function(l) {
1235
1244
  return {
1236
1245
  /**
1237
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.
@@ -1242,22 +1251,22 @@ const X = function(l) {
1242
1251
  * @param {*} [options] Override http request option.
1243
1252
  * @throws {RequiredError}
1244
1253
  */
1245
- listDatabases: async (r, e, t, a = {}) => {
1246
- d("listDatabases", "environmentName", r), d("listDatabases", "packageName", e);
1247
- 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);
1248
1257
  let s;
1249
1258
  l && (s = l.baseOptions);
1250
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1251
- 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);
1252
1261
  let m = s && s.headers ? s.headers : {};
1253
1262
  return c.headers = { ...i, ...m, ...a.headers }, {
1254
- url: v(o),
1263
+ url: V(o),
1255
1264
  options: c
1256
1265
  };
1257
1266
  }
1258
1267
  };
1259
- }, F = function(l) {
1260
- const r = X(l);
1268
+ }, X = function(l) {
1269
+ const t = Pe(l);
1261
1270
  return {
1262
1271
  /**
1263
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.
@@ -1268,13 +1277,13 @@ const X = function(l) {
1268
1277
  * @param {*} [options] Override http request option.
1269
1278
  * @throws {RequiredError}
1270
1279
  */
1271
- async listDatabases(e, t, a, n) {
1272
- const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1273
- 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);
1274
1283
  }
1275
1284
  };
1276
- }, We = function(l, r, e) {
1277
- const t = F(l);
1285
+ }, Sa = function(l, t, e) {
1286
+ const n = X(l);
1278
1287
  return {
1279
1288
  /**
1280
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.
@@ -1285,12 +1294,12 @@ const X = function(l) {
1285
1294
  * @param {*} [options] Override http request option.
1286
1295
  * @throws {RequiredError}
1287
1296
  */
1288
- listDatabases(a, n, o, s) {
1289
- 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));
1290
1299
  }
1291
1300
  };
1292
1301
  };
1293
- class Z extends y {
1302
+ class be extends I {
1294
1303
  /**
1295
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.
1296
1305
  * @summary List embedded databases
@@ -1301,11 +1310,11 @@ class Z extends y {
1301
1310
  * @throws {RequiredError}
1302
1311
  * @memberof DatabasesApi
1303
1312
  */
1304
- listDatabases(r, e, t, a) {
1305
- 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));
1306
1315
  }
1307
1316
  }
1308
- const ee = function(l) {
1317
+ const Ve = function(l) {
1309
1318
  return {
1310
1319
  /**
1311
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.
@@ -1314,16 +1323,16 @@ const ee = function(l) {
1314
1323
  * @param {*} [options] Override http request option.
1315
1324
  * @throws {RequiredError}
1316
1325
  */
1317
- createEnvironment: async (r, e = {}) => {
1318
- d("createEnvironment", "environment", r);
1319
- const t = "/environments", a = new URL(t, V);
1320
- let n;
1321
- l && (n = l.baseOptions);
1322
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1323
- s["Content-Type"] = "application/json", g(a, c);
1324
- let i = n && n.headers ? n.headers : {};
1325
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
1326
- 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),
1327
1336
  options: o
1328
1337
  };
1329
1338
  },
@@ -1334,16 +1343,16 @@ const ee = function(l) {
1334
1343
  * @param {*} [options] Override http request option.
1335
1344
  * @throws {RequiredError}
1336
1345
  */
1337
- deleteEnvironment: async (r, e = {}) => {
1338
- d("deleteEnvironment", "environmentName", r);
1339
- const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
1340
- let n;
1341
- l && (n = l.baseOptions);
1342
- const o = { method: "DELETE", ...n, ...e }, s = {};
1343
- g(a, {});
1344
- 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 : {};
1345
1354
  return o.headers = { ...s, ...i, ...e.headers }, {
1346
- url: v(a),
1355
+ url: V(a),
1347
1356
  options: o
1348
1357
  };
1349
1358
  },
@@ -1355,16 +1364,16 @@ const ee = function(l) {
1355
1364
  * @param {*} [options] Override http request option.
1356
1365
  * @throws {RequiredError}
1357
1366
  */
1358
- getEnvironment: async (r, e, t = {}) => {
1359
- d("getEnvironment", "environmentName", r);
1360
- 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);
1361
1370
  let o;
1362
1371
  l && (o = l.baseOptions);
1363
- const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1364
- e !== void 0 && (i.reload = e), g(n, i);
1365
- let p = o && o.headers ? o.headers : {};
1366
- return s.headers = { ...c, ...p, ...t.headers }, {
1367
- 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),
1368
1377
  options: s
1369
1378
  };
1370
1379
  },
@@ -1374,16 +1383,16 @@ const ee = function(l) {
1374
1383
  * @param {*} [options] Override http request option.
1375
1384
  * @throws {RequiredError}
1376
1385
  */
1377
- listEnvironments: async (r = {}) => {
1378
- const e = "/environments", t = new URL(e, V);
1386
+ listEnvironments: async (t = {}) => {
1387
+ const e = "/environments", n = new URL(e, P);
1379
1388
  let a;
1380
1389
  l && (a = l.baseOptions);
1381
- const n = { method: "GET", ...a, ...r }, o = {};
1382
- g(t, {});
1390
+ const r = { method: "GET", ...a, ...t }, o = {};
1391
+ b(n, {});
1383
1392
  let c = a && a.headers ? a.headers : {};
1384
- return n.headers = { ...o, ...c, ...r.headers }, {
1385
- url: v(t),
1386
- options: n
1393
+ return r.headers = { ...o, ...c, ...t.headers }, {
1394
+ url: V(n),
1395
+ options: r
1387
1396
  };
1388
1397
  },
1389
1398
  /**
@@ -1394,22 +1403,22 @@ const ee = function(l) {
1394
1403
  * @param {*} [options] Override http request option.
1395
1404
  * @throws {RequiredError}
1396
1405
  */
1397
- updateEnvironment: async (r, e, t = {}) => {
1398
- d("updateEnvironment", "environmentName", r), d("updateEnvironment", "environment", e);
1399
- 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);
1400
1409
  let o;
1401
1410
  l && (o = l.baseOptions);
1402
- const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1403
- c["Content-Type"] = "application/json", g(n, i);
1404
- let p = o && o.headers ? o.headers : {};
1405
- return s.headers = { ...c, ...p, ...t.headers }, s.data = k(e, s, l), {
1406
- 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),
1407
1416
  options: s
1408
1417
  };
1409
1418
  }
1410
1419
  };
1411
- }, x = function(l) {
1412
- const r = ee(l);
1420
+ }, N = function(l) {
1421
+ const t = Ve(l);
1413
1422
  return {
1414
1423
  /**
1415
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.
@@ -1418,9 +1427,9 @@ const ee = function(l) {
1418
1427
  * @param {*} [options] Override http request option.
1419
1428
  * @throws {RequiredError}
1420
1429
  */
1421
- async createEnvironment(e, t) {
1422
- const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1423
- 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);
1424
1433
  },
1425
1434
  /**
1426
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.
@@ -1429,9 +1438,9 @@ const ee = function(l) {
1429
1438
  * @param {*} [options] Override http request option.
1430
1439
  * @throws {RequiredError}
1431
1440
  */
1432
- async deleteEnvironment(e, t) {
1433
- const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1434
- 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);
1435
1444
  },
1436
1445
  /**
1437
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.
@@ -1441,9 +1450,9 @@ const ee = function(l) {
1441
1450
  * @param {*} [options] Override http request option.
1442
1451
  * @throws {RequiredError}
1443
1452
  */
1444
- async getEnvironment(e, t, a) {
1445
- const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1446
- 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);
1447
1456
  },
1448
1457
  /**
1449
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.
@@ -1452,8 +1461,8 @@ const ee = function(l) {
1452
1461
  * @throws {RequiredError}
1453
1462
  */
1454
1463
  async listEnvironments(e) {
1455
- const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1456
- 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);
1457
1466
  },
1458
1467
  /**
1459
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.
@@ -1463,13 +1472,13 @@ const ee = function(l) {
1463
1472
  * @param {*} [options] Override http request option.
1464
1473
  * @throws {RequiredError}
1465
1474
  */
1466
- async updateEnvironment(e, t, a) {
1467
- const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1468
- 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);
1469
1478
  }
1470
1479
  };
1471
- }, fe = function(l, r, e) {
1472
- const t = x(l);
1480
+ }, ka = function(l, t, e) {
1481
+ const n = N(l);
1473
1482
  return {
1474
1483
  /**
1475
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.
@@ -1478,8 +1487,8 @@ const ee = function(l) {
1478
1487
  * @param {*} [options] Override http request option.
1479
1488
  * @throws {RequiredError}
1480
1489
  */
1481
- createEnvironment(a, n) {
1482
- 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));
1483
1492
  },
1484
1493
  /**
1485
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.
@@ -1488,8 +1497,8 @@ const ee = function(l) {
1488
1497
  * @param {*} [options] Override http request option.
1489
1498
  * @throws {RequiredError}
1490
1499
  */
1491
- deleteEnvironment(a, n) {
1492
- 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));
1493
1502
  },
1494
1503
  /**
1495
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.
@@ -1499,8 +1508,8 @@ const ee = function(l) {
1499
1508
  * @param {*} [options] Override http request option.
1500
1509
  * @throws {RequiredError}
1501
1510
  */
1502
- getEnvironment(a, n, o) {
1503
- 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));
1504
1513
  },
1505
1514
  /**
1506
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.
@@ -1509,7 +1518,7 @@ const ee = function(l) {
1509
1518
  * @throws {RequiredError}
1510
1519
  */
1511
1520
  listEnvironments(a) {
1512
- return t.listEnvironments(a).then((n) => n(e, r));
1521
+ return n.listEnvironments(a).then((r) => r(e, t));
1513
1522
  },
1514
1523
  /**
1515
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.
@@ -1519,12 +1528,12 @@ const ee = function(l) {
1519
1528
  * @param {*} [options] Override http request option.
1520
1529
  * @throws {RequiredError}
1521
1530
  */
1522
- updateEnvironment(a, n, o) {
1523
- 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));
1524
1533
  }
1525
1534
  };
1526
1535
  };
1527
- class ae extends y {
1536
+ class ve extends I {
1528
1537
  /**
1529
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.
1530
1539
  * @summary Create a new environment
@@ -1533,8 +1542,8 @@ class ae extends y {
1533
1542
  * @throws {RequiredError}
1534
1543
  * @memberof EnvironmentsApi
1535
1544
  */
1536
- createEnvironment(r, e) {
1537
- 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));
1538
1547
  }
1539
1548
  /**
1540
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.
@@ -1544,8 +1553,8 @@ class ae extends y {
1544
1553
  * @throws {RequiredError}
1545
1554
  * @memberof EnvironmentsApi
1546
1555
  */
1547
- deleteEnvironment(r, e) {
1548
- 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));
1549
1558
  }
1550
1559
  /**
1551
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.
@@ -1556,8 +1565,8 @@ class ae extends y {
1556
1565
  * @throws {RequiredError}
1557
1566
  * @memberof EnvironmentsApi
1558
1567
  */
1559
- getEnvironment(r, e, t) {
1560
- 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));
1561
1570
  }
1562
1571
  /**
1563
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.
@@ -1566,8 +1575,8 @@ class ae extends y {
1566
1575
  * @throws {RequiredError}
1567
1576
  * @memberof EnvironmentsApi
1568
1577
  */
1569
- listEnvironments(r) {
1570
- 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));
1571
1580
  }
1572
1581
  /**
1573
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.
@@ -1578,11 +1587,11 @@ class ae extends y {
1578
1587
  * @throws {RequiredError}
1579
1588
  * @memberof EnvironmentsApi
1580
1589
  */
1581
- updateEnvironment(r, e, t) {
1582
- 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));
1583
1592
  }
1584
1593
  }
1585
- const te = function(l) {
1594
+ const Oe = function(l) {
1586
1595
  return {
1587
1596
  /**
1588
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.
@@ -1593,16 +1602,16 @@ const te = function(l) {
1593
1602
  * @param {*} [options] Override http request option.
1594
1603
  * @throws {RequiredError}
1595
1604
  */
1596
- createMaterialization: async (r, e, t, a = {}) => {
1597
- d("createMaterialization", "environmentName", r), d("createMaterialization", "packageName", e);
1598
- 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);
1599
1608
  let s;
1600
1609
  l && (s = l.baseOptions);
1601
- const c = { method: "POST", ...s, ...a }, i = {}, p = {};
1602
- 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);
1603
1612
  let m = s && s.headers ? s.headers : {};
1604
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
1605
- url: v(o),
1613
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
1614
+ url: V(o),
1606
1615
  options: c
1607
1616
  };
1608
1617
  },
@@ -1616,16 +1625,16 @@ const te = function(l) {
1616
1625
  * @param {*} [options] Override http request option.
1617
1626
  * @throws {RequiredError}
1618
1627
  */
1619
- deleteMaterialization: async (r, e, t, a, n = {}) => {
1620
- d("deleteMaterialization", "environmentName", r), d("deleteMaterialization", "packageName", e), d("deleteMaterialization", "materializationId", t);
1621
- 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);
1622
1631
  let c;
1623
1632
  l && (c = l.baseOptions);
1624
- const i = { method: "DELETE", ...c, ...n }, p = {}, m = {};
1625
- a !== void 0 && (m.dropTables = a), g(s, m);
1626
- let b = c && c.headers ? c.headers : {};
1627
- return i.headers = { ...p, ...b, ...n.headers }, {
1628
- 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),
1629
1638
  options: i
1630
1639
  };
1631
1640
  },
@@ -1638,16 +1647,16 @@ const te = function(l) {
1638
1647
  * @param {*} [options] Override http request option.
1639
1648
  * @throws {RequiredError}
1640
1649
  */
1641
- getMaterialization: async (r, e, t, a = {}) => {
1642
- d("getMaterialization", "environmentName", r), d("getMaterialization", "packageName", e), d("getMaterialization", "materializationId", t);
1643
- 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);
1644
1653
  let s;
1645
1654
  l && (s = l.baseOptions);
1646
1655
  const c = { method: "GET", ...s, ...a }, i = {};
1647
- g(o, {});
1656
+ b(o, {});
1648
1657
  let m = s && s.headers ? s.headers : {};
1649
1658
  return c.headers = { ...i, ...m, ...a.headers }, {
1650
- url: v(o),
1659
+ url: V(o),
1651
1660
  options: c
1652
1661
  };
1653
1662
  },
@@ -1661,16 +1670,16 @@ const te = function(l) {
1661
1670
  * @param {*} [options] Override http request option.
1662
1671
  * @throws {RequiredError}
1663
1672
  */
1664
- listMaterializations: async (r, e, t, a, n = {}) => {
1665
- d("listMaterializations", "environmentName", r), d("listMaterializations", "packageName", e);
1666
- 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);
1667
1676
  let c;
1668
1677
  l && (c = l.baseOptions);
1669
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
1670
- t !== void 0 && (m.limit = t), a !== void 0 && (m.offset = a), g(s, m);
1671
- let b = c && c.headers ? c.headers : {};
1672
- return i.headers = { ...p, ...b, ...n.headers }, {
1673
- 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),
1674
1683
  options: i
1675
1684
  };
1676
1685
  },
@@ -1684,22 +1693,22 @@ const te = function(l) {
1684
1693
  * @param {*} [options] Override http request option.
1685
1694
  * @throws {RequiredError}
1686
1695
  */
1687
- materializationAction: async (r, e, t, a, n = {}) => {
1688
- d("materializationAction", "environmentName", r), d("materializationAction", "packageName", e), d("materializationAction", "materializationId", t), d("materializationAction", "action", a);
1689
- 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);
1690
1699
  let c;
1691
1700
  l && (c = l.baseOptions);
1692
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1693
- a !== void 0 && (m.action = a), g(s, m);
1694
- let b = c && c.headers ? c.headers : {};
1695
- return i.headers = { ...p, ...b, ...n.headers }, {
1696
- 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),
1697
1706
  options: i
1698
1707
  };
1699
1708
  }
1700
1709
  };
1701
- }, N = function(l) {
1702
- const r = te(l);
1710
+ }, T = function(l) {
1711
+ const t = Oe(l);
1703
1712
  return {
1704
1713
  /**
1705
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.
@@ -1710,9 +1719,9 @@ const te = function(l) {
1710
1719
  * @param {*} [options] Override http request option.
1711
1720
  * @throws {RequiredError}
1712
1721
  */
1713
- async createMaterialization(e, t, a, n) {
1714
- const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
1715
- 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);
1716
1725
  },
1717
1726
  /**
1718
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.
@@ -1724,9 +1733,9 @@ const te = function(l) {
1724
1733
  * @param {*} [options] Override http request option.
1725
1734
  * @throws {RequiredError}
1726
1735
  */
1727
- async deleteMaterialization(e, t, a, n, o) {
1728
- const s = await r.deleteMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
1729
- 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);
1730
1739
  },
1731
1740
  /**
1732
1741
  *
@@ -1737,9 +1746,9 @@ const te = function(l) {
1737
1746
  * @param {*} [options] Override http request option.
1738
1747
  * @throws {RequiredError}
1739
1748
  */
1740
- async getMaterialization(e, t, a, n) {
1741
- const o = await r.getMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
1742
- 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);
1743
1752
  },
1744
1753
  /**
1745
1754
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1751,9 +1760,9 @@ const te = function(l) {
1751
1760
  * @param {*} [options] Override http request option.
1752
1761
  * @throws {RequiredError}
1753
1762
  */
1754
- async listMaterializations(e, t, a, n, o) {
1755
- const s = await r.listMaterializations(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
1756
- 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);
1757
1766
  },
1758
1767
  /**
1759
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.
@@ -1765,13 +1774,13 @@ const te = function(l) {
1765
1774
  * @param {*} [options] Override http request option.
1766
1775
  * @throws {RequiredError}
1767
1776
  */
1768
- async materializationAction(e, t, a, n, o) {
1769
- const s = await r.materializationAction(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
1770
- 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);
1771
1780
  }
1772
1781
  };
1773
- }, Ge = function(l, r, e) {
1774
- const t = N(l);
1782
+ }, ya = function(l, t, e) {
1783
+ const n = T(l);
1775
1784
  return {
1776
1785
  /**
1777
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.
@@ -1782,8 +1791,8 @@ const te = function(l) {
1782
1791
  * @param {*} [options] Override http request option.
1783
1792
  * @throws {RequiredError}
1784
1793
  */
1785
- createMaterialization(a, n, o, s) {
1786
- 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));
1787
1796
  },
1788
1797
  /**
1789
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.
@@ -1795,8 +1804,8 @@ const te = function(l) {
1795
1804
  * @param {*} [options] Override http request option.
1796
1805
  * @throws {RequiredError}
1797
1806
  */
1798
- deleteMaterialization(a, n, o, s, c) {
1799
- 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));
1800
1809
  },
1801
1810
  /**
1802
1811
  *
@@ -1807,8 +1816,8 @@ const te = function(l) {
1807
1816
  * @param {*} [options] Override http request option.
1808
1817
  * @throws {RequiredError}
1809
1818
  */
1810
- getMaterialization(a, n, o, s) {
1811
- 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));
1812
1821
  },
1813
1822
  /**
1814
1823
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1820,8 +1829,8 @@ const te = function(l) {
1820
1829
  * @param {*} [options] Override http request option.
1821
1830
  * @throws {RequiredError}
1822
1831
  */
1823
- listMaterializations(a, n, o, s, c) {
1824
- 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));
1825
1834
  },
1826
1835
  /**
1827
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.
@@ -1833,12 +1842,12 @@ const te = function(l) {
1833
1842
  * @param {*} [options] Override http request option.
1834
1843
  * @throws {RequiredError}
1835
1844
  */
1836
- materializationAction(a, n, o, s, c) {
1837
- 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));
1838
1847
  }
1839
1848
  };
1840
1849
  };
1841
- class ne extends y {
1850
+ class Se extends I {
1842
1851
  /**
1843
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.
1844
1853
  * @summary Create a materialization
@@ -1849,8 +1858,8 @@ class ne extends y {
1849
1858
  * @throws {RequiredError}
1850
1859
  * @memberof MaterializationsApi
1851
1860
  */
1852
- createMaterialization(r, e, t, a) {
1853
- 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));
1854
1863
  }
1855
1864
  /**
1856
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.
@@ -1863,8 +1872,8 @@ class ne extends y {
1863
1872
  * @throws {RequiredError}
1864
1873
  * @memberof MaterializationsApi
1865
1874
  */
1866
- deleteMaterialization(r, e, t, a, n) {
1867
- 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));
1868
1877
  }
1869
1878
  /**
1870
1879
  *
@@ -1876,8 +1885,8 @@ class ne extends y {
1876
1885
  * @throws {RequiredError}
1877
1886
  * @memberof MaterializationsApi
1878
1887
  */
1879
- getMaterialization(r, e, t, a) {
1880
- 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));
1881
1890
  }
1882
1891
  /**
1883
1892
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1890,8 +1899,8 @@ class ne extends y {
1890
1899
  * @throws {RequiredError}
1891
1900
  * @memberof MaterializationsApi
1892
1901
  */
1893
- listMaterializations(r, e, t, a, n) {
1894
- 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));
1895
1904
  }
1896
1905
  /**
1897
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.
@@ -1904,13 +1913,13 @@ class ne extends y {
1904
1913
  * @throws {RequiredError}
1905
1914
  * @memberof MaterializationsApi
1906
1915
  */
1907
- materializationAction(r, e, t, a, n) {
1908
- 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));
1909
1918
  }
1910
1919
  }
1911
- const _e = {
1920
+ const Ca = {
1912
1921
  Stop: "stop"
1913
- }, re = function(l) {
1922
+ }, ke = function(l) {
1914
1923
  return {
1915
1924
  /**
1916
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.
@@ -1922,16 +1931,16 @@ const _e = {
1922
1931
  * @param {*} [options] Override http request option.
1923
1932
  * @throws {RequiredError}
1924
1933
  */
1925
- compileModelSource: async (r, e, t, a, n = {}) => {
1926
- d("compileModelSource", "environmentName", r), d("compileModelSource", "packageName", e), d("compileModelSource", "path", t), d("compileModelSource", "compileRequest", a);
1927
- 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);
1928
1937
  let c;
1929
1938
  l && (c = l.baseOptions);
1930
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1931
- p["Content-Type"] = "application/json", g(s, m);
1932
- let b = c && c.headers ? c.headers : {};
1933
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
1934
- 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),
1935
1944
  options: i
1936
1945
  };
1937
1946
  },
@@ -1945,16 +1954,16 @@ const _e = {
1945
1954
  * @param {*} [options] Override http request option.
1946
1955
  * @throws {RequiredError}
1947
1956
  */
1948
- executeQueryModel: async (r, e, t, a, n = {}) => {
1949
- d("executeQueryModel", "environmentName", r), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", t), d("executeQueryModel", "queryRequest", a);
1950
- 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);
1951
1960
  let c;
1952
1961
  l && (c = l.baseOptions);
1953
- const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1954
- p["Content-Type"] = "application/json", g(s, m);
1955
- let b = c && c.headers ? c.headers : {};
1956
- return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
1957
- 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),
1958
1967
  options: i
1959
1968
  };
1960
1969
  },
@@ -1968,16 +1977,16 @@ const _e = {
1968
1977
  * @param {*} [options] Override http request option.
1969
1978
  * @throws {RequiredError}
1970
1979
  */
1971
- getModel: async (r, e, t, a, n = {}) => {
1972
- d("getModel", "environmentName", r), d("getModel", "packageName", e), d("getModel", "path", t);
1973
- 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);
1974
1983
  let c;
1975
1984
  l && (c = l.baseOptions);
1976
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
1977
- a !== void 0 && (m.versionId = a), g(s, m);
1978
- let b = c && c.headers ? c.headers : {};
1979
- return i.headers = { ...p, ...b, ...n.headers }, {
1980
- 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),
1981
1990
  options: i
1982
1991
  };
1983
1992
  },
@@ -1990,22 +1999,22 @@ const _e = {
1990
1999
  * @param {*} [options] Override http request option.
1991
2000
  * @throws {RequiredError}
1992
2001
  */
1993
- listModels: async (r, e, t, a = {}) => {
1994
- d("listModels", "environmentName", r), d("listModels", "packageName", e);
1995
- 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);
1996
2005
  let s;
1997
2006
  l && (s = l.baseOptions);
1998
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1999
- 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);
2000
2009
  let m = s && s.headers ? s.headers : {};
2001
2010
  return c.headers = { ...i, ...m, ...a.headers }, {
2002
- url: v(o),
2011
+ url: V(o),
2003
2012
  options: c
2004
2013
  };
2005
2014
  }
2006
2015
  };
2007
- }, U = function(l) {
2008
- const r = re(l);
2016
+ }, w = function(l) {
2017
+ const t = ke(l);
2009
2018
  return {
2010
2019
  /**
2011
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.
@@ -2017,9 +2026,9 @@ const _e = {
2017
2026
  * @param {*} [options] Override http request option.
2018
2027
  * @throws {RequiredError}
2019
2028
  */
2020
- async compileModelSource(e, t, a, n, o) {
2021
- const s = await r.compileModelSource(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2022
- 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);
2023
2032
  },
2024
2033
  /**
2025
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.
@@ -2031,9 +2040,9 @@ const _e = {
2031
2040
  * @param {*} [options] Override http request option.
2032
2041
  * @throws {RequiredError}
2033
2042
  */
2034
- async executeQueryModel(e, t, a, n, o) {
2035
- const s = await r.executeQueryModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2036
- 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);
2037
2046
  },
2038
2047
  /**
2039
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.
@@ -2045,9 +2054,9 @@ const _e = {
2045
2054
  * @param {*} [options] Override http request option.
2046
2055
  * @throws {RequiredError}
2047
2056
  */
2048
- async getModel(e, t, a, n, o) {
2049
- const s = await r.getModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2050
- 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);
2051
2060
  },
2052
2061
  /**
2053
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.
@@ -2058,13 +2067,13 @@ const _e = {
2058
2067
  * @param {*} [options] Override http request option.
2059
2068
  * @throws {RequiredError}
2060
2069
  */
2061
- async listModels(e, t, a, n) {
2062
- const o = await r.listModels(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
2063
- 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);
2064
2073
  }
2065
2074
  };
2066
- }, Ye = function(l, r, e) {
2067
- const t = U(l);
2075
+ }, Ia = function(l, t, e) {
2076
+ const n = w(l);
2068
2077
  return {
2069
2078
  /**
2070
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.
@@ -2076,8 +2085,8 @@ const _e = {
2076
2085
  * @param {*} [options] Override http request option.
2077
2086
  * @throws {RequiredError}
2078
2087
  */
2079
- compileModelSource(a, n, o, s, c) {
2080
- 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));
2081
2090
  },
2082
2091
  /**
2083
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.
@@ -2089,8 +2098,8 @@ const _e = {
2089
2098
  * @param {*} [options] Override http request option.
2090
2099
  * @throws {RequiredError}
2091
2100
  */
2092
- executeQueryModel(a, n, o, s, c) {
2093
- 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));
2094
2103
  },
2095
2104
  /**
2096
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.
@@ -2102,8 +2111,8 @@ const _e = {
2102
2111
  * @param {*} [options] Override http request option.
2103
2112
  * @throws {RequiredError}
2104
2113
  */
2105
- getModel(a, n, o, s, c) {
2106
- 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));
2107
2116
  },
2108
2117
  /**
2109
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.
@@ -2114,12 +2123,12 @@ const _e = {
2114
2123
  * @param {*} [options] Override http request option.
2115
2124
  * @throws {RequiredError}
2116
2125
  */
2117
- listModels(a, n, o, s) {
2118
- 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));
2119
2128
  }
2120
2129
  };
2121
2130
  };
2122
- class oe extends y {
2131
+ class ye extends I {
2123
2132
  /**
2124
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.
2125
2134
  * @summary Compile Malloy source code
@@ -2131,8 +2140,8 @@ class oe extends y {
2131
2140
  * @throws {RequiredError}
2132
2141
  * @memberof ModelsApi
2133
2142
  */
2134
- compileModelSource(r, e, t, a, n) {
2135
- 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));
2136
2145
  }
2137
2146
  /**
2138
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.
@@ -2145,8 +2154,8 @@ class oe extends y {
2145
2154
  * @throws {RequiredError}
2146
2155
  * @memberof ModelsApi
2147
2156
  */
2148
- executeQueryModel(r, e, t, a, n) {
2149
- 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));
2150
2159
  }
2151
2160
  /**
2152
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.
@@ -2159,8 +2168,8 @@ class oe extends y {
2159
2168
  * @throws {RequiredError}
2160
2169
  * @memberof ModelsApi
2161
2170
  */
2162
- getModel(r, e, t, a, n) {
2163
- 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));
2164
2173
  }
2165
2174
  /**
2166
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.
@@ -2172,11 +2181,11 @@ class oe extends y {
2172
2181
  * @throws {RequiredError}
2173
2182
  * @memberof ModelsApi
2174
2183
  */
2175
- listModels(r, e, t, a) {
2176
- 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));
2177
2186
  }
2178
2187
  }
2179
- const se = function(l) {
2188
+ const Ce = function(l) {
2180
2189
  return {
2181
2190
  /**
2182
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.
@@ -2192,17 +2201,17 @@ const se = function(l) {
2192
2201
  * @param {*} [options] Override http request option.
2193
2202
  * @throws {RequiredError}
2194
2203
  */
2195
- executeNotebookCell: async (r, e, t, a, n, o, s, c, i = {}) => {
2196
- d("executeNotebookCell", "environmentName", r), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", t), d("executeNotebookCell", "cellIndex", a);
2197
- 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);
2198
- let b;
2199
- l && (b = l.baseOptions);
2200
- const I = { method: "GET", ...b, ...i }, w = {}, C = {};
2201
- 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);
2202
- let A = b && b.headers ? b.headers : {};
2203
- return I.headers = { ...w, ...A, ...i.headers }, {
2204
- url: v(m),
2205
- options: I
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
2206
2215
  };
2207
2216
  },
2208
2217
  /**
@@ -2215,16 +2224,16 @@ const se = function(l) {
2215
2224
  * @param {*} [options] Override http request option.
2216
2225
  * @throws {RequiredError}
2217
2226
  */
2218
- getNotebook: async (r, e, t, a, n = {}) => {
2219
- d("getNotebook", "environmentName", r), d("getNotebook", "packageName", e), d("getNotebook", "path", t);
2220
- 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);
2221
2230
  let c;
2222
2231
  l && (c = l.baseOptions);
2223
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
2224
- a !== void 0 && (m.versionId = a), g(s, m);
2225
- let b = c && c.headers ? c.headers : {};
2226
- return i.headers = { ...p, ...b, ...n.headers }, {
2227
- 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),
2228
2237
  options: i
2229
2238
  };
2230
2239
  },
@@ -2237,22 +2246,22 @@ const se = function(l) {
2237
2246
  * @param {*} [options] Override http request option.
2238
2247
  * @throws {RequiredError}
2239
2248
  */
2240
- listNotebooks: async (r, e, t, a = {}) => {
2241
- d("listNotebooks", "environmentName", r), d("listNotebooks", "packageName", e);
2242
- 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);
2243
2252
  let s;
2244
2253
  l && (s = l.baseOptions);
2245
- const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2246
- 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);
2247
2256
  let m = s && s.headers ? s.headers : {};
2248
2257
  return c.headers = { ...i, ...m, ...a.headers }, {
2249
- url: v(o),
2258
+ url: V(o),
2250
2259
  options: c
2251
2260
  };
2252
2261
  }
2253
2262
  };
2254
- }, E = function(l) {
2255
- const r = se(l);
2263
+ }, F = function(l) {
2264
+ const t = Ce(l);
2256
2265
  return {
2257
2266
  /**
2258
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.
@@ -2268,9 +2277,9 @@ const se = function(l) {
2268
2277
  * @param {*} [options] Override http request option.
2269
2278
  * @throws {RequiredError}
2270
2279
  */
2271
- async executeNotebookCell(e, t, a, n, o, s, c, i, p) {
2272
- const m = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), b = l?.serverIndex ?? 0, I = P["NotebooksApi.executeNotebookCell"]?.[b]?.url;
2273
- return (w, C) => O(m, h, u, l)(w, I || 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);
2274
2283
  },
2275
2284
  /**
2276
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.
@@ -2282,9 +2291,9 @@ const se = function(l) {
2282
2291
  * @param {*} [options] Override http request option.
2283
2292
  * @throws {RequiredError}
2284
2293
  */
2285
- async getNotebook(e, t, a, n, o) {
2286
- const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2287
- 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);
2288
2297
  },
2289
2298
  /**
2290
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.
@@ -2295,13 +2304,13 @@ const se = function(l) {
2295
2304
  * @param {*} [options] Override http request option.
2296
2305
  * @throws {RequiredError}
2297
2306
  */
2298
- async listNotebooks(e, t, a, n) {
2299
- const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2300
- 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);
2301
2310
  }
2302
2311
  };
2303
- }, Je = function(l, r, e) {
2304
- const t = E(l);
2312
+ }, xa = function(l, t, e) {
2313
+ const n = F(l);
2305
2314
  return {
2306
2315
  /**
2307
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.
@@ -2317,8 +2326,8 @@ const se = function(l) {
2317
2326
  * @param {*} [options] Override http request option.
2318
2327
  * @throws {RequiredError}
2319
2328
  */
2320
- executeNotebookCell(a, n, o, s, c, i, p, m, b) {
2321
- return t.executeNotebookCell(a, n, o, s, c, i, p, m, b).then((I) => I(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));
2322
2331
  },
2323
2332
  /**
2324
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.
@@ -2330,8 +2339,8 @@ const se = function(l) {
2330
2339
  * @param {*} [options] Override http request option.
2331
2340
  * @throws {RequiredError}
2332
2341
  */
2333
- getNotebook(a, n, o, s, c) {
2334
- 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));
2335
2344
  },
2336
2345
  /**
2337
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.
@@ -2342,12 +2351,12 @@ const se = function(l) {
2342
2351
  * @param {*} [options] Override http request option.
2343
2352
  * @throws {RequiredError}
2344
2353
  */
2345
- listNotebooks(a, n, o, s) {
2346
- 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));
2347
2356
  }
2348
2357
  };
2349
2358
  };
2350
- class ce extends y {
2359
+ class Ie extends I {
2351
2360
  /**
2352
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.
2353
2362
  * @summary Execute a specific notebook cell
@@ -2363,8 +2372,8 @@ class ce extends y {
2363
2372
  * @throws {RequiredError}
2364
2373
  * @memberof NotebooksApi
2365
2374
  */
2366
- executeNotebookCell(r, e, t, a, n, o, s, c, i) {
2367
- 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));
2368
2377
  }
2369
2378
  /**
2370
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.
@@ -2377,8 +2386,8 @@ class ce extends y {
2377
2386
  * @throws {RequiredError}
2378
2387
  * @memberof NotebooksApi
2379
2388
  */
2380
- getNotebook(r, e, t, a, n) {
2381
- 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));
2382
2391
  }
2383
2392
  /**
2384
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.
@@ -2390,14 +2399,14 @@ class ce extends y {
2390
2399
  * @throws {RequiredError}
2391
2400
  * @memberof NotebooksApi
2392
2401
  */
2393
- listNotebooks(r, e, t, a) {
2394
- 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));
2395
2404
  }
2396
2405
  }
2397
- const Ke = {
2406
+ const Aa = {
2398
2407
  True: "true",
2399
2408
  False: "false"
2400
- }, le = function(l) {
2409
+ }, xe = function(l) {
2401
2410
  return {
2402
2411
  /**
2403
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.
@@ -2407,16 +2416,16 @@ const Ke = {
2407
2416
  * @param {*} [options] Override http request option.
2408
2417
  * @throws {RequiredError}
2409
2418
  */
2410
- createPackage: async (r, e, t = {}) => {
2411
- d("createPackage", "environmentName", r), d("createPackage", "_package", e);
2412
- 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);
2413
2422
  let o;
2414
2423
  l && (o = l.baseOptions);
2415
- const s = { method: "POST", ...o, ...t }, c = {}, i = {};
2416
- c["Content-Type"] = "application/json", g(n, i);
2417
- let p = o && o.headers ? o.headers : {};
2418
- return s.headers = { ...c, ...p, ...t.headers }, s.data = k(e, s, l), {
2419
- 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),
2420
2429
  options: s
2421
2430
  };
2422
2431
  },
@@ -2428,16 +2437,16 @@ const Ke = {
2428
2437
  * @param {*} [options] Override http request option.
2429
2438
  * @throws {RequiredError}
2430
2439
  */
2431
- deletePackage: async (r, e, t = {}) => {
2432
- d("deletePackage", "environmentName", r), d("deletePackage", "packageName", e);
2433
- 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);
2434
2443
  let o;
2435
2444
  l && (o = l.baseOptions);
2436
- const s = { method: "DELETE", ...o, ...t }, c = {};
2437
- g(n, {});
2438
- let p = o && o.headers ? o.headers : {};
2439
- return s.headers = { ...c, ...p, ...t.headers }, {
2440
- 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),
2441
2450
  options: s
2442
2451
  };
2443
2452
  },
@@ -2451,16 +2460,16 @@ const Ke = {
2451
2460
  * @param {*} [options] Override http request option.
2452
2461
  * @throws {RequiredError}
2453
2462
  */
2454
- getPackage: async (r, e, t, a, n = {}) => {
2455
- d("getPackage", "environmentName", r), d("getPackage", "packageName", e);
2456
- 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);
2457
2466
  let c;
2458
2467
  l && (c = l.baseOptions);
2459
- const i = { method: "GET", ...c, ...n }, p = {}, m = {};
2460
- t !== void 0 && (m.versionId = t), a !== void 0 && (m.reload = a), g(s, m);
2461
- let b = c && c.headers ? c.headers : {};
2462
- return i.headers = { ...p, ...b, ...n.headers }, {
2463
- 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),
2464
2473
  options: i
2465
2474
  };
2466
2475
  },
@@ -2471,16 +2480,16 @@ const Ke = {
2471
2480
  * @param {*} [options] Override http request option.
2472
2481
  * @throws {RequiredError}
2473
2482
  */
2474
- listPackages: async (r, e = {}) => {
2475
- d("listPackages", "environmentName", r);
2476
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
2477
- let n;
2478
- l && (n = l.baseOptions);
2479
- const o = { method: "GET", ...n, ...e }, s = {};
2480
- g(a, {});
2481
- 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 : {};
2482
2491
  return o.headers = { ...s, ...i, ...e.headers }, {
2483
- url: v(a),
2492
+ url: V(a),
2484
2493
  options: o
2485
2494
  };
2486
2495
  },
@@ -2493,22 +2502,22 @@ const Ke = {
2493
2502
  * @param {*} [options] Override http request option.
2494
2503
  * @throws {RequiredError}
2495
2504
  */
2496
- updatePackage: async (r, e, t, a = {}) => {
2497
- d("updatePackage", "environmentName", r), d("updatePackage", "packageName", e), d("updatePackage", "_package", t);
2498
- 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);
2499
2508
  let s;
2500
2509
  l && (s = l.baseOptions);
2501
- const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
2502
- 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);
2503
2512
  let m = s && s.headers ? s.headers : {};
2504
- return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
2505
- url: v(o),
2513
+ return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
2514
+ url: V(o),
2506
2515
  options: c
2507
2516
  };
2508
2517
  }
2509
2518
  };
2510
- }, R = function(l) {
2511
- const r = le(l);
2519
+ }, U = function(l) {
2520
+ const t = xe(l);
2512
2521
  return {
2513
2522
  /**
2514
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.
@@ -2518,9 +2527,9 @@ const Ke = {
2518
2527
  * @param {*} [options] Override http request option.
2519
2528
  * @throws {RequiredError}
2520
2529
  */
2521
- async createPackage(e, t, a) {
2522
- const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
2523
- 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);
2524
2533
  },
2525
2534
  /**
2526
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.
@@ -2530,9 +2539,9 @@ const Ke = {
2530
2539
  * @param {*} [options] Override http request option.
2531
2540
  * @throws {RequiredError}
2532
2541
  */
2533
- async deletePackage(e, t, a) {
2534
- const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
2535
- 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);
2536
2545
  },
2537
2546
  /**
2538
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.
@@ -2544,9 +2553,9 @@ const Ke = {
2544
2553
  * @param {*} [options] Override http request option.
2545
2554
  * @throws {RequiredError}
2546
2555
  */
2547
- async getPackage(e, t, a, n, o) {
2548
- const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
2549
- 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);
2550
2559
  },
2551
2560
  /**
2552
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.
@@ -2555,9 +2564,9 @@ const Ke = {
2555
2564
  * @param {*} [options] Override http request option.
2556
2565
  * @throws {RequiredError}
2557
2566
  */
2558
- async listPackages(e, t) {
2559
- const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[n]?.url;
2560
- 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);
2561
2570
  },
2562
2571
  /**
2563
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.
@@ -2568,13 +2577,13 @@ const Ke = {
2568
2577
  * @param {*} [options] Override http request option.
2569
2578
  * @throws {RequiredError}
2570
2579
  */
2571
- async updatePackage(e, t, a, n) {
2572
- const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
2573
- 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);
2574
2583
  }
2575
2584
  };
2576
- }, Xe = function(l, r, e) {
2577
- const t = R(l);
2585
+ }, Ra = function(l, t, e) {
2586
+ const n = U(l);
2578
2587
  return {
2579
2588
  /**
2580
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.
@@ -2584,8 +2593,8 @@ const Ke = {
2584
2593
  * @param {*} [options] Override http request option.
2585
2594
  * @throws {RequiredError}
2586
2595
  */
2587
- createPackage(a, n, o) {
2588
- 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));
2589
2598
  },
2590
2599
  /**
2591
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.
@@ -2595,8 +2604,8 @@ const Ke = {
2595
2604
  * @param {*} [options] Override http request option.
2596
2605
  * @throws {RequiredError}
2597
2606
  */
2598
- deletePackage(a, n, o) {
2599
- 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));
2600
2609
  },
2601
2610
  /**
2602
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.
@@ -2608,8 +2617,8 @@ const Ke = {
2608
2617
  * @param {*} [options] Override http request option.
2609
2618
  * @throws {RequiredError}
2610
2619
  */
2611
- getPackage(a, n, o, s, c) {
2612
- 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));
2613
2622
  },
2614
2623
  /**
2615
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.
@@ -2618,8 +2627,8 @@ const Ke = {
2618
2627
  * @param {*} [options] Override http request option.
2619
2628
  * @throws {RequiredError}
2620
2629
  */
2621
- listPackages(a, n) {
2622
- 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));
2623
2632
  },
2624
2633
  /**
2625
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.
@@ -2630,12 +2639,12 @@ const Ke = {
2630
2639
  * @param {*} [options] Override http request option.
2631
2640
  * @throws {RequiredError}
2632
2641
  */
2633
- updatePackage(a, n, o, s) {
2634
- 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));
2635
2644
  }
2636
2645
  };
2637
2646
  };
2638
- class ie extends y {
2647
+ class Ae extends I {
2639
2648
  /**
2640
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.
2641
2650
  * @summary Create a new package
@@ -2645,8 +2654,8 @@ class ie extends y {
2645
2654
  * @throws {RequiredError}
2646
2655
  * @memberof PackagesApi
2647
2656
  */
2648
- createPackage(r, e, t) {
2649
- 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));
2650
2659
  }
2651
2660
  /**
2652
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.
@@ -2657,8 +2666,8 @@ class ie extends y {
2657
2666
  * @throws {RequiredError}
2658
2667
  * @memberof PackagesApi
2659
2668
  */
2660
- deletePackage(r, e, t) {
2661
- 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));
2662
2671
  }
2663
2672
  /**
2664
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.
@@ -2671,8 +2680,8 @@ class ie extends y {
2671
2680
  * @throws {RequiredError}
2672
2681
  * @memberof PackagesApi
2673
2682
  */
2674
- getPackage(r, e, t, a, n) {
2675
- 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));
2676
2685
  }
2677
2686
  /**
2678
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.
@@ -2682,8 +2691,8 @@ class ie extends y {
2682
2691
  * @throws {RequiredError}
2683
2692
  * @memberof PackagesApi
2684
2693
  */
2685
- listPackages(r, e) {
2686
- 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));
2687
2696
  }
2688
2697
  /**
2689
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.
@@ -2695,11 +2704,11 @@ class ie extends y {
2695
2704
  * @throws {RequiredError}
2696
2705
  * @memberof PackagesApi
2697
2706
  */
2698
- updatePackage(r, e, t, a) {
2699
- 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));
2700
2709
  }
2701
2710
  }
2702
- const pe = function(l) {
2711
+ const Re = function(l) {
2703
2712
  return {
2704
2713
  /**
2705
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.
@@ -2709,22 +2718,22 @@ const pe = function(l) {
2709
2718
  * @param {*} [options] Override http request option.
2710
2719
  * @throws {RequiredError}
2711
2720
  */
2712
- listPages: async (r, e, t = {}) => {
2713
- d("listPages", "environmentName", r), d("listPages", "packageName", e);
2714
- 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);
2715
2724
  let o;
2716
2725
  l && (o = l.baseOptions);
2717
- const s = { method: "GET", ...o, ...t }, c = {};
2718
- g(n, {});
2719
- let p = o && o.headers ? o.headers : {};
2720
- return s.headers = { ...c, ...p, ...t.headers }, {
2721
- 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),
2722
2731
  options: s
2723
2732
  };
2724
2733
  }
2725
2734
  };
2726
- }, q = function(l) {
2727
- const r = pe(l);
2735
+ }, Z = function(l) {
2736
+ const t = Re(l);
2728
2737
  return {
2729
2738
  /**
2730
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.
@@ -2734,13 +2743,13 @@ const pe = function(l) {
2734
2743
  * @param {*} [options] Override http request option.
2735
2744
  * @throws {RequiredError}
2736
2745
  */
2737
- async listPages(e, t, a) {
2738
- const n = await r.listPages(e, t, a), o = l?.serverIndex ?? 0, s = P["PagesApi.listPages"]?.[o]?.url;
2739
- 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);
2740
2749
  }
2741
2750
  };
2742
- }, Ze = function(l, r, e) {
2743
- const t = q(l);
2751
+ }, Na = function(l, t, e) {
2752
+ const n = Z(l);
2744
2753
  return {
2745
2754
  /**
2746
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.
@@ -2750,12 +2759,12 @@ const pe = function(l) {
2750
2759
  * @param {*} [options] Override http request option.
2751
2760
  * @throws {RequiredError}
2752
2761
  */
2753
- listPages(a, n, o) {
2754
- 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));
2755
2764
  }
2756
2765
  };
2757
2766
  };
2758
- class de extends y {
2767
+ class Ne extends I {
2759
2768
  /**
2760
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.
2761
2770
  * @summary List package pages
@@ -2765,34 +2774,100 @@ class de extends y {
2765
2774
  * @throws {RequiredError}
2766
2775
  * @memberof PagesApi
2767
2776
  */
2768
- listPages(r, e, t) {
2769
- 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));
2770
2779
  }
2771
2780
  }
2772
- const me = function(l) {
2781
+ const Te = function(l) {
2773
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
+ },
2774
2801
  /**
2775
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.
2776
2803
  * @summary Get server status and health information
2777
2804
  * @param {*} [options] Override http request option.
2778
2805
  * @throws {RequiredError}
2779
2806
  */
2780
- getStatus: async (r = {}) => {
2781
- 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);
2782
2827
  let a;
2783
2828
  l && (a = l.baseOptions);
2784
- const n = { method: "GET", ...a, ...r }, o = {};
2785
- g(t, {});
2829
+ const r = { method: "GET", ...a, ...t }, o = {};
2830
+ b(n, {});
2786
2831
  let c = a && a.headers ? a.headers : {};
2787
- return n.headers = { ...o, ...c, ...r.headers }, {
2788
- url: v(t),
2789
- 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
2790
2855
  };
2791
2856
  }
2792
2857
  };
2793
- }, z = function(l) {
2794
- const r = me(l);
2858
+ }, E = function(l) {
2859
+ const t = Te(l);
2795
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
+ },
2796
2871
  /**
2797
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.
2798
2873
  * @summary Get server status and health information
@@ -2800,13 +2875,43 @@ const me = function(l) {
2800
2875
  * @throws {RequiredError}
2801
2876
  */
2802
2877
  async getStatus(e) {
2803
- const t = await r.getStatus(e), a = l?.serverIndex ?? 0, n = P["PublisherApi.getStatus"]?.[a]?.url;
2804
- 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);
2805
2901
  }
2806
2902
  };
2807
- }, ea = function(l, r, e) {
2808
- const t = z(l);
2903
+ }, Ta = function(l, t, e) {
2904
+ const n = E(l);
2809
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
+ },
2810
2915
  /**
2811
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.
2812
2917
  * @summary Get server status and health information
@@ -2814,11 +2919,40 @@ const me = function(l) {
2814
2919
  * @throws {RequiredError}
2815
2920
  */
2816
2921
  getStatus(a) {
2817
- 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));
2818
2942
  }
2819
2943
  };
2820
2944
  };
2821
- class he extends y {
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
+ }
2822
2956
  /**
2823
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.
2824
2958
  * @summary Get server status and health information
@@ -2826,11 +2960,32 @@ class he extends y {
2826
2960
  * @throws {RequiredError}
2827
2961
  * @memberof PublisherApi
2828
2962
  */
2829
- getStatus(r) {
2830
- 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));
2831
2986
  }
2832
2987
  }
2833
- const ue = function(l) {
2988
+ const we = function(l) {
2834
2989
  return {
2835
2990
  /**
2836
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.
@@ -2838,16 +2993,16 @@ const ue = function(l) {
2838
2993
  * @param {*} [options] Override http request option.
2839
2994
  * @throws {RequiredError}
2840
2995
  */
2841
- getWatchStatus: async (r = {}) => {
2842
- 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);
2843
2998
  let a;
2844
2999
  l && (a = l.baseOptions);
2845
- const n = { method: "GET", ...a, ...r }, o = {};
2846
- g(t, {});
3000
+ const r = { method: "GET", ...a, ...t }, o = {};
3001
+ b(n, {});
2847
3002
  let c = a && a.headers ? a.headers : {};
2848
- return n.headers = { ...o, ...c, ...r.headers }, {
2849
- url: v(t),
2850
- options: n
3003
+ return r.headers = { ...o, ...c, ...t.headers }, {
3004
+ url: V(n),
3005
+ options: r
2851
3006
  };
2852
3007
  },
2853
3008
  /**
@@ -2857,16 +3012,16 @@ const ue = function(l) {
2857
3012
  * @param {*} [options] Override http request option.
2858
3013
  * @throws {RequiredError}
2859
3014
  */
2860
- startWatching: async (r, e = {}) => {
2861
- d("startWatching", "startWatchRequest", r);
2862
- const t = "/watch-mode/start", a = new URL(t, V);
2863
- let n;
2864
- l && (n = l.baseOptions);
2865
- const o = { method: "POST", ...n, ...e }, s = {}, c = {};
2866
- s["Content-Type"] = "application/json", g(a, c);
2867
- let i = n && n.headers ? n.headers : {};
2868
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
2869
- 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),
2870
3025
  options: o
2871
3026
  };
2872
3027
  },
@@ -2876,16 +3031,16 @@ const ue = function(l) {
2876
3031
  * @param {*} [options] Override http request option.
2877
3032
  * @throws {RequiredError}
2878
3033
  */
2879
- stopWatching: async (r = {}) => {
2880
- 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);
2881
3036
  let a;
2882
3037
  l && (a = l.baseOptions);
2883
- const n = { method: "POST", ...a, ...r }, o = {};
2884
- g(t, {});
3038
+ const r = { method: "POST", ...a, ...t }, o = {};
3039
+ b(n, {});
2885
3040
  let c = a && a.headers ? a.headers : {};
2886
- return n.headers = { ...o, ...c, ...r.headers }, {
2887
- url: v(t),
2888
- options: n
3041
+ return r.headers = { ...o, ...c, ...t.headers }, {
3042
+ url: V(n),
3043
+ options: r
2889
3044
  };
2890
3045
  },
2891
3046
  /**
@@ -2896,22 +3051,22 @@ const ue = function(l) {
2896
3051
  * @param {*} [options] Override http request option.
2897
3052
  * @throws {RequiredError}
2898
3053
  */
2899
- streamPackageEvents: async (r, e, t = {}) => {
2900
- d("streamPackageEvents", "environmentName", r), d("streamPackageEvents", "packageName", e);
2901
- 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);
2902
3057
  let o;
2903
3058
  l && (o = l.baseOptions);
2904
- const s = { method: "GET", ...o, ...t }, c = {};
2905
- g(n, {});
2906
- let p = o && o.headers ? o.headers : {};
2907
- return s.headers = { ...c, ...p, ...t.headers }, {
2908
- 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),
2909
3064
  options: s
2910
3065
  };
2911
3066
  }
2912
3067
  };
2913
- }, T = function(l) {
2914
- const r = ue(l);
3068
+ }, M = function(l) {
3069
+ const t = we(l);
2915
3070
  return {
2916
3071
  /**
2917
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.
@@ -2920,8 +3075,8 @@ const ue = function(l) {
2920
3075
  * @throws {RequiredError}
2921
3076
  */
2922
3077
  async getWatchStatus(e) {
2923
- const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
2924
- 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);
2925
3080
  },
2926
3081
  /**
2927
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.
@@ -2930,9 +3085,9 @@ const ue = function(l) {
2930
3085
  * @param {*} [options] Override http request option.
2931
3086
  * @throws {RequiredError}
2932
3087
  */
2933
- async startWatching(e, t) {
2934
- const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[n]?.url;
2935
- 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);
2936
3091
  },
2937
3092
  /**
2938
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.
@@ -2941,8 +3096,8 @@ const ue = function(l) {
2941
3096
  * @throws {RequiredError}
2942
3097
  */
2943
3098
  async stopWatching(e) {
2944
- const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.stopWatching"]?.[a]?.url;
2945
- 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);
2946
3101
  },
2947
3102
  /**
2948
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.
@@ -2952,13 +3107,13 @@ const ue = function(l) {
2952
3107
  * @param {*} [options] Override http request option.
2953
3108
  * @throws {RequiredError}
2954
3109
  */
2955
- async streamPackageEvents(e, t, a) {
2956
- const n = await r.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
2957
- 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);
2958
3113
  }
2959
3114
  };
2960
- }, aa = function(l, r, e) {
2961
- const t = T(l);
3115
+ }, Ua = function(l, t, e) {
3116
+ const n = M(l);
2962
3117
  return {
2963
3118
  /**
2964
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.
@@ -2967,7 +3122,7 @@ const ue = function(l) {
2967
3122
  * @throws {RequiredError}
2968
3123
  */
2969
3124
  getWatchStatus(a) {
2970
- return t.getWatchStatus(a).then((n) => n(e, r));
3125
+ return n.getWatchStatus(a).then((r) => r(e, t));
2971
3126
  },
2972
3127
  /**
2973
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.
@@ -2976,8 +3131,8 @@ const ue = function(l) {
2976
3131
  * @param {*} [options] Override http request option.
2977
3132
  * @throws {RequiredError}
2978
3133
  */
2979
- startWatching(a, n) {
2980
- 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));
2981
3136
  },
2982
3137
  /**
2983
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.
@@ -2986,7 +3141,7 @@ const ue = function(l) {
2986
3141
  * @throws {RequiredError}
2987
3142
  */
2988
3143
  stopWatching(a) {
2989
- return t.stopWatching(a).then((n) => n(e, r));
3144
+ return n.stopWatching(a).then((r) => r(e, t));
2990
3145
  },
2991
3146
  /**
2992
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.
@@ -2996,12 +3151,12 @@ const ue = function(l) {
2996
3151
  * @param {*} [options] Override http request option.
2997
3152
  * @throws {RequiredError}
2998
3153
  */
2999
- streamPackageEvents(a, n, o) {
3000
- 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));
3001
3156
  }
3002
3157
  };
3003
3158
  };
3004
- class Pe extends y {
3159
+ class Ee extends I {
3005
3160
  /**
3006
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.
3007
3162
  * @summary Get watch mode status
@@ -3009,8 +3164,8 @@ class Pe extends y {
3009
3164
  * @throws {RequiredError}
3010
3165
  * @memberof WatchModeApi
3011
3166
  */
3012
- getWatchStatus(r) {
3013
- 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));
3014
3169
  }
3015
3170
  /**
3016
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.
@@ -3020,8 +3175,8 @@ class Pe extends y {
3020
3175
  * @throws {RequiredError}
3021
3176
  * @memberof WatchModeApi
3022
3177
  */
3023
- startWatching(r, e) {
3024
- 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));
3025
3180
  }
3026
3181
  /**
3027
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.
@@ -3030,8 +3185,8 @@ class Pe extends y {
3030
3185
  * @throws {RequiredError}
3031
3186
  * @memberof WatchModeApi
3032
3187
  */
3033
- stopWatching(r) {
3034
- 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));
3035
3190
  }
3036
3191
  /**
3037
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.
@@ -3042,11 +3197,11 @@ class Pe extends y {
3042
3197
  * @throws {RequiredError}
3043
3198
  * @memberof WatchModeApi
3044
3199
  */
3045
- streamPackageEvents(r, e, t) {
3046
- 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));
3047
3202
  }
3048
3203
  }
3049
- class Ve {
3204
+ class Me {
3050
3205
  /**
3051
3206
  * parameter for apiKey security
3052
3207
  * @param name security name
@@ -3103,13 +3258,13 @@ class Ve {
3103
3258
  * @type {new () => FormData}
3104
3259
  */
3105
3260
  formDataCtor;
3106
- constructor(r = {}) {
3107
- 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 = {
3108
- ...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,
3109
3264
  headers: {
3110
- ...r.baseOptions?.headers
3265
+ ...t.baseOptions?.headers
3111
3266
  }
3112
- }, this.formDataCtor = r.formDataCtor;
3267
+ }, this.formDataCtor = t.formDataCtor;
3113
3268
  }
3114
3269
  /**
3115
3270
  * Check if the given MIME is a JSON MIME.
@@ -3121,12 +3276,299 @@ class Ve {
3121
3276
  * @param mime - MIME (Multipurpose Internet Mail Extensions)
3122
3277
  * @return True if the given MIME is JSON, false otherwise.
3123
3278
  */
3124
- isJsonMime(r) {
3279
+ isJsonMime(t) {
3125
3280
  const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
3126
- 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");
3127
3282
  }
3128
3283
  }
3129
- 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({
3130
3572
  defaultOptions: {
3131
3573
  queries: {
3132
3574
  retry: !1,
@@ -3137,144 +3579,202 @@ const ge = new L({
3137
3579
  throwOnError: !1
3138
3580
  }
3139
3581
  }
3140
- });
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
+ }
3141
3601
  h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3142
- const j = W(void 0), ve = (l, r) => {
3143
- 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({
3144
3604
  baseURL: l || e,
3145
3605
  withCredentials: !0,
3146
3606
  timeout: 6e5
3147
3607
  });
3148
- t.interceptors.request.use(async (n) => {
3149
- const o = await r?.();
3150
- 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;
3151
3611
  });
3152
- const a = new Ve({ basePath: e });
3612
+ const a = new Me({ basePath: e });
3153
3613
  return {
3154
- models: new oe(a, e, t),
3155
- publisher: new he(a, e, t),
3156
- environments: new ae(a, e, t),
3157
- packages: new ie(a, e, t),
3158
- pages: new de(a, e, t),
3159
- notebooks: new ce(a, e, t),
3160
- connections: new J(a, e, t),
3161
- databases: new Z(a, e, t),
3162
- 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(
3163
3623
  a,
3164
3624
  e,
3165
- t
3625
+ n
3166
3626
  ),
3167
- watchMode: new Pe(a, e, t)
3627
+ watchMode: new Ee(a, e, n)
3168
3628
  };
3169
- }, ta = ({
3629
+ }, Wa = (l) => /* @__PURE__ */ Q(le, { client: ze, children: /* @__PURE__ */ Q(De, { ...l }) }), De = ({
3170
3630
  children: l,
3171
- getAccessToken: r,
3631
+ getAccessToken: t,
3172
3632
  baseURL: e,
3173
- mutable: t
3633
+ mutable: n
3174
3634
  }) => {
3175
3635
  const a = f(
3176
- () => ve(e, r),
3177
- [e, r]
3178
- ), n = e || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = $(t), [c, i] = $(!0);
3179
- G(() => {
3180
- let m = !0;
3181
- return (async () => {
3182
- try {
3183
- const I = await a.publisher.getStatus();
3184
- if (m) {
3185
- const C = I.data?.frozenConfig;
3186
- let A;
3187
- C ? A = !1 : t === void 0 ? A = !0 : A = t, s(A), i(!1);
3188
- }
3189
- } catch (I) {
3190
- console.error("Failed to fetch publisher status:", I), m && (s(t), i(!1));
3191
- }
3192
- })(), () => {
3193
- m = !1;
3194
- };
3195
- }, [a, t]);
3196
- const p = {
3197
- server: n,
3198
- 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,
3199
3666
  apiClients: a,
3200
- mutable: o,
3201
- isLoadingStatus: c
3667
+ mutable: d,
3668
+ isLoadingStatus: i,
3669
+ instanceTheme: c
3202
3670
  };
3203
- return /* @__PURE__ */ Q(H, { client: ge, children: /* @__PURE__ */ Q(j.Provider, { value: p, children: l }) });
3204
- }, na = () => {
3205
- 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);
3206
3684
  if (l === void 0)
3207
3685
  throw new Error("useServer must be used within a ServerProvider");
3208
3686
  return l;
3209
3687
  };
3210
3688
  export {
3211
- R as $,
3212
- Ie as A,
3213
- ae as B,
3214
- Ce as C,
3215
- Ue as D,
3216
- ee as E,
3217
- Te as F,
3218
- te as G,
3219
- N as H,
3220
- Ge as I,
3221
- ne as J,
3222
- _e as K,
3223
- we as L,
3224
- Ee as M,
3225
- Me as N,
3226
- re as O,
3227
- $e as P,
3228
- U as Q,
3229
- ze as R,
3230
- ta as S,
3231
- Ye as T,
3232
- oe as U,
3233
- se as V,
3234
- E as W,
3235
- Je as X,
3236
- ce as Y,
3237
- Ke as Z,
3238
- le as _,
3239
- ye as a,
3240
- Xe as a0,
3241
- ie as a1,
3242
- pe as a2,
3243
- q as a3,
3244
- Ze as a4,
3245
- de as a5,
3246
- me as a6,
3247
- z as a7,
3248
- ea as a8,
3249
- he as a9,
3250
- ue as aa,
3251
- T as ab,
3252
- aa as ac,
3253
- Pe as ad,
3254
- Ve as ae,
3255
- Ae as b,
3256
- xe as c,
3257
- Ne as d,
3258
- Re as e,
3259
- Qe as f,
3260
- ge as g,
3261
- Be as h,
3262
- Fe as i,
3263
- qe as j,
3264
- je as k,
3265
- Y as l,
3266
- S as m,
3267
- Le as n,
3268
- J as o,
3269
- K as p,
3270
- B as q,
3271
- He as r,
3272
- De as s,
3273
- X as t,
3274
- na as u,
3275
- F as v,
3276
- We as w,
3277
- Z as x,
3278
- x as y,
3279
- fe as z
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,
3767
+ S as n,
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
3280
3780
  };