@malloy-publisher/sdk 0.0.191 → 0.0.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,59 +1,59 @@
1
- import { jsx as B } from "react/jsx-runtime";
2
- import { QueryClient as f, QueryClientProvider as L } from "@tanstack/react-query";
3
- import u from "axios";
4
- import { useContext as H, createContext as D, useMemo as W, useState as $, useEffect as G } from "react";
5
- const m = "http://localhost/api/v0".replace(/\/+$/, "");
6
- class A {
7
- constructor(r, e = m, t = u) {
8
- this.basePath = e, this.axios = t, r && (this.configuration = r, this.basePath = r.basePath ?? e);
1
+ import { jsx as q } from "react/jsx-runtime";
2
+ import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
3
+ import m from "axios";
4
+ import { useContext as f, createContext as D, useMemo as W, useState as $, useEffect as G } from "react";
5
+ const P = "http://localhost/api/v0".replace(/\/+$/, "");
6
+ class C {
7
+ constructor(o, a = P, r = m) {
8
+ this.basePath = a, this.axios = r, o && (this.configuration = o, this.basePath = o.basePath ?? a);
9
9
  }
10
10
  configuration;
11
11
  }
12
12
  class _ extends Error {
13
- constructor(r, e) {
14
- super(e), this.field = r, this.name = "RequiredError";
13
+ constructor(o, a) {
14
+ super(a), this.field = o, this.name = "RequiredError";
15
15
  }
16
16
  }
17
- const V = {}, P = "https://example.com", d = function(l, r, e) {
18
- if (e == null)
19
- throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
17
+ const g = {}, V = "https://example.com", h = function(l, o, a) {
18
+ if (a == null)
19
+ throw new _(o, `Required parameter ${o} was null or undefined when calling ${l}.`);
20
20
  };
21
- function T(l, r, e = "") {
22
- r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((t) => T(l, t, e)) : Object.keys(r).forEach(
23
- (t) => T(l, r[t], `${e}${e !== "" ? "." : ""}${t}`)
24
- ) : l.has(e) ? l.append(e, r) : l.set(e, r));
21
+ function M(l, o, a = "") {
22
+ o != null && (typeof o == "object" ? Array.isArray(o) ? o.forEach((r) => M(l, r, a)) : Object.keys(o).forEach(
23
+ (r) => M(l, o[r], `${a}${a !== "" ? "." : ""}${r}`)
24
+ ) : l.has(a) ? l.append(a, o) : l.set(a, o));
25
25
  }
26
- const O = function(l, ...r) {
27
- const e = new URLSearchParams(l.search);
28
- T(e, r), l.search = e.toString();
29
- }, C = function(l, r, e) {
30
- const t = typeof l != "string";
31
- return (t && e && e.isJsonMime ? e.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
- }, g = function(l) {
26
+ const O = function(l, ...o) {
27
+ const a = new URLSearchParams(l.search);
28
+ M(a, o), l.search = a.toString();
29
+ }, y = function(l, o, a) {
30
+ const r = typeof l != "string";
31
+ return (r && a && a.isJsonMime ? a.isJsonMime(o.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
32
+ }, b = function(l) {
33
33
  return l.pathname + l.search + l.hash;
34
- }, b = function(l, r, e, t) {
35
- return (a = r, o = e) => {
36
- const s = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? o) + l.url };
37
- return a.request(s);
34
+ }, S = function(l, o, a, r) {
35
+ return (e = o, t = a) => {
36
+ const s = { ...l.options, url: (e.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
37
+ return e.request(s);
38
38
  };
39
- }, ye = {
39
+ }, Ie = {
40
40
  Bigquery: "bigquery",
41
41
  Snowflake: "snowflake",
42
42
  Postgres: "postgres",
43
43
  Gcs: "gcs",
44
44
  S3: "s3",
45
45
  Azure: "azure"
46
- }, Ce = {
46
+ }, ye = {
47
47
  ServicePrincipal: "service_principal",
48
48
  SasToken: "sas_token"
49
- }, Ae = {
49
+ }, ke = {
50
50
  Error: "error",
51
51
  Warn: "warn",
52
52
  Debug: "debug"
53
- }, je = {
53
+ }, Ce = {
54
54
  Success: "success",
55
55
  Error: "error"
56
- }, xe = {
56
+ }, je = {
57
57
  Postgres: "postgres",
58
58
  Bigquery: "bigquery",
59
59
  Snowflake: "snowflake",
@@ -62,33 +62,33 @@ const O = function(l, ...r) {
62
62
  Duckdb: "duckdb",
63
63
  Motherduck: "motherduck",
64
64
  Ducklake: "ducklake"
65
- }, Ie = {
65
+ }, Ae = {
66
66
  Ok: "ok",
67
67
  Failed: "failed"
68
68
  }, Ne = {
69
69
  Embedded: "embedded",
70
70
  Materialized: "materialized"
71
- }, Re = {
71
+ }, xe = {
72
72
  Equal: "equal",
73
73
  In: "in",
74
74
  Like: "like",
75
75
  GreaterThan: "greater_than",
76
76
  LessThan: "less_than"
77
- }, ke = {
77
+ }, Re = {
78
78
  Debug: "debug",
79
79
  Info: "info",
80
80
  Warn: "warn",
81
81
  Error: "error"
82
- }, ve = {
82
+ }, Ue = {
83
83
  Pending: "PENDING",
84
84
  Running: "RUNNING",
85
85
  Success: "SUCCESS",
86
86
  Failed: "FAILED",
87
87
  Cancelled: "CANCELLED"
88
- }, Ue = {
88
+ }, ve = {
89
89
  Markdown: "markdown",
90
90
  Code: "code"
91
- }, Me = {
91
+ }, Te = {
92
92
  Markdown: "markdown",
93
93
  Code: "code"
94
94
  }, we = {
@@ -106,16 +106,16 @@ const O = function(l, ...r) {
106
106
  * @param {*} [options] Override http request option.
107
107
  * @throws {RequiredError}
108
108
  */
109
- createConnection: async (r, e, t, a = {}) => {
110
- d("createConnection", "projectName", r), d("createConnection", "connectionName", e), d("createConnection", "connection", t);
111
- const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
109
+ createConnection: async (o, a, r, e = {}) => {
110
+ h("createConnection", "projectName", o), h("createConnection", "connectionName", a), h("createConnection", "connection", r);
111
+ const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
112
112
  let n;
113
113
  l && (n = l.baseOptions);
114
- const c = { method: "POST", ...n, ...a }, i = {}, p = {};
114
+ const c = { method: "POST", ...n, ...e }, i = {}, p = {};
115
115
  i["Content-Type"] = "application/json", O(s, p);
116
- let h = n && n.headers ? n.headers : {};
117
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
118
- url: g(s),
116
+ let d = n && n.headers ? n.headers : {};
117
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
118
+ url: b(s),
119
119
  options: c
120
120
  };
121
121
  },
@@ -127,16 +127,16 @@ const O = function(l, ...r) {
127
127
  * @param {*} [options] Override http request option.
128
128
  * @throws {RequiredError}
129
129
  */
130
- deleteConnection: async (r, e, t = {}) => {
131
- d("deleteConnection", "projectName", r), d("deleteConnection", "connectionName", e);
132
- const a = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(a, P);
130
+ deleteConnection: async (o, a, r = {}) => {
131
+ h("deleteConnection", "projectName", o), h("deleteConnection", "connectionName", a);
132
+ const e = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
133
133
  let s;
134
134
  l && (s = l.baseOptions);
135
- const n = { method: "DELETE", ...s, ...t }, c = {};
136
- O(o, {});
135
+ const n = { method: "DELETE", ...s, ...r }, c = {};
136
+ O(t, {});
137
137
  let p = s && s.headers ? s.headers : {};
138
- return n.headers = { ...c, ...p, ...t.headers }, {
139
- url: g(o),
138
+ return n.headers = { ...c, ...p, ...r.headers }, {
139
+ url: b(t),
140
140
  options: n
141
141
  };
142
142
  },
@@ -148,16 +148,16 @@ const O = function(l, ...r) {
148
148
  * @param {*} [options] Override http request option.
149
149
  * @throws {RequiredError}
150
150
  */
151
- getConnection: async (r, e, t = {}) => {
152
- d("getConnection", "projectName", r), d("getConnection", "connectionName", e);
153
- const a = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(a, P);
151
+ getConnection: async (o, a, r = {}) => {
152
+ h("getConnection", "projectName", o), h("getConnection", "connectionName", a);
153
+ const e = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
154
154
  let s;
155
155
  l && (s = l.baseOptions);
156
- const n = { method: "GET", ...s, ...t }, c = {};
157
- O(o, {});
156
+ const n = { method: "GET", ...s, ...r }, c = {};
157
+ O(t, {});
158
158
  let p = s && s.headers ? s.headers : {};
159
- return n.headers = { ...c, ...p, ...t.headers }, {
160
- url: g(o),
159
+ return n.headers = { ...c, ...p, ...r.headers }, {
160
+ url: b(t),
161
161
  options: n
162
162
  };
163
163
  },
@@ -172,19 +172,44 @@ const O = function(l, ...r) {
172
172
  * @deprecated
173
173
  * @throws {RequiredError}
174
174
  */
175
- getQuerydata: async (r, e, t, a, o = {}) => {
176
- d("getQuerydata", "projectName", r), d("getQuerydata", "connectionName", e);
177
- const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, P);
175
+ getQuerydata: async (o, a, r, e, t = {}) => {
176
+ h("getQuerydata", "projectName", o), h("getQuerydata", "connectionName", a);
177
+ const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(s, V);
178
178
  let c;
179
179
  l && (c = l.baseOptions);
180
- const i = { method: "GET", ...c, ...o }, p = {}, h = {};
181
- t !== void 0 && (h.sqlStatement = t), a !== void 0 && (h.options = a), O(n, h);
182
- let S = c && c.headers ? c.headers : {};
183
- return i.headers = { ...p, ...S, ...o.headers }, {
184
- url: g(n),
180
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
181
+ r !== void 0 && (d.sqlStatement = r), e !== void 0 && (d.options = e), O(n, d);
182
+ let u = c && c.headers ? c.headers : {};
183
+ return i.headers = { ...p, ...u, ...t.headers }, {
184
+ url: b(n),
185
185
  options: i
186
186
  };
187
187
  },
188
+ /**
189
+ * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
190
+ * @summary Execute SQL query (per-package, deprecated)
191
+ * @param {string} projectName Name of the project
192
+ * @param {string} packageName Name of the package whose connection context to use
193
+ * @param {string} connectionName Name of the connection
194
+ * @param {string} [sqlStatement] SQL statement
195
+ * @param {string} [_options] Options
196
+ * @param {*} [options] Override http request option.
197
+ * @deprecated
198
+ * @throws {RequiredError}
199
+ */
200
+ getQuerydataInPackage: async (o, a, r, e, t, s = {}) => {
201
+ h("getQuerydataInPackage", "projectName", o), h("getQuerydataInPackage", "packageName", a), h("getQuerydataInPackage", "connectionName", r);
202
+ const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), c = new URL(n, V);
203
+ let i;
204
+ l && (i = l.baseOptions);
205
+ const p = { method: "GET", ...i, ...s }, d = {}, u = {};
206
+ e !== void 0 && (u.sqlStatement = e), t !== void 0 && (u.options = t), O(c, u);
207
+ let k = i && i.headers ? i.headers : {};
208
+ return p.headers = { ...d, ...k, ...s.headers }, {
209
+ url: b(c),
210
+ options: p
211
+ };
212
+ },
188
213
  /**
189
214
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
190
215
  * @summary Get SQL source (deprecated)
@@ -195,19 +220,43 @@ const O = function(l, ...r) {
195
220
  * @deprecated
196
221
  * @throws {RequiredError}
197
222
  */
198
- getSqlsource: async (r, e, t, a = {}) => {
199
- d("getSqlsource", "projectName", r), d("getSqlsource", "connectionName", e);
200
- const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
223
+ getSqlsource: async (o, a, r, e = {}) => {
224
+ h("getSqlsource", "projectName", o), h("getSqlsource", "connectionName", a);
225
+ const t = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
201
226
  let n;
202
227
  l && (n = l.baseOptions);
203
- const c = { method: "GET", ...n, ...a }, i = {}, p = {};
204
- t !== void 0 && (p.sqlStatement = t), O(s, p);
205
- let h = n && n.headers ? n.headers : {};
206
- return c.headers = { ...i, ...h, ...a.headers }, {
207
- url: g(s),
228
+ const c = { method: "GET", ...n, ...e }, i = {}, p = {};
229
+ r !== void 0 && (p.sqlStatement = r), O(s, p);
230
+ let d = n && n.headers ? n.headers : {};
231
+ return c.headers = { ...i, ...d, ...e.headers }, {
232
+ url: b(s),
208
233
  options: c
209
234
  };
210
235
  },
236
+ /**
237
+ * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
238
+ * @summary Get SQL source (per-package, deprecated)
239
+ * @param {string} projectName Name of the project
240
+ * @param {string} packageName Name of the package whose connection context to use
241
+ * @param {string} connectionName Name of the connection
242
+ * @param {string} [sqlStatement] SQL statement
243
+ * @param {*} [options] Override http request option.
244
+ * @deprecated
245
+ * @throws {RequiredError}
246
+ */
247
+ getSqlsourceInPackage: async (o, a, r, e, t = {}) => {
248
+ h("getSqlsourceInPackage", "projectName", o), h("getSqlsourceInPackage", "packageName", a), h("getSqlsourceInPackage", "connectionName", r);
249
+ const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
250
+ let c;
251
+ l && (c = l.baseOptions);
252
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
253
+ e !== void 0 && (d.sqlStatement = e), O(n, d);
254
+ let u = c && c.headers ? c.headers : {};
255
+ return i.headers = { ...p, ...u, ...t.headers }, {
256
+ url: b(n),
257
+ options: i
258
+ };
259
+ },
211
260
  /**
212
261
  * 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.
213
262
  * @summary Get table details from database
@@ -218,19 +267,43 @@ const O = function(l, ...r) {
218
267
  * @param {*} [options] Override http request option.
219
268
  * @throws {RequiredError}
220
269
  */
221
- getTable: async (r, e, t, a, o = {}) => {
222
- d("getTable", "projectName", r), d("getTable", "connectionName", e), d("getTable", "schemaName", t), d("getTable", "tablePath", a);
223
- const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), n = new URL(s, P);
270
+ getTable: async (o, a, r, e, t = {}) => {
271
+ h("getTable", "projectName", o), h("getTable", "connectionName", a), h("getTable", "schemaName", r), h("getTable", "tablePath", e);
272
+ const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(e))), n = new URL(s, V);
224
273
  let c;
225
274
  l && (c = l.baseOptions);
226
- const i = { method: "GET", ...c, ...o }, p = {};
275
+ const i = { method: "GET", ...c, ...t }, p = {};
227
276
  O(n, {});
228
- let S = c && c.headers ? c.headers : {};
229
- return i.headers = { ...p, ...S, ...o.headers }, {
230
- url: g(n),
277
+ let u = c && c.headers ? c.headers : {};
278
+ return i.headers = { ...p, ...u, ...t.headers }, {
279
+ url: b(n),
231
280
  options: i
232
281
  };
233
282
  },
283
+ /**
284
+ * Retrieves a table from the specified database schema, resolved in the context of the named package.
285
+ * @summary Get table details from database (per-package)
286
+ * @param {string} projectName Name of the project
287
+ * @param {string} packageName Name of the package whose connection context to use
288
+ * @param {string} connectionName Name of the connection
289
+ * @param {string} schemaName Name of the schema
290
+ * @param {string} tablePath Full path to the table
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ getTableInPackage: async (o, a, r, e, t, s = {}) => {
295
+ h("getTableInPackage", "projectName", o), h("getTableInPackage", "packageName", a), h("getTableInPackage", "connectionName", r), h("getTableInPackage", "schemaName", e), h("getTableInPackage", "tablePath", t);
296
+ const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(n, V);
297
+ let i;
298
+ l && (i = l.baseOptions);
299
+ const p = { method: "GET", ...i, ...s }, d = {};
300
+ O(c, {});
301
+ let k = i && i.headers ? i.headers : {};
302
+ return p.headers = { ...d, ...k, ...s.headers }, {
303
+ url: b(c),
304
+ options: p
305
+ };
306
+ },
234
307
  /**
235
308
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
236
309
  * @summary Create temporary table (deprecated)
@@ -241,19 +314,43 @@ const O = function(l, ...r) {
241
314
  * @deprecated
242
315
  * @throws {RequiredError}
243
316
  */
244
- getTemporarytable: async (r, e, t, a = {}) => {
245
- d("getTemporarytable", "projectName", r), d("getTemporarytable", "connectionName", e);
246
- const o = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
317
+ getTemporarytable: async (o, a, r, e = {}) => {
318
+ h("getTemporarytable", "projectName", o), h("getTemporarytable", "connectionName", a);
319
+ const t = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
247
320
  let n;
248
321
  l && (n = l.baseOptions);
249
- const c = { method: "GET", ...n, ...a }, i = {}, p = {};
250
- t !== void 0 && (p.sqlStatement = t), O(s, p);
251
- let h = n && n.headers ? n.headers : {};
252
- return c.headers = { ...i, ...h, ...a.headers }, {
253
- url: g(s),
322
+ const c = { method: "GET", ...n, ...e }, i = {}, p = {};
323
+ r !== void 0 && (p.sqlStatement = r), O(s, p);
324
+ let d = n && n.headers ? n.headers : {};
325
+ return c.headers = { ...i, ...d, ...e.headers }, {
326
+ url: b(s),
254
327
  options: c
255
328
  };
256
329
  },
330
+ /**
331
+ * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
332
+ * @summary Create temporary table (per-package, deprecated)
333
+ * @param {string} projectName Name of the project
334
+ * @param {string} packageName Name of the package whose connection context to use
335
+ * @param {string} connectionName Name of the connection
336
+ * @param {string} [sqlStatement] SQL statement
337
+ * @param {*} [options] Override http request option.
338
+ * @deprecated
339
+ * @throws {RequiredError}
340
+ */
341
+ getTemporarytableInPackage: async (o, a, r, e, t = {}) => {
342
+ h("getTemporarytableInPackage", "projectName", o), h("getTemporarytableInPackage", "packageName", a), h("getTemporarytableInPackage", "connectionName", r);
343
+ const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
344
+ let c;
345
+ l && (c = l.baseOptions);
346
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
347
+ e !== void 0 && (d.sqlStatement = e), O(n, d);
348
+ let u = c && c.headers ? c.headers : {};
349
+ return i.headers = { ...p, ...u, ...t.headers }, {
350
+ url: b(n),
351
+ options: i
352
+ };
353
+ },
257
354
  /**
258
355
  * Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
259
356
  * @summary List project database connections
@@ -261,16 +358,16 @@ const O = function(l, ...r) {
261
358
  * @param {*} [options] Override http request option.
262
359
  * @throws {RequiredError}
263
360
  */
264
- listConnections: async (r, e = {}) => {
265
- d("listConnections", "projectName", r);
266
- const t = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(r))), a = new URL(t, P);
267
- let o;
268
- l && (o = l.baseOptions);
269
- const s = { method: "GET", ...o, ...e }, n = {};
270
- O(a, {});
271
- let i = o && o.headers ? o.headers : {};
272
- return s.headers = { ...n, ...i, ...e.headers }, {
273
- url: g(a),
361
+ listConnections: async (o, a = {}) => {
362
+ h("listConnections", "projectName", o);
363
+ const r = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(o))), e = new URL(r, V);
364
+ let t;
365
+ l && (t = l.baseOptions);
366
+ const s = { method: "GET", ...t, ...a }, n = {};
367
+ O(e, {});
368
+ let i = t && t.headers ? t.headers : {};
369
+ return s.headers = { ...n, ...i, ...a.headers }, {
370
+ url: b(e),
274
371
  options: s
275
372
  };
276
373
  },
@@ -282,19 +379,41 @@ const O = function(l, ...r) {
282
379
  * @param {*} [options] Override http request option.
283
380
  * @throws {RequiredError}
284
381
  */
285
- listSchemas: async (r, e, t = {}) => {
286
- d("listSchemas", "projectName", r), d("listSchemas", "connectionName", e);
287
- const a = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(a, P);
382
+ listSchemas: async (o, a, r = {}) => {
383
+ h("listSchemas", "projectName", o), h("listSchemas", "connectionName", a);
384
+ const e = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
288
385
  let s;
289
386
  l && (s = l.baseOptions);
290
- const n = { method: "GET", ...s, ...t }, c = {};
291
- O(o, {});
387
+ const n = { method: "GET", ...s, ...r }, c = {};
388
+ O(t, {});
292
389
  let p = s && s.headers ? s.headers : {};
293
- return n.headers = { ...c, ...p, ...t.headers }, {
294
- url: g(o),
390
+ return n.headers = { ...c, ...p, ...r.headers }, {
391
+ url: b(t),
295
392
  options: n
296
393
  };
297
394
  },
395
+ /**
396
+ * 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 project).
397
+ * @summary List database schemas (per-package)
398
+ * @param {string} projectName Name of the project
399
+ * @param {string} packageName Name of the package whose connection context to use
400
+ * @param {string} connectionName Name of the connection
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ listSchemasInPackage: async (o, a, r, e = {}) => {
405
+ h("listSchemasInPackage", "projectName", o), h("listSchemasInPackage", "packageName", a), h("listSchemasInPackage", "connectionName", r);
406
+ const t = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(t, V);
407
+ let n;
408
+ l && (n = l.baseOptions);
409
+ const c = { method: "GET", ...n, ...e }, i = {};
410
+ O(s, {});
411
+ let d = n && n.headers ? n.headers : {};
412
+ return c.headers = { ...i, ...d, ...e.headers }, {
413
+ url: b(s),
414
+ options: c
415
+ };
416
+ },
298
417
  /**
299
418
  * 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.
300
419
  * @summary List tables in database
@@ -305,39 +424,88 @@ const O = function(l, ...r) {
305
424
  * @param {*} [options] Override http request option.
306
425
  * @throws {RequiredError}
307
426
  */
308
- listTables: async (r, e, t, a, o = {}) => {
309
- d("listTables", "projectName", r), d("listTables", "connectionName", e), d("listTables", "schemaName", t);
310
- const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), n = new URL(s, P);
427
+ listTables: async (o, a, r, e, t = {}) => {
428
+ h("listTables", "projectName", o), h("listTables", "connectionName", a), h("listTables", "schemaName", r);
429
+ const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(r))), n = new URL(s, V);
311
430
  let c;
312
431
  l && (c = l.baseOptions);
313
- const i = { method: "GET", ...c, ...o }, p = {}, h = {};
314
- a && (h.tableNames = a), O(n, h);
315
- let S = c && c.headers ? c.headers : {};
316
- return i.headers = { ...p, ...S, ...o.headers }, {
317
- url: g(n),
432
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
433
+ e && (d.tableNames = e), O(n, d);
434
+ let u = c && c.headers ? c.headers : {};
435
+ return i.headers = { ...p, ...u, ...t.headers }, {
436
+ url: b(n),
318
437
  options: i
319
438
  };
320
439
  },
440
+ /**
441
+ * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
442
+ * @summary List tables in database (per-package)
443
+ * @param {string} projectName Name of the project
444
+ * @param {string} packageName Name of the package whose connection context to use
445
+ * @param {string} connectionName Name of the connection
446
+ * @param {string} schemaName Name of the schema
447
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ listTablesInPackage: async (o, a, r, e, t, s = {}) => {
452
+ h("listTablesInPackage", "projectName", o), h("listTablesInPackage", "packageName", a), h("listTablesInPackage", "connectionName", r), h("listTablesInPackage", "schemaName", e);
453
+ const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(n, V);
454
+ let i;
455
+ l && (i = l.baseOptions);
456
+ const p = { method: "GET", ...i, ...s }, d = {}, u = {};
457
+ t && (u.tableNames = t), O(c, u);
458
+ let k = i && i.headers ? i.headers : {};
459
+ return p.headers = { ...d, ...k, ...s.headers }, {
460
+ url: b(c),
461
+ options: p
462
+ };
463
+ },
321
464
  /**
322
465
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
323
466
  * @summary Execute SQL query
324
467
  * @param {string} projectName Name of the project
325
468
  * @param {string} connectionName Name of the connection
326
469
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
470
+ * @param {string} [_options] Options (deprecated; pass in body instead)
327
471
  * @param {*} [options] Override http request option.
328
472
  * @throws {RequiredError}
329
473
  */
330
- postQuerydata: async (r, e, t, a = {}) => {
331
- d("postQuerydata", "projectName", r), d("postQuerydata", "connectionName", e), d("postQuerydata", "postQuerydataRequest", t);
332
- const o = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
333
- let n;
334
- l && (n = l.baseOptions);
335
- const c = { method: "POST", ...n, ...a }, i = {}, p = {};
336
- i["Content-Type"] = "application/json", O(s, p);
337
- let h = n && n.headers ? n.headers : {};
338
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
339
- url: g(s),
340
- options: c
474
+ postQuerydata: async (o, a, r, e, t = {}) => {
475
+ h("postQuerydata", "projectName", o), h("postQuerydata", "connectionName", a), h("postQuerydata", "postQuerydataRequest", r);
476
+ const s = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(s, V);
477
+ let c;
478
+ l && (c = l.baseOptions);
479
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
480
+ e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", O(n, d);
481
+ let u = c && c.headers ? c.headers : {};
482
+ return i.headers = { ...p, ...u, ...t.headers }, i.data = y(r, i, l), {
483
+ url: b(n),
484
+ options: i
485
+ };
486
+ },
487
+ /**
488
+ * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
489
+ * @summary Execute SQL query (per-package)
490
+ * @param {string} projectName Name of the project
491
+ * @param {string} packageName Name of the package whose connection context to use
492
+ * @param {string} connectionName Name of the connection
493
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
494
+ * @param {string} [_options] Options (deprecated; pass in body instead)
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ postQuerydataInPackage: async (o, a, r, e, t, s = {}) => {
499
+ h("postQuerydataInPackage", "projectName", o), h("postQuerydataInPackage", "packageName", a), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", e);
500
+ const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), c = new URL(n, V);
501
+ let i;
502
+ l && (i = l.baseOptions);
503
+ const p = { method: "POST", ...i, ...s }, d = {}, u = {};
504
+ t !== void 0 && (u.options = t), d["Content-Type"] = "application/json", O(c, u);
505
+ let k = i && i.headers ? i.headers : {};
506
+ return p.headers = { ...d, ...k, ...s.headers }, p.data = y(e, p, l), {
507
+ url: b(c),
508
+ options: p
341
509
  };
342
510
  },
343
511
  /**
@@ -349,19 +517,42 @@ const O = function(l, ...r) {
349
517
  * @param {*} [options] Override http request option.
350
518
  * @throws {RequiredError}
351
519
  */
352
- postSqlsource: async (r, e, t, a = {}) => {
353
- d("postSqlsource", "projectName", r), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", t);
354
- const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
520
+ postSqlsource: async (o, a, r, e = {}) => {
521
+ h("postSqlsource", "projectName", o), h("postSqlsource", "connectionName", a), h("postSqlsource", "postSqlsourceRequest", r);
522
+ const t = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
355
523
  let n;
356
524
  l && (n = l.baseOptions);
357
- const c = { method: "POST", ...n, ...a }, i = {}, p = {};
525
+ const c = { method: "POST", ...n, ...e }, i = {}, p = {};
358
526
  i["Content-Type"] = "application/json", O(s, p);
359
- let h = n && n.headers ? n.headers : {};
360
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
361
- url: g(s),
527
+ let d = n && n.headers ? n.headers : {};
528
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
529
+ url: b(s),
362
530
  options: c
363
531
  };
364
532
  },
533
+ /**
534
+ * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
535
+ * @summary Create SQL source from statement (per-package)
536
+ * @param {string} projectName Name of the project
537
+ * @param {string} packageName Name of the package whose connection context to use
538
+ * @param {string} connectionName Name of the connection
539
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ postSqlsourceInPackage: async (o, a, r, e, t = {}) => {
544
+ h("postSqlsourceInPackage", "projectName", o), h("postSqlsourceInPackage", "packageName", a), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", e);
545
+ const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
546
+ let c;
547
+ l && (c = l.baseOptions);
548
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
549
+ p["Content-Type"] = "application/json", O(n, d);
550
+ let u = c && c.headers ? c.headers : {};
551
+ return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
552
+ url: b(n),
553
+ options: i
554
+ };
555
+ },
365
556
  /**
366
557
  * 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.
367
558
  * @summary Create temporary table
@@ -371,19 +562,42 @@ const O = function(l, ...r) {
371
562
  * @param {*} [options] Override http request option.
372
563
  * @throws {RequiredError}
373
564
  */
374
- postTemporarytable: async (r, e, t, a = {}) => {
375
- d("postTemporarytable", "projectName", r), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", t);
376
- const o = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
565
+ postTemporarytable: async (o, a, r, e = {}) => {
566
+ h("postTemporarytable", "projectName", o), h("postTemporarytable", "connectionName", a), h("postTemporarytable", "postSqlsourceRequest", r);
567
+ const t = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
377
568
  let n;
378
569
  l && (n = l.baseOptions);
379
- const c = { method: "POST", ...n, ...a }, i = {}, p = {};
570
+ const c = { method: "POST", ...n, ...e }, i = {}, p = {};
380
571
  i["Content-Type"] = "application/json", O(s, p);
381
- let h = n && n.headers ? n.headers : {};
382
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
383
- url: g(s),
572
+ let d = n && n.headers ? n.headers : {};
573
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
574
+ url: b(s),
384
575
  options: c
385
576
  };
386
577
  },
578
+ /**
579
+ * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
580
+ * @summary Create temporary table (per-package)
581
+ * @param {string} projectName Name of the project
582
+ * @param {string} packageName Name of the package whose connection context to use
583
+ * @param {string} connectionName Name of the connection
584
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ postTemporarytableInPackage: async (o, a, r, e, t = {}) => {
589
+ h("postTemporarytableInPackage", "projectName", o), h("postTemporarytableInPackage", "packageName", a), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", e);
590
+ const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
591
+ let c;
592
+ l && (c = l.baseOptions);
593
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
594
+ p["Content-Type"] = "application/json", O(n, d);
595
+ let u = c && c.headers ? c.headers : {};
596
+ return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
597
+ url: b(n),
598
+ options: i
599
+ };
600
+ },
387
601
  /**
388
602
  * Updates the configuration of an existing database connection.
389
603
  * @summary Update an existing database connection
@@ -393,22 +607,22 @@ const O = function(l, ...r) {
393
607
  * @param {*} [options] Override http request option.
394
608
  * @throws {RequiredError}
395
609
  */
396
- updateConnection: async (r, e, t, a = {}) => {
397
- d("updateConnection", "projectName", r), d("updateConnection", "connectionName", e), d("updateConnection", "updateConnectionRequest", t);
398
- const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
610
+ updateConnection: async (o, a, r, e = {}) => {
611
+ h("updateConnection", "projectName", o), h("updateConnection", "connectionName", a), h("updateConnection", "updateConnectionRequest", r);
612
+ const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
399
613
  let n;
400
614
  l && (n = l.baseOptions);
401
- const c = { method: "PATCH", ...n, ...a }, i = {}, p = {};
615
+ const c = { method: "PATCH", ...n, ...e }, i = {}, p = {};
402
616
  i["Content-Type"] = "application/json", O(s, p);
403
- let h = n && n.headers ? n.headers : {};
404
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
405
- url: g(s),
617
+ let d = n && n.headers ? n.headers : {};
618
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
619
+ url: b(s),
406
620
  options: c
407
621
  };
408
622
  }
409
623
  };
410
- }, y = function(l) {
411
- const r = J(l);
624
+ }, I = function(l) {
625
+ const o = J(l);
412
626
  return {
413
627
  /**
414
628
  * Creates a new database connection in the specified project.
@@ -419,9 +633,9 @@ const O = function(l, ...r) {
419
633
  * @param {*} [options] Override http request option.
420
634
  * @throws {RequiredError}
421
635
  */
422
- async createConnection(e, t, a, o) {
423
- const s = await r.createConnection(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.createConnection"]?.[n]?.url;
424
- return (i, p) => b(s, u, m, l)(i, c || p);
636
+ async createConnection(a, r, e, t) {
637
+ const s = await o.createConnection(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[n]?.url;
638
+ return (i, p) => S(s, m, P, l)(i, c || p);
425
639
  },
426
640
  /**
427
641
  * Permanently deletes a database connection from the project.
@@ -431,9 +645,9 @@ const O = function(l, ...r) {
431
645
  * @param {*} [options] Override http request option.
432
646
  * @throws {RequiredError}
433
647
  */
434
- async deleteConnection(e, t, a) {
435
- const o = await r.deleteConnection(e, t, a), s = l?.serverIndex ?? 0, n = V["ConnectionsApi.deleteConnection"]?.[s]?.url;
436
- return (c, i) => b(o, u, m, l)(c, n || i);
648
+ async deleteConnection(a, r, e) {
649
+ const t = await o.deleteConnection(a, r, e), s = l?.serverIndex ?? 0, n = g["ConnectionsApi.deleteConnection"]?.[s]?.url;
650
+ return (c, i) => S(t, m, P, l)(c, n || i);
437
651
  },
438
652
  /**
439
653
  * Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -443,9 +657,9 @@ const O = function(l, ...r) {
443
657
  * @param {*} [options] Override http request option.
444
658
  * @throws {RequiredError}
445
659
  */
446
- async getConnection(e, t, a) {
447
- const o = await r.getConnection(e, t, a), s = l?.serverIndex ?? 0, n = V["ConnectionsApi.getConnection"]?.[s]?.url;
448
- return (c, i) => b(o, u, m, l)(c, n || i);
660
+ async getConnection(a, r, e) {
661
+ const t = await o.getConnection(a, r, e), s = l?.serverIndex ?? 0, n = g["ConnectionsApi.getConnection"]?.[s]?.url;
662
+ return (c, i) => S(t, m, P, l)(c, n || i);
449
663
  },
450
664
  /**
451
665
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
@@ -458,9 +672,25 @@ const O = function(l, ...r) {
458
672
  * @deprecated
459
673
  * @throws {RequiredError}
460
674
  */
461
- async getQuerydata(e, t, a, o, s) {
462
- const n = await r.getQuerydata(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.getQuerydata"]?.[c]?.url;
463
- return (p, h) => b(n, u, m, l)(p, i || h);
675
+ async getQuerydata(a, r, e, t, s) {
676
+ const n = await o.getQuerydata(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getQuerydata"]?.[c]?.url;
677
+ return (p, d) => S(n, m, P, l)(p, i || d);
678
+ },
679
+ /**
680
+ * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
681
+ * @summary Execute SQL query (per-package, deprecated)
682
+ * @param {string} projectName Name of the project
683
+ * @param {string} packageName Name of the package whose connection context to use
684
+ * @param {string} connectionName Name of the connection
685
+ * @param {string} [sqlStatement] SQL statement
686
+ * @param {string} [_options] Options
687
+ * @param {*} [options] Override http request option.
688
+ * @deprecated
689
+ * @throws {RequiredError}
690
+ */
691
+ async getQuerydataInPackage(a, r, e, t, s, n) {
692
+ const c = await o.getQuerydataInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getQuerydataInPackage"]?.[i]?.url;
693
+ return (d, u) => S(c, m, P, l)(d, p || u);
464
694
  },
465
695
  /**
466
696
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -472,9 +702,24 @@ const O = function(l, ...r) {
472
702
  * @deprecated
473
703
  * @throws {RequiredError}
474
704
  */
475
- async getSqlsource(e, t, a, o) {
476
- const s = await r.getSqlsource(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.getSqlsource"]?.[n]?.url;
477
- return (i, p) => b(s, u, m, l)(i, c || p);
705
+ async getSqlsource(a, r, e, t) {
706
+ const s = await o.getSqlsource(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.getSqlsource"]?.[n]?.url;
707
+ return (i, p) => S(s, m, P, l)(i, c || p);
708
+ },
709
+ /**
710
+ * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
711
+ * @summary Get SQL source (per-package, deprecated)
712
+ * @param {string} projectName Name of the project
713
+ * @param {string} packageName Name of the package whose connection context to use
714
+ * @param {string} connectionName Name of the connection
715
+ * @param {string} [sqlStatement] SQL statement
716
+ * @param {*} [options] Override http request option.
717
+ * @deprecated
718
+ * @throws {RequiredError}
719
+ */
720
+ async getSqlsourceInPackage(a, r, e, t, s) {
721
+ const n = await o.getSqlsourceInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
722
+ return (p, d) => S(n, m, P, l)(p, i || d);
478
723
  },
479
724
  /**
480
725
  * 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.
@@ -486,9 +731,24 @@ const O = function(l, ...r) {
486
731
  * @param {*} [options] Override http request option.
487
732
  * @throws {RequiredError}
488
733
  */
489
- async getTable(e, t, a, o, s) {
490
- const n = await r.getTable(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.getTable"]?.[c]?.url;
491
- return (p, h) => b(n, u, m, l)(p, i || h);
734
+ async getTable(a, r, e, t, s) {
735
+ const n = await o.getTable(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
736
+ return (p, d) => S(n, m, P, l)(p, i || d);
737
+ },
738
+ /**
739
+ * Retrieves a table from the specified database schema, resolved in the context of the named package.
740
+ * @summary Get table details from database (per-package)
741
+ * @param {string} projectName Name of the project
742
+ * @param {string} packageName Name of the package whose connection context to use
743
+ * @param {string} connectionName Name of the connection
744
+ * @param {string} schemaName Name of the schema
745
+ * @param {string} tablePath Full path to the table
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ async getTableInPackage(a, r, e, t, s, n) {
750
+ const c = await o.getTableInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
751
+ return (d, u) => S(c, m, P, l)(d, p || u);
492
752
  },
493
753
  /**
494
754
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -500,9 +760,24 @@ const O = function(l, ...r) {
500
760
  * @deprecated
501
761
  * @throws {RequiredError}
502
762
  */
503
- async getTemporarytable(e, t, a, o) {
504
- const s = await r.getTemporarytable(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.getTemporarytable"]?.[n]?.url;
505
- return (i, p) => b(s, u, m, l)(i, c || p);
763
+ async getTemporarytable(a, r, e, t) {
764
+ const s = await o.getTemporarytable(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.getTemporarytable"]?.[n]?.url;
765
+ return (i, p) => S(s, m, P, l)(i, c || p);
766
+ },
767
+ /**
768
+ * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
769
+ * @summary Create temporary table (per-package, deprecated)
770
+ * @param {string} projectName Name of the project
771
+ * @param {string} packageName Name of the package whose connection context to use
772
+ * @param {string} connectionName Name of the connection
773
+ * @param {string} [sqlStatement] SQL statement
774
+ * @param {*} [options] Override http request option.
775
+ * @deprecated
776
+ * @throws {RequiredError}
777
+ */
778
+ async getTemporarytableInPackage(a, r, e, t, s) {
779
+ const n = await o.getTemporarytableInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
780
+ return (p, d) => S(n, m, P, l)(p, i || d);
506
781
  },
507
782
  /**
508
783
  * Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
@@ -511,9 +786,9 @@ const O = function(l, ...r) {
511
786
  * @param {*} [options] Override http request option.
512
787
  * @throws {RequiredError}
513
788
  */
514
- async listConnections(e, t) {
515
- const a = await r.listConnections(e, t), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.listConnections"]?.[o]?.url;
516
- return (n, c) => b(a, u, m, l)(n, s || c);
789
+ async listConnections(a, r) {
790
+ const e = await o.listConnections(a, r), t = l?.serverIndex ?? 0, s = g["ConnectionsApi.listConnections"]?.[t]?.url;
791
+ return (n, c) => S(e, m, P, l)(n, s || c);
517
792
  },
518
793
  /**
519
794
  * 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.
@@ -523,9 +798,22 @@ const O = function(l, ...r) {
523
798
  * @param {*} [options] Override http request option.
524
799
  * @throws {RequiredError}
525
800
  */
526
- async listSchemas(e, t, a) {
527
- const o = await r.listSchemas(e, t, a), s = l?.serverIndex ?? 0, n = V["ConnectionsApi.listSchemas"]?.[s]?.url;
528
- return (c, i) => b(o, u, m, l)(c, n || i);
801
+ async listSchemas(a, r, e) {
802
+ const t = await o.listSchemas(a, r, e), s = l?.serverIndex ?? 0, n = g["ConnectionsApi.listSchemas"]?.[s]?.url;
803
+ return (c, i) => S(t, m, P, l)(c, n || i);
804
+ },
805
+ /**
806
+ * 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 project).
807
+ * @summary List database schemas (per-package)
808
+ * @param {string} projectName Name of the project
809
+ * @param {string} packageName Name of the package whose connection context to use
810
+ * @param {string} connectionName Name of the connection
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ async listSchemasInPackage(a, r, e, t) {
815
+ const s = await o.listSchemasInPackage(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[n]?.url;
816
+ return (i, p) => S(s, m, P, l)(i, c || p);
529
817
  },
530
818
  /**
531
819
  * 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.
@@ -537,9 +825,24 @@ const O = function(l, ...r) {
537
825
  * @param {*} [options] Override http request option.
538
826
  * @throws {RequiredError}
539
827
  */
540
- async listTables(e, t, a, o, s) {
541
- const n = await r.listTables(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.listTables"]?.[c]?.url;
542
- return (p, h) => b(n, u, m, l)(p, i || h);
828
+ async listTables(a, r, e, t, s) {
829
+ const n = await o.listTables(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
830
+ return (p, d) => S(n, m, P, l)(p, i || d);
831
+ },
832
+ /**
833
+ * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
834
+ * @summary List tables in database (per-package)
835
+ * @param {string} projectName Name of the project
836
+ * @param {string} packageName Name of the package whose connection context to use
837
+ * @param {string} connectionName Name of the connection
838
+ * @param {string} schemaName Name of the schema
839
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ async listTablesInPackage(a, r, e, t, s, n) {
844
+ const c = await o.listTablesInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
845
+ return (d, u) => S(c, m, P, l)(d, p || u);
543
846
  },
544
847
  /**
545
848
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
@@ -547,12 +850,28 @@ const O = function(l, ...r) {
547
850
  * @param {string} projectName Name of the project
548
851
  * @param {string} connectionName Name of the connection
549
852
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
853
+ * @param {string} [_options] Options (deprecated; pass in body instead)
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ */
857
+ async postQuerydata(a, r, e, t, s) {
858
+ const n = await o.postQuerydata(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydata"]?.[c]?.url;
859
+ return (p, d) => S(n, m, P, l)(p, i || d);
860
+ },
861
+ /**
862
+ * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
863
+ * @summary Execute SQL query (per-package)
864
+ * @param {string} projectName Name of the project
865
+ * @param {string} packageName Name of the package whose connection context to use
866
+ * @param {string} connectionName Name of the connection
867
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
868
+ * @param {string} [_options] Options (deprecated; pass in body instead)
550
869
  * @param {*} [options] Override http request option.
551
870
  * @throws {RequiredError}
552
871
  */
553
- async postQuerydata(e, t, a, o) {
554
- const s = await r.postQuerydata(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.postQuerydata"]?.[n]?.url;
555
- return (i, p) => b(s, u, m, l)(i, c || p);
872
+ async postQuerydataInPackage(a, r, e, t, s, n) {
873
+ const c = await o.postQuerydataInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
874
+ return (d, u) => S(c, m, P, l)(d, p || u);
556
875
  },
557
876
  /**
558
877
  * 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.
@@ -563,9 +882,23 @@ const O = function(l, ...r) {
563
882
  * @param {*} [options] Override http request option.
564
883
  * @throws {RequiredError}
565
884
  */
566
- async postSqlsource(e, t, a, o) {
567
- const s = await r.postSqlsource(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.postSqlsource"]?.[n]?.url;
568
- return (i, p) => b(s, u, m, l)(i, c || p);
885
+ async postSqlsource(a, r, e, t) {
886
+ const s = await o.postSqlsource(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[n]?.url;
887
+ return (i, p) => S(s, m, P, l)(i, c || p);
888
+ },
889
+ /**
890
+ * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
891
+ * @summary Create SQL source from statement (per-package)
892
+ * @param {string} projectName Name of the project
893
+ * @param {string} packageName Name of the package whose connection context to use
894
+ * @param {string} connectionName Name of the connection
895
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ */
899
+ async postSqlsourceInPackage(a, r, e, t, s) {
900
+ const n = await o.postSqlsourceInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
901
+ return (p, d) => S(n, m, P, l)(p, i || d);
569
902
  },
570
903
  /**
571
904
  * 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.
@@ -576,9 +909,23 @@ const O = function(l, ...r) {
576
909
  * @param {*} [options] Override http request option.
577
910
  * @throws {RequiredError}
578
911
  */
579
- async postTemporarytable(e, t, a, o) {
580
- const s = await r.postTemporarytable(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.postTemporarytable"]?.[n]?.url;
581
- return (i, p) => b(s, u, m, l)(i, c || p);
912
+ async postTemporarytable(a, r, e, t) {
913
+ const s = await o.postTemporarytable(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[n]?.url;
914
+ return (i, p) => S(s, m, P, l)(i, c || p);
915
+ },
916
+ /**
917
+ * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
918
+ * @summary Create temporary table (per-package)
919
+ * @param {string} projectName Name of the project
920
+ * @param {string} packageName Name of the package whose connection context to use
921
+ * @param {string} connectionName Name of the connection
922
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
923
+ * @param {*} [options] Override http request option.
924
+ * @throws {RequiredError}
925
+ */
926
+ async postTemporarytableInPackage(a, r, e, t, s) {
927
+ const n = await o.postTemporarytableInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
928
+ return (p, d) => S(n, m, P, l)(p, i || d);
582
929
  },
583
930
  /**
584
931
  * Updates the configuration of an existing database connection.
@@ -589,13 +936,13 @@ const O = function(l, ...r) {
589
936
  * @param {*} [options] Override http request option.
590
937
  * @throws {RequiredError}
591
938
  */
592
- async updateConnection(e, t, a, o) {
593
- const s = await r.updateConnection(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.updateConnection"]?.[n]?.url;
594
- return (i, p) => b(s, u, m, l)(i, c || p);
939
+ async updateConnection(a, r, e, t) {
940
+ const s = await o.updateConnection(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[n]?.url;
941
+ return (i, p) => S(s, m, P, l)(i, c || p);
595
942
  }
596
943
  };
597
- }, Te = function(l, r, e) {
598
- const t = y(l);
944
+ }, Me = function(l, o, a) {
945
+ const r = I(l);
599
946
  return {
600
947
  /**
601
948
  * Creates a new database connection in the specified project.
@@ -606,8 +953,8 @@ const O = function(l, ...r) {
606
953
  * @param {*} [options] Override http request option.
607
954
  * @throws {RequiredError}
608
955
  */
609
- createConnection(a, o, s, n) {
610
- return t.createConnection(a, o, s, n).then((c) => c(e, r));
956
+ createConnection(e, t, s, n) {
957
+ return r.createConnection(e, t, s, n).then((c) => c(a, o));
611
958
  },
612
959
  /**
613
960
  * Permanently deletes a database connection from the project.
@@ -617,8 +964,8 @@ const O = function(l, ...r) {
617
964
  * @param {*} [options] Override http request option.
618
965
  * @throws {RequiredError}
619
966
  */
620
- deleteConnection(a, o, s) {
621
- return t.deleteConnection(a, o, s).then((n) => n(e, r));
967
+ deleteConnection(e, t, s) {
968
+ return r.deleteConnection(e, t, s).then((n) => n(a, o));
622
969
  },
623
970
  /**
624
971
  * Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -628,8 +975,8 @@ const O = function(l, ...r) {
628
975
  * @param {*} [options] Override http request option.
629
976
  * @throws {RequiredError}
630
977
  */
631
- getConnection(a, o, s) {
632
- return t.getConnection(a, o, s).then((n) => n(e, r));
978
+ getConnection(e, t, s) {
979
+ return r.getConnection(e, t, s).then((n) => n(a, o));
633
980
  },
634
981
  /**
635
982
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
@@ -642,8 +989,23 @@ const O = function(l, ...r) {
642
989
  * @deprecated
643
990
  * @throws {RequiredError}
644
991
  */
645
- getQuerydata(a, o, s, n, c) {
646
- return t.getQuerydata(a, o, s, n, c).then((i) => i(e, r));
992
+ getQuerydata(e, t, s, n, c) {
993
+ return r.getQuerydata(e, t, s, n, c).then((i) => i(a, o));
994
+ },
995
+ /**
996
+ * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
997
+ * @summary Execute SQL query (per-package, deprecated)
998
+ * @param {string} projectName Name of the project
999
+ * @param {string} packageName Name of the package whose connection context to use
1000
+ * @param {string} connectionName Name of the connection
1001
+ * @param {string} [sqlStatement] SQL statement
1002
+ * @param {string} [_options] Options
1003
+ * @param {*} [options] Override http request option.
1004
+ * @deprecated
1005
+ * @throws {RequiredError}
1006
+ */
1007
+ getQuerydataInPackage(e, t, s, n, c, i) {
1008
+ return r.getQuerydataInPackage(e, t, s, n, c, i).then((p) => p(a, o));
647
1009
  },
648
1010
  /**
649
1011
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -655,8 +1017,22 @@ const O = function(l, ...r) {
655
1017
  * @deprecated
656
1018
  * @throws {RequiredError}
657
1019
  */
658
- getSqlsource(a, o, s, n) {
659
- return t.getSqlsource(a, o, s, n).then((c) => c(e, r));
1020
+ getSqlsource(e, t, s, n) {
1021
+ return r.getSqlsource(e, t, s, n).then((c) => c(a, o));
1022
+ },
1023
+ /**
1024
+ * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
1025
+ * @summary Get SQL source (per-package, deprecated)
1026
+ * @param {string} projectName Name of the project
1027
+ * @param {string} packageName Name of the package whose connection context to use
1028
+ * @param {string} connectionName Name of the connection
1029
+ * @param {string} [sqlStatement] SQL statement
1030
+ * @param {*} [options] Override http request option.
1031
+ * @deprecated
1032
+ * @throws {RequiredError}
1033
+ */
1034
+ getSqlsourceInPackage(e, t, s, n, c) {
1035
+ return r.getSqlsourceInPackage(e, t, s, n, c).then((i) => i(a, o));
660
1036
  },
661
1037
  /**
662
1038
  * 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.
@@ -668,8 +1044,22 @@ const O = function(l, ...r) {
668
1044
  * @param {*} [options] Override http request option.
669
1045
  * @throws {RequiredError}
670
1046
  */
671
- getTable(a, o, s, n, c) {
672
- return t.getTable(a, o, s, n, c).then((i) => i(e, r));
1047
+ getTable(e, t, s, n, c) {
1048
+ return r.getTable(e, t, s, n, c).then((i) => i(a, o));
1049
+ },
1050
+ /**
1051
+ * Retrieves a table from the specified database schema, resolved in the context of the named package.
1052
+ * @summary Get table details from database (per-package)
1053
+ * @param {string} projectName Name of the project
1054
+ * @param {string} packageName Name of the package whose connection context to use
1055
+ * @param {string} connectionName Name of the connection
1056
+ * @param {string} schemaName Name of the schema
1057
+ * @param {string} tablePath Full path to the table
1058
+ * @param {*} [options] Override http request option.
1059
+ * @throws {RequiredError}
1060
+ */
1061
+ getTableInPackage(e, t, s, n, c, i) {
1062
+ return r.getTableInPackage(e, t, s, n, c, i).then((p) => p(a, o));
673
1063
  },
674
1064
  /**
675
1065
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -681,8 +1071,22 @@ const O = function(l, ...r) {
681
1071
  * @deprecated
682
1072
  * @throws {RequiredError}
683
1073
  */
684
- getTemporarytable(a, o, s, n) {
685
- return t.getTemporarytable(a, o, s, n).then((c) => c(e, r));
1074
+ getTemporarytable(e, t, s, n) {
1075
+ return r.getTemporarytable(e, t, s, n).then((c) => c(a, o));
1076
+ },
1077
+ /**
1078
+ * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
1079
+ * @summary Create temporary table (per-package, deprecated)
1080
+ * @param {string} projectName Name of the project
1081
+ * @param {string} packageName Name of the package whose connection context to use
1082
+ * @param {string} connectionName Name of the connection
1083
+ * @param {string} [sqlStatement] SQL statement
1084
+ * @param {*} [options] Override http request option.
1085
+ * @deprecated
1086
+ * @throws {RequiredError}
1087
+ */
1088
+ getTemporarytableInPackage(e, t, s, n, c) {
1089
+ return r.getTemporarytableInPackage(e, t, s, n, c).then((i) => i(a, o));
686
1090
  },
687
1091
  /**
688
1092
  * Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
@@ -691,8 +1095,8 @@ const O = function(l, ...r) {
691
1095
  * @param {*} [options] Override http request option.
692
1096
  * @throws {RequiredError}
693
1097
  */
694
- listConnections(a, o) {
695
- return t.listConnections(a, o).then((s) => s(e, r));
1098
+ listConnections(e, t) {
1099
+ return r.listConnections(e, t).then((s) => s(a, o));
696
1100
  },
697
1101
  /**
698
1102
  * 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.
@@ -702,8 +1106,20 @@ const O = function(l, ...r) {
702
1106
  * @param {*} [options] Override http request option.
703
1107
  * @throws {RequiredError}
704
1108
  */
705
- listSchemas(a, o, s) {
706
- return t.listSchemas(a, o, s).then((n) => n(e, r));
1109
+ listSchemas(e, t, s) {
1110
+ return r.listSchemas(e, t, s).then((n) => n(a, o));
1111
+ },
1112
+ /**
1113
+ * 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 project).
1114
+ * @summary List database schemas (per-package)
1115
+ * @param {string} projectName Name of the project
1116
+ * @param {string} packageName Name of the package whose connection context to use
1117
+ * @param {string} connectionName Name of the connection
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ listSchemasInPackage(e, t, s, n) {
1122
+ return r.listSchemasInPackage(e, t, s, n).then((c) => c(a, o));
707
1123
  },
708
1124
  /**
709
1125
  * 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.
@@ -715,8 +1131,22 @@ const O = function(l, ...r) {
715
1131
  * @param {*} [options] Override http request option.
716
1132
  * @throws {RequiredError}
717
1133
  */
718
- listTables(a, o, s, n, c) {
719
- return t.listTables(a, o, s, n, c).then((i) => i(e, r));
1134
+ listTables(e, t, s, n, c) {
1135
+ return r.listTables(e, t, s, n, c).then((i) => i(a, o));
1136
+ },
1137
+ /**
1138
+ * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
1139
+ * @summary List tables in database (per-package)
1140
+ * @param {string} projectName Name of the project
1141
+ * @param {string} packageName Name of the package whose connection context to use
1142
+ * @param {string} connectionName Name of the connection
1143
+ * @param {string} schemaName Name of the schema
1144
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
1145
+ * @param {*} [options] Override http request option.
1146
+ * @throws {RequiredError}
1147
+ */
1148
+ listTablesInPackage(e, t, s, n, c, i) {
1149
+ return r.listTablesInPackage(e, t, s, n, c, i).then((p) => p(a, o));
720
1150
  },
721
1151
  /**
722
1152
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
@@ -724,11 +1154,26 @@ const O = function(l, ...r) {
724
1154
  * @param {string} projectName Name of the project
725
1155
  * @param {string} connectionName Name of the connection
726
1156
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
1157
+ * @param {string} [_options] Options (deprecated; pass in body instead)
1158
+ * @param {*} [options] Override http request option.
1159
+ * @throws {RequiredError}
1160
+ */
1161
+ postQuerydata(e, t, s, n, c) {
1162
+ return r.postQuerydata(e, t, s, n, c).then((i) => i(a, o));
1163
+ },
1164
+ /**
1165
+ * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
1166
+ * @summary Execute SQL query (per-package)
1167
+ * @param {string} projectName Name of the project
1168
+ * @param {string} packageName Name of the package whose connection context to use
1169
+ * @param {string} connectionName Name of the connection
1170
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
1171
+ * @param {string} [_options] Options (deprecated; pass in body instead)
727
1172
  * @param {*} [options] Override http request option.
728
1173
  * @throws {RequiredError}
729
1174
  */
730
- postQuerydata(a, o, s, n) {
731
- return t.postQuerydata(a, o, s, n).then((c) => c(e, r));
1175
+ postQuerydataInPackage(e, t, s, n, c, i) {
1176
+ return r.postQuerydataInPackage(e, t, s, n, c, i).then((p) => p(a, o));
732
1177
  },
733
1178
  /**
734
1179
  * 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.
@@ -739,8 +1184,21 @@ const O = function(l, ...r) {
739
1184
  * @param {*} [options] Override http request option.
740
1185
  * @throws {RequiredError}
741
1186
  */
742
- postSqlsource(a, o, s, n) {
743
- return t.postSqlsource(a, o, s, n).then((c) => c(e, r));
1187
+ postSqlsource(e, t, s, n) {
1188
+ return r.postSqlsource(e, t, s, n).then((c) => c(a, o));
1189
+ },
1190
+ /**
1191
+ * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
1192
+ * @summary Create SQL source from statement (per-package)
1193
+ * @param {string} projectName Name of the project
1194
+ * @param {string} packageName Name of the package whose connection context to use
1195
+ * @param {string} connectionName Name of the connection
1196
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
1197
+ * @param {*} [options] Override http request option.
1198
+ * @throws {RequiredError}
1199
+ */
1200
+ postSqlsourceInPackage(e, t, s, n, c) {
1201
+ return r.postSqlsourceInPackage(e, t, s, n, c).then((i) => i(a, o));
744
1202
  },
745
1203
  /**
746
1204
  * 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.
@@ -751,8 +1209,21 @@ const O = function(l, ...r) {
751
1209
  * @param {*} [options] Override http request option.
752
1210
  * @throws {RequiredError}
753
1211
  */
754
- postTemporarytable(a, o, s, n) {
755
- return t.postTemporarytable(a, o, s, n).then((c) => c(e, r));
1212
+ postTemporarytable(e, t, s, n) {
1213
+ return r.postTemporarytable(e, t, s, n).then((c) => c(a, o));
1214
+ },
1215
+ /**
1216
+ * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
1217
+ * @summary Create temporary table (per-package)
1218
+ * @param {string} projectName Name of the project
1219
+ * @param {string} packageName Name of the package whose connection context to use
1220
+ * @param {string} connectionName Name of the connection
1221
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
1222
+ * @param {*} [options] Override http request option.
1223
+ * @throws {RequiredError}
1224
+ */
1225
+ postTemporarytableInPackage(e, t, s, n, c) {
1226
+ return r.postTemporarytableInPackage(e, t, s, n, c).then((i) => i(a, o));
756
1227
  },
757
1228
  /**
758
1229
  * Updates the configuration of an existing database connection.
@@ -763,12 +1234,12 @@ const O = function(l, ...r) {
763
1234
  * @param {*} [options] Override http request option.
764
1235
  * @throws {RequiredError}
765
1236
  */
766
- updateConnection(a, o, s, n) {
767
- return t.updateConnection(a, o, s, n).then((c) => c(e, r));
1237
+ updateConnection(e, t, s, n) {
1238
+ return r.updateConnection(e, t, s, n).then((c) => c(a, o));
768
1239
  }
769
1240
  };
770
1241
  };
771
- class K extends A {
1242
+ class K extends C {
772
1243
  /**
773
1244
  * Creates a new database connection in the specified project.
774
1245
  * @summary Create a new database connection
@@ -779,8 +1250,8 @@ class K extends A {
779
1250
  * @throws {RequiredError}
780
1251
  * @memberof ConnectionsApi
781
1252
  */
782
- createConnection(r, e, t, a) {
783
- return y(this.configuration).createConnection(r, e, t, a).then((o) => o(this.axios, this.basePath));
1253
+ createConnection(o, a, r, e) {
1254
+ return I(this.configuration).createConnection(o, a, r, e).then((t) => t(this.axios, this.basePath));
784
1255
  }
785
1256
  /**
786
1257
  * Permanently deletes a database connection from the project.
@@ -791,8 +1262,8 @@ class K extends A {
791
1262
  * @throws {RequiredError}
792
1263
  * @memberof ConnectionsApi
793
1264
  */
794
- deleteConnection(r, e, t) {
795
- return y(this.configuration).deleteConnection(r, e, t).then((a) => a(this.axios, this.basePath));
1265
+ deleteConnection(o, a, r) {
1266
+ return I(this.configuration).deleteConnection(o, a, r).then((e) => e(this.axios, this.basePath));
796
1267
  }
797
1268
  /**
798
1269
  * Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -803,8 +1274,8 @@ class K extends A {
803
1274
  * @throws {RequiredError}
804
1275
  * @memberof ConnectionsApi
805
1276
  */
806
- getConnection(r, e, t) {
807
- return y(this.configuration).getConnection(r, e, t).then((a) => a(this.axios, this.basePath));
1277
+ getConnection(o, a, r) {
1278
+ return I(this.configuration).getConnection(o, a, r).then((e) => e(this.axios, this.basePath));
808
1279
  }
809
1280
  /**
810
1281
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
@@ -818,8 +1289,24 @@ class K extends A {
818
1289
  * @throws {RequiredError}
819
1290
  * @memberof ConnectionsApi
820
1291
  */
821
- getQuerydata(r, e, t, a, o) {
822
- return y(this.configuration).getQuerydata(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
1292
+ getQuerydata(o, a, r, e, t) {
1293
+ return I(this.configuration).getQuerydata(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1294
+ }
1295
+ /**
1296
+ * **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
1297
+ * @summary Execute SQL query (per-package, deprecated)
1298
+ * @param {string} projectName Name of the project
1299
+ * @param {string} packageName Name of the package whose connection context to use
1300
+ * @param {string} connectionName Name of the connection
1301
+ * @param {string} [sqlStatement] SQL statement
1302
+ * @param {string} [_options] Options
1303
+ * @param {*} [options] Override http request option.
1304
+ * @deprecated
1305
+ * @throws {RequiredError}
1306
+ * @memberof ConnectionsApi
1307
+ */
1308
+ getQuerydataInPackage(o, a, r, e, t, s) {
1309
+ return I(this.configuration).getQuerydataInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
823
1310
  }
824
1311
  /**
825
1312
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -832,8 +1319,23 @@ class K extends A {
832
1319
  * @throws {RequiredError}
833
1320
  * @memberof ConnectionsApi
834
1321
  */
835
- getSqlsource(r, e, t, a) {
836
- return y(this.configuration).getSqlsource(r, e, t, a).then((o) => o(this.axios, this.basePath));
1322
+ getSqlsource(o, a, r, e) {
1323
+ return I(this.configuration).getSqlsource(o, a, r, e).then((t) => t(this.axios, this.basePath));
1324
+ }
1325
+ /**
1326
+ * **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
1327
+ * @summary Get SQL source (per-package, deprecated)
1328
+ * @param {string} projectName Name of the project
1329
+ * @param {string} packageName Name of the package whose connection context to use
1330
+ * @param {string} connectionName Name of the connection
1331
+ * @param {string} [sqlStatement] SQL statement
1332
+ * @param {*} [options] Override http request option.
1333
+ * @deprecated
1334
+ * @throws {RequiredError}
1335
+ * @memberof ConnectionsApi
1336
+ */
1337
+ getSqlsourceInPackage(o, a, r, e, t) {
1338
+ return I(this.configuration).getSqlsourceInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
837
1339
  }
838
1340
  /**
839
1341
  * 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.
@@ -846,8 +1348,23 @@ class K extends A {
846
1348
  * @throws {RequiredError}
847
1349
  * @memberof ConnectionsApi
848
1350
  */
849
- getTable(r, e, t, a, o) {
850
- return y(this.configuration).getTable(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
1351
+ getTable(o, a, r, e, t) {
1352
+ return I(this.configuration).getTable(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1353
+ }
1354
+ /**
1355
+ * Retrieves a table from the specified database schema, resolved in the context of the named package.
1356
+ * @summary Get table details from database (per-package)
1357
+ * @param {string} projectName Name of the project
1358
+ * @param {string} packageName Name of the package whose connection context to use
1359
+ * @param {string} connectionName Name of the connection
1360
+ * @param {string} schemaName Name of the schema
1361
+ * @param {string} tablePath Full path to the table
1362
+ * @param {*} [options] Override http request option.
1363
+ * @throws {RequiredError}
1364
+ * @memberof ConnectionsApi
1365
+ */
1366
+ getTableInPackage(o, a, r, e, t, s) {
1367
+ return I(this.configuration).getTableInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
851
1368
  }
852
1369
  /**
853
1370
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -860,8 +1377,23 @@ class K extends A {
860
1377
  * @throws {RequiredError}
861
1378
  * @memberof ConnectionsApi
862
1379
  */
863
- getTemporarytable(r, e, t, a) {
864
- return y(this.configuration).getTemporarytable(r, e, t, a).then((o) => o(this.axios, this.basePath));
1380
+ getTemporarytable(o, a, r, e) {
1381
+ return I(this.configuration).getTemporarytable(o, a, r, e).then((t) => t(this.axios, this.basePath));
1382
+ }
1383
+ /**
1384
+ * **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
1385
+ * @summary Create temporary table (per-package, deprecated)
1386
+ * @param {string} projectName Name of the project
1387
+ * @param {string} packageName Name of the package whose connection context to use
1388
+ * @param {string} connectionName Name of the connection
1389
+ * @param {string} [sqlStatement] SQL statement
1390
+ * @param {*} [options] Override http request option.
1391
+ * @deprecated
1392
+ * @throws {RequiredError}
1393
+ * @memberof ConnectionsApi
1394
+ */
1395
+ getTemporarytableInPackage(o, a, r, e, t) {
1396
+ return I(this.configuration).getTemporarytableInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
865
1397
  }
866
1398
  /**
867
1399
  * Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
@@ -871,8 +1403,8 @@ class K extends A {
871
1403
  * @throws {RequiredError}
872
1404
  * @memberof ConnectionsApi
873
1405
  */
874
- listConnections(r, e) {
875
- return y(this.configuration).listConnections(r, e).then((t) => t(this.axios, this.basePath));
1406
+ listConnections(o, a) {
1407
+ return I(this.configuration).listConnections(o, a).then((r) => r(this.axios, this.basePath));
876
1408
  }
877
1409
  /**
878
1410
  * 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.
@@ -883,8 +1415,21 @@ class K extends A {
883
1415
  * @throws {RequiredError}
884
1416
  * @memberof ConnectionsApi
885
1417
  */
886
- listSchemas(r, e, t) {
887
- return y(this.configuration).listSchemas(r, e, t).then((a) => a(this.axios, this.basePath));
1418
+ listSchemas(o, a, r) {
1419
+ return I(this.configuration).listSchemas(o, a, r).then((e) => e(this.axios, this.basePath));
1420
+ }
1421
+ /**
1422
+ * 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 project).
1423
+ * @summary List database schemas (per-package)
1424
+ * @param {string} projectName Name of the project
1425
+ * @param {string} packageName Name of the package whose connection context to use
1426
+ * @param {string} connectionName Name of the connection
1427
+ * @param {*} [options] Override http request option.
1428
+ * @throws {RequiredError}
1429
+ * @memberof ConnectionsApi
1430
+ */
1431
+ listSchemasInPackage(o, a, r, e) {
1432
+ return I(this.configuration).listSchemasInPackage(o, a, r, e).then((t) => t(this.axios, this.basePath));
888
1433
  }
889
1434
  /**
890
1435
  * 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.
@@ -897,8 +1442,23 @@ class K extends A {
897
1442
  * @throws {RequiredError}
898
1443
  * @memberof ConnectionsApi
899
1444
  */
900
- listTables(r, e, t, a, o) {
901
- return y(this.configuration).listTables(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
1445
+ listTables(o, a, r, e, t) {
1446
+ return I(this.configuration).listTables(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1447
+ }
1448
+ /**
1449
+ * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
1450
+ * @summary List tables in database (per-package)
1451
+ * @param {string} projectName Name of the project
1452
+ * @param {string} packageName Name of the package whose connection context to use
1453
+ * @param {string} connectionName Name of the connection
1454
+ * @param {string} schemaName Name of the schema
1455
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
1456
+ * @param {*} [options] Override http request option.
1457
+ * @throws {RequiredError}
1458
+ * @memberof ConnectionsApi
1459
+ */
1460
+ listTablesInPackage(o, a, r, e, t, s) {
1461
+ return I(this.configuration).listTablesInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
902
1462
  }
903
1463
  /**
904
1464
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
@@ -906,12 +1466,28 @@ class K extends A {
906
1466
  * @param {string} projectName Name of the project
907
1467
  * @param {string} connectionName Name of the connection
908
1468
  * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
1469
+ * @param {string} [_options] Options (deprecated; pass in body instead)
1470
+ * @param {*} [options] Override http request option.
1471
+ * @throws {RequiredError}
1472
+ * @memberof ConnectionsApi
1473
+ */
1474
+ postQuerydata(o, a, r, e, t) {
1475
+ return I(this.configuration).postQuerydata(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1476
+ }
1477
+ /**
1478
+ * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
1479
+ * @summary Execute SQL query (per-package)
1480
+ * @param {string} projectName Name of the project
1481
+ * @param {string} packageName Name of the package whose connection context to use
1482
+ * @param {string} connectionName Name of the connection
1483
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
1484
+ * @param {string} [_options] Options (deprecated; pass in body instead)
909
1485
  * @param {*} [options] Override http request option.
910
1486
  * @throws {RequiredError}
911
1487
  * @memberof ConnectionsApi
912
1488
  */
913
- postQuerydata(r, e, t, a) {
914
- return y(this.configuration).postQuerydata(r, e, t, a).then((o) => o(this.axios, this.basePath));
1489
+ postQuerydataInPackage(o, a, r, e, t, s) {
1490
+ return I(this.configuration).postQuerydataInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
915
1491
  }
916
1492
  /**
917
1493
  * 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.
@@ -923,8 +1499,22 @@ class K extends A {
923
1499
  * @throws {RequiredError}
924
1500
  * @memberof ConnectionsApi
925
1501
  */
926
- postSqlsource(r, e, t, a) {
927
- return y(this.configuration).postSqlsource(r, e, t, a).then((o) => o(this.axios, this.basePath));
1502
+ postSqlsource(o, a, r, e) {
1503
+ return I(this.configuration).postSqlsource(o, a, r, e).then((t) => t(this.axios, this.basePath));
1504
+ }
1505
+ /**
1506
+ * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
1507
+ * @summary Create SQL source from statement (per-package)
1508
+ * @param {string} projectName Name of the project
1509
+ * @param {string} packageName Name of the package whose connection context to use
1510
+ * @param {string} connectionName Name of the connection
1511
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ * @memberof ConnectionsApi
1515
+ */
1516
+ postSqlsourceInPackage(o, a, r, e, t) {
1517
+ return I(this.configuration).postSqlsourceInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
928
1518
  }
929
1519
  /**
930
1520
  * 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.
@@ -936,8 +1526,22 @@ class K extends A {
936
1526
  * @throws {RequiredError}
937
1527
  * @memberof ConnectionsApi
938
1528
  */
939
- postTemporarytable(r, e, t, a) {
940
- return y(this.configuration).postTemporarytable(r, e, t, a).then((o) => o(this.axios, this.basePath));
1529
+ postTemporarytable(o, a, r, e) {
1530
+ return I(this.configuration).postTemporarytable(o, a, r, e).then((t) => t(this.axios, this.basePath));
1531
+ }
1532
+ /**
1533
+ * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
1534
+ * @summary Create temporary table (per-package)
1535
+ * @param {string} projectName Name of the project
1536
+ * @param {string} packageName Name of the package whose connection context to use
1537
+ * @param {string} connectionName Name of the connection
1538
+ * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
1539
+ * @param {*} [options] Override http request option.
1540
+ * @throws {RequiredError}
1541
+ * @memberof ConnectionsApi
1542
+ */
1543
+ postTemporarytableInPackage(o, a, r, e, t) {
1544
+ return I(this.configuration).postTemporarytableInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
941
1545
  }
942
1546
  /**
943
1547
  * Updates the configuration of an existing database connection.
@@ -949,8 +1553,8 @@ class K extends A {
949
1553
  * @throws {RequiredError}
950
1554
  * @memberof ConnectionsApi
951
1555
  */
952
- updateConnection(r, e, t, a) {
953
- return y(this.configuration).updateConnection(r, e, t, a).then((o) => o(this.axios, this.basePath));
1556
+ updateConnection(o, a, r, e) {
1557
+ return I(this.configuration).updateConnection(o, a, r, e).then((t) => t(this.axios, this.basePath));
954
1558
  }
955
1559
  }
956
1560
  const Y = function(l) {
@@ -962,22 +1566,22 @@ const Y = function(l) {
962
1566
  * @param {*} [options] Override http request option.
963
1567
  * @throws {RequiredError}
964
1568
  */
965
- testConnectionConfiguration: async (r, e = {}) => {
966
- d("testConnectionConfiguration", "connection", r);
967
- const t = "/connections/test", a = new URL(t, P);
968
- let o;
969
- l && (o = l.baseOptions);
970
- const s = { method: "POST", ...o, ...e }, n = {}, c = {};
971
- n["Content-Type"] = "application/json", O(a, c);
972
- let i = o && o.headers ? o.headers : {};
973
- return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
974
- url: g(a),
1569
+ testConnectionConfiguration: async (o, a = {}) => {
1570
+ h("testConnectionConfiguration", "connection", o);
1571
+ const r = "/connections/test", e = new URL(r, V);
1572
+ let t;
1573
+ l && (t = l.baseOptions);
1574
+ const s = { method: "POST", ...t, ...a }, n = {}, c = {};
1575
+ n["Content-Type"] = "application/json", O(e, c);
1576
+ let i = t && t.headers ? t.headers : {};
1577
+ return s.headers = { ...n, ...i, ...a.headers }, s.data = y(o, s, l), {
1578
+ url: b(e),
975
1579
  options: s
976
1580
  };
977
1581
  }
978
1582
  };
979
- }, z = function(l) {
980
- const r = Y(l);
1583
+ }, B = function(l) {
1584
+ const o = Y(l);
981
1585
  return {
982
1586
  /**
983
1587
  * Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -986,13 +1590,13 @@ const Y = function(l) {
986
1590
  * @param {*} [options] Override http request option.
987
1591
  * @throws {RequiredError}
988
1592
  */
989
- async testConnectionConfiguration(e, t) {
990
- const a = await r.testConnectionConfiguration(e, t), o = l?.serverIndex ?? 0, s = V["ConnectionsTestApi.testConnectionConfiguration"]?.[o]?.url;
991
- return (n, c) => b(a, u, m, l)(n, s || c);
1593
+ async testConnectionConfiguration(a, r) {
1594
+ const e = await o.testConnectionConfiguration(a, r), t = l?.serverIndex ?? 0, s = g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1595
+ return (n, c) => S(e, m, P, l)(n, s || c);
992
1596
  }
993
1597
  };
994
- }, Qe = function(l, r, e) {
995
- const t = z(l);
1598
+ }, Qe = function(l, o, a) {
1599
+ const r = B(l);
996
1600
  return {
997
1601
  /**
998
1602
  * Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1001,12 +1605,12 @@ const Y = function(l) {
1001
1605
  * @param {*} [options] Override http request option.
1002
1606
  * @throws {RequiredError}
1003
1607
  */
1004
- testConnectionConfiguration(a, o) {
1005
- return t.testConnectionConfiguration(a, o).then((s) => s(e, r));
1608
+ testConnectionConfiguration(e, t) {
1609
+ return r.testConnectionConfiguration(e, t).then((s) => s(a, o));
1006
1610
  }
1007
1611
  };
1008
1612
  };
1009
- class Be extends A {
1613
+ class qe extends C {
1010
1614
  /**
1011
1615
  * Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
1012
1616
  * @summary Test database connection configuration
@@ -1015,8 +1619,8 @@ class Be extends A {
1015
1619
  * @throws {RequiredError}
1016
1620
  * @memberof ConnectionsTestApi
1017
1621
  */
1018
- testConnectionConfiguration(r, e) {
1019
- return z(this.configuration).testConnectionConfiguration(r, e).then((t) => t(this.axios, this.basePath));
1622
+ testConnectionConfiguration(o, a) {
1623
+ return B(this.configuration).testConnectionConfiguration(o, a).then((r) => r(this.axios, this.basePath));
1020
1624
  }
1021
1625
  }
1022
1626
  const X = function(l) {
@@ -1030,22 +1634,22 @@ const X = function(l) {
1030
1634
  * @param {*} [options] Override http request option.
1031
1635
  * @throws {RequiredError}
1032
1636
  */
1033
- listDatabases: async (r, e, t, a = {}) => {
1034
- d("listDatabases", "projectName", r), d("listDatabases", "packageName", e);
1035
- const o = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
1637
+ listDatabases: async (o, a, r, e = {}) => {
1638
+ h("listDatabases", "projectName", o), h("listDatabases", "packageName", a);
1639
+ const t = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
1036
1640
  let n;
1037
1641
  l && (n = l.baseOptions);
1038
- const c = { method: "GET", ...n, ...a }, i = {}, p = {};
1039
- t !== void 0 && (p.versionId = t), O(s, p);
1040
- let h = n && n.headers ? n.headers : {};
1041
- return c.headers = { ...i, ...h, ...a.headers }, {
1042
- url: g(s),
1642
+ const c = { method: "GET", ...n, ...e }, i = {}, p = {};
1643
+ r !== void 0 && (p.versionId = r), O(s, p);
1644
+ let d = n && n.headers ? n.headers : {};
1645
+ return c.headers = { ...i, ...d, ...e.headers }, {
1646
+ url: b(s),
1043
1647
  options: c
1044
1648
  };
1045
1649
  }
1046
1650
  };
1047
- }, q = function(l) {
1048
- const r = X(l);
1651
+ }, F = function(l) {
1652
+ const o = X(l);
1049
1653
  return {
1050
1654
  /**
1051
1655
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1056,13 +1660,13 @@ const X = function(l) {
1056
1660
  * @param {*} [options] Override http request option.
1057
1661
  * @throws {RequiredError}
1058
1662
  */
1059
- async listDatabases(e, t, a, o) {
1060
- const s = await r.listDatabases(e, t, a, o), n = l?.serverIndex ?? 0, c = V["DatabasesApi.listDatabases"]?.[n]?.url;
1061
- return (i, p) => b(s, u, m, l)(i, c || p);
1663
+ async listDatabases(a, r, e, t) {
1664
+ const s = await o.listDatabases(a, r, e, t), n = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[n]?.url;
1665
+ return (i, p) => S(s, m, P, l)(i, c || p);
1062
1666
  }
1063
1667
  };
1064
- }, $e = function(l, r, e) {
1065
- const t = q(l);
1668
+ }, $e = function(l, o, a) {
1669
+ const r = F(l);
1066
1670
  return {
1067
1671
  /**
1068
1672
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1073,12 +1677,12 @@ const X = function(l) {
1073
1677
  * @param {*} [options] Override http request option.
1074
1678
  * @throws {RequiredError}
1075
1679
  */
1076
- listDatabases(a, o, s, n) {
1077
- return t.listDatabases(a, o, s, n).then((c) => c(e, r));
1680
+ listDatabases(e, t, s, n) {
1681
+ return r.listDatabases(e, t, s, n).then((c) => c(a, o));
1078
1682
  }
1079
1683
  };
1080
1684
  };
1081
- class Z extends A {
1685
+ class Z extends C {
1082
1686
  /**
1083
1687
  * Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
1084
1688
  * @summary List embedded databases
@@ -1089,8 +1693,8 @@ class Z extends A {
1089
1693
  * @throws {RequiredError}
1090
1694
  * @memberof DatabasesApi
1091
1695
  */
1092
- listDatabases(r, e, t, a) {
1093
- return q(this.configuration).listDatabases(r, e, t, a).then((o) => o(this.axios, this.basePath));
1696
+ listDatabases(o, a, r, e) {
1697
+ return F(this.configuration).listDatabases(o, a, r, e).then((t) => t(this.axios, this.basePath));
1094
1698
  }
1095
1699
  }
1096
1700
  const ee = function(l) {
@@ -1103,16 +1707,16 @@ const ee = function(l) {
1103
1707
  * @param {*} [options] Override http request option.
1104
1708
  * @throws {RequiredError}
1105
1709
  */
1106
- getManifest: async (r, e, t = {}) => {
1107
- d("getManifest", "projectName", r), d("getManifest", "packageName", e);
1108
- const a = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(a, P);
1710
+ getManifest: async (o, a, r = {}) => {
1711
+ h("getManifest", "projectName", o), h("getManifest", "packageName", a);
1712
+ const e = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
1109
1713
  let s;
1110
1714
  l && (s = l.baseOptions);
1111
- const n = { method: "GET", ...s, ...t }, c = {};
1112
- O(o, {});
1715
+ const n = { method: "GET", ...s, ...r }, c = {};
1716
+ O(t, {});
1113
1717
  let p = s && s.headers ? s.headers : {};
1114
- return n.headers = { ...c, ...p, ...t.headers }, {
1115
- url: g(o),
1718
+ return n.headers = { ...c, ...p, ...r.headers }, {
1719
+ url: b(t),
1116
1720
  options: n
1117
1721
  };
1118
1722
  },
@@ -1125,22 +1729,22 @@ const ee = function(l) {
1125
1729
  * @param {*} [options] Override http request option.
1126
1730
  * @throws {RequiredError}
1127
1731
  */
1128
- manifestAction: async (r, e, t, a = {}) => {
1129
- d("manifestAction", "projectName", r), d("manifestAction", "packageName", e), d("manifestAction", "action", t);
1130
- const o = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
1732
+ manifestAction: async (o, a, r, e = {}) => {
1733
+ h("manifestAction", "projectName", o), h("manifestAction", "packageName", a), h("manifestAction", "action", r);
1734
+ const t = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
1131
1735
  let n;
1132
1736
  l && (n = l.baseOptions);
1133
- const c = { method: "POST", ...n, ...a }, i = {}, p = {};
1134
- t !== void 0 && (p.action = t), O(s, p);
1135
- let h = n && n.headers ? n.headers : {};
1136
- return c.headers = { ...i, ...h, ...a.headers }, {
1137
- url: g(s),
1737
+ const c = { method: "POST", ...n, ...e }, i = {}, p = {};
1738
+ r !== void 0 && (p.action = r), O(s, p);
1739
+ let d = n && n.headers ? n.headers : {};
1740
+ return c.headers = { ...i, ...d, ...e.headers }, {
1741
+ url: b(s),
1138
1742
  options: c
1139
1743
  };
1140
1744
  }
1141
1745
  };
1142
1746
  }, Q = function(l) {
1143
- const r = ee(l);
1747
+ const o = ee(l);
1144
1748
  return {
1145
1749
  /**
1146
1750
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -1150,9 +1754,9 @@ const ee = function(l) {
1150
1754
  * @param {*} [options] Override http request option.
1151
1755
  * @throws {RequiredError}
1152
1756
  */
1153
- async getManifest(e, t, a) {
1154
- const o = await r.getManifest(e, t, a), s = l?.serverIndex ?? 0, n = V["ManifestsApi.getManifest"]?.[s]?.url;
1155
- return (c, i) => b(o, u, m, l)(c, n || i);
1757
+ async getManifest(a, r, e) {
1758
+ const t = await o.getManifest(a, r, e), s = l?.serverIndex ?? 0, n = g["ManifestsApi.getManifest"]?.[s]?.url;
1759
+ return (c, i) => S(t, m, P, l)(c, n || i);
1156
1760
  },
1157
1761
  /**
1158
1762
  * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
@@ -1163,13 +1767,13 @@ const ee = function(l) {
1163
1767
  * @param {*} [options] Override http request option.
1164
1768
  * @throws {RequiredError}
1165
1769
  */
1166
- async manifestAction(e, t, a, o) {
1167
- const s = await r.manifestAction(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ManifestsApi.manifestAction"]?.[n]?.url;
1168
- return (i, p) => b(s, u, m, l)(i, c || p);
1770
+ async manifestAction(a, r, e, t) {
1771
+ const s = await o.manifestAction(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ManifestsApi.manifestAction"]?.[n]?.url;
1772
+ return (i, p) => S(s, m, P, l)(i, c || p);
1169
1773
  }
1170
1774
  };
1171
- }, ze = function(l, r, e) {
1172
- const t = Q(l);
1775
+ }, Be = function(l, o, a) {
1776
+ const r = Q(l);
1173
1777
  return {
1174
1778
  /**
1175
1779
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
@@ -1179,8 +1783,8 @@ const ee = function(l) {
1179
1783
  * @param {*} [options] Override http request option.
1180
1784
  * @throws {RequiredError}
1181
1785
  */
1182
- getManifest(a, o, s) {
1183
- return t.getManifest(a, o, s).then((n) => n(e, r));
1786
+ getManifest(e, t, s) {
1787
+ return r.getManifest(e, t, s).then((n) => n(a, o));
1184
1788
  },
1185
1789
  /**
1186
1790
  * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
@@ -1191,12 +1795,12 @@ const ee = function(l) {
1191
1795
  * @param {*} [options] Override http request option.
1192
1796
  * @throws {RequiredError}
1193
1797
  */
1194
- manifestAction(a, o, s, n) {
1195
- return t.manifestAction(a, o, s, n).then((c) => c(e, r));
1798
+ manifestAction(e, t, s, n) {
1799
+ return r.manifestAction(e, t, s, n).then((c) => c(a, o));
1196
1800
  }
1197
1801
  };
1198
1802
  };
1199
- class qe extends A {
1803
+ class Fe extends C {
1200
1804
  /**
1201
1805
  * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1202
1806
  * @summary Get the build manifest for a package
@@ -1206,8 +1810,8 @@ class qe extends A {
1206
1810
  * @throws {RequiredError}
1207
1811
  * @memberof ManifestsApi
1208
1812
  */
1209
- getManifest(r, e, t) {
1210
- return Q(this.configuration).getManifest(r, e, t).then((a) => a(this.axios, this.basePath));
1813
+ getManifest(o, a, r) {
1814
+ return Q(this.configuration).getManifest(o, a, r).then((e) => e(this.axios, this.basePath));
1211
1815
  }
1212
1816
  /**
1213
1817
  * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
@@ -1219,11 +1823,11 @@ class qe extends A {
1219
1823
  * @throws {RequiredError}
1220
1824
  * @memberof ManifestsApi
1221
1825
  */
1222
- manifestAction(r, e, t, a) {
1223
- return Q(this.configuration).manifestAction(r, e, t, a).then((o) => o(this.axios, this.basePath));
1826
+ manifestAction(o, a, r, e) {
1827
+ return Q(this.configuration).manifestAction(o, a, r, e).then((t) => t(this.axios, this.basePath));
1224
1828
  }
1225
1829
  }
1226
- const Fe = {
1830
+ const ze = {
1227
1831
  Reload: "reload"
1228
1832
  }, ae = function(l) {
1229
1833
  return {
@@ -1236,16 +1840,16 @@ const Fe = {
1236
1840
  * @param {*} [options] Override http request option.
1237
1841
  * @throws {RequiredError}
1238
1842
  */
1239
- createMaterialization: async (r, e, t, a = {}) => {
1240
- d("createMaterialization", "projectName", r), d("createMaterialization", "packageName", e);
1241
- const o = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
1843
+ createMaterialization: async (o, a, r, e = {}) => {
1844
+ h("createMaterialization", "projectName", o), h("createMaterialization", "packageName", a);
1845
+ const t = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
1242
1846
  let n;
1243
1847
  l && (n = l.baseOptions);
1244
- const c = { method: "POST", ...n, ...a }, i = {}, p = {};
1848
+ const c = { method: "POST", ...n, ...e }, i = {}, p = {};
1245
1849
  i["Content-Type"] = "application/json", O(s, p);
1246
- let h = n && n.headers ? n.headers : {};
1247
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
1248
- url: g(s),
1850
+ let d = n && n.headers ? n.headers : {};
1851
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
1852
+ url: b(s),
1249
1853
  options: c
1250
1854
  };
1251
1855
  },
@@ -1258,16 +1862,16 @@ const Fe = {
1258
1862
  * @param {*} [options] Override http request option.
1259
1863
  * @throws {RequiredError}
1260
1864
  */
1261
- deleteMaterialization: async (r, e, t, a = {}) => {
1262
- d("deleteMaterialization", "projectName", r), d("deleteMaterialization", "packageName", e), d("deleteMaterialization", "materializationId", t);
1263
- const o = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
1865
+ deleteMaterialization: async (o, a, r, e = {}) => {
1866
+ h("deleteMaterialization", "projectName", o), h("deleteMaterialization", "packageName", a), h("deleteMaterialization", "materializationId", r);
1867
+ const t = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(t, V);
1264
1868
  let n;
1265
1869
  l && (n = l.baseOptions);
1266
- const c = { method: "DELETE", ...n, ...a }, i = {};
1870
+ const c = { method: "DELETE", ...n, ...e }, i = {};
1267
1871
  O(s, {});
1268
- let h = n && n.headers ? n.headers : {};
1269
- return c.headers = { ...i, ...h, ...a.headers }, {
1270
- url: g(s),
1872
+ let d = n && n.headers ? n.headers : {};
1873
+ return c.headers = { ...i, ...d, ...e.headers }, {
1874
+ url: b(s),
1271
1875
  options: c
1272
1876
  };
1273
1877
  },
@@ -1280,16 +1884,16 @@ const Fe = {
1280
1884
  * @param {*} [options] Override http request option.
1281
1885
  * @throws {RequiredError}
1282
1886
  */
1283
- getMaterialization: async (r, e, t, a = {}) => {
1284
- d("getMaterialization", "projectName", r), d("getMaterialization", "packageName", e), d("getMaterialization", "materializationId", t);
1285
- const o = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
1887
+ getMaterialization: async (o, a, r, e = {}) => {
1888
+ h("getMaterialization", "projectName", o), h("getMaterialization", "packageName", a), h("getMaterialization", "materializationId", r);
1889
+ const t = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(t, V);
1286
1890
  let n;
1287
1891
  l && (n = l.baseOptions);
1288
- const c = { method: "GET", ...n, ...a }, i = {};
1892
+ const c = { method: "GET", ...n, ...e }, i = {};
1289
1893
  O(s, {});
1290
- let h = n && n.headers ? n.headers : {};
1291
- return c.headers = { ...i, ...h, ...a.headers }, {
1292
- url: g(s),
1894
+ let d = n && n.headers ? n.headers : {};
1895
+ return c.headers = { ...i, ...d, ...e.headers }, {
1896
+ url: b(s),
1293
1897
  options: c
1294
1898
  };
1295
1899
  },
@@ -1303,16 +1907,16 @@ const Fe = {
1303
1907
  * @param {*} [options] Override http request option.
1304
1908
  * @throws {RequiredError}
1305
1909
  */
1306
- listMaterializations: async (r, e, t, a, o = {}) => {
1307
- d("listMaterializations", "projectName", r), d("listMaterializations", "packageName", e);
1308
- const s = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(s, P);
1910
+ listMaterializations: async (o, a, r, e, t = {}) => {
1911
+ h("listMaterializations", "projectName", o), h("listMaterializations", "packageName", a);
1912
+ const s = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(s, V);
1309
1913
  let c;
1310
1914
  l && (c = l.baseOptions);
1311
- const i = { method: "GET", ...c, ...o }, p = {}, h = {};
1312
- t !== void 0 && (h.limit = t), a !== void 0 && (h.offset = a), O(n, h);
1313
- let S = c && c.headers ? c.headers : {};
1314
- return i.headers = { ...p, ...S, ...o.headers }, {
1315
- url: g(n),
1915
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
1916
+ r !== void 0 && (d.limit = r), e !== void 0 && (d.offset = e), O(n, d);
1917
+ let u = c && c.headers ? c.headers : {};
1918
+ return i.headers = { ...p, ...u, ...t.headers }, {
1919
+ url: b(n),
1316
1920
  options: i
1317
1921
  };
1318
1922
  },
@@ -1326,22 +1930,22 @@ const Fe = {
1326
1930
  * @param {*} [options] Override http request option.
1327
1931
  * @throws {RequiredError}
1328
1932
  */
1329
- materializationAction: async (r, e, t, a, o = {}) => {
1330
- d("materializationAction", "projectName", r), d("materializationAction", "packageName", e), d("materializationAction", "materializationId", t), d("materializationAction", "action", a);
1331
- const s = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), n = new URL(s, P);
1933
+ materializationAction: async (o, a, r, e, t = {}) => {
1934
+ h("materializationAction", "projectName", o), h("materializationAction", "packageName", a), h("materializationAction", "materializationId", r), h("materializationAction", "action", e);
1935
+ const s = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(r))), n = new URL(s, V);
1332
1936
  let c;
1333
1937
  l && (c = l.baseOptions);
1334
- const i = { method: "POST", ...c, ...o }, p = {}, h = {};
1335
- a !== void 0 && (h.action = a), O(n, h);
1336
- let S = c && c.headers ? c.headers : {};
1337
- return i.headers = { ...p, ...S, ...o.headers }, {
1338
- url: g(n),
1938
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
1939
+ e !== void 0 && (d.action = e), O(n, d);
1940
+ let u = c && c.headers ? c.headers : {};
1941
+ return i.headers = { ...p, ...u, ...t.headers }, {
1942
+ url: b(n),
1339
1943
  options: i
1340
1944
  };
1341
1945
  }
1342
1946
  };
1343
- }, I = function(l) {
1344
- const r = ae(l);
1947
+ }, A = function(l) {
1948
+ const o = ae(l);
1345
1949
  return {
1346
1950
  /**
1347
1951
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
@@ -1352,9 +1956,9 @@ const Fe = {
1352
1956
  * @param {*} [options] Override http request option.
1353
1957
  * @throws {RequiredError}
1354
1958
  */
1355
- async createMaterialization(e, t, a, o) {
1356
- const s = await r.createMaterialization(e, t, a, o), n = l?.serverIndex ?? 0, c = V["MaterializationsApi.createMaterialization"]?.[n]?.url;
1357
- return (i, p) => b(s, u, m, l)(i, c || p);
1959
+ async createMaterialization(a, r, e, t) {
1960
+ const s = await o.createMaterialization(a, r, e, t), n = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[n]?.url;
1961
+ return (i, p) => S(s, m, P, l)(i, c || p);
1358
1962
  },
1359
1963
  /**
1360
1964
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -1365,9 +1969,9 @@ const Fe = {
1365
1969
  * @param {*} [options] Override http request option.
1366
1970
  * @throws {RequiredError}
1367
1971
  */
1368
- async deleteMaterialization(e, t, a, o) {
1369
- const s = await r.deleteMaterialization(e, t, a, o), n = l?.serverIndex ?? 0, c = V["MaterializationsApi.deleteMaterialization"]?.[n]?.url;
1370
- return (i, p) => b(s, u, m, l)(i, c || p);
1972
+ async deleteMaterialization(a, r, e, t) {
1973
+ const s = await o.deleteMaterialization(a, r, e, t), n = l?.serverIndex ?? 0, c = g["MaterializationsApi.deleteMaterialization"]?.[n]?.url;
1974
+ return (i, p) => S(s, m, P, l)(i, c || p);
1371
1975
  },
1372
1976
  /**
1373
1977
  *
@@ -1378,9 +1982,9 @@ const Fe = {
1378
1982
  * @param {*} [options] Override http request option.
1379
1983
  * @throws {RequiredError}
1380
1984
  */
1381
- async getMaterialization(e, t, a, o) {
1382
- const s = await r.getMaterialization(e, t, a, o), n = l?.serverIndex ?? 0, c = V["MaterializationsApi.getMaterialization"]?.[n]?.url;
1383
- return (i, p) => b(s, u, m, l)(i, c || p);
1985
+ async getMaterialization(a, r, e, t) {
1986
+ const s = await o.getMaterialization(a, r, e, t), n = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[n]?.url;
1987
+ return (i, p) => S(s, m, P, l)(i, c || p);
1384
1988
  },
1385
1989
  /**
1386
1990
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1392,9 +1996,9 @@ const Fe = {
1392
1996
  * @param {*} [options] Override http request option.
1393
1997
  * @throws {RequiredError}
1394
1998
  */
1395
- async listMaterializations(e, t, a, o, s) {
1396
- const n = await r.listMaterializations(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.listMaterializations"]?.[c]?.url;
1397
- return (p, h) => b(n, u, m, l)(p, i || h);
1999
+ async listMaterializations(a, r, e, t, s) {
2000
+ const n = await o.listMaterializations(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
2001
+ return (p, d) => S(n, m, P, l)(p, i || d);
1398
2002
  },
1399
2003
  /**
1400
2004
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
@@ -1406,13 +2010,13 @@ const Fe = {
1406
2010
  * @param {*} [options] Override http request option.
1407
2011
  * @throws {RequiredError}
1408
2012
  */
1409
- async materializationAction(e, t, a, o, s) {
1410
- const n = await r.materializationAction(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.materializationAction"]?.[c]?.url;
1411
- return (p, h) => b(n, u, m, l)(p, i || h);
2013
+ async materializationAction(a, r, e, t, s) {
2014
+ const n = await o.materializationAction(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
2015
+ return (p, d) => S(n, m, P, l)(p, i || d);
1412
2016
  }
1413
2017
  };
1414
- }, Ee = function(l, r, e) {
1415
- const t = I(l);
2018
+ }, Ee = function(l, o, a) {
2019
+ const r = A(l);
1416
2020
  return {
1417
2021
  /**
1418
2022
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
@@ -1423,8 +2027,8 @@ const Fe = {
1423
2027
  * @param {*} [options] Override http request option.
1424
2028
  * @throws {RequiredError}
1425
2029
  */
1426
- createMaterialization(a, o, s, n) {
1427
- return t.createMaterialization(a, o, s, n).then((c) => c(e, r));
2030
+ createMaterialization(e, t, s, n) {
2031
+ return r.createMaterialization(e, t, s, n).then((c) => c(a, o));
1428
2032
  },
1429
2033
  /**
1430
2034
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -1435,8 +2039,8 @@ const Fe = {
1435
2039
  * @param {*} [options] Override http request option.
1436
2040
  * @throws {RequiredError}
1437
2041
  */
1438
- deleteMaterialization(a, o, s, n) {
1439
- return t.deleteMaterialization(a, o, s, n).then((c) => c(e, r));
2042
+ deleteMaterialization(e, t, s, n) {
2043
+ return r.deleteMaterialization(e, t, s, n).then((c) => c(a, o));
1440
2044
  },
1441
2045
  /**
1442
2046
  *
@@ -1447,8 +2051,8 @@ const Fe = {
1447
2051
  * @param {*} [options] Override http request option.
1448
2052
  * @throws {RequiredError}
1449
2053
  */
1450
- getMaterialization(a, o, s, n) {
1451
- return t.getMaterialization(a, o, s, n).then((c) => c(e, r));
2054
+ getMaterialization(e, t, s, n) {
2055
+ return r.getMaterialization(e, t, s, n).then((c) => c(a, o));
1452
2056
  },
1453
2057
  /**
1454
2058
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1460,8 +2064,8 @@ const Fe = {
1460
2064
  * @param {*} [options] Override http request option.
1461
2065
  * @throws {RequiredError}
1462
2066
  */
1463
- listMaterializations(a, o, s, n, c) {
1464
- return t.listMaterializations(a, o, s, n, c).then((i) => i(e, r));
2067
+ listMaterializations(e, t, s, n, c) {
2068
+ return r.listMaterializations(e, t, s, n, c).then((i) => i(a, o));
1465
2069
  },
1466
2070
  /**
1467
2071
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
@@ -1473,12 +2077,12 @@ const Fe = {
1473
2077
  * @param {*} [options] Override http request option.
1474
2078
  * @throws {RequiredError}
1475
2079
  */
1476
- materializationAction(a, o, s, n, c) {
1477
- return t.materializationAction(a, o, s, n, c).then((i) => i(e, r));
2080
+ materializationAction(e, t, s, n, c) {
2081
+ return r.materializationAction(e, t, s, n, c).then((i) => i(a, o));
1478
2082
  }
1479
2083
  };
1480
2084
  };
1481
- class fe extends A {
2085
+ class Le extends C {
1482
2086
  /**
1483
2087
  * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
1484
2088
  * @summary Create a materialization
@@ -1489,8 +2093,8 @@ class fe extends A {
1489
2093
  * @throws {RequiredError}
1490
2094
  * @memberof MaterializationsApi
1491
2095
  */
1492
- createMaterialization(r, e, t, a) {
1493
- return I(this.configuration).createMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
2096
+ createMaterialization(o, a, r, e) {
2097
+ return A(this.configuration).createMaterialization(o, a, r, e).then((t) => t(this.axios, this.basePath));
1494
2098
  }
1495
2099
  /**
1496
2100
  * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
@@ -1502,8 +2106,8 @@ class fe extends A {
1502
2106
  * @throws {RequiredError}
1503
2107
  * @memberof MaterializationsApi
1504
2108
  */
1505
- deleteMaterialization(r, e, t, a) {
1506
- return I(this.configuration).deleteMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
2109
+ deleteMaterialization(o, a, r, e) {
2110
+ return A(this.configuration).deleteMaterialization(o, a, r, e).then((t) => t(this.axios, this.basePath));
1507
2111
  }
1508
2112
  /**
1509
2113
  *
@@ -1515,8 +2119,8 @@ class fe extends A {
1515
2119
  * @throws {RequiredError}
1516
2120
  * @memberof MaterializationsApi
1517
2121
  */
1518
- getMaterialization(r, e, t, a) {
1519
- return I(this.configuration).getMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
2122
+ getMaterialization(o, a, r, e) {
2123
+ return A(this.configuration).getMaterialization(o, a, r, e).then((t) => t(this.axios, this.basePath));
1520
2124
  }
1521
2125
  /**
1522
2126
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1529,8 +2133,8 @@ class fe extends A {
1529
2133
  * @throws {RequiredError}
1530
2134
  * @memberof MaterializationsApi
1531
2135
  */
1532
- listMaterializations(r, e, t, a, o) {
1533
- return I(this.configuration).listMaterializations(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
2136
+ listMaterializations(o, a, r, e, t) {
2137
+ return A(this.configuration).listMaterializations(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1534
2138
  }
1535
2139
  /**
1536
2140
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
@@ -1543,11 +2147,11 @@ class fe extends A {
1543
2147
  * @throws {RequiredError}
1544
2148
  * @memberof MaterializationsApi
1545
2149
  */
1546
- materializationAction(r, e, t, a, o) {
1547
- return I(this.configuration).materializationAction(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
2150
+ materializationAction(o, a, r, e, t) {
2151
+ return A(this.configuration).materializationAction(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1548
2152
  }
1549
2153
  }
1550
- const Le = {
2154
+ const He = {
1551
2155
  Start: "start",
1552
2156
  Stop: "stop"
1553
2157
  }, te = function(l) {
@@ -1562,16 +2166,16 @@ const Le = {
1562
2166
  * @param {*} [options] Override http request option.
1563
2167
  * @throws {RequiredError}
1564
2168
  */
1565
- compileModelSource: async (r, e, t, a, o = {}) => {
1566
- d("compileModelSource", "projectName", r), d("compileModelSource", "packageName", e), d("compileModelSource", "path", t), d("compileModelSource", "compileRequest", a);
1567
- const s = "/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
2169
+ compileModelSource: async (o, a, r, e, t = {}) => {
2170
+ h("compileModelSource", "projectName", o), h("compileModelSource", "packageName", a), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", e);
2171
+ const s = "/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1568
2172
  let c;
1569
2173
  l && (c = l.baseOptions);
1570
- const i = { method: "POST", ...c, ...o }, p = {}, h = {};
1571
- p["Content-Type"] = "application/json", O(n, h);
1572
- let S = c && c.headers ? c.headers : {};
1573
- return i.headers = { ...p, ...S, ...o.headers }, i.data = C(a, i, l), {
1574
- url: g(n),
2174
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2175
+ p["Content-Type"] = "application/json", O(n, d);
2176
+ let u = c && c.headers ? c.headers : {};
2177
+ return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
2178
+ url: b(n),
1575
2179
  options: i
1576
2180
  };
1577
2181
  },
@@ -1585,16 +2189,16 @@ const Le = {
1585
2189
  * @param {*} [options] Override http request option.
1586
2190
  * @throws {RequiredError}
1587
2191
  */
1588
- executeQueryModel: async (r, e, t, a, o = {}) => {
1589
- d("executeQueryModel", "projectName", r), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", t), d("executeQueryModel", "queryRequest", a);
1590
- const s = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
2192
+ executeQueryModel: async (o, a, r, e, t = {}) => {
2193
+ h("executeQueryModel", "projectName", o), h("executeQueryModel", "packageName", a), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", e);
2194
+ const s = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1591
2195
  let c;
1592
2196
  l && (c = l.baseOptions);
1593
- const i = { method: "POST", ...c, ...o }, p = {}, h = {};
1594
- p["Content-Type"] = "application/json", O(n, h);
1595
- let S = c && c.headers ? c.headers : {};
1596
- return i.headers = { ...p, ...S, ...o.headers }, i.data = C(a, i, l), {
1597
- url: g(n),
2197
+ const i = { method: "POST", ...c, ...t }, p = {}, d = {};
2198
+ p["Content-Type"] = "application/json", O(n, d);
2199
+ let u = c && c.headers ? c.headers : {};
2200
+ return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
2201
+ url: b(n),
1598
2202
  options: i
1599
2203
  };
1600
2204
  },
@@ -1608,16 +2212,16 @@ const Le = {
1608
2212
  * @param {*} [options] Override http request option.
1609
2213
  * @throws {RequiredError}
1610
2214
  */
1611
- getModel: async (r, e, t, a, o = {}) => {
1612
- d("getModel", "projectName", r), d("getModel", "packageName", e), d("getModel", "path", t);
1613
- const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
2215
+ getModel: async (o, a, r, e, t = {}) => {
2216
+ h("getModel", "projectName", o), h("getModel", "packageName", a), h("getModel", "path", r);
2217
+ const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1614
2218
  let c;
1615
2219
  l && (c = l.baseOptions);
1616
- const i = { method: "GET", ...c, ...o }, p = {}, h = {};
1617
- a !== void 0 && (h.versionId = a), O(n, h);
1618
- let S = c && c.headers ? c.headers : {};
1619
- return i.headers = { ...p, ...S, ...o.headers }, {
1620
- url: g(n),
2220
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2221
+ e !== void 0 && (d.versionId = e), O(n, d);
2222
+ let u = c && c.headers ? c.headers : {};
2223
+ return i.headers = { ...p, ...u, ...t.headers }, {
2224
+ url: b(n),
1621
2225
  options: i
1622
2226
  };
1623
2227
  },
@@ -1630,22 +2234,22 @@ const Le = {
1630
2234
  * @param {*} [options] Override http request option.
1631
2235
  * @throws {RequiredError}
1632
2236
  */
1633
- listModels: async (r, e, t, a = {}) => {
1634
- d("listModels", "projectName", r), d("listModels", "packageName", e);
1635
- const o = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2237
+ listModels: async (o, a, r, e = {}) => {
2238
+ h("listModels", "projectName", o), h("listModels", "packageName", a);
2239
+ const t = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
1636
2240
  let n;
1637
2241
  l && (n = l.baseOptions);
1638
- const c = { method: "GET", ...n, ...a }, i = {}, p = {};
1639
- t !== void 0 && (p.versionId = t), O(s, p);
1640
- let h = n && n.headers ? n.headers : {};
1641
- return c.headers = { ...i, ...h, ...a.headers }, {
1642
- url: g(s),
2242
+ const c = { method: "GET", ...n, ...e }, i = {}, p = {};
2243
+ r !== void 0 && (p.versionId = r), O(s, p);
2244
+ let d = n && n.headers ? n.headers : {};
2245
+ return c.headers = { ...i, ...d, ...e.headers }, {
2246
+ url: b(s),
1643
2247
  options: c
1644
2248
  };
1645
2249
  }
1646
2250
  };
1647
- }, k = function(l) {
1648
- const r = te(l);
2251
+ }, R = function(l) {
2252
+ const o = te(l);
1649
2253
  return {
1650
2254
  /**
1651
2255
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -1657,9 +2261,9 @@ const Le = {
1657
2261
  * @param {*} [options] Override http request option.
1658
2262
  * @throws {RequiredError}
1659
2263
  */
1660
- async compileModelSource(e, t, a, o, s) {
1661
- const n = await r.compileModelSource(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ModelsApi.compileModelSource"]?.[c]?.url;
1662
- return (p, h) => b(n, u, m, l)(p, i || h);
2264
+ async compileModelSource(a, r, e, t, s) {
2265
+ const n = await o.compileModelSource(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2266
+ return (p, d) => S(n, m, P, l)(p, i || d);
1663
2267
  },
1664
2268
  /**
1665
2269
  * 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.
@@ -1671,9 +2275,9 @@ const Le = {
1671
2275
  * @param {*} [options] Override http request option.
1672
2276
  * @throws {RequiredError}
1673
2277
  */
1674
- async executeQueryModel(e, t, a, o, s) {
1675
- const n = await r.executeQueryModel(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ModelsApi.executeQueryModel"]?.[c]?.url;
1676
- return (p, h) => b(n, u, m, l)(p, i || h);
2278
+ async executeQueryModel(a, r, e, t, s) {
2279
+ const n = await o.executeQueryModel(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2280
+ return (p, d) => S(n, m, P, l)(p, i || d);
1677
2281
  },
1678
2282
  /**
1679
2283
  * 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.
@@ -1685,9 +2289,9 @@ const Le = {
1685
2289
  * @param {*} [options] Override http request option.
1686
2290
  * @throws {RequiredError}
1687
2291
  */
1688
- async getModel(e, t, a, o, s) {
1689
- const n = await r.getModel(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ModelsApi.getModel"]?.[c]?.url;
1690
- return (p, h) => b(n, u, m, l)(p, i || h);
2292
+ async getModel(a, r, e, t, s) {
2293
+ const n = await o.getModel(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2294
+ return (p, d) => S(n, m, P, l)(p, i || d);
1691
2295
  },
1692
2296
  /**
1693
2297
  * 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.
@@ -1698,13 +2302,13 @@ const Le = {
1698
2302
  * @param {*} [options] Override http request option.
1699
2303
  * @throws {RequiredError}
1700
2304
  */
1701
- async listModels(e, t, a, o) {
1702
- const s = await r.listModels(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ModelsApi.listModels"]?.[n]?.url;
1703
- return (i, p) => b(s, u, m, l)(i, c || p);
2305
+ async listModels(a, r, e, t) {
2306
+ const s = await o.listModels(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[n]?.url;
2307
+ return (i, p) => S(s, m, P, l)(i, c || p);
1704
2308
  }
1705
2309
  };
1706
- }, He = function(l, r, e) {
1707
- const t = k(l);
2310
+ }, fe = function(l, o, a) {
2311
+ const r = R(l);
1708
2312
  return {
1709
2313
  /**
1710
2314
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -1716,8 +2320,8 @@ const Le = {
1716
2320
  * @param {*} [options] Override http request option.
1717
2321
  * @throws {RequiredError}
1718
2322
  */
1719
- compileModelSource(a, o, s, n, c) {
1720
- return t.compileModelSource(a, o, s, n, c).then((i) => i(e, r));
2323
+ compileModelSource(e, t, s, n, c) {
2324
+ return r.compileModelSource(e, t, s, n, c).then((i) => i(a, o));
1721
2325
  },
1722
2326
  /**
1723
2327
  * 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.
@@ -1729,8 +2333,8 @@ const Le = {
1729
2333
  * @param {*} [options] Override http request option.
1730
2334
  * @throws {RequiredError}
1731
2335
  */
1732
- executeQueryModel(a, o, s, n, c) {
1733
- return t.executeQueryModel(a, o, s, n, c).then((i) => i(e, r));
2336
+ executeQueryModel(e, t, s, n, c) {
2337
+ return r.executeQueryModel(e, t, s, n, c).then((i) => i(a, o));
1734
2338
  },
1735
2339
  /**
1736
2340
  * 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.
@@ -1742,8 +2346,8 @@ const Le = {
1742
2346
  * @param {*} [options] Override http request option.
1743
2347
  * @throws {RequiredError}
1744
2348
  */
1745
- getModel(a, o, s, n, c) {
1746
- return t.getModel(a, o, s, n, c).then((i) => i(e, r));
2349
+ getModel(e, t, s, n, c) {
2350
+ return r.getModel(e, t, s, n, c).then((i) => i(a, o));
1747
2351
  },
1748
2352
  /**
1749
2353
  * 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.
@@ -1754,12 +2358,12 @@ const Le = {
1754
2358
  * @param {*} [options] Override http request option.
1755
2359
  * @throws {RequiredError}
1756
2360
  */
1757
- listModels(a, o, s, n) {
1758
- return t.listModels(a, o, s, n).then((c) => c(e, r));
2361
+ listModels(e, t, s, n) {
2362
+ return r.listModels(e, t, s, n).then((c) => c(a, o));
1759
2363
  }
1760
2364
  };
1761
2365
  };
1762
- class re extends A {
2366
+ class re extends C {
1763
2367
  /**
1764
2368
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
1765
2369
  * @summary Compile Malloy source code
@@ -1771,8 +2375,8 @@ class re extends A {
1771
2375
  * @throws {RequiredError}
1772
2376
  * @memberof ModelsApi
1773
2377
  */
1774
- compileModelSource(r, e, t, a, o) {
1775
- return k(this.configuration).compileModelSource(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
2378
+ compileModelSource(o, a, r, e, t) {
2379
+ return R(this.configuration).compileModelSource(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1776
2380
  }
1777
2381
  /**
1778
2382
  * 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.
@@ -1785,8 +2389,8 @@ class re extends A {
1785
2389
  * @throws {RequiredError}
1786
2390
  * @memberof ModelsApi
1787
2391
  */
1788
- executeQueryModel(r, e, t, a, o) {
1789
- return k(this.configuration).executeQueryModel(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
2392
+ executeQueryModel(o, a, r, e, t) {
2393
+ return R(this.configuration).executeQueryModel(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1790
2394
  }
1791
2395
  /**
1792
2396
  * 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.
@@ -1799,8 +2403,8 @@ class re extends A {
1799
2403
  * @throws {RequiredError}
1800
2404
  * @memberof ModelsApi
1801
2405
  */
1802
- getModel(r, e, t, a, o) {
1803
- return k(this.configuration).getModel(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
2406
+ getModel(o, a, r, e, t) {
2407
+ return R(this.configuration).getModel(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
1804
2408
  }
1805
2409
  /**
1806
2410
  * 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.
@@ -1812,8 +2416,8 @@ class re extends A {
1812
2416
  * @throws {RequiredError}
1813
2417
  * @memberof ModelsApi
1814
2418
  */
1815
- listModels(r, e, t, a) {
1816
- return k(this.configuration).listModels(r, e, t, a).then((o) => o(this.axios, this.basePath));
2419
+ listModels(o, a, r, e) {
2420
+ return R(this.configuration).listModels(o, a, r, e).then((t) => t(this.axios, this.basePath));
1817
2421
  }
1818
2422
  }
1819
2423
  const oe = function(l) {
@@ -1831,17 +2435,17 @@ const oe = function(l) {
1831
2435
  * @param {*} [options] Override http request option.
1832
2436
  * @throws {RequiredError}
1833
2437
  */
1834
- executeNotebookCell: async (r, e, t, a, o, s, n, c = {}) => {
1835
- d("executeNotebookCell", "projectName", r), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", t), d("executeNotebookCell", "cellIndex", a);
1836
- const i = "/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(i, P);
1837
- let h;
1838
- l && (h = l.baseOptions);
1839
- const S = { method: "GET", ...h, ...c }, j = {}, x = {};
1840
- o !== void 0 && (x.versionId = o), s !== void 0 && (x.filter_params = s), n !== void 0 && (x.bypass_filters = n), O(p, x);
1841
- let w = h && h.headers ? h.headers : {};
1842
- return S.headers = { ...j, ...w, ...c.headers }, {
1843
- url: g(p),
1844
- options: S
2438
+ executeNotebookCell: async (o, a, r, e, t, s, n, c = {}) => {
2439
+ h("executeNotebookCell", "projectName", o), h("executeNotebookCell", "packageName", a), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", e);
2440
+ const i = "/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(e))), p = new URL(i, V);
2441
+ let d;
2442
+ l && (d = l.baseOptions);
2443
+ const u = { method: "GET", ...d, ...c }, k = {}, j = {};
2444
+ t !== void 0 && (j.versionId = t), s !== void 0 && (j.filter_params = s), n !== void 0 && (j.bypass_filters = n), O(p, j);
2445
+ let w = d && d.headers ? d.headers : {};
2446
+ return u.headers = { ...k, ...w, ...c.headers }, {
2447
+ url: b(p),
2448
+ options: u
1845
2449
  };
1846
2450
  },
1847
2451
  /**
@@ -1854,16 +2458,16 @@ const oe = function(l) {
1854
2458
  * @param {*} [options] Override http request option.
1855
2459
  * @throws {RequiredError}
1856
2460
  */
1857
- getNotebook: async (r, e, t, a, o = {}) => {
1858
- d("getNotebook", "projectName", r), d("getNotebook", "packageName", e), d("getNotebook", "path", t);
1859
- const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
2461
+ getNotebook: async (o, a, r, e, t = {}) => {
2462
+ h("getNotebook", "projectName", o), h("getNotebook", "packageName", a), h("getNotebook", "path", r);
2463
+ const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1860
2464
  let c;
1861
2465
  l && (c = l.baseOptions);
1862
- const i = { method: "GET", ...c, ...o }, p = {}, h = {};
1863
- a !== void 0 && (h.versionId = a), O(n, h);
1864
- let S = c && c.headers ? c.headers : {};
1865
- return i.headers = { ...p, ...S, ...o.headers }, {
1866
- url: g(n),
2466
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2467
+ e !== void 0 && (d.versionId = e), O(n, d);
2468
+ let u = c && c.headers ? c.headers : {};
2469
+ return i.headers = { ...p, ...u, ...t.headers }, {
2470
+ url: b(n),
1867
2471
  options: i
1868
2472
  };
1869
2473
  },
@@ -1876,22 +2480,22 @@ const oe = function(l) {
1876
2480
  * @param {*} [options] Override http request option.
1877
2481
  * @throws {RequiredError}
1878
2482
  */
1879
- listNotebooks: async (r, e, t, a = {}) => {
1880
- d("listNotebooks", "projectName", r), d("listNotebooks", "packageName", e);
1881
- const o = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2483
+ listNotebooks: async (o, a, r, e = {}) => {
2484
+ h("listNotebooks", "projectName", o), h("listNotebooks", "packageName", a);
2485
+ const t = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
1882
2486
  let n;
1883
2487
  l && (n = l.baseOptions);
1884
- const c = { method: "GET", ...n, ...a }, i = {}, p = {};
1885
- t !== void 0 && (p.versionId = t), O(s, p);
1886
- let h = n && n.headers ? n.headers : {};
1887
- return c.headers = { ...i, ...h, ...a.headers }, {
1888
- url: g(s),
2488
+ const c = { method: "GET", ...n, ...e }, i = {}, p = {};
2489
+ r !== void 0 && (p.versionId = r), O(s, p);
2490
+ let d = n && n.headers ? n.headers : {};
2491
+ return c.headers = { ...i, ...d, ...e.headers }, {
2492
+ url: b(s),
1889
2493
  options: c
1890
2494
  };
1891
2495
  }
1892
2496
  };
1893
- }, U = function(l) {
1894
- const r = oe(l);
2497
+ }, v = function(l) {
2498
+ const o = oe(l);
1895
2499
  return {
1896
2500
  /**
1897
2501
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -1906,9 +2510,9 @@ const oe = function(l) {
1906
2510
  * @param {*} [options] Override http request option.
1907
2511
  * @throws {RequiredError}
1908
2512
  */
1909
- async executeNotebookCell(e, t, a, o, s, n, c, i) {
1910
- const p = await r.executeNotebookCell(e, t, a, o, s, n, c, i), h = l?.serverIndex ?? 0, S = V["NotebooksApi.executeNotebookCell"]?.[h]?.url;
1911
- return (j, x) => b(p, u, m, l)(j, S || x);
2513
+ async executeNotebookCell(a, r, e, t, s, n, c, i) {
2514
+ const p = await o.executeNotebookCell(a, r, e, t, s, n, c, i), d = l?.serverIndex ?? 0, u = g["NotebooksApi.executeNotebookCell"]?.[d]?.url;
2515
+ return (k, j) => S(p, m, P, l)(k, u || j);
1912
2516
  },
1913
2517
  /**
1914
2518
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -1920,9 +2524,9 @@ const oe = function(l) {
1920
2524
  * @param {*} [options] Override http request option.
1921
2525
  * @throws {RequiredError}
1922
2526
  */
1923
- async getNotebook(e, t, a, o, s) {
1924
- const n = await r.getNotebook(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["NotebooksApi.getNotebook"]?.[c]?.url;
1925
- return (p, h) => b(n, u, m, l)(p, i || h);
2527
+ async getNotebook(a, r, e, t, s) {
2528
+ const n = await o.getNotebook(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2529
+ return (p, d) => S(n, m, P, l)(p, i || d);
1926
2530
  },
1927
2531
  /**
1928
2532
  * 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.
@@ -1933,13 +2537,13 @@ const oe = function(l) {
1933
2537
  * @param {*} [options] Override http request option.
1934
2538
  * @throws {RequiredError}
1935
2539
  */
1936
- async listNotebooks(e, t, a, o) {
1937
- const s = await r.listNotebooks(e, t, a, o), n = l?.serverIndex ?? 0, c = V["NotebooksApi.listNotebooks"]?.[n]?.url;
1938
- return (i, p) => b(s, u, m, l)(i, c || p);
2540
+ async listNotebooks(a, r, e, t) {
2541
+ const s = await o.listNotebooks(a, r, e, t), n = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[n]?.url;
2542
+ return (i, p) => S(s, m, P, l)(i, c || p);
1939
2543
  }
1940
2544
  };
1941
- }, De = function(l, r, e) {
1942
- const t = U(l);
2545
+ }, De = function(l, o, a) {
2546
+ const r = v(l);
1943
2547
  return {
1944
2548
  /**
1945
2549
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
@@ -1954,8 +2558,8 @@ const oe = function(l) {
1954
2558
  * @param {*} [options] Override http request option.
1955
2559
  * @throws {RequiredError}
1956
2560
  */
1957
- executeNotebookCell(a, o, s, n, c, i, p, h) {
1958
- return t.executeNotebookCell(a, o, s, n, c, i, p, h).then((S) => S(e, r));
2561
+ executeNotebookCell(e, t, s, n, c, i, p, d) {
2562
+ return r.executeNotebookCell(e, t, s, n, c, i, p, d).then((u) => u(a, o));
1959
2563
  },
1960
2564
  /**
1961
2565
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -1967,8 +2571,8 @@ const oe = function(l) {
1967
2571
  * @param {*} [options] Override http request option.
1968
2572
  * @throws {RequiredError}
1969
2573
  */
1970
- getNotebook(a, o, s, n, c) {
1971
- return t.getNotebook(a, o, s, n, c).then((i) => i(e, r));
2574
+ getNotebook(e, t, s, n, c) {
2575
+ return r.getNotebook(e, t, s, n, c).then((i) => i(a, o));
1972
2576
  },
1973
2577
  /**
1974
2578
  * 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.
@@ -1979,12 +2583,12 @@ const oe = function(l) {
1979
2583
  * @param {*} [options] Override http request option.
1980
2584
  * @throws {RequiredError}
1981
2585
  */
1982
- listNotebooks(a, o, s, n) {
1983
- return t.listNotebooks(a, o, s, n).then((c) => c(e, r));
2586
+ listNotebooks(e, t, s, n) {
2587
+ return r.listNotebooks(e, t, s, n).then((c) => c(a, o));
1984
2588
  }
1985
2589
  };
1986
2590
  };
1987
- class se extends A {
2591
+ class se extends C {
1988
2592
  /**
1989
2593
  * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
1990
2594
  * @summary Execute a specific notebook cell
@@ -1999,8 +2603,8 @@ class se extends A {
1999
2603
  * @throws {RequiredError}
2000
2604
  * @memberof NotebooksApi
2001
2605
  */
2002
- executeNotebookCell(r, e, t, a, o, s, n, c) {
2003
- return U(this.configuration).executeNotebookCell(r, e, t, a, o, s, n, c).then((i) => i(this.axios, this.basePath));
2606
+ executeNotebookCell(o, a, r, e, t, s, n, c) {
2607
+ return v(this.configuration).executeNotebookCell(o, a, r, e, t, s, n, c).then((i) => i(this.axios, this.basePath));
2004
2608
  }
2005
2609
  /**
2006
2610
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2013,8 +2617,8 @@ class se extends A {
2013
2617
  * @throws {RequiredError}
2014
2618
  * @memberof NotebooksApi
2015
2619
  */
2016
- getNotebook(r, e, t, a, o) {
2017
- return U(this.configuration).getNotebook(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
2620
+ getNotebook(o, a, r, e, t) {
2621
+ return v(this.configuration).getNotebook(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
2018
2622
  }
2019
2623
  /**
2020
2624
  * 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.
@@ -2026,8 +2630,8 @@ class se extends A {
2026
2630
  * @throws {RequiredError}
2027
2631
  * @memberof NotebooksApi
2028
2632
  */
2029
- listNotebooks(r, e, t, a) {
2030
- return U(this.configuration).listNotebooks(r, e, t, a).then((o) => o(this.axios, this.basePath));
2633
+ listNotebooks(o, a, r, e) {
2634
+ return v(this.configuration).listNotebooks(o, a, r, e).then((t) => t(this.axios, this.basePath));
2031
2635
  }
2032
2636
  }
2033
2637
  const We = {
@@ -2044,16 +2648,16 @@ const We = {
2044
2648
  * @param {*} [options] Override http request option.
2045
2649
  * @throws {RequiredError}
2046
2650
  */
2047
- createPackage: async (r, e, t, a = {}) => {
2048
- d("createPackage", "projectName", r), d("createPackage", "_package", e);
2049
- const o = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(r))), s = new URL(o, P);
2651
+ createPackage: async (o, a, r, e = {}) => {
2652
+ h("createPackage", "projectName", o), h("createPackage", "_package", a);
2653
+ const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(o))), s = new URL(t, V);
2050
2654
  let n;
2051
2655
  l && (n = l.baseOptions);
2052
- const c = { method: "POST", ...n, ...a }, i = {}, p = {};
2053
- t !== void 0 && (p.autoLoadManifest = t), i["Content-Type"] = "application/json", O(s, p);
2054
- let h = n && n.headers ? n.headers : {};
2055
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(e, c, l), {
2056
- url: g(s),
2656
+ const c = { method: "POST", ...n, ...e }, i = {}, p = {};
2657
+ r !== void 0 && (p.autoLoadManifest = r), i["Content-Type"] = "application/json", O(s, p);
2658
+ let d = n && n.headers ? n.headers : {};
2659
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = y(a, c, l), {
2660
+ url: b(s),
2057
2661
  options: c
2058
2662
  };
2059
2663
  },
@@ -2065,16 +2669,16 @@ const We = {
2065
2669
  * @param {*} [options] Override http request option.
2066
2670
  * @throws {RequiredError}
2067
2671
  */
2068
- deletePackage: async (r, e, t = {}) => {
2069
- d("deletePackage", "projectName", r), d("deletePackage", "packageName", e);
2070
- const a = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(a, P);
2672
+ deletePackage: async (o, a, r = {}) => {
2673
+ h("deletePackage", "projectName", o), h("deletePackage", "packageName", a);
2674
+ const e = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
2071
2675
  let s;
2072
2676
  l && (s = l.baseOptions);
2073
- const n = { method: "DELETE", ...s, ...t }, c = {};
2074
- O(o, {});
2677
+ const n = { method: "DELETE", ...s, ...r }, c = {};
2678
+ O(t, {});
2075
2679
  let p = s && s.headers ? s.headers : {};
2076
- return n.headers = { ...c, ...p, ...t.headers }, {
2077
- url: g(o),
2680
+ return n.headers = { ...c, ...p, ...r.headers }, {
2681
+ url: b(t),
2078
2682
  options: n
2079
2683
  };
2080
2684
  },
@@ -2088,16 +2692,16 @@ const We = {
2088
2692
  * @param {*} [options] Override http request option.
2089
2693
  * @throws {RequiredError}
2090
2694
  */
2091
- getPackage: async (r, e, t, a, o = {}) => {
2092
- d("getPackage", "projectName", r), d("getPackage", "packageName", e);
2093
- const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(s, P);
2695
+ getPackage: async (o, a, r, e, t = {}) => {
2696
+ h("getPackage", "projectName", o), h("getPackage", "packageName", a);
2697
+ const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(s, V);
2094
2698
  let c;
2095
2699
  l && (c = l.baseOptions);
2096
- const i = { method: "GET", ...c, ...o }, p = {}, h = {};
2097
- t !== void 0 && (h.versionId = t), a !== void 0 && (h.reload = a), O(n, h);
2098
- let S = c && c.headers ? c.headers : {};
2099
- return i.headers = { ...p, ...S, ...o.headers }, {
2100
- url: g(n),
2700
+ const i = { method: "GET", ...c, ...t }, p = {}, d = {};
2701
+ r !== void 0 && (d.versionId = r), e !== void 0 && (d.reload = e), O(n, d);
2702
+ let u = c && c.headers ? c.headers : {};
2703
+ return i.headers = { ...p, ...u, ...t.headers }, {
2704
+ url: b(n),
2101
2705
  options: i
2102
2706
  };
2103
2707
  },
@@ -2108,16 +2712,16 @@ const We = {
2108
2712
  * @param {*} [options] Override http request option.
2109
2713
  * @throws {RequiredError}
2110
2714
  */
2111
- listPackages: async (r, e = {}) => {
2112
- d("listPackages", "projectName", r);
2113
- const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(r))), a = new URL(t, P);
2114
- let o;
2115
- l && (o = l.baseOptions);
2116
- const s = { method: "GET", ...o, ...e }, n = {};
2117
- O(a, {});
2118
- let i = o && o.headers ? o.headers : {};
2119
- return s.headers = { ...n, ...i, ...e.headers }, {
2120
- url: g(a),
2715
+ listPackages: async (o, a = {}) => {
2716
+ h("listPackages", "projectName", o);
2717
+ const r = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(o))), e = new URL(r, V);
2718
+ let t;
2719
+ l && (t = l.baseOptions);
2720
+ const s = { method: "GET", ...t, ...a }, n = {};
2721
+ O(e, {});
2722
+ let i = t && t.headers ? t.headers : {};
2723
+ return s.headers = { ...n, ...i, ...a.headers }, {
2724
+ url: b(e),
2121
2725
  options: s
2122
2726
  };
2123
2727
  },
@@ -2130,22 +2734,22 @@ const We = {
2130
2734
  * @param {*} [options] Override http request option.
2131
2735
  * @throws {RequiredError}
2132
2736
  */
2133
- updatePackage: async (r, e, t, a = {}) => {
2134
- d("updatePackage", "projectName", r), d("updatePackage", "packageName", e), d("updatePackage", "_package", t);
2135
- const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2737
+ updatePackage: async (o, a, r, e = {}) => {
2738
+ h("updatePackage", "projectName", o), h("updatePackage", "packageName", a), h("updatePackage", "_package", r);
2739
+ const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
2136
2740
  let n;
2137
2741
  l && (n = l.baseOptions);
2138
- const c = { method: "PATCH", ...n, ...a }, i = {}, p = {};
2742
+ const c = { method: "PATCH", ...n, ...e }, i = {}, p = {};
2139
2743
  i["Content-Type"] = "application/json", O(s, p);
2140
- let h = n && n.headers ? n.headers : {};
2141
- return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
2142
- url: g(s),
2744
+ let d = n && n.headers ? n.headers : {};
2745
+ return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
2746
+ url: b(s),
2143
2747
  options: c
2144
2748
  };
2145
2749
  }
2146
2750
  };
2147
2751
  }, N = function(l) {
2148
- const r = ne(l);
2752
+ const o = ne(l);
2149
2753
  return {
2150
2754
  /**
2151
2755
  * Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
@@ -2156,9 +2760,9 @@ const We = {
2156
2760
  * @param {*} [options] Override http request option.
2157
2761
  * @throws {RequiredError}
2158
2762
  */
2159
- async createPackage(e, t, a, o) {
2160
- const s = await r.createPackage(e, t, a, o), n = l?.serverIndex ?? 0, c = V["PackagesApi.createPackage"]?.[n]?.url;
2161
- return (i, p) => b(s, u, m, l)(i, c || p);
2763
+ async createPackage(a, r, e, t) {
2764
+ const s = await o.createPackage(a, r, e, t), n = l?.serverIndex ?? 0, c = g["PackagesApi.createPackage"]?.[n]?.url;
2765
+ return (i, p) => S(s, m, P, l)(i, c || p);
2162
2766
  },
2163
2767
  /**
2164
2768
  * 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.
@@ -2168,9 +2772,9 @@ const We = {
2168
2772
  * @param {*} [options] Override http request option.
2169
2773
  * @throws {RequiredError}
2170
2774
  */
2171
- async deletePackage(e, t, a) {
2172
- const o = await r.deletePackage(e, t, a), s = l?.serverIndex ?? 0, n = V["PackagesApi.deletePackage"]?.[s]?.url;
2173
- return (c, i) => b(o, u, m, l)(c, n || i);
2775
+ async deletePackage(a, r, e) {
2776
+ const t = await o.deletePackage(a, r, e), s = l?.serverIndex ?? 0, n = g["PackagesApi.deletePackage"]?.[s]?.url;
2777
+ return (c, i) => S(t, m, P, l)(c, n || i);
2174
2778
  },
2175
2779
  /**
2176
2780
  * 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.
@@ -2182,9 +2786,9 @@ const We = {
2182
2786
  * @param {*} [options] Override http request option.
2183
2787
  * @throws {RequiredError}
2184
2788
  */
2185
- async getPackage(e, t, a, o, s) {
2186
- const n = await r.getPackage(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["PackagesApi.getPackage"]?.[c]?.url;
2187
- return (p, h) => b(n, u, m, l)(p, i || h);
2789
+ async getPackage(a, r, e, t, s) {
2790
+ const n = await o.getPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2791
+ return (p, d) => S(n, m, P, l)(p, i || d);
2188
2792
  },
2189
2793
  /**
2190
2794
  * Retrieves a list of all Malloy packages within the specified project. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
@@ -2193,9 +2797,9 @@ const We = {
2193
2797
  * @param {*} [options] Override http request option.
2194
2798
  * @throws {RequiredError}
2195
2799
  */
2196
- async listPackages(e, t) {
2197
- const a = await r.listPackages(e, t), o = l?.serverIndex ?? 0, s = V["PackagesApi.listPackages"]?.[o]?.url;
2198
- return (n, c) => b(a, u, m, l)(n, s || c);
2800
+ async listPackages(a, r) {
2801
+ const e = await o.listPackages(a, r), t = l?.serverIndex ?? 0, s = g["PackagesApi.listPackages"]?.[t]?.url;
2802
+ return (n, c) => S(e, m, P, l)(n, s || c);
2199
2803
  },
2200
2804
  /**
2201
2805
  * 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.
@@ -2206,13 +2810,13 @@ const We = {
2206
2810
  * @param {*} [options] Override http request option.
2207
2811
  * @throws {RequiredError}
2208
2812
  */
2209
- async updatePackage(e, t, a, o) {
2210
- const s = await r.updatePackage(e, t, a, o), n = l?.serverIndex ?? 0, c = V["PackagesApi.updatePackage"]?.[n]?.url;
2211
- return (i, p) => b(s, u, m, l)(i, c || p);
2813
+ async updatePackage(a, r, e, t) {
2814
+ const s = await o.updatePackage(a, r, e, t), n = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[n]?.url;
2815
+ return (i, p) => S(s, m, P, l)(i, c || p);
2212
2816
  }
2213
2817
  };
2214
- }, Ge = function(l, r, e) {
2215
- const t = N(l);
2818
+ }, Ge = function(l, o, a) {
2819
+ const r = N(l);
2216
2820
  return {
2217
2821
  /**
2218
2822
  * Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
@@ -2223,8 +2827,8 @@ const We = {
2223
2827
  * @param {*} [options] Override http request option.
2224
2828
  * @throws {RequiredError}
2225
2829
  */
2226
- createPackage(a, o, s, n) {
2227
- return t.createPackage(a, o, s, n).then((c) => c(e, r));
2830
+ createPackage(e, t, s, n) {
2831
+ return r.createPackage(e, t, s, n).then((c) => c(a, o));
2228
2832
  },
2229
2833
  /**
2230
2834
  * 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.
@@ -2234,8 +2838,8 @@ const We = {
2234
2838
  * @param {*} [options] Override http request option.
2235
2839
  * @throws {RequiredError}
2236
2840
  */
2237
- deletePackage(a, o, s) {
2238
- return t.deletePackage(a, o, s).then((n) => n(e, r));
2841
+ deletePackage(e, t, s) {
2842
+ return r.deletePackage(e, t, s).then((n) => n(a, o));
2239
2843
  },
2240
2844
  /**
2241
2845
  * 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.
@@ -2247,8 +2851,8 @@ const We = {
2247
2851
  * @param {*} [options] Override http request option.
2248
2852
  * @throws {RequiredError}
2249
2853
  */
2250
- getPackage(a, o, s, n, c) {
2251
- return t.getPackage(a, o, s, n, c).then((i) => i(e, r));
2854
+ getPackage(e, t, s, n, c) {
2855
+ return r.getPackage(e, t, s, n, c).then((i) => i(a, o));
2252
2856
  },
2253
2857
  /**
2254
2858
  * Retrieves a list of all Malloy packages within the specified project. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
@@ -2257,8 +2861,8 @@ const We = {
2257
2861
  * @param {*} [options] Override http request option.
2258
2862
  * @throws {RequiredError}
2259
2863
  */
2260
- listPackages(a, o) {
2261
- return t.listPackages(a, o).then((s) => s(e, r));
2864
+ listPackages(e, t) {
2865
+ return r.listPackages(e, t).then((s) => s(a, o));
2262
2866
  },
2263
2867
  /**
2264
2868
  * 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.
@@ -2269,12 +2873,12 @@ const We = {
2269
2873
  * @param {*} [options] Override http request option.
2270
2874
  * @throws {RequiredError}
2271
2875
  */
2272
- updatePackage(a, o, s, n) {
2273
- return t.updatePackage(a, o, s, n).then((c) => c(e, r));
2876
+ updatePackage(e, t, s, n) {
2877
+ return r.updatePackage(e, t, s, n).then((c) => c(a, o));
2274
2878
  }
2275
2879
  };
2276
2880
  };
2277
- class ce extends A {
2881
+ class ce extends C {
2278
2882
  /**
2279
2883
  * Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
2280
2884
  * @summary Create a new package
@@ -2285,8 +2889,8 @@ class ce extends A {
2285
2889
  * @throws {RequiredError}
2286
2890
  * @memberof PackagesApi
2287
2891
  */
2288
- createPackage(r, e, t, a) {
2289
- return N(this.configuration).createPackage(r, e, t, a).then((o) => o(this.axios, this.basePath));
2892
+ createPackage(o, a, r, e) {
2893
+ return N(this.configuration).createPackage(o, a, r, e).then((t) => t(this.axios, this.basePath));
2290
2894
  }
2291
2895
  /**
2292
2896
  * 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.
@@ -2297,8 +2901,8 @@ class ce extends A {
2297
2901
  * @throws {RequiredError}
2298
2902
  * @memberof PackagesApi
2299
2903
  */
2300
- deletePackage(r, e, t) {
2301
- return N(this.configuration).deletePackage(r, e, t).then((a) => a(this.axios, this.basePath));
2904
+ deletePackage(o, a, r) {
2905
+ return N(this.configuration).deletePackage(o, a, r).then((e) => e(this.axios, this.basePath));
2302
2906
  }
2303
2907
  /**
2304
2908
  * 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.
@@ -2311,8 +2915,8 @@ class ce extends A {
2311
2915
  * @throws {RequiredError}
2312
2916
  * @memberof PackagesApi
2313
2917
  */
2314
- getPackage(r, e, t, a, o) {
2315
- return N(this.configuration).getPackage(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
2918
+ getPackage(o, a, r, e, t) {
2919
+ return N(this.configuration).getPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
2316
2920
  }
2317
2921
  /**
2318
2922
  * Retrieves a list of all Malloy packages within the specified project. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
@@ -2322,8 +2926,8 @@ class ce extends A {
2322
2926
  * @throws {RequiredError}
2323
2927
  * @memberof PackagesApi
2324
2928
  */
2325
- listPackages(r, e) {
2326
- return N(this.configuration).listPackages(r, e).then((t) => t(this.axios, this.basePath));
2929
+ listPackages(o, a) {
2930
+ return N(this.configuration).listPackages(o, a).then((r) => r(this.axios, this.basePath));
2327
2931
  }
2328
2932
  /**
2329
2933
  * 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.
@@ -2335,8 +2939,8 @@ class ce extends A {
2335
2939
  * @throws {RequiredError}
2336
2940
  * @memberof PackagesApi
2337
2941
  */
2338
- updatePackage(r, e, t, a) {
2339
- return N(this.configuration).updatePackage(r, e, t, a).then((o) => o(this.axios, this.basePath));
2942
+ updatePackage(o, a, r, e) {
2943
+ return N(this.configuration).updatePackage(o, a, r, e).then((t) => t(this.axios, this.basePath));
2340
2944
  }
2341
2945
  }
2342
2946
  const le = function(l) {
@@ -2348,16 +2952,16 @@ const le = function(l) {
2348
2952
  * @param {*} [options] Override http request option.
2349
2953
  * @throws {RequiredError}
2350
2954
  */
2351
- createProject: async (r, e = {}) => {
2352
- d("createProject", "project", r);
2353
- const t = "/projects", a = new URL(t, P);
2354
- let o;
2355
- l && (o = l.baseOptions);
2356
- const s = { method: "POST", ...o, ...e }, n = {}, c = {};
2357
- n["Content-Type"] = "application/json", O(a, c);
2358
- let i = o && o.headers ? o.headers : {};
2359
- return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
2360
- url: g(a),
2955
+ createProject: async (o, a = {}) => {
2956
+ h("createProject", "project", o);
2957
+ const r = "/projects", e = new URL(r, V);
2958
+ let t;
2959
+ l && (t = l.baseOptions);
2960
+ const s = { method: "POST", ...t, ...a }, n = {}, c = {};
2961
+ n["Content-Type"] = "application/json", O(e, c);
2962
+ let i = t && t.headers ? t.headers : {};
2963
+ return s.headers = { ...n, ...i, ...a.headers }, s.data = y(o, s, l), {
2964
+ url: b(e),
2361
2965
  options: s
2362
2966
  };
2363
2967
  },
@@ -2368,16 +2972,16 @@ const le = function(l) {
2368
2972
  * @param {*} [options] Override http request option.
2369
2973
  * @throws {RequiredError}
2370
2974
  */
2371
- deleteProject: async (r, e = {}) => {
2372
- d("deleteProject", "projectName", r);
2373
- const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(r))), a = new URL(t, P);
2374
- let o;
2375
- l && (o = l.baseOptions);
2376
- const s = { method: "DELETE", ...o, ...e }, n = {};
2377
- O(a, {});
2378
- let i = o && o.headers ? o.headers : {};
2379
- return s.headers = { ...n, ...i, ...e.headers }, {
2380
- url: g(a),
2975
+ deleteProject: async (o, a = {}) => {
2976
+ h("deleteProject", "projectName", o);
2977
+ const r = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(o))), e = new URL(r, V);
2978
+ let t;
2979
+ l && (t = l.baseOptions);
2980
+ const s = { method: "DELETE", ...t, ...a }, n = {};
2981
+ O(e, {});
2982
+ let i = t && t.headers ? t.headers : {};
2983
+ return s.headers = { ...n, ...i, ...a.headers }, {
2984
+ url: b(e),
2381
2985
  options: s
2382
2986
  };
2383
2987
  },
@@ -2389,16 +2993,16 @@ const le = function(l) {
2389
2993
  * @param {*} [options] Override http request option.
2390
2994
  * @throws {RequiredError}
2391
2995
  */
2392
- getProject: async (r, e, t = {}) => {
2393
- d("getProject", "projectName", r);
2394
- const a = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(r))), o = new URL(a, P);
2996
+ getProject: async (o, a, r = {}) => {
2997
+ h("getProject", "projectName", o);
2998
+ const e = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(o))), t = new URL(e, V);
2395
2999
  let s;
2396
3000
  l && (s = l.baseOptions);
2397
- const n = { method: "GET", ...s, ...t }, c = {}, i = {};
2398
- e !== void 0 && (i.reload = e), O(o, i);
3001
+ const n = { method: "GET", ...s, ...r }, c = {}, i = {};
3002
+ a !== void 0 && (i.reload = a), O(t, i);
2399
3003
  let p = s && s.headers ? s.headers : {};
2400
- return n.headers = { ...c, ...p, ...t.headers }, {
2401
- url: g(o),
3004
+ return n.headers = { ...c, ...p, ...r.headers }, {
3005
+ url: b(t),
2402
3006
  options: n
2403
3007
  };
2404
3008
  },
@@ -2408,16 +3012,16 @@ const le = function(l) {
2408
3012
  * @param {*} [options] Override http request option.
2409
3013
  * @throws {RequiredError}
2410
3014
  */
2411
- listProjects: async (r = {}) => {
2412
- const e = "/projects", t = new URL(e, P);
2413
- let a;
2414
- l && (a = l.baseOptions);
2415
- const o = { method: "GET", ...a, ...r }, s = {};
2416
- O(t, {});
2417
- let c = a && a.headers ? a.headers : {};
2418
- return o.headers = { ...s, ...c, ...r.headers }, {
2419
- url: g(t),
2420
- options: o
3015
+ listProjects: async (o = {}) => {
3016
+ const a = "/projects", r = new URL(a, V);
3017
+ let e;
3018
+ l && (e = l.baseOptions);
3019
+ const t = { method: "GET", ...e, ...o }, s = {};
3020
+ O(r, {});
3021
+ let c = e && e.headers ? e.headers : {};
3022
+ return t.headers = { ...s, ...c, ...o.headers }, {
3023
+ url: b(r),
3024
+ options: t
2421
3025
  };
2422
3026
  },
2423
3027
  /**
@@ -2428,22 +3032,22 @@ const le = function(l) {
2428
3032
  * @param {*} [options] Override http request option.
2429
3033
  * @throws {RequiredError}
2430
3034
  */
2431
- updateProject: async (r, e, t = {}) => {
2432
- d("updateProject", "projectName", r), d("updateProject", "project", e);
2433
- const a = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(r))), o = new URL(a, P);
3035
+ updateProject: async (o, a, r = {}) => {
3036
+ h("updateProject", "projectName", o), h("updateProject", "project", a);
3037
+ const e = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(o))), t = new URL(e, V);
2434
3038
  let s;
2435
3039
  l && (s = l.baseOptions);
2436
- const n = { method: "PATCH", ...s, ...t }, c = {}, i = {};
2437
- c["Content-Type"] = "application/json", O(o, i);
3040
+ const n = { method: "PATCH", ...s, ...r }, c = {}, i = {};
3041
+ c["Content-Type"] = "application/json", O(t, i);
2438
3042
  let p = s && s.headers ? s.headers : {};
2439
- return n.headers = { ...c, ...p, ...t.headers }, n.data = C(e, n, l), {
2440
- url: g(o),
3043
+ return n.headers = { ...c, ...p, ...r.headers }, n.data = y(a, n, l), {
3044
+ url: b(t),
2441
3045
  options: n
2442
3046
  };
2443
3047
  }
2444
3048
  };
2445
- }, R = function(l) {
2446
- const r = le(l);
3049
+ }, x = function(l) {
3050
+ const o = le(l);
2447
3051
  return {
2448
3052
  /**
2449
3053
  * Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -2452,9 +3056,9 @@ const le = function(l) {
2452
3056
  * @param {*} [options] Override http request option.
2453
3057
  * @throws {RequiredError}
2454
3058
  */
2455
- async createProject(e, t) {
2456
- const a = await r.createProject(e, t), o = l?.serverIndex ?? 0, s = V["ProjectsApi.createProject"]?.[o]?.url;
2457
- return (n, c) => b(a, u, m, l)(n, s || c);
3059
+ async createProject(a, r) {
3060
+ const e = await o.createProject(a, r), t = l?.serverIndex ?? 0, s = g["ProjectsApi.createProject"]?.[t]?.url;
3061
+ return (n, c) => S(e, m, P, l)(n, s || c);
2458
3062
  },
2459
3063
  /**
2460
3064
  * Permanently deletes a project and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The project must exist and be accessible for deletion.
@@ -2463,9 +3067,9 @@ const le = function(l) {
2463
3067
  * @param {*} [options] Override http request option.
2464
3068
  * @throws {RequiredError}
2465
3069
  */
2466
- async deleteProject(e, t) {
2467
- const a = await r.deleteProject(e, t), o = l?.serverIndex ?? 0, s = V["ProjectsApi.deleteProject"]?.[o]?.url;
2468
- return (n, c) => b(a, u, m, l)(n, s || c);
3070
+ async deleteProject(a, r) {
3071
+ const e = await o.deleteProject(a, r), t = l?.serverIndex ?? 0, s = g["ProjectsApi.deleteProject"]?.[t]?.url;
3072
+ return (n, c) => S(e, m, P, l)(n, s || c);
2469
3073
  },
2470
3074
  /**
2471
3075
  * Retrieves detailed information about a specific project, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the project state from disk before returning the information.
@@ -2475,9 +3079,9 @@ const le = function(l) {
2475
3079
  * @param {*} [options] Override http request option.
2476
3080
  * @throws {RequiredError}
2477
3081
  */
2478
- async getProject(e, t, a) {
2479
- const o = await r.getProject(e, t, a), s = l?.serverIndex ?? 0, n = V["ProjectsApi.getProject"]?.[s]?.url;
2480
- return (c, i) => b(o, u, m, l)(c, n || i);
3082
+ async getProject(a, r, e) {
3083
+ const t = await o.getProject(a, r, e), s = l?.serverIndex ?? 0, n = g["ProjectsApi.getProject"]?.[s]?.url;
3084
+ return (c, i) => S(t, m, P, l)(c, n || i);
2481
3085
  },
2482
3086
  /**
2483
3087
  * Retrieves a list of all projects currently hosted on this Malloy Publisher server. Each project contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available projects and their basic information.
@@ -2485,9 +3089,9 @@ const le = function(l) {
2485
3089
  * @param {*} [options] Override http request option.
2486
3090
  * @throws {RequiredError}
2487
3091
  */
2488
- async listProjects(e) {
2489
- const t = await r.listProjects(e), a = l?.serverIndex ?? 0, o = V["ProjectsApi.listProjects"]?.[a]?.url;
2490
- return (s, n) => b(t, u, m, l)(s, o || n);
3092
+ async listProjects(a) {
3093
+ const r = await o.listProjects(a), e = l?.serverIndex ?? 0, t = g["ProjectsApi.listProjects"]?.[e]?.url;
3094
+ return (s, n) => S(r, m, P, l)(s, t || n);
2491
3095
  },
2492
3096
  /**
2493
3097
  * Updates the configuration and metadata of an existing project. This allows you to modify project settings, update the README, change the location, or update other project-level properties. The project must exist and be accessible.
@@ -2497,13 +3101,13 @@ const le = function(l) {
2497
3101
  * @param {*} [options] Override http request option.
2498
3102
  * @throws {RequiredError}
2499
3103
  */
2500
- async updateProject(e, t, a) {
2501
- const o = await r.updateProject(e, t, a), s = l?.serverIndex ?? 0, n = V["ProjectsApi.updateProject"]?.[s]?.url;
2502
- return (c, i) => b(o, u, m, l)(c, n || i);
3104
+ async updateProject(a, r, e) {
3105
+ const t = await o.updateProject(a, r, e), s = l?.serverIndex ?? 0, n = g["ProjectsApi.updateProject"]?.[s]?.url;
3106
+ return (c, i) => S(t, m, P, l)(c, n || i);
2503
3107
  }
2504
3108
  };
2505
- }, _e = function(l, r, e) {
2506
- const t = R(l);
3109
+ }, _e = function(l, o, a) {
3110
+ const r = x(l);
2507
3111
  return {
2508
3112
  /**
2509
3113
  * Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -2512,8 +3116,8 @@ const le = function(l) {
2512
3116
  * @param {*} [options] Override http request option.
2513
3117
  * @throws {RequiredError}
2514
3118
  */
2515
- createProject(a, o) {
2516
- return t.createProject(a, o).then((s) => s(e, r));
3119
+ createProject(e, t) {
3120
+ return r.createProject(e, t).then((s) => s(a, o));
2517
3121
  },
2518
3122
  /**
2519
3123
  * Permanently deletes a project and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The project must exist and be accessible for deletion.
@@ -2522,8 +3126,8 @@ const le = function(l) {
2522
3126
  * @param {*} [options] Override http request option.
2523
3127
  * @throws {RequiredError}
2524
3128
  */
2525
- deleteProject(a, o) {
2526
- return t.deleteProject(a, o).then((s) => s(e, r));
3129
+ deleteProject(e, t) {
3130
+ return r.deleteProject(e, t).then((s) => s(a, o));
2527
3131
  },
2528
3132
  /**
2529
3133
  * Retrieves detailed information about a specific project, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the project state from disk before returning the information.
@@ -2533,8 +3137,8 @@ const le = function(l) {
2533
3137
  * @param {*} [options] Override http request option.
2534
3138
  * @throws {RequiredError}
2535
3139
  */
2536
- getProject(a, o, s) {
2537
- return t.getProject(a, o, s).then((n) => n(e, r));
3140
+ getProject(e, t, s) {
3141
+ return r.getProject(e, t, s).then((n) => n(a, o));
2538
3142
  },
2539
3143
  /**
2540
3144
  * Retrieves a list of all projects currently hosted on this Malloy Publisher server. Each project contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available projects and their basic information.
@@ -2542,8 +3146,8 @@ const le = function(l) {
2542
3146
  * @param {*} [options] Override http request option.
2543
3147
  * @throws {RequiredError}
2544
3148
  */
2545
- listProjects(a) {
2546
- return t.listProjects(a).then((o) => o(e, r));
3149
+ listProjects(e) {
3150
+ return r.listProjects(e).then((t) => t(a, o));
2547
3151
  },
2548
3152
  /**
2549
3153
  * Updates the configuration and metadata of an existing project. This allows you to modify project settings, update the README, change the location, or update other project-level properties. The project must exist and be accessible.
@@ -2553,12 +3157,12 @@ const le = function(l) {
2553
3157
  * @param {*} [options] Override http request option.
2554
3158
  * @throws {RequiredError}
2555
3159
  */
2556
- updateProject(a, o, s) {
2557
- return t.updateProject(a, o, s).then((n) => n(e, r));
3160
+ updateProject(e, t, s) {
3161
+ return r.updateProject(e, t, s).then((n) => n(a, o));
2558
3162
  }
2559
3163
  };
2560
3164
  };
2561
- class ie extends A {
3165
+ class ie extends C {
2562
3166
  /**
2563
3167
  * Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
2564
3168
  * @summary Create a new project
@@ -2567,8 +3171,8 @@ class ie extends A {
2567
3171
  * @throws {RequiredError}
2568
3172
  * @memberof ProjectsApi
2569
3173
  */
2570
- createProject(r, e) {
2571
- return R(this.configuration).createProject(r, e).then((t) => t(this.axios, this.basePath));
3174
+ createProject(o, a) {
3175
+ return x(this.configuration).createProject(o, a).then((r) => r(this.axios, this.basePath));
2572
3176
  }
2573
3177
  /**
2574
3178
  * Permanently deletes a project and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The project must exist and be accessible for deletion.
@@ -2578,8 +3182,8 @@ class ie extends A {
2578
3182
  * @throws {RequiredError}
2579
3183
  * @memberof ProjectsApi
2580
3184
  */
2581
- deleteProject(r, e) {
2582
- return R(this.configuration).deleteProject(r, e).then((t) => t(this.axios, this.basePath));
3185
+ deleteProject(o, a) {
3186
+ return x(this.configuration).deleteProject(o, a).then((r) => r(this.axios, this.basePath));
2583
3187
  }
2584
3188
  /**
2585
3189
  * Retrieves detailed information about a specific project, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the project state from disk before returning the information.
@@ -2590,8 +3194,8 @@ class ie extends A {
2590
3194
  * @throws {RequiredError}
2591
3195
  * @memberof ProjectsApi
2592
3196
  */
2593
- getProject(r, e, t) {
2594
- return R(this.configuration).getProject(r, e, t).then((a) => a(this.axios, this.basePath));
3197
+ getProject(o, a, r) {
3198
+ return x(this.configuration).getProject(o, a, r).then((e) => e(this.axios, this.basePath));
2595
3199
  }
2596
3200
  /**
2597
3201
  * Retrieves a list of all projects currently hosted on this Malloy Publisher server. Each project contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available projects and their basic information.
@@ -2600,8 +3204,8 @@ class ie extends A {
2600
3204
  * @throws {RequiredError}
2601
3205
  * @memberof ProjectsApi
2602
3206
  */
2603
- listProjects(r) {
2604
- return R(this.configuration).listProjects(r).then((e) => e(this.axios, this.basePath));
3207
+ listProjects(o) {
3208
+ return x(this.configuration).listProjects(o).then((a) => a(this.axios, this.basePath));
2605
3209
  }
2606
3210
  /**
2607
3211
  * Updates the configuration and metadata of an existing project. This allows you to modify project settings, update the README, change the location, or update other project-level properties. The project must exist and be accessible.
@@ -2612,8 +3216,8 @@ class ie extends A {
2612
3216
  * @throws {RequiredError}
2613
3217
  * @memberof ProjectsApi
2614
3218
  */
2615
- updateProject(r, e, t) {
2616
- return R(this.configuration).updateProject(r, e, t).then((a) => a(this.axios, this.basePath));
3219
+ updateProject(o, a, r) {
3220
+ return x(this.configuration).updateProject(o, a, r).then((e) => e(this.axios, this.basePath));
2617
3221
  }
2618
3222
  }
2619
3223
  const pe = function(l) {
@@ -2624,21 +3228,21 @@ const pe = function(l) {
2624
3228
  * @param {*} [options] Override http request option.
2625
3229
  * @throws {RequiredError}
2626
3230
  */
2627
- getStatus: async (r = {}) => {
2628
- const e = "/status", t = new URL(e, P);
2629
- let a;
2630
- l && (a = l.baseOptions);
2631
- const o = { method: "GET", ...a, ...r }, s = {};
2632
- O(t, {});
2633
- let c = a && a.headers ? a.headers : {};
2634
- return o.headers = { ...s, ...c, ...r.headers }, {
2635
- url: g(t),
2636
- options: o
3231
+ getStatus: async (o = {}) => {
3232
+ const a = "/status", r = new URL(a, V);
3233
+ let e;
3234
+ l && (e = l.baseOptions);
3235
+ const t = { method: "GET", ...e, ...o }, s = {};
3236
+ O(r, {});
3237
+ let c = e && e.headers ? e.headers : {};
3238
+ return t.headers = { ...s, ...c, ...o.headers }, {
3239
+ url: b(r),
3240
+ options: t
2637
3241
  };
2638
3242
  }
2639
3243
  };
2640
- }, F = function(l) {
2641
- const r = pe(l);
3244
+ }, z = function(l) {
3245
+ const o = pe(l);
2642
3246
  return {
2643
3247
  /**
2644
3248
  * Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -2646,13 +3250,13 @@ const pe = function(l) {
2646
3250
  * @param {*} [options] Override http request option.
2647
3251
  * @throws {RequiredError}
2648
3252
  */
2649
- async getStatus(e) {
2650
- const t = await r.getStatus(e), a = l?.serverIndex ?? 0, o = V["PublisherApi.getStatus"]?.[a]?.url;
2651
- return (s, n) => b(t, u, m, l)(s, o || n);
3253
+ async getStatus(a) {
3254
+ const r = await o.getStatus(a), e = l?.serverIndex ?? 0, t = g["PublisherApi.getStatus"]?.[e]?.url;
3255
+ return (s, n) => S(r, m, P, l)(s, t || n);
2652
3256
  }
2653
3257
  };
2654
- }, Je = function(l, r, e) {
2655
- const t = F(l);
3258
+ }, Je = function(l, o, a) {
3259
+ const r = z(l);
2656
3260
  return {
2657
3261
  /**
2658
3262
  * Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -2660,12 +3264,12 @@ const pe = function(l) {
2660
3264
  * @param {*} [options] Override http request option.
2661
3265
  * @throws {RequiredError}
2662
3266
  */
2663
- getStatus(a) {
2664
- return t.getStatus(a).then((o) => o(e, r));
3267
+ getStatus(e) {
3268
+ return r.getStatus(e).then((t) => t(a, o));
2665
3269
  }
2666
3270
  };
2667
3271
  };
2668
- class de extends A {
3272
+ class de extends C {
2669
3273
  /**
2670
3274
  * Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
2671
3275
  * @summary Get server status and health information
@@ -2673,8 +3277,8 @@ class de extends A {
2673
3277
  * @throws {RequiredError}
2674
3278
  * @memberof PublisherApi
2675
3279
  */
2676
- getStatus(r) {
2677
- return F(this.configuration).getStatus(r).then((e) => e(this.axios, this.basePath));
3280
+ getStatus(o) {
3281
+ return z(this.configuration).getStatus(o).then((a) => a(this.axios, this.basePath));
2678
3282
  }
2679
3283
  }
2680
3284
  const he = function(l) {
@@ -2685,16 +3289,16 @@ const he = function(l) {
2685
3289
  * @param {*} [options] Override http request option.
2686
3290
  * @throws {RequiredError}
2687
3291
  */
2688
- getWatchStatus: async (r = {}) => {
2689
- const e = "/watch-mode/status", t = new URL(e, P);
2690
- let a;
2691
- l && (a = l.baseOptions);
2692
- const o = { method: "GET", ...a, ...r }, s = {};
2693
- O(t, {});
2694
- let c = a && a.headers ? a.headers : {};
2695
- return o.headers = { ...s, ...c, ...r.headers }, {
2696
- url: g(t),
2697
- options: o
3292
+ getWatchStatus: async (o = {}) => {
3293
+ const a = "/watch-mode/status", r = new URL(a, V);
3294
+ let e;
3295
+ l && (e = l.baseOptions);
3296
+ const t = { method: "GET", ...e, ...o }, s = {};
3297
+ O(r, {});
3298
+ let c = e && e.headers ? e.headers : {};
3299
+ return t.headers = { ...s, ...c, ...o.headers }, {
3300
+ url: b(r),
3301
+ options: t
2698
3302
  };
2699
3303
  },
2700
3304
  /**
@@ -2704,16 +3308,16 @@ const he = function(l) {
2704
3308
  * @param {*} [options] Override http request option.
2705
3309
  * @throws {RequiredError}
2706
3310
  */
2707
- startWatching: async (r, e = {}) => {
2708
- d("startWatching", "startWatchRequest", r);
2709
- const t = "/watch-mode/start", a = new URL(t, P);
2710
- let o;
2711
- l && (o = l.baseOptions);
2712
- const s = { method: "POST", ...o, ...e }, n = {}, c = {};
2713
- n["Content-Type"] = "application/json", O(a, c);
2714
- let i = o && o.headers ? o.headers : {};
2715
- return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
2716
- url: g(a),
3311
+ startWatching: async (o, a = {}) => {
3312
+ h("startWatching", "startWatchRequest", o);
3313
+ const r = "/watch-mode/start", e = new URL(r, V);
3314
+ let t;
3315
+ l && (t = l.baseOptions);
3316
+ const s = { method: "POST", ...t, ...a }, n = {}, c = {};
3317
+ n["Content-Type"] = "application/json", O(e, c);
3318
+ let i = t && t.headers ? t.headers : {};
3319
+ return s.headers = { ...n, ...i, ...a.headers }, s.data = y(o, s, l), {
3320
+ url: b(e),
2717
3321
  options: s
2718
3322
  };
2719
3323
  },
@@ -2723,21 +3327,21 @@ const he = function(l) {
2723
3327
  * @param {*} [options] Override http request option.
2724
3328
  * @throws {RequiredError}
2725
3329
  */
2726
- stopWatching: async (r = {}) => {
2727
- const e = "/watch-mode/stop", t = new URL(e, P);
2728
- let a;
2729
- l && (a = l.baseOptions);
2730
- const o = { method: "POST", ...a, ...r }, s = {};
2731
- O(t, {});
2732
- let c = a && a.headers ? a.headers : {};
2733
- return o.headers = { ...s, ...c, ...r.headers }, {
2734
- url: g(t),
2735
- options: o
3330
+ stopWatching: async (o = {}) => {
3331
+ const a = "/watch-mode/stop", r = new URL(a, V);
3332
+ let e;
3333
+ l && (e = l.baseOptions);
3334
+ const t = { method: "POST", ...e, ...o }, s = {};
3335
+ O(r, {});
3336
+ let c = e && e.headers ? e.headers : {};
3337
+ return t.headers = { ...s, ...c, ...o.headers }, {
3338
+ url: b(r),
3339
+ options: t
2736
3340
  };
2737
3341
  }
2738
3342
  };
2739
- }, M = function(l) {
2740
- const r = he(l);
3343
+ }, T = function(l) {
3344
+ const o = he(l);
2741
3345
  return {
2742
3346
  /**
2743
3347
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -2745,9 +3349,9 @@ const he = function(l) {
2745
3349
  * @param {*} [options] Override http request option.
2746
3350
  * @throws {RequiredError}
2747
3351
  */
2748
- async getWatchStatus(e) {
2749
- const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, o = V["WatchModeApi.getWatchStatus"]?.[a]?.url;
2750
- return (s, n) => b(t, u, m, l)(s, o || n);
3352
+ async getWatchStatus(a) {
3353
+ const r = await o.getWatchStatus(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.getWatchStatus"]?.[e]?.url;
3354
+ return (s, n) => S(r, m, P, l)(s, t || n);
2751
3355
  },
2752
3356
  /**
2753
3357
  * Initiates file watching for the specified project. This enables real-time monitoring of file changes within the project directory, allowing for automatic reloading and updates during development. Only one project can be watched at a time.
@@ -2756,9 +3360,9 @@ const he = function(l) {
2756
3360
  * @param {*} [options] Override http request option.
2757
3361
  * @throws {RequiredError}
2758
3362
  */
2759
- async startWatching(e, t) {
2760
- const a = await r.startWatching(e, t), o = l?.serverIndex ?? 0, s = V["WatchModeApi.startWatching"]?.[o]?.url;
2761
- return (n, c) => b(a, u, m, l)(n, s || c);
3363
+ async startWatching(a, r) {
3364
+ const e = await o.startWatching(a, r), t = l?.serverIndex ?? 0, s = g["WatchModeApi.startWatching"]?.[t]?.url;
3365
+ return (n, c) => S(e, m, P, l)(n, s || c);
2762
3366
  },
2763
3367
  /**
2764
3368
  * 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 project.
@@ -2766,13 +3370,13 @@ const he = function(l) {
2766
3370
  * @param {*} [options] Override http request option.
2767
3371
  * @throws {RequiredError}
2768
3372
  */
2769
- async stopWatching(e) {
2770
- const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, o = V["WatchModeApi.stopWatching"]?.[a]?.url;
2771
- return (s, n) => b(t, u, m, l)(s, o || n);
3373
+ async stopWatching(a) {
3374
+ const r = await o.stopWatching(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.stopWatching"]?.[e]?.url;
3375
+ return (s, n) => S(r, m, P, l)(s, t || n);
2772
3376
  }
2773
3377
  };
2774
- }, Ke = function(l, r, e) {
2775
- const t = M(l);
3378
+ }, Ke = function(l, o, a) {
3379
+ const r = T(l);
2776
3380
  return {
2777
3381
  /**
2778
3382
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -2780,8 +3384,8 @@ const he = function(l) {
2780
3384
  * @param {*} [options] Override http request option.
2781
3385
  * @throws {RequiredError}
2782
3386
  */
2783
- getWatchStatus(a) {
2784
- return t.getWatchStatus(a).then((o) => o(e, r));
3387
+ getWatchStatus(e) {
3388
+ return r.getWatchStatus(e).then((t) => t(a, o));
2785
3389
  },
2786
3390
  /**
2787
3391
  * Initiates file watching for the specified project. This enables real-time monitoring of file changes within the project directory, allowing for automatic reloading and updates during development. Only one project can be watched at a time.
@@ -2790,8 +3394,8 @@ const he = function(l) {
2790
3394
  * @param {*} [options] Override http request option.
2791
3395
  * @throws {RequiredError}
2792
3396
  */
2793
- startWatching(a, o) {
2794
- return t.startWatching(a, o).then((s) => s(e, r));
3397
+ startWatching(e, t) {
3398
+ return r.startWatching(e, t).then((s) => s(a, o));
2795
3399
  },
2796
3400
  /**
2797
3401
  * 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 project.
@@ -2799,12 +3403,12 @@ const he = function(l) {
2799
3403
  * @param {*} [options] Override http request option.
2800
3404
  * @throws {RequiredError}
2801
3405
  */
2802
- stopWatching(a) {
2803
- return t.stopWatching(a).then((o) => o(e, r));
3406
+ stopWatching(e) {
3407
+ return r.stopWatching(e).then((t) => t(a, o));
2804
3408
  }
2805
3409
  };
2806
3410
  };
2807
- class ue extends A {
3411
+ class me extends C {
2808
3412
  /**
2809
3413
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
2810
3414
  * @summary Get watch mode status
@@ -2812,8 +3416,8 @@ class ue extends A {
2812
3416
  * @throws {RequiredError}
2813
3417
  * @memberof WatchModeApi
2814
3418
  */
2815
- getWatchStatus(r) {
2816
- return M(this.configuration).getWatchStatus(r).then((e) => e(this.axios, this.basePath));
3419
+ getWatchStatus(o) {
3420
+ return T(this.configuration).getWatchStatus(o).then((a) => a(this.axios, this.basePath));
2817
3421
  }
2818
3422
  /**
2819
3423
  * Initiates file watching for the specified project. This enables real-time monitoring of file changes within the project directory, allowing for automatic reloading and updates during development. Only one project can be watched at a time.
@@ -2823,8 +3427,8 @@ class ue extends A {
2823
3427
  * @throws {RequiredError}
2824
3428
  * @memberof WatchModeApi
2825
3429
  */
2826
- startWatching(r, e) {
2827
- return M(this.configuration).startWatching(r, e).then((t) => t(this.axios, this.basePath));
3430
+ startWatching(o, a) {
3431
+ return T(this.configuration).startWatching(o, a).then((r) => r(this.axios, this.basePath));
2828
3432
  }
2829
3433
  /**
2830
3434
  * 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 project.
@@ -2833,11 +3437,11 @@ class ue extends A {
2833
3437
  * @throws {RequiredError}
2834
3438
  * @memberof WatchModeApi
2835
3439
  */
2836
- stopWatching(r) {
2837
- return M(this.configuration).stopWatching(r).then((e) => e(this.axios, this.basePath));
3440
+ stopWatching(o) {
3441
+ return T(this.configuration).stopWatching(o).then((a) => a(this.axios, this.basePath));
2838
3442
  }
2839
3443
  }
2840
- class me {
3444
+ class ue {
2841
3445
  /**
2842
3446
  * parameter for apiKey security
2843
3447
  * @param name security name
@@ -2894,13 +3498,13 @@ class me {
2894
3498
  * @type {new () => FormData}
2895
3499
  */
2896
3500
  formDataCtor;
2897
- constructor(r = {}) {
2898
- this.apiKey = r.apiKey, this.username = r.username, this.password = r.password, this.accessToken = r.accessToken, this.basePath = r.basePath, this.serverIndex = r.serverIndex, this.baseOptions = {
2899
- ...r.baseOptions,
3501
+ constructor(o = {}) {
3502
+ this.apiKey = o.apiKey, this.username = o.username, this.password = o.password, this.accessToken = o.accessToken, this.basePath = o.basePath, this.serverIndex = o.serverIndex, this.baseOptions = {
3503
+ ...o.baseOptions,
2900
3504
  headers: {
2901
- ...r.baseOptions?.headers
3505
+ ...o.baseOptions?.headers
2902
3506
  }
2903
- }, this.formDataCtor = r.formDataCtor;
3507
+ }, this.formDataCtor = o.formDataCtor;
2904
3508
  }
2905
3509
  /**
2906
3510
  * Check if the given MIME is a JSON MIME.
@@ -2912,12 +3516,12 @@ class me {
2912
3516
  * @param mime - MIME (Multipurpose Internet Mail Extensions)
2913
3517
  * @return True if the given MIME is JSON, false otherwise.
2914
3518
  */
2915
- isJsonMime(r) {
2916
- const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
2917
- return r !== null && (e.test(r) || r.toLowerCase() === "application/json-patch+json");
3519
+ isJsonMime(o) {
3520
+ const a = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
3521
+ return o !== null && (a.test(o) || o.toLowerCase() === "application/json-patch+json");
2918
3522
  }
2919
3523
  }
2920
- const Ve = new f({
3524
+ const Pe = new L({
2921
3525
  defaultOptions: {
2922
3526
  queries: {
2923
3527
  retry: !1,
@@ -2929,88 +3533,88 @@ const Ve = new f({
2929
3533
  }
2930
3534
  }
2931
3535
  });
2932
- u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
2933
- const E = D(void 0), Pe = (l, r) => {
2934
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = u.create({
2935
- baseURL: l || e,
3536
+ m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3537
+ const E = D(void 0), ge = (l, o) => {
3538
+ const a = `${window.location.protocol}//${window.location.host}/api/v0`, r = m.create({
3539
+ baseURL: l || a,
2936
3540
  withCredentials: !0,
2937
3541
  timeout: 6e5
2938
3542
  });
2939
- t.interceptors.request.use(async (o) => {
2940
- const s = await r?.();
2941
- return o.headers.Authorization = s || "", o;
3543
+ r.interceptors.request.use(async (t) => {
3544
+ const s = await o?.();
3545
+ return t.headers.Authorization = s || "", t;
2942
3546
  });
2943
- const a = new me({ basePath: e });
3547
+ const e = new ue({ basePath: a });
2944
3548
  return {
2945
- models: new re(a, e, t),
2946
- publisher: new de(a, e, t),
2947
- projects: new ie(a, e, t),
2948
- packages: new ce(a, e, t),
2949
- notebooks: new se(a, e, t),
2950
- connections: new K(a, e, t),
2951
- databases: new Z(a, e, t),
2952
- watchMode: new ue(a, e, t)
3549
+ models: new re(e, a, r),
3550
+ publisher: new de(e, a, r),
3551
+ projects: new ie(e, a, r),
3552
+ packages: new ce(e, a, r),
3553
+ notebooks: new se(e, a, r),
3554
+ connections: new K(e, a, r),
3555
+ databases: new Z(e, a, r),
3556
+ watchMode: new me(e, a, r)
2953
3557
  };
2954
3558
  }, Ye = ({
2955
3559
  children: l,
2956
- getAccessToken: r,
2957
- baseURL: e,
2958
- mutable: t
3560
+ getAccessToken: o,
3561
+ baseURL: a,
3562
+ mutable: r
2959
3563
  }) => {
2960
- const a = W(
2961
- () => Pe(e, r),
2962
- [e, r]
2963
- ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, [s, n] = $(t), [c, i] = $(!0);
3564
+ const e = W(
3565
+ () => ge(a, o),
3566
+ [a, o]
3567
+ ), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [s, n] = $(r), [c, i] = $(!0);
2964
3568
  G(() => {
2965
- let h = !0;
3569
+ let d = !0;
2966
3570
  return (async () => {
2967
3571
  try {
2968
- const j = await a.publisher.getStatus();
2969
- if (h) {
2970
- const w = j.data?.frozenConfig;
2971
- let v;
2972
- w ? v = !1 : t === void 0 ? v = !0 : v = t, n(v), i(!1);
3572
+ const k = await e.publisher.getStatus();
3573
+ if (d) {
3574
+ const w = k.data?.frozenConfig;
3575
+ let U;
3576
+ w ? U = !1 : r === void 0 ? U = !0 : U = r, n(U), i(!1);
2973
3577
  }
2974
- } catch (j) {
2975
- console.error("Failed to fetch publisher status:", j), h && (n(t), i(!1));
3578
+ } catch (k) {
3579
+ console.error("Failed to fetch publisher status:", k), d && (n(r), i(!1));
2976
3580
  }
2977
3581
  })(), () => {
2978
- h = !1;
3582
+ d = !1;
2979
3583
  };
2980
- }, [a, t]);
3584
+ }, [e, r]);
2981
3585
  const p = {
2982
- server: o,
2983
- getAccessToken: r,
2984
- apiClients: a,
3586
+ server: t,
3587
+ getAccessToken: o,
3588
+ apiClients: e,
2985
3589
  mutable: s,
2986
3590
  isLoadingStatus: c
2987
3591
  };
2988
- return /* @__PURE__ */ B(L, { client: Ve, children: /* @__PURE__ */ B(E.Provider, { value: p, children: l }) });
3592
+ return /* @__PURE__ */ q(H, { client: Pe, children: /* @__PURE__ */ q(E.Provider, { value: p, children: l }) });
2989
3593
  }, Xe = () => {
2990
- const l = H(E);
3594
+ const l = f(E);
2991
3595
  if (l === void 0)
2992
3596
  throw new Error("useServer must be used within a ServerProvider");
2993
3597
  return l;
2994
3598
  };
2995
3599
  export {
2996
3600
  _e as $,
2997
- ye as A,
2998
- I as B,
2999
- Ae as C,
3601
+ Ie as A,
3602
+ A as B,
3603
+ ke as C,
3000
3604
  Ne as D,
3001
3605
  Ee as E,
3002
- Re as F,
3003
- fe as G,
3004
- Le as H,
3606
+ xe as F,
3607
+ Le as G,
3608
+ He as H,
3005
3609
  te as I,
3006
- k as J,
3007
- He as K,
3008
- ke as L,
3009
- ve as M,
3010
- Ue as N,
3610
+ R as J,
3611
+ fe as K,
3612
+ Re as L,
3613
+ Ue as M,
3614
+ ve as N,
3011
3615
  re as O,
3012
3616
  oe as P,
3013
- U as Q,
3617
+ v as Q,
3014
3618
  De as R,
3015
3619
  Ye as S,
3016
3620
  se as T,
@@ -3020,41 +3624,41 @@ export {
3020
3624
  Ge as X,
3021
3625
  ce as Y,
3022
3626
  le as Z,
3023
- R as _,
3024
- Ce as a,
3627
+ x as _,
3628
+ ye as a,
3025
3629
  ie as a0,
3026
3630
  pe as a1,
3027
- F as a2,
3631
+ z as a2,
3028
3632
  Je as a3,
3029
3633
  de as a4,
3030
3634
  he as a5,
3031
- M as a6,
3635
+ T as a6,
3032
3636
  Ke as a7,
3033
- ue as a8,
3034
- me as a9,
3035
- je as b,
3036
- xe as c,
3037
- Ie as d,
3038
- Me as e,
3637
+ me as a8,
3638
+ ue as a9,
3639
+ Ce as b,
3640
+ je as c,
3641
+ Ae as d,
3642
+ Te as e,
3039
3643
  we as f,
3040
- Ve as g,
3644
+ Pe as g,
3041
3645
  J as h,
3042
- y as i,
3043
- Te as j,
3646
+ I as i,
3647
+ Me as j,
3044
3648
  K as k,
3045
3649
  Y as l,
3046
- z as m,
3650
+ B as m,
3047
3651
  Qe as n,
3048
- Be as o,
3652
+ qe as o,
3049
3653
  X as p,
3050
- q,
3654
+ F as q,
3051
3655
  $e as r,
3052
3656
  Z as s,
3053
3657
  ee as t,
3054
3658
  Xe as u,
3055
3659
  Q as v,
3056
- ze as w,
3057
- qe as x,
3058
- Fe as y,
3660
+ Be as w,
3661
+ Fe as x,
3662
+ ze as y,
3059
3663
  ae as z
3060
3664
  };