@malloy-publisher/sdk 0.0.188 → 0.0.382-dev

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 Q } from "react/jsx-runtime";
2
- import { QueryClient as E, QueryClientProvider as L } from "@tanstack/react-query";
1
+ import { jsx as B } from "react/jsx-runtime";
2
+ import { QueryClient as f, QueryClientProvider as L } from "@tanstack/react-query";
3
3
  import u from "axios";
4
- import { useContext as H, createContext as f, useMemo as W, useState as q, useEffect as D } from "react";
4
+ import { useContext as H, createContext as D, useMemo as W, useState as $, useEffect as G } from "react";
5
5
  const m = "http://localhost/api/v0".replace(/\/+$/, "");
6
- class j {
7
- constructor(a, e = m, r = u) {
8
- this.basePath = e, this.axios = r, a && (this.configuration = a, this.basePath = a.basePath ?? e);
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);
9
9
  }
10
10
  configuration;
11
11
  }
12
- class G extends Error {
13
- constructor(a, e) {
14
- super(e), this.field = a, this.name = "RequiredError";
12
+ class _ extends Error {
13
+ constructor(r, e) {
14
+ super(e), this.field = r, this.name = "RequiredError";
15
15
  }
16
16
  }
17
- const P = {}, V = "https://example.com", h = function(c, a, e) {
17
+ const V = {}, P = "https://example.com", d = function(l, r, e) {
18
18
  if (e == null)
19
- throw new G(a, `Required parameter ${a} was null or undefined when calling ${c}.`);
19
+ throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
20
20
  };
21
- function T(c, a, e = "") {
22
- a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) => T(c, r, e)) : Object.keys(a).forEach(
23
- (r) => T(c, a[r], `${e}${e !== "" ? "." : ""}${r}`)
24
- ) : c.has(e) ? c.append(e, a) : c.set(e, a));
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));
25
25
  }
26
- const O = function(c, ...a) {
27
- const e = new URLSearchParams(c.search);
28
- T(e, a), c.search = e.toString();
29
- }, C = function(c, a, e) {
30
- const r = typeof c != "string";
31
- return (r && e && e.isJsonMime ? e.isJsonMime(a.headers["Content-Type"]) : r) ? JSON.stringify(c !== void 0 ? c : {}) : c || "";
32
- }, b = function(c) {
33
- return c.pathname + c.search + c.hash;
34
- }, g = function(c, a, e, r) {
35
- return (t = a, o = e) => {
36
- const s = { ...c.options, url: (t.defaults.baseURL ? "" : r?.basePath ?? o) + c.url };
37
- return t.request(s);
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) {
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);
38
38
  };
39
- }, Oe = {
39
+ }, ye = {
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
- }, be = {
46
+ }, Ce = {
47
47
  ServicePrincipal: "service_principal",
48
48
  SasToken: "sas_token"
49
- }, ge = {
49
+ }, Ae = {
50
50
  Error: "error",
51
51
  Warn: "warn",
52
52
  Debug: "debug"
53
- }, Se = {
53
+ }, je = {
54
54
  Success: "success",
55
55
  Error: "error"
56
- }, ye = {
56
+ }, xe = {
57
57
  Postgres: "postgres",
58
58
  Bigquery: "bigquery",
59
59
  Snowflake: "snowflake",
@@ -62,34 +62,40 @@ const O = function(c, ...a) {
62
62
  Duckdb: "duckdb",
63
63
  Motherduck: "motherduck",
64
64
  Ducklake: "ducklake"
65
- }, Ce = {
65
+ }, Ie = {
66
66
  Ok: "ok",
67
67
  Failed: "failed"
68
- }, je = {
68
+ }, Ne = {
69
69
  Embedded: "embedded",
70
70
  Materialized: "materialized"
71
- }, xe = {
71
+ }, Re = {
72
72
  Equal: "equal",
73
73
  In: "in",
74
74
  Like: "like",
75
75
  GreaterThan: "greater_than",
76
76
  LessThan: "less_than"
77
- }, Ae = {
77
+ }, ke = {
78
78
  Debug: "debug",
79
79
  Info: "info",
80
80
  Warn: "warn",
81
81
  Error: "error"
82
- }, ke = {
82
+ }, ve = {
83
+ Pending: "PENDING",
84
+ Running: "RUNNING",
85
+ Success: "SUCCESS",
86
+ Failed: "FAILED",
87
+ Cancelled: "CANCELLED"
88
+ }, Ue = {
83
89
  Markdown: "markdown",
84
90
  Code: "code"
85
- }, Ne = {
91
+ }, Me = {
86
92
  Markdown: "markdown",
87
93
  Code: "code"
88
- }, ve = {
94
+ }, we = {
89
95
  Initializing: "initializing",
90
96
  Serving: "serving",
91
97
  Draining: "draining"
92
- }, z = function(c) {
98
+ }, J = function(l) {
93
99
  return {
94
100
  /**
95
101
  * Creates a new database connection in the specified project.
@@ -100,17 +106,17 @@ const O = function(c, ...a) {
100
106
  * @param {*} [options] Override http request option.
101
107
  * @throws {RequiredError}
102
108
  */
103
- createConnection: async (a, e, r, t = {}) => {
104
- h("createConnection", "projectName", a), h("createConnection", "connectionName", e), h("createConnection", "connection", r);
105
- const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
106
112
  let n;
107
- c && (n = c.baseOptions);
108
- const l = { method: "POST", ...n, ...t }, i = {}, p = {};
113
+ l && (n = l.baseOptions);
114
+ const c = { method: "POST", ...n, ...a }, i = {}, p = {};
109
115
  i["Content-Type"] = "application/json", O(s, p);
110
- let d = n && n.headers ? n.headers : {};
111
- return l.headers = { ...i, ...d, ...t.headers }, l.data = C(r, l, c), {
112
- url: b(s),
113
- options: l
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),
119
+ options: c
114
120
  };
115
121
  },
116
122
  /**
@@ -121,16 +127,16 @@ const O = function(c, ...a) {
121
127
  * @param {*} [options] Override http request option.
122
128
  * @throws {RequiredError}
123
129
  */
124
- deleteConnection: async (a, e, r = {}) => {
125
- h("deleteConnection", "projectName", a), h("deleteConnection", "connectionName", e);
126
- const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
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);
127
133
  let s;
128
- c && (s = c.baseOptions);
129
- const n = { method: "DELETE", ...s, ...r }, l = {};
134
+ l && (s = l.baseOptions);
135
+ const n = { method: "DELETE", ...s, ...t }, c = {};
130
136
  O(o, {});
131
137
  let p = s && s.headers ? s.headers : {};
132
- return n.headers = { ...l, ...p, ...r.headers }, {
133
- url: b(o),
138
+ return n.headers = { ...c, ...p, ...t.headers }, {
139
+ url: g(o),
134
140
  options: n
135
141
  };
136
142
  },
@@ -142,16 +148,16 @@ const O = function(c, ...a) {
142
148
  * @param {*} [options] Override http request option.
143
149
  * @throws {RequiredError}
144
150
  */
145
- getConnection: async (a, e, r = {}) => {
146
- h("getConnection", "projectName", a), h("getConnection", "connectionName", e);
147
- const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
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);
148
154
  let s;
149
- c && (s = c.baseOptions);
150
- const n = { method: "GET", ...s, ...r }, l = {};
155
+ l && (s = l.baseOptions);
156
+ const n = { method: "GET", ...s, ...t }, c = {};
151
157
  O(o, {});
152
158
  let p = s && s.headers ? s.headers : {};
153
- return n.headers = { ...l, ...p, ...r.headers }, {
154
- url: b(o),
159
+ return n.headers = { ...c, ...p, ...t.headers }, {
160
+ url: g(o),
155
161
  options: n
156
162
  };
157
163
  },
@@ -166,16 +172,16 @@ const O = function(c, ...a) {
166
172
  * @deprecated
167
173
  * @throws {RequiredError}
168
174
  */
169
- getQuerydata: async (a, e, r, t, o = {}) => {
170
- h("getQuerydata", "projectName", a), h("getQuerydata", "connectionName", e);
171
- const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
172
- let l;
173
- c && (l = c.baseOptions);
174
- const i = { method: "GET", ...l, ...o }, p = {}, d = {};
175
- r !== void 0 && (d.sqlStatement = r), t !== void 0 && (d.options = t), O(n, d);
176
- let S = l && l.headers ? l.headers : {};
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);
178
+ let c;
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 : {};
177
183
  return i.headers = { ...p, ...S, ...o.headers }, {
178
- url: b(n),
184
+ url: g(n),
179
185
  options: i
180
186
  };
181
187
  },
@@ -189,17 +195,17 @@ const O = function(c, ...a) {
189
195
  * @deprecated
190
196
  * @throws {RequiredError}
191
197
  */
192
- getSqlsource: async (a, e, r, t = {}) => {
193
- h("getSqlsource", "projectName", a), h("getSqlsource", "connectionName", e);
194
- const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
195
201
  let n;
196
- c && (n = c.baseOptions);
197
- const l = { method: "GET", ...n, ...t }, i = {}, p = {};
198
- r !== void 0 && (p.sqlStatement = r), O(s, p);
199
- let d = n && n.headers ? n.headers : {};
200
- return l.headers = { ...i, ...d, ...t.headers }, {
201
- url: b(s),
202
- options: l
202
+ 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),
208
+ options: c
203
209
  };
204
210
  },
205
211
  /**
@@ -212,16 +218,16 @@ const O = function(c, ...a) {
212
218
  * @param {*} [options] Override http request option.
213
219
  * @throws {RequiredError}
214
220
  */
215
- getTable: async (a, e, r, t, o = {}) => {
216
- h("getTable", "projectName", a), h("getTable", "connectionName", e), h("getTable", "schemaName", r), h("getTable", "tablePath", t);
217
- const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(t))), n = new URL(s, V);
218
- let l;
219
- c && (l = c.baseOptions);
220
- const i = { method: "GET", ...l, ...o }, p = {};
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);
224
+ let c;
225
+ l && (c = l.baseOptions);
226
+ const i = { method: "GET", ...c, ...o }, p = {};
221
227
  O(n, {});
222
- let S = l && l.headers ? l.headers : {};
228
+ let S = c && c.headers ? c.headers : {};
223
229
  return i.headers = { ...p, ...S, ...o.headers }, {
224
- url: b(n),
230
+ url: g(n),
225
231
  options: i
226
232
  };
227
233
  },
@@ -235,17 +241,17 @@ const O = function(c, ...a) {
235
241
  * @deprecated
236
242
  * @throws {RequiredError}
237
243
  */
238
- getTemporarytable: async (a, e, r, t = {}) => {
239
- h("getTemporarytable", "projectName", a), h("getTemporarytable", "connectionName", e);
240
- const o = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
241
247
  let n;
242
- c && (n = c.baseOptions);
243
- const l = { method: "GET", ...n, ...t }, i = {}, p = {};
244
- r !== void 0 && (p.sqlStatement = r), O(s, p);
245
- let d = n && n.headers ? n.headers : {};
246
- return l.headers = { ...i, ...d, ...t.headers }, {
247
- url: b(s),
248
- options: l
248
+ 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),
254
+ options: c
249
255
  };
250
256
  },
251
257
  /**
@@ -255,16 +261,16 @@ const O = function(c, ...a) {
255
261
  * @param {*} [options] Override http request option.
256
262
  * @throws {RequiredError}
257
263
  */
258
- listConnections: async (a, e = {}) => {
259
- h("listConnections", "projectName", a);
260
- const r = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
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);
261
267
  let o;
262
- c && (o = c.baseOptions);
268
+ l && (o = l.baseOptions);
263
269
  const s = { method: "GET", ...o, ...e }, n = {};
264
- O(t, {});
270
+ O(a, {});
265
271
  let i = o && o.headers ? o.headers : {};
266
272
  return s.headers = { ...n, ...i, ...e.headers }, {
267
- url: b(t),
273
+ url: g(a),
268
274
  options: s
269
275
  };
270
276
  },
@@ -276,16 +282,16 @@ const O = function(c, ...a) {
276
282
  * @param {*} [options] Override http request option.
277
283
  * @throws {RequiredError}
278
284
  */
279
- listSchemas: async (a, e, r = {}) => {
280
- h("listSchemas", "projectName", a), h("listSchemas", "connectionName", e);
281
- const t = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
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);
282
288
  let s;
283
- c && (s = c.baseOptions);
284
- const n = { method: "GET", ...s, ...r }, l = {};
289
+ l && (s = l.baseOptions);
290
+ const n = { method: "GET", ...s, ...t }, c = {};
285
291
  O(o, {});
286
292
  let p = s && s.headers ? s.headers : {};
287
- return n.headers = { ...l, ...p, ...r.headers }, {
288
- url: b(o),
293
+ return n.headers = { ...c, ...p, ...t.headers }, {
294
+ url: g(o),
289
295
  options: n
290
296
  };
291
297
  },
@@ -299,16 +305,16 @@ const O = function(c, ...a) {
299
305
  * @param {*} [options] Override http request option.
300
306
  * @throws {RequiredError}
301
307
  */
302
- listTables: async (a, e, r, t, o = {}) => {
303
- h("listTables", "projectName", a), h("listTables", "connectionName", e), h("listTables", "schemaName", r);
304
- const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), n = new URL(s, V);
305
- let l;
306
- c && (l = c.baseOptions);
307
- const i = { method: "GET", ...l, ...o }, p = {}, d = {};
308
- t && (d.tableNames = t), O(n, d);
309
- let S = l && l.headers ? l.headers : {};
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);
311
+ let c;
312
+ 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 : {};
310
316
  return i.headers = { ...p, ...S, ...o.headers }, {
311
- url: b(n),
317
+ url: g(n),
312
318
  options: i
313
319
  };
314
320
  },
@@ -317,22 +323,21 @@ const O = function(c, ...a) {
317
323
  * @summary Execute SQL query
318
324
  * @param {string} projectName Name of the project
319
325
  * @param {string} connectionName Name of the connection
320
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
321
- * @param {string} [_options] Options
326
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
322
327
  * @param {*} [options] Override http request option.
323
328
  * @throws {RequiredError}
324
329
  */
325
- postQuerydata: async (a, e, r, t, o = {}) => {
326
- h("postQuerydata", "projectName", a), h("postQuerydata", "connectionName", e), h("postQuerydata", "postSqlsourceRequest", r);
327
- const s = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
328
- let l;
329
- c && (l = c.baseOptions);
330
- const i = { method: "POST", ...l, ...o }, p = {}, d = {};
331
- t !== void 0 && (d.options = t), p["Content-Type"] = "application/json", O(n, d);
332
- let S = l && l.headers ? l.headers : {};
333
- return i.headers = { ...p, ...S, ...o.headers }, i.data = C(r, i, c), {
334
- url: b(n),
335
- options: i
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
336
341
  };
337
342
  },
338
343
  /**
@@ -344,17 +349,17 @@ const O = function(c, ...a) {
344
349
  * @param {*} [options] Override http request option.
345
350
  * @throws {RequiredError}
346
351
  */
347
- postSqlsource: async (a, e, r, t = {}) => {
348
- h("postSqlsource", "projectName", a), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", r);
349
- const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
350
355
  let n;
351
- c && (n = c.baseOptions);
352
- const l = { method: "POST", ...n, ...t }, i = {}, p = {};
356
+ l && (n = l.baseOptions);
357
+ const c = { method: "POST", ...n, ...a }, i = {}, p = {};
353
358
  i["Content-Type"] = "application/json", O(s, p);
354
- let d = n && n.headers ? n.headers : {};
355
- return l.headers = { ...i, ...d, ...t.headers }, l.data = C(r, l, c), {
356
- url: b(s),
357
- options: l
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),
362
+ options: c
358
363
  };
359
364
  },
360
365
  /**
@@ -366,17 +371,17 @@ const O = function(c, ...a) {
366
371
  * @param {*} [options] Override http request option.
367
372
  * @throws {RequiredError}
368
373
  */
369
- postTemporarytable: async (a, e, r, t = {}) => {
370
- h("postTemporarytable", "projectName", a), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", r);
371
- const o = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
372
377
  let n;
373
- c && (n = c.baseOptions);
374
- const l = { method: "POST", ...n, ...t }, i = {}, p = {};
378
+ l && (n = l.baseOptions);
379
+ const c = { method: "POST", ...n, ...a }, i = {}, p = {};
375
380
  i["Content-Type"] = "application/json", O(s, p);
376
- let d = n && n.headers ? n.headers : {};
377
- return l.headers = { ...i, ...d, ...t.headers }, l.data = C(r, l, c), {
378
- url: b(s),
379
- options: l
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),
384
+ options: c
380
385
  };
381
386
  },
382
387
  /**
@@ -388,22 +393,22 @@ const O = function(c, ...a) {
388
393
  * @param {*} [options] Override http request option.
389
394
  * @throws {RequiredError}
390
395
  */
391
- updateConnection: async (a, e, r, t = {}) => {
392
- h("updateConnection", "projectName", a), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", r);
393
- const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
394
399
  let n;
395
- c && (n = c.baseOptions);
396
- const l = { method: "PATCH", ...n, ...t }, i = {}, p = {};
400
+ l && (n = l.baseOptions);
401
+ const c = { method: "PATCH", ...n, ...a }, i = {}, p = {};
397
402
  i["Content-Type"] = "application/json", O(s, p);
398
- let d = n && n.headers ? n.headers : {};
399
- return l.headers = { ...i, ...d, ...t.headers }, l.data = C(r, l, c), {
400
- url: b(s),
401
- options: l
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),
406
+ options: c
402
407
  };
403
408
  }
404
409
  };
405
- }, y = function(c) {
406
- const a = z(c);
410
+ }, y = function(l) {
411
+ const r = J(l);
407
412
  return {
408
413
  /**
409
414
  * Creates a new database connection in the specified project.
@@ -414,9 +419,9 @@ const O = function(c, ...a) {
414
419
  * @param {*} [options] Override http request option.
415
420
  * @throws {RequiredError}
416
421
  */
417
- async createConnection(e, r, t, o) {
418
- const s = await a.createConnection(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.createConnection"]?.[n]?.url;
419
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
420
425
  },
421
426
  /**
422
427
  * Permanently deletes a database connection from the project.
@@ -426,9 +431,9 @@ const O = function(c, ...a) {
426
431
  * @param {*} [options] Override http request option.
427
432
  * @throws {RequiredError}
428
433
  */
429
- async deleteConnection(e, r, t) {
430
- const o = await a.deleteConnection(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.deleteConnection"]?.[s]?.url;
431
- return (l, i) => g(o, u, m, c)(l, n || i);
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);
432
437
  },
433
438
  /**
434
439
  * 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.
@@ -438,9 +443,9 @@ const O = function(c, ...a) {
438
443
  * @param {*} [options] Override http request option.
439
444
  * @throws {RequiredError}
440
445
  */
441
- async getConnection(e, r, t) {
442
- const o = await a.getConnection(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.getConnection"]?.[s]?.url;
443
- return (l, i) => g(o, u, m, c)(l, n || i);
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);
444
449
  },
445
450
  /**
446
451
  * **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.
@@ -453,9 +458,9 @@ const O = function(c, ...a) {
453
458
  * @deprecated
454
459
  * @throws {RequiredError}
455
460
  */
456
- async getQuerydata(e, r, t, o, s) {
457
- const n = await a.getQuerydata(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[l]?.url;
458
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
459
464
  },
460
465
  /**
461
466
  * **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.
@@ -467,9 +472,9 @@ const O = function(c, ...a) {
467
472
  * @deprecated
468
473
  * @throws {RequiredError}
469
474
  */
470
- async getSqlsource(e, r, t, o) {
471
- const s = await a.getSqlsource(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getSqlsource"]?.[n]?.url;
472
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
473
478
  },
474
479
  /**
475
480
  * 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.
@@ -481,9 +486,9 @@ const O = function(c, ...a) {
481
486
  * @param {*} [options] Override http request option.
482
487
  * @throws {RequiredError}
483
488
  */
484
- async getTable(e, r, t, o, s) {
485
- const n = await a.getTable(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
486
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
487
492
  },
488
493
  /**
489
494
  * **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.
@@ -495,9 +500,9 @@ const O = function(c, ...a) {
495
500
  * @deprecated
496
501
  * @throws {RequiredError}
497
502
  */
498
- async getTemporarytable(e, r, t, o) {
499
- const s = await a.getTemporarytable(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getTemporarytable"]?.[n]?.url;
500
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
501
506
  },
502
507
  /**
503
508
  * 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.
@@ -506,9 +511,9 @@ const O = function(c, ...a) {
506
511
  * @param {*} [options] Override http request option.
507
512
  * @throws {RequiredError}
508
513
  */
509
- async listConnections(e, r) {
510
- const t = await a.listConnections(e, r), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.listConnections"]?.[o]?.url;
511
- return (n, l) => g(t, u, m, c)(n, s || l);
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);
512
517
  },
513
518
  /**
514
519
  * 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.
@@ -518,9 +523,9 @@ const O = function(c, ...a) {
518
523
  * @param {*} [options] Override http request option.
519
524
  * @throws {RequiredError}
520
525
  */
521
- async listSchemas(e, r, t) {
522
- const o = await a.listSchemas(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.listSchemas"]?.[s]?.url;
523
- return (l, i) => g(o, u, m, c)(l, n || i);
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);
524
529
  },
525
530
  /**
526
531
  * 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.
@@ -532,23 +537,22 @@ const O = function(c, ...a) {
532
537
  * @param {*} [options] Override http request option.
533
538
  * @throws {RequiredError}
534
539
  */
535
- async listTables(e, r, t, o, s) {
536
- const n = await a.listTables(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[l]?.url;
537
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
538
543
  },
539
544
  /**
540
545
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
541
546
  * @summary Execute SQL query
542
547
  * @param {string} projectName Name of the project
543
548
  * @param {string} connectionName Name of the connection
544
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
545
- * @param {string} [_options] Options
549
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
546
550
  * @param {*} [options] Override http request option.
547
551
  * @throws {RequiredError}
548
552
  */
549
- async postQuerydata(e, r, t, o, s) {
550
- const n = await a.postQuerydata(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[l]?.url;
551
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
552
556
  },
553
557
  /**
554
558
  * 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.
@@ -559,9 +563,9 @@ const O = function(c, ...a) {
559
563
  * @param {*} [options] Override http request option.
560
564
  * @throws {RequiredError}
561
565
  */
562
- async postSqlsource(e, r, t, o) {
563
- const s = await a.postSqlsource(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[n]?.url;
564
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
565
569
  },
566
570
  /**
567
571
  * 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.
@@ -572,9 +576,9 @@ const O = function(c, ...a) {
572
576
  * @param {*} [options] Override http request option.
573
577
  * @throws {RequiredError}
574
578
  */
575
- async postTemporarytable(e, r, t, o) {
576
- const s = await a.postTemporarytable(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[n]?.url;
577
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
578
582
  },
579
583
  /**
580
584
  * Updates the configuration of an existing database connection.
@@ -585,13 +589,13 @@ const O = function(c, ...a) {
585
589
  * @param {*} [options] Override http request option.
586
590
  * @throws {RequiredError}
587
591
  */
588
- async updateConnection(e, r, t, o) {
589
- const s = await a.updateConnection(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.updateConnection"]?.[n]?.url;
590
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
591
595
  }
592
596
  };
593
- }, Ie = function(c, a, e) {
594
- const r = y(c);
597
+ }, Te = function(l, r, e) {
598
+ const t = y(l);
595
599
  return {
596
600
  /**
597
601
  * Creates a new database connection in the specified project.
@@ -602,8 +606,8 @@ const O = function(c, ...a) {
602
606
  * @param {*} [options] Override http request option.
603
607
  * @throws {RequiredError}
604
608
  */
605
- createConnection(t, o, s, n) {
606
- return r.createConnection(t, o, s, n).then((l) => l(e, a));
609
+ createConnection(a, o, s, n) {
610
+ return t.createConnection(a, o, s, n).then((c) => c(e, r));
607
611
  },
608
612
  /**
609
613
  * Permanently deletes a database connection from the project.
@@ -613,8 +617,8 @@ const O = function(c, ...a) {
613
617
  * @param {*} [options] Override http request option.
614
618
  * @throws {RequiredError}
615
619
  */
616
- deleteConnection(t, o, s) {
617
- return r.deleteConnection(t, o, s).then((n) => n(e, a));
620
+ deleteConnection(a, o, s) {
621
+ return t.deleteConnection(a, o, s).then((n) => n(e, r));
618
622
  },
619
623
  /**
620
624
  * 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.
@@ -624,8 +628,8 @@ const O = function(c, ...a) {
624
628
  * @param {*} [options] Override http request option.
625
629
  * @throws {RequiredError}
626
630
  */
627
- getConnection(t, o, s) {
628
- return r.getConnection(t, o, s).then((n) => n(e, a));
631
+ getConnection(a, o, s) {
632
+ return t.getConnection(a, o, s).then((n) => n(e, r));
629
633
  },
630
634
  /**
631
635
  * **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.
@@ -638,8 +642,8 @@ const O = function(c, ...a) {
638
642
  * @deprecated
639
643
  * @throws {RequiredError}
640
644
  */
641
- getQuerydata(t, o, s, n, l) {
642
- return r.getQuerydata(t, o, s, n, l).then((i) => i(e, a));
645
+ getQuerydata(a, o, s, n, c) {
646
+ return t.getQuerydata(a, o, s, n, c).then((i) => i(e, r));
643
647
  },
644
648
  /**
645
649
  * **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.
@@ -651,8 +655,8 @@ const O = function(c, ...a) {
651
655
  * @deprecated
652
656
  * @throws {RequiredError}
653
657
  */
654
- getSqlsource(t, o, s, n) {
655
- return r.getSqlsource(t, o, s, n).then((l) => l(e, a));
658
+ getSqlsource(a, o, s, n) {
659
+ return t.getSqlsource(a, o, s, n).then((c) => c(e, r));
656
660
  },
657
661
  /**
658
662
  * 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.
@@ -664,8 +668,8 @@ const O = function(c, ...a) {
664
668
  * @param {*} [options] Override http request option.
665
669
  * @throws {RequiredError}
666
670
  */
667
- getTable(t, o, s, n, l) {
668
- return r.getTable(t, o, s, n, l).then((i) => i(e, a));
671
+ getTable(a, o, s, n, c) {
672
+ return t.getTable(a, o, s, n, c).then((i) => i(e, r));
669
673
  },
670
674
  /**
671
675
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
@@ -677,8 +681,8 @@ const O = function(c, ...a) {
677
681
  * @deprecated
678
682
  * @throws {RequiredError}
679
683
  */
680
- getTemporarytable(t, o, s, n) {
681
- return r.getTemporarytable(t, o, s, n).then((l) => l(e, a));
684
+ getTemporarytable(a, o, s, n) {
685
+ return t.getTemporarytable(a, o, s, n).then((c) => c(e, r));
682
686
  },
683
687
  /**
684
688
  * 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.
@@ -687,8 +691,8 @@ const O = function(c, ...a) {
687
691
  * @param {*} [options] Override http request option.
688
692
  * @throws {RequiredError}
689
693
  */
690
- listConnections(t, o) {
691
- return r.listConnections(t, o).then((s) => s(e, a));
694
+ listConnections(a, o) {
695
+ return t.listConnections(a, o).then((s) => s(e, r));
692
696
  },
693
697
  /**
694
698
  * 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.
@@ -698,8 +702,8 @@ const O = function(c, ...a) {
698
702
  * @param {*} [options] Override http request option.
699
703
  * @throws {RequiredError}
700
704
  */
701
- listSchemas(t, o, s) {
702
- return r.listSchemas(t, o, s).then((n) => n(e, a));
705
+ listSchemas(a, o, s) {
706
+ return t.listSchemas(a, o, s).then((n) => n(e, r));
703
707
  },
704
708
  /**
705
709
  * 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.
@@ -711,21 +715,20 @@ const O = function(c, ...a) {
711
715
  * @param {*} [options] Override http request option.
712
716
  * @throws {RequiredError}
713
717
  */
714
- listTables(t, o, s, n, l) {
715
- return r.listTables(t, o, s, n, l).then((i) => i(e, a));
718
+ listTables(a, o, s, n, c) {
719
+ return t.listTables(a, o, s, n, c).then((i) => i(e, r));
716
720
  },
717
721
  /**
718
722
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
719
723
  * @summary Execute SQL query
720
724
  * @param {string} projectName Name of the project
721
725
  * @param {string} connectionName Name of the connection
722
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
723
- * @param {string} [_options] Options
726
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
724
727
  * @param {*} [options] Override http request option.
725
728
  * @throws {RequiredError}
726
729
  */
727
- postQuerydata(t, o, s, n, l) {
728
- return r.postQuerydata(t, o, s, n, l).then((i) => i(e, a));
730
+ postQuerydata(a, o, s, n) {
731
+ return t.postQuerydata(a, o, s, n).then((c) => c(e, r));
729
732
  },
730
733
  /**
731
734
  * 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.
@@ -736,8 +739,8 @@ const O = function(c, ...a) {
736
739
  * @param {*} [options] Override http request option.
737
740
  * @throws {RequiredError}
738
741
  */
739
- postSqlsource(t, o, s, n) {
740
- return r.postSqlsource(t, o, s, n).then((l) => l(e, a));
742
+ postSqlsource(a, o, s, n) {
743
+ return t.postSqlsource(a, o, s, n).then((c) => c(e, r));
741
744
  },
742
745
  /**
743
746
  * 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.
@@ -748,8 +751,8 @@ const O = function(c, ...a) {
748
751
  * @param {*} [options] Override http request option.
749
752
  * @throws {RequiredError}
750
753
  */
751
- postTemporarytable(t, o, s, n) {
752
- return r.postTemporarytable(t, o, s, n).then((l) => l(e, a));
754
+ postTemporarytable(a, o, s, n) {
755
+ return t.postTemporarytable(a, o, s, n).then((c) => c(e, r));
753
756
  },
754
757
  /**
755
758
  * Updates the configuration of an existing database connection.
@@ -760,12 +763,12 @@ const O = function(c, ...a) {
760
763
  * @param {*} [options] Override http request option.
761
764
  * @throws {RequiredError}
762
765
  */
763
- updateConnection(t, o, s, n) {
764
- return r.updateConnection(t, o, s, n).then((l) => l(e, a));
766
+ updateConnection(a, o, s, n) {
767
+ return t.updateConnection(a, o, s, n).then((c) => c(e, r));
765
768
  }
766
769
  };
767
770
  };
768
- class _ extends j {
771
+ class K extends A {
769
772
  /**
770
773
  * Creates a new database connection in the specified project.
771
774
  * @summary Create a new database connection
@@ -776,8 +779,8 @@ class _ extends j {
776
779
  * @throws {RequiredError}
777
780
  * @memberof ConnectionsApi
778
781
  */
779
- createConnection(a, e, r, t) {
780
- return y(this.configuration).createConnection(a, e, r, t).then((o) => o(this.axios, this.basePath));
782
+ createConnection(r, e, t, a) {
783
+ return y(this.configuration).createConnection(r, e, t, a).then((o) => o(this.axios, this.basePath));
781
784
  }
782
785
  /**
783
786
  * Permanently deletes a database connection from the project.
@@ -788,8 +791,8 @@ class _ extends j {
788
791
  * @throws {RequiredError}
789
792
  * @memberof ConnectionsApi
790
793
  */
791
- deleteConnection(a, e, r) {
792
- return y(this.configuration).deleteConnection(a, e, r).then((t) => t(this.axios, this.basePath));
794
+ deleteConnection(r, e, t) {
795
+ return y(this.configuration).deleteConnection(r, e, t).then((a) => a(this.axios, this.basePath));
793
796
  }
794
797
  /**
795
798
  * 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.
@@ -800,8 +803,8 @@ class _ extends j {
800
803
  * @throws {RequiredError}
801
804
  * @memberof ConnectionsApi
802
805
  */
803
- getConnection(a, e, r) {
804
- return y(this.configuration).getConnection(a, e, r).then((t) => t(this.axios, this.basePath));
806
+ getConnection(r, e, t) {
807
+ return y(this.configuration).getConnection(r, e, t).then((a) => a(this.axios, this.basePath));
805
808
  }
806
809
  /**
807
810
  * **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.
@@ -815,8 +818,8 @@ class _ extends j {
815
818
  * @throws {RequiredError}
816
819
  * @memberof ConnectionsApi
817
820
  */
818
- getQuerydata(a, e, r, t, o) {
819
- return y(this.configuration).getQuerydata(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
820
823
  }
821
824
  /**
822
825
  * **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.
@@ -829,8 +832,8 @@ class _ extends j {
829
832
  * @throws {RequiredError}
830
833
  * @memberof ConnectionsApi
831
834
  */
832
- getSqlsource(a, e, r, t) {
833
- return y(this.configuration).getSqlsource(a, e, r, t).then((o) => o(this.axios, this.basePath));
835
+ getSqlsource(r, e, t, a) {
836
+ return y(this.configuration).getSqlsource(r, e, t, a).then((o) => o(this.axios, this.basePath));
834
837
  }
835
838
  /**
836
839
  * 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.
@@ -843,8 +846,8 @@ class _ extends j {
843
846
  * @throws {RequiredError}
844
847
  * @memberof ConnectionsApi
845
848
  */
846
- getTable(a, e, r, t, o) {
847
- return y(this.configuration).getTable(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
848
851
  }
849
852
  /**
850
853
  * **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.
@@ -857,8 +860,8 @@ class _ extends j {
857
860
  * @throws {RequiredError}
858
861
  * @memberof ConnectionsApi
859
862
  */
860
- getTemporarytable(a, e, r, t) {
861
- return y(this.configuration).getTemporarytable(a, e, r, t).then((o) => o(this.axios, this.basePath));
863
+ getTemporarytable(r, e, t, a) {
864
+ return y(this.configuration).getTemporarytable(r, e, t, a).then((o) => o(this.axios, this.basePath));
862
865
  }
863
866
  /**
864
867
  * 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.
@@ -868,8 +871,8 @@ class _ extends j {
868
871
  * @throws {RequiredError}
869
872
  * @memberof ConnectionsApi
870
873
  */
871
- listConnections(a, e) {
872
- return y(this.configuration).listConnections(a, e).then((r) => r(this.axios, this.basePath));
874
+ listConnections(r, e) {
875
+ return y(this.configuration).listConnections(r, e).then((t) => t(this.axios, this.basePath));
873
876
  }
874
877
  /**
875
878
  * 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.
@@ -880,8 +883,8 @@ class _ extends j {
880
883
  * @throws {RequiredError}
881
884
  * @memberof ConnectionsApi
882
885
  */
883
- listSchemas(a, e, r) {
884
- return y(this.configuration).listSchemas(a, e, r).then((t) => t(this.axios, this.basePath));
886
+ listSchemas(r, e, t) {
887
+ return y(this.configuration).listSchemas(r, e, t).then((a) => a(this.axios, this.basePath));
885
888
  }
886
889
  /**
887
890
  * 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.
@@ -894,22 +897,21 @@ class _ extends j {
894
897
  * @throws {RequiredError}
895
898
  * @memberof ConnectionsApi
896
899
  */
897
- listTables(a, e, r, t, o) {
898
- return y(this.configuration).listTables(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
899
902
  }
900
903
  /**
901
904
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
902
905
  * @summary Execute SQL query
903
906
  * @param {string} projectName Name of the project
904
907
  * @param {string} connectionName Name of the connection
905
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
906
- * @param {string} [_options] Options
908
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
907
909
  * @param {*} [options] Override http request option.
908
910
  * @throws {RequiredError}
909
911
  * @memberof ConnectionsApi
910
912
  */
911
- postQuerydata(a, e, r, t, o) {
912
- return y(this.configuration).postQuerydata(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
913
+ postQuerydata(r, e, t, a) {
914
+ return y(this.configuration).postQuerydata(r, e, t, a).then((o) => o(this.axios, this.basePath));
913
915
  }
914
916
  /**
915
917
  * 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.
@@ -921,8 +923,8 @@ class _ extends j {
921
923
  * @throws {RequiredError}
922
924
  * @memberof ConnectionsApi
923
925
  */
924
- postSqlsource(a, e, r, t) {
925
- return y(this.configuration).postSqlsource(a, e, r, t).then((o) => o(this.axios, this.basePath));
926
+ postSqlsource(r, e, t, a) {
927
+ return y(this.configuration).postSqlsource(r, e, t, a).then((o) => o(this.axios, this.basePath));
926
928
  }
927
929
  /**
928
930
  * 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.
@@ -934,8 +936,8 @@ class _ extends j {
934
936
  * @throws {RequiredError}
935
937
  * @memberof ConnectionsApi
936
938
  */
937
- postTemporarytable(a, e, r, t) {
938
- return y(this.configuration).postTemporarytable(a, e, r, t).then((o) => o(this.axios, this.basePath));
939
+ postTemporarytable(r, e, t, a) {
940
+ return y(this.configuration).postTemporarytable(r, e, t, a).then((o) => o(this.axios, this.basePath));
939
941
  }
940
942
  /**
941
943
  * Updates the configuration of an existing database connection.
@@ -947,11 +949,11 @@ class _ extends j {
947
949
  * @throws {RequiredError}
948
950
  * @memberof ConnectionsApi
949
951
  */
950
- updateConnection(a, e, r, t) {
951
- return y(this.configuration).updateConnection(a, e, r, t).then((o) => o(this.axios, this.basePath));
952
+ updateConnection(r, e, t, a) {
953
+ return y(this.configuration).updateConnection(r, e, t, a).then((o) => o(this.axios, this.basePath));
952
954
  }
953
955
  }
954
- const J = function(c) {
956
+ const Y = function(l) {
955
957
  return {
956
958
  /**
957
959
  * 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.
@@ -960,22 +962,22 @@ const J = function(c) {
960
962
  * @param {*} [options] Override http request option.
961
963
  * @throws {RequiredError}
962
964
  */
963
- testConnectionConfiguration: async (a, e = {}) => {
964
- h("testConnectionConfiguration", "connection", a);
965
- const r = "/connections/test", t = new URL(r, V);
965
+ testConnectionConfiguration: async (r, e = {}) => {
966
+ d("testConnectionConfiguration", "connection", r);
967
+ const t = "/connections/test", a = new URL(t, P);
966
968
  let o;
967
- c && (o = c.baseOptions);
968
- const s = { method: "POST", ...o, ...e }, n = {}, l = {};
969
- n["Content-Type"] = "application/json", O(t, l);
969
+ l && (o = l.baseOptions);
970
+ const s = { method: "POST", ...o, ...e }, n = {}, c = {};
971
+ n["Content-Type"] = "application/json", O(a, c);
970
972
  let i = o && o.headers ? o.headers : {};
971
- return s.headers = { ...n, ...i, ...e.headers }, s.data = C(a, s, c), {
972
- url: b(t),
973
+ return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
974
+ url: g(a),
973
975
  options: s
974
976
  };
975
977
  }
976
978
  };
977
- }, B = function(c) {
978
- const a = J(c);
979
+ }, z = function(l) {
980
+ const r = Y(l);
979
981
  return {
980
982
  /**
981
983
  * 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.
@@ -984,13 +986,13 @@ const J = function(c) {
984
986
  * @param {*} [options] Override http request option.
985
987
  * @throws {RequiredError}
986
988
  */
987
- async testConnectionConfiguration(e, r) {
988
- const t = await a.testConnectionConfiguration(e, r), o = c?.serverIndex ?? 0, s = P["ConnectionsTestApi.testConnectionConfiguration"]?.[o]?.url;
989
- return (n, l) => g(t, u, m, c)(n, s || l);
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);
990
992
  }
991
993
  };
992
- }, Re = function(c, a, e) {
993
- const r = B(c);
994
+ }, Qe = function(l, r, e) {
995
+ const t = z(l);
994
996
  return {
995
997
  /**
996
998
  * 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.
@@ -999,12 +1001,12 @@ const J = function(c) {
999
1001
  * @param {*} [options] Override http request option.
1000
1002
  * @throws {RequiredError}
1001
1003
  */
1002
- testConnectionConfiguration(t, o) {
1003
- return r.testConnectionConfiguration(t, o).then((s) => s(e, a));
1004
+ testConnectionConfiguration(a, o) {
1005
+ return t.testConnectionConfiguration(a, o).then((s) => s(e, r));
1004
1006
  }
1005
1007
  };
1006
1008
  };
1007
- class Ue extends j {
1009
+ class Be extends A {
1008
1010
  /**
1009
1011
  * 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.
1010
1012
  * @summary Test database connection configuration
@@ -1013,11 +1015,11 @@ class Ue extends j {
1013
1015
  * @throws {RequiredError}
1014
1016
  * @memberof ConnectionsTestApi
1015
1017
  */
1016
- testConnectionConfiguration(a, e) {
1017
- return B(this.configuration).testConnectionConfiguration(a, e).then((r) => r(this.axios, this.basePath));
1018
+ testConnectionConfiguration(r, e) {
1019
+ return z(this.configuration).testConnectionConfiguration(r, e).then((t) => t(this.axios, this.basePath));
1018
1020
  }
1019
1021
  }
1020
- const K = function(c) {
1022
+ const X = function(l) {
1021
1023
  return {
1022
1024
  /**
1023
1025
  * 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.
@@ -1028,22 +1030,22 @@ const K = function(c) {
1028
1030
  * @param {*} [options] Override http request option.
1029
1031
  * @throws {RequiredError}
1030
1032
  */
1031
- listDatabases: async (a, e, r, t = {}) => {
1032
- h("listDatabases", "projectName", a), h("listDatabases", "packageName", e);
1033
- const o = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
1034
1036
  let n;
1035
- c && (n = c.baseOptions);
1036
- const l = { method: "GET", ...n, ...t }, i = {}, p = {};
1037
- r !== void 0 && (p.versionId = r), O(s, p);
1038
- let d = n && n.headers ? n.headers : {};
1039
- return l.headers = { ...i, ...d, ...t.headers }, {
1040
- url: b(s),
1041
- options: l
1037
+ 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),
1043
+ options: c
1042
1044
  };
1043
1045
  }
1044
1046
  };
1045
- }, M = function(c) {
1046
- const a = K(c);
1047
+ }, q = function(l) {
1048
+ const r = X(l);
1047
1049
  return {
1048
1050
  /**
1049
1051
  * 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.
@@ -1054,13 +1056,13 @@ const K = function(c) {
1054
1056
  * @param {*} [options] Override http request option.
1055
1057
  * @throws {RequiredError}
1056
1058
  */
1057
- async listDatabases(e, r, t, o) {
1058
- const s = await a.listDatabases(e, r, t, o), n = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[n]?.url;
1059
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
1060
1062
  }
1061
1063
  };
1062
- }, we = function(c, a, e) {
1063
- const r = M(c);
1064
+ }, $e = function(l, r, e) {
1065
+ const t = q(l);
1064
1066
  return {
1065
1067
  /**
1066
1068
  * 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.
@@ -1071,12 +1073,12 @@ const K = function(c) {
1071
1073
  * @param {*} [options] Override http request option.
1072
1074
  * @throws {RequiredError}
1073
1075
  */
1074
- listDatabases(t, o, s, n) {
1075
- return r.listDatabases(t, o, s, n).then((l) => l(e, a));
1076
+ listDatabases(a, o, s, n) {
1077
+ return t.listDatabases(a, o, s, n).then((c) => c(e, r));
1076
1078
  }
1077
1079
  };
1078
1080
  };
1079
- class Y extends j {
1081
+ class Z extends A {
1080
1082
  /**
1081
1083
  * 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.
1082
1084
  * @summary List embedded databases
@@ -1087,11 +1089,468 @@ class Y extends j {
1087
1089
  * @throws {RequiredError}
1088
1090
  * @memberof DatabasesApi
1089
1091
  */
1090
- listDatabases(a, e, r, t) {
1091
- return M(this.configuration).listDatabases(a, e, r, t).then((o) => o(this.axios, this.basePath));
1092
+ listDatabases(r, e, t, a) {
1093
+ return q(this.configuration).listDatabases(r, e, t, a).then((o) => o(this.axios, this.basePath));
1094
+ }
1095
+ }
1096
+ const ee = function(l) {
1097
+ return {
1098
+ /**
1099
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1100
+ * @summary Get the build manifest for a package
1101
+ * @param {string} projectName Name of the project
1102
+ * @param {string} packageName Name of the package
1103
+ * @param {*} [options] Override http request option.
1104
+ * @throws {RequiredError}
1105
+ */
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);
1109
+ let s;
1110
+ l && (s = l.baseOptions);
1111
+ const n = { method: "GET", ...s, ...t }, c = {};
1112
+ O(o, {});
1113
+ let p = s && s.headers ? s.headers : {};
1114
+ return n.headers = { ...c, ...p, ...t.headers }, {
1115
+ url: g(o),
1116
+ options: n
1117
+ };
1118
+ },
1119
+ /**
1120
+ * 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.
1121
+ * @summary Perform an action on the package manifest
1122
+ * @param {string} projectName Name of the project
1123
+ * @param {string} packageName Name of the package
1124
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1125
+ * @param {*} [options] Override http request option.
1126
+ * @throws {RequiredError}
1127
+ */
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);
1131
+ let n;
1132
+ 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),
1138
+ options: c
1139
+ };
1140
+ }
1141
+ };
1142
+ }, Q = function(l) {
1143
+ const r = ee(l);
1144
+ return {
1145
+ /**
1146
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1147
+ * @summary Get the build manifest for a package
1148
+ * @param {string} projectName Name of the project
1149
+ * @param {string} packageName Name of the package
1150
+ * @param {*} [options] Override http request option.
1151
+ * @throws {RequiredError}
1152
+ */
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);
1156
+ },
1157
+ /**
1158
+ * 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.
1159
+ * @summary Perform an action on the package manifest
1160
+ * @param {string} projectName Name of the project
1161
+ * @param {string} packageName Name of the package
1162
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1163
+ * @param {*} [options] Override http request option.
1164
+ * @throws {RequiredError}
1165
+ */
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);
1169
+ }
1170
+ };
1171
+ }, ze = function(l, r, e) {
1172
+ const t = Q(l);
1173
+ return {
1174
+ /**
1175
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1176
+ * @summary Get the build manifest for a package
1177
+ * @param {string} projectName Name of the project
1178
+ * @param {string} packageName Name of the package
1179
+ * @param {*} [options] Override http request option.
1180
+ * @throws {RequiredError}
1181
+ */
1182
+ getManifest(a, o, s) {
1183
+ return t.getManifest(a, o, s).then((n) => n(e, r));
1184
+ },
1185
+ /**
1186
+ * 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.
1187
+ * @summary Perform an action on the package manifest
1188
+ * @param {string} projectName Name of the project
1189
+ * @param {string} packageName Name of the package
1190
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ */
1194
+ manifestAction(a, o, s, n) {
1195
+ return t.manifestAction(a, o, s, n).then((c) => c(e, r));
1196
+ }
1197
+ };
1198
+ };
1199
+ class qe extends A {
1200
+ /**
1201
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1202
+ * @summary Get the build manifest for a package
1203
+ * @param {string} projectName Name of the project
1204
+ * @param {string} packageName Name of the package
1205
+ * @param {*} [options] Override http request option.
1206
+ * @throws {RequiredError}
1207
+ * @memberof ManifestsApi
1208
+ */
1209
+ getManifest(r, e, t) {
1210
+ return Q(this.configuration).getManifest(r, e, t).then((a) => a(this.axios, this.basePath));
1211
+ }
1212
+ /**
1213
+ * 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.
1214
+ * @summary Perform an action on the package manifest
1215
+ * @param {string} projectName Name of the project
1216
+ * @param {string} packageName Name of the package
1217
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ * @memberof ManifestsApi
1221
+ */
1222
+ manifestAction(r, e, t, a) {
1223
+ return Q(this.configuration).manifestAction(r, e, t, a).then((o) => o(this.axios, this.basePath));
1224
+ }
1225
+ }
1226
+ const Fe = {
1227
+ Reload: "reload"
1228
+ }, ae = function(l) {
1229
+ return {
1230
+ /**
1231
+ * 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.
1232
+ * @summary Create a materialization
1233
+ * @param {string} projectName Name of the project
1234
+ * @param {string} packageName Name of the package
1235
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
1236
+ * @param {*} [options] Override http request option.
1237
+ * @throws {RequiredError}
1238
+ */
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);
1242
+ let n;
1243
+ l && (n = l.baseOptions);
1244
+ const c = { method: "POST", ...n, ...a }, i = {}, p = {};
1245
+ 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),
1249
+ options: c
1250
+ };
1251
+ },
1252
+ /**
1253
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
1254
+ * @summary Delete a materialization
1255
+ * @param {string} projectName Name of the project
1256
+ * @param {string} packageName Name of the package
1257
+ * @param {string} materializationId ID of the materialization
1258
+ * @param {*} [options] Override http request option.
1259
+ * @throws {RequiredError}
1260
+ */
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);
1264
+ let n;
1265
+ l && (n = l.baseOptions);
1266
+ const c = { method: "DELETE", ...n, ...a }, i = {};
1267
+ O(s, {});
1268
+ let h = n && n.headers ? n.headers : {};
1269
+ return c.headers = { ...i, ...h, ...a.headers }, {
1270
+ url: g(s),
1271
+ options: c
1272
+ };
1273
+ },
1274
+ /**
1275
+ *
1276
+ * @summary Get a specific materialization
1277
+ * @param {string} projectName Name of the project
1278
+ * @param {string} packageName Name of the package
1279
+ * @param {string} materializationId ID of the materialization
1280
+ * @param {*} [options] Override http request option.
1281
+ * @throws {RequiredError}
1282
+ */
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);
1286
+ let n;
1287
+ l && (n = l.baseOptions);
1288
+ const c = { method: "GET", ...n, ...a }, i = {};
1289
+ O(s, {});
1290
+ let h = n && n.headers ? n.headers : {};
1291
+ return c.headers = { ...i, ...h, ...a.headers }, {
1292
+ url: g(s),
1293
+ options: c
1294
+ };
1295
+ },
1296
+ /**
1297
+ * Returns the materialization history for the package, ordered by most recent first.
1298
+ * @summary List materializations for a package
1299
+ * @param {string} projectName Name of the project
1300
+ * @param {string} packageName Name of the package
1301
+ * @param {number} [limit] Maximum number of materializations to return
1302
+ * @param {number} [offset] Number of materializations to skip
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
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);
1309
+ let c;
1310
+ 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),
1316
+ options: i
1317
+ };
1318
+ },
1319
+ /**
1320
+ * 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.
1321
+ * @summary Perform an action on a materialization
1322
+ * @param {string} projectName Name of the project
1323
+ * @param {string} packageName Name of the package
1324
+ * @param {string} materializationId ID of the materialization
1325
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1326
+ * @param {*} [options] Override http request option.
1327
+ * @throws {RequiredError}
1328
+ */
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);
1332
+ let c;
1333
+ 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),
1339
+ options: i
1340
+ };
1341
+ }
1342
+ };
1343
+ }, I = function(l) {
1344
+ const r = ae(l);
1345
+ return {
1346
+ /**
1347
+ * 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.
1348
+ * @summary Create a materialization
1349
+ * @param {string} projectName Name of the project
1350
+ * @param {string} packageName Name of the package
1351
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
1352
+ * @param {*} [options] Override http request option.
1353
+ * @throws {RequiredError}
1354
+ */
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);
1358
+ },
1359
+ /**
1360
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
1361
+ * @summary Delete a materialization
1362
+ * @param {string} projectName Name of the project
1363
+ * @param {string} packageName Name of the package
1364
+ * @param {string} materializationId ID of the materialization
1365
+ * @param {*} [options] Override http request option.
1366
+ * @throws {RequiredError}
1367
+ */
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);
1371
+ },
1372
+ /**
1373
+ *
1374
+ * @summary Get a specific materialization
1375
+ * @param {string} projectName Name of the project
1376
+ * @param {string} packageName Name of the package
1377
+ * @param {string} materializationId ID of the materialization
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
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);
1384
+ },
1385
+ /**
1386
+ * Returns the materialization history for the package, ordered by most recent first.
1387
+ * @summary List materializations for a package
1388
+ * @param {string} projectName Name of the project
1389
+ * @param {string} packageName Name of the package
1390
+ * @param {number} [limit] Maximum number of materializations to return
1391
+ * @param {number} [offset] Number of materializations to skip
1392
+ * @param {*} [options] Override http request option.
1393
+ * @throws {RequiredError}
1394
+ */
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);
1398
+ },
1399
+ /**
1400
+ * 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.
1401
+ * @summary Perform an action on a materialization
1402
+ * @param {string} projectName Name of the project
1403
+ * @param {string} packageName Name of the package
1404
+ * @param {string} materializationId ID of the materialization
1405
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
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);
1412
+ }
1413
+ };
1414
+ }, Ee = function(l, r, e) {
1415
+ const t = I(l);
1416
+ return {
1417
+ /**
1418
+ * 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.
1419
+ * @summary Create a materialization
1420
+ * @param {string} projectName Name of the project
1421
+ * @param {string} packageName Name of the package
1422
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ createMaterialization(a, o, s, n) {
1427
+ return t.createMaterialization(a, o, s, n).then((c) => c(e, r));
1428
+ },
1429
+ /**
1430
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
1431
+ * @summary Delete a materialization
1432
+ * @param {string} projectName Name of the project
1433
+ * @param {string} packageName Name of the package
1434
+ * @param {string} materializationId ID of the materialization
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ */
1438
+ deleteMaterialization(a, o, s, n) {
1439
+ return t.deleteMaterialization(a, o, s, n).then((c) => c(e, r));
1440
+ },
1441
+ /**
1442
+ *
1443
+ * @summary Get a specific materialization
1444
+ * @param {string} projectName Name of the project
1445
+ * @param {string} packageName Name of the package
1446
+ * @param {string} materializationId ID of the materialization
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ getMaterialization(a, o, s, n) {
1451
+ return t.getMaterialization(a, o, s, n).then((c) => c(e, r));
1452
+ },
1453
+ /**
1454
+ * Returns the materialization history for the package, ordered by most recent first.
1455
+ * @summary List materializations for a package
1456
+ * @param {string} projectName Name of the project
1457
+ * @param {string} packageName Name of the package
1458
+ * @param {number} [limit] Maximum number of materializations to return
1459
+ * @param {number} [offset] Number of materializations to skip
1460
+ * @param {*} [options] Override http request option.
1461
+ * @throws {RequiredError}
1462
+ */
1463
+ listMaterializations(a, o, s, n, c) {
1464
+ return t.listMaterializations(a, o, s, n, c).then((i) => i(e, r));
1465
+ },
1466
+ /**
1467
+ * 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.
1468
+ * @summary Perform an action on a materialization
1469
+ * @param {string} projectName Name of the project
1470
+ * @param {string} packageName Name of the package
1471
+ * @param {string} materializationId ID of the materialization
1472
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1473
+ * @param {*} [options] Override http request option.
1474
+ * @throws {RequiredError}
1475
+ */
1476
+ materializationAction(a, o, s, n, c) {
1477
+ return t.materializationAction(a, o, s, n, c).then((i) => i(e, r));
1478
+ }
1479
+ };
1480
+ };
1481
+ class fe extends A {
1482
+ /**
1483
+ * 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
+ * @summary Create a materialization
1485
+ * @param {string} projectName Name of the project
1486
+ * @param {string} packageName Name of the package
1487
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ * @memberof MaterializationsApi
1491
+ */
1492
+ createMaterialization(r, e, t, a) {
1493
+ return I(this.configuration).createMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
1494
+ }
1495
+ /**
1496
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
1497
+ * @summary Delete a materialization
1498
+ * @param {string} projectName Name of the project
1499
+ * @param {string} packageName Name of the package
1500
+ * @param {string} materializationId ID of the materialization
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ * @memberof MaterializationsApi
1504
+ */
1505
+ deleteMaterialization(r, e, t, a) {
1506
+ return I(this.configuration).deleteMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
1507
+ }
1508
+ /**
1509
+ *
1510
+ * @summary Get a specific materialization
1511
+ * @param {string} projectName Name of the project
1512
+ * @param {string} packageName Name of the package
1513
+ * @param {string} materializationId ID of the materialization
1514
+ * @param {*} [options] Override http request option.
1515
+ * @throws {RequiredError}
1516
+ * @memberof MaterializationsApi
1517
+ */
1518
+ getMaterialization(r, e, t, a) {
1519
+ return I(this.configuration).getMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
1520
+ }
1521
+ /**
1522
+ * Returns the materialization history for the package, ordered by most recent first.
1523
+ * @summary List materializations for a package
1524
+ * @param {string} projectName Name of the project
1525
+ * @param {string} packageName Name of the package
1526
+ * @param {number} [limit] Maximum number of materializations to return
1527
+ * @param {number} [offset] Number of materializations to skip
1528
+ * @param {*} [options] Override http request option.
1529
+ * @throws {RequiredError}
1530
+ * @memberof MaterializationsApi
1531
+ */
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));
1534
+ }
1535
+ /**
1536
+ * 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.
1537
+ * @summary Perform an action on a materialization
1538
+ * @param {string} projectName Name of the project
1539
+ * @param {string} packageName Name of the package
1540
+ * @param {string} materializationId ID of the materialization
1541
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1542
+ * @param {*} [options] Override http request option.
1543
+ * @throws {RequiredError}
1544
+ * @memberof MaterializationsApi
1545
+ */
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));
1092
1548
  }
1093
1549
  }
1094
- const X = function(c) {
1550
+ const Le = {
1551
+ Start: "start",
1552
+ Stop: "stop"
1553
+ }, te = function(l) {
1095
1554
  return {
1096
1555
  /**
1097
1556
  * 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.
@@ -1103,16 +1562,16 @@ const X = function(c) {
1103
1562
  * @param {*} [options] Override http request option.
1104
1563
  * @throws {RequiredError}
1105
1564
  */
1106
- compileModelSource: async (a, e, r, t, o = {}) => {
1107
- h("compileModelSource", "projectName", a), h("compileModelSource", "packageName", e), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", t);
1108
- const s = "/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1109
- let l;
1110
- c && (l = c.baseOptions);
1111
- const i = { method: "POST", ...l, ...o }, p = {}, d = {};
1112
- p["Content-Type"] = "application/json", O(n, d);
1113
- let S = l && l.headers ? l.headers : {};
1114
- return i.headers = { ...p, ...S, ...o.headers }, i.data = C(t, i, c), {
1115
- url: b(n),
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);
1568
+ let c;
1569
+ 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),
1116
1575
  options: i
1117
1576
  };
1118
1577
  },
@@ -1126,16 +1585,16 @@ const X = function(c) {
1126
1585
  * @param {*} [options] Override http request option.
1127
1586
  * @throws {RequiredError}
1128
1587
  */
1129
- executeQueryModel: async (a, e, r, t, o = {}) => {
1130
- h("executeQueryModel", "projectName", a), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", t);
1131
- const s = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1132
- let l;
1133
- c && (l = c.baseOptions);
1134
- const i = { method: "POST", ...l, ...o }, p = {}, d = {};
1135
- p["Content-Type"] = "application/json", O(n, d);
1136
- let S = l && l.headers ? l.headers : {};
1137
- return i.headers = { ...p, ...S, ...o.headers }, i.data = C(t, i, c), {
1138
- url: b(n),
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);
1591
+ let c;
1592
+ 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),
1139
1598
  options: i
1140
1599
  };
1141
1600
  },
@@ -1149,16 +1608,16 @@ const X = function(c) {
1149
1608
  * @param {*} [options] Override http request option.
1150
1609
  * @throws {RequiredError}
1151
1610
  */
1152
- getModel: async (a, e, r, t, o = {}) => {
1153
- h("getModel", "projectName", a), h("getModel", "packageName", e), h("getModel", "path", r);
1154
- const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1155
- let l;
1156
- c && (l = c.baseOptions);
1157
- const i = { method: "GET", ...l, ...o }, p = {}, d = {};
1158
- t !== void 0 && (d.versionId = t), O(n, d);
1159
- let S = l && l.headers ? l.headers : {};
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);
1614
+ let c;
1615
+ 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 : {};
1160
1619
  return i.headers = { ...p, ...S, ...o.headers }, {
1161
- url: b(n),
1620
+ url: g(n),
1162
1621
  options: i
1163
1622
  };
1164
1623
  },
@@ -1171,22 +1630,22 @@ const X = function(c) {
1171
1630
  * @param {*} [options] Override http request option.
1172
1631
  * @throws {RequiredError}
1173
1632
  */
1174
- listModels: async (a, e, r, t = {}) => {
1175
- h("listModels", "projectName", a), h("listModels", "packageName", e);
1176
- const o = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
1177
1636
  let n;
1178
- c && (n = c.baseOptions);
1179
- const l = { method: "GET", ...n, ...t }, i = {}, p = {};
1180
- r !== void 0 && (p.versionId = r), O(s, p);
1181
- let d = n && n.headers ? n.headers : {};
1182
- return l.headers = { ...i, ...d, ...t.headers }, {
1183
- url: b(s),
1184
- options: l
1637
+ 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),
1643
+ options: c
1185
1644
  };
1186
1645
  }
1187
1646
  };
1188
- }, v = function(c) {
1189
- const a = X(c);
1647
+ }, k = function(l) {
1648
+ const r = te(l);
1190
1649
  return {
1191
1650
  /**
1192
1651
  * 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.
@@ -1198,9 +1657,9 @@ const X = function(c) {
1198
1657
  * @param {*} [options] Override http request option.
1199
1658
  * @throws {RequiredError}
1200
1659
  */
1201
- async compileModelSource(e, r, t, o, s) {
1202
- const n = await a.compileModelSource(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[l]?.url;
1203
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
1204
1663
  },
1205
1664
  /**
1206
1665
  * 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.
@@ -1212,9 +1671,9 @@ const X = function(c) {
1212
1671
  * @param {*} [options] Override http request option.
1213
1672
  * @throws {RequiredError}
1214
1673
  */
1215
- async executeQueryModel(e, r, t, o, s) {
1216
- const n = await a.executeQueryModel(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
1217
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
1218
1677
  },
1219
1678
  /**
1220
1679
  * 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.
@@ -1226,9 +1685,9 @@ const X = function(c) {
1226
1685
  * @param {*} [options] Override http request option.
1227
1686
  * @throws {RequiredError}
1228
1687
  */
1229
- async getModel(e, r, t, o, s) {
1230
- const n = await a.getModel(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
1231
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
1232
1691
  },
1233
1692
  /**
1234
1693
  * 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.
@@ -1239,13 +1698,13 @@ const X = function(c) {
1239
1698
  * @param {*} [options] Override http request option.
1240
1699
  * @throws {RequiredError}
1241
1700
  */
1242
- async listModels(e, r, t, o) {
1243
- const s = await a.listModels(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[n]?.url;
1244
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
1245
1704
  }
1246
1705
  };
1247
- }, Te = function(c, a, e) {
1248
- const r = v(c);
1706
+ }, He = function(l, r, e) {
1707
+ const t = k(l);
1249
1708
  return {
1250
1709
  /**
1251
1710
  * 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.
@@ -1257,8 +1716,8 @@ const X = function(c) {
1257
1716
  * @param {*} [options] Override http request option.
1258
1717
  * @throws {RequiredError}
1259
1718
  */
1260
- compileModelSource(t, o, s, n, l) {
1261
- return r.compileModelSource(t, o, s, n, l).then((i) => i(e, a));
1719
+ compileModelSource(a, o, s, n, c) {
1720
+ return t.compileModelSource(a, o, s, n, c).then((i) => i(e, r));
1262
1721
  },
1263
1722
  /**
1264
1723
  * 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.
@@ -1270,8 +1729,8 @@ const X = function(c) {
1270
1729
  * @param {*} [options] Override http request option.
1271
1730
  * @throws {RequiredError}
1272
1731
  */
1273
- executeQueryModel(t, o, s, n, l) {
1274
- return r.executeQueryModel(t, o, s, n, l).then((i) => i(e, a));
1732
+ executeQueryModel(a, o, s, n, c) {
1733
+ return t.executeQueryModel(a, o, s, n, c).then((i) => i(e, r));
1275
1734
  },
1276
1735
  /**
1277
1736
  * 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.
@@ -1283,8 +1742,8 @@ const X = function(c) {
1283
1742
  * @param {*} [options] Override http request option.
1284
1743
  * @throws {RequiredError}
1285
1744
  */
1286
- getModel(t, o, s, n, l) {
1287
- return r.getModel(t, o, s, n, l).then((i) => i(e, a));
1745
+ getModel(a, o, s, n, c) {
1746
+ return t.getModel(a, o, s, n, c).then((i) => i(e, r));
1288
1747
  },
1289
1748
  /**
1290
1749
  * 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.
@@ -1295,12 +1754,12 @@ const X = function(c) {
1295
1754
  * @param {*} [options] Override http request option.
1296
1755
  * @throws {RequiredError}
1297
1756
  */
1298
- listModels(t, o, s, n) {
1299
- return r.listModels(t, o, s, n).then((l) => l(e, a));
1757
+ listModels(a, o, s, n) {
1758
+ return t.listModels(a, o, s, n).then((c) => c(e, r));
1300
1759
  }
1301
1760
  };
1302
1761
  };
1303
- class Z extends j {
1762
+ class re extends A {
1304
1763
  /**
1305
1764
  * 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.
1306
1765
  * @summary Compile Malloy source code
@@ -1312,8 +1771,8 @@ class Z extends j {
1312
1771
  * @throws {RequiredError}
1313
1772
  * @memberof ModelsApi
1314
1773
  */
1315
- compileModelSource(a, e, r, t, o) {
1316
- return v(this.configuration).compileModelSource(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
1317
1776
  }
1318
1777
  /**
1319
1778
  * 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.
@@ -1326,8 +1785,8 @@ class Z extends j {
1326
1785
  * @throws {RequiredError}
1327
1786
  * @memberof ModelsApi
1328
1787
  */
1329
- executeQueryModel(a, e, r, t, o) {
1330
- return v(this.configuration).executeQueryModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
1331
1790
  }
1332
1791
  /**
1333
1792
  * 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.
@@ -1340,8 +1799,8 @@ class Z extends j {
1340
1799
  * @throws {RequiredError}
1341
1800
  * @memberof ModelsApi
1342
1801
  */
1343
- getModel(a, e, r, t, o) {
1344
- return v(this.configuration).getModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
1345
1804
  }
1346
1805
  /**
1347
1806
  * 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.
@@ -1353,11 +1812,11 @@ class Z extends j {
1353
1812
  * @throws {RequiredError}
1354
1813
  * @memberof ModelsApi
1355
1814
  */
1356
- listModels(a, e, r, t) {
1357
- return v(this.configuration).listModels(a, e, r, t).then((o) => o(this.axios, this.basePath));
1815
+ listModels(r, e, t, a) {
1816
+ return k(this.configuration).listModels(r, e, t, a).then((o) => o(this.axios, this.basePath));
1358
1817
  }
1359
1818
  }
1360
- const ee = function(c) {
1819
+ const oe = function(l) {
1361
1820
  return {
1362
1821
  /**
1363
1822
  * 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.
@@ -1372,16 +1831,16 @@ const ee = function(c) {
1372
1831
  * @param {*} [options] Override http request option.
1373
1832
  * @throws {RequiredError}
1374
1833
  */
1375
- executeNotebookCell: async (a, e, r, t, o, s, n, l = {}) => {
1376
- h("executeNotebookCell", "projectName", a), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", t);
1377
- const i = "/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(t))), p = new URL(i, V);
1378
- let d;
1379
- c && (d = c.baseOptions);
1380
- const S = { method: "GET", ...d, ...l }, x = {}, A = {};
1381
- o !== void 0 && (A.versionId = o), s !== void 0 && (A.filter_params = s), n !== void 0 && (A.bypass_filters = n), O(p, A);
1382
- let w = d && d.headers ? d.headers : {};
1383
- return S.headers = { ...x, ...w, ...l.headers }, {
1384
- url: b(p),
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),
1385
1844
  options: S
1386
1845
  };
1387
1846
  },
@@ -1395,16 +1854,16 @@ const ee = function(c) {
1395
1854
  * @param {*} [options] Override http request option.
1396
1855
  * @throws {RequiredError}
1397
1856
  */
1398
- getNotebook: async (a, e, r, t, o = {}) => {
1399
- h("getNotebook", "projectName", a), h("getNotebook", "packageName", e), h("getNotebook", "path", r);
1400
- const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
1401
- let l;
1402
- c && (l = c.baseOptions);
1403
- const i = { method: "GET", ...l, ...o }, p = {}, d = {};
1404
- t !== void 0 && (d.versionId = t), O(n, d);
1405
- let S = l && l.headers ? l.headers : {};
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);
1860
+ let c;
1861
+ 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 : {};
1406
1865
  return i.headers = { ...p, ...S, ...o.headers }, {
1407
- url: b(n),
1866
+ url: g(n),
1408
1867
  options: i
1409
1868
  };
1410
1869
  },
@@ -1417,22 +1876,22 @@ const ee = function(c) {
1417
1876
  * @param {*} [options] Override http request option.
1418
1877
  * @throws {RequiredError}
1419
1878
  */
1420
- listNotebooks: async (a, e, r, t = {}) => {
1421
- h("listNotebooks", "projectName", a), h("listNotebooks", "packageName", e);
1422
- const o = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
1423
1882
  let n;
1424
- c && (n = c.baseOptions);
1425
- const l = { method: "GET", ...n, ...t }, i = {}, p = {};
1426
- r !== void 0 && (p.versionId = r), O(s, p);
1427
- let d = n && n.headers ? n.headers : {};
1428
- return l.headers = { ...i, ...d, ...t.headers }, {
1429
- url: b(s),
1430
- options: l
1883
+ 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),
1889
+ options: c
1431
1890
  };
1432
1891
  }
1433
1892
  };
1434
- }, R = function(c) {
1435
- const a = ee(c);
1893
+ }, U = function(l) {
1894
+ const r = oe(l);
1436
1895
  return {
1437
1896
  /**
1438
1897
  * 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.
@@ -1447,9 +1906,9 @@ const ee = function(c) {
1447
1906
  * @param {*} [options] Override http request option.
1448
1907
  * @throws {RequiredError}
1449
1908
  */
1450
- async executeNotebookCell(e, r, t, o, s, n, l, i) {
1451
- const p = await a.executeNotebookCell(e, r, t, o, s, n, l, i), d = c?.serverIndex ?? 0, S = P["NotebooksApi.executeNotebookCell"]?.[d]?.url;
1452
- return (x, A) => g(p, u, m, c)(x, S || A);
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);
1453
1912
  },
1454
1913
  /**
1455
1914
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -1461,9 +1920,9 @@ const ee = function(c) {
1461
1920
  * @param {*} [options] Override http request option.
1462
1921
  * @throws {RequiredError}
1463
1922
  */
1464
- async getNotebook(e, r, t, o, s) {
1465
- const n = await a.getNotebook(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
1466
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
1467
1926
  },
1468
1927
  /**
1469
1928
  * 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.
@@ -1474,13 +1933,13 @@ const ee = function(c) {
1474
1933
  * @param {*} [options] Override http request option.
1475
1934
  * @throws {RequiredError}
1476
1935
  */
1477
- async listNotebooks(e, r, t, o) {
1478
- const s = await a.listNotebooks(e, r, t, o), n = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[n]?.url;
1479
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
1480
1939
  }
1481
1940
  };
1482
- }, Qe = function(c, a, e) {
1483
- const r = R(c);
1941
+ }, De = function(l, r, e) {
1942
+ const t = U(l);
1484
1943
  return {
1485
1944
  /**
1486
1945
  * 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.
@@ -1495,8 +1954,8 @@ const ee = function(c) {
1495
1954
  * @param {*} [options] Override http request option.
1496
1955
  * @throws {RequiredError}
1497
1956
  */
1498
- executeNotebookCell(t, o, s, n, l, i, p, d) {
1499
- return r.executeNotebookCell(t, o, s, n, l, i, p, d).then((S) => S(e, a));
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));
1500
1959
  },
1501
1960
  /**
1502
1961
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -1508,8 +1967,8 @@ const ee = function(c) {
1508
1967
  * @param {*} [options] Override http request option.
1509
1968
  * @throws {RequiredError}
1510
1969
  */
1511
- getNotebook(t, o, s, n, l) {
1512
- return r.getNotebook(t, o, s, n, l).then((i) => i(e, a));
1970
+ getNotebook(a, o, s, n, c) {
1971
+ return t.getNotebook(a, o, s, n, c).then((i) => i(e, r));
1513
1972
  },
1514
1973
  /**
1515
1974
  * 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.
@@ -1520,12 +1979,12 @@ const ee = function(c) {
1520
1979
  * @param {*} [options] Override http request option.
1521
1980
  * @throws {RequiredError}
1522
1981
  */
1523
- listNotebooks(t, o, s, n) {
1524
- return r.listNotebooks(t, o, s, n).then((l) => l(e, a));
1982
+ listNotebooks(a, o, s, n) {
1983
+ return t.listNotebooks(a, o, s, n).then((c) => c(e, r));
1525
1984
  }
1526
1985
  };
1527
1986
  };
1528
- class te extends j {
1987
+ class se extends A {
1529
1988
  /**
1530
1989
  * 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.
1531
1990
  * @summary Execute a specific notebook cell
@@ -1540,8 +1999,8 @@ class te extends j {
1540
1999
  * @throws {RequiredError}
1541
2000
  * @memberof NotebooksApi
1542
2001
  */
1543
- executeNotebookCell(a, e, r, t, o, s, n, l) {
1544
- return R(this.configuration).executeNotebookCell(a, e, r, t, o, s, n, l).then((i) => i(this.axios, this.basePath));
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));
1545
2004
  }
1546
2005
  /**
1547
2006
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -1554,8 +2013,8 @@ class te extends j {
1554
2013
  * @throws {RequiredError}
1555
2014
  * @memberof NotebooksApi
1556
2015
  */
1557
- getNotebook(a, e, r, t, o) {
1558
- return R(this.configuration).getNotebook(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
1559
2018
  }
1560
2019
  /**
1561
2020
  * 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.
@@ -1567,34 +2026,35 @@ class te extends j {
1567
2026
  * @throws {RequiredError}
1568
2027
  * @memberof NotebooksApi
1569
2028
  */
1570
- listNotebooks(a, e, r, t) {
1571
- return R(this.configuration).listNotebooks(a, e, r, t).then((o) => o(this.axios, this.basePath));
2029
+ listNotebooks(r, e, t, a) {
2030
+ return U(this.configuration).listNotebooks(r, e, t, a).then((o) => o(this.axios, this.basePath));
1572
2031
  }
1573
2032
  }
1574
- const qe = {
2033
+ const We = {
1575
2034
  True: "true",
1576
2035
  False: "false"
1577
- }, ae = function(c) {
2036
+ }, ne = function(l) {
1578
2037
  return {
1579
2038
  /**
1580
2039
  * 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.
1581
2040
  * @summary Create a new package
1582
2041
  * @param {string} projectName Name of the project
1583
2042
  * @param {Package} _package
2043
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
1584
2044
  * @param {*} [options] Override http request option.
1585
2045
  * @throws {RequiredError}
1586
2046
  */
1587
- createPackage: async (a, e, r = {}) => {
1588
- h("createPackage", "projectName", a), h("createPackage", "_package", e);
1589
- const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
1590
- let s;
1591
- c && (s = c.baseOptions);
1592
- const n = { method: "POST", ...s, ...r }, l = {}, i = {};
1593
- l["Content-Type"] = "application/json", O(o, i);
1594
- let p = s && s.headers ? s.headers : {};
1595
- return n.headers = { ...l, ...p, ...r.headers }, n.data = C(e, n, c), {
1596
- url: b(o),
1597
- options: n
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);
2050
+ let n;
2051
+ 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),
2057
+ options: c
1598
2058
  };
1599
2059
  },
1600
2060
  /**
@@ -1605,16 +2065,16 @@ const qe = {
1605
2065
  * @param {*} [options] Override http request option.
1606
2066
  * @throws {RequiredError}
1607
2067
  */
1608
- deletePackage: async (a, e, r = {}) => {
1609
- h("deletePackage", "projectName", a), h("deletePackage", "packageName", e);
1610
- const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, V);
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);
1611
2071
  let s;
1612
- c && (s = c.baseOptions);
1613
- const n = { method: "DELETE", ...s, ...r }, l = {};
2072
+ l && (s = l.baseOptions);
2073
+ const n = { method: "DELETE", ...s, ...t }, c = {};
1614
2074
  O(o, {});
1615
2075
  let p = s && s.headers ? s.headers : {};
1616
- return n.headers = { ...l, ...p, ...r.headers }, {
1617
- url: b(o),
2076
+ return n.headers = { ...c, ...p, ...t.headers }, {
2077
+ url: g(o),
1618
2078
  options: n
1619
2079
  };
1620
2080
  },
@@ -1628,16 +2088,16 @@ const qe = {
1628
2088
  * @param {*} [options] Override http request option.
1629
2089
  * @throws {RequiredError}
1630
2090
  */
1631
- getPackage: async (a, e, r, t, o = {}) => {
1632
- h("getPackage", "projectName", a), h("getPackage", "packageName", e);
1633
- const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(s, V);
1634
- let l;
1635
- c && (l = c.baseOptions);
1636
- const i = { method: "GET", ...l, ...o }, p = {}, d = {};
1637
- r !== void 0 && (d.versionId = r), t !== void 0 && (d.reload = t), O(n, d);
1638
- let S = l && l.headers ? l.headers : {};
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);
2094
+ let c;
2095
+ 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 : {};
1639
2099
  return i.headers = { ...p, ...S, ...o.headers }, {
1640
- url: b(n),
2100
+ url: g(n),
1641
2101
  options: i
1642
2102
  };
1643
2103
  },
@@ -1648,16 +2108,16 @@ const qe = {
1648
2108
  * @param {*} [options] Override http request option.
1649
2109
  * @throws {RequiredError}
1650
2110
  */
1651
- listPackages: async (a, e = {}) => {
1652
- h("listPackages", "projectName", a);
1653
- const r = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
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);
1654
2114
  let o;
1655
- c && (o = c.baseOptions);
2115
+ l && (o = l.baseOptions);
1656
2116
  const s = { method: "GET", ...o, ...e }, n = {};
1657
- O(t, {});
2117
+ O(a, {});
1658
2118
  let i = o && o.headers ? o.headers : {};
1659
2119
  return s.headers = { ...n, ...i, ...e.headers }, {
1660
- url: b(t),
2120
+ url: g(a),
1661
2121
  options: s
1662
2122
  };
1663
2123
  },
@@ -1670,34 +2130,35 @@ const qe = {
1670
2130
  * @param {*} [options] Override http request option.
1671
2131
  * @throws {RequiredError}
1672
2132
  */
1673
- updatePackage: async (a, e, r, t = {}) => {
1674
- h("updatePackage", "projectName", a), h("updatePackage", "packageName", e), h("updatePackage", "_package", r);
1675
- const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
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);
1676
2136
  let n;
1677
- c && (n = c.baseOptions);
1678
- const l = { method: "PATCH", ...n, ...t }, i = {}, p = {};
2137
+ l && (n = l.baseOptions);
2138
+ const c = { method: "PATCH", ...n, ...a }, i = {}, p = {};
1679
2139
  i["Content-Type"] = "application/json", O(s, p);
1680
- let d = n && n.headers ? n.headers : {};
1681
- return l.headers = { ...i, ...d, ...t.headers }, l.data = C(r, l, c), {
1682
- url: b(s),
1683
- options: l
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),
2143
+ options: c
1684
2144
  };
1685
2145
  }
1686
2146
  };
1687
- }, k = function(c) {
1688
- const a = ae(c);
2147
+ }, N = function(l) {
2148
+ const r = ne(l);
1689
2149
  return {
1690
2150
  /**
1691
2151
  * 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.
1692
2152
  * @summary Create a new package
1693
2153
  * @param {string} projectName Name of the project
1694
2154
  * @param {Package} _package
2155
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
1695
2156
  * @param {*} [options] Override http request option.
1696
2157
  * @throws {RequiredError}
1697
2158
  */
1698
- async createPackage(e, r, t) {
1699
- const o = await a.createPackage(e, r, t), s = c?.serverIndex ?? 0, n = P["PackagesApi.createPackage"]?.[s]?.url;
1700
- return (l, i) => g(o, u, m, c)(l, n || i);
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);
1701
2162
  },
1702
2163
  /**
1703
2164
  * 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.
@@ -1707,9 +2168,9 @@ const qe = {
1707
2168
  * @param {*} [options] Override http request option.
1708
2169
  * @throws {RequiredError}
1709
2170
  */
1710
- async deletePackage(e, r, t) {
1711
- const o = await a.deletePackage(e, r, t), s = c?.serverIndex ?? 0, n = P["PackagesApi.deletePackage"]?.[s]?.url;
1712
- return (l, i) => g(o, u, m, c)(l, n || i);
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);
1713
2174
  },
1714
2175
  /**
1715
2176
  * 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.
@@ -1721,9 +2182,9 @@ const qe = {
1721
2182
  * @param {*} [options] Override http request option.
1722
2183
  * @throws {RequiredError}
1723
2184
  */
1724
- async getPackage(e, r, t, o, s) {
1725
- const n = await a.getPackage(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
1726
- return (p, d) => g(n, u, m, c)(p, i || d);
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);
1727
2188
  },
1728
2189
  /**
1729
2190
  * 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.
@@ -1732,9 +2193,9 @@ const qe = {
1732
2193
  * @param {*} [options] Override http request option.
1733
2194
  * @throws {RequiredError}
1734
2195
  */
1735
- async listPackages(e, r) {
1736
- const t = await a.listPackages(e, r), o = c?.serverIndex ?? 0, s = P["PackagesApi.listPackages"]?.[o]?.url;
1737
- return (n, l) => g(t, u, m, c)(n, s || l);
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);
1738
2199
  },
1739
2200
  /**
1740
2201
  * 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.
@@ -1745,24 +2206,25 @@ const qe = {
1745
2206
  * @param {*} [options] Override http request option.
1746
2207
  * @throws {RequiredError}
1747
2208
  */
1748
- async updatePackage(e, r, t, o) {
1749
- const s = await a.updatePackage(e, r, t, o), n = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[n]?.url;
1750
- return (i, p) => g(s, u, m, c)(i, l || p);
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);
1751
2212
  }
1752
2213
  };
1753
- }, Be = function(c, a, e) {
1754
- const r = k(c);
2214
+ }, Ge = function(l, r, e) {
2215
+ const t = N(l);
1755
2216
  return {
1756
2217
  /**
1757
2218
  * 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.
1758
2219
  * @summary Create a new package
1759
2220
  * @param {string} projectName Name of the project
1760
2221
  * @param {Package} _package
2222
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
1761
2223
  * @param {*} [options] Override http request option.
1762
2224
  * @throws {RequiredError}
1763
2225
  */
1764
- createPackage(t, o, s) {
1765
- return r.createPackage(t, o, s).then((n) => n(e, a));
2226
+ createPackage(a, o, s, n) {
2227
+ return t.createPackage(a, o, s, n).then((c) => c(e, r));
1766
2228
  },
1767
2229
  /**
1768
2230
  * 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.
@@ -1772,8 +2234,8 @@ const qe = {
1772
2234
  * @param {*} [options] Override http request option.
1773
2235
  * @throws {RequiredError}
1774
2236
  */
1775
- deletePackage(t, o, s) {
1776
- return r.deletePackage(t, o, s).then((n) => n(e, a));
2237
+ deletePackage(a, o, s) {
2238
+ return t.deletePackage(a, o, s).then((n) => n(e, r));
1777
2239
  },
1778
2240
  /**
1779
2241
  * 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.
@@ -1785,8 +2247,8 @@ const qe = {
1785
2247
  * @param {*} [options] Override http request option.
1786
2248
  * @throws {RequiredError}
1787
2249
  */
1788
- getPackage(t, o, s, n, l) {
1789
- return r.getPackage(t, o, s, n, l).then((i) => i(e, a));
2250
+ getPackage(a, o, s, n, c) {
2251
+ return t.getPackage(a, o, s, n, c).then((i) => i(e, r));
1790
2252
  },
1791
2253
  /**
1792
2254
  * 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.
@@ -1795,8 +2257,8 @@ const qe = {
1795
2257
  * @param {*} [options] Override http request option.
1796
2258
  * @throws {RequiredError}
1797
2259
  */
1798
- listPackages(t, o) {
1799
- return r.listPackages(t, o).then((s) => s(e, a));
2260
+ listPackages(a, o) {
2261
+ return t.listPackages(a, o).then((s) => s(e, r));
1800
2262
  },
1801
2263
  /**
1802
2264
  * 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.
@@ -1807,23 +2269,24 @@ const qe = {
1807
2269
  * @param {*} [options] Override http request option.
1808
2270
  * @throws {RequiredError}
1809
2271
  */
1810
- updatePackage(t, o, s, n) {
1811
- return r.updatePackage(t, o, s, n).then((l) => l(e, a));
2272
+ updatePackage(a, o, s, n) {
2273
+ return t.updatePackage(a, o, s, n).then((c) => c(e, r));
1812
2274
  }
1813
2275
  };
1814
2276
  };
1815
- class re extends j {
2277
+ class ce extends A {
1816
2278
  /**
1817
2279
  * 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.
1818
2280
  * @summary Create a new package
1819
2281
  * @param {string} projectName Name of the project
1820
2282
  * @param {Package} _package
2283
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
1821
2284
  * @param {*} [options] Override http request option.
1822
2285
  * @throws {RequiredError}
1823
2286
  * @memberof PackagesApi
1824
2287
  */
1825
- createPackage(a, e, r) {
1826
- return k(this.configuration).createPackage(a, e, r).then((t) => t(this.axios, this.basePath));
2288
+ createPackage(r, e, t, a) {
2289
+ return N(this.configuration).createPackage(r, e, t, a).then((o) => o(this.axios, this.basePath));
1827
2290
  }
1828
2291
  /**
1829
2292
  * 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.
@@ -1834,8 +2297,8 @@ class re extends j {
1834
2297
  * @throws {RequiredError}
1835
2298
  * @memberof PackagesApi
1836
2299
  */
1837
- deletePackage(a, e, r) {
1838
- return k(this.configuration).deletePackage(a, e, r).then((t) => t(this.axios, this.basePath));
2300
+ deletePackage(r, e, t) {
2301
+ return N(this.configuration).deletePackage(r, e, t).then((a) => a(this.axios, this.basePath));
1839
2302
  }
1840
2303
  /**
1841
2304
  * 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.
@@ -1848,8 +2311,8 @@ class re extends j {
1848
2311
  * @throws {RequiredError}
1849
2312
  * @memberof PackagesApi
1850
2313
  */
1851
- getPackage(a, e, r, t, o) {
1852
- return k(this.configuration).getPackage(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
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));
1853
2316
  }
1854
2317
  /**
1855
2318
  * 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.
@@ -1859,8 +2322,8 @@ class re extends j {
1859
2322
  * @throws {RequiredError}
1860
2323
  * @memberof PackagesApi
1861
2324
  */
1862
- listPackages(a, e) {
1863
- return k(this.configuration).listPackages(a, e).then((r) => r(this.axios, this.basePath));
2325
+ listPackages(r, e) {
2326
+ return N(this.configuration).listPackages(r, e).then((t) => t(this.axios, this.basePath));
1864
2327
  }
1865
2328
  /**
1866
2329
  * 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.
@@ -1872,11 +2335,11 @@ class re extends j {
1872
2335
  * @throws {RequiredError}
1873
2336
  * @memberof PackagesApi
1874
2337
  */
1875
- updatePackage(a, e, r, t) {
1876
- return k(this.configuration).updatePackage(a, e, r, t).then((o) => o(this.axios, this.basePath));
2338
+ updatePackage(r, e, t, a) {
2339
+ return N(this.configuration).updatePackage(r, e, t, a).then((o) => o(this.axios, this.basePath));
1877
2340
  }
1878
2341
  }
1879
- const oe = function(c) {
2342
+ const le = function(l) {
1880
2343
  return {
1881
2344
  /**
1882
2345
  * 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.
@@ -1885,16 +2348,16 @@ const oe = function(c) {
1885
2348
  * @param {*} [options] Override http request option.
1886
2349
  * @throws {RequiredError}
1887
2350
  */
1888
- createProject: async (a, e = {}) => {
1889
- h("createProject", "project", a);
1890
- const r = "/projects", t = new URL(r, V);
2351
+ createProject: async (r, e = {}) => {
2352
+ d("createProject", "project", r);
2353
+ const t = "/projects", a = new URL(t, P);
1891
2354
  let o;
1892
- c && (o = c.baseOptions);
1893
- const s = { method: "POST", ...o, ...e }, n = {}, l = {};
1894
- n["Content-Type"] = "application/json", O(t, l);
2355
+ l && (o = l.baseOptions);
2356
+ const s = { method: "POST", ...o, ...e }, n = {}, c = {};
2357
+ n["Content-Type"] = "application/json", O(a, c);
1895
2358
  let i = o && o.headers ? o.headers : {};
1896
- return s.headers = { ...n, ...i, ...e.headers }, s.data = C(a, s, c), {
1897
- url: b(t),
2359
+ return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
2360
+ url: g(a),
1898
2361
  options: s
1899
2362
  };
1900
2363
  },
@@ -1905,16 +2368,16 @@ const oe = function(c) {
1905
2368
  * @param {*} [options] Override http request option.
1906
2369
  * @throws {RequiredError}
1907
2370
  */
1908
- deleteProject: async (a, e = {}) => {
1909
- h("deleteProject", "projectName", a);
1910
- const r = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
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);
1911
2374
  let o;
1912
- c && (o = c.baseOptions);
2375
+ l && (o = l.baseOptions);
1913
2376
  const s = { method: "DELETE", ...o, ...e }, n = {};
1914
- O(t, {});
2377
+ O(a, {});
1915
2378
  let i = o && o.headers ? o.headers : {};
1916
2379
  return s.headers = { ...n, ...i, ...e.headers }, {
1917
- url: b(t),
2380
+ url: g(a),
1918
2381
  options: s
1919
2382
  };
1920
2383
  },
@@ -1926,16 +2389,16 @@ const oe = function(c) {
1926
2389
  * @param {*} [options] Override http request option.
1927
2390
  * @throws {RequiredError}
1928
2391
  */
1929
- getProject: async (a, e, r = {}) => {
1930
- h("getProject", "projectName", a);
1931
- const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
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);
1932
2395
  let s;
1933
- c && (s = c.baseOptions);
1934
- const n = { method: "GET", ...s, ...r }, l = {}, i = {};
2396
+ l && (s = l.baseOptions);
2397
+ const n = { method: "GET", ...s, ...t }, c = {}, i = {};
1935
2398
  e !== void 0 && (i.reload = e), O(o, i);
1936
2399
  let p = s && s.headers ? s.headers : {};
1937
- return n.headers = { ...l, ...p, ...r.headers }, {
1938
- url: b(o),
2400
+ return n.headers = { ...c, ...p, ...t.headers }, {
2401
+ url: g(o),
1939
2402
  options: n
1940
2403
  };
1941
2404
  },
@@ -1945,15 +2408,15 @@ const oe = function(c) {
1945
2408
  * @param {*} [options] Override http request option.
1946
2409
  * @throws {RequiredError}
1947
2410
  */
1948
- listProjects: async (a = {}) => {
1949
- const e = "/projects", r = new URL(e, V);
1950
- let t;
1951
- c && (t = c.baseOptions);
1952
- const o = { method: "GET", ...t, ...a }, s = {};
1953
- O(r, {});
1954
- let l = t && t.headers ? t.headers : {};
1955
- return o.headers = { ...s, ...l, ...a.headers }, {
1956
- url: b(r),
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),
1957
2420
  options: o
1958
2421
  };
1959
2422
  },
@@ -1965,22 +2428,22 @@ const oe = function(c) {
1965
2428
  * @param {*} [options] Override http request option.
1966
2429
  * @throws {RequiredError}
1967
2430
  */
1968
- updateProject: async (a, e, r = {}) => {
1969
- h("updateProject", "projectName", a), h("updateProject", "project", e);
1970
- const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
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);
1971
2434
  let s;
1972
- c && (s = c.baseOptions);
1973
- const n = { method: "PATCH", ...s, ...r }, l = {}, i = {};
1974
- l["Content-Type"] = "application/json", O(o, i);
2435
+ l && (s = l.baseOptions);
2436
+ const n = { method: "PATCH", ...s, ...t }, c = {}, i = {};
2437
+ c["Content-Type"] = "application/json", O(o, i);
1975
2438
  let p = s && s.headers ? s.headers : {};
1976
- return n.headers = { ...l, ...p, ...r.headers }, n.data = C(e, n, c), {
1977
- url: b(o),
2439
+ return n.headers = { ...c, ...p, ...t.headers }, n.data = C(e, n, l), {
2440
+ url: g(o),
1978
2441
  options: n
1979
2442
  };
1980
2443
  }
1981
2444
  };
1982
- }, N = function(c) {
1983
- const a = oe(c);
2445
+ }, R = function(l) {
2446
+ const r = le(l);
1984
2447
  return {
1985
2448
  /**
1986
2449
  * 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.
@@ -1989,9 +2452,9 @@ const oe = function(c) {
1989
2452
  * @param {*} [options] Override http request option.
1990
2453
  * @throws {RequiredError}
1991
2454
  */
1992
- async createProject(e, r) {
1993
- const t = await a.createProject(e, r), o = c?.serverIndex ?? 0, s = P["ProjectsApi.createProject"]?.[o]?.url;
1994
- return (n, l) => g(t, u, m, c)(n, s || l);
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);
1995
2458
  },
1996
2459
  /**
1997
2460
  * 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.
@@ -2000,9 +2463,9 @@ const oe = function(c) {
2000
2463
  * @param {*} [options] Override http request option.
2001
2464
  * @throws {RequiredError}
2002
2465
  */
2003
- async deleteProject(e, r) {
2004
- const t = await a.deleteProject(e, r), o = c?.serverIndex ?? 0, s = P["ProjectsApi.deleteProject"]?.[o]?.url;
2005
- return (n, l) => g(t, u, m, c)(n, s || l);
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);
2006
2469
  },
2007
2470
  /**
2008
2471
  * 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.
@@ -2012,9 +2475,9 @@ const oe = function(c) {
2012
2475
  * @param {*} [options] Override http request option.
2013
2476
  * @throws {RequiredError}
2014
2477
  */
2015
- async getProject(e, r, t) {
2016
- const o = await a.getProject(e, r, t), s = c?.serverIndex ?? 0, n = P["ProjectsApi.getProject"]?.[s]?.url;
2017
- return (l, i) => g(o, u, m, c)(l, n || i);
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);
2018
2481
  },
2019
2482
  /**
2020
2483
  * 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.
@@ -2023,8 +2486,8 @@ const oe = function(c) {
2023
2486
  * @throws {RequiredError}
2024
2487
  */
2025
2488
  async listProjects(e) {
2026
- const r = await a.listProjects(e), t = c?.serverIndex ?? 0, o = P["ProjectsApi.listProjects"]?.[t]?.url;
2027
- return (s, n) => g(r, u, m, c)(s, o || n);
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);
2028
2491
  },
2029
2492
  /**
2030
2493
  * 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.
@@ -2034,13 +2497,13 @@ const oe = function(c) {
2034
2497
  * @param {*} [options] Override http request option.
2035
2498
  * @throws {RequiredError}
2036
2499
  */
2037
- async updateProject(e, r, t) {
2038
- const o = await a.updateProject(e, r, t), s = c?.serverIndex ?? 0, n = P["ProjectsApi.updateProject"]?.[s]?.url;
2039
- return (l, i) => g(o, u, m, c)(l, n || i);
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);
2040
2503
  }
2041
2504
  };
2042
- }, Me = function(c, a, e) {
2043
- const r = N(c);
2505
+ }, _e = function(l, r, e) {
2506
+ const t = R(l);
2044
2507
  return {
2045
2508
  /**
2046
2509
  * 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.
@@ -2049,8 +2512,8 @@ const oe = function(c) {
2049
2512
  * @param {*} [options] Override http request option.
2050
2513
  * @throws {RequiredError}
2051
2514
  */
2052
- createProject(t, o) {
2053
- return r.createProject(t, o).then((s) => s(e, a));
2515
+ createProject(a, o) {
2516
+ return t.createProject(a, o).then((s) => s(e, r));
2054
2517
  },
2055
2518
  /**
2056
2519
  * 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.
@@ -2059,8 +2522,8 @@ const oe = function(c) {
2059
2522
  * @param {*} [options] Override http request option.
2060
2523
  * @throws {RequiredError}
2061
2524
  */
2062
- deleteProject(t, o) {
2063
- return r.deleteProject(t, o).then((s) => s(e, a));
2525
+ deleteProject(a, o) {
2526
+ return t.deleteProject(a, o).then((s) => s(e, r));
2064
2527
  },
2065
2528
  /**
2066
2529
  * 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.
@@ -2070,8 +2533,8 @@ const oe = function(c) {
2070
2533
  * @param {*} [options] Override http request option.
2071
2534
  * @throws {RequiredError}
2072
2535
  */
2073
- getProject(t, o, s) {
2074
- return r.getProject(t, o, s).then((n) => n(e, a));
2536
+ getProject(a, o, s) {
2537
+ return t.getProject(a, o, s).then((n) => n(e, r));
2075
2538
  },
2076
2539
  /**
2077
2540
  * 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.
@@ -2079,8 +2542,8 @@ const oe = function(c) {
2079
2542
  * @param {*} [options] Override http request option.
2080
2543
  * @throws {RequiredError}
2081
2544
  */
2082
- listProjects(t) {
2083
- return r.listProjects(t).then((o) => o(e, a));
2545
+ listProjects(a) {
2546
+ return t.listProjects(a).then((o) => o(e, r));
2084
2547
  },
2085
2548
  /**
2086
2549
  * 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.
@@ -2090,12 +2553,12 @@ const oe = function(c) {
2090
2553
  * @param {*} [options] Override http request option.
2091
2554
  * @throws {RequiredError}
2092
2555
  */
2093
- updateProject(t, o, s) {
2094
- return r.updateProject(t, o, s).then((n) => n(e, a));
2556
+ updateProject(a, o, s) {
2557
+ return t.updateProject(a, o, s).then((n) => n(e, r));
2095
2558
  }
2096
2559
  };
2097
2560
  };
2098
- class se extends j {
2561
+ class ie extends A {
2099
2562
  /**
2100
2563
  * 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.
2101
2564
  * @summary Create a new project
@@ -2104,8 +2567,8 @@ class se extends j {
2104
2567
  * @throws {RequiredError}
2105
2568
  * @memberof ProjectsApi
2106
2569
  */
2107
- createProject(a, e) {
2108
- return N(this.configuration).createProject(a, e).then((r) => r(this.axios, this.basePath));
2570
+ createProject(r, e) {
2571
+ return R(this.configuration).createProject(r, e).then((t) => t(this.axios, this.basePath));
2109
2572
  }
2110
2573
  /**
2111
2574
  * 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.
@@ -2115,8 +2578,8 @@ class se extends j {
2115
2578
  * @throws {RequiredError}
2116
2579
  * @memberof ProjectsApi
2117
2580
  */
2118
- deleteProject(a, e) {
2119
- return N(this.configuration).deleteProject(a, e).then((r) => r(this.axios, this.basePath));
2581
+ deleteProject(r, e) {
2582
+ return R(this.configuration).deleteProject(r, e).then((t) => t(this.axios, this.basePath));
2120
2583
  }
2121
2584
  /**
2122
2585
  * 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.
@@ -2127,8 +2590,8 @@ class se extends j {
2127
2590
  * @throws {RequiredError}
2128
2591
  * @memberof ProjectsApi
2129
2592
  */
2130
- getProject(a, e, r) {
2131
- return N(this.configuration).getProject(a, e, r).then((t) => t(this.axios, this.basePath));
2593
+ getProject(r, e, t) {
2594
+ return R(this.configuration).getProject(r, e, t).then((a) => a(this.axios, this.basePath));
2132
2595
  }
2133
2596
  /**
2134
2597
  * 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.
@@ -2137,8 +2600,8 @@ class se extends j {
2137
2600
  * @throws {RequiredError}
2138
2601
  * @memberof ProjectsApi
2139
2602
  */
2140
- listProjects(a) {
2141
- return N(this.configuration).listProjects(a).then((e) => e(this.axios, this.basePath));
2603
+ listProjects(r) {
2604
+ return R(this.configuration).listProjects(r).then((e) => e(this.axios, this.basePath));
2142
2605
  }
2143
2606
  /**
2144
2607
  * 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.
@@ -2149,11 +2612,11 @@ class se extends j {
2149
2612
  * @throws {RequiredError}
2150
2613
  * @memberof ProjectsApi
2151
2614
  */
2152
- updateProject(a, e, r) {
2153
- return N(this.configuration).updateProject(a, e, r).then((t) => t(this.axios, this.basePath));
2615
+ updateProject(r, e, t) {
2616
+ return R(this.configuration).updateProject(r, e, t).then((a) => a(this.axios, this.basePath));
2154
2617
  }
2155
2618
  }
2156
- const ne = function(c) {
2619
+ const pe = function(l) {
2157
2620
  return {
2158
2621
  /**
2159
2622
  * 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.
@@ -2161,21 +2624,21 @@ const ne = function(c) {
2161
2624
  * @param {*} [options] Override http request option.
2162
2625
  * @throws {RequiredError}
2163
2626
  */
2164
- getStatus: async (a = {}) => {
2165
- const e = "/status", r = new URL(e, V);
2166
- let t;
2167
- c && (t = c.baseOptions);
2168
- const o = { method: "GET", ...t, ...a }, s = {};
2169
- O(r, {});
2170
- let l = t && t.headers ? t.headers : {};
2171
- return o.headers = { ...s, ...l, ...a.headers }, {
2172
- url: b(r),
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),
2173
2636
  options: o
2174
2637
  };
2175
2638
  }
2176
2639
  };
2177
- }, $ = function(c) {
2178
- const a = ne(c);
2640
+ }, F = function(l) {
2641
+ const r = pe(l);
2179
2642
  return {
2180
2643
  /**
2181
2644
  * 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.
@@ -2184,12 +2647,12 @@ const ne = function(c) {
2184
2647
  * @throws {RequiredError}
2185
2648
  */
2186
2649
  async getStatus(e) {
2187
- const r = await a.getStatus(e), t = c?.serverIndex ?? 0, o = P["PublisherApi.getStatus"]?.[t]?.url;
2188
- return (s, n) => g(r, u, m, c)(s, o || n);
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);
2189
2652
  }
2190
2653
  };
2191
- }, $e = function(c, a, e) {
2192
- const r = $(c);
2654
+ }, Je = function(l, r, e) {
2655
+ const t = F(l);
2193
2656
  return {
2194
2657
  /**
2195
2658
  * 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.
@@ -2197,12 +2660,12 @@ const ne = function(c) {
2197
2660
  * @param {*} [options] Override http request option.
2198
2661
  * @throws {RequiredError}
2199
2662
  */
2200
- getStatus(t) {
2201
- return r.getStatus(t).then((o) => o(e, a));
2663
+ getStatus(a) {
2664
+ return t.getStatus(a).then((o) => o(e, r));
2202
2665
  }
2203
2666
  };
2204
2667
  };
2205
- class ce extends j {
2668
+ class de extends A {
2206
2669
  /**
2207
2670
  * 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.
2208
2671
  * @summary Get server status and health information
@@ -2210,11 +2673,11 @@ class ce extends j {
2210
2673
  * @throws {RequiredError}
2211
2674
  * @memberof PublisherApi
2212
2675
  */
2213
- getStatus(a) {
2214
- return $(this.configuration).getStatus(a).then((e) => e(this.axios, this.basePath));
2676
+ getStatus(r) {
2677
+ return F(this.configuration).getStatus(r).then((e) => e(this.axios, this.basePath));
2215
2678
  }
2216
2679
  }
2217
- const le = function(c) {
2680
+ const he = function(l) {
2218
2681
  return {
2219
2682
  /**
2220
2683
  * 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.
@@ -2222,15 +2685,15 @@ const le = function(c) {
2222
2685
  * @param {*} [options] Override http request option.
2223
2686
  * @throws {RequiredError}
2224
2687
  */
2225
- getWatchStatus: async (a = {}) => {
2226
- const e = "/watch-mode/status", r = new URL(e, V);
2227
- let t;
2228
- c && (t = c.baseOptions);
2229
- const o = { method: "GET", ...t, ...a }, s = {};
2230
- O(r, {});
2231
- let l = t && t.headers ? t.headers : {};
2232
- return o.headers = { ...s, ...l, ...a.headers }, {
2233
- url: b(r),
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),
2234
2697
  options: o
2235
2698
  };
2236
2699
  },
@@ -2241,16 +2704,16 @@ const le = function(c) {
2241
2704
  * @param {*} [options] Override http request option.
2242
2705
  * @throws {RequiredError}
2243
2706
  */
2244
- startWatching: async (a, e = {}) => {
2245
- h("startWatching", "startWatchRequest", a);
2246
- const r = "/watch-mode/start", t = new URL(r, V);
2707
+ startWatching: async (r, e = {}) => {
2708
+ d("startWatching", "startWatchRequest", r);
2709
+ const t = "/watch-mode/start", a = new URL(t, P);
2247
2710
  let o;
2248
- c && (o = c.baseOptions);
2249
- const s = { method: "POST", ...o, ...e }, n = {}, l = {};
2250
- n["Content-Type"] = "application/json", O(t, l);
2711
+ l && (o = l.baseOptions);
2712
+ const s = { method: "POST", ...o, ...e }, n = {}, c = {};
2713
+ n["Content-Type"] = "application/json", O(a, c);
2251
2714
  let i = o && o.headers ? o.headers : {};
2252
- return s.headers = { ...n, ...i, ...e.headers }, s.data = C(a, s, c), {
2253
- url: b(t),
2715
+ return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
2716
+ url: g(a),
2254
2717
  options: s
2255
2718
  };
2256
2719
  },
@@ -2260,21 +2723,21 @@ const le = function(c) {
2260
2723
  * @param {*} [options] Override http request option.
2261
2724
  * @throws {RequiredError}
2262
2725
  */
2263
- stopWatching: async (a = {}) => {
2264
- const e = "/watch-mode/stop", r = new URL(e, V);
2265
- let t;
2266
- c && (t = c.baseOptions);
2267
- const o = { method: "POST", ...t, ...a }, s = {};
2268
- O(r, {});
2269
- let l = t && t.headers ? t.headers : {};
2270
- return o.headers = { ...s, ...l, ...a.headers }, {
2271
- url: b(r),
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),
2272
2735
  options: o
2273
2736
  };
2274
2737
  }
2275
2738
  };
2276
- }, U = function(c) {
2277
- const a = le(c);
2739
+ }, M = function(l) {
2740
+ const r = he(l);
2278
2741
  return {
2279
2742
  /**
2280
2743
  * 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.
@@ -2283,8 +2746,8 @@ const le = function(c) {
2283
2746
  * @throws {RequiredError}
2284
2747
  */
2285
2748
  async getWatchStatus(e) {
2286
- const r = await a.getWatchStatus(e), t = c?.serverIndex ?? 0, o = P["WatchModeApi.getWatchStatus"]?.[t]?.url;
2287
- return (s, n) => g(r, u, m, c)(s, o || n);
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);
2288
2751
  },
2289
2752
  /**
2290
2753
  * 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.
@@ -2293,9 +2756,9 @@ const le = function(c) {
2293
2756
  * @param {*} [options] Override http request option.
2294
2757
  * @throws {RequiredError}
2295
2758
  */
2296
- async startWatching(e, r) {
2297
- const t = await a.startWatching(e, r), o = c?.serverIndex ?? 0, s = P["WatchModeApi.startWatching"]?.[o]?.url;
2298
- return (n, l) => g(t, u, m, c)(n, s || l);
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);
2299
2762
  },
2300
2763
  /**
2301
2764
  * 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.
@@ -2304,12 +2767,12 @@ const le = function(c) {
2304
2767
  * @throws {RequiredError}
2305
2768
  */
2306
2769
  async stopWatching(e) {
2307
- const r = await a.stopWatching(e), t = c?.serverIndex ?? 0, o = P["WatchModeApi.stopWatching"]?.[t]?.url;
2308
- return (s, n) => g(r, u, m, c)(s, o || n);
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);
2309
2772
  }
2310
2773
  };
2311
- }, Fe = function(c, a, e) {
2312
- const r = U(c);
2774
+ }, Ke = function(l, r, e) {
2775
+ const t = M(l);
2313
2776
  return {
2314
2777
  /**
2315
2778
  * 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.
@@ -2317,8 +2780,8 @@ const le = function(c) {
2317
2780
  * @param {*} [options] Override http request option.
2318
2781
  * @throws {RequiredError}
2319
2782
  */
2320
- getWatchStatus(t) {
2321
- return r.getWatchStatus(t).then((o) => o(e, a));
2783
+ getWatchStatus(a) {
2784
+ return t.getWatchStatus(a).then((o) => o(e, r));
2322
2785
  },
2323
2786
  /**
2324
2787
  * 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.
@@ -2327,8 +2790,8 @@ const le = function(c) {
2327
2790
  * @param {*} [options] Override http request option.
2328
2791
  * @throws {RequiredError}
2329
2792
  */
2330
- startWatching(t, o) {
2331
- return r.startWatching(t, o).then((s) => s(e, a));
2793
+ startWatching(a, o) {
2794
+ return t.startWatching(a, o).then((s) => s(e, r));
2332
2795
  },
2333
2796
  /**
2334
2797
  * 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.
@@ -2336,12 +2799,12 @@ const le = function(c) {
2336
2799
  * @param {*} [options] Override http request option.
2337
2800
  * @throws {RequiredError}
2338
2801
  */
2339
- stopWatching(t) {
2340
- return r.stopWatching(t).then((o) => o(e, a));
2802
+ stopWatching(a) {
2803
+ return t.stopWatching(a).then((o) => o(e, r));
2341
2804
  }
2342
2805
  };
2343
2806
  };
2344
- class ie extends j {
2807
+ class ue extends A {
2345
2808
  /**
2346
2809
  * 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.
2347
2810
  * @summary Get watch mode status
@@ -2349,8 +2812,8 @@ class ie extends j {
2349
2812
  * @throws {RequiredError}
2350
2813
  * @memberof WatchModeApi
2351
2814
  */
2352
- getWatchStatus(a) {
2353
- return U(this.configuration).getWatchStatus(a).then((e) => e(this.axios, this.basePath));
2815
+ getWatchStatus(r) {
2816
+ return M(this.configuration).getWatchStatus(r).then((e) => e(this.axios, this.basePath));
2354
2817
  }
2355
2818
  /**
2356
2819
  * 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.
@@ -2360,8 +2823,8 @@ class ie extends j {
2360
2823
  * @throws {RequiredError}
2361
2824
  * @memberof WatchModeApi
2362
2825
  */
2363
- startWatching(a, e) {
2364
- return U(this.configuration).startWatching(a, e).then((r) => r(this.axios, this.basePath));
2826
+ startWatching(r, e) {
2827
+ return M(this.configuration).startWatching(r, e).then((t) => t(this.axios, this.basePath));
2365
2828
  }
2366
2829
  /**
2367
2830
  * 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.
@@ -2370,11 +2833,11 @@ class ie extends j {
2370
2833
  * @throws {RequiredError}
2371
2834
  * @memberof WatchModeApi
2372
2835
  */
2373
- stopWatching(a) {
2374
- return U(this.configuration).stopWatching(a).then((e) => e(this.axios, this.basePath));
2836
+ stopWatching(r) {
2837
+ return M(this.configuration).stopWatching(r).then((e) => e(this.axios, this.basePath));
2375
2838
  }
2376
2839
  }
2377
- class pe {
2840
+ class me {
2378
2841
  /**
2379
2842
  * parameter for apiKey security
2380
2843
  * @param name security name
@@ -2431,13 +2894,13 @@ class pe {
2431
2894
  * @type {new () => FormData}
2432
2895
  */
2433
2896
  formDataCtor;
2434
- constructor(a = {}) {
2435
- this.apiKey = a.apiKey, this.username = a.username, this.password = a.password, this.accessToken = a.accessToken, this.basePath = a.basePath, this.serverIndex = a.serverIndex, this.baseOptions = {
2436
- ...a.baseOptions,
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,
2437
2900
  headers: {
2438
- ...a.baseOptions?.headers
2901
+ ...r.baseOptions?.headers
2439
2902
  }
2440
- }, this.formDataCtor = a.formDataCtor;
2903
+ }, this.formDataCtor = r.formDataCtor;
2441
2904
  }
2442
2905
  /**
2443
2906
  * Check if the given MIME is a JSON MIME.
@@ -2449,12 +2912,12 @@ class pe {
2449
2912
  * @param mime - MIME (Multipurpose Internet Mail Extensions)
2450
2913
  * @return True if the given MIME is JSON, false otherwise.
2451
2914
  */
2452
- isJsonMime(a) {
2915
+ isJsonMime(r) {
2453
2916
  const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
2454
- return a !== null && (e.test(a) || a.toLowerCase() === "application/json-patch+json");
2917
+ return r !== null && (e.test(r) || r.toLowerCase() === "application/json-patch+json");
2455
2918
  }
2456
2919
  }
2457
- const de = new E({
2920
+ const Ve = new f({
2458
2921
  defaultOptions: {
2459
2922
  queries: {
2460
2923
  retry: !1,
@@ -2467,120 +2930,131 @@ const de = new E({
2467
2930
  }
2468
2931
  });
2469
2932
  u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
2470
- const F = f(void 0), he = (c, a) => {
2471
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
2472
- baseURL: c || e,
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,
2473
2936
  withCredentials: !0,
2474
2937
  timeout: 6e5
2475
2938
  });
2476
- r.interceptors.request.use(async (o) => {
2477
- const s = await a?.();
2939
+ t.interceptors.request.use(async (o) => {
2940
+ const s = await r?.();
2478
2941
  return o.headers.Authorization = s || "", o;
2479
2942
  });
2480
- const t = new pe({ basePath: e });
2943
+ const a = new me({ basePath: e });
2481
2944
  return {
2482
- models: new Z(t, e, r),
2483
- publisher: new ce(t, e, r),
2484
- projects: new se(t, e, r),
2485
- packages: new re(t, e, r),
2486
- notebooks: new te(t, e, r),
2487
- connections: new _(t, e, r),
2488
- databases: new Y(t, e, r),
2489
- watchMode: new ie(t, e, r)
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)
2490
2953
  };
2491
- }, Ee = ({
2492
- children: c,
2493
- getAccessToken: a,
2954
+ }, Ye = ({
2955
+ children: l,
2956
+ getAccessToken: r,
2494
2957
  baseURL: e,
2495
- mutable: r
2958
+ mutable: t
2496
2959
  }) => {
2497
- const t = W(
2498
- () => he(e, a),
2499
- [e, a]
2500
- ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, [s, n] = q(r), [l, i] = q(!0);
2501
- D(() => {
2502
- let d = !0;
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);
2964
+ G(() => {
2965
+ let h = !0;
2503
2966
  return (async () => {
2504
2967
  try {
2505
- const x = await t.publisher.getStatus();
2506
- if (d) {
2507
- const w = x.data?.frozenConfig;
2508
- let I;
2509
- w ? I = !1 : r === void 0 ? I = !0 : I = r, n(I), i(!1);
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);
2510
2973
  }
2511
- } catch (x) {
2512
- console.error("Failed to fetch publisher status:", x), d && (n(r), i(!1));
2974
+ } catch (j) {
2975
+ console.error("Failed to fetch publisher status:", j), h && (n(t), i(!1));
2513
2976
  }
2514
2977
  })(), () => {
2515
- d = !1;
2978
+ h = !1;
2516
2979
  };
2517
- }, [t, r]);
2980
+ }, [a, t]);
2518
2981
  const p = {
2519
2982
  server: o,
2520
- getAccessToken: a,
2521
- apiClients: t,
2983
+ getAccessToken: r,
2984
+ apiClients: a,
2522
2985
  mutable: s,
2523
- isLoadingStatus: l
2986
+ isLoadingStatus: c
2524
2987
  };
2525
- return /* @__PURE__ */ Q(L, { client: de, children: /* @__PURE__ */ Q(F.Provider, { value: p, children: c }) });
2526
- }, Le = () => {
2527
- const c = H(F);
2528
- if (c === void 0)
2988
+ return /* @__PURE__ */ B(L, { client: Ve, children: /* @__PURE__ */ B(E.Provider, { value: p, children: l }) });
2989
+ }, Xe = () => {
2990
+ const l = H(E);
2991
+ if (l === void 0)
2529
2992
  throw new Error("useServer must be used within a ServerProvider");
2530
- return c;
2993
+ return l;
2531
2994
  };
2532
2995
  export {
2533
- Oe as A,
2534
- te as B,
2535
- ge as C,
2536
- je as D,
2537
- qe as E,
2538
- xe as F,
2539
- k as G,
2540
- Be as H,
2541
- re as I,
2542
- oe as J,
2543
- N as K,
2544
- Ae as L,
2545
- X as M,
2546
- ke as N,
2547
- Me as O,
2548
- ae as P,
2549
- se as Q,
2550
- ne as R,
2551
- Ee as S,
2552
- $ as T,
2553
- $e as U,
2554
- ce as V,
2555
- le as W,
2556
- U as X,
2557
- Fe as Y,
2558
- ie as Z,
2559
- pe as _,
2560
- be as a,
2561
- Se as b,
2562
- ye as c,
2563
- Ce as d,
2564
- Ne as e,
2565
- ve as f,
2566
- de as g,
2567
- z as h,
2996
+ _e as $,
2997
+ ye as A,
2998
+ I as B,
2999
+ Ae as C,
3000
+ Ne as D,
3001
+ Ee as E,
3002
+ Re as F,
3003
+ fe as G,
3004
+ Le as H,
3005
+ te as I,
3006
+ k as J,
3007
+ He as K,
3008
+ ke as L,
3009
+ ve as M,
3010
+ Ue as N,
3011
+ re as O,
3012
+ oe as P,
3013
+ U as Q,
3014
+ De as R,
3015
+ Ye as S,
3016
+ se as T,
3017
+ We as U,
3018
+ ne as V,
3019
+ N as W,
3020
+ Ge as X,
3021
+ ce as Y,
3022
+ le as Z,
3023
+ R as _,
3024
+ Ce as a,
3025
+ ie as a0,
3026
+ pe as a1,
3027
+ F as a2,
3028
+ Je as a3,
3029
+ de as a4,
3030
+ he as a5,
3031
+ M as a6,
3032
+ 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,
3039
+ we as f,
3040
+ Ve as g,
3041
+ J as h,
2568
3042
  y as i,
2569
- Ie as j,
2570
- _ as k,
2571
- J as l,
2572
- B as m,
2573
- Re as n,
2574
- Ue as o,
2575
- K as p,
2576
- M as q,
2577
- we as r,
2578
- Y as s,
2579
- v as t,
2580
- Le as u,
2581
- Te as v,
2582
- Z as w,
2583
- ee as x,
2584
- R as y,
2585
- Qe as z
3043
+ Te as j,
3044
+ K as k,
3045
+ Y as l,
3046
+ z as m,
3047
+ Qe as n,
3048
+ Be as o,
3049
+ X as p,
3050
+ q,
3051
+ $e as r,
3052
+ Z as s,
3053
+ ee as t,
3054
+ Xe as u,
3055
+ Q as v,
3056
+ ze as w,
3057
+ qe as x,
3058
+ Fe as y,
3059
+ ae as z
2586
3060
  };