@malloy-publisher/sdk 0.0.207 → 0.0.209

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(e), this.field = r, this.name = "RequiredError";
15
15
  }
16
16
  }
17
- const V = {}, g = "https://example.com", d = function(l, r, e) {
17
+ const P = {}, V = "https://example.com", d = function(l, r, e) {
18
18
  if (e == null)
19
19
  throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
20
20
  };
@@ -23,15 +23,15 @@ function M(l, r, e = "") {
23
23
  (t) => M(l, r[t], `${e}${e !== "" ? "." : ""}${t}`)
24
24
  ) : l.has(e) ? l.append(e, r) : l.set(e, r));
25
25
  }
26
- const v = function(l, ...r) {
26
+ const g = function(l, ...r) {
27
27
  const e = new URLSearchParams(l.search);
28
28
  M(e, r), l.search = e.toString();
29
29
  }, k = function(l, r, e) {
30
30
  const t = typeof l != "string";
31
31
  return (t && e && e.isJsonMime ? e.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
- }, O = function(l) {
32
+ }, v = function(l) {
33
33
  return l.pathname + l.search + l.hash;
34
- }, b = function(l, r, e, t) {
34
+ }, O = function(l, r, e, t) {
35
35
  return (a = r, n = e) => {
36
36
  const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
37
37
  return a.request(o);
@@ -62,7 +62,8 @@ const v = function(l, ...r) {
62
62
  Mysql: "mysql",
63
63
  Duckdb: "duckdb",
64
64
  Motherduck: "motherduck",
65
- Ducklake: "ducklake"
65
+ Ducklake: "ducklake",
66
+ Publisher: "publisher"
66
67
  }, Ne = {
67
68
  Ok: "ok",
68
69
  Failed: "failed"
@@ -82,7 +83,6 @@ const v = function(l, ...r) {
82
83
  Error: "error"
83
84
  }, we = {
84
85
  Pending: "PENDING",
85
- BuildPlanReady: "BUILD_PLAN_READY",
86
86
  ManifestRowsReady: "MANIFEST_ROWS_READY",
87
87
  ManifestFileReady: "MANIFEST_FILE_READY",
88
88
  Failed: "FAILED",
@@ -121,14 +121,14 @@ const v = function(l, ...r) {
121
121
  */
122
122
  createConnection: async (r, e, t, a = {}) => {
123
123
  d("createConnection", "environmentName", r), d("createConnection", "connectionName", e), d("createConnection", "connection", t);
124
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
124
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
125
125
  let s;
126
126
  l && (s = l.baseOptions);
127
127
  const c = { method: "POST", ...s, ...a }, i = {}, p = {};
128
- i["Content-Type"] = "application/json", v(o, p);
128
+ i["Content-Type"] = "application/json", g(o, p);
129
129
  let m = s && s.headers ? s.headers : {};
130
130
  return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
131
- url: O(o),
131
+ url: v(o),
132
132
  options: c
133
133
  };
134
134
  },
@@ -142,14 +142,14 @@ const v = function(l, ...r) {
142
142
  */
143
143
  deleteConnection: async (r, e, t = {}) => {
144
144
  d("deleteConnection", "environmentName", r), d("deleteConnection", "connectionName", e);
145
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, g);
145
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
146
146
  let o;
147
147
  l && (o = l.baseOptions);
148
148
  const s = { method: "DELETE", ...o, ...t }, c = {};
149
- v(n, {});
149
+ g(n, {});
150
150
  let p = o && o.headers ? o.headers : {};
151
151
  return s.headers = { ...c, ...p, ...t.headers }, {
152
- url: O(n),
152
+ url: v(n),
153
153
  options: s
154
154
  };
155
155
  },
@@ -163,14 +163,14 @@ const v = function(l, ...r) {
163
163
  */
164
164
  getConnection: async (r, e, t = {}) => {
165
165
  d("getConnection", "environmentName", r), d("getConnection", "connectionName", e);
166
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, g);
166
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
167
167
  let o;
168
168
  l && (o = l.baseOptions);
169
169
  const s = { method: "GET", ...o, ...t }, c = {};
170
- v(n, {});
170
+ g(n, {});
171
171
  let p = o && o.headers ? o.headers : {};
172
172
  return s.headers = { ...c, ...p, ...t.headers }, {
173
- url: O(n),
173
+ url: v(n),
174
174
  options: s
175
175
  };
176
176
  },
@@ -186,14 +186,14 @@ const v = function(l, ...r) {
186
186
  */
187
187
  getTable: async (r, e, t, a, n = {}) => {
188
188
  d("getTable", "environmentName", r), d("getTable", "connectionName", e), d("getTable", "schemaName", t), d("getTable", "tablePath", a);
189
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, g);
189
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, V);
190
190
  let c;
191
191
  l && (c = l.baseOptions);
192
192
  const i = { method: "GET", ...c, ...n }, p = {};
193
- v(s, {});
194
- let P = c && c.headers ? c.headers : {};
195
- return i.headers = { ...p, ...P, ...n.headers }, {
196
- url: O(s),
193
+ g(s, {});
194
+ let b = c && c.headers ? c.headers : {};
195
+ return i.headers = { ...p, ...b, ...n.headers }, {
196
+ url: v(s),
197
197
  options: i
198
198
  };
199
199
  },
@@ -210,14 +210,14 @@ const v = function(l, ...r) {
210
210
  */
211
211
  getTableInPackage: async (r, e, t, a, n, o = {}) => {
212
212
  d("getTableInPackage", "environmentName", r), d("getTableInPackage", "packageName", e), d("getTableInPackage", "connectionName", t), d("getTableInPackage", "schemaName", a), d("getTableInPackage", "tablePath", n);
213
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, g);
213
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, V);
214
214
  let i;
215
215
  l && (i = l.baseOptions);
216
216
  const p = { method: "GET", ...i, ...o }, m = {};
217
- v(c, {});
217
+ g(c, {});
218
218
  let I = i && i.headers ? i.headers : {};
219
219
  return p.headers = { ...m, ...I, ...o.headers }, {
220
- url: O(c),
220
+ url: v(c),
221
221
  options: p
222
222
  };
223
223
  },
@@ -230,14 +230,14 @@ const v = function(l, ...r) {
230
230
  */
231
231
  listConnections: async (r, e = {}) => {
232
232
  d("listConnections", "environmentName", r);
233
- const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, g);
233
+ const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
234
234
  let n;
235
235
  l && (n = l.baseOptions);
236
236
  const o = { method: "GET", ...n, ...e }, s = {};
237
- v(a, {});
237
+ g(a, {});
238
238
  let i = n && n.headers ? n.headers : {};
239
239
  return o.headers = { ...s, ...i, ...e.headers }, {
240
- url: O(a),
240
+ url: v(a),
241
241
  options: o
242
242
  };
243
243
  },
@@ -251,14 +251,14 @@ const v = function(l, ...r) {
251
251
  */
252
252
  listSchemas: async (r, e, t = {}) => {
253
253
  d("listSchemas", "environmentName", r), d("listSchemas", "connectionName", e);
254
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, g);
254
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
255
255
  let o;
256
256
  l && (o = l.baseOptions);
257
257
  const s = { method: "GET", ...o, ...t }, c = {};
258
- v(n, {});
258
+ g(n, {});
259
259
  let p = o && o.headers ? o.headers : {};
260
260
  return s.headers = { ...c, ...p, ...t.headers }, {
261
- url: O(n),
261
+ url: v(n),
262
262
  options: s
263
263
  };
264
264
  },
@@ -273,14 +273,14 @@ const v = function(l, ...r) {
273
273
  */
274
274
  listSchemasInPackage: async (r, e, t, a = {}) => {
275
275
  d("listSchemasInPackage", "environmentName", r), d("listSchemasInPackage", "packageName", e), d("listSchemasInPackage", "connectionName", t);
276
- const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(n, g);
276
+ const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(n, V);
277
277
  let s;
278
278
  l && (s = l.baseOptions);
279
279
  const c = { method: "GET", ...s, ...a }, i = {};
280
- v(o, {});
280
+ g(o, {});
281
281
  let m = s && s.headers ? s.headers : {};
282
282
  return c.headers = { ...i, ...m, ...a.headers }, {
283
- url: O(o),
283
+ url: v(o),
284
284
  options: c
285
285
  };
286
286
  },
@@ -296,14 +296,14 @@ const v = function(l, ...r) {
296
296
  */
297
297
  listTables: async (r, e, t, a, n = {}) => {
298
298
  d("listTables", "environmentName", r), d("listTables", "connectionName", e), d("listTables", "schemaName", t);
299
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, g);
299
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, V);
300
300
  let c;
301
301
  l && (c = l.baseOptions);
302
302
  const i = { method: "GET", ...c, ...n }, p = {}, m = {};
303
- a && (m.tableNames = a), v(s, m);
304
- let P = c && c.headers ? c.headers : {};
305
- return i.headers = { ...p, ...P, ...n.headers }, {
306
- url: O(s),
303
+ a && (m.tableNames = a), g(s, m);
304
+ let b = c && c.headers ? c.headers : {};
305
+ return i.headers = { ...p, ...b, ...n.headers }, {
306
+ url: v(s),
307
307
  options: i
308
308
  };
309
309
  },
@@ -320,14 +320,14 @@ const v = function(l, ...r) {
320
320
  */
321
321
  listTablesInPackage: async (r, e, t, a, n, o = {}) => {
322
322
  d("listTablesInPackage", "environmentName", r), d("listTablesInPackage", "packageName", e), d("listTablesInPackage", "connectionName", t), d("listTablesInPackage", "schemaName", a);
323
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, g);
323
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, V);
324
324
  let i;
325
325
  l && (i = l.baseOptions);
326
- const p = { method: "GET", ...i, ...o }, m = {}, P = {};
327
- n && (P.tableNames = n), v(c, P);
326
+ const p = { method: "GET", ...i, ...o }, m = {}, b = {};
327
+ n && (b.tableNames = n), g(c, b);
328
328
  let I = i && i.headers ? i.headers : {};
329
329
  return p.headers = { ...m, ...I, ...o.headers }, {
330
- url: O(c),
330
+ url: v(c),
331
331
  options: p
332
332
  };
333
333
  },
@@ -342,14 +342,14 @@ const v = function(l, ...r) {
342
342
  */
343
343
  postQuerydata: async (r, e, t, a = {}) => {
344
344
  d("postQuerydata", "environmentName", r), d("postQuerydata", "connectionName", e), d("postQuerydata", "postQuerydataRequest", t);
345
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
345
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
346
346
  let s;
347
347
  l && (s = l.baseOptions);
348
348
  const c = { method: "POST", ...s, ...a }, i = {}, p = {};
349
- i["Content-Type"] = "application/json", v(o, p);
349
+ i["Content-Type"] = "application/json", g(o, p);
350
350
  let m = s && s.headers ? s.headers : {};
351
351
  return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
352
- url: O(o),
352
+ url: v(o),
353
353
  options: c
354
354
  };
355
355
  },
@@ -365,14 +365,14 @@ const v = function(l, ...r) {
365
365
  */
366
366
  postQuerydataInPackage: async (r, e, t, a, n = {}) => {
367
367
  d("postQuerydataInPackage", "environmentName", r), d("postQuerydataInPackage", "packageName", e), d("postQuerydataInPackage", "connectionName", t), d("postQuerydataInPackage", "postQuerydataRequest", a);
368
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
368
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
369
369
  let c;
370
370
  l && (c = l.baseOptions);
371
371
  const i = { method: "POST", ...c, ...n }, p = {}, m = {};
372
- p["Content-Type"] = "application/json", v(s, m);
373
- let P = c && c.headers ? c.headers : {};
374
- return i.headers = { ...p, ...P, ...n.headers }, i.data = k(a, i, l), {
375
- url: O(s),
372
+ p["Content-Type"] = "application/json", g(s, m);
373
+ let b = c && c.headers ? c.headers : {};
374
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
375
+ url: v(s),
376
376
  options: i
377
377
  };
378
378
  },
@@ -387,14 +387,14 @@ const v = function(l, ...r) {
387
387
  */
388
388
  postSqlsource: async (r, e, t, a = {}) => {
389
389
  d("postSqlsource", "environmentName", r), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", t);
390
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
390
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
391
391
  let s;
392
392
  l && (s = l.baseOptions);
393
393
  const c = { method: "POST", ...s, ...a }, i = {}, p = {};
394
- i["Content-Type"] = "application/json", v(o, p);
394
+ i["Content-Type"] = "application/json", g(o, p);
395
395
  let m = s && s.headers ? s.headers : {};
396
396
  return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
397
- url: O(o),
397
+ url: v(o),
398
398
  options: c
399
399
  };
400
400
  },
@@ -410,14 +410,14 @@ const v = function(l, ...r) {
410
410
  */
411
411
  postSqlsourceInPackage: async (r, e, t, a, n = {}) => {
412
412
  d("postSqlsourceInPackage", "environmentName", r), d("postSqlsourceInPackage", "packageName", e), d("postSqlsourceInPackage", "connectionName", t), d("postSqlsourceInPackage", "postSqlsourceRequest", a);
413
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
413
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
414
414
  let c;
415
415
  l && (c = l.baseOptions);
416
416
  const i = { method: "POST", ...c, ...n }, p = {}, m = {};
417
- p["Content-Type"] = "application/json", v(s, m);
418
- let P = c && c.headers ? c.headers : {};
419
- return i.headers = { ...p, ...P, ...n.headers }, i.data = k(a, i, l), {
420
- url: O(s),
417
+ p["Content-Type"] = "application/json", g(s, m);
418
+ let b = c && c.headers ? c.headers : {};
419
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
420
+ url: v(s),
421
421
  options: i
422
422
  };
423
423
  },
@@ -432,14 +432,14 @@ const v = function(l, ...r) {
432
432
  */
433
433
  postTemporarytable: async (r, e, t, a = {}) => {
434
434
  d("postTemporarytable", "environmentName", r), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", t);
435
- const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
435
+ const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
436
436
  let s;
437
437
  l && (s = l.baseOptions);
438
438
  const c = { method: "POST", ...s, ...a }, i = {}, p = {};
439
- i["Content-Type"] = "application/json", v(o, p);
439
+ i["Content-Type"] = "application/json", g(o, p);
440
440
  let m = s && s.headers ? s.headers : {};
441
441
  return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
442
- url: O(o),
442
+ url: v(o),
443
443
  options: c
444
444
  };
445
445
  },
@@ -455,14 +455,14 @@ const v = function(l, ...r) {
455
455
  */
456
456
  postTemporarytableInPackage: async (r, e, t, a, n = {}) => {
457
457
  d("postTemporarytableInPackage", "environmentName", r), d("postTemporarytableInPackage", "packageName", e), d("postTemporarytableInPackage", "connectionName", t), d("postTemporarytableInPackage", "postSqlsourceRequest", a);
458
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
458
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
459
459
  let c;
460
460
  l && (c = l.baseOptions);
461
461
  const i = { method: "POST", ...c, ...n }, p = {}, m = {};
462
- p["Content-Type"] = "application/json", v(s, m);
463
- let P = c && c.headers ? c.headers : {};
464
- return i.headers = { ...p, ...P, ...n.headers }, i.data = k(a, i, l), {
465
- url: O(s),
462
+ p["Content-Type"] = "application/json", g(s, m);
463
+ let b = c && c.headers ? c.headers : {};
464
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
465
+ url: v(s),
466
466
  options: i
467
467
  };
468
468
  },
@@ -477,14 +477,14 @@ const v = function(l, ...r) {
477
477
  */
478
478
  updateConnection: async (r, e, t, a = {}) => {
479
479
  d("updateConnection", "environmentName", r), d("updateConnection", "connectionName", e), d("updateConnection", "updateConnectionRequest", t);
480
- const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
480
+ const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
481
481
  let s;
482
482
  l && (s = l.baseOptions);
483
483
  const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
484
- i["Content-Type"] = "application/json", v(o, p);
484
+ i["Content-Type"] = "application/json", g(o, p);
485
485
  let m = s && s.headers ? s.headers : {};
486
486
  return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
487
- url: O(o),
487
+ url: v(o),
488
488
  options: c
489
489
  };
490
490
  }
@@ -502,8 +502,8 @@ const v = function(l, ...r) {
502
502
  * @throws {RequiredError}
503
503
  */
504
504
  async createConnection(e, t, a, n) {
505
- const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.createConnection"]?.[s]?.url;
506
- return (i, p) => b(o, h, u, l)(i, c || p);
505
+ const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
506
+ return (i, p) => O(o, h, u, l)(i, c || p);
507
507
  },
508
508
  /**
509
509
  * Permanently deletes a database connection from the environment.
@@ -514,8 +514,8 @@ const v = function(l, ...r) {
514
514
  * @throws {RequiredError}
515
515
  */
516
516
  async deleteConnection(e, t, a) {
517
- const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.deleteConnection"]?.[o]?.url;
518
- return (c, i) => b(n, h, u, l)(c, s || i);
517
+ const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
518
+ return (c, i) => O(n, h, u, l)(c, s || i);
519
519
  },
520
520
  /**
521
521
  * 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.
@@ -526,8 +526,8 @@ const v = function(l, ...r) {
526
526
  * @throws {RequiredError}
527
527
  */
528
528
  async getConnection(e, t, a) {
529
- const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.getConnection"]?.[o]?.url;
530
- return (c, i) => b(n, h, u, l)(c, s || i);
529
+ const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
530
+ return (c, i) => O(n, h, u, l)(c, s || i);
531
531
  },
532
532
  /**
533
533
  * 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.
@@ -540,8 +540,8 @@ const v = function(l, ...r) {
540
540
  * @throws {RequiredError}
541
541
  */
542
542
  async getTable(e, t, a, n, o) {
543
- const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.getTable"]?.[c]?.url;
544
- return (p, m) => b(s, h, u, l)(p, i || m);
543
+ const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
544
+ return (p, m) => O(s, h, u, l)(p, i || m);
545
545
  },
546
546
  /**
547
547
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -555,8 +555,8 @@ const v = function(l, ...r) {
555
555
  * @throws {RequiredError}
556
556
  */
557
557
  async getTableInPackage(e, t, a, n, o, s) {
558
- const c = await r.getTableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = V["ConnectionsApi.getTableInPackage"]?.[i]?.url;
559
- return (m, P) => b(c, h, u, l)(m, p || P);
558
+ const c = await r.getTableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
559
+ return (m, b) => O(c, h, u, l)(m, p || b);
560
560
  },
561
561
  /**
562
562
  * 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.
@@ -566,8 +566,8 @@ const v = function(l, ...r) {
566
566
  * @throws {RequiredError}
567
567
  */
568
568
  async listConnections(e, t) {
569
- const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o = V["ConnectionsApi.listConnections"]?.[n]?.url;
570
- return (s, c) => b(a, h, u, l)(s, o || c);
569
+ const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[n]?.url;
570
+ return (s, c) => O(a, h, u, l)(s, o || c);
571
571
  },
572
572
  /**
573
573
  * 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.
@@ -578,8 +578,8 @@ const v = function(l, ...r) {
578
578
  * @throws {RequiredError}
579
579
  */
580
580
  async listSchemas(e, t, a) {
581
- const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.listSchemas"]?.[o]?.url;
582
- return (c, i) => b(n, h, u, l)(c, s || i);
581
+ const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
582
+ return (c, i) => O(n, h, u, l)(c, s || i);
583
583
  },
584
584
  /**
585
585
  * 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).
@@ -591,8 +591,8 @@ const v = function(l, ...r) {
591
591
  * @throws {RequiredError}
592
592
  */
593
593
  async listSchemasInPackage(e, t, a, n) {
594
- const o = await r.listSchemasInPackage(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
595
- return (i, p) => b(o, h, u, l)(i, c || p);
594
+ const o = await r.listSchemasInPackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
595
+ return (i, p) => O(o, h, u, l)(i, c || p);
596
596
  },
597
597
  /**
598
598
  * 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.
@@ -605,8 +605,8 @@ const v = function(l, ...r) {
605
605
  * @throws {RequiredError}
606
606
  */
607
607
  async listTables(e, t, a, n, o) {
608
- const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.listTables"]?.[c]?.url;
609
- return (p, m) => b(s, h, u, l)(p, i || m);
608
+ const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
609
+ return (p, m) => O(s, h, u, l)(p, i || m);
610
610
  },
611
611
  /**
612
612
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -620,8 +620,8 @@ const v = function(l, ...r) {
620
620
  * @throws {RequiredError}
621
621
  */
622
622
  async listTablesInPackage(e, t, a, n, o, s) {
623
- const c = await r.listTablesInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = V["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
624
- return (m, P) => b(c, h, u, l)(m, p || P);
623
+ const c = await r.listTablesInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
624
+ return (m, b) => O(c, h, u, l)(m, p || b);
625
625
  },
626
626
  /**
627
627
  * 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.
@@ -633,8 +633,8 @@ const v = function(l, ...r) {
633
633
  * @throws {RequiredError}
634
634
  */
635
635
  async postQuerydata(e, t, a, n) {
636
- const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.postQuerydata"]?.[s]?.url;
637
- return (i, p) => b(o, h, u, l)(i, c || p);
636
+ const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
637
+ return (i, p) => O(o, h, u, l)(i, c || p);
638
638
  },
639
639
  /**
640
640
  * 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.
@@ -647,8 +647,8 @@ const v = function(l, ...r) {
647
647
  * @throws {RequiredError}
648
648
  */
649
649
  async postQuerydataInPackage(e, t, a, n, o) {
650
- const s = await r.postQuerydataInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
651
- return (p, m) => b(s, h, u, l)(p, i || m);
650
+ const s = await r.postQuerydataInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
651
+ return (p, m) => O(s, h, u, l)(p, i || m);
652
652
  },
653
653
  /**
654
654
  * 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.
@@ -660,8 +660,8 @@ const v = function(l, ...r) {
660
660
  * @throws {RequiredError}
661
661
  */
662
662
  async postSqlsource(e, t, a, n) {
663
- const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.postSqlsource"]?.[s]?.url;
664
- return (i, p) => b(o, h, u, l)(i, c || p);
663
+ const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
664
+ return (i, p) => O(o, h, u, l)(i, c || p);
665
665
  },
666
666
  /**
667
667
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -674,8 +674,8 @@ const v = function(l, ...r) {
674
674
  * @throws {RequiredError}
675
675
  */
676
676
  async postSqlsourceInPackage(e, t, a, n, o) {
677
- const s = await r.postSqlsourceInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
678
- return (p, m) => b(s, h, u, l)(p, i || m);
677
+ const s = await r.postSqlsourceInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
678
+ return (p, m) => O(s, h, u, l)(p, i || m);
679
679
  },
680
680
  /**
681
681
  * 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.
@@ -687,8 +687,8 @@ const v = function(l, ...r) {
687
687
  * @throws {RequiredError}
688
688
  */
689
689
  async postTemporarytable(e, t, a, n) {
690
- const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.postTemporarytable"]?.[s]?.url;
691
- return (i, p) => b(o, h, u, l)(i, c || p);
690
+ const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
691
+ return (i, p) => O(o, h, u, l)(i, c || p);
692
692
  },
693
693
  /**
694
694
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -701,8 +701,8 @@ const v = function(l, ...r) {
701
701
  * @throws {RequiredError}
702
702
  */
703
703
  async postTemporarytableInPackage(e, t, a, n, o) {
704
- const s = await r.postTemporarytableInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
705
- return (p, m) => b(s, h, u, l)(p, i || m);
704
+ const s = await r.postTemporarytableInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
705
+ return (p, m) => O(s, h, u, l)(p, i || m);
706
706
  },
707
707
  /**
708
708
  * Updates the configuration of an existing database connection.
@@ -714,8 +714,8 @@ const v = function(l, ...r) {
714
714
  * @throws {RequiredError}
715
715
  */
716
716
  async updateConnection(e, t, a, n) {
717
- const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.updateConnection"]?.[s]?.url;
718
- return (i, p) => b(o, h, u, l)(i, c || p);
717
+ const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
718
+ return (i, p) => O(o, h, u, l)(i, c || p);
719
719
  }
720
720
  };
721
721
  }, Fe = function(l, r, e) {
@@ -1169,14 +1169,14 @@ const K = function(l) {
1169
1169
  */
1170
1170
  testConnectionConfiguration: async (r, e = {}) => {
1171
1171
  d("testConnectionConfiguration", "connection", r);
1172
- const t = "/connections/test", a = new URL(t, g);
1172
+ const t = "/connections/test", a = new URL(t, V);
1173
1173
  let n;
1174
1174
  l && (n = l.baseOptions);
1175
1175
  const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1176
- s["Content-Type"] = "application/json", v(a, c);
1176
+ s["Content-Type"] = "application/json", g(a, c);
1177
1177
  let i = n && n.headers ? n.headers : {};
1178
1178
  return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
1179
- url: O(a),
1179
+ url: v(a),
1180
1180
  options: o
1181
1181
  };
1182
1182
  }
@@ -1192,8 +1192,8 @@ const K = function(l) {
1192
1192
  * @throws {RequiredError}
1193
1193
  */
1194
1194
  async testConnectionConfiguration(e, t) {
1195
- const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o = V["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1196
- return (s, c) => b(a, h, u, l)(s, o || c);
1195
+ const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
1196
+ return (s, c) => O(a, h, u, l)(s, o || c);
1197
1197
  }
1198
1198
  };
1199
1199
  }, ze = function(l, r, e) {
@@ -1237,14 +1237,14 @@ const X = function(l) {
1237
1237
  */
1238
1238
  listDatabases: async (r, e, t, a = {}) => {
1239
1239
  d("listDatabases", "environmentName", r), d("listDatabases", "packageName", e);
1240
- const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
1240
+ const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
1241
1241
  let s;
1242
1242
  l && (s = l.baseOptions);
1243
1243
  const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1244
- t !== void 0 && (p.versionId = t), v(o, p);
1244
+ t !== void 0 && (p.versionId = t), g(o, p);
1245
1245
  let m = s && s.headers ? s.headers : {};
1246
1246
  return c.headers = { ...i, ...m, ...a.headers }, {
1247
- url: O(o),
1247
+ url: v(o),
1248
1248
  options: c
1249
1249
  };
1250
1250
  }
@@ -1262,8 +1262,8 @@ const X = function(l) {
1262
1262
  * @throws {RequiredError}
1263
1263
  */
1264
1264
  async listDatabases(e, t, a, n) {
1265
- const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c = V["DatabasesApi.listDatabases"]?.[s]?.url;
1266
- return (i, p) => b(o, h, u, l)(i, c || p);
1265
+ const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
1266
+ return (i, p) => O(o, h, u, l)(i, c || p);
1267
1267
  }
1268
1268
  };
1269
1269
  }, Le = function(l, r, e) {
@@ -1309,14 +1309,14 @@ const ee = function(l) {
1309
1309
  */
1310
1310
  createEnvironment: async (r, e = {}) => {
1311
1311
  d("createEnvironment", "environment", r);
1312
- const t = "/environments", a = new URL(t, g);
1312
+ const t = "/environments", a = new URL(t, V);
1313
1313
  let n;
1314
1314
  l && (n = l.baseOptions);
1315
1315
  const o = { method: "POST", ...n, ...e }, s = {}, c = {};
1316
- s["Content-Type"] = "application/json", v(a, c);
1316
+ s["Content-Type"] = "application/json", g(a, c);
1317
1317
  let i = n && n.headers ? n.headers : {};
1318
1318
  return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
1319
- url: O(a),
1319
+ url: v(a),
1320
1320
  options: o
1321
1321
  };
1322
1322
  },
@@ -1329,14 +1329,14 @@ const ee = function(l) {
1329
1329
  */
1330
1330
  deleteEnvironment: async (r, e = {}) => {
1331
1331
  d("deleteEnvironment", "environmentName", r);
1332
- const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, g);
1332
+ const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
1333
1333
  let n;
1334
1334
  l && (n = l.baseOptions);
1335
1335
  const o = { method: "DELETE", ...n, ...e }, s = {};
1336
- v(a, {});
1336
+ g(a, {});
1337
1337
  let i = n && n.headers ? n.headers : {};
1338
1338
  return o.headers = { ...s, ...i, ...e.headers }, {
1339
- url: O(a),
1339
+ url: v(a),
1340
1340
  options: o
1341
1341
  };
1342
1342
  },
@@ -1350,14 +1350,14 @@ const ee = function(l) {
1350
1350
  */
1351
1351
  getEnvironment: async (r, e, t = {}) => {
1352
1352
  d("getEnvironment", "environmentName", r);
1353
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, g);
1353
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
1354
1354
  let o;
1355
1355
  l && (o = l.baseOptions);
1356
1356
  const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1357
- e !== void 0 && (i.reload = e), v(n, i);
1357
+ e !== void 0 && (i.reload = e), g(n, i);
1358
1358
  let p = o && o.headers ? o.headers : {};
1359
1359
  return s.headers = { ...c, ...p, ...t.headers }, {
1360
- url: O(n),
1360
+ url: v(n),
1361
1361
  options: s
1362
1362
  };
1363
1363
  },
@@ -1368,14 +1368,14 @@ const ee = function(l) {
1368
1368
  * @throws {RequiredError}
1369
1369
  */
1370
1370
  listEnvironments: async (r = {}) => {
1371
- const e = "/environments", t = new URL(e, g);
1371
+ const e = "/environments", t = new URL(e, V);
1372
1372
  let a;
1373
1373
  l && (a = l.baseOptions);
1374
1374
  const n = { method: "GET", ...a, ...r }, o = {};
1375
- v(t, {});
1375
+ g(t, {});
1376
1376
  let c = a && a.headers ? a.headers : {};
1377
1377
  return n.headers = { ...o, ...c, ...r.headers }, {
1378
- url: O(t),
1378
+ url: v(t),
1379
1379
  options: n
1380
1380
  };
1381
1381
  },
@@ -1389,14 +1389,14 @@ const ee = function(l) {
1389
1389
  */
1390
1390
  updateEnvironment: async (r, e, t = {}) => {
1391
1391
  d("updateEnvironment", "environmentName", r), d("updateEnvironment", "environment", e);
1392
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, g);
1392
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
1393
1393
  let o;
1394
1394
  l && (o = l.baseOptions);
1395
1395
  const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1396
- c["Content-Type"] = "application/json", v(n, i);
1396
+ c["Content-Type"] = "application/json", g(n, i);
1397
1397
  let p = o && o.headers ? o.headers : {};
1398
1398
  return s.headers = { ...c, ...p, ...t.headers }, s.data = k(e, s, l), {
1399
- url: O(n),
1399
+ url: v(n),
1400
1400
  options: s
1401
1401
  };
1402
1402
  }
@@ -1412,8 +1412,8 @@ const ee = function(l) {
1412
1412
  * @throws {RequiredError}
1413
1413
  */
1414
1414
  async createEnvironment(e, t) {
1415
- const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o = V["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1416
- return (s, c) => b(a, h, u, l)(s, o || c);
1415
+ const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
1416
+ return (s, c) => O(a, h, u, l)(s, o || c);
1417
1417
  },
1418
1418
  /**
1419
1419
  * 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.
@@ -1423,8 +1423,8 @@ const ee = function(l) {
1423
1423
  * @throws {RequiredError}
1424
1424
  */
1425
1425
  async deleteEnvironment(e, t) {
1426
- const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o = V["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1427
- return (s, c) => b(a, h, u, l)(s, o || c);
1426
+ const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
1427
+ return (s, c) => O(a, h, u, l)(s, o || c);
1428
1428
  },
1429
1429
  /**
1430
1430
  * 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.
@@ -1435,8 +1435,8 @@ const ee = function(l) {
1435
1435
  * @throws {RequiredError}
1436
1436
  */
1437
1437
  async getEnvironment(e, t, a) {
1438
- const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = V["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1439
- return (c, i) => b(n, h, u, l)(c, s || i);
1438
+ const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1439
+ return (c, i) => O(n, h, u, l)(c, s || i);
1440
1440
  },
1441
1441
  /**
1442
1442
  * 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.
@@ -1445,8 +1445,8 @@ const ee = function(l) {
1445
1445
  * @throws {RequiredError}
1446
1446
  */
1447
1447
  async listEnvironments(e) {
1448
- const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n = V["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1449
- return (o, s) => b(t, h, u, l)(o, n || s);
1448
+ const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1449
+ return (o, s) => O(t, h, u, l)(o, n || s);
1450
1450
  },
1451
1451
  /**
1452
1452
  * 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.
@@ -1457,8 +1457,8 @@ const ee = function(l) {
1457
1457
  * @throws {RequiredError}
1458
1458
  */
1459
1459
  async updateEnvironment(e, t, a) {
1460
- const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = V["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1461
- return (c, i) => b(n, h, u, l)(c, s || i);
1460
+ const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1461
+ return (c, i) => O(n, h, u, l)(c, s || i);
1462
1462
  }
1463
1463
  };
1464
1464
  }, He = function(l, r, e) {
@@ -1578,8 +1578,8 @@ class ae extends y {
1578
1578
  const te = function(l) {
1579
1579
  return {
1580
1580
  /**
1581
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
1582
- * @summary Create a materialization (Round 1)
1581
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
1582
+ * @summary Create a materialization
1583
1583
  * @param {string} environmentName Name of the environment
1584
1584
  * @param {string} packageName Name of the package
1585
1585
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -1588,37 +1588,37 @@ const te = function(l) {
1588
1588
  */
1589
1589
  createMaterialization: async (r, e, t, a = {}) => {
1590
1590
  d("createMaterialization", "environmentName", r), d("createMaterialization", "packageName", e);
1591
- const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
1591
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
1592
1592
  let s;
1593
1593
  l && (s = l.baseOptions);
1594
1594
  const c = { method: "POST", ...s, ...a }, i = {}, p = {};
1595
- i["Content-Type"] = "application/json", v(o, p);
1595
+ i["Content-Type"] = "application/json", g(o, p);
1596
1596
  let m = s && s.headers ? s.headers : {};
1597
1597
  return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
1598
- url: O(o),
1598
+ url: v(o),
1599
1599
  options: c
1600
1600
  };
1601
1601
  },
1602
1602
  /**
1603
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1603
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1604
1604
  * @summary Delete a materialization
1605
1605
  * @param {string} environmentName Name of the environment
1606
1606
  * @param {string} packageName Name of the package
1607
1607
  * @param {string} materializationId ID of the materialization
1608
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
1608
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
1609
1609
  * @param {*} [options] Override http request option.
1610
1610
  * @throws {RequiredError}
1611
1611
  */
1612
1612
  deleteMaterialization: async (r, e, t, a, n = {}) => {
1613
1613
  d("deleteMaterialization", "environmentName", r), d("deleteMaterialization", "packageName", e), d("deleteMaterialization", "materializationId", t);
1614
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, g);
1614
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, V);
1615
1615
  let c;
1616
1616
  l && (c = l.baseOptions);
1617
1617
  const i = { method: "DELETE", ...c, ...n }, p = {}, m = {};
1618
- a !== void 0 && (m.dropTables = a), v(s, m);
1619
- let P = c && c.headers ? c.headers : {};
1620
- return i.headers = { ...p, ...P, ...n.headers }, {
1621
- url: O(s),
1618
+ a !== void 0 && (m.dropTables = a), g(s, m);
1619
+ let b = c && c.headers ? c.headers : {};
1620
+ return i.headers = { ...p, ...b, ...n.headers }, {
1621
+ url: v(s),
1622
1622
  options: i
1623
1623
  };
1624
1624
  },
@@ -1633,14 +1633,14 @@ const te = function(l) {
1633
1633
  */
1634
1634
  getMaterialization: async (r, e, t, a = {}) => {
1635
1635
  d("getMaterialization", "environmentName", r), d("getMaterialization", "packageName", e), d("getMaterialization", "materializationId", t);
1636
- const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, g);
1636
+ const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, V);
1637
1637
  let s;
1638
1638
  l && (s = l.baseOptions);
1639
1639
  const c = { method: "GET", ...s, ...a }, i = {};
1640
- v(o, {});
1640
+ g(o, {});
1641
1641
  let m = s && s.headers ? s.headers : {};
1642
1642
  return c.headers = { ...i, ...m, ...a.headers }, {
1643
- url: O(o),
1643
+ url: v(o),
1644
1644
  options: c
1645
1645
  };
1646
1646
  },
@@ -1656,39 +1656,38 @@ const te = function(l) {
1656
1656
  */
1657
1657
  listMaterializations: async (r, e, t, a, n = {}) => {
1658
1658
  d("listMaterializations", "environmentName", r), d("listMaterializations", "packageName", e);
1659
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, g);
1659
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
1660
1660
  let c;
1661
1661
  l && (c = l.baseOptions);
1662
1662
  const i = { method: "GET", ...c, ...n }, p = {}, m = {};
1663
- t !== void 0 && (m.limit = t), a !== void 0 && (m.offset = a), v(s, m);
1664
- let P = c && c.headers ? c.headers : {};
1665
- return i.headers = { ...p, ...P, ...n.headers }, {
1666
- url: O(s),
1663
+ t !== void 0 && (m.limit = t), a !== void 0 && (m.offset = a), g(s, m);
1664
+ let b = c && c.headers ? c.headers : {};
1665
+ return i.headers = { ...p, ...b, ...n.headers }, {
1666
+ url: v(s),
1667
1667
  options: i
1668
1668
  };
1669
1669
  },
1670
1670
  /**
1671
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
1671
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
1672
1672
  * @summary Perform an action on a materialization
1673
1673
  * @param {string} environmentName Name of the environment
1674
1674
  * @param {string} packageName Name of the package
1675
1675
  * @param {string} materializationId ID of the materialization
1676
1676
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1677
- * @param {BuildInstructions} [buildInstructions]
1678
1677
  * @param {*} [options] Override http request option.
1679
1678
  * @throws {RequiredError}
1680
1679
  */
1681
- materializationAction: async (r, e, t, a, n, o = {}) => {
1680
+ materializationAction: async (r, e, t, a, n = {}) => {
1682
1681
  d("materializationAction", "environmentName", r), d("materializationAction", "packageName", e), d("materializationAction", "materializationId", t), d("materializationAction", "action", a);
1683
- const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s, g);
1684
- let i;
1685
- l && (i = l.baseOptions);
1686
- const p = { method: "POST", ...i, ...o }, m = {}, P = {};
1687
- a !== void 0 && (P.action = a), m["Content-Type"] = "application/json", v(c, P);
1688
- let I = i && i.headers ? i.headers : {};
1689
- return p.headers = { ...m, ...I, ...o.headers }, p.data = k(n, p, l), {
1690
- url: O(c),
1691
- options: p
1682
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, V);
1683
+ let c;
1684
+ l && (c = l.baseOptions);
1685
+ const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1686
+ a !== void 0 && (m.action = a), g(s, m);
1687
+ let b = c && c.headers ? c.headers : {};
1688
+ return i.headers = { ...p, ...b, ...n.headers }, {
1689
+ url: v(s),
1690
+ options: i
1692
1691
  };
1693
1692
  }
1694
1693
  };
@@ -1696,8 +1695,8 @@ const te = function(l) {
1696
1695
  const r = te(l);
1697
1696
  return {
1698
1697
  /**
1699
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
1700
- * @summary Create a materialization (Round 1)
1698
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
1699
+ * @summary Create a materialization
1701
1700
  * @param {string} environmentName Name of the environment
1702
1701
  * @param {string} packageName Name of the package
1703
1702
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -1705,22 +1704,22 @@ const te = function(l) {
1705
1704
  * @throws {RequiredError}
1706
1705
  */
1707
1706
  async createMaterialization(e, t, a, n) {
1708
- const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = V["MaterializationsApi.createMaterialization"]?.[s]?.url;
1709
- return (i, p) => b(o, h, u, l)(i, c || p);
1707
+ const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
1708
+ return (i, p) => O(o, h, u, l)(i, c || p);
1710
1709
  },
1711
1710
  /**
1712
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1711
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1713
1712
  * @summary Delete a materialization
1714
1713
  * @param {string} environmentName Name of the environment
1715
1714
  * @param {string} packageName Name of the package
1716
1715
  * @param {string} materializationId ID of the materialization
1717
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
1716
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
1718
1717
  * @param {*} [options] Override http request option.
1719
1718
  * @throws {RequiredError}
1720
1719
  */
1721
1720
  async deleteMaterialization(e, t, a, n, o) {
1722
- const s = await r.deleteMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
1723
- return (p, m) => b(s, h, u, l)(p, i || m);
1721
+ const s = await r.deleteMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
1722
+ return (p, m) => O(s, h, u, l)(p, i || m);
1724
1723
  },
1725
1724
  /**
1726
1725
  *
@@ -1732,8 +1731,8 @@ const te = function(l) {
1732
1731
  * @throws {RequiredError}
1733
1732
  */
1734
1733
  async getMaterialization(e, t, a, n) {
1735
- const o = await r.getMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = V["MaterializationsApi.getMaterialization"]?.[s]?.url;
1736
- return (i, p) => b(o, h, u, l)(i, c || p);
1734
+ const o = await r.getMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
1735
+ return (i, p) => O(o, h, u, l)(i, c || p);
1737
1736
  },
1738
1737
  /**
1739
1738
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1746,31 +1745,30 @@ const te = function(l) {
1746
1745
  * @throws {RequiredError}
1747
1746
  */
1748
1747
  async listMaterializations(e, t, a, n, o) {
1749
- const s = await r.listMaterializations(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.listMaterializations"]?.[c]?.url;
1750
- return (p, m) => b(s, h, u, l)(p, i || m);
1748
+ const s = await r.listMaterializations(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
1749
+ return (p, m) => O(s, h, u, l)(p, i || m);
1751
1750
  },
1752
1751
  /**
1753
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
1752
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
1754
1753
  * @summary Perform an action on a materialization
1755
1754
  * @param {string} environmentName Name of the environment
1756
1755
  * @param {string} packageName Name of the package
1757
1756
  * @param {string} materializationId ID of the materialization
1758
1757
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1759
- * @param {BuildInstructions} [buildInstructions]
1760
1758
  * @param {*} [options] Override http request option.
1761
1759
  * @throws {RequiredError}
1762
1760
  */
1763
- async materializationAction(e, t, a, n, o, s) {
1764
- const c = await r.materializationAction(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = V["MaterializationsApi.materializationAction"]?.[i]?.url;
1765
- return (m, P) => b(c, h, u, l)(m, p || P);
1761
+ async materializationAction(e, t, a, n, o) {
1762
+ const s = await r.materializationAction(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
1763
+ return (p, m) => O(s, h, u, l)(p, i || m);
1766
1764
  }
1767
1765
  };
1768
1766
  }, De = function(l, r, e) {
1769
1767
  const t = N(l);
1770
1768
  return {
1771
1769
  /**
1772
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
1773
- * @summary Create a materialization (Round 1)
1770
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
1771
+ * @summary Create a materialization
1774
1772
  * @param {string} environmentName Name of the environment
1775
1773
  * @param {string} packageName Name of the package
1776
1774
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -1781,12 +1779,12 @@ const te = function(l) {
1781
1779
  return t.createMaterialization(a, n, o, s).then((c) => c(e, r));
1782
1780
  },
1783
1781
  /**
1784
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1782
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1785
1783
  * @summary Delete a materialization
1786
1784
  * @param {string} environmentName Name of the environment
1787
1785
  * @param {string} packageName Name of the package
1788
1786
  * @param {string} materializationId ID of the materialization
1789
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
1787
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
1790
1788
  * @param {*} [options] Override http request option.
1791
1789
  * @throws {RequiredError}
1792
1790
  */
@@ -1819,25 +1817,24 @@ const te = function(l) {
1819
1817
  return t.listMaterializations(a, n, o, s, c).then((i) => i(e, r));
1820
1818
  },
1821
1819
  /**
1822
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
1820
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
1823
1821
  * @summary Perform an action on a materialization
1824
1822
  * @param {string} environmentName Name of the environment
1825
1823
  * @param {string} packageName Name of the package
1826
1824
  * @param {string} materializationId ID of the materialization
1827
1825
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1828
- * @param {BuildInstructions} [buildInstructions]
1829
1826
  * @param {*} [options] Override http request option.
1830
1827
  * @throws {RequiredError}
1831
1828
  */
1832
- materializationAction(a, n, o, s, c, i) {
1833
- return t.materializationAction(a, n, o, s, c, i).then((p) => p(e, r));
1829
+ materializationAction(a, n, o, s, c) {
1830
+ return t.materializationAction(a, n, o, s, c).then((i) => i(e, r));
1834
1831
  }
1835
1832
  };
1836
1833
  };
1837
1834
  class ne extends y {
1838
1835
  /**
1839
- * Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
1840
- * @summary Create a materialization (Round 1)
1836
+ * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
1837
+ * @summary Create a materialization
1841
1838
  * @param {string} environmentName Name of the environment
1842
1839
  * @param {string} packageName Name of the package
1843
1840
  * @param {CreateMaterializationRequest} [createMaterializationRequest]
@@ -1849,12 +1846,12 @@ class ne extends y {
1849
1846
  return N(this.configuration).createMaterialization(r, e, t, a).then((n) => n(this.axios, this.basePath));
1850
1847
  }
1851
1848
  /**
1852
- * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1849
+ * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
1853
1850
  * @summary Delete a materialization
1854
1851
  * @param {string} environmentName Name of the environment
1855
1852
  * @param {string} packageName Name of the package
1856
1853
  * @param {string} materializationId ID of the materialization
1857
- * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
1854
+ * @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC).
1858
1855
  * @param {*} [options] Override http request option.
1859
1856
  * @throws {RequiredError}
1860
1857
  * @memberof MaterializationsApi
@@ -1890,23 +1887,21 @@ class ne extends y {
1890
1887
  return N(this.configuration).listMaterializations(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1891
1888
  }
1892
1889
  /**
1893
- * Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
1890
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
1894
1891
  * @summary Perform an action on a materialization
1895
1892
  * @param {string} environmentName Name of the environment
1896
1893
  * @param {string} packageName Name of the package
1897
1894
  * @param {string} materializationId ID of the materialization
1898
1895
  * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1899
- * @param {BuildInstructions} [buildInstructions]
1900
1896
  * @param {*} [options] Override http request option.
1901
1897
  * @throws {RequiredError}
1902
1898
  * @memberof MaterializationsApi
1903
1899
  */
1904
- materializationAction(r, e, t, a, n, o) {
1905
- return N(this.configuration).materializationAction(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
1900
+ materializationAction(r, e, t, a, n) {
1901
+ return N(this.configuration).materializationAction(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
1906
1902
  }
1907
1903
  }
1908
1904
  const We = {
1909
- Build: "build",
1910
1905
  Stop: "stop"
1911
1906
  }, re = function(l) {
1912
1907
  return {
@@ -1922,14 +1917,14 @@ const We = {
1922
1917
  */
1923
1918
  compileModelSource: async (r, e, t, a, n = {}) => {
1924
1919
  d("compileModelSource", "environmentName", r), d("compileModelSource", "packageName", e), d("compileModelSource", "path", t), d("compileModelSource", "compileRequest", a);
1925
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
1920
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
1926
1921
  let c;
1927
1922
  l && (c = l.baseOptions);
1928
1923
  const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1929
- p["Content-Type"] = "application/json", v(s, m);
1930
- let P = c && c.headers ? c.headers : {};
1931
- return i.headers = { ...p, ...P, ...n.headers }, i.data = k(a, i, l), {
1932
- url: O(s),
1924
+ p["Content-Type"] = "application/json", g(s, m);
1925
+ let b = c && c.headers ? c.headers : {};
1926
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
1927
+ url: v(s),
1933
1928
  options: i
1934
1929
  };
1935
1930
  },
@@ -1945,14 +1940,14 @@ const We = {
1945
1940
  */
1946
1941
  executeQueryModel: async (r, e, t, a, n = {}) => {
1947
1942
  d("executeQueryModel", "environmentName", r), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", t), d("executeQueryModel", "queryRequest", a);
1948
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
1943
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
1949
1944
  let c;
1950
1945
  l && (c = l.baseOptions);
1951
1946
  const i = { method: "POST", ...c, ...n }, p = {}, m = {};
1952
- p["Content-Type"] = "application/json", v(s, m);
1953
- let P = c && c.headers ? c.headers : {};
1954
- return i.headers = { ...p, ...P, ...n.headers }, i.data = k(a, i, l), {
1955
- url: O(s),
1947
+ p["Content-Type"] = "application/json", g(s, m);
1948
+ let b = c && c.headers ? c.headers : {};
1949
+ return i.headers = { ...p, ...b, ...n.headers }, i.data = k(a, i, l), {
1950
+ url: v(s),
1956
1951
  options: i
1957
1952
  };
1958
1953
  },
@@ -1968,14 +1963,14 @@ const We = {
1968
1963
  */
1969
1964
  getModel: async (r, e, t, a, n = {}) => {
1970
1965
  d("getModel", "environmentName", r), d("getModel", "packageName", e), d("getModel", "path", t);
1971
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
1966
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
1972
1967
  let c;
1973
1968
  l && (c = l.baseOptions);
1974
1969
  const i = { method: "GET", ...c, ...n }, p = {}, m = {};
1975
- a !== void 0 && (m.versionId = a), v(s, m);
1976
- let P = c && c.headers ? c.headers : {};
1977
- return i.headers = { ...p, ...P, ...n.headers }, {
1978
- url: O(s),
1970
+ a !== void 0 && (m.versionId = a), g(s, m);
1971
+ let b = c && c.headers ? c.headers : {};
1972
+ return i.headers = { ...p, ...b, ...n.headers }, {
1973
+ url: v(s),
1979
1974
  options: i
1980
1975
  };
1981
1976
  },
@@ -1990,14 +1985,14 @@ const We = {
1990
1985
  */
1991
1986
  listModels: async (r, e, t, a = {}) => {
1992
1987
  d("listModels", "environmentName", r), d("listModels", "packageName", e);
1993
- const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
1988
+ const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
1994
1989
  let s;
1995
1990
  l && (s = l.baseOptions);
1996
1991
  const c = { method: "GET", ...s, ...a }, i = {}, p = {};
1997
- t !== void 0 && (p.versionId = t), v(o, p);
1992
+ t !== void 0 && (p.versionId = t), g(o, p);
1998
1993
  let m = s && s.headers ? s.headers : {};
1999
1994
  return c.headers = { ...i, ...m, ...a.headers }, {
2000
- url: O(o),
1995
+ url: v(o),
2001
1996
  options: c
2002
1997
  };
2003
1998
  }
@@ -2016,8 +2011,8 @@ const We = {
2016
2011
  * @throws {RequiredError}
2017
2012
  */
2018
2013
  async compileModelSource(e, t, a, n, o) {
2019
- const s = await r.compileModelSource(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ModelsApi.compileModelSource"]?.[c]?.url;
2020
- return (p, m) => b(s, h, u, l)(p, i || m);
2014
+ const s = await r.compileModelSource(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
2015
+ return (p, m) => O(s, h, u, l)(p, i || m);
2021
2016
  },
2022
2017
  /**
2023
2018
  * 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.
@@ -2030,8 +2025,8 @@ const We = {
2030
2025
  * @throws {RequiredError}
2031
2026
  */
2032
2027
  async executeQueryModel(e, t, a, n, o) {
2033
- const s = await r.executeQueryModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ModelsApi.executeQueryModel"]?.[c]?.url;
2034
- return (p, m) => b(s, h, u, l)(p, i || m);
2028
+ const s = await r.executeQueryModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
2029
+ return (p, m) => O(s, h, u, l)(p, i || m);
2035
2030
  },
2036
2031
  /**
2037
2032
  * 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.
@@ -2044,8 +2039,8 @@ const We = {
2044
2039
  * @throws {RequiredError}
2045
2040
  */
2046
2041
  async getModel(e, t, a, n, o) {
2047
- const s = await r.getModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ModelsApi.getModel"]?.[c]?.url;
2048
- return (p, m) => b(s, h, u, l)(p, i || m);
2042
+ const s = await r.getModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
2043
+ return (p, m) => O(s, h, u, l)(p, i || m);
2049
2044
  },
2050
2045
  /**
2051
2046
  * 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.
@@ -2057,8 +2052,8 @@ const We = {
2057
2052
  * @throws {RequiredError}
2058
2053
  */
2059
2054
  async listModels(e, t, a, n) {
2060
- const o = await r.listModels(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ModelsApi.listModels"]?.[s]?.url;
2061
- return (i, p) => b(o, h, u, l)(i, c || p);
2055
+ const o = await r.listModels(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
2056
+ return (i, p) => O(o, h, u, l)(i, c || p);
2062
2057
  }
2063
2058
  };
2064
2059
  }, fe = function(l, r, e) {
@@ -2192,14 +2187,14 @@ const se = function(l) {
2192
2187
  */
2193
2188
  executeNotebookCell: async (r, e, t, a, n, o, s, c, i = {}) => {
2194
2189
  d("executeNotebookCell", "environmentName", r), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", t), d("executeNotebookCell", "cellIndex", a);
2195
- const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), m = new URL(p, g);
2196
- let P;
2197
- l && (P = l.baseOptions);
2198
- const I = { method: "GET", ...P, ...i }, w = {}, C = {};
2199
- n !== void 0 && (C.versionId = n), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(m, C);
2200
- let A = P && P.headers ? P.headers : {};
2190
+ const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), m = new URL(p, V);
2191
+ let b;
2192
+ l && (b = l.baseOptions);
2193
+ const I = { method: "GET", ...b, ...i }, w = {}, C = {};
2194
+ n !== void 0 && (C.versionId = n), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), g(m, C);
2195
+ let A = b && b.headers ? b.headers : {};
2201
2196
  return I.headers = { ...w, ...A, ...i.headers }, {
2202
- url: O(m),
2197
+ url: v(m),
2203
2198
  options: I
2204
2199
  };
2205
2200
  },
@@ -2215,14 +2210,14 @@ const se = function(l) {
2215
2210
  */
2216
2211
  getNotebook: async (r, e, t, a, n = {}) => {
2217
2212
  d("getNotebook", "environmentName", r), d("getNotebook", "packageName", e), d("getNotebook", "path", t);
2218
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
2213
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
2219
2214
  let c;
2220
2215
  l && (c = l.baseOptions);
2221
2216
  const i = { method: "GET", ...c, ...n }, p = {}, m = {};
2222
- a !== void 0 && (m.versionId = a), v(s, m);
2223
- let P = c && c.headers ? c.headers : {};
2224
- return i.headers = { ...p, ...P, ...n.headers }, {
2225
- url: O(s),
2217
+ a !== void 0 && (m.versionId = a), g(s, m);
2218
+ let b = c && c.headers ? c.headers : {};
2219
+ return i.headers = { ...p, ...b, ...n.headers }, {
2220
+ url: v(s),
2226
2221
  options: i
2227
2222
  };
2228
2223
  },
@@ -2237,14 +2232,14 @@ const se = function(l) {
2237
2232
  */
2238
2233
  listNotebooks: async (r, e, t, a = {}) => {
2239
2234
  d("listNotebooks", "environmentName", r), d("listNotebooks", "packageName", e);
2240
- const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
2235
+ const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2241
2236
  let s;
2242
2237
  l && (s = l.baseOptions);
2243
2238
  const c = { method: "GET", ...s, ...a }, i = {}, p = {};
2244
- t !== void 0 && (p.versionId = t), v(o, p);
2239
+ t !== void 0 && (p.versionId = t), g(o, p);
2245
2240
  let m = s && s.headers ? s.headers : {};
2246
2241
  return c.headers = { ...i, ...m, ...a.headers }, {
2247
- url: O(o),
2242
+ url: v(o),
2248
2243
  options: c
2249
2244
  };
2250
2245
  }
@@ -2267,8 +2262,8 @@ const se = function(l) {
2267
2262
  * @throws {RequiredError}
2268
2263
  */
2269
2264
  async executeNotebookCell(e, t, a, n, o, s, c, i, p) {
2270
- const m = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), P = l?.serverIndex ?? 0, I = V["NotebooksApi.executeNotebookCell"]?.[P]?.url;
2271
- return (w, C) => b(m, h, u, l)(w, I || C);
2265
+ const m = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), b = l?.serverIndex ?? 0, I = P["NotebooksApi.executeNotebookCell"]?.[b]?.url;
2266
+ return (w, C) => O(m, h, u, l)(w, I || C);
2272
2267
  },
2273
2268
  /**
2274
2269
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2281,8 +2276,8 @@ const se = function(l) {
2281
2276
  * @throws {RequiredError}
2282
2277
  */
2283
2278
  async getNotebook(e, t, a, n, o) {
2284
- const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["NotebooksApi.getNotebook"]?.[c]?.url;
2285
- return (p, m) => b(s, h, u, l)(p, i || m);
2279
+ const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
2280
+ return (p, m) => O(s, h, u, l)(p, i || m);
2286
2281
  },
2287
2282
  /**
2288
2283
  * 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.
@@ -2294,8 +2289,8 @@ const se = function(l) {
2294
2289
  * @throws {RequiredError}
2295
2290
  */
2296
2291
  async listNotebooks(e, t, a, n) {
2297
- const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c = V["NotebooksApi.listNotebooks"]?.[s]?.url;
2298
- return (i, p) => b(o, h, u, l)(i, c || p);
2292
+ const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
2293
+ return (i, p) => O(o, h, u, l)(i, c || p);
2299
2294
  }
2300
2295
  };
2301
2296
  }, Ge = function(l, r, e) {
@@ -2315,8 +2310,8 @@ const se = function(l) {
2315
2310
  * @param {*} [options] Override http request option.
2316
2311
  * @throws {RequiredError}
2317
2312
  */
2318
- executeNotebookCell(a, n, o, s, c, i, p, m, P) {
2319
- return t.executeNotebookCell(a, n, o, s, c, i, p, m, P).then((I) => I(e, r));
2313
+ executeNotebookCell(a, n, o, s, c, i, p, m, b) {
2314
+ return t.executeNotebookCell(a, n, o, s, c, i, p, m, b).then((I) => I(e, r));
2320
2315
  },
2321
2316
  /**
2322
2317
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2407,14 +2402,14 @@ const _e = {
2407
2402
  */
2408
2403
  createPackage: async (r, e, t = {}) => {
2409
2404
  d("createPackage", "environmentName", r), d("createPackage", "_package", e);
2410
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, g);
2405
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
2411
2406
  let o;
2412
2407
  l && (o = l.baseOptions);
2413
2408
  const s = { method: "POST", ...o, ...t }, c = {}, i = {};
2414
- c["Content-Type"] = "application/json", v(n, i);
2409
+ c["Content-Type"] = "application/json", g(n, i);
2415
2410
  let p = o && o.headers ? o.headers : {};
2416
2411
  return s.headers = { ...c, ...p, ...t.headers }, s.data = k(e, s, l), {
2417
- url: O(n),
2412
+ url: v(n),
2418
2413
  options: s
2419
2414
  };
2420
2415
  },
@@ -2428,14 +2423,14 @@ const _e = {
2428
2423
  */
2429
2424
  deletePackage: async (r, e, t = {}) => {
2430
2425
  d("deletePackage", "environmentName", r), d("deletePackage", "packageName", e);
2431
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, g);
2426
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
2432
2427
  let o;
2433
2428
  l && (o = l.baseOptions);
2434
2429
  const s = { method: "DELETE", ...o, ...t }, c = {};
2435
- v(n, {});
2430
+ g(n, {});
2436
2431
  let p = o && o.headers ? o.headers : {};
2437
2432
  return s.headers = { ...c, ...p, ...t.headers }, {
2438
- url: O(n),
2433
+ url: v(n),
2439
2434
  options: s
2440
2435
  };
2441
2436
  },
@@ -2451,14 +2446,14 @@ const _e = {
2451
2446
  */
2452
2447
  getPackage: async (r, e, t, a, n = {}) => {
2453
2448
  d("getPackage", "environmentName", r), d("getPackage", "packageName", e);
2454
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, g);
2449
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
2455
2450
  let c;
2456
2451
  l && (c = l.baseOptions);
2457
2452
  const i = { method: "GET", ...c, ...n }, p = {}, m = {};
2458
- t !== void 0 && (m.versionId = t), a !== void 0 && (m.reload = a), v(s, m);
2459
- let P = c && c.headers ? c.headers : {};
2460
- return i.headers = { ...p, ...P, ...n.headers }, {
2461
- url: O(s),
2453
+ t !== void 0 && (m.versionId = t), a !== void 0 && (m.reload = a), g(s, m);
2454
+ let b = c && c.headers ? c.headers : {};
2455
+ return i.headers = { ...p, ...b, ...n.headers }, {
2456
+ url: v(s),
2462
2457
  options: i
2463
2458
  };
2464
2459
  },
@@ -2471,14 +2466,14 @@ const _e = {
2471
2466
  */
2472
2467
  listPackages: async (r, e = {}) => {
2473
2468
  d("listPackages", "environmentName", r);
2474
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, g);
2469
+ const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
2475
2470
  let n;
2476
2471
  l && (n = l.baseOptions);
2477
2472
  const o = { method: "GET", ...n, ...e }, s = {};
2478
- v(a, {});
2473
+ g(a, {});
2479
2474
  let i = n && n.headers ? n.headers : {};
2480
2475
  return o.headers = { ...s, ...i, ...e.headers }, {
2481
- url: O(a),
2476
+ url: v(a),
2482
2477
  options: o
2483
2478
  };
2484
2479
  },
@@ -2493,14 +2488,14 @@ const _e = {
2493
2488
  */
2494
2489
  updatePackage: async (r, e, t, a = {}) => {
2495
2490
  d("updatePackage", "environmentName", r), d("updatePackage", "packageName", e), d("updatePackage", "_package", t);
2496
- const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
2491
+ const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
2497
2492
  let s;
2498
2493
  l && (s = l.baseOptions);
2499
2494
  const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
2500
- i["Content-Type"] = "application/json", v(o, p);
2495
+ i["Content-Type"] = "application/json", g(o, p);
2501
2496
  let m = s && s.headers ? s.headers : {};
2502
2497
  return c.headers = { ...i, ...m, ...a.headers }, c.data = k(t, c, l), {
2503
- url: O(o),
2498
+ url: v(o),
2504
2499
  options: c
2505
2500
  };
2506
2501
  }
@@ -2517,8 +2512,8 @@ const _e = {
2517
2512
  * @throws {RequiredError}
2518
2513
  */
2519
2514
  async createPackage(e, t, a) {
2520
- const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = V["PackagesApi.createPackage"]?.[o]?.url;
2521
- return (c, i) => b(n, h, u, l)(c, s || i);
2515
+ const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
2516
+ return (c, i) => O(n, h, u, l)(c, s || i);
2522
2517
  },
2523
2518
  /**
2524
2519
  * 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.
@@ -2529,8 +2524,8 @@ const _e = {
2529
2524
  * @throws {RequiredError}
2530
2525
  */
2531
2526
  async deletePackage(e, t, a) {
2532
- const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = V["PackagesApi.deletePackage"]?.[o]?.url;
2533
- return (c, i) => b(n, h, u, l)(c, s || i);
2527
+ const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
2528
+ return (c, i) => O(n, h, u, l)(c, s || i);
2534
2529
  },
2535
2530
  /**
2536
2531
  * 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.
@@ -2543,8 +2538,8 @@ const _e = {
2543
2538
  * @throws {RequiredError}
2544
2539
  */
2545
2540
  async getPackage(e, t, a, n, o) {
2546
- const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["PackagesApi.getPackage"]?.[c]?.url;
2547
- return (p, m) => b(s, h, u, l)(p, i || m);
2541
+ const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
2542
+ return (p, m) => O(s, h, u, l)(p, i || m);
2548
2543
  },
2549
2544
  /**
2550
2545
  * 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.
@@ -2554,8 +2549,8 @@ const _e = {
2554
2549
  * @throws {RequiredError}
2555
2550
  */
2556
2551
  async listPackages(e, t) {
2557
- const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o = V["PackagesApi.listPackages"]?.[n]?.url;
2558
- return (s, c) => b(a, h, u, l)(s, o || c);
2552
+ const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[n]?.url;
2553
+ return (s, c) => O(a, h, u, l)(s, o || c);
2559
2554
  },
2560
2555
  /**
2561
2556
  * 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.
@@ -2567,8 +2562,8 @@ const _e = {
2567
2562
  * @throws {RequiredError}
2568
2563
  */
2569
2564
  async updatePackage(e, t, a, n) {
2570
- const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c = V["PackagesApi.updatePackage"]?.[s]?.url;
2571
- return (i, p) => b(o, h, u, l)(i, c || p);
2565
+ const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
2566
+ return (i, p) => O(o, h, u, l)(i, c || p);
2572
2567
  }
2573
2568
  };
2574
2569
  }, Ye = function(l, r, e) {
@@ -2709,14 +2704,14 @@ const pe = function(l) {
2709
2704
  */
2710
2705
  listPages: async (r, e, t = {}) => {
2711
2706
  d("listPages", "environmentName", r), d("listPages", "packageName", e);
2712
- const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, g);
2707
+ const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
2713
2708
  let o;
2714
2709
  l && (o = l.baseOptions);
2715
2710
  const s = { method: "GET", ...o, ...t }, c = {};
2716
- v(n, {});
2711
+ g(n, {});
2717
2712
  let p = o && o.headers ? o.headers : {};
2718
2713
  return s.headers = { ...c, ...p, ...t.headers }, {
2719
- url: O(n),
2714
+ url: v(n),
2720
2715
  options: s
2721
2716
  };
2722
2717
  }
@@ -2733,8 +2728,8 @@ const pe = function(l) {
2733
2728
  * @throws {RequiredError}
2734
2729
  */
2735
2730
  async listPages(e, t, a) {
2736
- const n = await r.listPages(e, t, a), o = l?.serverIndex ?? 0, s = V["PagesApi.listPages"]?.[o]?.url;
2737
- return (c, i) => b(n, h, u, l)(c, s || i);
2731
+ const n = await r.listPages(e, t, a), o = l?.serverIndex ?? 0, s = P["PagesApi.listPages"]?.[o]?.url;
2732
+ return (c, i) => O(n, h, u, l)(c, s || i);
2738
2733
  }
2739
2734
  };
2740
2735
  }, Je = function(l, r, e) {
@@ -2776,14 +2771,14 @@ const me = function(l) {
2776
2771
  * @throws {RequiredError}
2777
2772
  */
2778
2773
  getStatus: async (r = {}) => {
2779
- const e = "/status", t = new URL(e, g);
2774
+ const e = "/status", t = new URL(e, V);
2780
2775
  let a;
2781
2776
  l && (a = l.baseOptions);
2782
2777
  const n = { method: "GET", ...a, ...r }, o = {};
2783
- v(t, {});
2778
+ g(t, {});
2784
2779
  let c = a && a.headers ? a.headers : {};
2785
2780
  return n.headers = { ...o, ...c, ...r.headers }, {
2786
- url: O(t),
2781
+ url: v(t),
2787
2782
  options: n
2788
2783
  };
2789
2784
  }
@@ -2798,8 +2793,8 @@ const me = function(l) {
2798
2793
  * @throws {RequiredError}
2799
2794
  */
2800
2795
  async getStatus(e) {
2801
- const t = await r.getStatus(e), a = l?.serverIndex ?? 0, n = V["PublisherApi.getStatus"]?.[a]?.url;
2802
- return (o, s) => b(t, h, u, l)(o, n || s);
2796
+ const t = await r.getStatus(e), a = l?.serverIndex ?? 0, n = P["PublisherApi.getStatus"]?.[a]?.url;
2797
+ return (o, s) => O(t, h, u, l)(o, n || s);
2803
2798
  }
2804
2799
  };
2805
2800
  }, Ke = function(l, r, e) {
@@ -2837,14 +2832,14 @@ const ue = function(l) {
2837
2832
  * @throws {RequiredError}
2838
2833
  */
2839
2834
  getWatchStatus: async (r = {}) => {
2840
- const e = "/watch-mode/status", t = new URL(e, g);
2835
+ const e = "/watch-mode/status", t = new URL(e, V);
2841
2836
  let a;
2842
2837
  l && (a = l.baseOptions);
2843
2838
  const n = { method: "GET", ...a, ...r }, o = {};
2844
- v(t, {});
2839
+ g(t, {});
2845
2840
  let c = a && a.headers ? a.headers : {};
2846
2841
  return n.headers = { ...o, ...c, ...r.headers }, {
2847
- url: O(t),
2842
+ url: v(t),
2848
2843
  options: n
2849
2844
  };
2850
2845
  },
@@ -2857,14 +2852,14 @@ const ue = function(l) {
2857
2852
  */
2858
2853
  startWatching: async (r, e = {}) => {
2859
2854
  d("startWatching", "startWatchRequest", r);
2860
- const t = "/watch-mode/start", a = new URL(t, g);
2855
+ const t = "/watch-mode/start", a = new URL(t, V);
2861
2856
  let n;
2862
2857
  l && (n = l.baseOptions);
2863
2858
  const o = { method: "POST", ...n, ...e }, s = {}, c = {};
2864
- s["Content-Type"] = "application/json", v(a, c);
2859
+ s["Content-Type"] = "application/json", g(a, c);
2865
2860
  let i = n && n.headers ? n.headers : {};
2866
2861
  return o.headers = { ...s, ...i, ...e.headers }, o.data = k(r, o, l), {
2867
- url: O(a),
2862
+ url: v(a),
2868
2863
  options: o
2869
2864
  };
2870
2865
  },
@@ -2875,14 +2870,14 @@ const ue = function(l) {
2875
2870
  * @throws {RequiredError}
2876
2871
  */
2877
2872
  stopWatching: async (r = {}) => {
2878
- const e = "/watch-mode/stop", t = new URL(e, g);
2873
+ const e = "/watch-mode/stop", t = new URL(e, V);
2879
2874
  let a;
2880
2875
  l && (a = l.baseOptions);
2881
2876
  const n = { method: "POST", ...a, ...r }, o = {};
2882
- v(t, {});
2877
+ g(t, {});
2883
2878
  let c = a && a.headers ? a.headers : {};
2884
2879
  return n.headers = { ...o, ...c, ...r.headers }, {
2885
- url: O(t),
2880
+ url: v(t),
2886
2881
  options: n
2887
2882
  };
2888
2883
  },
@@ -2896,14 +2891,14 @@ const ue = function(l) {
2896
2891
  */
2897
2892
  streamPackageEvents: async (r, e, t = {}) => {
2898
2893
  d("streamPackageEvents", "environmentName", r), d("streamPackageEvents", "packageName", e);
2899
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, g);
2894
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
2900
2895
  let o;
2901
2896
  l && (o = l.baseOptions);
2902
2897
  const s = { method: "GET", ...o, ...t }, c = {};
2903
- v(n, {});
2898
+ g(n, {});
2904
2899
  let p = o && o.headers ? o.headers : {};
2905
2900
  return s.headers = { ...c, ...p, ...t.headers }, {
2906
- url: O(n),
2901
+ url: v(n),
2907
2902
  options: s
2908
2903
  };
2909
2904
  }
@@ -2918,8 +2913,8 @@ const ue = function(l) {
2918
2913
  * @throws {RequiredError}
2919
2914
  */
2920
2915
  async getWatchStatus(e) {
2921
- const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n = V["WatchModeApi.getWatchStatus"]?.[a]?.url;
2922
- return (o, s) => b(t, h, u, l)(o, n || s);
2916
+ const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
2917
+ return (o, s) => O(t, h, u, l)(o, n || s);
2923
2918
  },
2924
2919
  /**
2925
2920
  * 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.
@@ -2929,8 +2924,8 @@ const ue = function(l) {
2929
2924
  * @throws {RequiredError}
2930
2925
  */
2931
2926
  async startWatching(e, t) {
2932
- const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o = V["WatchModeApi.startWatching"]?.[n]?.url;
2933
- return (s, c) => b(a, h, u, l)(s, o || c);
2927
+ const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[n]?.url;
2928
+ return (s, c) => O(a, h, u, l)(s, o || c);
2934
2929
  },
2935
2930
  /**
2936
2931
  * 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.
@@ -2939,8 +2934,8 @@ const ue = function(l) {
2939
2934
  * @throws {RequiredError}
2940
2935
  */
2941
2936
  async stopWatching(e) {
2942
- const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n = V["WatchModeApi.stopWatching"]?.[a]?.url;
2943
- return (o, s) => b(t, h, u, l)(o, n || s);
2937
+ const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.stopWatching"]?.[a]?.url;
2938
+ return (o, s) => O(t, h, u, l)(o, n || s);
2944
2939
  },
2945
2940
  /**
2946
2941
  * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
@@ -2951,8 +2946,8 @@ const ue = function(l) {
2951
2946
  * @throws {RequiredError}
2952
2947
  */
2953
2948
  async streamPackageEvents(e, t, a) {
2954
- const n = await r.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = V["WatchModeApi.streamPackageEvents"]?.[o]?.url;
2955
- return (c, i) => b(n, h, u, l)(c, s || i);
2949
+ const n = await r.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
2950
+ return (c, i) => O(n, h, u, l)(c, s || i);
2956
2951
  }
2957
2952
  };
2958
2953
  }, Xe = function(l, r, e) {