@malloy-publisher/sdk 0.0.197 → 0.0.198

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.
@@ -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", m = function(l, r, a) {
17
+ const P = {}, V = "https://example.com", d = 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
  };
@@ -95,7 +95,6 @@ const v = function(l, ...r) {
95
95
  }, Me = {
96
96
  Initializing: "initializing",
97
97
  Serving: "serving",
98
- Degraded: "degraded",
99
98
  Draining: "draining"
100
99
  }, J = function(l) {
101
100
  return {
@@ -109,14 +108,14 @@ const v = function(l, ...r) {
109
108
  * @throws {RequiredError}
110
109
  */
111
110
  createConnection: async (r, a, n, e = {}) => {
112
- m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", n);
111
+ d("createConnection", "environmentName", r), d("createConnection", "connectionName", a), d("createConnection", "connection", n);
113
112
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
114
113
  let s;
115
114
  l && (s = l.baseOptions);
116
115
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
117
116
  i["Content-Type"] = "application/json", v(o, p);
118
- let d = s && s.headers ? s.headers : {};
119
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
117
+ let m = s && s.headers ? s.headers : {};
118
+ return c.headers = { ...i, ...m, ...e.headers }, c.data = I(n, c, l), {
120
119
  url: O(o),
121
120
  options: c
122
121
  };
@@ -130,7 +129,7 @@ const v = function(l, ...r) {
130
129
  * @throws {RequiredError}
131
130
  */
132
131
  deleteConnection: async (r, a, n = {}) => {
133
- m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", a);
132
+ d("deleteConnection", "environmentName", r), d("deleteConnection", "connectionName", a);
134
133
  const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
135
134
  let o;
136
135
  l && (o = l.baseOptions);
@@ -151,7 +150,7 @@ const v = function(l, ...r) {
151
150
  * @throws {RequiredError}
152
151
  */
153
152
  getConnection: async (r, a, n = {}) => {
154
- m("getConnection", "environmentName", r), m("getConnection", "connectionName", a);
153
+ d("getConnection", "environmentName", r), d("getConnection", "connectionName", a);
155
154
  const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
156
155
  let o;
157
156
  l && (o = l.baseOptions);
@@ -175,12 +174,12 @@ const v = function(l, ...r) {
175
174
  * @throws {RequiredError}
176
175
  */
177
176
  getQuerydata: async (r, a, n, e, t = {}) => {
178
- m("getQuerydata", "environmentName", r), m("getQuerydata", "connectionName", a);
177
+ d("getQuerydata", "environmentName", r), d("getQuerydata", "connectionName", a);
179
178
  const o = "/environments/{environmentName}/connections/{connectionName}/queryData".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
180
179
  let c;
181
180
  l && (c = l.baseOptions);
182
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
183
- n !== void 0 && (d.sqlStatement = n), e !== void 0 && (d.options = e), v(s, d);
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);
184
183
  let u = c && c.headers ? c.headers : {};
185
184
  return i.headers = { ...p, ...u, ...t.headers }, {
186
185
  url: O(s),
@@ -200,14 +199,14 @@ const v = function(l, ...r) {
200
199
  * @throws {RequiredError}
201
200
  */
202
201
  getQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
203
- m("getQuerydataInPackage", "environmentName", r), m("getQuerydataInPackage", "packageName", a), m("getQuerydataInPackage", "connectionName", n);
202
+ d("getQuerydataInPackage", "environmentName", r), d("getQuerydataInPackage", "packageName", a), d("getQuerydataInPackage", "connectionName", n);
204
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);
205
204
  let i;
206
205
  l && (i = l.baseOptions);
207
- const p = { method: "GET", ...i, ...o }, d = {}, u = {};
206
+ const p = { method: "GET", ...i, ...o }, m = {}, u = {};
208
207
  e !== void 0 && (u.sqlStatement = e), t !== void 0 && (u.options = t), v(c, u);
209
208
  let y = i && i.headers ? i.headers : {};
210
- return p.headers = { ...d, ...y, ...o.headers }, {
209
+ return p.headers = { ...m, ...y, ...o.headers }, {
211
210
  url: O(c),
212
211
  options: p
213
212
  };
@@ -223,14 +222,14 @@ const v = function(l, ...r) {
223
222
  * @throws {RequiredError}
224
223
  */
225
224
  getSqlsource: async (r, a, n, e = {}) => {
226
- m("getSqlsource", "environmentName", r), m("getSqlsource", "connectionName", a);
225
+ d("getSqlsource", "environmentName", r), d("getSqlsource", "connectionName", a);
227
226
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
228
227
  let s;
229
228
  l && (s = l.baseOptions);
230
229
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
231
230
  n !== void 0 && (p.sqlStatement = n), v(o, p);
232
- let d = s && s.headers ? s.headers : {};
233
- return c.headers = { ...i, ...d, ...e.headers }, {
231
+ let m = s && s.headers ? s.headers : {};
232
+ return c.headers = { ...i, ...m, ...e.headers }, {
234
233
  url: O(o),
235
234
  options: c
236
235
  };
@@ -247,12 +246,12 @@ const v = function(l, ...r) {
247
246
  * @throws {RequiredError}
248
247
  */
249
248
  getSqlsourceInPackage: async (r, a, n, e, t = {}) => {
250
- m("getSqlsourceInPackage", "environmentName", r), m("getSqlsourceInPackage", "packageName", a), m("getSqlsourceInPackage", "connectionName", n);
249
+ d("getSqlsourceInPackage", "environmentName", r), d("getSqlsourceInPackage", "packageName", a), d("getSqlsourceInPackage", "connectionName", n);
251
250
  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);
252
251
  let c;
253
252
  l && (c = l.baseOptions);
254
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
255
- e !== void 0 && (d.sqlStatement = e), v(s, d);
253
+ const i = { method: "GET", ...c, ...t }, p = {}, m = {};
254
+ e !== void 0 && (m.sqlStatement = e), v(s, m);
256
255
  let u = c && c.headers ? c.headers : {};
257
256
  return i.headers = { ...p, ...u, ...t.headers }, {
258
257
  url: O(s),
@@ -270,7 +269,7 @@ const v = function(l, ...r) {
270
269
  * @throws {RequiredError}
271
270
  */
272
271
  getTable: async (r, a, n, e, t = {}) => {
273
- m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", n), m("getTable", "tablePath", e);
272
+ d("getTable", "environmentName", r), d("getTable", "connectionName", a), d("getTable", "schemaName", n), d("getTable", "tablePath", e);
274
273
  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);
275
274
  let c;
276
275
  l && (c = l.baseOptions);
@@ -294,14 +293,14 @@ const v = function(l, ...r) {
294
293
  * @throws {RequiredError}
295
294
  */
296
295
  getTableInPackage: async (r, a, n, e, t, o = {}) => {
297
- m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", n), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", t);
296
+ d("getTableInPackage", "environmentName", r), d("getTableInPackage", "packageName", a), d("getTableInPackage", "connectionName", n), d("getTableInPackage", "schemaName", e), d("getTableInPackage", "tablePath", t);
298
297
  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);
299
298
  let i;
300
299
  l && (i = l.baseOptions);
301
- const p = { method: "GET", ...i, ...o }, d = {};
300
+ const p = { method: "GET", ...i, ...o }, m = {};
302
301
  v(c, {});
303
302
  let y = i && i.headers ? i.headers : {};
304
- return p.headers = { ...d, ...y, ...o.headers }, {
303
+ return p.headers = { ...m, ...y, ...o.headers }, {
305
304
  url: O(c),
306
305
  options: p
307
306
  };
@@ -317,14 +316,14 @@ const v = function(l, ...r) {
317
316
  * @throws {RequiredError}
318
317
  */
319
318
  getTemporarytable: async (r, a, n, e = {}) => {
320
- m("getTemporarytable", "environmentName", r), m("getTemporarytable", "connectionName", a);
319
+ d("getTemporarytable", "environmentName", r), d("getTemporarytable", "connectionName", a);
321
320
  const t = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
322
321
  let s;
323
322
  l && (s = l.baseOptions);
324
323
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
325
324
  n !== void 0 && (p.sqlStatement = n), v(o, p);
326
- let d = s && s.headers ? s.headers : {};
327
- return c.headers = { ...i, ...d, ...e.headers }, {
325
+ let m = s && s.headers ? s.headers : {};
326
+ return c.headers = { ...i, ...m, ...e.headers }, {
328
327
  url: O(o),
329
328
  options: c
330
329
  };
@@ -341,12 +340,12 @@ const v = function(l, ...r) {
341
340
  * @throws {RequiredError}
342
341
  */
343
342
  getTemporarytableInPackage: async (r, a, n, e, t = {}) => {
344
- m("getTemporarytableInPackage", "environmentName", r), m("getTemporarytableInPackage", "packageName", a), m("getTemporarytableInPackage", "connectionName", n);
343
+ d("getTemporarytableInPackage", "environmentName", r), d("getTemporarytableInPackage", "packageName", a), d("getTemporarytableInPackage", "connectionName", n);
345
344
  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);
346
345
  let c;
347
346
  l && (c = l.baseOptions);
348
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
349
- e !== void 0 && (d.sqlStatement = e), v(s, d);
347
+ const i = { method: "GET", ...c, ...t }, p = {}, m = {};
348
+ e !== void 0 && (m.sqlStatement = e), v(s, m);
350
349
  let u = c && c.headers ? c.headers : {};
351
350
  return i.headers = { ...p, ...u, ...t.headers }, {
352
351
  url: O(s),
@@ -361,7 +360,7 @@ const v = function(l, ...r) {
361
360
  * @throws {RequiredError}
362
361
  */
363
362
  listConnections: async (r, a = {}) => {
364
- m("listConnections", "environmentName", r);
363
+ d("listConnections", "environmentName", r);
365
364
  const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
366
365
  let t;
367
366
  l && (t = l.baseOptions);
@@ -382,7 +381,7 @@ const v = function(l, ...r) {
382
381
  * @throws {RequiredError}
383
382
  */
384
383
  listSchemas: async (r, a, n = {}) => {
385
- m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", a);
384
+ d("listSchemas", "environmentName", r), d("listSchemas", "connectionName", a);
386
385
  const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
387
386
  let o;
388
387
  l && (o = l.baseOptions);
@@ -404,14 +403,14 @@ const v = function(l, ...r) {
404
403
  * @throws {RequiredError}
405
404
  */
406
405
  listSchemasInPackage: async (r, a, n, e = {}) => {
407
- m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", n);
406
+ d("listSchemasInPackage", "environmentName", r), d("listSchemasInPackage", "packageName", a), d("listSchemasInPackage", "connectionName", n);
408
407
  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);
409
408
  let s;
410
409
  l && (s = l.baseOptions);
411
410
  const c = { method: "GET", ...s, ...e }, i = {};
412
411
  v(o, {});
413
- let d = s && s.headers ? s.headers : {};
414
- return c.headers = { ...i, ...d, ...e.headers }, {
412
+ let m = s && s.headers ? s.headers : {};
413
+ return c.headers = { ...i, ...m, ...e.headers }, {
415
414
  url: O(o),
416
415
  options: c
417
416
  };
@@ -427,12 +426,12 @@ const v = function(l, ...r) {
427
426
  * @throws {RequiredError}
428
427
  */
429
428
  listTables: async (r, a, n, e, t = {}) => {
430
- m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", n);
429
+ d("listTables", "environmentName", r), d("listTables", "connectionName", a), d("listTables", "schemaName", n);
431
430
  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);
432
431
  let c;
433
432
  l && (c = l.baseOptions);
434
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
435
- e && (d.tableNames = e), v(s, d);
433
+ const i = { method: "GET", ...c, ...t }, p = {}, m = {};
434
+ e && (m.tableNames = e), v(s, m);
436
435
  let u = c && c.headers ? c.headers : {};
437
436
  return i.headers = { ...p, ...u, ...t.headers }, {
438
437
  url: O(s),
@@ -451,14 +450,14 @@ const v = function(l, ...r) {
451
450
  * @throws {RequiredError}
452
451
  */
453
452
  listTablesInPackage: async (r, a, n, e, t, o = {}) => {
454
- m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", n), m("listTablesInPackage", "schemaName", e);
453
+ d("listTablesInPackage", "environmentName", r), d("listTablesInPackage", "packageName", a), d("listTablesInPackage", "connectionName", n), d("listTablesInPackage", "schemaName", e);
455
454
  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);
456
455
  let i;
457
456
  l && (i = l.baseOptions);
458
- const p = { method: "GET", ...i, ...o }, d = {}, u = {};
457
+ const p = { method: "GET", ...i, ...o }, m = {}, u = {};
459
458
  t && (u.tableNames = t), v(c, u);
460
459
  let y = i && i.headers ? i.headers : {};
461
- return p.headers = { ...d, ...y, ...o.headers }, {
460
+ return p.headers = { ...m, ...y, ...o.headers }, {
462
461
  url: O(c),
463
462
  options: p
464
463
  };
@@ -474,12 +473,12 @@ const v = function(l, ...r) {
474
473
  * @throws {RequiredError}
475
474
  */
476
475
  postQuerydata: async (r, a, n, e, t = {}) => {
477
- m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", n);
476
+ d("postQuerydata", "environmentName", r), d("postQuerydata", "connectionName", a), d("postQuerydata", "postQuerydataRequest", n);
478
477
  const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
479
478
  let c;
480
479
  l && (c = l.baseOptions);
481
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
482
- e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", v(s, d);
480
+ const i = { method: "POST", ...c, ...t }, p = {}, m = {};
481
+ e !== void 0 && (m.options = e), p["Content-Type"] = "application/json", v(s, m);
483
482
  let u = c && c.headers ? c.headers : {};
484
483
  return i.headers = { ...p, ...u, ...t.headers }, i.data = I(n, i, l), {
485
484
  url: O(s),
@@ -498,14 +497,14 @@ const v = function(l, ...r) {
498
497
  * @throws {RequiredError}
499
498
  */
500
499
  postQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
501
- m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", n), m("postQuerydataInPackage", "postQuerydataRequest", e);
500
+ d("postQuerydataInPackage", "environmentName", r), d("postQuerydataInPackage", "packageName", a), d("postQuerydataInPackage", "connectionName", n), d("postQuerydataInPackage", "postQuerydataRequest", e);
502
501
  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);
503
502
  let i;
504
503
  l && (i = l.baseOptions);
505
- const p = { method: "POST", ...i, ...o }, d = {}, u = {};
506
- t !== void 0 && (u.options = t), d["Content-Type"] = "application/json", v(c, u);
504
+ const p = { method: "POST", ...i, ...o }, m = {}, u = {};
505
+ t !== void 0 && (u.options = t), m["Content-Type"] = "application/json", v(c, u);
507
506
  let y = i && i.headers ? i.headers : {};
508
- return p.headers = { ...d, ...y, ...o.headers }, p.data = I(e, p, l), {
507
+ return p.headers = { ...m, ...y, ...o.headers }, p.data = I(e, p, l), {
509
508
  url: O(c),
510
509
  options: p
511
510
  };
@@ -520,14 +519,14 @@ const v = function(l, ...r) {
520
519
  * @throws {RequiredError}
521
520
  */
522
521
  postSqlsource: async (r, a, n, e = {}) => {
523
- m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", n);
522
+ d("postSqlsource", "environmentName", r), d("postSqlsource", "connectionName", a), d("postSqlsource", "postSqlsourceRequest", n);
524
523
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
525
524
  let s;
526
525
  l && (s = l.baseOptions);
527
526
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
528
527
  i["Content-Type"] = "application/json", v(o, p);
529
- let d = s && s.headers ? s.headers : {};
530
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
528
+ let m = s && s.headers ? s.headers : {};
529
+ return c.headers = { ...i, ...m, ...e.headers }, c.data = I(n, c, l), {
531
530
  url: O(o),
532
531
  options: c
533
532
  };
@@ -543,12 +542,12 @@ const v = function(l, ...r) {
543
542
  * @throws {RequiredError}
544
543
  */
545
544
  postSqlsourceInPackage: async (r, a, n, e, t = {}) => {
546
- m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", n), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
545
+ d("postSqlsourceInPackage", "environmentName", r), d("postSqlsourceInPackage", "packageName", a), d("postSqlsourceInPackage", "connectionName", n), d("postSqlsourceInPackage", "postSqlsourceRequest", e);
547
546
  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);
548
547
  let c;
549
548
  l && (c = l.baseOptions);
550
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
551
- p["Content-Type"] = "application/json", v(s, d);
549
+ const i = { method: "POST", ...c, ...t }, p = {}, m = {};
550
+ p["Content-Type"] = "application/json", v(s, m);
552
551
  let u = c && c.headers ? c.headers : {};
553
552
  return i.headers = { ...p, ...u, ...t.headers }, i.data = I(e, i, l), {
554
553
  url: O(s),
@@ -565,14 +564,14 @@ const v = function(l, ...r) {
565
564
  * @throws {RequiredError}
566
565
  */
567
566
  postTemporarytable: async (r, a, n, e = {}) => {
568
- m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", n);
567
+ d("postTemporarytable", "environmentName", r), d("postTemporarytable", "connectionName", a), d("postTemporarytable", "postSqlsourceRequest", n);
569
568
  const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
570
569
  let s;
571
570
  l && (s = l.baseOptions);
572
571
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
573
572
  i["Content-Type"] = "application/json", v(o, p);
574
- let d = s && s.headers ? s.headers : {};
575
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
573
+ let m = s && s.headers ? s.headers : {};
574
+ return c.headers = { ...i, ...m, ...e.headers }, c.data = I(n, c, l), {
576
575
  url: O(o),
577
576
  options: c
578
577
  };
@@ -588,12 +587,12 @@ const v = function(l, ...r) {
588
587
  * @throws {RequiredError}
589
588
  */
590
589
  postTemporarytableInPackage: async (r, a, n, e, t = {}) => {
591
- m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", n), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
590
+ d("postTemporarytableInPackage", "environmentName", r), d("postTemporarytableInPackage", "packageName", a), d("postTemporarytableInPackage", "connectionName", n), d("postTemporarytableInPackage", "postSqlsourceRequest", e);
592
591
  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);
593
592
  let c;
594
593
  l && (c = l.baseOptions);
595
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
596
- p["Content-Type"] = "application/json", v(s, d);
594
+ const i = { method: "POST", ...c, ...t }, p = {}, m = {};
595
+ p["Content-Type"] = "application/json", v(s, m);
597
596
  let u = c && c.headers ? c.headers : {};
598
597
  return i.headers = { ...p, ...u, ...t.headers }, i.data = I(e, i, l), {
599
598
  url: O(s),
@@ -610,14 +609,14 @@ const v = function(l, ...r) {
610
609
  * @throws {RequiredError}
611
610
  */
612
611
  updateConnection: async (r, a, n, e = {}) => {
613
- m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", n);
612
+ d("updateConnection", "environmentName", r), d("updateConnection", "connectionName", a), d("updateConnection", "updateConnectionRequest", n);
614
613
  const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
615
614
  let s;
616
615
  l && (s = l.baseOptions);
617
616
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
618
617
  i["Content-Type"] = "application/json", v(o, p);
619
- let d = s && s.headers ? s.headers : {};
620
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
618
+ let m = s && s.headers ? s.headers : {};
619
+ return c.headers = { ...i, ...m, ...e.headers }, c.data = I(n, c, l), {
621
620
  url: O(o),
622
621
  options: c
623
622
  };
@@ -676,7 +675,7 @@ const v = function(l, ...r) {
676
675
  */
677
676
  async getQuerydata(a, n, e, t, o) {
678
677
  const s = await r.getQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[c]?.url;
679
- return (p, d) => b(s, h, g, l)(p, i || d);
678
+ return (p, m) => b(s, h, g, l)(p, i || m);
680
679
  },
681
680
  /**
682
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.
@@ -692,7 +691,7 @@ const v = function(l, ...r) {
692
691
  */
693
692
  async getQuerydataInPackage(a, n, e, t, o, s) {
694
693
  const c = await r.getQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getQuerydataInPackage"]?.[i]?.url;
695
- return (d, u) => b(c, h, g, l)(d, p || u);
694
+ return (m, u) => b(c, h, g, l)(m, p || u);
696
695
  },
697
696
  /**
698
697
  * **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.
@@ -721,7 +720,7 @@ const v = function(l, ...r) {
721
720
  */
722
721
  async getSqlsourceInPackage(a, n, e, t, o) {
723
722
  const s = await r.getSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
724
- return (p, d) => b(s, h, g, l)(p, i || d);
723
+ return (p, m) => b(s, h, g, l)(p, i || m);
725
724
  },
726
725
  /**
727
726
  * 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.
@@ -735,7 +734,7 @@ const v = function(l, ...r) {
735
734
  */
736
735
  async getTable(a, n, e, t, o) {
737
736
  const s = await r.getTable(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
738
- return (p, d) => b(s, h, g, l)(p, i || d);
737
+ return (p, m) => b(s, h, g, l)(p, i || m);
739
738
  },
740
739
  /**
741
740
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -750,7 +749,7 @@ const v = function(l, ...r) {
750
749
  */
751
750
  async getTableInPackage(a, n, e, t, o, s) {
752
751
  const c = await r.getTableInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
753
- return (d, u) => b(c, h, g, l)(d, p || u);
752
+ return (m, u) => b(c, h, g, l)(m, p || u);
754
753
  },
755
754
  /**
756
755
  * **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.
@@ -779,7 +778,7 @@ const v = function(l, ...r) {
779
778
  */
780
779
  async getTemporarytableInPackage(a, n, e, t, o) {
781
780
  const s = await r.getTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
782
- return (p, d) => b(s, h, g, l)(p, i || d);
781
+ return (p, m) => b(s, h, g, l)(p, i || m);
783
782
  },
784
783
  /**
785
784
  * 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.
@@ -829,7 +828,7 @@ const v = function(l, ...r) {
829
828
  */
830
829
  async listTables(a, n, e, t, o) {
831
830
  const s = await r.listTables(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
832
- return (p, d) => b(s, h, g, l)(p, i || d);
831
+ return (p, m) => b(s, h, g, l)(p, i || m);
833
832
  },
834
833
  /**
835
834
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -844,7 +843,7 @@ const v = function(l, ...r) {
844
843
  */
845
844
  async listTablesInPackage(a, n, e, t, o, s) {
846
845
  const c = await r.listTablesInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
847
- return (d, u) => b(c, h, g, l)(d, p || u);
846
+ return (m, u) => b(c, h, g, l)(m, p || u);
848
847
  },
849
848
  /**
850
849
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
@@ -858,7 +857,7 @@ const v = function(l, ...r) {
858
857
  */
859
858
  async postQuerydata(a, n, e, t, o) {
860
859
  const s = await r.postQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[c]?.url;
861
- return (p, d) => b(s, h, g, l)(p, i || d);
860
+ return (p, m) => b(s, h, g, l)(p, i || m);
862
861
  },
863
862
  /**
864
863
  * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
@@ -873,7 +872,7 @@ const v = function(l, ...r) {
873
872
  */
874
873
  async postQuerydataInPackage(a, n, e, t, o, s) {
875
874
  const c = await r.postQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
876
- return (d, u) => b(c, h, g, l)(d, p || u);
875
+ return (m, u) => b(c, h, g, l)(m, p || u);
877
876
  },
878
877
  /**
879
878
  * 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.
@@ -900,7 +899,7 @@ const v = function(l, ...r) {
900
899
  */
901
900
  async postSqlsourceInPackage(a, n, e, t, o) {
902
901
  const s = await r.postSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
903
- return (p, d) => b(s, h, g, l)(p, i || d);
902
+ return (p, m) => b(s, h, g, l)(p, i || m);
904
903
  },
905
904
  /**
906
905
  * 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.
@@ -927,7 +926,7 @@ const v = function(l, ...r) {
927
926
  */
928
927
  async postTemporarytableInPackage(a, n, e, t, o) {
929
928
  const s = await r.postTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
930
- return (p, d) => b(s, h, g, l)(p, i || d);
929
+ return (p, m) => b(s, h, g, l)(p, i || m);
931
930
  },
932
931
  /**
933
932
  * Updates the configuration of an existing database connection.
@@ -1569,7 +1568,7 @@ const Y = function(l) {
1569
1568
  * @throws {RequiredError}
1570
1569
  */
1571
1570
  testConnectionConfiguration: async (r, a = {}) => {
1572
- m("testConnectionConfiguration", "connection", r);
1571
+ d("testConnectionConfiguration", "connection", r);
1573
1572
  const n = "/connections/test", e = new URL(n, V);
1574
1573
  let t;
1575
1574
  l && (t = l.baseOptions);
@@ -1637,14 +1636,14 @@ const X = function(l) {
1637
1636
  * @throws {RequiredError}
1638
1637
  */
1639
1638
  listDatabases: async (r, a, n, e = {}) => {
1640
- m("listDatabases", "environmentName", r), m("listDatabases", "packageName", a);
1639
+ d("listDatabases", "environmentName", r), d("listDatabases", "packageName", a);
1641
1640
  const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
1642
1641
  let s;
1643
1642
  l && (s = l.baseOptions);
1644
1643
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
1645
1644
  n !== void 0 && (p.versionId = n), v(o, p);
1646
- let d = s && s.headers ? s.headers : {};
1647
- return c.headers = { ...i, ...d, ...e.headers }, {
1645
+ let m = s && s.headers ? s.headers : {};
1646
+ return c.headers = { ...i, ...m, ...e.headers }, {
1648
1647
  url: O(o),
1649
1648
  options: c
1650
1649
  };
@@ -1709,7 +1708,7 @@ const ee = function(l) {
1709
1708
  * @throws {RequiredError}
1710
1709
  */
1711
1710
  createEnvironment: async (r, a = {}) => {
1712
- m("createEnvironment", "environment", r);
1711
+ d("createEnvironment", "environment", r);
1713
1712
  const n = "/environments", e = new URL(n, V);
1714
1713
  let t;
1715
1714
  l && (t = l.baseOptions);
@@ -1729,7 +1728,7 @@ const ee = function(l) {
1729
1728
  * @throws {RequiredError}
1730
1729
  */
1731
1730
  deleteEnvironment: async (r, a = {}) => {
1732
- m("deleteEnvironment", "environmentName", r);
1731
+ d("deleteEnvironment", "environmentName", r);
1733
1732
  const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
1734
1733
  let t;
1735
1734
  l && (t = l.baseOptions);
@@ -1750,7 +1749,7 @@ const ee = function(l) {
1750
1749
  * @throws {RequiredError}
1751
1750
  */
1752
1751
  getEnvironment: async (r, a, n = {}) => {
1753
- m("getEnvironment", "environmentName", r);
1752
+ d("getEnvironment", "environmentName", r);
1754
1753
  const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
1755
1754
  let o;
1756
1755
  l && (o = l.baseOptions);
@@ -1789,7 +1788,7 @@ const ee = function(l) {
1789
1788
  * @throws {RequiredError}
1790
1789
  */
1791
1790
  updateEnvironment: async (r, a, n = {}) => {
1792
- m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", a);
1791
+ d("updateEnvironment", "environmentName", r), d("updateEnvironment", "environment", a);
1793
1792
  const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
1794
1793
  let o;
1795
1794
  l && (o = l.baseOptions);
@@ -1987,7 +1986,7 @@ const te = function(l) {
1987
1986
  * @throws {RequiredError}
1988
1987
  */
1989
1988
  getManifest: async (r, a, n = {}) => {
1990
- m("getManifest", "environmentName", r), m("getManifest", "packageName", a);
1989
+ d("getManifest", "environmentName", r), d("getManifest", "packageName", a);
1991
1990
  const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
1992
1991
  let o;
1993
1992
  l && (o = l.baseOptions);
@@ -2009,14 +2008,14 @@ const te = function(l) {
2009
2008
  * @throws {RequiredError}
2010
2009
  */
2011
2010
  manifestAction: async (r, a, n, e = {}) => {
2012
- m("manifestAction", "environmentName", r), m("manifestAction", "packageName", a), m("manifestAction", "action", n);
2011
+ d("manifestAction", "environmentName", r), d("manifestAction", "packageName", a), d("manifestAction", "action", n);
2013
2012
  const t = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2014
2013
  let s;
2015
2014
  l && (s = l.baseOptions);
2016
2015
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2017
2016
  n !== void 0 && (p.action = n), v(o, p);
2018
- let d = s && s.headers ? s.headers : {};
2019
- return c.headers = { ...i, ...d, ...e.headers }, {
2017
+ let m = s && s.headers ? s.headers : {};
2018
+ return c.headers = { ...i, ...m, ...e.headers }, {
2020
2019
  url: O(o),
2021
2020
  options: c
2022
2021
  };
@@ -2120,14 +2119,14 @@ const je = {
2120
2119
  * @throws {RequiredError}
2121
2120
  */
2122
2121
  createMaterialization: async (r, a, n, e = {}) => {
2123
- m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", a);
2122
+ d("createMaterialization", "environmentName", r), d("createMaterialization", "packageName", a);
2124
2123
  const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2125
2124
  let s;
2126
2125
  l && (s = l.baseOptions);
2127
2126
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2128
2127
  i["Content-Type"] = "application/json", v(o, p);
2129
- let d = s && s.headers ? s.headers : {};
2130
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
2128
+ let m = s && s.headers ? s.headers : {};
2129
+ return c.headers = { ...i, ...m, ...e.headers }, c.data = I(n, c, l), {
2131
2130
  url: O(o),
2132
2131
  options: c
2133
2132
  };
@@ -2142,14 +2141,14 @@ const je = {
2142
2141
  * @throws {RequiredError}
2143
2142
  */
2144
2143
  deleteMaterialization: async (r, a, n, e = {}) => {
2145
- m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", n);
2144
+ d("deleteMaterialization", "environmentName", r), d("deleteMaterialization", "packageName", a), d("deleteMaterialization", "materializationId", n);
2146
2145
  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);
2147
2146
  let s;
2148
2147
  l && (s = l.baseOptions);
2149
2148
  const c = { method: "DELETE", ...s, ...e }, i = {};
2150
2149
  v(o, {});
2151
- let d = s && s.headers ? s.headers : {};
2152
- return c.headers = { ...i, ...d, ...e.headers }, {
2150
+ let m = s && s.headers ? s.headers : {};
2151
+ return c.headers = { ...i, ...m, ...e.headers }, {
2153
2152
  url: O(o),
2154
2153
  options: c
2155
2154
  };
@@ -2164,14 +2163,14 @@ const je = {
2164
2163
  * @throws {RequiredError}
2165
2164
  */
2166
2165
  getMaterialization: async (r, a, n, e = {}) => {
2167
- m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", n);
2166
+ d("getMaterialization", "environmentName", r), d("getMaterialization", "packageName", a), d("getMaterialization", "materializationId", n);
2168
2167
  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);
2169
2168
  let s;
2170
2169
  l && (s = l.baseOptions);
2171
2170
  const c = { method: "GET", ...s, ...e }, i = {};
2172
2171
  v(o, {});
2173
- let d = s && s.headers ? s.headers : {};
2174
- return c.headers = { ...i, ...d, ...e.headers }, {
2172
+ let m = s && s.headers ? s.headers : {};
2173
+ return c.headers = { ...i, ...m, ...e.headers }, {
2175
2174
  url: O(o),
2176
2175
  options: c
2177
2176
  };
@@ -2187,12 +2186,12 @@ const je = {
2187
2186
  * @throws {RequiredError}
2188
2187
  */
2189
2188
  listMaterializations: async (r, a, n, e, t = {}) => {
2190
- m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", a);
2189
+ d("listMaterializations", "environmentName", r), d("listMaterializations", "packageName", a);
2191
2190
  const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2192
2191
  let c;
2193
2192
  l && (c = l.baseOptions);
2194
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2195
- n !== void 0 && (d.limit = n), e !== void 0 && (d.offset = e), v(s, d);
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);
2196
2195
  let u = c && c.headers ? c.headers : {};
2197
2196
  return i.headers = { ...p, ...u, ...t.headers }, {
2198
2197
  url: O(s),
@@ -2210,12 +2209,12 @@ const je = {
2210
2209
  * @throws {RequiredError}
2211
2210
  */
2212
2211
  materializationAction: async (r, a, n, e, t = {}) => {
2213
- m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", n), m("materializationAction", "action", e);
2212
+ d("materializationAction", "environmentName", r), d("materializationAction", "packageName", a), d("materializationAction", "materializationId", n), d("materializationAction", "action", e);
2214
2213
  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);
2215
2214
  let c;
2216
2215
  l && (c = l.baseOptions);
2217
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2218
- e !== void 0 && (d.action = e), v(s, d);
2216
+ const i = { method: "POST", ...c, ...t }, p = {}, m = {};
2217
+ e !== void 0 && (m.action = e), v(s, m);
2219
2218
  let u = c && c.headers ? c.headers : {};
2220
2219
  return i.headers = { ...p, ...u, ...t.headers }, {
2221
2220
  url: O(s),
@@ -2277,7 +2276,7 @@ const je = {
2277
2276
  */
2278
2277
  async listMaterializations(a, n, e, t, o) {
2279
2278
  const s = await r.listMaterializations(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
2280
- return (p, d) => b(s, h, g, l)(p, i || d);
2279
+ return (p, m) => b(s, h, g, l)(p, i || m);
2281
2280
  },
2282
2281
  /**
2283
2282
  * 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.
@@ -2291,7 +2290,7 @@ const je = {
2291
2290
  */
2292
2291
  async materializationAction(a, n, e, t, o) {
2293
2292
  const s = await r.materializationAction(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
2294
- return (p, d) => b(s, h, g, l)(p, i || d);
2293
+ return (p, m) => b(s, h, g, l)(p, i || m);
2295
2294
  }
2296
2295
  };
2297
2296
  }, Le = function(l, r, a) {
@@ -2446,12 +2445,12 @@ const fe = {
2446
2445
  * @throws {RequiredError}
2447
2446
  */
2448
2447
  compileModelSource: async (r, a, n, e, t = {}) => {
2449
- m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", n), m("compileModelSource", "compileRequest", e);
2448
+ d("compileModelSource", "environmentName", r), d("compileModelSource", "packageName", a), d("compileModelSource", "path", n), d("compileModelSource", "compileRequest", e);
2450
2449
  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);
2451
2450
  let c;
2452
2451
  l && (c = l.baseOptions);
2453
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2454
- p["Content-Type"] = "application/json", v(s, d);
2452
+ const i = { method: "POST", ...c, ...t }, p = {}, m = {};
2453
+ p["Content-Type"] = "application/json", v(s, m);
2455
2454
  let u = c && c.headers ? c.headers : {};
2456
2455
  return i.headers = { ...p, ...u, ...t.headers }, i.data = I(e, i, l), {
2457
2456
  url: O(s),
@@ -2469,12 +2468,12 @@ const fe = {
2469
2468
  * @throws {RequiredError}
2470
2469
  */
2471
2470
  executeQueryModel: async (r, a, n, e, t = {}) => {
2472
- m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", n), m("executeQueryModel", "queryRequest", e);
2471
+ d("executeQueryModel", "environmentName", r), d("executeQueryModel", "packageName", a), d("executeQueryModel", "path", n), d("executeQueryModel", "queryRequest", e);
2473
2472
  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);
2474
2473
  let c;
2475
2474
  l && (c = l.baseOptions);
2476
- const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2477
- p["Content-Type"] = "application/json", v(s, d);
2475
+ const i = { method: "POST", ...c, ...t }, p = {}, m = {};
2476
+ p["Content-Type"] = "application/json", v(s, m);
2478
2477
  let u = c && c.headers ? c.headers : {};
2479
2478
  return i.headers = { ...p, ...u, ...t.headers }, i.data = I(e, i, l), {
2480
2479
  url: O(s),
@@ -2492,12 +2491,12 @@ const fe = {
2492
2491
  * @throws {RequiredError}
2493
2492
  */
2494
2493
  getModel: async (r, a, n, e, t = {}) => {
2495
- m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", n);
2494
+ d("getModel", "environmentName", r), d("getModel", "packageName", a), d("getModel", "path", n);
2496
2495
  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);
2497
2496
  let c;
2498
2497
  l && (c = l.baseOptions);
2499
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2500
- e !== void 0 && (d.versionId = e), v(s, d);
2498
+ const i = { method: "GET", ...c, ...t }, p = {}, m = {};
2499
+ e !== void 0 && (m.versionId = e), v(s, m);
2501
2500
  let u = c && c.headers ? c.headers : {};
2502
2501
  return i.headers = { ...p, ...u, ...t.headers }, {
2503
2502
  url: O(s),
@@ -2514,14 +2513,14 @@ const fe = {
2514
2513
  * @throws {RequiredError}
2515
2514
  */
2516
2515
  listModels: async (r, a, n, e = {}) => {
2517
- m("listModels", "environmentName", r), m("listModels", "packageName", a);
2516
+ d("listModels", "environmentName", r), d("listModels", "packageName", a);
2518
2517
  const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2519
2518
  let s;
2520
2519
  l && (s = l.baseOptions);
2521
2520
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2522
2521
  n !== void 0 && (p.versionId = n), v(o, p);
2523
- let d = s && s.headers ? s.headers : {};
2524
- return c.headers = { ...i, ...d, ...e.headers }, {
2522
+ let m = s && s.headers ? s.headers : {};
2523
+ return c.headers = { ...i, ...m, ...e.headers }, {
2525
2524
  url: O(o),
2526
2525
  options: c
2527
2526
  };
@@ -2542,7 +2541,7 @@ const fe = {
2542
2541
  */
2543
2542
  async compileModelSource(a, n, e, t, o) {
2544
2543
  const s = await r.compileModelSource(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2545
- return (p, d) => b(s, h, g, l)(p, i || d);
2544
+ return (p, m) => b(s, h, g, l)(p, i || m);
2546
2545
  },
2547
2546
  /**
2548
2547
  * 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.
@@ -2556,7 +2555,7 @@ const fe = {
2556
2555
  */
2557
2556
  async executeQueryModel(a, n, e, t, o) {
2558
2557
  const s = await r.executeQueryModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2559
- return (p, d) => b(s, h, g, l)(p, i || d);
2558
+ return (p, m) => b(s, h, g, l)(p, i || m);
2560
2559
  },
2561
2560
  /**
2562
2561
  * 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.
@@ -2570,7 +2569,7 @@ const fe = {
2570
2569
  */
2571
2570
  async getModel(a, n, e, t, o) {
2572
2571
  const s = await r.getModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2573
- return (p, d) => b(s, h, g, l)(p, i || d);
2572
+ return (p, m) => b(s, h, g, l)(p, i || m);
2574
2573
  },
2575
2574
  /**
2576
2575
  * 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.
@@ -2715,13 +2714,13 @@ const se = function(l) {
2715
2714
  * @throws {RequiredError}
2716
2715
  */
2717
2716
  executeNotebookCell: async (r, a, n, e, t, o, s, c = {}) => {
2718
- m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", n), m("executeNotebookCell", "cellIndex", e);
2717
+ d("executeNotebookCell", "environmentName", r), d("executeNotebookCell", "packageName", a), d("executeNotebookCell", "path", n), d("executeNotebookCell", "cellIndex", e);
2719
2718
  const i = "/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))), p = new URL(i, V);
2720
- let d;
2721
- l && (d = l.baseOptions);
2722
- const u = { method: "GET", ...d, ...c }, y = {}, C = {};
2719
+ let m;
2720
+ l && (m = l.baseOptions);
2721
+ const u = { method: "GET", ...m, ...c }, y = {}, C = {};
2723
2722
  t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), v(p, C);
2724
- let M = d && d.headers ? d.headers : {};
2723
+ let M = m && m.headers ? m.headers : {};
2725
2724
  return u.headers = { ...y, ...M, ...c.headers }, {
2726
2725
  url: O(p),
2727
2726
  options: u
@@ -2738,12 +2737,12 @@ const se = function(l) {
2738
2737
  * @throws {RequiredError}
2739
2738
  */
2740
2739
  getNotebook: async (r, a, n, e, t = {}) => {
2741
- m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", n);
2740
+ d("getNotebook", "environmentName", r), d("getNotebook", "packageName", a), d("getNotebook", "path", n);
2742
2741
  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
2742
  let c;
2744
2743
  l && (c = l.baseOptions);
2745
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2746
- e !== void 0 && (d.versionId = e), v(s, d);
2744
+ const i = { method: "GET", ...c, ...t }, p = {}, m = {};
2745
+ e !== void 0 && (m.versionId = e), v(s, m);
2747
2746
  let u = c && c.headers ? c.headers : {};
2748
2747
  return i.headers = { ...p, ...u, ...t.headers }, {
2749
2748
  url: O(s),
@@ -2760,14 +2759,14 @@ const se = function(l) {
2760
2759
  * @throws {RequiredError}
2761
2760
  */
2762
2761
  listNotebooks: async (r, a, n, e = {}) => {
2763
- m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", a);
2762
+ d("listNotebooks", "environmentName", r), d("listNotebooks", "packageName", a);
2764
2763
  const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
2765
2764
  let s;
2766
2765
  l && (s = l.baseOptions);
2767
2766
  const c = { method: "GET", ...s, ...e }, i = {}, p = {};
2768
2767
  n !== void 0 && (p.versionId = n), v(o, p);
2769
- let d = s && s.headers ? s.headers : {};
2770
- return c.headers = { ...i, ...d, ...e.headers }, {
2768
+ let m = s && s.headers ? s.headers : {};
2769
+ return c.headers = { ...i, ...m, ...e.headers }, {
2771
2770
  url: O(o),
2772
2771
  options: c
2773
2772
  };
@@ -2790,7 +2789,7 @@ const se = function(l) {
2790
2789
  * @throws {RequiredError}
2791
2790
  */
2792
2791
  async executeNotebookCell(a, n, e, t, o, s, c, i) {
2793
- const p = await r.executeNotebookCell(a, n, e, t, o, s, c, i), d = l?.serverIndex ?? 0, u = P["NotebooksApi.executeNotebookCell"]?.[d]?.url;
2792
+ const p = await r.executeNotebookCell(a, n, e, t, o, s, c, i), m = l?.serverIndex ?? 0, u = P["NotebooksApi.executeNotebookCell"]?.[m]?.url;
2794
2793
  return (y, C) => b(p, h, g, l)(y, u || C);
2795
2794
  },
2796
2795
  /**
@@ -2805,7 +2804,7 @@ const se = function(l) {
2805
2804
  */
2806
2805
  async getNotebook(a, n, e, t, o) {
2807
2806
  const s = await r.getNotebook(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2808
- return (p, d) => b(s, h, g, l)(p, i || d);
2807
+ return (p, m) => b(s, h, g, l)(p, i || m);
2809
2808
  },
2810
2809
  /**
2811
2810
  * 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.
@@ -2837,8 +2836,8 @@ const se = function(l) {
2837
2836
  * @param {*} [options] Override http request option.
2838
2837
  * @throws {RequiredError}
2839
2838
  */
2840
- executeNotebookCell(e, t, o, s, c, i, p, d) {
2841
- return n.executeNotebookCell(e, t, o, s, c, i, p, d).then((u) => u(a, r));
2839
+ executeNotebookCell(e, t, o, s, c, i, p, m) {
2840
+ return n.executeNotebookCell(e, t, o, s, c, i, p, m).then((u) => u(a, r));
2842
2841
  },
2843
2842
  /**
2844
2843
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2928,14 +2927,14 @@ const Ge = {
2928
2927
  * @throws {RequiredError}
2929
2928
  */
2930
2929
  createPackage: async (r, a, n, e = {}) => {
2931
- m("createPackage", "environmentName", r), m("createPackage", "_package", a);
2930
+ d("createPackage", "environmentName", r), d("createPackage", "_package", a);
2932
2931
  const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(t, V);
2933
2932
  let s;
2934
2933
  l && (s = l.baseOptions);
2935
2934
  const c = { method: "POST", ...s, ...e }, i = {}, p = {};
2936
2935
  n !== void 0 && (p.autoLoadManifest = n), i["Content-Type"] = "application/json", v(o, p);
2937
- let d = s && s.headers ? s.headers : {};
2938
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(a, c, l), {
2936
+ let m = s && s.headers ? s.headers : {};
2937
+ return c.headers = { ...i, ...m, ...e.headers }, c.data = I(a, c, l), {
2939
2938
  url: O(o),
2940
2939
  options: c
2941
2940
  };
@@ -2949,7 +2948,7 @@ const Ge = {
2949
2948
  * @throws {RequiredError}
2950
2949
  */
2951
2950
  deletePackage: async (r, a, n = {}) => {
2952
- m("deletePackage", "environmentName", r), m("deletePackage", "packageName", a);
2951
+ d("deletePackage", "environmentName", r), d("deletePackage", "packageName", a);
2953
2952
  const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
2954
2953
  let o;
2955
2954
  l && (o = l.baseOptions);
@@ -2972,12 +2971,12 @@ const Ge = {
2972
2971
  * @throws {RequiredError}
2973
2972
  */
2974
2973
  getPackage: async (r, a, n, e, t = {}) => {
2975
- m("getPackage", "environmentName", r), m("getPackage", "packageName", a);
2974
+ d("getPackage", "environmentName", r), d("getPackage", "packageName", a);
2976
2975
  const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
2977
2976
  let c;
2978
2977
  l && (c = l.baseOptions);
2979
- const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2980
- n !== void 0 && (d.versionId = n), e !== void 0 && (d.reload = e), v(s, d);
2978
+ const i = { method: "GET", ...c, ...t }, p = {}, m = {};
2979
+ n !== void 0 && (m.versionId = n), e !== void 0 && (m.reload = e), v(s, m);
2981
2980
  let u = c && c.headers ? c.headers : {};
2982
2981
  return i.headers = { ...p, ...u, ...t.headers }, {
2983
2982
  url: O(s),
@@ -2992,7 +2991,7 @@ const Ge = {
2992
2991
  * @throws {RequiredError}
2993
2992
  */
2994
2993
  listPackages: async (r, a = {}) => {
2995
- m("listPackages", "environmentName", r);
2994
+ d("listPackages", "environmentName", r);
2996
2995
  const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
2997
2996
  let t;
2998
2997
  l && (t = l.baseOptions);
@@ -3014,14 +3013,14 @@ const Ge = {
3014
3013
  * @throws {RequiredError}
3015
3014
  */
3016
3015
  updatePackage: async (r, a, n, e = {}) => {
3017
- m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", n);
3016
+ d("updatePackage", "environmentName", r), d("updatePackage", "packageName", a), d("updatePackage", "_package", n);
3018
3017
  const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
3019
3018
  let s;
3020
3019
  l && (s = l.baseOptions);
3021
3020
  const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
3022
3021
  i["Content-Type"] = "application/json", v(o, p);
3023
- let d = s && s.headers ? s.headers : {};
3024
- return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
3022
+ let m = s && s.headers ? s.headers : {};
3023
+ return c.headers = { ...i, ...m, ...e.headers }, c.data = I(n, c, l), {
3025
3024
  url: O(o),
3026
3025
  options: c
3027
3026
  };
@@ -3067,7 +3066,7 @@ const Ge = {
3067
3066
  */
3068
3067
  async getPackage(a, n, e, t, o) {
3069
3068
  const s = await r.getPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
3070
- return (p, d) => b(s, h, g, l)(p, i || d);
3069
+ return (p, m) => b(s, h, g, l)(p, i || m);
3071
3070
  },
3072
3071
  /**
3073
3072
  * 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.
@@ -3271,7 +3270,7 @@ const pe = function(l) {
3271
3270
  }
3272
3271
  };
3273
3272
  };
3274
- class de extends k {
3273
+ class me extends k {
3275
3274
  /**
3276
3275
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
3277
3276
  * @summary Get server status and health information
@@ -3283,7 +3282,7 @@ class de extends k {
3283
3282
  return z(this.configuration).getStatus(r).then((a) => a(this.axios, this.basePath));
3284
3283
  }
3285
3284
  }
3286
- const me = function(l) {
3285
+ const de = function(l) {
3287
3286
  return {
3288
3287
  /**
3289
3288
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3311,7 +3310,7 @@ const me = function(l) {
3311
3310
  * @throws {RequiredError}
3312
3311
  */
3313
3312
  startWatching: async (r, a = {}) => {
3314
- m("startWatching", "startWatchRequest", r);
3313
+ d("startWatching", "startWatchRequest", r);
3315
3314
  const n = "/watch-mode/start", e = new URL(n, V);
3316
3315
  let t;
3317
3316
  l && (t = l.baseOptions);
@@ -3343,7 +3342,7 @@ const me = function(l) {
3343
3342
  }
3344
3343
  };
3345
3344
  }, w = function(l) {
3346
- const r = me(l);
3345
+ const r = de(l);
3347
3346
  return {
3348
3347
  /**
3349
3348
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3549,7 +3548,7 @@ const j = D(void 0), Pe = (l, r) => {
3549
3548
  const e = new ue({ basePath: a });
3550
3549
  return {
3551
3550
  models: new oe(e, a, n),
3552
- publisher: new de(e, a, n),
3551
+ publisher: new me(e, a, n),
3553
3552
  environments: new ae(e, a, n),
3554
3553
  packages: new ie(e, a, n),
3555
3554
  notebooks: new ce(e, a, n),
@@ -3568,20 +3567,20 @@ const j = D(void 0), Pe = (l, r) => {
3568
3567
  [a, r]
3569
3568
  ), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = $(n), [c, i] = $(!0);
3570
3569
  G(() => {
3571
- let d = !0;
3570
+ let m = !0;
3572
3571
  return (async () => {
3573
3572
  try {
3574
3573
  const y = await e.publisher.getStatus();
3575
- if (d) {
3574
+ if (m) {
3576
3575
  const M = y.data?.frozenConfig;
3577
3576
  let U;
3578
3577
  M ? U = !1 : n === void 0 ? U = !0 : U = n, s(U), i(!1);
3579
3578
  }
3580
3579
  } catch (y) {
3581
- console.error("Failed to fetch publisher status:", y), d && (s(n), i(!1));
3580
+ console.error("Failed to fetch publisher status:", y), m && (s(n), i(!1));
3582
3581
  }
3583
3582
  })(), () => {
3584
- d = !1;
3583
+ m = !1;
3585
3584
  };
3586
3585
  }, [e, n]);
3587
3586
  const p = {
@@ -3632,8 +3631,8 @@ export {
3632
3631
  pe as a1,
3633
3632
  z as a2,
3634
3633
  Je as a3,
3635
- de as a4,
3636
- me as a5,
3634
+ me as a4,
3635
+ de as a5,
3637
3636
  w as a6,
3638
3637
  Ke as a7,
3639
3638
  he as a8,