@malloy-publisher/sdk 0.9.9 → 0.9.11
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-BlNoIiSi.cjs.js +153 -0
- package/dist/{RenderedResult-BHuJpdSn.es.js → RenderedResult-Cmx8sX8d.es.js} +102 -102
- package/dist/ServerProvider-BOgiW8MX.cjs.js +1 -0
- package/dist/{ServerProvider-CQy4jVYK.es.js → ServerProvider-azXLkk1q.es.js} +619 -586
- package/dist/builder/index.cjs.js +78 -130
- package/dist/builder/index.es.js +7440 -6727
- package/dist/builder-entry.d.ts +3 -0
- package/dist/client/api.d.ts +26 -22
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/AppDialog.d.ts +9 -1
- package/dist/components/Dashboard/DashboardGrid.d.ts +14 -15
- package/dist/components/Dashboard/DashboardTile.d.ts +8 -1
- package/dist/components/Dashboard/DashboardView.d.ts +22 -23
- package/dist/components/Dashboard/TileCard.d.ts +10 -3
- package/dist/components/Dashboard/useStuck.d.ts +22 -0
- package/dist/components/DocumentCreate/newNotebook.d.ts +9 -5
- package/dist/components/DocumentCreate/useDocumentChoices.d.ts +6 -0
- package/dist/components/Package/PackageProblems.d.ts +14 -0
- package/dist/components/RemoveBadge.d.ts +40 -0
- package/dist/components/Report/Report.d.ts +13 -4
- package/dist/components/Report/ReportPage.d.ts +60 -0
- package/dist/components/Report/layoutRules.d.ts +32 -0
- package/dist/components/Report/reportQuery.d.ts +30 -0
- package/dist/components/Report/telemetry.d.ts +0 -2
- package/dist/components/ReportBuilder/AddTileDialog.d.ts +22 -3
- package/dist/components/ReportBuilder/BuilderBar.d.ts +17 -0
- package/dist/components/ReportBuilder/BuilderDialogs.d.ts +7 -6
- package/dist/components/ReportBuilder/BuilderGrid.d.ts +10 -4
- package/dist/components/ReportBuilder/BuilderHeader.d.ts +4 -7
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +88 -0
- package/dist/components/ReportBuilder/DrillDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/EditorSurface.d.ts +7 -9
- package/dist/components/ReportBuilder/FilterDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/FilterStrip.d.ts +30 -6
- package/dist/components/ReportBuilder/InlineMarkdown.d.ts +4 -4
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +49 -12
- package/dist/components/ReportBuilder/ReportEditor.d.ts +53 -3
- package/dist/components/ReportBuilder/TextTileBody.d.ts +2 -5
- package/dist/components/ReportBuilder/TileFrame.d.ts +10 -4
- package/dist/components/ReportBuilder/TileMenu.d.ts +19 -11
- package/dist/components/ReportBuilder/ViewPicker.d.ts +53 -0
- package/dist/components/ReportBuilder/addTileToDocument.d.ts +24 -3
- package/dist/components/ReportBuilder/builderControls.d.ts +60 -0
- package/dist/components/ReportBuilder/catalog.d.ts +2 -4
- package/dist/components/ReportBuilder/inlineEdit.d.ts +9 -10
- package/dist/components/ReportBuilder/localGiven.d.ts +12 -0
- package/dist/components/ReportBuilder/preview.d.ts +17 -2
- package/dist/components/ReportBuilder/readDocument.d.ts +0 -2
- package/dist/components/ReportBuilder/readForEditor.d.ts +2 -7
- package/dist/components/ReportBuilder/reportTag.d.ts +11 -1
- package/dist/components/ReportBuilder/sortable.d.ts +4 -3
- package/dist/components/ReportBuilder/testing/inline.d.ts +5 -1
- package/dist/components/ReportBuilder/useBuilderSelection.d.ts +0 -1
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +21 -12
- package/dist/components/ReportBuilder/useDocumentEditor.d.ts +2 -6
- package/dist/components/ReportBuilder/useExitGuard.d.ts +3 -0
- package/dist/components/ReportBuilder/useFilterForm.d.ts +3 -1
- package/dist/components/ReportBuilder/useOpenedDocument.d.ts +0 -4
- package/dist/components/ReportBuilder/useReportDraft.d.ts +66 -0
- package/dist/components/ReportBuilder/useReportEditor.d.ts +0 -9
- package/dist/components/ReportBuilder/useTileEditing.d.ts +6 -3
- package/dist/components/ReportBuilder/viewAnnotations.d.ts +9 -0
- package/dist/components/ReportBuilder/widthLabel.d.ts +6 -0
- package/dist/components/ServerProvider.d.ts +9 -0
- package/dist/components/controlTokens.d.ts +45 -0
- package/dist/components/drill/markDrillableCells.d.ts +1 -1
- package/dist/components/given/FilterButton.d.ts +35 -0
- package/dist/components/given/GivensPanel.d.ts +2 -1
- package/dist/components/given/filterEditing.d.ts +54 -0
- package/dist/components/given/filterSummary.d.ts +9 -0
- package/dist/components/given/paramCodec.d.ts +11 -0
- package/dist/components/given/required.d.ts +25 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/legacy/index.d.ts +1 -1
- package/dist/components/{Report/CellReport.d.ts → legacy/malloynb/CellRunnerView.d.ts} +9 -17
- package/dist/components/legacy/{MalloynbCells.d.ts → malloynb/MalloynbCells.d.ts} +3 -3
- package/dist/components/legacy/{Notebook.d.ts → malloynb/Notebook.d.ts} +1 -1
- package/dist/components/{Notebook → legacy/malloynb}/NotebookCell.d.ts +3 -3
- package/dist/components/legacy/malloynb/cellKind.d.ts +5 -0
- package/dist/components/{Notebook → legacy/malloynb}/types.d.ts +1 -1
- package/dist/components/styles.d.ts +0 -2
- package/dist/hooks/useQueryResult.d.ts +7 -0
- package/dist/index.cjs.js +16 -19
- package/dist/index.es.js +8324 -7769
- package/dist/theme/ThemeContext.d.ts +8 -1
- package/dist/theme/classes.d.ts +49 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/types.d.ts +7 -0
- package/dist/theme/ui.d.ts +75 -0
- package/dist/{useCompiledDocument-1dgF5CC9.es.js → useCompiledDocument-7j5cBjQd.es.js} +8768 -7912
- package/dist/useCompiledDocument-B21sVbb4.cjs.js +141 -0
- package/package.json +2 -2
- package/src/builder-entry.ts +9 -0
- package/src/components/AppDialog.tsx +23 -0
- package/src/components/Dashboard/DashboardGrid.tsx +39 -17
- package/src/components/Dashboard/DashboardTile.tsx +19 -2
- package/src/components/Dashboard/DashboardView.spec.tsx +216 -15
- package/src/components/Dashboard/DashboardView.tsx +136 -105
- package/src/components/Dashboard/RowsDialog.tsx +1 -2
- package/src/components/Dashboard/TileCard.tsx +28 -10
- package/src/components/Dashboard/defaultTileSpan.spec.ts +24 -0
- package/src/components/Dashboard/useStuck.ts +49 -0
- package/src/components/DocumentCreate/newNotebook.spec.ts +8 -6
- package/src/components/DocumentCreate/newNotebook.ts +26 -12
- package/src/components/DocumentCreate/useDocumentChoices.ts +19 -2
- package/src/components/Package/NewDocumentDialog.spec.tsx +76 -59
- package/src/components/Package/NewDocumentDialog.tsx +383 -119
- package/src/components/Package/Package.artifacts.spec.tsx +1 -1
- package/src/components/Package/Package.create.spec.tsx +7 -6
- package/src/components/Package/Package.tsx +10 -7
- package/src/components/Package/PackageProblems.spec.tsx +41 -0
- package/src/components/Package/PackageProblems.tsx +95 -0
- package/src/components/Prose.tsx +12 -7
- package/src/components/RemoveBadge.tsx +94 -0
- package/src/components/RenderedResult/RenderedResult.tsx +5 -9
- package/src/components/RenderedResult/ResultPanel.tsx +59 -3
- package/src/components/Report/Report.spec.tsx +50 -32
- package/src/components/Report/Report.telemetry.spec.tsx +0 -45
- package/src/components/Report/Report.tsx +45 -77
- package/src/components/Report/ReportPage.tsx +168 -0
- package/src/components/Report/layoutRules.spec.ts +35 -0
- package/src/components/Report/layoutRules.ts +55 -0
- package/src/components/Report/reportQuery.ts +53 -0
- package/src/components/Report/telemetry.ts +0 -2
- package/src/components/ReportBuilder/AddTileDialog.spec.tsx +76 -41
- package/src/components/ReportBuilder/AddTileDialog.tsx +368 -133
- package/src/components/ReportBuilder/BuilderBar.tsx +599 -0
- package/src/components/ReportBuilder/BuilderDialogs.tsx +30 -39
- package/src/components/ReportBuilder/BuilderGrid.tsx +43 -31
- package/src/components/ReportBuilder/BuilderHeader.tsx +63 -75
- package/src/components/ReportBuilder/BuilderToolbar.tsx +95 -9
- package/src/components/ReportBuilder/DrillDialog.tsx +240 -128
- package/src/components/ReportBuilder/EditorSurface.tsx +345 -69
- package/src/components/ReportBuilder/FilterDialog.tsx +516 -166
- package/src/components/ReportBuilder/FilterStrip.tsx +129 -150
- package/src/components/ReportBuilder/InlineMarkdown.tsx +71 -45
- package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +35 -40
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +491 -0
- package/src/components/ReportBuilder/ReportBuilder.exit.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportBuilder.inline.spec.tsx +13 -16
- package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +27 -118
- package/src/components/ReportBuilder/ReportBuilder.openDraft.spec.tsx +12 -5
- package/src/components/ReportBuilder/ReportBuilder.sources.spec.tsx +2 -10
- package/src/components/ReportBuilder/ReportBuilder.spec.tsx +41 -36
- package/src/components/ReportBuilder/ReportBuilder.textTiles.spec.tsx +22 -15
- package/src/components/ReportBuilder/ReportBuilder.tsx +292 -116
- package/src/components/ReportBuilder/ReportEditor.emptyStart.spec.tsx +2 -1
- package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +312 -0
- package/src/components/ReportBuilder/ReportEditor.notebook.spec.tsx +26 -75
- package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +6 -2
- package/src/components/ReportBuilder/ReportEditor.resourceUri.spec.tsx +3 -2
- package/src/components/ReportBuilder/ReportEditor.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportEditor.textSource.spec.tsx +93 -13
- package/src/components/ReportBuilder/ReportEditor.tsx +104 -14
- package/src/components/ReportBuilder/TextTileBody.tsx +6 -7
- package/src/components/ReportBuilder/TileFrame.tsx +212 -75
- package/src/components/ReportBuilder/TileMenu.tsx +248 -142
- package/src/components/ReportBuilder/ViewPicker.tsx +349 -0
- package/src/components/ReportBuilder/addTile.compile.spec.ts +1 -1
- package/src/components/ReportBuilder/addTileToDocument.spec.ts +102 -3
- package/src/components/ReportBuilder/addTileToDocument.ts +122 -25
- package/src/components/ReportBuilder/builderControls.ts +164 -0
- package/src/components/ReportBuilder/builderReport.ts +1 -2
- package/src/components/ReportBuilder/catalog.ts +10 -26
- package/src/components/ReportBuilder/inlineEdit.tsx +22 -54
- package/src/components/ReportBuilder/localGiven.ts +56 -0
- package/src/components/ReportBuilder/newDashboard.spec.ts +2 -3
- package/src/components/ReportBuilder/preview.spec.ts +125 -5
- package/src/components/ReportBuilder/preview.ts +60 -44
- package/src/components/ReportBuilder/readDocument.spec.ts +16 -22
- package/src/components/ReportBuilder/readDocument.ts +14 -11
- package/src/components/ReportBuilder/readForEditor.spec.ts +12 -41
- package/src/components/ReportBuilder/readForEditor.ts +4 -26
- package/src/components/ReportBuilder/reportTag.ts +28 -7
- package/src/components/ReportBuilder/sortable.tsx +15 -7
- package/src/components/ReportBuilder/spliceDocument.imports.spec.ts +1 -1
- package/src/components/ReportBuilder/tagParse.spec.ts +0 -40
- package/src/components/ReportBuilder/testing/inline.ts +25 -5
- package/src/components/ReportBuilder/testing/reportLayoutParity.json +13 -8
- package/src/components/ReportBuilder/textTiles.spec.ts +7 -6
- package/src/components/ReportBuilder/useBuilderSelection.ts +35 -0
- package/src/components/ReportBuilder/useBuilderSession.spec.ts +2 -2
- package/src/components/ReportBuilder/useBuilderSession.ts +21 -13
- package/src/components/ReportBuilder/useDocumentEditor.spec.ts +0 -58
- package/src/components/ReportBuilder/useDocumentEditor.ts +3 -16
- package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +26 -0
- package/src/components/ReportBuilder/useEditorCatalog.ts +7 -2
- package/src/components/ReportBuilder/useExitGuard.ts +16 -0
- package/src/components/ReportBuilder/useFilterForm.spec.tsx +17 -0
- package/src/components/ReportBuilder/useFilterForm.ts +5 -1
- package/src/components/ReportBuilder/useOpenedDocument.ts +0 -2
- package/src/components/ReportBuilder/useReportDraft.spec.ts +149 -0
- package/src/components/ReportBuilder/useReportDraft.ts +292 -0
- package/src/components/ReportBuilder/useReportEditor.ts +3 -12
- package/src/components/ReportBuilder/useSaveChannel.ts +0 -1
- package/src/components/ReportBuilder/useTileEditing.ts +43 -12
- package/src/components/ReportBuilder/viewAnnotations.ts +29 -0
- package/src/components/ReportBuilder/widthLabel.spec.ts +25 -0
- package/src/components/ReportBuilder/widthLabel.ts +26 -0
- package/src/components/ServerProvider.tsx +11 -0
- package/src/components/controlTokens.ts +47 -0
- package/src/components/drill/markDrillableCells.ts +2 -1
- package/src/components/given/FilterButton.spec.tsx +143 -0
- package/src/components/given/FilterButton.tsx +478 -0
- package/src/components/given/GivenInput.spec.tsx +47 -0
- package/src/components/given/GivenInput.tsx +20 -2
- package/src/components/given/GivensPanel.spec.tsx +11 -3
- package/src/components/given/GivensPanel.tsx +45 -44
- package/src/components/given/filterEditing.ts +60 -0
- package/src/components/given/filterSummary.spec.ts +108 -0
- package/src/components/given/filterSummary.ts +109 -0
- package/src/components/given/paramCodec.ts +1 -1
- package/src/components/given/required.spec.ts +60 -0
- package/src/components/given/required.ts +78 -0
- package/src/components/index.ts +9 -0
- package/src/components/legacy/Dashboard.spec.tsx +3 -1
- package/src/components/legacy/index.ts +1 -1
- package/src/components/{Report/CellReport.spec.tsx → legacy/malloynb/CellRunnerView.spec.tsx} +53 -57
- package/src/components/{Report/CellReport.tsx → legacy/malloynb/CellRunnerView.tsx} +122 -136
- package/src/components/legacy/{MalloynbCells.tsx → malloynb/MalloynbCells.tsx} +6 -6
- package/src/components/legacy/{Notebook.layout.spec.tsx → malloynb/Notebook.layout.spec.tsx} +16 -7
- package/src/components/legacy/malloynb/Notebook.served.spec.tsx +84 -0
- package/src/components/legacy/{Notebook.spec.tsx → malloynb/Notebook.spec.tsx} +5 -3
- package/src/components/legacy/{Notebook.tsx → malloynb/Notebook.tsx} +9 -7
- package/src/components/{Notebook → legacy/malloynb}/NotebookCell.tsx +70 -150
- package/src/components/legacy/malloynb/cellKind.spec.ts +33 -0
- package/src/components/legacy/malloynb/cellKind.ts +24 -0
- package/src/components/{Notebook → legacy/malloynb}/types.ts +1 -1
- package/src/components/styles.ts +0 -18
- package/src/hooks/useGivensState.ts +7 -3
- package/src/hooks/useQueryResult.placeholder.spec.ts +44 -0
- package/src/hooks/useQueryResult.ts +26 -1
- package/src/theme/ThemeContext.tsx +21 -1
- package/src/theme/classes.ts +52 -0
- package/src/theme/index.ts +8 -0
- package/src/theme/resolveTheme.ts +3 -0
- package/src/theme/types.ts +7 -0
- package/src/theme/ui.spec.tsx +91 -0
- package/src/theme/ui.ts +115 -0
- package/dist/RenderedResult-Bw7EQc42.cjs.js +0 -153
- package/dist/ServerProvider-B0dUY8be.cjs.js +0 -1
- package/dist/components/Notebook/cellKind.d.ts +0 -20
- package/dist/components/Report/LinearReport.d.ts +0 -18
- package/dist/components/ReportBuilder/SourceViewPicker.d.ts +0 -9
- package/dist/components/ReportBuilder/legacyNotebook.d.ts +0 -73
- package/dist/components/ReportBuilder/useConversionConfirm.d.ts +0 -20
- package/dist/useCompiledDocument-BKyRnXmA.cjs.js +0 -141
- package/src/components/Notebook/cellKind.spec.ts +0 -199
- package/src/components/Notebook/cellKind.ts +0 -74
- package/src/components/Report/LinearReport.tsx +0 -71
- package/src/components/ReportBuilder/SourceViewPicker.tsx +0 -122
- package/src/components/ReportBuilder/legacyNotebook.chart.spec.ts +0 -77
- package/src/components/ReportBuilder/legacyNotebook.convert.spec.ts +0 -626
- package/src/components/ReportBuilder/legacyNotebook.read.spec.ts +0 -338
- package/src/components/ReportBuilder/legacyNotebook.ts +0 -1122
- package/src/components/ReportBuilder/useConversionConfirm.ts +0 -55
- package/src/components/legacy/Notebook.served.spec.tsx +0 -183
- /package/dist/components/{Notebook → legacy/malloynb}/runPlan.d.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.spec.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.ts +0 -0
|
@@ -1,8 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
1
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as Ve, QueryClientProvider as Se, useQuery as Oe } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { styled as
|
|
4
|
+
import { useContext as oe, useMemo as F, createContext as se, useState as ae, useEffect as ke, useCallback as Ae } from "react";
|
|
5
|
+
import { styled as B, Card as ye, CardContent as Ce, CardMedia as Ie } from "@mui/material";
|
|
6
|
+
const te = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", N = {
|
|
7
|
+
radius: { control: "6px", tile: "8px", menu: "10px", dialog: "12px" },
|
|
8
|
+
size: { control: 32, chip: 24 },
|
|
9
|
+
type: {
|
|
10
|
+
pageTitle: { fontSize: 24, fontWeight: 600, letterSpacing: "-0.01em" },
|
|
11
|
+
tileTitle: { fontSize: 14, fontWeight: 600, lineHeight: 1.4 },
|
|
12
|
+
prose: { fontSize: 15, lineHeight: 1.6 },
|
|
13
|
+
control: { fontSize: 13, fontWeight: 500 },
|
|
14
|
+
caption: { fontSize: 12, lineHeight: 1.4 },
|
|
15
|
+
label: { fontSize: 12, fontWeight: 600, lineHeight: 1.4 },
|
|
16
|
+
code: { fontSize: 11.5, fontFamily: te }
|
|
17
|
+
},
|
|
18
|
+
font: { mono: te },
|
|
19
|
+
shadow: { menu: "0 8px 24px rgba(16, 24, 40, 0.12)" }
|
|
20
|
+
};
|
|
21
|
+
function xe(c) {
|
|
22
|
+
if (!c) return N;
|
|
23
|
+
const n = { ...N.font, ...c.font }, e = { ...N.type };
|
|
24
|
+
e.code = { ...e.code, fontFamily: n.mono };
|
|
25
|
+
for (const [t, a] of Object.entries(c.type ?? {}))
|
|
26
|
+
e[t] = {
|
|
27
|
+
...e[t],
|
|
28
|
+
...a
|
|
29
|
+
};
|
|
30
|
+
return {
|
|
31
|
+
radius: { ...N.radius, ...c.radius },
|
|
32
|
+
size: { ...N.size, ...c.size },
|
|
33
|
+
type: e,
|
|
34
|
+
font: n,
|
|
35
|
+
shadow: { ...N.shadow, ...c.shadow }
|
|
36
|
+
};
|
|
37
|
+
}
|
|
6
38
|
const I = {
|
|
7
39
|
blue: "#2563eb",
|
|
8
40
|
indigo: "#4f46e5",
|
|
@@ -16,36 +48,25 @@ const I = {
|
|
|
16
48
|
teal: "#0f766e",
|
|
17
49
|
cyan: "#0e7490",
|
|
18
50
|
slate: "#475569"
|
|
19
|
-
},
|
|
51
|
+
}, ya = {
|
|
20
52
|
environment: I.emerald,
|
|
21
53
|
package: I.teal,
|
|
22
54
|
connection: I.orange
|
|
23
|
-
},
|
|
55
|
+
}, Ca = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ia = B(ye)({
|
|
24
56
|
display: "flex",
|
|
25
57
|
flexDirection: "column",
|
|
26
58
|
height: "100%",
|
|
27
59
|
boxShadow: "none",
|
|
28
60
|
border: "none",
|
|
29
61
|
backgroundColor: "transparent"
|
|
30
|
-
}),
|
|
62
|
+
}), xa = B(Ce)({
|
|
31
63
|
display: "flex",
|
|
32
64
|
flexDirection: "column",
|
|
33
65
|
padding: "0",
|
|
34
66
|
flexGrow: 1
|
|
35
|
-
}),
|
|
67
|
+
}), Ra = B(Ie)({
|
|
36
68
|
padding: "0"
|
|
37
|
-
}),
|
|
38
|
-
backgroundColor: c.palette.background.default,
|
|
39
|
-
borderRadius: "12px",
|
|
40
|
-
boxShadow: "none",
|
|
41
|
-
border: "none"
|
|
42
|
-
})), Ia = N("div")({
|
|
43
|
-
marginBottom: "48px",
|
|
44
|
-
padding: "0",
|
|
45
|
-
backgroundColor: "transparent",
|
|
46
|
-
border: "none",
|
|
47
|
-
boxShadow: "none"
|
|
48
|
-
}), xa = N("div")({
|
|
69
|
+
}), Na = B("div")({
|
|
49
70
|
backgroundColor: "transparent",
|
|
50
71
|
paddingTop: "12px",
|
|
51
72
|
paddingBottom: "2px",
|
|
@@ -53,13 +74,13 @@ const I = {
|
|
|
53
74
|
border: "none",
|
|
54
75
|
boxShadow: "none",
|
|
55
76
|
marginBottom: "0"
|
|
56
|
-
}),
|
|
77
|
+
}), Ua = B("div")({
|
|
57
78
|
height: "100%"
|
|
58
|
-
}),
|
|
79
|
+
}), Ta = B("div")({
|
|
59
80
|
height: "75vh",
|
|
60
81
|
width: "100%",
|
|
61
82
|
overflowY: "auto"
|
|
62
|
-
}),
|
|
83
|
+
}), Re = {
|
|
63
84
|
light: {
|
|
64
85
|
accent: I.blue,
|
|
65
86
|
accentHover: "#1d4ed8",
|
|
@@ -70,52 +91,52 @@ const I = {
|
|
|
70
91
|
accentHover: "#93c5fd",
|
|
71
92
|
accentContrast: "#0f172a"
|
|
72
93
|
}
|
|
73
|
-
},
|
|
94
|
+
}, Ne = {
|
|
74
95
|
light: "#ffffff",
|
|
75
96
|
dark: "#0f172a"
|
|
76
|
-
},
|
|
97
|
+
}, Ue = 3, U = (c) => {
|
|
77
98
|
const n = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(c.trim());
|
|
78
99
|
if (!n) return;
|
|
79
100
|
const e = n[1].length === 3 ? [...n[1]].map((t) => t + t).join("") : n[1];
|
|
80
101
|
return [0, 2, 4].map((t) => parseInt(e.slice(t, t + 2), 16));
|
|
81
|
-
},
|
|
102
|
+
}, ce = (c) => `#${c.map((n) => Math.round(n).toString(16).padStart(2, "0")).join("")}`, _ = (c, n, e) => ce(c.map((t) => t + (n - t) * e)), G = (c) => {
|
|
82
103
|
const [n, e, t] = c.map((a) => {
|
|
83
104
|
const r = a / 255;
|
|
84
105
|
return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
|
|
85
106
|
});
|
|
86
107
|
return 0.2126 * n + 0.7152 * e + 0.0722 * t;
|
|
87
|
-
},
|
|
88
|
-
const [e, t] = [
|
|
108
|
+
}, Q = (c, n) => {
|
|
109
|
+
const [e, t] = [G(c), G(n)].sort((a, r) => r - a);
|
|
89
110
|
return (e + 0.05) / (t + 0.05);
|
|
90
111
|
};
|
|
91
|
-
function
|
|
112
|
+
function fa(c, n) {
|
|
92
113
|
const e = U(c), t = U(n);
|
|
93
|
-
return e && t ?
|
|
114
|
+
return e && t ? Q(e, t) : void 0;
|
|
94
115
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
116
|
+
const Te = [15, 23, 42];
|
|
117
|
+
function W(c, n, e = Ue) {
|
|
97
118
|
const t = U(c), a = U(n);
|
|
98
|
-
if (!t || !a ||
|
|
99
|
-
const r =
|
|
119
|
+
if (!t || !a || Q(t, a) >= e) return c;
|
|
120
|
+
const r = G(a) < 0.5 ? 255 : 0;
|
|
100
121
|
for (let o = 0.05; o < 1; o += 0.05) {
|
|
101
|
-
const s = U(
|
|
102
|
-
if (s &&
|
|
122
|
+
const s = U(_(t, r, o));
|
|
123
|
+
if (s && Q(s, a) >= e) return ce(s);
|
|
103
124
|
}
|
|
104
125
|
return r === 255 ? "#ffffff" : "#000000";
|
|
105
126
|
}
|
|
106
|
-
function
|
|
107
|
-
const t =
|
|
127
|
+
function ne(c, n, e = Ne[n]) {
|
|
128
|
+
const t = Re[n];
|
|
108
129
|
if (!c || c.toLowerCase() === I.blue) return t;
|
|
109
130
|
if (!U(c))
|
|
110
131
|
return n === "light" ? { ...t, accent: c, accentHover: c } : t;
|
|
111
|
-
const a =
|
|
132
|
+
const a = W(c, e), r = U(a), o = n === "dark" ? _(r, 255, 0.25) : _(r, 0, 0.2), s = Q(r, [255, 255, 255]), l = Q(r, Te);
|
|
112
133
|
return {
|
|
113
134
|
accent: a,
|
|
114
135
|
accentHover: o,
|
|
115
136
|
accentContrast: s >= l ? "#ffffff" : "#0f172a"
|
|
116
137
|
};
|
|
117
138
|
}
|
|
118
|
-
const
|
|
139
|
+
const fe = [
|
|
119
140
|
I.blue,
|
|
120
141
|
I.orange,
|
|
121
142
|
I.emerald,
|
|
@@ -124,11 +145,11 @@ const Re = [
|
|
|
124
145
|
I.amber,
|
|
125
146
|
I.cyan,
|
|
126
147
|
I.lime
|
|
127
|
-
],
|
|
148
|
+
], we = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", re = {
|
|
128
149
|
defaultMode: "light",
|
|
129
150
|
allowUserToggle: !0,
|
|
130
151
|
palette: {
|
|
131
|
-
series:
|
|
152
|
+
series: fe,
|
|
132
153
|
// The chart canvas. One ground for the whole dashboard in both modes —
|
|
133
154
|
// canvas, card and the panel between cards are all this value, and the
|
|
134
155
|
// borders do the separating. See `tile`.
|
|
@@ -214,10 +235,10 @@ const Re = [
|
|
|
214
235
|
}
|
|
215
236
|
},
|
|
216
237
|
font: {
|
|
217
|
-
family:
|
|
238
|
+
family: we,
|
|
218
239
|
size: 12
|
|
219
240
|
}
|
|
220
|
-
},
|
|
241
|
+
}, Ee = [
|
|
221
242
|
"background",
|
|
222
243
|
"tableHeader",
|
|
223
244
|
"tableHeaderBackground",
|
|
@@ -232,8 +253,8 @@ const Re = [
|
|
|
232
253
|
"chartText",
|
|
233
254
|
"value"
|
|
234
255
|
];
|
|
235
|
-
function
|
|
236
|
-
const e =
|
|
256
|
+
function le(c, n) {
|
|
257
|
+
const e = re.palette ?? {}, t = re.font ?? {
|
|
237
258
|
family: "sans-serif",
|
|
238
259
|
size: 12
|
|
239
260
|
};
|
|
@@ -261,20 +282,22 @@ function se(c, n) {
|
|
|
261
282
|
for (const k of c)
|
|
262
283
|
if (k) {
|
|
263
284
|
Array.isArray(k.palette?.series) && (a = [...k.palette.series], r = !0);
|
|
264
|
-
for (const C of
|
|
285
|
+
for (const C of Ee) {
|
|
265
286
|
const R = k.palette?.[C];
|
|
266
287
|
R && (l[C] = { ...l[C], ...R }, R.light !== void 0 && i.light.add(C), R.dark !== void 0 && i.dark.add(C));
|
|
267
288
|
}
|
|
268
289
|
typeof k.font?.family == "string" && (o = k.font.family), typeof k.font?.size == "number" && (s = k.font.size);
|
|
269
290
|
}
|
|
270
|
-
const p = n === "dark", d = (k) => l[k][n] ?? e[k]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ?
|
|
291
|
+
const p = n === "dark", d = (k) => l[k][n] ?? e[k]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? W(l.mapColor.light, h) : d("mapColor");
|
|
271
292
|
return {
|
|
272
293
|
mode: n,
|
|
294
|
+
// The host's chrome tokens are laid over this by `ThemeProvider`.
|
|
295
|
+
ui: N,
|
|
273
296
|
// One series list for both modes, picked against a light page: in dark,
|
|
274
297
|
// an operator's colour too dark to see on the canvas is lifted until it
|
|
275
298
|
// reads. The defaults are drawn as they always were.
|
|
276
|
-
series: p && r ? a.map((k) =>
|
|
277
|
-
...
|
|
299
|
+
series: p && r ? a.map((k) => W(k, h)) : a,
|
|
300
|
+
...ne(a[0], n, h),
|
|
278
301
|
font: { family: o, size: s },
|
|
279
302
|
background: h,
|
|
280
303
|
tableHeader: d("tableHeader"),
|
|
@@ -322,32 +345,40 @@ function se(c, n) {
|
|
|
322
345
|
// contrast on the slate panel.
|
|
323
346
|
// The Console's default accent, not the palette's: a drill reads as a
|
|
324
347
|
// link whatever the operator picked for the data.
|
|
325
|
-
drillLink:
|
|
348
|
+
drillLink: ne(void 0, n).accent
|
|
326
349
|
};
|
|
327
350
|
}
|
|
328
|
-
function
|
|
351
|
+
function Me(c, n, e) {
|
|
329
352
|
const t = n ?? c ?? "light";
|
|
330
353
|
return t === "auto" ? e ? "dark" : "light" : t;
|
|
331
354
|
}
|
|
332
|
-
const
|
|
333
|
-
function
|
|
355
|
+
const ie = se(void 0);
|
|
356
|
+
function Fe({
|
|
334
357
|
layers: c,
|
|
335
358
|
mode: n,
|
|
336
359
|
userChoice: e,
|
|
337
360
|
setMode: t,
|
|
338
361
|
allowUserToggle: a = !0,
|
|
339
|
-
|
|
362
|
+
ui: r,
|
|
363
|
+
children: o
|
|
340
364
|
}) {
|
|
341
|
-
const
|
|
342
|
-
() => (
|
|
343
|
-
|
|
365
|
+
const s = JSON.stringify(r ?? null), l = F(
|
|
366
|
+
() => xe(r),
|
|
367
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
368
|
+
[s]
|
|
369
|
+
), i = F(
|
|
370
|
+
() => ({ ...le(c, n), ui: l }),
|
|
371
|
+
[c, n, l]
|
|
372
|
+
), p = F(
|
|
373
|
+
() => ({ theme: i, layers: c, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
|
|
374
|
+
[i, c, n, e, t, a]
|
|
344
375
|
);
|
|
345
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ q(ie.Provider, { value: p, children: o });
|
|
346
377
|
}
|
|
347
|
-
function
|
|
348
|
-
const c =
|
|
378
|
+
function wa() {
|
|
379
|
+
const c = oe(ie);
|
|
349
380
|
return c || {
|
|
350
|
-
theme:
|
|
381
|
+
theme: le([], "light"),
|
|
351
382
|
layers: [],
|
|
352
383
|
mode: "light",
|
|
353
384
|
userChoice: void 0,
|
|
@@ -363,28 +394,28 @@ class x {
|
|
|
363
394
|
}
|
|
364
395
|
configuration;
|
|
365
396
|
}
|
|
366
|
-
class
|
|
397
|
+
class Be extends Error {
|
|
367
398
|
constructor(n, e) {
|
|
368
399
|
super(e), this.field = n, this.name = "RequiredError";
|
|
369
400
|
}
|
|
370
401
|
}
|
|
371
|
-
const b = {},
|
|
402
|
+
const b = {}, P = "https://example.com", m = function(c, n, e) {
|
|
372
403
|
if (e == null)
|
|
373
|
-
throw new
|
|
404
|
+
throw new Be(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
|
|
374
405
|
};
|
|
375
|
-
function
|
|
376
|
-
n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) =>
|
|
377
|
-
(t) =>
|
|
406
|
+
function $(c, n, e = "") {
|
|
407
|
+
n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) => $(c, t, e)) : Object.keys(n).forEach(
|
|
408
|
+
(t) => $(c, n[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
378
409
|
) : c.has(e) ? c.append(e, n) : c.set(e, n));
|
|
379
410
|
}
|
|
380
|
-
const
|
|
411
|
+
const v = function(c, ...n) {
|
|
381
412
|
const e = new URLSearchParams(c.search);
|
|
382
|
-
|
|
383
|
-
},
|
|
413
|
+
$(e, n), c.search = e.toString();
|
|
414
|
+
}, je = function(c, n) {
|
|
384
415
|
return n instanceof Set ? Array.from(n) : n;
|
|
385
416
|
}, A = function(c, n, e) {
|
|
386
417
|
const t = typeof c != "string";
|
|
387
|
-
return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(c !== void 0 ? c : {},
|
|
418
|
+
return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(c !== void 0 ? c : {}, je) : c || "";
|
|
388
419
|
}, V = function(c) {
|
|
389
420
|
return c.pathname + c.search + c.hash;
|
|
390
421
|
}, S = function(c, n, e, t) {
|
|
@@ -392,34 +423,34 @@ const P = function(c, ...n) {
|
|
|
392
423
|
const o = { ...c.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + c.url };
|
|
393
424
|
return a.request(o);
|
|
394
425
|
};
|
|
395
|
-
},
|
|
426
|
+
}, Ea = {
|
|
396
427
|
Bigquery: "bigquery",
|
|
397
428
|
Snowflake: "snowflake",
|
|
398
429
|
Postgres: "postgres",
|
|
399
430
|
Gcs: "gcs",
|
|
400
431
|
S3: "s3",
|
|
401
432
|
Azure: "azure"
|
|
402
|
-
},
|
|
433
|
+
}, Ma = {
|
|
403
434
|
ServicePrincipal: "service_principal",
|
|
404
435
|
SasToken: "sas_token"
|
|
405
|
-
},
|
|
436
|
+
}, Fa = {
|
|
406
437
|
Error: "error",
|
|
407
438
|
Warn: "warn",
|
|
408
439
|
Debug: "debug"
|
|
409
|
-
},
|
|
440
|
+
}, Ba = {
|
|
410
441
|
Append: "append",
|
|
411
442
|
File: "file",
|
|
412
443
|
Package: "package"
|
|
413
|
-
},
|
|
444
|
+
}, ja = {
|
|
414
445
|
Success: "success",
|
|
415
446
|
Error: "error"
|
|
416
|
-
},
|
|
447
|
+
}, Da = {
|
|
417
448
|
Grid: "grid",
|
|
418
449
|
Linear: "linear"
|
|
419
|
-
},
|
|
450
|
+
}, qa = {
|
|
420
451
|
Dashboard: "dashboard",
|
|
421
452
|
Notebook: "notebook"
|
|
422
|
-
},
|
|
453
|
+
}, Qa = {
|
|
423
454
|
Postgres: "postgres",
|
|
424
455
|
Bigquery: "bigquery",
|
|
425
456
|
Snowflake: "snowflake",
|
|
@@ -430,139 +461,139 @@ const P = function(c, ...n) {
|
|
|
430
461
|
Motherduck: "motherduck",
|
|
431
462
|
Ducklake: "ducklake",
|
|
432
463
|
Publisher: "publisher"
|
|
433
|
-
},
|
|
464
|
+
}, za = {
|
|
434
465
|
Ssh: "ssh"
|
|
435
|
-
},
|
|
466
|
+
}, La = {
|
|
436
467
|
Ok: "ok",
|
|
437
468
|
Failed: "failed"
|
|
438
|
-
},
|
|
469
|
+
}, Ha = {
|
|
439
470
|
Grid: "grid",
|
|
440
471
|
Linear: "linear"
|
|
441
|
-
},
|
|
472
|
+
}, _a = {
|
|
442
473
|
Dashboard: "dashboard",
|
|
443
474
|
Notebook: "notebook"
|
|
444
|
-
},
|
|
475
|
+
}, Ga = {
|
|
445
476
|
Query: "query",
|
|
446
477
|
Text: "text"
|
|
447
|
-
},
|
|
478
|
+
}, Wa = {
|
|
448
479
|
Viewport: "viewport"
|
|
449
|
-
},
|
|
480
|
+
}, $a = {
|
|
450
481
|
Embedded: "embedded",
|
|
451
482
|
Materialized: "materialized"
|
|
452
|
-
},
|
|
483
|
+
}, Ka = {
|
|
453
484
|
Equal: "equal",
|
|
454
485
|
In: "in",
|
|
455
486
|
Like: "like",
|
|
456
487
|
GreaterThan: "greater_than",
|
|
457
488
|
LessThan: "less_than"
|
|
458
|
-
},
|
|
489
|
+
}, Ya = {
|
|
459
490
|
Live: "live",
|
|
460
491
|
StaleOk: "stale_ok",
|
|
461
492
|
Fail: "fail"
|
|
462
|
-
},
|
|
493
|
+
}, Ja = {
|
|
463
494
|
Select: "select",
|
|
464
495
|
Multiselect: "multiselect"
|
|
465
|
-
},
|
|
496
|
+
}, Xa = {
|
|
466
497
|
Merge: "merge",
|
|
467
498
|
RangeReplace: "range_replace"
|
|
468
|
-
},
|
|
499
|
+
}, Za = {
|
|
469
500
|
Debug: "debug",
|
|
470
501
|
Info: "info",
|
|
471
502
|
Warn: "warn",
|
|
472
503
|
Error: "error"
|
|
473
|
-
},
|
|
504
|
+
}, et = {
|
|
474
505
|
Persist: "persist",
|
|
475
506
|
Preaggregate: "preaggregate"
|
|
476
|
-
},
|
|
507
|
+
}, at = {
|
|
477
508
|
Reused: "reused",
|
|
478
509
|
Recomputed: "recomputed"
|
|
479
|
-
},
|
|
510
|
+
}, tt = {
|
|
480
511
|
Live: "live",
|
|
481
512
|
StaleOk: "stale_ok",
|
|
482
513
|
Fail: "fail"
|
|
483
|
-
},
|
|
514
|
+
}, nt = {
|
|
484
515
|
Delta: "delta",
|
|
485
516
|
Full: "full",
|
|
486
517
|
None: "none"
|
|
487
|
-
},
|
|
518
|
+
}, rt = {
|
|
488
519
|
Pending: "PENDING",
|
|
489
520
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
490
521
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
491
522
|
Failed: "FAILED",
|
|
492
523
|
Cancelled: "CANCELLED"
|
|
493
|
-
},
|
|
524
|
+
}, ot = {
|
|
494
525
|
Markdown: "markdown",
|
|
495
526
|
Code: "code"
|
|
496
|
-
},
|
|
527
|
+
}, st = {
|
|
497
528
|
Markdown: "markdown",
|
|
498
529
|
Query: "query",
|
|
499
530
|
Definition: "definition"
|
|
500
|
-
},
|
|
531
|
+
}, ct = {
|
|
501
532
|
Markdown: "markdown",
|
|
502
533
|
Code: "code"
|
|
503
|
-
},
|
|
534
|
+
}, lt = {
|
|
504
535
|
Markdown: "markdown",
|
|
505
536
|
Query: "query",
|
|
506
537
|
Definition: "definition"
|
|
507
|
-
},
|
|
538
|
+
}, it = {
|
|
508
539
|
Version: "version",
|
|
509
540
|
Package: "package"
|
|
510
|
-
},
|
|
541
|
+
}, pt = {
|
|
511
542
|
Declared: "declared",
|
|
512
543
|
All: "all"
|
|
513
|
-
},
|
|
544
|
+
}, dt = {
|
|
514
545
|
Unbound: "unbound",
|
|
515
546
|
Bound: "bound",
|
|
516
547
|
LiveFallback: "live_fallback"
|
|
517
|
-
},
|
|
548
|
+
}, mt = {
|
|
518
549
|
Lexical: "lexical",
|
|
519
550
|
Indexing: "indexing",
|
|
520
551
|
Ready: "ready",
|
|
521
552
|
Error: "error",
|
|
522
553
|
Cooldown: "cooldown",
|
|
523
554
|
TooManyEntities: "too-many-entities"
|
|
524
|
-
},
|
|
555
|
+
}, ht = {
|
|
525
556
|
Cooldown: "cooldown",
|
|
526
557
|
TooManyEntities: "too-many-entities"
|
|
527
|
-
},
|
|
558
|
+
}, ut = {
|
|
528
559
|
Keyphrase: "keyphrase",
|
|
529
560
|
SourceSummary: "source_summary"
|
|
530
|
-
},
|
|
561
|
+
}, gt = {
|
|
531
562
|
Persist: "persist",
|
|
532
563
|
Preaggregate: "preaggregate"
|
|
533
|
-
},
|
|
564
|
+
}, bt = {
|
|
534
565
|
Error: "error",
|
|
535
566
|
Warn: "warn"
|
|
536
|
-
},
|
|
567
|
+
}, Pt = {
|
|
537
568
|
Persist: "persist",
|
|
538
569
|
Preaggregate: "preaggregate"
|
|
539
|
-
},
|
|
570
|
+
}, vt = {
|
|
540
571
|
Disable: "disable",
|
|
541
572
|
NoVerify: "no-verify",
|
|
542
573
|
VerifyCa: "verify-ca",
|
|
543
574
|
VerifyFull: "verify-full"
|
|
544
|
-
},
|
|
575
|
+
}, Vt = {
|
|
545
576
|
Interactive: "interactive",
|
|
546
577
|
Materialize: "materialize",
|
|
547
578
|
Index: "index",
|
|
548
579
|
Ops: "ops"
|
|
549
|
-
},
|
|
580
|
+
}, St = {
|
|
550
581
|
Query: "query",
|
|
551
582
|
ServerDefault: "server_default"
|
|
552
|
-
},
|
|
583
|
+
}, Ot = {
|
|
553
584
|
Storage: "storage",
|
|
554
585
|
LiveFallback: "live_fallback"
|
|
555
|
-
},
|
|
586
|
+
}, kt = {
|
|
556
587
|
Malloynb: "malloynb",
|
|
557
588
|
Malloy: "malloy"
|
|
558
|
-
},
|
|
589
|
+
}, At = {
|
|
559
590
|
Snapshot: "SNAPSHOT",
|
|
560
591
|
Copy: "COPY"
|
|
561
|
-
},
|
|
592
|
+
}, yt = {
|
|
562
593
|
Storage: "storage",
|
|
563
594
|
Colocated: "colocated",
|
|
564
595
|
Preaggregate: "preaggregate"
|
|
565
|
-
},
|
|
596
|
+
}, Ct = {
|
|
566
597
|
FreeParameter: "free_parameter",
|
|
567
598
|
Given: "given",
|
|
568
599
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
@@ -577,41 +608,41 @@ const P = function(c, ...n) {
|
|
|
577
608
|
Authorize: "authorize",
|
|
578
609
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
579
610
|
PublicSurfaceUnknown: "public_surface_unknown"
|
|
580
|
-
},
|
|
611
|
+
}, It = {
|
|
581
612
|
Grid: "grid",
|
|
582
613
|
Linear: "linear"
|
|
583
|
-
},
|
|
614
|
+
}, xt = {
|
|
584
615
|
Malloynb: "malloynb",
|
|
585
616
|
Malloy: "malloy"
|
|
586
|
-
},
|
|
617
|
+
}, Rt = {
|
|
587
618
|
Grid: "grid",
|
|
588
619
|
Linear: "linear"
|
|
589
|
-
},
|
|
620
|
+
}, Nt = {
|
|
590
621
|
Query: "query",
|
|
591
622
|
Text: "text"
|
|
592
|
-
},
|
|
623
|
+
}, Ut = {
|
|
593
624
|
Publish: "publish",
|
|
594
625
|
OnDemand: "on_demand",
|
|
595
626
|
Scheduler: "scheduler"
|
|
596
|
-
},
|
|
627
|
+
}, Tt = {
|
|
597
628
|
Config: "config",
|
|
598
629
|
CredentialChain: "credential_chain"
|
|
599
|
-
},
|
|
630
|
+
}, ft = {
|
|
600
631
|
Initializing: "initializing",
|
|
601
632
|
Serving: "serving",
|
|
602
633
|
Draining: "draining",
|
|
603
634
|
Throttled: "throttled"
|
|
604
|
-
}, Tt = {
|
|
605
|
-
Bundled: "bundled",
|
|
606
|
-
Package: "package"
|
|
607
635
|
}, wt = {
|
|
608
636
|
Bundled: "bundled",
|
|
609
637
|
Package: "package"
|
|
610
638
|
}, Et = {
|
|
639
|
+
Bundled: "bundled",
|
|
640
|
+
Package: "package"
|
|
641
|
+
}, Mt = {
|
|
611
642
|
Light: "light",
|
|
612
643
|
Dark: "dark",
|
|
613
644
|
Auto: "auto"
|
|
614
|
-
},
|
|
645
|
+
}, De = function(c) {
|
|
615
646
|
return {
|
|
616
647
|
/**
|
|
617
648
|
* 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.
|
|
@@ -625,11 +656,11 @@ const P = function(c, ...n) {
|
|
|
625
656
|
*/
|
|
626
657
|
getAgent: async (n, e, t, a, r = {}) => {
|
|
627
658
|
m("getAgent", "environmentName", n), m("getAgent", "packageName", e), m("getAgent", "agentName", t);
|
|
628
|
-
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
659
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
629
660
|
let l;
|
|
630
661
|
c && (l = c.baseOptions);
|
|
631
662
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
632
|
-
a !== void 0 && (d.skills = a), p.Accept = "application/json",
|
|
663
|
+
a !== void 0 && (d.skills = a), p.Accept = "application/json", v(s, d);
|
|
633
664
|
let h = l && l.headers ? l.headers : {};
|
|
634
665
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
635
666
|
url: V(s),
|
|
@@ -648,11 +679,11 @@ const P = function(c, ...n) {
|
|
|
648
679
|
*/
|
|
649
680
|
getAgentSkillFile: async (n, e, t, a, r = {}) => {
|
|
650
681
|
m("getAgentSkillFile", "environmentName", n), m("getAgentSkillFile", "packageName", e), m("getAgentSkillFile", "agentName", t), m("getAgentSkillFile", "relativeFilepath", a);
|
|
651
|
-
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), s = new URL(o,
|
|
682
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), s = new URL(o, P);
|
|
652
683
|
let l;
|
|
653
684
|
c && (l = c.baseOptions);
|
|
654
685
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
655
|
-
p.Accept = "application/json",
|
|
686
|
+
p.Accept = "application/json", v(s, d);
|
|
656
687
|
let h = l && l.headers ? l.headers : {};
|
|
657
688
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
658
689
|
url: V(s),
|
|
@@ -669,11 +700,11 @@ const P = function(c, ...n) {
|
|
|
669
700
|
*/
|
|
670
701
|
listAgents: async (n, e, t = {}) => {
|
|
671
702
|
m("listAgents", "environmentName", n), m("listAgents", "packageName", e);
|
|
672
|
-
const a = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
703
|
+
const a = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
673
704
|
let o;
|
|
674
705
|
c && (o = c.baseOptions);
|
|
675
706
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
676
|
-
l.Accept = "application/json",
|
|
707
|
+
l.Accept = "application/json", v(r, i);
|
|
677
708
|
let p = o && o.headers ? o.headers : {};
|
|
678
709
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
679
710
|
url: V(r),
|
|
@@ -681,8 +712,8 @@ const P = function(c, ...n) {
|
|
|
681
712
|
};
|
|
682
713
|
}
|
|
683
714
|
};
|
|
684
|
-
},
|
|
685
|
-
const n =
|
|
715
|
+
}, z = function(c) {
|
|
716
|
+
const n = De(c);
|
|
686
717
|
return {
|
|
687
718
|
/**
|
|
688
719
|
* 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.
|
|
@@ -725,8 +756,8 @@ const P = function(c, ...n) {
|
|
|
725
756
|
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
726
757
|
}
|
|
727
758
|
};
|
|
728
|
-
},
|
|
729
|
-
const t =
|
|
759
|
+
}, Ft = function(c, n, e) {
|
|
760
|
+
const t = z(c);
|
|
730
761
|
return {
|
|
731
762
|
/**
|
|
732
763
|
* 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.
|
|
@@ -767,7 +798,7 @@ const P = function(c, ...n) {
|
|
|
767
798
|
}
|
|
768
799
|
};
|
|
769
800
|
};
|
|
770
|
-
class
|
|
801
|
+
class Bt extends x {
|
|
771
802
|
/**
|
|
772
803
|
* 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.
|
|
773
804
|
* @summary Get one agent, resolved
|
|
@@ -779,7 +810,7 @@ class Mt extends x {
|
|
|
779
810
|
* @throws {RequiredError}
|
|
780
811
|
*/
|
|
781
812
|
getAgent(n, e, t, a, r) {
|
|
782
|
-
return
|
|
813
|
+
return z(this.configuration).getAgent(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
783
814
|
}
|
|
784
815
|
/**
|
|
785
816
|
* 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.
|
|
@@ -792,7 +823,7 @@ class Mt extends x {
|
|
|
792
823
|
* @throws {RequiredError}
|
|
793
824
|
*/
|
|
794
825
|
getAgentSkillFile(n, e, t, a, r) {
|
|
795
|
-
return
|
|
826
|
+
return z(this.configuration).getAgentSkillFile(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
796
827
|
}
|
|
797
828
|
/**
|
|
798
829
|
* 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.
|
|
@@ -803,13 +834,13 @@ class Mt extends x {
|
|
|
803
834
|
* @throws {RequiredError}
|
|
804
835
|
*/
|
|
805
836
|
listAgents(n, e, t) {
|
|
806
|
-
return
|
|
837
|
+
return z(this.configuration).listAgents(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
807
838
|
}
|
|
808
839
|
}
|
|
809
|
-
const
|
|
840
|
+
const jt = {
|
|
810
841
|
Full: "full",
|
|
811
842
|
Summary: "summary"
|
|
812
|
-
},
|
|
843
|
+
}, qe = function(c) {
|
|
813
844
|
return {
|
|
814
845
|
/**
|
|
815
846
|
* Creates a new database connection in the specified environment.
|
|
@@ -822,11 +853,11 @@ const Ft = {
|
|
|
822
853
|
*/
|
|
823
854
|
createConnection: async (n, e, t, a = {}) => {
|
|
824
855
|
m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
|
|
825
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
856
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
826
857
|
let s;
|
|
827
858
|
c && (s = c.baseOptions);
|
|
828
859
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
829
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
860
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
830
861
|
let d = s && s.headers ? s.headers : {};
|
|
831
862
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
832
863
|
url: V(o),
|
|
@@ -843,11 +874,11 @@ const Ft = {
|
|
|
843
874
|
*/
|
|
844
875
|
deleteConnection: async (n, e, t = {}) => {
|
|
845
876
|
m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
|
|
846
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
877
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
847
878
|
let o;
|
|
848
879
|
c && (o = c.baseOptions);
|
|
849
880
|
const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
|
|
850
|
-
l.Accept = "application/json",
|
|
881
|
+
l.Accept = "application/json", v(r, i);
|
|
851
882
|
let p = o && o.headers ? o.headers : {};
|
|
852
883
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
853
884
|
url: V(r),
|
|
@@ -864,11 +895,11 @@ const Ft = {
|
|
|
864
895
|
*/
|
|
865
896
|
getConnection: async (n, e, t = {}) => {
|
|
866
897
|
m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
|
|
867
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
898
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
868
899
|
let o;
|
|
869
900
|
c && (o = c.baseOptions);
|
|
870
901
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
871
|
-
l.Accept = "application/json",
|
|
902
|
+
l.Accept = "application/json", v(r, i);
|
|
872
903
|
let p = o && o.headers ? o.headers : {};
|
|
873
904
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
874
905
|
url: V(r),
|
|
@@ -887,11 +918,11 @@ const Ft = {
|
|
|
887
918
|
*/
|
|
888
919
|
getTable: async (n, e, t, a, r = {}) => {
|
|
889
920
|
m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
|
|
890
|
-
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,
|
|
921
|
+
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);
|
|
891
922
|
let l;
|
|
892
923
|
c && (l = c.baseOptions);
|
|
893
924
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
894
|
-
p.Accept = "application/json",
|
|
925
|
+
p.Accept = "application/json", v(s, d);
|
|
895
926
|
let h = l && l.headers ? l.headers : {};
|
|
896
927
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
897
928
|
url: V(s),
|
|
@@ -911,11 +942,11 @@ const Ft = {
|
|
|
911
942
|
*/
|
|
912
943
|
getTableInPackage: async (n, e, t, a, r, o = {}) => {
|
|
913
944
|
m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", r);
|
|
914
|
-
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))), l = new URL(s,
|
|
945
|
+
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))), l = new URL(s, P);
|
|
915
946
|
let i;
|
|
916
947
|
c && (i = c.baseOptions);
|
|
917
948
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
918
|
-
d.Accept = "application/json",
|
|
949
|
+
d.Accept = "application/json", v(l, h);
|
|
919
950
|
let O = i && i.headers ? i.headers : {};
|
|
920
951
|
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
921
952
|
url: V(l),
|
|
@@ -931,11 +962,11 @@ const Ft = {
|
|
|
931
962
|
*/
|
|
932
963
|
listConnections: async (n, e = {}) => {
|
|
933
964
|
m("listConnections", "environmentName", n);
|
|
934
|
-
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
965
|
+
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
|
|
935
966
|
let r;
|
|
936
967
|
c && (r = c.baseOptions);
|
|
937
968
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
938
|
-
s.Accept = "application/json",
|
|
969
|
+
s.Accept = "application/json", v(a, l);
|
|
939
970
|
let i = r && r.headers ? r.headers : {};
|
|
940
971
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
941
972
|
url: V(a),
|
|
@@ -952,11 +983,11 @@ const Ft = {
|
|
|
952
983
|
*/
|
|
953
984
|
listSchemas: async (n, e, t = {}) => {
|
|
954
985
|
m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
|
|
955
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
986
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
956
987
|
let o;
|
|
957
988
|
c && (o = c.baseOptions);
|
|
958
989
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
959
|
-
l.Accept = "application/json",
|
|
990
|
+
l.Accept = "application/json", v(r, i);
|
|
960
991
|
let p = o && o.headers ? o.headers : {};
|
|
961
992
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
962
993
|
url: V(r),
|
|
@@ -974,11 +1005,11 @@ const Ft = {
|
|
|
974
1005
|
*/
|
|
975
1006
|
listSchemasInPackage: async (n, e, t, a = {}) => {
|
|
976
1007
|
m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
|
|
977
|
-
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,
|
|
1008
|
+
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);
|
|
978
1009
|
let s;
|
|
979
1010
|
c && (s = c.baseOptions);
|
|
980
1011
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
981
|
-
i.Accept = "application/json",
|
|
1012
|
+
i.Accept = "application/json", v(o, p);
|
|
982
1013
|
let d = s && s.headers ? s.headers : {};
|
|
983
1014
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
984
1015
|
url: V(o),
|
|
@@ -997,11 +1028,11 @@ const Ft = {
|
|
|
997
1028
|
*/
|
|
998
1029
|
listTables: async (n, e, t, a, r = {}) => {
|
|
999
1030
|
m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
|
|
1000
|
-
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,
|
|
1031
|
+
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);
|
|
1001
1032
|
let l;
|
|
1002
1033
|
c && (l = c.baseOptions);
|
|
1003
1034
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
1004
|
-
a && (d.tableNames = a), p.Accept = "application/json",
|
|
1035
|
+
a && (d.tableNames = a), p.Accept = "application/json", v(s, d);
|
|
1005
1036
|
let h = l && l.headers ? l.headers : {};
|
|
1006
1037
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
1007
1038
|
url: V(s),
|
|
@@ -1021,11 +1052,11 @@ const Ft = {
|
|
|
1021
1052
|
*/
|
|
1022
1053
|
listTablesInPackage: async (n, e, t, a, r, o = {}) => {
|
|
1023
1054
|
m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
|
|
1024
|
-
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))), l = new URL(s,
|
|
1055
|
+
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))), l = new URL(s, P);
|
|
1025
1056
|
let i;
|
|
1026
1057
|
c && (i = c.baseOptions);
|
|
1027
1058
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
1028
|
-
r && (h.tableNames = r), d.Accept = "application/json",
|
|
1059
|
+
r && (h.tableNames = r), d.Accept = "application/json", v(l, h);
|
|
1029
1060
|
let O = i && i.headers ? i.headers : {};
|
|
1030
1061
|
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
1031
1062
|
url: V(l),
|
|
@@ -1043,11 +1074,11 @@ const Ft = {
|
|
|
1043
1074
|
*/
|
|
1044
1075
|
postQuerydata: async (n, e, t, a = {}) => {
|
|
1045
1076
|
m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
|
|
1046
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1077
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1047
1078
|
let s;
|
|
1048
1079
|
c && (s = c.baseOptions);
|
|
1049
1080
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1050
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1081
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1051
1082
|
let d = s && s.headers ? s.headers : {};
|
|
1052
1083
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1053
1084
|
url: V(o),
|
|
@@ -1066,11 +1097,11 @@ const Ft = {
|
|
|
1066
1097
|
*/
|
|
1067
1098
|
postQuerydataInPackage: async (n, e, t, a, r = {}) => {
|
|
1068
1099
|
m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
1069
|
-
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,
|
|
1100
|
+
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);
|
|
1070
1101
|
let l;
|
|
1071
1102
|
c && (l = c.baseOptions);
|
|
1072
1103
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1073
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
1104
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1074
1105
|
let h = l && l.headers ? l.headers : {};
|
|
1075
1106
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
1076
1107
|
url: V(s),
|
|
@@ -1088,11 +1119,11 @@ const Ft = {
|
|
|
1088
1119
|
*/
|
|
1089
1120
|
postSqlsource: async (n, e, t, a = {}) => {
|
|
1090
1121
|
m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
|
|
1091
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1122
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1092
1123
|
let s;
|
|
1093
1124
|
c && (s = c.baseOptions);
|
|
1094
1125
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1095
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1126
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1096
1127
|
let d = s && s.headers ? s.headers : {};
|
|
1097
1128
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1098
1129
|
url: V(o),
|
|
@@ -1111,11 +1142,11 @@ const Ft = {
|
|
|
1111
1142
|
*/
|
|
1112
1143
|
postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
|
|
1113
1144
|
m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
1114
|
-
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,
|
|
1145
|
+
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);
|
|
1115
1146
|
let l;
|
|
1116
1147
|
c && (l = c.baseOptions);
|
|
1117
1148
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1118
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
1149
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1119
1150
|
let h = l && l.headers ? l.headers : {};
|
|
1120
1151
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
1121
1152
|
url: V(s),
|
|
@@ -1133,11 +1164,11 @@ const Ft = {
|
|
|
1133
1164
|
*/
|
|
1134
1165
|
postTemporarytable: async (n, e, t, a = {}) => {
|
|
1135
1166
|
m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
|
|
1136
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1167
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1137
1168
|
let s;
|
|
1138
1169
|
c && (s = c.baseOptions);
|
|
1139
1170
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1140
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1171
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1141
1172
|
let d = s && s.headers ? s.headers : {};
|
|
1142
1173
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1143
1174
|
url: V(o),
|
|
@@ -1156,11 +1187,11 @@ const Ft = {
|
|
|
1156
1187
|
*/
|
|
1157
1188
|
postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
|
|
1158
1189
|
m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
1159
|
-
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,
|
|
1190
|
+
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);
|
|
1160
1191
|
let l;
|
|
1161
1192
|
c && (l = c.baseOptions);
|
|
1162
1193
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1163
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
1194
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1164
1195
|
let h = l && l.headers ? l.headers : {};
|
|
1165
1196
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
1166
1197
|
url: V(s),
|
|
@@ -1178,11 +1209,11 @@ const Ft = {
|
|
|
1178
1209
|
*/
|
|
1179
1210
|
updateConnection: async (n, e, t, a = {}) => {
|
|
1180
1211
|
m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
|
|
1181
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1212
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1182
1213
|
let s;
|
|
1183
1214
|
c && (s = c.baseOptions);
|
|
1184
1215
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
1185
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1216
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1186
1217
|
let d = s && s.headers ? s.headers : {};
|
|
1187
1218
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1188
1219
|
url: V(o),
|
|
@@ -1191,7 +1222,7 @@ const Ft = {
|
|
|
1191
1222
|
}
|
|
1192
1223
|
};
|
|
1193
1224
|
}, y = function(c) {
|
|
1194
|
-
const n =
|
|
1225
|
+
const n = qe(c);
|
|
1195
1226
|
return {
|
|
1196
1227
|
/**
|
|
1197
1228
|
* Creates a new database connection in the specified environment.
|
|
@@ -1419,7 +1450,7 @@ const Ft = {
|
|
|
1419
1450
|
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1420
1451
|
}
|
|
1421
1452
|
};
|
|
1422
|
-
},
|
|
1453
|
+
}, Dt = function(c, n, e) {
|
|
1423
1454
|
const t = y(c);
|
|
1424
1455
|
return {
|
|
1425
1456
|
/**
|
|
@@ -1632,7 +1663,7 @@ const Ft = {
|
|
|
1632
1663
|
}
|
|
1633
1664
|
};
|
|
1634
1665
|
};
|
|
1635
|
-
class
|
|
1666
|
+
class Qe extends x {
|
|
1636
1667
|
/**
|
|
1637
1668
|
* Creates a new database connection in the specified environment.
|
|
1638
1669
|
* @summary Create a new database connection
|
|
@@ -1842,7 +1873,7 @@ class Be extends x {
|
|
|
1842
1873
|
return y(this.configuration).updateConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1843
1874
|
}
|
|
1844
1875
|
}
|
|
1845
|
-
const
|
|
1876
|
+
const ze = function(c) {
|
|
1846
1877
|
return {
|
|
1847
1878
|
/**
|
|
1848
1879
|
* 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.
|
|
@@ -1853,11 +1884,11 @@ const je = function(c) {
|
|
|
1853
1884
|
*/
|
|
1854
1885
|
testConnectionConfiguration: async (n, e = {}) => {
|
|
1855
1886
|
m("testConnectionConfiguration", "connection", n);
|
|
1856
|
-
const t = "/connections/test", a = new URL(t,
|
|
1887
|
+
const t = "/connections/test", a = new URL(t, P);
|
|
1857
1888
|
let r;
|
|
1858
1889
|
c && (r = c.baseOptions);
|
|
1859
1890
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
1860
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
1891
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
1861
1892
|
let i = r && r.headers ? r.headers : {};
|
|
1862
1893
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
1863
1894
|
url: V(a),
|
|
@@ -1865,8 +1896,8 @@ const je = function(c) {
|
|
|
1865
1896
|
};
|
|
1866
1897
|
}
|
|
1867
1898
|
};
|
|
1868
|
-
},
|
|
1869
|
-
const n =
|
|
1899
|
+
}, pe = function(c) {
|
|
1900
|
+
const n = ze(c);
|
|
1870
1901
|
return {
|
|
1871
1902
|
/**
|
|
1872
1903
|
* 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.
|
|
@@ -1880,8 +1911,8 @@ const je = function(c) {
|
|
|
1880
1911
|
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
1881
1912
|
}
|
|
1882
1913
|
};
|
|
1883
|
-
},
|
|
1884
|
-
const t =
|
|
1914
|
+
}, qt = function(c, n, e) {
|
|
1915
|
+
const t = pe(c);
|
|
1885
1916
|
return {
|
|
1886
1917
|
/**
|
|
1887
1918
|
* 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.
|
|
@@ -1895,7 +1926,7 @@ const je = function(c) {
|
|
|
1895
1926
|
}
|
|
1896
1927
|
};
|
|
1897
1928
|
};
|
|
1898
|
-
class
|
|
1929
|
+
class Qt extends x {
|
|
1899
1930
|
/**
|
|
1900
1931
|
* 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.
|
|
1901
1932
|
* @summary Test database connection configuration
|
|
@@ -1904,10 +1935,10 @@ class Dt extends x {
|
|
|
1904
1935
|
* @throws {RequiredError}
|
|
1905
1936
|
*/
|
|
1906
1937
|
testConnectionConfiguration(n, e) {
|
|
1907
|
-
return
|
|
1938
|
+
return pe(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
|
|
1908
1939
|
}
|
|
1909
1940
|
}
|
|
1910
|
-
const
|
|
1941
|
+
const Le = function(c) {
|
|
1911
1942
|
return {
|
|
1912
1943
|
/**
|
|
1913
1944
|
* **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/`.
|
|
@@ -1922,11 +1953,11 @@ const De = function(c) {
|
|
|
1922
1953
|
*/
|
|
1923
1954
|
getDashboard: async (n, e, t, a, r = {}) => {
|
|
1924
1955
|
m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
|
|
1925
|
-
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,
|
|
1956
|
+
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);
|
|
1926
1957
|
let l;
|
|
1927
1958
|
c && (l = c.baseOptions);
|
|
1928
1959
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
1929
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
1960
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
1930
1961
|
let h = l && l.headers ? l.headers : {};
|
|
1931
1962
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
1932
1963
|
url: V(s),
|
|
@@ -1945,11 +1976,11 @@ const De = function(c) {
|
|
|
1945
1976
|
*/
|
|
1946
1977
|
listDashboards: async (n, e, t, a = {}) => {
|
|
1947
1978
|
m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
|
|
1948
|
-
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1979
|
+
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1949
1980
|
let s;
|
|
1950
1981
|
c && (s = c.baseOptions);
|
|
1951
1982
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
1952
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
1983
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
1953
1984
|
let d = s && s.headers ? s.headers : {};
|
|
1954
1985
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
1955
1986
|
url: V(o),
|
|
@@ -1957,8 +1988,8 @@ const De = function(c) {
|
|
|
1957
1988
|
};
|
|
1958
1989
|
}
|
|
1959
1990
|
};
|
|
1960
|
-
},
|
|
1961
|
-
const n =
|
|
1991
|
+
}, K = function(c) {
|
|
1992
|
+
const n = Le(c);
|
|
1962
1993
|
return {
|
|
1963
1994
|
/**
|
|
1964
1995
|
* **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/`.
|
|
@@ -1990,8 +2021,8 @@ const De = function(c) {
|
|
|
1990
2021
|
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1991
2022
|
}
|
|
1992
2023
|
};
|
|
1993
|
-
},
|
|
1994
|
-
const t =
|
|
2024
|
+
}, zt = function(c, n, e) {
|
|
2025
|
+
const t = K(c);
|
|
1995
2026
|
return {
|
|
1996
2027
|
/**
|
|
1997
2028
|
* **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/`.
|
|
@@ -2022,7 +2053,7 @@ const De = function(c) {
|
|
|
2022
2053
|
}
|
|
2023
2054
|
};
|
|
2024
2055
|
};
|
|
2025
|
-
class
|
|
2056
|
+
class He extends x {
|
|
2026
2057
|
/**
|
|
2027
2058
|
* **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/`.
|
|
2028
2059
|
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
@@ -2035,7 +2066,7 @@ class qe extends x {
|
|
|
2035
2066
|
* @throws {RequiredError}
|
|
2036
2067
|
*/
|
|
2037
2068
|
getDashboard(n, e, t, a, r) {
|
|
2038
|
-
return
|
|
2069
|
+
return K(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2039
2070
|
}
|
|
2040
2071
|
/**
|
|
2041
2072
|
* **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.
|
|
@@ -2048,10 +2079,10 @@ class qe extends x {
|
|
|
2048
2079
|
* @throws {RequiredError}
|
|
2049
2080
|
*/
|
|
2050
2081
|
listDashboards(n, e, t, a) {
|
|
2051
|
-
return
|
|
2082
|
+
return K(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2052
2083
|
}
|
|
2053
2084
|
}
|
|
2054
|
-
const
|
|
2085
|
+
const _e = function(c) {
|
|
2055
2086
|
return {
|
|
2056
2087
|
/**
|
|
2057
2088
|
* 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.
|
|
@@ -2063,11 +2094,11 @@ const Qe = function(c) {
|
|
|
2063
2094
|
*/
|
|
2064
2095
|
listDataApps: async (n, e, t = {}) => {
|
|
2065
2096
|
m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
|
|
2066
|
-
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
2097
|
+
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
2067
2098
|
let o;
|
|
2068
2099
|
c && (o = c.baseOptions);
|
|
2069
2100
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
2070
|
-
l.Accept = "application/json",
|
|
2101
|
+
l.Accept = "application/json", v(r, i);
|
|
2071
2102
|
let p = o && o.headers ? o.headers : {};
|
|
2072
2103
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
2073
2104
|
url: V(r),
|
|
@@ -2075,8 +2106,8 @@ const Qe = function(c) {
|
|
|
2075
2106
|
};
|
|
2076
2107
|
}
|
|
2077
2108
|
};
|
|
2078
|
-
},
|
|
2079
|
-
const n =
|
|
2109
|
+
}, de = function(c) {
|
|
2110
|
+
const n = _e(c);
|
|
2080
2111
|
return {
|
|
2081
2112
|
/**
|
|
2082
2113
|
* 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.
|
|
@@ -2091,8 +2122,8 @@ const Qe = function(c) {
|
|
|
2091
2122
|
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
2092
2123
|
}
|
|
2093
2124
|
};
|
|
2094
|
-
},
|
|
2095
|
-
const t =
|
|
2125
|
+
}, Lt = function(c, n, e) {
|
|
2126
|
+
const t = de(c);
|
|
2096
2127
|
return {
|
|
2097
2128
|
/**
|
|
2098
2129
|
* 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.
|
|
@@ -2107,7 +2138,7 @@ const Qe = function(c) {
|
|
|
2107
2138
|
}
|
|
2108
2139
|
};
|
|
2109
2140
|
};
|
|
2110
|
-
class
|
|
2141
|
+
class Ge extends x {
|
|
2111
2142
|
/**
|
|
2112
2143
|
* 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.
|
|
2113
2144
|
* @summary List package data apps
|
|
@@ -2117,10 +2148,10 @@ class Le extends x {
|
|
|
2117
2148
|
* @throws {RequiredError}
|
|
2118
2149
|
*/
|
|
2119
2150
|
listDataApps(n, e, t) {
|
|
2120
|
-
return
|
|
2151
|
+
return de(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2121
2152
|
}
|
|
2122
2153
|
}
|
|
2123
|
-
const
|
|
2154
|
+
const We = function(c) {
|
|
2124
2155
|
return {
|
|
2125
2156
|
/**
|
|
2126
2157
|
* 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.
|
|
@@ -2133,11 +2164,11 @@ const ze = function(c) {
|
|
|
2133
2164
|
*/
|
|
2134
2165
|
listDatabases: async (n, e, t, a = {}) => {
|
|
2135
2166
|
m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
|
|
2136
|
-
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
2167
|
+
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2137
2168
|
let s;
|
|
2138
2169
|
c && (s = c.baseOptions);
|
|
2139
2170
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2140
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
2171
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
2141
2172
|
let d = s && s.headers ? s.headers : {};
|
|
2142
2173
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
2143
2174
|
url: V(o),
|
|
@@ -2145,8 +2176,8 @@ const ze = function(c) {
|
|
|
2145
2176
|
};
|
|
2146
2177
|
}
|
|
2147
2178
|
};
|
|
2148
|
-
},
|
|
2149
|
-
const n =
|
|
2179
|
+
}, me = function(c) {
|
|
2180
|
+
const n = We(c);
|
|
2150
2181
|
return {
|
|
2151
2182
|
/**
|
|
2152
2183
|
* 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.
|
|
@@ -2162,8 +2193,8 @@ const ze = function(c) {
|
|
|
2162
2193
|
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
2163
2194
|
}
|
|
2164
2195
|
};
|
|
2165
|
-
},
|
|
2166
|
-
const t =
|
|
2196
|
+
}, Ht = function(c, n, e) {
|
|
2197
|
+
const t = me(c);
|
|
2167
2198
|
return {
|
|
2168
2199
|
/**
|
|
2169
2200
|
* 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.
|
|
@@ -2179,7 +2210,7 @@ const ze = function(c) {
|
|
|
2179
2210
|
}
|
|
2180
2211
|
};
|
|
2181
2212
|
};
|
|
2182
|
-
class
|
|
2213
|
+
class $e extends x {
|
|
2183
2214
|
/**
|
|
2184
2215
|
* 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.
|
|
2185
2216
|
* @summary List embedded databases
|
|
@@ -2190,10 +2221,10 @@ class He extends x {
|
|
|
2190
2221
|
* @throws {RequiredError}
|
|
2191
2222
|
*/
|
|
2192
2223
|
listDatabases(n, e, t, a) {
|
|
2193
|
-
return
|
|
2224
|
+
return me(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2194
2225
|
}
|
|
2195
2226
|
}
|
|
2196
|
-
const
|
|
2227
|
+
const Ke = function(c) {
|
|
2197
2228
|
return {
|
|
2198
2229
|
/**
|
|
2199
2230
|
* 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.
|
|
@@ -2204,11 +2235,11 @@ const _e = function(c) {
|
|
|
2204
2235
|
*/
|
|
2205
2236
|
createEnvironment: async (n, e = {}) => {
|
|
2206
2237
|
m("createEnvironment", "environment", n);
|
|
2207
|
-
const t = "/environments", a = new URL(t,
|
|
2238
|
+
const t = "/environments", a = new URL(t, P);
|
|
2208
2239
|
let r;
|
|
2209
2240
|
c && (r = c.baseOptions);
|
|
2210
2241
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
2211
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
2242
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
2212
2243
|
let i = r && r.headers ? r.headers : {};
|
|
2213
2244
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
2214
2245
|
url: V(a),
|
|
@@ -2224,11 +2255,11 @@ const _e = function(c) {
|
|
|
2224
2255
|
*/
|
|
2225
2256
|
deleteEnvironment: async (n, e = {}) => {
|
|
2226
2257
|
m("deleteEnvironment", "environmentName", n);
|
|
2227
|
-
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
2258
|
+
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
|
|
2228
2259
|
let r;
|
|
2229
2260
|
c && (r = c.baseOptions);
|
|
2230
2261
|
const o = { method: "DELETE", ...r, ...e }, s = {}, l = {};
|
|
2231
|
-
s.Accept = "application/json",
|
|
2262
|
+
s.Accept = "application/json", v(a, l);
|
|
2232
2263
|
let i = r && r.headers ? r.headers : {};
|
|
2233
2264
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2234
2265
|
url: V(a),
|
|
@@ -2245,11 +2276,11 @@ const _e = function(c) {
|
|
|
2245
2276
|
*/
|
|
2246
2277
|
getEnvironment: async (n, e, t = {}) => {
|
|
2247
2278
|
m("getEnvironment", "environmentName", n);
|
|
2248
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
2279
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
|
|
2249
2280
|
let o;
|
|
2250
2281
|
c && (o = c.baseOptions);
|
|
2251
2282
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
2252
|
-
e !== void 0 && (i.reload = e), l.Accept = "application/json",
|
|
2283
|
+
e !== void 0 && (i.reload = e), l.Accept = "application/json", v(r, i);
|
|
2253
2284
|
let p = o && o.headers ? o.headers : {};
|
|
2254
2285
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
2255
2286
|
url: V(r),
|
|
@@ -2263,11 +2294,11 @@ const _e = function(c) {
|
|
|
2263
2294
|
* @throws {RequiredError}
|
|
2264
2295
|
*/
|
|
2265
2296
|
listEnvironments: async (n = {}) => {
|
|
2266
|
-
const e = "/environments", t = new URL(e,
|
|
2297
|
+
const e = "/environments", t = new URL(e, P);
|
|
2267
2298
|
let a;
|
|
2268
2299
|
c && (a = c.baseOptions);
|
|
2269
2300
|
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
2270
|
-
o.Accept = "application/json",
|
|
2301
|
+
o.Accept = "application/json", v(t, s);
|
|
2271
2302
|
let l = a && a.headers ? a.headers : {};
|
|
2272
2303
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
2273
2304
|
url: V(t),
|
|
@@ -2284,11 +2315,11 @@ const _e = function(c) {
|
|
|
2284
2315
|
*/
|
|
2285
2316
|
updateEnvironment: async (n, e, t = {}) => {
|
|
2286
2317
|
m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
|
|
2287
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
2318
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
|
|
2288
2319
|
let o;
|
|
2289
2320
|
c && (o = c.baseOptions);
|
|
2290
2321
|
const s = { method: "PATCH", ...o, ...t }, l = {}, i = {};
|
|
2291
|
-
l["Content-Type"] = "application/json", l.Accept = "application/json",
|
|
2322
|
+
l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
|
|
2292
2323
|
let p = o && o.headers ? o.headers : {};
|
|
2293
2324
|
return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
|
|
2294
2325
|
url: V(r),
|
|
@@ -2296,8 +2327,8 @@ const _e = function(c) {
|
|
|
2296
2327
|
};
|
|
2297
2328
|
}
|
|
2298
2329
|
};
|
|
2299
|
-
},
|
|
2300
|
-
const n =
|
|
2330
|
+
}, f = function(c) {
|
|
2331
|
+
const n = Ke(c);
|
|
2301
2332
|
return {
|
|
2302
2333
|
/**
|
|
2303
2334
|
* 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.
|
|
@@ -2356,8 +2387,8 @@ const _e = function(c) {
|
|
|
2356
2387
|
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
2357
2388
|
}
|
|
2358
2389
|
};
|
|
2359
|
-
},
|
|
2360
|
-
const t =
|
|
2390
|
+
}, _t = function(c, n, e) {
|
|
2391
|
+
const t = f(c);
|
|
2361
2392
|
return {
|
|
2362
2393
|
/**
|
|
2363
2394
|
* 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.
|
|
@@ -2412,7 +2443,7 @@ const _e = function(c) {
|
|
|
2412
2443
|
}
|
|
2413
2444
|
};
|
|
2414
2445
|
};
|
|
2415
|
-
class
|
|
2446
|
+
class Ye extends x {
|
|
2416
2447
|
/**
|
|
2417
2448
|
* 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.
|
|
2418
2449
|
* @summary Create a new environment
|
|
@@ -2421,7 +2452,7 @@ class Ge extends x {
|
|
|
2421
2452
|
* @throws {RequiredError}
|
|
2422
2453
|
*/
|
|
2423
2454
|
createEnvironment(n, e) {
|
|
2424
|
-
return
|
|
2455
|
+
return f(this.configuration).createEnvironment(n, e).then((t) => t(this.axios, this.basePath));
|
|
2425
2456
|
}
|
|
2426
2457
|
/**
|
|
2427
2458
|
* 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.
|
|
@@ -2431,7 +2462,7 @@ class Ge extends x {
|
|
|
2431
2462
|
* @throws {RequiredError}
|
|
2432
2463
|
*/
|
|
2433
2464
|
deleteEnvironment(n, e) {
|
|
2434
|
-
return
|
|
2465
|
+
return f(this.configuration).deleteEnvironment(n, e).then((t) => t(this.axios, this.basePath));
|
|
2435
2466
|
}
|
|
2436
2467
|
/**
|
|
2437
2468
|
* 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.
|
|
@@ -2442,7 +2473,7 @@ class Ge extends x {
|
|
|
2442
2473
|
* @throws {RequiredError}
|
|
2443
2474
|
*/
|
|
2444
2475
|
getEnvironment(n, e, t) {
|
|
2445
|
-
return
|
|
2476
|
+
return f(this.configuration).getEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2446
2477
|
}
|
|
2447
2478
|
/**
|
|
2448
2479
|
* 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`.
|
|
@@ -2451,7 +2482,7 @@ class Ge extends x {
|
|
|
2451
2482
|
* @throws {RequiredError}
|
|
2452
2483
|
*/
|
|
2453
2484
|
listEnvironments(n) {
|
|
2454
|
-
return
|
|
2485
|
+
return f(this.configuration).listEnvironments(n).then((e) => e(this.axios, this.basePath));
|
|
2455
2486
|
}
|
|
2456
2487
|
/**
|
|
2457
2488
|
* 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.
|
|
@@ -2462,10 +2493,10 @@ class Ge extends x {
|
|
|
2462
2493
|
* @throws {RequiredError}
|
|
2463
2494
|
*/
|
|
2464
2495
|
updateEnvironment(n, e, t) {
|
|
2465
|
-
return
|
|
2496
|
+
return f(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2466
2497
|
}
|
|
2467
2498
|
}
|
|
2468
|
-
const
|
|
2499
|
+
const Je = function(c) {
|
|
2469
2500
|
return {
|
|
2470
2501
|
/**
|
|
2471
2502
|
* 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.
|
|
@@ -2478,11 +2509,11 @@ const We = function(c) {
|
|
|
2478
2509
|
*/
|
|
2479
2510
|
createMaterialization: async (n, e, t, a = {}) => {
|
|
2480
2511
|
m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
|
|
2481
|
-
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
2512
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2482
2513
|
let s;
|
|
2483
2514
|
c && (s = c.baseOptions);
|
|
2484
2515
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
2485
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
2516
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
2486
2517
|
let d = s && s.headers ? s.headers : {};
|
|
2487
2518
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
2488
2519
|
url: V(o),
|
|
@@ -2501,11 +2532,11 @@ const We = function(c) {
|
|
|
2501
2532
|
*/
|
|
2502
2533
|
deleteMaterialization: async (n, e, t, a, r = {}) => {
|
|
2503
2534
|
m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
|
|
2504
|
-
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,
|
|
2535
|
+
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);
|
|
2505
2536
|
let l;
|
|
2506
2537
|
c && (l = c.baseOptions);
|
|
2507
2538
|
const i = { method: "DELETE", ...l, ...r }, p = {}, d = {};
|
|
2508
|
-
a !== void 0 && (d.dropTables = a), p.Accept = "application/json",
|
|
2539
|
+
a !== void 0 && (d.dropTables = a), p.Accept = "application/json", v(s, d);
|
|
2509
2540
|
let h = l && l.headers ? l.headers : {};
|
|
2510
2541
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2511
2542
|
url: V(s),
|
|
@@ -2523,11 +2554,11 @@ const We = function(c) {
|
|
|
2523
2554
|
*/
|
|
2524
2555
|
getMaterialization: async (n, e, t, a = {}) => {
|
|
2525
2556
|
m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
|
|
2526
|
-
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,
|
|
2557
|
+
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);
|
|
2527
2558
|
let s;
|
|
2528
2559
|
c && (s = c.baseOptions);
|
|
2529
2560
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2530
|
-
i.Accept = "application/json",
|
|
2561
|
+
i.Accept = "application/json", v(o, p);
|
|
2531
2562
|
let d = s && s.headers ? s.headers : {};
|
|
2532
2563
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
2533
2564
|
url: V(o),
|
|
@@ -2546,11 +2577,11 @@ const We = function(c) {
|
|
|
2546
2577
|
*/
|
|
2547
2578
|
listMaterializations: async (n, e, t, a, r = {}) => {
|
|
2548
2579
|
m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
|
|
2549
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
2580
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
2550
2581
|
let l;
|
|
2551
2582
|
c && (l = c.baseOptions);
|
|
2552
2583
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
2553
|
-
t !== void 0 && (d.limit = t), a !== void 0 && (d.offset = a), p.Accept = "application/json",
|
|
2584
|
+
t !== void 0 && (d.limit = t), a !== void 0 && (d.offset = a), p.Accept = "application/json", v(s, d);
|
|
2554
2585
|
let h = l && l.headers ? l.headers : {};
|
|
2555
2586
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2556
2587
|
url: V(s),
|
|
@@ -2569,11 +2600,11 @@ const We = function(c) {
|
|
|
2569
2600
|
*/
|
|
2570
2601
|
materializationAction: async (n, e, t, a, r = {}) => {
|
|
2571
2602
|
m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
|
|
2572
|
-
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,
|
|
2603
|
+
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);
|
|
2573
2604
|
let l;
|
|
2574
2605
|
c && (l = c.baseOptions);
|
|
2575
2606
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
2576
|
-
a !== void 0 && (d.action = a), p.Accept = "application/json",
|
|
2607
|
+
a !== void 0 && (d.action = a), p.Accept = "application/json", v(s, d);
|
|
2577
2608
|
let h = l && l.headers ? l.headers : {};
|
|
2578
2609
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2579
2610
|
url: V(s),
|
|
@@ -2581,8 +2612,8 @@ const We = function(c) {
|
|
|
2581
2612
|
};
|
|
2582
2613
|
}
|
|
2583
2614
|
};
|
|
2584
|
-
},
|
|
2585
|
-
const n =
|
|
2615
|
+
}, w = function(c) {
|
|
2616
|
+
const n = Je(c);
|
|
2586
2617
|
return {
|
|
2587
2618
|
/**
|
|
2588
2619
|
* 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.
|
|
@@ -2653,8 +2684,8 @@ const We = function(c) {
|
|
|
2653
2684
|
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
2654
2685
|
}
|
|
2655
2686
|
};
|
|
2656
|
-
},
|
|
2657
|
-
const t =
|
|
2687
|
+
}, Gt = function(c, n, e) {
|
|
2688
|
+
const t = w(c);
|
|
2658
2689
|
return {
|
|
2659
2690
|
/**
|
|
2660
2691
|
* 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.
|
|
@@ -2721,7 +2752,7 @@ const We = function(c) {
|
|
|
2721
2752
|
}
|
|
2722
2753
|
};
|
|
2723
2754
|
};
|
|
2724
|
-
class
|
|
2755
|
+
class Xe extends x {
|
|
2725
2756
|
/**
|
|
2726
2757
|
* 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.
|
|
2727
2758
|
* @summary Create a materialization
|
|
@@ -2732,7 +2763,7 @@ class $e extends x {
|
|
|
2732
2763
|
* @throws {RequiredError}
|
|
2733
2764
|
*/
|
|
2734
2765
|
createMaterialization(n, e, t, a) {
|
|
2735
|
-
return
|
|
2766
|
+
return w(this.configuration).createMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2736
2767
|
}
|
|
2737
2768
|
/**
|
|
2738
2769
|
* 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.
|
|
@@ -2745,7 +2776,7 @@ class $e extends x {
|
|
|
2745
2776
|
* @throws {RequiredError}
|
|
2746
2777
|
*/
|
|
2747
2778
|
deleteMaterialization(n, e, t, a, r) {
|
|
2748
|
-
return
|
|
2779
|
+
return w(this.configuration).deleteMaterialization(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2749
2780
|
}
|
|
2750
2781
|
/**
|
|
2751
2782
|
*
|
|
@@ -2757,7 +2788,7 @@ class $e extends x {
|
|
|
2757
2788
|
* @throws {RequiredError}
|
|
2758
2789
|
*/
|
|
2759
2790
|
getMaterialization(n, e, t, a) {
|
|
2760
|
-
return
|
|
2791
|
+
return w(this.configuration).getMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2761
2792
|
}
|
|
2762
2793
|
/**
|
|
2763
2794
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2770,7 +2801,7 @@ class $e extends x {
|
|
|
2770
2801
|
* @throws {RequiredError}
|
|
2771
2802
|
*/
|
|
2772
2803
|
listMaterializations(n, e, t, a, r) {
|
|
2773
|
-
return
|
|
2804
|
+
return w(this.configuration).listMaterializations(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2774
2805
|
}
|
|
2775
2806
|
/**
|
|
2776
2807
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2783,12 +2814,12 @@ class $e extends x {
|
|
|
2783
2814
|
* @throws {RequiredError}
|
|
2784
2815
|
*/
|
|
2785
2816
|
materializationAction(n, e, t, a, r) {
|
|
2786
|
-
return
|
|
2817
|
+
return w(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2787
2818
|
}
|
|
2788
2819
|
}
|
|
2789
|
-
const
|
|
2820
|
+
const Wt = {
|
|
2790
2821
|
Stop: "stop"
|
|
2791
|
-
},
|
|
2822
|
+
}, Ze = function(c) {
|
|
2792
2823
|
return {
|
|
2793
2824
|
/**
|
|
2794
2825
|
* 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. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
@@ -2802,11 +2833,11 @@ const _t = {
|
|
|
2802
2833
|
*/
|
|
2803
2834
|
compileModelSource: async (n, e, t, a, r = {}) => {
|
|
2804
2835
|
m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
|
|
2805
|
-
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,
|
|
2836
|
+
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);
|
|
2806
2837
|
let l;
|
|
2807
2838
|
c && (l = c.baseOptions);
|
|
2808
2839
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
2809
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
2840
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
2810
2841
|
let h = l && l.headers ? l.headers : {};
|
|
2811
2842
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
2812
2843
|
url: V(s),
|
|
@@ -2826,11 +2857,11 @@ const _t = {
|
|
|
2826
2857
|
*/
|
|
2827
2858
|
executeQueryModel: async (n, e, t, a, r, o = {}) => {
|
|
2828
2859
|
m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
|
|
2829
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s,
|
|
2860
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, P);
|
|
2830
2861
|
let i;
|
|
2831
2862
|
c && (i = c.baseOptions);
|
|
2832
2863
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
2833
|
-
r !== void 0 && (h.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
2864
|
+
r !== void 0 && (h.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
|
|
2834
2865
|
let O = i && i.headers ? i.headers : {};
|
|
2835
2866
|
return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
|
|
2836
2867
|
url: V(l),
|
|
@@ -2850,11 +2881,11 @@ const _t = {
|
|
|
2850
2881
|
*/
|
|
2851
2882
|
getModel: async (n, e, t, a, r, o = {}) => {
|
|
2852
2883
|
m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", t);
|
|
2853
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s,
|
|
2884
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, P);
|
|
2854
2885
|
let i;
|
|
2855
2886
|
c && (i = c.baseOptions);
|
|
2856
2887
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
2857
|
-
a !== void 0 && (h.versionId = a), r !== void 0 && (h.includeHiddenFilesAndSources = r), d.Accept = "application/json",
|
|
2888
|
+
a !== void 0 && (h.versionId = a), r !== void 0 && (h.includeHiddenFilesAndSources = r), d.Accept = "application/json", v(l, h);
|
|
2858
2889
|
let O = i && i.headers ? i.headers : {};
|
|
2859
2890
|
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
2860
2891
|
url: V(l),
|
|
@@ -2873,11 +2904,11 @@ const _t = {
|
|
|
2873
2904
|
*/
|
|
2874
2905
|
listModels: async (n, e, t, a, r = {}) => {
|
|
2875
2906
|
m("listModels", "environmentName", n), m("listModels", "packageName", e);
|
|
2876
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
2907
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
2877
2908
|
let l;
|
|
2878
2909
|
c && (l = c.baseOptions);
|
|
2879
2910
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
2880
|
-
t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json",
|
|
2911
|
+
t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
|
|
2881
2912
|
let h = l && l.headers ? l.headers : {};
|
|
2882
2913
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2883
2914
|
url: V(s),
|
|
@@ -2885,7 +2916,7 @@ const _t = {
|
|
|
2885
2916
|
};
|
|
2886
2917
|
},
|
|
2887
2918
|
/**
|
|
2888
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
2919
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
2889
2920
|
* @summary Write a report file into the package
|
|
2890
2921
|
* @param {string} environmentName Name of the environment
|
|
2891
2922
|
* @param {string} packageName Name of the package
|
|
@@ -2897,11 +2928,11 @@ const _t = {
|
|
|
2897
2928
|
*/
|
|
2898
2929
|
updateModelSource: async (n, e, t, a, r, o = {}) => {
|
|
2899
2930
|
m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", t), m("updateModelSource", "modelSourceWriteRequest", a);
|
|
2900
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s,
|
|
2931
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, P);
|
|
2901
2932
|
let i;
|
|
2902
2933
|
c && (i = c.baseOptions);
|
|
2903
2934
|
const p = { method: "PUT", ...i, ...o }, d = {}, h = {};
|
|
2904
|
-
r !== void 0 && (h.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
2935
|
+
r !== void 0 && (h.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
|
|
2905
2936
|
let O = i && i.headers ? i.headers : {};
|
|
2906
2937
|
return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
|
|
2907
2938
|
url: V(l),
|
|
@@ -2909,8 +2940,8 @@ const _t = {
|
|
|
2909
2940
|
};
|
|
2910
2941
|
}
|
|
2911
2942
|
};
|
|
2912
|
-
},
|
|
2913
|
-
const n =
|
|
2943
|
+
}, E = function(c) {
|
|
2944
|
+
const n = Ze(c);
|
|
2914
2945
|
return {
|
|
2915
2946
|
/**
|
|
2916
2947
|
* 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. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
@@ -2971,7 +3002,7 @@ const _t = {
|
|
|
2971
3002
|
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
2972
3003
|
},
|
|
2973
3004
|
/**
|
|
2974
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
3005
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
2975
3006
|
* @summary Write a report file into the package
|
|
2976
3007
|
* @param {string} environmentName Name of the environment
|
|
2977
3008
|
* @param {string} packageName Name of the package
|
|
@@ -2986,8 +3017,8 @@ const _t = {
|
|
|
2986
3017
|
return (d, h) => S(l, u, g, c)(d, p || h);
|
|
2987
3018
|
}
|
|
2988
3019
|
};
|
|
2989
|
-
},
|
|
2990
|
-
const t =
|
|
3020
|
+
}, $t = function(c, n, e) {
|
|
3021
|
+
const t = E(c);
|
|
2991
3022
|
return {
|
|
2992
3023
|
/**
|
|
2993
3024
|
* 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. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
@@ -3044,7 +3075,7 @@ const _t = {
|
|
|
3044
3075
|
return t.listModels(a, r, o, s, l).then((i) => i(e, n));
|
|
3045
3076
|
},
|
|
3046
3077
|
/**
|
|
3047
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
3078
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
3048
3079
|
* @summary Write a report file into the package
|
|
3049
3080
|
* @param {string} environmentName Name of the environment
|
|
3050
3081
|
* @param {string} packageName Name of the package
|
|
@@ -3059,7 +3090,7 @@ const _t = {
|
|
|
3059
3090
|
}
|
|
3060
3091
|
};
|
|
3061
3092
|
};
|
|
3062
|
-
class
|
|
3093
|
+
class ea extends x {
|
|
3063
3094
|
/**
|
|
3064
3095
|
* 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. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
3065
3096
|
* @summary Compile Malloy source code
|
|
@@ -3071,7 +3102,7 @@ class Ye extends x {
|
|
|
3071
3102
|
* @throws {RequiredError}
|
|
3072
3103
|
*/
|
|
3073
3104
|
compileModelSource(n, e, t, a, r) {
|
|
3074
|
-
return
|
|
3105
|
+
return E(this.configuration).compileModelSource(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
3075
3106
|
}
|
|
3076
3107
|
/**
|
|
3077
3108
|
* 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. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
|
|
@@ -3085,7 +3116,7 @@ class Ye extends x {
|
|
|
3085
3116
|
* @throws {RequiredError}
|
|
3086
3117
|
*/
|
|
3087
3118
|
executeQueryModel(n, e, t, a, r, o) {
|
|
3088
|
-
return
|
|
3119
|
+
return E(this.configuration).executeQueryModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
3089
3120
|
}
|
|
3090
3121
|
/**
|
|
3091
3122
|
* 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. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
|
|
@@ -3099,7 +3130,7 @@ class Ye extends x {
|
|
|
3099
3130
|
* @throws {RequiredError}
|
|
3100
3131
|
*/
|
|
3101
3132
|
getModel(n, e, t, a, r, o) {
|
|
3102
|
-
return
|
|
3133
|
+
return E(this.configuration).getModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
3103
3134
|
}
|
|
3104
3135
|
/**
|
|
3105
3136
|
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
@@ -3112,10 +3143,10 @@ class Ye extends x {
|
|
|
3112
3143
|
* @throws {RequiredError}
|
|
3113
3144
|
*/
|
|
3114
3145
|
listModels(n, e, t, a, r) {
|
|
3115
|
-
return
|
|
3146
|
+
return E(this.configuration).listModels(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
3116
3147
|
}
|
|
3117
3148
|
/**
|
|
3118
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
3149
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
3119
3150
|
* @summary Write a report file into the package
|
|
3120
3151
|
* @param {string} environmentName Name of the environment
|
|
3121
3152
|
* @param {string} packageName Name of the package
|
|
@@ -3126,10 +3157,10 @@ class Ye extends x {
|
|
|
3126
3157
|
* @throws {RequiredError}
|
|
3127
3158
|
*/
|
|
3128
3159
|
updateModelSource(n, e, t, a, r, o) {
|
|
3129
|
-
return
|
|
3160
|
+
return E(this.configuration).updateModelSource(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
3130
3161
|
}
|
|
3131
3162
|
}
|
|
3132
|
-
const
|
|
3163
|
+
const aa = function(c) {
|
|
3133
3164
|
return {
|
|
3134
3165
|
/**
|
|
3135
3166
|
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report 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. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
|
|
@@ -3148,11 +3179,11 @@ const Je = function(c) {
|
|
|
3148
3179
|
*/
|
|
3149
3180
|
executeNotebookCell: async (n, e, t, a, r, o, s, l, i = {}) => {
|
|
3150
3181
|
m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
|
|
3151
|
-
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,
|
|
3182
|
+
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, P);
|
|
3152
3183
|
let h;
|
|
3153
3184
|
c && (h = c.baseOptions);
|
|
3154
3185
|
const O = { method: "GET", ...h, ...i }, k = {}, C = {};
|
|
3155
|
-
r !== void 0 && (C.versionId = r), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), l !== void 0 && (C.givens = l), k.Accept = "application/json",
|
|
3186
|
+
r !== void 0 && (C.versionId = r), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), l !== void 0 && (C.givens = l), k.Accept = "application/json", v(d, C);
|
|
3156
3187
|
let R = h && h.headers ? h.headers : {};
|
|
3157
3188
|
return O.headers = { ...k, ...R, ...i.headers }, {
|
|
3158
3189
|
url: V(d),
|
|
@@ -3172,11 +3203,11 @@ const Je = function(c) {
|
|
|
3172
3203
|
*/
|
|
3173
3204
|
getNotebook: async (n, e, t, a, r = {}) => {
|
|
3174
3205
|
m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
|
|
3175
|
-
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,
|
|
3206
|
+
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);
|
|
3176
3207
|
let l;
|
|
3177
3208
|
c && (l = c.baseOptions);
|
|
3178
3209
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3179
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
3210
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
3180
3211
|
let h = l && l.headers ? l.headers : {};
|
|
3181
3212
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3182
3213
|
url: V(s),
|
|
@@ -3195,11 +3226,11 @@ const Je = function(c) {
|
|
|
3195
3226
|
*/
|
|
3196
3227
|
listNotebooks: async (n, e, t, a = {}) => {
|
|
3197
3228
|
m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
|
|
3198
|
-
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
3229
|
+
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
3199
3230
|
let s;
|
|
3200
3231
|
c && (s = c.baseOptions);
|
|
3201
3232
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3202
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
3233
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3203
3234
|
let d = s && s.headers ? s.headers : {};
|
|
3204
3235
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
3205
3236
|
url: V(o),
|
|
@@ -3208,7 +3239,7 @@ const Je = function(c) {
|
|
|
3208
3239
|
}
|
|
3209
3240
|
};
|
|
3210
3241
|
}, L = function(c) {
|
|
3211
|
-
const n =
|
|
3242
|
+
const n = aa(c);
|
|
3212
3243
|
return {
|
|
3213
3244
|
/**
|
|
3214
3245
|
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report 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. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
|
|
@@ -3259,7 +3290,7 @@ const Je = function(c) {
|
|
|
3259
3290
|
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
3260
3291
|
}
|
|
3261
3292
|
};
|
|
3262
|
-
},
|
|
3293
|
+
}, Kt = function(c, n, e) {
|
|
3263
3294
|
const t = L(c);
|
|
3264
3295
|
return {
|
|
3265
3296
|
/**
|
|
@@ -3309,7 +3340,7 @@ const Je = function(c) {
|
|
|
3309
3340
|
}
|
|
3310
3341
|
};
|
|
3311
3342
|
};
|
|
3312
|
-
class
|
|
3343
|
+
class ta extends x {
|
|
3313
3344
|
/**
|
|
3314
3345
|
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report 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. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
|
|
3315
3346
|
* @summary Execute a specific notebook cell (deprecated)
|
|
@@ -3356,10 +3387,10 @@ class Xe extends x {
|
|
|
3356
3387
|
return L(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
3357
3388
|
}
|
|
3358
3389
|
}
|
|
3359
|
-
const
|
|
3390
|
+
const Yt = {
|
|
3360
3391
|
True: "true",
|
|
3361
3392
|
False: "false"
|
|
3362
|
-
},
|
|
3393
|
+
}, na = function(c) {
|
|
3363
3394
|
return {
|
|
3364
3395
|
/**
|
|
3365
3396
|
* 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.
|
|
@@ -3371,11 +3402,11 @@ const $t = {
|
|
|
3371
3402
|
*/
|
|
3372
3403
|
createPackage: async (n, e, t = {}) => {
|
|
3373
3404
|
m("createPackage", "environmentName", n), m("createPackage", "_package", e);
|
|
3374
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
3405
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
|
|
3375
3406
|
let o;
|
|
3376
3407
|
c && (o = c.baseOptions);
|
|
3377
3408
|
const s = { method: "POST", ...o, ...t }, l = {}, i = {};
|
|
3378
|
-
l["Content-Type"] = "application/json", l.Accept = "application/json",
|
|
3409
|
+
l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
|
|
3379
3410
|
let p = o && o.headers ? o.headers : {};
|
|
3380
3411
|
return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
|
|
3381
3412
|
url: V(r),
|
|
@@ -3392,11 +3423,11 @@ const $t = {
|
|
|
3392
3423
|
*/
|
|
3393
3424
|
deletePackage: async (n, e, t = {}) => {
|
|
3394
3425
|
m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
|
|
3395
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
3426
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
3396
3427
|
let o;
|
|
3397
3428
|
c && (o = c.baseOptions);
|
|
3398
3429
|
const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
|
|
3399
|
-
l.Accept = "application/json",
|
|
3430
|
+
l.Accept = "application/json", v(r, i);
|
|
3400
3431
|
let p = o && o.headers ? o.headers : {};
|
|
3401
3432
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
3402
3433
|
url: V(r),
|
|
@@ -3415,11 +3446,11 @@ const $t = {
|
|
|
3415
3446
|
*/
|
|
3416
3447
|
getPackage: async (n, e, t, a, r = {}) => {
|
|
3417
3448
|
m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
|
|
3418
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
3449
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
3419
3450
|
let l;
|
|
3420
3451
|
c && (l = c.baseOptions);
|
|
3421
3452
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3422
|
-
t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json",
|
|
3453
|
+
t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
|
|
3423
3454
|
let h = l && l.headers ? l.headers : {};
|
|
3424
3455
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3425
3456
|
url: V(s),
|
|
@@ -3435,11 +3466,11 @@ const $t = {
|
|
|
3435
3466
|
*/
|
|
3436
3467
|
listPackages: async (n, e = {}) => {
|
|
3437
3468
|
m("listPackages", "environmentName", n);
|
|
3438
|
-
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
3469
|
+
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
|
|
3439
3470
|
let r;
|
|
3440
3471
|
c && (r = c.baseOptions);
|
|
3441
3472
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
3442
|
-
s.Accept = "application/json",
|
|
3473
|
+
s.Accept = "application/json", v(a, l);
|
|
3443
3474
|
let i = r && r.headers ? r.headers : {};
|
|
3444
3475
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3445
3476
|
url: V(a),
|
|
@@ -3457,11 +3488,11 @@ const $t = {
|
|
|
3457
3488
|
*/
|
|
3458
3489
|
updatePackage: async (n, e, t, a = {}) => {
|
|
3459
3490
|
m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
|
|
3460
|
-
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
3491
|
+
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
3461
3492
|
let s;
|
|
3462
3493
|
c && (s = c.baseOptions);
|
|
3463
3494
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
3464
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
3495
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
3465
3496
|
let d = s && s.headers ? s.headers : {};
|
|
3466
3497
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
3467
3498
|
url: V(o),
|
|
@@ -3470,7 +3501,7 @@ const $t = {
|
|
|
3470
3501
|
}
|
|
3471
3502
|
};
|
|
3472
3503
|
}, M = function(c) {
|
|
3473
|
-
const n =
|
|
3504
|
+
const n = na(c);
|
|
3474
3505
|
return {
|
|
3475
3506
|
/**
|
|
3476
3507
|
* 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.
|
|
@@ -3535,7 +3566,7 @@ const $t = {
|
|
|
3535
3566
|
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
3536
3567
|
}
|
|
3537
3568
|
};
|
|
3538
|
-
},
|
|
3569
|
+
}, Jt = function(c, n, e) {
|
|
3539
3570
|
const t = M(c);
|
|
3540
3571
|
return {
|
|
3541
3572
|
/**
|
|
@@ -3597,7 +3628,7 @@ const $t = {
|
|
|
3597
3628
|
}
|
|
3598
3629
|
};
|
|
3599
3630
|
};
|
|
3600
|
-
class
|
|
3631
|
+
class ra extends x {
|
|
3601
3632
|
/**
|
|
3602
3633
|
* 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.
|
|
3603
3634
|
* @summary Create a new package
|
|
@@ -3656,7 +3687,7 @@ class ea extends x {
|
|
|
3656
3687
|
return M(this.configuration).updatePackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
3657
3688
|
}
|
|
3658
3689
|
}
|
|
3659
|
-
const
|
|
3690
|
+
const oa = function(c) {
|
|
3660
3691
|
return {
|
|
3661
3692
|
/**
|
|
3662
3693
|
* 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.
|
|
@@ -3665,11 +3696,11 @@ const aa = function(c) {
|
|
|
3665
3696
|
* @throws {RequiredError}
|
|
3666
3697
|
*/
|
|
3667
3698
|
deleteTheme: async (n = {}) => {
|
|
3668
|
-
const e = "/theme", t = new URL(e,
|
|
3699
|
+
const e = "/theme", t = new URL(e, P);
|
|
3669
3700
|
let a;
|
|
3670
3701
|
c && (a = c.baseOptions);
|
|
3671
3702
|
const r = { method: "DELETE", ...a, ...n }, o = {}, s = {};
|
|
3672
|
-
o.Accept = "application/json",
|
|
3703
|
+
o.Accept = "application/json", v(t, s);
|
|
3673
3704
|
let l = a && a.headers ? a.headers : {};
|
|
3674
3705
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
3675
3706
|
url: V(t),
|
|
@@ -3684,11 +3715,11 @@ const aa = function(c) {
|
|
|
3684
3715
|
* @throws {RequiredError}
|
|
3685
3716
|
*/
|
|
3686
3717
|
getStatus: async (n, e = {}) => {
|
|
3687
|
-
const t = "/status", a = new URL(t,
|
|
3718
|
+
const t = "/status", a = new URL(t, P);
|
|
3688
3719
|
let r;
|
|
3689
3720
|
c && (r = c.baseOptions);
|
|
3690
3721
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
3691
|
-
n !== void 0 && (l.includeLoading = n), s.Accept = "application/json",
|
|
3722
|
+
n !== void 0 && (l.includeLoading = n), s.Accept = "application/json", v(a, l);
|
|
3692
3723
|
let i = r && r.headers ? r.headers : {};
|
|
3693
3724
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3694
3725
|
url: V(a),
|
|
@@ -3702,11 +3733,11 @@ const aa = function(c) {
|
|
|
3702
3733
|
* @throws {RequiredError}
|
|
3703
3734
|
*/
|
|
3704
3735
|
getTheme: async (n = {}) => {
|
|
3705
|
-
const e = "/theme", t = new URL(e,
|
|
3736
|
+
const e = "/theme", t = new URL(e, P);
|
|
3706
3737
|
let a;
|
|
3707
3738
|
c && (a = c.baseOptions);
|
|
3708
3739
|
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
3709
|
-
o.Accept = "application/json",
|
|
3740
|
+
o.Accept = "application/json", v(t, s);
|
|
3710
3741
|
let l = a && a.headers ? a.headers : {};
|
|
3711
3742
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
3712
3743
|
url: V(t),
|
|
@@ -3722,11 +3753,11 @@ const aa = function(c) {
|
|
|
3722
3753
|
*/
|
|
3723
3754
|
updateTheme: async (n, e = {}) => {
|
|
3724
3755
|
m("updateTheme", "theme", n);
|
|
3725
|
-
const t = "/theme", a = new URL(t,
|
|
3756
|
+
const t = "/theme", a = new URL(t, P);
|
|
3726
3757
|
let r;
|
|
3727
3758
|
c && (r = c.baseOptions);
|
|
3728
3759
|
const o = { method: "PUT", ...r, ...e }, s = {}, l = {};
|
|
3729
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
3760
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
3730
3761
|
let i = r && r.headers ? r.headers : {};
|
|
3731
3762
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
3732
3763
|
url: V(a),
|
|
@@ -3734,8 +3765,8 @@ const aa = function(c) {
|
|
|
3734
3765
|
};
|
|
3735
3766
|
}
|
|
3736
3767
|
};
|
|
3737
|
-
},
|
|
3738
|
-
const n =
|
|
3768
|
+
}, j = function(c) {
|
|
3769
|
+
const n = oa(c);
|
|
3739
3770
|
return {
|
|
3740
3771
|
/**
|
|
3741
3772
|
* 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.
|
|
@@ -3780,8 +3811,8 @@ const aa = function(c) {
|
|
|
3780
3811
|
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
3781
3812
|
}
|
|
3782
3813
|
};
|
|
3783
|
-
},
|
|
3784
|
-
const t =
|
|
3814
|
+
}, Xt = function(c, n, e) {
|
|
3815
|
+
const t = j(c);
|
|
3785
3816
|
return {
|
|
3786
3817
|
/**
|
|
3787
3818
|
* 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.
|
|
@@ -3823,7 +3854,7 @@ const aa = function(c) {
|
|
|
3823
3854
|
}
|
|
3824
3855
|
};
|
|
3825
3856
|
};
|
|
3826
|
-
class
|
|
3857
|
+
class sa extends x {
|
|
3827
3858
|
/**
|
|
3828
3859
|
* 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.
|
|
3829
3860
|
* @summary Reset the instance theme to the boot seed or default
|
|
@@ -3831,7 +3862,7 @@ class ta extends x {
|
|
|
3831
3862
|
* @throws {RequiredError}
|
|
3832
3863
|
*/
|
|
3833
3864
|
deleteTheme(n) {
|
|
3834
|
-
return
|
|
3865
|
+
return j(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3835
3866
|
}
|
|
3836
3867
|
/**
|
|
3837
3868
|
* 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.
|
|
@@ -3841,7 +3872,7 @@ class ta extends x {
|
|
|
3841
3872
|
* @throws {RequiredError}
|
|
3842
3873
|
*/
|
|
3843
3874
|
getStatus(n, e) {
|
|
3844
|
-
return
|
|
3875
|
+
return j(this.configuration).getStatus(n, e).then((t) => t(this.axios, this.basePath));
|
|
3845
3876
|
}
|
|
3846
3877
|
/**
|
|
3847
3878
|
* 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.
|
|
@@ -3850,7 +3881,7 @@ class ta extends x {
|
|
|
3850
3881
|
* @throws {RequiredError}
|
|
3851
3882
|
*/
|
|
3852
3883
|
getTheme(n) {
|
|
3853
|
-
return
|
|
3884
|
+
return j(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3854
3885
|
}
|
|
3855
3886
|
/**
|
|
3856
3887
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3860,13 +3891,13 @@ class ta extends x {
|
|
|
3860
3891
|
* @throws {RequiredError}
|
|
3861
3892
|
*/
|
|
3862
3893
|
updateTheme(n, e) {
|
|
3863
|
-
return
|
|
3894
|
+
return j(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
|
|
3864
3895
|
}
|
|
3865
3896
|
}
|
|
3866
|
-
const
|
|
3897
|
+
const ca = function(c) {
|
|
3867
3898
|
return {
|
|
3868
3899
|
/**
|
|
3869
|
-
* 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 report
|
|
3900
|
+
* 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.
|
|
3870
3901
|
* @summary Get a report manifest
|
|
3871
3902
|
* @param {string} environmentName Name of the environment
|
|
3872
3903
|
* @param {string} packageName Name of the package
|
|
@@ -3877,11 +3908,11 @@ const na = function(c) {
|
|
|
3877
3908
|
*/
|
|
3878
3909
|
getReport: async (n, e, t, a, r = {}) => {
|
|
3879
3910
|
m("getReport", "environmentName", n), m("getReport", "packageName", e), m("getReport", "path", t);
|
|
3880
|
-
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
3911
|
+
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
3881
3912
|
let l;
|
|
3882
3913
|
c && (l = c.baseOptions);
|
|
3883
3914
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3884
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
3915
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
3885
3916
|
let h = l && l.headers ? l.headers : {};
|
|
3886
3917
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3887
3918
|
url: V(s),
|
|
@@ -3889,7 +3920,7 @@ const na = function(c) {
|
|
|
3889
3920
|
};
|
|
3890
3921
|
},
|
|
3891
3922
|
/**
|
|
3892
|
-
* 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
|
|
3923
|
+
* 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.
|
|
3893
3924
|
* @summary List package reports
|
|
3894
3925
|
* @param {string} environmentName Name of the environment
|
|
3895
3926
|
* @param {string} packageName Name of the package
|
|
@@ -3899,11 +3930,11 @@ const na = function(c) {
|
|
|
3899
3930
|
*/
|
|
3900
3931
|
listReports: async (n, e, t, a = {}) => {
|
|
3901
3932
|
m("listReports", "environmentName", n), m("listReports", "packageName", e);
|
|
3902
|
-
const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
3933
|
+
const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
3903
3934
|
let s;
|
|
3904
3935
|
c && (s = c.baseOptions);
|
|
3905
3936
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3906
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
3937
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3907
3938
|
let d = s && s.headers ? s.headers : {};
|
|
3908
3939
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
3909
3940
|
url: V(o),
|
|
@@ -3911,11 +3942,11 @@ const na = function(c) {
|
|
|
3911
3942
|
};
|
|
3912
3943
|
}
|
|
3913
3944
|
};
|
|
3914
|
-
},
|
|
3915
|
-
const n =
|
|
3945
|
+
}, Y = function(c) {
|
|
3946
|
+
const n = ca(c);
|
|
3916
3947
|
return {
|
|
3917
3948
|
/**
|
|
3918
|
-
* 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 report
|
|
3949
|
+
* 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.
|
|
3919
3950
|
* @summary Get a report manifest
|
|
3920
3951
|
* @param {string} environmentName Name of the environment
|
|
3921
3952
|
* @param {string} packageName Name of the package
|
|
@@ -3929,7 +3960,7 @@ const na = function(c) {
|
|
|
3929
3960
|
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
3930
3961
|
},
|
|
3931
3962
|
/**
|
|
3932
|
-
* 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
|
|
3963
|
+
* 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.
|
|
3933
3964
|
* @summary List package reports
|
|
3934
3965
|
* @param {string} environmentName Name of the environment
|
|
3935
3966
|
* @param {string} packageName Name of the package
|
|
@@ -3942,11 +3973,11 @@ const na = function(c) {
|
|
|
3942
3973
|
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
3943
3974
|
}
|
|
3944
3975
|
};
|
|
3945
|
-
},
|
|
3946
|
-
const t =
|
|
3976
|
+
}, Zt = function(c, n, e) {
|
|
3977
|
+
const t = Y(c);
|
|
3947
3978
|
return {
|
|
3948
3979
|
/**
|
|
3949
|
-
* 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 report
|
|
3980
|
+
* 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.
|
|
3950
3981
|
* @summary Get a report manifest
|
|
3951
3982
|
* @param {string} environmentName Name of the environment
|
|
3952
3983
|
* @param {string} packageName Name of the package
|
|
@@ -3959,7 +3990,7 @@ const na = function(c) {
|
|
|
3959
3990
|
return t.getReport(a, r, o, s, l).then((i) => i(e, n));
|
|
3960
3991
|
},
|
|
3961
3992
|
/**
|
|
3962
|
-
* 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
|
|
3993
|
+
* 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.
|
|
3963
3994
|
* @summary List package reports
|
|
3964
3995
|
* @param {string} environmentName Name of the environment
|
|
3965
3996
|
* @param {string} packageName Name of the package
|
|
@@ -3972,9 +4003,9 @@ const na = function(c) {
|
|
|
3972
4003
|
}
|
|
3973
4004
|
};
|
|
3974
4005
|
};
|
|
3975
|
-
class
|
|
4006
|
+
class la extends x {
|
|
3976
4007
|
/**
|
|
3977
|
-
* 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 report
|
|
4008
|
+
* 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.
|
|
3978
4009
|
* @summary Get a report manifest
|
|
3979
4010
|
* @param {string} environmentName Name of the environment
|
|
3980
4011
|
* @param {string} packageName Name of the package
|
|
@@ -3984,10 +4015,10 @@ class ra extends x {
|
|
|
3984
4015
|
* @throws {RequiredError}
|
|
3985
4016
|
*/
|
|
3986
4017
|
getReport(n, e, t, a, r) {
|
|
3987
|
-
return
|
|
4018
|
+
return Y(this.configuration).getReport(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
3988
4019
|
}
|
|
3989
4020
|
/**
|
|
3990
|
-
* 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
|
|
4021
|
+
* 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.
|
|
3991
4022
|
* @summary List package reports
|
|
3992
4023
|
* @param {string} environmentName Name of the environment
|
|
3993
4024
|
* @param {string} packageName Name of the package
|
|
@@ -3996,10 +4027,10 @@ class ra extends x {
|
|
|
3996
4027
|
* @throws {RequiredError}
|
|
3997
4028
|
*/
|
|
3998
4029
|
listReports(n, e, t, a) {
|
|
3999
|
-
return
|
|
4030
|
+
return Y(this.configuration).listReports(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4000
4031
|
}
|
|
4001
4032
|
}
|
|
4002
|
-
const
|
|
4033
|
+
const ia = function(c) {
|
|
4003
4034
|
return {
|
|
4004
4035
|
/**
|
|
4005
4036
|
* 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.
|
|
@@ -4012,11 +4043,11 @@ const oa = function(c) {
|
|
|
4012
4043
|
*/
|
|
4013
4044
|
getSkill: async (n, e, t, a = {}) => {
|
|
4014
4045
|
m("getSkill", "environmentName", n), m("getSkill", "packageName", e), m("getSkill", "skillName", t);
|
|
4015
|
-
const r = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(r,
|
|
4046
|
+
const r = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(r, P);
|
|
4016
4047
|
let s;
|
|
4017
4048
|
c && (s = c.baseOptions);
|
|
4018
4049
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4019
|
-
i.Accept = "application/json",
|
|
4050
|
+
i.Accept = "application/json", v(o, p);
|
|
4020
4051
|
let d = s && s.headers ? s.headers : {};
|
|
4021
4052
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
4022
4053
|
url: V(o),
|
|
@@ -4033,11 +4064,11 @@ const oa = function(c) {
|
|
|
4033
4064
|
*/
|
|
4034
4065
|
listSkills: async (n, e, t = {}) => {
|
|
4035
4066
|
m("listSkills", "environmentName", n), m("listSkills", "packageName", e);
|
|
4036
|
-
const a = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
4067
|
+
const a = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
4037
4068
|
let o;
|
|
4038
4069
|
c && (o = c.baseOptions);
|
|
4039
4070
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
4040
|
-
l.Accept = "application/json",
|
|
4071
|
+
l.Accept = "application/json", v(r, i);
|
|
4041
4072
|
let p = o && o.headers ? o.headers : {};
|
|
4042
4073
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
4043
4074
|
url: V(r),
|
|
@@ -4045,8 +4076,8 @@ const oa = function(c) {
|
|
|
4045
4076
|
};
|
|
4046
4077
|
}
|
|
4047
4078
|
};
|
|
4048
|
-
},
|
|
4049
|
-
const n =
|
|
4079
|
+
}, J = function(c) {
|
|
4080
|
+
const n = ia(c);
|
|
4050
4081
|
return {
|
|
4051
4082
|
/**
|
|
4052
4083
|
* 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.
|
|
@@ -4074,8 +4105,8 @@ const oa = function(c) {
|
|
|
4074
4105
|
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
4075
4106
|
}
|
|
4076
4107
|
};
|
|
4077
|
-
},
|
|
4078
|
-
const t =
|
|
4108
|
+
}, en = function(c, n, e) {
|
|
4109
|
+
const t = J(c);
|
|
4079
4110
|
return {
|
|
4080
4111
|
/**
|
|
4081
4112
|
* 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.
|
|
@@ -4102,7 +4133,7 @@ const oa = function(c) {
|
|
|
4102
4133
|
}
|
|
4103
4134
|
};
|
|
4104
4135
|
};
|
|
4105
|
-
class
|
|
4136
|
+
class an extends x {
|
|
4106
4137
|
/**
|
|
4107
4138
|
* 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.
|
|
4108
4139
|
* @summary Get one agent skill, with its body
|
|
@@ -4113,7 +4144,7 @@ class Zt extends x {
|
|
|
4113
4144
|
* @throws {RequiredError}
|
|
4114
4145
|
*/
|
|
4115
4146
|
getSkill(n, e, t, a) {
|
|
4116
|
-
return
|
|
4147
|
+
return J(this.configuration).getSkill(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4117
4148
|
}
|
|
4118
4149
|
/**
|
|
4119
4150
|
* 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.
|
|
@@ -4124,10 +4155,10 @@ class Zt extends x {
|
|
|
4124
4155
|
* @throws {RequiredError}
|
|
4125
4156
|
*/
|
|
4126
4157
|
listSkills(n, e, t) {
|
|
4127
|
-
return
|
|
4158
|
+
return J(this.configuration).listSkills(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
4128
4159
|
}
|
|
4129
4160
|
}
|
|
4130
|
-
const
|
|
4161
|
+
const pa = function(c) {
|
|
4131
4162
|
return {
|
|
4132
4163
|
/**
|
|
4133
4164
|
* 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.
|
|
@@ -4136,11 +4167,11 @@ const sa = function(c) {
|
|
|
4136
4167
|
* @throws {RequiredError}
|
|
4137
4168
|
*/
|
|
4138
4169
|
getWatchStatus: async (n = {}) => {
|
|
4139
|
-
const e = "/watch-mode/status", t = new URL(e,
|
|
4170
|
+
const e = "/watch-mode/status", t = new URL(e, P);
|
|
4140
4171
|
let a;
|
|
4141
4172
|
c && (a = c.baseOptions);
|
|
4142
4173
|
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
4143
|
-
o.Accept = "application/json",
|
|
4174
|
+
o.Accept = "application/json", v(t, s);
|
|
4144
4175
|
let l = a && a.headers ? a.headers : {};
|
|
4145
4176
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
4146
4177
|
url: V(t),
|
|
@@ -4156,11 +4187,11 @@ const sa = function(c) {
|
|
|
4156
4187
|
*/
|
|
4157
4188
|
startWatching: async (n, e = {}) => {
|
|
4158
4189
|
m("startWatching", "startWatchRequest", n);
|
|
4159
|
-
const t = "/watch-mode/start", a = new URL(t,
|
|
4190
|
+
const t = "/watch-mode/start", a = new URL(t, P);
|
|
4160
4191
|
let r;
|
|
4161
4192
|
c && (r = c.baseOptions);
|
|
4162
4193
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
4163
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
4194
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
4164
4195
|
let i = r && r.headers ? r.headers : {};
|
|
4165
4196
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
4166
4197
|
url: V(a),
|
|
@@ -4174,11 +4205,11 @@ const sa = function(c) {
|
|
|
4174
4205
|
* @throws {RequiredError}
|
|
4175
4206
|
*/
|
|
4176
4207
|
stopWatching: async (n = {}) => {
|
|
4177
|
-
const e = "/watch-mode/stop", t = new URL(e,
|
|
4208
|
+
const e = "/watch-mode/stop", t = new URL(e, P);
|
|
4178
4209
|
let a;
|
|
4179
4210
|
c && (a = c.baseOptions);
|
|
4180
4211
|
const r = { method: "POST", ...a, ...n }, o = {}, s = {};
|
|
4181
|
-
o.Accept = "application/json",
|
|
4212
|
+
o.Accept = "application/json", v(t, s);
|
|
4182
4213
|
let l = a && a.headers ? a.headers : {};
|
|
4183
4214
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
4184
4215
|
url: V(t),
|
|
@@ -4195,11 +4226,11 @@ const sa = function(c) {
|
|
|
4195
4226
|
*/
|
|
4196
4227
|
streamPackageEvents: async (n, e, t = {}) => {
|
|
4197
4228
|
m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
|
|
4198
|
-
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
4229
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
4199
4230
|
let o;
|
|
4200
4231
|
c && (o = c.baseOptions);
|
|
4201
4232
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
4202
|
-
l.Accept = "text/event-stream,application/json",
|
|
4233
|
+
l.Accept = "text/event-stream,application/json", v(r, i);
|
|
4203
4234
|
let p = o && o.headers ? o.headers : {};
|
|
4204
4235
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
4205
4236
|
url: V(r),
|
|
@@ -4207,8 +4238,8 @@ const sa = function(c) {
|
|
|
4207
4238
|
};
|
|
4208
4239
|
}
|
|
4209
4240
|
};
|
|
4210
|
-
},
|
|
4211
|
-
const n =
|
|
4241
|
+
}, D = function(c) {
|
|
4242
|
+
const n = pa(c);
|
|
4212
4243
|
return {
|
|
4213
4244
|
/**
|
|
4214
4245
|
* 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.
|
|
@@ -4254,8 +4285,8 @@ const sa = function(c) {
|
|
|
4254
4285
|
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
4255
4286
|
}
|
|
4256
4287
|
};
|
|
4257
|
-
},
|
|
4258
|
-
const t =
|
|
4288
|
+
}, tn = function(c, n, e) {
|
|
4289
|
+
const t = D(c);
|
|
4259
4290
|
return {
|
|
4260
4291
|
/**
|
|
4261
4292
|
* 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.
|
|
@@ -4298,7 +4329,7 @@ const sa = function(c) {
|
|
|
4298
4329
|
}
|
|
4299
4330
|
};
|
|
4300
4331
|
};
|
|
4301
|
-
class
|
|
4332
|
+
class da extends x {
|
|
4302
4333
|
/**
|
|
4303
4334
|
* 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.
|
|
4304
4335
|
* @summary Get watch mode status
|
|
@@ -4306,7 +4337,7 @@ class ca extends x {
|
|
|
4306
4337
|
* @throws {RequiredError}
|
|
4307
4338
|
*/
|
|
4308
4339
|
getWatchStatus(n) {
|
|
4309
|
-
return
|
|
4340
|
+
return D(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
|
|
4310
4341
|
}
|
|
4311
4342
|
/**
|
|
4312
4343
|
* 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.
|
|
@@ -4316,7 +4347,7 @@ class ca extends x {
|
|
|
4316
4347
|
* @throws {RequiredError}
|
|
4317
4348
|
*/
|
|
4318
4349
|
startWatching(n, e) {
|
|
4319
|
-
return
|
|
4350
|
+
return D(this.configuration).startWatching(n, e).then((t) => t(this.axios, this.basePath));
|
|
4320
4351
|
}
|
|
4321
4352
|
/**
|
|
4322
4353
|
* 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.
|
|
@@ -4325,7 +4356,7 @@ class ca extends x {
|
|
|
4325
4356
|
* @throws {RequiredError}
|
|
4326
4357
|
*/
|
|
4327
4358
|
stopWatching(n) {
|
|
4328
|
-
return
|
|
4359
|
+
return D(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
|
|
4329
4360
|
}
|
|
4330
4361
|
/**
|
|
4331
4362
|
* 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.
|
|
@@ -4336,10 +4367,10 @@ class ca extends x {
|
|
|
4336
4367
|
* @throws {RequiredError}
|
|
4337
4368
|
*/
|
|
4338
4369
|
streamPackageEvents(n, e, t) {
|
|
4339
|
-
return
|
|
4370
|
+
return D(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
4340
4371
|
}
|
|
4341
4372
|
}
|
|
4342
|
-
class
|
|
4373
|
+
class ma {
|
|
4343
4374
|
/**
|
|
4344
4375
|
* parameter for apiKey security
|
|
4345
4376
|
* @param name security name
|
|
@@ -4412,7 +4443,7 @@ class la {
|
|
|
4412
4443
|
return n !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(n);
|
|
4413
4444
|
}
|
|
4414
4445
|
}
|
|
4415
|
-
const
|
|
4446
|
+
const ha = new Ve({
|
|
4416
4447
|
defaultOptions: {
|
|
4417
4448
|
queries: {
|
|
4418
4449
|
// Not retried: `useQueryWithApiError` surfaces a failure the moment it
|
|
@@ -4431,31 +4462,31 @@ const ia = new be({
|
|
|
4431
4462
|
throwOnError: !1
|
|
4432
4463
|
}
|
|
4433
4464
|
}
|
|
4434
|
-
}),
|
|
4465
|
+
}), nn = {
|
|
4435
4466
|
staleTime: 300 * 1e3,
|
|
4436
4467
|
refetchOnWindowFocus: !1,
|
|
4437
4468
|
refetchOnReconnect: !1
|
|
4438
|
-
},
|
|
4439
|
-
function
|
|
4469
|
+
}, X = "publisher:themeMode";
|
|
4470
|
+
function ua() {
|
|
4440
4471
|
if (!(typeof window > "u"))
|
|
4441
4472
|
try {
|
|
4442
|
-
const c = window.localStorage.getItem(
|
|
4473
|
+
const c = window.localStorage.getItem(X);
|
|
4443
4474
|
if (c === "light" || c === "dark" || c === "auto") return c;
|
|
4444
4475
|
} catch {
|
|
4445
4476
|
}
|
|
4446
4477
|
}
|
|
4447
|
-
function
|
|
4478
|
+
function ga(c) {
|
|
4448
4479
|
if (!(typeof window > "u"))
|
|
4449
4480
|
try {
|
|
4450
|
-
c === void 0 ? window.localStorage.removeItem(
|
|
4481
|
+
c === void 0 ? window.localStorage.removeItem(X) : window.localStorage.setItem(X, c);
|
|
4451
4482
|
} catch {
|
|
4452
4483
|
}
|
|
4453
4484
|
}
|
|
4454
|
-
function
|
|
4485
|
+
function ba() {
|
|
4455
4486
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
4456
4487
|
}
|
|
4457
4488
|
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
4458
|
-
const
|
|
4489
|
+
const he = se(void 0), Pa = (c, n) => {
|
|
4459
4490
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = u.create({
|
|
4460
4491
|
baseURL: c || e,
|
|
4461
4492
|
withCredentials: !0,
|
|
@@ -4465,230 +4496,232 @@ const de = re(void 0), ha = (c, n) => {
|
|
|
4465
4496
|
const o = await n?.();
|
|
4466
4497
|
return r.headers.Authorization = o || "", r;
|
|
4467
4498
|
});
|
|
4468
|
-
const a = new
|
|
4499
|
+
const a = new ma({ basePath: e });
|
|
4469
4500
|
return {
|
|
4470
|
-
models: new
|
|
4471
|
-
publisher: new
|
|
4472
|
-
environments: new
|
|
4473
|
-
packages: new
|
|
4474
|
-
dashboards: new
|
|
4475
|
-
dataApps: new
|
|
4476
|
-
notebooks: new
|
|
4477
|
-
reports: new
|
|
4478
|
-
connections: new
|
|
4479
|
-
databases: new
|
|
4480
|
-
materializations: new
|
|
4501
|
+
models: new ea(a, e, t),
|
|
4502
|
+
publisher: new sa(a, e, t),
|
|
4503
|
+
environments: new Ye(a, e, t),
|
|
4504
|
+
packages: new ra(a, e, t),
|
|
4505
|
+
dashboards: new He(a, e, t),
|
|
4506
|
+
dataApps: new Ge(a, e, t),
|
|
4507
|
+
notebooks: new ta(a, e, t),
|
|
4508
|
+
reports: new la(a, e, t),
|
|
4509
|
+
connections: new Qe(a, e, t),
|
|
4510
|
+
databases: new $e(a, e, t),
|
|
4511
|
+
materializations: new Xe(
|
|
4481
4512
|
a,
|
|
4482
4513
|
e,
|
|
4483
4514
|
t
|
|
4484
4515
|
),
|
|
4485
|
-
watchMode: new
|
|
4516
|
+
watchMode: new da(a, e, t)
|
|
4486
4517
|
};
|
|
4487
|
-
},
|
|
4518
|
+
}, rn = (c) => /* @__PURE__ */ q(Se, { client: ha, children: /* @__PURE__ */ q(va, { ...c }) }), va = ({
|
|
4488
4519
|
children: c,
|
|
4489
4520
|
getAccessToken: n,
|
|
4490
4521
|
baseURL: e,
|
|
4491
4522
|
mutable: t,
|
|
4492
|
-
theme: a
|
|
4523
|
+
theme: a,
|
|
4524
|
+
ui: r
|
|
4493
4525
|
}) => {
|
|
4494
|
-
const
|
|
4495
|
-
() =>
|
|
4526
|
+
const o = F(
|
|
4527
|
+
() => Pa(e, n),
|
|
4496
4528
|
[e, n]
|
|
4497
|
-
),
|
|
4529
|
+
), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, l = Oe({
|
|
4498
4530
|
queryKey: ["status"],
|
|
4499
|
-
queryFn: async () => (await
|
|
4531
|
+
queryFn: async () => (await o.publisher.getStatus()).data
|
|
4500
4532
|
});
|
|
4501
|
-
|
|
4502
|
-
const
|
|
4503
|
-
let
|
|
4504
|
-
|
|
4505
|
-
const
|
|
4506
|
-
() => [
|
|
4507
|
-
[
|
|
4508
|
-
), [
|
|
4509
|
-
|
|
4510
|
-
), [
|
|
4511
|
-
|
|
4533
|
+
l.error && console.error("Failed to fetch publisher status:", l.error);
|
|
4534
|
+
const i = l.data?.frozenConfig, p = l.data?.theme, d = l.isLoading;
|
|
4535
|
+
let h;
|
|
4536
|
+
l.isLoading || l.error ? h = t : i ? h = !1 : h = t ?? !0;
|
|
4537
|
+
const O = F(
|
|
4538
|
+
() => [p, a],
|
|
4539
|
+
[p, a]
|
|
4540
|
+
), [k, C] = ae(
|
|
4541
|
+
ua
|
|
4542
|
+
), [R, ue] = ae(ba);
|
|
4543
|
+
ke(() => {
|
|
4512
4544
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
4513
|
-
const T = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
4514
|
-
return T.addEventListener("change",
|
|
4545
|
+
const T = window.matchMedia("(prefers-color-scheme: dark)"), ee = (ve) => ue(ve.matches);
|
|
4546
|
+
return T.addEventListener("change", ee), () => T.removeEventListener("change", ee);
|
|
4515
4547
|
}, []);
|
|
4516
|
-
const
|
|
4517
|
-
|
|
4518
|
-
}, []),
|
|
4519
|
-
() =>
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4548
|
+
const ge = Ae((T) => {
|
|
4549
|
+
C(T), ga(T);
|
|
4550
|
+
}, []), Z = p?.allowUserToggle ?? !0, H = Z ? k : void 0, be = F(
|
|
4551
|
+
() => Me(
|
|
4552
|
+
p?.defaultMode,
|
|
4553
|
+
H,
|
|
4554
|
+
R
|
|
4523
4555
|
),
|
|
4524
|
-
[
|
|
4525
|
-
),
|
|
4526
|
-
server:
|
|
4556
|
+
[p?.defaultMode, H, R]
|
|
4557
|
+
), Pe = {
|
|
4558
|
+
server: s,
|
|
4527
4559
|
getAccessToken: n,
|
|
4528
|
-
apiClients:
|
|
4529
|
-
mutable:
|
|
4530
|
-
isLoadingStatus:
|
|
4531
|
-
instanceTheme:
|
|
4560
|
+
apiClients: o,
|
|
4561
|
+
mutable: h,
|
|
4562
|
+
isLoadingStatus: d,
|
|
4563
|
+
instanceTheme: p
|
|
4532
4564
|
};
|
|
4533
|
-
return /* @__PURE__ */
|
|
4534
|
-
|
|
4565
|
+
return /* @__PURE__ */ q(he.Provider, { value: Pe, children: /* @__PURE__ */ q(
|
|
4566
|
+
Fe,
|
|
4535
4567
|
{
|
|
4536
|
-
layers:
|
|
4537
|
-
mode:
|
|
4538
|
-
userChoice:
|
|
4539
|
-
setMode:
|
|
4540
|
-
allowUserToggle:
|
|
4568
|
+
layers: O,
|
|
4569
|
+
mode: be,
|
|
4570
|
+
userChoice: H,
|
|
4571
|
+
setMode: ge,
|
|
4572
|
+
allowUserToggle: Z,
|
|
4573
|
+
...r ? { ui: r } : {},
|
|
4541
4574
|
children: c
|
|
4542
4575
|
}
|
|
4543
4576
|
) });
|
|
4544
|
-
},
|
|
4545
|
-
const c =
|
|
4577
|
+
}, on = () => {
|
|
4578
|
+
const c = oe(he);
|
|
4546
4579
|
if (c === void 0)
|
|
4547
4580
|
throw new Error("useServer must be used within a ServerProvider");
|
|
4548
4581
|
return c;
|
|
4549
4582
|
};
|
|
4550
4583
|
export {
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4584
|
+
nt as $,
|
|
4585
|
+
Bt as A,
|
|
4586
|
+
K as B,
|
|
4587
|
+
Fa as C,
|
|
4588
|
+
_a as D,
|
|
4589
|
+
Wa as E,
|
|
4590
|
+
Ge as F,
|
|
4591
|
+
_e as G,
|
|
4592
|
+
Lt as H,
|
|
4593
|
+
de as I,
|
|
4594
|
+
$a as J,
|
|
4595
|
+
$e as K,
|
|
4596
|
+
We as L,
|
|
4597
|
+
Ht as M,
|
|
4598
|
+
me as N,
|
|
4599
|
+
Ye as O,
|
|
4600
|
+
Ke as P,
|
|
4601
|
+
_t as Q,
|
|
4602
|
+
f as R,
|
|
4603
|
+
Yt as S,
|
|
4604
|
+
Ka as T,
|
|
4605
|
+
Ya as U,
|
|
4606
|
+
jt as V,
|
|
4607
|
+
Ja as W,
|
|
4608
|
+
Xa as X,
|
|
4609
|
+
Za as Y,
|
|
4610
|
+
tt as Z,
|
|
4611
|
+
et as _,
|
|
4612
|
+
De as a,
|
|
4613
|
+
da as a$,
|
|
4614
|
+
at as a0,
|
|
4615
|
+
Wt as a1,
|
|
4616
|
+
rt as a2,
|
|
4617
|
+
Xe as a3,
|
|
4618
|
+
Je as a4,
|
|
4619
|
+
Gt as a5,
|
|
4620
|
+
w as a6,
|
|
4621
|
+
ea as a7,
|
|
4622
|
+
Ze as a8,
|
|
4623
|
+
$t as a9,
|
|
4624
|
+
j as aA,
|
|
4625
|
+
Vt as aB,
|
|
4626
|
+
St as aC,
|
|
4627
|
+
Ot as aD,
|
|
4628
|
+
kt as aE,
|
|
4629
|
+
At as aF,
|
|
4630
|
+
Ct as aG,
|
|
4631
|
+
yt as aH,
|
|
4632
|
+
xt as aI,
|
|
4633
|
+
It as aJ,
|
|
4634
|
+
Rt as aK,
|
|
4635
|
+
Nt as aL,
|
|
4636
|
+
la as aM,
|
|
4637
|
+
ca as aN,
|
|
4638
|
+
Zt as aO,
|
|
4639
|
+
Y as aP,
|
|
4640
|
+
Ut as aQ,
|
|
4641
|
+
Tt as aR,
|
|
4642
|
+
rn as aS,
|
|
4643
|
+
ft as aT,
|
|
4644
|
+
wt as aU,
|
|
4645
|
+
Et as aV,
|
|
4646
|
+
an as aW,
|
|
4647
|
+
ia as aX,
|
|
4648
|
+
en as aY,
|
|
4649
|
+
J as aZ,
|
|
4650
|
+
Mt as a_,
|
|
4651
|
+
E as aa,
|
|
4652
|
+
st as ab,
|
|
4653
|
+
lt as ac,
|
|
4654
|
+
ct as ad,
|
|
4655
|
+
ot as ae,
|
|
4656
|
+
ta as af,
|
|
4657
|
+
aa as ag,
|
|
4658
|
+
Kt as ah,
|
|
4626
4659
|
L as ai,
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4660
|
+
ht as aj,
|
|
4661
|
+
ut as ak,
|
|
4662
|
+
mt as al,
|
|
4663
|
+
dt as am,
|
|
4664
|
+
pt as an,
|
|
4665
|
+
it as ao,
|
|
4666
|
+
gt as ap,
|
|
4667
|
+
bt as aq,
|
|
4668
|
+
ra as ar,
|
|
4669
|
+
na as as,
|
|
4670
|
+
Jt as at,
|
|
4638
4671
|
M as au,
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4672
|
+
Pt as av,
|
|
4673
|
+
vt as aw,
|
|
4674
|
+
sa as ax,
|
|
4675
|
+
oa as ay,
|
|
4676
|
+
Xt as az,
|
|
4677
|
+
Ft as b,
|
|
4678
|
+
pa as b0,
|
|
4679
|
+
tn as b1,
|
|
4680
|
+
D as b2,
|
|
4681
|
+
ha as b3,
|
|
4682
|
+
wa as b4,
|
|
4683
|
+
on as b5,
|
|
4684
|
+
Ee as b6,
|
|
4685
|
+
le as b7,
|
|
4686
|
+
N as b8,
|
|
4687
|
+
Ca as b9,
|
|
4688
|
+
ya as ba,
|
|
4689
|
+
Na as bb,
|
|
4657
4690
|
Ra as bc,
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4691
|
+
Ua as bd,
|
|
4692
|
+
Ta as be,
|
|
4693
|
+
Ia as bf,
|
|
4694
|
+
xa as bg,
|
|
4695
|
+
I as bh,
|
|
4696
|
+
re as bi,
|
|
4697
|
+
Fe as bj,
|
|
4698
|
+
ne as bk,
|
|
4699
|
+
fa as bl,
|
|
4700
|
+
xe as bm,
|
|
4701
|
+
Me as bn,
|
|
4702
|
+
nn as bo,
|
|
4703
|
+
z as c,
|
|
4704
|
+
Ea as d,
|
|
4705
|
+
Ma as e,
|
|
4706
|
+
Ba as f,
|
|
4707
|
+
ja as g,
|
|
4708
|
+
qa as h,
|
|
4709
|
+
Da as i,
|
|
4710
|
+
ma as j,
|
|
4711
|
+
za as k,
|
|
4712
|
+
La as l,
|
|
4713
|
+
Qa as m,
|
|
4714
|
+
Qe as n,
|
|
4715
|
+
qe as o,
|
|
4716
|
+
Dt as p,
|
|
4684
4717
|
y as q,
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4718
|
+
Qt as r,
|
|
4719
|
+
ze as s,
|
|
4720
|
+
qt as t,
|
|
4721
|
+
pe as u,
|
|
4722
|
+
Ha as v,
|
|
4723
|
+
Ga as w,
|
|
4724
|
+
He as x,
|
|
4725
|
+
Le as y,
|
|
4726
|
+
zt as z
|
|
4694
4727
|
};
|