@malloy-publisher/sdk 0.0.248 → 0.0.249

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.
Files changed (98) hide show
  1. package/README.md +32 -17
  2. package/dist/ServerProvider-CcfeBpt3.cjs.js +1 -0
  3. package/dist/{ServerProvider-BxEh3nFI.es.js → ServerProvider-EqBlMMqx.es.js} +1056 -905
  4. package/dist/client/api.d.ts +297 -6
  5. package/dist/client/index.cjs.js +1 -1
  6. package/dist/client/index.es.js +74 -70
  7. package/dist/components/Dashboard/Dashboard.d.ts +49 -0
  8. package/dist/components/Dashboard/DashboardTile.d.ts +48 -0
  9. package/dist/components/Dashboard/index.d.ts +2 -0
  10. package/dist/components/Notebook/Notebook.d.ts +46 -8
  11. package/dist/components/Notebook/NotebookCell.d.ts +37 -3
  12. package/dist/components/Notebook/runPlan.d.ts +29 -0
  13. package/dist/components/Notebook/types.d.ts +10 -0
  14. package/dist/components/Package/ContentTypeIcon.d.ts +17 -1
  15. package/dist/components/Package/Package.d.ts +1 -4
  16. package/dist/components/RenderedResult/RenderedResult.d.ts +7 -1
  17. package/dist/components/RenderedResult/ResultContainer.d.ts +3 -1
  18. package/dist/components/ResultsDialog.d.ts +4 -1
  19. package/dist/components/ServerProvider.d.ts +2 -1
  20. package/dist/components/click_helper.d.ts +10 -1
  21. package/dist/components/drill/index.d.ts +3 -0
  22. package/dist/components/drill/markDrillableCells.d.ts +55 -0
  23. package/dist/components/drill/resolveDrill.d.ts +159 -0
  24. package/dist/components/drill/useDrill.d.ts +63 -0
  25. package/dist/components/given/GivenInput.d.ts +27 -3
  26. package/dist/components/given/GivensPanel.d.ts +36 -7
  27. package/dist/components/given/filterValue.d.ts +117 -0
  28. package/dist/components/given/index.d.ts +1 -1
  29. package/dist/components/given/paramCodec.d.ts +60 -0
  30. package/dist/components/index.d.ts +4 -1
  31. package/dist/components/styles.d.ts +23 -0
  32. package/dist/constants/docLinks.d.ts +6 -0
  33. package/dist/{core-BuvlzSIX.es.js → core-DFBwNhvb.es.js} +1 -1
  34. package/dist/{core-C86Rb7tJ.cjs.js → core-DZk7z7ko.cjs.js} +1 -1
  35. package/dist/hooks/givenValue.d.ts +10 -0
  36. package/dist/hooks/index.d.ts +3 -1
  37. package/dist/hooks/useGivensState.d.ts +64 -0
  38. package/dist/hooks/useSuggestOptions.d.ts +78 -0
  39. package/dist/{index-BdtAZ5k6.es.js → index-CLcRrkxd.es.js} +41221 -39894
  40. package/dist/index-CWQXhe0D.cjs.js +338 -0
  41. package/dist/index.cjs.js +1 -1
  42. package/dist/index.es.js +77 -62
  43. package/dist/theme/types.d.ts +9 -0
  44. package/package.json +3 -1
  45. package/src/components/Connections/AddConnectionDialog.tsx +10 -1
  46. package/src/components/Dashboard/Dashboard.tsx +395 -0
  47. package/src/components/Dashboard/DashboardTile.tsx +150 -0
  48. package/src/components/Dashboard/index.ts +2 -0
  49. package/src/components/Home/Home.tsx +114 -23
  50. package/src/components/Notebook/Notebook.tsx +444 -390
  51. package/src/components/Notebook/NotebookCell.tsx +117 -3
  52. package/src/components/Notebook/runPlan.spec.ts +152 -0
  53. package/src/components/Notebook/runPlan.ts +64 -0
  54. package/src/components/Notebook/types.ts +11 -0
  55. package/src/components/Package/ContentTypeIcon.spec.ts +88 -0
  56. package/src/components/Package/ContentTypeIcon.tsx +77 -6
  57. package/src/components/Package/Package.tsx +148 -38
  58. package/src/components/RenderedResult/RenderedResult.tsx +309 -19
  59. package/src/components/RenderedResult/ResultContainer.tsx +28 -1
  60. package/src/components/ResultsDialog.tsx +5 -0
  61. package/src/components/ServerProvider.tsx +2 -0
  62. package/src/components/click_helper.ts +14 -1
  63. package/src/components/drill/index.ts +25 -0
  64. package/src/components/drill/markDrillableCells.dom.spec.ts +310 -0
  65. package/src/components/drill/markDrillableCells.spec.ts +106 -0
  66. package/src/components/drill/markDrillableCells.ts +311 -0
  67. package/src/components/drill/resolveDrill.spec.ts +446 -0
  68. package/src/components/drill/resolveDrill.ts +372 -0
  69. package/src/components/drill/useDrill.tsx +200 -0
  70. package/src/components/given/GivenInput.spec.tsx +495 -15
  71. package/src/components/given/GivenInput.tsx +562 -30
  72. package/src/components/given/GivensPanel.spec.tsx +172 -0
  73. package/src/components/given/GivensPanel.tsx +139 -32
  74. package/src/components/given/filterValue.spec.ts +361 -0
  75. package/src/components/given/filterValue.ts +204 -0
  76. package/src/components/given/index.ts +5 -1
  77. package/src/components/given/paramCodec.spec.ts +854 -0
  78. package/src/components/given/paramCodec.ts +480 -0
  79. package/src/components/index.ts +4 -1
  80. package/src/components/styles.ts +27 -3
  81. package/src/constants/docLinks.spec.ts +51 -0
  82. package/src/constants/docLinks.ts +26 -0
  83. package/src/hooks/givenValue.ts +10 -0
  84. package/src/hooks/index.ts +6 -4
  85. package/src/hooks/useGivensState.spec.ts +446 -0
  86. package/src/hooks/useGivensState.ts +337 -0
  87. package/src/hooks/useSuggestOptions.spec.ts +109 -0
  88. package/src/hooks/useSuggestOptions.ts +260 -0
  89. package/src/theme/buildTableCssVars.ts +4 -0
  90. package/src/theme/resolveTheme.spec.ts +13 -0
  91. package/src/theme/resolveTheme.ts +3 -0
  92. package/src/theme/types.ts +9 -0
  93. package/test/README.md +16 -10
  94. package/dist/ServerProvider-Dg5S1qBU.cjs.js +0 -1
  95. package/dist/hooks/useGivensForm.d.ts +0 -35
  96. package/dist/index-MES4MGpQ.cjs.js +0 -309
  97. package/src/hooks/useGivensForm.spec.ts +0 -99
  98. package/src/hooks/useGivensForm.ts +0 -107
@@ -1,64 +1,64 @@
1
1
  import { jsx as F } from "react/jsx-runtime";
2
- import { QueryClient as le, QueryClientProvider as ce, useQuery as ie } from "@tanstack/react-query";
2
+ import { QueryClient as ce, QueryClientProvider as ie, useQuery as de } from "@tanstack/react-query";
3
3
  import h from "axios";
4
- import { useMemo as f, createContext as _, useContext as G, useState as H, useEffect as de, useCallback as pe } from "react";
5
- import { styled as k, Card as Y, CardContent as J, CardMedia as me } from "@mui/material";
4
+ import { useMemo as f, createContext as G, useContext as Y, useState as W, useEffect as pe, useCallback as me } from "react";
5
+ import { styled as k, Card as J, CardContent as K, CardMedia as he } from "@mui/material";
6
6
  const u = "http://localhost/api/v0".replace(/\/+$/, "");
7
7
  class I {
8
- constructor(n, e = u, r = h) {
9
- this.basePath = e, this.axios = r, n && (this.configuration = n, this.basePath = n.basePath ?? e);
8
+ constructor(n, e = u, t = h) {
9
+ this.basePath = e, this.axios = t, n && (this.configuration = n, this.basePath = n.basePath ?? e);
10
10
  }
11
11
  configuration;
12
12
  }
13
- class he extends Error {
13
+ class ue extends Error {
14
14
  constructor(n, e) {
15
15
  super(e), this.field = n, this.name = "RequiredError";
16
16
  }
17
17
  }
18
- const g = {}, P = "https://example.com", m = function(l, n, e) {
18
+ const g = {}, b = "https://example.com", m = function(l, n, e) {
19
19
  if (e == null)
20
- throw new he(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
20
+ throw new ue(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
21
21
  };
22
22
  function q(l, n, e = "") {
23
- n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => q(l, r, e)) : Object.keys(n).forEach(
24
- (r) => q(l, n[r], `${e}${e !== "" ? "." : ""}${r}`)
23
+ n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((t) => q(l, t, e)) : Object.keys(n).forEach(
24
+ (t) => q(l, n[t], `${e}${e !== "" ? "." : ""}${t}`)
25
25
  ) : l.has(e) ? l.append(e, n) : l.set(e, n));
26
26
  }
27
- const v = function(l, ...n) {
27
+ const P = function(l, ...n) {
28
28
  const e = new URLSearchParams(l.search);
29
29
  q(e, n), l.search = e.toString();
30
30
  }, y = function(l, n, e) {
31
- const r = typeof l != "string";
32
- return (r && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
33
- }, b = function(l) {
31
+ const t = typeof l != "string";
32
+ return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
33
+ }, v = function(l) {
34
34
  return l.pathname + l.search + l.hash;
35
- }, V = function(l, n, e, r) {
36
- return (a = n, t = e) => {
37
- const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
35
+ }, V = function(l, n, e, t) {
36
+ return (a = n, r = e) => {
37
+ const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + l.url };
38
38
  return a.request(o);
39
39
  };
40
- }, Xe = {
40
+ }, aa = {
41
41
  Bigquery: "bigquery",
42
42
  Snowflake: "snowflake",
43
43
  Postgres: "postgres",
44
44
  Gcs: "gcs",
45
45
  S3: "s3",
46
46
  Azure: "azure"
47
- }, Ze = {
47
+ }, ta = {
48
48
  ServicePrincipal: "service_principal",
49
49
  SasToken: "sas_token"
50
- }, ea = {
50
+ }, ra = {
51
51
  Error: "error",
52
52
  Warn: "warn",
53
53
  Debug: "debug"
54
- }, aa = {
54
+ }, na = {
55
55
  Append: "append",
56
56
  File: "file",
57
57
  Package: "package"
58
- }, ta = {
58
+ }, oa = {
59
59
  Success: "success",
60
60
  Error: "error"
61
- }, na = {
61
+ }, sa = {
62
62
  Postgres: "postgres",
63
63
  Bigquery: "bigquery",
64
64
  Snowflake: "snowflake",
@@ -69,109 +69,109 @@ const v = function(l, ...n) {
69
69
  Motherduck: "motherduck",
70
70
  Ducklake: "ducklake",
71
71
  Publisher: "publisher"
72
- }, ra = {
72
+ }, la = {
73
73
  Ssh: "ssh"
74
- }, oa = {
74
+ }, ca = {
75
75
  Ok: "ok",
76
76
  Failed: "failed"
77
- }, sa = {
77
+ }, ia = {
78
78
  Viewport: "viewport"
79
- }, la = {
79
+ }, da = {
80
80
  Embedded: "embedded",
81
81
  Materialized: "materialized"
82
- }, ca = {
82
+ }, pa = {
83
83
  Equal: "equal",
84
84
  In: "in",
85
85
  Like: "like",
86
86
  GreaterThan: "greater_than",
87
87
  LessThan: "less_than"
88
- }, ia = {
88
+ }, ma = {
89
89
  Live: "live",
90
90
  StaleOk: "stale_ok",
91
91
  Fail: "fail"
92
- }, da = {
92
+ }, ha = {
93
93
  Select: "select",
94
94
  Multiselect: "multiselect"
95
- }, pa = {
95
+ }, ua = {
96
96
  Merge: "merge",
97
97
  RangeReplace: "range_replace"
98
- }, ma = {
98
+ }, ga = {
99
99
  Debug: "debug",
100
100
  Info: "info",
101
101
  Warn: "warn",
102
102
  Error: "error"
103
- }, ha = {
103
+ }, ba = {
104
104
  Persist: "persist",
105
105
  Preaggregate: "preaggregate"
106
- }, ua = {
106
+ }, Pa = {
107
107
  Live: "live",
108
108
  StaleOk: "stale_ok",
109
109
  Fail: "fail"
110
- }, ga = {
110
+ }, va = {
111
111
  Delta: "delta",
112
112
  Full: "full",
113
113
  None: "none"
114
- }, Pa = {
114
+ }, Va = {
115
115
  Pending: "PENDING",
116
116
  ManifestRowsReady: "MANIFEST_ROWS_READY",
117
117
  ManifestFileReady: "MANIFEST_FILE_READY",
118
118
  Failed: "FAILED",
119
119
  Cancelled: "CANCELLED"
120
- }, va = {
120
+ }, Oa = {
121
121
  Markdown: "markdown",
122
122
  Code: "code"
123
- }, ba = {
123
+ }, Sa = {
124
124
  Markdown: "markdown",
125
125
  Code: "code"
126
- }, Va = {
126
+ }, ya = {
127
127
  Version: "version",
128
128
  Package: "package"
129
- }, Oa = {
129
+ }, ka = {
130
130
  Declared: "declared",
131
131
  All: "all"
132
- }, Sa = {
132
+ }, Ca = {
133
133
  Unbound: "unbound",
134
134
  Bound: "bound",
135
135
  LiveFallback: "live_fallback"
136
- }, ya = {
136
+ }, Ia = {
137
137
  Error: "error",
138
138
  Warn: "warn"
139
- }, ka = {
139
+ }, xa = {
140
140
  Persist: "persist",
141
141
  Preaggregate: "preaggregate"
142
- }, Ca = {
142
+ }, Aa = {
143
143
  Disable: "disable",
144
144
  NoVerify: "no-verify",
145
145
  VerifyCa: "verify-ca",
146
146
  VerifyFull: "verify-full"
147
- }, Ia = {
147
+ }, Ra = {
148
148
  Interactive: "interactive",
149
149
  Materialize: "materialize",
150
150
  Index: "index",
151
151
  Ops: "ops"
152
- }, xa = {
152
+ }, Na = {
153
153
  Query: "query",
154
154
  ServerDefault: "server_default"
155
- }, Aa = {
155
+ }, Ta = {
156
156
  Storage: "storage",
157
157
  LiveFallback: "live_fallback"
158
- }, Ra = {
158
+ }, Ua = {
159
159
  Snapshot: "SNAPSHOT",
160
160
  Copy: "COPY"
161
- }, Na = {
161
+ }, wa = {
162
162
  Publish: "publish",
163
163
  OnDemand: "on_demand",
164
164
  Scheduler: "scheduler"
165
- }, Ta = {
165
+ }, Ea = {
166
166
  Initializing: "initializing",
167
167
  Serving: "serving",
168
168
  Draining: "draining",
169
169
  Throttled: "throttled"
170
- }, Ua = {
170
+ }, Ma = {
171
171
  Light: "light",
172
172
  Dark: "dark",
173
173
  Auto: "auto"
174
- }, ue = function(l) {
174
+ }, ge = function(l) {
175
175
  return {
176
176
  /**
177
177
  * Creates a new database connection in the specified environment.
@@ -182,16 +182,16 @@ const v = function(l, ...n) {
182
182
  * @param {*} [options] Override http request option.
183
183
  * @throws {RequiredError}
184
184
  */
185
- createConnection: async (n, e, r, a = {}) => {
186
- m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", r);
187
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
185
+ createConnection: async (n, e, t, a = {}) => {
186
+ m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
187
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
188
188
  let s;
189
189
  l && (s = l.baseOptions);
190
190
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
191
- i["Content-Type"] = "application/json", v(o, d);
191
+ i["Content-Type"] = "application/json", P(o, d);
192
192
  let p = s && s.headers ? s.headers : {};
193
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
194
- url: b(o),
193
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
194
+ url: v(o),
195
195
  options: c
196
196
  };
197
197
  },
@@ -203,16 +203,16 @@ const v = function(l, ...n) {
203
203
  * @param {*} [options] Override http request option.
204
204
  * @throws {RequiredError}
205
205
  */
206
- deleteConnection: async (n, e, r = {}) => {
206
+ deleteConnection: async (n, e, t = {}) => {
207
207
  m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
208
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, P);
208
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, b);
209
209
  let o;
210
210
  l && (o = l.baseOptions);
211
- const s = { method: "DELETE", ...o, ...r }, c = {};
212
- v(t, {});
211
+ const s = { method: "DELETE", ...o, ...t }, c = {};
212
+ P(r, {});
213
213
  let d = o && o.headers ? o.headers : {};
214
- return s.headers = { ...c, ...d, ...r.headers }, {
215
- url: b(t),
214
+ return s.headers = { ...c, ...d, ...t.headers }, {
215
+ url: v(r),
216
216
  options: s
217
217
  };
218
218
  },
@@ -224,16 +224,16 @@ const v = function(l, ...n) {
224
224
  * @param {*} [options] Override http request option.
225
225
  * @throws {RequiredError}
226
226
  */
227
- getConnection: async (n, e, r = {}) => {
227
+ getConnection: async (n, e, t = {}) => {
228
228
  m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
229
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, P);
229
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, b);
230
230
  let o;
231
231
  l && (o = l.baseOptions);
232
- const s = { method: "GET", ...o, ...r }, c = {};
233
- v(t, {});
232
+ const s = { method: "GET", ...o, ...t }, c = {};
233
+ P(r, {});
234
234
  let d = o && o.headers ? o.headers : {};
235
- return s.headers = { ...c, ...d, ...r.headers }, {
236
- url: b(t),
235
+ return s.headers = { ...c, ...d, ...t.headers }, {
236
+ url: v(r),
237
237
  options: s
238
238
  };
239
239
  },
@@ -247,16 +247,16 @@ const v = function(l, ...n) {
247
247
  * @param {*} [options] Override http request option.
248
248
  * @throws {RequiredError}
249
249
  */
250
- getTable: async (n, e, r, a, t = {}) => {
251
- m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", r), m("getTable", "tablePath", a);
252
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
250
+ getTable: async (n, e, t, a, r = {}) => {
251
+ m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
252
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, b);
253
253
  let c;
254
254
  l && (c = l.baseOptions);
255
- const i = { method: "GET", ...c, ...t }, d = {};
256
- v(s, {});
255
+ const i = { method: "GET", ...c, ...r }, d = {};
256
+ P(s, {});
257
257
  let O = c && c.headers ? c.headers : {};
258
- return i.headers = { ...d, ...O, ...t.headers }, {
259
- url: b(s),
258
+ return i.headers = { ...d, ...O, ...r.headers }, {
259
+ url: v(s),
260
260
  options: i
261
261
  };
262
262
  },
@@ -271,16 +271,16 @@ const v = function(l, ...n) {
271
271
  * @param {*} [options] Override http request option.
272
272
  * @throws {RequiredError}
273
273
  */
274
- getTableInPackage: async (n, e, r, a, t, o = {}) => {
275
- m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", r), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", t);
276
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, P);
274
+ getTableInPackage: async (n, e, t, a, r, o = {}) => {
275
+ m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", r);
276
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), c = new URL(s, b);
277
277
  let i;
278
278
  l && (i = l.baseOptions);
279
279
  const d = { method: "GET", ...i, ...o }, p = {};
280
- v(c, {});
280
+ P(c, {});
281
281
  let C = i && i.headers ? i.headers : {};
282
282
  return d.headers = { ...p, ...C, ...o.headers }, {
283
- url: b(c),
283
+ url: v(c),
284
284
  options: d
285
285
  };
286
286
  },
@@ -293,14 +293,14 @@ const v = function(l, ...n) {
293
293
  */
294
294
  listConnections: async (n, e = {}) => {
295
295
  m("listConnections", "environmentName", n);
296
- const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, P);
297
- let t;
298
- l && (t = l.baseOptions);
299
- const o = { method: "GET", ...t, ...e }, s = {};
300
- v(a, {});
301
- let i = t && t.headers ? t.headers : {};
296
+ const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, b);
297
+ let r;
298
+ l && (r = l.baseOptions);
299
+ const o = { method: "GET", ...r, ...e }, s = {};
300
+ P(a, {});
301
+ let i = r && r.headers ? r.headers : {};
302
302
  return o.headers = { ...s, ...i, ...e.headers }, {
303
- url: b(a),
303
+ url: v(a),
304
304
  options: o
305
305
  };
306
306
  },
@@ -312,16 +312,16 @@ const v = function(l, ...n) {
312
312
  * @param {*} [options] Override http request option.
313
313
  * @throws {RequiredError}
314
314
  */
315
- listSchemas: async (n, e, r = {}) => {
315
+ listSchemas: async (n, e, t = {}) => {
316
316
  m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
317
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, P);
317
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, b);
318
318
  let o;
319
319
  l && (o = l.baseOptions);
320
- const s = { method: "GET", ...o, ...r }, c = {};
321
- v(t, {});
320
+ const s = { method: "GET", ...o, ...t }, c = {};
321
+ P(r, {});
322
322
  let d = o && o.headers ? o.headers : {};
323
- return s.headers = { ...c, ...d, ...r.headers }, {
324
- url: b(t),
323
+ return s.headers = { ...c, ...d, ...t.headers }, {
324
+ url: v(r),
325
325
  options: s
326
326
  };
327
327
  },
@@ -334,16 +334,16 @@ const v = function(l, ...n) {
334
334
  * @param {*} [options] Override http request option.
335
335
  * @throws {RequiredError}
336
336
  */
337
- listSchemasInPackage: async (n, e, r, a = {}) => {
338
- m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", r);
339
- const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(t, P);
337
+ listSchemasInPackage: async (n, e, t, a = {}) => {
338
+ m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
339
+ const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r, b);
340
340
  let s;
341
341
  l && (s = l.baseOptions);
342
342
  const c = { method: "GET", ...s, ...a }, i = {};
343
- v(o, {});
343
+ P(o, {});
344
344
  let p = s && s.headers ? s.headers : {};
345
345
  return c.headers = { ...i, ...p, ...a.headers }, {
346
- url: b(o),
346
+ url: v(o),
347
347
  options: c
348
348
  };
349
349
  },
@@ -357,16 +357,16 @@ const v = function(l, ...n) {
357
357
  * @param {*} [options] Override http request option.
358
358
  * @throws {RequiredError}
359
359
  */
360
- listTables: async (n, e, r, a, t = {}) => {
361
- m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", r);
362
- const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, P);
360
+ listTables: async (n, e, t, a, r = {}) => {
361
+ m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
362
+ const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, b);
363
363
  let c;
364
364
  l && (c = l.baseOptions);
365
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
366
- a && (p.tableNames = a), v(s, p);
365
+ const i = { method: "GET", ...c, ...r }, d = {}, p = {};
366
+ a && (p.tableNames = a), P(s, p);
367
367
  let O = c && c.headers ? c.headers : {};
368
- return i.headers = { ...d, ...O, ...t.headers }, {
369
- url: b(s),
368
+ return i.headers = { ...d, ...O, ...r.headers }, {
369
+ url: v(s),
370
370
  options: i
371
371
  };
372
372
  },
@@ -381,16 +381,16 @@ const v = function(l, ...n) {
381
381
  * @param {*} [options] Override http request option.
382
382
  * @throws {RequiredError}
383
383
  */
384
- listTablesInPackage: async (n, e, r, a, t, o = {}) => {
385
- m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", r), m("listTablesInPackage", "schemaName", a);
386
- const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
384
+ listTablesInPackage: async (n, e, t, a, r, o = {}) => {
385
+ m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
386
+ const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, b);
387
387
  let i;
388
388
  l && (i = l.baseOptions);
389
389
  const d = { method: "GET", ...i, ...o }, p = {}, O = {};
390
- t && (O.tableNames = t), v(c, O);
390
+ r && (O.tableNames = r), P(c, O);
391
391
  let C = i && i.headers ? i.headers : {};
392
392
  return d.headers = { ...p, ...C, ...o.headers }, {
393
- url: b(c),
393
+ url: v(c),
394
394
  options: d
395
395
  };
396
396
  },
@@ -403,16 +403,16 @@ const v = function(l, ...n) {
403
403
  * @param {*} [options] Override http request option.
404
404
  * @throws {RequiredError}
405
405
  */
406
- postQuerydata: async (n, e, r, a = {}) => {
407
- m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", r);
408
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
406
+ postQuerydata: async (n, e, t, a = {}) => {
407
+ m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
408
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
409
409
  let s;
410
410
  l && (s = l.baseOptions);
411
411
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
412
- i["Content-Type"] = "application/json", v(o, d);
412
+ i["Content-Type"] = "application/json", P(o, d);
413
413
  let p = s && s.headers ? s.headers : {};
414
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
415
- url: b(o),
414
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
415
+ url: v(o),
416
416
  options: c
417
417
  };
418
418
  },
@@ -426,16 +426,16 @@ const v = function(l, ...n) {
426
426
  * @param {*} [options] Override http request option.
427
427
  * @throws {RequiredError}
428
428
  */
429
- postQuerydataInPackage: async (n, e, r, a, t = {}) => {
430
- m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", r), m("postQuerydataInPackage", "postQuerydataRequest", a);
431
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
429
+ postQuerydataInPackage: async (n, e, t, a, r = {}) => {
430
+ m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
431
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, b);
432
432
  let c;
433
433
  l && (c = l.baseOptions);
434
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
435
- d["Content-Type"] = "application/json", v(s, p);
434
+ const i = { method: "POST", ...c, ...r }, d = {}, p = {};
435
+ d["Content-Type"] = "application/json", P(s, p);
436
436
  let O = c && c.headers ? c.headers : {};
437
- return i.headers = { ...d, ...O, ...t.headers }, i.data = y(a, i, l), {
438
- url: b(s),
437
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
438
+ url: v(s),
439
439
  options: i
440
440
  };
441
441
  },
@@ -448,16 +448,16 @@ const v = function(l, ...n) {
448
448
  * @param {*} [options] Override http request option.
449
449
  * @throws {RequiredError}
450
450
  */
451
- postSqlsource: async (n, e, r, a = {}) => {
452
- m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", r);
453
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
451
+ postSqlsource: async (n, e, t, a = {}) => {
452
+ m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
453
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
454
454
  let s;
455
455
  l && (s = l.baseOptions);
456
456
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
457
- i["Content-Type"] = "application/json", v(o, d);
457
+ i["Content-Type"] = "application/json", P(o, d);
458
458
  let p = s && s.headers ? s.headers : {};
459
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
460
- url: b(o),
459
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
460
+ url: v(o),
461
461
  options: c
462
462
  };
463
463
  },
@@ -471,16 +471,16 @@ const v = function(l, ...n) {
471
471
  * @param {*} [options] Override http request option.
472
472
  * @throws {RequiredError}
473
473
  */
474
- postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
475
- m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", r), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
476
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
474
+ postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
475
+ m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
476
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, b);
477
477
  let c;
478
478
  l && (c = l.baseOptions);
479
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
480
- d["Content-Type"] = "application/json", v(s, p);
479
+ const i = { method: "POST", ...c, ...r }, d = {}, p = {};
480
+ d["Content-Type"] = "application/json", P(s, p);
481
481
  let O = c && c.headers ? c.headers : {};
482
- return i.headers = { ...d, ...O, ...t.headers }, i.data = y(a, i, l), {
483
- url: b(s),
482
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
483
+ url: v(s),
484
484
  options: i
485
485
  };
486
486
  },
@@ -493,16 +493,16 @@ const v = function(l, ...n) {
493
493
  * @param {*} [options] Override http request option.
494
494
  * @throws {RequiredError}
495
495
  */
496
- postTemporarytable: async (n, e, r, a = {}) => {
497
- m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", r);
498
- const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
496
+ postTemporarytable: async (n, e, t, a = {}) => {
497
+ m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
498
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
499
499
  let s;
500
500
  l && (s = l.baseOptions);
501
501
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
502
- i["Content-Type"] = "application/json", v(o, d);
502
+ i["Content-Type"] = "application/json", P(o, d);
503
503
  let p = s && s.headers ? s.headers : {};
504
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
505
- url: b(o),
504
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
505
+ url: v(o),
506
506
  options: c
507
507
  };
508
508
  },
@@ -516,16 +516,16 @@ const v = function(l, ...n) {
516
516
  * @param {*} [options] Override http request option.
517
517
  * @throws {RequiredError}
518
518
  */
519
- postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
520
- m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", r), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
521
- const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
519
+ postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
520
+ m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
521
+ const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, b);
522
522
  let c;
523
523
  l && (c = l.baseOptions);
524
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
525
- d["Content-Type"] = "application/json", v(s, p);
524
+ const i = { method: "POST", ...c, ...r }, d = {}, p = {};
525
+ d["Content-Type"] = "application/json", P(s, p);
526
526
  let O = c && c.headers ? c.headers : {};
527
- return i.headers = { ...d, ...O, ...t.headers }, i.data = y(a, i, l), {
528
- url: b(s),
527
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
528
+ url: v(s),
529
529
  options: i
530
530
  };
531
531
  },
@@ -538,22 +538,22 @@ const v = function(l, ...n) {
538
538
  * @param {*} [options] Override http request option.
539
539
  * @throws {RequiredError}
540
540
  */
541
- updateConnection: async (n, e, r, a = {}) => {
542
- m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", r);
543
- const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
541
+ updateConnection: async (n, e, t, a = {}) => {
542
+ m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
543
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
544
544
  let s;
545
545
  l && (s = l.baseOptions);
546
546
  const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
547
- i["Content-Type"] = "application/json", v(o, d);
547
+ i["Content-Type"] = "application/json", P(o, d);
548
548
  let p = s && s.headers ? s.headers : {};
549
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
550
- url: b(o),
549
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
550
+ url: v(o),
551
551
  options: c
552
552
  };
553
553
  }
554
554
  };
555
555
  }, S = function(l) {
556
- const n = ue(l);
556
+ const n = ge(l);
557
557
  return {
558
558
  /**
559
559
  * Creates a new database connection in the specified environment.
@@ -564,8 +564,8 @@ const v = function(l, ...n) {
564
564
  * @param {*} [options] Override http request option.
565
565
  * @throws {RequiredError}
566
566
  */
567
- async createConnection(e, r, a, t) {
568
- const o = await n.createConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
567
+ async createConnection(e, t, a, r) {
568
+ const o = await n.createConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
569
569
  return (i, d) => V(o, h, u, l)(i, c || d);
570
570
  },
571
571
  /**
@@ -576,9 +576,9 @@ const v = function(l, ...n) {
576
576
  * @param {*} [options] Override http request option.
577
577
  * @throws {RequiredError}
578
578
  */
579
- async deleteConnection(e, r, a) {
580
- const t = await n.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
581
- return (c, i) => V(t, h, u, l)(c, s || i);
579
+ async deleteConnection(e, t, a) {
580
+ const r = await n.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
581
+ return (c, i) => V(r, h, u, l)(c, s || i);
582
582
  },
583
583
  /**
584
584
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -588,9 +588,9 @@ const v = function(l, ...n) {
588
588
  * @param {*} [options] Override http request option.
589
589
  * @throws {RequiredError}
590
590
  */
591
- async getConnection(e, r, a) {
592
- const t = await n.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
593
- return (c, i) => V(t, h, u, l)(c, s || i);
591
+ async getConnection(e, t, a) {
592
+ const r = await n.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
593
+ return (c, i) => V(r, h, u, l)(c, s || i);
594
594
  },
595
595
  /**
596
596
  * 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.
@@ -602,8 +602,8 @@ const v = function(l, ...n) {
602
602
  * @param {*} [options] Override http request option.
603
603
  * @throws {RequiredError}
604
604
  */
605
- async getTable(e, r, a, t, o) {
606
- const s = await n.getTable(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
605
+ async getTable(e, t, a, r, o) {
606
+ const s = await n.getTable(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
607
607
  return (d, p) => V(s, h, u, l)(d, i || p);
608
608
  },
609
609
  /**
@@ -617,8 +617,8 @@ const v = function(l, ...n) {
617
617
  * @param {*} [options] Override http request option.
618
618
  * @throws {RequiredError}
619
619
  */
620
- async getTableInPackage(e, r, a, t, o, s) {
621
- const c = await n.getTableInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
620
+ async getTableInPackage(e, t, a, r, o, s) {
621
+ const c = await n.getTableInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
622
622
  return (p, O) => V(c, h, u, l)(p, d || O);
623
623
  },
624
624
  /**
@@ -628,8 +628,8 @@ const v = function(l, ...n) {
628
628
  * @param {*} [options] Override http request option.
629
629
  * @throws {RequiredError}
630
630
  */
631
- async listConnections(e, r) {
632
- const a = await n.listConnections(e, r), t = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[t]?.url;
631
+ async listConnections(e, t) {
632
+ const a = await n.listConnections(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[r]?.url;
633
633
  return (s, c) => V(a, h, u, l)(s, o || c);
634
634
  },
635
635
  /**
@@ -640,9 +640,9 @@ const v = function(l, ...n) {
640
640
  * @param {*} [options] Override http request option.
641
641
  * @throws {RequiredError}
642
642
  */
643
- async listSchemas(e, r, a) {
644
- const t = await n.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
645
- return (c, i) => V(t, h, u, l)(c, s || i);
643
+ async listSchemas(e, t, a) {
644
+ const r = await n.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
645
+ return (c, i) => V(r, h, u, l)(c, s || i);
646
646
  },
647
647
  /**
648
648
  * Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
@@ -653,8 +653,8 @@ const v = function(l, ...n) {
653
653
  * @param {*} [options] Override http request option.
654
654
  * @throws {RequiredError}
655
655
  */
656
- async listSchemasInPackage(e, r, a, t) {
657
- const o = await n.listSchemasInPackage(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
656
+ async listSchemasInPackage(e, t, a, r) {
657
+ const o = await n.listSchemasInPackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
658
658
  return (i, d) => V(o, h, u, l)(i, c || d);
659
659
  },
660
660
  /**
@@ -667,8 +667,8 @@ const v = function(l, ...n) {
667
667
  * @param {*} [options] Override http request option.
668
668
  * @throws {RequiredError}
669
669
  */
670
- async listTables(e, r, a, t, o) {
671
- const s = await n.listTables(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
670
+ async listTables(e, t, a, r, o) {
671
+ const s = await n.listTables(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
672
672
  return (d, p) => V(s, h, u, l)(d, i || p);
673
673
  },
674
674
  /**
@@ -682,8 +682,8 @@ const v = function(l, ...n) {
682
682
  * @param {*} [options] Override http request option.
683
683
  * @throws {RequiredError}
684
684
  */
685
- async listTablesInPackage(e, r, a, t, o, s) {
686
- const c = await n.listTablesInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
685
+ async listTablesInPackage(e, t, a, r, o, s) {
686
+ const c = await n.listTablesInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
687
687
  return (p, O) => V(c, h, u, l)(p, d || O);
688
688
  },
689
689
  /**
@@ -695,8 +695,8 @@ const v = function(l, ...n) {
695
695
  * @param {*} [options] Override http request option.
696
696
  * @throws {RequiredError}
697
697
  */
698
- async postQuerydata(e, r, a, t) {
699
- const o = await n.postQuerydata(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
698
+ async postQuerydata(e, t, a, r) {
699
+ const o = await n.postQuerydata(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
700
700
  return (i, d) => V(o, h, u, l)(i, c || d);
701
701
  },
702
702
  /**
@@ -709,8 +709,8 @@ const v = function(l, ...n) {
709
709
  * @param {*} [options] Override http request option.
710
710
  * @throws {RequiredError}
711
711
  */
712
- async postQuerydataInPackage(e, r, a, t, o) {
713
- const s = await n.postQuerydataInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
712
+ async postQuerydataInPackage(e, t, a, r, o) {
713
+ const s = await n.postQuerydataInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
714
714
  return (d, p) => V(s, h, u, l)(d, i || p);
715
715
  },
716
716
  /**
@@ -722,8 +722,8 @@ const v = function(l, ...n) {
722
722
  * @param {*} [options] Override http request option.
723
723
  * @throws {RequiredError}
724
724
  */
725
- async postSqlsource(e, r, a, t) {
726
- const o = await n.postSqlsource(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
725
+ async postSqlsource(e, t, a, r) {
726
+ const o = await n.postSqlsource(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
727
727
  return (i, d) => V(o, h, u, l)(i, c || d);
728
728
  },
729
729
  /**
@@ -736,8 +736,8 @@ const v = function(l, ...n) {
736
736
  * @param {*} [options] Override http request option.
737
737
  * @throws {RequiredError}
738
738
  */
739
- async postSqlsourceInPackage(e, r, a, t, o) {
740
- const s = await n.postSqlsourceInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
739
+ async postSqlsourceInPackage(e, t, a, r, o) {
740
+ const s = await n.postSqlsourceInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
741
741
  return (d, p) => V(s, h, u, l)(d, i || p);
742
742
  },
743
743
  /**
@@ -749,8 +749,8 @@ const v = function(l, ...n) {
749
749
  * @param {*} [options] Override http request option.
750
750
  * @throws {RequiredError}
751
751
  */
752
- async postTemporarytable(e, r, a, t) {
753
- const o = await n.postTemporarytable(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
752
+ async postTemporarytable(e, t, a, r) {
753
+ const o = await n.postTemporarytable(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
754
754
  return (i, d) => V(o, h, u, l)(i, c || d);
755
755
  },
756
756
  /**
@@ -763,8 +763,8 @@ const v = function(l, ...n) {
763
763
  * @param {*} [options] Override http request option.
764
764
  * @throws {RequiredError}
765
765
  */
766
- async postTemporarytableInPackage(e, r, a, t, o) {
767
- const s = await n.postTemporarytableInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
766
+ async postTemporarytableInPackage(e, t, a, r, o) {
767
+ const s = await n.postTemporarytableInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
768
768
  return (d, p) => V(s, h, u, l)(d, i || p);
769
769
  },
770
770
  /**
@@ -776,13 +776,13 @@ const v = function(l, ...n) {
776
776
  * @param {*} [options] Override http request option.
777
777
  * @throws {RequiredError}
778
778
  */
779
- async updateConnection(e, r, a, t) {
780
- const o = await n.updateConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
779
+ async updateConnection(e, t, a, r) {
780
+ const o = await n.updateConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
781
781
  return (i, d) => V(o, h, u, l)(i, c || d);
782
782
  }
783
783
  };
784
- }, Ea = function(l, n, e) {
785
- const r = S(l);
784
+ }, fa = function(l, n, e) {
785
+ const t = S(l);
786
786
  return {
787
787
  /**
788
788
  * Creates a new database connection in the specified environment.
@@ -793,8 +793,8 @@ const v = function(l, ...n) {
793
793
  * @param {*} [options] Override http request option.
794
794
  * @throws {RequiredError}
795
795
  */
796
- createConnection(a, t, o, s) {
797
- return r.createConnection(a, t, o, s).then((c) => c(e, n));
796
+ createConnection(a, r, o, s) {
797
+ return t.createConnection(a, r, o, s).then((c) => c(e, n));
798
798
  },
799
799
  /**
800
800
  * Permanently deletes a database connection from the environment.
@@ -804,8 +804,8 @@ const v = function(l, ...n) {
804
804
  * @param {*} [options] Override http request option.
805
805
  * @throws {RequiredError}
806
806
  */
807
- deleteConnection(a, t, o) {
808
- return r.deleteConnection(a, t, o).then((s) => s(e, n));
807
+ deleteConnection(a, r, o) {
808
+ return t.deleteConnection(a, r, o).then((s) => s(e, n));
809
809
  },
810
810
  /**
811
811
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -815,8 +815,8 @@ const v = function(l, ...n) {
815
815
  * @param {*} [options] Override http request option.
816
816
  * @throws {RequiredError}
817
817
  */
818
- getConnection(a, t, o) {
819
- return r.getConnection(a, t, o).then((s) => s(e, n));
818
+ getConnection(a, r, o) {
819
+ return t.getConnection(a, r, o).then((s) => s(e, n));
820
820
  },
821
821
  /**
822
822
  * 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.
@@ -828,8 +828,8 @@ const v = function(l, ...n) {
828
828
  * @param {*} [options] Override http request option.
829
829
  * @throws {RequiredError}
830
830
  */
831
- getTable(a, t, o, s, c) {
832
- return r.getTable(a, t, o, s, c).then((i) => i(e, n));
831
+ getTable(a, r, o, s, c) {
832
+ return t.getTable(a, r, o, s, c).then((i) => i(e, n));
833
833
  },
834
834
  /**
835
835
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -842,8 +842,8 @@ const v = function(l, ...n) {
842
842
  * @param {*} [options] Override http request option.
843
843
  * @throws {RequiredError}
844
844
  */
845
- getTableInPackage(a, t, o, s, c, i) {
846
- return r.getTableInPackage(a, t, o, s, c, i).then((d) => d(e, n));
845
+ getTableInPackage(a, r, o, s, c, i) {
846
+ return t.getTableInPackage(a, r, o, s, c, i).then((d) => d(e, n));
847
847
  },
848
848
  /**
849
849
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
@@ -852,8 +852,8 @@ const v = function(l, ...n) {
852
852
  * @param {*} [options] Override http request option.
853
853
  * @throws {RequiredError}
854
854
  */
855
- listConnections(a, t) {
856
- return r.listConnections(a, t).then((o) => o(e, n));
855
+ listConnections(a, r) {
856
+ return t.listConnections(a, r).then((o) => o(e, n));
857
857
  },
858
858
  /**
859
859
  * 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.
@@ -863,8 +863,8 @@ const v = function(l, ...n) {
863
863
  * @param {*} [options] Override http request option.
864
864
  * @throws {RequiredError}
865
865
  */
866
- listSchemas(a, t, o) {
867
- return r.listSchemas(a, t, o).then((s) => s(e, n));
866
+ listSchemas(a, r, o) {
867
+ return t.listSchemas(a, r, o).then((s) => s(e, n));
868
868
  },
869
869
  /**
870
870
  * Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
@@ -875,8 +875,8 @@ const v = function(l, ...n) {
875
875
  * @param {*} [options] Override http request option.
876
876
  * @throws {RequiredError}
877
877
  */
878
- listSchemasInPackage(a, t, o, s) {
879
- return r.listSchemasInPackage(a, t, o, s).then((c) => c(e, n));
878
+ listSchemasInPackage(a, r, o, s) {
879
+ return t.listSchemasInPackage(a, r, o, s).then((c) => c(e, n));
880
880
  },
881
881
  /**
882
882
  * 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.
@@ -888,8 +888,8 @@ const v = function(l, ...n) {
888
888
  * @param {*} [options] Override http request option.
889
889
  * @throws {RequiredError}
890
890
  */
891
- listTables(a, t, o, s, c) {
892
- return r.listTables(a, t, o, s, c).then((i) => i(e, n));
891
+ listTables(a, r, o, s, c) {
892
+ return t.listTables(a, r, o, s, c).then((i) => i(e, n));
893
893
  },
894
894
  /**
895
895
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -902,8 +902,8 @@ const v = function(l, ...n) {
902
902
  * @param {*} [options] Override http request option.
903
903
  * @throws {RequiredError}
904
904
  */
905
- listTablesInPackage(a, t, o, s, c, i) {
906
- return r.listTablesInPackage(a, t, o, s, c, i).then((d) => d(e, n));
905
+ listTablesInPackage(a, r, o, s, c, i) {
906
+ return t.listTablesInPackage(a, r, o, s, c, i).then((d) => d(e, n));
907
907
  },
908
908
  /**
909
909
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
@@ -914,8 +914,8 @@ const v = function(l, ...n) {
914
914
  * @param {*} [options] Override http request option.
915
915
  * @throws {RequiredError}
916
916
  */
917
- postQuerydata(a, t, o, s) {
918
- return r.postQuerydata(a, t, o, s).then((c) => c(e, n));
917
+ postQuerydata(a, r, o, s) {
918
+ return t.postQuerydata(a, r, o, s).then((c) => c(e, n));
919
919
  },
920
920
  /**
921
921
  * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
@@ -927,8 +927,8 @@ const v = function(l, ...n) {
927
927
  * @param {*} [options] Override http request option.
928
928
  * @throws {RequiredError}
929
929
  */
930
- postQuerydataInPackage(a, t, o, s, c) {
931
- return r.postQuerydataInPackage(a, t, o, s, c).then((i) => i(e, n));
930
+ postQuerydataInPackage(a, r, o, s, c) {
931
+ return t.postQuerydataInPackage(a, r, o, s, c).then((i) => i(e, n));
932
932
  },
933
933
  /**
934
934
  * 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.
@@ -939,8 +939,8 @@ const v = function(l, ...n) {
939
939
  * @param {*} [options] Override http request option.
940
940
  * @throws {RequiredError}
941
941
  */
942
- postSqlsource(a, t, o, s) {
943
- return r.postSqlsource(a, t, o, s).then((c) => c(e, n));
942
+ postSqlsource(a, r, o, s) {
943
+ return t.postSqlsource(a, r, o, s).then((c) => c(e, n));
944
944
  },
945
945
  /**
946
946
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -952,8 +952,8 @@ const v = function(l, ...n) {
952
952
  * @param {*} [options] Override http request option.
953
953
  * @throws {RequiredError}
954
954
  */
955
- postSqlsourceInPackage(a, t, o, s, c) {
956
- return r.postSqlsourceInPackage(a, t, o, s, c).then((i) => i(e, n));
955
+ postSqlsourceInPackage(a, r, o, s, c) {
956
+ return t.postSqlsourceInPackage(a, r, o, s, c).then((i) => i(e, n));
957
957
  },
958
958
  /**
959
959
  * 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.
@@ -964,8 +964,8 @@ const v = function(l, ...n) {
964
964
  * @param {*} [options] Override http request option.
965
965
  * @throws {RequiredError}
966
966
  */
967
- postTemporarytable(a, t, o, s) {
968
- return r.postTemporarytable(a, t, o, s).then((c) => c(e, n));
967
+ postTemporarytable(a, r, o, s) {
968
+ return t.postTemporarytable(a, r, o, s).then((c) => c(e, n));
969
969
  },
970
970
  /**
971
971
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -977,8 +977,8 @@ const v = function(l, ...n) {
977
977
  * @param {*} [options] Override http request option.
978
978
  * @throws {RequiredError}
979
979
  */
980
- postTemporarytableInPackage(a, t, o, s, c) {
981
- return r.postTemporarytableInPackage(a, t, o, s, c).then((i) => i(e, n));
980
+ postTemporarytableInPackage(a, r, o, s, c) {
981
+ return t.postTemporarytableInPackage(a, r, o, s, c).then((i) => i(e, n));
982
982
  },
983
983
  /**
984
984
  * Updates the configuration of an existing database connection.
@@ -989,12 +989,12 @@ const v = function(l, ...n) {
989
989
  * @param {*} [options] Override http request option.
990
990
  * @throws {RequiredError}
991
991
  */
992
- updateConnection(a, t, o, s) {
993
- return r.updateConnection(a, t, o, s).then((c) => c(e, n));
992
+ updateConnection(a, r, o, s) {
993
+ return t.updateConnection(a, r, o, s).then((c) => c(e, n));
994
994
  }
995
995
  };
996
996
  };
997
- class ge extends I {
997
+ class be extends I {
998
998
  /**
999
999
  * Creates a new database connection in the specified environment.
1000
1000
  * @summary Create a new database connection
@@ -1005,8 +1005,8 @@ class ge extends I {
1005
1005
  * @throws {RequiredError}
1006
1006
  * @memberof ConnectionsApi
1007
1007
  */
1008
- createConnection(n, e, r, a) {
1009
- return S(this.configuration).createConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1008
+ createConnection(n, e, t, a) {
1009
+ return S(this.configuration).createConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
1010
1010
  }
1011
1011
  /**
1012
1012
  * Permanently deletes a database connection from the environment.
@@ -1017,8 +1017,8 @@ class ge extends I {
1017
1017
  * @throws {RequiredError}
1018
1018
  * @memberof ConnectionsApi
1019
1019
  */
1020
- deleteConnection(n, e, r) {
1021
- return S(this.configuration).deleteConnection(n, e, r).then((a) => a(this.axios, this.basePath));
1020
+ deleteConnection(n, e, t) {
1021
+ return S(this.configuration).deleteConnection(n, e, t).then((a) => a(this.axios, this.basePath));
1022
1022
  }
1023
1023
  /**
1024
1024
  * Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
@@ -1029,8 +1029,8 @@ class ge extends I {
1029
1029
  * @throws {RequiredError}
1030
1030
  * @memberof ConnectionsApi
1031
1031
  */
1032
- getConnection(n, e, r) {
1033
- return S(this.configuration).getConnection(n, e, r).then((a) => a(this.axios, this.basePath));
1032
+ getConnection(n, e, t) {
1033
+ return S(this.configuration).getConnection(n, e, t).then((a) => a(this.axios, this.basePath));
1034
1034
  }
1035
1035
  /**
1036
1036
  * 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.
@@ -1043,8 +1043,8 @@ class ge extends I {
1043
1043
  * @throws {RequiredError}
1044
1044
  * @memberof ConnectionsApi
1045
1045
  */
1046
- getTable(n, e, r, a, t) {
1047
- return S(this.configuration).getTable(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1046
+ getTable(n, e, t, a, r) {
1047
+ return S(this.configuration).getTable(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1048
1048
  }
1049
1049
  /**
1050
1050
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -1058,8 +1058,8 @@ class ge extends I {
1058
1058
  * @throws {RequiredError}
1059
1059
  * @memberof ConnectionsApi
1060
1060
  */
1061
- getTableInPackage(n, e, r, a, t, o) {
1062
- return S(this.configuration).getTableInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
1061
+ getTableInPackage(n, e, t, a, r, o) {
1062
+ return S(this.configuration).getTableInPackage(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
1063
1063
  }
1064
1064
  /**
1065
1065
  * Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
@@ -1070,7 +1070,7 @@ class ge extends I {
1070
1070
  * @memberof ConnectionsApi
1071
1071
  */
1072
1072
  listConnections(n, e) {
1073
- return S(this.configuration).listConnections(n, e).then((r) => r(this.axios, this.basePath));
1073
+ return S(this.configuration).listConnections(n, e).then((t) => t(this.axios, this.basePath));
1074
1074
  }
1075
1075
  /**
1076
1076
  * 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.
@@ -1081,8 +1081,8 @@ class ge extends I {
1081
1081
  * @throws {RequiredError}
1082
1082
  * @memberof ConnectionsApi
1083
1083
  */
1084
- listSchemas(n, e, r) {
1085
- return S(this.configuration).listSchemas(n, e, r).then((a) => a(this.axios, this.basePath));
1084
+ listSchemas(n, e, t) {
1085
+ return S(this.configuration).listSchemas(n, e, t).then((a) => a(this.axios, this.basePath));
1086
1086
  }
1087
1087
  /**
1088
1088
  * Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
@@ -1094,8 +1094,8 @@ class ge extends I {
1094
1094
  * @throws {RequiredError}
1095
1095
  * @memberof ConnectionsApi
1096
1096
  */
1097
- listSchemasInPackage(n, e, r, a) {
1098
- return S(this.configuration).listSchemasInPackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
1097
+ listSchemasInPackage(n, e, t, a) {
1098
+ return S(this.configuration).listSchemasInPackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
1099
1099
  }
1100
1100
  /**
1101
1101
  * 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.
@@ -1108,8 +1108,8 @@ class ge extends I {
1108
1108
  * @throws {RequiredError}
1109
1109
  * @memberof ConnectionsApi
1110
1110
  */
1111
- listTables(n, e, r, a, t) {
1112
- return S(this.configuration).listTables(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1111
+ listTables(n, e, t, a, r) {
1112
+ return S(this.configuration).listTables(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1113
1113
  }
1114
1114
  /**
1115
1115
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -1123,8 +1123,8 @@ class ge extends I {
1123
1123
  * @throws {RequiredError}
1124
1124
  * @memberof ConnectionsApi
1125
1125
  */
1126
- listTablesInPackage(n, e, r, a, t, o) {
1127
- return S(this.configuration).listTablesInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
1126
+ listTablesInPackage(n, e, t, a, r, o) {
1127
+ return S(this.configuration).listTablesInPackage(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
1128
1128
  }
1129
1129
  /**
1130
1130
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
@@ -1136,8 +1136,8 @@ class ge extends I {
1136
1136
  * @throws {RequiredError}
1137
1137
  * @memberof ConnectionsApi
1138
1138
  */
1139
- postQuerydata(n, e, r, a) {
1140
- return S(this.configuration).postQuerydata(n, e, r, a).then((t) => t(this.axios, this.basePath));
1139
+ postQuerydata(n, e, t, a) {
1140
+ return S(this.configuration).postQuerydata(n, e, t, a).then((r) => r(this.axios, this.basePath));
1141
1141
  }
1142
1142
  /**
1143
1143
  * Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
@@ -1150,8 +1150,8 @@ class ge extends I {
1150
1150
  * @throws {RequiredError}
1151
1151
  * @memberof ConnectionsApi
1152
1152
  */
1153
- postQuerydataInPackage(n, e, r, a, t) {
1154
- return S(this.configuration).postQuerydataInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1153
+ postQuerydataInPackage(n, e, t, a, r) {
1154
+ return S(this.configuration).postQuerydataInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1155
1155
  }
1156
1156
  /**
1157
1157
  * 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.
@@ -1163,8 +1163,8 @@ class ge extends I {
1163
1163
  * @throws {RequiredError}
1164
1164
  * @memberof ConnectionsApi
1165
1165
  */
1166
- postSqlsource(n, e, r, a) {
1167
- return S(this.configuration).postSqlsource(n, e, r, a).then((t) => t(this.axios, this.basePath));
1166
+ postSqlsource(n, e, t, a) {
1167
+ return S(this.configuration).postSqlsource(n, e, t, a).then((r) => r(this.axios, this.basePath));
1168
1168
  }
1169
1169
  /**
1170
1170
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -1177,8 +1177,8 @@ class ge extends I {
1177
1177
  * @throws {RequiredError}
1178
1178
  * @memberof ConnectionsApi
1179
1179
  */
1180
- postSqlsourceInPackage(n, e, r, a, t) {
1181
- return S(this.configuration).postSqlsourceInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1180
+ postSqlsourceInPackage(n, e, t, a, r) {
1181
+ return S(this.configuration).postSqlsourceInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1182
1182
  }
1183
1183
  /**
1184
1184
  * 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.
@@ -1190,8 +1190,8 @@ class ge extends I {
1190
1190
  * @throws {RequiredError}
1191
1191
  * @memberof ConnectionsApi
1192
1192
  */
1193
- postTemporarytable(n, e, r, a) {
1194
- return S(this.configuration).postTemporarytable(n, e, r, a).then((t) => t(this.axios, this.basePath));
1193
+ postTemporarytable(n, e, t, a) {
1194
+ return S(this.configuration).postTemporarytable(n, e, t, a).then((r) => r(this.axios, this.basePath));
1195
1195
  }
1196
1196
  /**
1197
1197
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -1204,8 +1204,8 @@ class ge extends I {
1204
1204
  * @throws {RequiredError}
1205
1205
  * @memberof ConnectionsApi
1206
1206
  */
1207
- postTemporarytableInPackage(n, e, r, a, t) {
1208
- return S(this.configuration).postTemporarytableInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
1207
+ postTemporarytableInPackage(n, e, t, a, r) {
1208
+ return S(this.configuration).postTemporarytableInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1209
1209
  }
1210
1210
  /**
1211
1211
  * Updates the configuration of an existing database connection.
@@ -1217,8 +1217,8 @@ class ge extends I {
1217
1217
  * @throws {RequiredError}
1218
1218
  * @memberof ConnectionsApi
1219
1219
  */
1220
- updateConnection(n, e, r, a) {
1221
- return S(this.configuration).updateConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
1220
+ updateConnection(n, e, t, a) {
1221
+ return S(this.configuration).updateConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
1222
1222
  }
1223
1223
  }
1224
1224
  const Pe = function(l) {
@@ -1232,19 +1232,19 @@ const Pe = function(l) {
1232
1232
  */
1233
1233
  testConnectionConfiguration: async (n, e = {}) => {
1234
1234
  m("testConnectionConfiguration", "connection", n);
1235
- const r = "/connections/test", a = new URL(r, P);
1236
- let t;
1237
- l && (t = l.baseOptions);
1238
- const o = { method: "POST", ...t, ...e }, s = {}, c = {};
1239
- s["Content-Type"] = "application/json", v(a, c);
1240
- let i = t && t.headers ? t.headers : {};
1235
+ const t = "/connections/test", a = new URL(t, b);
1236
+ let r;
1237
+ l && (r = l.baseOptions);
1238
+ const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1239
+ s["Content-Type"] = "application/json", P(a, c);
1240
+ let i = r && r.headers ? r.headers : {};
1241
1241
  return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1242
- url: b(a),
1242
+ url: v(a),
1243
1243
  options: o
1244
1244
  };
1245
1245
  }
1246
1246
  };
1247
- }, K = function(l) {
1247
+ }, X = function(l) {
1248
1248
  const n = Pe(l);
1249
1249
  return {
1250
1250
  /**
@@ -1254,13 +1254,13 @@ const Pe = function(l) {
1254
1254
  * @param {*} [options] Override http request option.
1255
1255
  * @throws {RequiredError}
1256
1256
  */
1257
- async testConnectionConfiguration(e, r) {
1258
- const a = await n.testConnectionConfiguration(e, r), t = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
1257
+ async testConnectionConfiguration(e, t) {
1258
+ const a = await n.testConnectionConfiguration(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
1259
1259
  return (s, c) => V(a, h, u, l)(s, o || c);
1260
1260
  }
1261
1261
  };
1262
- }, wa = function(l, n, e) {
1263
- const r = K(l);
1262
+ }, Ba = function(l, n, e) {
1263
+ const t = X(l);
1264
1264
  return {
1265
1265
  /**
1266
1266
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
@@ -1269,12 +1269,12 @@ const Pe = function(l) {
1269
1269
  * @param {*} [options] Override http request option.
1270
1270
  * @throws {RequiredError}
1271
1271
  */
1272
- testConnectionConfiguration(a, t) {
1273
- return r.testConnectionConfiguration(a, t).then((o) => o(e, n));
1272
+ testConnectionConfiguration(a, r) {
1273
+ return t.testConnectionConfiguration(a, r).then((o) => o(e, n));
1274
1274
  }
1275
1275
  };
1276
1276
  };
1277
- class Ma extends I {
1277
+ class Fa extends I {
1278
1278
  /**
1279
1279
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
1280
1280
  * @summary Test database connection configuration
@@ -1284,10 +1284,148 @@ class Ma extends I {
1284
1284
  * @memberof ConnectionsTestApi
1285
1285
  */
1286
1286
  testConnectionConfiguration(n, e) {
1287
- return K(this.configuration).testConnectionConfiguration(n, e).then((r) => r(this.axios, this.basePath));
1287
+ return X(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
1288
1288
  }
1289
1289
  }
1290
1290
  const ve = function(l) {
1291
+ return {
1292
+ /**
1293
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
1294
+ * @summary Get a dashboard manifest
1295
+ * @param {string} environmentName Name of the environment
1296
+ * @param {string} packageName Name of the package
1297
+ * @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
1298
+ * @param {string} [versionId] Version identifier for the package
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ */
1302
+ getDashboard: async (n, e, t, a, r = {}) => {
1303
+ m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
1304
+ const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, b);
1305
+ let c;
1306
+ l && (c = l.baseOptions);
1307
+ const i = { method: "GET", ...c, ...r }, d = {}, p = {};
1308
+ a !== void 0 && (p.versionId = a), P(s, p);
1309
+ let O = c && c.headers ? c.headers : {};
1310
+ return i.headers = { ...d, ...O, ...r.headers }, {
1311
+ url: v(s),
1312
+ options: i
1313
+ };
1314
+ },
1315
+ /**
1316
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
1317
+ * @summary List package dashboards
1318
+ * @param {string} environmentName Name of the environment
1319
+ * @param {string} packageName Name of the package
1320
+ * @param {string} [versionId] Version identifier for the package
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ */
1324
+ listDashboards: async (n, e, t, a = {}) => {
1325
+ m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
1326
+ const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
1327
+ let s;
1328
+ l && (s = l.baseOptions);
1329
+ const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1330
+ t !== void 0 && (d.versionId = t), P(o, d);
1331
+ let p = s && s.headers ? s.headers : {};
1332
+ return c.headers = { ...i, ...p, ...a.headers }, {
1333
+ url: v(o),
1334
+ options: c
1335
+ };
1336
+ }
1337
+ };
1338
+ }, D = function(l) {
1339
+ const n = ve(l);
1340
+ return {
1341
+ /**
1342
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
1343
+ * @summary Get a dashboard manifest
1344
+ * @param {string} environmentName Name of the environment
1345
+ * @param {string} packageName Name of the package
1346
+ * @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
1347
+ * @param {string} [versionId] Version identifier for the package
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ async getDashboard(e, t, a, r, o) {
1352
+ const s = await n.getDashboard(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["DashboardsApi.getDashboard"]?.[c]?.url;
1353
+ return (d, p) => V(s, h, u, l)(d, i || p);
1354
+ },
1355
+ /**
1356
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
1357
+ * @summary List package dashboards
1358
+ * @param {string} environmentName Name of the environment
1359
+ * @param {string} packageName Name of the package
1360
+ * @param {string} [versionId] Version identifier for the package
1361
+ * @param {*} [options] Override http request option.
1362
+ * @throws {RequiredError}
1363
+ */
1364
+ async listDashboards(e, t, a, r) {
1365
+ const o = await n.listDashboards(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DashboardsApi.listDashboards"]?.[s]?.url;
1366
+ return (i, d) => V(o, h, u, l)(i, c || d);
1367
+ }
1368
+ };
1369
+ }, Qa = function(l, n, e) {
1370
+ const t = D(l);
1371
+ return {
1372
+ /**
1373
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
1374
+ * @summary Get a dashboard manifest
1375
+ * @param {string} environmentName Name of the environment
1376
+ * @param {string} packageName Name of the package
1377
+ * @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
1378
+ * @param {string} [versionId] Version identifier for the package
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ */
1382
+ getDashboard(a, r, o, s, c) {
1383
+ return t.getDashboard(a, r, o, s, c).then((i) => i(e, n));
1384
+ },
1385
+ /**
1386
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
1387
+ * @summary List package dashboards
1388
+ * @param {string} environmentName Name of the environment
1389
+ * @param {string} packageName Name of the package
1390
+ * @param {string} [versionId] Version identifier for the package
1391
+ * @param {*} [options] Override http request option.
1392
+ * @throws {RequiredError}
1393
+ */
1394
+ listDashboards(a, r, o, s) {
1395
+ return t.listDashboards(a, r, o, s).then((c) => c(e, n));
1396
+ }
1397
+ };
1398
+ };
1399
+ class Ve extends I {
1400
+ /**
1401
+ * Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
1402
+ * @summary Get a dashboard manifest
1403
+ * @param {string} environmentName Name of the environment
1404
+ * @param {string} packageName Name of the package
1405
+ * @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
1406
+ * @param {string} [versionId] Version identifier for the package
1407
+ * @param {*} [options] Override http request option.
1408
+ * @throws {RequiredError}
1409
+ * @memberof DashboardsApi
1410
+ */
1411
+ getDashboard(n, e, t, a, r) {
1412
+ return D(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
1413
+ }
1414
+ /**
1415
+ * Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
1416
+ * @summary List package dashboards
1417
+ * @param {string} environmentName Name of the environment
1418
+ * @param {string} packageName Name of the package
1419
+ * @param {string} [versionId] Version identifier for the package
1420
+ * @param {*} [options] Override http request option.
1421
+ * @throws {RequiredError}
1422
+ * @memberof DashboardsApi
1423
+ */
1424
+ listDashboards(n, e, t, a) {
1425
+ return D(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
1426
+ }
1427
+ }
1428
+ const Oe = function(l) {
1291
1429
  return {
1292
1430
  /**
1293
1431
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -1297,22 +1435,22 @@ const ve = function(l) {
1297
1435
  * @param {*} [options] Override http request option.
1298
1436
  * @throws {RequiredError}
1299
1437
  */
1300
- listDataApps: async (n, e, r = {}) => {
1438
+ listDataApps: async (n, e, t = {}) => {
1301
1439
  m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
1302
- const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, P);
1440
+ const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, b);
1303
1441
  let o;
1304
1442
  l && (o = l.baseOptions);
1305
- const s = { method: "GET", ...o, ...r }, c = {};
1306
- v(t, {});
1443
+ const s = { method: "GET", ...o, ...t }, c = {};
1444
+ P(r, {});
1307
1445
  let d = o && o.headers ? o.headers : {};
1308
- return s.headers = { ...c, ...d, ...r.headers }, {
1309
- url: b(t),
1446
+ return s.headers = { ...c, ...d, ...t.headers }, {
1447
+ url: v(r),
1310
1448
  options: s
1311
1449
  };
1312
1450
  }
1313
1451
  };
1314
- }, X = function(l) {
1315
- const n = ve(l);
1452
+ }, Z = function(l) {
1453
+ const n = Oe(l);
1316
1454
  return {
1317
1455
  /**
1318
1456
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -1322,13 +1460,13 @@ const ve = function(l) {
1322
1460
  * @param {*} [options] Override http request option.
1323
1461
  * @throws {RequiredError}
1324
1462
  */
1325
- async listDataApps(e, r, a) {
1326
- const t = await n.listDataApps(e, r, a), o = l?.serverIndex ?? 0, s = g["DataAppsApi.listDataApps"]?.[o]?.url;
1327
- return (c, i) => V(t, h, u, l)(c, s || i);
1463
+ async listDataApps(e, t, a) {
1464
+ const r = await n.listDataApps(e, t, a), o = l?.serverIndex ?? 0, s = g["DataAppsApi.listDataApps"]?.[o]?.url;
1465
+ return (c, i) => V(r, h, u, l)(c, s || i);
1328
1466
  }
1329
1467
  };
1330
- }, fa = function(l, n, e) {
1331
- const r = X(l);
1468
+ }, $a = function(l, n, e) {
1469
+ const t = Z(l);
1332
1470
  return {
1333
1471
  /**
1334
1472
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
@@ -1338,12 +1476,12 @@ const ve = function(l) {
1338
1476
  * @param {*} [options] Override http request option.
1339
1477
  * @throws {RequiredError}
1340
1478
  */
1341
- listDataApps(a, t, o) {
1342
- return r.listDataApps(a, t, o).then((s) => s(e, n));
1479
+ listDataApps(a, r, o) {
1480
+ return t.listDataApps(a, r, o).then((s) => s(e, n));
1343
1481
  }
1344
1482
  };
1345
1483
  };
1346
- class be extends I {
1484
+ class Se extends I {
1347
1485
  /**
1348
1486
  * Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
1349
1487
  * @summary List package data apps
@@ -1353,11 +1491,11 @@ class be extends I {
1353
1491
  * @throws {RequiredError}
1354
1492
  * @memberof DataAppsApi
1355
1493
  */
1356
- listDataApps(n, e, r) {
1357
- return X(this.configuration).listDataApps(n, e, r).then((a) => a(this.axios, this.basePath));
1494
+ listDataApps(n, e, t) {
1495
+ return Z(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
1358
1496
  }
1359
1497
  }
1360
- const Ve = function(l) {
1498
+ const ye = function(l) {
1361
1499
  return {
1362
1500
  /**
1363
1501
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1368,22 +1506,22 @@ const Ve = function(l) {
1368
1506
  * @param {*} [options] Override http request option.
1369
1507
  * @throws {RequiredError}
1370
1508
  */
1371
- listDatabases: async (n, e, r, a = {}) => {
1509
+ listDatabases: async (n, e, t, a = {}) => {
1372
1510
  m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
1373
- const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
1511
+ const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
1374
1512
  let s;
1375
1513
  l && (s = l.baseOptions);
1376
1514
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1377
- r !== void 0 && (d.versionId = r), v(o, d);
1515
+ t !== void 0 && (d.versionId = t), P(o, d);
1378
1516
  let p = s && s.headers ? s.headers : {};
1379
1517
  return c.headers = { ...i, ...p, ...a.headers }, {
1380
- url: b(o),
1518
+ url: v(o),
1381
1519
  options: c
1382
1520
  };
1383
1521
  }
1384
1522
  };
1385
- }, Z = function(l) {
1386
- const n = Ve(l);
1523
+ }, ee = function(l) {
1524
+ const n = ye(l);
1387
1525
  return {
1388
1526
  /**
1389
1527
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1394,13 +1532,13 @@ const Ve = function(l) {
1394
1532
  * @param {*} [options] Override http request option.
1395
1533
  * @throws {RequiredError}
1396
1534
  */
1397
- async listDatabases(e, r, a, t) {
1398
- const o = await n.listDatabases(e, r, a, t), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1535
+ async listDatabases(e, t, a, r) {
1536
+ const o = await n.listDatabases(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1399
1537
  return (i, d) => V(o, h, u, l)(i, c || d);
1400
1538
  }
1401
1539
  };
1402
- }, Ba = function(l, n, e) {
1403
- const r = Z(l);
1540
+ }, za = function(l, n, e) {
1541
+ const t = ee(l);
1404
1542
  return {
1405
1543
  /**
1406
1544
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
@@ -1411,12 +1549,12 @@ const Ve = function(l) {
1411
1549
  * @param {*} [options] Override http request option.
1412
1550
  * @throws {RequiredError}
1413
1551
  */
1414
- listDatabases(a, t, o, s) {
1415
- return r.listDatabases(a, t, o, s).then((c) => c(e, n));
1552
+ listDatabases(a, r, o, s) {
1553
+ return t.listDatabases(a, r, o, s).then((c) => c(e, n));
1416
1554
  }
1417
1555
  };
1418
1556
  };
1419
- class Oe extends I {
1557
+ class ke extends I {
1420
1558
  /**
1421
1559
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
1422
1560
  * @summary List embedded databases
@@ -1427,11 +1565,11 @@ class Oe extends I {
1427
1565
  * @throws {RequiredError}
1428
1566
  * @memberof DatabasesApi
1429
1567
  */
1430
- listDatabases(n, e, r, a) {
1431
- return Z(this.configuration).listDatabases(n, e, r, a).then((t) => t(this.axios, this.basePath));
1568
+ listDatabases(n, e, t, a) {
1569
+ return ee(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
1432
1570
  }
1433
1571
  }
1434
- const Se = function(l) {
1572
+ const Ce = function(l) {
1435
1573
  return {
1436
1574
  /**
1437
1575
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1442,14 +1580,14 @@ const Se = function(l) {
1442
1580
  */
1443
1581
  createEnvironment: async (n, e = {}) => {
1444
1582
  m("createEnvironment", "environment", n);
1445
- const r = "/environments", a = new URL(r, P);
1446
- let t;
1447
- l && (t = l.baseOptions);
1448
- const o = { method: "POST", ...t, ...e }, s = {}, c = {};
1449
- s["Content-Type"] = "application/json", v(a, c);
1450
- let i = t && t.headers ? t.headers : {};
1583
+ const t = "/environments", a = new URL(t, b);
1584
+ let r;
1585
+ l && (r = l.baseOptions);
1586
+ const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1587
+ s["Content-Type"] = "application/json", P(a, c);
1588
+ let i = r && r.headers ? r.headers : {};
1451
1589
  return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1452
- url: b(a),
1590
+ url: v(a),
1453
1591
  options: o
1454
1592
  };
1455
1593
  },
@@ -1462,14 +1600,14 @@ const Se = function(l) {
1462
1600
  */
1463
1601
  deleteEnvironment: async (n, e = {}) => {
1464
1602
  m("deleteEnvironment", "environmentName", n);
1465
- const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, P);
1466
- let t;
1467
- l && (t = l.baseOptions);
1468
- const o = { method: "DELETE", ...t, ...e }, s = {};
1469
- v(a, {});
1470
- let i = t && t.headers ? t.headers : {};
1603
+ const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, b);
1604
+ let r;
1605
+ l && (r = l.baseOptions);
1606
+ const o = { method: "DELETE", ...r, ...e }, s = {};
1607
+ P(a, {});
1608
+ let i = r && r.headers ? r.headers : {};
1471
1609
  return o.headers = { ...s, ...i, ...e.headers }, {
1472
- url: b(a),
1610
+ url: v(a),
1473
1611
  options: o
1474
1612
  };
1475
1613
  },
@@ -1481,16 +1619,16 @@ const Se = function(l) {
1481
1619
  * @param {*} [options] Override http request option.
1482
1620
  * @throws {RequiredError}
1483
1621
  */
1484
- getEnvironment: async (n, e, r = {}) => {
1622
+ getEnvironment: async (n, e, t = {}) => {
1485
1623
  m("getEnvironment", "environmentName", n);
1486
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, P);
1624
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, b);
1487
1625
  let o;
1488
1626
  l && (o = l.baseOptions);
1489
- const s = { method: "GET", ...o, ...r }, c = {}, i = {};
1490
- e !== void 0 && (i.reload = e), v(t, i);
1627
+ const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1628
+ e !== void 0 && (i.reload = e), P(r, i);
1491
1629
  let d = o && o.headers ? o.headers : {};
1492
- return s.headers = { ...c, ...d, ...r.headers }, {
1493
- url: b(t),
1630
+ return s.headers = { ...c, ...d, ...t.headers }, {
1631
+ url: v(r),
1494
1632
  options: s
1495
1633
  };
1496
1634
  },
@@ -1501,15 +1639,15 @@ const Se = function(l) {
1501
1639
  * @throws {RequiredError}
1502
1640
  */
1503
1641
  listEnvironments: async (n = {}) => {
1504
- const e = "/environments", r = new URL(e, P);
1642
+ const e = "/environments", t = new URL(e, b);
1505
1643
  let a;
1506
1644
  l && (a = l.baseOptions);
1507
- const t = { method: "GET", ...a, ...n }, o = {};
1508
- v(r, {});
1645
+ const r = { method: "GET", ...a, ...n }, o = {};
1646
+ P(t, {});
1509
1647
  let c = a && a.headers ? a.headers : {};
1510
- return t.headers = { ...o, ...c, ...n.headers }, {
1511
- url: b(r),
1512
- options: t
1648
+ return r.headers = { ...o, ...c, ...n.headers }, {
1649
+ url: v(t),
1650
+ options: r
1513
1651
  };
1514
1652
  },
1515
1653
  /**
@@ -1520,22 +1658,22 @@ const Se = function(l) {
1520
1658
  * @param {*} [options] Override http request option.
1521
1659
  * @throws {RequiredError}
1522
1660
  */
1523
- updateEnvironment: async (n, e, r = {}) => {
1661
+ updateEnvironment: async (n, e, t = {}) => {
1524
1662
  m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
1525
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, P);
1663
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, b);
1526
1664
  let o;
1527
1665
  l && (o = l.baseOptions);
1528
- const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
1529
- c["Content-Type"] = "application/json", v(t, i);
1666
+ const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1667
+ c["Content-Type"] = "application/json", P(r, i);
1530
1668
  let d = o && o.headers ? o.headers : {};
1531
- return s.headers = { ...c, ...d, ...r.headers }, s.data = y(e, s, l), {
1532
- url: b(t),
1669
+ return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
1670
+ url: v(r),
1533
1671
  options: s
1534
1672
  };
1535
1673
  }
1536
1674
  };
1537
1675
  }, N = function(l) {
1538
- const n = Se(l);
1676
+ const n = Ce(l);
1539
1677
  return {
1540
1678
  /**
1541
1679
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1544,8 +1682,8 @@ const Se = function(l) {
1544
1682
  * @param {*} [options] Override http request option.
1545
1683
  * @throws {RequiredError}
1546
1684
  */
1547
- async createEnvironment(e, r) {
1548
- const a = await n.createEnvironment(e, r), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[t]?.url;
1685
+ async createEnvironment(e, t) {
1686
+ const a = await n.createEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[r]?.url;
1549
1687
  return (s, c) => V(a, h, u, l)(s, o || c);
1550
1688
  },
1551
1689
  /**
@@ -1555,8 +1693,8 @@ const Se = function(l) {
1555
1693
  * @param {*} [options] Override http request option.
1556
1694
  * @throws {RequiredError}
1557
1695
  */
1558
- async deleteEnvironment(e, r) {
1559
- const a = await n.deleteEnvironment(e, r), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
1696
+ async deleteEnvironment(e, t) {
1697
+ const a = await n.deleteEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
1560
1698
  return (s, c) => V(a, h, u, l)(s, o || c);
1561
1699
  },
1562
1700
  /**
@@ -1567,9 +1705,9 @@ const Se = function(l) {
1567
1705
  * @param {*} [options] Override http request option.
1568
1706
  * @throws {RequiredError}
1569
1707
  */
1570
- async getEnvironment(e, r, a) {
1571
- const t = await n.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1572
- return (c, i) => V(t, h, u, l)(c, s || i);
1708
+ async getEnvironment(e, t, a) {
1709
+ const r = await n.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1710
+ return (c, i) => V(r, h, u, l)(c, s || i);
1573
1711
  },
1574
1712
  /**
1575
1713
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
@@ -1578,8 +1716,8 @@ const Se = function(l) {
1578
1716
  * @throws {RequiredError}
1579
1717
  */
1580
1718
  async listEnvironments(e) {
1581
- const r = await n.listEnvironments(e), a = l?.serverIndex ?? 0, t = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1582
- return (o, s) => V(r, h, u, l)(o, t || s);
1719
+ const t = await n.listEnvironments(e), a = l?.serverIndex ?? 0, r = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1720
+ return (o, s) => V(t, h, u, l)(o, r || s);
1583
1721
  },
1584
1722
  /**
1585
1723
  * Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
@@ -1589,13 +1727,13 @@ const Se = function(l) {
1589
1727
  * @param {*} [options] Override http request option.
1590
1728
  * @throws {RequiredError}
1591
1729
  */
1592
- async updateEnvironment(e, r, a) {
1593
- const t = await n.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1594
- return (c, i) => V(t, h, u, l)(c, s || i);
1730
+ async updateEnvironment(e, t, a) {
1731
+ const r = await n.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1732
+ return (c, i) => V(r, h, u, l)(c, s || i);
1595
1733
  }
1596
1734
  };
1597
- }, Fa = function(l, n, e) {
1598
- const r = N(l);
1735
+ }, qa = function(l, n, e) {
1736
+ const t = N(l);
1599
1737
  return {
1600
1738
  /**
1601
1739
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -1604,8 +1742,8 @@ const Se = function(l) {
1604
1742
  * @param {*} [options] Override http request option.
1605
1743
  * @throws {RequiredError}
1606
1744
  */
1607
- createEnvironment(a, t) {
1608
- return r.createEnvironment(a, t).then((o) => o(e, n));
1745
+ createEnvironment(a, r) {
1746
+ return t.createEnvironment(a, r).then((o) => o(e, n));
1609
1747
  },
1610
1748
  /**
1611
1749
  * Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
@@ -1614,8 +1752,8 @@ const Se = function(l) {
1614
1752
  * @param {*} [options] Override http request option.
1615
1753
  * @throws {RequiredError}
1616
1754
  */
1617
- deleteEnvironment(a, t) {
1618
- return r.deleteEnvironment(a, t).then((o) => o(e, n));
1755
+ deleteEnvironment(a, r) {
1756
+ return t.deleteEnvironment(a, r).then((o) => o(e, n));
1619
1757
  },
1620
1758
  /**
1621
1759
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
@@ -1625,8 +1763,8 @@ const Se = function(l) {
1625
1763
  * @param {*} [options] Override http request option.
1626
1764
  * @throws {RequiredError}
1627
1765
  */
1628
- getEnvironment(a, t, o) {
1629
- return r.getEnvironment(a, t, o).then((s) => s(e, n));
1766
+ getEnvironment(a, r, o) {
1767
+ return t.getEnvironment(a, r, o).then((s) => s(e, n));
1630
1768
  },
1631
1769
  /**
1632
1770
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
@@ -1635,7 +1773,7 @@ const Se = function(l) {
1635
1773
  * @throws {RequiredError}
1636
1774
  */
1637
1775
  listEnvironments(a) {
1638
- return r.listEnvironments(a).then((t) => t(e, n));
1776
+ return t.listEnvironments(a).then((r) => r(e, n));
1639
1777
  },
1640
1778
  /**
1641
1779
  * Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
@@ -1645,12 +1783,12 @@ const Se = function(l) {
1645
1783
  * @param {*} [options] Override http request option.
1646
1784
  * @throws {RequiredError}
1647
1785
  */
1648
- updateEnvironment(a, t, o) {
1649
- return r.updateEnvironment(a, t, o).then((s) => s(e, n));
1786
+ updateEnvironment(a, r, o) {
1787
+ return t.updateEnvironment(a, r, o).then((s) => s(e, n));
1650
1788
  }
1651
1789
  };
1652
1790
  };
1653
- class ye extends I {
1791
+ class Ie extends I {
1654
1792
  /**
1655
1793
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
1656
1794
  * @summary Create a new environment
@@ -1660,7 +1798,7 @@ class ye extends I {
1660
1798
  * @memberof EnvironmentsApi
1661
1799
  */
1662
1800
  createEnvironment(n, e) {
1663
- return N(this.configuration).createEnvironment(n, e).then((r) => r(this.axios, this.basePath));
1801
+ return N(this.configuration).createEnvironment(n, e).then((t) => t(this.axios, this.basePath));
1664
1802
  }
1665
1803
  /**
1666
1804
  * Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
@@ -1671,7 +1809,7 @@ class ye extends I {
1671
1809
  * @memberof EnvironmentsApi
1672
1810
  */
1673
1811
  deleteEnvironment(n, e) {
1674
- return N(this.configuration).deleteEnvironment(n, e).then((r) => r(this.axios, this.basePath));
1812
+ return N(this.configuration).deleteEnvironment(n, e).then((t) => t(this.axios, this.basePath));
1675
1813
  }
1676
1814
  /**
1677
1815
  * Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
@@ -1682,8 +1820,8 @@ class ye extends I {
1682
1820
  * @throws {RequiredError}
1683
1821
  * @memberof EnvironmentsApi
1684
1822
  */
1685
- getEnvironment(n, e, r) {
1686
- return N(this.configuration).getEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
1823
+ getEnvironment(n, e, t) {
1824
+ return N(this.configuration).getEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
1687
1825
  }
1688
1826
  /**
1689
1827
  * Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
@@ -1704,11 +1842,11 @@ class ye extends I {
1704
1842
  * @throws {RequiredError}
1705
1843
  * @memberof EnvironmentsApi
1706
1844
  */
1707
- updateEnvironment(n, e, r) {
1708
- return N(this.configuration).updateEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
1845
+ updateEnvironment(n, e, t) {
1846
+ return N(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
1709
1847
  }
1710
1848
  }
1711
- const ke = function(l) {
1849
+ const xe = function(l) {
1712
1850
  return {
1713
1851
  /**
1714
1852
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -1719,16 +1857,16 @@ const ke = function(l) {
1719
1857
  * @param {*} [options] Override http request option.
1720
1858
  * @throws {RequiredError}
1721
1859
  */
1722
- createMaterialization: async (n, e, r, a = {}) => {
1860
+ createMaterialization: async (n, e, t, a = {}) => {
1723
1861
  m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
1724
- const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
1862
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
1725
1863
  let s;
1726
1864
  l && (s = l.baseOptions);
1727
1865
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
1728
- i["Content-Type"] = "application/json", v(o, d);
1866
+ i["Content-Type"] = "application/json", P(o, d);
1729
1867
  let p = s && s.headers ? s.headers : {};
1730
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
1731
- url: b(o),
1868
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
1869
+ url: v(o),
1732
1870
  options: c
1733
1871
  };
1734
1872
  },
@@ -1742,16 +1880,16 @@ const ke = function(l) {
1742
1880
  * @param {*} [options] Override http request option.
1743
1881
  * @throws {RequiredError}
1744
1882
  */
1745
- deleteMaterialization: async (n, e, r, a, t = {}) => {
1746
- m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", r);
1747
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
1883
+ deleteMaterialization: async (n, e, t, a, r = {}) => {
1884
+ m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
1885
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, b);
1748
1886
  let c;
1749
1887
  l && (c = l.baseOptions);
1750
- const i = { method: "DELETE", ...c, ...t }, d = {}, p = {};
1751
- a !== void 0 && (p.dropTables = a), v(s, p);
1888
+ const i = { method: "DELETE", ...c, ...r }, d = {}, p = {};
1889
+ a !== void 0 && (p.dropTables = a), P(s, p);
1752
1890
  let O = c && c.headers ? c.headers : {};
1753
- return i.headers = { ...d, ...O, ...t.headers }, {
1754
- url: b(s),
1891
+ return i.headers = { ...d, ...O, ...r.headers }, {
1892
+ url: v(s),
1755
1893
  options: i
1756
1894
  };
1757
1895
  },
@@ -1764,16 +1902,16 @@ const ke = function(l) {
1764
1902
  * @param {*} [options] Override http request option.
1765
1903
  * @throws {RequiredError}
1766
1904
  */
1767
- getMaterialization: async (n, e, r, a = {}) => {
1768
- m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", r);
1769
- const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(t, P);
1905
+ getMaterialization: async (n, e, t, a = {}) => {
1906
+ m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
1907
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r, b);
1770
1908
  let s;
1771
1909
  l && (s = l.baseOptions);
1772
1910
  const c = { method: "GET", ...s, ...a }, i = {};
1773
- v(o, {});
1911
+ P(o, {});
1774
1912
  let p = s && s.headers ? s.headers : {};
1775
1913
  return c.headers = { ...i, ...p, ...a.headers }, {
1776
- url: b(o),
1914
+ url: v(o),
1777
1915
  options: c
1778
1916
  };
1779
1917
  },
@@ -1786,16 +1924,16 @@ const ke = function(l) {
1786
1924
  * @param {*} [options] Override http request option.
1787
1925
  * @throws {RequiredError}
1788
1926
  */
1789
- listEnvironmentMaterializations: async (n, e, r, a = {}) => {
1927
+ listEnvironmentMaterializations: async (n, e, t, a = {}) => {
1790
1928
  m("listEnvironmentMaterializations", "environmentName", n);
1791
- const t = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(t, P);
1929
+ const r = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(r, b);
1792
1930
  let s;
1793
1931
  l && (s = l.baseOptions);
1794
1932
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1795
- e !== void 0 && (d.limit = e), r !== void 0 && (d.offset = r), v(o, d);
1933
+ e !== void 0 && (d.limit = e), t !== void 0 && (d.offset = t), P(o, d);
1796
1934
  let p = s && s.headers ? s.headers : {};
1797
1935
  return c.headers = { ...i, ...p, ...a.headers }, {
1798
- url: b(o),
1936
+ url: v(o),
1799
1937
  options: c
1800
1938
  };
1801
1939
  },
@@ -1809,16 +1947,16 @@ const ke = function(l) {
1809
1947
  * @param {*} [options] Override http request option.
1810
1948
  * @throws {RequiredError}
1811
1949
  */
1812
- listMaterializations: async (n, e, r, a, t = {}) => {
1950
+ listMaterializations: async (n, e, t, a, r = {}) => {
1813
1951
  m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
1814
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
1952
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
1815
1953
  let c;
1816
1954
  l && (c = l.baseOptions);
1817
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
1818
- r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), v(s, p);
1955
+ const i = { method: "GET", ...c, ...r }, d = {}, p = {};
1956
+ t !== void 0 && (p.limit = t), a !== void 0 && (p.offset = a), P(s, p);
1819
1957
  let O = c && c.headers ? c.headers : {};
1820
- return i.headers = { ...d, ...O, ...t.headers }, {
1821
- url: b(s),
1958
+ return i.headers = { ...d, ...O, ...r.headers }, {
1959
+ url: v(s),
1822
1960
  options: i
1823
1961
  };
1824
1962
  },
@@ -1832,22 +1970,22 @@ const ke = function(l) {
1832
1970
  * @param {*} [options] Override http request option.
1833
1971
  * @throws {RequiredError}
1834
1972
  */
1835
- materializationAction: async (n, e, r, a, t = {}) => {
1836
- m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", r), m("materializationAction", "action", a);
1837
- const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
1973
+ materializationAction: async (n, e, t, a, r = {}) => {
1974
+ m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
1975
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, b);
1838
1976
  let c;
1839
1977
  l && (c = l.baseOptions);
1840
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
1841
- a !== void 0 && (p.action = a), v(s, p);
1978
+ const i = { method: "POST", ...c, ...r }, d = {}, p = {};
1979
+ a !== void 0 && (p.action = a), P(s, p);
1842
1980
  let O = c && c.headers ? c.headers : {};
1843
- return i.headers = { ...d, ...O, ...t.headers }, {
1844
- url: b(s),
1981
+ return i.headers = { ...d, ...O, ...r.headers }, {
1982
+ url: v(s),
1845
1983
  options: i
1846
1984
  };
1847
1985
  }
1848
1986
  };
1849
1987
  }, A = function(l) {
1850
- const n = ke(l);
1988
+ const n = xe(l);
1851
1989
  return {
1852
1990
  /**
1853
1991
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -1858,8 +1996,8 @@ const ke = function(l) {
1858
1996
  * @param {*} [options] Override http request option.
1859
1997
  * @throws {RequiredError}
1860
1998
  */
1861
- async createMaterialization(e, r, a, t) {
1862
- const o = await n.createMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
1999
+ async createMaterialization(e, t, a, r) {
2000
+ const o = await n.createMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
1863
2001
  return (i, d) => V(o, h, u, l)(i, c || d);
1864
2002
  },
1865
2003
  /**
@@ -1872,8 +2010,8 @@ const ke = function(l) {
1872
2010
  * @param {*} [options] Override http request option.
1873
2011
  * @throws {RequiredError}
1874
2012
  */
1875
- async deleteMaterialization(e, r, a, t, o) {
1876
- const s = await n.deleteMaterialization(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
2013
+ async deleteMaterialization(e, t, a, r, o) {
2014
+ const s = await n.deleteMaterialization(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
1877
2015
  return (d, p) => V(s, h, u, l)(d, i || p);
1878
2016
  },
1879
2017
  /**
@@ -1885,8 +2023,8 @@ const ke = function(l) {
1885
2023
  * @param {*} [options] Override http request option.
1886
2024
  * @throws {RequiredError}
1887
2025
  */
1888
- async getMaterialization(e, r, a, t) {
1889
- const o = await n.getMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
2026
+ async getMaterialization(e, t, a, r) {
2027
+ const o = await n.getMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
1890
2028
  return (i, d) => V(o, h, u, l)(i, c || d);
1891
2029
  },
1892
2030
  /**
@@ -1898,8 +2036,8 @@ const ke = function(l) {
1898
2036
  * @param {*} [options] Override http request option.
1899
2037
  * @throws {RequiredError}
1900
2038
  */
1901
- async listEnvironmentMaterializations(e, r, a, t) {
1902
- const o = await n.listEnvironmentMaterializations(e, r, a, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;
2039
+ async listEnvironmentMaterializations(e, t, a, r) {
2040
+ const o = await n.listEnvironmentMaterializations(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;
1903
2041
  return (i, d) => V(o, h, u, l)(i, c || d);
1904
2042
  },
1905
2043
  /**
@@ -1912,8 +2050,8 @@ const ke = function(l) {
1912
2050
  * @param {*} [options] Override http request option.
1913
2051
  * @throws {RequiredError}
1914
2052
  */
1915
- async listMaterializations(e, r, a, t, o) {
1916
- const s = await n.listMaterializations(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
2053
+ async listMaterializations(e, t, a, r, o) {
2054
+ const s = await n.listMaterializations(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
1917
2055
  return (d, p) => V(s, h, u, l)(d, i || p);
1918
2056
  },
1919
2057
  /**
@@ -1926,13 +2064,13 @@ const ke = function(l) {
1926
2064
  * @param {*} [options] Override http request option.
1927
2065
  * @throws {RequiredError}
1928
2066
  */
1929
- async materializationAction(e, r, a, t, o) {
1930
- const s = await n.materializationAction(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
2067
+ async materializationAction(e, t, a, r, o) {
2068
+ const s = await n.materializationAction(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
1931
2069
  return (d, p) => V(s, h, u, l)(d, i || p);
1932
2070
  }
1933
2071
  };
1934
- }, Qa = function(l, n, e) {
1935
- const r = A(l);
2072
+ }, Da = function(l, n, e) {
2073
+ const t = A(l);
1936
2074
  return {
1937
2075
  /**
1938
2076
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
@@ -1943,8 +2081,8 @@ const ke = function(l) {
1943
2081
  * @param {*} [options] Override http request option.
1944
2082
  * @throws {RequiredError}
1945
2083
  */
1946
- createMaterialization(a, t, o, s) {
1947
- return r.createMaterialization(a, t, o, s).then((c) => c(e, n));
2084
+ createMaterialization(a, r, o, s) {
2085
+ return t.createMaterialization(a, r, o, s).then((c) => c(e, n));
1948
2086
  },
1949
2087
  /**
1950
2088
  * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
@@ -1956,8 +2094,8 @@ const ke = function(l) {
1956
2094
  * @param {*} [options] Override http request option.
1957
2095
  * @throws {RequiredError}
1958
2096
  */
1959
- deleteMaterialization(a, t, o, s, c) {
1960
- return r.deleteMaterialization(a, t, o, s, c).then((i) => i(e, n));
2097
+ deleteMaterialization(a, r, o, s, c) {
2098
+ return t.deleteMaterialization(a, r, o, s, c).then((i) => i(e, n));
1961
2099
  },
1962
2100
  /**
1963
2101
  *
@@ -1968,8 +2106,8 @@ const ke = function(l) {
1968
2106
  * @param {*} [options] Override http request option.
1969
2107
  * @throws {RequiredError}
1970
2108
  */
1971
- getMaterialization(a, t, o, s) {
1972
- return r.getMaterialization(a, t, o, s).then((c) => c(e, n));
2109
+ getMaterialization(a, r, o, s) {
2110
+ return t.getMaterialization(a, r, o, s).then((c) => c(e, n));
1973
2111
  },
1974
2112
  /**
1975
2113
  * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
@@ -1980,8 +2118,8 @@ const ke = function(l) {
1980
2118
  * @param {*} [options] Override http request option.
1981
2119
  * @throws {RequiredError}
1982
2120
  */
1983
- listEnvironmentMaterializations(a, t, o, s) {
1984
- return r.listEnvironmentMaterializations(a, t, o, s).then((c) => c(e, n));
2121
+ listEnvironmentMaterializations(a, r, o, s) {
2122
+ return t.listEnvironmentMaterializations(a, r, o, s).then((c) => c(e, n));
1985
2123
  },
1986
2124
  /**
1987
2125
  * Returns the materialization history for the package, ordered by most recent first.
@@ -1993,8 +2131,8 @@ const ke = function(l) {
1993
2131
  * @param {*} [options] Override http request option.
1994
2132
  * @throws {RequiredError}
1995
2133
  */
1996
- listMaterializations(a, t, o, s, c) {
1997
- return r.listMaterializations(a, t, o, s, c).then((i) => i(e, n));
2134
+ listMaterializations(a, r, o, s, c) {
2135
+ return t.listMaterializations(a, r, o, s, c).then((i) => i(e, n));
1998
2136
  },
1999
2137
  /**
2000
2138
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2006,12 +2144,12 @@ const ke = function(l) {
2006
2144
  * @param {*} [options] Override http request option.
2007
2145
  * @throws {RequiredError}
2008
2146
  */
2009
- materializationAction(a, t, o, s, c) {
2010
- return r.materializationAction(a, t, o, s, c).then((i) => i(e, n));
2147
+ materializationAction(a, r, o, s, c) {
2148
+ return t.materializationAction(a, r, o, s, c).then((i) => i(e, n));
2011
2149
  }
2012
2150
  };
2013
2151
  };
2014
- class Ce extends I {
2152
+ class Ae extends I {
2015
2153
  /**
2016
2154
  * Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
2017
2155
  * @summary Create a materialization
@@ -2022,8 +2160,8 @@ class Ce extends I {
2022
2160
  * @throws {RequiredError}
2023
2161
  * @memberof MaterializationsApi
2024
2162
  */
2025
- createMaterialization(n, e, r, a) {
2026
- return A(this.configuration).createMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
2163
+ createMaterialization(n, e, t, a) {
2164
+ return A(this.configuration).createMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2027
2165
  }
2028
2166
  /**
2029
2167
  * Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
@@ -2036,8 +2174,8 @@ class Ce extends I {
2036
2174
  * @throws {RequiredError}
2037
2175
  * @memberof MaterializationsApi
2038
2176
  */
2039
- deleteMaterialization(n, e, r, a, t) {
2040
- return A(this.configuration).deleteMaterialization(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2177
+ deleteMaterialization(n, e, t, a, r) {
2178
+ return A(this.configuration).deleteMaterialization(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2041
2179
  }
2042
2180
  /**
2043
2181
  *
@@ -2049,8 +2187,8 @@ class Ce extends I {
2049
2187
  * @throws {RequiredError}
2050
2188
  * @memberof MaterializationsApi
2051
2189
  */
2052
- getMaterialization(n, e, r, a) {
2053
- return A(this.configuration).getMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
2190
+ getMaterialization(n, e, t, a) {
2191
+ return A(this.configuration).getMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
2054
2192
  }
2055
2193
  /**
2056
2194
  * Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
@@ -2062,8 +2200,8 @@ class Ce extends I {
2062
2200
  * @throws {RequiredError}
2063
2201
  * @memberof MaterializationsApi
2064
2202
  */
2065
- listEnvironmentMaterializations(n, e, r, a) {
2066
- return A(this.configuration).listEnvironmentMaterializations(n, e, r, a).then((t) => t(this.axios, this.basePath));
2203
+ listEnvironmentMaterializations(n, e, t, a) {
2204
+ return A(this.configuration).listEnvironmentMaterializations(n, e, t, a).then((r) => r(this.axios, this.basePath));
2067
2205
  }
2068
2206
  /**
2069
2207
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2076,8 +2214,8 @@ class Ce extends I {
2076
2214
  * @throws {RequiredError}
2077
2215
  * @memberof MaterializationsApi
2078
2216
  */
2079
- listMaterializations(n, e, r, a, t) {
2080
- return A(this.configuration).listMaterializations(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2217
+ listMaterializations(n, e, t, a, r) {
2218
+ return A(this.configuration).listMaterializations(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2081
2219
  }
2082
2220
  /**
2083
2221
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2090,13 +2228,13 @@ class Ce extends I {
2090
2228
  * @throws {RequiredError}
2091
2229
  * @memberof MaterializationsApi
2092
2230
  */
2093
- materializationAction(n, e, r, a, t) {
2094
- return A(this.configuration).materializationAction(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2231
+ materializationAction(n, e, t, a, r) {
2232
+ return A(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2095
2233
  }
2096
2234
  }
2097
- const za = {
2235
+ const La = {
2098
2236
  Stop: "stop"
2099
- }, Ie = function(l) {
2237
+ }, Re = function(l) {
2100
2238
  return {
2101
2239
  /**
2102
2240
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -2108,16 +2246,16 @@ const za = {
2108
2246
  * @param {*} [options] Override http request option.
2109
2247
  * @throws {RequiredError}
2110
2248
  */
2111
- compileModelSource: async (n, e, r, a, t = {}) => {
2112
- m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", r), m("compileModelSource", "compileRequest", a);
2113
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2249
+ compileModelSource: async (n, e, t, a, r = {}) => {
2250
+ m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
2251
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, b);
2114
2252
  let c;
2115
2253
  l && (c = l.baseOptions);
2116
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2117
- d["Content-Type"] = "application/json", v(s, p);
2254
+ const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2255
+ d["Content-Type"] = "application/json", P(s, p);
2118
2256
  let O = c && c.headers ? c.headers : {};
2119
- return i.headers = { ...d, ...O, ...t.headers }, i.data = y(a, i, l), {
2120
- url: b(s),
2257
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
2258
+ url: v(s),
2121
2259
  options: i
2122
2260
  };
2123
2261
  },
@@ -2131,16 +2269,16 @@ const za = {
2131
2269
  * @param {*} [options] Override http request option.
2132
2270
  * @throws {RequiredError}
2133
2271
  */
2134
- executeQueryModel: async (n, e, r, a, t = {}) => {
2135
- m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", r), m("executeQueryModel", "queryRequest", a);
2136
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2272
+ executeQueryModel: async (n, e, t, a, r = {}) => {
2273
+ m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
2274
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, b);
2137
2275
  let c;
2138
2276
  l && (c = l.baseOptions);
2139
- const i = { method: "POST", ...c, ...t }, d = {}, p = {};
2140
- d["Content-Type"] = "application/json", v(s, p);
2277
+ const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2278
+ d["Content-Type"] = "application/json", P(s, p);
2141
2279
  let O = c && c.headers ? c.headers : {};
2142
- return i.headers = { ...d, ...O, ...t.headers }, i.data = y(a, i, l), {
2143
- url: b(s),
2280
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
2281
+ url: v(s),
2144
2282
  options: i
2145
2283
  };
2146
2284
  },
@@ -2154,16 +2292,16 @@ const za = {
2154
2292
  * @param {*} [options] Override http request option.
2155
2293
  * @throws {RequiredError}
2156
2294
  */
2157
- getModel: async (n, e, r, a, t = {}) => {
2158
- m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", r);
2159
- const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2295
+ getModel: async (n, e, t, a, r = {}) => {
2296
+ m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", t);
2297
+ const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, b);
2160
2298
  let c;
2161
2299
  l && (c = l.baseOptions);
2162
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2163
- a !== void 0 && (p.versionId = a), v(s, p);
2300
+ const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2301
+ a !== void 0 && (p.versionId = a), P(s, p);
2164
2302
  let O = c && c.headers ? c.headers : {};
2165
- return i.headers = { ...d, ...O, ...t.headers }, {
2166
- url: b(s),
2303
+ return i.headers = { ...d, ...O, ...r.headers }, {
2304
+ url: v(s),
2167
2305
  options: i
2168
2306
  };
2169
2307
  },
@@ -2176,22 +2314,22 @@ const za = {
2176
2314
  * @param {*} [options] Override http request option.
2177
2315
  * @throws {RequiredError}
2178
2316
  */
2179
- listModels: async (n, e, r, a = {}) => {
2317
+ listModels: async (n, e, t, a = {}) => {
2180
2318
  m("listModels", "environmentName", n), m("listModels", "packageName", e);
2181
- const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
2319
+ const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
2182
2320
  let s;
2183
2321
  l && (s = l.baseOptions);
2184
2322
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2185
- r !== void 0 && (d.versionId = r), v(o, d);
2323
+ t !== void 0 && (d.versionId = t), P(o, d);
2186
2324
  let p = s && s.headers ? s.headers : {};
2187
2325
  return c.headers = { ...i, ...p, ...a.headers }, {
2188
- url: b(o),
2326
+ url: v(o),
2189
2327
  options: c
2190
2328
  };
2191
2329
  }
2192
2330
  };
2193
- }, E = function(l) {
2194
- const n = Ie(l);
2331
+ }, w = function(l) {
2332
+ const n = Re(l);
2195
2333
  return {
2196
2334
  /**
2197
2335
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -2203,8 +2341,8 @@ const za = {
2203
2341
  * @param {*} [options] Override http request option.
2204
2342
  * @throws {RequiredError}
2205
2343
  */
2206
- async compileModelSource(e, r, a, t, o) {
2207
- const s = await n.compileModelSource(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2344
+ async compileModelSource(e, t, a, r, o) {
2345
+ const s = await n.compileModelSource(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2208
2346
  return (d, p) => V(s, h, u, l)(d, i || p);
2209
2347
  },
2210
2348
  /**
@@ -2217,8 +2355,8 @@ const za = {
2217
2355
  * @param {*} [options] Override http request option.
2218
2356
  * @throws {RequiredError}
2219
2357
  */
2220
- async executeQueryModel(e, r, a, t, o) {
2221
- const s = await n.executeQueryModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2358
+ async executeQueryModel(e, t, a, r, o) {
2359
+ const s = await n.executeQueryModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2222
2360
  return (d, p) => V(s, h, u, l)(d, i || p);
2223
2361
  },
2224
2362
  /**
@@ -2231,8 +2369,8 @@ const za = {
2231
2369
  * @param {*} [options] Override http request option.
2232
2370
  * @throws {RequiredError}
2233
2371
  */
2234
- async getModel(e, r, a, t, o) {
2235
- const s = await n.getModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2372
+ async getModel(e, t, a, r, o) {
2373
+ const s = await n.getModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2236
2374
  return (d, p) => V(s, h, u, l)(d, i || p);
2237
2375
  },
2238
2376
  /**
@@ -2244,13 +2382,13 @@ const za = {
2244
2382
  * @param {*} [options] Override http request option.
2245
2383
  * @throws {RequiredError}
2246
2384
  */
2247
- async listModels(e, r, a, t) {
2248
- const o = await n.listModels(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2385
+ async listModels(e, t, a, r) {
2386
+ const o = await n.listModels(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2249
2387
  return (i, d) => V(o, h, u, l)(i, c || d);
2250
2388
  }
2251
2389
  };
2252
- }, $a = function(l, n, e) {
2253
- const r = E(l);
2390
+ }, ja = function(l, n, e) {
2391
+ const t = w(l);
2254
2392
  return {
2255
2393
  /**
2256
2394
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
@@ -2262,8 +2400,8 @@ const za = {
2262
2400
  * @param {*} [options] Override http request option.
2263
2401
  * @throws {RequiredError}
2264
2402
  */
2265
- compileModelSource(a, t, o, s, c) {
2266
- return r.compileModelSource(a, t, o, s, c).then((i) => i(e, n));
2403
+ compileModelSource(a, r, o, s, c) {
2404
+ return t.compileModelSource(a, r, o, s, c).then((i) => i(e, n));
2267
2405
  },
2268
2406
  /**
2269
2407
  * 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.
@@ -2275,8 +2413,8 @@ const za = {
2275
2413
  * @param {*} [options] Override http request option.
2276
2414
  * @throws {RequiredError}
2277
2415
  */
2278
- executeQueryModel(a, t, o, s, c) {
2279
- return r.executeQueryModel(a, t, o, s, c).then((i) => i(e, n));
2416
+ executeQueryModel(a, r, o, s, c) {
2417
+ return t.executeQueryModel(a, r, o, s, c).then((i) => i(e, n));
2280
2418
  },
2281
2419
  /**
2282
2420
  * 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.
@@ -2288,8 +2426,8 @@ const za = {
2288
2426
  * @param {*} [options] Override http request option.
2289
2427
  * @throws {RequiredError}
2290
2428
  */
2291
- getModel(a, t, o, s, c) {
2292
- return r.getModel(a, t, o, s, c).then((i) => i(e, n));
2429
+ getModel(a, r, o, s, c) {
2430
+ return t.getModel(a, r, o, s, c).then((i) => i(e, n));
2293
2431
  },
2294
2432
  /**
2295
2433
  * 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.
@@ -2300,12 +2438,12 @@ const za = {
2300
2438
  * @param {*} [options] Override http request option.
2301
2439
  * @throws {RequiredError}
2302
2440
  */
2303
- listModels(a, t, o, s) {
2304
- return r.listModels(a, t, o, s).then((c) => c(e, n));
2441
+ listModels(a, r, o, s) {
2442
+ return t.listModels(a, r, o, s).then((c) => c(e, n));
2305
2443
  }
2306
2444
  };
2307
2445
  };
2308
- class xe extends I {
2446
+ class Ne extends I {
2309
2447
  /**
2310
2448
  * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
2311
2449
  * @summary Compile Malloy source code
@@ -2317,8 +2455,8 @@ class xe extends I {
2317
2455
  * @throws {RequiredError}
2318
2456
  * @memberof ModelsApi
2319
2457
  */
2320
- compileModelSource(n, e, r, a, t) {
2321
- return E(this.configuration).compileModelSource(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2458
+ compileModelSource(n, e, t, a, r) {
2459
+ return w(this.configuration).compileModelSource(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2322
2460
  }
2323
2461
  /**
2324
2462
  * 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.
@@ -2331,8 +2469,8 @@ class xe extends I {
2331
2469
  * @throws {RequiredError}
2332
2470
  * @memberof ModelsApi
2333
2471
  */
2334
- executeQueryModel(n, e, r, a, t) {
2335
- return E(this.configuration).executeQueryModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2472
+ executeQueryModel(n, e, t, a, r) {
2473
+ return w(this.configuration).executeQueryModel(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2336
2474
  }
2337
2475
  /**
2338
2476
  * 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.
@@ -2345,8 +2483,8 @@ class xe extends I {
2345
2483
  * @throws {RequiredError}
2346
2484
  * @memberof ModelsApi
2347
2485
  */
2348
- getModel(n, e, r, a, t) {
2349
- return E(this.configuration).getModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2486
+ getModel(n, e, t, a, r) {
2487
+ return w(this.configuration).getModel(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2350
2488
  }
2351
2489
  /**
2352
2490
  * 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.
@@ -2358,11 +2496,11 @@ class xe extends I {
2358
2496
  * @throws {RequiredError}
2359
2497
  * @memberof ModelsApi
2360
2498
  */
2361
- listModels(n, e, r, a) {
2362
- return E(this.configuration).listModels(n, e, r, a).then((t) => t(this.axios, this.basePath));
2499
+ listModels(n, e, t, a) {
2500
+ return w(this.configuration).listModels(n, e, t, a).then((r) => r(this.axios, this.basePath));
2363
2501
  }
2364
2502
  }
2365
- const Ae = function(l) {
2503
+ const Te = function(l) {
2366
2504
  return {
2367
2505
  /**
2368
2506
  * 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.
@@ -2378,16 +2516,16 @@ const Ae = function(l) {
2378
2516
  * @param {*} [options] Override http request option.
2379
2517
  * @throws {RequiredError}
2380
2518
  */
2381
- executeNotebookCell: async (n, e, r, a, t, o, s, c, i = {}) => {
2382
- m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", r), m("executeNotebookCell", "cellIndex", a);
2383
- const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, P);
2519
+ executeNotebookCell: async (n, e, t, a, r, o, s, c, i = {}) => {
2520
+ m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
2521
+ const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, b);
2384
2522
  let O;
2385
2523
  l && (O = l.baseOptions);
2386
2524
  const C = { method: "GET", ...O, ...i }, U = {}, x = {};
2387
- t !== void 0 && (x.versionId = t), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), v(p, x);
2388
- let z = O && O.headers ? O.headers : {};
2389
- return C.headers = { ...U, ...z, ...i.headers }, {
2390
- url: b(p),
2525
+ r !== void 0 && (x.versionId = r), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), P(p, x);
2526
+ let $ = O && O.headers ? O.headers : {};
2527
+ return C.headers = { ...U, ...$, ...i.headers }, {
2528
+ url: v(p),
2391
2529
  options: C
2392
2530
  };
2393
2531
  },
@@ -2401,16 +2539,16 @@ const Ae = function(l) {
2401
2539
  * @param {*} [options] Override http request option.
2402
2540
  * @throws {RequiredError}
2403
2541
  */
2404
- getNotebook: async (n, e, r, a, t = {}) => {
2405
- m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", r);
2406
- const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
2542
+ getNotebook: async (n, e, t, a, r = {}) => {
2543
+ m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
2544
+ const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, b);
2407
2545
  let c;
2408
2546
  l && (c = l.baseOptions);
2409
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2410
- a !== void 0 && (p.versionId = a), v(s, p);
2547
+ const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2548
+ a !== void 0 && (p.versionId = a), P(s, p);
2411
2549
  let O = c && c.headers ? c.headers : {};
2412
- return i.headers = { ...d, ...O, ...t.headers }, {
2413
- url: b(s),
2550
+ return i.headers = { ...d, ...O, ...r.headers }, {
2551
+ url: v(s),
2414
2552
  options: i
2415
2553
  };
2416
2554
  },
@@ -2423,22 +2561,22 @@ const Ae = function(l) {
2423
2561
  * @param {*} [options] Override http request option.
2424
2562
  * @throws {RequiredError}
2425
2563
  */
2426
- listNotebooks: async (n, e, r, a = {}) => {
2564
+ listNotebooks: async (n, e, t, a = {}) => {
2427
2565
  m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
2428
- const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
2566
+ const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
2429
2567
  let s;
2430
2568
  l && (s = l.baseOptions);
2431
2569
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2432
- r !== void 0 && (d.versionId = r), v(o, d);
2570
+ t !== void 0 && (d.versionId = t), P(o, d);
2433
2571
  let p = s && s.headers ? s.headers : {};
2434
2572
  return c.headers = { ...i, ...p, ...a.headers }, {
2435
- url: b(o),
2573
+ url: v(o),
2436
2574
  options: c
2437
2575
  };
2438
2576
  }
2439
2577
  };
2440
2578
  }, Q = function(l) {
2441
- const n = Ae(l);
2579
+ const n = Te(l);
2442
2580
  return {
2443
2581
  /**
2444
2582
  * 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.
@@ -2454,8 +2592,8 @@ const Ae = function(l) {
2454
2592
  * @param {*} [options] Override http request option.
2455
2593
  * @throws {RequiredError}
2456
2594
  */
2457
- async executeNotebookCell(e, r, a, t, o, s, c, i, d) {
2458
- const p = await n.executeNotebookCell(e, r, a, t, o, s, c, i, d), O = l?.serverIndex ?? 0, C = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
2595
+ async executeNotebookCell(e, t, a, r, o, s, c, i, d) {
2596
+ const p = await n.executeNotebookCell(e, t, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0, C = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
2459
2597
  return (U, x) => V(p, h, u, l)(U, C || x);
2460
2598
  },
2461
2599
  /**
@@ -2468,8 +2606,8 @@ const Ae = function(l) {
2468
2606
  * @param {*} [options] Override http request option.
2469
2607
  * @throws {RequiredError}
2470
2608
  */
2471
- async getNotebook(e, r, a, t, o) {
2472
- const s = await n.getNotebook(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2609
+ async getNotebook(e, t, a, r, o) {
2610
+ const s = await n.getNotebook(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2473
2611
  return (d, p) => V(s, h, u, l)(d, i || p);
2474
2612
  },
2475
2613
  /**
@@ -2481,13 +2619,13 @@ const Ae = function(l) {
2481
2619
  * @param {*} [options] Override http request option.
2482
2620
  * @throws {RequiredError}
2483
2621
  */
2484
- async listNotebooks(e, r, a, t) {
2485
- const o = await n.listNotebooks(e, r, a, t), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2622
+ async listNotebooks(e, t, a, r) {
2623
+ const o = await n.listNotebooks(e, t, a, r), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2486
2624
  return (i, d) => V(o, h, u, l)(i, c || d);
2487
2625
  }
2488
2626
  };
2489
- }, qa = function(l, n, e) {
2490
- const r = Q(l);
2627
+ }, Ha = function(l, n, e) {
2628
+ const t = Q(l);
2491
2629
  return {
2492
2630
  /**
2493
2631
  * 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.
@@ -2503,8 +2641,8 @@ const Ae = function(l) {
2503
2641
  * @param {*} [options] Override http request option.
2504
2642
  * @throws {RequiredError}
2505
2643
  */
2506
- executeNotebookCell(a, t, o, s, c, i, d, p, O) {
2507
- return r.executeNotebookCell(a, t, o, s, c, i, d, p, O).then((C) => C(e, n));
2644
+ executeNotebookCell(a, r, o, s, c, i, d, p, O) {
2645
+ return t.executeNotebookCell(a, r, o, s, c, i, d, p, O).then((C) => C(e, n));
2508
2646
  },
2509
2647
  /**
2510
2648
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2516,8 +2654,8 @@ const Ae = function(l) {
2516
2654
  * @param {*} [options] Override http request option.
2517
2655
  * @throws {RequiredError}
2518
2656
  */
2519
- getNotebook(a, t, o, s, c) {
2520
- return r.getNotebook(a, t, o, s, c).then((i) => i(e, n));
2657
+ getNotebook(a, r, o, s, c) {
2658
+ return t.getNotebook(a, r, o, s, c).then((i) => i(e, n));
2521
2659
  },
2522
2660
  /**
2523
2661
  * 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.
@@ -2528,12 +2666,12 @@ const Ae = function(l) {
2528
2666
  * @param {*} [options] Override http request option.
2529
2667
  * @throws {RequiredError}
2530
2668
  */
2531
- listNotebooks(a, t, o, s) {
2532
- return r.listNotebooks(a, t, o, s).then((c) => c(e, n));
2669
+ listNotebooks(a, r, o, s) {
2670
+ return t.listNotebooks(a, r, o, s).then((c) => c(e, n));
2533
2671
  }
2534
2672
  };
2535
2673
  };
2536
- class Re extends I {
2674
+ class Ue extends I {
2537
2675
  /**
2538
2676
  * 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.
2539
2677
  * @summary Execute a specific notebook cell
@@ -2549,8 +2687,8 @@ class Re extends I {
2549
2687
  * @throws {RequiredError}
2550
2688
  * @memberof NotebooksApi
2551
2689
  */
2552
- executeNotebookCell(n, e, r, a, t, o, s, c, i) {
2553
- return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, c, i).then((d) => d(this.axios, this.basePath));
2690
+ executeNotebookCell(n, e, t, a, r, o, s, c, i) {
2691
+ return Q(this.configuration).executeNotebookCell(n, e, t, a, r, o, s, c, i).then((d) => d(this.axios, this.basePath));
2554
2692
  }
2555
2693
  /**
2556
2694
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2563,8 +2701,8 @@ class Re extends I {
2563
2701
  * @throws {RequiredError}
2564
2702
  * @memberof NotebooksApi
2565
2703
  */
2566
- getNotebook(n, e, r, a, t) {
2567
- return Q(this.configuration).getNotebook(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2704
+ getNotebook(n, e, t, a, r) {
2705
+ return Q(this.configuration).getNotebook(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2568
2706
  }
2569
2707
  /**
2570
2708
  * 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.
@@ -2576,14 +2714,14 @@ class Re extends I {
2576
2714
  * @throws {RequiredError}
2577
2715
  * @memberof NotebooksApi
2578
2716
  */
2579
- listNotebooks(n, e, r, a) {
2580
- return Q(this.configuration).listNotebooks(n, e, r, a).then((t) => t(this.axios, this.basePath));
2717
+ listNotebooks(n, e, t, a) {
2718
+ return Q(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
2581
2719
  }
2582
2720
  }
2583
- const La = {
2721
+ const Wa = {
2584
2722
  True: "true",
2585
2723
  False: "false"
2586
- }, Ne = function(l) {
2724
+ }, we = function(l) {
2587
2725
  return {
2588
2726
  /**
2589
2727
  * Creates a new Malloy package within the specified environment. 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.
@@ -2593,16 +2731,16 @@ const La = {
2593
2731
  * @param {*} [options] Override http request option.
2594
2732
  * @throws {RequiredError}
2595
2733
  */
2596
- createPackage: async (n, e, r = {}) => {
2734
+ createPackage: async (n, e, t = {}) => {
2597
2735
  m("createPackage", "environmentName", n), m("createPackage", "_package", e);
2598
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, P);
2736
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, b);
2599
2737
  let o;
2600
2738
  l && (o = l.baseOptions);
2601
- const s = { method: "POST", ...o, ...r }, c = {}, i = {};
2602
- c["Content-Type"] = "application/json", v(t, i);
2739
+ const s = { method: "POST", ...o, ...t }, c = {}, i = {};
2740
+ c["Content-Type"] = "application/json", P(r, i);
2603
2741
  let d = o && o.headers ? o.headers : {};
2604
- return s.headers = { ...c, ...d, ...r.headers }, s.data = y(e, s, l), {
2605
- url: b(t),
2742
+ return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
2743
+ url: v(r),
2606
2744
  options: s
2607
2745
  };
2608
2746
  },
@@ -2614,16 +2752,16 @@ const La = {
2614
2752
  * @param {*} [options] Override http request option.
2615
2753
  * @throws {RequiredError}
2616
2754
  */
2617
- deletePackage: async (n, e, r = {}) => {
2755
+ deletePackage: async (n, e, t = {}) => {
2618
2756
  m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
2619
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, P);
2757
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, b);
2620
2758
  let o;
2621
2759
  l && (o = l.baseOptions);
2622
- const s = { method: "DELETE", ...o, ...r }, c = {};
2623
- v(t, {});
2760
+ const s = { method: "DELETE", ...o, ...t }, c = {};
2761
+ P(r, {});
2624
2762
  let d = o && o.headers ? o.headers : {};
2625
- return s.headers = { ...c, ...d, ...r.headers }, {
2626
- url: b(t),
2763
+ return s.headers = { ...c, ...d, ...t.headers }, {
2764
+ url: v(r),
2627
2765
  options: s
2628
2766
  };
2629
2767
  },
@@ -2637,16 +2775,16 @@ const La = {
2637
2775
  * @param {*} [options] Override http request option.
2638
2776
  * @throws {RequiredError}
2639
2777
  */
2640
- getPackage: async (n, e, r, a, t = {}) => {
2778
+ getPackage: async (n, e, t, a, r = {}) => {
2641
2779
  m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
2642
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2780
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
2643
2781
  let c;
2644
2782
  l && (c = l.baseOptions);
2645
- const i = { method: "GET", ...c, ...t }, d = {}, p = {};
2646
- r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), v(s, p);
2783
+ const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2784
+ t !== void 0 && (p.versionId = t), a !== void 0 && (p.reload = a), P(s, p);
2647
2785
  let O = c && c.headers ? c.headers : {};
2648
- return i.headers = { ...d, ...O, ...t.headers }, {
2649
- url: b(s),
2786
+ return i.headers = { ...d, ...O, ...r.headers }, {
2787
+ url: v(s),
2650
2788
  options: i
2651
2789
  };
2652
2790
  },
@@ -2659,14 +2797,14 @@ const La = {
2659
2797
  */
2660
2798
  listPackages: async (n, e = {}) => {
2661
2799
  m("listPackages", "environmentName", n);
2662
- const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, P);
2663
- let t;
2664
- l && (t = l.baseOptions);
2665
- const o = { method: "GET", ...t, ...e }, s = {};
2666
- v(a, {});
2667
- let i = t && t.headers ? t.headers : {};
2800
+ const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, b);
2801
+ let r;
2802
+ l && (r = l.baseOptions);
2803
+ const o = { method: "GET", ...r, ...e }, s = {};
2804
+ P(a, {});
2805
+ let i = r && r.headers ? r.headers : {};
2668
2806
  return o.headers = { ...s, ...i, ...e.headers }, {
2669
- url: b(a),
2807
+ url: v(a),
2670
2808
  options: o
2671
2809
  };
2672
2810
  },
@@ -2679,22 +2817,22 @@ const La = {
2679
2817
  * @param {*} [options] Override http request option.
2680
2818
  * @throws {RequiredError}
2681
2819
  */
2682
- updatePackage: async (n, e, r, a = {}) => {
2683
- m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", r);
2684
- const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
2820
+ updatePackage: async (n, e, t, a = {}) => {
2821
+ m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
2822
+ const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
2685
2823
  let s;
2686
2824
  l && (s = l.baseOptions);
2687
2825
  const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
2688
- i["Content-Type"] = "application/json", v(o, d);
2826
+ i["Content-Type"] = "application/json", P(o, d);
2689
2827
  let p = s && s.headers ? s.headers : {};
2690
- return c.headers = { ...i, ...p, ...a.headers }, c.data = y(r, c, l), {
2691
- url: b(o),
2828
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
2829
+ url: v(o),
2692
2830
  options: c
2693
2831
  };
2694
2832
  }
2695
2833
  };
2696
2834
  }, T = function(l) {
2697
- const n = Ne(l);
2835
+ const n = we(l);
2698
2836
  return {
2699
2837
  /**
2700
2838
  * Creates a new Malloy package within the specified environment. 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.
@@ -2704,9 +2842,9 @@ const La = {
2704
2842
  * @param {*} [options] Override http request option.
2705
2843
  * @throws {RequiredError}
2706
2844
  */
2707
- async createPackage(e, r, a) {
2708
- const t = await n.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
2709
- return (c, i) => V(t, h, u, l)(c, s || i);
2845
+ async createPackage(e, t, a) {
2846
+ const r = await n.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
2847
+ return (c, i) => V(r, h, u, l)(c, s || i);
2710
2848
  },
2711
2849
  /**
2712
2850
  * 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.
@@ -2716,9 +2854,9 @@ const La = {
2716
2854
  * @param {*} [options] Override http request option.
2717
2855
  * @throws {RequiredError}
2718
2856
  */
2719
- async deletePackage(e, r, a) {
2720
- const t = await n.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2721
- return (c, i) => V(t, h, u, l)(c, s || i);
2857
+ async deletePackage(e, t, a) {
2858
+ const r = await n.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2859
+ return (c, i) => V(r, h, u, l)(c, s || i);
2722
2860
  },
2723
2861
  /**
2724
2862
  * 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.
@@ -2730,8 +2868,8 @@ const La = {
2730
2868
  * @param {*} [options] Override http request option.
2731
2869
  * @throws {RequiredError}
2732
2870
  */
2733
- async getPackage(e, r, a, t, o) {
2734
- const s = await n.getPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2871
+ async getPackage(e, t, a, r, o) {
2872
+ const s = await n.getPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2735
2873
  return (d, p) => V(s, h, u, l)(d, i || p);
2736
2874
  },
2737
2875
  /**
@@ -2741,8 +2879,8 @@ const La = {
2741
2879
  * @param {*} [options] Override http request option.
2742
2880
  * @throws {RequiredError}
2743
2881
  */
2744
- async listPackages(e, r) {
2745
- const a = await n.listPackages(e, r), t = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[t]?.url;
2882
+ async listPackages(e, t) {
2883
+ const a = await n.listPackages(e, t), r = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[r]?.url;
2746
2884
  return (s, c) => V(a, h, u, l)(s, o || c);
2747
2885
  },
2748
2886
  /**
@@ -2754,13 +2892,13 @@ const La = {
2754
2892
  * @param {*} [options] Override http request option.
2755
2893
  * @throws {RequiredError}
2756
2894
  */
2757
- async updatePackage(e, r, a, t) {
2758
- const o = await n.updatePackage(e, r, a, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2895
+ async updatePackage(e, t, a, r) {
2896
+ const o = await n.updatePackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2759
2897
  return (i, d) => V(o, h, u, l)(i, c || d);
2760
2898
  }
2761
2899
  };
2762
- }, ja = function(l, n, e) {
2763
- const r = T(l);
2900
+ }, _a = function(l, n, e) {
2901
+ const t = T(l);
2764
2902
  return {
2765
2903
  /**
2766
2904
  * Creates a new Malloy package within the specified environment. 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.
@@ -2770,8 +2908,8 @@ const La = {
2770
2908
  * @param {*} [options] Override http request option.
2771
2909
  * @throws {RequiredError}
2772
2910
  */
2773
- createPackage(a, t, o) {
2774
- return r.createPackage(a, t, o).then((s) => s(e, n));
2911
+ createPackage(a, r, o) {
2912
+ return t.createPackage(a, r, o).then((s) => s(e, n));
2775
2913
  },
2776
2914
  /**
2777
2915
  * 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.
@@ -2781,8 +2919,8 @@ const La = {
2781
2919
  * @param {*} [options] Override http request option.
2782
2920
  * @throws {RequiredError}
2783
2921
  */
2784
- deletePackage(a, t, o) {
2785
- return r.deletePackage(a, t, o).then((s) => s(e, n));
2922
+ deletePackage(a, r, o) {
2923
+ return t.deletePackage(a, r, o).then((s) => s(e, n));
2786
2924
  },
2787
2925
  /**
2788
2926
  * 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.
@@ -2794,8 +2932,8 @@ const La = {
2794
2932
  * @param {*} [options] Override http request option.
2795
2933
  * @throws {RequiredError}
2796
2934
  */
2797
- getPackage(a, t, o, s, c) {
2798
- return r.getPackage(a, t, o, s, c).then((i) => i(e, n));
2935
+ getPackage(a, r, o, s, c) {
2936
+ return t.getPackage(a, r, o, s, c).then((i) => i(e, n));
2799
2937
  },
2800
2938
  /**
2801
2939
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
@@ -2804,8 +2942,8 @@ const La = {
2804
2942
  * @param {*} [options] Override http request option.
2805
2943
  * @throws {RequiredError}
2806
2944
  */
2807
- listPackages(a, t) {
2808
- return r.listPackages(a, t).then((o) => o(e, n));
2945
+ listPackages(a, r) {
2946
+ return t.listPackages(a, r).then((o) => o(e, n));
2809
2947
  },
2810
2948
  /**
2811
2949
  * 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. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
@@ -2816,12 +2954,12 @@ const La = {
2816
2954
  * @param {*} [options] Override http request option.
2817
2955
  * @throws {RequiredError}
2818
2956
  */
2819
- updatePackage(a, t, o, s) {
2820
- return r.updatePackage(a, t, o, s).then((c) => c(e, n));
2957
+ updatePackage(a, r, o, s) {
2958
+ return t.updatePackage(a, r, o, s).then((c) => c(e, n));
2821
2959
  }
2822
2960
  };
2823
2961
  };
2824
- class Te extends I {
2962
+ class Ee extends I {
2825
2963
  /**
2826
2964
  * Creates a new Malloy package within the specified environment. 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.
2827
2965
  * @summary Create a new package
@@ -2831,8 +2969,8 @@ class Te extends I {
2831
2969
  * @throws {RequiredError}
2832
2970
  * @memberof PackagesApi
2833
2971
  */
2834
- createPackage(n, e, r) {
2835
- return T(this.configuration).createPackage(n, e, r).then((a) => a(this.axios, this.basePath));
2972
+ createPackage(n, e, t) {
2973
+ return T(this.configuration).createPackage(n, e, t).then((a) => a(this.axios, this.basePath));
2836
2974
  }
2837
2975
  /**
2838
2976
  * 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.
@@ -2843,8 +2981,8 @@ class Te extends I {
2843
2981
  * @throws {RequiredError}
2844
2982
  * @memberof PackagesApi
2845
2983
  */
2846
- deletePackage(n, e, r) {
2847
- return T(this.configuration).deletePackage(n, e, r).then((a) => a(this.axios, this.basePath));
2984
+ deletePackage(n, e, t) {
2985
+ return T(this.configuration).deletePackage(n, e, t).then((a) => a(this.axios, this.basePath));
2848
2986
  }
2849
2987
  /**
2850
2988
  * 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.
@@ -2857,8 +2995,8 @@ class Te extends I {
2857
2995
  * @throws {RequiredError}
2858
2996
  * @memberof PackagesApi
2859
2997
  */
2860
- getPackage(n, e, r, a, t) {
2861
- return T(this.configuration).getPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
2998
+ getPackage(n, e, t, a, r) {
2999
+ return T(this.configuration).getPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2862
3000
  }
2863
3001
  /**
2864
3002
  * Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
@@ -2869,7 +3007,7 @@ class Te extends I {
2869
3007
  * @memberof PackagesApi
2870
3008
  */
2871
3009
  listPackages(n, e) {
2872
- return T(this.configuration).listPackages(n, e).then((r) => r(this.axios, this.basePath));
3010
+ return T(this.configuration).listPackages(n, e).then((t) => t(this.axios, this.basePath));
2873
3011
  }
2874
3012
  /**
2875
3013
  * 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. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
@@ -2881,11 +3019,11 @@ class Te extends I {
2881
3019
  * @throws {RequiredError}
2882
3020
  * @memberof PackagesApi
2883
3021
  */
2884
- updatePackage(n, e, r, a) {
2885
- return T(this.configuration).updatePackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
3022
+ updatePackage(n, e, t, a) {
3023
+ return T(this.configuration).updatePackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
2886
3024
  }
2887
3025
  }
2888
- const Ue = function(l) {
3026
+ const Me = function(l) {
2889
3027
  return {
2890
3028
  /**
2891
3029
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -2894,15 +3032,15 @@ const Ue = function(l) {
2894
3032
  * @throws {RequiredError}
2895
3033
  */
2896
3034
  deleteTheme: async (n = {}) => {
2897
- const e = "/theme", r = new URL(e, P);
3035
+ const e = "/theme", t = new URL(e, b);
2898
3036
  let a;
2899
3037
  l && (a = l.baseOptions);
2900
- const t = { method: "DELETE", ...a, ...n }, o = {};
2901
- v(r, {});
3038
+ const r = { method: "DELETE", ...a, ...n }, o = {};
3039
+ P(t, {});
2902
3040
  let c = a && a.headers ? a.headers : {};
2903
- return t.headers = { ...o, ...c, ...n.headers }, {
2904
- url: b(r),
2905
- options: t
3041
+ return r.headers = { ...o, ...c, ...n.headers }, {
3042
+ url: v(t),
3043
+ options: r
2906
3044
  };
2907
3045
  },
2908
3046
  /**
@@ -2912,15 +3050,15 @@ const Ue = function(l) {
2912
3050
  * @throws {RequiredError}
2913
3051
  */
2914
3052
  getStatus: async (n = {}) => {
2915
- const e = "/status", r = new URL(e, P);
3053
+ const e = "/status", t = new URL(e, b);
2916
3054
  let a;
2917
3055
  l && (a = l.baseOptions);
2918
- const t = { method: "GET", ...a, ...n }, o = {};
2919
- v(r, {});
3056
+ const r = { method: "GET", ...a, ...n }, o = {};
3057
+ P(t, {});
2920
3058
  let c = a && a.headers ? a.headers : {};
2921
- return t.headers = { ...o, ...c, ...n.headers }, {
2922
- url: b(r),
2923
- options: t
3059
+ return r.headers = { ...o, ...c, ...n.headers }, {
3060
+ url: v(t),
3061
+ options: r
2924
3062
  };
2925
3063
  },
2926
3064
  /**
@@ -2930,15 +3068,15 @@ const Ue = function(l) {
2930
3068
  * @throws {RequiredError}
2931
3069
  */
2932
3070
  getTheme: async (n = {}) => {
2933
- const e = "/theme", r = new URL(e, P);
3071
+ const e = "/theme", t = new URL(e, b);
2934
3072
  let a;
2935
3073
  l && (a = l.baseOptions);
2936
- const t = { method: "GET", ...a, ...n }, o = {};
2937
- v(r, {});
3074
+ const r = { method: "GET", ...a, ...n }, o = {};
3075
+ P(t, {});
2938
3076
  let c = a && a.headers ? a.headers : {};
2939
- return t.headers = { ...o, ...c, ...n.headers }, {
2940
- url: b(r),
2941
- options: t
3077
+ return r.headers = { ...o, ...c, ...n.headers }, {
3078
+ url: v(t),
3079
+ options: r
2942
3080
  };
2943
3081
  },
2944
3082
  /**
@@ -2950,20 +3088,20 @@ const Ue = function(l) {
2950
3088
  */
2951
3089
  updateTheme: async (n, e = {}) => {
2952
3090
  m("updateTheme", "theme", n);
2953
- const r = "/theme", a = new URL(r, P);
2954
- let t;
2955
- l && (t = l.baseOptions);
2956
- const o = { method: "PUT", ...t, ...e }, s = {}, c = {};
2957
- s["Content-Type"] = "application/json", v(a, c);
2958
- let i = t && t.headers ? t.headers : {};
3091
+ const t = "/theme", a = new URL(t, b);
3092
+ let r;
3093
+ l && (r = l.baseOptions);
3094
+ const o = { method: "PUT", ...r, ...e }, s = {}, c = {};
3095
+ s["Content-Type"] = "application/json", P(a, c);
3096
+ let i = r && r.headers ? r.headers : {};
2959
3097
  return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
2960
- url: b(a),
3098
+ url: v(a),
2961
3099
  options: o
2962
3100
  };
2963
3101
  }
2964
3102
  };
2965
- }, w = function(l) {
2966
- const n = Ue(l);
3103
+ }, E = function(l) {
3104
+ const n = Me(l);
2967
3105
  return {
2968
3106
  /**
2969
3107
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -2972,8 +3110,8 @@ const Ue = function(l) {
2972
3110
  * @throws {RequiredError}
2973
3111
  */
2974
3112
  async deleteTheme(e) {
2975
- const r = await n.deleteTheme(e), a = l?.serverIndex ?? 0, t = g["PublisherApi.deleteTheme"]?.[a]?.url;
2976
- return (o, s) => V(r, h, u, l)(o, t || s);
3113
+ const t = await n.deleteTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.deleteTheme"]?.[a]?.url;
3114
+ return (o, s) => V(t, h, u, l)(o, r || s);
2977
3115
  },
2978
3116
  /**
2979
3117
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -2982,8 +3120,8 @@ const Ue = function(l) {
2982
3120
  * @throws {RequiredError}
2983
3121
  */
2984
3122
  async getStatus(e) {
2985
- const r = await n.getStatus(e), a = l?.serverIndex ?? 0, t = g["PublisherApi.getStatus"]?.[a]?.url;
2986
- return (o, s) => V(r, h, u, l)(o, t || s);
3123
+ const t = await n.getStatus(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getStatus"]?.[a]?.url;
3124
+ return (o, s) => V(t, h, u, l)(o, r || s);
2987
3125
  },
2988
3126
  /**
2989
3127
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
@@ -2992,8 +3130,8 @@ const Ue = function(l) {
2992
3130
  * @throws {RequiredError}
2993
3131
  */
2994
3132
  async getTheme(e) {
2995
- const r = await n.getTheme(e), a = l?.serverIndex ?? 0, t = g["PublisherApi.getTheme"]?.[a]?.url;
2996
- return (o, s) => V(r, h, u, l)(o, t || s);
3133
+ const t = await n.getTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getTheme"]?.[a]?.url;
3134
+ return (o, s) => V(t, h, u, l)(o, r || s);
2997
3135
  },
2998
3136
  /**
2999
3137
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3002,13 +3140,13 @@ const Ue = function(l) {
3002
3140
  * @param {*} [options] Override http request option.
3003
3141
  * @throws {RequiredError}
3004
3142
  */
3005
- async updateTheme(e, r) {
3006
- const a = await n.updateTheme(e, r), t = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[t]?.url;
3143
+ async updateTheme(e, t) {
3144
+ const a = await n.updateTheme(e, t), r = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[r]?.url;
3007
3145
  return (s, c) => V(a, h, u, l)(s, o || c);
3008
3146
  }
3009
3147
  };
3010
- }, Da = function(l, n, e) {
3011
- const r = w(l);
3148
+ }, Ga = function(l, n, e) {
3149
+ const t = E(l);
3012
3150
  return {
3013
3151
  /**
3014
3152
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3017,7 +3155,7 @@ const Ue = function(l) {
3017
3155
  * @throws {RequiredError}
3018
3156
  */
3019
3157
  deleteTheme(a) {
3020
- return r.deleteTheme(a).then((t) => t(e, n));
3158
+ return t.deleteTheme(a).then((r) => r(e, n));
3021
3159
  },
3022
3160
  /**
3023
3161
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -3026,7 +3164,7 @@ const Ue = function(l) {
3026
3164
  * @throws {RequiredError}
3027
3165
  */
3028
3166
  getStatus(a) {
3029
- return r.getStatus(a).then((t) => t(e, n));
3167
+ return t.getStatus(a).then((r) => r(e, n));
3030
3168
  },
3031
3169
  /**
3032
3170
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
@@ -3035,7 +3173,7 @@ const Ue = function(l) {
3035
3173
  * @throws {RequiredError}
3036
3174
  */
3037
3175
  getTheme(a) {
3038
- return r.getTheme(a).then((t) => t(e, n));
3176
+ return t.getTheme(a).then((r) => r(e, n));
3039
3177
  },
3040
3178
  /**
3041
3179
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3044,12 +3182,12 @@ const Ue = function(l) {
3044
3182
  * @param {*} [options] Override http request option.
3045
3183
  * @throws {RequiredError}
3046
3184
  */
3047
- updateTheme(a, t) {
3048
- return r.updateTheme(a, t).then((o) => o(e, n));
3185
+ updateTheme(a, r) {
3186
+ return t.updateTheme(a, r).then((o) => o(e, n));
3049
3187
  }
3050
3188
  };
3051
3189
  };
3052
- class Ee extends I {
3190
+ class fe extends I {
3053
3191
  /**
3054
3192
  * Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
3055
3193
  * @summary Reset the instance theme to the boot seed or default
@@ -3058,7 +3196,7 @@ class Ee extends I {
3058
3196
  * @memberof PublisherApi
3059
3197
  */
3060
3198
  deleteTheme(n) {
3061
- return w(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
3199
+ return E(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
3062
3200
  }
3063
3201
  /**
3064
3202
  * Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
@@ -3068,7 +3206,7 @@ class Ee extends I {
3068
3206
  * @memberof PublisherApi
3069
3207
  */
3070
3208
  getStatus(n) {
3071
- return w(this.configuration).getStatus(n).then((e) => e(this.axios, this.basePath));
3209
+ return E(this.configuration).getStatus(n).then((e) => e(this.axios, this.basePath));
3072
3210
  }
3073
3211
  /**
3074
3212
  * Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
@@ -3078,7 +3216,7 @@ class Ee extends I {
3078
3216
  * @memberof PublisherApi
3079
3217
  */
3080
3218
  getTheme(n) {
3081
- return w(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
3219
+ return E(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
3082
3220
  }
3083
3221
  /**
3084
3222
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3089,10 +3227,10 @@ class Ee extends I {
3089
3227
  * @memberof PublisherApi
3090
3228
  */
3091
3229
  updateTheme(n, e) {
3092
- return w(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
3230
+ return E(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
3093
3231
  }
3094
3232
  }
3095
- const we = function(l) {
3233
+ const Be = function(l) {
3096
3234
  return {
3097
3235
  /**
3098
3236
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3101,15 +3239,15 @@ const we = function(l) {
3101
3239
  * @throws {RequiredError}
3102
3240
  */
3103
3241
  getWatchStatus: async (n = {}) => {
3104
- const e = "/watch-mode/status", r = new URL(e, P);
3242
+ const e = "/watch-mode/status", t = new URL(e, b);
3105
3243
  let a;
3106
3244
  l && (a = l.baseOptions);
3107
- const t = { method: "GET", ...a, ...n }, o = {};
3108
- v(r, {});
3245
+ const r = { method: "GET", ...a, ...n }, o = {};
3246
+ P(t, {});
3109
3247
  let c = a && a.headers ? a.headers : {};
3110
- return t.headers = { ...o, ...c, ...n.headers }, {
3111
- url: b(r),
3112
- options: t
3248
+ return r.headers = { ...o, ...c, ...n.headers }, {
3249
+ url: v(t),
3250
+ options: r
3113
3251
  };
3114
3252
  },
3115
3253
  /**
@@ -3121,14 +3259,14 @@ const we = function(l) {
3121
3259
  */
3122
3260
  startWatching: async (n, e = {}) => {
3123
3261
  m("startWatching", "startWatchRequest", n);
3124
- const r = "/watch-mode/start", a = new URL(r, P);
3125
- let t;
3126
- l && (t = l.baseOptions);
3127
- const o = { method: "POST", ...t, ...e }, s = {}, c = {};
3128
- s["Content-Type"] = "application/json", v(a, c);
3129
- let i = t && t.headers ? t.headers : {};
3262
+ const t = "/watch-mode/start", a = new URL(t, b);
3263
+ let r;
3264
+ l && (r = l.baseOptions);
3265
+ const o = { method: "POST", ...r, ...e }, s = {}, c = {};
3266
+ s["Content-Type"] = "application/json", P(a, c);
3267
+ let i = r && r.headers ? r.headers : {};
3130
3268
  return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
3131
- url: b(a),
3269
+ url: v(a),
3132
3270
  options: o
3133
3271
  };
3134
3272
  },
@@ -3139,15 +3277,15 @@ const we = function(l) {
3139
3277
  * @throws {RequiredError}
3140
3278
  */
3141
3279
  stopWatching: async (n = {}) => {
3142
- const e = "/watch-mode/stop", r = new URL(e, P);
3280
+ const e = "/watch-mode/stop", t = new URL(e, b);
3143
3281
  let a;
3144
3282
  l && (a = l.baseOptions);
3145
- const t = { method: "POST", ...a, ...n }, o = {};
3146
- v(r, {});
3283
+ const r = { method: "POST", ...a, ...n }, o = {};
3284
+ P(t, {});
3147
3285
  let c = a && a.headers ? a.headers : {};
3148
- return t.headers = { ...o, ...c, ...n.headers }, {
3149
- url: b(r),
3150
- options: t
3286
+ return r.headers = { ...o, ...c, ...n.headers }, {
3287
+ url: v(t),
3288
+ options: r
3151
3289
  };
3152
3290
  },
3153
3291
  /**
@@ -3158,22 +3296,22 @@ const we = function(l) {
3158
3296
  * @param {*} [options] Override http request option.
3159
3297
  * @throws {RequiredError}
3160
3298
  */
3161
- streamPackageEvents: async (n, e, r = {}) => {
3299
+ streamPackageEvents: async (n, e, t = {}) => {
3162
3300
  m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
3163
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, P);
3301
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, b);
3164
3302
  let o;
3165
3303
  l && (o = l.baseOptions);
3166
- const s = { method: "GET", ...o, ...r }, c = {};
3167
- v(t, {});
3304
+ const s = { method: "GET", ...o, ...t }, c = {};
3305
+ P(r, {});
3168
3306
  let d = o && o.headers ? o.headers : {};
3169
- return s.headers = { ...c, ...d, ...r.headers }, {
3170
- url: b(t),
3307
+ return s.headers = { ...c, ...d, ...t.headers }, {
3308
+ url: v(r),
3171
3309
  options: s
3172
3310
  };
3173
3311
  }
3174
3312
  };
3175
3313
  }, M = function(l) {
3176
- const n = we(l);
3314
+ const n = Be(l);
3177
3315
  return {
3178
3316
  /**
3179
3317
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3182,8 +3320,8 @@ const we = function(l) {
3182
3320
  * @throws {RequiredError}
3183
3321
  */
3184
3322
  async getWatchStatus(e) {
3185
- const r = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, t = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
3186
- return (o, s) => V(r, h, u, l)(o, t || s);
3323
+ const t = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
3324
+ return (o, s) => V(t, h, u, l)(o, r || s);
3187
3325
  },
3188
3326
  /**
3189
3327
  * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
@@ -3192,8 +3330,8 @@ const we = function(l) {
3192
3330
  * @param {*} [options] Override http request option.
3193
3331
  * @throws {RequiredError}
3194
3332
  */
3195
- async startWatching(e, r) {
3196
- const a = await n.startWatching(e, r), t = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[t]?.url;
3333
+ async startWatching(e, t) {
3334
+ const a = await n.startWatching(e, t), r = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[r]?.url;
3197
3335
  return (s, c) => V(a, h, u, l)(s, o || c);
3198
3336
  },
3199
3337
  /**
@@ -3203,8 +3341,8 @@ const we = function(l) {
3203
3341
  * @throws {RequiredError}
3204
3342
  */
3205
3343
  async stopWatching(e) {
3206
- const r = await n.stopWatching(e), a = l?.serverIndex ?? 0, t = g["WatchModeApi.stopWatching"]?.[a]?.url;
3207
- return (o, s) => V(r, h, u, l)(o, t || s);
3344
+ const t = await n.stopWatching(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.stopWatching"]?.[a]?.url;
3345
+ return (o, s) => V(t, h, u, l)(o, r || s);
3208
3346
  },
3209
3347
  /**
3210
3348
  * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
@@ -3214,13 +3352,13 @@ const we = function(l) {
3214
3352
  * @param {*} [options] Override http request option.
3215
3353
  * @throws {RequiredError}
3216
3354
  */
3217
- async streamPackageEvents(e, r, a) {
3218
- const t = await n.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3219
- return (c, i) => V(t, h, u, l)(c, s || i);
3355
+ async streamPackageEvents(e, t, a) {
3356
+ const r = await n.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3357
+ return (c, i) => V(r, h, u, l)(c, s || i);
3220
3358
  }
3221
3359
  };
3222
- }, Ha = function(l, n, e) {
3223
- const r = M(l);
3360
+ }, Ya = function(l, n, e) {
3361
+ const t = M(l);
3224
3362
  return {
3225
3363
  /**
3226
3364
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
@@ -3229,7 +3367,7 @@ const we = function(l) {
3229
3367
  * @throws {RequiredError}
3230
3368
  */
3231
3369
  getWatchStatus(a) {
3232
- return r.getWatchStatus(a).then((t) => t(e, n));
3370
+ return t.getWatchStatus(a).then((r) => r(e, n));
3233
3371
  },
3234
3372
  /**
3235
3373
  * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
@@ -3238,8 +3376,8 @@ const we = function(l) {
3238
3376
  * @param {*} [options] Override http request option.
3239
3377
  * @throws {RequiredError}
3240
3378
  */
3241
- startWatching(a, t) {
3242
- return r.startWatching(a, t).then((o) => o(e, n));
3379
+ startWatching(a, r) {
3380
+ return t.startWatching(a, r).then((o) => o(e, n));
3243
3381
  },
3244
3382
  /**
3245
3383
  * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
@@ -3248,7 +3386,7 @@ const we = function(l) {
3248
3386
  * @throws {RequiredError}
3249
3387
  */
3250
3388
  stopWatching(a) {
3251
- return r.stopWatching(a).then((t) => t(e, n));
3389
+ return t.stopWatching(a).then((r) => r(e, n));
3252
3390
  },
3253
3391
  /**
3254
3392
  * Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
@@ -3258,12 +3396,12 @@ const we = function(l) {
3258
3396
  * @param {*} [options] Override http request option.
3259
3397
  * @throws {RequiredError}
3260
3398
  */
3261
- streamPackageEvents(a, t, o) {
3262
- return r.streamPackageEvents(a, t, o).then((s) => s(e, n));
3399
+ streamPackageEvents(a, r, o) {
3400
+ return t.streamPackageEvents(a, r, o).then((s) => s(e, n));
3263
3401
  }
3264
3402
  };
3265
3403
  };
3266
- class Me extends I {
3404
+ class Fe extends I {
3267
3405
  /**
3268
3406
  * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
3269
3407
  * @summary Get watch mode status
@@ -3283,7 +3421,7 @@ class Me extends I {
3283
3421
  * @memberof WatchModeApi
3284
3422
  */
3285
3423
  startWatching(n, e) {
3286
- return M(this.configuration).startWatching(n, e).then((r) => r(this.axios, this.basePath));
3424
+ return M(this.configuration).startWatching(n, e).then((t) => t(this.axios, this.basePath));
3287
3425
  }
3288
3426
  /**
3289
3427
  * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
@@ -3304,11 +3442,11 @@ class Me extends I {
3304
3442
  * @throws {RequiredError}
3305
3443
  * @memberof WatchModeApi
3306
3444
  */
3307
- streamPackageEvents(n, e, r) {
3308
- return M(this.configuration).streamPackageEvents(n, e, r).then((a) => a(this.axios, this.basePath));
3445
+ streamPackageEvents(n, e, t) {
3446
+ return M(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
3309
3447
  }
3310
3448
  }
3311
- class fe {
3449
+ class Qe {
3312
3450
  /**
3313
3451
  * parameter for apiKey security
3314
3452
  * @param name security name
@@ -3390,26 +3528,30 @@ class fe {
3390
3528
  }
3391
3529
  const B = {
3392
3530
  teal: "#14b3cb",
3393
- // light wing of the M (governed reports)
3531
+ // light wing of the M
3394
3532
  orange: "#e47404",
3395
- // right wing of the M (semantic models)
3533
+ // right wing of the M
3396
3534
  darkBlue: "#1474a4"
3397
- // deep shadow of the M (package data)
3398
- }, Wa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', _a = k(Y)({
3535
+ // deep shadow of the M
3536
+ }, Ja = {
3537
+ violet: "#7c4dcc",
3538
+ magenta: "#c2478f",
3539
+ moss: "#5c8f3f"
3540
+ }, Ka = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Xa = k(J)({
3399
3541
  display: "flex",
3400
3542
  flexDirection: "column",
3401
3543
  height: "100%",
3402
3544
  boxShadow: "none",
3403
3545
  border: "none",
3404
3546
  backgroundColor: "transparent"
3405
- }), Ga = k(J)({
3547
+ }), Za = k(K)({
3406
3548
  display: "flex",
3407
3549
  flexDirection: "column",
3408
3550
  padding: "0",
3409
3551
  flexGrow: 1
3410
- }), Ya = k(me)({
3552
+ }), et = k(he)({
3411
3553
  padding: "0"
3412
- }), Ja = k("div")(({ theme: l }) => ({
3554
+ }), at = k("div")(({ theme: l }) => ({
3413
3555
  backgroundColor: l.palette.background.default,
3414
3556
  padding: "0 8px 0px 8px",
3415
3557
  borderRadius: "12px",
@@ -3423,19 +3565,19 @@ k("div")(({ theme: l }) => ({
3423
3565
  paddingBottom: "24px",
3424
3566
  borderBottom: `1px solid ${l.palette.divider}`
3425
3567
  }));
3426
- const Ka = k("div")({
3568
+ const tt = k("div")({
3427
3569
  marginBottom: "48px",
3428
3570
  padding: "0",
3429
3571
  backgroundColor: "transparent",
3430
3572
  border: "none",
3431
3573
  boxShadow: "none"
3432
- }), Xa = k("div")({
3574
+ }), rt = k("div")({
3433
3575
  marginBottom: "0",
3434
3576
  padding: "0",
3435
3577
  backgroundColor: "transparent",
3436
3578
  border: "none",
3437
3579
  boxShadow: "none"
3438
- }), Za = k("div")({
3580
+ }), nt = k("div")({
3439
3581
  backgroundColor: "transparent",
3440
3582
  paddingTop: "12px",
3441
3583
  paddingBottom: "2px",
@@ -3465,7 +3607,7 @@ k("div")(({ theme: l }) => ({
3465
3607
  justifyContent: "space-between",
3466
3608
  alignItems: "center"
3467
3609
  }));
3468
- const et = k("div")({
3610
+ const ot = k("div")({
3469
3611
  height: "100%"
3470
3612
  });
3471
3613
  k("div")({
@@ -3475,7 +3617,7 @@ k("div")({
3475
3617
  padding: "4px",
3476
3618
  alignItems: "center"
3477
3619
  });
3478
- const at = k("div")({
3620
+ const st = k("div")({
3479
3621
  height: "75vh",
3480
3622
  width: "100%",
3481
3623
  overflowY: "auto"
@@ -3485,7 +3627,7 @@ k("div")({
3485
3627
  height: "100%",
3486
3628
  flex: "0 0 auto"
3487
3629
  });
3488
- const tt = k(Y)(({ theme: l }) => ({
3630
+ const lt = k(J)(({ theme: l }) => ({
3489
3631
  backgroundColor: l.palette.background.paper,
3490
3632
  padding: "24px",
3491
3633
  borderRadius: "8px",
@@ -3496,12 +3638,12 @@ const tt = k(Y)(({ theme: l }) => ({
3496
3638
  "&:hover": {
3497
3639
  boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
3498
3640
  }
3499
- })), nt = k(J)({
3641
+ })), ct = k(K)({
3500
3642
  padding: "0",
3501
3643
  "&:last-child": {
3502
3644
  paddingBottom: "0"
3503
3645
  }
3504
- }), rt = k("div")(({ theme: l }) => ({
3646
+ }), it = k("div")(({ theme: l }) => ({
3505
3647
  fontSize: "0.875rem",
3506
3648
  fontWeight: 500,
3507
3649
  color: l.palette.text.secondary,
@@ -3515,7 +3657,7 @@ k("div")({
3515
3657
  margin: "0 auto",
3516
3658
  minHeight: "100vh"
3517
3659
  });
3518
- const Be = [
3660
+ const $e = [
3519
3661
  B.teal,
3520
3662
  B.orange,
3521
3663
  B.darkBlue,
@@ -3524,11 +3666,11 @@ const Be = [
3524
3666
  "#f9c85b",
3525
3667
  "#aacd85",
3526
3668
  "#b87ced"
3527
- ], Fe = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
3669
+ ], ze = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", _ = {
3528
3670
  defaultMode: "light",
3529
3671
  allowUserToggle: !0,
3530
3672
  palette: {
3531
- series: Be,
3673
+ series: $e,
3532
3674
  background: {
3533
3675
  light: "#ffffff",
3534
3676
  // Slate to match the Publisher app's sidebar surface so
@@ -3573,10 +3715,10 @@ const Be = [
3573
3715
  }
3574
3716
  },
3575
3717
  font: {
3576
- family: Fe,
3718
+ family: ze,
3577
3719
  size: 12
3578
3720
  }
3579
- }, Qe = [
3721
+ }, qe = [
3580
3722
  "background",
3581
3723
  "tableHeader",
3582
3724
  "tableHeaderBackground",
@@ -3585,12 +3727,12 @@ const Be = [
3585
3727
  "tileTitle",
3586
3728
  "mapColor"
3587
3729
  ];
3588
- function ee(l, n) {
3589
- const e = W.palette ?? {}, r = W.font ?? {
3730
+ function ae(l, n) {
3731
+ const e = _.palette ?? {}, t = _.font ?? {
3590
3732
  family: "sans-serif",
3591
3733
  size: 12
3592
3734
  };
3593
- let a = [...e.series ?? []], t = r.family ?? "sans-serif", o = r.size ?? 12;
3735
+ let a = [...e.series ?? []], r = t.family ?? "sans-serif", o = t.size ?? 12;
3594
3736
  const s = {
3595
3737
  background: { ...e.background ?? {} },
3596
3738
  tableHeader: { ...e.tableHeader ?? {} },
@@ -3605,17 +3747,17 @@ function ee(l, n) {
3605
3747
  for (const p of l)
3606
3748
  if (p) {
3607
3749
  Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
3608
- for (const O of Qe) {
3750
+ for (const O of qe) {
3609
3751
  const C = p.palette?.[O];
3610
3752
  C && (s[O] = { ...s[O], ...C });
3611
3753
  }
3612
- typeof p.font?.family == "string" && (t = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
3754
+ typeof p.font?.family == "string" && (r = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
3613
3755
  }
3614
3756
  const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
3615
3757
  return {
3616
3758
  mode: n,
3617
3759
  series: a,
3618
- font: { family: t, size: o },
3760
+ font: { family: r, size: o },
3619
3761
  background: d,
3620
3762
  tableHeader: i("tableHeader"),
3621
3763
  tableHeaderBackground: i("tableHeaderBackground"),
@@ -3641,32 +3783,35 @@ function ee(l, n) {
3641
3783
  // chrome. Intentionally NOT tied to `palette.background`: the
3642
3784
  // panel stays neutral so a bold accent on the chart canvas
3643
3785
  // doesn't bleed into the surrounding chrome.
3644
- dashboardRoot: c ? "#1e293b" : "#ffffff"
3786
+ dashboardRoot: c ? "#1e293b" : "#ffffff",
3787
+ // Drill link hover. Light is Malloyyo's own blue, so the same drill reads
3788
+ // the same in both; dark lightens it for contrast on the slate panel.
3789
+ drillLink: c ? "#60a5fa" : "#2563eb"
3645
3790
  };
3646
3791
  }
3647
- function ze(l, n, e) {
3648
- const r = n ?? l ?? "light";
3649
- return r === "auto" ? e ? "dark" : "light" : r;
3792
+ function De(l, n, e) {
3793
+ const t = n ?? l ?? "light";
3794
+ return t === "auto" ? e ? "dark" : "light" : t;
3650
3795
  }
3651
- const ae = _(void 0);
3652
- function $e({
3796
+ const te = G(void 0);
3797
+ function Le({
3653
3798
  layers: l,
3654
3799
  mode: n,
3655
3800
  userChoice: e,
3656
- setMode: r,
3801
+ setMode: t,
3657
3802
  allowUserToggle: a = !0,
3658
- children: t
3803
+ children: r
3659
3804
  }) {
3660
- const o = f(() => ee(l, n), [l, n]), s = f(
3661
- () => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: r, allowUserToggle: a }),
3662
- [o, l, n, e, r, a]
3805
+ const o = f(() => ae(l, n), [l, n]), s = f(
3806
+ () => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
3807
+ [o, l, n, e, t, a]
3663
3808
  );
3664
- return /* @__PURE__ */ F(ae.Provider, { value: s, children: t });
3809
+ return /* @__PURE__ */ F(te.Provider, { value: s, children: r });
3665
3810
  }
3666
- function ot() {
3667
- const l = G(ae);
3811
+ function dt() {
3812
+ const l = Y(te);
3668
3813
  return l || {
3669
- theme: ee([], "light"),
3814
+ theme: ae([], "light"),
3670
3815
  layers: [],
3671
3816
  mode: "light",
3672
3817
  userChoice: void 0,
@@ -3675,7 +3820,7 @@ function ot() {
3675
3820
  allowUserToggle: !1
3676
3821
  };
3677
3822
  }
3678
- const qe = new le({
3823
+ const je = new ce({
3679
3824
  defaultOptions: {
3680
3825
  queries: {
3681
3826
  retry: !1,
@@ -3686,12 +3831,12 @@ const qe = new le({
3686
3831
  throwOnError: !1
3687
3832
  }
3688
3833
  }
3689
- }), st = {
3834
+ }), pt = {
3690
3835
  staleTime: 300 * 1e3,
3691
3836
  refetchOnWindowFocus: !1,
3692
3837
  refetchOnReconnect: !1
3693
3838
  }, L = "publisher:themeMode";
3694
- function Le() {
3839
+ function He() {
3695
3840
  if (!(typeof window > "u"))
3696
3841
  try {
3697
3842
  const l = window.localStorage.getItem(L);
@@ -3699,211 +3844,217 @@ function Le() {
3699
3844
  } catch {
3700
3845
  }
3701
3846
  }
3702
- function je(l) {
3847
+ function We(l) {
3703
3848
  if (!(typeof window > "u"))
3704
3849
  try {
3705
3850
  l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
3706
3851
  } catch {
3707
3852
  }
3708
3853
  }
3709
- function De() {
3854
+ function _e() {
3710
3855
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3711
3856
  }
3712
3857
  h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3713
- const te = _(void 0), He = (l, n) => {
3714
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = h.create({
3858
+ const re = G(void 0), Ge = (l, n) => {
3859
+ const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = h.create({
3715
3860
  baseURL: l || e,
3716
3861
  withCredentials: !0,
3717
3862
  timeout: 6e5
3718
3863
  });
3719
- r.interceptors.request.use(async (t) => {
3864
+ t.interceptors.request.use(async (r) => {
3720
3865
  const o = await n?.();
3721
- return t.headers.Authorization = o || "", t;
3866
+ return r.headers.Authorization = o || "", r;
3722
3867
  });
3723
- const a = new fe({ basePath: e });
3868
+ const a = new Qe({ basePath: e });
3724
3869
  return {
3725
- models: new xe(a, e, r),
3726
- publisher: new Ee(a, e, r),
3727
- environments: new ye(a, e, r),
3728
- packages: new Te(a, e, r),
3729
- dataApps: new be(a, e, r),
3730
- notebooks: new Re(a, e, r),
3731
- connections: new ge(a, e, r),
3732
- databases: new Oe(a, e, r),
3733
- materializations: new Ce(
3870
+ models: new Ne(a, e, t),
3871
+ publisher: new fe(a, e, t),
3872
+ environments: new Ie(a, e, t),
3873
+ packages: new Ee(a, e, t),
3874
+ dashboards: new Ve(a, e, t),
3875
+ dataApps: new Se(a, e, t),
3876
+ notebooks: new Ue(a, e, t),
3877
+ connections: new be(a, e, t),
3878
+ databases: new ke(a, e, t),
3879
+ materializations: new Ae(
3734
3880
  a,
3735
3881
  e,
3736
- r
3882
+ t
3737
3883
  ),
3738
- watchMode: new Me(a, e, r)
3884
+ watchMode: new Fe(a, e, t)
3739
3885
  };
3740
- }, lt = (l) => /* @__PURE__ */ F(ce, { client: qe, children: /* @__PURE__ */ F(We, { ...l }) }), We = ({
3886
+ }, mt = (l) => /* @__PURE__ */ F(ie, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3741
3887
  children: l,
3742
3888
  getAccessToken: n,
3743
3889
  baseURL: e,
3744
- mutable: r,
3890
+ mutable: t,
3745
3891
  theme: a
3746
3892
  }) => {
3747
- const t = f(
3748
- () => He(e, n),
3893
+ const r = f(
3894
+ () => Ge(e, n),
3749
3895
  [e, n]
3750
- ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = ie({
3896
+ ), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = de({
3751
3897
  queryKey: ["status"],
3752
- queryFn: async () => (await t.publisher.getStatus()).data
3898
+ queryFn: async () => (await r.publisher.getStatus()).data
3753
3899
  });
3754
3900
  s.error && console.error("Failed to fetch publisher status:", s.error);
3755
3901
  const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
3756
3902
  let p;
3757
- s.isLoading || s.error ? p = r : c ? p = !1 : p = r ?? !0;
3903
+ s.isLoading || s.error ? p = t : c ? p = !1 : p = t ?? !0;
3758
3904
  const O = f(
3759
3905
  () => [i, a],
3760
3906
  [i, a]
3761
- ), [C, U] = H(
3762
- Le
3763
- ), [x, z] = H(De);
3764
- de(() => {
3907
+ ), [C, U] = W(
3908
+ He
3909
+ ), [x, $] = W(_e);
3910
+ pe(() => {
3765
3911
  if (typeof window > "u" || !window.matchMedia) return;
3766
- const R = window.matchMedia("(prefers-color-scheme: dark)"), D = (se) => z(se.matches);
3767
- return R.addEventListener("change", D), () => R.removeEventListener("change", D);
3912
+ const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (le) => $(le.matches);
3913
+ return R.addEventListener("change", H), () => R.removeEventListener("change", H);
3768
3914
  }, []);
3769
- const ne = pe((R) => {
3770
- U(R), je(R);
3771
- }, []), j = i?.allowUserToggle ?? !0, $ = j ? C : void 0, re = f(
3772
- () => ze(
3915
+ const ne = me((R) => {
3916
+ U(R), We(R);
3917
+ }, []), j = i?.allowUserToggle ?? !0, z = j ? C : void 0, oe = f(
3918
+ () => De(
3773
3919
  i?.defaultMode,
3774
- $,
3920
+ z,
3775
3921
  x
3776
3922
  ),
3777
- [i?.defaultMode, $, x]
3778
- ), oe = {
3923
+ [i?.defaultMode, z, x]
3924
+ ), se = {
3779
3925
  server: o,
3780
3926
  getAccessToken: n,
3781
- apiClients: t,
3927
+ apiClients: r,
3782
3928
  mutable: p,
3783
3929
  isLoadingStatus: d,
3784
3930
  instanceTheme: i
3785
3931
  };
3786
- return /* @__PURE__ */ F(te.Provider, { value: oe, children: /* @__PURE__ */ F(
3787
- $e,
3932
+ return /* @__PURE__ */ F(re.Provider, { value: se, children: /* @__PURE__ */ F(
3933
+ Le,
3788
3934
  {
3789
3935
  layers: O,
3790
- mode: re,
3791
- userChoice: $,
3936
+ mode: oe,
3937
+ userChoice: z,
3792
3938
  setMode: ne,
3793
3939
  allowUserToggle: j,
3794
3940
  children: l
3795
3941
  }
3796
3942
  ) });
3797
- }, ct = () => {
3798
- const l = G(te);
3943
+ }, ht = () => {
3944
+ const l = Y(re);
3799
3945
  if (l === void 0)
3800
3946
  throw new Error("useServer must be used within a ServerProvider");
3801
3947
  return l;
3802
3948
  };
3803
3949
  export {
3804
- Se as $,
3805
- Xe as A,
3806
- Ea as B,
3807
- ea as C,
3808
- sa as D,
3809
- ge as E,
3810
- ca as F,
3811
- da as G,
3950
+ ye as $,
3951
+ aa as A,
3952
+ fa as B,
3953
+ ra as C,
3954
+ ia as D,
3955
+ be as E,
3956
+ pa as F,
3957
+ ha as G,
3812
3958
  Pe as H,
3813
- K as I,
3814
- wa as J,
3815
- Ma as K,
3816
- pa as L,
3817
- ha as M,
3818
- va as N,
3959
+ X as I,
3960
+ Ba as J,
3961
+ Fa as K,
3962
+ ua as L,
3963
+ ba as M,
3964
+ Oa as N,
3819
3965
  ve as O,
3820
- Va as P,
3821
- Ia as Q,
3822
- Ra as R,
3823
- lt as S,
3824
- Ua as T,
3825
- X as U,
3826
- fa as V,
3827
- be as W,
3828
- Ve as X,
3966
+ ya as P,
3967
+ Ra as Q,
3968
+ Ua as R,
3969
+ mt as S,
3970
+ Ma as T,
3971
+ D as U,
3972
+ Qa as V,
3973
+ Ve as W,
3974
+ Oe as X,
3829
3975
  Z as Y,
3830
- Ba as Z,
3831
- Oe as _,
3832
- Ze as a,
3833
- N as a0,
3834
- Fa as a1,
3835
- ye as a2,
3836
- ke as a3,
3837
- A as a4,
3838
- Qa as a5,
3839
- Ce as a6,
3840
- za as a7,
3841
- Ie as a8,
3842
- E as a9,
3843
- Wa as aA,
3844
- tt as aB,
3845
- nt as aC,
3846
- rt as aD,
3847
- B as aE,
3848
- st as aF,
3849
- Xa as aG,
3850
- Za as aH,
3851
- Ja as aI,
3852
- Ka as aJ,
3853
- Qe as aK,
3854
- ee as aL,
3855
- W as aM,
3856
- ze as aN,
3857
- $e as aO,
3858
- $a as aa,
3859
- xe as ab,
3860
- Ae as ac,
3861
- Q as ad,
3862
- qa as ae,
3863
- Re as af,
3864
- La as ag,
3865
- Ne as ah,
3866
- T as ai,
3867
- ja as aj,
3868
- Te as ak,
3869
- Ue as al,
3870
- w as am,
3871
- Da as an,
3976
+ $a as Z,
3977
+ Se as _,
3978
+ ta as a,
3979
+ ee as a0,
3980
+ za as a1,
3981
+ ke as a2,
3982
+ Ce as a3,
3983
+ N as a4,
3984
+ qa as a5,
3985
+ Ie as a6,
3986
+ xe as a7,
3987
+ A as a8,
3988
+ Da as a9,
3989
+ st as aA,
3990
+ dt as aB,
3991
+ Xa as aC,
3992
+ Za as aD,
3993
+ pt as aE,
3994
+ Ka as aF,
3995
+ lt as aG,
3996
+ ct as aH,
3997
+ it as aI,
3998
+ B as aJ,
3999
+ rt as aK,
4000
+ nt as aL,
4001
+ at as aM,
4002
+ tt as aN,
4003
+ Ja as aO,
4004
+ qe as aP,
4005
+ ae as aQ,
4006
+ _ as aR,
4007
+ De as aS,
4008
+ Le as aT,
4009
+ Ae as aa,
4010
+ La as ab,
4011
+ Re as ac,
4012
+ w as ad,
4013
+ ja as ae,
4014
+ Ne as af,
4015
+ Te as ag,
4016
+ Q as ah,
4017
+ Ha as ai,
4018
+ Ue as aj,
4019
+ Wa as ak,
4020
+ we as al,
4021
+ T as am,
4022
+ _a as an,
3872
4023
  Ee as ao,
3873
- we as ap,
3874
- M as aq,
3875
- Ha as ar,
3876
- Me as as,
3877
- fe as at,
3878
- Ya as au,
3879
- et as av,
3880
- at as aw,
3881
- ot as ax,
3882
- _a as ay,
3883
- Ga as az,
3884
- aa as b,
3885
- ta as c,
3886
- na as d,
3887
- ra as e,
3888
- oa as f,
3889
- qe as g,
3890
- la as h,
3891
- ia as i,
3892
- ma as j,
3893
- ua as k,
3894
- ga as l,
3895
- Pa as m,
3896
- ba as n,
3897
- Oa as o,
3898
- Sa as p,
3899
- ya as q,
3900
- ka as r,
3901
- Ca as s,
3902
- xa as t,
3903
- ct as u,
3904
- Aa as v,
3905
- Na as w,
3906
- Ta as x,
3907
- ue as y,
4024
+ Me as ap,
4025
+ E as aq,
4026
+ Ga as ar,
4027
+ fe as as,
4028
+ Be as at,
4029
+ M as au,
4030
+ Ya as av,
4031
+ Fe as aw,
4032
+ Qe as ax,
4033
+ et as ay,
4034
+ ot as az,
4035
+ na as b,
4036
+ oa as c,
4037
+ sa as d,
4038
+ la as e,
4039
+ ca as f,
4040
+ je as g,
4041
+ da as h,
4042
+ ma as i,
4043
+ ga as j,
4044
+ Pa as k,
4045
+ va as l,
4046
+ Va as m,
4047
+ Sa as n,
4048
+ ka as o,
4049
+ Ca as p,
4050
+ Ia as q,
4051
+ xa as r,
4052
+ Aa as s,
4053
+ Na as t,
4054
+ ht as u,
4055
+ Ta as v,
4056
+ wa as w,
4057
+ Ea as x,
4058
+ ge as y,
3908
4059
  S as z
3909
4060
  };