@malloy-publisher/sdk 0.9.13 → 0.9.15
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.
- package/dist/RenderedResult-BClN_PG6.cjs.js +154 -0
- package/dist/{RenderedResult-DnBtf-cI.es.js → RenderedResult-YBzVMVH2.es.js} +295 -234
- package/dist/{ServerProvider-BV7IoDMR.es.js → ServerProvider-D7neZcTk.es.js} +283 -265
- package/dist/ServerProvider-e2369oom.cjs.js +1 -0
- package/dist/builder/index.cjs.js +80 -79
- package/dist/builder/index.es.js +7430 -6548
- package/dist/client/api.d.ts +30 -6
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Dashboard/DashboardGrid.d.ts +49 -1
- package/dist/components/Dashboard/DashboardTile.d.ts +5 -2
- package/dist/components/Dashboard/DashboardView.d.ts +9 -2
- package/dist/components/Dashboard/index.d.ts +1 -1
- package/dist/components/Dashboard/promoteMeasureRow.d.ts +5 -7
- package/dist/components/Dashboard/useStuck.d.ts +18 -12
- package/dist/components/RenderedResult/RenderedResult.d.ts +3 -2
- package/dist/components/RenderedResult/ResultContainer.d.ts +11 -1
- package/dist/components/RenderedResult/ResultPanel.d.ts +5 -1
- package/dist/components/RenderedResult/chartPresentation.d.ts +15 -0
- package/dist/components/RenderedResult/chartShapeProblem.d.ts +55 -0
- package/dist/components/RenderedResult/resultSizing.d.ts +42 -6
- package/dist/components/Report/Report.d.ts +7 -1
- package/dist/components/Report/ReportPage.d.ts +7 -0
- package/dist/components/Report/layoutRules.d.ts +45 -0
- package/dist/components/ReportBuilder/AddTileDialog.d.ts +2 -1
- package/dist/components/ReportBuilder/BuilderGrid.d.ts +14 -1
- package/dist/components/ReportBuilder/ChartPicker.d.ts +4 -2
- package/dist/components/ReportBuilder/EditorSurface.d.ts +17 -1
- package/dist/components/ReportBuilder/ReportEditor.d.ts +18 -0
- package/dist/components/ReportBuilder/TileFrame.d.ts +33 -1
- package/dist/components/ReportBuilder/TileMenu.d.ts +5 -2
- package/dist/components/ReportBuilder/catalog.d.ts +23 -0
- package/dist/components/ReportBuilder/chartLine.d.ts +38 -5
- package/dist/components/ReportBuilder/controls.d.ts +2 -2
- package/dist/components/ReportBuilder/document.d.ts +53 -5
- package/dist/components/ReportBuilder/imports.d.ts +7 -0
- package/dist/components/ReportBuilder/placement.d.ts +75 -0
- package/dist/components/ReportBuilder/preview.d.ts +59 -10
- package/dist/components/ReportBuilder/sortable.d.ts +3 -1
- package/dist/components/ReportBuilder/useTileHeight.d.ts +39 -0
- package/dist/components/ReportBuilder/useTileReorder.d.ts +27 -3
- package/dist/components/ReportBuilder/useTileResize.d.ts +8 -0
- package/dist/index.cjs.js +7 -7
- package/dist/index.es.js +3328 -3287
- package/dist/text/index.es.js +1 -1
- package/dist/{text-entry-72YFLeNk.es.js → text-entry-YKJZbRPo.es.js} +2 -2
- package/dist/theme/resolveTheme.d.ts +15 -0
- package/dist/{useCompiledDocument-B4QF1mIl.es.js → useCompiledDocument-BGk38oaW.es.js} +5097 -4805
- package/dist/useCompiledDocument-D9t5ry_t.cjs.js +142 -0
- package/dist/utils/blankQuoted.d.ts +15 -0
- package/package.json +1 -1
- package/src/components/Dashboard/DashboardGrid.tsx +127 -10
- package/src/components/Dashboard/DashboardTile.tsx +11 -1
- package/src/components/Dashboard/DashboardView.tsx +63 -10
- package/src/components/Dashboard/TileCard.tsx +6 -0
- package/src/components/Dashboard/index.ts +1 -0
- package/src/components/Dashboard/promoteMeasureRow.spec.ts +19 -0
- package/src/components/Dashboard/promoteMeasureRow.ts +15 -36
- package/src/components/Dashboard/tileHeight.spec.ts +72 -0
- package/src/components/Dashboard/useStuck.ts +76 -28
- package/src/components/Package/NewDocumentDialog.spec.tsx +20 -16
- package/src/components/Package/NewDocumentDialog.tsx +10 -11
- package/src/components/RenderedResult/RenderedResult.lifecycle.spec.tsx +167 -2
- package/src/components/RenderedResult/RenderedResult.tsx +21 -6
- package/src/components/RenderedResult/ResultContainer.tsx +60 -7
- package/src/components/RenderedResult/ResultPanel.tsx +21 -1
- package/src/components/RenderedResult/chartPresentation.spec.ts +153 -0
- package/src/components/RenderedResult/chartPresentation.ts +166 -0
- package/src/components/RenderedResult/chartShapeProblem.spec.tsx +245 -0
- package/src/components/RenderedResult/chartShapeProblem.ts +219 -0
- package/src/components/RenderedResult/resultSizing.spec.ts +75 -3
- package/src/components/RenderedResult/resultSizing.ts +65 -11
- package/src/components/Report/Report.spec.tsx +19 -0
- package/src/components/Report/Report.tsx +8 -1
- package/src/components/Report/ReportPage.tsx +13 -1
- package/src/components/Report/layoutRules.spec.ts +43 -3
- package/src/components/Report/layoutRules.ts +70 -0
- package/src/components/Report/tileOverflow.spec.tsx +162 -0
- package/src/components/ReportBuilder/AddTileDialog.spec.tsx +2 -2
- package/src/components/ReportBuilder/AddTileDialog.tsx +11 -6
- package/src/components/ReportBuilder/BuilderBar.tsx +1 -1
- package/src/components/ReportBuilder/BuilderDialogs.tsx +20 -0
- package/src/components/ReportBuilder/BuilderGrid.tsx +126 -20
- package/src/components/ReportBuilder/ChartPicker.spec.ts +91 -4
- package/src/components/ReportBuilder/ChartPicker.tsx +45 -10
- package/src/components/ReportBuilder/DrillDialog.tsx +8 -2
- package/src/components/ReportBuilder/EditorSurface.tsx +110 -28
- package/src/components/ReportBuilder/FilterDialog.tsx +17 -8
- package/src/components/ReportBuilder/FilterStrip.tsx +2 -1
- package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +193 -2
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +4 -2
- package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +2 -2
- package/src/components/ReportBuilder/ReportBuilder.spec.tsx +143 -2
- package/src/components/ReportBuilder/ReportBuilder.tsx +73 -19
- package/src/components/ReportBuilder/ReportEditor.fileModel.spec.tsx +178 -0
- package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +3 -5
- package/src/components/ReportBuilder/ReportEditor.queryVersion.spec.tsx +292 -0
- package/src/components/ReportBuilder/ReportEditor.readOnlyTitle.spec.tsx +92 -0
- package/src/components/ReportBuilder/ReportEditor.tsx +35 -0
- package/src/components/ReportBuilder/TileFrame.tsx +251 -6
- package/src/components/ReportBuilder/TileMenu.tsx +259 -20
- package/src/components/ReportBuilder/ViewPicker.tsx +4 -3
- package/src/components/ReportBuilder/addTileToDocument.spec.ts +34 -0
- package/src/components/ReportBuilder/addTileToDocument.ts +26 -1
- package/src/components/ReportBuilder/catalog.aggregate.spec.ts +137 -1
- package/src/components/ReportBuilder/catalog.ts +90 -37
- package/src/components/ReportBuilder/chartLine.spec.ts +42 -5
- package/src/components/ReportBuilder/chartLine.ts +80 -2
- package/src/components/ReportBuilder/controls.ts +4 -3
- package/src/components/ReportBuilder/document.ts +65 -7
- package/src/components/ReportBuilder/emptyStart.spec.ts +1 -1
- package/src/components/ReportBuilder/entryLayout.spec.ts +151 -0
- package/src/components/ReportBuilder/imports.ts +1 -1
- package/src/components/ReportBuilder/invariants.spec.ts +18 -10
- package/src/components/ReportBuilder/layout.ts +3 -0
- package/src/components/ReportBuilder/placement.spec.ts +193 -0
- package/src/components/ReportBuilder/placement.ts +250 -0
- package/src/components/ReportBuilder/preview.shapes.spec.ts +46 -6
- package/src/components/ReportBuilder/preview.spec.ts +151 -11
- package/src/components/ReportBuilder/preview.ts +203 -40
- package/src/components/ReportBuilder/preview.unsaved.compile.spec.ts +190 -0
- package/src/components/ReportBuilder/readDocument.spec.ts +46 -2
- package/src/components/ReportBuilder/readDocument.ts +194 -23
- package/src/components/ReportBuilder/scannerShapes.spec.ts +10 -10
- package/src/components/ReportBuilder/sortable.tsx +4 -0
- package/src/components/ReportBuilder/spliceDocument.chart.spec.ts +1 -1
- package/src/components/ReportBuilder/spliceDocument.color.spec.ts +80 -0
- package/src/components/ReportBuilder/spliceDocument.colspan.spec.ts +78 -0
- package/src/components/ReportBuilder/spliceDocument.spec.ts +110 -18
- package/src/components/ReportBuilder/spliceDocument.ts +139 -52
- package/src/components/ReportBuilder/statementExtent.spec.ts +3 -3
- package/src/components/ReportBuilder/testing/reportGivenOrder.json +42 -0
- package/src/components/ReportBuilder/textTiles.spec.ts +2 -2
- package/src/components/ReportBuilder/tileDisplayTitle.ts +2 -2
- package/src/components/ReportBuilder/useTileEditing.ts +16 -3
- package/src/components/ReportBuilder/useTileHeight.ts +149 -0
- package/src/components/ReportBuilder/useTileReorder.ts +143 -6
- package/src/components/ReportBuilder/useTileResize.ts +16 -1
- package/src/components/given/FilterButton.spec.tsx +27 -11
- package/src/components/given/FilterButton.tsx +19 -6
- package/src/theme/resolveTheme.spec.ts +72 -1
- package/src/theme/resolveTheme.ts +43 -0
- package/src/utils/blankQuoted.spec.ts +50 -0
- package/src/utils/blankQuoted.ts +32 -0
- package/src/utils/malloyText.ts +2 -1
- package/dist/RenderedResult-DtQtNV0d.cjs.js +0 -153
- package/dist/ServerProvider-BIFPCzTD.cjs.js +0 -1
- package/dist/useCompiledDocument-D0OAMejE.cjs.js +0 -142
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
-
import { QueryClient as Ve, QueryClientProvider as Oe, useQuery as
|
|
2
|
+
import { QueryClient as Ve, QueryClientProvider as Oe, useQuery as Ae } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as se, useMemo as F, createContext as le, useState as
|
|
4
|
+
import { useContext as se, useMemo as F, createContext as le, useState as ne, useEffect as ke, useCallback as ye } from "react";
|
|
5
5
|
import { styled as D, Card as Ce, CardContent as Ie, CardMedia as xe } from "@mui/material";
|
|
6
|
-
const
|
|
6
|
+
const re = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", N = {
|
|
7
7
|
radius: { control: "6px", tile: "8px", menu: "10px", dialog: "12px" },
|
|
8
8
|
size: { control: 32, chip: 24 },
|
|
9
9
|
type: {
|
|
@@ -13,9 +13,9 @@ const ne = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", N = {
|
|
|
13
13
|
control: { fontSize: 13, fontWeight: 500 },
|
|
14
14
|
caption: { fontSize: 12, lineHeight: 1.4 },
|
|
15
15
|
label: { fontSize: 12, fontWeight: 600, lineHeight: 1.4 },
|
|
16
|
-
code: { fontSize: 11.5, fontFamily:
|
|
16
|
+
code: { fontSize: 11.5, fontFamily: re }
|
|
17
17
|
},
|
|
18
|
-
font: { mono:
|
|
18
|
+
font: { mono: re },
|
|
19
19
|
shadow: { menu: "0 8px 24px rgba(16, 24, 40, 0.12)" }
|
|
20
20
|
};
|
|
21
21
|
function Re(c) {
|
|
@@ -105,31 +105,31 @@ const x = {
|
|
|
105
105
|
return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
|
|
106
106
|
});
|
|
107
107
|
return 0.2126 * n + 0.7152 * e + 0.0722 * t;
|
|
108
|
-
},
|
|
108
|
+
}, L = (c, n) => {
|
|
109
109
|
const [e, t] = [W(c), W(n)].sort((a, r) => r - a);
|
|
110
110
|
return (e + 0.05) / (t + 0.05);
|
|
111
111
|
};
|
|
112
112
|
function Ea(c, n) {
|
|
113
113
|
const e = U(c), t = U(n);
|
|
114
|
-
return e && t ?
|
|
114
|
+
return e && t ? L(e, t) : void 0;
|
|
115
115
|
}
|
|
116
116
|
const we = [15, 23, 42];
|
|
117
117
|
function $(c, n, e = Te) {
|
|
118
118
|
const t = U(c), a = U(n);
|
|
119
|
-
if (!t || !a ||
|
|
119
|
+
if (!t || !a || L(t, a) >= e) return c;
|
|
120
120
|
const r = W(a) < 0.5 ? 255 : 0;
|
|
121
121
|
for (let o = 0.05; o < 1; o += 0.05) {
|
|
122
122
|
const s = U(G(t, r, o));
|
|
123
|
-
if (s &&
|
|
123
|
+
if (s && L(s, a) >= e) return ce(s);
|
|
124
124
|
}
|
|
125
125
|
return r === 255 ? "#ffffff" : "#000000";
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function oe(c, n, e = Ue[n]) {
|
|
128
128
|
const t = Ne[n];
|
|
129
129
|
if (!c || c.toLowerCase() === x.blue) return t;
|
|
130
130
|
if (!U(c))
|
|
131
131
|
return n === "light" ? { ...t, accent: c, accentHover: c } : t;
|
|
132
|
-
const a = $(c, e), r = U(a), o = n === "dark" ? G(r, 255, 0.25) : G(r, 0, 0.2), s =
|
|
132
|
+
const a = $(c, e), r = U(a), o = n === "dark" ? G(r, 255, 0.25) : G(r, 0, 0.2), s = L(r, [255, 255, 255]), l = L(r, we);
|
|
133
133
|
return {
|
|
134
134
|
accent: a,
|
|
135
135
|
accentHover: o,
|
|
@@ -145,7 +145,7 @@ const fe = [
|
|
|
145
145
|
x.amber,
|
|
146
146
|
x.cyan,
|
|
147
147
|
x.lime
|
|
148
|
-
], Ee = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
|
|
148
|
+
], Ee = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", K = {
|
|
149
149
|
defaultMode: "light",
|
|
150
150
|
allowUserToggle: !0,
|
|
151
151
|
palette: {
|
|
@@ -254,7 +254,7 @@ const fe = [
|
|
|
254
254
|
"value"
|
|
255
255
|
];
|
|
256
256
|
function ie(c, n) {
|
|
257
|
-
const e =
|
|
257
|
+
const e = K.palette ?? {}, t = K.font ?? {
|
|
258
258
|
family: "sans-serif",
|
|
259
259
|
size: 12
|
|
260
260
|
};
|
|
@@ -279,16 +279,16 @@ function ie(c, n) {
|
|
|
279
279
|
light: /* @__PURE__ */ new Set(),
|
|
280
280
|
dark: /* @__PURE__ */ new Set()
|
|
281
281
|
};
|
|
282
|
-
for (const
|
|
283
|
-
if (
|
|
284
|
-
Array.isArray(
|
|
282
|
+
for (const A of c)
|
|
283
|
+
if (A) {
|
|
284
|
+
Array.isArray(A.palette?.series) && (a = [...A.palette.series], r = !0);
|
|
285
285
|
for (const I of Me) {
|
|
286
|
-
const R =
|
|
286
|
+
const R = A.palette?.[I];
|
|
287
287
|
R && (l[I] = { ...l[I], ...R }, R.light !== void 0 && i.light.add(I), R.dark !== void 0 && i.dark.add(I));
|
|
288
288
|
}
|
|
289
|
-
typeof
|
|
289
|
+
typeof A.font?.family == "string" && (o = A.font.family), typeof A.font?.size == "number" && (s = A.font.size);
|
|
290
290
|
}
|
|
291
|
-
const p = n === "dark", d = (
|
|
291
|
+
const p = n === "dark", d = (A) => l[A][n] ?? e[A]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? $(l.mapColor.light, h) : d("mapColor");
|
|
292
292
|
return {
|
|
293
293
|
mode: n,
|
|
294
294
|
// The host's chrome tokens are laid over this by `ThemeProvider`.
|
|
@@ -296,8 +296,8 @@ function ie(c, n) {
|
|
|
296
296
|
// One series list for both modes, picked against a light page: in dark,
|
|
297
297
|
// an operator's colour too dark to see on the canvas is lifted until it
|
|
298
298
|
// reads. The defaults are drawn as they always were.
|
|
299
|
-
series: p && r ? a.map((
|
|
300
|
-
...
|
|
299
|
+
series: p && r ? a.map((A) => $(A, h)) : a,
|
|
300
|
+
...oe(a[0], n, h),
|
|
301
301
|
font: { family: o, size: s },
|
|
302
302
|
background: h,
|
|
303
303
|
tableHeader: d("tableHeader"),
|
|
@@ -345,7 +345,24 @@ function ie(c, n) {
|
|
|
345
345
|
// contrast on the slate panel.
|
|
346
346
|
// The Console's default accent, not the palette's: a drill reads as a
|
|
347
347
|
// link whatever the operator picked for the data.
|
|
348
|
-
drillLink:
|
|
348
|
+
drillLink: oe(void 0, n).accent
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function Ma(c, n) {
|
|
352
|
+
const e = n.palette?.series;
|
|
353
|
+
if (!Array.isArray(e) || e.length !== 1) return n;
|
|
354
|
+
const t = e[0], a = c.reduce(
|
|
355
|
+
(i, p) => Array.isArray(p?.palette?.series) ? p.palette.series : i,
|
|
356
|
+
K.palette?.series ?? []
|
|
357
|
+
), r = (i) => i.toLowerCase() === t.toLowerCase(), [o, ...s] = a, l = s.length > 0 ? s.map((i) => r(i) ? o : i) : (
|
|
358
|
+
// A one-colour host palette has no second slot, so its one colour is the second series.
|
|
359
|
+
[o].filter(
|
|
360
|
+
(i) => i !== void 0 && !r(i)
|
|
361
|
+
)
|
|
362
|
+
);
|
|
363
|
+
return {
|
|
364
|
+
...n,
|
|
365
|
+
palette: { ...n.palette, series: [t, ...l] }
|
|
349
366
|
};
|
|
350
367
|
}
|
|
351
368
|
function Fe(c, n, e) {
|
|
@@ -375,7 +392,7 @@ function De({
|
|
|
375
392
|
);
|
|
376
393
|
return /* @__PURE__ */ q(pe.Provider, { value: p, children: o });
|
|
377
394
|
}
|
|
378
|
-
function
|
|
395
|
+
function Fa() {
|
|
379
396
|
const c = se(pe);
|
|
380
397
|
return c || {
|
|
381
398
|
theme: ie([], "light"),
|
|
@@ -403,17 +420,17 @@ const b = {}, S = "https://example.com", m = function(c, n, e) {
|
|
|
403
420
|
if (e == null)
|
|
404
421
|
throw new Be(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
|
|
405
422
|
};
|
|
406
|
-
function
|
|
407
|
-
n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) =>
|
|
408
|
-
(t) =>
|
|
423
|
+
function Y(c, n, e = "") {
|
|
424
|
+
n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) => Y(c, t, e)) : Object.keys(n).forEach(
|
|
425
|
+
(t) => Y(c, n[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
409
426
|
) : c.has(e) ? c.append(e, n) : c.set(e, n));
|
|
410
427
|
}
|
|
411
428
|
const v = function(c, ...n) {
|
|
412
429
|
const e = new URLSearchParams(c.search);
|
|
413
|
-
|
|
430
|
+
Y(e, n), c.search = e.toString();
|
|
414
431
|
}, je = function(c, n) {
|
|
415
432
|
return n instanceof Set ? Array.from(n) : n;
|
|
416
|
-
},
|
|
433
|
+
}, k = function(c, n, e) {
|
|
417
434
|
const t = typeof c != "string";
|
|
418
435
|
return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(c !== void 0 ? c : {}, je) : c || "";
|
|
419
436
|
}, P = function(c) {
|
|
@@ -423,34 +440,34 @@ const v = function(c, ...n) {
|
|
|
423
440
|
const o = { ...c.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + c.url };
|
|
424
441
|
return a.request(o);
|
|
425
442
|
};
|
|
426
|
-
},
|
|
443
|
+
}, Da = {
|
|
427
444
|
Bigquery: "bigquery",
|
|
428
445
|
Snowflake: "snowflake",
|
|
429
446
|
Postgres: "postgres",
|
|
430
447
|
Gcs: "gcs",
|
|
431
448
|
S3: "s3",
|
|
432
449
|
Azure: "azure"
|
|
433
|
-
},
|
|
450
|
+
}, Ba = {
|
|
434
451
|
ServicePrincipal: "service_principal",
|
|
435
452
|
SasToken: "sas_token"
|
|
436
|
-
},
|
|
453
|
+
}, ja = {
|
|
437
454
|
Error: "error",
|
|
438
455
|
Warn: "warn",
|
|
439
456
|
Debug: "debug"
|
|
440
|
-
},
|
|
457
|
+
}, qa = {
|
|
441
458
|
Append: "append",
|
|
442
459
|
File: "file",
|
|
443
460
|
Package: "package"
|
|
444
|
-
},
|
|
461
|
+
}, La = {
|
|
445
462
|
Success: "success",
|
|
446
463
|
Error: "error"
|
|
447
464
|
}, Qa = {
|
|
448
465
|
Grid: "grid",
|
|
449
466
|
Linear: "linear"
|
|
450
|
-
},
|
|
467
|
+
}, za = {
|
|
451
468
|
Dashboard: "dashboard",
|
|
452
469
|
Notebook: "notebook"
|
|
453
|
-
},
|
|
470
|
+
}, Ha = {
|
|
454
471
|
Postgres: "postgres",
|
|
455
472
|
Bigquery: "bigquery",
|
|
456
473
|
Snowflake: "snowflake",
|
|
@@ -462,118 +479,118 @@ const v = function(c, ...n) {
|
|
|
462
479
|
Motherduck: "motherduck",
|
|
463
480
|
Ducklake: "ducklake",
|
|
464
481
|
Publisher: "publisher"
|
|
465
|
-
}, Ha = {
|
|
466
|
-
Ssh: "ssh"
|
|
467
482
|
}, _a = {
|
|
483
|
+
Ssh: "ssh"
|
|
484
|
+
}, Ga = {
|
|
468
485
|
Ok: "ok",
|
|
469
486
|
Failed: "failed"
|
|
470
|
-
},
|
|
487
|
+
}, Wa = {
|
|
471
488
|
Grid: "grid",
|
|
472
489
|
Linear: "linear"
|
|
473
|
-
},
|
|
490
|
+
}, $a = {
|
|
474
491
|
Dashboard: "dashboard",
|
|
475
492
|
Notebook: "notebook"
|
|
476
|
-
},
|
|
493
|
+
}, Ka = {
|
|
477
494
|
Query: "query",
|
|
478
495
|
Text: "text"
|
|
479
|
-
}, Ka = {
|
|
480
|
-
Viewport: "viewport"
|
|
481
496
|
}, Ya = {
|
|
497
|
+
Viewport: "viewport"
|
|
498
|
+
}, Ja = {
|
|
482
499
|
Embedded: "embedded",
|
|
483
500
|
Materialized: "materialized"
|
|
484
|
-
},
|
|
501
|
+
}, Xa = {
|
|
485
502
|
Equal: "equal",
|
|
486
503
|
In: "in",
|
|
487
504
|
Like: "like",
|
|
488
505
|
GreaterThan: "greater_than",
|
|
489
506
|
LessThan: "less_than"
|
|
490
|
-
},
|
|
507
|
+
}, Za = {
|
|
491
508
|
Live: "live",
|
|
492
509
|
StaleOk: "stale_ok",
|
|
493
510
|
Fail: "fail"
|
|
494
|
-
},
|
|
511
|
+
}, et = {
|
|
495
512
|
Select: "select",
|
|
496
513
|
Multiselect: "multiselect"
|
|
497
|
-
},
|
|
514
|
+
}, at = {
|
|
498
515
|
Merge: "merge",
|
|
499
516
|
RangeReplace: "range_replace"
|
|
500
|
-
},
|
|
517
|
+
}, tt = {
|
|
501
518
|
Debug: "debug",
|
|
502
519
|
Info: "info",
|
|
503
520
|
Warn: "warn",
|
|
504
521
|
Error: "error"
|
|
505
|
-
},
|
|
522
|
+
}, nt = {
|
|
506
523
|
Persist: "persist",
|
|
507
524
|
Preaggregate: "preaggregate"
|
|
508
|
-
},
|
|
525
|
+
}, rt = {
|
|
509
526
|
Reused: "reused",
|
|
510
527
|
Recomputed: "recomputed"
|
|
511
|
-
},
|
|
528
|
+
}, ot = {
|
|
512
529
|
Live: "live",
|
|
513
530
|
StaleOk: "stale_ok",
|
|
514
531
|
Fail: "fail"
|
|
515
|
-
},
|
|
532
|
+
}, st = {
|
|
516
533
|
Delta: "delta",
|
|
517
534
|
Full: "full",
|
|
518
535
|
None: "none"
|
|
519
|
-
},
|
|
536
|
+
}, lt = {
|
|
520
537
|
Pending: "PENDING",
|
|
521
538
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
522
539
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
523
540
|
Failed: "FAILED",
|
|
524
541
|
Cancelled: "CANCELLED"
|
|
525
|
-
},
|
|
542
|
+
}, ct = {
|
|
526
543
|
Markdown: "markdown",
|
|
527
544
|
Code: "code"
|
|
528
|
-
},
|
|
545
|
+
}, it = {
|
|
529
546
|
Markdown: "markdown",
|
|
530
547
|
Query: "query",
|
|
531
548
|
Definition: "definition"
|
|
532
|
-
},
|
|
549
|
+
}, pt = {
|
|
533
550
|
Markdown: "markdown",
|
|
534
551
|
Code: "code"
|
|
535
|
-
},
|
|
552
|
+
}, dt = {
|
|
536
553
|
Markdown: "markdown",
|
|
537
554
|
Query: "query",
|
|
538
555
|
Definition: "definition"
|
|
539
|
-
},
|
|
556
|
+
}, mt = {
|
|
540
557
|
Version: "version",
|
|
541
558
|
Package: "package"
|
|
542
|
-
},
|
|
559
|
+
}, ht = {
|
|
543
560
|
Declared: "declared",
|
|
544
561
|
All: "all"
|
|
545
|
-
},
|
|
562
|
+
}, ut = {
|
|
546
563
|
Unbound: "unbound",
|
|
547
564
|
Bound: "bound",
|
|
548
565
|
LiveFallback: "live_fallback"
|
|
549
|
-
},
|
|
566
|
+
}, gt = {
|
|
550
567
|
Lexical: "lexical",
|
|
551
568
|
Indexing: "indexing",
|
|
552
569
|
Ready: "ready",
|
|
553
570
|
Error: "error",
|
|
554
571
|
Cooldown: "cooldown",
|
|
555
572
|
TooManyEntities: "too-many-entities"
|
|
556
|
-
},
|
|
573
|
+
}, bt = {
|
|
557
574
|
Cooldown: "cooldown",
|
|
558
575
|
TooManyEntities: "too-many-entities"
|
|
559
|
-
},
|
|
576
|
+
}, St = {
|
|
560
577
|
Keyphrase: "keyphrase",
|
|
561
578
|
SourceSummary: "source_summary"
|
|
562
|
-
},
|
|
579
|
+
}, vt = {
|
|
563
580
|
Persist: "persist",
|
|
564
581
|
Preaggregate: "preaggregate"
|
|
565
|
-
},
|
|
582
|
+
}, Pt = {
|
|
566
583
|
Error: "error",
|
|
567
584
|
Warn: "warn"
|
|
568
|
-
},
|
|
585
|
+
}, Vt = {
|
|
569
586
|
Persist: "persist",
|
|
570
587
|
Preaggregate: "preaggregate"
|
|
571
|
-
},
|
|
588
|
+
}, Ot = {
|
|
572
589
|
Disable: "disable",
|
|
573
590
|
NoVerify: "no-verify",
|
|
574
591
|
VerifyCa: "verify-ca",
|
|
575
592
|
VerifyFull: "verify-full"
|
|
576
|
-
},
|
|
593
|
+
}, At = {
|
|
577
594
|
Interactive: "interactive",
|
|
578
595
|
Materialize: "materialize",
|
|
579
596
|
Index: "index",
|
|
@@ -581,20 +598,20 @@ const v = function(c, ...n) {
|
|
|
581
598
|
}, kt = {
|
|
582
599
|
Query: "query",
|
|
583
600
|
ServerDefault: "server_default"
|
|
584
|
-
},
|
|
601
|
+
}, yt = {
|
|
585
602
|
Storage: "storage",
|
|
586
603
|
LiveFallback: "live_fallback"
|
|
587
|
-
},
|
|
604
|
+
}, Ct = {
|
|
588
605
|
Malloynb: "malloynb",
|
|
589
606
|
Malloy: "malloy"
|
|
590
|
-
},
|
|
607
|
+
}, It = {
|
|
591
608
|
Snapshot: "SNAPSHOT",
|
|
592
609
|
Copy: "COPY"
|
|
593
|
-
},
|
|
610
|
+
}, xt = {
|
|
594
611
|
Storage: "storage",
|
|
595
612
|
Colocated: "colocated",
|
|
596
613
|
Preaggregate: "preaggregate"
|
|
597
|
-
},
|
|
614
|
+
}, Rt = {
|
|
598
615
|
FreeParameter: "free_parameter",
|
|
599
616
|
Given: "given",
|
|
600
617
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
@@ -610,37 +627,37 @@ const v = function(c, ...n) {
|
|
|
610
627
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
611
628
|
PublicSurfaceUnknown: "public_surface_unknown",
|
|
612
629
|
ReadOnlyDialect: "read_only_dialect"
|
|
613
|
-
},
|
|
630
|
+
}, Nt = {
|
|
614
631
|
Grid: "grid",
|
|
615
632
|
Linear: "linear"
|
|
616
|
-
},
|
|
633
|
+
}, Ut = {
|
|
617
634
|
Malloynb: "malloynb",
|
|
618
635
|
Malloy: "malloy"
|
|
619
|
-
},
|
|
636
|
+
}, Tt = {
|
|
620
637
|
Grid: "grid",
|
|
621
638
|
Linear: "linear"
|
|
622
|
-
},
|
|
639
|
+
}, wt = {
|
|
623
640
|
Query: "query",
|
|
624
641
|
Text: "text"
|
|
625
|
-
},
|
|
642
|
+
}, ft = {
|
|
626
643
|
Publish: "publish",
|
|
627
644
|
OnDemand: "on_demand",
|
|
628
645
|
Scheduler: "scheduler"
|
|
629
|
-
},
|
|
646
|
+
}, Et = {
|
|
630
647
|
Config: "config",
|
|
631
648
|
CredentialChain: "credential_chain"
|
|
632
|
-
},
|
|
649
|
+
}, Mt = {
|
|
633
650
|
Initializing: "initializing",
|
|
634
651
|
Serving: "serving",
|
|
635
652
|
Draining: "draining",
|
|
636
653
|
Throttled: "throttled"
|
|
637
|
-
}, Mt = {
|
|
638
|
-
Bundled: "bundled",
|
|
639
|
-
Package: "package"
|
|
640
654
|
}, Ft = {
|
|
641
655
|
Bundled: "bundled",
|
|
642
656
|
Package: "package"
|
|
643
657
|
}, Dt = {
|
|
658
|
+
Bundled: "bundled",
|
|
659
|
+
Package: "package"
|
|
660
|
+
}, Bt = {
|
|
644
661
|
Light: "light",
|
|
645
662
|
Dark: "dark",
|
|
646
663
|
Auto: "auto"
|
|
@@ -714,7 +731,7 @@ const v = function(c, ...n) {
|
|
|
714
731
|
};
|
|
715
732
|
}
|
|
716
733
|
};
|
|
717
|
-
},
|
|
734
|
+
}, Q = function(c) {
|
|
718
735
|
const n = qe(c);
|
|
719
736
|
return {
|
|
720
737
|
/**
|
|
@@ -758,8 +775,8 @@ const v = function(c, ...n) {
|
|
|
758
775
|
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
759
776
|
}
|
|
760
777
|
};
|
|
761
|
-
},
|
|
762
|
-
const t =
|
|
778
|
+
}, jt = function(c, n, e) {
|
|
779
|
+
const t = Q(c);
|
|
763
780
|
return {
|
|
764
781
|
/**
|
|
765
782
|
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
@@ -800,7 +817,7 @@ const v = function(c, ...n) {
|
|
|
800
817
|
}
|
|
801
818
|
};
|
|
802
819
|
};
|
|
803
|
-
class
|
|
820
|
+
class qt extends C {
|
|
804
821
|
/**
|
|
805
822
|
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
806
823
|
* @summary Get one agent, resolved
|
|
@@ -812,7 +829,7 @@ class jt extends C {
|
|
|
812
829
|
* @throws {RequiredError}
|
|
813
830
|
*/
|
|
814
831
|
getAgent(n, e, t, a, r) {
|
|
815
|
-
return
|
|
832
|
+
return Q(this.configuration).getAgent(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
816
833
|
}
|
|
817
834
|
/**
|
|
818
835
|
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
@@ -825,7 +842,7 @@ class jt extends C {
|
|
|
825
842
|
* @throws {RequiredError}
|
|
826
843
|
*/
|
|
827
844
|
getAgentSkillFile(n, e, t, a, r) {
|
|
828
|
-
return
|
|
845
|
+
return Q(this.configuration).getAgentSkillFile(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
829
846
|
}
|
|
830
847
|
/**
|
|
831
848
|
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
@@ -836,13 +853,13 @@ class jt extends C {
|
|
|
836
853
|
* @throws {RequiredError}
|
|
837
854
|
*/
|
|
838
855
|
listAgents(n, e, t) {
|
|
839
|
-
return
|
|
856
|
+
return Q(this.configuration).listAgents(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
840
857
|
}
|
|
841
858
|
}
|
|
842
|
-
const
|
|
859
|
+
const Lt = {
|
|
843
860
|
Full: "full",
|
|
844
861
|
Summary: "summary"
|
|
845
|
-
},
|
|
862
|
+
}, Le = function(c) {
|
|
846
863
|
return {
|
|
847
864
|
/**
|
|
848
865
|
* Creates a new database connection in the specified environment.
|
|
@@ -861,7 +878,7 @@ const qt = {
|
|
|
861
878
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
862
879
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
863
880
|
let d = s && s.headers ? s.headers : {};
|
|
864
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
881
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
865
882
|
url: P(o),
|
|
866
883
|
options: l
|
|
867
884
|
};
|
|
@@ -1082,7 +1099,7 @@ const qt = {
|
|
|
1082
1099
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1083
1100
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1084
1101
|
let d = s && s.headers ? s.headers : {};
|
|
1085
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1102
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
1086
1103
|
url: P(o),
|
|
1087
1104
|
options: l
|
|
1088
1105
|
};
|
|
@@ -1105,7 +1122,7 @@ const qt = {
|
|
|
1105
1122
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1106
1123
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1107
1124
|
let h = l && l.headers ? l.headers : {};
|
|
1108
|
-
return i.headers = { ...p, ...h, ...r.headers }, i.data =
|
|
1125
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = k(a, i, c), {
|
|
1109
1126
|
url: P(s),
|
|
1110
1127
|
options: i
|
|
1111
1128
|
};
|
|
@@ -1127,7 +1144,7 @@ const qt = {
|
|
|
1127
1144
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1128
1145
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1129
1146
|
let d = s && s.headers ? s.headers : {};
|
|
1130
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1147
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
1131
1148
|
url: P(o),
|
|
1132
1149
|
options: l
|
|
1133
1150
|
};
|
|
@@ -1150,7 +1167,7 @@ const qt = {
|
|
|
1150
1167
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1151
1168
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1152
1169
|
let h = l && l.headers ? l.headers : {};
|
|
1153
|
-
return i.headers = { ...p, ...h, ...r.headers }, i.data =
|
|
1170
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = k(a, i, c), {
|
|
1154
1171
|
url: P(s),
|
|
1155
1172
|
options: i
|
|
1156
1173
|
};
|
|
@@ -1172,7 +1189,7 @@ const qt = {
|
|
|
1172
1189
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1173
1190
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1174
1191
|
let d = s && s.headers ? s.headers : {};
|
|
1175
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1192
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
1176
1193
|
url: P(o),
|
|
1177
1194
|
options: l
|
|
1178
1195
|
};
|
|
@@ -1195,7 +1212,7 @@ const qt = {
|
|
|
1195
1212
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1196
1213
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1197
1214
|
let h = l && l.headers ? l.headers : {};
|
|
1198
|
-
return i.headers = { ...p, ...h, ...r.headers }, i.data =
|
|
1215
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = k(a, i, c), {
|
|
1199
1216
|
url: P(s),
|
|
1200
1217
|
options: i
|
|
1201
1218
|
};
|
|
@@ -1217,14 +1234,14 @@ const qt = {
|
|
|
1217
1234
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
1218
1235
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1219
1236
|
let d = s && s.headers ? s.headers : {};
|
|
1220
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1237
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
1221
1238
|
url: P(o),
|
|
1222
1239
|
options: l
|
|
1223
1240
|
};
|
|
1224
1241
|
}
|
|
1225
1242
|
};
|
|
1226
1243
|
}, y = function(c) {
|
|
1227
|
-
const n =
|
|
1244
|
+
const n = Le(c);
|
|
1228
1245
|
return {
|
|
1229
1246
|
/**
|
|
1230
1247
|
* Creates a new database connection in the specified environment.
|
|
@@ -1665,7 +1682,7 @@ const qt = {
|
|
|
1665
1682
|
}
|
|
1666
1683
|
};
|
|
1667
1684
|
};
|
|
1668
|
-
class
|
|
1685
|
+
class Qe extends C {
|
|
1669
1686
|
/**
|
|
1670
1687
|
* Creates a new database connection in the specified environment.
|
|
1671
1688
|
* @summary Create a new database connection
|
|
@@ -1892,7 +1909,7 @@ const ze = function(c) {
|
|
|
1892
1909
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
1893
1910
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
1894
1911
|
let i = r && r.headers ? r.headers : {};
|
|
1895
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
1912
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, c), {
|
|
1896
1913
|
url: P(a),
|
|
1897
1914
|
options: o
|
|
1898
1915
|
};
|
|
@@ -1913,7 +1930,7 @@ const ze = function(c) {
|
|
|
1913
1930
|
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
1914
1931
|
}
|
|
1915
1932
|
};
|
|
1916
|
-
},
|
|
1933
|
+
}, zt = function(c, n, e) {
|
|
1917
1934
|
const t = de(c);
|
|
1918
1935
|
return {
|
|
1919
1936
|
/**
|
|
@@ -1928,7 +1945,7 @@ const ze = function(c) {
|
|
|
1928
1945
|
}
|
|
1929
1946
|
};
|
|
1930
1947
|
};
|
|
1931
|
-
class
|
|
1948
|
+
class Ht extends C {
|
|
1932
1949
|
/**
|
|
1933
1950
|
* 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.
|
|
1934
1951
|
* @summary Test database connection configuration
|
|
@@ -1990,7 +2007,7 @@ const He = function(c) {
|
|
|
1990
2007
|
};
|
|
1991
2008
|
}
|
|
1992
2009
|
};
|
|
1993
|
-
},
|
|
2010
|
+
}, J = function(c) {
|
|
1994
2011
|
const n = He(c);
|
|
1995
2012
|
return {
|
|
1996
2013
|
/**
|
|
@@ -2023,8 +2040,8 @@ const He = function(c) {
|
|
|
2023
2040
|
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
2024
2041
|
}
|
|
2025
2042
|
};
|
|
2026
|
-
},
|
|
2027
|
-
const t =
|
|
2043
|
+
}, _t = function(c, n, e) {
|
|
2044
|
+
const t = J(c);
|
|
2028
2045
|
return {
|
|
2029
2046
|
/**
|
|
2030
2047
|
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it 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. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
@@ -2068,7 +2085,7 @@ class _e extends C {
|
|
|
2068
2085
|
* @throws {RequiredError}
|
|
2069
2086
|
*/
|
|
2070
2087
|
getDashboard(n, e, t, a, r) {
|
|
2071
|
-
return
|
|
2088
|
+
return J(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2072
2089
|
}
|
|
2073
2090
|
/**
|
|
2074
2091
|
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. 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. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
@@ -2081,7 +2098,7 @@ class _e extends C {
|
|
|
2081
2098
|
* @throws {RequiredError}
|
|
2082
2099
|
*/
|
|
2083
2100
|
listDashboards(n, e, t, a) {
|
|
2084
|
-
return
|
|
2101
|
+
return J(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2085
2102
|
}
|
|
2086
2103
|
}
|
|
2087
2104
|
const Ge = function(c) {
|
|
@@ -2124,7 +2141,7 @@ const Ge = function(c) {
|
|
|
2124
2141
|
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
2125
2142
|
}
|
|
2126
2143
|
};
|
|
2127
|
-
},
|
|
2144
|
+
}, Gt = function(c, n, e) {
|
|
2128
2145
|
const t = me(c);
|
|
2129
2146
|
return {
|
|
2130
2147
|
/**
|
|
@@ -2195,7 +2212,7 @@ const $e = function(c) {
|
|
|
2195
2212
|
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
2196
2213
|
}
|
|
2197
2214
|
};
|
|
2198
|
-
},
|
|
2215
|
+
}, Wt = function(c, n, e) {
|
|
2199
2216
|
const t = he(c);
|
|
2200
2217
|
return {
|
|
2201
2218
|
/**
|
|
@@ -2243,7 +2260,7 @@ const Ye = function(c) {
|
|
|
2243
2260
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
2244
2261
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
2245
2262
|
let i = r && r.headers ? r.headers : {};
|
|
2246
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
2263
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, c), {
|
|
2247
2264
|
url: P(a),
|
|
2248
2265
|
options: o
|
|
2249
2266
|
};
|
|
@@ -2323,7 +2340,7 @@ const Ye = function(c) {
|
|
|
2323
2340
|
const s = { method: "PATCH", ...o, ...t }, l = {}, i = {};
|
|
2324
2341
|
l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
|
|
2325
2342
|
let p = o && o.headers ? o.headers : {};
|
|
2326
|
-
return s.headers = { ...l, ...p, ...t.headers }, s.data =
|
|
2343
|
+
return s.headers = { ...l, ...p, ...t.headers }, s.data = k(e, s, c), {
|
|
2327
2344
|
url: P(r),
|
|
2328
2345
|
options: s
|
|
2329
2346
|
};
|
|
@@ -2389,7 +2406,7 @@ const Ye = function(c) {
|
|
|
2389
2406
|
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
2390
2407
|
}
|
|
2391
2408
|
};
|
|
2392
|
-
},
|
|
2409
|
+
}, $t = function(c, n, e) {
|
|
2393
2410
|
const t = w(c);
|
|
2394
2411
|
return {
|
|
2395
2412
|
/**
|
|
@@ -2517,7 +2534,7 @@ const Xe = function(c) {
|
|
|
2517
2534
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
2518
2535
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
2519
2536
|
let d = s && s.headers ? s.headers : {};
|
|
2520
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
2537
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
2521
2538
|
url: P(o),
|
|
2522
2539
|
options: l
|
|
2523
2540
|
};
|
|
@@ -2686,7 +2703,7 @@ const Xe = function(c) {
|
|
|
2686
2703
|
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
2687
2704
|
}
|
|
2688
2705
|
};
|
|
2689
|
-
},
|
|
2706
|
+
}, Kt = function(c, n, e) {
|
|
2690
2707
|
const t = f(c);
|
|
2691
2708
|
return {
|
|
2692
2709
|
/**
|
|
@@ -2819,7 +2836,7 @@ class Ze extends C {
|
|
|
2819
2836
|
return f(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2820
2837
|
}
|
|
2821
2838
|
}
|
|
2822
|
-
const
|
|
2839
|
+
const Yt = {
|
|
2823
2840
|
Stop: "stop"
|
|
2824
2841
|
}, ea = function(c) {
|
|
2825
2842
|
return {
|
|
@@ -2841,7 +2858,7 @@ const Kt = {
|
|
|
2841
2858
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
2842
2859
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
2843
2860
|
let h = l && l.headers ? l.headers : {};
|
|
2844
|
-
return i.headers = { ...p, ...h, ...r.headers }, i.data =
|
|
2861
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = k(a, i, c), {
|
|
2845
2862
|
url: P(s),
|
|
2846
2863
|
options: i
|
|
2847
2864
|
};
|
|
@@ -2865,7 +2882,7 @@ const Kt = {
|
|
|
2865
2882
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
2866
2883
|
r !== void 0 && (h.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
|
|
2867
2884
|
let O = i && i.headers ? i.headers : {};
|
|
2868
|
-
return p.headers = { ...d, ...O, ...o.headers }, p.data =
|
|
2885
|
+
return p.headers = { ...d, ...O, ...o.headers }, p.data = k(a, p, c), {
|
|
2869
2886
|
url: P(l),
|
|
2870
2887
|
options: p
|
|
2871
2888
|
};
|
|
@@ -2936,7 +2953,7 @@ const Kt = {
|
|
|
2936
2953
|
const p = { method: "PUT", ...i, ...o }, d = {}, h = {};
|
|
2937
2954
|
r !== void 0 && (h.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
|
|
2938
2955
|
let O = i && i.headers ? i.headers : {};
|
|
2939
|
-
return p.headers = { ...d, ...O, ...o.headers }, p.data =
|
|
2956
|
+
return p.headers = { ...d, ...O, ...o.headers }, p.data = k(a, p, c), {
|
|
2940
2957
|
url: P(l),
|
|
2941
2958
|
options: p
|
|
2942
2959
|
};
|
|
@@ -3019,7 +3036,7 @@ const Kt = {
|
|
|
3019
3036
|
return (d, h) => V(l, u, g, c)(d, p || h);
|
|
3020
3037
|
}
|
|
3021
3038
|
};
|
|
3022
|
-
},
|
|
3039
|
+
}, Jt = function(c, n, e) {
|
|
3023
3040
|
const t = E(c);
|
|
3024
3041
|
return {
|
|
3025
3042
|
/**
|
|
@@ -3184,10 +3201,10 @@ const ta = function(c) {
|
|
|
3184
3201
|
const p = "/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))), d = new URL(p, S);
|
|
3185
3202
|
let h;
|
|
3186
3203
|
c && (h = c.baseOptions);
|
|
3187
|
-
const O = { method: "GET", ...h, ...i },
|
|
3188
|
-
r !== void 0 && (I.versionId = r), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), l !== void 0 && (I.givens = l),
|
|
3204
|
+
const O = { method: "GET", ...h, ...i }, A = {}, I = {};
|
|
3205
|
+
r !== void 0 && (I.versionId = r), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), l !== void 0 && (I.givens = l), A.Accept = "application/json", v(d, I);
|
|
3189
3206
|
let R = h && h.headers ? h.headers : {};
|
|
3190
|
-
return O.headers = { ...
|
|
3207
|
+
return O.headers = { ...A, ...R, ...i.headers }, {
|
|
3191
3208
|
url: P(d),
|
|
3192
3209
|
options: O
|
|
3193
3210
|
};
|
|
@@ -3260,7 +3277,7 @@ const ta = function(c) {
|
|
|
3260
3277
|
*/
|
|
3261
3278
|
async executeNotebookCell(e, t, a, r, o, s, l, i, p) {
|
|
3262
3279
|
const d = await n.executeNotebookCell(e, t, a, r, o, s, l, i, p), h = c?.serverIndex ?? 0, O = b["NotebooksApi.executeNotebookCell"]?.[h]?.url;
|
|
3263
|
-
return (
|
|
3280
|
+
return (A, I) => V(d, u, g, c)(A, O || I);
|
|
3264
3281
|
},
|
|
3265
3282
|
/**
|
|
3266
3283
|
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
@@ -3292,7 +3309,7 @@ const ta = function(c) {
|
|
|
3292
3309
|
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
3293
3310
|
}
|
|
3294
3311
|
};
|
|
3295
|
-
},
|
|
3312
|
+
}, Xt = function(c, n, e) {
|
|
3296
3313
|
const t = z(c);
|
|
3297
3314
|
return {
|
|
3298
3315
|
/**
|
|
@@ -3389,7 +3406,7 @@ class na extends C {
|
|
|
3389
3406
|
return z(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
3390
3407
|
}
|
|
3391
3408
|
}
|
|
3392
|
-
const
|
|
3409
|
+
const Zt = {
|
|
3393
3410
|
True: "true",
|
|
3394
3411
|
False: "false"
|
|
3395
3412
|
}, ra = function(c) {
|
|
@@ -3410,7 +3427,7 @@ const Xt = {
|
|
|
3410
3427
|
const s = { method: "POST", ...o, ...t }, l = {}, i = {};
|
|
3411
3428
|
l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
|
|
3412
3429
|
let p = o && o.headers ? o.headers : {};
|
|
3413
|
-
return s.headers = { ...l, ...p, ...t.headers }, s.data =
|
|
3430
|
+
return s.headers = { ...l, ...p, ...t.headers }, s.data = k(e, s, c), {
|
|
3414
3431
|
url: P(r),
|
|
3415
3432
|
options: s
|
|
3416
3433
|
};
|
|
@@ -3496,7 +3513,7 @@ const Xt = {
|
|
|
3496
3513
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
3497
3514
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
3498
3515
|
let d = s && s.headers ? s.headers : {};
|
|
3499
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
3516
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
3500
3517
|
url: P(o),
|
|
3501
3518
|
options: l
|
|
3502
3519
|
};
|
|
@@ -3568,7 +3585,7 @@ const Xt = {
|
|
|
3568
3585
|
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
3569
3586
|
}
|
|
3570
3587
|
};
|
|
3571
|
-
},
|
|
3588
|
+
}, en = function(c, n, e) {
|
|
3572
3589
|
const t = M(c);
|
|
3573
3590
|
return {
|
|
3574
3591
|
/**
|
|
@@ -3761,7 +3778,7 @@ const sa = function(c) {
|
|
|
3761
3778
|
const o = { method: "PUT", ...r, ...e }, s = {}, l = {};
|
|
3762
3779
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
3763
3780
|
let i = r && r.headers ? r.headers : {};
|
|
3764
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
3781
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, c), {
|
|
3765
3782
|
url: P(a),
|
|
3766
3783
|
options: o
|
|
3767
3784
|
};
|
|
@@ -3813,7 +3830,7 @@ const sa = function(c) {
|
|
|
3813
3830
|
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
3814
3831
|
}
|
|
3815
3832
|
};
|
|
3816
|
-
},
|
|
3833
|
+
}, an = function(c, n, e) {
|
|
3817
3834
|
const t = B(c);
|
|
3818
3835
|
return {
|
|
3819
3836
|
/**
|
|
@@ -3944,7 +3961,7 @@ const ca = function(c) {
|
|
|
3944
3961
|
};
|
|
3945
3962
|
}
|
|
3946
3963
|
};
|
|
3947
|
-
},
|
|
3964
|
+
}, X = function(c) {
|
|
3948
3965
|
const n = ca(c);
|
|
3949
3966
|
return {
|
|
3950
3967
|
/**
|
|
@@ -3975,8 +3992,8 @@ const ca = function(c) {
|
|
|
3975
3992
|
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
3976
3993
|
}
|
|
3977
3994
|
};
|
|
3978
|
-
},
|
|
3979
|
-
const t =
|
|
3995
|
+
}, tn = function(c, n, e) {
|
|
3996
|
+
const t = X(c);
|
|
3980
3997
|
return {
|
|
3981
3998
|
/**
|
|
3982
3999
|
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
@@ -4017,7 +4034,7 @@ class ia extends C {
|
|
|
4017
4034
|
* @throws {RequiredError}
|
|
4018
4035
|
*/
|
|
4019
4036
|
getReport(n, e, t, a, r) {
|
|
4020
|
-
return
|
|
4037
|
+
return X(this.configuration).getReport(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
4021
4038
|
}
|
|
4022
4039
|
/**
|
|
4023
4040
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
@@ -4029,7 +4046,7 @@ class ia extends C {
|
|
|
4029
4046
|
* @throws {RequiredError}
|
|
4030
4047
|
*/
|
|
4031
4048
|
listReports(n, e, t, a) {
|
|
4032
|
-
return
|
|
4049
|
+
return X(this.configuration).listReports(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4033
4050
|
}
|
|
4034
4051
|
}
|
|
4035
4052
|
const pa = function(c) {
|
|
@@ -4078,7 +4095,7 @@ const pa = function(c) {
|
|
|
4078
4095
|
};
|
|
4079
4096
|
}
|
|
4080
4097
|
};
|
|
4081
|
-
},
|
|
4098
|
+
}, Z = function(c) {
|
|
4082
4099
|
const n = pa(c);
|
|
4083
4100
|
return {
|
|
4084
4101
|
/**
|
|
@@ -4107,8 +4124,8 @@ const pa = function(c) {
|
|
|
4107
4124
|
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
4108
4125
|
}
|
|
4109
4126
|
};
|
|
4110
|
-
},
|
|
4111
|
-
const t =
|
|
4127
|
+
}, nn = function(c, n, e) {
|
|
4128
|
+
const t = Z(c);
|
|
4112
4129
|
return {
|
|
4113
4130
|
/**
|
|
4114
4131
|
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
@@ -4135,7 +4152,7 @@ const pa = function(c) {
|
|
|
4135
4152
|
}
|
|
4136
4153
|
};
|
|
4137
4154
|
};
|
|
4138
|
-
class
|
|
4155
|
+
class rn extends C {
|
|
4139
4156
|
/**
|
|
4140
4157
|
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
4141
4158
|
* @summary Get one agent skill, with its body
|
|
@@ -4146,7 +4163,7 @@ class nn extends C {
|
|
|
4146
4163
|
* @throws {RequiredError}
|
|
4147
4164
|
*/
|
|
4148
4165
|
getSkill(n, e, t, a) {
|
|
4149
|
-
return
|
|
4166
|
+
return Z(this.configuration).getSkill(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4150
4167
|
}
|
|
4151
4168
|
/**
|
|
4152
4169
|
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
@@ -4157,7 +4174,7 @@ class nn extends C {
|
|
|
4157
4174
|
* @throws {RequiredError}
|
|
4158
4175
|
*/
|
|
4159
4176
|
listSkills(n, e, t) {
|
|
4160
|
-
return
|
|
4177
|
+
return Z(this.configuration).listSkills(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
4161
4178
|
}
|
|
4162
4179
|
}
|
|
4163
4180
|
const da = function(c) {
|
|
@@ -4179,7 +4196,7 @@ const da = function(c) {
|
|
|
4179
4196
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
4180
4197
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
4181
4198
|
let d = s && s.headers ? s.headers : {};
|
|
4182
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
4199
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = k(t, l, c), {
|
|
4183
4200
|
url: P(o),
|
|
4184
4201
|
options: l
|
|
4185
4202
|
};
|
|
@@ -4274,7 +4291,7 @@ const da = function(c) {
|
|
|
4274
4291
|
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
4275
4292
|
}
|
|
4276
4293
|
};
|
|
4277
|
-
},
|
|
4294
|
+
}, on = function(c, n, e) {
|
|
4278
4295
|
const t = H(c);
|
|
4279
4296
|
return {
|
|
4280
4297
|
/**
|
|
@@ -4316,7 +4333,7 @@ const da = function(c) {
|
|
|
4316
4333
|
}
|
|
4317
4334
|
};
|
|
4318
4335
|
};
|
|
4319
|
-
class
|
|
4336
|
+
class sn extends C {
|
|
4320
4337
|
/**
|
|
4321
4338
|
* Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
4322
4339
|
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
@@ -4390,7 +4407,7 @@ const ma = function(c) {
|
|
|
4390
4407
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
4391
4408
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
4392
4409
|
let i = r && r.headers ? r.headers : {};
|
|
4393
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
4410
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, c), {
|
|
4394
4411
|
url: P(a),
|
|
4395
4412
|
options: o
|
|
4396
4413
|
};
|
|
@@ -4482,7 +4499,7 @@ const ma = function(c) {
|
|
|
4482
4499
|
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
4483
4500
|
}
|
|
4484
4501
|
};
|
|
4485
|
-
},
|
|
4502
|
+
}, ln = function(c, n, e) {
|
|
4486
4503
|
const t = j(c);
|
|
4487
4504
|
return {
|
|
4488
4505
|
/**
|
|
@@ -4659,15 +4676,15 @@ const ga = new Ve({
|
|
|
4659
4676
|
throwOnError: !1
|
|
4660
4677
|
}
|
|
4661
4678
|
}
|
|
4662
|
-
}),
|
|
4679
|
+
}), cn = {
|
|
4663
4680
|
staleTime: 300 * 1e3,
|
|
4664
4681
|
refetchOnWindowFocus: !1,
|
|
4665
4682
|
refetchOnReconnect: !1
|
|
4666
|
-
},
|
|
4683
|
+
}, ee = "publisher:themeMode";
|
|
4667
4684
|
function ba() {
|
|
4668
4685
|
if (!(typeof window > "u"))
|
|
4669
4686
|
try {
|
|
4670
|
-
const c = window.localStorage.getItem(
|
|
4687
|
+
const c = window.localStorage.getItem(ee);
|
|
4671
4688
|
if (c === "light" || c === "dark" || c === "auto") return c;
|
|
4672
4689
|
} catch {
|
|
4673
4690
|
}
|
|
@@ -4675,7 +4692,7 @@ function ba() {
|
|
|
4675
4692
|
function Sa(c) {
|
|
4676
4693
|
if (!(typeof window > "u"))
|
|
4677
4694
|
try {
|
|
4678
|
-
c === void 0 ? window.localStorage.removeItem(
|
|
4695
|
+
c === void 0 ? window.localStorage.removeItem(ee) : window.localStorage.setItem(ee, c);
|
|
4679
4696
|
} catch {
|
|
4680
4697
|
}
|
|
4681
4698
|
}
|
|
@@ -4703,7 +4720,7 @@ const ue = le(void 0), Pa = (c, n) => {
|
|
|
4703
4720
|
dataApps: new We(a, e, t),
|
|
4704
4721
|
notebooks: new na(a, e, t),
|
|
4705
4722
|
reports: new ia(a, e, t),
|
|
4706
|
-
connections: new
|
|
4723
|
+
connections: new Qe(a, e, t),
|
|
4707
4724
|
databases: new Ke(a, e, t),
|
|
4708
4725
|
materializations: new Ze(
|
|
4709
4726
|
a,
|
|
@@ -4712,7 +4729,7 @@ const ue = le(void 0), Pa = (c, n) => {
|
|
|
4712
4729
|
),
|
|
4713
4730
|
watchMode: new ha(a, e, t)
|
|
4714
4731
|
};
|
|
4715
|
-
},
|
|
4732
|
+
}, pn = (c) => /* @__PURE__ */ q(Oe, { client: ga, children: /* @__PURE__ */ q(Va, { ...c }) }), Va = ({
|
|
4716
4733
|
children: c,
|
|
4717
4734
|
getAccessToken: n,
|
|
4718
4735
|
baseURL: e,
|
|
@@ -4723,7 +4740,7 @@ const ue = le(void 0), Pa = (c, n) => {
|
|
|
4723
4740
|
const o = F(
|
|
4724
4741
|
() => Pa(e, n),
|
|
4725
4742
|
[e, n]
|
|
4726
|
-
), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, l =
|
|
4743
|
+
), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, l = Ae({
|
|
4727
4744
|
queryKey: ["status"],
|
|
4728
4745
|
queryFn: async () => (await o.publisher.getStatus()).data
|
|
4729
4746
|
});
|
|
@@ -4734,17 +4751,17 @@ const ue = le(void 0), Pa = (c, n) => {
|
|
|
4734
4751
|
const O = F(
|
|
4735
4752
|
() => [p, a],
|
|
4736
4753
|
[p, a]
|
|
4737
|
-
), [
|
|
4754
|
+
), [A, I] = ne(
|
|
4738
4755
|
ba
|
|
4739
|
-
), [R, ge] =
|
|
4740
|
-
|
|
4756
|
+
), [R, ge] = ne(va);
|
|
4757
|
+
ke(() => {
|
|
4741
4758
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
4742
|
-
const T = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
4743
|
-
return T.addEventListener("change",
|
|
4759
|
+
const T = window.matchMedia("(prefers-color-scheme: dark)"), te = (Pe) => ge(Pe.matches);
|
|
4760
|
+
return T.addEventListener("change", te), () => T.removeEventListener("change", te);
|
|
4744
4761
|
}, []);
|
|
4745
4762
|
const be = ye((T) => {
|
|
4746
4763
|
I(T), Sa(T);
|
|
4747
|
-
}, []),
|
|
4764
|
+
}, []), ae = p?.allowUserToggle ?? !0, _ = ae ? A : void 0, Se = F(
|
|
4748
4765
|
() => Fe(
|
|
4749
4766
|
p?.defaultMode,
|
|
4750
4767
|
_,
|
|
@@ -4766,163 +4783,164 @@ const ue = le(void 0), Pa = (c, n) => {
|
|
|
4766
4783
|
mode: Se,
|
|
4767
4784
|
userChoice: _,
|
|
4768
4785
|
setMode: be,
|
|
4769
|
-
allowUserToggle:
|
|
4786
|
+
allowUserToggle: ae,
|
|
4770
4787
|
...r ? { ui: r } : {},
|
|
4771
4788
|
children: c
|
|
4772
4789
|
}
|
|
4773
4790
|
) });
|
|
4774
|
-
},
|
|
4791
|
+
}, dn = () => {
|
|
4775
4792
|
const c = se(ue);
|
|
4776
4793
|
if (c === void 0)
|
|
4777
4794
|
throw new Error("useServer must be used within a ServerProvider");
|
|
4778
4795
|
return c;
|
|
4779
4796
|
};
|
|
4780
4797
|
export {
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4798
|
+
st as $,
|
|
4799
|
+
qt as A,
|
|
4800
|
+
J as B,
|
|
4801
|
+
ja as C,
|
|
4802
|
+
$a as D,
|
|
4803
|
+
Ya as E,
|
|
4787
4804
|
We as F,
|
|
4788
4805
|
Ge as G,
|
|
4789
|
-
|
|
4806
|
+
Gt as H,
|
|
4790
4807
|
me as I,
|
|
4791
|
-
|
|
4808
|
+
Ja as J,
|
|
4792
4809
|
Ke as K,
|
|
4793
4810
|
$e as L,
|
|
4794
|
-
|
|
4811
|
+
Wt as M,
|
|
4795
4812
|
he as N,
|
|
4796
4813
|
Je as O,
|
|
4797
4814
|
Ye as P,
|
|
4798
|
-
|
|
4815
|
+
$t as Q,
|
|
4799
4816
|
w as R,
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4817
|
+
Zt as S,
|
|
4818
|
+
Xa as T,
|
|
4819
|
+
Za as U,
|
|
4820
|
+
Lt as V,
|
|
4821
|
+
et as W,
|
|
4822
|
+
at as X,
|
|
4823
|
+
tt as Y,
|
|
4824
|
+
ot as Z,
|
|
4825
|
+
nt as _,
|
|
4809
4826
|
qe as a,
|
|
4810
4827
|
da as a$,
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4828
|
+
rt as a0,
|
|
4829
|
+
Yt as a1,
|
|
4830
|
+
lt as a2,
|
|
4814
4831
|
Ze as a3,
|
|
4815
4832
|
Xe as a4,
|
|
4816
|
-
|
|
4833
|
+
Kt as a5,
|
|
4817
4834
|
f as a6,
|
|
4818
4835
|
aa as a7,
|
|
4819
4836
|
ea as a8,
|
|
4820
|
-
|
|
4837
|
+
Jt as a9,
|
|
4821
4838
|
B as aA,
|
|
4822
|
-
|
|
4839
|
+
At as aB,
|
|
4823
4840
|
kt as aC,
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4841
|
+
yt as aD,
|
|
4842
|
+
Ct as aE,
|
|
4843
|
+
It as aF,
|
|
4844
|
+
Rt as aG,
|
|
4845
|
+
xt as aH,
|
|
4846
|
+
Ut as aI,
|
|
4847
|
+
Nt as aJ,
|
|
4848
|
+
Tt as aK,
|
|
4849
|
+
wt as aL,
|
|
4833
4850
|
ia as aM,
|
|
4834
4851
|
ca as aN,
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4852
|
+
tn as aO,
|
|
4853
|
+
X as aP,
|
|
4854
|
+
ft as aQ,
|
|
4855
|
+
Et as aR,
|
|
4856
|
+
pn as aS,
|
|
4857
|
+
Mt as aT,
|
|
4858
|
+
Ft as aU,
|
|
4859
|
+
Dt as aV,
|
|
4860
|
+
rn as aW,
|
|
4844
4861
|
pa as aX,
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4862
|
+
nn as aY,
|
|
4863
|
+
Z as aZ,
|
|
4864
|
+
sn as a_,
|
|
4848
4865
|
E as aa,
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4866
|
+
it as ab,
|
|
4867
|
+
dt as ac,
|
|
4868
|
+
pt as ad,
|
|
4869
|
+
ct as ae,
|
|
4853
4870
|
na as af,
|
|
4854
4871
|
ta as ag,
|
|
4855
|
-
|
|
4872
|
+
Xt as ah,
|
|
4856
4873
|
z as ai,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4874
|
+
bt as aj,
|
|
4875
|
+
St as ak,
|
|
4876
|
+
gt as al,
|
|
4877
|
+
ut as am,
|
|
4878
|
+
ht as an,
|
|
4879
|
+
mt as ao,
|
|
4880
|
+
vt as ap,
|
|
4881
|
+
Pt as aq,
|
|
4865
4882
|
oa as ar,
|
|
4866
4883
|
ra as as,
|
|
4867
|
-
|
|
4884
|
+
en as at,
|
|
4868
4885
|
M as au,
|
|
4869
|
-
|
|
4870
|
-
|
|
4886
|
+
Vt as av,
|
|
4887
|
+
Ot as aw,
|
|
4871
4888
|
la as ax,
|
|
4872
4889
|
sa as ay,
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4890
|
+
an as az,
|
|
4891
|
+
jt as b,
|
|
4892
|
+
on as b0,
|
|
4876
4893
|
H as b1,
|
|
4877
|
-
|
|
4894
|
+
Bt as b2,
|
|
4878
4895
|
ha as b3,
|
|
4879
4896
|
ma as b4,
|
|
4880
|
-
|
|
4897
|
+
ln as b5,
|
|
4881
4898
|
j as b6,
|
|
4882
4899
|
ga as b7,
|
|
4883
|
-
|
|
4884
|
-
|
|
4900
|
+
Fa as b8,
|
|
4901
|
+
dn as b9,
|
|
4885
4902
|
Me as ba,
|
|
4886
4903
|
ie as bb,
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
Da as
|
|
4907
|
-
|
|
4908
|
-
qa as
|
|
4909
|
-
La as
|
|
4904
|
+
Ma as bc,
|
|
4905
|
+
N as bd,
|
|
4906
|
+
xa as be,
|
|
4907
|
+
Ia as bf,
|
|
4908
|
+
Ta as bg,
|
|
4909
|
+
Ua as bh,
|
|
4910
|
+
wa as bi,
|
|
4911
|
+
fa as bj,
|
|
4912
|
+
Ra as bk,
|
|
4913
|
+
Na as bl,
|
|
4914
|
+
x as bm,
|
|
4915
|
+
K as bn,
|
|
4916
|
+
De as bo,
|
|
4917
|
+
oe as bp,
|
|
4918
|
+
Ea as bq,
|
|
4919
|
+
Re as br,
|
|
4920
|
+
Fe as bs,
|
|
4921
|
+
cn as bt,
|
|
4922
|
+
Q as c,
|
|
4923
|
+
Da as d,
|
|
4924
|
+
Ba as e,
|
|
4925
|
+
qa as f,
|
|
4926
|
+
La as g,
|
|
4927
|
+
za as h,
|
|
4910
4928
|
Qa as i,
|
|
4911
4929
|
ua as j,
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4930
|
+
_a as k,
|
|
4931
|
+
Ga as l,
|
|
4932
|
+
Ha as m,
|
|
4933
|
+
Qe as n,
|
|
4934
|
+
Le as o,
|
|
4917
4935
|
Qt as p,
|
|
4918
4936
|
y as q,
|
|
4919
|
-
|
|
4937
|
+
Ht as r,
|
|
4920
4938
|
ze as s,
|
|
4921
|
-
|
|
4939
|
+
zt as t,
|
|
4922
4940
|
de as u,
|
|
4923
|
-
|
|
4924
|
-
|
|
4941
|
+
Wa as v,
|
|
4942
|
+
Ka as w,
|
|
4925
4943
|
_e as x,
|
|
4926
4944
|
He as y,
|
|
4927
|
-
|
|
4945
|
+
_t as z
|
|
4928
4946
|
};
|