@malloy-publisher/sdk 0.8.4 → 0.8.5

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.
@@ -1,64 +1,66 @@
1
- import { jsx as F } from "react/jsx-runtime";
2
- import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
1
+ import { jsx as B } from "react/jsx-runtime";
2
+ import { QueryClient as se, QueryClientProvider as ce, useQuery as le } from "@tanstack/react-query";
3
3
  import u from "axios";
4
- import { useMemo as B, useContext as G, createContext as Y, useState as _, useEffect as ie, useCallback as de } from "react";
5
- import { styled as x, Card as pe, CardContent as me, CardMedia as he } from "@mui/material";
4
+ import { useMemo as j, useContext as Y, createContext as $, useState as W, useEffect as ie, useCallback as pe } from "react";
5
+ import { styled as x, Card as de, CardContent as he, CardMedia as me } from "@mui/material";
6
6
  const g = "http://localhost/api/v0".replace(/\/+$/, "");
7
- class I {
8
- constructor(n, e = g, r = u) {
9
- this.basePath = e, this.axios = r, n && (this.configuration = n, this.basePath = n.basePath ?? e);
7
+ class C {
8
+ constructor(t, e = g, r = u) {
9
+ this.basePath = e, this.axios = r, t && (this.configuration = t, this.basePath = t.basePath ?? e);
10
10
  }
11
11
  configuration;
12
12
  }
13
13
  class ue extends Error {
14
- constructor(n, e) {
15
- super(e), this.field = n, this.name = "RequiredError";
14
+ constructor(t, e) {
15
+ super(e), this.field = t, this.name = "RequiredError";
16
16
  }
17
17
  }
18
- const P = {}, b = "https://example.com", m = function(l, n, e) {
18
+ const b = {}, P = "https://example.com", h = function(l, t, e) {
19
19
  if (e == null)
20
- throw new ue(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
20
+ throw new ue(t, `Required parameter ${t} was null or undefined when calling ${l}.`);
21
21
  };
22
- function D(l, n, e = "") {
23
- n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => D(l, r, e)) : Object.keys(n).forEach(
24
- (r) => D(l, n[r], `${e}${e !== "" ? "." : ""}${r}`)
25
- ) : l.has(e) ? l.append(e, n) : l.set(e, n));
22
+ function Q(l, t, e = "") {
23
+ t != null && (typeof t == "object" ? Array.isArray(t) || t instanceof Set ? t.forEach((r) => Q(l, r, e)) : Object.keys(t).forEach(
24
+ (r) => Q(l, t[r], `${e}${e !== "" ? "." : ""}${r}`)
25
+ ) : l.has(e) ? l.append(e, t) : l.set(e, t));
26
26
  }
27
- const V = function(l, ...n) {
27
+ const v = function(l, ...t) {
28
28
  const e = new URLSearchParams(l.search);
29
- D(e, n), l.search = e.toString();
30
- }, y = function(l, n, e) {
29
+ Q(e, t), l.search = e.toString();
30
+ }, ge = function(l, t) {
31
+ return t instanceof Set ? Array.from(t) : t;
32
+ }, k = function(l, t, e) {
31
33
  const r = typeof l != "string";
32
- return (r && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
33
- }, v = function(l) {
34
+ return (r && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}, ge) : l || "";
35
+ }, V = function(l) {
34
36
  return l.pathname + l.search + l.hash;
35
- }, O = function(l, n, e, r) {
36
- return (a = n, t = e) => {
37
- const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
37
+ }, O = function(l, t, e, r) {
38
+ return (a = t, n = e) => {
39
+ const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? n) + l.url };
38
40
  return a.request(o);
39
41
  };
40
- }, aa = {
42
+ }, ta = {
41
43
  Bigquery: "bigquery",
42
44
  Snowflake: "snowflake",
43
45
  Postgres: "postgres",
44
46
  Gcs: "gcs",
45
47
  S3: "s3",
46
48
  Azure: "azure"
47
- }, ta = {
49
+ }, na = {
48
50
  ServicePrincipal: "service_principal",
49
51
  SasToken: "sas_token"
50
52
  }, ra = {
51
53
  Error: "error",
52
54
  Warn: "warn",
53
55
  Debug: "debug"
54
- }, na = {
56
+ }, oa = {
55
57
  Append: "append",
56
58
  File: "file",
57
59
  Package: "package"
58
- }, oa = {
60
+ }, sa = {
59
61
  Success: "success",
60
62
  Error: "error"
61
- }, sa = {
63
+ }, ca = {
62
64
  Postgres: "postgres",
63
65
  Bigquery: "bigquery",
64
66
  Snowflake: "snowflake",
@@ -71,15 +73,15 @@ const V = function(l, ...n) {
71
73
  Publisher: "publisher"
72
74
  }, la = {
73
75
  Ssh: "ssh"
74
- }, ca = {
76
+ }, ia = {
75
77
  Ok: "ok",
76
78
  Failed: "failed"
77
- }, ia = {
79
+ }, pa = {
78
80
  Viewport: "viewport"
79
81
  }, da = {
80
82
  Embedded: "embedded",
81
83
  Materialized: "materialized"
82
- }, pa = {
84
+ }, ha = {
83
85
  Equal: "equal",
84
86
  In: "in",
85
87
  Like: "like",
@@ -89,13 +91,13 @@ const V = function(l, ...n) {
89
91
  Live: "live",
90
92
  StaleOk: "stale_ok",
91
93
  Fail: "fail"
92
- }, ha = {
94
+ }, ua = {
93
95
  Select: "select",
94
96
  Multiselect: "multiselect"
95
- }, ua = {
97
+ }, ga = {
96
98
  Merge: "merge",
97
99
  RangeReplace: "range_replace"
98
- }, ga = {
100
+ }, ba = {
99
101
  Debug: "debug",
100
102
  Info: "info",
101
103
  Warn: "warn",
@@ -103,7 +105,7 @@ const V = function(l, ...n) {
103
105
  }, Pa = {
104
106
  Persist: "persist",
105
107
  Preaggregate: "preaggregate"
106
- }, ba = {
108
+ }, va = {
107
109
  Live: "live",
108
110
  StaleOk: "stale_ok",
109
111
  Fail: "fail"
@@ -111,23 +113,23 @@ const V = function(l, ...n) {
111
113
  Delta: "delta",
112
114
  Full: "full",
113
115
  None: "none"
114
- }, va = {
116
+ }, Oa = {
115
117
  Pending: "PENDING",
116
118
  ManifestRowsReady: "MANIFEST_ROWS_READY",
117
119
  ManifestFileReady: "MANIFEST_FILE_READY",
118
120
  Failed: "FAILED",
119
121
  Cancelled: "CANCELLED"
120
- }, Oa = {
122
+ }, Sa = {
121
123
  Markdown: "markdown",
122
124
  Code: "code"
123
- }, Sa = {
125
+ }, ka = {
124
126
  Markdown: "markdown",
125
127
  Query: "query",
126
128
  Definition: "definition"
127
129
  }, ya = {
128
130
  Markdown: "markdown",
129
131
  Code: "code"
130
- }, ka = {
132
+ }, Aa = {
131
133
  Markdown: "markdown",
132
134
  Query: "query",
133
135
  Definition: "definition"
@@ -137,41 +139,41 @@ const V = function(l, ...n) {
137
139
  }, Ia = {
138
140
  Declared: "declared",
139
141
  All: "all"
140
- }, Aa = {
142
+ }, xa = {
141
143
  Unbound: "unbound",
142
144
  Bound: "bound",
143
145
  LiveFallback: "live_fallback"
144
- }, xa = {
146
+ }, Ra = {
145
147
  Indexing: "indexing",
146
148
  Ready: "ready",
147
149
  Cooldown: "cooldown",
148
150
  TooManyEntities: "too-many-entities"
149
- }, Ra = {
151
+ }, Na = {
150
152
  Persist: "persist",
151
153
  Preaggregate: "preaggregate"
152
- }, Na = {
154
+ }, Ta = {
153
155
  Error: "error",
154
156
  Warn: "warn"
155
- }, Ta = {
157
+ }, Ua = {
156
158
  Persist: "persist",
157
159
  Preaggregate: "preaggregate"
158
- }, Ua = {
160
+ }, wa = {
159
161
  Disable: "disable",
160
162
  NoVerify: "no-verify",
161
163
  VerifyCa: "verify-ca",
162
164
  VerifyFull: "verify-full"
163
- }, wa = {
165
+ }, Ea = {
164
166
  Interactive: "interactive",
165
167
  Materialize: "materialize",
166
168
  Index: "index",
167
169
  Ops: "ops"
168
- }, Ea = {
170
+ }, Ma = {
169
171
  Query: "query",
170
172
  ServerDefault: "server_default"
171
- }, Ma = {
173
+ }, fa = {
172
174
  Storage: "storage",
173
175
  LiveFallback: "live_fallback"
174
- }, fa = {
176
+ }, ja = {
175
177
  Malloynb: "malloynb",
176
178
  Malloy: "malloy"
177
179
  }, Ba = {
@@ -181,7 +183,7 @@ const V = function(l, ...n) {
181
183
  Storage: "storage",
182
184
  Colocated: "colocated",
183
185
  Preaggregate: "preaggregate"
184
- }, Qa = {
186
+ }, qa = {
185
187
  FreeParameter: "free_parameter",
186
188
  Given: "given",
187
189
  GivenInPersistedQuery: "given_in_persisted_query",
@@ -196,23 +198,23 @@ const V = function(l, ...n) {
196
198
  Authorize: "authorize",
197
199
  NotDuckdbPortable: "not_duckdb_portable",
198
200
  PublicSurfaceUnknown: "public_surface_unknown"
199
- }, $a = {
201
+ }, Da = {
200
202
  Publish: "publish",
201
203
  OnDemand: "on_demand",
202
204
  Scheduler: "scheduler"
203
- }, qa = {
205
+ }, Qa = {
204
206
  Config: "config",
205
207
  CredentialChain: "credential_chain"
206
- }, Da = {
208
+ }, za = {
207
209
  Initializing: "initializing",
208
210
  Serving: "serving",
209
211
  Draining: "draining",
210
212
  Throttled: "throttled"
211
- }, za = {
213
+ }, La = {
212
214
  Light: "light",
213
215
  Dark: "dark",
214
216
  Auto: "auto"
215
- }, ge = function(l) {
217
+ }, be = function(l) {
216
218
  return {
217
219
  /**
218
220
  * Creates a new database connection in the specified environment.
@@ -223,16 +225,16 @@ const V = function(l, ...n) {
223
225
  * @param {*} [options] Override http request option.
224
226
  * @throws {RequiredError}
225
227
  */
226
- createConnection: async (n, e, r, a = {}) => {
227
- m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", r);
228
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
228
+ createConnection: async (t, e, r, a = {}) => {
229
+ h("createConnection", "environmentName", t), h("createConnection", "connectionName", e), h("createConnection", "connection", r);
230
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
229
231
  let s;
230
232
  l && (s = l.baseOptions);
231
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
232
- i["Content-Type"] = "application/json", V(o, d);
233
- let p = s && s.headers ? s.headers : {};
234
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
235
- url: v(o),
233
+ const c = { method: "POST", ...s, ...a }, i = {}, p = {};
234
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
235
+ let d = s && s.headers ? s.headers : {};
236
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
237
+ url: V(o),
236
238
  options: c
237
239
  };
238
240
  },
@@ -244,16 +246,16 @@ const V = function(l, ...n) {
244
246
  * @param {*} [options] Override http request option.
245
247
  * @throws {RequiredError}
246
248
  */
247
- deleteConnection: async (n, e, r = {}) => {
248
- m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
249
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
249
+ deleteConnection: async (t, e, r = {}) => {
250
+ h("deleteConnection", "environmentName", t), h("deleteConnection", "connectionName", e);
251
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
250
252
  let o;
251
253
  l && (o = l.baseOptions);
252
- const s = { method: "DELETE", ...o, ...r }, c = {};
253
- V(t, {});
254
- let d = o && o.headers ? o.headers : {};
255
- return s.headers = { ...c, ...d, ...r.headers }, {
256
- url: v(t),
254
+ const s = { method: "DELETE", ...o, ...r }, c = {}, i = {};
255
+ c.Accept = "application/json", v(n, i);
256
+ let p = o && o.headers ? o.headers : {};
257
+ return s.headers = { ...c, ...p, ...r.headers }, {
258
+ url: V(n),
257
259
  options: s
258
260
  };
259
261
  },
@@ -265,16 +267,16 @@ const V = function(l, ...n) {
265
267
  * @param {*} [options] Override http request option.
266
268
  * @throws {RequiredError}
267
269
  */
268
- getConnection: async (n, e, r = {}) => {
269
- m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
270
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
270
+ getConnection: async (t, e, r = {}) => {
271
+ h("getConnection", "environmentName", t), h("getConnection", "connectionName", e);
272
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
271
273
  let o;
272
274
  l && (o = l.baseOptions);
273
- const s = { method: "GET", ...o, ...r }, c = {};
274
- V(t, {});
275
- let d = o && o.headers ? o.headers : {};
276
- return s.headers = { ...c, ...d, ...r.headers }, {
277
- url: v(t),
275
+ const s = { method: "GET", ...o, ...r }, c = {}, i = {};
276
+ c.Accept = "application/json", v(n, i);
277
+ let p = o && o.headers ? o.headers : {};
278
+ return s.headers = { ...c, ...p, ...r.headers }, {
279
+ url: V(n),
278
280
  options: s
279
281
  };
280
282
  },
@@ -288,16 +290,16 @@ const V = function(l, ...n) {
288
290
  * @param {*} [options] Override http request option.
289
291
  * @throws {RequiredError}
290
292
  */
291
- getTable: async (n, e, r, a, t = {}) => {
292
- m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", r), m("getTable", "tablePath", a);
293
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, b);
293
+ getTable: async (t, e, r, a, n = {}) => {
294
+ h("getTable", "environmentName", t), h("getTable", "connectionName", e), h("getTable", "schemaName", r), h("getTable", "tablePath", a);
295
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
294
296
  let c;
295
297
  l && (c = l.baseOptions);
296
- const i = { method: "GET", ...c, ...t }, d = {};
297
- V(s, {});
298
- let h = c && c.headers ? c.headers : {};
299
- return i.headers = { ...d, ...h, ...t.headers }, {
300
- url: v(s),
298
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
299
+ p.Accept = "application/json", v(s, d);
300
+ let m = c && c.headers ? c.headers : {};
301
+ return i.headers = { ...p, ...m, ...n.headers }, {
302
+ url: V(s),
301
303
  options: i
302
304
  };
303
305
  },
@@ -312,17 +314,17 @@ const V = function(l, ...n) {
312
314
  * @param {*} [options] Override http request option.
313
315
  * @throws {RequiredError}
314
316
  */
315
- getTableInPackage: async (n, e, r, a, t, o = {}) => {
316
- m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", r), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", t);
317
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, b);
317
+ getTableInPackage: async (t, e, r, a, n, o = {}) => {
318
+ h("getTableInPackage", "environmentName", t), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", r), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", n);
319
+ 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(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, P);
318
320
  let i;
319
321
  l && (i = l.baseOptions);
320
- const d = { method: "GET", ...i, ...o }, p = {};
321
- V(c, {});
322
+ const p = { method: "GET", ...i, ...o }, d = {}, m = {};
323
+ d.Accept = "application/json", v(c, m);
322
324
  let S = i && i.headers ? i.headers : {};
323
- return d.headers = { ...p, ...S, ...o.headers }, {
324
- url: v(c),
325
- options: d
325
+ return p.headers = { ...d, ...S, ...o.headers }, {
326
+ url: V(c),
327
+ options: p
326
328
  };
327
329
  },
328
330
  /**
@@ -332,16 +334,16 @@ const V = function(l, ...n) {
332
334
  * @param {*} [options] Override http request option.
333
335
  * @throws {RequiredError}
334
336
  */
335
- listConnections: async (n, e = {}) => {
336
- m("listConnections", "environmentName", n);
337
- const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
338
- let t;
339
- l && (t = l.baseOptions);
340
- const o = { method: "GET", ...t, ...e }, s = {};
341
- V(a, {});
342
- let i = t && t.headers ? t.headers : {};
337
+ listConnections: async (t, e = {}) => {
338
+ h("listConnections", "environmentName", t);
339
+ const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
340
+ let n;
341
+ l && (n = l.baseOptions);
342
+ const o = { method: "GET", ...n, ...e }, s = {}, c = {};
343
+ s.Accept = "application/json", v(a, c);
344
+ let i = n && n.headers ? n.headers : {};
343
345
  return o.headers = { ...s, ...i, ...e.headers }, {
344
- url: v(a),
346
+ url: V(a),
345
347
  options: o
346
348
  };
347
349
  },
@@ -353,16 +355,16 @@ const V = function(l, ...n) {
353
355
  * @param {*} [options] Override http request option.
354
356
  * @throws {RequiredError}
355
357
  */
356
- listSchemas: async (n, e, r = {}) => {
357
- m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
358
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
358
+ listSchemas: async (t, e, r = {}) => {
359
+ h("listSchemas", "environmentName", t), h("listSchemas", "connectionName", e);
360
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
359
361
  let o;
360
362
  l && (o = l.baseOptions);
361
- const s = { method: "GET", ...o, ...r }, c = {};
362
- V(t, {});
363
- let d = o && o.headers ? o.headers : {};
364
- return s.headers = { ...c, ...d, ...r.headers }, {
365
- url: v(t),
363
+ const s = { method: "GET", ...o, ...r }, c = {}, i = {};
364
+ c.Accept = "application/json", v(n, i);
365
+ let p = o && o.headers ? o.headers : {};
366
+ return s.headers = { ...c, ...p, ...r.headers }, {
367
+ url: V(n),
366
368
  options: s
367
369
  };
368
370
  },
@@ -375,16 +377,16 @@ const V = function(l, ...n) {
375
377
  * @param {*} [options] Override http request option.
376
378
  * @throws {RequiredError}
377
379
  */
378
- listSchemasInPackage: async (n, e, r, a = {}) => {
379
- m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", r);
380
- const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(t, b);
380
+ listSchemasInPackage: async (t, e, r, a = {}) => {
381
+ h("listSchemasInPackage", "environmentName", t), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", r);
382
+ const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(n, P);
381
383
  let s;
382
384
  l && (s = l.baseOptions);
383
- const c = { method: "GET", ...s, ...a }, i = {};
384
- V(o, {});
385
- let p = s && s.headers ? s.headers : {};
386
- return c.headers = { ...i, ...p, ...a.headers }, {
387
- url: v(o),
385
+ const c = { method: "GET", ...s, ...a }, i = {}, p = {};
386
+ i.Accept = "application/json", v(o, p);
387
+ let d = s && s.headers ? s.headers : {};
388
+ return c.headers = { ...i, ...d, ...a.headers }, {
389
+ url: V(o),
388
390
  options: c
389
391
  };
390
392
  },
@@ -398,16 +400,16 @@ const V = function(l, ...n) {
398
400
  * @param {*} [options] Override http request option.
399
401
  * @throws {RequiredError}
400
402
  */
401
- listTables: async (n, e, r, a, t = {}) => {
402
- m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", r);
403
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, b);
403
+ listTables: async (t, e, r, a, n = {}) => {
404
+ h("listTables", "environmentName", t), h("listTables", "connectionName", e), h("listTables", "schemaName", r);
405
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, P);
404
406
  let c;
405
407
  l && (c = l.baseOptions);
406
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
407
- a && (p.tableNames = a), V(s, p);
408
- let h = c && c.headers ? c.headers : {};
409
- return i.headers = { ...d, ...h, ...t.headers }, {
410
- url: v(s),
408
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
409
+ a && (d.tableNames = a), p.Accept = "application/json", v(s, d);
410
+ let m = c && c.headers ? c.headers : {};
411
+ return i.headers = { ...p, ...m, ...n.headers }, {
412
+ url: V(s),
411
413
  options: i
412
414
  };
413
415
  },
@@ -422,17 +424,17 @@ const V = function(l, ...n) {
422
424
  * @param {*} [options] Override http request option.
423
425
  * @throws {RequiredError}
424
426
  */
425
- listTablesInPackage: async (n, e, r, a, t, o = {}) => {
426
- m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", r), m("listTablesInPackage", "schemaName", a);
427
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, b);
427
+ listTablesInPackage: async (t, e, r, a, n, o = {}) => {
428
+ h("listTablesInPackage", "environmentName", t), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", r), h("listTablesInPackage", "schemaName", a);
429
+ 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(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
428
430
  let i;
429
431
  l && (i = l.baseOptions);
430
- const d = { method: "GET", ...i, ...o }, p = {}, h = {};
431
- t && (h.tableNames = t), V(c, h);
432
+ const p = { method: "GET", ...i, ...o }, d = {}, m = {};
433
+ n && (m.tableNames = n), d.Accept = "application/json", v(c, m);
432
434
  let S = i && i.headers ? i.headers : {};
433
- return d.headers = { ...p, ...S, ...o.headers }, {
434
- url: v(c),
435
- options: d
435
+ return p.headers = { ...d, ...S, ...o.headers }, {
436
+ url: V(c),
437
+ options: p
436
438
  };
437
439
  },
438
440
  /**
@@ -444,16 +446,16 @@ const V = function(l, ...n) {
444
446
  * @param {*} [options] Override http request option.
445
447
  * @throws {RequiredError}
446
448
  */
447
- postQuerydata: async (n, e, r, a = {}) => {
448
- m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", r);
449
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
449
+ postQuerydata: async (t, e, r, a = {}) => {
450
+ h("postQuerydata", "environmentName", t), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", r);
451
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
450
452
  let s;
451
453
  l && (s = l.baseOptions);
452
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
453
- i["Content-Type"] = "application/json", V(o, d);
454
- let p = s && s.headers ? s.headers : {};
455
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
456
- url: v(o),
454
+ const c = { method: "POST", ...s, ...a }, i = {}, p = {};
455
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
456
+ let d = s && s.headers ? s.headers : {};
457
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
458
+ url: V(o),
457
459
  options: c
458
460
  };
459
461
  },
@@ -467,16 +469,16 @@ const V = function(l, ...n) {
467
469
  * @param {*} [options] Override http request option.
468
470
  * @throws {RequiredError}
469
471
  */
470
- postQuerydataInPackage: async (n, e, r, a, t = {}) => {
471
- m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", r), m("postQuerydataInPackage", "postQuerydataRequest", a);
472
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
472
+ postQuerydataInPackage: async (t, e, r, a, n = {}) => {
473
+ h("postQuerydataInPackage", "environmentName", t), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", a);
474
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
473
475
  let c;
474
476
  l && (c = l.baseOptions);
475
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
476
- d["Content-Type"] = "application/json", V(s, p);
477
- let h = c && c.headers ? c.headers : {};
478
- return i.headers = { ...d, ...h, ...t.headers }, i.data = y(a, i, l), {
479
- url: v(s),
477
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
478
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
479
+ let m = c && c.headers ? c.headers : {};
480
+ return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
481
+ url: V(s),
480
482
  options: i
481
483
  };
482
484
  },
@@ -489,16 +491,16 @@ const V = function(l, ...n) {
489
491
  * @param {*} [options] Override http request option.
490
492
  * @throws {RequiredError}
491
493
  */
492
- postSqlsource: async (n, e, r, a = {}) => {
493
- m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", r);
494
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
494
+ postSqlsource: async (t, e, r, a = {}) => {
495
+ h("postSqlsource", "environmentName", t), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", r);
496
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
495
497
  let s;
496
498
  l && (s = l.baseOptions);
497
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
498
- i["Content-Type"] = "application/json", V(o, d);
499
- let p = s && s.headers ? s.headers : {};
500
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
501
- url: v(o),
499
+ const c = { method: "POST", ...s, ...a }, i = {}, p = {};
500
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
501
+ let d = s && s.headers ? s.headers : {};
502
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
503
+ url: V(o),
502
504
  options: c
503
505
  };
504
506
  },
@@ -512,16 +514,16 @@ const V = function(l, ...n) {
512
514
  * @param {*} [options] Override http request option.
513
515
  * @throws {RequiredError}
514
516
  */
515
- postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
516
- m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", r), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
517
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
517
+ postSqlsourceInPackage: async (t, e, r, a, n = {}) => {
518
+ h("postSqlsourceInPackage", "environmentName", t), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
519
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
518
520
  let c;
519
521
  l && (c = l.baseOptions);
520
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
521
- d["Content-Type"] = "application/json", V(s, p);
522
- let h = c && c.headers ? c.headers : {};
523
- return i.headers = { ...d, ...h, ...t.headers }, i.data = y(a, i, l), {
524
- url: v(s),
522
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
523
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
524
+ let m = c && c.headers ? c.headers : {};
525
+ return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
526
+ url: V(s),
525
527
  options: i
526
528
  };
527
529
  },
@@ -534,16 +536,16 @@ const V = function(l, ...n) {
534
536
  * @param {*} [options] Override http request option.
535
537
  * @throws {RequiredError}
536
538
  */
537
- postTemporarytable: async (n, e, r, a = {}) => {
538
- m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", r);
539
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
539
+ postTemporarytable: async (t, e, r, a = {}) => {
540
+ h("postTemporarytable", "environmentName", t), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", r);
541
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
540
542
  let s;
541
543
  l && (s = l.baseOptions);
542
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
543
- i["Content-Type"] = "application/json", V(o, d);
544
- let p = s && s.headers ? s.headers : {};
545
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
546
- url: v(o),
544
+ const c = { method: "POST", ...s, ...a }, i = {}, p = {};
545
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
546
+ let d = s && s.headers ? s.headers : {};
547
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
548
+ url: V(o),
547
549
  options: c
548
550
  };
549
551
  },
@@ -557,16 +559,16 @@ const V = function(l, ...n) {
557
559
  * @param {*} [options] Override http request option.
558
560
  * @throws {RequiredError}
559
561
  */
560
- postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
561
- m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", r), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
562
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
562
+ postTemporarytableInPackage: async (t, e, r, a, n = {}) => {
563
+ h("postTemporarytableInPackage", "environmentName", t), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
564
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
563
565
  let c;
564
566
  l && (c = l.baseOptions);
565
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
566
- d["Content-Type"] = "application/json", V(s, p);
567
- let h = c && c.headers ? c.headers : {};
568
- return i.headers = { ...d, ...h, ...t.headers }, i.data = y(a, i, l), {
569
- url: v(s),
567
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
568
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
569
+ let m = c && c.headers ? c.headers : {};
570
+ return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
571
+ url: V(s),
570
572
  options: i
571
573
  };
572
574
  },
@@ -579,22 +581,22 @@ const V = function(l, ...n) {
579
581
  * @param {*} [options] Override http request option.
580
582
  * @throws {RequiredError}
581
583
  */
582
- updateConnection: async (n, e, r, a = {}) => {
583
- m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", r);
584
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
584
+ updateConnection: async (t, e, r, a = {}) => {
585
+ h("updateConnection", "environmentName", t), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", r);
586
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
585
587
  let s;
586
588
  l && (s = l.baseOptions);
587
- const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
588
- i["Content-Type"] = "application/json", V(o, d);
589
- let p = s && s.headers ? s.headers : {};
590
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
591
- url: v(o),
589
+ const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
590
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
591
+ let d = s && s.headers ? s.headers : {};
592
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
593
+ url: V(o),
592
594
  options: c
593
595
  };
594
596
  }
595
597
  };
596
- }, k = function(l) {
597
- const n = ge(l);
598
+ }, y = function(l) {
599
+ const t = be(l);
598
600
  return {
599
601
  /**
600
602
  * Creates a new database connection in the specified environment.
@@ -605,9 +607,9 @@ const V = function(l, ...n) {
605
607
  * @param {*} [options] Override http request option.
606
608
  * @throws {RequiredError}
607
609
  */
608
- async createConnection(e, r, a, t) {
609
- const o = await n.createConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
610
- return (i, d) => O(o, u, g, l)(i, c || d);
610
+ async createConnection(e, r, a, n) {
611
+ const o = await t.createConnection(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.createConnection"]?.[s]?.url;
612
+ return (i, p) => O(o, u, g, l)(i, c || p);
611
613
  },
612
614
  /**
613
615
  * Permanently deletes a database connection from the environment.
@@ -618,8 +620,8 @@ const V = function(l, ...n) {
618
620
  * @throws {RequiredError}
619
621
  */
620
622
  async deleteConnection(e, r, a) {
621
- const t = await n.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
622
- return (c, i) => O(t, u, g, l)(c, s || i);
623
+ const n = await t.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = b["ConnectionsApi.deleteConnection"]?.[o]?.url;
624
+ return (c, i) => O(n, u, g, l)(c, s || i);
623
625
  },
624
626
  /**
625
627
  * 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.
@@ -630,8 +632,8 @@ const V = function(l, ...n) {
630
632
  * @throws {RequiredError}
631
633
  */
632
634
  async getConnection(e, r, a) {
633
- const t = await n.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
634
- return (c, i) => O(t, u, g, l)(c, s || i);
635
+ const n = await t.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = b["ConnectionsApi.getConnection"]?.[o]?.url;
636
+ return (c, i) => O(n, u, g, l)(c, s || i);
635
637
  },
636
638
  /**
637
639
  * 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.
@@ -643,9 +645,9 @@ const V = function(l, ...n) {
643
645
  * @param {*} [options] Override http request option.
644
646
  * @throws {RequiredError}
645
647
  */
646
- async getTable(e, r, a, t, o) {
647
- const s = await n.getTable(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
648
- return (d, p) => O(s, u, g, l)(d, i || p);
648
+ async getTable(e, r, a, n, o) {
649
+ const s = await t.getTable(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.getTable"]?.[c]?.url;
650
+ return (p, d) => O(s, u, g, l)(p, i || d);
649
651
  },
650
652
  /**
651
653
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -658,9 +660,9 @@ const V = function(l, ...n) {
658
660
  * @param {*} [options] Override http request option.
659
661
  * @throws {RequiredError}
660
662
  */
661
- async getTableInPackage(e, r, a, t, o, s) {
662
- const c = await n.getTableInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
663
- return (p, h) => O(c, u, g, l)(p, d || h);
663
+ async getTableInPackage(e, r, a, n, o, s) {
664
+ const c = await t.getTableInPackage(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ConnectionsApi.getTableInPackage"]?.[i]?.url;
665
+ return (d, m) => O(c, u, g, l)(d, p || m);
664
666
  },
665
667
  /**
666
668
  * 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.
@@ -670,7 +672,7 @@ const V = function(l, ...n) {
670
672
  * @throws {RequiredError}
671
673
  */
672
674
  async listConnections(e, r) {
673
- const a = await n.listConnections(e, r), t = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
675
+ const a = await t.listConnections(e, r), n = l?.serverIndex ?? 0, o = b["ConnectionsApi.listConnections"]?.[n]?.url;
674
676
  return (s, c) => O(a, u, g, l)(s, o || c);
675
677
  },
676
678
  /**
@@ -682,8 +684,8 @@ const V = function(l, ...n) {
682
684
  * @throws {RequiredError}
683
685
  */
684
686
  async listSchemas(e, r, a) {
685
- const t = await n.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
686
- return (c, i) => O(t, u, g, l)(c, s || i);
687
+ const n = await t.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = b["ConnectionsApi.listSchemas"]?.[o]?.url;
688
+ return (c, i) => O(n, u, g, l)(c, s || i);
687
689
  },
688
690
  /**
689
691
  * 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).
@@ -694,9 +696,9 @@ const V = function(l, ...n) {
694
696
  * @param {*} [options] Override http request option.
695
697
  * @throws {RequiredError}
696
698
  */
697
- async listSchemasInPackage(e, r, a, t) {
698
- const o = await n.listSchemasInPackage(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
699
- return (i, d) => O(o, u, g, l)(i, c || d);
699
+ async listSchemasInPackage(e, r, a, n) {
700
+ const o = await t.listSchemasInPackage(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
701
+ return (i, p) => O(o, u, g, l)(i, c || p);
700
702
  },
701
703
  /**
702
704
  * 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.
@@ -708,9 +710,9 @@ const V = function(l, ...n) {
708
710
  * @param {*} [options] Override http request option.
709
711
  * @throws {RequiredError}
710
712
  */
711
- async listTables(e, r, a, t, o) {
712
- const s = await n.listTables(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
713
- return (d, p) => O(s, u, g, l)(d, i || p);
713
+ async listTables(e, r, a, n, o) {
714
+ const s = await t.listTables(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.listTables"]?.[c]?.url;
715
+ return (p, d) => O(s, u, g, l)(p, i || d);
714
716
  },
715
717
  /**
716
718
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -723,9 +725,9 @@ const V = function(l, ...n) {
723
725
  * @param {*} [options] Override http request option.
724
726
  * @throws {RequiredError}
725
727
  */
726
- async listTablesInPackage(e, r, a, t, o, s) {
727
- const c = await n.listTablesInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
728
- return (p, h) => O(c, u, g, l)(p, d || h);
728
+ async listTablesInPackage(e, r, a, n, o, s) {
729
+ const c = await t.listTablesInPackage(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
730
+ return (d, m) => O(c, u, g, l)(d, p || m);
729
731
  },
730
732
  /**
731
733
  * 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.
@@ -736,9 +738,9 @@ const V = function(l, ...n) {
736
738
  * @param {*} [options] Override http request option.
737
739
  * @throws {RequiredError}
738
740
  */
739
- async postQuerydata(e, r, a, t) {
740
- const o = await n.postQuerydata(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
741
- return (i, d) => O(o, u, g, l)(i, c || d);
741
+ async postQuerydata(e, r, a, n) {
742
+ const o = await t.postQuerydata(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.postQuerydata"]?.[s]?.url;
743
+ return (i, p) => O(o, u, g, l)(i, c || p);
742
744
  },
743
745
  /**
744
746
  * 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.
@@ -750,9 +752,9 @@ const V = function(l, ...n) {
750
752
  * @param {*} [options] Override http request option.
751
753
  * @throws {RequiredError}
752
754
  */
753
- async postQuerydataInPackage(e, r, a, t, o) {
754
- const s = await n.postQuerydataInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
755
- return (d, p) => O(s, u, g, l)(d, i || p);
755
+ async postQuerydataInPackage(e, r, a, n, o) {
756
+ const s = await t.postQuerydataInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
757
+ return (p, d) => O(s, u, g, l)(p, i || d);
756
758
  },
757
759
  /**
758
760
  * 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.
@@ -763,9 +765,9 @@ const V = function(l, ...n) {
763
765
  * @param {*} [options] Override http request option.
764
766
  * @throws {RequiredError}
765
767
  */
766
- async postSqlsource(e, r, a, t) {
767
- const o = await n.postSqlsource(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
768
- return (i, d) => O(o, u, g, l)(i, c || d);
768
+ async postSqlsource(e, r, a, n) {
769
+ const o = await t.postSqlsource(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.postSqlsource"]?.[s]?.url;
770
+ return (i, p) => O(o, u, g, l)(i, c || p);
769
771
  },
770
772
  /**
771
773
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -777,9 +779,9 @@ const V = function(l, ...n) {
777
779
  * @param {*} [options] Override http request option.
778
780
  * @throws {RequiredError}
779
781
  */
780
- async postSqlsourceInPackage(e, r, a, t, o) {
781
- const s = await n.postSqlsourceInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
782
- return (d, p) => O(s, u, g, l)(d, i || p);
782
+ async postSqlsourceInPackage(e, r, a, n, o) {
783
+ const s = await t.postSqlsourceInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
784
+ return (p, d) => O(s, u, g, l)(p, i || d);
783
785
  },
784
786
  /**
785
787
  * 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.
@@ -790,9 +792,9 @@ const V = function(l, ...n) {
790
792
  * @param {*} [options] Override http request option.
791
793
  * @throws {RequiredError}
792
794
  */
793
- async postTemporarytable(e, r, a, t) {
794
- const o = await n.postTemporarytable(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
795
- return (i, d) => O(o, u, g, l)(i, c || d);
795
+ async postTemporarytable(e, r, a, n) {
796
+ const o = await t.postTemporarytable(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.postTemporarytable"]?.[s]?.url;
797
+ return (i, p) => O(o, u, g, l)(i, c || p);
796
798
  },
797
799
  /**
798
800
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -804,9 +806,9 @@ const V = function(l, ...n) {
804
806
  * @param {*} [options] Override http request option.
805
807
  * @throws {RequiredError}
806
808
  */
807
- async postTemporarytableInPackage(e, r, a, t, o) {
808
- const s = await n.postTemporarytableInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
809
- return (d, p) => O(s, u, g, l)(d, i || p);
809
+ async postTemporarytableInPackage(e, r, a, n, o) {
810
+ const s = await t.postTemporarytableInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
811
+ return (p, d) => O(s, u, g, l)(p, i || d);
810
812
  },
811
813
  /**
812
814
  * Updates the configuration of an existing database connection.
@@ -817,13 +819,13 @@ const V = function(l, ...n) {
817
819
  * @param {*} [options] Override http request option.
818
820
  * @throws {RequiredError}
819
821
  */
820
- async updateConnection(e, r, a, t) {
821
- const o = await n.updateConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
822
- return (i, d) => O(o, u, g, l)(i, c || d);
822
+ async updateConnection(e, r, a, n) {
823
+ const o = await t.updateConnection(e, r, a, n), s = l?.serverIndex ?? 0, c = b["ConnectionsApi.updateConnection"]?.[s]?.url;
824
+ return (i, p) => O(o, u, g, l)(i, c || p);
823
825
  }
824
826
  };
825
- }, La = function(l, n, e) {
826
- const r = k(l);
827
+ }, Ha = function(l, t, e) {
828
+ const r = y(l);
827
829
  return {
828
830
  /**
829
831
  * Creates a new database connection in the specified environment.
@@ -834,8 +836,8 @@ const V = function(l, ...n) {
834
836
  * @param {*} [options] Override http request option.
835
837
  * @throws {RequiredError}
836
838
  */
837
- createConnection(a, t, o, s) {
838
- return r.createConnection(a, t, o, s).then((c) => c(e, n));
839
+ createConnection(a, n, o, s) {
840
+ return r.createConnection(a, n, o, s).then((c) => c(e, t));
839
841
  },
840
842
  /**
841
843
  * Permanently deletes a database connection from the environment.
@@ -845,8 +847,8 @@ const V = function(l, ...n) {
845
847
  * @param {*} [options] Override http request option.
846
848
  * @throws {RequiredError}
847
849
  */
848
- deleteConnection(a, t, o) {
849
- return r.deleteConnection(a, t, o).then((s) => s(e, n));
850
+ deleteConnection(a, n, o) {
851
+ return r.deleteConnection(a, n, o).then((s) => s(e, t));
850
852
  },
851
853
  /**
852
854
  * 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.
@@ -856,8 +858,8 @@ const V = function(l, ...n) {
856
858
  * @param {*} [options] Override http request option.
857
859
  * @throws {RequiredError}
858
860
  */
859
- getConnection(a, t, o) {
860
- return r.getConnection(a, t, o).then((s) => s(e, n));
861
+ getConnection(a, n, o) {
862
+ return r.getConnection(a, n, o).then((s) => s(e, t));
861
863
  },
862
864
  /**
863
865
  * 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.
@@ -869,8 +871,8 @@ const V = function(l, ...n) {
869
871
  * @param {*} [options] Override http request option.
870
872
  * @throws {RequiredError}
871
873
  */
872
- getTable(a, t, o, s, c) {
873
- return r.getTable(a, t, o, s, c).then((i) => i(e, n));
874
+ getTable(a, n, o, s, c) {
875
+ return r.getTable(a, n, o, s, c).then((i) => i(e, t));
874
876
  },
875
877
  /**
876
878
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -883,8 +885,8 @@ const V = function(l, ...n) {
883
885
  * @param {*} [options] Override http request option.
884
886
  * @throws {RequiredError}
885
887
  */
886
- getTableInPackage(a, t, o, s, c, i) {
887
- return r.getTableInPackage(a, t, o, s, c, i).then((d) => d(e, n));
888
+ getTableInPackage(a, n, o, s, c, i) {
889
+ return r.getTableInPackage(a, n, o, s, c, i).then((p) => p(e, t));
888
890
  },
889
891
  /**
890
892
  * 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.
@@ -893,8 +895,8 @@ const V = function(l, ...n) {
893
895
  * @param {*} [options] Override http request option.
894
896
  * @throws {RequiredError}
895
897
  */
896
- listConnections(a, t) {
897
- return r.listConnections(a, t).then((o) => o(e, n));
898
+ listConnections(a, n) {
899
+ return r.listConnections(a, n).then((o) => o(e, t));
898
900
  },
899
901
  /**
900
902
  * 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.
@@ -904,8 +906,8 @@ const V = function(l, ...n) {
904
906
  * @param {*} [options] Override http request option.
905
907
  * @throws {RequiredError}
906
908
  */
907
- listSchemas(a, t, o) {
908
- return r.listSchemas(a, t, o).then((s) => s(e, n));
909
+ listSchemas(a, n, o) {
910
+ return r.listSchemas(a, n, o).then((s) => s(e, t));
909
911
  },
910
912
  /**
911
913
  * 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).
@@ -916,8 +918,8 @@ const V = function(l, ...n) {
916
918
  * @param {*} [options] Override http request option.
917
919
  * @throws {RequiredError}
918
920
  */
919
- listSchemasInPackage(a, t, o, s) {
920
- return r.listSchemasInPackage(a, t, o, s).then((c) => c(e, n));
921
+ listSchemasInPackage(a, n, o, s) {
922
+ return r.listSchemasInPackage(a, n, o, s).then((c) => c(e, t));
921
923
  },
922
924
  /**
923
925
  * 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.
@@ -929,8 +931,8 @@ const V = function(l, ...n) {
929
931
  * @param {*} [options] Override http request option.
930
932
  * @throws {RequiredError}
931
933
  */
932
- listTables(a, t, o, s, c) {
933
- return r.listTables(a, t, o, s, c).then((i) => i(e, n));
934
+ listTables(a, n, o, s, c) {
935
+ return r.listTables(a, n, o, s, c).then((i) => i(e, t));
934
936
  },
935
937
  /**
936
938
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -943,8 +945,8 @@ const V = function(l, ...n) {
943
945
  * @param {*} [options] Override http request option.
944
946
  * @throws {RequiredError}
945
947
  */
946
- listTablesInPackage(a, t, o, s, c, i) {
947
- return r.listTablesInPackage(a, t, o, s, c, i).then((d) => d(e, n));
948
+ listTablesInPackage(a, n, o, s, c, i) {
949
+ return r.listTablesInPackage(a, n, o, s, c, i).then((p) => p(e, t));
948
950
  },
949
951
  /**
950
952
  * 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.
@@ -955,8 +957,8 @@ const V = function(l, ...n) {
955
957
  * @param {*} [options] Override http request option.
956
958
  * @throws {RequiredError}
957
959
  */
958
- postQuerydata(a, t, o, s) {
959
- return r.postQuerydata(a, t, o, s).then((c) => c(e, n));
960
+ postQuerydata(a, n, o, s) {
961
+ return r.postQuerydata(a, n, o, s).then((c) => c(e, t));
960
962
  },
961
963
  /**
962
964
  * 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.
@@ -968,8 +970,8 @@ const V = function(l, ...n) {
968
970
  * @param {*} [options] Override http request option.
969
971
  * @throws {RequiredError}
970
972
  */
971
- postQuerydataInPackage(a, t, o, s, c) {
972
- return r.postQuerydataInPackage(a, t, o, s, c).then((i) => i(e, n));
973
+ postQuerydataInPackage(a, n, o, s, c) {
974
+ return r.postQuerydataInPackage(a, n, o, s, c).then((i) => i(e, t));
973
975
  },
974
976
  /**
975
977
  * 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.
@@ -980,8 +982,8 @@ const V = function(l, ...n) {
980
982
  * @param {*} [options] Override http request option.
981
983
  * @throws {RequiredError}
982
984
  */
983
- postSqlsource(a, t, o, s) {
984
- return r.postSqlsource(a, t, o, s).then((c) => c(e, n));
985
+ postSqlsource(a, n, o, s) {
986
+ return r.postSqlsource(a, n, o, s).then((c) => c(e, t));
985
987
  },
986
988
  /**
987
989
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -993,8 +995,8 @@ const V = function(l, ...n) {
993
995
  * @param {*} [options] Override http request option.
994
996
  * @throws {RequiredError}
995
997
  */
996
- postSqlsourceInPackage(a, t, o, s, c) {
997
- return r.postSqlsourceInPackage(a, t, o, s, c).then((i) => i(e, n));
998
+ postSqlsourceInPackage(a, n, o, s, c) {
999
+ return r.postSqlsourceInPackage(a, n, o, s, c).then((i) => i(e, t));
998
1000
  },
999
1001
  /**
1000
1002
  * 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.
@@ -1005,8 +1007,8 @@ const V = function(l, ...n) {
1005
1007
  * @param {*} [options] Override http request option.
1006
1008
  * @throws {RequiredError}
1007
1009
  */
1008
- postTemporarytable(a, t, o, s) {
1009
- return r.postTemporarytable(a, t, o, s).then((c) => c(e, n));
1010
+ postTemporarytable(a, n, o, s) {
1011
+ return r.postTemporarytable(a, n, o, s).then((c) => c(e, t));
1010
1012
  },
1011
1013
  /**
1012
1014
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1018,8 +1020,8 @@ const V = function(l, ...n) {
1018
1020
  * @param {*} [options] Override http request option.
1019
1021
  * @throws {RequiredError}
1020
1022
  */
1021
- postTemporarytableInPackage(a, t, o, s, c) {
1022
- return r.postTemporarytableInPackage(a, t, o, s, c).then((i) => i(e, n));
1023
+ postTemporarytableInPackage(a, n, o, s, c) {
1024
+ return r.postTemporarytableInPackage(a, n, o, s, c).then((i) => i(e, t));
1023
1025
  },
1024
1026
  /**
1025
1027
  * Updates the configuration of an existing database connection.
@@ -1030,12 +1032,12 @@ const V = function(l, ...n) {
1030
1032
  * @param {*} [options] Override http request option.
1031
1033
  * @throws {RequiredError}
1032
1034
  */
1033
- updateConnection(a, t, o, s) {
1034
- return r.updateConnection(a, t, o, s).then((c) => c(e, n));
1035
+ updateConnection(a, n, o, s) {
1036
+ return r.updateConnection(a, n, o, s).then((c) => c(e, t));
1035
1037
  }
1036
1038
  };
1037
1039
  };
1038
- class Pe extends I {
1040
+ class Pe extends C {
1039
1041
  /**
1040
1042
  * Creates a new database connection in the specified environment.
1041
1043
  * @summary Create a new database connection
@@ -1044,10 +1046,9 @@ class Pe extends I {
1044
1046
  * @param {Connection} connection
1045
1047
  * @param {*} [options] Override http request option.
1046
1048
  * @throws {RequiredError}
1047
- * @memberof ConnectionsApi
1048
1049
  */
1049
- createConnection(n, e, r, a) {
1050
- return k(this.configuration).createConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1050
+ createConnection(t, e, r, a) {
1051
+ return y(this.configuration).createConnection(t, e, r, a).then((n) => n(this.axios, this.basePath));
1051
1052
  }
1052
1053
  /**
1053
1054
  * Permanently deletes a database connection from the environment.
@@ -1056,10 +1057,9 @@ class Pe extends I {
1056
1057
  * @param {string} connectionName Name of the connection to delete
1057
1058
  * @param {*} [options] Override http request option.
1058
1059
  * @throws {RequiredError}
1059
- * @memberof ConnectionsApi
1060
1060
  */
1061
- deleteConnection(n, e, r) {
1062
- return k(this.configuration).deleteConnection(n, e, r).then((a) => a(this.axios, this.basePath));
1061
+ deleteConnection(t, e, r) {
1062
+ return y(this.configuration).deleteConnection(t, e, r).then((a) => a(this.axios, this.basePath));
1063
1063
  }
1064
1064
  /**
1065
1065
  * 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.
@@ -1068,10 +1068,9 @@ class Pe extends I {
1068
1068
  * @param {string} connectionName Name of the connection
1069
1069
  * @param {*} [options] Override http request option.
1070
1070
  * @throws {RequiredError}
1071
- * @memberof ConnectionsApi
1072
1071
  */
1073
- getConnection(n, e, r) {
1074
- return k(this.configuration).getConnection(n, e, r).then((a) => a(this.axios, this.basePath));
1072
+ getConnection(t, e, r) {
1073
+ return y(this.configuration).getConnection(t, e, r).then((a) => a(this.axios, this.basePath));
1075
1074
  }
1076
1075
  /**
1077
1076
  * 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.
@@ -1082,10 +1081,9 @@ class Pe extends I {
1082
1081
  * @param {string} tablePath Full path to the table
1083
1082
  * @param {*} [options] Override http request option.
1084
1083
  * @throws {RequiredError}
1085
- * @memberof ConnectionsApi
1086
1084
  */
1087
- getTable(n, e, r, a, t) {
1088
- return k(this.configuration).getTable(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1085
+ getTable(t, e, r, a, n) {
1086
+ return y(this.configuration).getTable(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1089
1087
  }
1090
1088
  /**
1091
1089
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1097,10 +1095,9 @@ class Pe extends I {
1097
1095
  * @param {string} tablePath Full path to the table
1098
1096
  * @param {*} [options] Override http request option.
1099
1097
  * @throws {RequiredError}
1100
- * @memberof ConnectionsApi
1101
1098
  */
1102
- getTableInPackage(n, e, r, a, t, o) {
1103
- return k(this.configuration).getTableInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
1099
+ getTableInPackage(t, e, r, a, n, o) {
1100
+ return y(this.configuration).getTableInPackage(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
1104
1101
  }
1105
1102
  /**
1106
1103
  * 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.
@@ -1108,10 +1105,9 @@ class Pe extends I {
1108
1105
  * @param {string} environmentName Name of the environment
1109
1106
  * @param {*} [options] Override http request option.
1110
1107
  * @throws {RequiredError}
1111
- * @memberof ConnectionsApi
1112
1108
  */
1113
- listConnections(n, e) {
1114
- return k(this.configuration).listConnections(n, e).then((r) => r(this.axios, this.basePath));
1109
+ listConnections(t, e) {
1110
+ return y(this.configuration).listConnections(t, e).then((r) => r(this.axios, this.basePath));
1115
1111
  }
1116
1112
  /**
1117
1113
  * 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.
@@ -1120,10 +1116,9 @@ class Pe extends I {
1120
1116
  * @param {string} connectionName Name of the connection
1121
1117
  * @param {*} [options] Override http request option.
1122
1118
  * @throws {RequiredError}
1123
- * @memberof ConnectionsApi
1124
1119
  */
1125
- listSchemas(n, e, r) {
1126
- return k(this.configuration).listSchemas(n, e, r).then((a) => a(this.axios, this.basePath));
1120
+ listSchemas(t, e, r) {
1121
+ return y(this.configuration).listSchemas(t, e, r).then((a) => a(this.axios, this.basePath));
1127
1122
  }
1128
1123
  /**
1129
1124
  * 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).
@@ -1133,10 +1128,9 @@ class Pe extends I {
1133
1128
  * @param {string} connectionName Name of the connection
1134
1129
  * @param {*} [options] Override http request option.
1135
1130
  * @throws {RequiredError}
1136
- * @memberof ConnectionsApi
1137
1131
  */
1138
- listSchemasInPackage(n, e, r, a) {
1139
- return k(this.configuration).listSchemasInPackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
1132
+ listSchemasInPackage(t, e, r, a) {
1133
+ return y(this.configuration).listSchemasInPackage(t, e, r, a).then((n) => n(this.axios, this.basePath));
1140
1134
  }
1141
1135
  /**
1142
1136
  * 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.
@@ -1147,10 +1141,9 @@ class Pe extends I {
1147
1141
  * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
1148
1142
  * @param {*} [options] Override http request option.
1149
1143
  * @throws {RequiredError}
1150
- * @memberof ConnectionsApi
1151
1144
  */
1152
- listTables(n, e, r, a, t) {
1153
- return k(this.configuration).listTables(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1145
+ listTables(t, e, r, a, n) {
1146
+ return y(this.configuration).listTables(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1154
1147
  }
1155
1148
  /**
1156
1149
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1162,10 +1155,9 @@ class Pe extends I {
1162
1155
  * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
1163
1156
  * @param {*} [options] Override http request option.
1164
1157
  * @throws {RequiredError}
1165
- * @memberof ConnectionsApi
1166
1158
  */
1167
- listTablesInPackage(n, e, r, a, t, o) {
1168
- return k(this.configuration).listTablesInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
1159
+ listTablesInPackage(t, e, r, a, n, o) {
1160
+ return y(this.configuration).listTablesInPackage(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
1169
1161
  }
1170
1162
  /**
1171
1163
  * 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.
@@ -1175,10 +1167,9 @@ class Pe extends I {
1175
1167
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
1176
1168
  * @param {*} [options] Override http request option.
1177
1169
  * @throws {RequiredError}
1178
- * @memberof ConnectionsApi
1179
1170
  */
1180
- postQuerydata(n, e, r, a) {
1181
- return k(this.configuration).postQuerydata(n, e, r, a).then((t) => t(this.axios, this.basePath));
1171
+ postQuerydata(t, e, r, a) {
1172
+ return y(this.configuration).postQuerydata(t, e, r, a).then((n) => n(this.axios, this.basePath));
1182
1173
  }
1183
1174
  /**
1184
1175
  * 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.
@@ -1189,10 +1180,9 @@ class Pe extends I {
1189
1180
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
1190
1181
  * @param {*} [options] Override http request option.
1191
1182
  * @throws {RequiredError}
1192
- * @memberof ConnectionsApi
1193
1183
  */
1194
- postQuerydataInPackage(n, e, r, a, t) {
1195
- return k(this.configuration).postQuerydataInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1184
+ postQuerydataInPackage(t, e, r, a, n) {
1185
+ return y(this.configuration).postQuerydataInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1196
1186
  }
1197
1187
  /**
1198
1188
  * 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.
@@ -1202,10 +1192,9 @@ class Pe extends I {
1202
1192
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
1203
1193
  * @param {*} [options] Override http request option.
1204
1194
  * @throws {RequiredError}
1205
- * @memberof ConnectionsApi
1206
1195
  */
1207
- postSqlsource(n, e, r, a) {
1208
- return k(this.configuration).postSqlsource(n, e, r, a).then((t) => t(this.axios, this.basePath));
1196
+ postSqlsource(t, e, r, a) {
1197
+ return y(this.configuration).postSqlsource(t, e, r, a).then((n) => n(this.axios, this.basePath));
1209
1198
  }
1210
1199
  /**
1211
1200
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1216,10 +1205,9 @@ class Pe extends I {
1216
1205
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
1217
1206
  * @param {*} [options] Override http request option.
1218
1207
  * @throws {RequiredError}
1219
- * @memberof ConnectionsApi
1220
1208
  */
1221
- postSqlsourceInPackage(n, e, r, a, t) {
1222
- return k(this.configuration).postSqlsourceInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1209
+ postSqlsourceInPackage(t, e, r, a, n) {
1210
+ return y(this.configuration).postSqlsourceInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1223
1211
  }
1224
1212
  /**
1225
1213
  * 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.
@@ -1229,10 +1217,9 @@ class Pe extends I {
1229
1217
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
1230
1218
  * @param {*} [options] Override http request option.
1231
1219
  * @throws {RequiredError}
1232
- * @memberof ConnectionsApi
1233
1220
  */
1234
- postTemporarytable(n, e, r, a) {
1235
- return k(this.configuration).postTemporarytable(n, e, r, a).then((t) => t(this.axios, this.basePath));
1221
+ postTemporarytable(t, e, r, a) {
1222
+ return y(this.configuration).postTemporarytable(t, e, r, a).then((n) => n(this.axios, this.basePath));
1236
1223
  }
1237
1224
  /**
1238
1225
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1243,10 +1230,9 @@ class Pe extends I {
1243
1230
  * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
1244
1231
  * @param {*} [options] Override http request option.
1245
1232
  * @throws {RequiredError}
1246
- * @memberof ConnectionsApi
1247
1233
  */
1248
- postTemporarytableInPackage(n, e, r, a, t) {
1249
- return k(this.configuration).postTemporarytableInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1234
+ postTemporarytableInPackage(t, e, r, a, n) {
1235
+ return y(this.configuration).postTemporarytableInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1250
1236
  }
1251
1237
  /**
1252
1238
  * Updates the configuration of an existing database connection.
@@ -1256,13 +1242,12 @@ class Pe extends I {
1256
1242
  * @param {UpdateConnectionRequest} updateConnectionRequest
1257
1243
  * @param {*} [options] Override http request option.
1258
1244
  * @throws {RequiredError}
1259
- * @memberof ConnectionsApi
1260
1245
  */
1261
- updateConnection(n, e, r, a) {
1262
- return k(this.configuration).updateConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1246
+ updateConnection(t, e, r, a) {
1247
+ return y(this.configuration).updateConnection(t, e, r, a).then((n) => n(this.axios, this.basePath));
1263
1248
  }
1264
1249
  }
1265
- const be = function(l) {
1250
+ const ve = function(l) {
1266
1251
  return {
1267
1252
  /**
1268
1253
  * 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.
@@ -1271,22 +1256,22 @@ const be = function(l) {
1271
1256
  * @param {*} [options] Override http request option.
1272
1257
  * @throws {RequiredError}
1273
1258
  */
1274
- testConnectionConfiguration: async (n, e = {}) => {
1275
- m("testConnectionConfiguration", "connection", n);
1276
- const r = "/connections/test", a = new URL(r, b);
1277
- let t;
1278
- l && (t = l.baseOptions);
1279
- const o = { method: "POST", ...t, ...e }, s = {}, c = {};
1280
- s["Content-Type"] = "application/json", V(a, c);
1281
- let i = t && t.headers ? t.headers : {};
1282
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1283
- url: v(a),
1259
+ testConnectionConfiguration: async (t, e = {}) => {
1260
+ h("testConnectionConfiguration", "connection", t);
1261
+ const r = "/connections/test", a = new URL(r, P);
1262
+ let n;
1263
+ l && (n = l.baseOptions);
1264
+ const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1265
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
1266
+ let i = n && n.headers ? n.headers : {};
1267
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
1268
+ url: V(a),
1284
1269
  options: o
1285
1270
  };
1286
1271
  }
1287
1272
  };
1288
1273
  }, K = function(l) {
1289
- const n = be(l);
1274
+ const t = ve(l);
1290
1275
  return {
1291
1276
  /**
1292
1277
  * 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.
@@ -1296,11 +1281,11 @@ const be = function(l) {
1296
1281
  * @throws {RequiredError}
1297
1282
  */
1298
1283
  async testConnectionConfiguration(e, r) {
1299
- const a = await n.testConnectionConfiguration(e, r), t = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1284
+ const a = await t.testConnectionConfiguration(e, r), n = l?.serverIndex ?? 0, o = b["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1300
1285
  return (s, c) => O(a, u, g, l)(s, o || c);
1301
1286
  }
1302
1287
  };
1303
- }, ja = function(l, n, e) {
1288
+ }, _a = function(l, t, e) {
1304
1289
  const r = K(l);
1305
1290
  return {
1306
1291
  /**
@@ -1310,22 +1295,21 @@ const be = function(l) {
1310
1295
  * @param {*} [options] Override http request option.
1311
1296
  * @throws {RequiredError}
1312
1297
  */
1313
- testConnectionConfiguration(a, t) {
1314
- return r.testConnectionConfiguration(a, t).then((o) => o(e, n));
1298
+ testConnectionConfiguration(a, n) {
1299
+ return r.testConnectionConfiguration(a, n).then((o) => o(e, t));
1315
1300
  }
1316
1301
  };
1317
1302
  };
1318
- class Ha extends I {
1303
+ class Wa extends C {
1319
1304
  /**
1320
1305
  * 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.
1321
1306
  * @summary Test database connection configuration
1322
1307
  * @param {Connection} connection
1323
1308
  * @param {*} [options] Override http request option.
1324
1309
  * @throws {RequiredError}
1325
- * @memberof ConnectionsTestApi
1326
1310
  */
1327
- testConnectionConfiguration(n, e) {
1328
- return K(this.configuration).testConnectionConfiguration(n, e).then((r) => r(this.axios, this.basePath));
1311
+ testConnectionConfiguration(t, e) {
1312
+ return K(this.configuration).testConnectionConfiguration(t, e).then((r) => r(this.axios, this.basePath));
1329
1313
  }
1330
1314
  }
1331
1315
  const Ve = function(l) {
@@ -1340,16 +1324,16 @@ const Ve = function(l) {
1340
1324
  * @param {*} [options] Override http request option.
1341
1325
  * @throws {RequiredError}
1342
1326
  */
1343
- getDashboard: async (n, e, r, a, t = {}) => {
1344
- m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", r);
1345
- const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(r))), s = new URL(o, b);
1327
+ getDashboard: async (t, e, r, a, n = {}) => {
1328
+ h("getDashboard", "environmentName", t), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", r);
1329
+ const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(r))), s = new URL(o, P);
1346
1330
  let c;
1347
1331
  l && (c = l.baseOptions);
1348
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
1349
- a !== void 0 && (p.versionId = a), V(s, p);
1350
- let h = c && c.headers ? c.headers : {};
1351
- return i.headers = { ...d, ...h, ...t.headers }, {
1352
- url: v(s),
1332
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
1333
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
1334
+ let m = c && c.headers ? c.headers : {};
1335
+ return i.headers = { ...p, ...m, ...n.headers }, {
1336
+ url: V(s),
1353
1337
  options: i
1354
1338
  };
1355
1339
  },
@@ -1362,22 +1346,22 @@ const Ve = function(l) {
1362
1346
  * @param {*} [options] Override http request option.
1363
1347
  * @throws {RequiredError}
1364
1348
  */
1365
- listDashboards: async (n, e, r, a = {}) => {
1366
- m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
1367
- const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1349
+ listDashboards: async (t, e, r, a = {}) => {
1350
+ h("listDashboards", "environmentName", t), h("listDashboards", "packageName", e);
1351
+ const n = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
1368
1352
  let s;
1369
1353
  l && (s = l.baseOptions);
1370
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1371
- r !== void 0 && (d.versionId = r), V(o, d);
1372
- let p = s && s.headers ? s.headers : {};
1373
- return c.headers = { ...i, ...p, ...a.headers }, {
1374
- url: v(o),
1354
+ const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1355
+ r !== void 0 && (p.versionId = r), i.Accept = "application/json", v(o, p);
1356
+ let d = s && s.headers ? s.headers : {};
1357
+ return c.headers = { ...i, ...d, ...a.headers }, {
1358
+ url: V(o),
1375
1359
  options: c
1376
1360
  };
1377
1361
  }
1378
1362
  };
1379
1363
  }, z = function(l) {
1380
- const n = Ve(l);
1364
+ const t = Ve(l);
1381
1365
  return {
1382
1366
  /**
1383
1367
  * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
@@ -1389,9 +1373,9 @@ const Ve = function(l) {
1389
1373
  * @param {*} [options] Override http request option.
1390
1374
  * @throws {RequiredError}
1391
1375
  */
1392
- async getDashboard(e, r, a, t, o) {
1393
- const s = await n.getDashboard(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[c]?.url;
1394
- return (d, p) => O(s, u, g, l)(d, i || p);
1376
+ async getDashboard(e, r, a, n, o) {
1377
+ const s = await t.getDashboard(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["DashboardsApi.getDashboard"]?.[c]?.url;
1378
+ return (p, d) => O(s, u, g, l)(p, i || d);
1395
1379
  },
1396
1380
  /**
1397
1381
  * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1402,12 +1386,12 @@ const Ve = function(l) {
1402
1386
  * @param {*} [options] Override http request option.
1403
1387
  * @throws {RequiredError}
1404
1388
  */
1405
- async listDashboards(e, r, a, t) {
1406
- const o = await n.listDashboards(e, r, a, t), s = l?.serverIndex ?? 0, c = P["DashboardsApi.listDashboards"]?.[s]?.url;
1407
- return (i, d) => O(o, u, g, l)(i, c || d);
1389
+ async listDashboards(e, r, a, n) {
1390
+ const o = await t.listDashboards(e, r, a, n), s = l?.serverIndex ?? 0, c = b["DashboardsApi.listDashboards"]?.[s]?.url;
1391
+ return (i, p) => O(o, u, g, l)(i, c || p);
1408
1392
  }
1409
1393
  };
1410
- }, _a = function(l, n, e) {
1394
+ }, Ga = function(l, t, e) {
1411
1395
  const r = z(l);
1412
1396
  return {
1413
1397
  /**
@@ -1420,8 +1404,8 @@ const Ve = function(l) {
1420
1404
  * @param {*} [options] Override http request option.
1421
1405
  * @throws {RequiredError}
1422
1406
  */
1423
- getDashboard(a, t, o, s, c) {
1424
- return r.getDashboard(a, t, o, s, c).then((i) => i(e, n));
1407
+ getDashboard(a, n, o, s, c) {
1408
+ return r.getDashboard(a, n, o, s, c).then((i) => i(e, t));
1425
1409
  },
1426
1410
  /**
1427
1411
  * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1432,12 +1416,12 @@ const Ve = function(l) {
1432
1416
  * @param {*} [options] Override http request option.
1433
1417
  * @throws {RequiredError}
1434
1418
  */
1435
- listDashboards(a, t, o, s) {
1436
- return r.listDashboards(a, t, o, s).then((c) => c(e, n));
1419
+ listDashboards(a, n, o, s) {
1420
+ return r.listDashboards(a, n, o, s).then((c) => c(e, t));
1437
1421
  }
1438
1422
  };
1439
1423
  };
1440
- class ve extends I {
1424
+ class Oe extends C {
1441
1425
  /**
1442
1426
  * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
1443
1427
  * @summary Get a dashboard manifest
@@ -1447,10 +1431,9 @@ class ve extends I {
1447
1431
  * @param {string} [versionId] Version identifier for the package
1448
1432
  * @param {*} [options] Override http request option.
1449
1433
  * @throws {RequiredError}
1450
- * @memberof DashboardsApi
1451
1434
  */
1452
- getDashboard(n, e, r, a, t) {
1453
- return z(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1435
+ getDashboard(t, e, r, a, n) {
1436
+ return z(this.configuration).getDashboard(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
1454
1437
  }
1455
1438
  /**
1456
1439
  * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
@@ -1460,13 +1443,12 @@ class ve extends I {
1460
1443
  * @param {string} [versionId] Version identifier for the package
1461
1444
  * @param {*} [options] Override http request option.
1462
1445
  * @throws {RequiredError}
1463
- * @memberof DashboardsApi
1464
1446
  */
1465
- listDashboards(n, e, r, a) {
1466
- return z(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
1447
+ listDashboards(t, e, r, a) {
1448
+ return z(this.configuration).listDashboards(t, e, r, a).then((n) => n(this.axios, this.basePath));
1467
1449
  }
1468
1450
  }
1469
- const Oe = function(l) {
1451
+ const Se = function(l) {
1470
1452
  return {
1471
1453
  /**
1472
1454
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -1476,22 +1458,22 @@ const Oe = function(l) {
1476
1458
  * @param {*} [options] Override http request option.
1477
1459
  * @throws {RequiredError}
1478
1460
  */
1479
- listDataApps: async (n, e, r = {}) => {
1480
- m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
1481
- const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
1461
+ listDataApps: async (t, e, r = {}) => {
1462
+ h("listDataApps", "environmentName", t), h("listDataApps", "packageName", e);
1463
+ const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
1482
1464
  let o;
1483
1465
  l && (o = l.baseOptions);
1484
- const s = { method: "GET", ...o, ...r }, c = {};
1485
- V(t, {});
1486
- let d = o && o.headers ? o.headers : {};
1487
- return s.headers = { ...c, ...d, ...r.headers }, {
1488
- url: v(t),
1466
+ const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1467
+ c.Accept = "application/json", v(n, i);
1468
+ let p = o && o.headers ? o.headers : {};
1469
+ return s.headers = { ...c, ...p, ...r.headers }, {
1470
+ url: V(n),
1489
1471
  options: s
1490
1472
  };
1491
1473
  }
1492
1474
  };
1493
1475
  }, J = function(l) {
1494
- const n = Oe(l);
1476
+ const t = Se(l);
1495
1477
  return {
1496
1478
  /**
1497
1479
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -1502,11 +1484,11 @@ const Oe = function(l) {
1502
1484
  * @throws {RequiredError}
1503
1485
  */
1504
1486
  async listDataApps(e, r, a) {
1505
- const t = await n.listDataApps(e, r, a), o = l?.serverIndex ?? 0, s = P["DataAppsApi.listDataApps"]?.[o]?.url;
1506
- return (c, i) => O(t, u, g, l)(c, s || i);
1487
+ const n = await t.listDataApps(e, r, a), o = l?.serverIndex ?? 0, s = b["DataAppsApi.listDataApps"]?.[o]?.url;
1488
+ return (c, i) => O(n, u, g, l)(c, s || i);
1507
1489
  }
1508
1490
  };
1509
- }, Wa = function(l, n, e) {
1491
+ }, Ya = function(l, t, e) {
1510
1492
  const r = J(l);
1511
1493
  return {
1512
1494
  /**
@@ -1517,12 +1499,12 @@ const Oe = function(l) {
1517
1499
  * @param {*} [options] Override http request option.
1518
1500
  * @throws {RequiredError}
1519
1501
  */
1520
- listDataApps(a, t, o) {
1521
- return r.listDataApps(a, t, o).then((s) => s(e, n));
1502
+ listDataApps(a, n, o) {
1503
+ return r.listDataApps(a, n, o).then((s) => s(e, t));
1522
1504
  }
1523
1505
  };
1524
1506
  };
1525
- class Se extends I {
1507
+ class ke extends C {
1526
1508
  /**
1527
1509
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
1528
1510
  * @summary List package data apps
@@ -1530,10 +1512,9 @@ class Se extends I {
1530
1512
  * @param {string} packageName Name of the package
1531
1513
  * @param {*} [options] Override http request option.
1532
1514
  * @throws {RequiredError}
1533
- * @memberof DataAppsApi
1534
1515
  */
1535
- listDataApps(n, e, r) {
1536
- return J(this.configuration).listDataApps(n, e, r).then((a) => a(this.axios, this.basePath));
1516
+ listDataApps(t, e, r) {
1517
+ return J(this.configuration).listDataApps(t, e, r).then((a) => a(this.axios, this.basePath));
1537
1518
  }
1538
1519
  }
1539
1520
  const ye = function(l) {
@@ -1547,22 +1528,22 @@ const ye = function(l) {
1547
1528
  * @param {*} [options] Override http request option.
1548
1529
  * @throws {RequiredError}
1549
1530
  */
1550
- listDatabases: async (n, e, r, a = {}) => {
1551
- m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
1552
- const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1531
+ listDatabases: async (t, e, r, a = {}) => {
1532
+ h("listDatabases", "environmentName", t), h("listDatabases", "packageName", e);
1533
+ const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
1553
1534
  let s;
1554
1535
  l && (s = l.baseOptions);
1555
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1556
- r !== void 0 && (d.versionId = r), V(o, d);
1557
- let p = s && s.headers ? s.headers : {};
1558
- return c.headers = { ...i, ...p, ...a.headers }, {
1559
- url: v(o),
1536
+ const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1537
+ r !== void 0 && (p.versionId = r), i.Accept = "application/json", v(o, p);
1538
+ let d = s && s.headers ? s.headers : {};
1539
+ return c.headers = { ...i, ...d, ...a.headers }, {
1540
+ url: V(o),
1560
1541
  options: c
1561
1542
  };
1562
1543
  }
1563
1544
  };
1564
1545
  }, X = function(l) {
1565
- const n = ye(l);
1546
+ const t = ye(l);
1566
1547
  return {
1567
1548
  /**
1568
1549
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1573,12 +1554,12 @@ const ye = function(l) {
1573
1554
  * @param {*} [options] Override http request option.
1574
1555
  * @throws {RequiredError}
1575
1556
  */
1576
- async listDatabases(e, r, a, t) {
1577
- const o = await n.listDatabases(e, r, a, t), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1578
- return (i, d) => O(o, u, g, l)(i, c || d);
1557
+ async listDatabases(e, r, a, n) {
1558
+ const o = await t.listDatabases(e, r, a, n), s = l?.serverIndex ?? 0, c = b["DatabasesApi.listDatabases"]?.[s]?.url;
1559
+ return (i, p) => O(o, u, g, l)(i, c || p);
1579
1560
  }
1580
1561
  };
1581
- }, Ga = function(l, n, e) {
1562
+ }, $a = function(l, t, e) {
1582
1563
  const r = X(l);
1583
1564
  return {
1584
1565
  /**
@@ -1590,12 +1571,12 @@ const ye = function(l) {
1590
1571
  * @param {*} [options] Override http request option.
1591
1572
  * @throws {RequiredError}
1592
1573
  */
1593
- listDatabases(a, t, o, s) {
1594
- return r.listDatabases(a, t, o, s).then((c) => c(e, n));
1574
+ listDatabases(a, n, o, s) {
1575
+ return r.listDatabases(a, n, o, s).then((c) => c(e, t));
1595
1576
  }
1596
1577
  };
1597
1578
  };
1598
- class ke extends I {
1579
+ class Ae extends C {
1599
1580
  /**
1600
1581
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
1601
1582
  * @summary List embedded databases
@@ -1604,10 +1585,9 @@ class ke extends I {
1604
1585
  * @param {string} [versionId] Version identifier for the package
1605
1586
  * @param {*} [options] Override http request option.
1606
1587
  * @throws {RequiredError}
1607
- * @memberof DatabasesApi
1608
1588
  */
1609
- listDatabases(n, e, r, a) {
1610
- return X(this.configuration).listDatabases(n, e, r, a).then((t) => t(this.axios, this.basePath));
1589
+ listDatabases(t, e, r, a) {
1590
+ return X(this.configuration).listDatabases(t, e, r, a).then((n) => n(this.axios, this.basePath));
1611
1591
  }
1612
1592
  }
1613
1593
  const Ce = function(l) {
@@ -1619,16 +1599,16 @@ const Ce = function(l) {
1619
1599
  * @param {*} [options] Override http request option.
1620
1600
  * @throws {RequiredError}
1621
1601
  */
1622
- createEnvironment: async (n, e = {}) => {
1623
- m("createEnvironment", "environment", n);
1624
- const r = "/environments", a = new URL(r, b);
1625
- let t;
1626
- l && (t = l.baseOptions);
1627
- const o = { method: "POST", ...t, ...e }, s = {}, c = {};
1628
- s["Content-Type"] = "application/json", V(a, c);
1629
- let i = t && t.headers ? t.headers : {};
1630
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1631
- url: v(a),
1602
+ createEnvironment: async (t, e = {}) => {
1603
+ h("createEnvironment", "environment", t);
1604
+ const r = "/environments", a = new URL(r, P);
1605
+ let n;
1606
+ l && (n = l.baseOptions);
1607
+ const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1608
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
1609
+ let i = n && n.headers ? n.headers : {};
1610
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
1611
+ url: V(a),
1632
1612
  options: o
1633
1613
  };
1634
1614
  },
@@ -1639,16 +1619,16 @@ const Ce = function(l) {
1639
1619
  * @param {*} [options] Override http request option.
1640
1620
  * @throws {RequiredError}
1641
1621
  */
1642
- deleteEnvironment: async (n, e = {}) => {
1643
- m("deleteEnvironment", "environmentName", n);
1644
- const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
1645
- let t;
1646
- l && (t = l.baseOptions);
1647
- const o = { method: "DELETE", ...t, ...e }, s = {};
1648
- V(a, {});
1649
- let i = t && t.headers ? t.headers : {};
1622
+ deleteEnvironment: async (t, e = {}) => {
1623
+ h("deleteEnvironment", "environmentName", t);
1624
+ const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
1625
+ let n;
1626
+ l && (n = l.baseOptions);
1627
+ const o = { method: "DELETE", ...n, ...e }, s = {}, c = {};
1628
+ s.Accept = "application/json", v(a, c);
1629
+ let i = n && n.headers ? n.headers : {};
1650
1630
  return o.headers = { ...s, ...i, ...e.headers }, {
1651
- url: v(a),
1631
+ url: V(a),
1652
1632
  options: o
1653
1633
  };
1654
1634
  },
@@ -1660,16 +1640,16 @@ const Ce = function(l) {
1660
1640
  * @param {*} [options] Override http request option.
1661
1641
  * @throws {RequiredError}
1662
1642
  */
1663
- getEnvironment: async (n, e, r = {}) => {
1664
- m("getEnvironment", "environmentName", n);
1665
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1643
+ getEnvironment: async (t, e, r = {}) => {
1644
+ h("getEnvironment", "environmentName", t);
1645
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
1666
1646
  let o;
1667
1647
  l && (o = l.baseOptions);
1668
1648
  const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1669
- e !== void 0 && (i.reload = e), V(t, i);
1670
- let d = o && o.headers ? o.headers : {};
1671
- return s.headers = { ...c, ...d, ...r.headers }, {
1672
- url: v(t),
1649
+ e !== void 0 && (i.reload = e), c.Accept = "application/json", v(n, i);
1650
+ let p = o && o.headers ? o.headers : {};
1651
+ return s.headers = { ...c, ...p, ...r.headers }, {
1652
+ url: V(n),
1673
1653
  options: s
1674
1654
  };
1675
1655
  },
@@ -1679,16 +1659,16 @@ const Ce = function(l) {
1679
1659
  * @param {*} [options] Override http request option.
1680
1660
  * @throws {RequiredError}
1681
1661
  */
1682
- listEnvironments: async (n = {}) => {
1683
- const e = "/environments", r = new URL(e, b);
1662
+ listEnvironments: async (t = {}) => {
1663
+ const e = "/environments", r = new URL(e, P);
1684
1664
  let a;
1685
1665
  l && (a = l.baseOptions);
1686
- const t = { method: "GET", ...a, ...n }, o = {};
1687
- V(r, {});
1666
+ const n = { method: "GET", ...a, ...t }, o = {}, s = {};
1667
+ o.Accept = "application/json", v(r, s);
1688
1668
  let c = a && a.headers ? a.headers : {};
1689
- return t.headers = { ...o, ...c, ...n.headers }, {
1690
- url: v(r),
1691
- options: t
1669
+ return n.headers = { ...o, ...c, ...t.headers }, {
1670
+ url: V(r),
1671
+ options: n
1692
1672
  };
1693
1673
  },
1694
1674
  /**
@@ -1699,22 +1679,22 @@ const Ce = function(l) {
1699
1679
  * @param {*} [options] Override http request option.
1700
1680
  * @throws {RequiredError}
1701
1681
  */
1702
- updateEnvironment: async (n, e, r = {}) => {
1703
- m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
1704
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
1682
+ updateEnvironment: async (t, e, r = {}) => {
1683
+ h("updateEnvironment", "environmentName", t), h("updateEnvironment", "environment", e);
1684
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
1705
1685
  let o;
1706
1686
  l && (o = l.baseOptions);
1707
1687
  const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
1708
- c["Content-Type"] = "application/json", V(t, i);
1709
- let d = o && o.headers ? o.headers : {};
1710
- return s.headers = { ...c, ...d, ...r.headers }, s.data = y(e, s, l), {
1711
- url: v(t),
1688
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
1689
+ let p = o && o.headers ? o.headers : {};
1690
+ return s.headers = { ...c, ...p, ...r.headers }, s.data = k(e, s, l), {
1691
+ url: V(n),
1712
1692
  options: s
1713
1693
  };
1714
1694
  }
1715
1695
  };
1716
- }, N = function(l) {
1717
- const n = Ce(l);
1696
+ }, T = function(l) {
1697
+ const t = Ce(l);
1718
1698
  return {
1719
1699
  /**
1720
1700
  * 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.
@@ -1724,7 +1704,7 @@ const Ce = function(l) {
1724
1704
  * @throws {RequiredError}
1725
1705
  */
1726
1706
  async createEnvironment(e, r) {
1727
- const a = await n.createEnvironment(e, r), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1707
+ const a = await t.createEnvironment(e, r), n = l?.serverIndex ?? 0, o = b["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1728
1708
  return (s, c) => O(a, u, g, l)(s, o || c);
1729
1709
  },
1730
1710
  /**
@@ -1735,7 +1715,7 @@ const Ce = function(l) {
1735
1715
  * @throws {RequiredError}
1736
1716
  */
1737
1717
  async deleteEnvironment(e, r) {
1738
- const a = await n.deleteEnvironment(e, r), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1718
+ const a = await t.deleteEnvironment(e, r), n = l?.serverIndex ?? 0, o = b["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1739
1719
  return (s, c) => O(a, u, g, l)(s, o || c);
1740
1720
  },
1741
1721
  /**
@@ -1747,8 +1727,8 @@ const Ce = function(l) {
1747
1727
  * @throws {RequiredError}
1748
1728
  */
1749
1729
  async getEnvironment(e, r, a) {
1750
- const t = await n.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1751
- return (c, i) => O(t, u, g, l)(c, s || i);
1730
+ const n = await t.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = b["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1731
+ return (c, i) => O(n, u, g, l)(c, s || i);
1752
1732
  },
1753
1733
  /**
1754
1734
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
@@ -1757,8 +1737,8 @@ const Ce = function(l) {
1757
1737
  * @throws {RequiredError}
1758
1738
  */
1759
1739
  async listEnvironments(e) {
1760
- const r = await n.listEnvironments(e), a = l?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1761
- return (o, s) => O(r, u, g, l)(o, t || s);
1740
+ const r = await t.listEnvironments(e), a = l?.serverIndex ?? 0, n = b["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1741
+ return (o, s) => O(r, u, g, l)(o, n || s);
1762
1742
  },
1763
1743
  /**
1764
1744
  * 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.
@@ -1769,12 +1749,12 @@ const Ce = function(l) {
1769
1749
  * @throws {RequiredError}
1770
1750
  */
1771
1751
  async updateEnvironment(e, r, a) {
1772
- const t = await n.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1773
- return (c, i) => O(t, u, g, l)(c, s || i);
1752
+ const n = await t.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = b["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1753
+ return (c, i) => O(n, u, g, l)(c, s || i);
1774
1754
  }
1775
1755
  };
1776
- }, Ya = function(l, n, e) {
1777
- const r = N(l);
1756
+ }, Ka = function(l, t, e) {
1757
+ const r = T(l);
1778
1758
  return {
1779
1759
  /**
1780
1760
  * 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.
@@ -1783,8 +1763,8 @@ const Ce = function(l) {
1783
1763
  * @param {*} [options] Override http request option.
1784
1764
  * @throws {RequiredError}
1785
1765
  */
1786
- createEnvironment(a, t) {
1787
- return r.createEnvironment(a, t).then((o) => o(e, n));
1766
+ createEnvironment(a, n) {
1767
+ return r.createEnvironment(a, n).then((o) => o(e, t));
1788
1768
  },
1789
1769
  /**
1790
1770
  * 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.
@@ -1793,8 +1773,8 @@ const Ce = function(l) {
1793
1773
  * @param {*} [options] Override http request option.
1794
1774
  * @throws {RequiredError}
1795
1775
  */
1796
- deleteEnvironment(a, t) {
1797
- return r.deleteEnvironment(a, t).then((o) => o(e, n));
1776
+ deleteEnvironment(a, n) {
1777
+ return r.deleteEnvironment(a, n).then((o) => o(e, t));
1798
1778
  },
1799
1779
  /**
1800
1780
  * 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.
@@ -1804,8 +1784,8 @@ const Ce = function(l) {
1804
1784
  * @param {*} [options] Override http request option.
1805
1785
  * @throws {RequiredError}
1806
1786
  */
1807
- getEnvironment(a, t, o) {
1808
- return r.getEnvironment(a, t, o).then((s) => s(e, n));
1787
+ getEnvironment(a, n, o) {
1788
+ return r.getEnvironment(a, n, o).then((s) => s(e, t));
1809
1789
  },
1810
1790
  /**
1811
1791
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
@@ -1814,7 +1794,7 @@ const Ce = function(l) {
1814
1794
  * @throws {RequiredError}
1815
1795
  */
1816
1796
  listEnvironments(a) {
1817
- return r.listEnvironments(a).then((t) => t(e, n));
1797
+ return r.listEnvironments(a).then((n) => n(e, t));
1818
1798
  },
1819
1799
  /**
1820
1800
  * 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.
@@ -1824,22 +1804,21 @@ const Ce = function(l) {
1824
1804
  * @param {*} [options] Override http request option.
1825
1805
  * @throws {RequiredError}
1826
1806
  */
1827
- updateEnvironment(a, t, o) {
1828
- return r.updateEnvironment(a, t, o).then((s) => s(e, n));
1807
+ updateEnvironment(a, n, o) {
1808
+ return r.updateEnvironment(a, n, o).then((s) => s(e, t));
1829
1809
  }
1830
1810
  };
1831
1811
  };
1832
- class Ie extends I {
1812
+ class Ie extends C {
1833
1813
  /**
1834
1814
  * 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.
1835
1815
  * @summary Create a new environment
1836
1816
  * @param {Environment} environment
1837
1817
  * @param {*} [options] Override http request option.
1838
1818
  * @throws {RequiredError}
1839
- * @memberof EnvironmentsApi
1840
1819
  */
1841
- createEnvironment(n, e) {
1842
- return N(this.configuration).createEnvironment(n, e).then((r) => r(this.axios, this.basePath));
1820
+ createEnvironment(t, e) {
1821
+ return T(this.configuration).createEnvironment(t, e).then((r) => r(this.axios, this.basePath));
1843
1822
  }
1844
1823
  /**
1845
1824
  * 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.
@@ -1847,10 +1826,9 @@ class Ie extends I {
1847
1826
  * @param {string} environmentName Name of the environment
1848
1827
  * @param {*} [options] Override http request option.
1849
1828
  * @throws {RequiredError}
1850
- * @memberof EnvironmentsApi
1851
1829
  */
1852
- deleteEnvironment(n, e) {
1853
- return N(this.configuration).deleteEnvironment(n, e).then((r) => r(this.axios, this.basePath));
1830
+ deleteEnvironment(t, e) {
1831
+ return T(this.configuration).deleteEnvironment(t, e).then((r) => r(this.axios, this.basePath));
1854
1832
  }
1855
1833
  /**
1856
1834
  * 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.
@@ -1859,20 +1837,18 @@ class Ie extends I {
1859
1837
  * @param {boolean} [reload] Load / reload the environment before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
1860
1838
  * @param {*} [options] Override http request option.
1861
1839
  * @throws {RequiredError}
1862
- * @memberof EnvironmentsApi
1863
1840
  */
1864
- getEnvironment(n, e, r) {
1865
- return N(this.configuration).getEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
1841
+ getEnvironment(t, e, r) {
1842
+ return T(this.configuration).getEnvironment(t, e, r).then((a) => a(this.axios, this.basePath));
1866
1843
  }
1867
1844
  /**
1868
1845
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
1869
1846
  * @summary List all available environments
1870
1847
  * @param {*} [options] Override http request option.
1871
1848
  * @throws {RequiredError}
1872
- * @memberof EnvironmentsApi
1873
1849
  */
1874
- listEnvironments(n) {
1875
- return N(this.configuration).listEnvironments(n).then((e) => e(this.axios, this.basePath));
1850
+ listEnvironments(t) {
1851
+ return T(this.configuration).listEnvironments(t).then((e) => e(this.axios, this.basePath));
1876
1852
  }
1877
1853
  /**
1878
1854
  * 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.
@@ -1881,13 +1857,12 @@ class Ie extends I {
1881
1857
  * @param {Environment} environment
1882
1858
  * @param {*} [options] Override http request option.
1883
1859
  * @throws {RequiredError}
1884
- * @memberof EnvironmentsApi
1885
1860
  */
1886
- updateEnvironment(n, e, r) {
1887
- return N(this.configuration).updateEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
1861
+ updateEnvironment(t, e, r) {
1862
+ return T(this.configuration).updateEnvironment(t, e, r).then((a) => a(this.axios, this.basePath));
1888
1863
  }
1889
1864
  }
1890
- const Ae = function(l) {
1865
+ const xe = function(l) {
1891
1866
  return {
1892
1867
  /**
1893
1868
  * 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.
@@ -1898,16 +1873,16 @@ const Ae = function(l) {
1898
1873
  * @param {*} [options] Override http request option.
1899
1874
  * @throws {RequiredError}
1900
1875
  */
1901
- createMaterialization: async (n, e, r, a = {}) => {
1902
- m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
1903
- const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
1876
+ createMaterialization: async (t, e, r, a = {}) => {
1877
+ h("createMaterialization", "environmentName", t), h("createMaterialization", "packageName", e);
1878
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
1904
1879
  let s;
1905
1880
  l && (s = l.baseOptions);
1906
- const c = { method: "POST", ...s, ...a }, i = {}, d = {};
1907
- i["Content-Type"] = "application/json", V(o, d);
1908
- let p = s && s.headers ? s.headers : {};
1909
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
1910
- url: v(o),
1881
+ const c = { method: "POST", ...s, ...a }, i = {}, p = {};
1882
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
1883
+ let d = s && s.headers ? s.headers : {};
1884
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
1885
+ url: V(o),
1911
1886
  options: c
1912
1887
  };
1913
1888
  },
@@ -1921,16 +1896,16 @@ const Ae = function(l) {
1921
1896
  * @param {*} [options] Override http request option.
1922
1897
  * @throws {RequiredError}
1923
1898
  */
1924
- deleteMaterialization: async (n, e, r, a, t = {}) => {
1925
- m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", r);
1926
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
1899
+ deleteMaterialization: async (t, e, r, a, n = {}) => {
1900
+ h("deleteMaterialization", "environmentName", t), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", r);
1901
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
1927
1902
  let c;
1928
1903
  l && (c = l.baseOptions);
1929
- const i = { method: "DELETE", ...c, ...t }, d = {}, p = {};
1930
- a !== void 0 && (p.dropTables = a), V(s, p);
1931
- let h = c && c.headers ? c.headers : {};
1932
- return i.headers = { ...d, ...h, ...t.headers }, {
1933
- url: v(s),
1904
+ const i = { method: "DELETE", ...c, ...n }, p = {}, d = {};
1905
+ a !== void 0 && (d.dropTables = a), p.Accept = "application/json", v(s, d);
1906
+ let m = c && c.headers ? c.headers : {};
1907
+ return i.headers = { ...p, ...m, ...n.headers }, {
1908
+ url: V(s),
1934
1909
  options: i
1935
1910
  };
1936
1911
  },
@@ -1943,16 +1918,16 @@ const Ae = function(l) {
1943
1918
  * @param {*} [options] Override http request option.
1944
1919
  * @throws {RequiredError}
1945
1920
  */
1946
- getMaterialization: async (n, e, r, a = {}) => {
1947
- m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", r);
1948
- const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(t, b);
1921
+ getMaterialization: async (t, e, r, a = {}) => {
1922
+ h("getMaterialization", "environmentName", t), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", r);
1923
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(n, P);
1949
1924
  let s;
1950
1925
  l && (s = l.baseOptions);
1951
- const c = { method: "GET", ...s, ...a }, i = {};
1952
- V(o, {});
1953
- let p = s && s.headers ? s.headers : {};
1954
- return c.headers = { ...i, ...p, ...a.headers }, {
1955
- url: v(o),
1926
+ const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1927
+ i.Accept = "application/json", v(o, p);
1928
+ let d = s && s.headers ? s.headers : {};
1929
+ return c.headers = { ...i, ...d, ...a.headers }, {
1930
+ url: V(o),
1956
1931
  options: c
1957
1932
  };
1958
1933
  },
@@ -1966,16 +1941,16 @@ const Ae = function(l) {
1966
1941
  * @param {*} [options] Override http request option.
1967
1942
  * @throws {RequiredError}
1968
1943
  */
1969
- listMaterializations: async (n, e, r, a, t = {}) => {
1970
- m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
1971
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
1944
+ listMaterializations: async (t, e, r, a, n = {}) => {
1945
+ h("listMaterializations", "environmentName", t), h("listMaterializations", "packageName", e);
1946
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
1972
1947
  let c;
1973
1948
  l && (c = l.baseOptions);
1974
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
1975
- r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), V(s, p);
1976
- let h = c && c.headers ? c.headers : {};
1977
- return i.headers = { ...d, ...h, ...t.headers }, {
1978
- url: v(s),
1949
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
1950
+ r !== void 0 && (d.limit = r), a !== void 0 && (d.offset = a), p.Accept = "application/json", v(s, d);
1951
+ let m = c && c.headers ? c.headers : {};
1952
+ return i.headers = { ...p, ...m, ...n.headers }, {
1953
+ url: V(s),
1979
1954
  options: i
1980
1955
  };
1981
1956
  },
@@ -1989,22 +1964,22 @@ const Ae = function(l) {
1989
1964
  * @param {*} [options] Override http request option.
1990
1965
  * @throws {RequiredError}
1991
1966
  */
1992
- materializationAction: async (n, e, r, a, t = {}) => {
1993
- m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", r), m("materializationAction", "action", a);
1994
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
1967
+ materializationAction: async (t, e, r, a, n = {}) => {
1968
+ h("materializationAction", "environmentName", t), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", r), h("materializationAction", "action", a);
1969
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
1995
1970
  let c;
1996
1971
  l && (c = l.baseOptions);
1997
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
1998
- a !== void 0 && (p.action = a), V(s, p);
1999
- let h = c && c.headers ? c.headers : {};
2000
- return i.headers = { ...d, ...h, ...t.headers }, {
2001
- url: v(s),
1972
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
1973
+ a !== void 0 && (d.action = a), p.Accept = "application/json", v(s, d);
1974
+ let m = c && c.headers ? c.headers : {};
1975
+ return i.headers = { ...p, ...m, ...n.headers }, {
1976
+ url: V(s),
2002
1977
  options: i
2003
1978
  };
2004
1979
  }
2005
1980
  };
2006
- }, T = function(l) {
2007
- const n = Ae(l);
1981
+ }, U = function(l) {
1982
+ const t = xe(l);
2008
1983
  return {
2009
1984
  /**
2010
1985
  * 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.
@@ -2015,9 +1990,9 @@ const Ae = function(l) {
2015
1990
  * @param {*} [options] Override http request option.
2016
1991
  * @throws {RequiredError}
2017
1992
  */
2018
- async createMaterialization(e, r, a, t) {
2019
- const o = await n.createMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2020
- return (i, d) => O(o, u, g, l)(i, c || d);
1993
+ async createMaterialization(e, r, a, n) {
1994
+ const o = await t.createMaterialization(e, r, a, n), s = l?.serverIndex ?? 0, c = b["MaterializationsApi.createMaterialization"]?.[s]?.url;
1995
+ return (i, p) => O(o, u, g, l)(i, c || p);
2021
1996
  },
2022
1997
  /**
2023
1998
  * 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.
@@ -2029,9 +2004,9 @@ const Ae = function(l) {
2029
2004
  * @param {*} [options] Override http request option.
2030
2005
  * @throws {RequiredError}
2031
2006
  */
2032
- async deleteMaterialization(e, r, a, t, o) {
2033
- const s = await n.deleteMaterialization(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
2034
- return (d, p) => O(s, u, g, l)(d, i || p);
2007
+ async deleteMaterialization(e, r, a, n, o) {
2008
+ const s = await t.deleteMaterialization(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
2009
+ return (p, d) => O(s, u, g, l)(p, i || d);
2035
2010
  },
2036
2011
  /**
2037
2012
  *
@@ -2042,9 +2017,9 @@ const Ae = function(l) {
2042
2017
  * @param {*} [options] Override http request option.
2043
2018
  * @throws {RequiredError}
2044
2019
  */
2045
- async getMaterialization(e, r, a, t) {
2046
- const o = await n.getMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
2047
- return (i, d) => O(o, u, g, l)(i, c || d);
2020
+ async getMaterialization(e, r, a, n) {
2021
+ const o = await t.getMaterialization(e, r, a, n), s = l?.serverIndex ?? 0, c = b["MaterializationsApi.getMaterialization"]?.[s]?.url;
2022
+ return (i, p) => O(o, u, g, l)(i, c || p);
2048
2023
  },
2049
2024
  /**
2050
2025
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2056,9 +2031,9 @@ const Ae = function(l) {
2056
2031
  * @param {*} [options] Override http request option.
2057
2032
  * @throws {RequiredError}
2058
2033
  */
2059
- async listMaterializations(e, r, a, t, o) {
2060
- const s = await n.listMaterializations(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
2061
- return (d, p) => O(s, u, g, l)(d, i || p);
2034
+ async listMaterializations(e, r, a, n, o) {
2035
+ const s = await t.listMaterializations(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["MaterializationsApi.listMaterializations"]?.[c]?.url;
2036
+ return (p, d) => O(s, u, g, l)(p, i || d);
2062
2037
  },
2063
2038
  /**
2064
2039
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2070,13 +2045,13 @@ const Ae = function(l) {
2070
2045
  * @param {*} [options] Override http request option.
2071
2046
  * @throws {RequiredError}
2072
2047
  */
2073
- async materializationAction(e, r, a, t, o) {
2074
- const s = await n.materializationAction(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
2075
- return (d, p) => O(s, u, g, l)(d, i || p);
2048
+ async materializationAction(e, r, a, n, o) {
2049
+ const s = await t.materializationAction(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["MaterializationsApi.materializationAction"]?.[c]?.url;
2050
+ return (p, d) => O(s, u, g, l)(p, i || d);
2076
2051
  }
2077
2052
  };
2078
- }, Ka = function(l, n, e) {
2079
- const r = T(l);
2053
+ }, Ja = function(l, t, e) {
2054
+ const r = U(l);
2080
2055
  return {
2081
2056
  /**
2082
2057
  * 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.
@@ -2087,8 +2062,8 @@ const Ae = function(l) {
2087
2062
  * @param {*} [options] Override http request option.
2088
2063
  * @throws {RequiredError}
2089
2064
  */
2090
- createMaterialization(a, t, o, s) {
2091
- return r.createMaterialization(a, t, o, s).then((c) => c(e, n));
2065
+ createMaterialization(a, n, o, s) {
2066
+ return r.createMaterialization(a, n, o, s).then((c) => c(e, t));
2092
2067
  },
2093
2068
  /**
2094
2069
  * 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.
@@ -2100,8 +2075,8 @@ const Ae = function(l) {
2100
2075
  * @param {*} [options] Override http request option.
2101
2076
  * @throws {RequiredError}
2102
2077
  */
2103
- deleteMaterialization(a, t, o, s, c) {
2104
- return r.deleteMaterialization(a, t, o, s, c).then((i) => i(e, n));
2078
+ deleteMaterialization(a, n, o, s, c) {
2079
+ return r.deleteMaterialization(a, n, o, s, c).then((i) => i(e, t));
2105
2080
  },
2106
2081
  /**
2107
2082
  *
@@ -2112,8 +2087,8 @@ const Ae = function(l) {
2112
2087
  * @param {*} [options] Override http request option.
2113
2088
  * @throws {RequiredError}
2114
2089
  */
2115
- getMaterialization(a, t, o, s) {
2116
- return r.getMaterialization(a, t, o, s).then((c) => c(e, n));
2090
+ getMaterialization(a, n, o, s) {
2091
+ return r.getMaterialization(a, n, o, s).then((c) => c(e, t));
2117
2092
  },
2118
2093
  /**
2119
2094
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2125,8 +2100,8 @@ const Ae = function(l) {
2125
2100
  * @param {*} [options] Override http request option.
2126
2101
  * @throws {RequiredError}
2127
2102
  */
2128
- listMaterializations(a, t, o, s, c) {
2129
- return r.listMaterializations(a, t, o, s, c).then((i) => i(e, n));
2103
+ listMaterializations(a, n, o, s, c) {
2104
+ return r.listMaterializations(a, n, o, s, c).then((i) => i(e, t));
2130
2105
  },
2131
2106
  /**
2132
2107
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2138,12 +2113,12 @@ const Ae = function(l) {
2138
2113
  * @param {*} [options] Override http request option.
2139
2114
  * @throws {RequiredError}
2140
2115
  */
2141
- materializationAction(a, t, o, s, c) {
2142
- return r.materializationAction(a, t, o, s, c).then((i) => i(e, n));
2116
+ materializationAction(a, n, o, s, c) {
2117
+ return r.materializationAction(a, n, o, s, c).then((i) => i(e, t));
2143
2118
  }
2144
2119
  };
2145
2120
  };
2146
- class xe extends I {
2121
+ class Re extends C {
2147
2122
  /**
2148
2123
  * 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.
2149
2124
  * @summary Create a materialization
@@ -2152,10 +2127,9 @@ class xe extends I {
2152
2127
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
2153
2128
  * @param {*} [options] Override http request option.
2154
2129
  * @throws {RequiredError}
2155
- * @memberof MaterializationsApi
2156
2130
  */
2157
- createMaterialization(n, e, r, a) {
2158
- return T(this.configuration).createMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
2131
+ createMaterialization(t, e, r, a) {
2132
+ return U(this.configuration).createMaterialization(t, e, r, a).then((n) => n(this.axios, this.basePath));
2159
2133
  }
2160
2134
  /**
2161
2135
  * 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.
@@ -2166,10 +2140,9 @@ class xe extends I {
2166
2140
  * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\&#39;s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400 rather than read as &#x60;false&#x60;, which would delete the record, leave the tables on disk, and still answer 204.
2167
2141
  * @param {*} [options] Override http request option.
2168
2142
  * @throws {RequiredError}
2169
- * @memberof MaterializationsApi
2170
2143
  */
2171
- deleteMaterialization(n, e, r, a, t) {
2172
- return T(this.configuration).deleteMaterialization(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2144
+ deleteMaterialization(t, e, r, a, n) {
2145
+ return U(this.configuration).deleteMaterialization(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2173
2146
  }
2174
2147
  /**
2175
2148
  *
@@ -2179,10 +2152,9 @@ class xe extends I {
2179
2152
  * @param {string} materializationId ID of the materialization
2180
2153
  * @param {*} [options] Override http request option.
2181
2154
  * @throws {RequiredError}
2182
- * @memberof MaterializationsApi
2183
2155
  */
2184
- getMaterialization(n, e, r, a) {
2185
- return T(this.configuration).getMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
2156
+ getMaterialization(t, e, r, a) {
2157
+ return U(this.configuration).getMaterialization(t, e, r, a).then((n) => n(this.axios, this.basePath));
2186
2158
  }
2187
2159
  /**
2188
2160
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2193,10 +2165,9 @@ class xe extends I {
2193
2165
  * @param {number} [offset] Number of materializations to skip
2194
2166
  * @param {*} [options] Override http request option.
2195
2167
  * @throws {RequiredError}
2196
- * @memberof MaterializationsApi
2197
2168
  */
2198
- listMaterializations(n, e, r, a, t) {
2199
- return T(this.configuration).listMaterializations(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2169
+ listMaterializations(t, e, r, a, n) {
2170
+ return U(this.configuration).listMaterializations(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2200
2171
  }
2201
2172
  /**
2202
2173
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2207,15 +2178,14 @@ class xe extends I {
2207
2178
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
2208
2179
  * @param {*} [options] Override http request option.
2209
2180
  * @throws {RequiredError}
2210
- * @memberof MaterializationsApi
2211
2181
  */
2212
- materializationAction(n, e, r, a, t) {
2213
- return T(this.configuration).materializationAction(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2182
+ materializationAction(t, e, r, a, n) {
2183
+ return U(this.configuration).materializationAction(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2214
2184
  }
2215
2185
  }
2216
- const Ja = {
2186
+ const Xa = {
2217
2187
  Stop: "stop"
2218
- }, Re = function(l) {
2188
+ }, Ne = function(l) {
2219
2189
  return {
2220
2190
  /**
2221
2191
  * 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.
@@ -2227,16 +2197,16 @@ const Ja = {
2227
2197
  * @param {*} [options] Override http request option.
2228
2198
  * @throws {RequiredError}
2229
2199
  */
2230
- compileModelSource: async (n, e, r, a, t = {}) => {
2231
- m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", r), m("compileModelSource", "compileRequest", a);
2232
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
2200
+ compileModelSource: async (t, e, r, a, n = {}) => {
2201
+ h("compileModelSource", "environmentName", t), h("compileModelSource", "packageName", e), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", a);
2202
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2233
2203
  let c;
2234
2204
  l && (c = l.baseOptions);
2235
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2236
- d["Content-Type"] = "application/json", V(s, p);
2237
- let h = c && c.headers ? c.headers : {};
2238
- return i.headers = { ...d, ...h, ...t.headers }, i.data = y(a, i, l), {
2239
- url: v(s),
2205
+ const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2206
+ p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
2207
+ let m = c && c.headers ? c.headers : {};
2208
+ return i.headers = { ...p, ...m, ...n.headers }, i.data = k(a, i, l), {
2209
+ url: V(s),
2240
2210
  options: i
2241
2211
  };
2242
2212
  },
@@ -2251,17 +2221,17 @@ const Ja = {
2251
2221
  * @param {*} [options] Override http request option.
2252
2222
  * @throws {RequiredError}
2253
2223
  */
2254
- executeQueryModel: async (n, e, r, a, t, o = {}) => {
2255
- m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", r), m("executeQueryModel", "queryRequest", a);
2256
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, b);
2224
+ executeQueryModel: async (t, e, r, a, n, o = {}) => {
2225
+ h("executeQueryModel", "environmentName", t), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", a);
2226
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, P);
2257
2227
  let i;
2258
2228
  l && (i = l.baseOptions);
2259
- const d = { method: "POST", ...i, ...o }, p = {}, h = {};
2260
- t !== void 0 && (h.includeHiddenFilesAndSources = t), p["Content-Type"] = "application/json", V(c, h);
2229
+ const p = { method: "POST", ...i, ...o }, d = {}, m = {};
2230
+ n !== void 0 && (m.includeHiddenFilesAndSources = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, m);
2261
2231
  let S = i && i.headers ? i.headers : {};
2262
- return d.headers = { ...p, ...S, ...o.headers }, d.data = y(a, d, l), {
2263
- url: v(c),
2264
- options: d
2232
+ return p.headers = { ...d, ...S, ...o.headers }, p.data = k(a, p, l), {
2233
+ url: V(c),
2234
+ options: p
2265
2235
  };
2266
2236
  },
2267
2237
  /**
@@ -2275,21 +2245,21 @@ const Ja = {
2275
2245
  * @param {*} [options] Override http request option.
2276
2246
  * @throws {RequiredError}
2277
2247
  */
2278
- getModel: async (n, e, r, a, t, o = {}) => {
2279
- m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", r);
2280
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, b);
2248
+ getModel: async (t, e, r, a, n, o = {}) => {
2249
+ h("getModel", "environmentName", t), h("getModel", "packageName", e), h("getModel", "path", r);
2250
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, P);
2281
2251
  let i;
2282
2252
  l && (i = l.baseOptions);
2283
- const d = { method: "GET", ...i, ...o }, p = {}, h = {};
2284
- a !== void 0 && (h.versionId = a), t !== void 0 && (h.includeHiddenFilesAndSources = t), V(c, h);
2253
+ const p = { method: "GET", ...i, ...o }, d = {}, m = {};
2254
+ a !== void 0 && (m.versionId = a), n !== void 0 && (m.includeHiddenFilesAndSources = n), d.Accept = "application/json", v(c, m);
2285
2255
  let S = i && i.headers ? i.headers : {};
2286
- return d.headers = { ...p, ...S, ...o.headers }, {
2287
- url: v(c),
2288
- options: d
2256
+ return p.headers = { ...d, ...S, ...o.headers }, {
2257
+ url: V(c),
2258
+ options: p
2289
2259
  };
2290
2260
  },
2291
2261
  /**
2292
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the file is on the package\'s surface, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed and `onSurface` marks the ones on the surface. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2262
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2293
2263
  * @summary List package models
2294
2264
  * @param {string} environmentName Name of the environment
2295
2265
  * @param {string} packageName Name of the package
@@ -2298,16 +2268,16 @@ const Ja = {
2298
2268
  * @param {*} [options] Override http request option.
2299
2269
  * @throws {RequiredError}
2300
2270
  */
2301
- listModels: async (n, e, r, a, t = {}) => {
2302
- m("listModels", "environmentName", n), m("listModels", "packageName", e);
2303
- const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
2271
+ listModels: async (t, e, r, a, n = {}) => {
2272
+ h("listModels", "environmentName", t), h("listModels", "packageName", e);
2273
+ const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2304
2274
  let c;
2305
2275
  l && (c = l.baseOptions);
2306
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2307
- r !== void 0 && (p.versionId = r), a !== void 0 && (p.includeHiddenFilesAndSources = a), V(s, p);
2308
- let h = c && c.headers ? c.headers : {};
2309
- return i.headers = { ...d, ...h, ...t.headers }, {
2310
- url: v(s),
2276
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2277
+ r !== void 0 && (d.versionId = r), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
2278
+ let m = c && c.headers ? c.headers : {};
2279
+ return i.headers = { ...p, ...m, ...n.headers }, {
2280
+ url: V(s),
2311
2281
  options: i
2312
2282
  };
2313
2283
  },
@@ -2322,22 +2292,22 @@ const Ja = {
2322
2292
  * @param {*} [options] Override http request option.
2323
2293
  * @throws {RequiredError}
2324
2294
  */
2325
- updateModelSource: async (n, e, r, a, t, o = {}) => {
2326
- m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", r), m("updateModelSource", "modelSourceWriteRequest", a);
2327
- const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, b);
2295
+ updateModelSource: async (t, e, r, a, n, o = {}) => {
2296
+ h("updateModelSource", "environmentName", t), h("updateModelSource", "packageName", e), h("updateModelSource", "path", r), h("updateModelSource", "modelSourceWriteRequest", a);
2297
+ const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, P);
2328
2298
  let i;
2329
2299
  l && (i = l.baseOptions);
2330
- const d = { method: "PUT", ...i, ...o }, p = {}, h = {};
2331
- t !== void 0 && (h.versionId = t), p["Content-Type"] = "application/json", V(c, h);
2300
+ const p = { method: "PUT", ...i, ...o }, d = {}, m = {};
2301
+ n !== void 0 && (m.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, m);
2332
2302
  let S = i && i.headers ? i.headers : {};
2333
- return d.headers = { ...p, ...S, ...o.headers }, d.data = y(a, d, l), {
2334
- url: v(c),
2335
- options: d
2303
+ return p.headers = { ...d, ...S, ...o.headers }, p.data = k(a, p, l), {
2304
+ url: V(c),
2305
+ options: p
2336
2306
  };
2337
2307
  }
2338
2308
  };
2339
- }, U = function(l) {
2340
- const n = Re(l);
2309
+ }, w = function(l) {
2310
+ const t = Ne(l);
2341
2311
  return {
2342
2312
  /**
2343
2313
  * 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.
@@ -2349,9 +2319,9 @@ const Ja = {
2349
2319
  * @param {*} [options] Override http request option.
2350
2320
  * @throws {RequiredError}
2351
2321
  */
2352
- async compileModelSource(e, r, a, t, o) {
2353
- const s = await n.compileModelSource(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2354
- return (d, p) => O(s, u, g, l)(d, i || p);
2322
+ async compileModelSource(e, r, a, n, o) {
2323
+ const s = await t.compileModelSource(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ModelsApi.compileModelSource"]?.[c]?.url;
2324
+ return (p, d) => O(s, u, g, l)(p, i || d);
2355
2325
  },
2356
2326
  /**
2357
2327
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
@@ -2364,9 +2334,9 @@ const Ja = {
2364
2334
  * @param {*} [options] Override http request option.
2365
2335
  * @throws {RequiredError}
2366
2336
  */
2367
- async executeQueryModel(e, r, a, t, o, s) {
2368
- const c = await n.executeQueryModel(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ModelsApi.executeQueryModel"]?.[i]?.url;
2369
- return (p, h) => O(c, u, g, l)(p, d || h);
2337
+ async executeQueryModel(e, r, a, n, o, s) {
2338
+ const c = await t.executeQueryModel(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ModelsApi.executeQueryModel"]?.[i]?.url;
2339
+ return (d, m) => O(c, u, g, l)(d, p || m);
2370
2340
  },
2371
2341
  /**
2372
2342
  * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (`notebooks/_*.malloy` with an `## artifact` note) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; the text of a dashboard is always returned.
@@ -2379,12 +2349,12 @@ const Ja = {
2379
2349
  * @param {*} [options] Override http request option.
2380
2350
  * @throws {RequiredError}
2381
2351
  */
2382
- async getModel(e, r, a, t, o, s) {
2383
- const c = await n.getModel(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ModelsApi.getModel"]?.[i]?.url;
2384
- return (p, h) => O(c, u, g, l)(p, d || h);
2352
+ async getModel(e, r, a, n, o, s) {
2353
+ const c = await t.getModel(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ModelsApi.getModel"]?.[i]?.url;
2354
+ return (d, m) => O(c, u, g, l)(d, p || m);
2385
2355
  },
2386
2356
  /**
2387
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the file is on the package\'s surface, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed and `onSurface` marks the ones on the surface. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2357
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2388
2358
  * @summary List package models
2389
2359
  * @param {string} environmentName Name of the environment
2390
2360
  * @param {string} packageName Name of the package
@@ -2393,9 +2363,9 @@ const Ja = {
2393
2363
  * @param {*} [options] Override http request option.
2394
2364
  * @throws {RequiredError}
2395
2365
  */
2396
- async listModels(e, r, a, t, o) {
2397
- const s = await n.listModels(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.listModels"]?.[c]?.url;
2398
- return (d, p) => O(s, u, g, l)(d, i || p);
2366
+ async listModels(e, r, a, n, o) {
2367
+ const s = await t.listModels(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["ModelsApi.listModels"]?.[c]?.url;
2368
+ return (p, d) => O(s, u, g, l)(p, i || d);
2399
2369
  },
2400
2370
  /**
2401
2371
  * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
@@ -2408,13 +2378,13 @@ const Ja = {
2408
2378
  * @param {*} [options] Override http request option.
2409
2379
  * @throws {RequiredError}
2410
2380
  */
2411
- async updateModelSource(e, r, a, t, o, s) {
2412
- const c = await n.updateModelSource(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ModelsApi.updateModelSource"]?.[i]?.url;
2413
- return (p, h) => O(c, u, g, l)(p, d || h);
2381
+ async updateModelSource(e, r, a, n, o, s) {
2382
+ const c = await t.updateModelSource(e, r, a, n, o, s), i = l?.serverIndex ?? 0, p = b["ModelsApi.updateModelSource"]?.[i]?.url;
2383
+ return (d, m) => O(c, u, g, l)(d, p || m);
2414
2384
  }
2415
2385
  };
2416
- }, Xa = function(l, n, e) {
2417
- const r = U(l);
2386
+ }, Za = function(l, t, e) {
2387
+ const r = w(l);
2418
2388
  return {
2419
2389
  /**
2420
2390
  * 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.
@@ -2426,8 +2396,8 @@ const Ja = {
2426
2396
  * @param {*} [options] Override http request option.
2427
2397
  * @throws {RequiredError}
2428
2398
  */
2429
- compileModelSource(a, t, o, s, c) {
2430
- return r.compileModelSource(a, t, o, s, c).then((i) => i(e, n));
2399
+ compileModelSource(a, n, o, s, c) {
2400
+ return r.compileModelSource(a, n, o, s, c).then((i) => i(e, t));
2431
2401
  },
2432
2402
  /**
2433
2403
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
@@ -2440,8 +2410,8 @@ const Ja = {
2440
2410
  * @param {*} [options] Override http request option.
2441
2411
  * @throws {RequiredError}
2442
2412
  */
2443
- executeQueryModel(a, t, o, s, c, i) {
2444
- return r.executeQueryModel(a, t, o, s, c, i).then((d) => d(e, n));
2413
+ executeQueryModel(a, n, o, s, c, i) {
2414
+ return r.executeQueryModel(a, n, o, s, c, i).then((p) => p(e, t));
2445
2415
  },
2446
2416
  /**
2447
2417
  * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (`notebooks/_*.malloy` with an `## artifact` note) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; the text of a dashboard is always returned.
@@ -2454,11 +2424,11 @@ const Ja = {
2454
2424
  * @param {*} [options] Override http request option.
2455
2425
  * @throws {RequiredError}
2456
2426
  */
2457
- getModel(a, t, o, s, c, i) {
2458
- return r.getModel(a, t, o, s, c, i).then((d) => d(e, n));
2427
+ getModel(a, n, o, s, c, i) {
2428
+ return r.getModel(a, n, o, s, c, i).then((p) => p(e, t));
2459
2429
  },
2460
2430
  /**
2461
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the file is on the package\'s surface, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed and `onSurface` marks the ones on the surface. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2431
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2462
2432
  * @summary List package models
2463
2433
  * @param {string} environmentName Name of the environment
2464
2434
  * @param {string} packageName Name of the package
@@ -2467,8 +2437,8 @@ const Ja = {
2467
2437
  * @param {*} [options] Override http request option.
2468
2438
  * @throws {RequiredError}
2469
2439
  */
2470
- listModels(a, t, o, s, c) {
2471
- return r.listModels(a, t, o, s, c).then((i) => i(e, n));
2440
+ listModels(a, n, o, s, c) {
2441
+ return r.listModels(a, n, o, s, c).then((i) => i(e, t));
2472
2442
  },
2473
2443
  /**
2474
2444
  * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
@@ -2481,12 +2451,12 @@ const Ja = {
2481
2451
  * @param {*} [options] Override http request option.
2482
2452
  * @throws {RequiredError}
2483
2453
  */
2484
- updateModelSource(a, t, o, s, c, i) {
2485
- return r.updateModelSource(a, t, o, s, c, i).then((d) => d(e, n));
2454
+ updateModelSource(a, n, o, s, c, i) {
2455
+ return r.updateModelSource(a, n, o, s, c, i).then((p) => p(e, t));
2486
2456
  }
2487
2457
  };
2488
2458
  };
2489
- class Ne extends I {
2459
+ class Te extends C {
2490
2460
  /**
2491
2461
  * 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.
2492
2462
  * @summary Compile Malloy source code
@@ -2496,10 +2466,9 @@ class Ne extends I {
2496
2466
  * @param {CompileRequest} compileRequest
2497
2467
  * @param {*} [options] Override http request option.
2498
2468
  * @throws {RequiredError}
2499
- * @memberof ModelsApi
2500
2469
  */
2501
- compileModelSource(n, e, r, a, t) {
2502
- return U(this.configuration).compileModelSource(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2470
+ compileModelSource(t, e, r, a, n) {
2471
+ return w(this.configuration).compileModelSource(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2503
2472
  }
2504
2473
  /**
2505
2474
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
@@ -2511,10 +2480,9 @@ class Ne extends I {
2511
2480
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
2512
2481
  * @param {*} [options] Override http request option.
2513
2482
  * @throws {RequiredError}
2514
- * @memberof ModelsApi
2515
2483
  */
2516
- executeQueryModel(n, e, r, a, t, o) {
2517
- return U(this.configuration).executeQueryModel(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
2484
+ executeQueryModel(t, e, r, a, n, o) {
2485
+ return w(this.configuration).executeQueryModel(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
2518
2486
  }
2519
2487
  /**
2520
2488
  * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Dashboard files and served notebooks (`notebooks/_*.malloy` with an `## artifact` note) are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish; the text of a dashboard is always returned.
@@ -2526,13 +2494,12 @@ class Ne extends I {
2526
2494
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
2527
2495
  * @param {*} [options] Override http request option.
2528
2496
  * @throws {RequiredError}
2529
- * @memberof ModelsApi
2530
2497
  */
2531
- getModel(n, e, r, a, t, o) {
2532
- return U(this.configuration).getModel(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
2498
+ getModel(t, e, r, a, n, o) {
2499
+ return w(this.configuration).getModel(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
2533
2500
  }
2534
2501
  /**
2535
- * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the file is on the package\'s surface, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed and `onSurface` marks the ones on the surface. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2502
+ * Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Dashboard files are listed by the dashboards route either way. Served notebooks (`.malloy` files under `notebooks/` that carry an `## artifact` note) are not models here, with or without a surface; they are listed by list-notebooks.
2536
2503
  * @summary List package models
2537
2504
  * @param {string} environmentName Name of the environment
2538
2505
  * @param {string} packageName Name of the package
@@ -2540,10 +2507,9 @@ class Ne extends I {
2540
2507
  * @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root &#x60;index.malloy&#x60;, or a legacy &#x60;explores&#x60;) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as &#x60;queryableSources: \&quot;all\&quot;&#x60; does for every request. &#x60;#(authorize)&#x60; and &#x60;#(access_filter)&#x60; still apply: it lifts curation, never the lock. The model GET goes one step further than &#x60;queryableSources: \&quot;all\&quot;&#x60;: it returns the file\&#39;s &#x60;sourceText&#x60; even when that text names a source the file does not publish. That text can include &#x60;#(authorize)&#x60; expressions, &#x60;given:&#x60; defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it. The notebook-cell route, the dashboards route, the MCP tools, and the legacy &#x60;/projects/...&#x60; aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\&#39;s hidden files, such as its authors. Only &#x60;true&#x60; and &#x60;false&#x60; are accepted. Any other value is refused with 400.
2541
2508
  * @param {*} [options] Override http request option.
2542
2509
  * @throws {RequiredError}
2543
- * @memberof ModelsApi
2544
2510
  */
2545
- listModels(n, e, r, a, t) {
2546
- return U(this.configuration).listModels(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2511
+ listModels(t, e, r, a, n) {
2512
+ return w(this.configuration).listModels(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2547
2513
  }
2548
2514
  /**
2549
2515
  * Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
@@ -2555,13 +2521,12 @@ class Ne extends I {
2555
2521
  * @param {string} [versionId] Version identifier for the package
2556
2522
  * @param {*} [options] Override http request option.
2557
2523
  * @throws {RequiredError}
2558
- * @memberof ModelsApi
2559
2524
  */
2560
- updateModelSource(n, e, r, a, t, o) {
2561
- return U(this.configuration).updateModelSource(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
2525
+ updateModelSource(t, e, r, a, n, o) {
2526
+ return w(this.configuration).updateModelSource(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
2562
2527
  }
2563
2528
  }
2564
- const Te = function(l) {
2529
+ const Ue = function(l) {
2565
2530
  return {
2566
2531
  /**
2567
2532
  * 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. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -2577,16 +2542,16 @@ const Te = function(l) {
2577
2542
  * @param {*} [options] Override http request option.
2578
2543
  * @throws {RequiredError}
2579
2544
  */
2580
- executeNotebookCell: async (n, e, r, a, t, o, s, c, i = {}) => {
2581
- m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", r), m("executeNotebookCell", "cellIndex", a);
2582
- const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, b);
2583
- let h;
2584
- l && (h = l.baseOptions);
2585
- const S = { method: "GET", ...h, ...i }, E = {}, A = {};
2586
- t !== void 0 && (A.versionId = t), o !== void 0 && (A.filter_params = o), s !== void 0 && (A.bypass_filters = s), c !== void 0 && (A.givens = c), V(p, A);
2587
- let $ = h && h.headers ? h.headers : {};
2588
- return S.headers = { ...E, ...$, ...i.headers }, {
2589
- url: v(p),
2545
+ executeNotebookCell: async (t, e, r, a, n, o, s, c, i = {}) => {
2546
+ h("executeNotebookCell", "environmentName", t), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", a);
2547
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, P);
2548
+ let m;
2549
+ l && (m = l.baseOptions);
2550
+ const S = { method: "GET", ...m, ...i }, R = {}, I = {};
2551
+ n !== void 0 && (I.versionId = n), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), c !== void 0 && (I.givens = c), R.Accept = "application/json", v(d, I);
2552
+ let q = m && m.headers ? m.headers : {};
2553
+ return S.headers = { ...R, ...q, ...i.headers }, {
2554
+ url: V(d),
2590
2555
  options: S
2591
2556
  };
2592
2557
  },
@@ -2600,16 +2565,16 @@ const Te = function(l) {
2600
2565
  * @param {*} [options] Override http request option.
2601
2566
  * @throws {RequiredError}
2602
2567
  */
2603
- getNotebook: async (n, e, r, a, t = {}) => {
2604
- m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", r);
2605
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
2568
+ getNotebook: async (t, e, r, a, n = {}) => {
2569
+ h("getNotebook", "environmentName", t), h("getNotebook", "packageName", e), h("getNotebook", "path", r);
2570
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2606
2571
  let c;
2607
2572
  l && (c = l.baseOptions);
2608
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2609
- a !== void 0 && (p.versionId = a), V(s, p);
2610
- let h = c && c.headers ? c.headers : {};
2611
- return i.headers = { ...d, ...h, ...t.headers }, {
2612
- url: v(s),
2573
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2574
+ a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
2575
+ let m = c && c.headers ? c.headers : {};
2576
+ return i.headers = { ...p, ...m, ...n.headers }, {
2577
+ url: V(s),
2613
2578
  options: i
2614
2579
  };
2615
2580
  },
@@ -2622,22 +2587,22 @@ const Te = function(l) {
2622
2587
  * @param {*} [options] Override http request option.
2623
2588
  * @throws {RequiredError}
2624
2589
  */
2625
- listNotebooks: async (n, e, r, a = {}) => {
2626
- m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
2627
- const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2590
+ listNotebooks: async (t, e, r, a = {}) => {
2591
+ h("listNotebooks", "environmentName", t), h("listNotebooks", "packageName", e);
2592
+ const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
2628
2593
  let s;
2629
2594
  l && (s = l.baseOptions);
2630
- const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2631
- r !== void 0 && (d.versionId = r), V(o, d);
2632
- let p = s && s.headers ? s.headers : {};
2633
- return c.headers = { ...i, ...p, ...a.headers }, {
2634
- url: v(o),
2595
+ const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2596
+ r !== void 0 && (p.versionId = r), i.Accept = "application/json", v(o, p);
2597
+ let d = s && s.headers ? s.headers : {};
2598
+ return c.headers = { ...i, ...d, ...a.headers }, {
2599
+ url: V(o),
2635
2600
  options: c
2636
2601
  };
2637
2602
  }
2638
2603
  };
2639
- }, Q = function(l) {
2640
- const n = Te(l);
2604
+ }, F = function(l) {
2605
+ const t = Ue(l);
2641
2606
  return {
2642
2607
  /**
2643
2608
  * 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. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -2653,9 +2618,9 @@ const Te = function(l) {
2653
2618
  * @param {*} [options] Override http request option.
2654
2619
  * @throws {RequiredError}
2655
2620
  */
2656
- async executeNotebookCell(e, r, a, t, o, s, c, i, d) {
2657
- const p = await n.executeNotebookCell(e, r, a, t, o, s, c, i, d), h = l?.serverIndex ?? 0, S = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
2658
- return (E, A) => O(p, u, g, l)(E, S || A);
2621
+ async executeNotebookCell(e, r, a, n, o, s, c, i, p) {
2622
+ const d = await t.executeNotebookCell(e, r, a, n, o, s, c, i, p), m = l?.serverIndex ?? 0, S = b["NotebooksApi.executeNotebookCell"]?.[m]?.url;
2623
+ return (R, I) => O(d, u, g, l)(R, S || I);
2659
2624
  },
2660
2625
  /**
2661
2626
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served `notebooks/_*.malloy` (one with an `## artifact` note) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -2667,9 +2632,9 @@ const Te = function(l) {
2667
2632
  * @param {*} [options] Override http request option.
2668
2633
  * @throws {RequiredError}
2669
2634
  */
2670
- async getNotebook(e, r, a, t, o) {
2671
- const s = await n.getNotebook(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2672
- return (d, p) => O(s, u, g, l)(d, i || p);
2635
+ async getNotebook(e, r, a, n, o) {
2636
+ const s = await t.getNotebook(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["NotebooksApi.getNotebook"]?.[c]?.url;
2637
+ return (p, d) => O(s, u, g, l)(p, i || d);
2673
2638
  },
2674
2639
  /**
2675
2640
  * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file directly under `notebooks/` that has a model-level `## artifact` note. Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2680,13 +2645,13 @@ const Te = function(l) {
2680
2645
  * @param {*} [options] Override http request option.
2681
2646
  * @throws {RequiredError}
2682
2647
  */
2683
- async listNotebooks(e, r, a, t) {
2684
- const o = await n.listNotebooks(e, r, a, t), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2685
- return (i, d) => O(o, u, g, l)(i, c || d);
2648
+ async listNotebooks(e, r, a, n) {
2649
+ const o = await t.listNotebooks(e, r, a, n), s = l?.serverIndex ?? 0, c = b["NotebooksApi.listNotebooks"]?.[s]?.url;
2650
+ return (i, p) => O(o, u, g, l)(i, c || p);
2686
2651
  }
2687
2652
  };
2688
- }, Za = function(l, n, e) {
2689
- const r = Q(l);
2653
+ }, et = function(l, t, e) {
2654
+ const r = F(l);
2690
2655
  return {
2691
2656
  /**
2692
2657
  * 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. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
@@ -2702,8 +2667,8 @@ const Te = function(l) {
2702
2667
  * @param {*} [options] Override http request option.
2703
2668
  * @throws {RequiredError}
2704
2669
  */
2705
- executeNotebookCell(a, t, o, s, c, i, d, p, h) {
2706
- return r.executeNotebookCell(a, t, o, s, c, i, d, p, h).then((S) => S(e, n));
2670
+ executeNotebookCell(a, n, o, s, c, i, p, d, m) {
2671
+ return r.executeNotebookCell(a, n, o, s, c, i, p, d, m).then((S) => S(e, t));
2707
2672
  },
2708
2673
  /**
2709
2674
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served `notebooks/_*.malloy` (one with an `## artifact` note) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -2715,8 +2680,8 @@ const Te = function(l) {
2715
2680
  * @param {*} [options] Override http request option.
2716
2681
  * @throws {RequiredError}
2717
2682
  */
2718
- getNotebook(a, t, o, s, c) {
2719
- return r.getNotebook(a, t, o, s, c).then((i) => i(e, n));
2683
+ getNotebook(a, n, o, s, c) {
2684
+ return r.getNotebook(a, n, o, s, c).then((i) => i(e, t));
2720
2685
  },
2721
2686
  /**
2722
2687
  * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file directly under `notebooks/` that has a model-level `## artifact` note. Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2727,12 +2692,12 @@ const Te = function(l) {
2727
2692
  * @param {*} [options] Override http request option.
2728
2693
  * @throws {RequiredError}
2729
2694
  */
2730
- listNotebooks(a, t, o, s) {
2731
- return r.listNotebooks(a, t, o, s).then((c) => c(e, n));
2695
+ listNotebooks(a, n, o, s) {
2696
+ return r.listNotebooks(a, n, o, s).then((c) => c(e, t));
2732
2697
  }
2733
2698
  };
2734
2699
  };
2735
- class Ue extends I {
2700
+ class we extends C {
2736
2701
  /**
2737
2702
  * 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. A served `notebooks/_*.malloy` answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
2738
2703
  * @summary Execute a specific notebook cell
@@ -2746,10 +2711,9 @@ class Ue extends I {
2746
2711
  * @param {string} [givens] A &#x60;GivenValues&#x60; object, JSON-encoded so it can travel in a query string. Values are typed as &#x60;GivenValues&#x60; describes them, not string-encoded as &#x60;EncodedGivenValues&#x60; would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
2747
2712
  * @param {*} [options] Override http request option.
2748
2713
  * @throws {RequiredError}
2749
- * @memberof NotebooksApi
2750
2714
  */
2751
- executeNotebookCell(n, e, r, a, t, o, s, c, i) {
2752
- return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, c, i).then((d) => d(this.axios, this.basePath));
2715
+ executeNotebookCell(t, e, r, a, n, o, s, c, i) {
2716
+ return F(this.configuration).executeNotebookCell(t, e, r, a, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
2753
2717
  }
2754
2718
  /**
2755
2719
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. A served `notebooks/_*.malloy` (one with an `## artifact` note) answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
@@ -2760,10 +2724,9 @@ class Ue extends I {
2760
2724
  * @param {string} [versionId] Version identifier for the package
2761
2725
  * @param {*} [options] Override http request option.
2762
2726
  * @throws {RequiredError}
2763
- * @memberof NotebooksApi
2764
2727
  */
2765
- getNotebook(n, e, r, a, t) {
2766
- return Q(this.configuration).getNotebook(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2728
+ getNotebook(t, e, r, a, n) {
2729
+ return F(this.configuration).getNotebook(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
2767
2730
  }
2768
2731
  /**
2769
2732
  * Retrieves a list of all Malloy notebooks within the specified package: every `.malloynb` file, and every `.malloy` file directly under `notebooks/` that has a model-level `## artifact` note. Each notebook entry includes the relative path, package name, title, description, and any compilation or reading error. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2773,16 +2736,15 @@ class Ue extends I {
2773
2736
  * @param {string} [versionId] Version identifier for the package
2774
2737
  * @param {*} [options] Override http request option.
2775
2738
  * @throws {RequiredError}
2776
- * @memberof NotebooksApi
2777
2739
  */
2778
- listNotebooks(n, e, r, a) {
2779
- return Q(this.configuration).listNotebooks(n, e, r, a).then((t) => t(this.axios, this.basePath));
2740
+ listNotebooks(t, e, r, a) {
2741
+ return F(this.configuration).listNotebooks(t, e, r, a).then((n) => n(this.axios, this.basePath));
2780
2742
  }
2781
2743
  }
2782
- const et = {
2744
+ const at = {
2783
2745
  True: "true",
2784
2746
  False: "false"
2785
- }, we = function(l) {
2747
+ }, Ee = function(l) {
2786
2748
  return {
2787
2749
  /**
2788
2750
  * 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.
@@ -2792,16 +2754,16 @@ const et = {
2792
2754
  * @param {*} [options] Override http request option.
2793
2755
  * @throws {RequiredError}
2794
2756
  */
2795
- createPackage: async (n, e, r = {}) => {
2796
- m("createPackage", "environmentName", n), m("createPackage", "_package", e);
2797
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
2757
+ createPackage: async (t, e, r = {}) => {
2758
+ h("createPackage", "environmentName", t), h("createPackage", "_package", e);
2759
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
2798
2760
  let o;
2799
2761
  l && (o = l.baseOptions);
2800
2762
  const s = { method: "POST", ...o, ...r }, c = {}, i = {};
2801
- c["Content-Type"] = "application/json", V(t, i);
2802
- let d = o && o.headers ? o.headers : {};
2803
- return s.headers = { ...c, ...d, ...r.headers }, s.data = y(e, s, l), {
2804
- url: v(t),
2763
+ c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
2764
+ let p = o && o.headers ? o.headers : {};
2765
+ return s.headers = { ...c, ...p, ...r.headers }, s.data = k(e, s, l), {
2766
+ url: V(n),
2805
2767
  options: s
2806
2768
  };
2807
2769
  },
@@ -2813,16 +2775,16 @@ const et = {
2813
2775
  * @param {*} [options] Override http request option.
2814
2776
  * @throws {RequiredError}
2815
2777
  */
2816
- deletePackage: async (n, e, r = {}) => {
2817
- m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
2818
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
2778
+ deletePackage: async (t, e, r = {}) => {
2779
+ h("deletePackage", "environmentName", t), h("deletePackage", "packageName", e);
2780
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
2819
2781
  let o;
2820
2782
  l && (o = l.baseOptions);
2821
- const s = { method: "DELETE", ...o, ...r }, c = {};
2822
- V(t, {});
2823
- let d = o && o.headers ? o.headers : {};
2824
- return s.headers = { ...c, ...d, ...r.headers }, {
2825
- url: v(t),
2783
+ const s = { method: "DELETE", ...o, ...r }, c = {}, i = {};
2784
+ c.Accept = "application/json", v(n, i);
2785
+ let p = o && o.headers ? o.headers : {};
2786
+ return s.headers = { ...c, ...p, ...r.headers }, {
2787
+ url: V(n),
2826
2788
  options: s
2827
2789
  };
2828
2790
  },
@@ -2836,16 +2798,16 @@ const et = {
2836
2798
  * @param {*} [options] Override http request option.
2837
2799
  * @throws {RequiredError}
2838
2800
  */
2839
- getPackage: async (n, e, r, a, t = {}) => {
2840
- m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
2841
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
2801
+ getPackage: async (t, e, r, a, n = {}) => {
2802
+ h("getPackage", "environmentName", t), h("getPackage", "packageName", e);
2803
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2842
2804
  let c;
2843
2805
  l && (c = l.baseOptions);
2844
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2845
- r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), V(s, p);
2846
- let h = c && c.headers ? c.headers : {};
2847
- return i.headers = { ...d, ...h, ...t.headers }, {
2848
- url: v(s),
2806
+ const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2807
+ r !== void 0 && (d.versionId = r), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
2808
+ let m = c && c.headers ? c.headers : {};
2809
+ return i.headers = { ...p, ...m, ...n.headers }, {
2810
+ url: V(s),
2849
2811
  options: i
2850
2812
  };
2851
2813
  },
@@ -2856,16 +2818,16 @@ const et = {
2856
2818
  * @param {*} [options] Override http request option.
2857
2819
  * @throws {RequiredError}
2858
2820
  */
2859
- listPackages: async (n, e = {}) => {
2860
- m("listPackages", "environmentName", n);
2861
- const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
2862
- let t;
2863
- l && (t = l.baseOptions);
2864
- const o = { method: "GET", ...t, ...e }, s = {};
2865
- V(a, {});
2866
- let i = t && t.headers ? t.headers : {};
2821
+ listPackages: async (t, e = {}) => {
2822
+ h("listPackages", "environmentName", t);
2823
+ const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
2824
+ let n;
2825
+ l && (n = l.baseOptions);
2826
+ const o = { method: "GET", ...n, ...e }, s = {}, c = {};
2827
+ s.Accept = "application/json", v(a, c);
2828
+ let i = n && n.headers ? n.headers : {};
2867
2829
  return o.headers = { ...s, ...i, ...e.headers }, {
2868
- url: v(a),
2830
+ url: V(a),
2869
2831
  options: o
2870
2832
  };
2871
2833
  },
@@ -2878,22 +2840,22 @@ const et = {
2878
2840
  * @param {*} [options] Override http request option.
2879
2841
  * @throws {RequiredError}
2880
2842
  */
2881
- updatePackage: async (n, e, r, a = {}) => {
2882
- m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", r);
2883
- const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
2843
+ updatePackage: async (t, e, r, a = {}) => {
2844
+ h("updatePackage", "environmentName", t), h("updatePackage", "packageName", e), h("updatePackage", "_package", r);
2845
+ const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
2884
2846
  let s;
2885
2847
  l && (s = l.baseOptions);
2886
- const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
2887
- i["Content-Type"] = "application/json", V(o, d);
2888
- let p = s && s.headers ? s.headers : {};
2889
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
2890
- url: v(o),
2848
+ const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
2849
+ i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
2850
+ let d = s && s.headers ? s.headers : {};
2851
+ return c.headers = { ...i, ...d, ...a.headers }, c.data = k(r, c, l), {
2852
+ url: V(o),
2891
2853
  options: c
2892
2854
  };
2893
2855
  }
2894
2856
  };
2895
- }, w = function(l) {
2896
- const n = we(l);
2857
+ }, E = function(l) {
2858
+ const t = Ee(l);
2897
2859
  return {
2898
2860
  /**
2899
2861
  * 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.
@@ -2904,8 +2866,8 @@ const et = {
2904
2866
  * @throws {RequiredError}
2905
2867
  */
2906
2868
  async createPackage(e, r, a) {
2907
- const t = await n.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
2908
- return (c, i) => O(t, u, g, l)(c, s || i);
2869
+ const n = await t.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = b["PackagesApi.createPackage"]?.[o]?.url;
2870
+ return (c, i) => O(n, u, g, l)(c, s || i);
2909
2871
  },
2910
2872
  /**
2911
2873
  * 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.
@@ -2916,8 +2878,8 @@ const et = {
2916
2878
  * @throws {RequiredError}
2917
2879
  */
2918
2880
  async deletePackage(e, r, a) {
2919
- const t = await n.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
2920
- return (c, i) => O(t, u, g, l)(c, s || i);
2881
+ const n = await t.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = b["PackagesApi.deletePackage"]?.[o]?.url;
2882
+ return (c, i) => O(n, u, g, l)(c, s || i);
2921
2883
  },
2922
2884
  /**
2923
2885
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -2929,9 +2891,9 @@ const et = {
2929
2891
  * @param {*} [options] Override http request option.
2930
2892
  * @throws {RequiredError}
2931
2893
  */
2932
- async getPackage(e, r, a, t, o) {
2933
- const s = await n.getPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
2934
- return (d, p) => O(s, u, g, l)(d, i || p);
2894
+ async getPackage(e, r, a, n, o) {
2895
+ const s = await t.getPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = b["PackagesApi.getPackage"]?.[c]?.url;
2896
+ return (p, d) => O(s, u, g, l)(p, i || d);
2935
2897
  },
2936
2898
  /**
2937
2899
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
@@ -2941,7 +2903,7 @@ const et = {
2941
2903
  * @throws {RequiredError}
2942
2904
  */
2943
2905
  async listPackages(e, r) {
2944
- const a = await n.listPackages(e, r), t = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
2906
+ const a = await t.listPackages(e, r), n = l?.serverIndex ?? 0, o = b["PackagesApi.listPackages"]?.[n]?.url;
2945
2907
  return (s, c) => O(a, u, g, l)(s, o || c);
2946
2908
  },
2947
2909
  /**
@@ -2953,13 +2915,13 @@ const et = {
2953
2915
  * @param {*} [options] Override http request option.
2954
2916
  * @throws {RequiredError}
2955
2917
  */
2956
- async updatePackage(e, r, a, t) {
2957
- const o = await n.updatePackage(e, r, a, t), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
2958
- return (i, d) => O(o, u, g, l)(i, c || d);
2918
+ async updatePackage(e, r, a, n) {
2919
+ const o = await t.updatePackage(e, r, a, n), s = l?.serverIndex ?? 0, c = b["PackagesApi.updatePackage"]?.[s]?.url;
2920
+ return (i, p) => O(o, u, g, l)(i, c || p);
2959
2921
  }
2960
2922
  };
2961
- }, at = function(l, n, e) {
2962
- const r = w(l);
2923
+ }, tt = function(l, t, e) {
2924
+ const r = E(l);
2963
2925
  return {
2964
2926
  /**
2965
2927
  * 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.
@@ -2969,8 +2931,8 @@ const et = {
2969
2931
  * @param {*} [options] Override http request option.
2970
2932
  * @throws {RequiredError}
2971
2933
  */
2972
- createPackage(a, t, o) {
2973
- return r.createPackage(a, t, o).then((s) => s(e, n));
2934
+ createPackage(a, n, o) {
2935
+ return r.createPackage(a, n, o).then((s) => s(e, t));
2974
2936
  },
2975
2937
  /**
2976
2938
  * 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.
@@ -2980,8 +2942,8 @@ const et = {
2980
2942
  * @param {*} [options] Override http request option.
2981
2943
  * @throws {RequiredError}
2982
2944
  */
2983
- deletePackage(a, t, o) {
2984
- return r.deletePackage(a, t, o).then((s) => s(e, n));
2945
+ deletePackage(a, n, o) {
2946
+ return r.deletePackage(a, n, o).then((s) => s(e, t));
2985
2947
  },
2986
2948
  /**
2987
2949
  * 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.
@@ -2993,8 +2955,8 @@ const et = {
2993
2955
  * @param {*} [options] Override http request option.
2994
2956
  * @throws {RequiredError}
2995
2957
  */
2996
- getPackage(a, t, o, s, c) {
2997
- return r.getPackage(a, t, o, s, c).then((i) => i(e, n));
2958
+ getPackage(a, n, o, s, c) {
2959
+ return r.getPackage(a, n, o, s, c).then((i) => i(e, t));
2998
2960
  },
2999
2961
  /**
3000
2962
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
@@ -3003,8 +2965,8 @@ const et = {
3003
2965
  * @param {*} [options] Override http request option.
3004
2966
  * @throws {RequiredError}
3005
2967
  */
3006
- listPackages(a, t) {
3007
- return r.listPackages(a, t).then((o) => o(e, n));
2968
+ listPackages(a, n) {
2969
+ return r.listPackages(a, n).then((o) => o(e, t));
3008
2970
  },
3009
2971
  /**
3010
2972
  * Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
@@ -3015,12 +2977,12 @@ const et = {
3015
2977
  * @param {*} [options] Override http request option.
3016
2978
  * @throws {RequiredError}
3017
2979
  */
3018
- updatePackage(a, t, o, s) {
3019
- return r.updatePackage(a, t, o, s).then((c) => c(e, n));
2980
+ updatePackage(a, n, o, s) {
2981
+ return r.updatePackage(a, n, o, s).then((c) => c(e, t));
3020
2982
  }
3021
2983
  };
3022
2984
  };
3023
- class Ee extends I {
2985
+ class Me extends C {
3024
2986
  /**
3025
2987
  * 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.
3026
2988
  * @summary Create a new package
@@ -3028,10 +2990,9 @@ class Ee extends I {
3028
2990
  * @param {Package} _package
3029
2991
  * @param {*} [options] Override http request option.
3030
2992
  * @throws {RequiredError}
3031
- * @memberof PackagesApi
3032
2993
  */
3033
- createPackage(n, e, r) {
3034
- return w(this.configuration).createPackage(n, e, r).then((a) => a(this.axios, this.basePath));
2994
+ createPackage(t, e, r) {
2995
+ return E(this.configuration).createPackage(t, e, r).then((a) => a(this.axios, this.basePath));
3035
2996
  }
3036
2997
  /**
3037
2998
  * 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.
@@ -3040,10 +3001,9 @@ class Ee extends I {
3040
3001
  * @param {string} packageName Name of the package
3041
3002
  * @param {*} [options] Override http request option.
3042
3003
  * @throws {RequiredError}
3043
- * @memberof PackagesApi
3044
3004
  */
3045
- deletePackage(n, e, r) {
3046
- return w(this.configuration).deletePackage(n, e, r).then((a) => a(this.axios, this.basePath));
3005
+ deletePackage(t, e, r) {
3006
+ return E(this.configuration).deletePackage(t, e, r).then((a) => a(this.axios, this.basePath));
3047
3007
  }
3048
3008
  /**
3049
3009
  * 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.
@@ -3054,10 +3014,9 @@ class Ee extends I {
3054
3014
  * @param {boolean} [reload] Load / reload the package before returning result. Only the two spellings OpenAPI serializes a boolean as are accepted: &#x60;true&#x60; and &#x60;false&#x60;. Any other value (&#x60;1&#x60;, &#x60;yes&#x60;, &#x60;TRUE&#x60;, or the parameter repeated) is refused with 400 rather than read as &#x60;false&#x60;, which would answer 200 without recompiling.
3055
3015
  * @param {*} [options] Override http request option.
3056
3016
  * @throws {RequiredError}
3057
- * @memberof PackagesApi
3058
3017
  */
3059
- getPackage(n, e, r, a, t) {
3060
- return w(this.configuration).getPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
3018
+ getPackage(t, e, r, a, n) {
3019
+ return E(this.configuration).getPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
3061
3020
  }
3062
3021
  /**
3063
3022
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
@@ -3065,10 +3024,9 @@ class Ee extends I {
3065
3024
  * @param {string} environmentName Name of the environment
3066
3025
  * @param {*} [options] Override http request option.
3067
3026
  * @throws {RequiredError}
3068
- * @memberof PackagesApi
3069
3027
  */
3070
- listPackages(n, e) {
3071
- return w(this.configuration).listPackages(n, e).then((r) => r(this.axios, this.basePath));
3028
+ listPackages(t, e) {
3029
+ return E(this.configuration).listPackages(t, e).then((r) => r(this.axios, this.basePath));
3072
3030
  }
3073
3031
  /**
3074
3032
  * Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
@@ -3078,13 +3036,12 @@ class Ee extends I {
3078
3036
  * @param {Package} _package
3079
3037
  * @param {*} [options] Override http request option.
3080
3038
  * @throws {RequiredError}
3081
- * @memberof PackagesApi
3082
3039
  */
3083
- updatePackage(n, e, r, a) {
3084
- return w(this.configuration).updatePackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
3040
+ updatePackage(t, e, r, a) {
3041
+ return E(this.configuration).updatePackage(t, e, r, a).then((n) => n(this.axios, this.basePath));
3085
3042
  }
3086
3043
  }
3087
- const Me = function(l) {
3044
+ const fe = function(l) {
3088
3045
  return {
3089
3046
  /**
3090
3047
  * 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.
@@ -3092,16 +3049,16 @@ const Me = function(l) {
3092
3049
  * @param {*} [options] Override http request option.
3093
3050
  * @throws {RequiredError}
3094
3051
  */
3095
- deleteTheme: async (n = {}) => {
3096
- const e = "/theme", r = new URL(e, b);
3052
+ deleteTheme: async (t = {}) => {
3053
+ const e = "/theme", r = new URL(e, P);
3097
3054
  let a;
3098
3055
  l && (a = l.baseOptions);
3099
- const t = { method: "DELETE", ...a, ...n }, o = {};
3100
- V(r, {});
3056
+ const n = { method: "DELETE", ...a, ...t }, o = {}, s = {};
3057
+ o.Accept = "application/json", v(r, s);
3101
3058
  let c = a && a.headers ? a.headers : {};
3102
- return t.headers = { ...o, ...c, ...n.headers }, {
3103
- url: v(r),
3104
- options: t
3059
+ return n.headers = { ...o, ...c, ...t.headers }, {
3060
+ url: V(r),
3061
+ options: n
3105
3062
  };
3106
3063
  },
3107
3064
  /**
@@ -3110,16 +3067,16 @@ const Me = function(l) {
3110
3067
  * @param {*} [options] Override http request option.
3111
3068
  * @throws {RequiredError}
3112
3069
  */
3113
- getStatus: async (n = {}) => {
3114
- const e = "/status", r = new URL(e, b);
3070
+ getStatus: async (t = {}) => {
3071
+ const e = "/status", r = new URL(e, P);
3115
3072
  let a;
3116
3073
  l && (a = l.baseOptions);
3117
- const t = { method: "GET", ...a, ...n }, o = {};
3118
- V(r, {});
3074
+ const n = { method: "GET", ...a, ...t }, o = {}, s = {};
3075
+ o.Accept = "application/json", v(r, s);
3119
3076
  let c = a && a.headers ? a.headers : {};
3120
- return t.headers = { ...o, ...c, ...n.headers }, {
3121
- url: v(r),
3122
- options: t
3077
+ return n.headers = { ...o, ...c, ...t.headers }, {
3078
+ url: V(r),
3079
+ options: n
3123
3080
  };
3124
3081
  },
3125
3082
  /**
@@ -3128,16 +3085,16 @@ const Me = function(l) {
3128
3085
  * @param {*} [options] Override http request option.
3129
3086
  * @throws {RequiredError}
3130
3087
  */
3131
- getTheme: async (n = {}) => {
3132
- const e = "/theme", r = new URL(e, b);
3088
+ getTheme: async (t = {}) => {
3089
+ const e = "/theme", r = new URL(e, P);
3133
3090
  let a;
3134
3091
  l && (a = l.baseOptions);
3135
- const t = { method: "GET", ...a, ...n }, o = {};
3136
- V(r, {});
3092
+ const n = { method: "GET", ...a, ...t }, o = {}, s = {};
3093
+ o.Accept = "application/json", v(r, s);
3137
3094
  let c = a && a.headers ? a.headers : {};
3138
- return t.headers = { ...o, ...c, ...n.headers }, {
3139
- url: v(r),
3140
- options: t
3095
+ return n.headers = { ...o, ...c, ...t.headers }, {
3096
+ url: V(r),
3097
+ options: n
3141
3098
  };
3142
3099
  },
3143
3100
  /**
@@ -3147,22 +3104,22 @@ const Me = function(l) {
3147
3104
  * @param {*} [options] Override http request option.
3148
3105
  * @throws {RequiredError}
3149
3106
  */
3150
- updateTheme: async (n, e = {}) => {
3151
- m("updateTheme", "theme", n);
3152
- const r = "/theme", a = new URL(r, b);
3153
- let t;
3154
- l && (t = l.baseOptions);
3155
- const o = { method: "PUT", ...t, ...e }, s = {}, c = {};
3156
- s["Content-Type"] = "application/json", V(a, c);
3157
- let i = t && t.headers ? t.headers : {};
3158
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
3159
- url: v(a),
3107
+ updateTheme: async (t, e = {}) => {
3108
+ h("updateTheme", "theme", t);
3109
+ const r = "/theme", a = new URL(r, P);
3110
+ let n;
3111
+ l && (n = l.baseOptions);
3112
+ const o = { method: "PUT", ...n, ...e }, s = {}, c = {};
3113
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
3114
+ let i = n && n.headers ? n.headers : {};
3115
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
3116
+ url: V(a),
3160
3117
  options: o
3161
3118
  };
3162
3119
  }
3163
3120
  };
3164
3121
  }, M = function(l) {
3165
- const n = Me(l);
3122
+ const t = fe(l);
3166
3123
  return {
3167
3124
  /**
3168
3125
  * 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.
@@ -3171,8 +3128,8 @@ const Me = function(l) {
3171
3128
  * @throws {RequiredError}
3172
3129
  */
3173
3130
  async deleteTheme(e) {
3174
- const r = await n.deleteTheme(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.deleteTheme"]?.[a]?.url;
3175
- return (o, s) => O(r, u, g, l)(o, t || s);
3131
+ const r = await t.deleteTheme(e), a = l?.serverIndex ?? 0, n = b["PublisherApi.deleteTheme"]?.[a]?.url;
3132
+ return (o, s) => O(r, u, g, l)(o, n || s);
3176
3133
  },
3177
3134
  /**
3178
3135
  * 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.
@@ -3181,8 +3138,8 @@ const Me = function(l) {
3181
3138
  * @throws {RequiredError}
3182
3139
  */
3183
3140
  async getStatus(e) {
3184
- const r = await n.getStatus(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[a]?.url;
3185
- return (o, s) => O(r, u, g, l)(o, t || s);
3141
+ const r = await t.getStatus(e), a = l?.serverIndex ?? 0, n = b["PublisherApi.getStatus"]?.[a]?.url;
3142
+ return (o, s) => O(r, u, g, l)(o, n || s);
3186
3143
  },
3187
3144
  /**
3188
3145
  * 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.
@@ -3191,8 +3148,8 @@ const Me = function(l) {
3191
3148
  * @throws {RequiredError}
3192
3149
  */
3193
3150
  async getTheme(e) {
3194
- const r = await n.getTheme(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.getTheme"]?.[a]?.url;
3195
- return (o, s) => O(r, u, g, l)(o, t || s);
3151
+ const r = await t.getTheme(e), a = l?.serverIndex ?? 0, n = b["PublisherApi.getTheme"]?.[a]?.url;
3152
+ return (o, s) => O(r, u, g, l)(o, n || s);
3196
3153
  },
3197
3154
  /**
3198
3155
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3202,11 +3159,11 @@ const Me = function(l) {
3202
3159
  * @throws {RequiredError}
3203
3160
  */
3204
3161
  async updateTheme(e, r) {
3205
- const a = await n.updateTheme(e, r), t = l?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[t]?.url;
3162
+ const a = await t.updateTheme(e, r), n = l?.serverIndex ?? 0, o = b["PublisherApi.updateTheme"]?.[n]?.url;
3206
3163
  return (s, c) => O(a, u, g, l)(s, o || c);
3207
3164
  }
3208
3165
  };
3209
- }, tt = function(l, n, e) {
3166
+ }, nt = function(l, t, e) {
3210
3167
  const r = M(l);
3211
3168
  return {
3212
3169
  /**
@@ -3216,7 +3173,7 @@ const Me = function(l) {
3216
3173
  * @throws {RequiredError}
3217
3174
  */
3218
3175
  deleteTheme(a) {
3219
- return r.deleteTheme(a).then((t) => t(e, n));
3176
+ return r.deleteTheme(a).then((n) => n(e, t));
3220
3177
  },
3221
3178
  /**
3222
3179
  * 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.
@@ -3225,7 +3182,7 @@ const Me = function(l) {
3225
3182
  * @throws {RequiredError}
3226
3183
  */
3227
3184
  getStatus(a) {
3228
- return r.getStatus(a).then((t) => t(e, n));
3185
+ return r.getStatus(a).then((n) => n(e, t));
3229
3186
  },
3230
3187
  /**
3231
3188
  * 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.
@@ -3234,7 +3191,7 @@ const Me = function(l) {
3234
3191
  * @throws {RequiredError}
3235
3192
  */
3236
3193
  getTheme(a) {
3237
- return r.getTheme(a).then((t) => t(e, n));
3194
+ return r.getTheme(a).then((n) => n(e, t));
3238
3195
  },
3239
3196
  /**
3240
3197
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3243,41 +3200,38 @@ const Me = function(l) {
3243
3200
  * @param {*} [options] Override http request option.
3244
3201
  * @throws {RequiredError}
3245
3202
  */
3246
- updateTheme(a, t) {
3247
- return r.updateTheme(a, t).then((o) => o(e, n));
3203
+ updateTheme(a, n) {
3204
+ return r.updateTheme(a, n).then((o) => o(e, t));
3248
3205
  }
3249
3206
  };
3250
3207
  };
3251
- class fe extends I {
3208
+ class je extends C {
3252
3209
  /**
3253
3210
  * 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.
3254
3211
  * @summary Reset the instance theme to the boot seed or default
3255
3212
  * @param {*} [options] Override http request option.
3256
3213
  * @throws {RequiredError}
3257
- * @memberof PublisherApi
3258
3214
  */
3259
- deleteTheme(n) {
3260
- return M(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
3215
+ deleteTheme(t) {
3216
+ return M(this.configuration).deleteTheme(t).then((e) => e(this.axios, this.basePath));
3261
3217
  }
3262
3218
  /**
3263
3219
  * 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.
3264
3220
  * @summary Get server status and health information
3265
3221
  * @param {*} [options] Override http request option.
3266
3222
  * @throws {RequiredError}
3267
- * @memberof PublisherApi
3268
3223
  */
3269
- getStatus(n) {
3270
- return M(this.configuration).getStatus(n).then((e) => e(this.axios, this.basePath));
3224
+ getStatus(t) {
3225
+ return M(this.configuration).getStatus(t).then((e) => e(this.axios, this.basePath));
3271
3226
  }
3272
3227
  /**
3273
3228
  * 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.
3274
3229
  * @summary Get the active instance theme
3275
3230
  * @param {*} [options] Override http request option.
3276
3231
  * @throws {RequiredError}
3277
- * @memberof PublisherApi
3278
3232
  */
3279
- getTheme(n) {
3280
- return M(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
3233
+ getTheme(t) {
3234
+ return M(this.configuration).getTheme(t).then((e) => e(this.axios, this.basePath));
3281
3235
  }
3282
3236
  /**
3283
3237
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3285,10 +3239,9 @@ class fe extends I {
3285
3239
  * @param {Theme} theme
3286
3240
  * @param {*} [options] Override http request option.
3287
3241
  * @throws {RequiredError}
3288
- * @memberof PublisherApi
3289
3242
  */
3290
- updateTheme(n, e) {
3291
- return M(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
3243
+ updateTheme(t, e) {
3244
+ return M(this.configuration).updateTheme(t, e).then((r) => r(this.axios, this.basePath));
3292
3245
  }
3293
3246
  }
3294
3247
  const Be = function(l) {
@@ -3299,16 +3252,16 @@ const Be = function(l) {
3299
3252
  * @param {*} [options] Override http request option.
3300
3253
  * @throws {RequiredError}
3301
3254
  */
3302
- getWatchStatus: async (n = {}) => {
3303
- const e = "/watch-mode/status", r = new URL(e, b);
3255
+ getWatchStatus: async (t = {}) => {
3256
+ const e = "/watch-mode/status", r = new URL(e, P);
3304
3257
  let a;
3305
3258
  l && (a = l.baseOptions);
3306
- const t = { method: "GET", ...a, ...n }, o = {};
3307
- V(r, {});
3259
+ const n = { method: "GET", ...a, ...t }, o = {}, s = {};
3260
+ o.Accept = "application/json", v(r, s);
3308
3261
  let c = a && a.headers ? a.headers : {};
3309
- return t.headers = { ...o, ...c, ...n.headers }, {
3310
- url: v(r),
3311
- options: t
3262
+ return n.headers = { ...o, ...c, ...t.headers }, {
3263
+ url: V(r),
3264
+ options: n
3312
3265
  };
3313
3266
  },
3314
3267
  /**
@@ -3318,16 +3271,16 @@ const Be = function(l) {
3318
3271
  * @param {*} [options] Override http request option.
3319
3272
  * @throws {RequiredError}
3320
3273
  */
3321
- startWatching: async (n, e = {}) => {
3322
- m("startWatching", "startWatchRequest", n);
3323
- const r = "/watch-mode/start", a = new URL(r, b);
3324
- let t;
3325
- l && (t = l.baseOptions);
3326
- const o = { method: "POST", ...t, ...e }, s = {}, c = {};
3327
- s["Content-Type"] = "application/json", V(a, c);
3328
- let i = t && t.headers ? t.headers : {};
3329
- return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
3330
- url: v(a),
3274
+ startWatching: async (t, e = {}) => {
3275
+ h("startWatching", "startWatchRequest", t);
3276
+ const r = "/watch-mode/start", a = new URL(r, P);
3277
+ let n;
3278
+ l && (n = l.baseOptions);
3279
+ const o = { method: "POST", ...n, ...e }, s = {}, c = {};
3280
+ s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
3281
+ let i = n && n.headers ? n.headers : {};
3282
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
3283
+ url: V(a),
3331
3284
  options: o
3332
3285
  };
3333
3286
  },
@@ -3337,16 +3290,16 @@ const Be = function(l) {
3337
3290
  * @param {*} [options] Override http request option.
3338
3291
  * @throws {RequiredError}
3339
3292
  */
3340
- stopWatching: async (n = {}) => {
3341
- const e = "/watch-mode/stop", r = new URL(e, b);
3293
+ stopWatching: async (t = {}) => {
3294
+ const e = "/watch-mode/stop", r = new URL(e, P);
3342
3295
  let a;
3343
3296
  l && (a = l.baseOptions);
3344
- const t = { method: "POST", ...a, ...n }, o = {};
3345
- V(r, {});
3297
+ const n = { method: "POST", ...a, ...t }, o = {}, s = {};
3298
+ o.Accept = "application/json", v(r, s);
3346
3299
  let c = a && a.headers ? a.headers : {};
3347
- return t.headers = { ...o, ...c, ...n.headers }, {
3348
- url: v(r),
3349
- options: t
3300
+ return n.headers = { ...o, ...c, ...t.headers }, {
3301
+ url: V(r),
3302
+ options: n
3350
3303
  };
3351
3304
  },
3352
3305
  /**
@@ -3357,22 +3310,22 @@ const Be = function(l) {
3357
3310
  * @param {*} [options] Override http request option.
3358
3311
  * @throws {RequiredError}
3359
3312
  */
3360
- streamPackageEvents: async (n, e, r = {}) => {
3361
- m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
3362
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
3313
+ streamPackageEvents: async (t, e, r = {}) => {
3314
+ h("streamPackageEvents", "environmentName", t), h("streamPackageEvents", "packageName", e);
3315
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
3363
3316
  let o;
3364
3317
  l && (o = l.baseOptions);
3365
- const s = { method: "GET", ...o, ...r }, c = {};
3366
- V(t, {});
3367
- let d = o && o.headers ? o.headers : {};
3368
- return s.headers = { ...c, ...d, ...r.headers }, {
3369
- url: v(t),
3318
+ const s = { method: "GET", ...o, ...r }, c = {}, i = {};
3319
+ c.Accept = "text/event-stream,application/json", v(n, i);
3320
+ let p = o && o.headers ? o.headers : {};
3321
+ return s.headers = { ...c, ...p, ...r.headers }, {
3322
+ url: V(n),
3370
3323
  options: s
3371
3324
  };
3372
3325
  }
3373
3326
  };
3374
3327
  }, f = function(l) {
3375
- const n = Be(l);
3328
+ const t = Be(l);
3376
3329
  return {
3377
3330
  /**
3378
3331
  * 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.
@@ -3381,8 +3334,8 @@ const Be = function(l) {
3381
3334
  * @throws {RequiredError}
3382
3335
  */
3383
3336
  async getWatchStatus(e) {
3384
- const r = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
3385
- return (o, s) => O(r, u, g, l)(o, t || s);
3337
+ const r = await t.getWatchStatus(e), a = l?.serverIndex ?? 0, n = b["WatchModeApi.getWatchStatus"]?.[a]?.url;
3338
+ return (o, s) => O(r, u, g, l)(o, n || s);
3386
3339
  },
3387
3340
  /**
3388
3341
  * 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.
@@ -3392,7 +3345,7 @@ const Be = function(l) {
3392
3345
  * @throws {RequiredError}
3393
3346
  */
3394
3347
  async startWatching(e, r) {
3395
- const a = await n.startWatching(e, r), t = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
3348
+ const a = await t.startWatching(e, r), n = l?.serverIndex ?? 0, o = b["WatchModeApi.startWatching"]?.[n]?.url;
3396
3349
  return (s, c) => O(a, u, g, l)(s, o || c);
3397
3350
  },
3398
3351
  /**
@@ -3402,8 +3355,8 @@ const Be = function(l) {
3402
3355
  * @throws {RequiredError}
3403
3356
  */
3404
3357
  async stopWatching(e) {
3405
- const r = await n.stopWatching(e), a = l?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[a]?.url;
3406
- return (o, s) => O(r, u, g, l)(o, t || s);
3358
+ const r = await t.stopWatching(e), a = l?.serverIndex ?? 0, n = b["WatchModeApi.stopWatching"]?.[a]?.url;
3359
+ return (o, s) => O(r, u, g, l)(o, n || s);
3407
3360
  },
3408
3361
  /**
3409
3362
  * 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.
@@ -3414,11 +3367,11 @@ const Be = function(l) {
3414
3367
  * @throws {RequiredError}
3415
3368
  */
3416
3369
  async streamPackageEvents(e, r, a) {
3417
- const t = await n.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3418
- return (c, i) => O(t, u, g, l)(c, s || i);
3370
+ const n = await t.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = b["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3371
+ return (c, i) => O(n, u, g, l)(c, s || i);
3419
3372
  }
3420
3373
  };
3421
- }, rt = function(l, n, e) {
3374
+ }, rt = function(l, t, e) {
3422
3375
  const r = f(l);
3423
3376
  return {
3424
3377
  /**
@@ -3428,7 +3381,7 @@ const Be = function(l) {
3428
3381
  * @throws {RequiredError}
3429
3382
  */
3430
3383
  getWatchStatus(a) {
3431
- return r.getWatchStatus(a).then((t) => t(e, n));
3384
+ return r.getWatchStatus(a).then((n) => n(e, t));
3432
3385
  },
3433
3386
  /**
3434
3387
  * 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.
@@ -3437,8 +3390,8 @@ const Be = function(l) {
3437
3390
  * @param {*} [options] Override http request option.
3438
3391
  * @throws {RequiredError}
3439
3392
  */
3440
- startWatching(a, t) {
3441
- return r.startWatching(a, t).then((o) => o(e, n));
3393
+ startWatching(a, n) {
3394
+ return r.startWatching(a, n).then((o) => o(e, t));
3442
3395
  },
3443
3396
  /**
3444
3397
  * 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.
@@ -3447,7 +3400,7 @@ const Be = function(l) {
3447
3400
  * @throws {RequiredError}
3448
3401
  */
3449
3402
  stopWatching(a) {
3450
- return r.stopWatching(a).then((t) => t(e, n));
3403
+ return r.stopWatching(a).then((n) => n(e, t));
3451
3404
  },
3452
3405
  /**
3453
3406
  * 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.
@@ -3457,21 +3410,20 @@ const Be = function(l) {
3457
3410
  * @param {*} [options] Override http request option.
3458
3411
  * @throws {RequiredError}
3459
3412
  */
3460
- streamPackageEvents(a, t, o) {
3461
- return r.streamPackageEvents(a, t, o).then((s) => s(e, n));
3413
+ streamPackageEvents(a, n, o) {
3414
+ return r.streamPackageEvents(a, n, o).then((s) => s(e, t));
3462
3415
  }
3463
3416
  };
3464
3417
  };
3465
- class Fe extends I {
3418
+ class Fe extends C {
3466
3419
  /**
3467
3420
  * 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.
3468
3421
  * @summary Get watch mode status
3469
3422
  * @param {*} [options] Override http request option.
3470
3423
  * @throws {RequiredError}
3471
- * @memberof WatchModeApi
3472
3424
  */
3473
- getWatchStatus(n) {
3474
- return f(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
3425
+ getWatchStatus(t) {
3426
+ return f(this.configuration).getWatchStatus(t).then((e) => e(this.axios, this.basePath));
3475
3427
  }
3476
3428
  /**
3477
3429
  * 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.
@@ -3479,20 +3431,18 @@ class Fe extends I {
3479
3431
  * @param {StartWatchRequest} startWatchRequest
3480
3432
  * @param {*} [options] Override http request option.
3481
3433
  * @throws {RequiredError}
3482
- * @memberof WatchModeApi
3483
3434
  */
3484
- startWatching(n, e) {
3485
- return f(this.configuration).startWatching(n, e).then((r) => r(this.axios, this.basePath));
3435
+ startWatching(t, e) {
3436
+ return f(this.configuration).startWatching(t, e).then((r) => r(this.axios, this.basePath));
3486
3437
  }
3487
3438
  /**
3488
3439
  * 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.
3489
3440
  * @summary Stop file watching
3490
3441
  * @param {*} [options] Override http request option.
3491
3442
  * @throws {RequiredError}
3492
- * @memberof WatchModeApi
3493
3443
  */
3494
- stopWatching(n) {
3495
- return f(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
3444
+ stopWatching(t) {
3445
+ return f(this.configuration).stopWatching(t).then((e) => e(this.axios, this.basePath));
3496
3446
  }
3497
3447
  /**
3498
3448
  * 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.
@@ -3501,59 +3451,52 @@ class Fe extends I {
3501
3451
  * @param {string} packageName Name of the package
3502
3452
  * @param {*} [options] Override http request option.
3503
3453
  * @throws {RequiredError}
3504
- * @memberof WatchModeApi
3505
3454
  */
3506
- streamPackageEvents(n, e, r) {
3507
- return f(this.configuration).streamPackageEvents(n, e, r).then((a) => a(this.axios, this.basePath));
3455
+ streamPackageEvents(t, e, r) {
3456
+ return f(this.configuration).streamPackageEvents(t, e, r).then((a) => a(this.axios, this.basePath));
3508
3457
  }
3509
3458
  }
3510
- class Qe {
3459
+ class qe {
3511
3460
  /**
3512
3461
  * parameter for apiKey security
3513
3462
  * @param name security name
3514
- * @memberof Configuration
3515
3463
  */
3516
3464
  apiKey;
3517
3465
  /**
3518
3466
  * parameter for basic security
3519
- *
3520
- * @type {string}
3521
- * @memberof Configuration
3522
3467
  */
3523
3468
  username;
3524
3469
  /**
3525
3470
  * parameter for basic security
3526
- *
3527
- * @type {string}
3528
- * @memberof Configuration
3529
3471
  */
3530
3472
  password;
3531
3473
  /**
3532
3474
  * parameter for oauth2 security
3533
3475
  * @param name security name
3534
3476
  * @param scopes oauth2 scope
3535
- * @memberof Configuration
3536
3477
  */
3537
3478
  accessToken;
3538
3479
  /**
3539
- * override base path
3540
- *
3541
- * @type {string}
3480
+ * parameter for aws4 signature security
3481
+ * @param {Object} AWS4Signature - AWS4 Signature security
3482
+ * @param {string} options.region - aws region
3483
+ * @param {string} options.service - name of the service.
3484
+ * @param {string} credentials.accessKeyId - aws access key id
3485
+ * @param {string} credentials.secretAccessKey - aws access key
3486
+ * @param {string} credentials.sessionToken - aws session token
3542
3487
  * @memberof Configuration
3543
3488
  */
3489
+ awsv4;
3490
+ /**
3491
+ * override base path
3492
+ */
3544
3493
  basePath;
3545
3494
  /**
3546
3495
  * override server index
3547
- *
3548
- * @type {number}
3549
- * @memberof Configuration
3550
3496
  */
3551
3497
  serverIndex;
3552
3498
  /**
3553
3499
  * base options for axios calls
3554
- *
3555
- * @type {any}
3556
- * @memberof Configuration
3557
3500
  */
3558
3501
  baseOptions;
3559
3502
  /**
@@ -3564,13 +3507,13 @@ class Qe {
3564
3507
  * @type {new () => FormData}
3565
3508
  */
3566
3509
  formDataCtor;
3567
- constructor(n = {}) {
3568
- this.apiKey = n.apiKey, this.username = n.username, this.password = n.password, this.accessToken = n.accessToken, this.basePath = n.basePath, this.serverIndex = n.serverIndex, this.baseOptions = {
3569
- ...n.baseOptions,
3510
+ constructor(t = {}) {
3511
+ this.apiKey = t.apiKey, this.username = t.username, this.password = t.password, this.accessToken = t.accessToken, this.awsv4 = t.awsv4, this.basePath = t.basePath, this.serverIndex = t.serverIndex, this.baseOptions = {
3512
+ ...t.baseOptions,
3570
3513
  headers: {
3571
- ...n.baseOptions?.headers
3514
+ ...t.baseOptions?.headers
3572
3515
  }
3573
- }, this.formDataCtor = n.formDataCtor;
3516
+ }, this.formDataCtor = t.formDataCtor;
3574
3517
  }
3575
3518
  /**
3576
3519
  * Check if the given MIME is a JSON MIME.
@@ -3582,12 +3525,11 @@ class Qe {
3582
3525
  * @param mime - MIME (Multipurpose Internet Mail Extensions)
3583
3526
  * @return True if the given MIME is JSON, false otherwise.
3584
3527
  */
3585
- isJsonMime(n) {
3586
- const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
3587
- return n !== null && (e.test(n) || n.toLowerCase() === "application/json-patch+json");
3528
+ isJsonMime(t) {
3529
+ return t !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(t);
3588
3530
  }
3589
3531
  }
3590
- const C = {
3532
+ const A = {
3591
3533
  blue: "#2563eb",
3592
3534
  indigo: "#4f46e5",
3593
3535
  violet: "#7c3aed",
@@ -3600,25 +3542,25 @@ const C = {
3600
3542
  teal: "#0f766e",
3601
3543
  cyan: "#0e7490",
3602
3544
  slate: "#475569"
3603
- }, nt = {
3604
- environment: C.emerald,
3605
- package: C.teal,
3606
- connection: C.orange
3607
- }, ot = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', st = x(pe)({
3545
+ }, ot = {
3546
+ environment: A.emerald,
3547
+ package: A.teal,
3548
+ connection: A.orange
3549
+ }, st = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', ct = x(de)({
3608
3550
  display: "flex",
3609
3551
  flexDirection: "column",
3610
3552
  height: "100%",
3611
3553
  boxShadow: "none",
3612
3554
  border: "none",
3613
3555
  backgroundColor: "transparent"
3614
- }), lt = x(me)({
3556
+ }), lt = x(he)({
3615
3557
  display: "flex",
3616
3558
  flexDirection: "column",
3617
3559
  padding: "0",
3618
3560
  flexGrow: 1
3619
- }), ct = x(he)({
3561
+ }), it = x(me)({
3620
3562
  padding: "0"
3621
- }), it = x("div")(({ theme: l }) => ({
3563
+ }), pt = x("div")(({ theme: l }) => ({
3622
3564
  backgroundColor: l.palette.background.default,
3623
3565
  padding: "0 8px 0px 8px",
3624
3566
  borderRadius: "12px",
@@ -3632,7 +3574,7 @@ const C = {
3632
3574
  backgroundColor: "transparent",
3633
3575
  border: "none",
3634
3576
  boxShadow: "none"
3635
- }), pt = x("div")({
3577
+ }), ht = x("div")({
3636
3578
  backgroundColor: "transparent",
3637
3579
  paddingTop: "12px",
3638
3580
  paddingBottom: "2px",
@@ -3642,24 +3584,24 @@ const C = {
3642
3584
  marginBottom: "0"
3643
3585
  }), mt = x("div")({
3644
3586
  height: "100%"
3645
- }), ht = x("div")({
3587
+ }), ut = x("div")({
3646
3588
  height: "75vh",
3647
3589
  width: "100%",
3648
3590
  overflowY: "auto"
3649
- }), $e = [
3650
- C.blue,
3651
- C.orange,
3652
- C.emerald,
3653
- C.pink,
3654
- C.violet,
3655
- C.amber,
3656
- C.cyan,
3657
- C.lime
3658
- ], qe = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
3591
+ }), De = [
3592
+ A.blue,
3593
+ A.orange,
3594
+ A.emerald,
3595
+ A.pink,
3596
+ A.violet,
3597
+ A.amber,
3598
+ A.cyan,
3599
+ A.lime
3600
+ ], Qe = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", G = {
3659
3601
  defaultMode: "light",
3660
3602
  allowUserToggle: !0,
3661
3603
  palette: {
3662
- series: $e,
3604
+ series: De,
3663
3605
  // The chart canvas. One ground for the whole dashboard in both modes —
3664
3606
  // canvas, card and the panel between cards are all this value, and the
3665
3607
  // borders do the separating. See `tile`.
@@ -3706,15 +3648,15 @@ const C = {
3706
3648
  // pairs this with a near-neutral low end. Matches the first series
3707
3649
  // colour, so a map and a chart on one page ramp to the same hue.
3708
3650
  mapColor: {
3709
- light: C.blue,
3710
- dark: C.blue
3651
+ light: A.blue,
3652
+ dark: A.blue
3711
3653
  }
3712
3654
  },
3713
3655
  font: {
3714
- family: qe,
3656
+ family: Qe,
3715
3657
  size: 12
3716
3658
  }
3717
- }, De = [
3659
+ }, ze = [
3718
3660
  "background",
3719
3661
  "tableHeader",
3720
3662
  "tableHeaderBackground",
@@ -3723,12 +3665,12 @@ const C = {
3723
3665
  "tileTitle",
3724
3666
  "mapColor"
3725
3667
  ];
3726
- function Z(l, n) {
3727
- const e = W.palette ?? {}, r = W.font ?? {
3668
+ function Z(l, t) {
3669
+ const e = G.palette ?? {}, r = G.font ?? {
3728
3670
  family: "sans-serif",
3729
3671
  size: 12
3730
3672
  };
3731
- let a = [...e.series ?? []], t = r.family ?? "sans-serif", o = r.size ?? 12;
3673
+ let a = [...e.series ?? []], n = r.family ?? "sans-serif", o = r.size ?? 12;
3732
3674
  const s = {
3733
3675
  background: { ...e.background ?? {} },
3734
3676
  tableHeader: { ...e.tableHeader ?? {} },
@@ -3740,21 +3682,21 @@ function Z(l, n) {
3740
3682
  tileTitle: { ...e.tileTitle ?? {} },
3741
3683
  mapColor: { ...e.mapColor ?? {} }
3742
3684
  };
3743
- for (const p of l)
3744
- if (p) {
3745
- Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
3746
- for (const h of De) {
3747
- const S = p.palette?.[h];
3748
- S && (s[h] = { ...s[h], ...S });
3685
+ for (const d of l)
3686
+ if (d) {
3687
+ Array.isArray(d.palette?.series) && (a = [...d.palette.series]);
3688
+ for (const m of ze) {
3689
+ const S = d.palette?.[m];
3690
+ S && (s[m] = { ...s[m], ...S });
3749
3691
  }
3750
- typeof p.font?.family == "string" && (t = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
3692
+ typeof d.font?.family == "string" && (n = d.font.family), typeof d.font?.size == "number" && (o = d.font.size);
3751
3693
  }
3752
- const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
3694
+ const c = t === "dark", i = (d) => s[d][t] ?? e[d]?.[t], p = i("background");
3753
3695
  return {
3754
- mode: n,
3696
+ mode: t,
3755
3697
  series: a,
3756
- font: { family: t, size: o },
3757
- background: d,
3698
+ font: { family: n, size: o },
3699
+ background: p,
3758
3700
  tableHeader: i("tableHeader"),
3759
3701
  tableHeaderBackground: i("tableHeaderBackground"),
3760
3702
  tableBody: i("tableBody"),
@@ -3763,7 +3705,7 @@ function Z(l, n) {
3763
3705
  mapColor: i("mapColor"),
3764
3706
  // Table interior follows the operator's chart background so
3765
3707
  // tables and chart canvases share a single "viz surface" colour.
3766
- tableBackground: d,
3708
+ tableBackground: p,
3767
3709
  // Derived, mode-keyed defaults. Operators don't edit these in
3768
3710
  // v1; they're consistent borders / readable foreground text for
3769
3711
  // each mode. If a user later asks to customise them, expose them
@@ -3791,30 +3733,30 @@ function Z(l, n) {
3791
3733
  // Drill link hover: the palette's anchor blue, so a drill reads as the
3792
3734
  // same affordance as every other primary action; dark lightens it for
3793
3735
  // contrast on the slate panel.
3794
- drillLink: c ? "#60a5fa" : C.blue
3736
+ drillLink: c ? "#60a5fa" : A.blue
3795
3737
  };
3796
3738
  }
3797
- function ze(l, n, e) {
3798
- const r = n ?? l ?? "light";
3739
+ function Le(l, t, e) {
3740
+ const r = t ?? l ?? "light";
3799
3741
  return r === "auto" ? e ? "dark" : "light" : r;
3800
3742
  }
3801
- const ee = Y(void 0);
3802
- function Le({
3743
+ const ee = $(void 0);
3744
+ function He({
3803
3745
  layers: l,
3804
- mode: n,
3746
+ mode: t,
3805
3747
  userChoice: e,
3806
3748
  setMode: r,
3807
3749
  allowUserToggle: a = !0,
3808
- children: t
3750
+ children: n
3809
3751
  }) {
3810
- const o = B(() => Z(l, n), [l, n]), s = B(
3811
- () => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: r, allowUserToggle: a }),
3812
- [o, l, n, e, r, a]
3752
+ const o = j(() => Z(l, t), [l, t]), s = j(
3753
+ () => ({ theme: o, layers: l, mode: t, userChoice: e, setMode: r, allowUserToggle: a }),
3754
+ [o, l, t, e, r, a]
3813
3755
  );
3814
- return /* @__PURE__ */ F(ee.Provider, { value: s, children: t });
3756
+ return /* @__PURE__ */ B(ee.Provider, { value: s, children: n });
3815
3757
  }
3816
- function ut() {
3817
- const l = G(ee);
3758
+ function gt() {
3759
+ const l = Y(ee);
3818
3760
  return l || {
3819
3761
  theme: Z([], "light"),
3820
3762
  layers: [],
@@ -3825,7 +3767,7 @@ function ut() {
3825
3767
  allowUserToggle: !1
3826
3768
  };
3827
3769
  }
3828
- const je = new se({
3770
+ const _e = new se({
3829
3771
  defaultOptions: {
3830
3772
  queries: {
3831
3773
  retry: !1,
@@ -3836,12 +3778,12 @@ const je = new se({
3836
3778
  throwOnError: !1
3837
3779
  }
3838
3780
  }
3839
- }), gt = {
3781
+ }), bt = {
3840
3782
  staleTime: 300 * 1e3,
3841
3783
  refetchOnWindowFocus: !1,
3842
3784
  refetchOnReconnect: !1
3843
3785
  }, L = "publisher:themeMode";
3844
- function He() {
3786
+ function We() {
3845
3787
  if (!(typeof window > "u"))
3846
3788
  try {
3847
3789
  const l = window.localStorage.getItem(L);
@@ -3849,221 +3791,221 @@ function He() {
3849
3791
  } catch {
3850
3792
  }
3851
3793
  }
3852
- function _e(l) {
3794
+ function Ge(l) {
3853
3795
  if (!(typeof window > "u"))
3854
3796
  try {
3855
3797
  l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
3856
3798
  } catch {
3857
3799
  }
3858
3800
  }
3859
- function We() {
3801
+ function Ye() {
3860
3802
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3861
3803
  }
3862
3804
  u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3863
- const ae = Y(void 0), Ge = (l, n) => {
3805
+ const ae = $(void 0), $e = (l, t) => {
3864
3806
  const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
3865
3807
  baseURL: l || e,
3866
3808
  withCredentials: !0,
3867
3809
  timeout: 6e5
3868
3810
  });
3869
- r.interceptors.request.use(async (t) => {
3870
- const o = await n?.();
3871
- return t.headers.Authorization = o || "", t;
3811
+ r.interceptors.request.use(async (n) => {
3812
+ const o = await t?.();
3813
+ return n.headers.Authorization = o || "", n;
3872
3814
  });
3873
- const a = new Qe({ basePath: e });
3815
+ const a = new qe({ basePath: e });
3874
3816
  return {
3875
- models: new Ne(a, e, r),
3876
- publisher: new fe(a, e, r),
3817
+ models: new Te(a, e, r),
3818
+ publisher: new je(a, e, r),
3877
3819
  environments: new Ie(a, e, r),
3878
- packages: new Ee(a, e, r),
3879
- dashboards: new ve(a, e, r),
3880
- dataApps: new Se(a, e, r),
3881
- notebooks: new Ue(a, e, r),
3820
+ packages: new Me(a, e, r),
3821
+ dashboards: new Oe(a, e, r),
3822
+ dataApps: new ke(a, e, r),
3823
+ notebooks: new we(a, e, r),
3882
3824
  connections: new Pe(a, e, r),
3883
- databases: new ke(a, e, r),
3884
- materializations: new xe(
3825
+ databases: new Ae(a, e, r),
3826
+ materializations: new Re(
3885
3827
  a,
3886
3828
  e,
3887
3829
  r
3888
3830
  ),
3889
3831
  watchMode: new Fe(a, e, r)
3890
3832
  };
3891
- }, Pt = (l) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3833
+ }, Pt = (l) => /* @__PURE__ */ B(ce, { client: _e, children: /* @__PURE__ */ B(Ke, { ...l }) }), Ke = ({
3892
3834
  children: l,
3893
- getAccessToken: n,
3835
+ getAccessToken: t,
3894
3836
  baseURL: e,
3895
3837
  mutable: r,
3896
3838
  theme: a
3897
3839
  }) => {
3898
- const t = B(
3899
- () => Ge(e, n),
3900
- [e, n]
3901
- ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = ce({
3840
+ const n = j(
3841
+ () => $e(e, t),
3842
+ [e, t]
3843
+ ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = le({
3902
3844
  queryKey: ["status"],
3903
- queryFn: async () => (await t.publisher.getStatus()).data
3845
+ queryFn: async () => (await n.publisher.getStatus()).data
3904
3846
  });
3905
3847
  s.error && console.error("Failed to fetch publisher status:", s.error);
3906
- const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
3907
- let p;
3908
- s.isLoading || s.error ? p = r : c ? p = !1 : p = r ?? !0;
3909
- const h = B(
3848
+ const c = s.data?.frozenConfig, i = s.data?.theme, p = s.isLoading;
3849
+ let d;
3850
+ s.isLoading || s.error ? d = r : c ? d = !1 : d = r ?? !0;
3851
+ const m = j(
3910
3852
  () => [i, a],
3911
3853
  [i, a]
3912
- ), [S, E] = _(
3913
- He
3914
- ), [A, $] = _(We);
3854
+ ), [S, R] = W(
3855
+ We
3856
+ ), [I, q] = W(Ye);
3915
3857
  ie(() => {
3916
3858
  if (typeof window > "u" || !window.matchMedia) return;
3917
- const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (oe) => $(oe.matches);
3918
- return R.addEventListener("change", H), () => R.removeEventListener("change", H);
3859
+ const N = window.matchMedia("(prefers-color-scheme: dark)"), _ = (oe) => q(oe.matches);
3860
+ return N.addEventListener("change", _), () => N.removeEventListener("change", _);
3919
3861
  }, []);
3920
- const te = de((R) => {
3921
- E(R), _e(R);
3922
- }, []), j = i?.allowUserToggle ?? !0, q = j ? S : void 0, re = B(
3923
- () => ze(
3862
+ const te = pe((N) => {
3863
+ R(N), Ge(N);
3864
+ }, []), H = i?.allowUserToggle ?? !0, D = H ? S : void 0, ne = j(
3865
+ () => Le(
3924
3866
  i?.defaultMode,
3925
- q,
3926
- A
3867
+ D,
3868
+ I
3927
3869
  ),
3928
- [i?.defaultMode, q, A]
3929
- ), ne = {
3870
+ [i?.defaultMode, D, I]
3871
+ ), re = {
3930
3872
  server: o,
3931
- getAccessToken: n,
3932
- apiClients: t,
3933
- mutable: p,
3934
- isLoadingStatus: d,
3873
+ getAccessToken: t,
3874
+ apiClients: n,
3875
+ mutable: d,
3876
+ isLoadingStatus: p,
3935
3877
  instanceTheme: i
3936
3878
  };
3937
- return /* @__PURE__ */ F(ae.Provider, { value: ne, children: /* @__PURE__ */ F(
3938
- Le,
3879
+ return /* @__PURE__ */ B(ae.Provider, { value: re, children: /* @__PURE__ */ B(
3880
+ He,
3939
3881
  {
3940
- layers: h,
3941
- mode: re,
3942
- userChoice: q,
3882
+ layers: m,
3883
+ mode: ne,
3884
+ userChoice: D,
3943
3885
  setMode: te,
3944
- allowUserToggle: j,
3886
+ allowUserToggle: H,
3945
3887
  children: l
3946
3888
  }
3947
3889
  ) });
3948
- }, bt = () => {
3949
- const l = G(ae);
3890
+ }, vt = () => {
3891
+ const l = Y(ae);
3950
3892
  if (l === void 0)
3951
3893
  throw new Error("useServer must be used within a ServerProvider");
3952
3894
  return l;
3953
3895
  };
3954
3896
  export {
3955
- U as $,
3956
- aa as A,
3957
- Ga as B,
3897
+ w as $,
3898
+ ta as A,
3899
+ $a as B,
3958
3900
  ra as C,
3959
- ve as D,
3901
+ Oe as D,
3960
3902
  X as E,
3961
3903
  Ie as F,
3962
3904
  Ce as G,
3963
- Ya as H,
3964
- N as I,
3965
- et as J,
3966
- pa as K,
3905
+ Ka as H,
3906
+ T as I,
3907
+ at as J,
3908
+ ha as K,
3967
3909
  ma as L,
3968
- ha as M,
3969
- ua as N,
3970
- ga as O,
3971
- ba as P,
3910
+ ua as M,
3911
+ ga as N,
3912
+ ba as O,
3913
+ va as P,
3972
3914
  Pa as Q,
3973
3915
  Va as R,
3974
- Ja as S,
3975
- va as T,
3976
- xe as U,
3977
- Ae as V,
3978
- Ka as W,
3979
- T as X,
3980
- Ne as Y,
3981
- Re as Z,
3982
- Xa as _,
3983
- ta as a,
3984
- Sa as a0,
3985
- ka as a1,
3916
+ Xa as S,
3917
+ Oa as T,
3918
+ Re as U,
3919
+ xe as V,
3920
+ Ja as W,
3921
+ U as X,
3922
+ Te as Y,
3923
+ Ne as Z,
3924
+ Za as _,
3925
+ na as a,
3926
+ ka as a0,
3927
+ Aa as a1,
3986
3928
  ya as a2,
3987
- Oa as a3,
3988
- Ue as a4,
3989
- Te as a5,
3990
- Za as a6,
3991
- Q as a7,
3992
- xa as a8,
3993
- Aa as a9,
3929
+ Sa as a3,
3930
+ we as a4,
3931
+ Ue as a5,
3932
+ et as a6,
3933
+ F as a7,
3934
+ Ra as a8,
3935
+ xa as a9,
3994
3936
  Fe as aA,
3995
3937
  Be as aB,
3996
3938
  rt as aC,
3997
3939
  f as aD,
3998
- je as aE,
3999
- bt as aF,
4000
- De as aG,
4001
- ut as aH,
3940
+ _e as aE,
3941
+ vt as aF,
3942
+ ze as aG,
3943
+ gt as aH,
4002
3944
  Z as aI,
4003
- ot as aJ,
4004
- nt as aK,
4005
- pt as aL,
4006
- it as aM,
3945
+ st as aJ,
3946
+ ot as aK,
3947
+ ht as aL,
3948
+ pt as aM,
4007
3949
  dt as aN,
4008
- C as aO,
4009
- W as aP,
4010
- Le as aQ,
4011
- ze as aR,
4012
- gt as aS,
4013
- ct as aT,
3950
+ A as aO,
3951
+ G as aP,
3952
+ He as aQ,
3953
+ Le as aR,
3954
+ bt as aS,
3955
+ it as aT,
4014
3956
  mt as aU,
4015
- ht as aV,
4016
- st as aW,
3957
+ ut as aV,
3958
+ ct as aW,
4017
3959
  lt as aX,
4018
3960
  Ia as aa,
4019
3961
  Ca as ab,
4020
- Ra as ac,
4021
- Na as ad,
4022
- Ee as ae,
4023
- we as af,
4024
- at as ag,
4025
- w as ah,
4026
- Ta as ai,
4027
- Ua as aj,
4028
- fe as ak,
4029
- Me as al,
4030
- tt as am,
3962
+ Na as ac,
3963
+ Ta as ad,
3964
+ Me as ae,
3965
+ Ee as af,
3966
+ tt as ag,
3967
+ E as ah,
3968
+ Ua as ai,
3969
+ wa as aj,
3970
+ je as ak,
3971
+ fe as al,
3972
+ nt as am,
4031
3973
  M as an,
4032
- wa as ao,
4033
- Ea as ap,
4034
- Ma as aq,
4035
- fa as ar,
3974
+ Ea as ao,
3975
+ Ma as ap,
3976
+ fa as aq,
3977
+ ja as ar,
4036
3978
  Ba as as,
4037
- Qa as at,
3979
+ qa as at,
4038
3980
  Fa as au,
4039
- $a as av,
4040
- qa as aw,
3981
+ Da as av,
3982
+ Qa as aw,
4041
3983
  Pt as ax,
4042
- Da as ay,
4043
- za as az,
4044
- na as b,
4045
- oa as c,
4046
- Qe as d,
3984
+ za as ay,
3985
+ La as az,
3986
+ oa as b,
3987
+ sa as c,
3988
+ qe as d,
4047
3989
  la as e,
4048
- ca as f,
4049
- sa as g,
3990
+ ia as f,
3991
+ ca as g,
4050
3992
  Pe as h,
4051
- ge as i,
4052
- La as j,
4053
- k,
4054
- Ha as l,
4055
- be as m,
4056
- ja as n,
3993
+ be as i,
3994
+ Ha as j,
3995
+ y as k,
3996
+ Wa as l,
3997
+ ve as m,
3998
+ _a as n,
4057
3999
  K as o,
4058
4000
  Ve as p,
4059
- _a as q,
4001
+ Ga as q,
4060
4002
  z as r,
4061
- ia as s,
4062
- Se as t,
4063
- Oe as u,
4064
- Wa as v,
4003
+ pa as s,
4004
+ ke as t,
4005
+ Se as u,
4006
+ Ya as v,
4065
4007
  J as w,
4066
4008
  da as x,
4067
- ke as y,
4009
+ Ae as y,
4068
4010
  ye as z
4069
4011
  };