@malloy-publisher/sdk 0.0.223 → 0.0.224

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