@malloy-publisher/sdk 0.0.137 → 0.0.138

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,8 +1,8 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
- import { QueryClient as q, QueryClientProvider as B } from "@tanstack/react-query";
2
+ import { QueryClient as B, QueryClientProvider as $ } from "@tanstack/react-query";
3
3
  import u from "axios";
4
- import { useContext as F, createContext as $, useMemo as M } from "react";
5
- const E = new q({
4
+ import { useContext as F, createContext as M, useMemo as E } from "react";
5
+ const L = new B({
6
6
  defaultOptions: {
7
7
  queries: {
8
8
  retry: !1,
@@ -14,44 +14,44 @@ const E = new q({
14
14
  }
15
15
  }
16
16
  }), m = "http://localhost/api/v0".replace(/\/+$/, "");
17
- class A {
17
+ class x {
18
18
  constructor(a, e = m, r = u) {
19
19
  this.basePath = e, this.axios = r, a && (this.configuration = a, this.basePath = a.basePath ?? e);
20
20
  }
21
21
  configuration;
22
22
  }
23
- class L extends Error {
23
+ class H extends Error {
24
24
  constructor(a, e) {
25
25
  super(e), this.field = a, this.name = "RequiredError";
26
26
  }
27
27
  }
28
28
  const P = {}, V = "https://example.com", d = function(c, a, e) {
29
29
  if (e == null)
30
- throw new L(a, `Required parameter ${a} was null or undefined when calling ${c}.`);
30
+ throw new H(a, `Required parameter ${a} was null or undefined when calling ${c}.`);
31
31
  };
32
- function N(c, a, e = "") {
33
- a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) => N(c, r, e)) : Object.keys(a).forEach(
34
- (r) => N(c, a[r], `${e}${e !== "" ? "." : ""}${r}`)
32
+ function R(c, a, e = "") {
33
+ a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) => R(c, r, e)) : Object.keys(a).forEach(
34
+ (r) => R(c, a[r], `${e}${e !== "" ? "." : ""}${r}`)
35
35
  ) : c.has(e) ? c.append(e, a) : c.set(e, a));
36
36
  }
37
- const O = function(c, ...a) {
37
+ const b = function(c, ...a) {
38
38
  const e = new URLSearchParams(c.search);
39
- N(e, a), c.search = e.toString();
39
+ R(e, a), c.search = e.toString();
40
40
  }, j = function(c, a, e) {
41
41
  const r = typeof c != "string";
42
42
  return (r && e && e.isJsonMime ? e.isJsonMime(a.headers["Content-Type"]) : r) ? JSON.stringify(c !== void 0 ? c : {}) : c || "";
43
- }, b = function(c) {
43
+ }, O = function(c) {
44
44
  return c.pathname + c.search + c.hash;
45
45
  }, g = function(c, a, e, r) {
46
- return (t = a, s = e) => {
47
- const o = { ...c.options, url: (t.defaults.baseURL ? "" : r?.basePath ?? s) + c.url };
48
- return t.request(o);
46
+ return (t = a, o = e) => {
47
+ const s = { ...c.options, url: (t.defaults.baseURL ? "" : r?.basePath ?? o) + c.url };
48
+ return t.request(s);
49
49
  };
50
- }, pe = {
50
+ }, de = {
51
51
  Bigquery: "bigquery",
52
52
  Snowflake: "snowflake",
53
53
  Postgres: "postgres"
54
- }, de = {
54
+ }, he = {
55
55
  Postgres: "postgres",
56
56
  Bigquery: "bigquery",
57
57
  Snowflake: "snowflake",
@@ -59,16 +59,19 @@ const O = function(c, ...a) {
59
59
  Mysql: "mysql",
60
60
  Duckdb: "duckdb",
61
61
  Motherduck: "motherduck"
62
- }, he = {
62
+ }, ue = {
63
63
  Ok: "ok",
64
64
  Failed: "failed"
65
- }, ue = {
65
+ }, me = {
66
66
  Embedded: "embedded",
67
67
  Materialized: "materialized"
68
- }, me = {
68
+ }, Pe = {
69
+ Markdown: "markdown",
70
+ Code: "code"
71
+ }, Ve = {
69
72
  Markdown: "markdown",
70
73
  Code: "code"
71
- }, H = function(c) {
74
+ }, W = function(c) {
72
75
  return {
73
76
  /**
74
77
  * 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.
@@ -80,14 +83,14 @@ const O = function(c, ...a) {
80
83
  */
81
84
  getConnection: async (a, e, r = {}) => {
82
85
  d("getConnection", "projectName", a), d("getConnection", "connectionName", e);
83
- const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(t, V);
84
- let o;
85
- c && (o = c.baseOptions);
86
- const n = { method: "GET", ...o, ...r }, l = {};
87
- O(s, {});
88
- let p = o && o.headers ? o.headers : {};
86
+ const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
87
+ let s;
88
+ c && (s = c.baseOptions);
89
+ const n = { method: "GET", ...s, ...r }, l = {};
90
+ b(o, {});
91
+ let p = s && s.headers ? s.headers : {};
89
92
  return n.headers = { ...l, ...p, ...r.headers }, {
90
- url: b(s),
93
+ url: O(o),
91
94
  options: n
92
95
  };
93
96
  },
@@ -102,16 +105,16 @@ const O = function(c, ...a) {
102
105
  * @deprecated
103
106
  * @throws {RequiredError}
104
107
  */
105
- getQuerydata: async (a, e, r, t, s = {}) => {
108
+ getQuerydata: async (a, e, r, t, o = {}) => {
106
109
  d("getQuerydata", "projectName", a), d("getQuerydata", "connectionName", e);
107
- const o = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(o, V);
110
+ const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
108
111
  let l;
109
112
  c && (l = c.baseOptions);
110
- const i = { method: "GET", ...l, ...s }, p = {}, h = {};
111
- r !== void 0 && (h.sqlStatement = r), t !== void 0 && (h.options = t), O(n, h);
113
+ const i = { method: "GET", ...l, ...o }, p = {}, h = {};
114
+ r !== void 0 && (h.sqlStatement = r), t !== void 0 && (h.options = t), b(n, h);
112
115
  let y = l && l.headers ? l.headers : {};
113
- return i.headers = { ...p, ...y, ...s.headers }, {
114
- url: b(n),
116
+ return i.headers = { ...p, ...y, ...o.headers }, {
117
+ url: O(n),
115
118
  options: i
116
119
  };
117
120
  },
@@ -127,14 +130,14 @@ const O = function(c, ...a) {
127
130
  */
128
131
  getSqlsource: async (a, e, r, t = {}) => {
129
132
  d("getSqlsource", "projectName", a), d("getSqlsource", "connectionName", e);
130
- const s = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
133
+ const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
131
134
  let n;
132
135
  c && (n = c.baseOptions);
133
136
  const l = { method: "GET", ...n, ...t }, i = {}, p = {};
134
- r !== void 0 && (p.sqlStatement = r), O(o, p);
137
+ r !== void 0 && (p.sqlStatement = r), b(s, p);
135
138
  let h = n && n.headers ? n.headers : {};
136
139
  return l.headers = { ...i, ...h, ...t.headers }, {
137
- url: b(o),
140
+ url: O(s),
138
141
  options: l
139
142
  };
140
143
  },
@@ -148,16 +151,16 @@ const O = function(c, ...a) {
148
151
  * @param {*} [options] Override http request option.
149
152
  * @throws {RequiredError}
150
153
  */
151
- getTable: async (a, e, r, t, s = {}) => {
154
+ getTable: async (a, e, r, t, o = {}) => {
152
155
  d("getTable", "projectName", a), d("getTable", "connectionName", e), d("getTable", "schemaName", r), d("getTable", "tablePath", t);
153
- const o = "/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(o, V);
156
+ 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);
154
157
  let l;
155
158
  c && (l = c.baseOptions);
156
- const i = { method: "GET", ...l, ...s }, p = {};
157
- O(n, {});
159
+ const i = { method: "GET", ...l, ...o }, p = {};
160
+ b(n, {});
158
161
  let y = l && l.headers ? l.headers : {};
159
- return i.headers = { ...p, ...y, ...s.headers }, {
160
- url: b(n),
162
+ return i.headers = { ...p, ...y, ...o.headers }, {
163
+ url: O(n),
161
164
  options: i
162
165
  };
163
166
  },
@@ -172,16 +175,16 @@ const O = function(c, ...a) {
172
175
  * @deprecated
173
176
  * @throws {RequiredError}
174
177
  */
175
- getTablesource: async (a, e, r, t, s = {}) => {
178
+ getTablesource: async (a, e, r, t, o = {}) => {
176
179
  d("getTablesource", "projectName", a), d("getTablesource", "connectionName", e);
177
- const o = "/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(o, V);
180
+ const s = "/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
178
181
  let l;
179
182
  c && (l = c.baseOptions);
180
- const i = { method: "GET", ...l, ...s }, p = {}, h = {};
181
- r !== void 0 && (h.tableKey = r), t !== void 0 && (h.tablePath = t), O(n, h);
183
+ const i = { method: "GET", ...l, ...o }, p = {}, h = {};
184
+ r !== void 0 && (h.tableKey = r), t !== void 0 && (h.tablePath = t), b(n, h);
182
185
  let y = l && l.headers ? l.headers : {};
183
- return i.headers = { ...p, ...y, ...s.headers }, {
184
- url: b(n),
186
+ return i.headers = { ...p, ...y, ...o.headers }, {
187
+ url: O(n),
185
188
  options: i
186
189
  };
187
190
  },
@@ -197,14 +200,14 @@ const O = function(c, ...a) {
197
200
  */
198
201
  getTemporarytable: async (a, e, r, t = {}) => {
199
202
  d("getTemporarytable", "projectName", a), d("getTemporarytable", "connectionName", e);
200
- const s = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
203
+ const o = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
201
204
  let n;
202
205
  c && (n = c.baseOptions);
203
206
  const l = { method: "GET", ...n, ...t }, i = {}, p = {};
204
- r !== void 0 && (p.sqlStatement = r), O(o, p);
207
+ r !== void 0 && (p.sqlStatement = r), b(s, p);
205
208
  let h = n && n.headers ? n.headers : {};
206
209
  return l.headers = { ...i, ...h, ...t.headers }, {
207
- url: b(o),
210
+ url: O(s),
208
211
  options: l
209
212
  };
210
213
  },
@@ -218,14 +221,14 @@ const O = function(c, ...a) {
218
221
  listConnections: async (a, e = {}) => {
219
222
  d("listConnections", "projectName", a);
220
223
  const r = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
221
- let s;
222
- c && (s = c.baseOptions);
223
- const o = { method: "GET", ...s, ...e }, n = {};
224
- O(t, {});
225
- let i = s && s.headers ? s.headers : {};
226
- return o.headers = { ...n, ...i, ...e.headers }, {
227
- url: b(t),
228
- options: o
224
+ let o;
225
+ c && (o = c.baseOptions);
226
+ const s = { method: "GET", ...o, ...e }, n = {};
227
+ b(t, {});
228
+ let i = o && o.headers ? o.headers : {};
229
+ return s.headers = { ...n, ...i, ...e.headers }, {
230
+ url: O(t),
231
+ options: s
229
232
  };
230
233
  },
231
234
  /**
@@ -238,14 +241,14 @@ const O = function(c, ...a) {
238
241
  */
239
242
  listSchemas: async (a, e, r = {}) => {
240
243
  d("listSchemas", "projectName", a), d("listSchemas", "connectionName", e);
241
- const t = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(t, V);
242
- let o;
243
- c && (o = c.baseOptions);
244
- const n = { method: "GET", ...o, ...r }, l = {};
245
- O(s, {});
246
- let p = o && o.headers ? o.headers : {};
244
+ const t = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
245
+ let s;
246
+ c && (s = c.baseOptions);
247
+ const n = { method: "GET", ...s, ...r }, l = {};
248
+ b(o, {});
249
+ let p = s && s.headers ? s.headers : {};
247
250
  return n.headers = { ...l, ...p, ...r.headers }, {
248
- url: b(s),
251
+ url: O(o),
249
252
  options: n
250
253
  };
251
254
  },
@@ -260,14 +263,14 @@ const O = function(c, ...a) {
260
263
  */
261
264
  listTables: async (a, e, r, t = {}) => {
262
265
  d("listTables", "projectName", a), d("listTables", "connectionName", e), d("listTables", "schemaName", r);
263
- const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), o = new URL(s, V);
266
+ const o = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, V);
264
267
  let n;
265
268
  c && (n = c.baseOptions);
266
269
  const l = { method: "GET", ...n, ...t }, i = {};
267
- O(o, {});
270
+ b(s, {});
268
271
  let h = n && n.headers ? n.headers : {};
269
272
  return l.headers = { ...i, ...h, ...t.headers }, {
270
- url: b(o),
273
+ url: O(s),
271
274
  options: l
272
275
  };
273
276
  },
@@ -281,16 +284,16 @@ const O = function(c, ...a) {
281
284
  * @param {*} [options] Override http request option.
282
285
  * @throws {RequiredError}
283
286
  */
284
- postQuerydata: async (a, e, r, t, s = {}) => {
287
+ postQuerydata: async (a, e, r, t, o = {}) => {
285
288
  d("postQuerydata", "projectName", a), d("postQuerydata", "connectionName", e), d("postQuerydata", "postSqlsourceRequest", r);
286
- const o = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(o, V);
289
+ const s = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
287
290
  let l;
288
291
  c && (l = c.baseOptions);
289
- const i = { method: "POST", ...l, ...s }, p = {}, h = {};
290
- t !== void 0 && (h.options = t), p["Content-Type"] = "application/json", O(n, h);
292
+ const i = { method: "POST", ...l, ...o }, p = {}, h = {};
293
+ t !== void 0 && (h.options = t), p["Content-Type"] = "application/json", b(n, h);
291
294
  let y = l && l.headers ? l.headers : {};
292
- return i.headers = { ...p, ...y, ...s.headers }, i.data = j(r, i, c), {
293
- url: b(n),
295
+ return i.headers = { ...p, ...y, ...o.headers }, i.data = j(r, i, c), {
296
+ url: O(n),
294
297
  options: i
295
298
  };
296
299
  },
@@ -305,14 +308,14 @@ const O = function(c, ...a) {
305
308
  */
306
309
  postSqlsource: async (a, e, r, t = {}) => {
307
310
  d("postSqlsource", "projectName", a), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", r);
308
- const s = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
311
+ const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
309
312
  let n;
310
313
  c && (n = c.baseOptions);
311
314
  const l = { method: "POST", ...n, ...t }, i = {}, p = {};
312
- i["Content-Type"] = "application/json", O(o, p);
315
+ i["Content-Type"] = "application/json", b(s, p);
313
316
  let h = n && n.headers ? n.headers : {};
314
317
  return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
315
- url: b(o),
318
+ url: O(s),
316
319
  options: l
317
320
  };
318
321
  },
@@ -327,20 +330,20 @@ const O = function(c, ...a) {
327
330
  */
328
331
  postTemporarytable: async (a, e, r, t = {}) => {
329
332
  d("postTemporarytable", "projectName", a), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", r);
330
- const s = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
333
+ const o = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
331
334
  let n;
332
335
  c && (n = c.baseOptions);
333
336
  const l = { method: "POST", ...n, ...t }, i = {}, p = {};
334
- i["Content-Type"] = "application/json", O(o, p);
337
+ i["Content-Type"] = "application/json", b(s, p);
335
338
  let h = n && n.headers ? n.headers : {};
336
339
  return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
337
- url: b(o),
340
+ url: O(s),
338
341
  options: l
339
342
  };
340
343
  }
341
344
  };
342
345
  }, S = function(c) {
343
- const a = H(c);
346
+ const a = W(c);
344
347
  return {
345
348
  /**
346
349
  * 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.
@@ -351,8 +354,8 @@ const O = function(c, ...a) {
351
354
  * @throws {RequiredError}
352
355
  */
353
356
  async getConnection(e, r, t) {
354
- const s = await a.getConnection(e, r, t), o = c?.serverIndex ?? 0, n = P["ConnectionsApi.getConnection"]?.[o]?.url;
355
- return (l, i) => g(s, u, m, c)(l, n || i);
357
+ const o = await a.getConnection(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.getConnection"]?.[s]?.url;
358
+ return (l, i) => g(o, u, m, c)(l, n || i);
356
359
  },
357
360
  /**
358
361
  * **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.
@@ -365,8 +368,8 @@ const O = function(c, ...a) {
365
368
  * @deprecated
366
369
  * @throws {RequiredError}
367
370
  */
368
- async getQuerydata(e, r, t, s, o) {
369
- const n = await a.getQuerydata(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[l]?.url;
371
+ async getQuerydata(e, r, t, o, s) {
372
+ const n = await a.getQuerydata(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[l]?.url;
370
373
  return (p, h) => g(n, u, m, c)(p, i || h);
371
374
  },
372
375
  /**
@@ -379,9 +382,9 @@ const O = function(c, ...a) {
379
382
  * @deprecated
380
383
  * @throws {RequiredError}
381
384
  */
382
- async getSqlsource(e, r, t, s) {
383
- const o = await a.getSqlsource(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getSqlsource"]?.[n]?.url;
384
- return (i, p) => g(o, u, m, c)(i, l || p);
385
+ async getSqlsource(e, r, t, o) {
386
+ const s = await a.getSqlsource(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getSqlsource"]?.[n]?.url;
387
+ return (i, p) => g(s, u, m, c)(i, l || p);
385
388
  },
386
389
  /**
387
390
  * 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.
@@ -393,8 +396,8 @@ const O = function(c, ...a) {
393
396
  * @param {*} [options] Override http request option.
394
397
  * @throws {RequiredError}
395
398
  */
396
- async getTable(e, r, t, s, o) {
397
- const n = await a.getTable(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
399
+ async getTable(e, r, t, o, s) {
400
+ const n = await a.getTable(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
398
401
  return (p, h) => g(n, u, m, c)(p, i || h);
399
402
  },
400
403
  /**
@@ -408,8 +411,8 @@ const O = function(c, ...a) {
408
411
  * @deprecated
409
412
  * @throws {RequiredError}
410
413
  */
411
- async getTablesource(e, r, t, s, o) {
412
- const n = await a.getTablesource(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTablesource"]?.[l]?.url;
414
+ async getTablesource(e, r, t, o, s) {
415
+ const n = await a.getTablesource(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTablesource"]?.[l]?.url;
413
416
  return (p, h) => g(n, u, m, c)(p, i || h);
414
417
  },
415
418
  /**
@@ -422,9 +425,9 @@ const O = function(c, ...a) {
422
425
  * @deprecated
423
426
  * @throws {RequiredError}
424
427
  */
425
- async getTemporarytable(e, r, t, s) {
426
- const o = await a.getTemporarytable(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getTemporarytable"]?.[n]?.url;
427
- return (i, p) => g(o, u, m, c)(i, l || p);
428
+ async getTemporarytable(e, r, t, o) {
429
+ const s = await a.getTemporarytable(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getTemporarytable"]?.[n]?.url;
430
+ return (i, p) => g(s, u, m, c)(i, l || p);
428
431
  },
429
432
  /**
430
433
  * 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.
@@ -434,8 +437,8 @@ const O = function(c, ...a) {
434
437
  * @throws {RequiredError}
435
438
  */
436
439
  async listConnections(e, r) {
437
- const t = await a.listConnections(e, r), s = c?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[s]?.url;
438
- return (n, l) => g(t, u, m, c)(n, o || l);
440
+ const t = await a.listConnections(e, r), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.listConnections"]?.[o]?.url;
441
+ return (n, l) => g(t, u, m, c)(n, s || l);
439
442
  },
440
443
  /**
441
444
  * 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.
@@ -446,8 +449,8 @@ const O = function(c, ...a) {
446
449
  * @throws {RequiredError}
447
450
  */
448
451
  async listSchemas(e, r, t) {
449
- const s = await a.listSchemas(e, r, t), o = c?.serverIndex ?? 0, n = P["ConnectionsApi.listSchemas"]?.[o]?.url;
450
- return (l, i) => g(s, u, m, c)(l, n || i);
452
+ const o = await a.listSchemas(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.listSchemas"]?.[s]?.url;
453
+ return (l, i) => g(o, u, m, c)(l, n || i);
451
454
  },
452
455
  /**
453
456
  * 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.
@@ -458,9 +461,9 @@ const O = function(c, ...a) {
458
461
  * @param {*} [options] Override http request option.
459
462
  * @throws {RequiredError}
460
463
  */
461
- async listTables(e, r, t, s) {
462
- const o = await a.listTables(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.listTables"]?.[n]?.url;
463
- return (i, p) => g(o, u, m, c)(i, l || p);
464
+ async listTables(e, r, t, o) {
465
+ const s = await a.listTables(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.listTables"]?.[n]?.url;
466
+ return (i, p) => g(s, u, m, c)(i, l || p);
464
467
  },
465
468
  /**
466
469
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
@@ -472,8 +475,8 @@ const O = function(c, ...a) {
472
475
  * @param {*} [options] Override http request option.
473
476
  * @throws {RequiredError}
474
477
  */
475
- async postQuerydata(e, r, t, s, o) {
476
- const n = await a.postQuerydata(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[l]?.url;
478
+ async postQuerydata(e, r, t, o, s) {
479
+ const n = await a.postQuerydata(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[l]?.url;
477
480
  return (p, h) => g(n, u, m, c)(p, i || h);
478
481
  },
479
482
  /**
@@ -485,9 +488,9 @@ const O = function(c, ...a) {
485
488
  * @param {*} [options] Override http request option.
486
489
  * @throws {RequiredError}
487
490
  */
488
- async postSqlsource(e, r, t, s) {
489
- const o = await a.postSqlsource(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[n]?.url;
490
- return (i, p) => g(o, u, m, c)(i, l || p);
491
+ async postSqlsource(e, r, t, o) {
492
+ const s = await a.postSqlsource(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[n]?.url;
493
+ return (i, p) => g(s, u, m, c)(i, l || p);
491
494
  },
492
495
  /**
493
496
  * 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.
@@ -498,12 +501,12 @@ const O = function(c, ...a) {
498
501
  * @param {*} [options] Override http request option.
499
502
  * @throws {RequiredError}
500
503
  */
501
- async postTemporarytable(e, r, t, s) {
502
- const o = await a.postTemporarytable(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[n]?.url;
503
- return (i, p) => g(o, u, m, c)(i, l || p);
504
+ async postTemporarytable(e, r, t, o) {
505
+ const s = await a.postTemporarytable(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[n]?.url;
506
+ return (i, p) => g(s, u, m, c)(i, l || p);
504
507
  }
505
508
  };
506
- }, Pe = function(c, a, e) {
509
+ }, be = function(c, a, e) {
507
510
  const r = S(c);
508
511
  return {
509
512
  /**
@@ -514,8 +517,8 @@ const O = function(c, ...a) {
514
517
  * @param {*} [options] Override http request option.
515
518
  * @throws {RequiredError}
516
519
  */
517
- getConnection(t, s, o) {
518
- return r.getConnection(t, s, o).then((n) => n(e, a));
520
+ getConnection(t, o, s) {
521
+ return r.getConnection(t, o, s).then((n) => n(e, a));
519
522
  },
520
523
  /**
521
524
  * **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.
@@ -528,8 +531,8 @@ const O = function(c, ...a) {
528
531
  * @deprecated
529
532
  * @throws {RequiredError}
530
533
  */
531
- getQuerydata(t, s, o, n, l) {
532
- return r.getQuerydata(t, s, o, n, l).then((i) => i(e, a));
534
+ getQuerydata(t, o, s, n, l) {
535
+ return r.getQuerydata(t, o, s, n, l).then((i) => i(e, a));
533
536
  },
534
537
  /**
535
538
  * **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.
@@ -541,8 +544,8 @@ const O = function(c, ...a) {
541
544
  * @deprecated
542
545
  * @throws {RequiredError}
543
546
  */
544
- getSqlsource(t, s, o, n) {
545
- return r.getSqlsource(t, s, o, n).then((l) => l(e, a));
547
+ getSqlsource(t, o, s, n) {
548
+ return r.getSqlsource(t, o, s, n).then((l) => l(e, a));
546
549
  },
547
550
  /**
548
551
  * 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.
@@ -554,8 +557,8 @@ const O = function(c, ...a) {
554
557
  * @param {*} [options] Override http request option.
555
558
  * @throws {RequiredError}
556
559
  */
557
- getTable(t, s, o, n, l) {
558
- return r.getTable(t, s, o, n, l).then((i) => i(e, a));
560
+ getTable(t, o, s, n, l) {
561
+ return r.getTable(t, o, s, n, l).then((i) => i(e, a));
559
562
  },
560
563
  /**
561
564
  * Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
@@ -568,8 +571,8 @@ const O = function(c, ...a) {
568
571
  * @deprecated
569
572
  * @throws {RequiredError}
570
573
  */
571
- getTablesource(t, s, o, n, l) {
572
- return r.getTablesource(t, s, o, n, l).then((i) => i(e, a));
574
+ getTablesource(t, o, s, n, l) {
575
+ return r.getTablesource(t, o, s, n, l).then((i) => i(e, a));
573
576
  },
574
577
  /**
575
578
  * **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.
@@ -581,8 +584,8 @@ const O = function(c, ...a) {
581
584
  * @deprecated
582
585
  * @throws {RequiredError}
583
586
  */
584
- getTemporarytable(t, s, o, n) {
585
- return r.getTemporarytable(t, s, o, n).then((l) => l(e, a));
587
+ getTemporarytable(t, o, s, n) {
588
+ return r.getTemporarytable(t, o, s, n).then((l) => l(e, a));
586
589
  },
587
590
  /**
588
591
  * 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.
@@ -591,8 +594,8 @@ const O = function(c, ...a) {
591
594
  * @param {*} [options] Override http request option.
592
595
  * @throws {RequiredError}
593
596
  */
594
- listConnections(t, s) {
595
- return r.listConnections(t, s).then((o) => o(e, a));
597
+ listConnections(t, o) {
598
+ return r.listConnections(t, o).then((s) => s(e, a));
596
599
  },
597
600
  /**
598
601
  * 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.
@@ -602,8 +605,8 @@ const O = function(c, ...a) {
602
605
  * @param {*} [options] Override http request option.
603
606
  * @throws {RequiredError}
604
607
  */
605
- listSchemas(t, s, o) {
606
- return r.listSchemas(t, s, o).then((n) => n(e, a));
608
+ listSchemas(t, o, s) {
609
+ return r.listSchemas(t, o, s).then((n) => n(e, a));
607
610
  },
608
611
  /**
609
612
  * 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.
@@ -614,8 +617,8 @@ const O = function(c, ...a) {
614
617
  * @param {*} [options] Override http request option.
615
618
  * @throws {RequiredError}
616
619
  */
617
- listTables(t, s, o, n) {
618
- return r.listTables(t, s, o, n).then((l) => l(e, a));
620
+ listTables(t, o, s, n) {
621
+ return r.listTables(t, o, s, n).then((l) => l(e, a));
619
622
  },
620
623
  /**
621
624
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
@@ -627,8 +630,8 @@ const O = function(c, ...a) {
627
630
  * @param {*} [options] Override http request option.
628
631
  * @throws {RequiredError}
629
632
  */
630
- postQuerydata(t, s, o, n, l) {
631
- return r.postQuerydata(t, s, o, n, l).then((i) => i(e, a));
633
+ postQuerydata(t, o, s, n, l) {
634
+ return r.postQuerydata(t, o, s, n, l).then((i) => i(e, a));
632
635
  },
633
636
  /**
634
637
  * 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.
@@ -639,8 +642,8 @@ const O = function(c, ...a) {
639
642
  * @param {*} [options] Override http request option.
640
643
  * @throws {RequiredError}
641
644
  */
642
- postSqlsource(t, s, o, n) {
643
- return r.postSqlsource(t, s, o, n).then((l) => l(e, a));
645
+ postSqlsource(t, o, s, n) {
646
+ return r.postSqlsource(t, o, s, n).then((l) => l(e, a));
644
647
  },
645
648
  /**
646
649
  * 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.
@@ -651,12 +654,12 @@ const O = function(c, ...a) {
651
654
  * @param {*} [options] Override http request option.
652
655
  * @throws {RequiredError}
653
656
  */
654
- postTemporarytable(t, s, o, n) {
655
- return r.postTemporarytable(t, s, o, n).then((l) => l(e, a));
657
+ postTemporarytable(t, o, s, n) {
658
+ return r.postTemporarytable(t, o, s, n).then((l) => l(e, a));
656
659
  }
657
660
  };
658
661
  };
659
- class W extends A {
662
+ class D extends x {
660
663
  /**
661
664
  * 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.
662
665
  * @summary Get connection details
@@ -681,8 +684,8 @@ class W extends A {
681
684
  * @throws {RequiredError}
682
685
  * @memberof ConnectionsApi
683
686
  */
684
- getQuerydata(a, e, r, t, s) {
685
- return S(this.configuration).getQuerydata(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
687
+ getQuerydata(a, e, r, t, o) {
688
+ return S(this.configuration).getQuerydata(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
686
689
  }
687
690
  /**
688
691
  * **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.
@@ -696,7 +699,7 @@ class W extends A {
696
699
  * @memberof ConnectionsApi
697
700
  */
698
701
  getSqlsource(a, e, r, t) {
699
- return S(this.configuration).getSqlsource(a, e, r, t).then((s) => s(this.axios, this.basePath));
702
+ return S(this.configuration).getSqlsource(a, e, r, t).then((o) => o(this.axios, this.basePath));
700
703
  }
701
704
  /**
702
705
  * 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.
@@ -709,8 +712,8 @@ class W extends A {
709
712
  * @throws {RequiredError}
710
713
  * @memberof ConnectionsApi
711
714
  */
712
- getTable(a, e, r, t, s) {
713
- return S(this.configuration).getTable(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
715
+ getTable(a, e, r, t, o) {
716
+ return S(this.configuration).getTable(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
714
717
  }
715
718
  /**
716
719
  * Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
@@ -724,8 +727,8 @@ class W extends A {
724
727
  * @throws {RequiredError}
725
728
  * @memberof ConnectionsApi
726
729
  */
727
- getTablesource(a, e, r, t, s) {
728
- return S(this.configuration).getTablesource(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
730
+ getTablesource(a, e, r, t, o) {
731
+ return S(this.configuration).getTablesource(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
729
732
  }
730
733
  /**
731
734
  * **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.
@@ -739,7 +742,7 @@ class W extends A {
739
742
  * @memberof ConnectionsApi
740
743
  */
741
744
  getTemporarytable(a, e, r, t) {
742
- return S(this.configuration).getTemporarytable(a, e, r, t).then((s) => s(this.axios, this.basePath));
745
+ return S(this.configuration).getTemporarytable(a, e, r, t).then((o) => o(this.axios, this.basePath));
743
746
  }
744
747
  /**
745
748
  * 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.
@@ -775,7 +778,7 @@ class W extends A {
775
778
  * @memberof ConnectionsApi
776
779
  */
777
780
  listTables(a, e, r, t) {
778
- return S(this.configuration).listTables(a, e, r, t).then((s) => s(this.axios, this.basePath));
781
+ return S(this.configuration).listTables(a, e, r, t).then((o) => o(this.axios, this.basePath));
779
782
  }
780
783
  /**
781
784
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
@@ -788,8 +791,8 @@ class W extends A {
788
791
  * @throws {RequiredError}
789
792
  * @memberof ConnectionsApi
790
793
  */
791
- postQuerydata(a, e, r, t, s) {
792
- return S(this.configuration).postQuerydata(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
794
+ postQuerydata(a, e, r, t, o) {
795
+ return S(this.configuration).postQuerydata(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
793
796
  }
794
797
  /**
795
798
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -802,7 +805,7 @@ class W extends A {
802
805
  * @memberof ConnectionsApi
803
806
  */
804
807
  postSqlsource(a, e, r, t) {
805
- return S(this.configuration).postSqlsource(a, e, r, t).then((s) => s(this.axios, this.basePath));
808
+ return S(this.configuration).postSqlsource(a, e, r, t).then((o) => o(this.axios, this.basePath));
806
809
  }
807
810
  /**
808
811
  * 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.
@@ -815,10 +818,10 @@ class W extends A {
815
818
  * @memberof ConnectionsApi
816
819
  */
817
820
  postTemporarytable(a, e, r, t) {
818
- return S(this.configuration).postTemporarytable(a, e, r, t).then((s) => s(this.axios, this.basePath));
821
+ return S(this.configuration).postTemporarytable(a, e, r, t).then((o) => o(this.axios, this.basePath));
819
822
  }
820
823
  }
821
- const D = function(c) {
824
+ const f = function(c) {
822
825
  return {
823
826
  /**
824
827
  * 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.
@@ -830,19 +833,19 @@ const D = function(c) {
830
833
  testConnectionConfiguration: async (a, e = {}) => {
831
834
  d("testConnectionConfiguration", "connection", a);
832
835
  const r = "/connections/test", t = new URL(r, V);
833
- let s;
834
- c && (s = c.baseOptions);
835
- const o = { method: "POST", ...s, ...e }, n = {}, l = {};
836
- n["Content-Type"] = "application/json", O(t, l);
837
- let i = s && s.headers ? s.headers : {};
838
- return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
839
- url: b(t),
840
- options: o
836
+ let o;
837
+ c && (o = c.baseOptions);
838
+ const s = { method: "POST", ...o, ...e }, n = {}, l = {};
839
+ n["Content-Type"] = "application/json", b(t, l);
840
+ let i = o && o.headers ? o.headers : {};
841
+ return s.headers = { ...n, ...i, ...e.headers }, s.data = j(a, s, c), {
842
+ url: O(t),
843
+ options: s
841
844
  };
842
845
  }
843
846
  };
844
847
  }, U = function(c) {
845
- const a = D(c);
848
+ const a = f(c);
846
849
  return {
847
850
  /**
848
851
  * 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.
@@ -852,11 +855,11 @@ const D = function(c) {
852
855
  * @throws {RequiredError}
853
856
  */
854
857
  async testConnectionConfiguration(e, r) {
855
- const t = await a.testConnectionConfiguration(e, r), s = c?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[s]?.url;
856
- return (n, l) => g(t, u, m, c)(n, o || l);
858
+ const t = await a.testConnectionConfiguration(e, r), o = c?.serverIndex ?? 0, s = P["ConnectionsTestApi.testConnectionConfiguration"]?.[o]?.url;
859
+ return (n, l) => g(t, u, m, c)(n, s || l);
857
860
  }
858
861
  };
859
- }, Ve = function(c, a, e) {
862
+ }, Oe = function(c, a, e) {
860
863
  const r = U(c);
861
864
  return {
862
865
  /**
@@ -866,12 +869,12 @@ const D = function(c) {
866
869
  * @param {*} [options] Override http request option.
867
870
  * @throws {RequiredError}
868
871
  */
869
- testConnectionConfiguration(t, s) {
870
- return r.testConnectionConfiguration(t, s).then((o) => o(e, a));
872
+ testConnectionConfiguration(t, o) {
873
+ return r.testConnectionConfiguration(t, o).then((s) => s(e, a));
871
874
  }
872
875
  };
873
876
  };
874
- class Oe extends A {
877
+ class ge extends x {
875
878
  /**
876
879
  * 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.
877
880
  * @summary Test database connection configuration
@@ -884,7 +887,7 @@ class Oe extends A {
884
887
  return U(this.configuration).testConnectionConfiguration(a, e).then((r) => r(this.axios, this.basePath));
885
888
  }
886
889
  }
887
- const f = function(c) {
890
+ const G = function(c) {
888
891
  return {
889
892
  /**
890
893
  * 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.
@@ -897,20 +900,20 @@ const f = function(c) {
897
900
  */
898
901
  listDatabases: async (a, e, r, t = {}) => {
899
902
  d("listDatabases", "projectName", a), d("listDatabases", "packageName", e);
900
- const s = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
903
+ const o = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
901
904
  let n;
902
905
  c && (n = c.baseOptions);
903
906
  const l = { method: "GET", ...n, ...t }, i = {}, p = {};
904
- r !== void 0 && (p.versionId = r), O(o, p);
907
+ r !== void 0 && (p.versionId = r), b(s, p);
905
908
  let h = n && n.headers ? n.headers : {};
906
909
  return l.headers = { ...i, ...h, ...t.headers }, {
907
- url: b(o),
910
+ url: O(s),
908
911
  options: l
909
912
  };
910
913
  }
911
914
  };
912
- }, T = function(c) {
913
- const a = f(c);
915
+ }, w = function(c) {
916
+ const a = G(c);
914
917
  return {
915
918
  /**
916
919
  * 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.
@@ -921,13 +924,13 @@ const f = function(c) {
921
924
  * @param {*} [options] Override http request option.
922
925
  * @throws {RequiredError}
923
926
  */
924
- async listDatabases(e, r, t, s) {
925
- const o = await a.listDatabases(e, r, t, s), n = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[n]?.url;
926
- return (i, p) => g(o, u, m, c)(i, l || p);
927
+ async listDatabases(e, r, t, o) {
928
+ const s = await a.listDatabases(e, r, t, o), n = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[n]?.url;
929
+ return (i, p) => g(s, u, m, c)(i, l || p);
927
930
  }
928
931
  };
929
- }, be = function(c, a, e) {
930
- const r = T(c);
932
+ }, ye = function(c, a, e) {
933
+ const r = w(c);
931
934
  return {
932
935
  /**
933
936
  * 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.
@@ -938,12 +941,12 @@ const f = function(c) {
938
941
  * @param {*} [options] Override http request option.
939
942
  * @throws {RequiredError}
940
943
  */
941
- listDatabases(t, s, o, n) {
942
- return r.listDatabases(t, s, o, n).then((l) => l(e, a));
944
+ listDatabases(t, o, s, n) {
945
+ return r.listDatabases(t, o, s, n).then((l) => l(e, a));
943
946
  }
944
947
  };
945
948
  };
946
- class G extends A {
949
+ class z extends x {
947
950
  /**
948
951
  * 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.
949
952
  * @summary List embedded databases
@@ -955,10 +958,10 @@ class G extends A {
955
958
  * @memberof DatabasesApi
956
959
  */
957
960
  listDatabases(a, e, r, t) {
958
- return T(this.configuration).listDatabases(a, e, r, t).then((s) => s(this.axios, this.basePath));
961
+ return w(this.configuration).listDatabases(a, e, r, t).then((o) => o(this.axios, this.basePath));
959
962
  }
960
963
  }
961
- const z = function(c) {
964
+ const J = function(c) {
962
965
  return {
963
966
  /**
964
967
  * 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.
@@ -970,16 +973,16 @@ const z = function(c) {
970
973
  * @param {*} [options] Override http request option.
971
974
  * @throws {RequiredError}
972
975
  */
973
- executeQueryModel: async (a, e, r, t, s = {}) => {
976
+ executeQueryModel: async (a, e, r, t, o = {}) => {
974
977
  d("executeQueryModel", "projectName", a), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", r), d("executeQueryModel", "queryRequest", t);
975
- const o = "/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(o, V);
978
+ 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);
976
979
  let l;
977
980
  c && (l = c.baseOptions);
978
- const i = { method: "POST", ...l, ...s }, p = {}, h = {};
979
- p["Content-Type"] = "application/json", O(n, h);
981
+ const i = { method: "POST", ...l, ...o }, p = {}, h = {};
982
+ p["Content-Type"] = "application/json", b(n, h);
980
983
  let y = l && l.headers ? l.headers : {};
981
- return i.headers = { ...p, ...y, ...s.headers }, i.data = j(t, i, c), {
982
- url: b(n),
984
+ return i.headers = { ...p, ...y, ...o.headers }, i.data = j(t, i, c), {
985
+ url: O(n),
983
986
  options: i
984
987
  };
985
988
  },
@@ -993,16 +996,16 @@ const z = function(c) {
993
996
  * @param {*} [options] Override http request option.
994
997
  * @throws {RequiredError}
995
998
  */
996
- getModel: async (a, e, r, t, s = {}) => {
999
+ getModel: async (a, e, r, t, o = {}) => {
997
1000
  d("getModel", "projectName", a), d("getModel", "packageName", e), d("getModel", "path", r);
998
- const o = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(o, V);
1001
+ 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);
999
1002
  let l;
1000
1003
  c && (l = c.baseOptions);
1001
- const i = { method: "GET", ...l, ...s }, p = {}, h = {};
1002
- t !== void 0 && (h.versionId = t), O(n, h);
1004
+ const i = { method: "GET", ...l, ...o }, p = {}, h = {};
1005
+ t !== void 0 && (h.versionId = t), b(n, h);
1003
1006
  let y = l && l.headers ? l.headers : {};
1004
- return i.headers = { ...p, ...y, ...s.headers }, {
1005
- url: b(n),
1007
+ return i.headers = { ...p, ...y, ...o.headers }, {
1008
+ url: O(n),
1006
1009
  options: i
1007
1010
  };
1008
1011
  },
@@ -1017,20 +1020,20 @@ const z = function(c) {
1017
1020
  */
1018
1021
  listModels: async (a, e, r, t = {}) => {
1019
1022
  d("listModels", "projectName", a), d("listModels", "packageName", e);
1020
- const s = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
1023
+ const o = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
1021
1024
  let n;
1022
1025
  c && (n = c.baseOptions);
1023
1026
  const l = { method: "GET", ...n, ...t }, i = {}, p = {};
1024
- r !== void 0 && (p.versionId = r), O(o, p);
1027
+ r !== void 0 && (p.versionId = r), b(s, p);
1025
1028
  let h = n && n.headers ? n.headers : {};
1026
1029
  return l.headers = { ...i, ...h, ...t.headers }, {
1027
- url: b(o),
1030
+ url: O(s),
1028
1031
  options: l
1029
1032
  };
1030
1033
  }
1031
1034
  };
1032
- }, v = function(c) {
1033
- const a = z(c);
1035
+ }, k = function(c) {
1036
+ const a = J(c);
1034
1037
  return {
1035
1038
  /**
1036
1039
  * 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.
@@ -1042,8 +1045,8 @@ const z = function(c) {
1042
1045
  * @param {*} [options] Override http request option.
1043
1046
  * @throws {RequiredError}
1044
1047
  */
1045
- async executeQueryModel(e, r, t, s, o) {
1046
- const n = await a.executeQueryModel(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
1048
+ async executeQueryModel(e, r, t, o, s) {
1049
+ const n = await a.executeQueryModel(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
1047
1050
  return (p, h) => g(n, u, m, c)(p, i || h);
1048
1051
  },
1049
1052
  /**
@@ -1056,8 +1059,8 @@ const z = function(c) {
1056
1059
  * @param {*} [options] Override http request option.
1057
1060
  * @throws {RequiredError}
1058
1061
  */
1059
- async getModel(e, r, t, s, o) {
1060
- const n = await a.getModel(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
1062
+ async getModel(e, r, t, o, s) {
1063
+ const n = await a.getModel(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
1061
1064
  return (p, h) => g(n, u, m, c)(p, i || h);
1062
1065
  },
1063
1066
  /**
@@ -1069,13 +1072,13 @@ const z = function(c) {
1069
1072
  * @param {*} [options] Override http request option.
1070
1073
  * @throws {RequiredError}
1071
1074
  */
1072
- async listModels(e, r, t, s) {
1073
- const o = await a.listModels(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[n]?.url;
1074
- return (i, p) => g(o, u, m, c)(i, l || p);
1075
+ async listModels(e, r, t, o) {
1076
+ const s = await a.listModels(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[n]?.url;
1077
+ return (i, p) => g(s, u, m, c)(i, l || p);
1075
1078
  }
1076
1079
  };
1077
- }, ge = function(c, a, e) {
1078
- const r = v(c);
1080
+ }, Se = function(c, a, e) {
1081
+ const r = k(c);
1079
1082
  return {
1080
1083
  /**
1081
1084
  * 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.
@@ -1087,8 +1090,8 @@ const z = function(c) {
1087
1090
  * @param {*} [options] Override http request option.
1088
1091
  * @throws {RequiredError}
1089
1092
  */
1090
- executeQueryModel(t, s, o, n, l) {
1091
- return r.executeQueryModel(t, s, o, n, l).then((i) => i(e, a));
1093
+ executeQueryModel(t, o, s, n, l) {
1094
+ return r.executeQueryModel(t, o, s, n, l).then((i) => i(e, a));
1092
1095
  },
1093
1096
  /**
1094
1097
  * 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.
@@ -1100,8 +1103,8 @@ const z = function(c) {
1100
1103
  * @param {*} [options] Override http request option.
1101
1104
  * @throws {RequiredError}
1102
1105
  */
1103
- getModel(t, s, o, n, l) {
1104
- return r.getModel(t, s, o, n, l).then((i) => i(e, a));
1106
+ getModel(t, o, s, n, l) {
1107
+ return r.getModel(t, o, s, n, l).then((i) => i(e, a));
1105
1108
  },
1106
1109
  /**
1107
1110
  * 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.
@@ -1112,12 +1115,12 @@ const z = function(c) {
1112
1115
  * @param {*} [options] Override http request option.
1113
1116
  * @throws {RequiredError}
1114
1117
  */
1115
- listModels(t, s, o, n) {
1116
- return r.listModels(t, s, o, n).then((l) => l(e, a));
1118
+ listModels(t, o, s, n) {
1119
+ return r.listModels(t, o, s, n).then((l) => l(e, a));
1117
1120
  }
1118
1121
  };
1119
1122
  };
1120
- class J extends A {
1123
+ class K extends x {
1121
1124
  /**
1122
1125
  * 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.
1123
1126
  * @summary Execute Malloy query
@@ -1129,8 +1132,8 @@ class J extends A {
1129
1132
  * @throws {RequiredError}
1130
1133
  * @memberof ModelsApi
1131
1134
  */
1132
- executeQueryModel(a, e, r, t, s) {
1133
- return v(this.configuration).executeQueryModel(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
1135
+ executeQueryModel(a, e, r, t, o) {
1136
+ return k(this.configuration).executeQueryModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
1134
1137
  }
1135
1138
  /**
1136
1139
  * 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.
@@ -1143,8 +1146,8 @@ class J extends A {
1143
1146
  * @throws {RequiredError}
1144
1147
  * @memberof ModelsApi
1145
1148
  */
1146
- getModel(a, e, r, t, s) {
1147
- return v(this.configuration).getModel(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
1149
+ getModel(a, e, r, t, o) {
1150
+ return k(this.configuration).getModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
1148
1151
  }
1149
1152
  /**
1150
1153
  * 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.
@@ -1157,14 +1160,38 @@ class J extends A {
1157
1160
  * @memberof ModelsApi
1158
1161
  */
1159
1162
  listModels(a, e, r, t) {
1160
- return v(this.configuration).listModels(a, e, r, t).then((s) => s(this.axios, this.basePath));
1163
+ return k(this.configuration).listModels(a, e, r, t).then((o) => o(this.axios, this.basePath));
1161
1164
  }
1162
1165
  }
1163
- const K = function(c) {
1166
+ const Y = function(c) {
1164
1167
  return {
1165
1168
  /**
1166
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1167
- * @summary Get compiled Malloy notebook
1169
+ * 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.
1170
+ * @summary Execute a specific notebook cell
1171
+ * @param {string} projectName Name of the project
1172
+ * @param {string} packageName Name of the package
1173
+ * @param {string} path Path to notebook within the package
1174
+ * @param {number} cellIndex Index of the cell to execute (0-based)
1175
+ * @param {string} [versionId] Version identifier for the package
1176
+ * @param {*} [options] Override http request option.
1177
+ * @throws {RequiredError}
1178
+ */
1179
+ executeNotebookCell: async (a, e, r, t, o, s = {}) => {
1180
+ d("executeNotebookCell", "projectName", a), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", r), d("executeNotebookCell", "cellIndex", t);
1181
+ const n = "/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))), l = new URL(n, V);
1182
+ let i;
1183
+ c && (i = c.baseOptions);
1184
+ const p = { method: "GET", ...i, ...s }, h = {}, y = {};
1185
+ o !== void 0 && (y.versionId = o), b(l, y);
1186
+ let q = i && i.headers ? i.headers : {};
1187
+ return p.headers = { ...h, ...q, ...s.headers }, {
1188
+ url: O(l),
1189
+ options: p
1190
+ };
1191
+ },
1192
+ /**
1193
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
1194
+ * @summary Get Malloy notebook cells
1168
1195
  * @param {string} projectName Name of the project
1169
1196
  * @param {string} packageName Name of the package
1170
1197
  * @param {string} path Path to notebook within the package.
@@ -1172,16 +1199,16 @@ const K = function(c) {
1172
1199
  * @param {*} [options] Override http request option.
1173
1200
  * @throws {RequiredError}
1174
1201
  */
1175
- getNotebook: async (a, e, r, t, s = {}) => {
1202
+ getNotebook: async (a, e, r, t, o = {}) => {
1176
1203
  d("getNotebook", "projectName", a), d("getNotebook", "packageName", e), d("getNotebook", "path", r);
1177
- const o = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(o, V);
1204
+ 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);
1178
1205
  let l;
1179
1206
  c && (l = c.baseOptions);
1180
- const i = { method: "GET", ...l, ...s }, p = {}, h = {};
1181
- t !== void 0 && (h.versionId = t), O(n, h);
1207
+ const i = { method: "GET", ...l, ...o }, p = {}, h = {};
1208
+ t !== void 0 && (h.versionId = t), b(n, h);
1182
1209
  let y = l && l.headers ? l.headers : {};
1183
- return i.headers = { ...p, ...y, ...s.headers }, {
1184
- url: b(n),
1210
+ return i.headers = { ...p, ...y, ...o.headers }, {
1211
+ url: O(n),
1185
1212
  options: i
1186
1213
  };
1187
1214
  },
@@ -1196,24 +1223,39 @@ const K = function(c) {
1196
1223
  */
1197
1224
  listNotebooks: async (a, e, r, t = {}) => {
1198
1225
  d("listNotebooks", "projectName", a), d("listNotebooks", "packageName", e);
1199
- const s = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
1226
+ const o = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
1200
1227
  let n;
1201
1228
  c && (n = c.baseOptions);
1202
1229
  const l = { method: "GET", ...n, ...t }, i = {}, p = {};
1203
- r !== void 0 && (p.versionId = r), O(o, p);
1230
+ r !== void 0 && (p.versionId = r), b(s, p);
1204
1231
  let h = n && n.headers ? n.headers : {};
1205
1232
  return l.headers = { ...i, ...h, ...t.headers }, {
1206
- url: b(o),
1233
+ url: O(s),
1207
1234
  options: l
1208
1235
  };
1209
1236
  }
1210
1237
  };
1211
- }, R = function(c) {
1212
- const a = K(c);
1238
+ }, N = function(c) {
1239
+ const a = Y(c);
1213
1240
  return {
1214
1241
  /**
1215
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1216
- * @summary Get compiled Malloy notebook
1242
+ * 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.
1243
+ * @summary Execute a specific notebook cell
1244
+ * @param {string} projectName Name of the project
1245
+ * @param {string} packageName Name of the package
1246
+ * @param {string} path Path to notebook within the package
1247
+ * @param {number} cellIndex Index of the cell to execute (0-based)
1248
+ * @param {string} [versionId] Version identifier for the package
1249
+ * @param {*} [options] Override http request option.
1250
+ * @throws {RequiredError}
1251
+ */
1252
+ async executeNotebookCell(e, r, t, o, s, n) {
1253
+ const l = await a.executeNotebookCell(e, r, t, o, s, n), i = c?.serverIndex ?? 0, p = P["NotebooksApi.executeNotebookCell"]?.[i]?.url;
1254
+ return (h, y) => g(l, u, m, c)(h, p || y);
1255
+ },
1256
+ /**
1257
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
1258
+ * @summary Get Malloy notebook cells
1217
1259
  * @param {string} projectName Name of the project
1218
1260
  * @param {string} packageName Name of the package
1219
1261
  * @param {string} path Path to notebook within the package.
@@ -1221,8 +1263,8 @@ const K = function(c) {
1221
1263
  * @param {*} [options] Override http request option.
1222
1264
  * @throws {RequiredError}
1223
1265
  */
1224
- async getNotebook(e, r, t, s, o) {
1225
- const n = await a.getNotebook(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
1266
+ async getNotebook(e, r, t, o, s) {
1267
+ const n = await a.getNotebook(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
1226
1268
  return (p, h) => g(n, u, m, c)(p, i || h);
1227
1269
  },
1228
1270
  /**
@@ -1234,17 +1276,31 @@ const K = function(c) {
1234
1276
  * @param {*} [options] Override http request option.
1235
1277
  * @throws {RequiredError}
1236
1278
  */
1237
- async listNotebooks(e, r, t, s) {
1238
- const o = await a.listNotebooks(e, r, t, s), n = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[n]?.url;
1239
- return (i, p) => g(o, u, m, c)(i, l || p);
1279
+ async listNotebooks(e, r, t, o) {
1280
+ const s = await a.listNotebooks(e, r, t, o), n = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[n]?.url;
1281
+ return (i, p) => g(s, u, m, c)(i, l || p);
1240
1282
  }
1241
1283
  };
1242
- }, ye = function(c, a, e) {
1243
- const r = R(c);
1284
+ }, je = function(c, a, e) {
1285
+ const r = N(c);
1244
1286
  return {
1245
1287
  /**
1246
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1247
- * @summary Get compiled Malloy notebook
1288
+ * 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.
1289
+ * @summary Execute a specific notebook cell
1290
+ * @param {string} projectName Name of the project
1291
+ * @param {string} packageName Name of the package
1292
+ * @param {string} path Path to notebook within the package
1293
+ * @param {number} cellIndex Index of the cell to execute (0-based)
1294
+ * @param {string} [versionId] Version identifier for the package
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ */
1298
+ executeNotebookCell(t, o, s, n, l, i) {
1299
+ return r.executeNotebookCell(t, o, s, n, l, i).then((p) => p(e, a));
1300
+ },
1301
+ /**
1302
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
1303
+ * @summary Get Malloy notebook cells
1248
1304
  * @param {string} projectName Name of the project
1249
1305
  * @param {string} packageName Name of the package
1250
1306
  * @param {string} path Path to notebook within the package.
@@ -1252,8 +1308,8 @@ const K = function(c) {
1252
1308
  * @param {*} [options] Override http request option.
1253
1309
  * @throws {RequiredError}
1254
1310
  */
1255
- getNotebook(t, s, o, n, l) {
1256
- return r.getNotebook(t, s, o, n, l).then((i) => i(e, a));
1311
+ getNotebook(t, o, s, n, l) {
1312
+ return r.getNotebook(t, o, s, n, l).then((i) => i(e, a));
1257
1313
  },
1258
1314
  /**
1259
1315
  * 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.
@@ -1264,15 +1320,30 @@ const K = function(c) {
1264
1320
  * @param {*} [options] Override http request option.
1265
1321
  * @throws {RequiredError}
1266
1322
  */
1267
- listNotebooks(t, s, o, n) {
1268
- return r.listNotebooks(t, s, o, n).then((l) => l(e, a));
1323
+ listNotebooks(t, o, s, n) {
1324
+ return r.listNotebooks(t, o, s, n).then((l) => l(e, a));
1269
1325
  }
1270
1326
  };
1271
1327
  };
1272
- class Y extends A {
1328
+ class _ extends x {
1329
+ /**
1330
+ * 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.
1331
+ * @summary Execute a specific notebook cell
1332
+ * @param {string} projectName Name of the project
1333
+ * @param {string} packageName Name of the package
1334
+ * @param {string} path Path to notebook within the package
1335
+ * @param {number} cellIndex Index of the cell to execute (0-based)
1336
+ * @param {string} [versionId] Version identifier for the package
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ * @memberof NotebooksApi
1340
+ */
1341
+ executeNotebookCell(a, e, r, t, o, s) {
1342
+ return N(this.configuration).executeNotebookCell(a, e, r, t, o, s).then((n) => n(this.axios, this.basePath));
1343
+ }
1273
1344
  /**
1274
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1275
- * @summary Get compiled Malloy notebook
1345
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
1346
+ * @summary Get Malloy notebook cells
1276
1347
  * @param {string} projectName Name of the project
1277
1348
  * @param {string} packageName Name of the package
1278
1349
  * @param {string} path Path to notebook within the package.
@@ -1281,8 +1352,8 @@ class Y extends A {
1281
1352
  * @throws {RequiredError}
1282
1353
  * @memberof NotebooksApi
1283
1354
  */
1284
- getNotebook(a, e, r, t, s) {
1285
- return R(this.configuration).getNotebook(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
1355
+ getNotebook(a, e, r, t, o) {
1356
+ return N(this.configuration).getNotebook(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
1286
1357
  }
1287
1358
  /**
1288
1359
  * 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.
@@ -1295,10 +1366,10 @@ class Y extends A {
1295
1366
  * @memberof NotebooksApi
1296
1367
  */
1297
1368
  listNotebooks(a, e, r, t) {
1298
- return R(this.configuration).listNotebooks(a, e, r, t).then((s) => s(this.axios, this.basePath));
1369
+ return N(this.configuration).listNotebooks(a, e, r, t).then((o) => o(this.axios, this.basePath));
1299
1370
  }
1300
1371
  }
1301
- const _ = function(c) {
1372
+ const X = function(c) {
1302
1373
  return {
1303
1374
  /**
1304
1375
  * 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.
@@ -1310,14 +1381,14 @@ const _ = function(c) {
1310
1381
  */
1311
1382
  createPackage: async (a, e, r = {}) => {
1312
1383
  d("createPackage", "projectName", a), d("createPackage", "_package", e);
1313
- const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), s = new URL(t, V);
1314
- let o;
1315
- c && (o = c.baseOptions);
1316
- const n = { method: "POST", ...o, ...r }, l = {}, i = {};
1317
- l["Content-Type"] = "application/json", O(s, i);
1318
- let p = o && o.headers ? o.headers : {};
1384
+ const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
1385
+ let s;
1386
+ c && (s = c.baseOptions);
1387
+ const n = { method: "POST", ...s, ...r }, l = {}, i = {};
1388
+ l["Content-Type"] = "application/json", b(o, i);
1389
+ let p = s && s.headers ? s.headers : {};
1319
1390
  return n.headers = { ...l, ...p, ...r.headers }, n.data = j(e, n, c), {
1320
- url: b(s),
1391
+ url: O(o),
1321
1392
  options: n
1322
1393
  };
1323
1394
  },
@@ -1331,14 +1402,14 @@ const _ = function(c) {
1331
1402
  */
1332
1403
  deletePackage: async (a, e, r = {}) => {
1333
1404
  d("deletePackage", "projectName", a), d("deletePackage", "packageName", e);
1334
- const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(t, V);
1335
- let o;
1336
- c && (o = c.baseOptions);
1337
- const n = { method: "DELETE", ...o, ...r }, l = {};
1338
- O(s, {});
1339
- let p = o && o.headers ? o.headers : {};
1405
+ const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, V);
1406
+ let s;
1407
+ c && (s = c.baseOptions);
1408
+ const n = { method: "DELETE", ...s, ...r }, l = {};
1409
+ b(o, {});
1410
+ let p = s && s.headers ? s.headers : {};
1340
1411
  return n.headers = { ...l, ...p, ...r.headers }, {
1341
- url: b(s),
1412
+ url: O(o),
1342
1413
  options: n
1343
1414
  };
1344
1415
  },
@@ -1352,16 +1423,16 @@ const _ = function(c) {
1352
1423
  * @param {*} [options] Override http request option.
1353
1424
  * @throws {RequiredError}
1354
1425
  */
1355
- getPackage: async (a, e, r, t, s = {}) => {
1426
+ getPackage: async (a, e, r, t, o = {}) => {
1356
1427
  d("getPackage", "projectName", a), d("getPackage", "packageName", e);
1357
- const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(o, V);
1428
+ const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(s, V);
1358
1429
  let l;
1359
1430
  c && (l = c.baseOptions);
1360
- const i = { method: "GET", ...l, ...s }, p = {}, h = {};
1361
- r !== void 0 && (h.versionId = r), t !== void 0 && (h.reload = t), O(n, h);
1431
+ const i = { method: "GET", ...l, ...o }, p = {}, h = {};
1432
+ r !== void 0 && (h.versionId = r), t !== void 0 && (h.reload = t), b(n, h);
1362
1433
  let y = l && l.headers ? l.headers : {};
1363
- return i.headers = { ...p, ...y, ...s.headers }, {
1364
- url: b(n),
1434
+ return i.headers = { ...p, ...y, ...o.headers }, {
1435
+ url: O(n),
1365
1436
  options: i
1366
1437
  };
1367
1438
  },
@@ -1375,14 +1446,14 @@ const _ = function(c) {
1375
1446
  listPackages: async (a, e = {}) => {
1376
1447
  d("listPackages", "projectName", a);
1377
1448
  const r = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
1378
- let s;
1379
- c && (s = c.baseOptions);
1380
- const o = { method: "GET", ...s, ...e }, n = {};
1381
- O(t, {});
1382
- let i = s && s.headers ? s.headers : {};
1383
- return o.headers = { ...n, ...i, ...e.headers }, {
1384
- url: b(t),
1385
- options: o
1449
+ let o;
1450
+ c && (o = c.baseOptions);
1451
+ const s = { method: "GET", ...o, ...e }, n = {};
1452
+ b(t, {});
1453
+ let i = o && o.headers ? o.headers : {};
1454
+ return s.headers = { ...n, ...i, ...e.headers }, {
1455
+ url: O(t),
1456
+ options: s
1386
1457
  };
1387
1458
  },
1388
1459
  /**
@@ -1396,20 +1467,20 @@ const _ = function(c) {
1396
1467
  */
1397
1468
  updatePackage: async (a, e, r, t = {}) => {
1398
1469
  d("updatePackage", "projectName", a), d("updatePackage", "packageName", e), d("updatePackage", "_package", r);
1399
- const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
1470
+ const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
1400
1471
  let n;
1401
1472
  c && (n = c.baseOptions);
1402
1473
  const l = { method: "PATCH", ...n, ...t }, i = {}, p = {};
1403
- i["Content-Type"] = "application/json", O(o, p);
1474
+ i["Content-Type"] = "application/json", b(s, p);
1404
1475
  let h = n && n.headers ? n.headers : {};
1405
1476
  return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
1406
- url: b(o),
1477
+ url: O(s),
1407
1478
  options: l
1408
1479
  };
1409
1480
  }
1410
1481
  };
1411
- }, x = function(c) {
1412
- const a = _(c);
1482
+ }, C = function(c) {
1483
+ const a = X(c);
1413
1484
  return {
1414
1485
  /**
1415
1486
  * 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.
@@ -1420,8 +1491,8 @@ const _ = function(c) {
1420
1491
  * @throws {RequiredError}
1421
1492
  */
1422
1493
  async createPackage(e, r, t) {
1423
- const s = await a.createPackage(e, r, t), o = c?.serverIndex ?? 0, n = P["PackagesApi.createPackage"]?.[o]?.url;
1424
- return (l, i) => g(s, u, m, c)(l, n || i);
1494
+ const o = await a.createPackage(e, r, t), s = c?.serverIndex ?? 0, n = P["PackagesApi.createPackage"]?.[s]?.url;
1495
+ return (l, i) => g(o, u, m, c)(l, n || i);
1425
1496
  },
1426
1497
  /**
1427
1498
  * 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.
@@ -1432,8 +1503,8 @@ const _ = function(c) {
1432
1503
  * @throws {RequiredError}
1433
1504
  */
1434
1505
  async deletePackage(e, r, t) {
1435
- const s = await a.deletePackage(e, r, t), o = c?.serverIndex ?? 0, n = P["PackagesApi.deletePackage"]?.[o]?.url;
1436
- return (l, i) => g(s, u, m, c)(l, n || i);
1506
+ const o = await a.deletePackage(e, r, t), s = c?.serverIndex ?? 0, n = P["PackagesApi.deletePackage"]?.[s]?.url;
1507
+ return (l, i) => g(o, u, m, c)(l, n || i);
1437
1508
  },
1438
1509
  /**
1439
1510
  * 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.
@@ -1445,8 +1516,8 @@ const _ = function(c) {
1445
1516
  * @param {*} [options] Override http request option.
1446
1517
  * @throws {RequiredError}
1447
1518
  */
1448
- async getPackage(e, r, t, s, o) {
1449
- const n = await a.getPackage(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
1519
+ async getPackage(e, r, t, o, s) {
1520
+ const n = await a.getPackage(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
1450
1521
  return (p, h) => g(n, u, m, c)(p, i || h);
1451
1522
  },
1452
1523
  /**
@@ -1457,8 +1528,8 @@ const _ = function(c) {
1457
1528
  * @throws {RequiredError}
1458
1529
  */
1459
1530
  async listPackages(e, r) {
1460
- const t = await a.listPackages(e, r), s = c?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[s]?.url;
1461
- return (n, l) => g(t, u, m, c)(n, o || l);
1531
+ const t = await a.listPackages(e, r), o = c?.serverIndex ?? 0, s = P["PackagesApi.listPackages"]?.[o]?.url;
1532
+ return (n, l) => g(t, u, m, c)(n, s || l);
1462
1533
  },
1463
1534
  /**
1464
1535
  * 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.
@@ -1469,13 +1540,13 @@ const _ = function(c) {
1469
1540
  * @param {*} [options] Override http request option.
1470
1541
  * @throws {RequiredError}
1471
1542
  */
1472
- async updatePackage(e, r, t, s) {
1473
- const o = await a.updatePackage(e, r, t, s), n = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[n]?.url;
1474
- return (i, p) => g(o, u, m, c)(i, l || p);
1543
+ async updatePackage(e, r, t, o) {
1544
+ const s = await a.updatePackage(e, r, t, o), n = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[n]?.url;
1545
+ return (i, p) => g(s, u, m, c)(i, l || p);
1475
1546
  }
1476
1547
  };
1477
- }, Se = function(c, a, e) {
1478
- const r = x(c);
1548
+ }, xe = function(c, a, e) {
1549
+ const r = C(c);
1479
1550
  return {
1480
1551
  /**
1481
1552
  * 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.
@@ -1485,8 +1556,8 @@ const _ = function(c) {
1485
1556
  * @param {*} [options] Override http request option.
1486
1557
  * @throws {RequiredError}
1487
1558
  */
1488
- createPackage(t, s, o) {
1489
- return r.createPackage(t, s, o).then((n) => n(e, a));
1559
+ createPackage(t, o, s) {
1560
+ return r.createPackage(t, o, s).then((n) => n(e, a));
1490
1561
  },
1491
1562
  /**
1492
1563
  * 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.
@@ -1496,8 +1567,8 @@ const _ = function(c) {
1496
1567
  * @param {*} [options] Override http request option.
1497
1568
  * @throws {RequiredError}
1498
1569
  */
1499
- deletePackage(t, s, o) {
1500
- return r.deletePackage(t, s, o).then((n) => n(e, a));
1570
+ deletePackage(t, o, s) {
1571
+ return r.deletePackage(t, o, s).then((n) => n(e, a));
1501
1572
  },
1502
1573
  /**
1503
1574
  * 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.
@@ -1509,8 +1580,8 @@ const _ = function(c) {
1509
1580
  * @param {*} [options] Override http request option.
1510
1581
  * @throws {RequiredError}
1511
1582
  */
1512
- getPackage(t, s, o, n, l) {
1513
- return r.getPackage(t, s, o, n, l).then((i) => i(e, a));
1583
+ getPackage(t, o, s, n, l) {
1584
+ return r.getPackage(t, o, s, n, l).then((i) => i(e, a));
1514
1585
  },
1515
1586
  /**
1516
1587
  * 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.
@@ -1519,8 +1590,8 @@ const _ = function(c) {
1519
1590
  * @param {*} [options] Override http request option.
1520
1591
  * @throws {RequiredError}
1521
1592
  */
1522
- listPackages(t, s) {
1523
- return r.listPackages(t, s).then((o) => o(e, a));
1593
+ listPackages(t, o) {
1594
+ return r.listPackages(t, o).then((s) => s(e, a));
1524
1595
  },
1525
1596
  /**
1526
1597
  * 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.
@@ -1531,12 +1602,12 @@ const _ = function(c) {
1531
1602
  * @param {*} [options] Override http request option.
1532
1603
  * @throws {RequiredError}
1533
1604
  */
1534
- updatePackage(t, s, o, n) {
1535
- return r.updatePackage(t, s, o, n).then((l) => l(e, a));
1605
+ updatePackage(t, o, s, n) {
1606
+ return r.updatePackage(t, o, s, n).then((l) => l(e, a));
1536
1607
  }
1537
1608
  };
1538
1609
  };
1539
- class X extends A {
1610
+ class Z extends x {
1540
1611
  /**
1541
1612
  * 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.
1542
1613
  * @summary Create a new package
@@ -1547,7 +1618,7 @@ class X extends A {
1547
1618
  * @memberof PackagesApi
1548
1619
  */
1549
1620
  createPackage(a, e, r) {
1550
- return x(this.configuration).createPackage(a, e, r).then((t) => t(this.axios, this.basePath));
1621
+ return C(this.configuration).createPackage(a, e, r).then((t) => t(this.axios, this.basePath));
1551
1622
  }
1552
1623
  /**
1553
1624
  * 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.
@@ -1559,7 +1630,7 @@ class X extends A {
1559
1630
  * @memberof PackagesApi
1560
1631
  */
1561
1632
  deletePackage(a, e, r) {
1562
- return x(this.configuration).deletePackage(a, e, r).then((t) => t(this.axios, this.basePath));
1633
+ return C(this.configuration).deletePackage(a, e, r).then((t) => t(this.axios, this.basePath));
1563
1634
  }
1564
1635
  /**
1565
1636
  * 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.
@@ -1572,8 +1643,8 @@ class X extends A {
1572
1643
  * @throws {RequiredError}
1573
1644
  * @memberof PackagesApi
1574
1645
  */
1575
- getPackage(a, e, r, t, s) {
1576
- return x(this.configuration).getPackage(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
1646
+ getPackage(a, e, r, t, o) {
1647
+ return C(this.configuration).getPackage(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
1577
1648
  }
1578
1649
  /**
1579
1650
  * 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.
@@ -1584,7 +1655,7 @@ class X extends A {
1584
1655
  * @memberof PackagesApi
1585
1656
  */
1586
1657
  listPackages(a, e) {
1587
- return x(this.configuration).listPackages(a, e).then((r) => r(this.axios, this.basePath));
1658
+ return C(this.configuration).listPackages(a, e).then((r) => r(this.axios, this.basePath));
1588
1659
  }
1589
1660
  /**
1590
1661
  * 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.
@@ -1597,10 +1668,10 @@ class X extends A {
1597
1668
  * @memberof PackagesApi
1598
1669
  */
1599
1670
  updatePackage(a, e, r, t) {
1600
- return x(this.configuration).updatePackage(a, e, r, t).then((s) => s(this.axios, this.basePath));
1671
+ return C(this.configuration).updatePackage(a, e, r, t).then((o) => o(this.axios, this.basePath));
1601
1672
  }
1602
1673
  }
1603
- const Z = function(c) {
1674
+ const ee = function(c) {
1604
1675
  return {
1605
1676
  /**
1606
1677
  * 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.
@@ -1612,14 +1683,14 @@ const Z = function(c) {
1612
1683
  createProject: async (a, e = {}) => {
1613
1684
  d("createProject", "project", a);
1614
1685
  const r = "/projects", t = new URL(r, V);
1615
- let s;
1616
- c && (s = c.baseOptions);
1617
- const o = { method: "POST", ...s, ...e }, n = {}, l = {};
1618
- n["Content-Type"] = "application/json", O(t, l);
1619
- let i = s && s.headers ? s.headers : {};
1620
- return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
1621
- url: b(t),
1622
- options: o
1686
+ let o;
1687
+ c && (o = c.baseOptions);
1688
+ const s = { method: "POST", ...o, ...e }, n = {}, l = {};
1689
+ n["Content-Type"] = "application/json", b(t, l);
1690
+ let i = o && o.headers ? o.headers : {};
1691
+ return s.headers = { ...n, ...i, ...e.headers }, s.data = j(a, s, c), {
1692
+ url: O(t),
1693
+ options: s
1623
1694
  };
1624
1695
  },
1625
1696
  /**
@@ -1632,14 +1703,14 @@ const Z = function(c) {
1632
1703
  deleteProject: async (a, e = {}) => {
1633
1704
  d("deleteProject", "projectName", a);
1634
1705
  const r = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
1635
- let s;
1636
- c && (s = c.baseOptions);
1637
- const o = { method: "DELETE", ...s, ...e }, n = {};
1638
- O(t, {});
1639
- let i = s && s.headers ? s.headers : {};
1640
- return o.headers = { ...n, ...i, ...e.headers }, {
1641
- url: b(t),
1642
- options: o
1706
+ let o;
1707
+ c && (o = c.baseOptions);
1708
+ const s = { method: "DELETE", ...o, ...e }, n = {};
1709
+ b(t, {});
1710
+ let i = o && o.headers ? o.headers : {};
1711
+ return s.headers = { ...n, ...i, ...e.headers }, {
1712
+ url: O(t),
1713
+ options: s
1643
1714
  };
1644
1715
  },
1645
1716
  /**
@@ -1652,14 +1723,14 @@ const Z = function(c) {
1652
1723
  */
1653
1724
  getProject: async (a, e, r = {}) => {
1654
1725
  d("getProject", "projectName", a);
1655
- const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), s = new URL(t, V);
1656
- let o;
1657
- c && (o = c.baseOptions);
1658
- const n = { method: "GET", ...o, ...r }, l = {}, i = {};
1659
- e !== void 0 && (i.reload = e), O(s, i);
1660
- let p = o && o.headers ? o.headers : {};
1726
+ const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
1727
+ let s;
1728
+ c && (s = c.baseOptions);
1729
+ const n = { method: "GET", ...s, ...r }, l = {}, i = {};
1730
+ e !== void 0 && (i.reload = e), b(o, i);
1731
+ let p = s && s.headers ? s.headers : {};
1661
1732
  return n.headers = { ...l, ...p, ...r.headers }, {
1662
- url: b(s),
1733
+ url: O(o),
1663
1734
  options: n
1664
1735
  };
1665
1736
  },
@@ -1673,12 +1744,12 @@ const Z = function(c) {
1673
1744
  const e = "/projects", r = new URL(e, V);
1674
1745
  let t;
1675
1746
  c && (t = c.baseOptions);
1676
- const s = { method: "GET", ...t, ...a }, o = {};
1677
- O(r, {});
1747
+ const o = { method: "GET", ...t, ...a }, s = {};
1748
+ b(r, {});
1678
1749
  let l = t && t.headers ? t.headers : {};
1679
- return s.headers = { ...o, ...l, ...a.headers }, {
1680
- url: b(r),
1681
- options: s
1750
+ return o.headers = { ...s, ...l, ...a.headers }, {
1751
+ url: O(r),
1752
+ options: o
1682
1753
  };
1683
1754
  },
1684
1755
  /**
@@ -1691,20 +1762,20 @@ const Z = function(c) {
1691
1762
  */
1692
1763
  updateProject: async (a, e, r = {}) => {
1693
1764
  d("updateProject", "projectName", a), d("updateProject", "project", e);
1694
- const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), s = new URL(t, V);
1695
- let o;
1696
- c && (o = c.baseOptions);
1697
- const n = { method: "PATCH", ...o, ...r }, l = {}, i = {};
1698
- l["Content-Type"] = "application/json", O(s, i);
1699
- let p = o && o.headers ? o.headers : {};
1765
+ const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
1766
+ let s;
1767
+ c && (s = c.baseOptions);
1768
+ const n = { method: "PATCH", ...s, ...r }, l = {}, i = {};
1769
+ l["Content-Type"] = "application/json", b(o, i);
1770
+ let p = s && s.headers ? s.headers : {};
1700
1771
  return n.headers = { ...l, ...p, ...r.headers }, n.data = j(e, n, c), {
1701
- url: b(s),
1772
+ url: O(o),
1702
1773
  options: n
1703
1774
  };
1704
1775
  }
1705
1776
  };
1706
- }, C = function(c) {
1707
- const a = Z(c);
1777
+ }, A = function(c) {
1778
+ const a = ee(c);
1708
1779
  return {
1709
1780
  /**
1710
1781
  * 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.
@@ -1714,8 +1785,8 @@ const Z = function(c) {
1714
1785
  * @throws {RequiredError}
1715
1786
  */
1716
1787
  async createProject(e, r) {
1717
- const t = await a.createProject(e, r), s = c?.serverIndex ?? 0, o = P["ProjectsApi.createProject"]?.[s]?.url;
1718
- return (n, l) => g(t, u, m, c)(n, o || l);
1788
+ const t = await a.createProject(e, r), o = c?.serverIndex ?? 0, s = P["ProjectsApi.createProject"]?.[o]?.url;
1789
+ return (n, l) => g(t, u, m, c)(n, s || l);
1719
1790
  },
1720
1791
  /**
1721
1792
  * 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.
@@ -1725,8 +1796,8 @@ const Z = function(c) {
1725
1796
  * @throws {RequiredError}
1726
1797
  */
1727
1798
  async deleteProject(e, r) {
1728
- const t = await a.deleteProject(e, r), s = c?.serverIndex ?? 0, o = P["ProjectsApi.deleteProject"]?.[s]?.url;
1729
- return (n, l) => g(t, u, m, c)(n, o || l);
1799
+ const t = await a.deleteProject(e, r), o = c?.serverIndex ?? 0, s = P["ProjectsApi.deleteProject"]?.[o]?.url;
1800
+ return (n, l) => g(t, u, m, c)(n, s || l);
1730
1801
  },
1731
1802
  /**
1732
1803
  * 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.
@@ -1737,8 +1808,8 @@ const Z = function(c) {
1737
1808
  * @throws {RequiredError}
1738
1809
  */
1739
1810
  async getProject(e, r, t) {
1740
- const s = await a.getProject(e, r, t), o = c?.serverIndex ?? 0, n = P["ProjectsApi.getProject"]?.[o]?.url;
1741
- return (l, i) => g(s, u, m, c)(l, n || i);
1811
+ const o = await a.getProject(e, r, t), s = c?.serverIndex ?? 0, n = P["ProjectsApi.getProject"]?.[s]?.url;
1812
+ return (l, i) => g(o, u, m, c)(l, n || i);
1742
1813
  },
1743
1814
  /**
1744
1815
  * 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.
@@ -1747,8 +1818,8 @@ const Z = function(c) {
1747
1818
  * @throws {RequiredError}
1748
1819
  */
1749
1820
  async listProjects(e) {
1750
- const r = await a.listProjects(e), t = c?.serverIndex ?? 0, s = P["ProjectsApi.listProjects"]?.[t]?.url;
1751
- return (o, n) => g(r, u, m, c)(o, s || n);
1821
+ const r = await a.listProjects(e), t = c?.serverIndex ?? 0, o = P["ProjectsApi.listProjects"]?.[t]?.url;
1822
+ return (s, n) => g(r, u, m, c)(s, o || n);
1752
1823
  },
1753
1824
  /**
1754
1825
  * 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.
@@ -1759,12 +1830,12 @@ const Z = function(c) {
1759
1830
  * @throws {RequiredError}
1760
1831
  */
1761
1832
  async updateProject(e, r, t) {
1762
- const s = await a.updateProject(e, r, t), o = c?.serverIndex ?? 0, n = P["ProjectsApi.updateProject"]?.[o]?.url;
1763
- return (l, i) => g(s, u, m, c)(l, n || i);
1833
+ const o = await a.updateProject(e, r, t), s = c?.serverIndex ?? 0, n = P["ProjectsApi.updateProject"]?.[s]?.url;
1834
+ return (l, i) => g(o, u, m, c)(l, n || i);
1764
1835
  }
1765
1836
  };
1766
- }, je = function(c, a, e) {
1767
- const r = C(c);
1837
+ }, Ce = function(c, a, e) {
1838
+ const r = A(c);
1768
1839
  return {
1769
1840
  /**
1770
1841
  * 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.
@@ -1773,8 +1844,8 @@ const Z = function(c) {
1773
1844
  * @param {*} [options] Override http request option.
1774
1845
  * @throws {RequiredError}
1775
1846
  */
1776
- createProject(t, s) {
1777
- return r.createProject(t, s).then((o) => o(e, a));
1847
+ createProject(t, o) {
1848
+ return r.createProject(t, o).then((s) => s(e, a));
1778
1849
  },
1779
1850
  /**
1780
1851
  * 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.
@@ -1783,8 +1854,8 @@ const Z = function(c) {
1783
1854
  * @param {*} [options] Override http request option.
1784
1855
  * @throws {RequiredError}
1785
1856
  */
1786
- deleteProject(t, s) {
1787
- return r.deleteProject(t, s).then((o) => o(e, a));
1857
+ deleteProject(t, o) {
1858
+ return r.deleteProject(t, o).then((s) => s(e, a));
1788
1859
  },
1789
1860
  /**
1790
1861
  * 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.
@@ -1794,8 +1865,8 @@ const Z = function(c) {
1794
1865
  * @param {*} [options] Override http request option.
1795
1866
  * @throws {RequiredError}
1796
1867
  */
1797
- getProject(t, s, o) {
1798
- return r.getProject(t, s, o).then((n) => n(e, a));
1868
+ getProject(t, o, s) {
1869
+ return r.getProject(t, o, s).then((n) => n(e, a));
1799
1870
  },
1800
1871
  /**
1801
1872
  * 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.
@@ -1804,7 +1875,7 @@ const Z = function(c) {
1804
1875
  * @throws {RequiredError}
1805
1876
  */
1806
1877
  listProjects(t) {
1807
- return r.listProjects(t).then((s) => s(e, a));
1878
+ return r.listProjects(t).then((o) => o(e, a));
1808
1879
  },
1809
1880
  /**
1810
1881
  * 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.
@@ -1814,12 +1885,12 @@ const Z = function(c) {
1814
1885
  * @param {*} [options] Override http request option.
1815
1886
  * @throws {RequiredError}
1816
1887
  */
1817
- updateProject(t, s, o) {
1818
- return r.updateProject(t, s, o).then((n) => n(e, a));
1888
+ updateProject(t, o, s) {
1889
+ return r.updateProject(t, o, s).then((n) => n(e, a));
1819
1890
  }
1820
1891
  };
1821
1892
  };
1822
- class ee extends A {
1893
+ class te extends x {
1823
1894
  /**
1824
1895
  * 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.
1825
1896
  * @summary Create a new project
@@ -1829,7 +1900,7 @@ class ee extends A {
1829
1900
  * @memberof ProjectsApi
1830
1901
  */
1831
1902
  createProject(a, e) {
1832
- return C(this.configuration).createProject(a, e).then((r) => r(this.axios, this.basePath));
1903
+ return A(this.configuration).createProject(a, e).then((r) => r(this.axios, this.basePath));
1833
1904
  }
1834
1905
  /**
1835
1906
  * 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.
@@ -1840,7 +1911,7 @@ class ee extends A {
1840
1911
  * @memberof ProjectsApi
1841
1912
  */
1842
1913
  deleteProject(a, e) {
1843
- return C(this.configuration).deleteProject(a, e).then((r) => r(this.axios, this.basePath));
1914
+ return A(this.configuration).deleteProject(a, e).then((r) => r(this.axios, this.basePath));
1844
1915
  }
1845
1916
  /**
1846
1917
  * 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.
@@ -1852,7 +1923,7 @@ class ee extends A {
1852
1923
  * @memberof ProjectsApi
1853
1924
  */
1854
1925
  getProject(a, e, r) {
1855
- return C(this.configuration).getProject(a, e, r).then((t) => t(this.axios, this.basePath));
1926
+ return A(this.configuration).getProject(a, e, r).then((t) => t(this.axios, this.basePath));
1856
1927
  }
1857
1928
  /**
1858
1929
  * 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.
@@ -1862,7 +1933,7 @@ class ee extends A {
1862
1933
  * @memberof ProjectsApi
1863
1934
  */
1864
1935
  listProjects(a) {
1865
- return C(this.configuration).listProjects(a).then((e) => e(this.axios, this.basePath));
1936
+ return A(this.configuration).listProjects(a).then((e) => e(this.axios, this.basePath));
1866
1937
  }
1867
1938
  /**
1868
1939
  * 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.
@@ -1874,10 +1945,10 @@ class ee extends A {
1874
1945
  * @memberof ProjectsApi
1875
1946
  */
1876
1947
  updateProject(a, e, r) {
1877
- return C(this.configuration).updateProject(a, e, r).then((t) => t(this.axios, this.basePath));
1948
+ return A(this.configuration).updateProject(a, e, r).then((t) => t(this.axios, this.basePath));
1878
1949
  }
1879
1950
  }
1880
- const te = function(c) {
1951
+ const ae = function(c) {
1881
1952
  return {
1882
1953
  /**
1883
1954
  * 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.
@@ -1889,17 +1960,17 @@ const te = function(c) {
1889
1960
  const e = "/status", r = new URL(e, V);
1890
1961
  let t;
1891
1962
  c && (t = c.baseOptions);
1892
- const s = { method: "GET", ...t, ...a }, o = {};
1893
- O(r, {});
1963
+ const o = { method: "GET", ...t, ...a }, s = {};
1964
+ b(r, {});
1894
1965
  let l = t && t.headers ? t.headers : {};
1895
- return s.headers = { ...o, ...l, ...a.headers }, {
1896
- url: b(r),
1897
- options: s
1966
+ return o.headers = { ...s, ...l, ...a.headers }, {
1967
+ url: O(r),
1968
+ options: o
1898
1969
  };
1899
1970
  }
1900
1971
  };
1901
- }, w = function(c) {
1902
- const a = te(c);
1972
+ }, T = function(c) {
1973
+ const a = ae(c);
1903
1974
  return {
1904
1975
  /**
1905
1976
  * 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.
@@ -1908,12 +1979,12 @@ const te = function(c) {
1908
1979
  * @throws {RequiredError}
1909
1980
  */
1910
1981
  async getStatus(e) {
1911
- const r = await a.getStatus(e), t = c?.serverIndex ?? 0, s = P["PublisherApi.getStatus"]?.[t]?.url;
1912
- return (o, n) => g(r, u, m, c)(o, s || n);
1982
+ const r = await a.getStatus(e), t = c?.serverIndex ?? 0, o = P["PublisherApi.getStatus"]?.[t]?.url;
1983
+ return (s, n) => g(r, u, m, c)(s, o || n);
1913
1984
  }
1914
1985
  };
1915
1986
  }, Ae = function(c, a, e) {
1916
- const r = w(c);
1987
+ const r = T(c);
1917
1988
  return {
1918
1989
  /**
1919
1990
  * 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.
@@ -1922,11 +1993,11 @@ const te = function(c) {
1922
1993
  * @throws {RequiredError}
1923
1994
  */
1924
1995
  getStatus(t) {
1925
- return r.getStatus(t).then((s) => s(e, a));
1996
+ return r.getStatus(t).then((o) => o(e, a));
1926
1997
  }
1927
1998
  };
1928
1999
  };
1929
- class xe extends A {
2000
+ class ke extends x {
1930
2001
  /**
1931
2002
  * 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.
1932
2003
  * @summary Get server status and health information
@@ -1935,10 +2006,10 @@ class xe extends A {
1935
2006
  * @memberof PublisherApi
1936
2007
  */
1937
2008
  getStatus(a) {
1938
- return w(this.configuration).getStatus(a).then((e) => e(this.axios, this.basePath));
2009
+ return T(this.configuration).getStatus(a).then((e) => e(this.axios, this.basePath));
1939
2010
  }
1940
2011
  }
1941
- const ae = function(c) {
2012
+ const re = function(c) {
1942
2013
  return {
1943
2014
  /**
1944
2015
  * 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.
@@ -1950,12 +2021,12 @@ const ae = function(c) {
1950
2021
  const e = "/watch-mode/status", r = new URL(e, V);
1951
2022
  let t;
1952
2023
  c && (t = c.baseOptions);
1953
- const s = { method: "GET", ...t, ...a }, o = {};
1954
- O(r, {});
2024
+ const o = { method: "GET", ...t, ...a }, s = {};
2025
+ b(r, {});
1955
2026
  let l = t && t.headers ? t.headers : {};
1956
- return s.headers = { ...o, ...l, ...a.headers }, {
1957
- url: b(r),
1958
- options: s
2027
+ return o.headers = { ...s, ...l, ...a.headers }, {
2028
+ url: O(r),
2029
+ options: o
1959
2030
  };
1960
2031
  },
1961
2032
  /**
@@ -1968,14 +2039,14 @@ const ae = function(c) {
1968
2039
  startWatching: async (a, e = {}) => {
1969
2040
  d("startWatching", "startWatchRequest", a);
1970
2041
  const r = "/watch-mode/start", t = new URL(r, V);
1971
- let s;
1972
- c && (s = c.baseOptions);
1973
- const o = { method: "POST", ...s, ...e }, n = {}, l = {};
1974
- n["Content-Type"] = "application/json", O(t, l);
1975
- let i = s && s.headers ? s.headers : {};
1976
- return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
1977
- url: b(t),
1978
- options: o
2042
+ let o;
2043
+ c && (o = c.baseOptions);
2044
+ const s = { method: "POST", ...o, ...e }, n = {}, l = {};
2045
+ n["Content-Type"] = "application/json", b(t, l);
2046
+ let i = o && o.headers ? o.headers : {};
2047
+ return s.headers = { ...n, ...i, ...e.headers }, s.data = j(a, s, c), {
2048
+ url: O(t),
2049
+ options: s
1979
2050
  };
1980
2051
  },
1981
2052
  /**
@@ -1988,17 +2059,17 @@ const ae = function(c) {
1988
2059
  const e = "/watch-mode/stop", r = new URL(e, V);
1989
2060
  let t;
1990
2061
  c && (t = c.baseOptions);
1991
- const s = { method: "POST", ...t, ...a }, o = {};
1992
- O(r, {});
2062
+ const o = { method: "POST", ...t, ...a }, s = {};
2063
+ b(r, {});
1993
2064
  let l = t && t.headers ? t.headers : {};
1994
- return s.headers = { ...o, ...l, ...a.headers }, {
1995
- url: b(r),
1996
- options: s
2065
+ return o.headers = { ...s, ...l, ...a.headers }, {
2066
+ url: O(r),
2067
+ options: o
1997
2068
  };
1998
2069
  }
1999
2070
  };
2000
- }, k = function(c) {
2001
- const a = ae(c);
2071
+ }, v = function(c) {
2072
+ const a = re(c);
2002
2073
  return {
2003
2074
  /**
2004
2075
  * 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.
@@ -2007,8 +2078,8 @@ const ae = function(c) {
2007
2078
  * @throws {RequiredError}
2008
2079
  */
2009
2080
  async getWatchStatus(e) {
2010
- const r = await a.getWatchStatus(e), t = c?.serverIndex ?? 0, s = P["WatchModeApi.getWatchStatus"]?.[t]?.url;
2011
- return (o, n) => g(r, u, m, c)(o, s || n);
2081
+ const r = await a.getWatchStatus(e), t = c?.serverIndex ?? 0, o = P["WatchModeApi.getWatchStatus"]?.[t]?.url;
2082
+ return (s, n) => g(r, u, m, c)(s, o || n);
2012
2083
  },
2013
2084
  /**
2014
2085
  * 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.
@@ -2018,8 +2089,8 @@ const ae = function(c) {
2018
2089
  * @throws {RequiredError}
2019
2090
  */
2020
2091
  async startWatching(e, r) {
2021
- const t = await a.startWatching(e, r), s = c?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[s]?.url;
2022
- return (n, l) => g(t, u, m, c)(n, o || l);
2092
+ const t = await a.startWatching(e, r), o = c?.serverIndex ?? 0, s = P["WatchModeApi.startWatching"]?.[o]?.url;
2093
+ return (n, l) => g(t, u, m, c)(n, s || l);
2023
2094
  },
2024
2095
  /**
2025
2096
  * 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.
@@ -2028,12 +2099,12 @@ const ae = function(c) {
2028
2099
  * @throws {RequiredError}
2029
2100
  */
2030
2101
  async stopWatching(e) {
2031
- const r = await a.stopWatching(e), t = c?.serverIndex ?? 0, s = P["WatchModeApi.stopWatching"]?.[t]?.url;
2032
- return (o, n) => g(r, u, m, c)(o, s || n);
2102
+ const r = await a.stopWatching(e), t = c?.serverIndex ?? 0, o = P["WatchModeApi.stopWatching"]?.[t]?.url;
2103
+ return (s, n) => g(r, u, m, c)(s, o || n);
2033
2104
  }
2034
2105
  };
2035
- }, Ce = function(c, a, e) {
2036
- const r = k(c);
2106
+ }, Ne = function(c, a, e) {
2107
+ const r = v(c);
2037
2108
  return {
2038
2109
  /**
2039
2110
  * 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.
@@ -2042,7 +2113,7 @@ const ae = function(c) {
2042
2113
  * @throws {RequiredError}
2043
2114
  */
2044
2115
  getWatchStatus(t) {
2045
- return r.getWatchStatus(t).then((s) => s(e, a));
2116
+ return r.getWatchStatus(t).then((o) => o(e, a));
2046
2117
  },
2047
2118
  /**
2048
2119
  * 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.
@@ -2051,8 +2122,8 @@ const ae = function(c) {
2051
2122
  * @param {*} [options] Override http request option.
2052
2123
  * @throws {RequiredError}
2053
2124
  */
2054
- startWatching(t, s) {
2055
- return r.startWatching(t, s).then((o) => o(e, a));
2125
+ startWatching(t, o) {
2126
+ return r.startWatching(t, o).then((s) => s(e, a));
2056
2127
  },
2057
2128
  /**
2058
2129
  * 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.
@@ -2061,11 +2132,11 @@ const ae = function(c) {
2061
2132
  * @throws {RequiredError}
2062
2133
  */
2063
2134
  stopWatching(t) {
2064
- return r.stopWatching(t).then((s) => s(e, a));
2135
+ return r.stopWatching(t).then((o) => o(e, a));
2065
2136
  }
2066
2137
  };
2067
2138
  };
2068
- class re extends A {
2139
+ class oe extends x {
2069
2140
  /**
2070
2141
  * 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.
2071
2142
  * @summary Get watch mode status
@@ -2074,7 +2145,7 @@ class re extends A {
2074
2145
  * @memberof WatchModeApi
2075
2146
  */
2076
2147
  getWatchStatus(a) {
2077
- return k(this.configuration).getWatchStatus(a).then((e) => e(this.axios, this.basePath));
2148
+ return v(this.configuration).getWatchStatus(a).then((e) => e(this.axios, this.basePath));
2078
2149
  }
2079
2150
  /**
2080
2151
  * 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.
@@ -2085,7 +2156,7 @@ class re extends A {
2085
2156
  * @memberof WatchModeApi
2086
2157
  */
2087
2158
  startWatching(a, e) {
2088
- return k(this.configuration).startWatching(a, e).then((r) => r(this.axios, this.basePath));
2159
+ return v(this.configuration).startWatching(a, e).then((r) => r(this.axios, this.basePath));
2089
2160
  }
2090
2161
  /**
2091
2162
  * 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.
@@ -2095,7 +2166,7 @@ class re extends A {
2095
2166
  * @memberof WatchModeApi
2096
2167
  */
2097
2168
  stopWatching(a) {
2098
- return k(this.configuration).stopWatching(a).then((e) => e(this.axios, this.basePath));
2169
+ return v(this.configuration).stopWatching(a).then((e) => e(this.axios, this.basePath));
2099
2170
  }
2100
2171
  }
2101
2172
  class se {
@@ -2178,25 +2249,25 @@ class se {
2178
2249
  return a !== null && (e.test(a) || a.toLowerCase() === "application/json-patch+json");
2179
2250
  }
2180
2251
  }
2181
- const Q = $(void 0), oe = (c, a) => {
2252
+ const Q = M(void 0), ne = (c, a) => {
2182
2253
  const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
2183
2254
  baseURL: c || e,
2184
2255
  withCredentials: !0,
2185
2256
  timeout: 6e5
2186
2257
  });
2187
- r.interceptors.request.use(async (s) => {
2188
- const o = await a?.();
2189
- return s.headers.Authorization = o || "", s;
2258
+ r.interceptors.request.use(async (o) => {
2259
+ const s = await a?.();
2260
+ return o.headers.Authorization = s || "", o;
2190
2261
  });
2191
2262
  const t = new se({ basePath: e });
2192
2263
  return {
2193
- models: new J(t, e, r),
2194
- projects: new ee(t, e, r),
2195
- packages: new X(t, e, r),
2196
- notebooks: new Y(t, e, r),
2197
- connections: new W(t, e, r),
2198
- databases: new G(t, e, r),
2199
- watchMode: new re(t, e, r)
2264
+ models: new K(t, e, r),
2265
+ projects: new te(t, e, r),
2266
+ packages: new Z(t, e, r),
2267
+ notebooks: new _(t, e, r),
2268
+ connections: new D(t, e, r),
2269
+ databases: new z(t, e, r),
2270
+ watchMode: new oe(t, e, r)
2200
2271
  };
2201
2272
  }, ve = ({
2202
2273
  children: c,
@@ -2204,66 +2275,67 @@ const Q = $(void 0), oe = (c, a) => {
2204
2275
  baseURL: e,
2205
2276
  mutable: r = !0
2206
2277
  }) => {
2207
- const t = M(
2208
- () => oe(e, a),
2278
+ const t = E(
2279
+ () => ne(e, a),
2209
2280
  [e, a]
2210
- ), s = {
2281
+ ), o = {
2211
2282
  server: e || `${window.location.protocol}//${window.location.host}/api/v0`,
2212
2283
  getAccessToken: a,
2213
2284
  apiClients: t,
2214
2285
  mutable: r
2215
2286
  };
2216
- return /* @__PURE__ */ I(B, { client: E, children: /* @__PURE__ */ I(Q.Provider, { value: s, children: c }) });
2217
- }, ke = () => {
2287
+ return /* @__PURE__ */ I($, { client: L, children: /* @__PURE__ */ I(Q.Provider, { value: o, children: c }) });
2288
+ }, Re = () => {
2218
2289
  const c = F(Q);
2219
2290
  if (c === void 0)
2220
2291
  throw new Error("useServer must be used within a ServerProvider");
2221
2292
  return c;
2222
2293
  };
2223
2294
  export {
2224
- pe as A,
2225
- C as B,
2226
- de as C,
2227
- ue as D,
2228
- je as E,
2229
- ee as F,
2295
+ de as A,
2296
+ ee as B,
2297
+ he as C,
2298
+ me as D,
2299
+ A as E,
2300
+ Ce as F,
2230
2301
  te as G,
2231
- w as H,
2232
- Ae as I,
2233
- xe as J,
2234
- k as K,
2235
- Ce as L,
2236
- z as M,
2237
- me as N,
2238
- re as O,
2239
- _ as P,
2240
- se as Q,
2302
+ ae as H,
2303
+ T as I,
2304
+ Ae as J,
2305
+ ke as K,
2306
+ v as L,
2307
+ J as M,
2308
+ Pe as N,
2309
+ Ne as O,
2310
+ X as P,
2311
+ oe as Q,
2312
+ se as R,
2241
2313
  ve as S,
2242
- ae as W,
2243
- he as a,
2244
- H as b,
2245
- S as c,
2246
- Pe as d,
2247
- W as e,
2314
+ re as W,
2315
+ ue as a,
2316
+ Ve as b,
2317
+ W as c,
2318
+ S as d,
2319
+ be as e,
2248
2320
  D as f,
2249
- E as g,
2250
- U as h,
2251
- Ve as i,
2321
+ L as g,
2322
+ f as h,
2323
+ U as i,
2252
2324
  Oe as j,
2253
- f as k,
2254
- T as l,
2255
- be as m,
2256
- G as n,
2257
- v as o,
2258
- ge as p,
2259
- J as q,
2325
+ ge as k,
2326
+ G as l,
2327
+ w as m,
2328
+ ye as n,
2329
+ z as o,
2330
+ k as p,
2331
+ Se as q,
2260
2332
  K as r,
2261
- R as s,
2262
- ye as t,
2263
- ke as u,
2264
- Y as v,
2265
- x as w,
2266
- Se as x,
2267
- X as y,
2333
+ Y as s,
2334
+ N as t,
2335
+ Re as u,
2336
+ je as v,
2337
+ _ as w,
2338
+ C as x,
2339
+ xe as y,
2268
2340
  Z as z
2269
2341
  };