@malloy-publisher/sdk 0.0.199 → 0.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/ServerProvider-BSyxB6sf.cjs.js +1 -0
  2. package/dist/{ServerProvider-BuM1usxf.es.js → ServerProvider-CFIyWLqz.es.js} +322 -462
  3. package/dist/client/api.d.ts +8 -110
  4. package/dist/client/index.cjs.js +1 -1
  5. package/dist/client/index.es.js +1 -1
  6. package/dist/components/Connections/EditConnectionDialog.d.ts +2 -1
  7. package/dist/components/given/GivenInput.d.ts +16 -0
  8. package/dist/components/given/GivensPanel.d.ts +18 -0
  9. package/dist/components/given/index.d.ts +2 -0
  10. package/dist/{core-DfcpQGVP.es.js → core-C0vCMRDQ.es.js} +1 -1
  11. package/dist/{core-yDgxkpo0.cjs.js → core-GkjltsUf.cjs.js} +1 -1
  12. package/dist/hooks/index.d.ts +2 -0
  13. package/dist/hooks/useGivensForm.d.ts +33 -0
  14. package/dist/hooks/useModelGivens.d.ts +10 -0
  15. package/dist/{index-Y4ooZDYA.es.js → index-BZD0O5Ch.es.js} +26102 -25626
  16. package/dist/index-BpoC5QHF.cjs.js +229 -0
  17. package/dist/index.cjs.js +1 -1
  18. package/dist/index.es.js +28 -26
  19. package/package.json +1 -1
  20. package/src/components/Connections/DeleteConnectionDialog.tsx +10 -3
  21. package/src/components/Connections/EditConnectionDialog.tsx +11 -3
  22. package/src/components/Environment/Connections.tsx +388 -0
  23. package/src/components/Environment/Environment.tsx +7 -2
  24. package/src/components/Notebook/Notebook.tsx +81 -23
  25. package/src/components/Package/Package.tsx +0 -7
  26. package/src/components/given/GivenInput.tsx +190 -0
  27. package/src/components/given/GivensPanel.tsx +85 -0
  28. package/src/components/given/index.ts +2 -0
  29. package/src/hooks/index.ts +8 -0
  30. package/src/hooks/useGivensForm.ts +110 -0
  31. package/src/hooks/useModelGivens.ts +26 -0
  32. package/dist/ServerProvider-C_Mnvmgc.cjs.js +0 -1
  33. package/dist/index-CMA8U4-B.cjs.js +0 -228
  34. package/src/components/Package/Connections.tsx +0 -373
  35. /package/dist/components/{Package → Environment}/Connections.d.ts +0 -0
@@ -1,10 +1,10 @@
1
- import { jsx as q } from "react/jsx-runtime";
1
+ import { jsx as $ } from "react/jsx-runtime";
2
2
  import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
3
- import u from "axios";
4
- import { useContext as f, createContext as D, useMemo as W, useState as $, useEffect as G } from "react";
5
- const g = "http://localhost/api/v0".replace(/\/+$/, "");
3
+ import h from "axios";
4
+ import { useContext as f, createContext as D, useMemo as W, useState as Q, useEffect as G } from "react";
5
+ const u = "http://localhost/api/v0".replace(/\/+$/, "");
6
6
  class k {
7
- constructor(r, a = g, n = u) {
7
+ constructor(r, a = u, n = h) {
8
8
  this.basePath = a, this.axios = n, r && (this.configuration = r, this.basePath = r.basePath ?? a);
9
9
  }
10
10
  configuration;
@@ -14,7 +14,7 @@ class _ extends Error {
14
14
  super(a), this.field = r, this.name = "RequiredError";
15
15
  }
16
16
  }
17
- const P = {}, V = "https://example.com", d = function(l, r, a) {
17
+ const g = {}, V = "https://example.com", m = function(l, r, a) {
18
18
  if (a == null)
19
19
  throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
20
20
  };
@@ -26,7 +26,7 @@ function E(l, r, a = "") {
26
26
  const v = function(l, ...r) {
27
27
  const a = new URLSearchParams(l.search);
28
28
  E(a, r), l.search = a.toString();
29
- }, y = function(l, r, a) {
29
+ }, I = function(l, r, a) {
30
30
  const n = typeof l != "string";
31
31
  return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
32
  }, O = function(l) {
@@ -66,10 +66,10 @@ const v = function(l, ...r) {
66
66
  }, Ae = {
67
67
  Ok: "ok",
68
68
  Failed: "failed"
69
- }, Ne = {
69
+ }, xe = {
70
70
  Embedded: "embedded",
71
71
  Materialized: "materialized"
72
- }, xe = {
72
+ }, Ne = {
73
73
  Equal: "equal",
74
74
  In: "in",
75
75
  Like: "like",
@@ -108,14 +108,14 @@ const v = function(l, ...r) {
108
108
  * @throws {RequiredError}
109
109
  */
110
110
  createConnection: async (r, a, n, e = {}) => {
111
- d("createConnection", "environmentName", r), d("createConnection", "connectionName", a), d("createConnection", "connection", n);
111
+ m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", n);
112
112
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
113
113
  let s;
114
114
  l && (s = l.baseOptions);
115
115
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
116
116
  i["Content-Type"] = "application/json", v(o, p);
117
- let m = s && s.headers ? s.headers : {};
118
- return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
117
+ let d = s && s.headers ? s.headers : {};
118
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
119
119
  url: O(o),
120
120
  options: c
121
121
  };
@@ -129,7 +129,7 @@ const v = function(l, ...r) {
129
129
  * @throws {RequiredError}
130
130
  */
131
131
  deleteConnection: async (r, a, n = {}) => {
132
- d("deleteConnection", "environmentName", r), d("deleteConnection", "connectionName", a);
132
+ m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", a);
133
133
  const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
134
134
  let o;
135
135
  l && (o = l.baseOptions);
@@ -150,7 +150,7 @@ const v = function(l, ...r) {
150
150
  * @throws {RequiredError}
151
151
  */
152
152
  getConnection: async (r, a, n = {}) => {
153
- d("getConnection", "environmentName", r), d("getConnection", "connectionName", a);
153
+ m("getConnection", "environmentName", r), m("getConnection", "connectionName", a);
154
154
  const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
155
155
  let o;
156
156
  l && (o = l.baseOptions);
@@ -162,55 +162,6 @@ const v = function(l, ...r) {
162
162
  options: s
163
163
  };
164
164
  },
165
- /**
166
- * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
167
- * @summary Execute SQL query (deprecated)
168
- * @param {string} environmentName Name of the environment
169
- * @param {string} connectionName Name of the connection
170
- * @param {string} [sqlStatement] SQL statement
171
- * @param {string} [_options] Options
172
- * @param {*} [options] Override http request option.
173
- * @deprecated
174
- * @throws {RequiredError}
175
- */
176
- getQuerydata: async (r, a, n, e, t = {}) => {
177
- d("getQuerydata", "environmentName", r), d("getQuerydata", "connectionName", a);
178
- const o = "/environments/{environmentName}/connections/{connectionName}/queryData".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
179
- let c;
180
- l && (c = l.baseOptions);
181
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
182
- n !== void 0 && (m.sqlStatement = n), e !== void 0 && (m.options = e), v(s, m);
183
- let h = c && c.headers ? c.headers : {};
184
- return i.headers = { ...p, ...h, ...t.headers }, {
185
- url: O(s),
186
- options: i
187
- };
188
- },
189
- /**
190
- * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
191
- * @summary Execute SQL query (per-package, deprecated)
192
- * @param {string} environmentName Name of the environment
193
- * @param {string} packageName Name of the package whose connection context to use
194
- * @param {string} connectionName Name of the connection
195
- * @param {string} [sqlStatement] SQL statement
196
- * @param {string} [_options] Options
197
- * @param {*} [options] Override http request option.
198
- * @deprecated
199
- * @throws {RequiredError}
200
- */
201
- getQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
202
- d("getQuerydataInPackage", "environmentName", r), d("getQuerydataInPackage", "packageName", a), d("getQuerydataInPackage", "connectionName", n);
203
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/queryData".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(s, V);
204
- let i;
205
- l && (i = l.baseOptions);
206
- const p = { method: "GET", ...i, ...o }, m = {}, h = {};
207
- e !== void 0 && (h.sqlStatement = e), t !== void 0 && (h.options = t), v(c, h);
208
- let I = i && i.headers ? i.headers : {};
209
- return p.headers = { ...m, ...I, ...o.headers }, {
210
- url: O(c),
211
- options: p
212
- };
213
- },
214
165
  /**
215
166
  * **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.
216
167
  * @summary Get SQL source (deprecated)
@@ -222,14 +173,14 @@ const v = function(l, ...r) {
222
173
  * @throws {RequiredError}
223
174
  */
224
175
  getSqlsource: async (r, a, n, e = {}) => {
225
- d("getSqlsource", "environmentName", r), d("getSqlsource", "connectionName", a);
176
+ m("getSqlsource", "environmentName", r), m("getSqlsource", "connectionName", a);
226
177
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
227
178
  let s;
228
179
  l && (s = l.baseOptions);
229
180
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
230
181
  n !== void 0 && (p.sqlStatement = n), v(o, p);
231
- let m = s && s.headers ? s.headers : {};
232
- return c.headers = { ...i, ...m, ...e.headers }, {
182
+ let d = s && s.headers ? s.headers : {};
183
+ return c.headers = { ...i, ...d, ...e.headers }, {
233
184
  url: O(o),
234
185
  options: c
235
186
  };
@@ -246,14 +197,14 @@ const v = function(l, ...r) {
246
197
  * @throws {RequiredError}
247
198
  */
248
199
  getSqlsourceInPackage: async (r, a, n, e, t = {}) => {
249
- d("getSqlsourceInPackage", "environmentName", r), d("getSqlsourceInPackage", "packageName", a), d("getSqlsourceInPackage", "connectionName", n);
200
+ m("getSqlsourceInPackage", "environmentName", r), m("getSqlsourceInPackage", "packageName", a), m("getSqlsourceInPackage", "connectionName", n);
250
201
  const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
251
202
  let c;
252
203
  l && (c = l.baseOptions);
253
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
254
- e !== void 0 && (m.sqlStatement = e), v(s, m);
255
- let h = c && c.headers ? c.headers : {};
256
- return i.headers = { ...p, ...h, ...t.headers }, {
204
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
205
+ e !== void 0 && (d.sqlStatement = e), v(s, d);
206
+ let P = c && c.headers ? c.headers : {};
207
+ return i.headers = { ...p, ...P, ...t.headers }, {
257
208
  url: O(s),
258
209
  options: i
259
210
  };
@@ -269,14 +220,14 @@ const v = function(l, ...r) {
269
220
  * @throws {RequiredError}
270
221
  */
271
222
  getTable: async (r, a, n, e, t = {}) => {
272
- d("getTable", "environmentName", r), d("getTable", "connectionName", a), d("getTable", "schemaName", n), d("getTable", "tablePath", e);
223
+ m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", n), m("getTable", "tablePath", e);
273
224
  const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), s = new URL(o, V);
274
225
  let c;
275
226
  l && (c = l.baseOptions);
276
227
  const i = { method: "GET", ...c, ...t }, p = {};
277
228
  v(s, {});
278
- let h = c && c.headers ? c.headers : {};
279
- return i.headers = { ...p, ...h, ...t.headers }, {
229
+ let P = c && c.headers ? c.headers : {};
230
+ return i.headers = { ...p, ...P, ...t.headers }, {
280
231
  url: O(s),
281
232
  options: i
282
233
  };
@@ -293,14 +244,14 @@ const v = function(l, ...r) {
293
244
  * @throws {RequiredError}
294
245
  */
295
246
  getTableInPackage: async (r, a, n, e, t, o = {}) => {
296
- d("getTableInPackage", "environmentName", r), d("getTableInPackage", "packageName", a), d("getTableInPackage", "connectionName", n), d("getTableInPackage", "schemaName", e), d("getTableInPackage", "tablePath", t);
247
+ m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", n), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", t);
297
248
  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(n))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, V);
298
249
  let i;
299
250
  l && (i = l.baseOptions);
300
- const p = { method: "GET", ...i, ...o }, m = {};
251
+ const p = { method: "GET", ...i, ...o }, d = {};
301
252
  v(c, {});
302
- let I = i && i.headers ? i.headers : {};
303
- return p.headers = { ...m, ...I, ...o.headers }, {
253
+ let y = i && i.headers ? i.headers : {};
254
+ return p.headers = { ...d, ...y, ...o.headers }, {
304
255
  url: O(c),
305
256
  options: p
306
257
  };
@@ -316,14 +267,14 @@ const v = function(l, ...r) {
316
267
  * @throws {RequiredError}
317
268
  */
318
269
  getTemporarytable: async (r, a, n, e = {}) => {
319
- d("getTemporarytable", "environmentName", r), d("getTemporarytable", "connectionName", a);
270
+ m("getTemporarytable", "environmentName", r), m("getTemporarytable", "connectionName", a);
320
271
  const t = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
321
272
  let s;
322
273
  l && (s = l.baseOptions);
323
274
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
324
275
  n !== void 0 && (p.sqlStatement = n), v(o, p);
325
- let m = s && s.headers ? s.headers : {};
326
- return c.headers = { ...i, ...m, ...e.headers }, {
276
+ let d = s && s.headers ? s.headers : {};
277
+ return c.headers = { ...i, ...d, ...e.headers }, {
327
278
  url: O(o),
328
279
  options: c
329
280
  };
@@ -340,14 +291,14 @@ const v = function(l, ...r) {
340
291
  * @throws {RequiredError}
341
292
  */
342
293
  getTemporarytableInPackage: async (r, a, n, e, t = {}) => {
343
- d("getTemporarytableInPackage", "environmentName", r), d("getTemporarytableInPackage", "packageName", a), d("getTemporarytableInPackage", "connectionName", n);
294
+ m("getTemporarytableInPackage", "environmentName", r), m("getTemporarytableInPackage", "packageName", a), m("getTemporarytableInPackage", "connectionName", n);
344
295
  const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
345
296
  let c;
346
297
  l && (c = l.baseOptions);
347
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
348
- e !== void 0 && (m.sqlStatement = e), v(s, m);
349
- let h = c && c.headers ? c.headers : {};
350
- return i.headers = { ...p, ...h, ...t.headers }, {
298
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
299
+ e !== void 0 && (d.sqlStatement = e), v(s, d);
300
+ let P = c && c.headers ? c.headers : {};
301
+ return i.headers = { ...p, ...P, ...t.headers }, {
351
302
  url: O(s),
352
303
  options: i
353
304
  };
@@ -360,7 +311,7 @@ const v = function(l, ...r) {
360
311
  * @throws {RequiredError}
361
312
  */
362
313
  listConnections: async (r, a = {}) => {
363
- d("listConnections", "environmentName", r);
314
+ m("listConnections", "environmentName", r);
364
315
  const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
365
316
  let t;
366
317
  l && (t = l.baseOptions);
@@ -381,7 +332,7 @@ const v = function(l, ...r) {
381
332
  * @throws {RequiredError}
382
333
  */
383
334
  listSchemas: async (r, a, n = {}) => {
384
- d("listSchemas", "environmentName", r), d("listSchemas", "connectionName", a);
335
+ m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", a);
385
336
  const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
386
337
  let o;
387
338
  l && (o = l.baseOptions);
@@ -403,14 +354,14 @@ const v = function(l, ...r) {
403
354
  * @throws {RequiredError}
404
355
  */
405
356
  listSchemasInPackage: async (r, a, n, e = {}) => {
406
- d("listSchemasInPackage", "environmentName", r), d("listSchemasInPackage", "packageName", a), d("listSchemasInPackage", "connectionName", n);
357
+ m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", n);
407
358
  const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(t, V);
408
359
  let s;
409
360
  l && (s = l.baseOptions);
410
361
  const c = { method: "GET", ...s, ...e }, i = {};
411
362
  v(o, {});
412
- let m = s && s.headers ? s.headers : {};
413
- return c.headers = { ...i, ...m, ...e.headers }, {
363
+ let d = s && s.headers ? s.headers : {};
364
+ return c.headers = { ...i, ...d, ...e.headers }, {
414
365
  url: O(o),
415
366
  options: c
416
367
  };
@@ -426,14 +377,14 @@ const v = function(l, ...r) {
426
377
  * @throws {RequiredError}
427
378
  */
428
379
  listTables: async (r, a, n, e, t = {}) => {
429
- d("listTables", "environmentName", r), d("listTables", "connectionName", a), d("listTables", "schemaName", n);
380
+ m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", n);
430
381
  const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(o, V);
431
382
  let c;
432
383
  l && (c = l.baseOptions);
433
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
434
- e && (m.tableNames = e), v(s, m);
435
- let h = c && c.headers ? c.headers : {};
436
- return i.headers = { ...p, ...h, ...t.headers }, {
384
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
385
+ e && (d.tableNames = e), v(s, d);
386
+ let P = c && c.headers ? c.headers : {};
387
+ return i.headers = { ...p, ...P, ...t.headers }, {
437
388
  url: O(s),
438
389
  options: i
439
390
  };
@@ -450,20 +401,20 @@ const v = function(l, ...r) {
450
401
  * @throws {RequiredError}
451
402
  */
452
403
  listTablesInPackage: async (r, a, n, e, t, o = {}) => {
453
- d("listTablesInPackage", "environmentName", r), d("listTablesInPackage", "packageName", a), d("listTablesInPackage", "connectionName", n), d("listTablesInPackage", "schemaName", e);
404
+ m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", n), m("listTablesInPackage", "schemaName", e);
454
405
  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(n))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(s, V);
455
406
  let i;
456
407
  l && (i = l.baseOptions);
457
- const p = { method: "GET", ...i, ...o }, m = {}, h = {};
458
- t && (h.tableNames = t), v(c, h);
459
- let I = i && i.headers ? i.headers : {};
460
- return p.headers = { ...m, ...I, ...o.headers }, {
408
+ const p = { method: "GET", ...i, ...o }, d = {}, P = {};
409
+ t && (P.tableNames = t), v(c, P);
410
+ let y = i && i.headers ? i.headers : {};
411
+ return p.headers = { ...d, ...y, ...o.headers }, {
461
412
  url: O(c),
462
413
  options: p
463
414
  };
464
415
  },
465
416
  /**
466
- * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
417
+ * 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.
467
418
  * @summary Execute SQL query
468
419
  * @param {string} environmentName Name of the environment
469
420
  * @param {string} connectionName Name of the connection
@@ -473,20 +424,20 @@ const v = function(l, ...r) {
473
424
  * @throws {RequiredError}
474
425
  */
475
426
  postQuerydata: async (r, a, n, e, t = {}) => {
476
- d("postQuerydata", "environmentName", r), d("postQuerydata", "connectionName", a), d("postQuerydata", "postQuerydataRequest", n);
427
+ m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", n);
477
428
  const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
478
429
  let c;
479
430
  l && (c = l.baseOptions);
480
- const i = { method: "POST", ...c, ...t }, p = {}, m = {};
481
- e !== void 0 && (m.options = e), p["Content-Type"] = "application/json", v(s, m);
482
- let h = c && c.headers ? c.headers : {};
483
- return i.headers = { ...p, ...h, ...t.headers }, i.data = y(n, i, l), {
431
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
432
+ e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", v(s, d);
433
+ let P = c && c.headers ? c.headers : {};
434
+ return i.headers = { ...p, ...P, ...t.headers }, i.data = I(n, i, l), {
484
435
  url: O(s),
485
436
  options: i
486
437
  };
487
438
  },
488
439
  /**
489
- * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
440
+ * 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.
490
441
  * @summary Execute SQL query (per-package)
491
442
  * @param {string} environmentName Name of the environment
492
443
  * @param {string} packageName Name of the package whose connection context to use
@@ -497,14 +448,14 @@ const v = function(l, ...r) {
497
448
  * @throws {RequiredError}
498
449
  */
499
450
  postQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
500
- d("postQuerydataInPackage", "environmentName", r), d("postQuerydataInPackage", "packageName", a), d("postQuerydataInPackage", "connectionName", n), d("postQuerydataInPackage", "postQuerydataRequest", e);
451
+ m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", n), m("postQuerydataInPackage", "postQuerydataRequest", e);
501
452
  const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(s, V);
502
453
  let i;
503
454
  l && (i = l.baseOptions);
504
- const p = { method: "POST", ...i, ...o }, m = {}, h = {};
505
- t !== void 0 && (h.options = t), m["Content-Type"] = "application/json", v(c, h);
506
- let I = i && i.headers ? i.headers : {};
507
- return p.headers = { ...m, ...I, ...o.headers }, p.data = y(e, p, l), {
455
+ const p = { method: "POST", ...i, ...o }, d = {}, P = {};
456
+ t !== void 0 && (P.options = t), d["Content-Type"] = "application/json", v(c, P);
457
+ let y = i && i.headers ? i.headers : {};
458
+ return p.headers = { ...d, ...y, ...o.headers }, p.data = I(e, p, l), {
508
459
  url: O(c),
509
460
  options: p
510
461
  };
@@ -519,14 +470,14 @@ const v = function(l, ...r) {
519
470
  * @throws {RequiredError}
520
471
  */
521
472
  postSqlsource: async (r, a, n, e = {}) => {
522
- d("postSqlsource", "environmentName", r), d("postSqlsource", "connectionName", a), d("postSqlsource", "postSqlsourceRequest", n);
473
+ m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", n);
523
474
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
524
475
  let s;
525
476
  l && (s = l.baseOptions);
526
477
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
527
478
  i["Content-Type"] = "application/json", v(o, p);
528
- let m = s && s.headers ? s.headers : {};
529
- return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
479
+ let d = s && s.headers ? s.headers : {};
480
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
530
481
  url: O(o),
531
482
  options: c
532
483
  };
@@ -542,14 +493,14 @@ const v = function(l, ...r) {
542
493
  * @throws {RequiredError}
543
494
  */
544
495
  postSqlsourceInPackage: async (r, a, n, e, t = {}) => {
545
- d("postSqlsourceInPackage", "environmentName", r), d("postSqlsourceInPackage", "packageName", a), d("postSqlsourceInPackage", "connectionName", n), d("postSqlsourceInPackage", "postSqlsourceRequest", e);
496
+ m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", n), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
546
497
  const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
547
498
  let c;
548
499
  l && (c = l.baseOptions);
549
- const i = { method: "POST", ...c, ...t }, p = {}, m = {};
550
- p["Content-Type"] = "application/json", v(s, m);
551
- let h = c && c.headers ? c.headers : {};
552
- return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
500
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
501
+ p["Content-Type"] = "application/json", v(s, d);
502
+ let P = c && c.headers ? c.headers : {};
503
+ return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
553
504
  url: O(s),
554
505
  options: i
555
506
  };
@@ -564,14 +515,14 @@ const v = function(l, ...r) {
564
515
  * @throws {RequiredError}
565
516
  */
566
517
  postTemporarytable: async (r, a, n, e = {}) => {
567
- d("postTemporarytable", "environmentName", r), d("postTemporarytable", "connectionName", a), d("postTemporarytable", "postSqlsourceRequest", n);
518
+ m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", n);
568
519
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
569
520
  let s;
570
521
  l && (s = l.baseOptions);
571
522
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
572
523
  i["Content-Type"] = "application/json", v(o, p);
573
- let m = s && s.headers ? s.headers : {};
574
- return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
524
+ let d = s && s.headers ? s.headers : {};
525
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
575
526
  url: O(o),
576
527
  options: c
577
528
  };
@@ -587,14 +538,14 @@ const v = function(l, ...r) {
587
538
  * @throws {RequiredError}
588
539
  */
589
540
  postTemporarytableInPackage: async (r, a, n, e, t = {}) => {
590
- d("postTemporarytableInPackage", "environmentName", r), d("postTemporarytableInPackage", "packageName", a), d("postTemporarytableInPackage", "connectionName", n), d("postTemporarytableInPackage", "postSqlsourceRequest", e);
541
+ m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", n), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
591
542
  const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
592
543
  let c;
593
544
  l && (c = l.baseOptions);
594
- const i = { method: "POST", ...c, ...t }, p = {}, m = {};
595
- p["Content-Type"] = "application/json", v(s, m);
596
- let h = c && c.headers ? c.headers : {};
597
- return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
545
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
546
+ p["Content-Type"] = "application/json", v(s, d);
547
+ let P = c && c.headers ? c.headers : {};
548
+ return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
598
549
  url: O(s),
599
550
  options: i
600
551
  };
@@ -609,14 +560,14 @@ const v = function(l, ...r) {
609
560
  * @throws {RequiredError}
610
561
  */
611
562
  updateConnection: async (r, a, n, e = {}) => {
612
- d("updateConnection", "environmentName", r), d("updateConnection", "connectionName", a), d("updateConnection", "updateConnectionRequest", n);
563
+ m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", n);
613
564
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
614
565
  let s;
615
566
  l && (s = l.baseOptions);
616
567
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
617
568
  i["Content-Type"] = "application/json", v(o, p);
618
- let m = s && s.headers ? s.headers : {};
619
- return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
569
+ let d = s && s.headers ? s.headers : {};
570
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
620
571
  url: O(o),
621
572
  options: c
622
573
  };
@@ -635,8 +586,8 @@ const v = function(l, ...r) {
635
586
  * @throws {RequiredError}
636
587
  */
637
588
  async createConnection(a, n, e, t) {
638
- const o = await r.createConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
639
- return (i, p) => b(o, u, g, l)(i, c || p);
589
+ const o = await r.createConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
590
+ return (i, p) => b(o, h, u, l)(i, c || p);
640
591
  },
641
592
  /**
642
593
  * Permanently deletes a database connection from the environment.
@@ -647,8 +598,8 @@ const v = function(l, ...r) {
647
598
  * @throws {RequiredError}
648
599
  */
649
600
  async deleteConnection(a, n, e) {
650
- const t = await r.deleteConnection(a, n, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
651
- return (c, i) => b(t, u, g, l)(c, s || i);
601
+ const t = await r.deleteConnection(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
602
+ return (c, i) => b(t, h, u, l)(c, s || i);
652
603
  },
653
604
  /**
654
605
  * 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.
@@ -659,39 +610,8 @@ const v = function(l, ...r) {
659
610
  * @throws {RequiredError}
660
611
  */
661
612
  async getConnection(a, n, e) {
662
- const t = await r.getConnection(a, n, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
663
- return (c, i) => b(t, u, g, l)(c, s || i);
664
- },
665
- /**
666
- * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
667
- * @summary Execute SQL query (deprecated)
668
- * @param {string} environmentName Name of the environment
669
- * @param {string} connectionName Name of the connection
670
- * @param {string} [sqlStatement] SQL statement
671
- * @param {string} [_options] Options
672
- * @param {*} [options] Override http request option.
673
- * @deprecated
674
- * @throws {RequiredError}
675
- */
676
- async getQuerydata(a, n, e, t, o) {
677
- const s = await r.getQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[c]?.url;
678
- return (p, m) => b(s, u, g, l)(p, i || m);
679
- },
680
- /**
681
- * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
682
- * @summary Execute SQL query (per-package, deprecated)
683
- * @param {string} environmentName Name of the environment
684
- * @param {string} packageName Name of the package whose connection context to use
685
- * @param {string} connectionName Name of the connection
686
- * @param {string} [sqlStatement] SQL statement
687
- * @param {string} [_options] Options
688
- * @param {*} [options] Override http request option.
689
- * @deprecated
690
- * @throws {RequiredError}
691
- */
692
- async getQuerydataInPackage(a, n, e, t, o, s) {
693
- const c = await r.getQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getQuerydataInPackage"]?.[i]?.url;
694
- return (m, h) => b(c, u, g, l)(m, p || h);
613
+ const t = await r.getConnection(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
614
+ return (c, i) => b(t, h, u, l)(c, s || i);
695
615
  },
696
616
  /**
697
617
  * **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.
@@ -704,8 +624,8 @@ const v = function(l, ...r) {
704
624
  * @throws {RequiredError}
705
625
  */
706
626
  async getSqlsource(a, n, e, t) {
707
- const o = await r.getSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getSqlsource"]?.[s]?.url;
708
- return (i, p) => b(o, u, g, l)(i, c || p);
627
+ const o = await r.getSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getSqlsource"]?.[s]?.url;
628
+ return (i, p) => b(o, h, u, l)(i, c || p);
709
629
  },
710
630
  /**
711
631
  * **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.
@@ -719,8 +639,8 @@ const v = function(l, ...r) {
719
639
  * @throws {RequiredError}
720
640
  */
721
641
  async getSqlsourceInPackage(a, n, e, t, o) {
722
- const s = await r.getSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
723
- return (p, m) => b(s, u, g, l)(p, i || m);
642
+ const s = await r.getSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
643
+ return (p, d) => b(s, h, u, l)(p, i || d);
724
644
  },
725
645
  /**
726
646
  * 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.
@@ -733,8 +653,8 @@ const v = function(l, ...r) {
733
653
  * @throws {RequiredError}
734
654
  */
735
655
  async getTable(a, n, e, t, o) {
736
- const s = await r.getTable(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
737
- return (p, m) => b(s, u, g, l)(p, i || m);
656
+ const s = await r.getTable(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
657
+ return (p, d) => b(s, h, u, l)(p, i || d);
738
658
  },
739
659
  /**
740
660
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -748,8 +668,8 @@ const v = function(l, ...r) {
748
668
  * @throws {RequiredError}
749
669
  */
750
670
  async getTableInPackage(a, n, e, t, o, s) {
751
- const c = await r.getTableInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
752
- return (m, h) => b(c, u, g, l)(m, p || h);
671
+ const c = await r.getTableInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
672
+ return (d, P) => b(c, h, u, l)(d, p || P);
753
673
  },
754
674
  /**
755
675
  * **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.
@@ -762,8 +682,8 @@ const v = function(l, ...r) {
762
682
  * @throws {RequiredError}
763
683
  */
764
684
  async getTemporarytable(a, n, e, t) {
765
- const o = await r.getTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getTemporarytable"]?.[s]?.url;
766
- return (i, p) => b(o, u, g, l)(i, c || p);
685
+ const o = await r.getTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getTemporarytable"]?.[s]?.url;
686
+ return (i, p) => b(o, h, u, l)(i, c || p);
767
687
  },
768
688
  /**
769
689
  * **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.
@@ -777,8 +697,8 @@ const v = function(l, ...r) {
777
697
  * @throws {RequiredError}
778
698
  */
779
699
  async getTemporarytableInPackage(a, n, e, t, o) {
780
- const s = await r.getTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
781
- return (p, m) => b(s, u, g, l)(p, i || m);
700
+ const s = await r.getTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
701
+ return (p, d) => b(s, h, u, l)(p, i || d);
782
702
  },
783
703
  /**
784
704
  * 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.
@@ -788,8 +708,8 @@ const v = function(l, ...r) {
788
708
  * @throws {RequiredError}
789
709
  */
790
710
  async listConnections(a, n) {
791
- const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
792
- return (s, c) => b(e, u, g, l)(s, o || c);
711
+ const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[t]?.url;
712
+ return (s, c) => b(e, h, u, l)(s, o || c);
793
713
  },
794
714
  /**
795
715
  * 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.
@@ -800,8 +720,8 @@ const v = function(l, ...r) {
800
720
  * @throws {RequiredError}
801
721
  */
802
722
  async listSchemas(a, n, e) {
803
- const t = await r.listSchemas(a, n, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
804
- return (c, i) => b(t, u, g, l)(c, s || i);
723
+ const t = await r.listSchemas(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
724
+ return (c, i) => b(t, h, u, l)(c, s || i);
805
725
  },
806
726
  /**
807
727
  * 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).
@@ -813,8 +733,8 @@ const v = function(l, ...r) {
813
733
  * @throws {RequiredError}
814
734
  */
815
735
  async listSchemasInPackage(a, n, e, t) {
816
- const o = await r.listSchemasInPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
817
- return (i, p) => b(o, u, g, l)(i, c || p);
736
+ const o = await r.listSchemasInPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
737
+ return (i, p) => b(o, h, u, l)(i, c || p);
818
738
  },
819
739
  /**
820
740
  * 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.
@@ -827,8 +747,8 @@ const v = function(l, ...r) {
827
747
  * @throws {RequiredError}
828
748
  */
829
749
  async listTables(a, n, e, t, o) {
830
- const s = await r.listTables(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
831
- return (p, m) => b(s, u, g, l)(p, i || m);
750
+ const s = await r.listTables(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
751
+ return (p, d) => b(s, h, u, l)(p, i || d);
832
752
  },
833
753
  /**
834
754
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -842,11 +762,11 @@ const v = function(l, ...r) {
842
762
  * @throws {RequiredError}
843
763
  */
844
764
  async listTablesInPackage(a, n, e, t, o, s) {
845
- const c = await r.listTablesInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
846
- return (m, h) => b(c, u, g, l)(m, p || h);
765
+ const c = await r.listTablesInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
766
+ return (d, P) => b(c, h, u, l)(d, p || P);
847
767
  },
848
768
  /**
849
- * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
769
+ * 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.
850
770
  * @summary Execute SQL query
851
771
  * @param {string} environmentName Name of the environment
852
772
  * @param {string} connectionName Name of the connection
@@ -856,11 +776,11 @@ const v = function(l, ...r) {
856
776
  * @throws {RequiredError}
857
777
  */
858
778
  async postQuerydata(a, n, e, t, o) {
859
- const s = await r.postQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[c]?.url;
860
- return (p, m) => b(s, u, g, l)(p, i || m);
779
+ const s = await r.postQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydata"]?.[c]?.url;
780
+ return (p, d) => b(s, h, u, l)(p, i || d);
861
781
  },
862
782
  /**
863
- * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
783
+ * 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.
864
784
  * @summary Execute SQL query (per-package)
865
785
  * @param {string} environmentName Name of the environment
866
786
  * @param {string} packageName Name of the package whose connection context to use
@@ -871,8 +791,8 @@ const v = function(l, ...r) {
871
791
  * @throws {RequiredError}
872
792
  */
873
793
  async postQuerydataInPackage(a, n, e, t, o, s) {
874
- const c = await r.postQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
875
- return (m, h) => b(c, u, g, l)(m, p || h);
794
+ const c = await r.postQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
795
+ return (d, P) => b(c, h, u, l)(d, p || P);
876
796
  },
877
797
  /**
878
798
  * 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.
@@ -884,8 +804,8 @@ const v = function(l, ...r) {
884
804
  * @throws {RequiredError}
885
805
  */
886
806
  async postSqlsource(a, n, e, t) {
887
- const o = await r.postSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
888
- return (i, p) => b(o, u, g, l)(i, c || p);
807
+ const o = await r.postSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
808
+ return (i, p) => b(o, h, u, l)(i, c || p);
889
809
  },
890
810
  /**
891
811
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -898,8 +818,8 @@ const v = function(l, ...r) {
898
818
  * @throws {RequiredError}
899
819
  */
900
820
  async postSqlsourceInPackage(a, n, e, t, o) {
901
- const s = await r.postSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
902
- return (p, m) => b(s, u, g, l)(p, i || m);
821
+ const s = await r.postSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
822
+ return (p, d) => b(s, h, u, l)(p, i || d);
903
823
  },
904
824
  /**
905
825
  * 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.
@@ -911,8 +831,8 @@ const v = function(l, ...r) {
911
831
  * @throws {RequiredError}
912
832
  */
913
833
  async postTemporarytable(a, n, e, t) {
914
- const o = await r.postTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
915
- return (i, p) => b(o, u, g, l)(i, c || p);
834
+ const o = await r.postTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
835
+ return (i, p) => b(o, h, u, l)(i, c || p);
916
836
  },
917
837
  /**
918
838
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -925,8 +845,8 @@ const v = function(l, ...r) {
925
845
  * @throws {RequiredError}
926
846
  */
927
847
  async postTemporarytableInPackage(a, n, e, t, o) {
928
- const s = await r.postTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
929
- return (p, m) => b(s, u, g, l)(p, i || m);
848
+ const s = await r.postTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
849
+ return (p, d) => b(s, h, u, l)(p, i || d);
930
850
  },
931
851
  /**
932
852
  * Updates the configuration of an existing database connection.
@@ -938,8 +858,8 @@ const v = function(l, ...r) {
938
858
  * @throws {RequiredError}
939
859
  */
940
860
  async updateConnection(a, n, e, t) {
941
- const o = await r.updateConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
942
- return (i, p) => b(o, u, g, l)(i, c || p);
861
+ const o = await r.updateConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
862
+ return (i, p) => b(o, h, u, l)(i, c || p);
943
863
  }
944
864
  };
945
865
  }, Ee = function(l, r, a) {
@@ -979,35 +899,6 @@ const v = function(l, ...r) {
979
899
  getConnection(e, t, o) {
980
900
  return n.getConnection(e, t, o).then((s) => s(a, r));
981
901
  },
982
- /**
983
- * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
984
- * @summary Execute SQL query (deprecated)
985
- * @param {string} environmentName Name of the environment
986
- * @param {string} connectionName Name of the connection
987
- * @param {string} [sqlStatement] SQL statement
988
- * @param {string} [_options] Options
989
- * @param {*} [options] Override http request option.
990
- * @deprecated
991
- * @throws {RequiredError}
992
- */
993
- getQuerydata(e, t, o, s, c) {
994
- return n.getQuerydata(e, t, o, s, c).then((i) => i(a, r));
995
- },
996
- /**
997
- * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
998
- * @summary Execute SQL query (per-package, deprecated)
999
- * @param {string} environmentName Name of the environment
1000
- * @param {string} packageName Name of the package whose connection context to use
1001
- * @param {string} connectionName Name of the connection
1002
- * @param {string} [sqlStatement] SQL statement
1003
- * @param {string} [_options] Options
1004
- * @param {*} [options] Override http request option.
1005
- * @deprecated
1006
- * @throws {RequiredError}
1007
- */
1008
- getQuerydataInPackage(e, t, o, s, c, i) {
1009
- return n.getQuerydataInPackage(e, t, o, s, c, i).then((p) => p(a, r));
1010
- },
1011
902
  /**
1012
903
  * **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.
1013
904
  * @summary Get SQL source (deprecated)
@@ -1150,7 +1041,7 @@ const v = function(l, ...r) {
1150
1041
  return n.listTablesInPackage(e, t, o, s, c, i).then((p) => p(a, r));
1151
1042
  },
1152
1043
  /**
1153
- * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
1044
+ * 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.
1154
1045
  * @summary Execute SQL query
1155
1046
  * @param {string} environmentName Name of the environment
1156
1047
  * @param {string} connectionName Name of the connection
@@ -1163,7 +1054,7 @@ const v = function(l, ...r) {
1163
1054
  return n.postQuerydata(e, t, o, s, c).then((i) => i(a, r));
1164
1055
  },
1165
1056
  /**
1166
- * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
1057
+ * 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.
1167
1058
  * @summary Execute SQL query (per-package)
1168
1059
  * @param {string} environmentName Name of the environment
1169
1060
  * @param {string} packageName Name of the package whose connection context to use
@@ -1278,37 +1169,6 @@ class K extends k {
1278
1169
  getConnection(r, a, n) {
1279
1170
  return S(this.configuration).getConnection(r, a, n).then((e) => e(this.axios, this.basePath));
1280
1171
  }
1281
- /**
1282
- * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
1283
- * @summary Execute SQL query (deprecated)
1284
- * @param {string} environmentName Name of the environment
1285
- * @param {string} connectionName Name of the connection
1286
- * @param {string} [sqlStatement] SQL statement
1287
- * @param {string} [_options] Options
1288
- * @param {*} [options] Override http request option.
1289
- * @deprecated
1290
- * @throws {RequiredError}
1291
- * @memberof ConnectionsApi
1292
- */
1293
- getQuerydata(r, a, n, e, t) {
1294
- return S(this.configuration).getQuerydata(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1295
- }
1296
- /**
1297
- * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
1298
- * @summary Execute SQL query (per-package, deprecated)
1299
- * @param {string} environmentName Name of the environment
1300
- * @param {string} packageName Name of the package whose connection context to use
1301
- * @param {string} connectionName Name of the connection
1302
- * @param {string} [sqlStatement] SQL statement
1303
- * @param {string} [_options] Options
1304
- * @param {*} [options] Override http request option.
1305
- * @deprecated
1306
- * @throws {RequiredError}
1307
- * @memberof ConnectionsApi
1308
- */
1309
- getQuerydataInPackage(r, a, n, e, t, o) {
1310
- return S(this.configuration).getQuerydataInPackage(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
1311
- }
1312
1172
  /**
1313
1173
  * **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.
1314
1174
  * @summary Get SQL source (deprecated)
@@ -1462,7 +1322,7 @@ class K extends k {
1462
1322
  return S(this.configuration).listTablesInPackage(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
1463
1323
  }
1464
1324
  /**
1465
- * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
1325
+ * 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.
1466
1326
  * @summary Execute SQL query
1467
1327
  * @param {string} environmentName Name of the environment
1468
1328
  * @param {string} connectionName Name of the connection
@@ -1476,7 +1336,7 @@ class K extends k {
1476
1336
  return S(this.configuration).postQuerydata(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
1477
1337
  }
1478
1338
  /**
1479
- * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
1339
+ * 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.
1480
1340
  * @summary Execute SQL query (per-package)
1481
1341
  * @param {string} environmentName Name of the environment
1482
1342
  * @param {string} packageName Name of the package whose connection context to use
@@ -1568,14 +1428,14 @@ const Y = function(l) {
1568
1428
  * @throws {RequiredError}
1569
1429
  */
1570
1430
  testConnectionConfiguration: async (r, a = {}) => {
1571
- d("testConnectionConfiguration", "connection", r);
1431
+ m("testConnectionConfiguration", "connection", r);
1572
1432
  const n = "/connections/test", e = new URL(n, V);
1573
1433
  let t;
1574
1434
  l && (t = l.baseOptions);
1575
1435
  const o = { method: "POST", ...t, ...a }, s = {}, c = {};
1576
1436
  s["Content-Type"] = "application/json", v(e, c);
1577
1437
  let i = t && t.headers ? t.headers : {};
1578
- return o.headers = { ...s, ...i, ...a.headers }, o.data = y(r, o, l), {
1438
+ return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
1579
1439
  url: O(e),
1580
1440
  options: o
1581
1441
  };
@@ -1592,11 +1452,11 @@ const Y = function(l) {
1592
1452
  * @throws {RequiredError}
1593
1453
  */
1594
1454
  async testConnectionConfiguration(a, n) {
1595
- const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1596
- return (s, c) => b(e, u, g, l)(s, o || c);
1455
+ const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1456
+ return (s, c) => b(e, h, u, l)(s, o || c);
1597
1457
  }
1598
1458
  };
1599
- }, Qe = function(l, r, a) {
1459
+ }, qe = function(l, r, a) {
1600
1460
  const n = B(l);
1601
1461
  return {
1602
1462
  /**
@@ -1611,7 +1471,7 @@ const Y = function(l) {
1611
1471
  }
1612
1472
  };
1613
1473
  };
1614
- class qe extends k {
1474
+ class $e extends k {
1615
1475
  /**
1616
1476
  * 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.
1617
1477
  * @summary Test database connection configuration
@@ -1636,14 +1496,14 @@ const X = function(l) {
1636
1496
  * @throws {RequiredError}
1637
1497
  */
1638
1498
  listDatabases: async (r, a, n, e = {}) => {
1639
- d("listDatabases", "environmentName", r), d("listDatabases", "packageName", a);
1499
+ m("listDatabases", "environmentName", r), m("listDatabases", "packageName", a);
1640
1500
  const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
1641
1501
  let s;
1642
1502
  l && (s = l.baseOptions);
1643
1503
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
1644
1504
  n !== void 0 && (p.versionId = n), v(o, p);
1645
- let m = s && s.headers ? s.headers : {};
1646
- return c.headers = { ...i, ...m, ...e.headers }, {
1505
+ let d = s && s.headers ? s.headers : {};
1506
+ return c.headers = { ...i, ...d, ...e.headers }, {
1647
1507
  url: O(o),
1648
1508
  options: c
1649
1509
  };
@@ -1662,11 +1522,11 @@ const X = function(l) {
1662
1522
  * @throws {RequiredError}
1663
1523
  */
1664
1524
  async listDatabases(a, n, e, t) {
1665
- const o = await r.listDatabases(a, n, e, t), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1666
- return (i, p) => b(o, u, g, l)(i, c || p);
1525
+ const o = await r.listDatabases(a, n, e, t), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1526
+ return (i, p) => b(o, h, u, l)(i, c || p);
1667
1527
  }
1668
1528
  };
1669
- }, $e = function(l, r, a) {
1529
+ }, Qe = function(l, r, a) {
1670
1530
  const n = F(l);
1671
1531
  return {
1672
1532
  /**
@@ -1708,14 +1568,14 @@ const ee = function(l) {
1708
1568
  * @throws {RequiredError}
1709
1569
  */
1710
1570
  createEnvironment: async (r, a = {}) => {
1711
- d("createEnvironment", "environment", r);
1571
+ m("createEnvironment", "environment", r);
1712
1572
  const n = "/environments", e = new URL(n, V);
1713
1573
  let t;
1714
1574
  l && (t = l.baseOptions);
1715
1575
  const o = { method: "POST", ...t, ...a }, s = {}, c = {};
1716
1576
  s["Content-Type"] = "application/json", v(e, c);
1717
1577
  let i = t && t.headers ? t.headers : {};
1718
- return o.headers = { ...s, ...i, ...a.headers }, o.data = y(r, o, l), {
1578
+ return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
1719
1579
  url: O(e),
1720
1580
  options: o
1721
1581
  };
@@ -1728,7 +1588,7 @@ const ee = function(l) {
1728
1588
  * @throws {RequiredError}
1729
1589
  */
1730
1590
  deleteEnvironment: async (r, a = {}) => {
1731
- d("deleteEnvironment", "environmentName", r);
1591
+ m("deleteEnvironment", "environmentName", r);
1732
1592
  const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
1733
1593
  let t;
1734
1594
  l && (t = l.baseOptions);
@@ -1749,7 +1609,7 @@ const ee = function(l) {
1749
1609
  * @throws {RequiredError}
1750
1610
  */
1751
1611
  getEnvironment: async (r, a, n = {}) => {
1752
- d("getEnvironment", "environmentName", r);
1612
+ m("getEnvironment", "environmentName", r);
1753
1613
  const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
1754
1614
  let o;
1755
1615
  l && (o = l.baseOptions);
@@ -1788,20 +1648,20 @@ const ee = function(l) {
1788
1648
  * @throws {RequiredError}
1789
1649
  */
1790
1650
  updateEnvironment: async (r, a, n = {}) => {
1791
- d("updateEnvironment", "environmentName", r), d("updateEnvironment", "environment", a);
1651
+ m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", a);
1792
1652
  const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
1793
1653
  let o;
1794
1654
  l && (o = l.baseOptions);
1795
1655
  const s = { method: "PATCH", ...o, ...n }, c = {}, i = {};
1796
1656
  c["Content-Type"] = "application/json", v(t, i);
1797
1657
  let p = o && o.headers ? o.headers : {};
1798
- return s.headers = { ...c, ...p, ...n.headers }, s.data = y(a, s, l), {
1658
+ return s.headers = { ...c, ...p, ...n.headers }, s.data = I(a, s, l), {
1799
1659
  url: O(t),
1800
1660
  options: s
1801
1661
  };
1802
1662
  }
1803
1663
  };
1804
- }, N = function(l) {
1664
+ }, x = function(l) {
1805
1665
  const r = ee(l);
1806
1666
  return {
1807
1667
  /**
@@ -1812,8 +1672,8 @@ const ee = function(l) {
1812
1672
  * @throws {RequiredError}
1813
1673
  */
1814
1674
  async createEnvironment(a, n) {
1815
- const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1816
- return (s, c) => b(e, u, g, l)(s, o || c);
1675
+ const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1676
+ return (s, c) => b(e, h, u, l)(s, o || c);
1817
1677
  },
1818
1678
  /**
1819
1679
  * 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.
@@ -1823,8 +1683,8 @@ const ee = function(l) {
1823
1683
  * @throws {RequiredError}
1824
1684
  */
1825
1685
  async deleteEnvironment(a, n) {
1826
- const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1827
- return (s, c) => b(e, u, g, l)(s, o || c);
1686
+ const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1687
+ return (s, c) => b(e, h, u, l)(s, o || c);
1828
1688
  },
1829
1689
  /**
1830
1690
  * 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.
@@ -1835,8 +1695,8 @@ const ee = function(l) {
1835
1695
  * @throws {RequiredError}
1836
1696
  */
1837
1697
  async getEnvironment(a, n, e) {
1838
- const t = await r.getEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1839
- return (c, i) => b(t, u, g, l)(c, s || i);
1698
+ const t = await r.getEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1699
+ return (c, i) => b(t, h, u, l)(c, s || i);
1840
1700
  },
1841
1701
  /**
1842
1702
  * 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.
@@ -1845,8 +1705,8 @@ const ee = function(l) {
1845
1705
  * @throws {RequiredError}
1846
1706
  */
1847
1707
  async listEnvironments(a) {
1848
- const n = await r.listEnvironments(a), e = l?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[e]?.url;
1849
- return (o, s) => b(n, u, g, l)(o, t || s);
1708
+ const n = await r.listEnvironments(a), e = l?.serverIndex ?? 0, t = g["EnvironmentsApi.listEnvironments"]?.[e]?.url;
1709
+ return (o, s) => b(n, h, u, l)(o, t || s);
1850
1710
  },
1851
1711
  /**
1852
1712
  * 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.
@@ -1857,12 +1717,12 @@ const ee = function(l) {
1857
1717
  * @throws {RequiredError}
1858
1718
  */
1859
1719
  async updateEnvironment(a, n, e) {
1860
- const t = await r.updateEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1861
- return (c, i) => b(t, u, g, l)(c, s || i);
1720
+ const t = await r.updateEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1721
+ return (c, i) => b(t, h, u, l)(c, s || i);
1862
1722
  }
1863
1723
  };
1864
1724
  }, Be = function(l, r, a) {
1865
- const n = N(l);
1725
+ const n = x(l);
1866
1726
  return {
1867
1727
  /**
1868
1728
  * 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.
@@ -1927,7 +1787,7 @@ class ae extends k {
1927
1787
  * @memberof EnvironmentsApi
1928
1788
  */
1929
1789
  createEnvironment(r, a) {
1930
- return N(this.configuration).createEnvironment(r, a).then((n) => n(this.axios, this.basePath));
1790
+ return x(this.configuration).createEnvironment(r, a).then((n) => n(this.axios, this.basePath));
1931
1791
  }
1932
1792
  /**
1933
1793
  * 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.
@@ -1938,7 +1798,7 @@ class ae extends k {
1938
1798
  * @memberof EnvironmentsApi
1939
1799
  */
1940
1800
  deleteEnvironment(r, a) {
1941
- return N(this.configuration).deleteEnvironment(r, a).then((n) => n(this.axios, this.basePath));
1801
+ return x(this.configuration).deleteEnvironment(r, a).then((n) => n(this.axios, this.basePath));
1942
1802
  }
1943
1803
  /**
1944
1804
  * 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.
@@ -1950,7 +1810,7 @@ class ae extends k {
1950
1810
  * @memberof EnvironmentsApi
1951
1811
  */
1952
1812
  getEnvironment(r, a, n) {
1953
- return N(this.configuration).getEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
1813
+ return x(this.configuration).getEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
1954
1814
  }
1955
1815
  /**
1956
1816
  * 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.
@@ -1960,7 +1820,7 @@ class ae extends k {
1960
1820
  * @memberof EnvironmentsApi
1961
1821
  */
1962
1822
  listEnvironments(r) {
1963
- return N(this.configuration).listEnvironments(r).then((a) => a(this.axios, this.basePath));
1823
+ return x(this.configuration).listEnvironments(r).then((a) => a(this.axios, this.basePath));
1964
1824
  }
1965
1825
  /**
1966
1826
  * 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.
@@ -1972,7 +1832,7 @@ class ae extends k {
1972
1832
  * @memberof EnvironmentsApi
1973
1833
  */
1974
1834
  updateEnvironment(r, a, n) {
1975
- return N(this.configuration).updateEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
1835
+ return x(this.configuration).updateEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
1976
1836
  }
1977
1837
  }
1978
1838
  const te = function(l) {
@@ -1986,7 +1846,7 @@ const te = function(l) {
1986
1846
  * @throws {RequiredError}
1987
1847
  */
1988
1848
  getManifest: async (r, a, n = {}) => {
1989
- d("getManifest", "environmentName", r), d("getManifest", "packageName", a);
1849
+ m("getManifest", "environmentName", r), m("getManifest", "packageName", a);
1990
1850
  const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
1991
1851
  let o;
1992
1852
  l && (o = l.baseOptions);
@@ -2008,20 +1868,20 @@ const te = function(l) {
2008
1868
  * @throws {RequiredError}
2009
1869
  */
2010
1870
  manifestAction: async (r, a, n, e = {}) => {
2011
- d("manifestAction", "environmentName", r), d("manifestAction", "packageName", a), d("manifestAction", "action", n);
1871
+ m("manifestAction", "environmentName", r), m("manifestAction", "packageName", a), m("manifestAction", "action", n);
2012
1872
  const t = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2013
1873
  let s;
2014
1874
  l && (s = l.baseOptions);
2015
1875
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2016
1876
  n !== void 0 && (p.action = n), v(o, p);
2017
- let m = s && s.headers ? s.headers : {};
2018
- return c.headers = { ...i, ...m, ...e.headers }, {
1877
+ let d = s && s.headers ? s.headers : {};
1878
+ return c.headers = { ...i, ...d, ...e.headers }, {
2019
1879
  url: O(o),
2020
1880
  options: c
2021
1881
  };
2022
1882
  }
2023
1883
  };
2024
- }, Q = function(l) {
1884
+ }, q = function(l) {
2025
1885
  const r = te(l);
2026
1886
  return {
2027
1887
  /**
@@ -2033,8 +1893,8 @@ const te = function(l) {
2033
1893
  * @throws {RequiredError}
2034
1894
  */
2035
1895
  async getManifest(a, n, e) {
2036
- const t = await r.getManifest(a, n, e), o = l?.serverIndex ?? 0, s = P["ManifestsApi.getManifest"]?.[o]?.url;
2037
- return (c, i) => b(t, u, g, l)(c, s || i);
1896
+ const t = await r.getManifest(a, n, e), o = l?.serverIndex ?? 0, s = g["ManifestsApi.getManifest"]?.[o]?.url;
1897
+ return (c, i) => b(t, h, u, l)(c, s || i);
2038
1898
  },
2039
1899
  /**
2040
1900
  * 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.
@@ -2046,12 +1906,12 @@ const te = function(l) {
2046
1906
  * @throws {RequiredError}
2047
1907
  */
2048
1908
  async manifestAction(a, n, e, t) {
2049
- const o = await r.manifestAction(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ManifestsApi.manifestAction"]?.[s]?.url;
2050
- return (i, p) => b(o, u, g, l)(i, c || p);
1909
+ const o = await r.manifestAction(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ManifestsApi.manifestAction"]?.[s]?.url;
1910
+ return (i, p) => b(o, h, u, l)(i, c || p);
2051
1911
  }
2052
1912
  };
2053
1913
  }, Fe = function(l, r, a) {
2054
- const n = Q(l);
1914
+ const n = q(l);
2055
1915
  return {
2056
1916
  /**
2057
1917
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -2089,7 +1949,7 @@ class ze extends k {
2089
1949
  * @memberof ManifestsApi
2090
1950
  */
2091
1951
  getManifest(r, a, n) {
2092
- return Q(this.configuration).getManifest(r, a, n).then((e) => e(this.axios, this.basePath));
1952
+ return q(this.configuration).getManifest(r, a, n).then((e) => e(this.axios, this.basePath));
2093
1953
  }
2094
1954
  /**
2095
1955
  * 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.
@@ -2102,7 +1962,7 @@ class ze extends k {
2102
1962
  * @memberof ManifestsApi
2103
1963
  */
2104
1964
  manifestAction(r, a, n, e) {
2105
- return Q(this.configuration).manifestAction(r, a, n, e).then((t) => t(this.axios, this.basePath));
1965
+ return q(this.configuration).manifestAction(r, a, n, e).then((t) => t(this.axios, this.basePath));
2106
1966
  }
2107
1967
  }
2108
1968
  const je = {
@@ -2119,14 +1979,14 @@ const je = {
2119
1979
  * @throws {RequiredError}
2120
1980
  */
2121
1981
  createMaterialization: async (r, a, n, e = {}) => {
2122
- d("createMaterialization", "environmentName", r), d("createMaterialization", "packageName", a);
1982
+ m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", a);
2123
1983
  const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2124
1984
  let s;
2125
1985
  l && (s = l.baseOptions);
2126
1986
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2127
1987
  i["Content-Type"] = "application/json", v(o, p);
2128
- let m = s && s.headers ? s.headers : {};
2129
- return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
1988
+ let d = s && s.headers ? s.headers : {};
1989
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
2130
1990
  url: O(o),
2131
1991
  options: c
2132
1992
  };
@@ -2141,14 +2001,14 @@ const je = {
2141
2001
  * @throws {RequiredError}
2142
2002
  */
2143
2003
  deleteMaterialization: async (r, a, n, e = {}) => {
2144
- d("deleteMaterialization", "environmentName", r), d("deleteMaterialization", "packageName", a), d("deleteMaterialization", "materializationId", n);
2004
+ m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", n);
2145
2005
  const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
2146
2006
  let s;
2147
2007
  l && (s = l.baseOptions);
2148
2008
  const c = { method: "DELETE", ...s, ...e }, i = {};
2149
2009
  v(o, {});
2150
- let m = s && s.headers ? s.headers : {};
2151
- return c.headers = { ...i, ...m, ...e.headers }, {
2010
+ let d = s && s.headers ? s.headers : {};
2011
+ return c.headers = { ...i, ...d, ...e.headers }, {
2152
2012
  url: O(o),
2153
2013
  options: c
2154
2014
  };
@@ -2163,14 +2023,14 @@ const je = {
2163
2023
  * @throws {RequiredError}
2164
2024
  */
2165
2025
  getMaterialization: async (r, a, n, e = {}) => {
2166
- d("getMaterialization", "environmentName", r), d("getMaterialization", "packageName", a), d("getMaterialization", "materializationId", n);
2026
+ m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", n);
2167
2027
  const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
2168
2028
  let s;
2169
2029
  l && (s = l.baseOptions);
2170
2030
  const c = { method: "GET", ...s, ...e }, i = {};
2171
2031
  v(o, {});
2172
- let m = s && s.headers ? s.headers : {};
2173
- return c.headers = { ...i, ...m, ...e.headers }, {
2032
+ let d = s && s.headers ? s.headers : {};
2033
+ return c.headers = { ...i, ...d, ...e.headers }, {
2174
2034
  url: O(o),
2175
2035
  options: c
2176
2036
  };
@@ -2186,14 +2046,14 @@ const je = {
2186
2046
  * @throws {RequiredError}
2187
2047
  */
2188
2048
  listMaterializations: async (r, a, n, e, t = {}) => {
2189
- d("listMaterializations", "environmentName", r), d("listMaterializations", "packageName", a);
2049
+ m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", a);
2190
2050
  const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2191
2051
  let c;
2192
2052
  l && (c = l.baseOptions);
2193
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
2194
- n !== void 0 && (m.limit = n), e !== void 0 && (m.offset = e), v(s, m);
2195
- let h = c && c.headers ? c.headers : {};
2196
- return i.headers = { ...p, ...h, ...t.headers }, {
2053
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2054
+ n !== void 0 && (d.limit = n), e !== void 0 && (d.offset = e), v(s, d);
2055
+ let P = c && c.headers ? c.headers : {};
2056
+ return i.headers = { ...p, ...P, ...t.headers }, {
2197
2057
  url: O(s),
2198
2058
  options: i
2199
2059
  };
@@ -2209,20 +2069,20 @@ const je = {
2209
2069
  * @throws {RequiredError}
2210
2070
  */
2211
2071
  materializationAction: async (r, a, n, e, t = {}) => {
2212
- d("materializationAction", "environmentName", r), d("materializationAction", "packageName", a), d("materializationAction", "materializationId", n), d("materializationAction", "action", e);
2072
+ m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", n), m("materializationAction", "action", e);
2213
2073
  const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, V);
2214
2074
  let c;
2215
2075
  l && (c = l.baseOptions);
2216
- const i = { method: "POST", ...c, ...t }, p = {}, m = {};
2217
- e !== void 0 && (m.action = e), v(s, m);
2218
- let h = c && c.headers ? c.headers : {};
2219
- return i.headers = { ...p, ...h, ...t.headers }, {
2076
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2077
+ e !== void 0 && (d.action = e), v(s, d);
2078
+ let P = c && c.headers ? c.headers : {};
2079
+ return i.headers = { ...p, ...P, ...t.headers }, {
2220
2080
  url: O(s),
2221
2081
  options: i
2222
2082
  };
2223
2083
  }
2224
2084
  };
2225
- }, x = function(l) {
2085
+ }, N = function(l) {
2226
2086
  const r = ne(l);
2227
2087
  return {
2228
2088
  /**
@@ -2235,8 +2095,8 @@ const je = {
2235
2095
  * @throws {RequiredError}
2236
2096
  */
2237
2097
  async createMaterialization(a, n, e, t) {
2238
- const o = await r.createMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
2239
- return (i, p) => b(o, u, g, l)(i, c || p);
2098
+ const o = await r.createMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
2099
+ return (i, p) => b(o, h, u, l)(i, c || p);
2240
2100
  },
2241
2101
  /**
2242
2102
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -2248,8 +2108,8 @@ const je = {
2248
2108
  * @throws {RequiredError}
2249
2109
  */
2250
2110
  async deleteMaterialization(a, n, e, t) {
2251
- const o = await r.deleteMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
2252
- return (i, p) => b(o, u, g, l)(i, c || p);
2111
+ const o = await r.deleteMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
2112
+ return (i, p) => b(o, h, u, l)(i, c || p);
2253
2113
  },
2254
2114
  /**
2255
2115
  *
@@ -2261,8 +2121,8 @@ const je = {
2261
2121
  * @throws {RequiredError}
2262
2122
  */
2263
2123
  async getMaterialization(a, n, e, t) {
2264
- const o = await r.getMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
2265
- return (i, p) => b(o, u, g, l)(i, c || p);
2124
+ const o = await r.getMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
2125
+ return (i, p) => b(o, h, u, l)(i, c || p);
2266
2126
  },
2267
2127
  /**
2268
2128
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2275,8 +2135,8 @@ const je = {
2275
2135
  * @throws {RequiredError}
2276
2136
  */
2277
2137
  async listMaterializations(a, n, e, t, o) {
2278
- const s = await r.listMaterializations(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
2279
- return (p, m) => b(s, u, g, l)(p, i || m);
2138
+ const s = await r.listMaterializations(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
2139
+ return (p, d) => b(s, h, u, l)(p, i || d);
2280
2140
  },
2281
2141
  /**
2282
2142
  * 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.
@@ -2289,12 +2149,12 @@ const je = {
2289
2149
  * @throws {RequiredError}
2290
2150
  */
2291
2151
  async materializationAction(a, n, e, t, o) {
2292
- const s = await r.materializationAction(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
2293
- return (p, m) => b(s, u, g, l)(p, i || m);
2152
+ const s = await r.materializationAction(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
2153
+ return (p, d) => b(s, h, u, l)(p, i || d);
2294
2154
  }
2295
2155
  };
2296
2156
  }, Le = function(l, r, a) {
2297
- const n = x(l);
2157
+ const n = N(l);
2298
2158
  return {
2299
2159
  /**
2300
2160
  * 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.
@@ -2372,7 +2232,7 @@ class He extends k {
2372
2232
  * @memberof MaterializationsApi
2373
2233
  */
2374
2234
  createMaterialization(r, a, n, e) {
2375
- return x(this.configuration).createMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2235
+ return N(this.configuration).createMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2376
2236
  }
2377
2237
  /**
2378
2238
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -2385,7 +2245,7 @@ class He extends k {
2385
2245
  * @memberof MaterializationsApi
2386
2246
  */
2387
2247
  deleteMaterialization(r, a, n, e) {
2388
- return x(this.configuration).deleteMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2248
+ return N(this.configuration).deleteMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2389
2249
  }
2390
2250
  /**
2391
2251
  *
@@ -2398,7 +2258,7 @@ class He extends k {
2398
2258
  * @memberof MaterializationsApi
2399
2259
  */
2400
2260
  getMaterialization(r, a, n, e) {
2401
- return x(this.configuration).getMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2261
+ return N(this.configuration).getMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
2402
2262
  }
2403
2263
  /**
2404
2264
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2412,7 +2272,7 @@ class He extends k {
2412
2272
  * @memberof MaterializationsApi
2413
2273
  */
2414
2274
  listMaterializations(r, a, n, e, t) {
2415
- return x(this.configuration).listMaterializations(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2275
+ return N(this.configuration).listMaterializations(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2416
2276
  }
2417
2277
  /**
2418
2278
  * 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.
@@ -2426,7 +2286,7 @@ class He extends k {
2426
2286
  * @memberof MaterializationsApi
2427
2287
  */
2428
2288
  materializationAction(r, a, n, e, t) {
2429
- return x(this.configuration).materializationAction(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2289
+ return N(this.configuration).materializationAction(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
2430
2290
  }
2431
2291
  }
2432
2292
  const fe = {
@@ -2445,14 +2305,14 @@ const fe = {
2445
2305
  * @throws {RequiredError}
2446
2306
  */
2447
2307
  compileModelSource: async (r, a, n, e, t = {}) => {
2448
- d("compileModelSource", "environmentName", r), d("compileModelSource", "packageName", a), d("compileModelSource", "path", n), d("compileModelSource", "compileRequest", e);
2308
+ m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", n), m("compileModelSource", "compileRequest", e);
2449
2309
  const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2450
2310
  let c;
2451
2311
  l && (c = l.baseOptions);
2452
- const i = { method: "POST", ...c, ...t }, p = {}, m = {};
2453
- p["Content-Type"] = "application/json", v(s, m);
2454
- let h = c && c.headers ? c.headers : {};
2455
- return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
2312
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2313
+ p["Content-Type"] = "application/json", v(s, d);
2314
+ let P = c && c.headers ? c.headers : {};
2315
+ return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
2456
2316
  url: O(s),
2457
2317
  options: i
2458
2318
  };
@@ -2468,14 +2328,14 @@ const fe = {
2468
2328
  * @throws {RequiredError}
2469
2329
  */
2470
2330
  executeQueryModel: async (r, a, n, e, t = {}) => {
2471
- d("executeQueryModel", "environmentName", r), d("executeQueryModel", "packageName", a), d("executeQueryModel", "path", n), d("executeQueryModel", "queryRequest", e);
2331
+ m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", n), m("executeQueryModel", "queryRequest", e);
2472
2332
  const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2473
2333
  let c;
2474
2334
  l && (c = l.baseOptions);
2475
- const i = { method: "POST", ...c, ...t }, p = {}, m = {};
2476
- p["Content-Type"] = "application/json", v(s, m);
2477
- let h = c && c.headers ? c.headers : {};
2478
- return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
2335
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2336
+ p["Content-Type"] = "application/json", v(s, d);
2337
+ let P = c && c.headers ? c.headers : {};
2338
+ return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
2479
2339
  url: O(s),
2480
2340
  options: i
2481
2341
  };
@@ -2491,14 +2351,14 @@ const fe = {
2491
2351
  * @throws {RequiredError}
2492
2352
  */
2493
2353
  getModel: async (r, a, n, e, t = {}) => {
2494
- d("getModel", "environmentName", r), d("getModel", "packageName", a), d("getModel", "path", n);
2354
+ m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", n);
2495
2355
  const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2496
2356
  let c;
2497
2357
  l && (c = l.baseOptions);
2498
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
2499
- e !== void 0 && (m.versionId = e), v(s, m);
2500
- let h = c && c.headers ? c.headers : {};
2501
- return i.headers = { ...p, ...h, ...t.headers }, {
2358
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2359
+ e !== void 0 && (d.versionId = e), v(s, d);
2360
+ let P = c && c.headers ? c.headers : {};
2361
+ return i.headers = { ...p, ...P, ...t.headers }, {
2502
2362
  url: O(s),
2503
2363
  options: i
2504
2364
  };
@@ -2513,14 +2373,14 @@ const fe = {
2513
2373
  * @throws {RequiredError}
2514
2374
  */
2515
2375
  listModels: async (r, a, n, e = {}) => {
2516
- d("listModels", "environmentName", r), d("listModels", "packageName", a);
2376
+ m("listModels", "environmentName", r), m("listModels", "packageName", a);
2517
2377
  const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2518
2378
  let s;
2519
2379
  l && (s = l.baseOptions);
2520
2380
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2521
2381
  n !== void 0 && (p.versionId = n), v(o, p);
2522
- let m = s && s.headers ? s.headers : {};
2523
- return c.headers = { ...i, ...m, ...e.headers }, {
2382
+ let d = s && s.headers ? s.headers : {};
2383
+ return c.headers = { ...i, ...d, ...e.headers }, {
2524
2384
  url: O(o),
2525
2385
  options: c
2526
2386
  };
@@ -2540,8 +2400,8 @@ const fe = {
2540
2400
  * @throws {RequiredError}
2541
2401
  */
2542
2402
  async compileModelSource(a, n, e, t, o) {
2543
- const s = await r.compileModelSource(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2544
- return (p, m) => b(s, u, g, l)(p, i || m);
2403
+ const s = await r.compileModelSource(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2404
+ return (p, d) => b(s, h, u, l)(p, i || d);
2545
2405
  },
2546
2406
  /**
2547
2407
  * 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.
@@ -2554,8 +2414,8 @@ const fe = {
2554
2414
  * @throws {RequiredError}
2555
2415
  */
2556
2416
  async executeQueryModel(a, n, e, t, o) {
2557
- const s = await r.executeQueryModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2558
- return (p, m) => b(s, u, g, l)(p, i || m);
2417
+ const s = await r.executeQueryModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2418
+ return (p, d) => b(s, h, u, l)(p, i || d);
2559
2419
  },
2560
2420
  /**
2561
2421
  * 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.
@@ -2568,8 +2428,8 @@ const fe = {
2568
2428
  * @throws {RequiredError}
2569
2429
  */
2570
2430
  async getModel(a, n, e, t, o) {
2571
- const s = await r.getModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2572
- return (p, m) => b(s, u, g, l)(p, i || m);
2431
+ const s = await r.getModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2432
+ return (p, d) => b(s, h, u, l)(p, i || d);
2573
2433
  },
2574
2434
  /**
2575
2435
  * 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.
@@ -2581,8 +2441,8 @@ const fe = {
2581
2441
  * @throws {RequiredError}
2582
2442
  */
2583
2443
  async listModels(a, n, e, t) {
2584
- const o = await r.listModels(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
2585
- return (i, p) => b(o, u, g, l)(i, c || p);
2444
+ const o = await r.listModels(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2445
+ return (i, p) => b(o, h, u, l)(i, c || p);
2586
2446
  }
2587
2447
  };
2588
2448
  }, De = function(l, r, a) {
@@ -2715,16 +2575,16 @@ const se = function(l) {
2715
2575
  * @throws {RequiredError}
2716
2576
  */
2717
2577
  executeNotebookCell: async (r, a, n, e, t, o, s, c, i = {}) => {
2718
- d("executeNotebookCell", "environmentName", r), d("executeNotebookCell", "packageName", a), d("executeNotebookCell", "path", n), d("executeNotebookCell", "cellIndex", e);
2719
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), m = new URL(p, V);
2720
- let h;
2721
- l && (h = l.baseOptions);
2722
- const I = { method: "GET", ...h, ...i }, T = {}, C = {};
2723
- t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(m, C);
2724
- let A = h && h.headers ? h.headers : {};
2725
- return I.headers = { ...T, ...A, ...i.headers }, {
2726
- url: O(m),
2727
- options: I
2578
+ m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", n), m("executeNotebookCell", "cellIndex", e);
2579
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, V);
2580
+ let P;
2581
+ l && (P = l.baseOptions);
2582
+ const y = { method: "GET", ...P, ...i }, T = {}, C = {};
2583
+ t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(d, C);
2584
+ let A = P && P.headers ? P.headers : {};
2585
+ return y.headers = { ...T, ...A, ...i.headers }, {
2586
+ url: O(d),
2587
+ options: y
2728
2588
  };
2729
2589
  },
2730
2590
  /**
@@ -2738,14 +2598,14 @@ const se = function(l) {
2738
2598
  * @throws {RequiredError}
2739
2599
  */
2740
2600
  getNotebook: async (r, a, n, e, t = {}) => {
2741
- d("getNotebook", "environmentName", r), d("getNotebook", "packageName", a), d("getNotebook", "path", n);
2601
+ m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", n);
2742
2602
  const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
2743
2603
  let c;
2744
2604
  l && (c = l.baseOptions);
2745
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
2746
- e !== void 0 && (m.versionId = e), v(s, m);
2747
- let h = c && c.headers ? c.headers : {};
2748
- return i.headers = { ...p, ...h, ...t.headers }, {
2605
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2606
+ e !== void 0 && (d.versionId = e), v(s, d);
2607
+ let P = c && c.headers ? c.headers : {};
2608
+ return i.headers = { ...p, ...P, ...t.headers }, {
2749
2609
  url: O(s),
2750
2610
  options: i
2751
2611
  };
@@ -2760,14 +2620,14 @@ const se = function(l) {
2760
2620
  * @throws {RequiredError}
2761
2621
  */
2762
2622
  listNotebooks: async (r, a, n, e = {}) => {
2763
- d("listNotebooks", "environmentName", r), d("listNotebooks", "packageName", a);
2623
+ m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", a);
2764
2624
  const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2765
2625
  let s;
2766
2626
  l && (s = l.baseOptions);
2767
2627
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2768
2628
  n !== void 0 && (p.versionId = n), v(o, p);
2769
- let m = s && s.headers ? s.headers : {};
2770
- return c.headers = { ...i, ...m, ...e.headers }, {
2629
+ let d = s && s.headers ? s.headers : {};
2630
+ return c.headers = { ...i, ...d, ...e.headers }, {
2771
2631
  url: O(o),
2772
2632
  options: c
2773
2633
  };
@@ -2791,8 +2651,8 @@ const se = function(l) {
2791
2651
  * @throws {RequiredError}
2792
2652
  */
2793
2653
  async executeNotebookCell(a, n, e, t, o, s, c, i, p) {
2794
- const m = await r.executeNotebookCell(a, n, e, t, o, s, c, i, p), h = l?.serverIndex ?? 0, I = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
2795
- return (T, C) => b(m, u, g, l)(T, I || C);
2654
+ const d = await r.executeNotebookCell(a, n, e, t, o, s, c, i, p), P = l?.serverIndex ?? 0, y = g["NotebooksApi.executeNotebookCell"]?.[P]?.url;
2655
+ return (T, C) => b(d, h, u, l)(T, y || C);
2796
2656
  },
2797
2657
  /**
2798
2658
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2805,8 +2665,8 @@ const se = function(l) {
2805
2665
  * @throws {RequiredError}
2806
2666
  */
2807
2667
  async getNotebook(a, n, e, t, o) {
2808
- const s = await r.getNotebook(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2809
- return (p, m) => b(s, u, g, l)(p, i || m);
2668
+ const s = await r.getNotebook(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2669
+ return (p, d) => b(s, h, u, l)(p, i || d);
2810
2670
  },
2811
2671
  /**
2812
2672
  * 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.
@@ -2818,8 +2678,8 @@ const se = function(l) {
2818
2678
  * @throws {RequiredError}
2819
2679
  */
2820
2680
  async listNotebooks(a, n, e, t) {
2821
- const o = await r.listNotebooks(a, n, e, t), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2822
- return (i, p) => b(o, u, g, l)(i, c || p);
2681
+ const o = await r.listNotebooks(a, n, e, t), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2682
+ return (i, p) => b(o, h, u, l)(i, c || p);
2823
2683
  }
2824
2684
  };
2825
2685
  }, We = function(l, r, a) {
@@ -2839,8 +2699,8 @@ const se = function(l) {
2839
2699
  * @param {*} [options] Override http request option.
2840
2700
  * @throws {RequiredError}
2841
2701
  */
2842
- executeNotebookCell(e, t, o, s, c, i, p, m, h) {
2843
- return n.executeNotebookCell(e, t, o, s, c, i, p, m, h).then((I) => I(a, r));
2702
+ executeNotebookCell(e, t, o, s, c, i, p, d, P) {
2703
+ return n.executeNotebookCell(e, t, o, s, c, i, p, d, P).then((y) => y(a, r));
2844
2704
  },
2845
2705
  /**
2846
2706
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2931,14 +2791,14 @@ const Ge = {
2931
2791
  * @throws {RequiredError}
2932
2792
  */
2933
2793
  createPackage: async (r, a, n, e = {}) => {
2934
- d("createPackage", "environmentName", r), d("createPackage", "_package", a);
2794
+ m("createPackage", "environmentName", r), m("createPackage", "_package", a);
2935
2795
  const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(t, V);
2936
2796
  let s;
2937
2797
  l && (s = l.baseOptions);
2938
2798
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2939
2799
  n !== void 0 && (p.autoLoadManifest = n), i["Content-Type"] = "application/json", v(o, p);
2940
- let m = s && s.headers ? s.headers : {};
2941
- return c.headers = { ...i, ...m, ...e.headers }, c.data = y(a, c, l), {
2800
+ let d = s && s.headers ? s.headers : {};
2801
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(a, c, l), {
2942
2802
  url: O(o),
2943
2803
  options: c
2944
2804
  };
@@ -2952,7 +2812,7 @@ const Ge = {
2952
2812
  * @throws {RequiredError}
2953
2813
  */
2954
2814
  deletePackage: async (r, a, n = {}) => {
2955
- d("deletePackage", "environmentName", r), d("deletePackage", "packageName", a);
2815
+ m("deletePackage", "environmentName", r), m("deletePackage", "packageName", a);
2956
2816
  const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
2957
2817
  let o;
2958
2818
  l && (o = l.baseOptions);
@@ -2975,14 +2835,14 @@ const Ge = {
2975
2835
  * @throws {RequiredError}
2976
2836
  */
2977
2837
  getPackage: async (r, a, n, e, t = {}) => {
2978
- d("getPackage", "environmentName", r), d("getPackage", "packageName", a);
2838
+ m("getPackage", "environmentName", r), m("getPackage", "packageName", a);
2979
2839
  const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2980
2840
  let c;
2981
2841
  l && (c = l.baseOptions);
2982
- const i = { method: "GET", ...c, ...t }, p = {}, m = {};
2983
- n !== void 0 && (m.versionId = n), e !== void 0 && (m.reload = e), v(s, m);
2984
- let h = c && c.headers ? c.headers : {};
2985
- return i.headers = { ...p, ...h, ...t.headers }, {
2842
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2843
+ n !== void 0 && (d.versionId = n), e !== void 0 && (d.reload = e), v(s, d);
2844
+ let P = c && c.headers ? c.headers : {};
2845
+ return i.headers = { ...p, ...P, ...t.headers }, {
2986
2846
  url: O(s),
2987
2847
  options: i
2988
2848
  };
@@ -2995,7 +2855,7 @@ const Ge = {
2995
2855
  * @throws {RequiredError}
2996
2856
  */
2997
2857
  listPackages: async (r, a = {}) => {
2998
- d("listPackages", "environmentName", r);
2858
+ m("listPackages", "environmentName", r);
2999
2859
  const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
3000
2860
  let t;
3001
2861
  l && (t = l.baseOptions);
@@ -3017,14 +2877,14 @@ const Ge = {
3017
2877
  * @throws {RequiredError}
3018
2878
  */
3019
2879
  updatePackage: async (r, a, n, e = {}) => {
3020
- d("updatePackage", "environmentName", r), d("updatePackage", "packageName", a), d("updatePackage", "_package", n);
2880
+ m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", n);
3021
2881
  const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
3022
2882
  let s;
3023
2883
  l && (s = l.baseOptions);
3024
2884
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
3025
2885
  i["Content-Type"] = "application/json", v(o, p);
3026
- let m = s && s.headers ? s.headers : {};
3027
- return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
2886
+ let d = s && s.headers ? s.headers : {};
2887
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
3028
2888
  url: O(o),
3029
2889
  options: c
3030
2890
  };
@@ -3043,8 +2903,8 @@ const Ge = {
3043
2903
  * @throws {RequiredError}
3044
2904
  */
3045
2905
  async createPackage(a, n, e, t) {
3046
- const o = await r.createPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = P["PackagesApi.createPackage"]?.[s]?.url;
3047
- return (i, p) => b(o, u, g, l)(i, c || p);
2906
+ const o = await r.createPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.createPackage"]?.[s]?.url;
2907
+ return (i, p) => b(o, h, u, l)(i, c || p);
3048
2908
  },
3049
2909
  /**
3050
2910
  * 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.
@@ -3055,8 +2915,8 @@ const Ge = {
3055
2915
  * @throws {RequiredError}
3056
2916
  */
3057
2917
  async deletePackage(a, n, e) {
3058
- const t = await r.deletePackage(a, n, e), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
3059
- return (c, i) => b(t, u, g, l)(c, s || i);
2918
+ const t = await r.deletePackage(a, n, e), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2919
+ return (c, i) => b(t, h, u, l)(c, s || i);
3060
2920
  },
3061
2921
  /**
3062
2922
  * 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.
@@ -3069,8 +2929,8 @@ const Ge = {
3069
2929
  * @throws {RequiredError}
3070
2930
  */
3071
2931
  async getPackage(a, n, e, t, o) {
3072
- const s = await r.getPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
3073
- return (p, m) => b(s, u, g, l)(p, i || m);
2932
+ const s = await r.getPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2933
+ return (p, d) => b(s, h, u, l)(p, i || d);
3074
2934
  },
3075
2935
  /**
3076
2936
  * 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.
@@ -3080,8 +2940,8 @@ const Ge = {
3080
2940
  * @throws {RequiredError}
3081
2941
  */
3082
2942
  async listPackages(a, n) {
3083
- const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
3084
- return (s, c) => b(e, u, g, l)(s, o || c);
2943
+ const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[t]?.url;
2944
+ return (s, c) => b(e, h, u, l)(s, o || c);
3085
2945
  },
3086
2946
  /**
3087
2947
  * 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.
@@ -3093,8 +2953,8 @@ const Ge = {
3093
2953
  * @throws {RequiredError}
3094
2954
  */
3095
2955
  async updatePackage(a, n, e, t) {
3096
- const o = await r.updatePackage(a, n, e, t), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
3097
- return (i, p) => b(o, u, g, l)(i, c || p);
2956
+ const o = await r.updatePackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2957
+ return (i, p) => b(o, h, u, l)(i, c || p);
3098
2958
  }
3099
2959
  };
3100
2960
  }, _e = function(l, r, a) {
@@ -3256,8 +3116,8 @@ const pe = function(l) {
3256
3116
  * @throws {RequiredError}
3257
3117
  */
3258
3118
  async getStatus(a) {
3259
- const n = await r.getStatus(a), e = l?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[e]?.url;
3260
- return (o, s) => b(n, u, g, l)(o, t || s);
3119
+ const n = await r.getStatus(a), e = l?.serverIndex ?? 0, t = g["PublisherApi.getStatus"]?.[e]?.url;
3120
+ return (o, s) => b(n, h, u, l)(o, t || s);
3261
3121
  }
3262
3122
  };
3263
3123
  }, Je = function(l, r, a) {
@@ -3314,14 +3174,14 @@ const de = function(l) {
3314
3174
  * @throws {RequiredError}
3315
3175
  */
3316
3176
  startWatching: async (r, a = {}) => {
3317
- d("startWatching", "startWatchRequest", r);
3177
+ m("startWatching", "startWatchRequest", r);
3318
3178
  const n = "/watch-mode/start", e = new URL(n, V);
3319
3179
  let t;
3320
3180
  l && (t = l.baseOptions);
3321
3181
  const o = { method: "POST", ...t, ...a }, s = {}, c = {};
3322
3182
  s["Content-Type"] = "application/json", v(e, c);
3323
3183
  let i = t && t.headers ? t.headers : {};
3324
- return o.headers = { ...s, ...i, ...a.headers }, o.data = y(r, o, l), {
3184
+ return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
3325
3185
  url: O(e),
3326
3186
  options: o
3327
3187
  };
@@ -3355,8 +3215,8 @@ const de = function(l) {
3355
3215
  * @throws {RequiredError}
3356
3216
  */
3357
3217
  async getWatchStatus(a) {
3358
- const n = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[e]?.url;
3359
- return (o, s) => b(n, u, g, l)(o, t || s);
3218
+ const n = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.getWatchStatus"]?.[e]?.url;
3219
+ return (o, s) => b(n, h, u, l)(o, t || s);
3360
3220
  },
3361
3221
  /**
3362
3222
  * 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.
@@ -3366,8 +3226,8 @@ const de = function(l) {
3366
3226
  * @throws {RequiredError}
3367
3227
  */
3368
3228
  async startWatching(a, n) {
3369
- const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
3370
- return (s, c) => b(e, u, g, l)(s, o || c);
3229
+ const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[t]?.url;
3230
+ return (s, c) => b(e, h, u, l)(s, o || c);
3371
3231
  },
3372
3232
  /**
3373
3233
  * 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.
@@ -3376,8 +3236,8 @@ const de = function(l) {
3376
3236
  * @throws {RequiredError}
3377
3237
  */
3378
3238
  async stopWatching(a) {
3379
- const n = await r.stopWatching(a), e = l?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[e]?.url;
3380
- return (o, s) => b(n, u, g, l)(o, t || s);
3239
+ const n = await r.stopWatching(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.stopWatching"]?.[e]?.url;
3240
+ return (o, s) => b(n, h, u, l)(o, t || s);
3381
3241
  }
3382
3242
  };
3383
3243
  }, Ke = function(l, r, a) {
@@ -3526,7 +3386,7 @@ class ue {
3526
3386
  return r !== null && (a.test(r) || r.toLowerCase() === "application/json-patch+json");
3527
3387
  }
3528
3388
  }
3529
- const ge = new L({
3389
+ const Pe = new L({
3530
3390
  defaultOptions: {
3531
3391
  queries: {
3532
3392
  retry: !1,
@@ -3538,9 +3398,9 @@ const ge = new L({
3538
3398
  }
3539
3399
  }
3540
3400
  });
3541
- u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3542
- const j = D(void 0), Pe = (l, r) => {
3543
- const a = `${window.location.protocol}//${window.location.host}/api/v0`, n = u.create({
3401
+ h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3402
+ const j = D(void 0), ge = (l, r) => {
3403
+ const a = `${window.location.protocol}//${window.location.host}/api/v0`, n = h.create({
3544
3404
  baseURL: l || a,
3545
3405
  withCredentials: !0,
3546
3406
  timeout: 6e5
@@ -3567,24 +3427,24 @@ const j = D(void 0), Pe = (l, r) => {
3567
3427
  mutable: n
3568
3428
  }) => {
3569
3429
  const e = W(
3570
- () => Pe(a, r),
3430
+ () => ge(a, r),
3571
3431
  [a, r]
3572
- ), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = $(n), [c, i] = $(!0);
3432
+ ), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = Q(n), [c, i] = Q(!0);
3573
3433
  G(() => {
3574
- let m = !0;
3434
+ let d = !0;
3575
3435
  return (async () => {
3576
3436
  try {
3577
- const I = await e.publisher.getStatus();
3578
- if (m) {
3579
- const C = I.data?.frozenConfig;
3437
+ const y = await e.publisher.getStatus();
3438
+ if (d) {
3439
+ const C = y.data?.frozenConfig;
3580
3440
  let A;
3581
3441
  C ? A = !1 : n === void 0 ? A = !0 : A = n, s(A), i(!1);
3582
3442
  }
3583
- } catch (I) {
3584
- console.error("Failed to fetch publisher status:", I), m && (s(n), i(!1));
3443
+ } catch (y) {
3444
+ console.error("Failed to fetch publisher status:", y), d && (s(n), i(!1));
3585
3445
  }
3586
3446
  })(), () => {
3587
- m = !1;
3447
+ d = !1;
3588
3448
  };
3589
3449
  }, [e, n]);
3590
3450
  const p = {
@@ -3594,7 +3454,7 @@ const j = D(void 0), Pe = (l, r) => {
3594
3454
  mutable: o,
3595
3455
  isLoadingStatus: c
3596
3456
  };
3597
- return /* @__PURE__ */ q(H, { client: ge, children: /* @__PURE__ */ q(j.Provider, { value: p, children: l }) });
3457
+ return /* @__PURE__ */ $(H, { client: Pe, children: /* @__PURE__ */ $(j.Provider, { value: p, children: l }) });
3598
3458
  }, Xe = () => {
3599
3459
  const l = f(j);
3600
3460
  if (l === void 0)
@@ -3606,12 +3466,12 @@ export {
3606
3466
  Se as A,
3607
3467
  ze as B,
3608
3468
  ye as C,
3609
- Ne as D,
3469
+ xe as D,
3610
3470
  ee as E,
3611
- xe as F,
3471
+ Ne as F,
3612
3472
  je as G,
3613
3473
  ne as H,
3614
- x as I,
3474
+ N as I,
3615
3475
  Le as J,
3616
3476
  He as K,
3617
3477
  Re as L,
@@ -3646,24 +3506,24 @@ export {
3646
3506
  Ae as d,
3647
3507
  we as e,
3648
3508
  Me as f,
3649
- ge as g,
3509
+ Pe as g,
3650
3510
  J as h,
3651
3511
  S as i,
3652
3512
  Ee as j,
3653
3513
  K as k,
3654
3514
  Y as l,
3655
3515
  B as m,
3656
- Qe as n,
3657
- qe as o,
3516
+ qe as n,
3517
+ $e as o,
3658
3518
  X as p,
3659
3519
  F as q,
3660
- $e as r,
3520
+ Qe as r,
3661
3521
  Z as s,
3662
- N as t,
3522
+ x as t,
3663
3523
  Xe as u,
3664
3524
  Be as v,
3665
3525
  ae as w,
3666
3526
  te as x,
3667
- Q as y,
3527
+ q as y,
3668
3528
  Fe as z
3669
3529
  };