@malloy-publisher/sdk 0.3.0 → 0.3.1

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 (156) hide show
  1. package/README.md +8 -0
  2. package/dist/DocumentStorageProvider-BeBD0uWc.cjs.js +134 -0
  3. package/dist/DocumentStorageProvider-tGvodI8f.es.js +24268 -0
  4. package/dist/RenderedResult-CPi6uQWq.cjs.js +115 -0
  5. package/dist/RenderedResult-mDE-4u8S.es.js +542 -0
  6. package/dist/ServerProvider-CH71GsoL.cjs.js +1 -0
  7. package/dist/{ServerProvider-DSK9rfSY.es.js → ServerProvider-X2Ma0HRs.es.js} +486 -521
  8. package/dist/builder/index.cjs.js +105 -0
  9. package/dist/builder/index.d.ts +2 -0
  10. package/dist/builder/index.es.js +9561 -0
  11. package/dist/builder-entry.d.ts +8 -0
  12. package/dist/client/index.cjs.js +1 -1
  13. package/dist/client/index.es.js +1 -1
  14. package/dist/components/Dashboard/Dashboard.d.ts +19 -14
  15. package/dist/components/Dashboard/DashboardGrid.d.ts +67 -0
  16. package/dist/components/Dashboard/DashboardTile.d.ts +6 -1
  17. package/dist/components/Dashboard/ExploreDialog.d.ts +18 -0
  18. package/dist/components/Dashboard/RowsDialog.d.ts +47 -0
  19. package/dist/components/Dashboard/TileCard.d.ts +44 -0
  20. package/dist/components/Dashboard/index.d.ts +2 -0
  21. package/dist/components/Dashboard/promoteMeasureRow.d.ts +7 -3
  22. package/dist/components/Dashboard/telemetry.d.ts +43 -0
  23. package/dist/components/DashboardBuilder/AddTileDialog.d.ts +35 -0
  24. package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +29 -0
  25. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +112 -0
  26. package/dist/components/DashboardBuilder/DashboardEditor.d.ts +32 -0
  27. package/dist/components/DashboardBuilder/DiffDialog.d.ts +15 -0
  28. package/dist/components/DashboardBuilder/DrillDialog.d.ts +15 -0
  29. package/dist/components/DashboardBuilder/FilterDialog.d.ts +54 -0
  30. package/dist/components/DashboardBuilder/FilterStrip.d.ts +17 -0
  31. package/dist/components/DashboardBuilder/SettingsPopover.d.ts +20 -0
  32. package/dist/components/DashboardBuilder/TileFrame.d.ts +42 -0
  33. package/dist/components/DashboardBuilder/TileMenu.d.ts +24 -0
  34. package/dist/components/DashboardBuilder/catalog.d.ts +62 -0
  35. package/dist/components/DashboardBuilder/controls.d.ts +157 -0
  36. package/dist/components/DashboardBuilder/diff.d.ts +35 -0
  37. package/dist/components/DashboardBuilder/document.d.ts +218 -0
  38. package/dist/components/DashboardBuilder/layout.d.ts +71 -0
  39. package/dist/components/DashboardBuilder/malloyText.d.ts +45 -0
  40. package/dist/components/DashboardBuilder/preview.d.ts +60 -0
  41. package/dist/components/DashboardBuilder/readDocument.d.ts +106 -0
  42. package/dist/components/DashboardBuilder/sortable.d.ts +51 -0
  43. package/dist/components/DashboardBuilder/spliceDocument.d.ts +44 -0
  44. package/dist/components/DashboardBuilder/testing/fixtures.d.ts +10 -0
  45. package/dist/components/DashboardBuilder/useBuilderShortcuts.d.ts +22 -0
  46. package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +63 -0
  47. package/dist/components/DashboardBuilder/useDraft.d.ts +13 -0
  48. package/dist/components/DashboardBuilder/useFilterForm.d.ts +65 -0
  49. package/dist/components/DashboardBuilder/useTileReorder.d.ts +22 -0
  50. package/dist/components/DashboardBuilder/useTileResize.d.ts +29 -0
  51. package/dist/components/DocumentStorage/DocumentStorageProvider.d.ts +7 -0
  52. package/dist/components/DocumentStorage/index.d.ts +1 -1
  53. package/dist/components/FloatingIconButton.d.ts +16 -0
  54. package/dist/components/Prose.d.ts +46 -0
  55. package/dist/components/RenderedResult/ResultPanel.d.ts +30 -0
  56. package/dist/components/RenderedResult/index.d.ts +1 -0
  57. package/dist/components/drill/index.d.ts +1 -1
  58. package/dist/components/drill/resolveDrill.d.ts +22 -0
  59. package/dist/components/drill/useDrill.d.ts +11 -2
  60. package/dist/components/index.d.ts +1 -0
  61. package/dist/components/styles.d.ts +0 -4
  62. package/dist/hooks/index.d.ts +2 -0
  63. package/dist/hooks/useDocumentControls.d.ts +70 -0
  64. package/dist/hooks/useQueryResult.d.ts +40 -0
  65. package/dist/index.cjs.js +23 -270
  66. package/dist/index.es.js +16977 -41293
  67. package/dist/utils/malloyLiteral.d.ts +11 -0
  68. package/package.json +24 -9
  69. package/src/builder-entry.ts +55 -0
  70. package/src/components/Dashboard/Dashboard.spec.tsx +7 -10
  71. package/src/components/Dashboard/Dashboard.tsx +165 -175
  72. package/src/components/Dashboard/DashboardGrid.tsx +124 -0
  73. package/src/components/Dashboard/DashboardTile.spec.tsx +30 -6
  74. package/src/components/Dashboard/DashboardTile.tsx +66 -123
  75. package/src/components/Dashboard/ExploreDialog.tsx +84 -0
  76. package/src/components/Dashboard/RowsDialog.spec.ts +42 -0
  77. package/src/components/Dashboard/RowsDialog.tsx +234 -0
  78. package/src/components/Dashboard/TileCard.tsx +120 -0
  79. package/src/components/Dashboard/index.ts +2 -0
  80. package/src/components/Dashboard/promoteMeasureRow.spec.ts +70 -0
  81. package/src/components/Dashboard/promoteMeasureRow.ts +33 -2
  82. package/src/components/Dashboard/telemetry.ts +44 -0
  83. package/src/components/Dashboard/tileGridColumn.spec.ts +1 -1
  84. package/src/components/DashboardBuilder/AddTileDialog.tsx +249 -0
  85. package/src/components/DashboardBuilder/BuilderToolbar.tsx +270 -0
  86. package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +858 -0
  87. package/src/components/DashboardBuilder/DashboardBuilder.tsx +653 -0
  88. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +211 -0
  89. package/src/components/DashboardBuilder/DashboardEditor.tsx +493 -0
  90. package/src/components/DashboardBuilder/DiffDialog.tsx +129 -0
  91. package/src/components/DashboardBuilder/DrillDialog.tsx +281 -0
  92. package/src/components/DashboardBuilder/FilterDialog.tsx +581 -0
  93. package/src/components/DashboardBuilder/FilterStrip.tsx +125 -0
  94. package/src/components/DashboardBuilder/SettingsPopover.tsx +168 -0
  95. package/src/components/DashboardBuilder/TileFrame.tsx +380 -0
  96. package/src/components/DashboardBuilder/TileMenu.tsx +188 -0
  97. package/src/components/DashboardBuilder/catalog.spec.ts +215 -0
  98. package/src/components/DashboardBuilder/catalog.ts +225 -0
  99. package/src/components/DashboardBuilder/controls.spec.ts +243 -0
  100. package/src/components/DashboardBuilder/controls.ts +398 -0
  101. package/src/components/DashboardBuilder/diff.spec.ts +44 -0
  102. package/src/components/DashboardBuilder/diff.ts +93 -0
  103. package/src/components/DashboardBuilder/document.ts +209 -0
  104. package/src/components/DashboardBuilder/keepRowStructure.spec.ts +84 -0
  105. package/src/components/DashboardBuilder/layout.ts +143 -0
  106. package/src/components/DashboardBuilder/malloyText.spec.ts +84 -0
  107. package/src/components/DashboardBuilder/malloyText.ts +151 -0
  108. package/src/components/DashboardBuilder/moveIntoGap.spec.ts +90 -0
  109. package/src/components/DashboardBuilder/preview.spec.ts +149 -0
  110. package/src/components/DashboardBuilder/preview.ts +172 -0
  111. package/src/components/DashboardBuilder/readDocument.spec.ts +375 -0
  112. package/src/components/DashboardBuilder/readDocument.ts +467 -0
  113. package/src/components/DashboardBuilder/sortable.tsx +151 -0
  114. package/src/components/DashboardBuilder/spliceDocument.spec.ts +1108 -0
  115. package/src/components/DashboardBuilder/spliceDocument.ts +1098 -0
  116. package/src/components/DashboardBuilder/testing/fixtures.ts +48 -0
  117. package/src/components/DashboardBuilder/useBuilderShortcuts.ts +88 -0
  118. package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +255 -0
  119. package/src/components/DashboardBuilder/useDashboardEditor.ts +193 -0
  120. package/src/components/DashboardBuilder/useDraft.ts +43 -0
  121. package/src/components/DashboardBuilder/useFilterForm.spec.tsx +144 -0
  122. package/src/components/DashboardBuilder/useFilterForm.ts +352 -0
  123. package/src/components/DashboardBuilder/useTileReorder.spec.tsx +97 -0
  124. package/src/components/DashboardBuilder/useTileReorder.ts +115 -0
  125. package/src/components/DashboardBuilder/useTileResize.spec.tsx +121 -0
  126. package/src/components/DashboardBuilder/useTileResize.ts +110 -0
  127. package/src/components/DashboardBuilder/withGaps.spec.ts +96 -0
  128. package/src/components/DocumentStorage/DocumentStorageProvider.tsx +12 -0
  129. package/src/components/DocumentStorage/index.ts +1 -0
  130. package/src/components/Environment/About.tsx +4 -36
  131. package/src/components/FloatingIconButton.tsx +41 -0
  132. package/src/components/Model/Model.tsx +6 -23
  133. package/src/components/Model/ModelCell.tsx +33 -72
  134. package/src/components/Notebook/Notebook.tsx +25 -88
  135. package/src/components/Notebook/NotebookCell.tsx +35 -183
  136. package/src/components/Prose.spec.tsx +85 -0
  137. package/src/components/Prose.tsx +179 -0
  138. package/src/components/QueryResult/QueryResult.tsx +15 -43
  139. package/src/components/RenderedResult/ResultContainer.tsx +4 -12
  140. package/src/components/RenderedResult/ResultPanel.spec.tsx +49 -0
  141. package/src/components/RenderedResult/ResultPanel.tsx +73 -0
  142. package/src/components/RenderedResult/index.ts +1 -0
  143. package/src/components/drill/index.ts +1 -0
  144. package/src/components/drill/resolveDrill.ts +22 -1
  145. package/src/components/drill/useDrill.spec.tsx +94 -0
  146. package/src/components/drill/useDrill.tsx +52 -12
  147. package/src/components/given/GivensPanel.tsx +1 -1
  148. package/src/components/index.ts +6 -0
  149. package/src/components/styles.ts +0 -37
  150. package/src/hooks/index.ts +13 -0
  151. package/src/hooks/useDocumentControls.ts +170 -0
  152. package/src/hooks/useQueryResult.ts +82 -0
  153. package/src/utils/malloyLiteral.spec.ts +43 -0
  154. package/src/utils/malloyLiteral.ts +76 -0
  155. package/vite.config.ts +5 -0
  156. package/dist/ServerProvider-CGnLjzag.cjs.js +0 -1
@@ -1,48 +1,33 @@
1
1
  import { jsx as F } from "react/jsx-runtime";
2
2
  import { QueryClient as ce, QueryClientProvider as ie, useQuery as de } from "@tanstack/react-query";
3
- import h from "axios";
4
- import { useMemo as f, createContext as G, useContext as Y, useState as _, useEffect as pe, useCallback as me } from "react";
5
- import { styled as y, Card as J, CardContent as K, CardMedia as he } from "@mui/material";
6
- const ue = new ce({
7
- defaultOptions: {
8
- queries: {
9
- retry: !1,
10
- throwOnError: !1
11
- },
12
- mutations: {
13
- retry: !1,
14
- throwOnError: !1
15
- }
16
- }
17
- }), aa = {
18
- staleTime: 300 * 1e3,
19
- refetchOnWindowFocus: !1,
20
- refetchOnReconnect: !1
21
- }, u = "http://localhost/api/v0".replace(/\/+$/, "");
3
+ import m from "axios";
4
+ import { useMemo as f, createContext as G, useContext as Y, useState as _, useEffect as pe, useCallback as he } from "react";
5
+ import { styled as C, Card as J, CardContent as K, CardMedia as me } from "@mui/material";
6
+ const u = "http://localhost/api/v0".replace(/\/+$/, "");
22
7
  class I {
23
- constructor(n, e = u, t = h) {
8
+ constructor(n, e = u, t = m) {
24
9
  this.basePath = e, this.axios = t, n && (this.configuration = n, this.basePath = n.basePath ?? e);
25
10
  }
26
11
  configuration;
27
12
  }
28
- class ge extends Error {
13
+ class ue extends Error {
29
14
  constructor(n, e) {
30
15
  super(e), this.field = n, this.name = "RequiredError";
31
16
  }
32
17
  }
33
- const g = {}, b = "https://example.com", m = function(l, n, e) {
18
+ const g = {}, P = "https://example.com", h = function(l, n, e) {
34
19
  if (e == null)
35
- throw new ge(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}.`);
36
21
  };
37
22
  function q(l, n, e = "") {
38
23
  n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((t) => q(l, t, e)) : Object.keys(n).forEach(
39
24
  (t) => q(l, n[t], `${e}${e !== "" ? "." : ""}${t}`)
40
25
  ) : l.has(e) ? l.append(e, n) : l.set(e, n));
41
26
  }
42
- const P = function(l, ...n) {
27
+ const b = function(l, ...n) {
43
28
  const e = new URLSearchParams(l.search);
44
29
  q(e, n), l.search = e.toString();
45
- }, k = function(l, n, e) {
30
+ }, y = function(l, n, e) {
46
31
  const t = typeof l != "string";
47
32
  return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
48
33
  }, v = function(l) {
@@ -52,28 +37,28 @@ const P = function(l, ...n) {
52
37
  const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + l.url };
53
38
  return a.request(o);
54
39
  };
55
- }, ta = {
40
+ }, aa = {
56
41
  Bigquery: "bigquery",
57
42
  Snowflake: "snowflake",
58
43
  Postgres: "postgres",
59
44
  Gcs: "gcs",
60
45
  S3: "s3",
61
46
  Azure: "azure"
62
- }, ra = {
47
+ }, ta = {
63
48
  ServicePrincipal: "service_principal",
64
49
  SasToken: "sas_token"
65
- }, na = {
50
+ }, ra = {
66
51
  Error: "error",
67
52
  Warn: "warn",
68
53
  Debug: "debug"
69
- }, oa = {
54
+ }, na = {
70
55
  Append: "append",
71
56
  File: "file",
72
57
  Package: "package"
73
- }, sa = {
58
+ }, oa = {
74
59
  Success: "success",
75
60
  Error: "error"
76
- }, la = {
61
+ }, sa = {
77
62
  Postgres: "postgres",
78
63
  Bigquery: "bigquery",
79
64
  Snowflake: "snowflake",
@@ -84,17 +69,17 @@ const P = function(l, ...n) {
84
69
  Motherduck: "motherduck",
85
70
  Ducklake: "ducklake",
86
71
  Publisher: "publisher"
87
- }, ca = {
72
+ }, la = {
88
73
  Ssh: "ssh"
89
- }, ia = {
74
+ }, ca = {
90
75
  Ok: "ok",
91
76
  Failed: "failed"
92
- }, da = {
77
+ }, ia = {
93
78
  Viewport: "viewport"
94
- }, pa = {
79
+ }, da = {
95
80
  Embedded: "embedded",
96
81
  Materialized: "materialized"
97
- }, ma = {
82
+ }, pa = {
98
83
  Equal: "equal",
99
84
  In: "in",
100
85
  Like: "like",
@@ -104,13 +89,13 @@ const P = function(l, ...n) {
104
89
  Live: "live",
105
90
  StaleOk: "stale_ok",
106
91
  Fail: "fail"
107
- }, ua = {
92
+ }, ma = {
108
93
  Select: "select",
109
94
  Multiselect: "multiselect"
110
- }, ga = {
95
+ }, ua = {
111
96
  Merge: "merge",
112
97
  RangeReplace: "range_replace"
113
- }, ba = {
98
+ }, ga = {
114
99
  Debug: "debug",
115
100
  Info: "info",
116
101
  Warn: "warn",
@@ -118,88 +103,88 @@ const P = function(l, ...n) {
118
103
  }, Pa = {
119
104
  Persist: "persist",
120
105
  Preaggregate: "preaggregate"
121
- }, va = {
106
+ }, ba = {
122
107
  Live: "live",
123
108
  StaleOk: "stale_ok",
124
109
  Fail: "fail"
125
- }, Va = {
110
+ }, va = {
126
111
  Delta: "delta",
127
112
  Full: "full",
128
113
  None: "none"
129
- }, Oa = {
114
+ }, Va = {
130
115
  Pending: "PENDING",
131
116
  ManifestRowsReady: "MANIFEST_ROWS_READY",
132
117
  ManifestFileReady: "MANIFEST_FILE_READY",
133
118
  Failed: "FAILED",
134
119
  Cancelled: "CANCELLED"
135
- }, Sa = {
120
+ }, Oa = {
136
121
  Markdown: "markdown",
137
122
  Code: "code"
138
- }, ka = {
123
+ }, Sa = {
139
124
  Markdown: "markdown",
140
125
  Code: "code"
141
126
  }, ya = {
142
127
  Version: "version",
143
128
  Package: "package"
144
- }, Ca = {
129
+ }, ka = {
145
130
  Declared: "declared",
146
131
  All: "all"
147
- }, Ia = {
132
+ }, Ca = {
148
133
  Unbound: "unbound",
149
134
  Bound: "bound",
150
135
  LiveFallback: "live_fallback"
151
- }, xa = {
136
+ }, Ia = {
152
137
  Indexing: "indexing",
153
138
  Ready: "ready",
154
139
  Cooldown: "cooldown",
155
140
  TooManyEntities: "too-many-entities"
156
- }, Aa = {
141
+ }, xa = {
157
142
  Persist: "persist",
158
143
  Preaggregate: "preaggregate"
159
- }, Ra = {
144
+ }, Aa = {
160
145
  Error: "error",
161
146
  Warn: "warn"
162
- }, Na = {
147
+ }, Ra = {
163
148
  Persist: "persist",
164
149
  Preaggregate: "preaggregate"
165
- }, Ta = {
150
+ }, Na = {
166
151
  Disable: "disable",
167
152
  NoVerify: "no-verify",
168
153
  VerifyCa: "verify-ca",
169
154
  VerifyFull: "verify-full"
170
- }, Ua = {
155
+ }, Ta = {
171
156
  Interactive: "interactive",
172
157
  Materialize: "materialize",
173
158
  Index: "index",
174
159
  Ops: "ops"
175
- }, Ea = {
160
+ }, Ua = {
176
161
  Query: "query",
177
162
  ServerDefault: "server_default"
178
- }, wa = {
163
+ }, Ea = {
179
164
  Storage: "storage",
180
165
  LiveFallback: "live_fallback"
181
- }, Ma = {
166
+ }, wa = {
182
167
  Snapshot: "SNAPSHOT",
183
168
  Copy: "COPY"
184
- }, fa = {
169
+ }, Ma = {
185
170
  Storage: "storage",
186
171
  Colocated: "colocated",
187
172
  Preaggregate: "preaggregate"
188
- }, Ba = {
173
+ }, fa = {
189
174
  FreeParameter: "free_parameter",
190
175
  Given: "given",
191
176
  Authorize: "authorize",
192
177
  Partition: "partition",
193
178
  NotDuckdbPortable: "not_duckdb_portable",
194
179
  PublicSurfaceUnknown: "public_surface_unknown"
195
- }, Fa = {
180
+ }, Ba = {
196
181
  Publish: "publish",
197
182
  OnDemand: "on_demand",
198
183
  Scheduler: "scheduler"
199
- }, Qa = {
184
+ }, Fa = {
200
185
  Config: "config",
201
186
  CredentialChain: "credential_chain"
202
- }, $a = {
187
+ }, Qa = {
203
188
  Initializing: "initializing",
204
189
  Serving: "serving",
205
190
  Draining: "draining",
@@ -208,7 +193,7 @@ const P = function(l, ...n) {
208
193
  Light: "light",
209
194
  Dark: "dark",
210
195
  Auto: "auto"
211
- }, be = function(l) {
196
+ }, ge = function(l) {
212
197
  return {
213
198
  /**
214
199
  * Creates a new database connection in the specified environment.
@@ -220,14 +205,14 @@ const P = function(l, ...n) {
220
205
  * @throws {RequiredError}
221
206
  */
222
207
  createConnection: async (n, e, t, a = {}) => {
223
- m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
224
- const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
208
+ h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection", t);
209
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
225
210
  let s;
226
211
  l && (s = l.baseOptions);
227
212
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
228
- i["Content-Type"] = "application/json", P(o, d);
213
+ i["Content-Type"] = "application/json", b(o, d);
229
214
  let p = s && s.headers ? s.headers : {};
230
- return c.headers = { ...i, ...p, ...a.headers }, c.data = k(t, c, l), {
215
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
231
216
  url: v(o),
232
217
  options: c
233
218
  };
@@ -241,12 +226,12 @@ const P = function(l, ...n) {
241
226
  * @throws {RequiredError}
242
227
  */
243
228
  deleteConnection: async (n, e, t = {}) => {
244
- m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
245
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, b);
229
+ h("deleteConnection", "environmentName", n), h("deleteConnection", "connectionName", e);
230
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
246
231
  let o;
247
232
  l && (o = l.baseOptions);
248
233
  const s = { method: "DELETE", ...o, ...t }, c = {};
249
- P(r, {});
234
+ b(r, {});
250
235
  let d = o && o.headers ? o.headers : {};
251
236
  return s.headers = { ...c, ...d, ...t.headers }, {
252
237
  url: v(r),
@@ -262,12 +247,12 @@ const P = function(l, ...n) {
262
247
  * @throws {RequiredError}
263
248
  */
264
249
  getConnection: async (n, e, t = {}) => {
265
- m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
266
- const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, b);
250
+ h("getConnection", "environmentName", n), h("getConnection", "connectionName", e);
251
+ const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
267
252
  let o;
268
253
  l && (o = l.baseOptions);
269
254
  const s = { method: "GET", ...o, ...t }, c = {};
270
- P(r, {});
255
+ b(r, {});
271
256
  let d = o && o.headers ? o.headers : {};
272
257
  return s.headers = { ...c, ...d, ...t.headers }, {
273
258
  url: v(r),
@@ -285,12 +270,12 @@ const P = function(l, ...n) {
285
270
  * @throws {RequiredError}
286
271
  */
287
272
  getTable: async (n, e, t, a, r = {}) => {
288
- m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
289
- 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);
273
+ h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName", t), h("getTable", "tablePath", a);
274
+ 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, P);
290
275
  let c;
291
276
  l && (c = l.baseOptions);
292
277
  const i = { method: "GET", ...c, ...r }, d = {};
293
- P(s, {});
278
+ b(s, {});
294
279
  let O = c && c.headers ? c.headers : {};
295
280
  return i.headers = { ...d, ...O, ...r.headers }, {
296
281
  url: v(s),
@@ -309,14 +294,14 @@ const P = function(l, ...n) {
309
294
  * @throws {RequiredError}
310
295
  */
311
296
  getTableInPackage: async (n, e, t, a, r, o = {}) => {
312
- m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", r);
313
- 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);
297
+ h("getTableInPackage", "environmentName", n), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", t), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", r);
298
+ 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, P);
314
299
  let i;
315
300
  l && (i = l.baseOptions);
316
301
  const d = { method: "GET", ...i, ...o }, p = {};
317
- P(c, {});
318
- let C = i && i.headers ? i.headers : {};
319
- return d.headers = { ...p, ...C, ...o.headers }, {
302
+ b(c, {});
303
+ let k = i && i.headers ? i.headers : {};
304
+ return d.headers = { ...p, ...k, ...o.headers }, {
320
305
  url: v(c),
321
306
  options: d
322
307
  };
@@ -329,12 +314,12 @@ const P = function(l, ...n) {
329
314
  * @throws {RequiredError}
330
315
  */
331
316
  listConnections: async (n, e = {}) => {
332
- m("listConnections", "environmentName", n);
333
- const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, b);
317
+ h("listConnections", "environmentName", n);
318
+ const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
334
319
  let r;
335
320
  l && (r = l.baseOptions);
336
321
  const o = { method: "GET", ...r, ...e }, s = {};
337
- P(a, {});
322
+ b(a, {});
338
323
  let i = r && r.headers ? r.headers : {};
339
324
  return o.headers = { ...s, ...i, ...e.headers }, {
340
325
  url: v(a),
@@ -350,12 +335,12 @@ const P = function(l, ...n) {
350
335
  * @throws {RequiredError}
351
336
  */
352
337
  listSchemas: async (n, e, t = {}) => {
353
- m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
354
- const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, b);
338
+ h("listSchemas", "environmentName", n), h("listSchemas", "connectionName", e);
339
+ const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
355
340
  let o;
356
341
  l && (o = l.baseOptions);
357
342
  const s = { method: "GET", ...o, ...t }, c = {};
358
- P(r, {});
343
+ b(r, {});
359
344
  let d = o && o.headers ? o.headers : {};
360
345
  return s.headers = { ...c, ...d, ...t.headers }, {
361
346
  url: v(r),
@@ -372,12 +357,12 @@ const P = function(l, ...n) {
372
357
  * @throws {RequiredError}
373
358
  */
374
359
  listSchemasInPackage: async (n, e, t, a = {}) => {
375
- m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
376
- 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);
360
+ h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", t);
361
+ 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, P);
377
362
  let s;
378
363
  l && (s = l.baseOptions);
379
364
  const c = { method: "GET", ...s, ...a }, i = {};
380
- P(o, {});
365
+ b(o, {});
381
366
  let p = s && s.headers ? s.headers : {};
382
367
  return c.headers = { ...i, ...p, ...a.headers }, {
383
368
  url: v(o),
@@ -395,12 +380,12 @@ const P = function(l, ...n) {
395
380
  * @throws {RequiredError}
396
381
  */
397
382
  listTables: async (n, e, t, a, r = {}) => {
398
- m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
399
- 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);
383
+ h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName", t);
384
+ 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, P);
400
385
  let c;
401
386
  l && (c = l.baseOptions);
402
387
  const i = { method: "GET", ...c, ...r }, d = {}, p = {};
403
- a && (p.tableNames = a), P(s, p);
388
+ a && (p.tableNames = a), b(s, p);
404
389
  let O = c && c.headers ? c.headers : {};
405
390
  return i.headers = { ...d, ...O, ...r.headers }, {
406
391
  url: v(s),
@@ -419,14 +404,14 @@ const P = function(l, ...n) {
419
404
  * @throws {RequiredError}
420
405
  */
421
406
  listTablesInPackage: async (n, e, t, a, r, o = {}) => {
422
- m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
423
- 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);
407
+ h("listTablesInPackage", "environmentName", n), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", t), h("listTablesInPackage", "schemaName", a);
408
+ 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, P);
424
409
  let i;
425
410
  l && (i = l.baseOptions);
426
411
  const d = { method: "GET", ...i, ...o }, p = {}, O = {};
427
- r && (O.tableNames = r), P(c, O);
428
- let C = i && i.headers ? i.headers : {};
429
- return d.headers = { ...p, ...C, ...o.headers }, {
412
+ r && (O.tableNames = r), b(c, O);
413
+ let k = i && i.headers ? i.headers : {};
414
+ return d.headers = { ...p, ...k, ...o.headers }, {
430
415
  url: v(c),
431
416
  options: d
432
417
  };
@@ -441,14 +426,14 @@ const P = function(l, ...n) {
441
426
  * @throws {RequiredError}
442
427
  */
443
428
  postQuerydata: async (n, e, t, a = {}) => {
444
- m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
445
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
429
+ h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", t);
430
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
446
431
  let s;
447
432
  l && (s = l.baseOptions);
448
433
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
449
- i["Content-Type"] = "application/json", P(o, d);
434
+ i["Content-Type"] = "application/json", b(o, d);
450
435
  let p = s && s.headers ? s.headers : {};
451
- return c.headers = { ...i, ...p, ...a.headers }, c.data = k(t, c, l), {
436
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
452
437
  url: v(o),
453
438
  options: c
454
439
  };
@@ -464,14 +449,14 @@ const P = function(l, ...n) {
464
449
  * @throws {RequiredError}
465
450
  */
466
451
  postQuerydataInPackage: async (n, e, t, a, r = {}) => {
467
- m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
468
- 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);
452
+ h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", t), h("postQuerydataInPackage", "postQuerydataRequest", a);
453
+ 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, P);
469
454
  let c;
470
455
  l && (c = l.baseOptions);
471
456
  const i = { method: "POST", ...c, ...r }, d = {}, p = {};
472
- d["Content-Type"] = "application/json", P(s, p);
457
+ d["Content-Type"] = "application/json", b(s, p);
473
458
  let O = c && c.headers ? c.headers : {};
474
- return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
459
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
475
460
  url: v(s),
476
461
  options: i
477
462
  };
@@ -486,14 +471,14 @@ const P = function(l, ...n) {
486
471
  * @throws {RequiredError}
487
472
  */
488
473
  postSqlsource: async (n, e, t, a = {}) => {
489
- m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
490
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
474
+ h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", t);
475
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
491
476
  let s;
492
477
  l && (s = l.baseOptions);
493
478
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
494
- i["Content-Type"] = "application/json", P(o, d);
479
+ i["Content-Type"] = "application/json", b(o, d);
495
480
  let p = s && s.headers ? s.headers : {};
496
- return c.headers = { ...i, ...p, ...a.headers }, c.data = k(t, c, l), {
481
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
497
482
  url: v(o),
498
483
  options: c
499
484
  };
@@ -509,14 +494,14 @@ const P = function(l, ...n) {
509
494
  * @throws {RequiredError}
510
495
  */
511
496
  postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
512
- m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
513
- 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);
497
+ h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", t), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
498
+ 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, P);
514
499
  let c;
515
500
  l && (c = l.baseOptions);
516
501
  const i = { method: "POST", ...c, ...r }, d = {}, p = {};
517
- d["Content-Type"] = "application/json", P(s, p);
502
+ d["Content-Type"] = "application/json", b(s, p);
518
503
  let O = c && c.headers ? c.headers : {};
519
- return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
504
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
520
505
  url: v(s),
521
506
  options: i
522
507
  };
@@ -531,14 +516,14 @@ const P = function(l, ...n) {
531
516
  * @throws {RequiredError}
532
517
  */
533
518
  postTemporarytable: async (n, e, t, a = {}) => {
534
- m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
535
- const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
519
+ h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", t);
520
+ const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
536
521
  let s;
537
522
  l && (s = l.baseOptions);
538
523
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
539
- i["Content-Type"] = "application/json", P(o, d);
524
+ i["Content-Type"] = "application/json", b(o, d);
540
525
  let p = s && s.headers ? s.headers : {};
541
- return c.headers = { ...i, ...p, ...a.headers }, c.data = k(t, c, l), {
526
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
542
527
  url: v(o),
543
528
  options: c
544
529
  };
@@ -554,14 +539,14 @@ const P = function(l, ...n) {
554
539
  * @throws {RequiredError}
555
540
  */
556
541
  postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
557
- m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
558
- 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);
542
+ h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", t), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
543
+ 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, P);
559
544
  let c;
560
545
  l && (c = l.baseOptions);
561
546
  const i = { method: "POST", ...c, ...r }, d = {}, p = {};
562
- d["Content-Type"] = "application/json", P(s, p);
547
+ d["Content-Type"] = "application/json", b(s, p);
563
548
  let O = c && c.headers ? c.headers : {};
564
- return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
549
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
565
550
  url: v(s),
566
551
  options: i
567
552
  };
@@ -576,21 +561,21 @@ const P = function(l, ...n) {
576
561
  * @throws {RequiredError}
577
562
  */
578
563
  updateConnection: async (n, e, t, a = {}) => {
579
- m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
580
- const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, b);
564
+ h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", t);
565
+ const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
581
566
  let s;
582
567
  l && (s = l.baseOptions);
583
568
  const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
584
- i["Content-Type"] = "application/json", P(o, d);
569
+ i["Content-Type"] = "application/json", b(o, d);
585
570
  let p = s && s.headers ? s.headers : {};
586
- return c.headers = { ...i, ...p, ...a.headers }, c.data = k(t, c, l), {
571
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
587
572
  url: v(o),
588
573
  options: c
589
574
  };
590
575
  }
591
576
  };
592
577
  }, S = function(l) {
593
- const n = be(l);
578
+ const n = ge(l);
594
579
  return {
595
580
  /**
596
581
  * Creates a new database connection in the specified environment.
@@ -603,7 +588,7 @@ const P = function(l, ...n) {
603
588
  */
604
589
  async createConnection(e, t, a, r) {
605
590
  const o = await n.createConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
606
- return (i, d) => V(o, h, u, l)(i, c || d);
591
+ return (i, d) => V(o, m, u, l)(i, c || d);
607
592
  },
608
593
  /**
609
594
  * Permanently deletes a database connection from the environment.
@@ -615,7 +600,7 @@ const P = function(l, ...n) {
615
600
  */
616
601
  async deleteConnection(e, t, a) {
617
602
  const r = await n.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
618
- return (c, i) => V(r, h, u, l)(c, s || i);
603
+ return (c, i) => V(r, m, u, l)(c, s || i);
619
604
  },
620
605
  /**
621
606
  * 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.
@@ -627,7 +612,7 @@ const P = function(l, ...n) {
627
612
  */
628
613
  async getConnection(e, t, a) {
629
614
  const r = await n.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
630
- return (c, i) => V(r, h, u, l)(c, s || i);
615
+ return (c, i) => V(r, m, u, l)(c, s || i);
631
616
  },
632
617
  /**
633
618
  * 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.
@@ -641,7 +626,7 @@ const P = function(l, ...n) {
641
626
  */
642
627
  async getTable(e, t, a, r, o) {
643
628
  const s = await n.getTable(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
644
- return (d, p) => V(s, h, u, l)(d, i || p);
629
+ return (d, p) => V(s, m, u, l)(d, i || p);
645
630
  },
646
631
  /**
647
632
  * Retrieves a table from the specified database schema, resolved in the context of the named package.
@@ -656,7 +641,7 @@ const P = function(l, ...n) {
656
641
  */
657
642
  async getTableInPackage(e, t, a, r, o, s) {
658
643
  const c = await n.getTableInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
659
- return (p, O) => V(c, h, u, l)(p, d || O);
644
+ return (p, O) => V(c, m, u, l)(p, d || O);
660
645
  },
661
646
  /**
662
647
  * 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.
@@ -667,7 +652,7 @@ const P = function(l, ...n) {
667
652
  */
668
653
  async listConnections(e, t) {
669
654
  const a = await n.listConnections(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[r]?.url;
670
- return (s, c) => V(a, h, u, l)(s, o || c);
655
+ return (s, c) => V(a, m, u, l)(s, o || c);
671
656
  },
672
657
  /**
673
658
  * 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.
@@ -679,7 +664,7 @@ const P = function(l, ...n) {
679
664
  */
680
665
  async listSchemas(e, t, a) {
681
666
  const r = await n.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
682
- return (c, i) => V(r, h, u, l)(c, s || i);
667
+ return (c, i) => V(r, m, u, l)(c, s || i);
683
668
  },
684
669
  /**
685
670
  * 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).
@@ -692,7 +677,7 @@ const P = function(l, ...n) {
692
677
  */
693
678
  async listSchemasInPackage(e, t, a, r) {
694
679
  const o = await n.listSchemasInPackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
695
- return (i, d) => V(o, h, u, l)(i, c || d);
680
+ return (i, d) => V(o, m, u, l)(i, c || d);
696
681
  },
697
682
  /**
698
683
  * 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.
@@ -706,7 +691,7 @@ const P = function(l, ...n) {
706
691
  */
707
692
  async listTables(e, t, a, r, o) {
708
693
  const s = await n.listTables(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
709
- return (d, p) => V(s, h, u, l)(d, i || p);
694
+ return (d, p) => V(s, m, u, l)(d, i || p);
710
695
  },
711
696
  /**
712
697
  * Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
@@ -721,7 +706,7 @@ const P = function(l, ...n) {
721
706
  */
722
707
  async listTablesInPackage(e, t, a, r, o, s) {
723
708
  const c = await n.listTablesInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
724
- return (p, O) => V(c, h, u, l)(p, d || O);
709
+ return (p, O) => V(c, m, u, l)(p, d || O);
725
710
  },
726
711
  /**
727
712
  * 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.
@@ -734,7 +719,7 @@ const P = function(l, ...n) {
734
719
  */
735
720
  async postQuerydata(e, t, a, r) {
736
721
  const o = await n.postQuerydata(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
737
- return (i, d) => V(o, h, u, l)(i, c || d);
722
+ return (i, d) => V(o, m, u, l)(i, c || d);
738
723
  },
739
724
  /**
740
725
  * 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.
@@ -748,7 +733,7 @@ const P = function(l, ...n) {
748
733
  */
749
734
  async postQuerydataInPackage(e, t, a, r, o) {
750
735
  const s = await n.postQuerydataInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
751
- return (d, p) => V(s, h, u, l)(d, i || p);
736
+ return (d, p) => V(s, m, u, l)(d, i || p);
752
737
  },
753
738
  /**
754
739
  * 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.
@@ -761,7 +746,7 @@ const P = function(l, ...n) {
761
746
  */
762
747
  async postSqlsource(e, t, a, r) {
763
748
  const o = await n.postSqlsource(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
764
- return (i, d) => V(o, h, u, l)(i, c || d);
749
+ return (i, d) => V(o, m, u, l)(i, c || d);
765
750
  },
766
751
  /**
767
752
  * Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
@@ -775,7 +760,7 @@ const P = function(l, ...n) {
775
760
  */
776
761
  async postSqlsourceInPackage(e, t, a, r, o) {
777
762
  const s = await n.postSqlsourceInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
778
- return (d, p) => V(s, h, u, l)(d, i || p);
763
+ return (d, p) => V(s, m, u, l)(d, i || p);
779
764
  },
780
765
  /**
781
766
  * 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.
@@ -788,7 +773,7 @@ const P = function(l, ...n) {
788
773
  */
789
774
  async postTemporarytable(e, t, a, r) {
790
775
  const o = await n.postTemporarytable(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
791
- return (i, d) => V(o, h, u, l)(i, c || d);
776
+ return (i, d) => V(o, m, u, l)(i, c || d);
792
777
  },
793
778
  /**
794
779
  * Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
@@ -802,7 +787,7 @@ const P = function(l, ...n) {
802
787
  */
803
788
  async postTemporarytableInPackage(e, t, a, r, o) {
804
789
  const s = await n.postTemporarytableInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
805
- return (d, p) => V(s, h, u, l)(d, i || p);
790
+ return (d, p) => V(s, m, u, l)(d, i || p);
806
791
  },
807
792
  /**
808
793
  * Updates the configuration of an existing database connection.
@@ -815,10 +800,10 @@ const P = function(l, ...n) {
815
800
  */
816
801
  async updateConnection(e, t, a, r) {
817
802
  const o = await n.updateConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
818
- return (i, d) => V(o, h, u, l)(i, c || d);
803
+ return (i, d) => V(o, m, u, l)(i, c || d);
819
804
  }
820
805
  };
821
- }, qa = function(l, n, e) {
806
+ }, $a = function(l, n, e) {
822
807
  const t = S(l);
823
808
  return {
824
809
  /**
@@ -1258,7 +1243,7 @@ class Pe extends I {
1258
1243
  return S(this.configuration).updateConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
1259
1244
  }
1260
1245
  }
1261
- const ve = function(l) {
1246
+ const be = function(l) {
1262
1247
  return {
1263
1248
  /**
1264
1249
  * 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.
@@ -1268,21 +1253,21 @@ const ve = function(l) {
1268
1253
  * @throws {RequiredError}
1269
1254
  */
1270
1255
  testConnectionConfiguration: async (n, e = {}) => {
1271
- m("testConnectionConfiguration", "connection", n);
1272
- const t = "/connections/test", a = new URL(t, b);
1256
+ h("testConnectionConfiguration", "connection", n);
1257
+ const t = "/connections/test", a = new URL(t, P);
1273
1258
  let r;
1274
1259
  l && (r = l.baseOptions);
1275
1260
  const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1276
- s["Content-Type"] = "application/json", P(a, c);
1261
+ s["Content-Type"] = "application/json", b(a, c);
1277
1262
  let i = r && r.headers ? r.headers : {};
1278
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
1263
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1279
1264
  url: v(a),
1280
1265
  options: o
1281
1266
  };
1282
1267
  }
1283
1268
  };
1284
1269
  }, X = function(l) {
1285
- const n = ve(l);
1270
+ const n = be(l);
1286
1271
  return {
1287
1272
  /**
1288
1273
  * 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.
@@ -1293,10 +1278,10 @@ const ve = function(l) {
1293
1278
  */
1294
1279
  async testConnectionConfiguration(e, t) {
1295
1280
  const a = await n.testConnectionConfiguration(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
1296
- return (s, c) => V(a, h, u, l)(s, o || c);
1281
+ return (s, c) => V(a, m, u, l)(s, o || c);
1297
1282
  }
1298
1283
  };
1299
- }, Da = function(l, n, e) {
1284
+ }, qa = function(l, n, e) {
1300
1285
  const t = X(l);
1301
1286
  return {
1302
1287
  /**
@@ -1311,7 +1296,7 @@ const ve = function(l) {
1311
1296
  }
1312
1297
  };
1313
1298
  };
1314
- class La extends I {
1299
+ class Da extends I {
1315
1300
  /**
1316
1301
  * 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.
1317
1302
  * @summary Test database connection configuration
@@ -1324,7 +1309,7 @@ class La extends I {
1324
1309
  return X(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
1325
1310
  }
1326
1311
  }
1327
- const Ve = function(l) {
1312
+ const ve = function(l) {
1328
1313
  return {
1329
1314
  /**
1330
1315
  * 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 tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
@@ -1337,12 +1322,12 @@ const Ve = function(l) {
1337
1322
  * @throws {RequiredError}
1338
1323
  */
1339
1324
  getDashboard: async (n, e, t, a, r = {}) => {
1340
- m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
1341
- 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);
1325
+ h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", t);
1326
+ 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, P);
1342
1327
  let c;
1343
1328
  l && (c = l.baseOptions);
1344
1329
  const i = { method: "GET", ...c, ...r }, d = {}, p = {};
1345
- a !== void 0 && (p.versionId = a), P(s, p);
1330
+ a !== void 0 && (p.versionId = a), b(s, p);
1346
1331
  let O = c && c.headers ? c.headers : {};
1347
1332
  return i.headers = { ...d, ...O, ...r.headers }, {
1348
1333
  url: v(s),
@@ -1359,12 +1344,12 @@ const Ve = function(l) {
1359
1344
  * @throws {RequiredError}
1360
1345
  */
1361
1346
  listDashboards: async (n, e, t, a = {}) => {
1362
- m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
1363
- const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
1347
+ h("listDashboards", "environmentName", n), h("listDashboards", "packageName", e);
1348
+ const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1364
1349
  let s;
1365
1350
  l && (s = l.baseOptions);
1366
1351
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1367
- t !== void 0 && (d.versionId = t), P(o, d);
1352
+ t !== void 0 && (d.versionId = t), b(o, d);
1368
1353
  let p = s && s.headers ? s.headers : {};
1369
1354
  return c.headers = { ...i, ...p, ...a.headers }, {
1370
1355
  url: v(o),
@@ -1373,7 +1358,7 @@ const Ve = function(l) {
1373
1358
  }
1374
1359
  };
1375
1360
  }, D = function(l) {
1376
- const n = Ve(l);
1361
+ const n = ve(l);
1377
1362
  return {
1378
1363
  /**
1379
1364
  * 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 tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
@@ -1387,7 +1372,7 @@ const Ve = function(l) {
1387
1372
  */
1388
1373
  async getDashboard(e, t, a, r, o) {
1389
1374
  const s = await n.getDashboard(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["DashboardsApi.getDashboard"]?.[c]?.url;
1390
- return (d, p) => V(s, h, u, l)(d, i || p);
1375
+ return (d, p) => V(s, m, u, l)(d, i || p);
1391
1376
  },
1392
1377
  /**
1393
1378
  * 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.
@@ -1400,10 +1385,10 @@ const Ve = function(l) {
1400
1385
  */
1401
1386
  async listDashboards(e, t, a, r) {
1402
1387
  const o = await n.listDashboards(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DashboardsApi.listDashboards"]?.[s]?.url;
1403
- return (i, d) => V(o, h, u, l)(i, c || d);
1388
+ return (i, d) => V(o, m, u, l)(i, c || d);
1404
1389
  }
1405
1390
  };
1406
- }, ja = function(l, n, e) {
1391
+ }, La = function(l, n, e) {
1407
1392
  const t = D(l);
1408
1393
  return {
1409
1394
  /**
@@ -1433,7 +1418,7 @@ const Ve = function(l) {
1433
1418
  }
1434
1419
  };
1435
1420
  };
1436
- class Oe extends I {
1421
+ class Ve extends I {
1437
1422
  /**
1438
1423
  * 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 tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
1439
1424
  * @summary Get a dashboard manifest
@@ -1462,7 +1447,7 @@ class Oe extends I {
1462
1447
  return D(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
1463
1448
  }
1464
1449
  }
1465
- const Se = function(l) {
1450
+ const Oe = function(l) {
1466
1451
  return {
1467
1452
  /**
1468
1453
  * 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.
@@ -1473,12 +1458,12 @@ const Se = function(l) {
1473
1458
  * @throws {RequiredError}
1474
1459
  */
1475
1460
  listDataApps: async (n, e, t = {}) => {
1476
- m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
1477
- const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, b);
1461
+ h("listDataApps", "environmentName", n), h("listDataApps", "packageName", e);
1462
+ const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
1478
1463
  let o;
1479
1464
  l && (o = l.baseOptions);
1480
1465
  const s = { method: "GET", ...o, ...t }, c = {};
1481
- P(r, {});
1466
+ b(r, {});
1482
1467
  let d = o && o.headers ? o.headers : {};
1483
1468
  return s.headers = { ...c, ...d, ...t.headers }, {
1484
1469
  url: v(r),
@@ -1487,7 +1472,7 @@ const Se = function(l) {
1487
1472
  }
1488
1473
  };
1489
1474
  }, Z = function(l) {
1490
- const n = Se(l);
1475
+ const n = Oe(l);
1491
1476
  return {
1492
1477
  /**
1493
1478
  * 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.
@@ -1499,10 +1484,10 @@ const Se = function(l) {
1499
1484
  */
1500
1485
  async listDataApps(e, t, a) {
1501
1486
  const r = await n.listDataApps(e, t, a), o = l?.serverIndex ?? 0, s = g["DataAppsApi.listDataApps"]?.[o]?.url;
1502
- return (c, i) => V(r, h, u, l)(c, s || i);
1487
+ return (c, i) => V(r, m, u, l)(c, s || i);
1503
1488
  }
1504
1489
  };
1505
- }, Ha = function(l, n, e) {
1490
+ }, ja = function(l, n, e) {
1506
1491
  const t = Z(l);
1507
1492
  return {
1508
1493
  /**
@@ -1518,7 +1503,7 @@ const Se = function(l) {
1518
1503
  }
1519
1504
  };
1520
1505
  };
1521
- class ke extends I {
1506
+ class Se extends I {
1522
1507
  /**
1523
1508
  * 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.
1524
1509
  * @summary List package data apps
@@ -1544,12 +1529,12 @@ const ye = function(l) {
1544
1529
  * @throws {RequiredError}
1545
1530
  */
1546
1531
  listDatabases: async (n, e, t, a = {}) => {
1547
- m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
1548
- const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
1532
+ h("listDatabases", "environmentName", n), h("listDatabases", "packageName", e);
1533
+ const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1549
1534
  let s;
1550
1535
  l && (s = l.baseOptions);
1551
1536
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1552
- t !== void 0 && (d.versionId = t), P(o, d);
1537
+ t !== void 0 && (d.versionId = t), b(o, d);
1553
1538
  let p = s && s.headers ? s.headers : {};
1554
1539
  return c.headers = { ...i, ...p, ...a.headers }, {
1555
1540
  url: v(o),
@@ -1571,10 +1556,10 @@ const ye = function(l) {
1571
1556
  */
1572
1557
  async listDatabases(e, t, a, r) {
1573
1558
  const o = await n.listDatabases(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
1574
- return (i, d) => V(o, h, u, l)(i, c || d);
1559
+ return (i, d) => V(o, m, u, l)(i, c || d);
1575
1560
  }
1576
1561
  };
1577
- }, _a = function(l, n, e) {
1562
+ }, Ha = function(l, n, e) {
1578
1563
  const t = ee(l);
1579
1564
  return {
1580
1565
  /**
@@ -1591,7 +1576,7 @@ const ye = function(l) {
1591
1576
  }
1592
1577
  };
1593
1578
  };
1594
- class Ce extends I {
1579
+ class ke extends I {
1595
1580
  /**
1596
1581
  * 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.
1597
1582
  * @summary List embedded databases
@@ -1606,7 +1591,7 @@ class Ce extends I {
1606
1591
  return ee(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
1607
1592
  }
1608
1593
  }
1609
- const Ie = function(l) {
1594
+ const Ce = function(l) {
1610
1595
  return {
1611
1596
  /**
1612
1597
  * 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.
@@ -1616,14 +1601,14 @@ const Ie = function(l) {
1616
1601
  * @throws {RequiredError}
1617
1602
  */
1618
1603
  createEnvironment: async (n, e = {}) => {
1619
- m("createEnvironment", "environment", n);
1620
- const t = "/environments", a = new URL(t, b);
1604
+ h("createEnvironment", "environment", n);
1605
+ const t = "/environments", a = new URL(t, P);
1621
1606
  let r;
1622
1607
  l && (r = l.baseOptions);
1623
1608
  const o = { method: "POST", ...r, ...e }, s = {}, c = {};
1624
- s["Content-Type"] = "application/json", P(a, c);
1609
+ s["Content-Type"] = "application/json", b(a, c);
1625
1610
  let i = r && r.headers ? r.headers : {};
1626
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
1611
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
1627
1612
  url: v(a),
1628
1613
  options: o
1629
1614
  };
@@ -1636,12 +1621,12 @@ const Ie = function(l) {
1636
1621
  * @throws {RequiredError}
1637
1622
  */
1638
1623
  deleteEnvironment: async (n, e = {}) => {
1639
- m("deleteEnvironment", "environmentName", n);
1640
- const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, b);
1624
+ h("deleteEnvironment", "environmentName", n);
1625
+ const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
1641
1626
  let r;
1642
1627
  l && (r = l.baseOptions);
1643
1628
  const o = { method: "DELETE", ...r, ...e }, s = {};
1644
- P(a, {});
1629
+ b(a, {});
1645
1630
  let i = r && r.headers ? r.headers : {};
1646
1631
  return o.headers = { ...s, ...i, ...e.headers }, {
1647
1632
  url: v(a),
@@ -1657,12 +1642,12 @@ const Ie = function(l) {
1657
1642
  * @throws {RequiredError}
1658
1643
  */
1659
1644
  getEnvironment: async (n, e, t = {}) => {
1660
- m("getEnvironment", "environmentName", n);
1661
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, b);
1645
+ h("getEnvironment", "environmentName", n);
1646
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
1662
1647
  let o;
1663
1648
  l && (o = l.baseOptions);
1664
1649
  const s = { method: "GET", ...o, ...t }, c = {}, i = {};
1665
- e !== void 0 && (i.reload = e), P(r, i);
1650
+ e !== void 0 && (i.reload = e), b(r, i);
1666
1651
  let d = o && o.headers ? o.headers : {};
1667
1652
  return s.headers = { ...c, ...d, ...t.headers }, {
1668
1653
  url: v(r),
@@ -1676,11 +1661,11 @@ const Ie = function(l) {
1676
1661
  * @throws {RequiredError}
1677
1662
  */
1678
1663
  listEnvironments: async (n = {}) => {
1679
- const e = "/environments", t = new URL(e, b);
1664
+ const e = "/environments", t = new URL(e, P);
1680
1665
  let a;
1681
1666
  l && (a = l.baseOptions);
1682
1667
  const r = { method: "GET", ...a, ...n }, o = {};
1683
- P(t, {});
1668
+ b(t, {});
1684
1669
  let c = a && a.headers ? a.headers : {};
1685
1670
  return r.headers = { ...o, ...c, ...n.headers }, {
1686
1671
  url: v(t),
@@ -1696,21 +1681,21 @@ const Ie = function(l) {
1696
1681
  * @throws {RequiredError}
1697
1682
  */
1698
1683
  updateEnvironment: async (n, e, t = {}) => {
1699
- m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
1700
- const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, b);
1684
+ h("updateEnvironment", "environmentName", n), h("updateEnvironment", "environment", e);
1685
+ const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
1701
1686
  let o;
1702
1687
  l && (o = l.baseOptions);
1703
1688
  const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
1704
- c["Content-Type"] = "application/json", P(r, i);
1689
+ c["Content-Type"] = "application/json", b(r, i);
1705
1690
  let d = o && o.headers ? o.headers : {};
1706
- return s.headers = { ...c, ...d, ...t.headers }, s.data = k(e, s, l), {
1691
+ return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
1707
1692
  url: v(r),
1708
1693
  options: s
1709
1694
  };
1710
1695
  }
1711
1696
  };
1712
1697
  }, N = function(l) {
1713
- const n = Ie(l);
1698
+ const n = Ce(l);
1714
1699
  return {
1715
1700
  /**
1716
1701
  * 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.
@@ -1721,7 +1706,7 @@ const Ie = function(l) {
1721
1706
  */
1722
1707
  async createEnvironment(e, t) {
1723
1708
  const a = await n.createEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[r]?.url;
1724
- return (s, c) => V(a, h, u, l)(s, o || c);
1709
+ return (s, c) => V(a, m, u, l)(s, o || c);
1725
1710
  },
1726
1711
  /**
1727
1712
  * 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.
@@ -1732,7 +1717,7 @@ const Ie = function(l) {
1732
1717
  */
1733
1718
  async deleteEnvironment(e, t) {
1734
1719
  const a = await n.deleteEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
1735
- return (s, c) => V(a, h, u, l)(s, o || c);
1720
+ return (s, c) => V(a, m, u, l)(s, o || c);
1736
1721
  },
1737
1722
  /**
1738
1723
  * 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.
@@ -1744,7 +1729,7 @@ const Ie = function(l) {
1744
1729
  */
1745
1730
  async getEnvironment(e, t, a) {
1746
1731
  const r = await n.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
1747
- return (c, i) => V(r, h, u, l)(c, s || i);
1732
+ return (c, i) => V(r, m, u, l)(c, s || i);
1748
1733
  },
1749
1734
  /**
1750
1735
  * 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. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
@@ -1754,7 +1739,7 @@ const Ie = function(l) {
1754
1739
  */
1755
1740
  async listEnvironments(e) {
1756
1741
  const t = await n.listEnvironments(e), a = l?.serverIndex ?? 0, r = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
1757
- return (o, s) => V(t, h, u, l)(o, r || s);
1742
+ return (o, s) => V(t, m, u, l)(o, r || s);
1758
1743
  },
1759
1744
  /**
1760
1745
  * 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.
@@ -1766,10 +1751,10 @@ const Ie = function(l) {
1766
1751
  */
1767
1752
  async updateEnvironment(e, t, a) {
1768
1753
  const r = await n.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
1769
- return (c, i) => V(r, h, u, l)(c, s || i);
1754
+ return (c, i) => V(r, m, u, l)(c, s || i);
1770
1755
  }
1771
1756
  };
1772
- }, Wa = function(l, n, e) {
1757
+ }, _a = function(l, n, e) {
1773
1758
  const t = N(l);
1774
1759
  return {
1775
1760
  /**
@@ -1825,7 +1810,7 @@ const Ie = function(l) {
1825
1810
  }
1826
1811
  };
1827
1812
  };
1828
- class xe extends I {
1813
+ class Ie extends I {
1829
1814
  /**
1830
1815
  * 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.
1831
1816
  * @summary Create a new environment
@@ -1883,7 +1868,7 @@ class xe extends I {
1883
1868
  return N(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
1884
1869
  }
1885
1870
  }
1886
- const Ae = function(l) {
1871
+ const xe = function(l) {
1887
1872
  return {
1888
1873
  /**
1889
1874
  * 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.
@@ -1895,14 +1880,14 @@ const Ae = function(l) {
1895
1880
  * @throws {RequiredError}
1896
1881
  */
1897
1882
  createMaterialization: async (n, e, t, a = {}) => {
1898
- m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
1899
- const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
1883
+ h("createMaterialization", "environmentName", n), h("createMaterialization", "packageName", e);
1884
+ const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
1900
1885
  let s;
1901
1886
  l && (s = l.baseOptions);
1902
1887
  const c = { method: "POST", ...s, ...a }, i = {}, d = {};
1903
- i["Content-Type"] = "application/json", P(o, d);
1888
+ i["Content-Type"] = "application/json", b(o, d);
1904
1889
  let p = s && s.headers ? s.headers : {};
1905
- return c.headers = { ...i, ...p, ...a.headers }, c.data = k(t, c, l), {
1890
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
1906
1891
  url: v(o),
1907
1892
  options: c
1908
1893
  };
@@ -1918,12 +1903,12 @@ const Ae = function(l) {
1918
1903
  * @throws {RequiredError}
1919
1904
  */
1920
1905
  deleteMaterialization: async (n, e, t, a, r = {}) => {
1921
- m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
1922
- 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);
1906
+ h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", t);
1907
+ 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, P);
1923
1908
  let c;
1924
1909
  l && (c = l.baseOptions);
1925
1910
  const i = { method: "DELETE", ...c, ...r }, d = {}, p = {};
1926
- a !== void 0 && (p.dropTables = a), P(s, p);
1911
+ a !== void 0 && (p.dropTables = a), b(s, p);
1927
1912
  let O = c && c.headers ? c.headers : {};
1928
1913
  return i.headers = { ...d, ...O, ...r.headers }, {
1929
1914
  url: v(s),
@@ -1940,12 +1925,12 @@ const Ae = function(l) {
1940
1925
  * @throws {RequiredError}
1941
1926
  */
1942
1927
  getMaterialization: async (n, e, t, a = {}) => {
1943
- m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
1944
- 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);
1928
+ h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", t);
1929
+ 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, P);
1945
1930
  let s;
1946
1931
  l && (s = l.baseOptions);
1947
1932
  const c = { method: "GET", ...s, ...a }, i = {};
1948
- P(o, {});
1933
+ b(o, {});
1949
1934
  let p = s && s.headers ? s.headers : {};
1950
1935
  return c.headers = { ...i, ...p, ...a.headers }, {
1951
1936
  url: v(o),
@@ -1962,12 +1947,12 @@ const Ae = function(l) {
1962
1947
  * @throws {RequiredError}
1963
1948
  */
1964
1949
  listEnvironmentMaterializations: async (n, e, t, a = {}) => {
1965
- m("listEnvironmentMaterializations", "environmentName", n);
1966
- const r = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(r, b);
1950
+ h("listEnvironmentMaterializations", "environmentName", n);
1951
+ const r = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(r, P);
1967
1952
  let s;
1968
1953
  l && (s = l.baseOptions);
1969
1954
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
1970
- e !== void 0 && (d.limit = e), t !== void 0 && (d.offset = t), P(o, d);
1955
+ e !== void 0 && (d.limit = e), t !== void 0 && (d.offset = t), b(o, d);
1971
1956
  let p = s && s.headers ? s.headers : {};
1972
1957
  return c.headers = { ...i, ...p, ...a.headers }, {
1973
1958
  url: v(o),
@@ -1985,12 +1970,12 @@ const Ae = function(l) {
1985
1970
  * @throws {RequiredError}
1986
1971
  */
1987
1972
  listMaterializations: async (n, e, t, a, r = {}) => {
1988
- m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
1989
- const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
1973
+ h("listMaterializations", "environmentName", n), h("listMaterializations", "packageName", e);
1974
+ const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
1990
1975
  let c;
1991
1976
  l && (c = l.baseOptions);
1992
1977
  const i = { method: "GET", ...c, ...r }, d = {}, p = {};
1993
- t !== void 0 && (p.limit = t), a !== void 0 && (p.offset = a), P(s, p);
1978
+ t !== void 0 && (p.limit = t), a !== void 0 && (p.offset = a), b(s, p);
1994
1979
  let O = c && c.headers ? c.headers : {};
1995
1980
  return i.headers = { ...d, ...O, ...r.headers }, {
1996
1981
  url: v(s),
@@ -2008,12 +1993,12 @@ const Ae = function(l) {
2008
1993
  * @throws {RequiredError}
2009
1994
  */
2010
1995
  materializationAction: async (n, e, t, a, r = {}) => {
2011
- m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
2012
- 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);
1996
+ h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", t), h("materializationAction", "action", a);
1997
+ 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, P);
2013
1998
  let c;
2014
1999
  l && (c = l.baseOptions);
2015
2000
  const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2016
- a !== void 0 && (p.action = a), P(s, p);
2001
+ a !== void 0 && (p.action = a), b(s, p);
2017
2002
  let O = c && c.headers ? c.headers : {};
2018
2003
  return i.headers = { ...d, ...O, ...r.headers }, {
2019
2004
  url: v(s),
@@ -2022,7 +2007,7 @@ const Ae = function(l) {
2022
2007
  }
2023
2008
  };
2024
2009
  }, A = function(l) {
2025
- const n = Ae(l);
2010
+ const n = xe(l);
2026
2011
  return {
2027
2012
  /**
2028
2013
  * 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.
@@ -2035,7 +2020,7 @@ const Ae = function(l) {
2035
2020
  */
2036
2021
  async createMaterialization(e, t, a, r) {
2037
2022
  const o = await n.createMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
2038
- return (i, d) => V(o, h, u, l)(i, c || d);
2023
+ return (i, d) => V(o, m, u, l)(i, c || d);
2039
2024
  },
2040
2025
  /**
2041
2026
  * 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.
@@ -2049,7 +2034,7 @@ const Ae = function(l) {
2049
2034
  */
2050
2035
  async deleteMaterialization(e, t, a, r, o) {
2051
2036
  const s = await n.deleteMaterialization(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
2052
- return (d, p) => V(s, h, u, l)(d, i || p);
2037
+ return (d, p) => V(s, m, u, l)(d, i || p);
2053
2038
  },
2054
2039
  /**
2055
2040
  *
@@ -2062,7 +2047,7 @@ const Ae = function(l) {
2062
2047
  */
2063
2048
  async getMaterialization(e, t, a, r) {
2064
2049
  const o = await n.getMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
2065
- return (i, d) => V(o, h, u, l)(i, c || d);
2050
+ return (i, d) => V(o, m, u, l)(i, c || d);
2066
2051
  },
2067
2052
  /**
2068
2053
  * 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.
@@ -2075,7 +2060,7 @@ const Ae = function(l) {
2075
2060
  */
2076
2061
  async listEnvironmentMaterializations(e, t, a, r) {
2077
2062
  const o = await n.listEnvironmentMaterializations(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;
2078
- return (i, d) => V(o, h, u, l)(i, c || d);
2063
+ return (i, d) => V(o, m, u, l)(i, c || d);
2079
2064
  },
2080
2065
  /**
2081
2066
  * Returns the materialization history for the package, ordered by most recent first.
@@ -2089,7 +2074,7 @@ const Ae = function(l) {
2089
2074
  */
2090
2075
  async listMaterializations(e, t, a, r, o) {
2091
2076
  const s = await n.listMaterializations(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
2092
- return (d, p) => V(s, h, u, l)(d, i || p);
2077
+ return (d, p) => V(s, m, u, l)(d, i || p);
2093
2078
  },
2094
2079
  /**
2095
2080
  * Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
@@ -2103,10 +2088,10 @@ const Ae = function(l) {
2103
2088
  */
2104
2089
  async materializationAction(e, t, a, r, o) {
2105
2090
  const s = await n.materializationAction(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
2106
- return (d, p) => V(s, h, u, l)(d, i || p);
2091
+ return (d, p) => V(s, m, u, l)(d, i || p);
2107
2092
  }
2108
2093
  };
2109
- }, Ga = function(l, n, e) {
2094
+ }, Wa = function(l, n, e) {
2110
2095
  const t = A(l);
2111
2096
  return {
2112
2097
  /**
@@ -2186,7 +2171,7 @@ const Ae = function(l) {
2186
2171
  }
2187
2172
  };
2188
2173
  };
2189
- class Re extends I {
2174
+ class Ae extends I {
2190
2175
  /**
2191
2176
  * 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.
2192
2177
  * @summary Create a materialization
@@ -2269,9 +2254,9 @@ class Re extends I {
2269
2254
  return A(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
2270
2255
  }
2271
2256
  }
2272
- const Ya = {
2257
+ const Ga = {
2273
2258
  Stop: "stop"
2274
- }, Ne = function(l) {
2259
+ }, Re = function(l) {
2275
2260
  return {
2276
2261
  /**
2277
2262
  * 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.
@@ -2284,14 +2269,14 @@ const Ya = {
2284
2269
  * @throws {RequiredError}
2285
2270
  */
2286
2271
  compileModelSource: async (n, e, t, a, r = {}) => {
2287
- m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
2288
- 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);
2272
+ h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path", t), h("compileModelSource", "compileRequest", a);
2273
+ 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, P);
2289
2274
  let c;
2290
2275
  l && (c = l.baseOptions);
2291
2276
  const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2292
- d["Content-Type"] = "application/json", P(s, p);
2277
+ d["Content-Type"] = "application/json", b(s, p);
2293
2278
  let O = c && c.headers ? c.headers : {};
2294
- return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
2279
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
2295
2280
  url: v(s),
2296
2281
  options: i
2297
2282
  };
@@ -2307,14 +2292,14 @@ const Ya = {
2307
2292
  * @throws {RequiredError}
2308
2293
  */
2309
2294
  executeQueryModel: async (n, e, t, a, r = {}) => {
2310
- m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
2311
- 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);
2295
+ h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", t), h("executeQueryModel", "queryRequest", a);
2296
+ 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, P);
2312
2297
  let c;
2313
2298
  l && (c = l.baseOptions);
2314
2299
  const i = { method: "POST", ...c, ...r }, d = {}, p = {};
2315
- d["Content-Type"] = "application/json", P(s, p);
2300
+ d["Content-Type"] = "application/json", b(s, p);
2316
2301
  let O = c && c.headers ? c.headers : {};
2317
- return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
2302
+ return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
2318
2303
  url: v(s),
2319
2304
  options: i
2320
2305
  };
@@ -2330,12 +2315,12 @@ const Ya = {
2330
2315
  * @throws {RequiredError}
2331
2316
  */
2332
2317
  getModel: async (n, e, t, a, r = {}) => {
2333
- m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", t);
2334
- 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);
2318
+ h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path", t);
2319
+ 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, P);
2335
2320
  let c;
2336
2321
  l && (c = l.baseOptions);
2337
2322
  const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2338
- a !== void 0 && (p.versionId = a), P(s, p);
2323
+ a !== void 0 && (p.versionId = a), b(s, p);
2339
2324
  let O = c && c.headers ? c.headers : {};
2340
2325
  return i.headers = { ...d, ...O, ...r.headers }, {
2341
2326
  url: v(s),
@@ -2352,12 +2337,12 @@ const Ya = {
2352
2337
  * @throws {RequiredError}
2353
2338
  */
2354
2339
  listModels: async (n, e, t, a = {}) => {
2355
- m("listModels", "environmentName", n), m("listModels", "packageName", e);
2356
- const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
2340
+ h("listModels", "environmentName", n), h("listModels", "packageName", e);
2341
+ const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2357
2342
  let s;
2358
2343
  l && (s = l.baseOptions);
2359
2344
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2360
- t !== void 0 && (d.versionId = t), P(o, d);
2345
+ t !== void 0 && (d.versionId = t), b(o, d);
2361
2346
  let p = s && s.headers ? s.headers : {};
2362
2347
  return c.headers = { ...i, ...p, ...a.headers }, {
2363
2348
  url: v(o),
@@ -2366,7 +2351,7 @@ const Ya = {
2366
2351
  }
2367
2352
  };
2368
2353
  }, E = function(l) {
2369
- const n = Ne(l);
2354
+ const n = Re(l);
2370
2355
  return {
2371
2356
  /**
2372
2357
  * 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.
@@ -2380,7 +2365,7 @@ const Ya = {
2380
2365
  */
2381
2366
  async compileModelSource(e, t, a, r, o) {
2382
2367
  const s = await n.compileModelSource(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
2383
- return (d, p) => V(s, h, u, l)(d, i || p);
2368
+ return (d, p) => V(s, m, u, l)(d, i || p);
2384
2369
  },
2385
2370
  /**
2386
2371
  * 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.
@@ -2394,7 +2379,7 @@ const Ya = {
2394
2379
  */
2395
2380
  async executeQueryModel(e, t, a, r, o) {
2396
2381
  const s = await n.executeQueryModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
2397
- return (d, p) => V(s, h, u, l)(d, i || p);
2382
+ return (d, p) => V(s, m, u, l)(d, i || p);
2398
2383
  },
2399
2384
  /**
2400
2385
  * 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.
@@ -2408,7 +2393,7 @@ const Ya = {
2408
2393
  */
2409
2394
  async getModel(e, t, a, r, o) {
2410
2395
  const s = await n.getModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
2411
- return (d, p) => V(s, h, u, l)(d, i || p);
2396
+ return (d, p) => V(s, m, u, l)(d, i || p);
2412
2397
  },
2413
2398
  /**
2414
2399
  * 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.
@@ -2421,10 +2406,10 @@ const Ya = {
2421
2406
  */
2422
2407
  async listModels(e, t, a, r) {
2423
2408
  const o = await n.listModels(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
2424
- return (i, d) => V(o, h, u, l)(i, c || d);
2409
+ return (i, d) => V(o, m, u, l)(i, c || d);
2425
2410
  }
2426
2411
  };
2427
- }, Ja = function(l, n, e) {
2412
+ }, Ya = function(l, n, e) {
2428
2413
  const t = E(l);
2429
2414
  return {
2430
2415
  /**
@@ -2480,7 +2465,7 @@ const Ya = {
2480
2465
  }
2481
2466
  };
2482
2467
  };
2483
- class Te extends I {
2468
+ class Ne extends I {
2484
2469
  /**
2485
2470
  * 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.
2486
2471
  * @summary Compile Malloy source code
@@ -2537,7 +2522,7 @@ class Te extends I {
2537
2522
  return E(this.configuration).listModels(n, e, t, a).then((r) => r(this.axios, this.basePath));
2538
2523
  }
2539
2524
  }
2540
- const Ue = function(l) {
2525
+ const Te = function(l) {
2541
2526
  return {
2542
2527
  /**
2543
2528
  * 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.
@@ -2554,16 +2539,16 @@ const Ue = function(l) {
2554
2539
  * @throws {RequiredError}
2555
2540
  */
2556
2541
  executeNotebookCell: async (n, e, t, a, r, o, s, c, i = {}) => {
2557
- m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
2558
- 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);
2542
+ h("executeNotebookCell", "environmentName", n), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", t), h("executeNotebookCell", "cellIndex", a);
2543
+ 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, P);
2559
2544
  let O;
2560
2545
  l && (O = l.baseOptions);
2561
- const C = { method: "GET", ...O, ...i }, U = {}, x = {};
2562
- 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);
2563
- let $ = O && O.headers ? O.headers : {};
2564
- return C.headers = { ...U, ...$, ...i.headers }, {
2546
+ const k = { method: "GET", ...O, ...i }, U = {}, x = {};
2547
+ 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), b(p, x);
2548
+ let z = O && O.headers ? O.headers : {};
2549
+ return k.headers = { ...U, ...z, ...i.headers }, {
2565
2550
  url: v(p),
2566
- options: C
2551
+ options: k
2567
2552
  };
2568
2553
  },
2569
2554
  /**
@@ -2577,12 +2562,12 @@ const Ue = function(l) {
2577
2562
  * @throws {RequiredError}
2578
2563
  */
2579
2564
  getNotebook: async (n, e, t, a, r = {}) => {
2580
- m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
2581
- 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);
2565
+ h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path", t);
2566
+ 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, P);
2582
2567
  let c;
2583
2568
  l && (c = l.baseOptions);
2584
2569
  const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2585
- a !== void 0 && (p.versionId = a), P(s, p);
2570
+ a !== void 0 && (p.versionId = a), b(s, p);
2586
2571
  let O = c && c.headers ? c.headers : {};
2587
2572
  return i.headers = { ...d, ...O, ...r.headers }, {
2588
2573
  url: v(s),
@@ -2599,12 +2584,12 @@ const Ue = function(l) {
2599
2584
  * @throws {RequiredError}
2600
2585
  */
2601
2586
  listNotebooks: async (n, e, t, a = {}) => {
2602
- m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
2603
- const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
2587
+ h("listNotebooks", "environmentName", n), h("listNotebooks", "packageName", e);
2588
+ const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2604
2589
  let s;
2605
2590
  l && (s = l.baseOptions);
2606
2591
  const c = { method: "GET", ...s, ...a }, i = {}, d = {};
2607
- t !== void 0 && (d.versionId = t), P(o, d);
2592
+ t !== void 0 && (d.versionId = t), b(o, d);
2608
2593
  let p = s && s.headers ? s.headers : {};
2609
2594
  return c.headers = { ...i, ...p, ...a.headers }, {
2610
2595
  url: v(o),
@@ -2613,7 +2598,7 @@ const Ue = function(l) {
2613
2598
  }
2614
2599
  };
2615
2600
  }, Q = function(l) {
2616
- const n = Ue(l);
2601
+ const n = Te(l);
2617
2602
  return {
2618
2603
  /**
2619
2604
  * 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.
@@ -2630,8 +2615,8 @@ const Ue = function(l) {
2630
2615
  * @throws {RequiredError}
2631
2616
  */
2632
2617
  async executeNotebookCell(e, t, a, r, o, s, c, i, d) {
2633
- const p = await n.executeNotebookCell(e, t, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0, C = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
2634
- return (U, x) => V(p, h, u, l)(U, C || x);
2618
+ const p = await n.executeNotebookCell(e, t, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0, k = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
2619
+ return (U, x) => V(p, m, u, l)(U, k || x);
2635
2620
  },
2636
2621
  /**
2637
2622
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2645,7 +2630,7 @@ const Ue = function(l) {
2645
2630
  */
2646
2631
  async getNotebook(e, t, a, r, o) {
2647
2632
  const s = await n.getNotebook(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
2648
- return (d, p) => V(s, h, u, l)(d, i || p);
2633
+ return (d, p) => V(s, m, u, l)(d, i || p);
2649
2634
  },
2650
2635
  /**
2651
2636
  * 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.
@@ -2658,10 +2643,10 @@ const Ue = function(l) {
2658
2643
  */
2659
2644
  async listNotebooks(e, t, a, r) {
2660
2645
  const o = await n.listNotebooks(e, t, a, r), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
2661
- return (i, d) => V(o, h, u, l)(i, c || d);
2646
+ return (i, d) => V(o, m, u, l)(i, c || d);
2662
2647
  }
2663
2648
  };
2664
- }, Ka = function(l, n, e) {
2649
+ }, Ja = function(l, n, e) {
2665
2650
  const t = Q(l);
2666
2651
  return {
2667
2652
  /**
@@ -2679,7 +2664,7 @@ const Ue = function(l) {
2679
2664
  * @throws {RequiredError}
2680
2665
  */
2681
2666
  executeNotebookCell(a, r, o, s, c, i, d, p, O) {
2682
- return t.executeNotebookCell(a, r, o, s, c, i, d, p, O).then((C) => C(e, n));
2667
+ return t.executeNotebookCell(a, r, o, s, c, i, d, p, O).then((k) => k(e, n));
2683
2668
  },
2684
2669
  /**
2685
2670
  * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
@@ -2708,7 +2693,7 @@ const Ue = function(l) {
2708
2693
  }
2709
2694
  };
2710
2695
  };
2711
- class Ee extends I {
2696
+ class Ue extends I {
2712
2697
  /**
2713
2698
  * 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.
2714
2699
  * @summary Execute a specific notebook cell
@@ -2755,10 +2740,10 @@ class Ee extends I {
2755
2740
  return Q(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
2756
2741
  }
2757
2742
  }
2758
- const Xa = {
2743
+ const Ka = {
2759
2744
  True: "true",
2760
2745
  False: "false"
2761
- }, we = function(l) {
2746
+ }, Ee = function(l) {
2762
2747
  return {
2763
2748
  /**
2764
2749
  * 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.
@@ -2769,14 +2754,14 @@ const Xa = {
2769
2754
  * @throws {RequiredError}
2770
2755
  */
2771
2756
  createPackage: async (n, e, t = {}) => {
2772
- m("createPackage", "environmentName", n), m("createPackage", "_package", e);
2773
- const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, b);
2757
+ h("createPackage", "environmentName", n), h("createPackage", "_package", e);
2758
+ const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
2774
2759
  let o;
2775
2760
  l && (o = l.baseOptions);
2776
2761
  const s = { method: "POST", ...o, ...t }, c = {}, i = {};
2777
- c["Content-Type"] = "application/json", P(r, i);
2762
+ c["Content-Type"] = "application/json", b(r, i);
2778
2763
  let d = o && o.headers ? o.headers : {};
2779
- return s.headers = { ...c, ...d, ...t.headers }, s.data = k(e, s, l), {
2764
+ return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
2780
2765
  url: v(r),
2781
2766
  options: s
2782
2767
  };
@@ -2790,12 +2775,12 @@ const Xa = {
2790
2775
  * @throws {RequiredError}
2791
2776
  */
2792
2777
  deletePackage: async (n, e, t = {}) => {
2793
- m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
2794
- const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, b);
2778
+ h("deletePackage", "environmentName", n), h("deletePackage", "packageName", e);
2779
+ const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
2795
2780
  let o;
2796
2781
  l && (o = l.baseOptions);
2797
2782
  const s = { method: "DELETE", ...o, ...t }, c = {};
2798
- P(r, {});
2783
+ b(r, {});
2799
2784
  let d = o && o.headers ? o.headers : {};
2800
2785
  return s.headers = { ...c, ...d, ...t.headers }, {
2801
2786
  url: v(r),
@@ -2813,12 +2798,12 @@ const Xa = {
2813
2798
  * @throws {RequiredError}
2814
2799
  */
2815
2800
  getPackage: async (n, e, t, a, r = {}) => {
2816
- m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
2817
- const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
2801
+ h("getPackage", "environmentName", n), h("getPackage", "packageName", e);
2802
+ const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
2818
2803
  let c;
2819
2804
  l && (c = l.baseOptions);
2820
2805
  const i = { method: "GET", ...c, ...r }, d = {}, p = {};
2821
- t !== void 0 && (p.versionId = t), a !== void 0 && (p.reload = a), P(s, p);
2806
+ t !== void 0 && (p.versionId = t), a !== void 0 && (p.reload = a), b(s, p);
2822
2807
  let O = c && c.headers ? c.headers : {};
2823
2808
  return i.headers = { ...d, ...O, ...r.headers }, {
2824
2809
  url: v(s),
@@ -2833,12 +2818,12 @@ const Xa = {
2833
2818
  * @throws {RequiredError}
2834
2819
  */
2835
2820
  listPackages: async (n, e = {}) => {
2836
- m("listPackages", "environmentName", n);
2837
- const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, b);
2821
+ h("listPackages", "environmentName", n);
2822
+ const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
2838
2823
  let r;
2839
2824
  l && (r = l.baseOptions);
2840
2825
  const o = { method: "GET", ...r, ...e }, s = {};
2841
- P(a, {});
2826
+ b(a, {});
2842
2827
  let i = r && r.headers ? r.headers : {};
2843
2828
  return o.headers = { ...s, ...i, ...e.headers }, {
2844
2829
  url: v(a),
@@ -2855,21 +2840,21 @@ const Xa = {
2855
2840
  * @throws {RequiredError}
2856
2841
  */
2857
2842
  updatePackage: async (n, e, t, a = {}) => {
2858
- m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
2859
- const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, b);
2843
+ h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package", t);
2844
+ const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
2860
2845
  let s;
2861
2846
  l && (s = l.baseOptions);
2862
2847
  const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
2863
- i["Content-Type"] = "application/json", P(o, d);
2848
+ i["Content-Type"] = "application/json", b(o, d);
2864
2849
  let p = s && s.headers ? s.headers : {};
2865
- return c.headers = { ...i, ...p, ...a.headers }, c.data = k(t, c, l), {
2850
+ return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
2866
2851
  url: v(o),
2867
2852
  options: c
2868
2853
  };
2869
2854
  }
2870
2855
  };
2871
2856
  }, T = function(l) {
2872
- const n = we(l);
2857
+ const n = Ee(l);
2873
2858
  return {
2874
2859
  /**
2875
2860
  * 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.
@@ -2881,7 +2866,7 @@ const Xa = {
2881
2866
  */
2882
2867
  async createPackage(e, t, a) {
2883
2868
  const r = await n.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
2884
- return (c, i) => V(r, h, u, l)(c, s || i);
2869
+ return (c, i) => V(r, m, u, l)(c, s || i);
2885
2870
  },
2886
2871
  /**
2887
2872
  * 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.
@@ -2893,7 +2878,7 @@ const Xa = {
2893
2878
  */
2894
2879
  async deletePackage(e, t, a) {
2895
2880
  const r = await n.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
2896
- return (c, i) => V(r, h, u, l)(c, s || i);
2881
+ return (c, i) => V(r, m, u, l)(c, s || i);
2897
2882
  },
2898
2883
  /**
2899
2884
  * 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.
@@ -2907,7 +2892,7 @@ const Xa = {
2907
2892
  */
2908
2893
  async getPackage(e, t, a, r, o) {
2909
2894
  const s = await n.getPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
2910
- return (d, p) => V(s, h, u, l)(d, i || p);
2895
+ return (d, p) => V(s, m, u, l)(d, i || p);
2911
2896
  },
2912
2897
  /**
2913
2898
  * 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. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
@@ -2918,7 +2903,7 @@ const Xa = {
2918
2903
  */
2919
2904
  async listPackages(e, t) {
2920
2905
  const a = await n.listPackages(e, t), r = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[r]?.url;
2921
- return (s, c) => V(a, h, u, l)(s, o || c);
2906
+ return (s, c) => V(a, m, u, l)(s, o || c);
2922
2907
  },
2923
2908
  /**
2924
2909
  * 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.
@@ -2931,10 +2916,10 @@ const Xa = {
2931
2916
  */
2932
2917
  async updatePackage(e, t, a, r) {
2933
2918
  const o = await n.updatePackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
2934
- return (i, d) => V(o, h, u, l)(i, c || d);
2919
+ return (i, d) => V(o, m, u, l)(i, c || d);
2935
2920
  }
2936
2921
  };
2937
- }, Za = function(l, n, e) {
2922
+ }, Xa = function(l, n, e) {
2938
2923
  const t = T(l);
2939
2924
  return {
2940
2925
  /**
@@ -2996,7 +2981,7 @@ const Xa = {
2996
2981
  }
2997
2982
  };
2998
2983
  };
2999
- class Me extends I {
2984
+ class we extends I {
3000
2985
  /**
3001
2986
  * 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.
3002
2987
  * @summary Create a new package
@@ -3060,7 +3045,7 @@ class Me extends I {
3060
3045
  return T(this.configuration).updatePackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
3061
3046
  }
3062
3047
  }
3063
- const fe = function(l) {
3048
+ const Me = function(l) {
3064
3049
  return {
3065
3050
  /**
3066
3051
  * 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.
@@ -3069,11 +3054,11 @@ const fe = function(l) {
3069
3054
  * @throws {RequiredError}
3070
3055
  */
3071
3056
  deleteTheme: async (n = {}) => {
3072
- const e = "/theme", t = new URL(e, b);
3057
+ const e = "/theme", t = new URL(e, P);
3073
3058
  let a;
3074
3059
  l && (a = l.baseOptions);
3075
3060
  const r = { method: "DELETE", ...a, ...n }, o = {};
3076
- P(t, {});
3061
+ b(t, {});
3077
3062
  let c = a && a.headers ? a.headers : {};
3078
3063
  return r.headers = { ...o, ...c, ...n.headers }, {
3079
3064
  url: v(t),
@@ -3087,11 +3072,11 @@ const fe = function(l) {
3087
3072
  * @throws {RequiredError}
3088
3073
  */
3089
3074
  getStatus: async (n = {}) => {
3090
- const e = "/status", t = new URL(e, b);
3075
+ const e = "/status", t = new URL(e, P);
3091
3076
  let a;
3092
3077
  l && (a = l.baseOptions);
3093
3078
  const r = { method: "GET", ...a, ...n }, o = {};
3094
- P(t, {});
3079
+ b(t, {});
3095
3080
  let c = a && a.headers ? a.headers : {};
3096
3081
  return r.headers = { ...o, ...c, ...n.headers }, {
3097
3082
  url: v(t),
@@ -3105,11 +3090,11 @@ const fe = function(l) {
3105
3090
  * @throws {RequiredError}
3106
3091
  */
3107
3092
  getTheme: async (n = {}) => {
3108
- const e = "/theme", t = new URL(e, b);
3093
+ const e = "/theme", t = new URL(e, P);
3109
3094
  let a;
3110
3095
  l && (a = l.baseOptions);
3111
3096
  const r = { method: "GET", ...a, ...n }, o = {};
3112
- P(t, {});
3097
+ b(t, {});
3113
3098
  let c = a && a.headers ? a.headers : {};
3114
3099
  return r.headers = { ...o, ...c, ...n.headers }, {
3115
3100
  url: v(t),
@@ -3124,21 +3109,21 @@ const fe = function(l) {
3124
3109
  * @throws {RequiredError}
3125
3110
  */
3126
3111
  updateTheme: async (n, e = {}) => {
3127
- m("updateTheme", "theme", n);
3128
- const t = "/theme", a = new URL(t, b);
3112
+ h("updateTheme", "theme", n);
3113
+ const t = "/theme", a = new URL(t, P);
3129
3114
  let r;
3130
3115
  l && (r = l.baseOptions);
3131
3116
  const o = { method: "PUT", ...r, ...e }, s = {}, c = {};
3132
- s["Content-Type"] = "application/json", P(a, c);
3117
+ s["Content-Type"] = "application/json", b(a, c);
3133
3118
  let i = r && r.headers ? r.headers : {};
3134
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
3119
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
3135
3120
  url: v(a),
3136
3121
  options: o
3137
3122
  };
3138
3123
  }
3139
3124
  };
3140
3125
  }, w = function(l) {
3141
- const n = fe(l);
3126
+ const n = Me(l);
3142
3127
  return {
3143
3128
  /**
3144
3129
  * 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.
@@ -3148,7 +3133,7 @@ const fe = function(l) {
3148
3133
  */
3149
3134
  async deleteTheme(e) {
3150
3135
  const t = await n.deleteTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.deleteTheme"]?.[a]?.url;
3151
- return (o, s) => V(t, h, u, l)(o, r || s);
3136
+ return (o, s) => V(t, m, u, l)(o, r || s);
3152
3137
  },
3153
3138
  /**
3154
3139
  * 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.
@@ -3158,7 +3143,7 @@ const fe = function(l) {
3158
3143
  */
3159
3144
  async getStatus(e) {
3160
3145
  const t = await n.getStatus(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getStatus"]?.[a]?.url;
3161
- return (o, s) => V(t, h, u, l)(o, r || s);
3146
+ return (o, s) => V(t, m, u, l)(o, r || s);
3162
3147
  },
3163
3148
  /**
3164
3149
  * 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.
@@ -3168,7 +3153,7 @@ const fe = function(l) {
3168
3153
  */
3169
3154
  async getTheme(e) {
3170
3155
  const t = await n.getTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getTheme"]?.[a]?.url;
3171
- return (o, s) => V(t, h, u, l)(o, r || s);
3156
+ return (o, s) => V(t, m, u, l)(o, r || s);
3172
3157
  },
3173
3158
  /**
3174
3159
  * Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
@@ -3179,10 +3164,10 @@ const fe = function(l) {
3179
3164
  */
3180
3165
  async updateTheme(e, t) {
3181
3166
  const a = await n.updateTheme(e, t), r = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[r]?.url;
3182
- return (s, c) => V(a, h, u, l)(s, o || c);
3167
+ return (s, c) => V(a, m, u, l)(s, o || c);
3183
3168
  }
3184
3169
  };
3185
- }, et = function(l, n, e) {
3170
+ }, Za = function(l, n, e) {
3186
3171
  const t = w(l);
3187
3172
  return {
3188
3173
  /**
@@ -3224,7 +3209,7 @@ const fe = function(l) {
3224
3209
  }
3225
3210
  };
3226
3211
  };
3227
- class Be extends I {
3212
+ class fe extends I {
3228
3213
  /**
3229
3214
  * 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.
3230
3215
  * @summary Reset the instance theme to the boot seed or default
@@ -3267,7 +3252,7 @@ class Be extends I {
3267
3252
  return w(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
3268
3253
  }
3269
3254
  }
3270
- const Fe = function(l) {
3255
+ const Be = function(l) {
3271
3256
  return {
3272
3257
  /**
3273
3258
  * 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.
@@ -3276,11 +3261,11 @@ const Fe = function(l) {
3276
3261
  * @throws {RequiredError}
3277
3262
  */
3278
3263
  getWatchStatus: async (n = {}) => {
3279
- const e = "/watch-mode/status", t = new URL(e, b);
3264
+ const e = "/watch-mode/status", t = new URL(e, P);
3280
3265
  let a;
3281
3266
  l && (a = l.baseOptions);
3282
3267
  const r = { method: "GET", ...a, ...n }, o = {};
3283
- P(t, {});
3268
+ b(t, {});
3284
3269
  let c = a && a.headers ? a.headers : {};
3285
3270
  return r.headers = { ...o, ...c, ...n.headers }, {
3286
3271
  url: v(t),
@@ -3295,14 +3280,14 @@ const Fe = function(l) {
3295
3280
  * @throws {RequiredError}
3296
3281
  */
3297
3282
  startWatching: async (n, e = {}) => {
3298
- m("startWatching", "startWatchRequest", n);
3299
- const t = "/watch-mode/start", a = new URL(t, b);
3283
+ h("startWatching", "startWatchRequest", n);
3284
+ const t = "/watch-mode/start", a = new URL(t, P);
3300
3285
  let r;
3301
3286
  l && (r = l.baseOptions);
3302
3287
  const o = { method: "POST", ...r, ...e }, s = {}, c = {};
3303
- s["Content-Type"] = "application/json", P(a, c);
3288
+ s["Content-Type"] = "application/json", b(a, c);
3304
3289
  let i = r && r.headers ? r.headers : {};
3305
- return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
3290
+ return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
3306
3291
  url: v(a),
3307
3292
  options: o
3308
3293
  };
@@ -3314,11 +3299,11 @@ const Fe = function(l) {
3314
3299
  * @throws {RequiredError}
3315
3300
  */
3316
3301
  stopWatching: async (n = {}) => {
3317
- const e = "/watch-mode/stop", t = new URL(e, b);
3302
+ const e = "/watch-mode/stop", t = new URL(e, P);
3318
3303
  let a;
3319
3304
  l && (a = l.baseOptions);
3320
3305
  const r = { method: "POST", ...a, ...n }, o = {};
3321
- P(t, {});
3306
+ b(t, {});
3322
3307
  let c = a && a.headers ? a.headers : {};
3323
3308
  return r.headers = { ...o, ...c, ...n.headers }, {
3324
3309
  url: v(t),
@@ -3334,12 +3319,12 @@ const Fe = function(l) {
3334
3319
  * @throws {RequiredError}
3335
3320
  */
3336
3321
  streamPackageEvents: async (n, e, t = {}) => {
3337
- m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
3338
- const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, b);
3322
+ h("streamPackageEvents", "environmentName", n), h("streamPackageEvents", "packageName", e);
3323
+ const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
3339
3324
  let o;
3340
3325
  l && (o = l.baseOptions);
3341
3326
  const s = { method: "GET", ...o, ...t }, c = {};
3342
- P(r, {});
3327
+ b(r, {});
3343
3328
  let d = o && o.headers ? o.headers : {};
3344
3329
  return s.headers = { ...c, ...d, ...t.headers }, {
3345
3330
  url: v(r),
@@ -3348,7 +3333,7 @@ const Fe = function(l) {
3348
3333
  }
3349
3334
  };
3350
3335
  }, M = function(l) {
3351
- const n = Fe(l);
3336
+ const n = Be(l);
3352
3337
  return {
3353
3338
  /**
3354
3339
  * 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.
@@ -3358,7 +3343,7 @@ const Fe = function(l) {
3358
3343
  */
3359
3344
  async getWatchStatus(e) {
3360
3345
  const t = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
3361
- return (o, s) => V(t, h, u, l)(o, r || s);
3346
+ return (o, s) => V(t, m, u, l)(o, r || s);
3362
3347
  },
3363
3348
  /**
3364
3349
  * 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.
@@ -3369,7 +3354,7 @@ const Fe = function(l) {
3369
3354
  */
3370
3355
  async startWatching(e, t) {
3371
3356
  const a = await n.startWatching(e, t), r = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[r]?.url;
3372
- return (s, c) => V(a, h, u, l)(s, o || c);
3357
+ return (s, c) => V(a, m, u, l)(s, o || c);
3373
3358
  },
3374
3359
  /**
3375
3360
  * 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.
@@ -3379,7 +3364,7 @@ const Fe = function(l) {
3379
3364
  */
3380
3365
  async stopWatching(e) {
3381
3366
  const t = await n.stopWatching(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.stopWatching"]?.[a]?.url;
3382
- return (o, s) => V(t, h, u, l)(o, r || s);
3367
+ return (o, s) => V(t, m, u, l)(o, r || s);
3383
3368
  },
3384
3369
  /**
3385
3370
  * 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.
@@ -3391,10 +3376,10 @@ const Fe = function(l) {
3391
3376
  */
3392
3377
  async streamPackageEvents(e, t, a) {
3393
3378
  const r = await n.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
3394
- return (c, i) => V(r, h, u, l)(c, s || i);
3379
+ return (c, i) => V(r, m, u, l)(c, s || i);
3395
3380
  }
3396
3381
  };
3397
- }, at = function(l, n, e) {
3382
+ }, et = function(l, n, e) {
3398
3383
  const t = M(l);
3399
3384
  return {
3400
3385
  /**
@@ -3438,7 +3423,7 @@ const Fe = function(l) {
3438
3423
  }
3439
3424
  };
3440
3425
  };
3441
- class Qe extends I {
3426
+ class Fe extends I {
3442
3427
  /**
3443
3428
  * 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.
3444
3429
  * @summary Get watch mode status
@@ -3483,7 +3468,7 @@ class Qe extends I {
3483
3468
  return M(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
3484
3469
  }
3485
3470
  }
3486
- class $e {
3471
+ class Qe {
3487
3472
  /**
3488
3473
  * parameter for apiKey security
3489
3474
  * @param name security name
@@ -3570,25 +3555,25 @@ const B = {
3570
3555
  // right wing of the M
3571
3556
  darkBlue: "#1474a4"
3572
3557
  // deep shadow of the M
3573
- }, tt = {
3558
+ }, at = {
3574
3559
  violet: "#7c4dcc",
3575
3560
  magenta: "#c2478f",
3576
3561
  moss: "#5c8f3f"
3577
- }, rt = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', nt = y(J)({
3562
+ }, tt = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', rt = C(J)({
3578
3563
  display: "flex",
3579
3564
  flexDirection: "column",
3580
3565
  height: "100%",
3581
3566
  boxShadow: "none",
3582
3567
  border: "none",
3583
3568
  backgroundColor: "transparent"
3584
- }), ot = y(K)({
3569
+ }), nt = C(K)({
3585
3570
  display: "flex",
3586
3571
  flexDirection: "column",
3587
3572
  padding: "0",
3588
3573
  flexGrow: 1
3589
- }), st = y(he)({
3574
+ }), ot = C(me)({
3590
3575
  padding: "0"
3591
- }), lt = y("div")(({ theme: l }) => ({
3576
+ }), st = C("div")(({ theme: l }) => ({
3592
3577
  backgroundColor: l.palette.background.default,
3593
3578
  padding: "0 8px 0px 8px",
3594
3579
  borderRadius: "12px",
@@ -3596,25 +3581,13 @@ const B = {
3596
3581
  border: "none",
3597
3582
  maxWidth: "1200px",
3598
3583
  margin: "0 auto"
3599
- }));
3600
- y("div")(({ theme: l }) => ({
3601
- marginBottom: "40px",
3602
- paddingBottom: "24px",
3603
- borderBottom: `1px solid ${l.palette.divider}`
3604
- }));
3605
- const ct = y("div")({
3584
+ })), lt = C("div")({
3606
3585
  marginBottom: "48px",
3607
3586
  padding: "0",
3608
3587
  backgroundColor: "transparent",
3609
3588
  border: "none",
3610
3589
  boxShadow: "none"
3611
- }), it = y("div")({
3612
- marginBottom: "0",
3613
- padding: "0",
3614
- backgroundColor: "transparent",
3615
- border: "none",
3616
- boxShadow: "none"
3617
- }), dt = y("div")({
3590
+ }), ct = C("div")({
3618
3591
  backgroundColor: "transparent",
3619
3592
  paddingTop: "12px",
3620
3593
  paddingBottom: "2px",
@@ -3622,49 +3595,27 @@ const ct = y("div")({
3622
3595
  border: "none",
3623
3596
  boxShadow: "none",
3624
3597
  marginBottom: "0"
3625
- });
3626
- y("div")(({ theme: l }) => ({
3627
- backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
3628
- padding: "16px",
3629
- borderRadius: "8px",
3630
- border: `1px solid ${l.palette.divider}`,
3631
- fontFamily: "'Monaco', 'Menlo', 'Ubuntu Mono', monospace",
3632
- fontSize: "13px",
3633
- lineHeight: "1.5",
3634
- overflowX: "auto",
3635
- color: l.palette.text.primary
3636
- }));
3637
- y("div")(({ theme: l }) => ({
3638
- backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
3639
- padding: "12px 16px",
3640
- borderRadius: "8px",
3641
- border: `1px solid ${l.palette.divider}`,
3642
- marginBottom: "16px",
3643
- display: "flex",
3644
- justifyContent: "space-between",
3645
- alignItems: "center"
3646
- }));
3647
- const pt = y("div")({
3598
+ }), it = C("div")({
3648
3599
  height: "100%"
3649
3600
  });
3650
- y("div")({
3601
+ C("div")({
3651
3602
  height: "30px",
3652
3603
  backgroundColor: "rgba(225, 240, 255, 1)",
3653
3604
  display: "flex",
3654
3605
  padding: "4px",
3655
3606
  alignItems: "center"
3656
3607
  });
3657
- const mt = y("div")({
3608
+ const dt = C("div")({
3658
3609
  height: "75vh",
3659
3610
  width: "100%",
3660
3611
  overflowY: "auto"
3661
3612
  });
3662
- y("div")({
3613
+ C("div")({
3663
3614
  position: "relative",
3664
3615
  height: "100%",
3665
3616
  flex: "0 0 auto"
3666
3617
  });
3667
- const ht = y(J)(({ theme: l }) => ({
3618
+ const pt = C(J)(({ theme: l }) => ({
3668
3619
  backgroundColor: l.palette.background.paper,
3669
3620
  padding: "24px",
3670
3621
  borderRadius: "8px",
@@ -3675,12 +3626,12 @@ const ht = y(J)(({ theme: l }) => ({
3675
3626
  "&:hover": {
3676
3627
  boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
3677
3628
  }
3678
- })), ut = y(K)({
3629
+ })), ht = C(K)({
3679
3630
  padding: "0",
3680
3631
  "&:last-child": {
3681
3632
  paddingBottom: "0"
3682
3633
  }
3683
- }), gt = y("div")(({ theme: l }) => ({
3634
+ }), mt = C("div")(({ theme: l }) => ({
3684
3635
  fontSize: "0.875rem",
3685
3636
  fontWeight: 500,
3686
3637
  color: l.palette.text.secondary,
@@ -3688,7 +3639,7 @@ const ht = y(J)(({ theme: l }) => ({
3688
3639
  paddingBottom: "8px",
3689
3640
  borderBottom: `1px solid ${l.palette.divider}`
3690
3641
  }));
3691
- y("div")({
3642
+ C("div")({
3692
3643
  padding: "32px",
3693
3644
  maxWidth: "1400px",
3694
3645
  margin: "0 auto",
@@ -3703,7 +3654,7 @@ const ze = [
3703
3654
  "#f9c85b",
3704
3655
  "#aacd85",
3705
3656
  "#b87ced"
3706
- ], qe = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
3657
+ ], $e = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
3707
3658
  defaultMode: "light",
3708
3659
  allowUserToggle: !0,
3709
3660
  palette: {
@@ -3752,10 +3703,10 @@ const ze = [
3752
3703
  }
3753
3704
  },
3754
3705
  font: {
3755
- family: qe,
3706
+ family: $e,
3756
3707
  size: 12
3757
3708
  }
3758
- }, De = [
3709
+ }, qe = [
3759
3710
  "background",
3760
3711
  "tableHeader",
3761
3712
  "tableHeaderBackground",
@@ -3784,9 +3735,9 @@ function ae(l, n) {
3784
3735
  for (const p of l)
3785
3736
  if (p) {
3786
3737
  Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
3787
- for (const O of De) {
3788
- const C = p.palette?.[O];
3789
- C && (s[O] = { ...s[O], ...C });
3738
+ for (const O of qe) {
3739
+ const k = p.palette?.[O];
3740
+ k && (s[O] = { ...s[O], ...k });
3790
3741
  }
3791
3742
  typeof p.font?.family == "string" && (r = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
3792
3743
  }
@@ -3826,12 +3777,12 @@ function ae(l, n) {
3826
3777
  drillLink: c ? "#60a5fa" : "#2563eb"
3827
3778
  };
3828
3779
  }
3829
- function Le(l, n, e) {
3780
+ function De(l, n, e) {
3830
3781
  const t = n ?? l ?? "light";
3831
3782
  return t === "auto" ? e ? "dark" : "light" : t;
3832
3783
  }
3833
3784
  const te = G(void 0);
3834
- function je({
3785
+ function Le({
3835
3786
  layers: l,
3836
3787
  mode: n,
3837
3788
  userChoice: e,
@@ -3845,7 +3796,7 @@ function je({
3845
3796
  );
3846
3797
  return /* @__PURE__ */ F(te.Provider, { value: s, children: r });
3847
3798
  }
3848
- function bt() {
3799
+ function ut() {
3849
3800
  const l = Y(te);
3850
3801
  return l || {
3851
3802
  theme: ae([], "light"),
@@ -3857,7 +3808,22 @@ function bt() {
3857
3808
  allowUserToggle: !1
3858
3809
  };
3859
3810
  }
3860
- const L = "publisher:themeMode";
3811
+ const je = new ce({
3812
+ defaultOptions: {
3813
+ queries: {
3814
+ retry: !1,
3815
+ throwOnError: !1
3816
+ },
3817
+ mutations: {
3818
+ retry: !1,
3819
+ throwOnError: !1
3820
+ }
3821
+ }
3822
+ }), gt = {
3823
+ staleTime: 300 * 1e3,
3824
+ refetchOnWindowFocus: !1,
3825
+ refetchOnReconnect: !1
3826
+ }, L = "publisher:themeMode";
3861
3827
  function He() {
3862
3828
  if (!(typeof window > "u"))
3863
3829
  try {
@@ -3876,9 +3842,9 @@ function _e(l) {
3876
3842
  function We() {
3877
3843
  return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3878
3844
  }
3879
- h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3845
+ m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
3880
3846
  const re = G(void 0), Ge = (l, n) => {
3881
- const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = h.create({
3847
+ const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = m.create({
3882
3848
  baseURL: l || e,
3883
3849
  withCredentials: !0,
3884
3850
  timeout: 6e5
@@ -3887,25 +3853,25 @@ const re = G(void 0), Ge = (l, n) => {
3887
3853
  const o = await n?.();
3888
3854
  return r.headers.Authorization = o || "", r;
3889
3855
  });
3890
- const a = new $e({ basePath: e });
3856
+ const a = new Qe({ basePath: e });
3891
3857
  return {
3892
- models: new Te(a, e, t),
3893
- publisher: new Be(a, e, t),
3894
- environments: new xe(a, e, t),
3895
- packages: new Me(a, e, t),
3896
- dashboards: new Oe(a, e, t),
3897
- dataApps: new ke(a, e, t),
3898
- notebooks: new Ee(a, e, t),
3858
+ models: new Ne(a, e, t),
3859
+ publisher: new fe(a, e, t),
3860
+ environments: new Ie(a, e, t),
3861
+ packages: new we(a, e, t),
3862
+ dashboards: new Ve(a, e, t),
3863
+ dataApps: new Se(a, e, t),
3864
+ notebooks: new Ue(a, e, t),
3899
3865
  connections: new Pe(a, e, t),
3900
- databases: new Ce(a, e, t),
3901
- materializations: new Re(
3866
+ databases: new ke(a, e, t),
3867
+ materializations: new Ae(
3902
3868
  a,
3903
3869
  e,
3904
3870
  t
3905
3871
  ),
3906
- watchMode: new Qe(a, e, t)
3872
+ watchMode: new Fe(a, e, t)
3907
3873
  };
3908
- }, Pt = (l) => /* @__PURE__ */ F(ie, { client: ue, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3874
+ }, Pt = (l) => /* @__PURE__ */ F(ie, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
3909
3875
  children: l,
3910
3876
  getAccessToken: n,
3911
3877
  baseURL: e,
@@ -3926,23 +3892,23 @@ const re = G(void 0), Ge = (l, n) => {
3926
3892
  const O = f(
3927
3893
  () => [i, a],
3928
3894
  [i, a]
3929
- ), [C, U] = _(
3895
+ ), [k, U] = _(
3930
3896
  He
3931
- ), [x, $] = _(We);
3897
+ ), [x, z] = _(We);
3932
3898
  pe(() => {
3933
3899
  if (typeof window > "u" || !window.matchMedia) return;
3934
- const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (le) => $(le.matches);
3900
+ const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (le) => z(le.matches);
3935
3901
  return R.addEventListener("change", H), () => R.removeEventListener("change", H);
3936
3902
  }, []);
3937
- const ne = me((R) => {
3903
+ const ne = he((R) => {
3938
3904
  U(R), _e(R);
3939
- }, []), j = i?.allowUserToggle ?? !0, z = j ? C : void 0, oe = f(
3940
- () => Le(
3905
+ }, []), j = i?.allowUserToggle ?? !0, $ = j ? k : void 0, oe = f(
3906
+ () => De(
3941
3907
  i?.defaultMode,
3942
- z,
3908
+ $,
3943
3909
  x
3944
3910
  ),
3945
- [i?.defaultMode, z, x]
3911
+ [i?.defaultMode, $, x]
3946
3912
  ), se = {
3947
3913
  server: o,
3948
3914
  getAccessToken: n,
@@ -3952,136 +3918,135 @@ const re = G(void 0), Ge = (l, n) => {
3952
3918
  instanceTheme: i
3953
3919
  };
3954
3920
  return /* @__PURE__ */ F(re.Provider, { value: se, children: /* @__PURE__ */ F(
3955
- je,
3921
+ Le,
3956
3922
  {
3957
3923
  layers: O,
3958
3924
  mode: oe,
3959
- userChoice: z,
3925
+ userChoice: $,
3960
3926
  setMode: ne,
3961
3927
  allowUserToggle: j,
3962
3928
  children: l
3963
3929
  }
3964
3930
  ) });
3965
- }, vt = () => {
3931
+ }, bt = () => {
3966
3932
  const l = Y(re);
3967
3933
  if (l === void 0)
3968
3934
  throw new Error("useServer must be used within a ServerProvider");
3969
3935
  return l;
3970
3936
  };
3971
3937
  export {
3972
- Oe as $,
3973
- ta as A,
3974
- Fa as B,
3975
- na as C,
3976
- da as D,
3977
- Qa as E,
3978
- ma as F,
3979
- ua as G,
3980
- $a as H,
3981
- be as I,
3938
+ Ve as $,
3939
+ aa as A,
3940
+ Ba as B,
3941
+ ra as C,
3942
+ ia as D,
3943
+ Fa as E,
3944
+ pa as F,
3945
+ ma as G,
3946
+ Qa as H,
3947
+ ge as I,
3982
3948
  S as J,
3983
- qa as K,
3984
- ga as L,
3949
+ $a as K,
3950
+ ua as L,
3985
3951
  Pa as M,
3986
- Sa as N,
3952
+ Oa as N,
3987
3953
  Pe as O,
3988
3954
  ya as P,
3989
- Ua as Q,
3990
- Ma as R,
3955
+ Ta as Q,
3956
+ wa as R,
3991
3957
  Pt as S,
3992
3958
  za as T,
3993
- ve as U,
3959
+ be as U,
3994
3960
  X as V,
3995
- Da as W,
3996
- La as X,
3997
- Ve as Y,
3961
+ qa as W,
3962
+ Da as X,
3963
+ ve as Y,
3998
3964
  D as Z,
3999
- ja as _,
4000
- ra as a,
4001
- Se as a0,
3965
+ La as _,
3966
+ ta as a,
3967
+ Oe as a0,
4002
3968
  Z as a1,
4003
- Ha as a2,
4004
- ke as a3,
3969
+ ja as a2,
3970
+ Se as a3,
4005
3971
  ye as a4,
4006
3972
  ee as a5,
4007
- _a as a6,
4008
- Ce as a7,
4009
- Ie as a8,
3973
+ Ha as a6,
3974
+ ke as a7,
3975
+ Ce as a8,
4010
3976
  N as a9,
4011
- at as aA,
4012
- Qe as aB,
4013
- $e as aC,
4014
- bt as aD,
4015
- aa as aE,
4016
- rt as aF,
4017
- ht as aG,
4018
- ut as aH,
4019
- gt as aI,
4020
- B as aJ,
4021
- it as aK,
4022
- dt as aL,
3977
+ et as aA,
3978
+ Fe as aB,
3979
+ Qe as aC,
3980
+ qe as aD,
3981
+ ut as aE,
3982
+ ae as aF,
3983
+ tt as aG,
3984
+ pt as aH,
3985
+ ht as aI,
3986
+ mt as aJ,
3987
+ B as aK,
3988
+ ct as aL,
4023
3989
  st as aM,
4024
- pt as aN,
4025
- mt as aO,
4026
- nt as aP,
4027
- ot as aQ,
4028
- lt as aR,
4029
- ct as aS,
4030
- tt as aT,
4031
- De as aU,
4032
- ae as aV,
4033
- W as aW,
4034
- Le as aX,
4035
- je as aY,
4036
- Wa as aa,
4037
- xe as ab,
4038
- Ae as ac,
3990
+ lt as aN,
3991
+ at as aO,
3992
+ W as aP,
3993
+ De as aQ,
3994
+ Le as aR,
3995
+ gt as aS,
3996
+ ot as aT,
3997
+ it as aU,
3998
+ dt as aV,
3999
+ rt as aW,
4000
+ nt as aX,
4001
+ _a as aa,
4002
+ Ie as ab,
4003
+ xe as ac,
4039
4004
  A as ad,
4040
- Ga as ae,
4041
- Re as af,
4042
- Ya as ag,
4043
- Ne as ah,
4005
+ Wa as ae,
4006
+ Ae as af,
4007
+ Ga as ag,
4008
+ Re as ah,
4044
4009
  E as ai,
4045
- Ja as aj,
4046
- Te as ak,
4047
- Ue as al,
4010
+ Ya as aj,
4011
+ Ne as ak,
4012
+ Te as al,
4048
4013
  Q as am,
4049
- Ka as an,
4050
- Ee as ao,
4051
- Xa as ap,
4052
- we as aq,
4014
+ Ja as an,
4015
+ Ue as ao,
4016
+ Ka as ap,
4017
+ Ee as aq,
4053
4018
  T as ar,
4054
- Za as as,
4055
- Me as at,
4056
- fe as au,
4019
+ Xa as as,
4020
+ we as at,
4021
+ Me as au,
4057
4022
  w as av,
4058
- et as aw,
4059
- Be as ax,
4060
- Fe as ay,
4023
+ Za as aw,
4024
+ fe as ax,
4025
+ Be as ay,
4061
4026
  M as az,
4062
- oa as b,
4063
- sa as c,
4064
- la as d,
4065
- ca as e,
4066
- ia as f,
4067
- ue as g,
4068
- pa as h,
4027
+ na as b,
4028
+ oa as c,
4029
+ sa as d,
4030
+ la as e,
4031
+ ca as f,
4032
+ je as g,
4033
+ da as h,
4069
4034
  ha as i,
4070
- ba as j,
4071
- va as k,
4072
- Va as l,
4073
- Oa as m,
4074
- ka as n,
4075
- Ca as o,
4076
- Ia as p,
4077
- xa as q,
4078
- Aa as r,
4079
- Ra as s,
4080
- Na as t,
4081
- vt as u,
4082
- Ta as v,
4083
- Ea as w,
4084
- wa as x,
4085
- fa as y,
4086
- Ba as z
4035
+ ga as j,
4036
+ ba as k,
4037
+ va as l,
4038
+ Va as m,
4039
+ Sa as n,
4040
+ ka as o,
4041
+ Ca as p,
4042
+ Ia as q,
4043
+ xa as r,
4044
+ Aa as s,
4045
+ Ra as t,
4046
+ bt as u,
4047
+ Na as v,
4048
+ Ua as w,
4049
+ Ea as x,
4050
+ Ma as y,
4051
+ fa as z
4087
4052
  };