@malloy-publisher/sdk 0.0.204 → 0.0.205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { jsx as $ } from "react/jsx-runtime";
2
- import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
2
+ import { QueryClient as H, QueryClientProvider as f } from "@tanstack/react-query";
3
3
  import h from "axios";
4
- import { useContext as f, createContext as D, useMemo as W, useState as Q, useEffect as G } from "react";
4
+ import { useContext as D, createContext as W, useMemo as G, useState as Q, useEffect as _ } from "react";
5
5
  const u = "http://localhost/api/v0".replace(/\/+$/, "");
6
6
  class k {
7
7
  constructor(r, a = u, t = h) {
@@ -9,51 +9,51 @@ class k {
9
9
  }
10
10
  configuration;
11
11
  }
12
- class _ extends Error {
12
+ class J extends Error {
13
13
  constructor(r, a) {
14
14
  super(a), this.field = r, this.name = "RequiredError";
15
15
  }
16
16
  }
17
- const g = {}, V = "https://example.com", m = function(l, r, a) {
17
+ const P = {}, g = "https://example.com", m = function(l, r, a) {
18
18
  if (a == null)
19
- throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
19
+ throw new J(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
20
20
  };
21
21
  function E(l, r, a = "") {
22
22
  r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((t) => E(l, t, a)) : Object.keys(r).forEach(
23
23
  (t) => E(l, r[t], `${a}${a !== "" ? "." : ""}${t}`)
24
24
  ) : l.has(a) ? l.append(a, r) : l.set(a, r));
25
25
  }
26
- const v = function(l, ...r) {
26
+ const V = function(l, ...r) {
27
27
  const a = new URLSearchParams(l.search);
28
28
  E(a, r), l.search = a.toString();
29
29
  }, I = function(l, r, a) {
30
30
  const t = typeof l != "string";
31
31
  return (t && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
- }, O = function(l) {
32
+ }, v = function(l) {
33
33
  return l.pathname + l.search + l.hash;
34
- }, b = function(l, r, a, t) {
34
+ }, O = function(l, r, a, t) {
35
35
  return (e = r, n = a) => {
36
36
  const o = { ...l.options, url: (e.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
37
37
  return e.request(o);
38
38
  };
39
- }, ye = {
39
+ }, Ae = {
40
40
  Bigquery: "bigquery",
41
41
  Snowflake: "snowflake",
42
42
  Postgres: "postgres",
43
43
  Gcs: "gcs",
44
44
  S3: "s3",
45
45
  Azure: "azure"
46
- }, ke = {
46
+ }, xe = {
47
47
  ServicePrincipal: "service_principal",
48
48
  SasToken: "sas_token"
49
- }, Ce = {
49
+ }, Ne = {
50
50
  Error: "error",
51
51
  Warn: "warn",
52
52
  Debug: "debug"
53
- }, Ae = {
53
+ }, Re = {
54
54
  Success: "success",
55
55
  Error: "error"
56
- }, xe = {
56
+ }, Ue = {
57
57
  Postgres: "postgres",
58
58
  Bigquery: "bigquery",
59
59
  Snowflake: "snowflake",
@@ -63,41 +63,41 @@ const v = function(l, ...r) {
63
63
  Duckdb: "duckdb",
64
64
  Motherduck: "motherduck",
65
65
  Ducklake: "ducklake"
66
- }, Ne = {
66
+ }, Te = {
67
67
  Ok: "ok",
68
68
  Failed: "failed"
69
- }, Re = {
69
+ }, we = {
70
70
  Embedded: "embedded",
71
71
  Materialized: "materialized"
72
- }, Ue = {
72
+ }, Me = {
73
73
  Equal: "equal",
74
74
  In: "in",
75
75
  Like: "like",
76
76
  GreaterThan: "greater_than",
77
77
  LessThan: "less_than"
78
- }, Te = {
78
+ }, Ee = {
79
79
  Debug: "debug",
80
80
  Info: "info",
81
81
  Warn: "warn",
82
82
  Error: "error"
83
- }, we = {
83
+ }, qe = {
84
84
  Pending: "PENDING",
85
85
  Running: "RUNNING",
86
86
  Success: "SUCCESS",
87
87
  Failed: "FAILED",
88
88
  Cancelled: "CANCELLED"
89
- }, Me = {
89
+ }, $e = {
90
90
  Markdown: "markdown",
91
91
  Code: "code"
92
- }, Ee = {
92
+ }, Qe = {
93
93
  Markdown: "markdown",
94
94
  Code: "code"
95
- }, qe = {
95
+ }, Be = {
96
96
  Initializing: "initializing",
97
97
  Serving: "serving",
98
98
  Draining: "draining",
99
99
  Throttled: "throttled"
100
- }, J = function(l) {
100
+ }, K = function(l) {
101
101
  return {
102
102
  /**
103
103
  * Creates a new database connection in the specified environment.
@@ -110,14 +110,14 @@ const v = function(l, ...r) {
110
110
  */
111
111
  createConnection: async (r, a, t, e = {}) => {
112
112
  m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", t);
113
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
113
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
114
114
  let s;
115
115
  l && (s = l.baseOptions);
116
116
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
117
- i["Content-Type"] = "application/json", v(o, p);
117
+ i["Content-Type"] = "application/json", V(o, p);
118
118
  let d = s && s.headers ? s.headers : {};
119
119
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
120
- url: O(o),
120
+ url: v(o),
121
121
  options: c
122
122
  };
123
123
  },
@@ -131,14 +131,14 @@ const v = function(l, ...r) {
131
131
  */
132
132
  deleteConnection: async (r, a, t = {}) => {
133
133
  m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", a);
134
- const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, V);
134
+ const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, g);
135
135
  let o;
136
136
  l && (o = l.baseOptions);
137
137
  const s = { method: "DELETE", ...o, ...t }, c = {};
138
- v(n, {});
138
+ V(n, {});
139
139
  let p = o && o.headers ? o.headers : {};
140
140
  return s.headers = { ...c, ...p, ...t.headers }, {
141
- url: O(n),
141
+ url: v(n),
142
142
  options: s
143
143
  };
144
144
  },
@@ -152,14 +152,14 @@ const v = function(l, ...r) {
152
152
  */
153
153
  getConnection: async (r, a, t = {}) => {
154
154
  m("getConnection", "environmentName", r), m("getConnection", "connectionName", a);
155
- const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, V);
155
+ const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, g);
156
156
  let o;
157
157
  l && (o = l.baseOptions);
158
158
  const s = { method: "GET", ...o, ...t }, c = {};
159
- v(n, {});
159
+ V(n, {});
160
160
  let p = o && o.headers ? o.headers : {};
161
161
  return s.headers = { ...c, ...p, ...t.headers }, {
162
- url: O(n),
162
+ url: v(n),
163
163
  options: s
164
164
  };
165
165
  },
@@ -175,14 +175,14 @@ const v = function(l, ...r) {
175
175
  */
176
176
  getSqlsource: async (r, a, t, e = {}) => {
177
177
  m("getSqlsource", "environmentName", r), m("getSqlsource", "connectionName", a);
178
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
178
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
179
179
  let s;
180
180
  l && (s = l.baseOptions);
181
181
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
182
- t !== void 0 && (p.sqlStatement = t), v(o, p);
182
+ t !== void 0 && (p.sqlStatement = t), V(o, p);
183
183
  let d = s && s.headers ? s.headers : {};
184
184
  return c.headers = { ...i, ...d, ...e.headers }, {
185
- url: O(o),
185
+ url: v(o),
186
186
  options: c
187
187
  };
188
188
  },
@@ -199,14 +199,14 @@ const v = function(l, ...r) {
199
199
  */
200
200
  getSqlsourceInPackage: async (r, a, t, e, n = {}) => {
201
201
  m("getSqlsourceInPackage", "environmentName", r), m("getSqlsourceInPackage", "packageName", a), m("getSqlsourceInPackage", "connectionName", t);
202
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
202
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
203
203
  let c;
204
204
  l && (c = l.baseOptions);
205
205
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
206
- e !== void 0 && (d.sqlStatement = e), v(s, d);
207
- let P = c && c.headers ? c.headers : {};
208
- return i.headers = { ...p, ...P, ...n.headers }, {
209
- url: O(s),
206
+ e !== void 0 && (d.sqlStatement = e), V(s, d);
207
+ let b = c && c.headers ? c.headers : {};
208
+ return i.headers = { ...p, ...b, ...n.headers }, {
209
+ url: v(s),
210
210
  options: i
211
211
  };
212
212
  },
@@ -222,14 +222,14 @@ const v = function(l, ...r) {
222
222
  */
223
223
  getTable: async (r, a, t, e, n = {}) => {
224
224
  m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", t), m("getTable", "tablePath", e);
225
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(e))), s = new URL(o, V);
225
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(e))), s = new URL(o, g);
226
226
  let c;
227
227
  l && (c = l.baseOptions);
228
228
  const i = { method: "GET", ...c, ...n }, p = {};
229
- v(s, {});
230
- let P = c && c.headers ? c.headers : {};
231
- return i.headers = { ...p, ...P, ...n.headers }, {
232
- url: O(s),
229
+ V(s, {});
230
+ let b = c && c.headers ? c.headers : {};
231
+ return i.headers = { ...p, ...b, ...n.headers }, {
232
+ url: v(s),
233
233
  options: i
234
234
  };
235
235
  },
@@ -246,14 +246,14 @@ const v = function(l, ...r) {
246
246
  */
247
247
  getTableInPackage: async (r, a, t, e, n, o = {}) => {
248
248
  m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", n);
249
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, V);
249
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, g);
250
250
  let i;
251
251
  l && (i = l.baseOptions);
252
252
  const p = { method: "GET", ...i, ...o }, d = {};
253
- v(c, {});
253
+ V(c, {});
254
254
  let y = i && i.headers ? i.headers : {};
255
255
  return p.headers = { ...d, ...y, ...o.headers }, {
256
- url: O(c),
256
+ url: v(c),
257
257
  options: p
258
258
  };
259
259
  },
@@ -269,14 +269,14 @@ const v = function(l, ...r) {
269
269
  */
270
270
  getTemporarytable: async (r, a, t, e = {}) => {
271
271
  m("getTemporarytable", "environmentName", r), m("getTemporarytable", "connectionName", a);
272
- const n = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
272
+ const n = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
273
273
  let s;
274
274
  l && (s = l.baseOptions);
275
275
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
276
- t !== void 0 && (p.sqlStatement = t), v(o, p);
276
+ t !== void 0 && (p.sqlStatement = t), V(o, p);
277
277
  let d = s && s.headers ? s.headers : {};
278
278
  return c.headers = { ...i, ...d, ...e.headers }, {
279
- url: O(o),
279
+ url: v(o),
280
280
  options: c
281
281
  };
282
282
  },
@@ -293,14 +293,14 @@ const v = function(l, ...r) {
293
293
  */
294
294
  getTemporarytableInPackage: async (r, a, t, e, n = {}) => {
295
295
  m("getTemporarytableInPackage", "environmentName", r), m("getTemporarytableInPackage", "packageName", a), m("getTemporarytableInPackage", "connectionName", t);
296
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
296
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
297
297
  let c;
298
298
  l && (c = l.baseOptions);
299
299
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
300
- e !== void 0 && (d.sqlStatement = e), v(s, d);
301
- let P = c && c.headers ? c.headers : {};
302
- return i.headers = { ...p, ...P, ...n.headers }, {
303
- url: O(s),
300
+ e !== void 0 && (d.sqlStatement = e), V(s, d);
301
+ let b = c && c.headers ? c.headers : {};
302
+ return i.headers = { ...p, ...b, ...n.headers }, {
303
+ url: v(s),
304
304
  options: i
305
305
  };
306
306
  },
@@ -313,14 +313,14 @@ const v = function(l, ...r) {
313
313
  */
314
314
  listConnections: async (r, a = {}) => {
315
315
  m("listConnections", "environmentName", r);
316
- const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, V);
316
+ const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, g);
317
317
  let n;
318
318
  l && (n = l.baseOptions);
319
319
  const o = { method: "GET", ...n, ...a }, s = {};
320
- v(e, {});
320
+ V(e, {});
321
321
  let i = n && n.headers ? n.headers : {};
322
322
  return o.headers = { ...s, ...i, ...a.headers }, {
323
- url: O(e),
323
+ url: v(e),
324
324
  options: o
325
325
  };
326
326
  },
@@ -334,14 +334,14 @@ const v = function(l, ...r) {
334
334
  */
335
335
  listSchemas: async (r, a, t = {}) => {
336
336
  m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", a);
337
- const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, V);
337
+ const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(e, g);
338
338
  let o;
339
339
  l && (o = l.baseOptions);
340
340
  const s = { method: "GET", ...o, ...t }, c = {};
341
- v(n, {});
341
+ V(n, {});
342
342
  let p = o && o.headers ? o.headers : {};
343
343
  return s.headers = { ...c, ...p, ...t.headers }, {
344
- url: O(n),
344
+ url: v(n),
345
345
  options: s
346
346
  };
347
347
  },
@@ -356,14 +356,14 @@ const v = function(l, ...r) {
356
356
  */
357
357
  listSchemasInPackage: async (r, a, t, e = {}) => {
358
358
  m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", t);
359
- const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(n, V);
359
+ const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(n, g);
360
360
  let s;
361
361
  l && (s = l.baseOptions);
362
362
  const c = { method: "GET", ...s, ...e }, i = {};
363
- v(o, {});
363
+ V(o, {});
364
364
  let d = s && s.headers ? s.headers : {};
365
365
  return c.headers = { ...i, ...d, ...e.headers }, {
366
- url: O(o),
366
+ url: v(o),
367
367
  options: c
368
368
  };
369
369
  },
@@ -379,14 +379,14 @@ const v = function(l, ...r) {
379
379
  */
380
380
  listTables: async (r, a, t, e, n = {}) => {
381
381
  m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", t);
382
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, V);
382
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, g);
383
383
  let c;
384
384
  l && (c = l.baseOptions);
385
385
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
386
- e && (d.tableNames = e), v(s, d);
387
- let P = c && c.headers ? c.headers : {};
388
- return i.headers = { ...p, ...P, ...n.headers }, {
389
- url: O(s),
386
+ e && (d.tableNames = e), V(s, d);
387
+ let b = c && c.headers ? c.headers : {};
388
+ return i.headers = { ...p, ...b, ...n.headers }, {
389
+ url: v(s),
390
390
  options: i
391
391
  };
392
392
  },
@@ -403,14 +403,14 @@ const v = function(l, ...r) {
403
403
  */
404
404
  listTablesInPackage: async (r, a, t, e, n, o = {}) => {
405
405
  m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", e);
406
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(s, V);
406
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(s, g);
407
407
  let i;
408
408
  l && (i = l.baseOptions);
409
- const p = { method: "GET", ...i, ...o }, d = {}, P = {};
410
- n && (P.tableNames = n), v(c, P);
409
+ const p = { method: "GET", ...i, ...o }, d = {}, b = {};
410
+ n && (b.tableNames = n), V(c, b);
411
411
  let y = i && i.headers ? i.headers : {};
412
412
  return p.headers = { ...d, ...y, ...o.headers }, {
413
- url: O(c),
413
+ url: v(c),
414
414
  options: p
415
415
  };
416
416
  },
@@ -426,14 +426,14 @@ const v = function(l, ...r) {
426
426
  */
427
427
  postQuerydata: async (r, a, t, e, n = {}) => {
428
428
  m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", t);
429
- const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
429
+ const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, g);
430
430
  let c;
431
431
  l && (c = l.baseOptions);
432
432
  const i = { method: "POST", ...c, ...n }, p = {}, d = {};
433
- e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", v(s, d);
434
- let P = c && c.headers ? c.headers : {};
435
- return i.headers = { ...p, ...P, ...n.headers }, i.data = I(t, i, l), {
436
- url: O(s),
433
+ e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", V(s, d);
434
+ let b = c && c.headers ? c.headers : {};
435
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(t, i, l), {
436
+ url: v(s),
437
437
  options: i
438
438
  };
439
439
  },
@@ -450,14 +450,14 @@ const v = function(l, ...r) {
450
450
  */
451
451
  postQuerydataInPackage: async (r, a, t, e, n, o = {}) => {
452
452
  m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", e);
453
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, V);
453
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, g);
454
454
  let i;
455
455
  l && (i = l.baseOptions);
456
- const p = { method: "POST", ...i, ...o }, d = {}, P = {};
457
- n !== void 0 && (P.options = n), d["Content-Type"] = "application/json", v(c, P);
456
+ const p = { method: "POST", ...i, ...o }, d = {}, b = {};
457
+ n !== void 0 && (b.options = n), d["Content-Type"] = "application/json", V(c, b);
458
458
  let y = i && i.headers ? i.headers : {};
459
459
  return p.headers = { ...d, ...y, ...o.headers }, p.data = I(e, p, l), {
460
- url: O(c),
460
+ url: v(c),
461
461
  options: p
462
462
  };
463
463
  },
@@ -472,14 +472,14 @@ const v = function(l, ...r) {
472
472
  */
473
473
  postSqlsource: async (r, a, t, e = {}) => {
474
474
  m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", t);
475
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
475
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
476
476
  let s;
477
477
  l && (s = l.baseOptions);
478
478
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
479
- i["Content-Type"] = "application/json", v(o, p);
479
+ i["Content-Type"] = "application/json", V(o, p);
480
480
  let d = s && s.headers ? s.headers : {};
481
481
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
482
- url: O(o),
482
+ url: v(o),
483
483
  options: c
484
484
  };
485
485
  },
@@ -495,14 +495,14 @@ const v = function(l, ...r) {
495
495
  */
496
496
  postSqlsourceInPackage: async (r, a, t, e, n = {}) => {
497
497
  m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
498
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
498
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
499
499
  let c;
500
500
  l && (c = l.baseOptions);
501
501
  const i = { method: "POST", ...c, ...n }, p = {}, d = {};
502
- p["Content-Type"] = "application/json", v(s, d);
503
- let P = c && c.headers ? c.headers : {};
504
- return i.headers = { ...p, ...P, ...n.headers }, i.data = I(e, i, l), {
505
- url: O(s),
502
+ p["Content-Type"] = "application/json", V(s, d);
503
+ let b = c && c.headers ? c.headers : {};
504
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
505
+ url: v(s),
506
506
  options: i
507
507
  };
508
508
  },
@@ -517,14 +517,14 @@ const v = function(l, ...r) {
517
517
  */
518
518
  postTemporarytable: async (r, a, t, e = {}) => {
519
519
  m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", t);
520
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
520
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
521
521
  let s;
522
522
  l && (s = l.baseOptions);
523
523
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
524
- i["Content-Type"] = "application/json", v(o, p);
524
+ i["Content-Type"] = "application/json", V(o, p);
525
525
  let d = s && s.headers ? s.headers : {};
526
526
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
527
- url: O(o),
527
+ url: v(o),
528
528
  options: c
529
529
  };
530
530
  },
@@ -540,14 +540,14 @@ const v = function(l, ...r) {
540
540
  */
541
541
  postTemporarytableInPackage: async (r, a, t, e, n = {}) => {
542
542
  m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
543
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
543
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
544
544
  let c;
545
545
  l && (c = l.baseOptions);
546
546
  const i = { method: "POST", ...c, ...n }, p = {}, d = {};
547
- p["Content-Type"] = "application/json", v(s, d);
548
- let P = c && c.headers ? c.headers : {};
549
- return i.headers = { ...p, ...P, ...n.headers }, i.data = I(e, i, l), {
550
- url: O(s),
547
+ p["Content-Type"] = "application/json", V(s, d);
548
+ let b = c && c.headers ? c.headers : {};
549
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
550
+ url: v(s),
551
551
  options: i
552
552
  };
553
553
  },
@@ -562,20 +562,20 @@ const v = function(l, ...r) {
562
562
  */
563
563
  updateConnection: async (r, a, t, e = {}) => {
564
564
  m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", t);
565
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
565
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, g);
566
566
  let s;
567
567
  l && (s = l.baseOptions);
568
568
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
569
- i["Content-Type"] = "application/json", v(o, p);
569
+ i["Content-Type"] = "application/json", V(o, p);
570
570
  let d = s && s.headers ? s.headers : {};
571
571
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
572
- url: O(o),
572
+ url: v(o),
573
573
  options: c
574
574
  };
575
575
  }
576
576
  };
577
577
  }, S = function(l) {
578
- const r = J(l);
578
+ const r = K(l);
579
579
  return {
580
580
  /**
581
581
  * Creates a new database connection in the specified environment.
@@ -587,8 +587,8 @@ const v = function(l, ...r) {
587
587
  * @throws {RequiredError}
588
588
  */
589
589
  async createConnection(a, t, e, n) {
590
- const o = await r.createConnection(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
591
- return (i, p) => b(o, h, u, l)(i, c || p);
590
+ const o = await r.createConnection(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
591
+ return (i, p) => O(o, h, u, l)(i, c || p);
592
592
  },
593
593
  /**
594
594
  * Permanently deletes a database connection from the environment.
@@ -599,8 +599,8 @@ const v = function(l, ...r) {
599
599
  * @throws {RequiredError}
600
600
  */
601
601
  async deleteConnection(a, t, e) {
602
- const n = await r.deleteConnection(a, t, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
603
- return (c, i) => b(n, h, u, l)(c, s || i);
602
+ const n = await r.deleteConnection(a, t, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
603
+ return (c, i) => O(n, h, u, l)(c, s || i);
604
604
  },
605
605
  /**
606
606
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -611,8 +611,8 @@ const v = function(l, ...r) {
611
611
  * @throws {RequiredError}
612
612
  */
613
613
  async getConnection(a, t, e) {
614
- const n = await r.getConnection(a, t, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
615
- return (c, i) => b(n, h, u, l)(c, s || i);
614
+ const n = await r.getConnection(a, t, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
615
+ return (c, i) => O(n, h, u, l)(c, s || i);
616
616
  },
617
617
  /**
618
618
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -625,8 +625,8 @@ const v = function(l, ...r) {
625
625
  * @throws {RequiredError}
626
626
  */
627
627
  async getSqlsource(a, t, e, n) {
628
- const o = await r.getSqlsource(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getSqlsource"]?.[s]?.url;
629
- return (i, p) => b(o, h, u, l)(i, c || p);
628
+ const o = await r.getSqlsource(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getSqlsource"]?.[s]?.url;
629
+ return (i, p) => O(o, h, u, l)(i, c || p);
630
630
  },
631
631
  /**
632
632
  * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -640,8 +640,8 @@ const v = function(l, ...r) {
640
640
  * @throws {RequiredError}
641
641
  */
642
642
  async getSqlsourceInPackage(a, t, e, n, o) {
643
- const s = await r.getSqlsourceInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
644
- return (p, d) => b(s, h, u, l)(p, i || d);
643
+ const s = await r.getSqlsourceInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
644
+ return (p, d) => O(s, h, u, l)(p, i || d);
645
645
  },
646
646
  /**
647
647
  * Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
@@ -654,8 +654,8 @@ const v = function(l, ...r) {
654
654
  * @throws {RequiredError}
655
655
  */
656
656
  async getTable(a, t, e, n, o) {
657
- const s = await r.getTable(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
658
- return (p, d) => b(s, h, u, l)(p, i || d);
657
+ const s = await r.getTable(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
658
+ return (p, d) => O(s, h, u, l)(p, i || d);
659
659
  },
660
660
  /**
661
661
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -669,8 +669,8 @@ const v = function(l, ...r) {
669
669
  * @throws {RequiredError}
670
670
  */
671
671
  async getTableInPackage(a, t, e, n, o, s) {
672
- const c = await r.getTableInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
673
- return (d, P) => b(c, h, u, l)(d, p || P);
672
+ const c = await r.getTableInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
673
+ return (d, b) => O(c, h, u, l)(d, p || b);
674
674
  },
675
675
  /**
676
676
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -683,8 +683,8 @@ const v = function(l, ...r) {
683
683
  * @throws {RequiredError}
684
684
  */
685
685
  async getTemporarytable(a, t, e, n) {
686
- const o = await r.getTemporarytable(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getTemporarytable"]?.[s]?.url;
687
- return (i, p) => b(o, h, u, l)(i, c || p);
686
+ const o = await r.getTemporarytable(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getTemporarytable"]?.[s]?.url;
687
+ return (i, p) => O(o, h, u, l)(i, c || p);
688
688
  },
689
689
  /**
690
690
  * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -698,8 +698,8 @@ const v = function(l, ...r) {
698
698
  * @throws {RequiredError}
699
699
  */
700
700
  async getTemporarytableInPackage(a, t, e, n, o) {
701
- const s = await r.getTemporarytableInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
702
- return (p, d) => b(s, h, u, l)(p, i || d);
701
+ const s = await r.getTemporarytableInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
702
+ return (p, d) => O(s, h, u, l)(p, i || d);
703
703
  },
704
704
  /**
705
705
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
@@ -709,8 +709,8 @@ const v = function(l, ...r) {
709
709
  * @throws {RequiredError}
710
710
  */
711
711
  async listConnections(a, t) {
712
- const e = await r.listConnections(a, t), n = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[n]?.url;
713
- return (s, c) => b(e, h, u, l)(s, o || c);
712
+ const e = await r.listConnections(a, t), n = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[n]?.url;
713
+ return (s, c) => O(e, h, u, l)(s, o || c);
714
714
  },
715
715
  /**
716
716
  * Retrieves a list of all schemas (databases) available in the specified connection. Each schema includes metadata such as name, description, and whether it\'s the default schema. This endpoint is useful for exploring the database structure and discovering available data sources.
@@ -721,8 +721,8 @@ const v = function(l, ...r) {
721
721
  * @throws {RequiredError}
722
722
  */
723
723
  async listSchemas(a, t, e) {
724
- const n = await r.listSchemas(a, t, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
725
- return (c, i) => b(n, h, u, l)(c, s || i);
724
+ const n = await r.listSchemas(a, t, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
725
+ return (c, i) => O(n, h, u, l)(c, s || i);
726
726
  },
727
727
  /**
728
728
  * Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
@@ -734,8 +734,8 @@ const v = function(l, ...r) {
734
734
  * @throws {RequiredError}
735
735
  */
736
736
  async listSchemasInPackage(a, t, e, n) {
737
- const o = await r.listSchemasInPackage(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
738
- return (i, p) => b(o, h, u, l)(i, c || p);
737
+ const o = await r.listSchemasInPackage(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
738
+ return (i, p) => O(o, h, u, l)(i, c || p);
739
739
  },
740
740
  /**
741
741
  * Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
@@ -748,8 +748,8 @@ const v = function(l, ...r) {
748
748
  * @throws {RequiredError}
749
749
  */
750
750
  async listTables(a, t, e, n, o) {
751
- const s = await r.listTables(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
752
- return (p, d) => b(s, h, u, l)(p, i || d);
751
+ const s = await r.listTables(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
752
+ return (p, d) => O(s, h, u, l)(p, i || d);
753
753
  },
754
754
  /**
755
755
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -763,8 +763,8 @@ const v = function(l, ...r) {
763
763
  * @throws {RequiredError}
764
764
  */
765
765
  async listTablesInPackage(a, t, e, n, o, s) {
766
- const c = await r.listTablesInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
767
- return (d, P) => b(c, h, u, l)(d, p || P);
766
+ const c = await r.listTablesInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
767
+ return (d, b) => O(c, h, u, l)(d, p || b);
768
768
  },
769
769
  /**
770
770
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
@@ -777,8 +777,8 @@ const v = function(l, ...r) {
777
777
  * @throws {RequiredError}
778
778
  */
779
779
  async postQuerydata(a, t, e, n, o) {
780
- const s = await r.postQuerydata(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydata"]?.[c]?.url;
781
- return (p, d) => b(s, h, u, l)(p, i || d);
780
+ const s = await r.postQuerydata(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[c]?.url;
781
+ return (p, d) => O(s, h, u, l)(p, i || d);
782
782
  },
783
783
  /**
784
784
  * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
@@ -792,8 +792,8 @@ const v = function(l, ...r) {
792
792
  * @throws {RequiredError}
793
793
  */
794
794
  async postQuerydataInPackage(a, t, e, n, o, s) {
795
- const c = await r.postQuerydataInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
796
- return (d, P) => b(c, h, u, l)(d, p || P);
795
+ const c = await r.postQuerydataInPackage(a, t, e, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
796
+ return (d, b) => O(c, h, u, l)(d, p || b);
797
797
  },
798
798
  /**
799
799
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -805,8 +805,8 @@ const v = function(l, ...r) {
805
805
  * @throws {RequiredError}
806
806
  */
807
807
  async postSqlsource(a, t, e, n) {
808
- const o = await r.postSqlsource(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
809
- return (i, p) => b(o, h, u, l)(i, c || p);
808
+ const o = await r.postSqlsource(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
809
+ return (i, p) => O(o, h, u, l)(i, c || p);
810
810
  },
811
811
  /**
812
812
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -819,8 +819,8 @@ const v = function(l, ...r) {
819
819
  * @throws {RequiredError}
820
820
  */
821
821
  async postSqlsourceInPackage(a, t, e, n, o) {
822
- const s = await r.postSqlsourceInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
823
- return (p, d) => b(s, h, u, l)(p, i || d);
822
+ const s = await r.postSqlsourceInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
823
+ return (p, d) => O(s, h, u, l)(p, i || d);
824
824
  },
825
825
  /**
826
826
  * Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
@@ -832,8 +832,8 @@ const v = function(l, ...r) {
832
832
  * @throws {RequiredError}
833
833
  */
834
834
  async postTemporarytable(a, t, e, n) {
835
- const o = await r.postTemporarytable(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
836
- return (i, p) => b(o, h, u, l)(i, c || p);
835
+ const o = await r.postTemporarytable(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
836
+ return (i, p) => O(o, h, u, l)(i, c || p);
837
837
  },
838
838
  /**
839
839
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -846,8 +846,8 @@ const v = function(l, ...r) {
846
846
  * @throws {RequiredError}
847
847
  */
848
848
  async postTemporarytableInPackage(a, t, e, n, o) {
849
- const s = await r.postTemporarytableInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
850
- return (p, d) => b(s, h, u, l)(p, i || d);
849
+ const s = await r.postTemporarytableInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
850
+ return (p, d) => O(s, h, u, l)(p, i || d);
851
851
  },
852
852
  /**
853
853
  * Updates the configuration of an existing database connection.
@@ -859,11 +859,11 @@ const v = function(l, ...r) {
859
859
  * @throws {RequiredError}
860
860
  */
861
861
  async updateConnection(a, t, e, n) {
862
- const o = await r.updateConnection(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
863
- return (i, p) => b(o, h, u, l)(i, c || p);
862
+ const o = await r.updateConnection(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
863
+ return (i, p) => O(o, h, u, l)(i, c || p);
864
864
  }
865
865
  };
866
- }, $e = function(l, r, a) {
866
+ }, Fe = function(l, r, a) {
867
867
  const t = S(l);
868
868
  return {
869
869
  /**
@@ -1132,7 +1132,7 @@ const v = function(l, ...r) {
1132
1132
  }
1133
1133
  };
1134
1134
  };
1135
- class K extends k {
1135
+ class Y extends k {
1136
1136
  /**
1137
1137
  * Creates a new database connection in the specified environment.
1138
1138
  * @summary Create a new database connection
@@ -1419,7 +1419,7 @@ class K extends k {
1419
1419
  return S(this.configuration).updateConnection(r, a, t, e).then((n) => n(this.axios, this.basePath));
1420
1420
  }
1421
1421
  }
1422
- const Y = function(l) {
1422
+ const X = function(l) {
1423
1423
  return {
1424
1424
  /**
1425
1425
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1430,20 +1430,20 @@ const Y = function(l) {
1430
1430
  */
1431
1431
  testConnectionConfiguration: async (r, a = {}) => {
1432
1432
  m("testConnectionConfiguration", "connection", r);
1433
- const t = "/connections/test", e = new URL(t, V);
1433
+ const t = "/connections/test", e = new URL(t, g);
1434
1434
  let n;
1435
1435
  l && (n = l.baseOptions);
1436
1436
  const o = { method: "POST", ...n, ...a }, s = {}, c = {};
1437
- s["Content-Type"] = "application/json", v(e, c);
1437
+ s["Content-Type"] = "application/json", V(e, c);
1438
1438
  let i = n && n.headers ? n.headers : {};
1439
1439
  return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
1440
- url: O(e),
1440
+ url: v(e),
1441
1441
  options: o
1442
1442
  };
1443
1443
  }
1444
1444
  };
1445
1445
  }, B = function(l) {
1446
- const r = Y(l);
1446
+ const r = X(l);
1447
1447
  return {
1448
1448
  /**
1449
1449
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1453,11 +1453,11 @@ const Y = function(l) {
1453
1453
  * @throws {RequiredError}
1454
1454
  */
1455
1455
  async testConnectionConfiguration(a, t) {
1456
- const e = await r.testConnectionConfiguration(a, t), n = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1457
- return (s, c) => b(e, h, u, l)(s, o || c);
1456
+ const e = await r.testConnectionConfiguration(a, t), n = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1457
+ return (s, c) => O(e, h, u, l)(s, o || c);
1458
1458
  }
1459
1459
  };
1460
- }, Qe = function(l, r, a) {
1460
+ }, ze = function(l, r, a) {
1461
1461
  const t = B(l);
1462
1462
  return {
1463
1463
  /**
@@ -1472,7 +1472,7 @@ const Y = function(l) {
1472
1472
  }
1473
1473
  };
1474
1474
  };
1475
- class Be extends k {
1475
+ class je extends k {
1476
1476
  /**
1477
1477
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
1478
1478
  * @summary Test database connection configuration
@@ -1485,7 +1485,7 @@ class Be extends k {
1485
1485
  return B(this.configuration).testConnectionConfiguration(r, a).then((t) => t(this.axios, this.basePath));
1486
1486
  }
1487
1487
  }
1488
- const X = function(l) {
1488
+ const Z = function(l) {
1489
1489
  return {
1490
1490
  /**
1491
1491
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1498,20 +1498,20 @@ const X = function(l) {
1498
1498
  */
1499
1499
  listDatabases: async (r, a, t, e = {}) => {
1500
1500
  m("listDatabases", "environmentName", r), m("listDatabases", "packageName", a);
1501
- const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, V);
1501
+ const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
1502
1502
  let s;
1503
1503
  l && (s = l.baseOptions);
1504
1504
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
1505
- t !== void 0 && (p.versionId = t), v(o, p);
1505
+ t !== void 0 && (p.versionId = t), V(o, p);
1506
1506
  let d = s && s.headers ? s.headers : {};
1507
1507
  return c.headers = { ...i, ...d, ...e.headers }, {
1508
- url: O(o),
1508
+ url: v(o),
1509
1509
  options: c
1510
1510
  };
1511
1511
  }
1512
1512
  };
1513
1513
  }, F = function(l) {
1514
- const r = X(l);
1514
+ const r = Z(l);
1515
1515
  return {
1516
1516
  /**
1517
1517
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1523,11 +1523,11 @@ const X = function(l) {
1523
1523
  * @throws {RequiredError}
1524
1524
  */
1525
1525
  async listDatabases(a, t, e, n) {
1526
- const o = await r.listDatabases(a, t, e, n), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1527
- return (i, p) => b(o, h, u, l)(i, c || p);
1526
+ const o = await r.listDatabases(a, t, e, n), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1527
+ return (i, p) => O(o, h, u, l)(i, c || p);
1528
1528
  }
1529
1529
  };
1530
- }, Fe = function(l, r, a) {
1530
+ }, Le = function(l, r, a) {
1531
1531
  const t = F(l);
1532
1532
  return {
1533
1533
  /**
@@ -1544,7 +1544,7 @@ const X = function(l) {
1544
1544
  }
1545
1545
  };
1546
1546
  };
1547
- class Z extends k {
1547
+ class ee extends k {
1548
1548
  /**
1549
1549
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
1550
1550
  * @summary List embedded databases
@@ -1559,7 +1559,7 @@ class Z extends k {
1559
1559
  return F(this.configuration).listDatabases(r, a, t, e).then((n) => n(this.axios, this.basePath));
1560
1560
  }
1561
1561
  }
1562
- const ee = function(l) {
1562
+ const ae = function(l) {
1563
1563
  return {
1564
1564
  /**
1565
1565
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1570,14 +1570,14 @@ const ee = function(l) {
1570
1570
  */
1571
1571
  createEnvironment: async (r, a = {}) => {
1572
1572
  m("createEnvironment", "environment", r);
1573
- const t = "/environments", e = new URL(t, V);
1573
+ const t = "/environments", e = new URL(t, g);
1574
1574
  let n;
1575
1575
  l && (n = l.baseOptions);
1576
1576
  const o = { method: "POST", ...n, ...a }, s = {}, c = {};
1577
- s["Content-Type"] = "application/json", v(e, c);
1577
+ s["Content-Type"] = "application/json", V(e, c);
1578
1578
  let i = n && n.headers ? n.headers : {};
1579
1579
  return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
1580
- url: O(e),
1580
+ url: v(e),
1581
1581
  options: o
1582
1582
  };
1583
1583
  },
@@ -1590,14 +1590,14 @@ const ee = function(l) {
1590
1590
  */
1591
1591
  deleteEnvironment: async (r, a = {}) => {
1592
1592
  m("deleteEnvironment", "environmentName", r);
1593
- const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, V);
1593
+ const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, g);
1594
1594
  let n;
1595
1595
  l && (n = l.baseOptions);
1596
1596
  const o = { method: "DELETE", ...n, ...a }, s = {};
1597
- v(e, {});
1597
+ V(e, {});
1598
1598
  let i = n && n.headers ? n.headers : {};
1599
1599
  return o.headers = { ...s, ...i, ...a.headers }, {
1600
- url: O(e),
1600
+ url: v(e),
1601
1601
  options: o
1602
1602
  };
1603
1603
  },
@@ -1611,14 +1611,14 @@ const ee = function(l) {
1611
1611
  */
1612
1612
  getEnvironment: async (r, a, t = {}) => {
1613
1613
  m("getEnvironment", "environmentName", r);
1614
- const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(e, V);
1614
+ const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(e, g);
1615
1615
  let o;
1616
1616
  l && (o = l.baseOptions);
1617
1617
  const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1618
- a !== void 0 && (i.reload = a), v(n, i);
1618
+ a !== void 0 && (i.reload = a), V(n, i);
1619
1619
  let p = o && o.headers ? o.headers : {};
1620
1620
  return s.headers = { ...c, ...p, ...t.headers }, {
1621
- url: O(n),
1621
+ url: v(n),
1622
1622
  options: s
1623
1623
  };
1624
1624
  },
@@ -1629,14 +1629,14 @@ const ee = function(l) {
1629
1629
  * @throws {RequiredError}
1630
1630
  */
1631
1631
  listEnvironments: async (r = {}) => {
1632
- const a = "/environments", t = new URL(a, V);
1632
+ const a = "/environments", t = new URL(a, g);
1633
1633
  let e;
1634
1634
  l && (e = l.baseOptions);
1635
1635
  const n = { method: "GET", ...e, ...r }, o = {};
1636
- v(t, {});
1636
+ V(t, {});
1637
1637
  let c = e && e.headers ? e.headers : {};
1638
1638
  return n.headers = { ...o, ...c, ...r.headers }, {
1639
- url: O(t),
1639
+ url: v(t),
1640
1640
  options: n
1641
1641
  };
1642
1642
  },
@@ -1650,20 +1650,20 @@ const ee = function(l) {
1650
1650
  */
1651
1651
  updateEnvironment: async (r, a, t = {}) => {
1652
1652
  m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", a);
1653
- const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(e, V);
1653
+ const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(e, g);
1654
1654
  let o;
1655
1655
  l && (o = l.baseOptions);
1656
1656
  const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1657
- c["Content-Type"] = "application/json", v(n, i);
1657
+ c["Content-Type"] = "application/json", V(n, i);
1658
1658
  let p = o && o.headers ? o.headers : {};
1659
1659
  return s.headers = { ...c, ...p, ...t.headers }, s.data = I(a, s, l), {
1660
- url: O(n),
1660
+ url: v(n),
1661
1661
  options: s
1662
1662
  };
1663
1663
  }
1664
1664
  };
1665
1665
  }, x = function(l) {
1666
- const r = ee(l);
1666
+ const r = ae(l);
1667
1667
  return {
1668
1668
  /**
1669
1669
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1673,8 +1673,8 @@ const ee = function(l) {
1673
1673
  * @throws {RequiredError}
1674
1674
  */
1675
1675
  async createEnvironment(a, t) {
1676
- const e = await r.createEnvironment(a, t), n = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1677
- return (s, c) => b(e, h, u, l)(s, o || c);
1676
+ const e = await r.createEnvironment(a, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1677
+ return (s, c) => O(e, h, u, l)(s, o || c);
1678
1678
  },
1679
1679
  /**
1680
1680
  * Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
@@ -1684,8 +1684,8 @@ const ee = function(l) {
1684
1684
  * @throws {RequiredError}
1685
1685
  */
1686
1686
  async deleteEnvironment(a, t) {
1687
- const e = await r.deleteEnvironment(a, t), n = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1688
- return (s, c) => b(e, h, u, l)(s, o || c);
1687
+ const e = await r.deleteEnvironment(a, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1688
+ return (s, c) => O(e, h, u, l)(s, o || c);
1689
1689
  },
1690
1690
  /**
1691
1691
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
@@ -1696,8 +1696,8 @@ const ee = function(l) {
1696
1696
  * @throws {RequiredError}
1697
1697
  */
1698
1698
  async getEnvironment(a, t, e) {
1699
- const n = await r.getEnvironment(a, t, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1700
- return (c, i) => b(n, h, u, l)(c, s || i);
1699
+ const n = await r.getEnvironment(a, t, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1700
+ return (c, i) => O(n, h, u, l)(c, s || i);
1701
1701
  },
1702
1702
  /**
1703
1703
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
@@ -1706,8 +1706,8 @@ const ee = function(l) {
1706
1706
  * @throws {RequiredError}
1707
1707
  */
1708
1708
  async listEnvironments(a) {
1709
- const t = await r.listEnvironments(a), e = l?.serverIndex ?? 0, n = g["EnvironmentsApi.listEnvironments"]?.[e]?.url;
1710
- return (o, s) => b(t, h, u, l)(o, n || s);
1709
+ const t = await r.listEnvironments(a), e = l?.serverIndex ?? 0, n = P["EnvironmentsApi.listEnvironments"]?.[e]?.url;
1710
+ return (o, s) => O(t, h, u, l)(o, n || s);
1711
1711
  },
1712
1712
  /**
1713
1713
  * Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
@@ -1718,11 +1718,11 @@ const ee = function(l) {
1718
1718
  * @throws {RequiredError}
1719
1719
  */
1720
1720
  async updateEnvironment(a, t, e) {
1721
- const n = await r.updateEnvironment(a, t, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1722
- return (c, i) => b(n, h, u, l)(c, s || i);
1721
+ const n = await r.updateEnvironment(a, t, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1722
+ return (c, i) => O(n, h, u, l)(c, s || i);
1723
1723
  }
1724
1724
  };
1725
- }, ze = function(l, r, a) {
1725
+ }, He = function(l, r, a) {
1726
1726
  const t = x(l);
1727
1727
  return {
1728
1728
  /**
@@ -1778,7 +1778,7 @@ const ee = function(l) {
1778
1778
  }
1779
1779
  };
1780
1780
  };
1781
- class ae extends k {
1781
+ class te extends k {
1782
1782
  /**
1783
1783
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
1784
1784
  * @summary Create a new environment
@@ -1836,7 +1836,7 @@ class ae extends k {
1836
1836
  return x(this.configuration).updateEnvironment(r, a, t).then((e) => e(this.axios, this.basePath));
1837
1837
  }
1838
1838
  }
1839
- const te = function(l) {
1839
+ const ne = function(l) {
1840
1840
  return {
1841
1841
  /**
1842
1842
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -1848,14 +1848,14 @@ const te = function(l) {
1848
1848
  */
1849
1849
  getManifest: async (r, a, t = {}) => {
1850
1850
  m("getManifest", "environmentName", r), m("getManifest", "packageName", a);
1851
- const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, V);
1851
+ const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
1852
1852
  let o;
1853
1853
  l && (o = l.baseOptions);
1854
1854
  const s = { method: "GET", ...o, ...t }, c = {};
1855
- v(n, {});
1855
+ V(n, {});
1856
1856
  let p = o && o.headers ? o.headers : {};
1857
1857
  return s.headers = { ...c, ...p, ...t.headers }, {
1858
- url: O(n),
1858
+ url: v(n),
1859
1859
  options: s
1860
1860
  };
1861
1861
  },
@@ -1870,20 +1870,20 @@ const te = function(l) {
1870
1870
  */
1871
1871
  manifestAction: async (r, a, t, e = {}) => {
1872
1872
  m("manifestAction", "environmentName", r), m("manifestAction", "packageName", a), m("manifestAction", "action", t);
1873
- const n = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, V);
1873
+ const n = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
1874
1874
  let s;
1875
1875
  l && (s = l.baseOptions);
1876
1876
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
1877
- t !== void 0 && (p.action = t), v(o, p);
1877
+ t !== void 0 && (p.action = t), V(o, p);
1878
1878
  let d = s && s.headers ? s.headers : {};
1879
1879
  return c.headers = { ...i, ...d, ...e.headers }, {
1880
- url: O(o),
1880
+ url: v(o),
1881
1881
  options: c
1882
1882
  };
1883
1883
  }
1884
1884
  };
1885
1885
  }, q = function(l) {
1886
- const r = te(l);
1886
+ const r = ne(l);
1887
1887
  return {
1888
1888
  /**
1889
1889
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -1894,8 +1894,8 @@ const te = function(l) {
1894
1894
  * @throws {RequiredError}
1895
1895
  */
1896
1896
  async getManifest(a, t, e) {
1897
- const n = await r.getManifest(a, t, e), o = l?.serverIndex ?? 0, s = g["ManifestsApi.getManifest"]?.[o]?.url;
1898
- return (c, i) => b(n, h, u, l)(c, s || i);
1897
+ const n = await r.getManifest(a, t, e), o = l?.serverIndex ?? 0, s = P["ManifestsApi.getManifest"]?.[o]?.url;
1898
+ return (c, i) => O(n, h, u, l)(c, s || i);
1899
1899
  },
1900
1900
  /**
1901
1901
  * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
@@ -1907,11 +1907,11 @@ const te = function(l) {
1907
1907
  * @throws {RequiredError}
1908
1908
  */
1909
1909
  async manifestAction(a, t, e, n) {
1910
- const o = await r.manifestAction(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ManifestsApi.manifestAction"]?.[s]?.url;
1911
- return (i, p) => b(o, h, u, l)(i, c || p);
1910
+ const o = await r.manifestAction(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ManifestsApi.manifestAction"]?.[s]?.url;
1911
+ return (i, p) => O(o, h, u, l)(i, c || p);
1912
1912
  }
1913
1913
  };
1914
- }, je = function(l, r, a) {
1914
+ }, fe = function(l, r, a) {
1915
1915
  const t = q(l);
1916
1916
  return {
1917
1917
  /**
@@ -1939,7 +1939,7 @@ const te = function(l) {
1939
1939
  }
1940
1940
  };
1941
1941
  };
1942
- class ne extends k {
1942
+ class re extends k {
1943
1943
  /**
1944
1944
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1945
1945
  * @summary Get the build manifest for a package
@@ -1966,9 +1966,9 @@ class ne extends k {
1966
1966
  return q(this.configuration).manifestAction(r, a, t, e).then((n) => n(this.axios, this.basePath));
1967
1967
  }
1968
1968
  }
1969
- const Le = {
1969
+ const De = {
1970
1970
  Reload: "reload"
1971
- }, re = function(l) {
1971
+ }, oe = function(l) {
1972
1972
  return {
1973
1973
  /**
1974
1974
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
@@ -1981,14 +1981,14 @@ const Le = {
1981
1981
  */
1982
1982
  createMaterialization: async (r, a, t, e = {}) => {
1983
1983
  m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", a);
1984
- const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, V);
1984
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
1985
1985
  let s;
1986
1986
  l && (s = l.baseOptions);
1987
1987
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
1988
- i["Content-Type"] = "application/json", v(o, p);
1988
+ i["Content-Type"] = "application/json", V(o, p);
1989
1989
  let d = s && s.headers ? s.headers : {};
1990
1990
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
1991
- url: O(o),
1991
+ url: v(o),
1992
1992
  options: c
1993
1993
  };
1994
1994
  },
@@ -2003,14 +2003,14 @@ const Le = {
2003
2003
  */
2004
2004
  deleteMaterialization: async (r, a, t, e = {}) => {
2005
2005
  m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", t);
2006
- const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, V);
2006
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, g);
2007
2007
  let s;
2008
2008
  l && (s = l.baseOptions);
2009
2009
  const c = { method: "DELETE", ...s, ...e }, i = {};
2010
- v(o, {});
2010
+ V(o, {});
2011
2011
  let d = s && s.headers ? s.headers : {};
2012
2012
  return c.headers = { ...i, ...d, ...e.headers }, {
2013
- url: O(o),
2013
+ url: v(o),
2014
2014
  options: c
2015
2015
  };
2016
2016
  },
@@ -2025,14 +2025,14 @@ const Le = {
2025
2025
  */
2026
2026
  getMaterialization: async (r, a, t, e = {}) => {
2027
2027
  m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", t);
2028
- const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, V);
2028
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, g);
2029
2029
  let s;
2030
2030
  l && (s = l.baseOptions);
2031
2031
  const c = { method: "GET", ...s, ...e }, i = {};
2032
- v(o, {});
2032
+ V(o, {});
2033
2033
  let d = s && s.headers ? s.headers : {};
2034
2034
  return c.headers = { ...i, ...d, ...e.headers }, {
2035
- url: O(o),
2035
+ url: v(o),
2036
2036
  options: c
2037
2037
  };
2038
2038
  },
@@ -2048,14 +2048,14 @@ const Le = {
2048
2048
  */
2049
2049
  listMaterializations: async (r, a, t, e, n = {}) => {
2050
2050
  m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", a);
2051
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2051
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, g);
2052
2052
  let c;
2053
2053
  l && (c = l.baseOptions);
2054
2054
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2055
- t !== void 0 && (d.limit = t), e !== void 0 && (d.offset = e), v(s, d);
2056
- let P = c && c.headers ? c.headers : {};
2057
- return i.headers = { ...p, ...P, ...n.headers }, {
2058
- url: O(s),
2055
+ t !== void 0 && (d.limit = t), e !== void 0 && (d.offset = e), V(s, d);
2056
+ let b = c && c.headers ? c.headers : {};
2057
+ return i.headers = { ...p, ...b, ...n.headers }, {
2058
+ url: v(s),
2059
2059
  options: i
2060
2060
  };
2061
2061
  },
@@ -2071,20 +2071,20 @@ const Le = {
2071
2071
  */
2072
2072
  materializationAction: async (r, a, t, e, n = {}) => {
2073
2073
  m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", t), m("materializationAction", "action", e);
2074
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, V);
2074
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, g);
2075
2075
  let c;
2076
2076
  l && (c = l.baseOptions);
2077
2077
  const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2078
- e !== void 0 && (d.action = e), v(s, d);
2079
- let P = c && c.headers ? c.headers : {};
2080
- return i.headers = { ...p, ...P, ...n.headers }, {
2081
- url: O(s),
2078
+ e !== void 0 && (d.action = e), V(s, d);
2079
+ let b = c && c.headers ? c.headers : {};
2080
+ return i.headers = { ...p, ...b, ...n.headers }, {
2081
+ url: v(s),
2082
2082
  options: i
2083
2083
  };
2084
2084
  }
2085
2085
  };
2086
2086
  }, N = function(l) {
2087
- const r = re(l);
2087
+ const r = oe(l);
2088
2088
  return {
2089
2089
  /**
2090
2090
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
@@ -2096,8 +2096,8 @@ const Le = {
2096
2096
  * @throws {RequiredError}
2097
2097
  */
2098
2098
  async createMaterialization(a, t, e, n) {
2099
- const o = await r.createMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
2100
- return (i, p) => b(o, h, u, l)(i, c || p);
2099
+ const o = await r.createMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2100
+ return (i, p) => O(o, h, u, l)(i, c || p);
2101
2101
  },
2102
2102
  /**
2103
2103
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -2109,8 +2109,8 @@ const Le = {
2109
2109
  * @throws {RequiredError}
2110
2110
  */
2111
2111
  async deleteMaterialization(a, t, e, n) {
2112
- const o = await r.deleteMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
2113
- return (i, p) => b(o, h, u, l)(i, c || p);
2112
+ const o = await r.deleteMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
2113
+ return (i, p) => O(o, h, u, l)(i, c || p);
2114
2114
  },
2115
2115
  /**
2116
2116
  *
@@ -2122,8 +2122,8 @@ const Le = {
2122
2122
  * @throws {RequiredError}
2123
2123
  */
2124
2124
  async getMaterialization(a, t, e, n) {
2125
- const o = await r.getMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
2126
- return (i, p) => b(o, h, u, l)(i, c || p);
2125
+ const o = await r.getMaterialization(a, t, e, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
2126
+ return (i, p) => O(o, h, u, l)(i, c || p);
2127
2127
  },
2128
2128
  /**
2129
2129
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2136,8 +2136,8 @@ const Le = {
2136
2136
  * @throws {RequiredError}
2137
2137
  */
2138
2138
  async listMaterializations(a, t, e, n, o) {
2139
- const s = await r.listMaterializations(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
2140
- return (p, d) => b(s, h, u, l)(p, i || d);
2139
+ const s = await r.listMaterializations(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
2140
+ return (p, d) => O(s, h, u, l)(p, i || d);
2141
2141
  },
2142
2142
  /**
2143
2143
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
@@ -2150,11 +2150,11 @@ const Le = {
2150
2150
  * @throws {RequiredError}
2151
2151
  */
2152
2152
  async materializationAction(a, t, e, n, o) {
2153
- const s = await r.materializationAction(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
2154
- return (p, d) => b(s, h, u, l)(p, i || d);
2153
+ const s = await r.materializationAction(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
2154
+ return (p, d) => O(s, h, u, l)(p, i || d);
2155
2155
  }
2156
2156
  };
2157
- }, He = function(l, r, a) {
2157
+ }, We = function(l, r, a) {
2158
2158
  const t = N(l);
2159
2159
  return {
2160
2160
  /**
@@ -2221,7 +2221,7 @@ const Le = {
2221
2221
  }
2222
2222
  };
2223
2223
  };
2224
- class oe extends k {
2224
+ class se extends k {
2225
2225
  /**
2226
2226
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
2227
2227
  * @summary Create a materialization
@@ -2290,10 +2290,10 @@ class oe extends k {
2290
2290
  return N(this.configuration).materializationAction(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2291
2291
  }
2292
2292
  }
2293
- const fe = {
2293
+ const Ge = {
2294
2294
  Start: "start",
2295
2295
  Stop: "stop"
2296
- }, se = function(l) {
2296
+ }, ce = function(l) {
2297
2297
  return {
2298
2298
  /**
2299
2299
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -2307,14 +2307,14 @@ const fe = {
2307
2307
  */
2308
2308
  compileModelSource: async (r, a, t, e, n = {}) => {
2309
2309
  m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", e);
2310
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
2310
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2311
2311
  let c;
2312
2312
  l && (c = l.baseOptions);
2313
2313
  const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2314
- p["Content-Type"] = "application/json", v(s, d);
2315
- let P = c && c.headers ? c.headers : {};
2316
- return i.headers = { ...p, ...P, ...n.headers }, i.data = I(e, i, l), {
2317
- url: O(s),
2314
+ p["Content-Type"] = "application/json", V(s, d);
2315
+ let b = c && c.headers ? c.headers : {};
2316
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
2317
+ url: v(s),
2318
2318
  options: i
2319
2319
  };
2320
2320
  },
@@ -2330,14 +2330,14 @@ const fe = {
2330
2330
  */
2331
2331
  executeQueryModel: async (r, a, t, e, n = {}) => {
2332
2332
  m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", e);
2333
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
2333
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2334
2334
  let c;
2335
2335
  l && (c = l.baseOptions);
2336
2336
  const i = { method: "POST", ...c, ...n }, p = {}, d = {};
2337
- p["Content-Type"] = "application/json", v(s, d);
2338
- let P = c && c.headers ? c.headers : {};
2339
- return i.headers = { ...p, ...P, ...n.headers }, i.data = I(e, i, l), {
2340
- url: O(s),
2337
+ p["Content-Type"] = "application/json", V(s, d);
2338
+ let b = c && c.headers ? c.headers : {};
2339
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = I(e, i, l), {
2340
+ url: v(s),
2341
2341
  options: i
2342
2342
  };
2343
2343
  },
@@ -2353,14 +2353,14 @@ const fe = {
2353
2353
  */
2354
2354
  getModel: async (r, a, t, e, n = {}) => {
2355
2355
  m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", t);
2356
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
2356
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2357
2357
  let c;
2358
2358
  l && (c = l.baseOptions);
2359
2359
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2360
- e !== void 0 && (d.versionId = e), v(s, d);
2361
- let P = c && c.headers ? c.headers : {};
2362
- return i.headers = { ...p, ...P, ...n.headers }, {
2363
- url: O(s),
2360
+ e !== void 0 && (d.versionId = e), V(s, d);
2361
+ let b = c && c.headers ? c.headers : {};
2362
+ return i.headers = { ...p, ...b, ...n.headers }, {
2363
+ url: v(s),
2364
2364
  options: i
2365
2365
  };
2366
2366
  },
@@ -2375,20 +2375,20 @@ const fe = {
2375
2375
  */
2376
2376
  listModels: async (r, a, t, e = {}) => {
2377
2377
  m("listModels", "environmentName", r), m("listModels", "packageName", a);
2378
- const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, V);
2378
+ const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
2379
2379
  let s;
2380
2380
  l && (s = l.baseOptions);
2381
2381
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2382
- t !== void 0 && (p.versionId = t), v(o, p);
2382
+ t !== void 0 && (p.versionId = t), V(o, p);
2383
2383
  let d = s && s.headers ? s.headers : {};
2384
2384
  return c.headers = { ...i, ...d, ...e.headers }, {
2385
- url: O(o),
2385
+ url: v(o),
2386
2386
  options: c
2387
2387
  };
2388
2388
  }
2389
2389
  };
2390
2390
  }, U = function(l) {
2391
- const r = se(l);
2391
+ const r = ce(l);
2392
2392
  return {
2393
2393
  /**
2394
2394
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -2401,8 +2401,8 @@ const fe = {
2401
2401
  * @throws {RequiredError}
2402
2402
  */
2403
2403
  async compileModelSource(a, t, e, n, o) {
2404
- const s = await r.compileModelSource(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2405
- return (p, d) => b(s, h, u, l)(p, i || d);
2404
+ const s = await r.compileModelSource(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2405
+ return (p, d) => O(s, h, u, l)(p, i || d);
2406
2406
  },
2407
2407
  /**
2408
2408
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
@@ -2415,8 +2415,8 @@ const fe = {
2415
2415
  * @throws {RequiredError}
2416
2416
  */
2417
2417
  async executeQueryModel(a, t, e, n, o) {
2418
- const s = await r.executeQueryModel(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2419
- return (p, d) => b(s, h, u, l)(p, i || d);
2418
+ const s = await r.executeQueryModel(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2419
+ return (p, d) => O(s, h, u, l)(p, i || d);
2420
2420
  },
2421
2421
  /**
2422
2422
  * Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications.
@@ -2429,8 +2429,8 @@ const fe = {
2429
2429
  * @throws {RequiredError}
2430
2430
  */
2431
2431
  async getModel(a, t, e, n, o) {
2432
- const s = await r.getModel(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2433
- return (p, d) => b(s, h, u, l)(p, i || d);
2432
+ const s = await r.getModel(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2433
+ return (p, d) => O(s, h, u, l)(p, i || d);
2434
2434
  },
2435
2435
  /**
2436
2436
  * Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
@@ -2442,11 +2442,11 @@ const fe = {
2442
2442
  * @throws {RequiredError}
2443
2443
  */
2444
2444
  async listModels(a, t, e, n) {
2445
- const o = await r.listModels(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2446
- return (i, p) => b(o, h, u, l)(i, c || p);
2445
+ const o = await r.listModels(a, t, e, n), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
2446
+ return (i, p) => O(o, h, u, l)(i, c || p);
2447
2447
  }
2448
2448
  };
2449
- }, De = function(l, r, a) {
2449
+ }, _e = function(l, r, a) {
2450
2450
  const t = U(l);
2451
2451
  return {
2452
2452
  /**
@@ -2502,7 +2502,7 @@ const fe = {
2502
2502
  }
2503
2503
  };
2504
2504
  };
2505
- class ce extends k {
2505
+ class le extends k {
2506
2506
  /**
2507
2507
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
2508
2508
  * @summary Compile Malloy source code
@@ -2559,7 +2559,7 @@ class ce extends k {
2559
2559
  return U(this.configuration).listModels(r, a, t, e).then((n) => n(this.axios, this.basePath));
2560
2560
  }
2561
2561
  }
2562
- const le = function(l) {
2562
+ const ie = function(l) {
2563
2563
  return {
2564
2564
  /**
2565
2565
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -2577,14 +2577,14 @@ const le = function(l) {
2577
2577
  */
2578
2578
  executeNotebookCell: async (r, a, t, e, n, o, s, c, i = {}) => {
2579
2579
  m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", e);
2580
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, V);
2581
- let P;
2582
- l && (P = l.baseOptions);
2583
- const y = { method: "GET", ...P, ...i }, T = {}, C = {};
2584
- n !== void 0 && (C.versionId = n), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(d, C);
2585
- let A = P && P.headers ? P.headers : {};
2586
- return y.headers = { ...T, ...A, ...i.headers }, {
2587
- url: O(d),
2580
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, g);
2581
+ let b;
2582
+ l && (b = l.baseOptions);
2583
+ const y = { method: "GET", ...b, ...i }, w = {}, C = {};
2584
+ n !== void 0 && (C.versionId = n), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), V(d, C);
2585
+ let A = b && b.headers ? b.headers : {};
2586
+ return y.headers = { ...w, ...A, ...i.headers }, {
2587
+ url: v(d),
2588
2588
  options: y
2589
2589
  };
2590
2590
  },
@@ -2600,14 +2600,14 @@ const le = function(l) {
2600
2600
  */
2601
2601
  getNotebook: async (r, a, t, e, n = {}) => {
2602
2602
  m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", t);
2603
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
2603
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2604
2604
  let c;
2605
2605
  l && (c = l.baseOptions);
2606
2606
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2607
- e !== void 0 && (d.versionId = e), v(s, d);
2608
- let P = c && c.headers ? c.headers : {};
2609
- return i.headers = { ...p, ...P, ...n.headers }, {
2610
- url: O(s),
2607
+ e !== void 0 && (d.versionId = e), V(s, d);
2608
+ let b = c && c.headers ? c.headers : {};
2609
+ return i.headers = { ...p, ...b, ...n.headers }, {
2610
+ url: v(s),
2611
2611
  options: i
2612
2612
  };
2613
2613
  },
@@ -2622,20 +2622,20 @@ const le = function(l) {
2622
2622
  */
2623
2623
  listNotebooks: async (r, a, t, e = {}) => {
2624
2624
  m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", a);
2625
- const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, V);
2625
+ const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
2626
2626
  let s;
2627
2627
  l && (s = l.baseOptions);
2628
2628
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2629
- t !== void 0 && (p.versionId = t), v(o, p);
2629
+ t !== void 0 && (p.versionId = t), V(o, p);
2630
2630
  let d = s && s.headers ? s.headers : {};
2631
2631
  return c.headers = { ...i, ...d, ...e.headers }, {
2632
- url: O(o),
2632
+ url: v(o),
2633
2633
  options: c
2634
2634
  };
2635
2635
  }
2636
2636
  };
2637
- }, w = function(l) {
2638
- const r = le(l);
2637
+ }, M = function(l) {
2638
+ const r = ie(l);
2639
2639
  return {
2640
2640
  /**
2641
2641
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -2652,8 +2652,8 @@ const le = function(l) {
2652
2652
  * @throws {RequiredError}
2653
2653
  */
2654
2654
  async executeNotebookCell(a, t, e, n, o, s, c, i, p) {
2655
- const d = await r.executeNotebookCell(a, t, e, n, o, s, c, i, p), P = l?.serverIndex ?? 0, y = g["NotebooksApi.executeNotebookCell"]?.[P]?.url;
2656
- return (T, C) => b(d, h, u, l)(T, y || C);
2655
+ const d = await r.executeNotebookCell(a, t, e, n, o, s, c, i, p), b = l?.serverIndex ?? 0, y = P["NotebooksApi.executeNotebookCell"]?.[b]?.url;
2656
+ return (w, C) => O(d, h, u, l)(w, y || C);
2657
2657
  },
2658
2658
  /**
2659
2659
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2666,8 +2666,8 @@ const le = function(l) {
2666
2666
  * @throws {RequiredError}
2667
2667
  */
2668
2668
  async getNotebook(a, t, e, n, o) {
2669
- const s = await r.getNotebook(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2670
- return (p, d) => b(s, h, u, l)(p, i || d);
2669
+ const s = await r.getNotebook(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2670
+ return (p, d) => O(s, h, u, l)(p, i || d);
2671
2671
  },
2672
2672
  /**
2673
2673
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2679,12 +2679,12 @@ const le = function(l) {
2679
2679
  * @throws {RequiredError}
2680
2680
  */
2681
2681
  async listNotebooks(a, t, e, n) {
2682
- const o = await r.listNotebooks(a, t, e, n), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2683
- return (i, p) => b(o, h, u, l)(i, c || p);
2682
+ const o = await r.listNotebooks(a, t, e, n), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2683
+ return (i, p) => O(o, h, u, l)(i, c || p);
2684
2684
  }
2685
2685
  };
2686
- }, We = function(l, r, a) {
2687
- const t = w(l);
2686
+ }, Je = function(l, r, a) {
2687
+ const t = M(l);
2688
2688
  return {
2689
2689
  /**
2690
2690
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -2700,8 +2700,8 @@ const le = function(l) {
2700
2700
  * @param {*} [options] Override http request option.
2701
2701
  * @throws {RequiredError}
2702
2702
  */
2703
- executeNotebookCell(e, n, o, s, c, i, p, d, P) {
2704
- return t.executeNotebookCell(e, n, o, s, c, i, p, d, P).then((y) => y(a, r));
2703
+ executeNotebookCell(e, n, o, s, c, i, p, d, b) {
2704
+ return t.executeNotebookCell(e, n, o, s, c, i, p, d, b).then((y) => y(a, r));
2705
2705
  },
2706
2706
  /**
2707
2707
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2730,7 +2730,7 @@ const le = function(l) {
2730
2730
  }
2731
2731
  };
2732
2732
  };
2733
- class ie extends k {
2733
+ class pe extends k {
2734
2734
  /**
2735
2735
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2736
2736
  * @summary Execute a specific notebook cell
@@ -2747,7 +2747,7 @@ class ie extends k {
2747
2747
  * @memberof NotebooksApi
2748
2748
  */
2749
2749
  executeNotebookCell(r, a, t, e, n, o, s, c, i) {
2750
- return w(this.configuration).executeNotebookCell(r, a, t, e, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
2750
+ return M(this.configuration).executeNotebookCell(r, a, t, e, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
2751
2751
  }
2752
2752
  /**
2753
2753
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2761,7 +2761,7 @@ class ie extends k {
2761
2761
  * @memberof NotebooksApi
2762
2762
  */
2763
2763
  getNotebook(r, a, t, e, n) {
2764
- return w(this.configuration).getNotebook(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2764
+ return M(this.configuration).getNotebook(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
2765
2765
  }
2766
2766
  /**
2767
2767
  * Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
@@ -2774,13 +2774,13 @@ class ie extends k {
2774
2774
  * @memberof NotebooksApi
2775
2775
  */
2776
2776
  listNotebooks(r, a, t, e) {
2777
- return w(this.configuration).listNotebooks(r, a, t, e).then((n) => n(this.axios, this.basePath));
2777
+ return M(this.configuration).listNotebooks(r, a, t, e).then((n) => n(this.axios, this.basePath));
2778
2778
  }
2779
2779
  }
2780
- const Ge = {
2780
+ const Ke = {
2781
2781
  True: "true",
2782
2782
  False: "false"
2783
- }, pe = function(l) {
2783
+ }, me = function(l) {
2784
2784
  return {
2785
2785
  /**
2786
2786
  * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
@@ -2793,14 +2793,14 @@ const Ge = {
2793
2793
  */
2794
2794
  createPackage: async (r, a, t, e = {}) => {
2795
2795
  m("createPackage", "environmentName", r), m("createPackage", "_package", a);
2796
- const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(n, V);
2796
+ const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(n, g);
2797
2797
  let s;
2798
2798
  l && (s = l.baseOptions);
2799
2799
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2800
- t !== void 0 && (p.autoLoadManifest = t), i["Content-Type"] = "application/json", v(o, p);
2800
+ t !== void 0 && (p.autoLoadManifest = t), i["Content-Type"] = "application/json", V(o, p);
2801
2801
  let d = s && s.headers ? s.headers : {};
2802
2802
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(a, c, l), {
2803
- url: O(o),
2803
+ url: v(o),
2804
2804
  options: c
2805
2805
  };
2806
2806
  },
@@ -2814,14 +2814,14 @@ const Ge = {
2814
2814
  */
2815
2815
  deletePackage: async (r, a, t = {}) => {
2816
2816
  m("deletePackage", "environmentName", r), m("deletePackage", "packageName", a);
2817
- const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, V);
2817
+ const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
2818
2818
  let o;
2819
2819
  l && (o = l.baseOptions);
2820
2820
  const s = { method: "DELETE", ...o, ...t }, c = {};
2821
- v(n, {});
2821
+ V(n, {});
2822
2822
  let p = o && o.headers ? o.headers : {};
2823
2823
  return s.headers = { ...c, ...p, ...t.headers }, {
2824
- url: O(n),
2824
+ url: v(n),
2825
2825
  options: s
2826
2826
  };
2827
2827
  },
@@ -2837,14 +2837,14 @@ const Ge = {
2837
2837
  */
2838
2838
  getPackage: async (r, a, t, e, n = {}) => {
2839
2839
  m("getPackage", "environmentName", r), m("getPackage", "packageName", a);
2840
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2840
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, g);
2841
2841
  let c;
2842
2842
  l && (c = l.baseOptions);
2843
2843
  const i = { method: "GET", ...c, ...n }, p = {}, d = {};
2844
- t !== void 0 && (d.versionId = t), e !== void 0 && (d.reload = e), v(s, d);
2845
- let P = c && c.headers ? c.headers : {};
2846
- return i.headers = { ...p, ...P, ...n.headers }, {
2847
- url: O(s),
2844
+ t !== void 0 && (d.versionId = t), e !== void 0 && (d.reload = e), V(s, d);
2845
+ let b = c && c.headers ? c.headers : {};
2846
+ return i.headers = { ...p, ...b, ...n.headers }, {
2847
+ url: v(s),
2848
2848
  options: i
2849
2849
  };
2850
2850
  },
@@ -2857,14 +2857,14 @@ const Ge = {
2857
2857
  */
2858
2858
  listPackages: async (r, a = {}) => {
2859
2859
  m("listPackages", "environmentName", r);
2860
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, V);
2860
+ const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(t, g);
2861
2861
  let n;
2862
2862
  l && (n = l.baseOptions);
2863
2863
  const o = { method: "GET", ...n, ...a }, s = {};
2864
- v(e, {});
2864
+ V(e, {});
2865
2865
  let i = n && n.headers ? n.headers : {};
2866
2866
  return o.headers = { ...s, ...i, ...a.headers }, {
2867
- url: O(e),
2867
+ url: v(e),
2868
2868
  options: o
2869
2869
  };
2870
2870
  },
@@ -2879,20 +2879,20 @@ const Ge = {
2879
2879
  */
2880
2880
  updatePackage: async (r, a, t, e = {}) => {
2881
2881
  m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", t);
2882
- const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, V);
2882
+ const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, g);
2883
2883
  let s;
2884
2884
  l && (s = l.baseOptions);
2885
2885
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
2886
- i["Content-Type"] = "application/json", v(o, p);
2886
+ i["Content-Type"] = "application/json", V(o, p);
2887
2887
  let d = s && s.headers ? s.headers : {};
2888
2888
  return c.headers = { ...i, ...d, ...e.headers }, c.data = I(t, c, l), {
2889
- url: O(o),
2889
+ url: v(o),
2890
2890
  options: c
2891
2891
  };
2892
2892
  }
2893
2893
  };
2894
2894
  }, R = function(l) {
2895
- const r = pe(l);
2895
+ const r = me(l);
2896
2896
  return {
2897
2897
  /**
2898
2898
  * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
@@ -2904,8 +2904,8 @@ const Ge = {
2904
2904
  * @throws {RequiredError}
2905
2905
  */
2906
2906
  async createPackage(a, t, e, n) {
2907
- const o = await r.createPackage(a, t, e, n), s = l?.serverIndex ?? 0, c = g["PackagesApi.createPackage"]?.[s]?.url;
2908
- return (i, p) => b(o, h, u, l)(i, c || p);
2907
+ const o = await r.createPackage(a, t, e, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.createPackage"]?.[s]?.url;
2908
+ return (i, p) => O(o, h, u, l)(i, c || p);
2909
2909
  },
2910
2910
  /**
2911
2911
  * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
@@ -2916,8 +2916,8 @@ const Ge = {
2916
2916
  * @throws {RequiredError}
2917
2917
  */
2918
2918
  async deletePackage(a, t, e) {
2919
- const n = await r.deletePackage(a, t, e), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2920
- return (c, i) => b(n, h, u, l)(c, s || i);
2919
+ const n = await r.deletePackage(a, t, e), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
2920
+ return (c, i) => O(n, h, u, l)(c, s || i);
2921
2921
  },
2922
2922
  /**
2923
2923
  * Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
@@ -2930,8 +2930,8 @@ const Ge = {
2930
2930
  * @throws {RequiredError}
2931
2931
  */
2932
2932
  async getPackage(a, t, e, n, o) {
2933
- const s = await r.getPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2934
- return (p, d) => b(s, h, u, l)(p, i || d);
2933
+ const s = await r.getPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
2934
+ return (p, d) => O(s, h, u, l)(p, i || d);
2935
2935
  },
2936
2936
  /**
2937
2937
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
@@ -2941,8 +2941,8 @@ const Ge = {
2941
2941
  * @throws {RequiredError}
2942
2942
  */
2943
2943
  async listPackages(a, t) {
2944
- const e = await r.listPackages(a, t), n = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[n]?.url;
2945
- return (s, c) => b(e, h, u, l)(s, o || c);
2944
+ const e = await r.listPackages(a, t), n = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[n]?.url;
2945
+ return (s, c) => O(e, h, u, l)(s, o || c);
2946
2946
  },
2947
2947
  /**
2948
2948
  * Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible.
@@ -2954,11 +2954,11 @@ const Ge = {
2954
2954
  * @throws {RequiredError}
2955
2955
  */
2956
2956
  async updatePackage(a, t, e, n) {
2957
- const o = await r.updatePackage(a, t, e, n), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2958
- return (i, p) => b(o, h, u, l)(i, c || p);
2957
+ const o = await r.updatePackage(a, t, e, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
2958
+ return (i, p) => O(o, h, u, l)(i, c || p);
2959
2959
  }
2960
2960
  };
2961
- }, _e = function(l, r, a) {
2961
+ }, Ye = function(l, r, a) {
2962
2962
  const t = R(l);
2963
2963
  return {
2964
2964
  /**
@@ -3021,7 +3021,7 @@ const Ge = {
3021
3021
  }
3022
3022
  };
3023
3023
  };
3024
- class me extends k {
3024
+ class de extends k {
3025
3025
  /**
3026
3026
  * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
3027
3027
  * @summary Create a new package
@@ -3086,7 +3086,77 @@ class me extends k {
3086
3086
  return R(this.configuration).updatePackage(r, a, t, e).then((n) => n(this.axios, this.basePath));
3087
3087
  }
3088
3088
  }
3089
- const de = function(l) {
3089
+ const he = function(l) {
3090
+ return {
3091
+ /**
3092
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3093
+ * @summary List package pages
3094
+ * @param {string} environmentName Name of the environment
3095
+ * @param {string} packageName Name of the package
3096
+ * @param {*} [options] Override http request option.
3097
+ * @throws {RequiredError}
3098
+ */
3099
+ listPages: async (r, a, t = {}) => {
3100
+ m("listPages", "environmentName", r), m("listPages", "packageName", a);
3101
+ const e = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
3102
+ let o;
3103
+ l && (o = l.baseOptions);
3104
+ const s = { method: "GET", ...o, ...t }, c = {};
3105
+ V(n, {});
3106
+ let p = o && o.headers ? o.headers : {};
3107
+ return s.headers = { ...c, ...p, ...t.headers }, {
3108
+ url: v(n),
3109
+ options: s
3110
+ };
3111
+ }
3112
+ };
3113
+ }, z = function(l) {
3114
+ const r = he(l);
3115
+ return {
3116
+ /**
3117
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3118
+ * @summary List package pages
3119
+ * @param {string} environmentName Name of the environment
3120
+ * @param {string} packageName Name of the package
3121
+ * @param {*} [options] Override http request option.
3122
+ * @throws {RequiredError}
3123
+ */
3124
+ async listPages(a, t, e) {
3125
+ const n = await r.listPages(a, t, e), o = l?.serverIndex ?? 0, s = P["PagesApi.listPages"]?.[o]?.url;
3126
+ return (c, i) => O(n, h, u, l)(c, s || i);
3127
+ }
3128
+ };
3129
+ }, Xe = function(l, r, a) {
3130
+ const t = z(l);
3131
+ return {
3132
+ /**
3133
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3134
+ * @summary List package pages
3135
+ * @param {string} environmentName Name of the environment
3136
+ * @param {string} packageName Name of the package
3137
+ * @param {*} [options] Override http request option.
3138
+ * @throws {RequiredError}
3139
+ */
3140
+ listPages(e, n, o) {
3141
+ return t.listPages(e, n, o).then((s) => s(a, r));
3142
+ }
3143
+ };
3144
+ };
3145
+ class ue extends k {
3146
+ /**
3147
+ * Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
3148
+ * @summary List package pages
3149
+ * @param {string} environmentName Name of the environment
3150
+ * @param {string} packageName Name of the package
3151
+ * @param {*} [options] Override http request option.
3152
+ * @throws {RequiredError}
3153
+ * @memberof PagesApi
3154
+ */
3155
+ listPages(r, a, t) {
3156
+ return z(this.configuration).listPages(r, a, t).then((e) => e(this.axios, this.basePath));
3157
+ }
3158
+ }
3159
+ const Pe = function(l) {
3090
3160
  return {
3091
3161
  /**
3092
3162
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -3095,20 +3165,20 @@ const de = function(l) {
3095
3165
  * @throws {RequiredError}
3096
3166
  */
3097
3167
  getStatus: async (r = {}) => {
3098
- const a = "/status", t = new URL(a, V);
3168
+ const a = "/status", t = new URL(a, g);
3099
3169
  let e;
3100
3170
  l && (e = l.baseOptions);
3101
3171
  const n = { method: "GET", ...e, ...r }, o = {};
3102
- v(t, {});
3172
+ V(t, {});
3103
3173
  let c = e && e.headers ? e.headers : {};
3104
3174
  return n.headers = { ...o, ...c, ...r.headers }, {
3105
- url: O(t),
3175
+ url: v(t),
3106
3176
  options: n
3107
3177
  };
3108
3178
  }
3109
3179
  };
3110
- }, z = function(l) {
3111
- const r = de(l);
3180
+ }, j = function(l) {
3181
+ const r = Pe(l);
3112
3182
  return {
3113
3183
  /**
3114
3184
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -3117,12 +3187,12 @@ const de = function(l) {
3117
3187
  * @throws {RequiredError}
3118
3188
  */
3119
3189
  async getStatus(a) {
3120
- const t = await r.getStatus(a), e = l?.serverIndex ?? 0, n = g["PublisherApi.getStatus"]?.[e]?.url;
3121
- return (o, s) => b(t, h, u, l)(o, n || s);
3190
+ const t = await r.getStatus(a), e = l?.serverIndex ?? 0, n = P["PublisherApi.getStatus"]?.[e]?.url;
3191
+ return (o, s) => O(t, h, u, l)(o, n || s);
3122
3192
  }
3123
3193
  };
3124
- }, Je = function(l, r, a) {
3125
- const t = z(l);
3194
+ }, Ze = function(l, r, a) {
3195
+ const t = j(l);
3126
3196
  return {
3127
3197
  /**
3128
3198
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -3135,7 +3205,7 @@ const de = function(l) {
3135
3205
  }
3136
3206
  };
3137
3207
  };
3138
- class he extends k {
3208
+ class ge extends k {
3139
3209
  /**
3140
3210
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
3141
3211
  * @summary Get server status and health information
@@ -3144,10 +3214,10 @@ class he extends k {
3144
3214
  * @memberof PublisherApi
3145
3215
  */
3146
3216
  getStatus(r) {
3147
- return z(this.configuration).getStatus(r).then((a) => a(this.axios, this.basePath));
3217
+ return j(this.configuration).getStatus(r).then((a) => a(this.axios, this.basePath));
3148
3218
  }
3149
3219
  }
3150
- const ue = function(l) {
3220
+ const Ve = function(l) {
3151
3221
  return {
3152
3222
  /**
3153
3223
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3156,14 +3226,14 @@ const ue = function(l) {
3156
3226
  * @throws {RequiredError}
3157
3227
  */
3158
3228
  getWatchStatus: async (r = {}) => {
3159
- const a = "/watch-mode/status", t = new URL(a, V);
3229
+ const a = "/watch-mode/status", t = new URL(a, g);
3160
3230
  let e;
3161
3231
  l && (e = l.baseOptions);
3162
3232
  const n = { method: "GET", ...e, ...r }, o = {};
3163
- v(t, {});
3233
+ V(t, {});
3164
3234
  let c = e && e.headers ? e.headers : {};
3165
3235
  return n.headers = { ...o, ...c, ...r.headers }, {
3166
- url: O(t),
3236
+ url: v(t),
3167
3237
  options: n
3168
3238
  };
3169
3239
  },
@@ -3176,14 +3246,14 @@ const ue = function(l) {
3176
3246
  */
3177
3247
  startWatching: async (r, a = {}) => {
3178
3248
  m("startWatching", "startWatchRequest", r);
3179
- const t = "/watch-mode/start", e = new URL(t, V);
3249
+ const t = "/watch-mode/start", e = new URL(t, g);
3180
3250
  let n;
3181
3251
  l && (n = l.baseOptions);
3182
3252
  const o = { method: "POST", ...n, ...a }, s = {}, c = {};
3183
- s["Content-Type"] = "application/json", v(e, c);
3253
+ s["Content-Type"] = "application/json", V(e, c);
3184
3254
  let i = n && n.headers ? n.headers : {};
3185
3255
  return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
3186
- url: O(e),
3256
+ url: v(e),
3187
3257
  options: o
3188
3258
  };
3189
3259
  },
@@ -3194,20 +3264,41 @@ const ue = function(l) {
3194
3264
  * @throws {RequiredError}
3195
3265
  */
3196
3266
  stopWatching: async (r = {}) => {
3197
- const a = "/watch-mode/stop", t = new URL(a, V);
3267
+ const a = "/watch-mode/stop", t = new URL(a, g);
3198
3268
  let e;
3199
3269
  l && (e = l.baseOptions);
3200
3270
  const n = { method: "POST", ...e, ...r }, o = {};
3201
- v(t, {});
3271
+ V(t, {});
3202
3272
  let c = e && e.headers ? e.headers : {};
3203
3273
  return n.headers = { ...o, ...c, ...r.headers }, {
3204
- url: O(t),
3274
+ url: v(t),
3205
3275
  options: n
3206
3276
  };
3277
+ },
3278
+ /**
3279
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
3280
+ * @summary Stream package change events (SSE)
3281
+ * @param {string} environmentName Name of the environment
3282
+ * @param {string} packageName Name of the package
3283
+ * @param {*} [options] Override http request option.
3284
+ * @throws {RequiredError}
3285
+ */
3286
+ streamPackageEvents: async (r, a, t = {}) => {
3287
+ m("streamPackageEvents", "environmentName", r), m("streamPackageEvents", "packageName", a);
3288
+ const e = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, g);
3289
+ let o;
3290
+ l && (o = l.baseOptions);
3291
+ const s = { method: "GET", ...o, ...t }, c = {};
3292
+ V(n, {});
3293
+ let p = o && o.headers ? o.headers : {};
3294
+ return s.headers = { ...c, ...p, ...t.headers }, {
3295
+ url: v(n),
3296
+ options: s
3297
+ };
3207
3298
  }
3208
3299
  };
3209
- }, M = function(l) {
3210
- const r = ue(l);
3300
+ }, T = function(l) {
3301
+ const r = Ve(l);
3211
3302
  return {
3212
3303
  /**
3213
3304
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3216,8 +3307,8 @@ const ue = function(l) {
3216
3307
  * @throws {RequiredError}
3217
3308
  */
3218
3309
  async getWatchStatus(a) {
3219
- const t = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, n = g["WatchModeApi.getWatchStatus"]?.[e]?.url;
3220
- return (o, s) => b(t, h, u, l)(o, n || s);
3310
+ const t = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, n = P["WatchModeApi.getWatchStatus"]?.[e]?.url;
3311
+ return (o, s) => O(t, h, u, l)(o, n || s);
3221
3312
  },
3222
3313
  /**
3223
3314
  * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
@@ -3227,8 +3318,8 @@ const ue = function(l) {
3227
3318
  * @throws {RequiredError}
3228
3319
  */
3229
3320
  async startWatching(a, t) {
3230
- const e = await r.startWatching(a, t), n = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[n]?.url;
3231
- return (s, c) => b(e, h, u, l)(s, o || c);
3321
+ const e = await r.startWatching(a, t), n = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[n]?.url;
3322
+ return (s, c) => O(e, h, u, l)(s, o || c);
3232
3323
  },
3233
3324
  /**
3234
3325
  * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
@@ -3237,12 +3328,24 @@ const ue = function(l) {
3237
3328
  * @throws {RequiredError}
3238
3329
  */
3239
3330
  async stopWatching(a) {
3240
- const t = await r.stopWatching(a), e = l?.serverIndex ?? 0, n = g["WatchModeApi.stopWatching"]?.[e]?.url;
3241
- return (o, s) => b(t, h, u, l)(o, n || s);
3331
+ const t = await r.stopWatching(a), e = l?.serverIndex ?? 0, n = P["WatchModeApi.stopWatching"]?.[e]?.url;
3332
+ return (o, s) => O(t, h, u, l)(o, n || s);
3333
+ },
3334
+ /**
3335
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
3336
+ * @summary Stream package change events (SSE)
3337
+ * @param {string} environmentName Name of the environment
3338
+ * @param {string} packageName Name of the package
3339
+ * @param {*} [options] Override http request option.
3340
+ * @throws {RequiredError}
3341
+ */
3342
+ async streamPackageEvents(a, t, e) {
3343
+ const n = await r.streamPackageEvents(a, t, e), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3344
+ return (c, i) => O(n, h, u, l)(c, s || i);
3242
3345
  }
3243
3346
  };
3244
- }, Ke = function(l, r, a) {
3245
- const t = M(l);
3347
+ }, ea = function(l, r, a) {
3348
+ const t = T(l);
3246
3349
  return {
3247
3350
  /**
3248
3351
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3271,10 +3374,21 @@ const ue = function(l) {
3271
3374
  */
3272
3375
  stopWatching(e) {
3273
3376
  return t.stopWatching(e).then((n) => n(a, r));
3377
+ },
3378
+ /**
3379
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
3380
+ * @summary Stream package change events (SSE)
3381
+ * @param {string} environmentName Name of the environment
3382
+ * @param {string} packageName Name of the package
3383
+ * @param {*} [options] Override http request option.
3384
+ * @throws {RequiredError}
3385
+ */
3386
+ streamPackageEvents(e, n, o) {
3387
+ return t.streamPackageEvents(e, n, o).then((s) => s(a, r));
3274
3388
  }
3275
3389
  };
3276
3390
  };
3277
- class Pe extends k {
3391
+ class ve extends k {
3278
3392
  /**
3279
3393
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
3280
3394
  * @summary Get watch mode status
@@ -3283,7 +3397,7 @@ class Pe extends k {
3283
3397
  * @memberof WatchModeApi
3284
3398
  */
3285
3399
  getWatchStatus(r) {
3286
- return M(this.configuration).getWatchStatus(r).then((a) => a(this.axios, this.basePath));
3400
+ return T(this.configuration).getWatchStatus(r).then((a) => a(this.axios, this.basePath));
3287
3401
  }
3288
3402
  /**
3289
3403
  * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
@@ -3294,7 +3408,7 @@ class Pe extends k {
3294
3408
  * @memberof WatchModeApi
3295
3409
  */
3296
3410
  startWatching(r, a) {
3297
- return M(this.configuration).startWatching(r, a).then((t) => t(this.axios, this.basePath));
3411
+ return T(this.configuration).startWatching(r, a).then((t) => t(this.axios, this.basePath));
3298
3412
  }
3299
3413
  /**
3300
3414
  * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
@@ -3304,10 +3418,22 @@ class Pe extends k {
3304
3418
  * @memberof WatchModeApi
3305
3419
  */
3306
3420
  stopWatching(r) {
3307
- return M(this.configuration).stopWatching(r).then((a) => a(this.axios, this.basePath));
3421
+ return T(this.configuration).stopWatching(r).then((a) => a(this.axios, this.basePath));
3422
+ }
3423
+ /**
3424
+ * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
3425
+ * @summary Stream package change events (SSE)
3426
+ * @param {string} environmentName Name of the environment
3427
+ * @param {string} packageName Name of the package
3428
+ * @param {*} [options] Override http request option.
3429
+ * @throws {RequiredError}
3430
+ * @memberof WatchModeApi
3431
+ */
3432
+ streamPackageEvents(r, a, t) {
3433
+ return T(this.configuration).streamPackageEvents(r, a, t).then((e) => e(this.axios, this.basePath));
3308
3434
  }
3309
3435
  }
3310
- class ge {
3436
+ class Oe {
3311
3437
  /**
3312
3438
  * parameter for apiKey security
3313
3439
  * @param name security name
@@ -3387,7 +3513,7 @@ class ge {
3387
3513
  return r !== null && (a.test(r) || r.toLowerCase() === "application/json-patch+json");
3388
3514
  }
3389
3515
  }
3390
- const Ve = new L({
3516
+ const be = new H({
3391
3517
  defaultOptions: {
3392
3518
  queries: {
3393
3519
  retry: !1,
@@ -3400,7 +3526,7 @@ const Ve = new L({
3400
3526
  }
3401
3527
  });
3402
3528
  h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3403
- const j = D(void 0), ve = (l, r) => {
3529
+ const L = W(void 0), Se = (l, r) => {
3404
3530
  const a = `${window.location.protocol}//${window.location.host}/api/v0`, t = h.create({
3405
3531
  baseURL: l || a,
3406
3532
  withCredentials: !0,
@@ -3410,34 +3536,35 @@ const j = D(void 0), ve = (l, r) => {
3410
3536
  const o = await r?.();
3411
3537
  return n.headers.Authorization = o || "", n;
3412
3538
  });
3413
- const e = new ge({ basePath: a });
3539
+ const e = new Oe({ basePath: a });
3414
3540
  return {
3415
- models: new ce(e, a, t),
3416
- publisher: new he(e, a, t),
3417
- environments: new ae(e, a, t),
3418
- packages: new me(e, a, t),
3419
- notebooks: new ie(e, a, t),
3420
- connections: new K(e, a, t),
3421
- databases: new Z(e, a, t),
3422
- materializations: new oe(
3541
+ models: new le(e, a, t),
3542
+ publisher: new ge(e, a, t),
3543
+ environments: new te(e, a, t),
3544
+ packages: new de(e, a, t),
3545
+ pages: new ue(e, a, t),
3546
+ notebooks: new pe(e, a, t),
3547
+ connections: new Y(e, a, t),
3548
+ databases: new ee(e, a, t),
3549
+ materializations: new se(
3423
3550
  e,
3424
3551
  a,
3425
3552
  t
3426
3553
  ),
3427
- manifests: new ne(e, a, t),
3428
- watchMode: new Pe(e, a, t)
3554
+ manifests: new re(e, a, t),
3555
+ watchMode: new ve(e, a, t)
3429
3556
  };
3430
- }, Ye = ({
3557
+ }, aa = ({
3431
3558
  children: l,
3432
3559
  getAccessToken: r,
3433
3560
  baseURL: a,
3434
3561
  mutable: t
3435
3562
  }) => {
3436
- const e = W(
3437
- () => ve(a, r),
3563
+ const e = G(
3564
+ () => Se(a, r),
3438
3565
  [a, r]
3439
3566
  ), n = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = Q(t), [c, i] = Q(!0);
3440
- G(() => {
3567
+ _(() => {
3441
3568
  let d = !0;
3442
3569
  return (async () => {
3443
3570
  try {
@@ -3461,76 +3588,80 @@ const j = D(void 0), ve = (l, r) => {
3461
3588
  mutable: o,
3462
3589
  isLoadingStatus: c
3463
3590
  };
3464
- return /* @__PURE__ */ $(H, { client: Ve, children: /* @__PURE__ */ $(j.Provider, { value: p, children: l }) });
3465
- }, Xe = () => {
3466
- const l = f(j);
3591
+ return /* @__PURE__ */ $(f, { client: be, children: /* @__PURE__ */ $(L.Provider, { value: p, children: l }) });
3592
+ }, ta = () => {
3593
+ const l = D(L);
3467
3594
  if (l === void 0)
3468
3595
  throw new Error("useServer must be used within a ServerProvider");
3469
3596
  return l;
3470
3597
  };
3471
3598
  export {
3472
- _e as $,
3473
- ye as A,
3474
- ne as B,
3475
- Ce as C,
3476
- Re as D,
3477
- ee as E,
3478
- Ue as F,
3479
- Le as G,
3480
- re as H,
3599
+ Ye as $,
3600
+ Ae as A,
3601
+ re as B,
3602
+ Ne as C,
3603
+ we as D,
3604
+ ae as E,
3605
+ Me as F,
3606
+ De as G,
3607
+ oe as H,
3481
3608
  N as I,
3482
- He as J,
3483
- oe as K,
3484
- Te as L,
3485
- we as M,
3486
- Me as N,
3487
- fe as O,
3488
- se as P,
3609
+ We as J,
3610
+ se as K,
3611
+ Ee as L,
3612
+ qe as M,
3613
+ $e as N,
3614
+ Ge as O,
3615
+ ce as P,
3489
3616
  U as Q,
3490
- De as R,
3491
- Ye as S,
3492
- ce as T,
3493
- le as U,
3494
- w as V,
3495
- We as W,
3496
- ie as X,
3497
- Ge as Y,
3498
- pe as Z,
3617
+ _e as R,
3618
+ aa as S,
3619
+ le as T,
3620
+ ie as U,
3621
+ M as V,
3622
+ Je as W,
3623
+ pe as X,
3624
+ Ke as Y,
3625
+ me as Z,
3499
3626
  R as _,
3500
- ke as a,
3501
- me as a0,
3502
- de as a1,
3627
+ xe as a,
3628
+ de as a0,
3629
+ he as a1,
3503
3630
  z as a2,
3504
- Je as a3,
3505
- he as a4,
3506
- ue as a5,
3507
- M as a6,
3508
- Ke as a7,
3509
- Pe as a8,
3510
- ge as a9,
3511
- Ae as b,
3512
- xe as c,
3513
- Ne as d,
3514
- Ee as e,
3515
- qe as f,
3516
- Ve as g,
3517
- J as h,
3631
+ Xe as a3,
3632
+ ue as a4,
3633
+ Pe as a5,
3634
+ j as a6,
3635
+ Ze as a7,
3636
+ ge as a8,
3637
+ Ve as a9,
3638
+ T as aa,
3639
+ ea as ab,
3640
+ ve as ac,
3641
+ Oe as ad,
3642
+ Re as b,
3643
+ Ue as c,
3644
+ Te as d,
3645
+ Qe as e,
3646
+ Be as f,
3647
+ be as g,
3648
+ K as h,
3518
3649
  S as i,
3519
- $e as j,
3520
- K as k,
3521
- Y as l,
3650
+ Fe as j,
3651
+ Y as k,
3652
+ X as l,
3522
3653
  B as m,
3523
- Qe as n,
3524
- Be as o,
3525
- X as p,
3654
+ ze as n,
3655
+ je as o,
3656
+ Z as p,
3526
3657
  F as q,
3527
- Fe as r,
3528
- Z as s,
3658
+ Le as r,
3659
+ ee as s,
3529
3660
  x as t,
3530
- Xe as u,
3531
- ze as v,
3532
- ae as w,
3533
- te as x,
3661
+ ta as u,
3662
+ He as v,
3663
+ te as w,
3664
+ ne as x,
3534
3665
  q as y,
3535
- je as z
3666
+ fe as z
3536
3667
  };