@malloy-publisher/sdk 0.12.0 → 0.12.2
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/README.md +79 -6
- package/dist/{RenderedResult-SgDlxzs9.cjs.js → RenderedResult-Cgw4iqev.cjs.js} +1 -1
- package/dist/{RenderedResult-D8bCgThO.es.js → RenderedResult-DEjFM1DL.es.js} +2 -2
- package/dist/ServerProvider-BRQl_cBo.cjs.js +1 -0
- package/dist/{ServerProvider-DBw-thY0.es.js → ServerProvider-RnliA2Ao.es.js} +1084 -723
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +754 -41
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +120 -110
- package/dist/components/Materializations/MaterializationDetailDialog.d.ts +16 -1
- package/dist/components/Model/ExplorerPage.d.ts +9 -0
- package/dist/components/Model/Model.d.ts +27 -11
- package/dist/components/ModelViewer/AccessChips.d.ts +34 -0
- package/dist/components/ModelViewer/EmptyRow.d.ts +23 -0
- package/dist/components/ModelViewer/Facts.d.ts +15 -0
- package/dist/components/ModelViewer/FieldGroup.d.ts +31 -0
- package/dist/components/ModelViewer/FieldRow.d.ts +69 -0
- package/dist/components/ModelViewer/GivenFacts.d.ts +21 -0
- package/dist/components/ModelViewer/HeaderBar.d.ts +75 -0
- package/dist/components/ModelViewer/InlineDoc.d.ts +13 -0
- package/dist/components/ModelViewer/ModelGivensSection.d.ts +32 -0
- package/dist/components/ModelViewer/ModelSection.d.ts +21 -0
- package/dist/components/ModelViewer/ModelViewer.d.ts +91 -0
- package/dist/components/ModelViewer/QueriesGroup.d.ts +15 -0
- package/dist/components/ModelViewer/RowGlyph.d.ts +27 -0
- package/dist/components/ModelViewer/RunResult.d.ts +46 -0
- package/dist/components/ModelViewer/SampleValues.d.ts +20 -0
- package/dist/components/ModelViewer/SchemaJoin.d.ts +51 -0
- package/dist/components/ModelViewer/SchemaView.d.ts +52 -0
- package/dist/components/ModelViewer/SegmentIcons.d.ts +70 -0
- package/dist/components/ModelViewer/SourcesDropdown.d.ts +53 -0
- package/dist/components/ModelViewer/SourcesNav.d.ts +25 -0
- package/dist/components/ModelViewer/StatusPill.d.ts +56 -0
- package/dist/components/ModelViewer/ValueChip.d.ts +17 -0
- package/dist/components/ModelViewer/ViewRow.d.ts +36 -0
- package/dist/components/ModelViewer/clickableBox.d.ts +29 -0
- package/dist/components/ModelViewer/codeDisplay.d.ts +44 -0
- package/dist/components/ModelViewer/docAnnotations.d.ts +90 -0
- package/dist/components/ModelViewer/explorerModel.d.ts +12 -0
- package/dist/components/ModelViewer/extensions.d.ts +94 -0
- package/dist/components/ModelViewer/fieldCode.d.ts +74 -0
- package/dist/components/ModelViewer/fieldEntities.d.ts +45 -0
- package/dist/components/ModelViewer/fieldExpansion.d.ts +41 -0
- package/dist/components/ModelViewer/givenUsage.d.ts +71 -0
- package/dist/components/ModelViewer/headerCard.d.ts +31 -0
- package/dist/components/ModelViewer/httpStatus.d.ts +4 -0
- package/dist/components/ModelViewer/icons.d.ts +31 -0
- package/dist/components/ModelViewer/index.d.ts +9 -0
- package/dist/components/ModelViewer/joinAccess.d.ts +52 -0
- package/dist/components/ModelViewer/malloyRunText.d.ts +22 -0
- package/dist/components/ModelViewer/malloyText.d.ts +21 -0
- package/dist/components/ModelViewer/modelGivens.d.ts +61 -0
- package/dist/components/ModelViewer/modelGivensContext.d.ts +9 -0
- package/dist/components/ModelViewer/modelHeaderPresentation.d.ts +28 -0
- package/dist/components/ModelViewer/modelTextDeclarations.d.ts +32 -0
- package/dist/components/ModelViewer/modelTextParse.d.ts +27 -0
- package/dist/components/ModelViewer/namedQueryCode.d.ts +12 -0
- package/dist/components/ModelViewer/offSurface.d.ts +54 -0
- package/dist/components/ModelViewer/rowLayers.d.ts +30 -0
- package/dist/components/ModelViewer/runGate.d.ts +49 -0
- package/dist/components/ModelViewer/schemaModel.d.ts +109 -0
- package/dist/components/ModelViewer/sectionOpenCommand.d.ts +45 -0
- package/dist/components/ModelViewer/sourceAccess.d.ts +67 -0
- package/dist/components/ModelViewer/sourceLineage.d.ts +14 -0
- package/dist/components/ModelViewer/sourcePicker.d.ts +66 -0
- package/dist/components/ModelViewer/surface.d.ts +47 -0
- package/dist/components/ModelViewer/text.d.ts +6 -0
- package/dist/components/ModelViewer/theme.d.ts +63 -0
- package/dist/components/ModelViewer/tokens.d.ts +52 -0
- package/dist/components/ModelViewer/ui.d.ts +48 -0
- package/dist/components/ModelViewer/useDimensionSamples.d.ts +76 -0
- package/dist/components/ModelViewer/useModelSources.d.ts +92 -0
- package/dist/components/ModelViewer/useRunQuery.d.ts +115 -0
- package/dist/components/ReportBuilder/loadMalloy.d.ts +4 -0
- package/dist/components/ServerProvider.d.ts +17 -2
- package/dist/components/filter/utils.d.ts +1 -1
- package/dist/components/given/GivenInput.d.ts +7 -1
- package/dist/components/given/GivensPanel.d.ts +3 -1
- package/dist/components/given/filterSummary.d.ts +6 -0
- package/dist/components/given/useGivenUrlParams.d.ts +11 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/modelPage.d.ts +36 -0
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +9 -0
- package/dist/hooks/useSuggestOptions.d.ts +26 -2
- package/dist/index.cjs.js +47 -19
- package/dist/index.es.js +14137 -9697
- package/dist/useCompiledDocument-D88_2cGS.cjs.js +143 -0
- package/dist/{useCompiledDocument-CXMPtJkJ.es.js → useCompiledDocument-Dmm6xkom.es.js} +6975 -6893
- package/dist/utils/filterCondition.d.ts +14 -0
- package/dist/utils/malloyLiteral.d.ts +20 -1
- package/package.json +2 -2
- package/src/components/Materializations/MaterializationDetailDialog.tsx +33 -7
- package/src/components/Materializations/Materializations.tsx +47 -4
- package/src/components/Materializations/Materializations.versions.spec.tsx +140 -1
- package/src/components/Model/ExplorerPage.tsx +269 -0
- package/src/components/Model/Model.tsx +66 -250
- package/src/components/Model/ModelExplorer.spec.tsx +64 -1
- package/src/components/ModelViewer/AccessChips.tsx +149 -0
- package/src/components/ModelViewer/EmptyRow.tsx +71 -0
- package/src/components/ModelViewer/Facts.tsx +46 -0
- package/src/components/ModelViewer/FieldGroup.tsx +137 -0
- package/src/components/ModelViewer/FieldRow.tsx +566 -0
- package/src/components/ModelViewer/GivenFacts.tsx +89 -0
- package/src/components/ModelViewer/HeaderBar.tsx +362 -0
- package/src/components/ModelViewer/InlineDoc.tsx +50 -0
- package/src/components/ModelViewer/ModelGivensSection.tsx +142 -0
- package/src/components/ModelViewer/ModelSection.tsx +98 -0
- package/src/components/ModelViewer/ModelViewer.spec.tsx +937 -0
- package/src/components/ModelViewer/ModelViewer.tsx +777 -0
- package/src/components/ModelViewer/QueriesGroup.tsx +107 -0
- package/src/components/ModelViewer/RowGlyph.tsx +138 -0
- package/src/components/ModelViewer/RunResult.tsx +298 -0
- package/src/components/ModelViewer/SampleValues.tsx +97 -0
- package/src/components/ModelViewer/SchemaJoin.tsx +258 -0
- package/src/components/ModelViewer/SchemaView.tsx +222 -0
- package/src/components/ModelViewer/SegmentIcons.tsx +129 -0
- package/src/components/ModelViewer/SourcesDropdown.tsx +265 -0
- package/src/components/ModelViewer/SourcesNav.tsx +75 -0
- package/src/components/ModelViewer/StatusPill.tsx +145 -0
- package/src/components/ModelViewer/ValueChip.tsx +39 -0
- package/src/components/ModelViewer/ViewRow.tsx +274 -0
- package/src/components/ModelViewer/clickableBox.ts +59 -0
- package/src/components/ModelViewer/codeDisplay.spec.ts +176 -0
- package/src/components/ModelViewer/codeDisplay.ts +118 -0
- package/src/components/ModelViewer/docAnnotations.spec.ts +181 -0
- package/src/components/ModelViewer/docAnnotations.ts +244 -0
- package/src/components/ModelViewer/docAnnotations.typeDetail.spec.ts +114 -0
- package/src/components/ModelViewer/explorerModel.spec.ts +43 -0
- package/src/components/ModelViewer/explorerModel.ts +31 -0
- package/src/components/ModelViewer/extensions.tsx +112 -0
- package/src/components/ModelViewer/fieldCode.spec.ts +168 -0
- package/src/components/ModelViewer/fieldCode.ts +118 -0
- package/src/components/ModelViewer/fieldEntities.ts +63 -0
- package/src/components/ModelViewer/fieldExpansion.spec.ts +116 -0
- package/src/components/ModelViewer/fieldExpansion.ts +95 -0
- package/src/components/ModelViewer/givenUsage.spec.ts +304 -0
- package/src/components/ModelViewer/givenUsage.ts +325 -0
- package/src/components/ModelViewer/headerCard.tsx +102 -0
- package/src/components/ModelViewer/httpStatus.ts +15 -0
- package/src/components/ModelViewer/icons.tsx +67 -0
- package/src/components/ModelViewer/index.ts +26 -0
- package/src/components/ModelViewer/joinAccess.spec.ts +95 -0
- package/src/components/ModelViewer/joinAccess.ts +54 -0
- package/src/components/ModelViewer/malloyRunText.spec.ts +48 -0
- package/src/components/ModelViewer/malloyRunText.ts +51 -0
- package/src/components/ModelViewer/malloyText.spec.ts +47 -0
- package/src/components/ModelViewer/malloyText.ts +77 -0
- package/src/components/ModelViewer/modelGivens.ts +228 -0
- package/src/components/ModelViewer/modelGivensContext.ts +13 -0
- package/src/components/ModelViewer/modelHeaderPresentation.spec.ts +31 -0
- package/src/components/ModelViewer/modelHeaderPresentation.ts +41 -0
- package/src/components/ModelViewer/modelTextDeclarations.spec.ts +336 -0
- package/src/components/ModelViewer/modelTextDeclarations.ts +228 -0
- package/src/components/ModelViewer/modelTextParse.ts +112 -0
- package/src/components/ModelViewer/namedQueryCode.spec.ts +58 -0
- package/src/components/ModelViewer/namedQueryCode.ts +26 -0
- package/src/components/ModelViewer/offSurface.tsx +124 -0
- package/src/components/ModelViewer/rowLayers.tsx +104 -0
- package/src/components/ModelViewer/runGate.spec.ts +219 -0
- package/src/components/ModelViewer/runGate.ts +145 -0
- package/src/components/ModelViewer/schemaModel.defaultSource.spec.ts +126 -0
- package/src/components/ModelViewer/schemaModel.queries.spec.ts +37 -0
- package/src/components/ModelViewer/schemaModel.ts +300 -0
- package/src/components/ModelViewer/sectionOpenCommand.tsx +125 -0
- package/src/components/ModelViewer/sourceAccess.spec.ts +130 -0
- package/src/components/ModelViewer/sourceAccess.ts +194 -0
- package/src/components/ModelViewer/sourceLineage.spec.ts +73 -0
- package/src/components/ModelViewer/sourceLineage.ts +38 -0
- package/src/components/ModelViewer/sourcePicker.spec.ts +294 -0
- package/src/components/ModelViewer/sourcePicker.ts +162 -0
- package/src/components/ModelViewer/surface.ts +51 -0
- package/src/components/ModelViewer/text.tsx +33 -0
- package/src/components/ModelViewer/theme.spec.ts +38 -0
- package/src/components/ModelViewer/theme.ts +58 -0
- package/src/components/ModelViewer/tokens.ts +87 -0
- package/src/components/ModelViewer/ui.tsx +201 -0
- package/src/components/ModelViewer/useDimensionSamples.spec.tsx +139 -0
- package/src/components/ModelViewer/useDimensionSamples.ts +220 -0
- package/src/components/ModelViewer/useModelSources.spec.ts +110 -0
- package/src/components/ModelViewer/useModelSources.ts +238 -0
- package/src/components/ModelViewer/useRunQuery.spec.ts +50 -0
- package/src/components/ModelViewer/useRunQuery.ts +223 -0
- package/src/components/Package/Package.agents.spec.tsx +5 -4
- package/src/components/Package/Package.tsx +8 -1
- package/src/components/ReportBuilder/emptyStart.spec.ts +8 -0
- package/src/components/ReportBuilder/loadMalloy.ts +8 -1
- package/src/components/ServerProvider.tsx +29 -3
- package/src/components/filter/utils.ts +4 -60
- package/src/components/given/FilterButton.tsx +4 -1
- package/src/components/given/GivenInput.tsx +8 -0
- package/src/components/given/GivensPanel.tsx +6 -1
- package/src/components/given/filterSummary.spec.ts +31 -1
- package/src/components/given/filterSummary.ts +41 -19
- package/src/components/given/useGivenUrlParams.spec.tsx +32 -0
- package/src/components/given/useGivenUrlParams.ts +49 -14
- package/src/components/index.ts +6 -1
- package/src/components/legacy/malloynb/Notebook.spec.tsx +38 -4
- package/src/components/legacy/malloynb/NotebookCell.tsx +8 -2
- package/src/components/modelPage.spec.ts +79 -0
- package/src/components/modelPage.ts +48 -0
- package/src/hooks/useDimensionFilters.ts +3 -58
- package/src/hooks/useDimensionFiltersQuery.ts +3 -58
- package/src/hooks/useDimensionalFilterRangeData.spec.ts +57 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +8 -63
- package/src/hooks/useSuggestOptions.dom.spec.ts +54 -1
- package/src/hooks/useSuggestOptions.spec.ts +71 -0
- package/src/hooks/useSuggestOptions.ts +102 -12
- package/src/utils/filterCondition.spec.ts +87 -0
- package/src/utils/filterCondition.ts +66 -0
- package/src/utils/malloyLiteral.spec.ts +53 -1
- package/src/utils/malloyLiteral.ts +47 -12
- package/dist/ServerProvider-BHfg1Ed6.cjs.js +0 -1
- package/dist/useCompiledDocument-D7X_K6YU.cjs.js +0 -142
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
1
|
+
import { jsx as Q } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as Oe, QueryClientProvider as Ae, useQuery as ye } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { styled as
|
|
6
|
-
const
|
|
4
|
+
import { useContext as le, useMemo as B, createContext as ie, useState as oe, useEffect as Ce, useCallback as Ie } from "react";
|
|
5
|
+
import { styled as j, Card as xe, CardContent as Re, CardMedia as Ne } from "@mui/material";
|
|
6
|
+
const se = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", U = {
|
|
7
7
|
radius: { control: "6px", tile: "8px", menu: "10px", dialog: "12px" },
|
|
8
8
|
size: { control: 32, chip: 24 },
|
|
9
9
|
type: {
|
|
@@ -13,14 +13,14 @@ const oe = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", N = {
|
|
|
13
13
|
control: { fontSize: 13, fontWeight: 500 },
|
|
14
14
|
caption: { fontSize: 12, lineHeight: 1.4 },
|
|
15
15
|
label: { fontSize: 12, fontWeight: 600, lineHeight: 1.4 },
|
|
16
|
-
code: { fontSize: 11.5, fontFamily:
|
|
16
|
+
code: { fontSize: 11.5, fontFamily: se }
|
|
17
17
|
},
|
|
18
|
-
font: { mono:
|
|
18
|
+
font: { mono: se },
|
|
19
19
|
shadow: { menu: "0 8px 24px rgba(16, 24, 40, 0.12)" }
|
|
20
20
|
};
|
|
21
|
-
function
|
|
22
|
-
if (!l) return
|
|
23
|
-
const r = { ...
|
|
21
|
+
function Ue(l) {
|
|
22
|
+
if (!l) return U;
|
|
23
|
+
const r = { ...U.font, ...l.font }, e = { ...U.type };
|
|
24
24
|
e.code = { ...e.code, fontFamily: r.mono };
|
|
25
25
|
for (const [t, a] of Object.entries(l.type ?? {}))
|
|
26
26
|
e[t] = {
|
|
@@ -28,11 +28,11 @@ function Ne(l) {
|
|
|
28
28
|
...a
|
|
29
29
|
};
|
|
30
30
|
return {
|
|
31
|
-
radius: { ...
|
|
32
|
-
size: { ...
|
|
31
|
+
radius: { ...U.radius, ...l.radius },
|
|
32
|
+
size: { ...U.size, ...l.size },
|
|
33
33
|
type: e,
|
|
34
34
|
font: r,
|
|
35
|
-
shadow: { ...
|
|
35
|
+
shadow: { ...U.shadow, ...l.shadow }
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
const x = {
|
|
@@ -48,25 +48,25 @@ const x = {
|
|
|
48
48
|
teal: "#0f766e",
|
|
49
49
|
cyan: "#0e7490",
|
|
50
50
|
slate: "#475569"
|
|
51
|
-
},
|
|
51
|
+
}, fa = {
|
|
52
52
|
environment: x.emerald,
|
|
53
53
|
package: x.teal,
|
|
54
54
|
connection: x.orange
|
|
55
|
-
},
|
|
55
|
+
}, wa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ma = j(xe)({
|
|
56
56
|
display: "flex",
|
|
57
57
|
flexDirection: "column",
|
|
58
58
|
height: "100%",
|
|
59
59
|
boxShadow: "none",
|
|
60
60
|
border: "none",
|
|
61
61
|
backgroundColor: "transparent"
|
|
62
|
-
}),
|
|
62
|
+
}), Fa = j(Re)({
|
|
63
63
|
display: "flex",
|
|
64
64
|
flexDirection: "column",
|
|
65
65
|
padding: "0",
|
|
66
66
|
flexGrow: 1
|
|
67
|
-
}),
|
|
67
|
+
}), Ba = j(Ne)({
|
|
68
68
|
padding: "0"
|
|
69
|
-
}),
|
|
69
|
+
}), ja = j("div")({
|
|
70
70
|
backgroundColor: "transparent",
|
|
71
71
|
paddingTop: "12px",
|
|
72
72
|
paddingBottom: "2px",
|
|
@@ -74,13 +74,13 @@ const x = {
|
|
|
74
74
|
border: "none",
|
|
75
75
|
boxShadow: "none",
|
|
76
76
|
marginBottom: "0"
|
|
77
|
-
}),
|
|
77
|
+
}), Da = j("div")({
|
|
78
78
|
height: "100%"
|
|
79
|
-
}),
|
|
79
|
+
}), La = j("div")({
|
|
80
80
|
height: "75vh",
|
|
81
81
|
width: "100%",
|
|
82
82
|
overflowY: "auto"
|
|
83
|
-
}),
|
|
83
|
+
}), Te = {
|
|
84
84
|
light: {
|
|
85
85
|
accent: x.blue,
|
|
86
86
|
accentHover: "#1d4ed8",
|
|
@@ -91,52 +91,52 @@ const x = {
|
|
|
91
91
|
accentHover: "#93c5fd",
|
|
92
92
|
accentContrast: "#0f172a"
|
|
93
93
|
}
|
|
94
|
-
},
|
|
94
|
+
}, Ee = {
|
|
95
95
|
light: "#ffffff",
|
|
96
96
|
dark: "#0f172a"
|
|
97
|
-
}, fe = 3,
|
|
97
|
+
}, fe = 3, E = (l) => {
|
|
98
98
|
const r = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(l.trim());
|
|
99
99
|
if (!r) return;
|
|
100
100
|
const e = r[1].length === 3 ? [...r[1]].map((t) => t + t).join("") : r[1];
|
|
101
101
|
return [0, 2, 4].map((t) => parseInt(e.slice(t, t + 2), 16));
|
|
102
|
-
},
|
|
102
|
+
}, pe = (l) => `#${l.map((r) => Math.round(r).toString(16).padStart(2, "0")).join("")}`, W = (l, r, e) => pe(l.map((t) => t + (r - t) * e)), K = (l) => {
|
|
103
103
|
const [r, e, t] = l.map((a) => {
|
|
104
104
|
const n = a / 255;
|
|
105
105
|
return n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4;
|
|
106
106
|
});
|
|
107
107
|
return 0.2126 * r + 0.7152 * e + 0.0722 * t;
|
|
108
|
-
},
|
|
109
|
-
const [e, t] = [
|
|
108
|
+
}, q = (l, r) => {
|
|
109
|
+
const [e, t] = [K(l), K(r)].sort((a, n) => n - a);
|
|
110
110
|
return (e + 0.05) / (t + 0.05);
|
|
111
111
|
};
|
|
112
|
-
function
|
|
113
|
-
const e =
|
|
114
|
-
return e && t ?
|
|
112
|
+
function Qa(l, r) {
|
|
113
|
+
const e = E(l), t = E(r);
|
|
114
|
+
return e && t ? q(e, t) : void 0;
|
|
115
115
|
}
|
|
116
116
|
const we = [15, 23, 42];
|
|
117
|
-
function
|
|
118
|
-
const t =
|
|
119
|
-
if (!t || !a ||
|
|
120
|
-
const n =
|
|
117
|
+
function $(l, r, e = fe) {
|
|
118
|
+
const t = E(l), a = E(r);
|
|
119
|
+
if (!t || !a || q(t, a) >= e) return l;
|
|
120
|
+
const n = K(a) < 0.5 ? 255 : 0;
|
|
121
121
|
for (let o = 0.05; o < 1; o += 0.05) {
|
|
122
|
-
const s =
|
|
123
|
-
if (s &&
|
|
122
|
+
const s = E(W(t, n, o));
|
|
123
|
+
if (s && q(s, a) >= e) return pe(s);
|
|
124
124
|
}
|
|
125
125
|
return n === 255 ? "#ffffff" : "#000000";
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const t =
|
|
127
|
+
function ce(l, r, e = Ee[r]) {
|
|
128
|
+
const t = Te[r];
|
|
129
129
|
if (!l || l.toLowerCase() === x.blue) return t;
|
|
130
|
-
if (!
|
|
130
|
+
if (!E(l))
|
|
131
131
|
return r === "light" ? { ...t, accent: l, accentHover: l } : t;
|
|
132
|
-
const a =
|
|
132
|
+
const a = $(l, e), n = E(a), o = r === "dark" ? W(n, 255, 0.25) : W(n, 0, 0.2), s = q(n, [255, 255, 255]), c = q(n, we);
|
|
133
133
|
return {
|
|
134
134
|
accent: a,
|
|
135
135
|
accentHover: o,
|
|
136
136
|
accentContrast: s >= c ? "#ffffff" : "#0f172a"
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const Me = [
|
|
140
140
|
x.blue,
|
|
141
141
|
x.orange,
|
|
142
142
|
x.emerald,
|
|
@@ -145,11 +145,11 @@ const Ee = [
|
|
|
145
145
|
x.amber,
|
|
146
146
|
x.cyan,
|
|
147
147
|
x.lime
|
|
148
|
-
],
|
|
148
|
+
], Fe = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", Y = {
|
|
149
149
|
defaultMode: "light",
|
|
150
150
|
allowUserToggle: !0,
|
|
151
151
|
palette: {
|
|
152
|
-
series:
|
|
152
|
+
series: Me,
|
|
153
153
|
// The chart canvas. One ground for the whole dashboard in both modes —
|
|
154
154
|
// canvas, card and the panel between cards are all this value, and the
|
|
155
155
|
// borders do the separating. See `tile`.
|
|
@@ -235,10 +235,10 @@ const Ee = [
|
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
font: {
|
|
238
|
-
family:
|
|
238
|
+
family: Fe,
|
|
239
239
|
size: 12
|
|
240
240
|
}
|
|
241
|
-
},
|
|
241
|
+
}, Be = [
|
|
242
242
|
"background",
|
|
243
243
|
"tableHeader",
|
|
244
244
|
"tableHeaderBackground",
|
|
@@ -253,7 +253,7 @@ const Ee = [
|
|
|
253
253
|
"chartText",
|
|
254
254
|
"value"
|
|
255
255
|
];
|
|
256
|
-
function
|
|
256
|
+
function de(l, r) {
|
|
257
257
|
const e = Y.palette ?? {}, t = Y.font ?? {
|
|
258
258
|
family: "sans-serif",
|
|
259
259
|
size: 12
|
|
@@ -282,22 +282,22 @@ function pe(l, r) {
|
|
|
282
282
|
for (const O of l)
|
|
283
283
|
if (O) {
|
|
284
284
|
Array.isArray(O.palette?.series) && (a = [...O.palette.series], n = !0);
|
|
285
|
-
for (const I of
|
|
286
|
-
const
|
|
287
|
-
|
|
285
|
+
for (const I of Be) {
|
|
286
|
+
const N = O.palette?.[I];
|
|
287
|
+
N && (c[I] = { ...c[I], ...N }, N.light !== void 0 && i.light.add(I), N.dark !== void 0 && i.dark.add(I));
|
|
288
288
|
}
|
|
289
289
|
typeof O.font?.family == "string" && (o = O.font.family), typeof O.font?.size == "number" && (s = O.font.size);
|
|
290
290
|
}
|
|
291
|
-
const p = r === "dark", d = (O) => c[O][r] ?? e[O]?.[r], h = d("background"), k = p && i.light.has("mapColor") && !i.dark.has("mapColor") ?
|
|
291
|
+
const p = r === "dark", d = (O) => c[O][r] ?? e[O]?.[r], h = d("background"), k = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? $(c.mapColor.light, h) : d("mapColor");
|
|
292
292
|
return {
|
|
293
293
|
mode: r,
|
|
294
294
|
// The host's chrome tokens are laid over this by `ThemeProvider`.
|
|
295
|
-
ui:
|
|
295
|
+
ui: U,
|
|
296
296
|
// One series list for both modes, picked against a light page: in dark,
|
|
297
297
|
// an operator's colour too dark to see on the canvas is lifted until it
|
|
298
298
|
// reads. The defaults are drawn as they always were.
|
|
299
|
-
series: p && n ? a.map((O) =>
|
|
300
|
-
...
|
|
299
|
+
series: p && n ? a.map((O) => $(O, h)) : a,
|
|
300
|
+
...ce(a[0], r, h),
|
|
301
301
|
font: { family: o, size: s },
|
|
302
302
|
background: h,
|
|
303
303
|
tableHeader: d("tableHeader"),
|
|
@@ -345,10 +345,10 @@ function pe(l, r) {
|
|
|
345
345
|
// contrast on the slate panel.
|
|
346
346
|
// The Console's default accent, not the palette's: a drill reads as a
|
|
347
347
|
// link whatever the operator picked for the data.
|
|
348
|
-
drillLink:
|
|
348
|
+
drillLink: ce(void 0, r).accent
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function qa(l, r) {
|
|
352
352
|
const e = r.palette?.series;
|
|
353
353
|
if (!Array.isArray(e) || e.length !== 1) return r;
|
|
354
354
|
const t = e[0], a = l.reduce(
|
|
@@ -369,8 +369,8 @@ function je(l, r, e) {
|
|
|
369
369
|
const t = r ?? l ?? "light";
|
|
370
370
|
return t === "auto" ? e ? "dark" : "light" : t;
|
|
371
371
|
}
|
|
372
|
-
const
|
|
373
|
-
function
|
|
372
|
+
const me = ie(void 0);
|
|
373
|
+
function De({
|
|
374
374
|
layers: l,
|
|
375
375
|
mode: r,
|
|
376
376
|
userChoice: e,
|
|
@@ -379,23 +379,23 @@ function Be({
|
|
|
379
379
|
ui: n,
|
|
380
380
|
children: o
|
|
381
381
|
}) {
|
|
382
|
-
const s = JSON.stringify(n ?? null), c =
|
|
383
|
-
() =>
|
|
382
|
+
const s = JSON.stringify(n ?? null), c = B(
|
|
383
|
+
() => Ue(n),
|
|
384
384
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
385
385
|
[s]
|
|
386
|
-
), i =
|
|
387
|
-
() => ({ ...
|
|
386
|
+
), i = B(
|
|
387
|
+
() => ({ ...de(l, r), ui: c }),
|
|
388
388
|
[l, r, c]
|
|
389
|
-
), p =
|
|
389
|
+
), p = B(
|
|
390
390
|
() => ({ theme: i, layers: l, mode: r, userChoice: e, setMode: t, allowUserToggle: a }),
|
|
391
391
|
[i, l, r, e, t, a]
|
|
392
392
|
);
|
|
393
|
-
return /* @__PURE__ */
|
|
393
|
+
return /* @__PURE__ */ Q(me.Provider, { value: p, children: o });
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
const l =
|
|
395
|
+
function za() {
|
|
396
|
+
const l = le(me);
|
|
397
397
|
return l || {
|
|
398
|
-
theme:
|
|
398
|
+
theme: de([], "light"),
|
|
399
399
|
layers: [],
|
|
400
400
|
mode: "light",
|
|
401
401
|
userChoice: void 0,
|
|
@@ -411,63 +411,63 @@ class C {
|
|
|
411
411
|
}
|
|
412
412
|
configuration;
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class Le extends Error {
|
|
415
415
|
constructor(r, e) {
|
|
416
416
|
super(e), this.field = r, this.name = "RequiredError";
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const P = {}, V = "https://example.com", m = function(l, r, e) {
|
|
420
420
|
if (e == null)
|
|
421
|
-
throw new
|
|
421
|
+
throw new Le(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
|
|
422
422
|
};
|
|
423
423
|
function J(l, r, e = "") {
|
|
424
424
|
r != null && (typeof r == "object" ? Array.isArray(r) || r instanceof Set ? r.forEach((t) => J(l, t, e)) : Object.keys(r).forEach(
|
|
425
425
|
(t) => J(l, r[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
426
426
|
) : l.has(e) ? l.append(e, r) : l.set(e, r));
|
|
427
427
|
}
|
|
428
|
-
const
|
|
428
|
+
const v = function(l, ...r) {
|
|
429
429
|
const e = new URLSearchParams(l.search);
|
|
430
430
|
J(e, r), l.search = e.toString();
|
|
431
|
-
},
|
|
431
|
+
}, Qe = function(l, r) {
|
|
432
432
|
return r instanceof Set ? Array.from(r) : r;
|
|
433
433
|
}, A = function(l, r, e) {
|
|
434
434
|
const t = typeof l != "string";
|
|
435
|
-
return (t && e && e.isJsonMime ? e.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {},
|
|
436
|
-
},
|
|
435
|
+
return (t && e && e.isJsonMime ? e.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}, Qe) : l || "";
|
|
436
|
+
}, b = function(l) {
|
|
437
437
|
return l.pathname + l.search + l.hash;
|
|
438
438
|
}, S = function(l, r, e, t) {
|
|
439
439
|
return (a = r, n = e) => {
|
|
440
440
|
const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
|
|
441
441
|
return a.request(o);
|
|
442
442
|
};
|
|
443
|
-
},
|
|
443
|
+
}, Ha = {
|
|
444
444
|
Bigquery: "bigquery",
|
|
445
445
|
Snowflake: "snowflake",
|
|
446
446
|
Postgres: "postgres",
|
|
447
447
|
Gcs: "gcs",
|
|
448
448
|
S3: "s3",
|
|
449
449
|
Azure: "azure"
|
|
450
|
-
},
|
|
450
|
+
}, _a = {
|
|
451
451
|
ServicePrincipal: "service_principal",
|
|
452
452
|
SasToken: "sas_token"
|
|
453
|
-
},
|
|
453
|
+
}, Ga = {
|
|
454
454
|
Error: "error",
|
|
455
455
|
Warn: "warn",
|
|
456
456
|
Debug: "debug"
|
|
457
|
-
},
|
|
457
|
+
}, Wa = {
|
|
458
458
|
Append: "append",
|
|
459
459
|
File: "file",
|
|
460
460
|
Package: "package"
|
|
461
|
-
},
|
|
461
|
+
}, Ka = {
|
|
462
462
|
Success: "success",
|
|
463
463
|
Error: "error"
|
|
464
|
-
},
|
|
464
|
+
}, $a = {
|
|
465
465
|
Grid: "grid",
|
|
466
466
|
Linear: "linear"
|
|
467
|
-
},
|
|
467
|
+
}, Ya = {
|
|
468
468
|
Dashboard: "dashboard",
|
|
469
469
|
Notebook: "notebook"
|
|
470
|
-
},
|
|
470
|
+
}, Ja = {
|
|
471
471
|
Postgres: "postgres",
|
|
472
472
|
Bigquery: "bigquery",
|
|
473
473
|
Snowflake: "snowflake",
|
|
@@ -479,148 +479,175 @@ const b = function(l, ...r) {
|
|
|
479
479
|
Motherduck: "motherduck",
|
|
480
480
|
Ducklake: "ducklake",
|
|
481
481
|
Publisher: "publisher"
|
|
482
|
-
},
|
|
482
|
+
}, Xa = {
|
|
483
483
|
Ssh: "ssh"
|
|
484
|
-
},
|
|
484
|
+
}, Za = {
|
|
485
485
|
Ok: "ok",
|
|
486
486
|
Failed: "failed"
|
|
487
|
-
},
|
|
487
|
+
}, et = {
|
|
488
488
|
Grid: "grid",
|
|
489
489
|
Linear: "linear"
|
|
490
|
-
},
|
|
490
|
+
}, at = {
|
|
491
491
|
Dashboard: "dashboard",
|
|
492
492
|
Notebook: "notebook"
|
|
493
|
-
},
|
|
493
|
+
}, tt = {
|
|
494
494
|
Query: "query",
|
|
495
495
|
Text: "text"
|
|
496
|
-
},
|
|
496
|
+
}, nt = {
|
|
497
497
|
Viewport: "viewport"
|
|
498
|
-
},
|
|
498
|
+
}, rt = {
|
|
499
499
|
Embedded: "embedded",
|
|
500
500
|
Materialized: "materialized"
|
|
501
|
-
},
|
|
501
|
+
}, ot = {
|
|
502
502
|
Equal: "equal",
|
|
503
503
|
In: "in",
|
|
504
504
|
Like: "like",
|
|
505
505
|
GreaterThan: "greater_than",
|
|
506
506
|
LessThan: "less_than"
|
|
507
|
-
},
|
|
507
|
+
}, st = {
|
|
508
508
|
Live: "live",
|
|
509
509
|
StaleOk: "stale_ok",
|
|
510
510
|
Fail: "fail"
|
|
511
|
-
},
|
|
511
|
+
}, ct = {
|
|
512
512
|
Select: "select",
|
|
513
513
|
Multiselect: "multiselect"
|
|
514
|
-
},
|
|
514
|
+
}, lt = {
|
|
515
515
|
Merge: "merge",
|
|
516
516
|
RangeReplace: "range_replace"
|
|
517
|
-
},
|
|
517
|
+
}, it = {
|
|
518
518
|
Debug: "debug",
|
|
519
519
|
Info: "info",
|
|
520
520
|
Warn: "warn",
|
|
521
521
|
Error: "error"
|
|
522
|
-
},
|
|
522
|
+
}, pt = {
|
|
523
523
|
Persist: "persist",
|
|
524
524
|
Preaggregate: "preaggregate"
|
|
525
|
-
},
|
|
525
|
+
}, dt = {
|
|
526
526
|
Reused: "reused",
|
|
527
527
|
Recomputed: "recomputed"
|
|
528
|
-
},
|
|
528
|
+
}, mt = {
|
|
529
529
|
Live: "live",
|
|
530
530
|
StaleOk: "stale_ok",
|
|
531
531
|
Fail: "fail"
|
|
532
|
-
},
|
|
532
|
+
}, ht = {
|
|
533
533
|
Delta: "delta",
|
|
534
534
|
Full: "full",
|
|
535
535
|
None: "none"
|
|
536
|
-
},
|
|
536
|
+
}, ut = {
|
|
537
537
|
Pending: "PENDING",
|
|
538
538
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
539
539
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
540
540
|
Failed: "FAILED",
|
|
541
541
|
Cancelled: "CANCELLED"
|
|
542
|
-
},
|
|
542
|
+
}, gt = {
|
|
543
|
+
Compile: "compile",
|
|
544
|
+
Extraction: "extraction"
|
|
545
|
+
}, Pt = {
|
|
543
546
|
Markdown: "markdown",
|
|
544
547
|
Code: "code"
|
|
545
|
-
},
|
|
548
|
+
}, Vt = {
|
|
546
549
|
Markdown: "markdown",
|
|
547
550
|
Query: "query",
|
|
548
551
|
Definition: "definition"
|
|
549
|
-
},
|
|
552
|
+
}, vt = {
|
|
550
553
|
Markdown: "markdown",
|
|
551
554
|
Code: "code"
|
|
552
|
-
},
|
|
555
|
+
}, bt = {
|
|
553
556
|
Markdown: "markdown",
|
|
554
557
|
Query: "query",
|
|
555
558
|
Definition: "definition"
|
|
556
|
-
},
|
|
559
|
+
}, St = {
|
|
557
560
|
Archive: "archive",
|
|
558
561
|
Unarchive: "unarchive"
|
|
559
|
-
},
|
|
562
|
+
}, kt = {
|
|
560
563
|
Version: "version",
|
|
561
564
|
Package: "package"
|
|
562
|
-
},
|
|
565
|
+
}, Ot = {
|
|
563
566
|
Declared: "declared",
|
|
564
567
|
All: "all"
|
|
565
|
-
},
|
|
568
|
+
}, At = {
|
|
566
569
|
Unbound: "unbound",
|
|
567
570
|
Bound: "bound",
|
|
568
571
|
LiveFallback: "live_fallback"
|
|
569
|
-
},
|
|
572
|
+
}, yt = {
|
|
570
573
|
Lexical: "lexical",
|
|
571
574
|
Indexing: "indexing",
|
|
572
575
|
Ready: "ready",
|
|
573
576
|
Error: "error",
|
|
574
577
|
Cooldown: "cooldown",
|
|
575
578
|
TooManyEntities: "too-many-entities"
|
|
576
|
-
},
|
|
579
|
+
}, Ct = {
|
|
577
580
|
Cooldown: "cooldown",
|
|
578
581
|
TooManyEntities: "too-many-entities"
|
|
579
|
-
},
|
|
582
|
+
}, It = {
|
|
580
583
|
Keyphrase: "keyphrase",
|
|
581
584
|
SourceSummary: "source_summary"
|
|
582
|
-
},
|
|
583
|
-
Persist: "persist",
|
|
584
|
-
Preaggregate: "preaggregate"
|
|
585
|
-
}, At = {
|
|
585
|
+
}, xt = {
|
|
586
586
|
Archive: "archive",
|
|
587
587
|
Unarchive: "unarchive"
|
|
588
|
-
},
|
|
588
|
+
}, Rt = {
|
|
589
|
+
Unbound: "unbound",
|
|
590
|
+
Bound: "bound",
|
|
591
|
+
LiveFallback: "live_fallback"
|
|
592
|
+
}, Nt = {
|
|
589
593
|
Archive: "archive",
|
|
590
594
|
Unarchive: "unarchive"
|
|
591
|
-
},
|
|
595
|
+
}, Ut = {
|
|
596
|
+
Version: "version",
|
|
597
|
+
Package: "package"
|
|
598
|
+
}, Tt = {
|
|
599
|
+
Declared: "declared",
|
|
600
|
+
All: "all"
|
|
601
|
+
}, Et = {
|
|
602
|
+
Unbound: "unbound",
|
|
603
|
+
Bound: "bound",
|
|
604
|
+
LiveFallback: "live_fallback"
|
|
605
|
+
}, ft = {
|
|
606
|
+
Archive: "archive",
|
|
607
|
+
Unarchive: "unarchive"
|
|
608
|
+
}, wt = {
|
|
609
|
+
Unbound: "unbound",
|
|
610
|
+
Bound: "bound",
|
|
611
|
+
LiveFallback: "live_fallback"
|
|
612
|
+
}, Mt = {
|
|
613
|
+
Archive: "archive",
|
|
614
|
+
Unarchive: "unarchive"
|
|
615
|
+
}, Ft = {
|
|
616
|
+
Archive: "archive",
|
|
617
|
+
Unarchive: "unarchive"
|
|
618
|
+
}, Bt = {
|
|
592
619
|
Error: "error",
|
|
593
620
|
Warn: "warn"
|
|
594
|
-
},
|
|
621
|
+
}, jt = {
|
|
595
622
|
Persist: "persist",
|
|
596
623
|
Preaggregate: "preaggregate"
|
|
597
|
-
},
|
|
624
|
+
}, Dt = {
|
|
598
625
|
Disable: "disable",
|
|
599
626
|
NoVerify: "no-verify",
|
|
600
627
|
VerifyCa: "verify-ca",
|
|
601
628
|
VerifyFull: "verify-full"
|
|
602
|
-
},
|
|
629
|
+
}, Lt = {
|
|
603
630
|
Interactive: "interactive",
|
|
604
631
|
Materialize: "materialize",
|
|
605
632
|
Index: "index",
|
|
606
633
|
Ops: "ops"
|
|
607
|
-
},
|
|
634
|
+
}, Qt = {
|
|
608
635
|
Query: "query",
|
|
609
636
|
ServerDefault: "server_default"
|
|
610
|
-
},
|
|
637
|
+
}, qt = {
|
|
611
638
|
Storage: "storage",
|
|
612
639
|
LiveFallback: "live_fallback"
|
|
613
|
-
},
|
|
640
|
+
}, zt = {
|
|
614
641
|
Malloynb: "malloynb",
|
|
615
642
|
Malloy: "malloy"
|
|
616
|
-
},
|
|
643
|
+
}, Ht = {
|
|
617
644
|
Snapshot: "SNAPSHOT",
|
|
618
645
|
Copy: "COPY"
|
|
619
|
-
},
|
|
646
|
+
}, _t = {
|
|
620
647
|
Storage: "storage",
|
|
621
648
|
Colocated: "colocated",
|
|
622
649
|
Preaggregate: "preaggregate"
|
|
623
|
-
},
|
|
650
|
+
}, Gt = {
|
|
624
651
|
FreeParameter: "free_parameter",
|
|
625
652
|
Given: "given",
|
|
626
653
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
@@ -636,43 +663,49 @@ const b = function(l, ...r) {
|
|
|
636
663
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
637
664
|
PublicSurfaceUnknown: "public_surface_unknown",
|
|
638
665
|
ReadOnlyDialect: "read_only_dialect"
|
|
639
|
-
},
|
|
666
|
+
}, Wt = {
|
|
640
667
|
Grid: "grid",
|
|
641
668
|
Linear: "linear"
|
|
642
|
-
},
|
|
669
|
+
}, Kt = {
|
|
643
670
|
Malloynb: "malloynb",
|
|
644
671
|
Malloy: "malloy"
|
|
645
|
-
},
|
|
672
|
+
}, $t = {
|
|
646
673
|
Grid: "grid",
|
|
647
674
|
Linear: "linear"
|
|
648
|
-
},
|
|
675
|
+
}, Yt = {
|
|
649
676
|
Query: "query",
|
|
650
677
|
Text: "text"
|
|
651
|
-
},
|
|
678
|
+
}, Jt = {
|
|
652
679
|
Publish: "publish",
|
|
653
680
|
OnDemand: "on_demand",
|
|
654
681
|
Scheduler: "scheduler"
|
|
655
|
-
},
|
|
682
|
+
}, Xt = {
|
|
656
683
|
Config: "config",
|
|
657
684
|
CredentialChain: "credential_chain"
|
|
658
|
-
},
|
|
685
|
+
}, Zt = {
|
|
659
686
|
Initializing: "initializing",
|
|
660
687
|
Serving: "serving",
|
|
661
688
|
Draining: "draining",
|
|
662
689
|
Throttled: "throttled"
|
|
663
|
-
},
|
|
690
|
+
}, en = {
|
|
664
691
|
Off: "off",
|
|
665
692
|
On: "on"
|
|
666
|
-
},
|
|
693
|
+
}, an = {
|
|
667
694
|
OnPublish: "on-publish",
|
|
668
695
|
Explicit: "explicit"
|
|
669
|
-
},
|
|
696
|
+
}, tn = {
|
|
697
|
+
Explorer: "explorer",
|
|
698
|
+
Viewer: "viewer"
|
|
699
|
+
}, nn = {
|
|
670
700
|
Bundled: "bundled",
|
|
671
701
|
Package: "package"
|
|
672
|
-
},
|
|
702
|
+
}, rn = {
|
|
673
703
|
Bundled: "bundled",
|
|
674
704
|
Package: "package"
|
|
675
|
-
},
|
|
705
|
+
}, on = {
|
|
706
|
+
Persist: "persist",
|
|
707
|
+
Preaggregate: "preaggregate"
|
|
708
|
+
}, sn = {
|
|
676
709
|
Light: "light",
|
|
677
710
|
Dark: "dark",
|
|
678
711
|
Auto: "auto"
|
|
@@ -691,14 +724,14 @@ const b = function(l, ...r) {
|
|
|
691
724
|
*/
|
|
692
725
|
getAgent: async (r, e, t, a, n, o = {}) => {
|
|
693
726
|
m("getAgent", "environmentName", r), m("getAgent", "packageName", e), m("getAgent", "agentName", t);
|
|
694
|
-
const s = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), c = new URL(s,
|
|
727
|
+
const s = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
695
728
|
let i;
|
|
696
729
|
l && (i = l.baseOptions);
|
|
697
730
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
698
|
-
a !== void 0 && (h.skills = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json",
|
|
731
|
+
a !== void 0 && (h.skills = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
|
|
699
732
|
let k = i && i.headers ? i.headers : {};
|
|
700
733
|
return p.headers = { ...d, ...k, ...o.headers }, {
|
|
701
|
-
url:
|
|
734
|
+
url: b(c),
|
|
702
735
|
options: p
|
|
703
736
|
};
|
|
704
737
|
},
|
|
@@ -715,14 +748,14 @@ const b = function(l, ...r) {
|
|
|
715
748
|
*/
|
|
716
749
|
getAgentSkillFile: async (r, e, t, a, n, o = {}) => {
|
|
717
750
|
m("getAgentSkillFile", "environmentName", r), m("getAgentSkillFile", "packageName", e), m("getAgentSkillFile", "agentName", t), m("getAgentSkillFile", "relativeFilepath", a);
|
|
718
|
-
const s = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), c = new URL(s,
|
|
751
|
+
const s = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), c = new URL(s, V);
|
|
719
752
|
let i;
|
|
720
753
|
l && (i = l.baseOptions);
|
|
721
754
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
722
|
-
n !== void 0 && (h.versionId = n), d.Accept = "application/json",
|
|
755
|
+
n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
|
|
723
756
|
let k = i && i.headers ? i.headers : {};
|
|
724
757
|
return p.headers = { ...d, ...k, ...o.headers }, {
|
|
725
|
-
url:
|
|
758
|
+
url: b(c),
|
|
726
759
|
options: p
|
|
727
760
|
};
|
|
728
761
|
},
|
|
@@ -737,14 +770,14 @@ const b = function(l, ...r) {
|
|
|
737
770
|
*/
|
|
738
771
|
listAgents: async (r, e, t, a = {}) => {
|
|
739
772
|
m("listAgents", "environmentName", r), m("listAgents", "packageName", e);
|
|
740
|
-
const n = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
773
|
+
const n = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
741
774
|
let s;
|
|
742
775
|
l && (s = l.baseOptions);
|
|
743
776
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
744
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
777
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
745
778
|
let d = s && s.headers ? s.headers : {};
|
|
746
779
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
747
|
-
url:
|
|
780
|
+
url: b(o),
|
|
748
781
|
options: c
|
|
749
782
|
};
|
|
750
783
|
}
|
|
@@ -764,7 +797,7 @@ const b = function(l, ...r) {
|
|
|
764
797
|
* @throws {RequiredError}
|
|
765
798
|
*/
|
|
766
799
|
async getAgent(e, t, a, n, o, s) {
|
|
767
|
-
const c = await r.getAgent(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
800
|
+
const c = await r.getAgent(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgent"]?.[i]?.url;
|
|
768
801
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
769
802
|
},
|
|
770
803
|
/**
|
|
@@ -779,7 +812,7 @@ const b = function(l, ...r) {
|
|
|
779
812
|
* @throws {RequiredError}
|
|
780
813
|
*/
|
|
781
814
|
async getAgentSkillFile(e, t, a, n, o, s) {
|
|
782
|
-
const c = await r.getAgentSkillFile(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
815
|
+
const c = await r.getAgentSkillFile(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["AgentsApi.getAgentSkillFile"]?.[i]?.url;
|
|
783
816
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
784
817
|
},
|
|
785
818
|
/**
|
|
@@ -792,11 +825,11 @@ const b = function(l, ...r) {
|
|
|
792
825
|
* @throws {RequiredError}
|
|
793
826
|
*/
|
|
794
827
|
async listAgents(e, t, a, n) {
|
|
795
|
-
const o = await r.listAgents(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
828
|
+
const o = await r.listAgents(e, t, a, n), s = l?.serverIndex ?? 0, c = P["AgentsApi.listAgents"]?.[s]?.url;
|
|
796
829
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
797
830
|
}
|
|
798
831
|
};
|
|
799
|
-
},
|
|
832
|
+
}, cn = function(l, r, e) {
|
|
800
833
|
const t = z(l);
|
|
801
834
|
return {
|
|
802
835
|
/**
|
|
@@ -841,7 +874,7 @@ const b = function(l, ...r) {
|
|
|
841
874
|
}
|
|
842
875
|
};
|
|
843
876
|
};
|
|
844
|
-
class
|
|
877
|
+
class ze extends C {
|
|
845
878
|
/**
|
|
846
879
|
* 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.
|
|
847
880
|
* @summary Get one agent, resolved
|
|
@@ -883,10 +916,10 @@ class $t extends C {
|
|
|
883
916
|
return z(this.configuration).listAgents(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
884
917
|
}
|
|
885
918
|
}
|
|
886
|
-
const
|
|
919
|
+
const ln = {
|
|
887
920
|
Full: "full",
|
|
888
921
|
Summary: "summary"
|
|
889
|
-
},
|
|
922
|
+
}, He = function(l) {
|
|
890
923
|
return {
|
|
891
924
|
/**
|
|
892
925
|
* Creates a new database connection in the specified environment.
|
|
@@ -899,14 +932,14 @@ const Kt = {
|
|
|
899
932
|
*/
|
|
900
933
|
createConnection: async (r, e, t, a = {}) => {
|
|
901
934
|
m("createConnection", "environmentName", r), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
|
|
902
|
-
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
935
|
+
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
903
936
|
let s;
|
|
904
937
|
l && (s = l.baseOptions);
|
|
905
938
|
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
906
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
939
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
907
940
|
let d = s && s.headers ? s.headers : {};
|
|
908
941
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
909
|
-
url:
|
|
942
|
+
url: b(o),
|
|
910
943
|
options: c
|
|
911
944
|
};
|
|
912
945
|
},
|
|
@@ -920,14 +953,14 @@ const Kt = {
|
|
|
920
953
|
*/
|
|
921
954
|
deleteConnection: async (r, e, t = {}) => {
|
|
922
955
|
m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", e);
|
|
923
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a,
|
|
956
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
|
|
924
957
|
let o;
|
|
925
958
|
l && (o = l.baseOptions);
|
|
926
959
|
const s = { method: "DELETE", ...o, ...t }, c = {}, i = {};
|
|
927
|
-
c.Accept = "application/json",
|
|
960
|
+
c.Accept = "application/json", v(n, i);
|
|
928
961
|
let p = o && o.headers ? o.headers : {};
|
|
929
962
|
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
930
|
-
url:
|
|
963
|
+
url: b(n),
|
|
931
964
|
options: s
|
|
932
965
|
};
|
|
933
966
|
},
|
|
@@ -941,14 +974,14 @@ const Kt = {
|
|
|
941
974
|
*/
|
|
942
975
|
getConnection: async (r, e, t = {}) => {
|
|
943
976
|
m("getConnection", "environmentName", r), m("getConnection", "connectionName", e);
|
|
944
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a,
|
|
977
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
|
|
945
978
|
let o;
|
|
946
979
|
l && (o = l.baseOptions);
|
|
947
980
|
const s = { method: "GET", ...o, ...t }, c = {}, i = {};
|
|
948
|
-
c.Accept = "application/json",
|
|
981
|
+
c.Accept = "application/json", v(n, i);
|
|
949
982
|
let p = o && o.headers ? o.headers : {};
|
|
950
983
|
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
951
|
-
url:
|
|
984
|
+
url: b(n),
|
|
952
985
|
options: s
|
|
953
986
|
};
|
|
954
987
|
},
|
|
@@ -964,14 +997,14 @@ const Kt = {
|
|
|
964
997
|
*/
|
|
965
998
|
getTable: async (r, e, t, a, n = {}) => {
|
|
966
999
|
m("getTable", "environmentName", r), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
|
|
967
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o,
|
|
1000
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
968
1001
|
let c;
|
|
969
1002
|
l && (c = l.baseOptions);
|
|
970
1003
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
971
|
-
p.Accept = "application/json",
|
|
1004
|
+
p.Accept = "application/json", v(s, d);
|
|
972
1005
|
let h = c && c.headers ? c.headers : {};
|
|
973
1006
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
974
|
-
url:
|
|
1007
|
+
url: b(s),
|
|
975
1008
|
options: i
|
|
976
1009
|
};
|
|
977
1010
|
},
|
|
@@ -989,14 +1022,14 @@ const Kt = {
|
|
|
989
1022
|
*/
|
|
990
1023
|
getTableInPackage: async (r, e, t, a, n, o, s = {}) => {
|
|
991
1024
|
m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", n);
|
|
992
|
-
const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), i = new URL(c,
|
|
1025
|
+
const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), i = new URL(c, V);
|
|
993
1026
|
let p;
|
|
994
1027
|
l && (p = l.baseOptions);
|
|
995
1028
|
const d = { method: "GET", ...p, ...s }, h = {}, k = {};
|
|
996
|
-
o !== void 0 && (k.versionId = o), h.Accept = "application/json",
|
|
1029
|
+
o !== void 0 && (k.versionId = o), h.Accept = "application/json", v(i, k);
|
|
997
1030
|
let O = p && p.headers ? p.headers : {};
|
|
998
1031
|
return d.headers = { ...h, ...O, ...s.headers }, {
|
|
999
|
-
url:
|
|
1032
|
+
url: b(i),
|
|
1000
1033
|
options: d
|
|
1001
1034
|
};
|
|
1002
1035
|
},
|
|
@@ -1009,14 +1042,14 @@ const Kt = {
|
|
|
1009
1042
|
*/
|
|
1010
1043
|
listConnections: async (r, e = {}) => {
|
|
1011
1044
|
m("listConnections", "environmentName", r);
|
|
1012
|
-
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t,
|
|
1045
|
+
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
|
|
1013
1046
|
let n;
|
|
1014
1047
|
l && (n = l.baseOptions);
|
|
1015
1048
|
const o = { method: "GET", ...n, ...e }, s = {}, c = {};
|
|
1016
|
-
s.Accept = "application/json",
|
|
1049
|
+
s.Accept = "application/json", v(a, c);
|
|
1017
1050
|
let i = n && n.headers ? n.headers : {};
|
|
1018
1051
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
1019
|
-
url:
|
|
1052
|
+
url: b(a),
|
|
1020
1053
|
options: o
|
|
1021
1054
|
};
|
|
1022
1055
|
},
|
|
@@ -1030,14 +1063,14 @@ const Kt = {
|
|
|
1030
1063
|
*/
|
|
1031
1064
|
listSchemas: async (r, e, t = {}) => {
|
|
1032
1065
|
m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", e);
|
|
1033
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a,
|
|
1066
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, V);
|
|
1034
1067
|
let o;
|
|
1035
1068
|
l && (o = l.baseOptions);
|
|
1036
1069
|
const s = { method: "GET", ...o, ...t }, c = {}, i = {};
|
|
1037
|
-
c.Accept = "application/json",
|
|
1070
|
+
c.Accept = "application/json", v(n, i);
|
|
1038
1071
|
let p = o && o.headers ? o.headers : {};
|
|
1039
1072
|
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
1040
|
-
url:
|
|
1073
|
+
url: b(n),
|
|
1041
1074
|
options: s
|
|
1042
1075
|
};
|
|
1043
1076
|
},
|
|
@@ -1053,14 +1086,14 @@ const Kt = {
|
|
|
1053
1086
|
*/
|
|
1054
1087
|
listSchemasInPackage: async (r, e, t, a, n = {}) => {
|
|
1055
1088
|
m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
|
|
1056
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1089
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
1057
1090
|
let c;
|
|
1058
1091
|
l && (c = l.baseOptions);
|
|
1059
1092
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
1060
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
1093
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
1061
1094
|
let h = c && c.headers ? c.headers : {};
|
|
1062
1095
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
1063
|
-
url:
|
|
1096
|
+
url: b(s),
|
|
1064
1097
|
options: i
|
|
1065
1098
|
};
|
|
1066
1099
|
},
|
|
@@ -1076,14 +1109,14 @@ const Kt = {
|
|
|
1076
1109
|
*/
|
|
1077
1110
|
listTables: async (r, e, t, a, n = {}) => {
|
|
1078
1111
|
m("listTables", "environmentName", r), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
|
|
1079
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1112
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
1080
1113
|
let c;
|
|
1081
1114
|
l && (c = l.baseOptions);
|
|
1082
1115
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
1083
|
-
a && (d.tableNames = a), p.Accept = "application/json",
|
|
1116
|
+
a && (d.tableNames = a), p.Accept = "application/json", v(s, d);
|
|
1084
1117
|
let h = c && c.headers ? c.headers : {};
|
|
1085
1118
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
1086
|
-
url:
|
|
1119
|
+
url: b(s),
|
|
1087
1120
|
options: i
|
|
1088
1121
|
};
|
|
1089
1122
|
},
|
|
@@ -1101,14 +1134,14 @@ const Kt = {
|
|
|
1101
1134
|
*/
|
|
1102
1135
|
listTablesInPackage: async (r, e, t, a, n, o, s = {}) => {
|
|
1103
1136
|
m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
|
|
1104
|
-
const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), i = new URL(c,
|
|
1137
|
+
const c = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), i = new URL(c, V);
|
|
1105
1138
|
let p;
|
|
1106
1139
|
l && (p = l.baseOptions);
|
|
1107
1140
|
const d = { method: "GET", ...p, ...s }, h = {}, k = {};
|
|
1108
|
-
n && (k.tableNames = n), o !== void 0 && (k.versionId = o), h.Accept = "application/json",
|
|
1141
|
+
n && (k.tableNames = n), o !== void 0 && (k.versionId = o), h.Accept = "application/json", v(i, k);
|
|
1109
1142
|
let O = p && p.headers ? p.headers : {};
|
|
1110
1143
|
return d.headers = { ...h, ...O, ...s.headers }, {
|
|
1111
|
-
url:
|
|
1144
|
+
url: b(i),
|
|
1112
1145
|
options: d
|
|
1113
1146
|
};
|
|
1114
1147
|
},
|
|
@@ -1123,14 +1156,14 @@ const Kt = {
|
|
|
1123
1156
|
*/
|
|
1124
1157
|
postQuerydata: async (r, e, t, a = {}) => {
|
|
1125
1158
|
m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
|
|
1126
|
-
const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
1159
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
1127
1160
|
let s;
|
|
1128
1161
|
l && (s = l.baseOptions);
|
|
1129
1162
|
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1130
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1163
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1131
1164
|
let d = s && s.headers ? s.headers : {};
|
|
1132
1165
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
1133
|
-
url:
|
|
1166
|
+
url: b(o),
|
|
1134
1167
|
options: c
|
|
1135
1168
|
};
|
|
1136
1169
|
},
|
|
@@ -1147,14 +1180,14 @@ const Kt = {
|
|
|
1147
1180
|
*/
|
|
1148
1181
|
postQuerydataInPackage: async (r, e, t, a, n, o = {}) => {
|
|
1149
1182
|
m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
1150
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s,
|
|
1183
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
1151
1184
|
let i;
|
|
1152
1185
|
l && (i = l.baseOptions);
|
|
1153
1186
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
1154
|
-
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
1187
|
+
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
|
|
1155
1188
|
let k = i && i.headers ? i.headers : {};
|
|
1156
1189
|
return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
|
|
1157
|
-
url:
|
|
1190
|
+
url: b(c),
|
|
1158
1191
|
options: p
|
|
1159
1192
|
};
|
|
1160
1193
|
},
|
|
@@ -1169,14 +1202,14 @@ const Kt = {
|
|
|
1169
1202
|
*/
|
|
1170
1203
|
postSqlsource: async (r, e, t, a = {}) => {
|
|
1171
1204
|
m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
|
|
1172
|
-
const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
1205
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
1173
1206
|
let s;
|
|
1174
1207
|
l && (s = l.baseOptions);
|
|
1175
1208
|
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1176
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1209
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1177
1210
|
let d = s && s.headers ? s.headers : {};
|
|
1178
1211
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
1179
|
-
url:
|
|
1212
|
+
url: b(o),
|
|
1180
1213
|
options: c
|
|
1181
1214
|
};
|
|
1182
1215
|
},
|
|
@@ -1193,14 +1226,14 @@ const Kt = {
|
|
|
1193
1226
|
*/
|
|
1194
1227
|
postSqlsourceInPackage: async (r, e, t, a, n, o = {}) => {
|
|
1195
1228
|
m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
1196
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s,
|
|
1229
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
1197
1230
|
let i;
|
|
1198
1231
|
l && (i = l.baseOptions);
|
|
1199
1232
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
1200
|
-
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
1233
|
+
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
|
|
1201
1234
|
let k = i && i.headers ? i.headers : {};
|
|
1202
1235
|
return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
|
|
1203
|
-
url:
|
|
1236
|
+
url: b(c),
|
|
1204
1237
|
options: p
|
|
1205
1238
|
};
|
|
1206
1239
|
},
|
|
@@ -1215,14 +1248,14 @@ const Kt = {
|
|
|
1215
1248
|
*/
|
|
1216
1249
|
postTemporarytable: async (r, e, t, a = {}) => {
|
|
1217
1250
|
m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
|
|
1218
|
-
const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
1251
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
1219
1252
|
let s;
|
|
1220
1253
|
l && (s = l.baseOptions);
|
|
1221
1254
|
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1222
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1255
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1223
1256
|
let d = s && s.headers ? s.headers : {};
|
|
1224
1257
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
1225
|
-
url:
|
|
1258
|
+
url: b(o),
|
|
1226
1259
|
options: c
|
|
1227
1260
|
};
|
|
1228
1261
|
},
|
|
@@ -1239,14 +1272,14 @@ const Kt = {
|
|
|
1239
1272
|
*/
|
|
1240
1273
|
postTemporarytableInPackage: async (r, e, t, a, n, o = {}) => {
|
|
1241
1274
|
m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
1242
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s,
|
|
1275
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
1243
1276
|
let i;
|
|
1244
1277
|
l && (i = l.baseOptions);
|
|
1245
1278
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
1246
|
-
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
1279
|
+
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
|
|
1247
1280
|
let k = i && i.headers ? i.headers : {};
|
|
1248
1281
|
return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
|
|
1249
|
-
url:
|
|
1282
|
+
url: b(c),
|
|
1250
1283
|
options: p
|
|
1251
1284
|
};
|
|
1252
1285
|
},
|
|
@@ -1261,20 +1294,20 @@ const Kt = {
|
|
|
1261
1294
|
*/
|
|
1262
1295
|
updateConnection: async (r, e, t, a = {}) => {
|
|
1263
1296
|
m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
|
|
1264
|
-
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
1297
|
+
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
1265
1298
|
let s;
|
|
1266
1299
|
l && (s = l.baseOptions);
|
|
1267
1300
|
const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
1268
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1301
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1269
1302
|
let d = s && s.headers ? s.headers : {};
|
|
1270
1303
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
1271
|
-
url:
|
|
1304
|
+
url: b(o),
|
|
1272
1305
|
options: c
|
|
1273
1306
|
};
|
|
1274
1307
|
}
|
|
1275
1308
|
};
|
|
1276
1309
|
}, y = function(l) {
|
|
1277
|
-
const r =
|
|
1310
|
+
const r = He(l);
|
|
1278
1311
|
return {
|
|
1279
1312
|
/**
|
|
1280
1313
|
* Creates a new database connection in the specified environment.
|
|
@@ -1286,7 +1319,7 @@ const Kt = {
|
|
|
1286
1319
|
* @throws {RequiredError}
|
|
1287
1320
|
*/
|
|
1288
1321
|
async createConnection(e, t, a, n) {
|
|
1289
|
-
const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
1322
|
+
const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
1290
1323
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
1291
1324
|
},
|
|
1292
1325
|
/**
|
|
@@ -1298,7 +1331,7 @@ const Kt = {
|
|
|
1298
1331
|
* @throws {RequiredError}
|
|
1299
1332
|
*/
|
|
1300
1333
|
async deleteConnection(e, t, a) {
|
|
1301
|
-
const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
1334
|
+
const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
1302
1335
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
1303
1336
|
},
|
|
1304
1337
|
/**
|
|
@@ -1310,7 +1343,7 @@ const Kt = {
|
|
|
1310
1343
|
* @throws {RequiredError}
|
|
1311
1344
|
*/
|
|
1312
1345
|
async getConnection(e, t, a) {
|
|
1313
|
-
const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
1346
|
+
const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
1314
1347
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
1315
1348
|
},
|
|
1316
1349
|
/**
|
|
@@ -1324,7 +1357,7 @@ const Kt = {
|
|
|
1324
1357
|
* @throws {RequiredError}
|
|
1325
1358
|
*/
|
|
1326
1359
|
async getTable(e, t, a, n, o) {
|
|
1327
|
-
const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
1360
|
+
const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
|
|
1328
1361
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
1329
1362
|
},
|
|
1330
1363
|
/**
|
|
@@ -1340,7 +1373,7 @@ const Kt = {
|
|
|
1340
1373
|
* @throws {RequiredError}
|
|
1341
1374
|
*/
|
|
1342
1375
|
async getTableInPackage(e, t, a, n, o, s, c) {
|
|
1343
|
-
const i = await r.getTableInPackage(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d =
|
|
1376
|
+
const i = await r.getTableInPackage(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[p]?.url;
|
|
1344
1377
|
return (h, k) => S(i, u, g, l)(h, d || k);
|
|
1345
1378
|
},
|
|
1346
1379
|
/**
|
|
@@ -1351,7 +1384,7 @@ const Kt = {
|
|
|
1351
1384
|
* @throws {RequiredError}
|
|
1352
1385
|
*/
|
|
1353
1386
|
async listConnections(e, t) {
|
|
1354
|
-
const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o =
|
|
1387
|
+
const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[n]?.url;
|
|
1355
1388
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
1356
1389
|
},
|
|
1357
1390
|
/**
|
|
@@ -1363,7 +1396,7 @@ const Kt = {
|
|
|
1363
1396
|
* @throws {RequiredError}
|
|
1364
1397
|
*/
|
|
1365
1398
|
async listSchemas(e, t, a) {
|
|
1366
|
-
const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
1399
|
+
const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
1367
1400
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
1368
1401
|
},
|
|
1369
1402
|
/**
|
|
@@ -1377,7 +1410,7 @@ const Kt = {
|
|
|
1377
1410
|
* @throws {RequiredError}
|
|
1378
1411
|
*/
|
|
1379
1412
|
async listSchemasInPackage(e, t, a, n, o) {
|
|
1380
|
-
const s = await r.listSchemasInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
1413
|
+
const s = await r.listSchemasInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listSchemasInPackage"]?.[c]?.url;
|
|
1381
1414
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
1382
1415
|
},
|
|
1383
1416
|
/**
|
|
@@ -1391,7 +1424,7 @@ const Kt = {
|
|
|
1391
1424
|
* @throws {RequiredError}
|
|
1392
1425
|
*/
|
|
1393
1426
|
async listTables(e, t, a, n, o) {
|
|
1394
|
-
const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
1427
|
+
const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
|
|
1395
1428
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
1396
1429
|
},
|
|
1397
1430
|
/**
|
|
@@ -1407,7 +1440,7 @@ const Kt = {
|
|
|
1407
1440
|
* @throws {RequiredError}
|
|
1408
1441
|
*/
|
|
1409
1442
|
async listTablesInPackage(e, t, a, n, o, s, c) {
|
|
1410
|
-
const i = await r.listTablesInPackage(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d =
|
|
1443
|
+
const i = await r.listTablesInPackage(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[p]?.url;
|
|
1411
1444
|
return (h, k) => S(i, u, g, l)(h, d || k);
|
|
1412
1445
|
},
|
|
1413
1446
|
/**
|
|
@@ -1420,7 +1453,7 @@ const Kt = {
|
|
|
1420
1453
|
* @throws {RequiredError}
|
|
1421
1454
|
*/
|
|
1422
1455
|
async postQuerydata(e, t, a, n) {
|
|
1423
|
-
const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
1456
|
+
const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
1424
1457
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
1425
1458
|
},
|
|
1426
1459
|
/**
|
|
@@ -1435,7 +1468,7 @@ const Kt = {
|
|
|
1435
1468
|
* @throws {RequiredError}
|
|
1436
1469
|
*/
|
|
1437
1470
|
async postQuerydataInPackage(e, t, a, n, o, s) {
|
|
1438
|
-
const c = await r.postQuerydataInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
1471
|
+
const c = await r.postQuerydataInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
|
|
1439
1472
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
1440
1473
|
},
|
|
1441
1474
|
/**
|
|
@@ -1448,7 +1481,7 @@ const Kt = {
|
|
|
1448
1481
|
* @throws {RequiredError}
|
|
1449
1482
|
*/
|
|
1450
1483
|
async postSqlsource(e, t, a, n) {
|
|
1451
|
-
const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
1484
|
+
const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
1452
1485
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
1453
1486
|
},
|
|
1454
1487
|
/**
|
|
@@ -1463,7 +1496,7 @@ const Kt = {
|
|
|
1463
1496
|
* @throws {RequiredError}
|
|
1464
1497
|
*/
|
|
1465
1498
|
async postSqlsourceInPackage(e, t, a, n, o, s) {
|
|
1466
|
-
const c = await r.postSqlsourceInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
1499
|
+
const c = await r.postSqlsourceInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postSqlsourceInPackage"]?.[i]?.url;
|
|
1467
1500
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
1468
1501
|
},
|
|
1469
1502
|
/**
|
|
@@ -1476,7 +1509,7 @@ const Kt = {
|
|
|
1476
1509
|
* @throws {RequiredError}
|
|
1477
1510
|
*/
|
|
1478
1511
|
async postTemporarytable(e, t, a, n) {
|
|
1479
|
-
const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
1512
|
+
const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
1480
1513
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
1481
1514
|
},
|
|
1482
1515
|
/**
|
|
@@ -1491,7 +1524,7 @@ const Kt = {
|
|
|
1491
1524
|
* @throws {RequiredError}
|
|
1492
1525
|
*/
|
|
1493
1526
|
async postTemporarytableInPackage(e, t, a, n, o, s) {
|
|
1494
|
-
const c = await r.postTemporarytableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
1527
|
+
const c = await r.postTemporarytableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postTemporarytableInPackage"]?.[i]?.url;
|
|
1495
1528
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
1496
1529
|
},
|
|
1497
1530
|
/**
|
|
@@ -1504,11 +1537,11 @@ const Kt = {
|
|
|
1504
1537
|
* @throws {RequiredError}
|
|
1505
1538
|
*/
|
|
1506
1539
|
async updateConnection(e, t, a, n) {
|
|
1507
|
-
const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
1540
|
+
const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
1508
1541
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
1509
1542
|
}
|
|
1510
1543
|
};
|
|
1511
|
-
},
|
|
1544
|
+
}, pn = function(l, r, e) {
|
|
1512
1545
|
const t = y(l);
|
|
1513
1546
|
return {
|
|
1514
1547
|
/**
|
|
@@ -1727,7 +1760,7 @@ const Kt = {
|
|
|
1727
1760
|
}
|
|
1728
1761
|
};
|
|
1729
1762
|
};
|
|
1730
|
-
class
|
|
1763
|
+
class _e extends C {
|
|
1731
1764
|
/**
|
|
1732
1765
|
* Creates a new database connection in the specified environment.
|
|
1733
1766
|
* @summary Create a new database connection
|
|
@@ -1943,7 +1976,7 @@ class ze extends C {
|
|
|
1943
1976
|
return y(this.configuration).updateConnection(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1944
1977
|
}
|
|
1945
1978
|
}
|
|
1946
|
-
const
|
|
1979
|
+
const Ge = function(l) {
|
|
1947
1980
|
return {
|
|
1948
1981
|
/**
|
|
1949
1982
|
* 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.
|
|
@@ -1954,20 +1987,20 @@ const He = function(l) {
|
|
|
1954
1987
|
*/
|
|
1955
1988
|
testConnectionConfiguration: async (r, e = {}) => {
|
|
1956
1989
|
m("testConnectionConfiguration", "connection", r);
|
|
1957
|
-
const t = "/connections/test", a = new URL(t,
|
|
1990
|
+
const t = "/connections/test", a = new URL(t, V);
|
|
1958
1991
|
let n;
|
|
1959
1992
|
l && (n = l.baseOptions);
|
|
1960
1993
|
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
1961
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
1994
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
|
|
1962
1995
|
let i = n && n.headers ? n.headers : {};
|
|
1963
1996
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
|
|
1964
|
-
url:
|
|
1997
|
+
url: b(a),
|
|
1965
1998
|
options: o
|
|
1966
1999
|
};
|
|
1967
2000
|
}
|
|
1968
2001
|
};
|
|
1969
|
-
},
|
|
1970
|
-
const r =
|
|
2002
|
+
}, he = function(l) {
|
|
2003
|
+
const r = Ge(l);
|
|
1971
2004
|
return {
|
|
1972
2005
|
/**
|
|
1973
2006
|
* 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.
|
|
@@ -1977,12 +2010,12 @@ const He = function(l) {
|
|
|
1977
2010
|
* @throws {RequiredError}
|
|
1978
2011
|
*/
|
|
1979
2012
|
async testConnectionConfiguration(e, t) {
|
|
1980
|
-
const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o =
|
|
2013
|
+
const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
|
|
1981
2014
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
1982
2015
|
}
|
|
1983
2016
|
};
|
|
1984
|
-
},
|
|
1985
|
-
const t =
|
|
2017
|
+
}, dn = function(l, r, e) {
|
|
2018
|
+
const t = he(l);
|
|
1986
2019
|
return {
|
|
1987
2020
|
/**
|
|
1988
2021
|
* 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.
|
|
@@ -1996,7 +2029,7 @@ const He = function(l) {
|
|
|
1996
2029
|
}
|
|
1997
2030
|
};
|
|
1998
2031
|
};
|
|
1999
|
-
class
|
|
2032
|
+
class mn extends C {
|
|
2000
2033
|
/**
|
|
2001
2034
|
* 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.
|
|
2002
2035
|
* @summary Test database connection configuration
|
|
@@ -2005,10 +2038,10 @@ class Xt extends C {
|
|
|
2005
2038
|
* @throws {RequiredError}
|
|
2006
2039
|
*/
|
|
2007
2040
|
testConnectionConfiguration(r, e) {
|
|
2008
|
-
return
|
|
2041
|
+
return he(this.configuration).testConnectionConfiguration(r, e).then((t) => t(this.axios, this.basePath));
|
|
2009
2042
|
}
|
|
2010
2043
|
}
|
|
2011
|
-
const
|
|
2044
|
+
const We = function(l) {
|
|
2012
2045
|
return {
|
|
2013
2046
|
/**
|
|
2014
2047
|
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
@@ -2023,14 +2056,14 @@ const _e = function(l) {
|
|
|
2023
2056
|
*/
|
|
2024
2057
|
getDashboard: async (r, e, t, a, n = {}) => {
|
|
2025
2058
|
m("getDashboard", "environmentName", r), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
|
|
2026
|
-
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2059
|
+
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
2027
2060
|
let c;
|
|
2028
2061
|
l && (c = l.baseOptions);
|
|
2029
2062
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
2030
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
2063
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
2031
2064
|
let h = c && c.headers ? c.headers : {};
|
|
2032
2065
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
2033
|
-
url:
|
|
2066
|
+
url: b(s),
|
|
2034
2067
|
options: i
|
|
2035
2068
|
};
|
|
2036
2069
|
},
|
|
@@ -2046,20 +2079,20 @@ const _e = function(l) {
|
|
|
2046
2079
|
*/
|
|
2047
2080
|
listDashboards: async (r, e, t, a = {}) => {
|
|
2048
2081
|
m("listDashboards", "environmentName", r), m("listDashboards", "packageName", e);
|
|
2049
|
-
const n = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2082
|
+
const n = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
2050
2083
|
let s;
|
|
2051
2084
|
l && (s = l.baseOptions);
|
|
2052
2085
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2053
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
2086
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
2054
2087
|
let d = s && s.headers ? s.headers : {};
|
|
2055
2088
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
2056
|
-
url:
|
|
2089
|
+
url: b(o),
|
|
2057
2090
|
options: c
|
|
2058
2091
|
};
|
|
2059
2092
|
}
|
|
2060
2093
|
};
|
|
2061
2094
|
}, X = function(l) {
|
|
2062
|
-
const r =
|
|
2095
|
+
const r = We(l);
|
|
2063
2096
|
return {
|
|
2064
2097
|
/**
|
|
2065
2098
|
* **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/`.
|
|
@@ -2073,7 +2106,7 @@ const _e = function(l) {
|
|
|
2073
2106
|
* @throws {RequiredError}
|
|
2074
2107
|
*/
|
|
2075
2108
|
async getDashboard(e, t, a, n, o) {
|
|
2076
|
-
const s = await r.getDashboard(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
2109
|
+
const s = await r.getDashboard(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[c]?.url;
|
|
2077
2110
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
2078
2111
|
},
|
|
2079
2112
|
/**
|
|
@@ -2087,11 +2120,11 @@ const _e = function(l) {
|
|
|
2087
2120
|
* @throws {RequiredError}
|
|
2088
2121
|
*/
|
|
2089
2122
|
async listDashboards(e, t, a, n) {
|
|
2090
|
-
const o = await r.listDashboards(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
2123
|
+
const o = await r.listDashboards(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DashboardsApi.listDashboards"]?.[s]?.url;
|
|
2091
2124
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
2092
2125
|
}
|
|
2093
2126
|
};
|
|
2094
|
-
},
|
|
2127
|
+
}, hn = function(l, r, e) {
|
|
2095
2128
|
const t = X(l);
|
|
2096
2129
|
return {
|
|
2097
2130
|
/**
|
|
@@ -2123,7 +2156,7 @@ const _e = function(l) {
|
|
|
2123
2156
|
}
|
|
2124
2157
|
};
|
|
2125
2158
|
};
|
|
2126
|
-
class
|
|
2159
|
+
class Ke extends C {
|
|
2127
2160
|
/**
|
|
2128
2161
|
* **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/`.
|
|
2129
2162
|
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
@@ -2152,7 +2185,7 @@ class Ge extends C {
|
|
|
2152
2185
|
return X(this.configuration).listDashboards(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2153
2186
|
}
|
|
2154
2187
|
}
|
|
2155
|
-
const
|
|
2188
|
+
const $e = function(l) {
|
|
2156
2189
|
return {
|
|
2157
2190
|
/**
|
|
2158
2191
|
* 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.
|
|
@@ -2165,20 +2198,20 @@ const We = function(l) {
|
|
|
2165
2198
|
*/
|
|
2166
2199
|
listDataApps: async (r, e, t, a = {}) => {
|
|
2167
2200
|
m("listDataApps", "environmentName", r), m("listDataApps", "packageName", e);
|
|
2168
|
-
const n = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2201
|
+
const n = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
2169
2202
|
let s;
|
|
2170
2203
|
l && (s = l.baseOptions);
|
|
2171
2204
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2172
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
2205
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
2173
2206
|
let d = s && s.headers ? s.headers : {};
|
|
2174
2207
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
2175
|
-
url:
|
|
2208
|
+
url: b(o),
|
|
2176
2209
|
options: c
|
|
2177
2210
|
};
|
|
2178
2211
|
}
|
|
2179
2212
|
};
|
|
2180
|
-
},
|
|
2181
|
-
const r =
|
|
2213
|
+
}, ue = function(l) {
|
|
2214
|
+
const r = $e(l);
|
|
2182
2215
|
return {
|
|
2183
2216
|
/**
|
|
2184
2217
|
* 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.
|
|
@@ -2190,12 +2223,12 @@ const We = function(l) {
|
|
|
2190
2223
|
* @throws {RequiredError}
|
|
2191
2224
|
*/
|
|
2192
2225
|
async listDataApps(e, t, a, n) {
|
|
2193
|
-
const o = await r.listDataApps(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
2226
|
+
const o = await r.listDataApps(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DataAppsApi.listDataApps"]?.[s]?.url;
|
|
2194
2227
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
2195
2228
|
}
|
|
2196
2229
|
};
|
|
2197
|
-
},
|
|
2198
|
-
const t =
|
|
2230
|
+
}, un = function(l, r, e) {
|
|
2231
|
+
const t = ue(l);
|
|
2199
2232
|
return {
|
|
2200
2233
|
/**
|
|
2201
2234
|
* 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.
|
|
@@ -2211,7 +2244,7 @@ const We = function(l) {
|
|
|
2211
2244
|
}
|
|
2212
2245
|
};
|
|
2213
2246
|
};
|
|
2214
|
-
class
|
|
2247
|
+
class Ye extends C {
|
|
2215
2248
|
/**
|
|
2216
2249
|
* 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.
|
|
2217
2250
|
* @summary List package data apps
|
|
@@ -2222,10 +2255,10 @@ class $e extends C {
|
|
|
2222
2255
|
* @throws {RequiredError}
|
|
2223
2256
|
*/
|
|
2224
2257
|
listDataApps(r, e, t, a) {
|
|
2225
|
-
return
|
|
2258
|
+
return ue(this.configuration).listDataApps(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2226
2259
|
}
|
|
2227
2260
|
}
|
|
2228
|
-
const
|
|
2261
|
+
const Je = function(l) {
|
|
2229
2262
|
return {
|
|
2230
2263
|
/**
|
|
2231
2264
|
* 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.
|
|
@@ -2238,20 +2271,20 @@ const Ke = function(l) {
|
|
|
2238
2271
|
*/
|
|
2239
2272
|
listDatabases: async (r, e, t, a = {}) => {
|
|
2240
2273
|
m("listDatabases", "environmentName", r), m("listDatabases", "packageName", e);
|
|
2241
|
-
const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2274
|
+
const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
2242
2275
|
let s;
|
|
2243
2276
|
l && (s = l.baseOptions);
|
|
2244
2277
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2245
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
2278
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
2246
2279
|
let d = s && s.headers ? s.headers : {};
|
|
2247
2280
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
2248
|
-
url:
|
|
2281
|
+
url: b(o),
|
|
2249
2282
|
options: c
|
|
2250
2283
|
};
|
|
2251
2284
|
}
|
|
2252
2285
|
};
|
|
2253
|
-
},
|
|
2254
|
-
const r =
|
|
2286
|
+
}, ge = function(l) {
|
|
2287
|
+
const r = Je(l);
|
|
2255
2288
|
return {
|
|
2256
2289
|
/**
|
|
2257
2290
|
* 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.
|
|
@@ -2263,12 +2296,12 @@ const Ke = function(l) {
|
|
|
2263
2296
|
* @throws {RequiredError}
|
|
2264
2297
|
*/
|
|
2265
2298
|
async listDatabases(e, t, a, n) {
|
|
2266
|
-
const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
2299
|
+
const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
2267
2300
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
2268
2301
|
}
|
|
2269
2302
|
};
|
|
2270
|
-
},
|
|
2271
|
-
const t =
|
|
2303
|
+
}, gn = function(l, r, e) {
|
|
2304
|
+
const t = ge(l);
|
|
2272
2305
|
return {
|
|
2273
2306
|
/**
|
|
2274
2307
|
* 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.
|
|
@@ -2284,7 +2317,7 @@ const Ke = function(l) {
|
|
|
2284
2317
|
}
|
|
2285
2318
|
};
|
|
2286
2319
|
};
|
|
2287
|
-
class
|
|
2320
|
+
class Xe extends C {
|
|
2288
2321
|
/**
|
|
2289
2322
|
* 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.
|
|
2290
2323
|
* @summary List embedded databases
|
|
@@ -2295,10 +2328,10 @@ class Ye extends C {
|
|
|
2295
2328
|
* @throws {RequiredError}
|
|
2296
2329
|
*/
|
|
2297
2330
|
listDatabases(r, e, t, a) {
|
|
2298
|
-
return
|
|
2331
|
+
return ge(this.configuration).listDatabases(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2299
2332
|
}
|
|
2300
2333
|
}
|
|
2301
|
-
const
|
|
2334
|
+
const Ze = function(l) {
|
|
2302
2335
|
return {
|
|
2303
2336
|
/**
|
|
2304
2337
|
* 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.
|
|
@@ -2309,14 +2342,14 @@ const Je = function(l) {
|
|
|
2309
2342
|
*/
|
|
2310
2343
|
createEnvironment: async (r, e = {}) => {
|
|
2311
2344
|
m("createEnvironment", "environment", r);
|
|
2312
|
-
const t = "/environments", a = new URL(t,
|
|
2345
|
+
const t = "/environments", a = new URL(t, V);
|
|
2313
2346
|
let n;
|
|
2314
2347
|
l && (n = l.baseOptions);
|
|
2315
2348
|
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
2316
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
2349
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
|
|
2317
2350
|
let i = n && n.headers ? n.headers : {};
|
|
2318
2351
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
|
|
2319
|
-
url:
|
|
2352
|
+
url: b(a),
|
|
2320
2353
|
options: o
|
|
2321
2354
|
};
|
|
2322
2355
|
},
|
|
@@ -2329,14 +2362,14 @@ const Je = function(l) {
|
|
|
2329
2362
|
*/
|
|
2330
2363
|
deleteEnvironment: async (r, e = {}) => {
|
|
2331
2364
|
m("deleteEnvironment", "environmentName", r);
|
|
2332
|
-
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t,
|
|
2365
|
+
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
|
|
2333
2366
|
let n;
|
|
2334
2367
|
l && (n = l.baseOptions);
|
|
2335
2368
|
const o = { method: "DELETE", ...n, ...e }, s = {}, c = {};
|
|
2336
|
-
s.Accept = "application/json",
|
|
2369
|
+
s.Accept = "application/json", v(a, c);
|
|
2337
2370
|
let i = n && n.headers ? n.headers : {};
|
|
2338
2371
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2339
|
-
url:
|
|
2372
|
+
url: b(a),
|
|
2340
2373
|
options: o
|
|
2341
2374
|
};
|
|
2342
2375
|
},
|
|
@@ -2350,14 +2383,14 @@ const Je = function(l) {
|
|
|
2350
2383
|
*/
|
|
2351
2384
|
getEnvironment: async (r, e, t = {}) => {
|
|
2352
2385
|
m("getEnvironment", "environmentName", r);
|
|
2353
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a,
|
|
2386
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
|
|
2354
2387
|
let o;
|
|
2355
2388
|
l && (o = l.baseOptions);
|
|
2356
2389
|
const s = { method: "GET", ...o, ...t }, c = {}, i = {};
|
|
2357
|
-
e !== void 0 && (i.reload = e), c.Accept = "application/json",
|
|
2390
|
+
e !== void 0 && (i.reload = e), c.Accept = "application/json", v(n, i);
|
|
2358
2391
|
let p = o && o.headers ? o.headers : {};
|
|
2359
2392
|
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
2360
|
-
url:
|
|
2393
|
+
url: b(n),
|
|
2361
2394
|
options: s
|
|
2362
2395
|
};
|
|
2363
2396
|
},
|
|
@@ -2368,14 +2401,14 @@ const Je = function(l) {
|
|
|
2368
2401
|
* @throws {RequiredError}
|
|
2369
2402
|
*/
|
|
2370
2403
|
listEnvironments: async (r = {}) => {
|
|
2371
|
-
const e = "/environments", t = new URL(e,
|
|
2404
|
+
const e = "/environments", t = new URL(e, V);
|
|
2372
2405
|
let a;
|
|
2373
2406
|
l && (a = l.baseOptions);
|
|
2374
2407
|
const n = { method: "GET", ...a, ...r }, o = {}, s = {};
|
|
2375
|
-
o.Accept = "application/json",
|
|
2408
|
+
o.Accept = "application/json", v(t, s);
|
|
2376
2409
|
let c = a && a.headers ? a.headers : {};
|
|
2377
2410
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
2378
|
-
url:
|
|
2411
|
+
url: b(t),
|
|
2379
2412
|
options: n
|
|
2380
2413
|
};
|
|
2381
2414
|
},
|
|
@@ -2389,20 +2422,20 @@ const Je = function(l) {
|
|
|
2389
2422
|
*/
|
|
2390
2423
|
updateEnvironment: async (r, e, t = {}) => {
|
|
2391
2424
|
m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", e);
|
|
2392
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a,
|
|
2425
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
|
|
2393
2426
|
let o;
|
|
2394
2427
|
l && (o = l.baseOptions);
|
|
2395
2428
|
const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
|
|
2396
|
-
c["Content-Type"] = "application/json", c.Accept = "application/json",
|
|
2429
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
|
|
2397
2430
|
let p = o && o.headers ? o.headers : {};
|
|
2398
2431
|
return s.headers = { ...c, ...p, ...t.headers }, s.data = A(e, s, l), {
|
|
2399
|
-
url:
|
|
2432
|
+
url: b(n),
|
|
2400
2433
|
options: s
|
|
2401
2434
|
};
|
|
2402
2435
|
}
|
|
2403
2436
|
};
|
|
2404
2437
|
}, w = function(l) {
|
|
2405
|
-
const r =
|
|
2438
|
+
const r = Ze(l);
|
|
2406
2439
|
return {
|
|
2407
2440
|
/**
|
|
2408
2441
|
* 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 +2445,7 @@ const Je = function(l) {
|
|
|
2412
2445
|
* @throws {RequiredError}
|
|
2413
2446
|
*/
|
|
2414
2447
|
async createEnvironment(e, t) {
|
|
2415
|
-
const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o =
|
|
2448
|
+
const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[n]?.url;
|
|
2416
2449
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
2417
2450
|
},
|
|
2418
2451
|
/**
|
|
@@ -2423,7 +2456,7 @@ const Je = function(l) {
|
|
|
2423
2456
|
* @throws {RequiredError}
|
|
2424
2457
|
*/
|
|
2425
2458
|
async deleteEnvironment(e, t) {
|
|
2426
|
-
const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o =
|
|
2459
|
+
const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
|
|
2427
2460
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
2428
2461
|
},
|
|
2429
2462
|
/**
|
|
@@ -2435,7 +2468,7 @@ const Je = function(l) {
|
|
|
2435
2468
|
* @throws {RequiredError}
|
|
2436
2469
|
*/
|
|
2437
2470
|
async getEnvironment(e, t, a) {
|
|
2438
|
-
const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
2471
|
+
const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
2439
2472
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
2440
2473
|
},
|
|
2441
2474
|
/**
|
|
@@ -2445,7 +2478,7 @@ const Je = function(l) {
|
|
|
2445
2478
|
* @throws {RequiredError}
|
|
2446
2479
|
*/
|
|
2447
2480
|
async listEnvironments(e) {
|
|
2448
|
-
const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n =
|
|
2481
|
+
const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
2449
2482
|
return (o, s) => S(t, u, g, l)(o, n || s);
|
|
2450
2483
|
},
|
|
2451
2484
|
/**
|
|
@@ -2457,11 +2490,11 @@ const Je = function(l) {
|
|
|
2457
2490
|
* @throws {RequiredError}
|
|
2458
2491
|
*/
|
|
2459
2492
|
async updateEnvironment(e, t, a) {
|
|
2460
|
-
const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
2493
|
+
const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
2461
2494
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
2462
2495
|
}
|
|
2463
2496
|
};
|
|
2464
|
-
},
|
|
2497
|
+
}, Pn = function(l, r, e) {
|
|
2465
2498
|
const t = w(l);
|
|
2466
2499
|
return {
|
|
2467
2500
|
/**
|
|
@@ -2517,7 +2550,7 @@ const Je = function(l) {
|
|
|
2517
2550
|
}
|
|
2518
2551
|
};
|
|
2519
2552
|
};
|
|
2520
|
-
class
|
|
2553
|
+
class ea extends C {
|
|
2521
2554
|
/**
|
|
2522
2555
|
* 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.
|
|
2523
2556
|
* @summary Create a new environment
|
|
@@ -2570,7 +2603,7 @@ class Xe extends C {
|
|
|
2570
2603
|
return w(this.configuration).updateEnvironment(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
2571
2604
|
}
|
|
2572
2605
|
}
|
|
2573
|
-
const
|
|
2606
|
+
const aa = function(l) {
|
|
2574
2607
|
return {
|
|
2575
2608
|
/**
|
|
2576
2609
|
* 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.
|
|
@@ -2583,14 +2616,14 @@ const Ze = function(l) {
|
|
|
2583
2616
|
*/
|
|
2584
2617
|
createMaterialization: async (r, e, t, a = {}) => {
|
|
2585
2618
|
m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", e);
|
|
2586
|
-
const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2619
|
+
const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
2587
2620
|
let s;
|
|
2588
2621
|
l && (s = l.baseOptions);
|
|
2589
2622
|
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
2590
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
2623
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
2591
2624
|
let d = s && s.headers ? s.headers : {};
|
|
2592
2625
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
2593
|
-
url:
|
|
2626
|
+
url: b(o),
|
|
2594
2627
|
options: c
|
|
2595
2628
|
};
|
|
2596
2629
|
},
|
|
@@ -2607,14 +2640,14 @@ const Ze = function(l) {
|
|
|
2607
2640
|
*/
|
|
2608
2641
|
deleteMaterialization: async (r, e, t, a, n, o = {}) => {
|
|
2609
2642
|
m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
|
|
2610
|
-
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s,
|
|
2643
|
+
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
2611
2644
|
let i;
|
|
2612
2645
|
l && (i = l.baseOptions);
|
|
2613
2646
|
const p = { method: "DELETE", ...i, ...o }, d = {}, h = {};
|
|
2614
|
-
a !== void 0 && (h.dropTables = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json",
|
|
2647
|
+
a !== void 0 && (h.dropTables = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
|
|
2615
2648
|
let k = i && i.headers ? i.headers : {};
|
|
2616
2649
|
return p.headers = { ...d, ...k, ...o.headers }, {
|
|
2617
|
-
url:
|
|
2650
|
+
url: b(c),
|
|
2618
2651
|
options: p
|
|
2619
2652
|
};
|
|
2620
2653
|
},
|
|
@@ -2630,14 +2663,14 @@ const Ze = function(l) {
|
|
|
2630
2663
|
*/
|
|
2631
2664
|
getMaterialization: async (r, e, t, a, n = {}) => {
|
|
2632
2665
|
m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
|
|
2633
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2666
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
2634
2667
|
let c;
|
|
2635
2668
|
l && (c = l.baseOptions);
|
|
2636
2669
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
2637
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
2670
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
2638
2671
|
let h = c && c.headers ? c.headers : {};
|
|
2639
2672
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
2640
|
-
url:
|
|
2673
|
+
url: b(s),
|
|
2641
2674
|
options: i
|
|
2642
2675
|
};
|
|
2643
2676
|
},
|
|
@@ -2654,14 +2687,14 @@ const Ze = function(l) {
|
|
|
2654
2687
|
*/
|
|
2655
2688
|
listMaterializations: async (r, e, t, a, n, o = {}) => {
|
|
2656
2689
|
m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", e);
|
|
2657
|
-
const s = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), c = new URL(s,
|
|
2690
|
+
const s = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), c = new URL(s, V);
|
|
2658
2691
|
let i;
|
|
2659
2692
|
l && (i = l.baseOptions);
|
|
2660
2693
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
2661
|
-
t !== void 0 && (h.limit = t), a !== void 0 && (h.offset = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json",
|
|
2694
|
+
t !== void 0 && (h.limit = t), a !== void 0 && (h.offset = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
|
|
2662
2695
|
let k = i && i.headers ? i.headers : {};
|
|
2663
2696
|
return p.headers = { ...d, ...k, ...o.headers }, {
|
|
2664
|
-
url:
|
|
2697
|
+
url: b(c),
|
|
2665
2698
|
options: p
|
|
2666
2699
|
};
|
|
2667
2700
|
},
|
|
@@ -2678,20 +2711,20 @@ const Ze = function(l) {
|
|
|
2678
2711
|
*/
|
|
2679
2712
|
materializationAction: async (r, e, t, a, n, o = {}) => {
|
|
2680
2713
|
m("materializationAction", "environmentName", r), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
|
|
2681
|
-
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s,
|
|
2714
|
+
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
2682
2715
|
let i;
|
|
2683
2716
|
l && (i = l.baseOptions);
|
|
2684
2717
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
2685
|
-
a !== void 0 && (h.action = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json",
|
|
2718
|
+
a !== void 0 && (h.action = a), n !== void 0 && (h.versionId = n), d.Accept = "application/json", v(c, h);
|
|
2686
2719
|
let k = i && i.headers ? i.headers : {};
|
|
2687
2720
|
return p.headers = { ...d, ...k, ...o.headers }, {
|
|
2688
|
-
url:
|
|
2721
|
+
url: b(c),
|
|
2689
2722
|
options: p
|
|
2690
2723
|
};
|
|
2691
2724
|
}
|
|
2692
2725
|
};
|
|
2693
|
-
},
|
|
2694
|
-
const r =
|
|
2726
|
+
}, M = function(l) {
|
|
2727
|
+
const r = aa(l);
|
|
2695
2728
|
return {
|
|
2696
2729
|
/**
|
|
2697
2730
|
* 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.
|
|
@@ -2703,7 +2736,7 @@ const Ze = function(l) {
|
|
|
2703
2736
|
* @throws {RequiredError}
|
|
2704
2737
|
*/
|
|
2705
2738
|
async createMaterialization(e, t, a, n) {
|
|
2706
|
-
const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
2739
|
+
const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2707
2740
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
2708
2741
|
},
|
|
2709
2742
|
/**
|
|
@@ -2718,7 +2751,7 @@ const Ze = function(l) {
|
|
|
2718
2751
|
* @throws {RequiredError}
|
|
2719
2752
|
*/
|
|
2720
2753
|
async deleteMaterialization(e, t, a, n, o, s) {
|
|
2721
|
-
const c = await r.deleteMaterialization(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
2754
|
+
const c = await r.deleteMaterialization(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.deleteMaterialization"]?.[i]?.url;
|
|
2722
2755
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
2723
2756
|
},
|
|
2724
2757
|
/**
|
|
@@ -2732,7 +2765,7 @@ const Ze = function(l) {
|
|
|
2732
2765
|
* @throws {RequiredError}
|
|
2733
2766
|
*/
|
|
2734
2767
|
async getMaterialization(e, t, a, n, o) {
|
|
2735
|
-
const s = await r.getMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
2768
|
+
const s = await r.getMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.getMaterialization"]?.[c]?.url;
|
|
2736
2769
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
2737
2770
|
},
|
|
2738
2771
|
/**
|
|
@@ -2747,7 +2780,7 @@ const Ze = function(l) {
|
|
|
2747
2780
|
* @throws {RequiredError}
|
|
2748
2781
|
*/
|
|
2749
2782
|
async listMaterializations(e, t, a, n, o, s) {
|
|
2750
|
-
const c = await r.listMaterializations(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
2783
|
+
const c = await r.listMaterializations(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.listMaterializations"]?.[i]?.url;
|
|
2751
2784
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
2752
2785
|
},
|
|
2753
2786
|
/**
|
|
@@ -2762,12 +2795,12 @@ const Ze = function(l) {
|
|
|
2762
2795
|
* @throws {RequiredError}
|
|
2763
2796
|
*/
|
|
2764
2797
|
async materializationAction(e, t, a, n, o, s) {
|
|
2765
|
-
const c = await r.materializationAction(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
2798
|
+
const c = await r.materializationAction(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["MaterializationsApi.materializationAction"]?.[i]?.url;
|
|
2766
2799
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
2767
2800
|
}
|
|
2768
2801
|
};
|
|
2769
|
-
},
|
|
2770
|
-
const t =
|
|
2802
|
+
}, Vn = function(l, r, e) {
|
|
2803
|
+
const t = M(l);
|
|
2771
2804
|
return {
|
|
2772
2805
|
/**
|
|
2773
2806
|
* 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.
|
|
@@ -2838,7 +2871,7 @@ const Ze = function(l) {
|
|
|
2838
2871
|
}
|
|
2839
2872
|
};
|
|
2840
2873
|
};
|
|
2841
|
-
class
|
|
2874
|
+
class ta extends C {
|
|
2842
2875
|
/**
|
|
2843
2876
|
* 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.
|
|
2844
2877
|
* @summary Create a materialization
|
|
@@ -2849,7 +2882,7 @@ class ea extends C {
|
|
|
2849
2882
|
* @throws {RequiredError}
|
|
2850
2883
|
*/
|
|
2851
2884
|
createMaterialization(r, e, t, a) {
|
|
2852
|
-
return
|
|
2885
|
+
return M(this.configuration).createMaterialization(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2853
2886
|
}
|
|
2854
2887
|
/**
|
|
2855
2888
|
* 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.
|
|
@@ -2863,7 +2896,7 @@ class ea extends C {
|
|
|
2863
2896
|
* @throws {RequiredError}
|
|
2864
2897
|
*/
|
|
2865
2898
|
deleteMaterialization(r, e, t, a, n, o) {
|
|
2866
|
-
return
|
|
2899
|
+
return M(this.configuration).deleteMaterialization(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
2867
2900
|
}
|
|
2868
2901
|
/**
|
|
2869
2902
|
* A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
|
|
@@ -2876,7 +2909,7 @@ class ea extends C {
|
|
|
2876
2909
|
* @throws {RequiredError}
|
|
2877
2910
|
*/
|
|
2878
2911
|
getMaterialization(r, e, t, a, n) {
|
|
2879
|
-
return
|
|
2912
|
+
return M(this.configuration).getMaterialization(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
2880
2913
|
}
|
|
2881
2914
|
/**
|
|
2882
2915
|
* Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
|
|
@@ -2890,7 +2923,7 @@ class ea extends C {
|
|
|
2890
2923
|
* @throws {RequiredError}
|
|
2891
2924
|
*/
|
|
2892
2925
|
listMaterializations(r, e, t, a, n, o) {
|
|
2893
|
-
return
|
|
2926
|
+
return M(this.configuration).listMaterializations(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
2894
2927
|
}
|
|
2895
2928
|
/**
|
|
2896
2929
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2904,12 +2937,12 @@ class ea extends C {
|
|
|
2904
2937
|
* @throws {RequiredError}
|
|
2905
2938
|
*/
|
|
2906
2939
|
materializationAction(r, e, t, a, n, o) {
|
|
2907
|
-
return
|
|
2940
|
+
return M(this.configuration).materializationAction(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
2908
2941
|
}
|
|
2909
2942
|
}
|
|
2910
|
-
const
|
|
2943
|
+
const vn = {
|
|
2911
2944
|
Stop: "stop"
|
|
2912
|
-
},
|
|
2945
|
+
}, na = function(l) {
|
|
2913
2946
|
return {
|
|
2914
2947
|
/**
|
|
2915
2948
|
* 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.
|
|
@@ -2924,14 +2957,14 @@ const rn = {
|
|
|
2924
2957
|
*/
|
|
2925
2958
|
compileModelSource: async (r, e, t, a, n, o = {}) => {
|
|
2926
2959
|
m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
|
|
2927
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s,
|
|
2960
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
2928
2961
|
let i;
|
|
2929
2962
|
l && (i = l.baseOptions);
|
|
2930
2963
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
2931
|
-
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
2964
|
+
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
|
|
2932
2965
|
let k = i && i.headers ? i.headers : {};
|
|
2933
2966
|
return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
|
|
2934
|
-
url:
|
|
2967
|
+
url: b(c),
|
|
2935
2968
|
options: p
|
|
2936
2969
|
};
|
|
2937
2970
|
},
|
|
@@ -2948,14 +2981,14 @@ const rn = {
|
|
|
2948
2981
|
*/
|
|
2949
2982
|
executeQueryModel: async (r, e, t, a, n, o = {}) => {
|
|
2950
2983
|
m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
|
|
2951
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s,
|
|
2984
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
2952
2985
|
let i;
|
|
2953
2986
|
l && (i = l.baseOptions);
|
|
2954
2987
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
2955
|
-
n !== void 0 && (h.includeHiddenFilesAndSources = n), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
2988
|
+
n !== void 0 && (h.includeHiddenFilesAndSources = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
|
|
2956
2989
|
let k = i && i.headers ? i.headers : {};
|
|
2957
2990
|
return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
|
|
2958
|
-
url:
|
|
2991
|
+
url: b(c),
|
|
2959
2992
|
options: p
|
|
2960
2993
|
};
|
|
2961
2994
|
},
|
|
@@ -2973,14 +3006,14 @@ const rn = {
|
|
|
2973
3006
|
*/
|
|
2974
3007
|
getModel: async (r, e, t, a, n, o, s = {}) => {
|
|
2975
3008
|
m("getModel", "environmentName", r), m("getModel", "packageName", e), m("getModel", "path", t);
|
|
2976
|
-
const c = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), i = new URL(c,
|
|
3009
|
+
const c = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), i = new URL(c, V);
|
|
2977
3010
|
let p;
|
|
2978
3011
|
l && (p = l.baseOptions);
|
|
2979
3012
|
const d = { method: "GET", ...p, ...s }, h = {}, k = {};
|
|
2980
|
-
a !== void 0 && (k.versionId = a), n !== void 0 && (k.includeHiddenFilesAndSources = n), o !== void 0 && (k.givens = o), h.Accept = "application/json",
|
|
3013
|
+
a !== void 0 && (k.versionId = a), n !== void 0 && (k.includeHiddenFilesAndSources = n), o !== void 0 && (k.givens = o), h.Accept = "application/json", v(i, k);
|
|
2981
3014
|
let O = p && p.headers ? p.headers : {};
|
|
2982
3015
|
return d.headers = { ...h, ...O, ...s.headers }, {
|
|
2983
|
-
url:
|
|
3016
|
+
url: b(i),
|
|
2984
3017
|
options: d
|
|
2985
3018
|
};
|
|
2986
3019
|
},
|
|
@@ -2996,14 +3029,14 @@ const rn = {
|
|
|
2996
3029
|
*/
|
|
2997
3030
|
listModels: async (r, e, t, a, n = {}) => {
|
|
2998
3031
|
m("listModels", "environmentName", r), m("listModels", "packageName", e);
|
|
2999
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
3032
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
3000
3033
|
let c;
|
|
3001
3034
|
l && (c = l.baseOptions);
|
|
3002
3035
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
3003
|
-
t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json",
|
|
3036
|
+
t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
|
|
3004
3037
|
let h = c && c.headers ? c.headers : {};
|
|
3005
3038
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
3006
|
-
url:
|
|
3039
|
+
url: b(s),
|
|
3007
3040
|
options: i
|
|
3008
3041
|
};
|
|
3009
3042
|
},
|
|
@@ -3020,20 +3053,20 @@ const rn = {
|
|
|
3020
3053
|
*/
|
|
3021
3054
|
updateModelSource: async (r, e, t, a, n, o = {}) => {
|
|
3022
3055
|
m("updateModelSource", "environmentName", r), m("updateModelSource", "packageName", e), m("updateModelSource", "path", t), m("updateModelSource", "modelSourceWriteRequest", a);
|
|
3023
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s,
|
|
3056
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
3024
3057
|
let i;
|
|
3025
3058
|
l && (i = l.baseOptions);
|
|
3026
3059
|
const p = { method: "PUT", ...i, ...o }, d = {}, h = {};
|
|
3027
|
-
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json",
|
|
3060
|
+
n !== void 0 && (h.versionId = n), d["Content-Type"] = "application/json", d.Accept = "application/json", v(c, h);
|
|
3028
3061
|
let k = i && i.headers ? i.headers : {};
|
|
3029
3062
|
return p.headers = { ...d, ...k, ...o.headers }, p.data = A(a, p, l), {
|
|
3030
|
-
url:
|
|
3063
|
+
url: b(c),
|
|
3031
3064
|
options: p
|
|
3032
3065
|
};
|
|
3033
3066
|
}
|
|
3034
3067
|
};
|
|
3035
|
-
},
|
|
3036
|
-
const r =
|
|
3068
|
+
}, F = function(l) {
|
|
3069
|
+
const r = na(l);
|
|
3037
3070
|
return {
|
|
3038
3071
|
/**
|
|
3039
3072
|
* 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.
|
|
@@ -3047,7 +3080,7 @@ const rn = {
|
|
|
3047
3080
|
* @throws {RequiredError}
|
|
3048
3081
|
*/
|
|
3049
3082
|
async compileModelSource(e, t, a, n, o, s) {
|
|
3050
|
-
const c = await r.compileModelSource(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
3083
|
+
const c = await r.compileModelSource(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ModelsApi.compileModelSource"]?.[i]?.url;
|
|
3051
3084
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
3052
3085
|
},
|
|
3053
3086
|
/**
|
|
@@ -3062,7 +3095,7 @@ const rn = {
|
|
|
3062
3095
|
* @throws {RequiredError}
|
|
3063
3096
|
*/
|
|
3064
3097
|
async executeQueryModel(e, t, a, n, o, s) {
|
|
3065
|
-
const c = await r.executeQueryModel(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
3098
|
+
const c = await r.executeQueryModel(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ModelsApi.executeQueryModel"]?.[i]?.url;
|
|
3066
3099
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
3067
3100
|
},
|
|
3068
3101
|
/**
|
|
@@ -3078,7 +3111,7 @@ const rn = {
|
|
|
3078
3111
|
* @throws {RequiredError}
|
|
3079
3112
|
*/
|
|
3080
3113
|
async getModel(e, t, a, n, o, s, c) {
|
|
3081
|
-
const i = await r.getModel(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d =
|
|
3114
|
+
const i = await r.getModel(e, t, a, n, o, s, c), p = l?.serverIndex ?? 0, d = P["ModelsApi.getModel"]?.[p]?.url;
|
|
3082
3115
|
return (h, k) => S(i, u, g, l)(h, d || k);
|
|
3083
3116
|
},
|
|
3084
3117
|
/**
|
|
@@ -3092,7 +3125,7 @@ const rn = {
|
|
|
3092
3125
|
* @throws {RequiredError}
|
|
3093
3126
|
*/
|
|
3094
3127
|
async listModels(e, t, a, n, o) {
|
|
3095
|
-
const s = await r.listModels(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
3128
|
+
const s = await r.listModels(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.listModels"]?.[c]?.url;
|
|
3096
3129
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
3097
3130
|
},
|
|
3098
3131
|
/**
|
|
@@ -3107,12 +3140,12 @@ const rn = {
|
|
|
3107
3140
|
* @throws {RequiredError}
|
|
3108
3141
|
*/
|
|
3109
3142
|
async updateModelSource(e, t, a, n, o, s) {
|
|
3110
|
-
const c = await r.updateModelSource(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p =
|
|
3143
|
+
const c = await r.updateModelSource(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = P["ModelsApi.updateModelSource"]?.[i]?.url;
|
|
3111
3144
|
return (d, h) => S(c, u, g, l)(d, p || h);
|
|
3112
3145
|
}
|
|
3113
3146
|
};
|
|
3114
|
-
},
|
|
3115
|
-
const t =
|
|
3147
|
+
}, bn = function(l, r, e) {
|
|
3148
|
+
const t = F(l);
|
|
3116
3149
|
return {
|
|
3117
3150
|
/**
|
|
3118
3151
|
* 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.
|
|
@@ -3186,7 +3219,7 @@ const rn = {
|
|
|
3186
3219
|
}
|
|
3187
3220
|
};
|
|
3188
3221
|
};
|
|
3189
|
-
class
|
|
3222
|
+
class ra extends C {
|
|
3190
3223
|
/**
|
|
3191
3224
|
* 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.
|
|
3192
3225
|
* @summary Compile Malloy source code
|
|
@@ -3199,7 +3232,7 @@ class ta extends C {
|
|
|
3199
3232
|
* @throws {RequiredError}
|
|
3200
3233
|
*/
|
|
3201
3234
|
compileModelSource(r, e, t, a, n, o) {
|
|
3202
|
-
return
|
|
3235
|
+
return F(this.configuration).compileModelSource(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
3203
3236
|
}
|
|
3204
3237
|
/**
|
|
3205
3238
|
* 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.
|
|
@@ -3213,7 +3246,7 @@ class ta extends C {
|
|
|
3213
3246
|
* @throws {RequiredError}
|
|
3214
3247
|
*/
|
|
3215
3248
|
executeQueryModel(r, e, t, a, n, o) {
|
|
3216
|
-
return
|
|
3249
|
+
return F(this.configuration).executeQueryModel(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
3217
3250
|
}
|
|
3218
3251
|
/**
|
|
3219
3252
|
* 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.
|
|
@@ -3228,7 +3261,7 @@ class ta extends C {
|
|
|
3228
3261
|
* @throws {RequiredError}
|
|
3229
3262
|
*/
|
|
3230
3263
|
getModel(r, e, t, a, n, o, s) {
|
|
3231
|
-
return
|
|
3264
|
+
return F(this.configuration).getModel(r, e, t, a, n, o, s).then((c) => c(this.axios, this.basePath));
|
|
3232
3265
|
}
|
|
3233
3266
|
/**
|
|
3234
3267
|
* 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.
|
|
@@ -3241,7 +3274,7 @@ class ta extends C {
|
|
|
3241
3274
|
* @throws {RequiredError}
|
|
3242
3275
|
*/
|
|
3243
3276
|
listModels(r, e, t, a, n) {
|
|
3244
|
-
return
|
|
3277
|
+
return F(this.configuration).listModels(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
3245
3278
|
}
|
|
3246
3279
|
/**
|
|
3247
3280
|
* 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. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`).
|
|
@@ -3255,10 +3288,10 @@ class ta extends C {
|
|
|
3255
3288
|
* @throws {RequiredError}
|
|
3256
3289
|
*/
|
|
3257
3290
|
updateModelSource(r, e, t, a, n, o) {
|
|
3258
|
-
return
|
|
3291
|
+
return F(this.configuration).updateModelSource(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
3259
3292
|
}
|
|
3260
3293
|
}
|
|
3261
|
-
const
|
|
3294
|
+
const oa = function(l) {
|
|
3262
3295
|
return {
|
|
3263
3296
|
/**
|
|
3264
3297
|
* **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.
|
|
@@ -3277,14 +3310,14 @@ const na = function(l) {
|
|
|
3277
3310
|
*/
|
|
3278
3311
|
executeNotebookCell: async (r, e, t, a, n, o, s, c, i = {}) => {
|
|
3279
3312
|
m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
|
|
3280
|
-
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p,
|
|
3313
|
+
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, V);
|
|
3281
3314
|
let h;
|
|
3282
3315
|
l && (h = l.baseOptions);
|
|
3283
3316
|
const k = { method: "GET", ...h, ...i }, O = {}, I = {};
|
|
3284
|
-
n !== void 0 && (I.versionId = n), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), c !== void 0 && (I.givens = c), O.Accept = "application/json",
|
|
3285
|
-
let
|
|
3286
|
-
return k.headers = { ...O, ...
|
|
3287
|
-
url:
|
|
3317
|
+
n !== void 0 && (I.versionId = n), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), c !== void 0 && (I.givens = c), O.Accept = "application/json", v(d, I);
|
|
3318
|
+
let N = h && h.headers ? h.headers : {};
|
|
3319
|
+
return k.headers = { ...O, ...N, ...i.headers }, {
|
|
3320
|
+
url: b(d),
|
|
3288
3321
|
options: k
|
|
3289
3322
|
};
|
|
3290
3323
|
},
|
|
@@ -3301,14 +3334,14 @@ const na = function(l) {
|
|
|
3301
3334
|
*/
|
|
3302
3335
|
getNotebook: async (r, e, t, a, n = {}) => {
|
|
3303
3336
|
m("getNotebook", "environmentName", r), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
|
|
3304
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
3337
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
3305
3338
|
let c;
|
|
3306
3339
|
l && (c = l.baseOptions);
|
|
3307
3340
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
3308
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
3341
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
3309
3342
|
let h = c && c.headers ? c.headers : {};
|
|
3310
3343
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
3311
|
-
url:
|
|
3344
|
+
url: b(s),
|
|
3312
3345
|
options: i
|
|
3313
3346
|
};
|
|
3314
3347
|
},
|
|
@@ -3324,20 +3357,20 @@ const na = function(l) {
|
|
|
3324
3357
|
*/
|
|
3325
3358
|
listNotebooks: async (r, e, t, a = {}) => {
|
|
3326
3359
|
m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", e);
|
|
3327
|
-
const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
3360
|
+
const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
3328
3361
|
let s;
|
|
3329
3362
|
l && (s = l.baseOptions);
|
|
3330
3363
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3331
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
3364
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3332
3365
|
let d = s && s.headers ? s.headers : {};
|
|
3333
3366
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
3334
|
-
url:
|
|
3367
|
+
url: b(o),
|
|
3335
3368
|
options: c
|
|
3336
3369
|
};
|
|
3337
3370
|
}
|
|
3338
3371
|
};
|
|
3339
3372
|
}, H = function(l) {
|
|
3340
|
-
const r =
|
|
3373
|
+
const r = oa(l);
|
|
3341
3374
|
return {
|
|
3342
3375
|
/**
|
|
3343
3376
|
* **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.
|
|
@@ -3355,7 +3388,7 @@ const na = function(l) {
|
|
|
3355
3388
|
* @throws {RequiredError}
|
|
3356
3389
|
*/
|
|
3357
3390
|
async executeNotebookCell(e, t, a, n, o, s, c, i, p) {
|
|
3358
|
-
const d = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), h = l?.serverIndex ?? 0, k =
|
|
3391
|
+
const d = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), h = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
|
|
3359
3392
|
return (O, I) => S(d, u, g, l)(O, k || I);
|
|
3360
3393
|
},
|
|
3361
3394
|
/**
|
|
@@ -3370,7 +3403,7 @@ const na = function(l) {
|
|
|
3370
3403
|
* @throws {RequiredError}
|
|
3371
3404
|
*/
|
|
3372
3405
|
async getNotebook(e, t, a, n, o) {
|
|
3373
|
-
const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
3406
|
+
const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
3374
3407
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
3375
3408
|
},
|
|
3376
3409
|
/**
|
|
@@ -3384,11 +3417,11 @@ const na = function(l) {
|
|
|
3384
3417
|
* @throws {RequiredError}
|
|
3385
3418
|
*/
|
|
3386
3419
|
async listNotebooks(e, t, a, n) {
|
|
3387
|
-
const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
3420
|
+
const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
3388
3421
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
3389
3422
|
}
|
|
3390
3423
|
};
|
|
3391
|
-
},
|
|
3424
|
+
}, Sn = function(l, r, e) {
|
|
3392
3425
|
const t = H(l);
|
|
3393
3426
|
return {
|
|
3394
3427
|
/**
|
|
@@ -3438,7 +3471,7 @@ const na = function(l) {
|
|
|
3438
3471
|
}
|
|
3439
3472
|
};
|
|
3440
3473
|
};
|
|
3441
|
-
class
|
|
3474
|
+
class sa extends C {
|
|
3442
3475
|
/**
|
|
3443
3476
|
* **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.
|
|
3444
3477
|
* @summary Execute a specific notebook cell (deprecated)
|
|
@@ -3485,10 +3518,10 @@ class ra extends C {
|
|
|
3485
3518
|
return H(this.configuration).listNotebooks(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
3486
3519
|
}
|
|
3487
3520
|
}
|
|
3488
|
-
const
|
|
3521
|
+
const kn = {
|
|
3489
3522
|
True: "true",
|
|
3490
3523
|
False: "false"
|
|
3491
|
-
},
|
|
3524
|
+
}, ca = function(l) {
|
|
3492
3525
|
return {
|
|
3493
3526
|
/**
|
|
3494
3527
|
* 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
@@ -3500,14 +3533,14 @@ const cn = {
|
|
|
3500
3533
|
*/
|
|
3501
3534
|
createPackage: async (r, e, t = {}) => {
|
|
3502
3535
|
m("createPackage", "environmentName", r), m("createPackage", "_package", e);
|
|
3503
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a,
|
|
3536
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, V);
|
|
3504
3537
|
let o;
|
|
3505
3538
|
l && (o = l.baseOptions);
|
|
3506
3539
|
const s = { method: "POST", ...o, ...t }, c = {}, i = {};
|
|
3507
|
-
c["Content-Type"] = "application/json", c.Accept = "application/json",
|
|
3540
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(n, i);
|
|
3508
3541
|
let p = o && o.headers ? o.headers : {};
|
|
3509
3542
|
return s.headers = { ...c, ...p, ...t.headers }, s.data = A(e, s, l), {
|
|
3510
|
-
url:
|
|
3543
|
+
url: b(n),
|
|
3511
3544
|
options: s
|
|
3512
3545
|
};
|
|
3513
3546
|
},
|
|
@@ -3521,14 +3554,14 @@ const cn = {
|
|
|
3521
3554
|
*/
|
|
3522
3555
|
deletePackage: async (r, e, t = {}) => {
|
|
3523
3556
|
m("deletePackage", "environmentName", r), m("deletePackage", "packageName", e);
|
|
3524
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a,
|
|
3557
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
|
|
3525
3558
|
let o;
|
|
3526
3559
|
l && (o = l.baseOptions);
|
|
3527
3560
|
const s = { method: "DELETE", ...o, ...t }, c = {}, i = {};
|
|
3528
|
-
c.Accept = "application/json",
|
|
3561
|
+
c.Accept = "application/json", v(n, i);
|
|
3529
3562
|
let p = o && o.headers ? o.headers : {};
|
|
3530
3563
|
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
3531
|
-
url:
|
|
3564
|
+
url: b(n),
|
|
3532
3565
|
options: s
|
|
3533
3566
|
};
|
|
3534
3567
|
},
|
|
@@ -3544,17 +3577,128 @@ const cn = {
|
|
|
3544
3577
|
*/
|
|
3545
3578
|
getPackage: async (r, e, t, a, n = {}) => {
|
|
3546
3579
|
m("getPackage", "environmentName", r), m("getPackage", "packageName", e);
|
|
3547
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
3580
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
3548
3581
|
let c;
|
|
3549
3582
|
l && (c = l.baseOptions);
|
|
3550
3583
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
3551
|
-
t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json",
|
|
3584
|
+
t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
|
|
3552
3585
|
let h = c && c.headers ? c.headers : {};
|
|
3553
3586
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
3554
|
-
url:
|
|
3587
|
+
url: b(s),
|
|
3555
3588
|
options: i
|
|
3556
3589
|
};
|
|
3557
3590
|
},
|
|
3591
|
+
/**
|
|
3592
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
3593
|
+
* @summary Read the persist build plan of a loaded package
|
|
3594
|
+
* @param {string} environmentName Name of the environment
|
|
3595
|
+
* @param {string} packageName Name of the package
|
|
3596
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3597
|
+
* @param {*} [options] Override http request option.
|
|
3598
|
+
* @throws {RequiredError}
|
|
3599
|
+
*/
|
|
3600
|
+
getPackageBuildPlan: async (r, e, t, a = {}) => {
|
|
3601
|
+
m("getPackageBuildPlan", "environmentName", r), m("getPackageBuildPlan", "packageName", e);
|
|
3602
|
+
const n = "/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
3603
|
+
let s;
|
|
3604
|
+
l && (s = l.baseOptions);
|
|
3605
|
+
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3606
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3607
|
+
let d = s && s.headers ? s.headers : {};
|
|
3608
|
+
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
3609
|
+
url: b(o),
|
|
3610
|
+
options: c
|
|
3611
|
+
};
|
|
3612
|
+
},
|
|
3613
|
+
/**
|
|
3614
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
3615
|
+
* @summary Read a package\'s classification summary
|
|
3616
|
+
* @param {string} environmentName Name of the environment
|
|
3617
|
+
* @param {string} packageName Name of the package
|
|
3618
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3619
|
+
* @param {*} [options] Override http request option.
|
|
3620
|
+
* @throws {RequiredError}
|
|
3621
|
+
*/
|
|
3622
|
+
getPackageClassification: async (r, e, t, a = {}) => {
|
|
3623
|
+
m("getPackageClassification", "environmentName", r), m("getPackageClassification", "packageName", e);
|
|
3624
|
+
const n = "/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
3625
|
+
let s;
|
|
3626
|
+
l && (s = l.baseOptions);
|
|
3627
|
+
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3628
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3629
|
+
let d = s && s.headers ? s.headers : {};
|
|
3630
|
+
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
3631
|
+
url: b(o),
|
|
3632
|
+
options: c
|
|
3633
|
+
};
|
|
3634
|
+
},
|
|
3635
|
+
/**
|
|
3636
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
3637
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
3638
|
+
* @param {string} environmentName Name of the environment
|
|
3639
|
+
* @param {string} packageName Name of the package
|
|
3640
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3641
|
+
* @param {*} [options] Override http request option.
|
|
3642
|
+
* @throws {RequiredError}
|
|
3643
|
+
*/
|
|
3644
|
+
getPackageEmbeddingIndex: async (r, e, t, a = {}) => {
|
|
3645
|
+
m("getPackageEmbeddingIndex", "environmentName", r), m("getPackageEmbeddingIndex", "packageName", e);
|
|
3646
|
+
const n = "/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
3647
|
+
let s;
|
|
3648
|
+
l && (s = l.baseOptions);
|
|
3649
|
+
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3650
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3651
|
+
let d = s && s.headers ? s.headers : {};
|
|
3652
|
+
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
3653
|
+
url: b(o),
|
|
3654
|
+
options: c
|
|
3655
|
+
};
|
|
3656
|
+
},
|
|
3657
|
+
/**
|
|
3658
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
3659
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
3660
|
+
* @param {string} environmentName Name of the environment
|
|
3661
|
+
* @param {string} packageName Name of the package
|
|
3662
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3663
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
3664
|
+
* @param {*} [options] Override http request option.
|
|
3665
|
+
* @throws {RequiredError}
|
|
3666
|
+
*/
|
|
3667
|
+
getPackageEntities: async (r, e, t, a, n = {}) => {
|
|
3668
|
+
m("getPackageEntities", "environmentName", r), m("getPackageEntities", "packageName", e);
|
|
3669
|
+
const o = "/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
3670
|
+
let c;
|
|
3671
|
+
l && (c = l.baseOptions);
|
|
3672
|
+
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
3673
|
+
t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
|
|
3674
|
+
let h = c && c.headers ? c.headers : {};
|
|
3675
|
+
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
3676
|
+
url: b(s),
|
|
3677
|
+
options: i
|
|
3678
|
+
};
|
|
3679
|
+
},
|
|
3680
|
+
/**
|
|
3681
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
3682
|
+
* @summary Read how this server holds a package right now
|
|
3683
|
+
* @param {string} environmentName Name of the environment
|
|
3684
|
+
* @param {string} packageName Name of the package
|
|
3685
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3686
|
+
* @param {*} [options] Override http request option.
|
|
3687
|
+
* @throws {RequiredError}
|
|
3688
|
+
*/
|
|
3689
|
+
getPackageStatus: async (r, e, t, a = {}) => {
|
|
3690
|
+
m("getPackageStatus", "environmentName", r), m("getPackageStatus", "packageName", e);
|
|
3691
|
+
const n = "/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
3692
|
+
let s;
|
|
3693
|
+
l && (s = l.baseOptions);
|
|
3694
|
+
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3695
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3696
|
+
let d = s && s.headers ? s.headers : {};
|
|
3697
|
+
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
3698
|
+
url: b(o),
|
|
3699
|
+
options: c
|
|
3700
|
+
};
|
|
3701
|
+
},
|
|
3558
3702
|
/**
|
|
3559
3703
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
3560
3704
|
* @summary List environment packages
|
|
@@ -3564,14 +3708,14 @@ const cn = {
|
|
|
3564
3708
|
*/
|
|
3565
3709
|
listPackages: async (r, e = {}) => {
|
|
3566
3710
|
m("listPackages", "environmentName", r);
|
|
3567
|
-
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t,
|
|
3711
|
+
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, V);
|
|
3568
3712
|
let n;
|
|
3569
3713
|
l && (n = l.baseOptions);
|
|
3570
3714
|
const o = { method: "GET", ...n, ...e }, s = {}, c = {};
|
|
3571
|
-
s.Accept = "application/json",
|
|
3715
|
+
s.Accept = "application/json", v(a, c);
|
|
3572
3716
|
let i = n && n.headers ? n.headers : {};
|
|
3573
3717
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3574
|
-
url:
|
|
3718
|
+
url: b(a),
|
|
3575
3719
|
options: o
|
|
3576
3720
|
};
|
|
3577
3721
|
},
|
|
@@ -3587,20 +3731,20 @@ const cn = {
|
|
|
3587
3731
|
*/
|
|
3588
3732
|
updatePackage: async (r, e, t, a = {}) => {
|
|
3589
3733
|
m("updatePackage", "environmentName", r), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
|
|
3590
|
-
const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
3734
|
+
const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
3591
3735
|
let s;
|
|
3592
3736
|
l && (s = l.baseOptions);
|
|
3593
3737
|
const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
3594
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
3738
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
3595
3739
|
let d = s && s.headers ? s.headers : {};
|
|
3596
3740
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
3597
|
-
url:
|
|
3741
|
+
url: b(o),
|
|
3598
3742
|
options: c
|
|
3599
3743
|
};
|
|
3600
3744
|
}
|
|
3601
3745
|
};
|
|
3602
|
-
},
|
|
3603
|
-
const r =
|
|
3746
|
+
}, R = function(l) {
|
|
3747
|
+
const r = ca(l);
|
|
3604
3748
|
return {
|
|
3605
3749
|
/**
|
|
3606
3750
|
* 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
@@ -3611,7 +3755,7 @@ const cn = {
|
|
|
3611
3755
|
* @throws {RequiredError}
|
|
3612
3756
|
*/
|
|
3613
3757
|
async createPackage(e, t, a) {
|
|
3614
|
-
const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
3758
|
+
const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
|
|
3615
3759
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
3616
3760
|
},
|
|
3617
3761
|
/**
|
|
@@ -3623,7 +3767,7 @@ const cn = {
|
|
|
3623
3767
|
* @throws {RequiredError}
|
|
3624
3768
|
*/
|
|
3625
3769
|
async deletePackage(e, t, a) {
|
|
3626
|
-
const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
3770
|
+
const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
|
|
3627
3771
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
3628
3772
|
},
|
|
3629
3773
|
/**
|
|
@@ -3637,9 +3781,75 @@ const cn = {
|
|
|
3637
3781
|
* @throws {RequiredError}
|
|
3638
3782
|
*/
|
|
3639
3783
|
async getPackage(e, t, a, n, o) {
|
|
3640
|
-
const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
3784
|
+
const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
|
|
3641
3785
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
3642
3786
|
},
|
|
3787
|
+
/**
|
|
3788
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
3789
|
+
* @summary Read the persist build plan of a loaded package
|
|
3790
|
+
* @param {string} environmentName Name of the environment
|
|
3791
|
+
* @param {string} packageName Name of the package
|
|
3792
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3793
|
+
* @param {*} [options] Override http request option.
|
|
3794
|
+
* @throws {RequiredError}
|
|
3795
|
+
*/
|
|
3796
|
+
async getPackageBuildPlan(e, t, a, n) {
|
|
3797
|
+
const o = await r.getPackageBuildPlan(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageBuildPlan"]?.[s]?.url;
|
|
3798
|
+
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
3799
|
+
},
|
|
3800
|
+
/**
|
|
3801
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
3802
|
+
* @summary Read a package\'s classification summary
|
|
3803
|
+
* @param {string} environmentName Name of the environment
|
|
3804
|
+
* @param {string} packageName Name of the package
|
|
3805
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
async getPackageClassification(e, t, a, n) {
|
|
3810
|
+
const o = await r.getPackageClassification(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageClassification"]?.[s]?.url;
|
|
3811
|
+
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
3812
|
+
},
|
|
3813
|
+
/**
|
|
3814
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
3815
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
3816
|
+
* @param {string} environmentName Name of the environment
|
|
3817
|
+
* @param {string} packageName Name of the package
|
|
3818
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3819
|
+
* @param {*} [options] Override http request option.
|
|
3820
|
+
* @throws {RequiredError}
|
|
3821
|
+
*/
|
|
3822
|
+
async getPackageEmbeddingIndex(e, t, a, n) {
|
|
3823
|
+
const o = await r.getPackageEmbeddingIndex(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageEmbeddingIndex"]?.[s]?.url;
|
|
3824
|
+
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
3825
|
+
},
|
|
3826
|
+
/**
|
|
3827
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
3828
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
3829
|
+
* @param {string} environmentName Name of the environment
|
|
3830
|
+
* @param {string} packageName Name of the package
|
|
3831
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3832
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
3833
|
+
* @param {*} [options] Override http request option.
|
|
3834
|
+
* @throws {RequiredError}
|
|
3835
|
+
*/
|
|
3836
|
+
async getPackageEntities(e, t, a, n, o) {
|
|
3837
|
+
const s = await r.getPackageEntities(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageEntities"]?.[c]?.url;
|
|
3838
|
+
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
3839
|
+
},
|
|
3840
|
+
/**
|
|
3841
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
3842
|
+
* @summary Read how this server holds a package right now
|
|
3843
|
+
* @param {string} environmentName Name of the environment
|
|
3844
|
+
* @param {string} packageName Name of the package
|
|
3845
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3846
|
+
* @param {*} [options] Override http request option.
|
|
3847
|
+
* @throws {RequiredError}
|
|
3848
|
+
*/
|
|
3849
|
+
async getPackageStatus(e, t, a, n) {
|
|
3850
|
+
const o = await r.getPackageStatus(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageStatus"]?.[s]?.url;
|
|
3851
|
+
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
3852
|
+
},
|
|
3643
3853
|
/**
|
|
3644
3854
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
3645
3855
|
* @summary List environment packages
|
|
@@ -3648,7 +3858,7 @@ const cn = {
|
|
|
3648
3858
|
* @throws {RequiredError}
|
|
3649
3859
|
*/
|
|
3650
3860
|
async listPackages(e, t) {
|
|
3651
|
-
const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o =
|
|
3861
|
+
const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[n]?.url;
|
|
3652
3862
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
3653
3863
|
},
|
|
3654
3864
|
/**
|
|
@@ -3662,12 +3872,12 @@ const cn = {
|
|
|
3662
3872
|
* @throws {RequiredError}
|
|
3663
3873
|
*/
|
|
3664
3874
|
async updatePackage(e, t, a, n) {
|
|
3665
|
-
const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
3875
|
+
const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
|
|
3666
3876
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
3667
3877
|
}
|
|
3668
3878
|
};
|
|
3669
|
-
},
|
|
3670
|
-
const t =
|
|
3879
|
+
}, On = function(l, r, e) {
|
|
3880
|
+
const t = R(l);
|
|
3671
3881
|
return {
|
|
3672
3882
|
/**
|
|
3673
3883
|
* 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
@@ -3704,6 +3914,67 @@ const cn = {
|
|
|
3704
3914
|
getPackage(a, n, o, s, c) {
|
|
3705
3915
|
return t.getPackage(a, n, o, s, c).then((i) => i(e, r));
|
|
3706
3916
|
},
|
|
3917
|
+
/**
|
|
3918
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
3919
|
+
* @summary Read the persist build plan of a loaded package
|
|
3920
|
+
* @param {string} environmentName Name of the environment
|
|
3921
|
+
* @param {string} packageName Name of the package
|
|
3922
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3923
|
+
* @param {*} [options] Override http request option.
|
|
3924
|
+
* @throws {RequiredError}
|
|
3925
|
+
*/
|
|
3926
|
+
getPackageBuildPlan(a, n, o, s) {
|
|
3927
|
+
return t.getPackageBuildPlan(a, n, o, s).then((c) => c(e, r));
|
|
3928
|
+
},
|
|
3929
|
+
/**
|
|
3930
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
3931
|
+
* @summary Read a package\'s classification summary
|
|
3932
|
+
* @param {string} environmentName Name of the environment
|
|
3933
|
+
* @param {string} packageName Name of the package
|
|
3934
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3935
|
+
* @param {*} [options] Override http request option.
|
|
3936
|
+
* @throws {RequiredError}
|
|
3937
|
+
*/
|
|
3938
|
+
getPackageClassification(a, n, o, s) {
|
|
3939
|
+
return t.getPackageClassification(a, n, o, s).then((c) => c(e, r));
|
|
3940
|
+
},
|
|
3941
|
+
/**
|
|
3942
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
3943
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
3944
|
+
* @param {string} environmentName Name of the environment
|
|
3945
|
+
* @param {string} packageName Name of the package
|
|
3946
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3947
|
+
* @param {*} [options] Override http request option.
|
|
3948
|
+
* @throws {RequiredError}
|
|
3949
|
+
*/
|
|
3950
|
+
getPackageEmbeddingIndex(a, n, o, s) {
|
|
3951
|
+
return t.getPackageEmbeddingIndex(a, n, o, s).then((c) => c(e, r));
|
|
3952
|
+
},
|
|
3953
|
+
/**
|
|
3954
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
3955
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
3956
|
+
* @param {string} environmentName Name of the environment
|
|
3957
|
+
* @param {string} packageName Name of the package
|
|
3958
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3959
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
3960
|
+
* @param {*} [options] Override http request option.
|
|
3961
|
+
* @throws {RequiredError}
|
|
3962
|
+
*/
|
|
3963
|
+
getPackageEntities(a, n, o, s, c) {
|
|
3964
|
+
return t.getPackageEntities(a, n, o, s, c).then((i) => i(e, r));
|
|
3965
|
+
},
|
|
3966
|
+
/**
|
|
3967
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
3968
|
+
* @summary Read how this server holds a package right now
|
|
3969
|
+
* @param {string} environmentName Name of the environment
|
|
3970
|
+
* @param {string} packageName Name of the package
|
|
3971
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
3972
|
+
* @param {*} [options] Override http request option.
|
|
3973
|
+
* @throws {RequiredError}
|
|
3974
|
+
*/
|
|
3975
|
+
getPackageStatus(a, n, o, s) {
|
|
3976
|
+
return t.getPackageStatus(a, n, o, s).then((c) => c(e, r));
|
|
3977
|
+
},
|
|
3707
3978
|
/**
|
|
3708
3979
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
3709
3980
|
* @summary List environment packages
|
|
@@ -3729,7 +4000,7 @@ const cn = {
|
|
|
3729
4000
|
}
|
|
3730
4001
|
};
|
|
3731
4002
|
};
|
|
3732
|
-
class
|
|
4003
|
+
class la extends C {
|
|
3733
4004
|
/**
|
|
3734
4005
|
* 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. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`off` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
3735
4006
|
* @summary Create a new package
|
|
@@ -3739,7 +4010,7 @@ class sa extends C {
|
|
|
3739
4010
|
* @throws {RequiredError}
|
|
3740
4011
|
*/
|
|
3741
4012
|
createPackage(r, e, t) {
|
|
3742
|
-
return
|
|
4013
|
+
return R(this.configuration).createPackage(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
3743
4014
|
}
|
|
3744
4015
|
/**
|
|
3745
4016
|
* Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
|
|
@@ -3750,7 +4021,7 @@ class sa extends C {
|
|
|
3750
4021
|
* @throws {RequiredError}
|
|
3751
4022
|
*/
|
|
3752
4023
|
deletePackage(r, e, t) {
|
|
3753
|
-
return
|
|
4024
|
+
return R(this.configuration).deletePackage(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
3754
4025
|
}
|
|
3755
4026
|
/**
|
|
3756
4027
|
* Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
|
|
@@ -3763,7 +4034,68 @@ class sa extends C {
|
|
|
3763
4034
|
* @throws {RequiredError}
|
|
3764
4035
|
*/
|
|
3765
4036
|
getPackage(r, e, t, a, n) {
|
|
3766
|
-
return
|
|
4037
|
+
return R(this.configuration).getPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
4038
|
+
}
|
|
4039
|
+
/**
|
|
4040
|
+
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
|
|
4041
|
+
* @summary Read the persist build plan of a loaded package
|
|
4042
|
+
* @param {string} environmentName Name of the environment
|
|
4043
|
+
* @param {string} packageName Name of the package
|
|
4044
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4045
|
+
* @param {*} [options] Override http request option.
|
|
4046
|
+
* @throws {RequiredError}
|
|
4047
|
+
*/
|
|
4048
|
+
getPackageBuildPlan(r, e, t, a) {
|
|
4049
|
+
return R(this.configuration).getPackageBuildPlan(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4050
|
+
}
|
|
4051
|
+
/**
|
|
4052
|
+
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
4053
|
+
* @summary Read a package\'s classification summary
|
|
4054
|
+
* @param {string} environmentName Name of the environment
|
|
4055
|
+
* @param {string} packageName Name of the package
|
|
4056
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4057
|
+
* @param {*} [options] Override http request option.
|
|
4058
|
+
* @throws {RequiredError}
|
|
4059
|
+
*/
|
|
4060
|
+
getPackageClassification(r, e, t, a) {
|
|
4061
|
+
return R(this.configuration).getPackageClassification(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4062
|
+
}
|
|
4063
|
+
/**
|
|
4064
|
+
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
4065
|
+
* @summary Read the state of a package\'s semantic discovery index
|
|
4066
|
+
* @param {string} environmentName Name of the environment
|
|
4067
|
+
* @param {string} packageName Name of the package
|
|
4068
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4069
|
+
* @param {*} [options] Override http request option.
|
|
4070
|
+
* @throws {RequiredError}
|
|
4071
|
+
*/
|
|
4072
|
+
getPackageEmbeddingIndex(r, e, t, a) {
|
|
4073
|
+
return R(this.configuration).getPackageEmbeddingIndex(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4074
|
+
}
|
|
4075
|
+
/**
|
|
4076
|
+
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
4077
|
+
* @summary Read what every model of a loaded package declares, for an indexer
|
|
4078
|
+
* @param {string} environmentName Name of the environment
|
|
4079
|
+
* @param {string} packageName Name of the package
|
|
4080
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4081
|
+
* @param {boolean} [includeHiddenFilesAndSources] When true, a package with a surface (a root `index.malloy`, or a legacy `explores`) is served to this request as if it had none: the models list includes the files off the surface, the model GET returns them, and the query route runs any model path the request names, including a dashboard or notebook file, against every source, as `queryableSources: \"all\"` does for every request. `#(authorize)` and `#(access_filter)` still apply: it lifts curation, never the lock. The model GET goes one step further than `queryableSources: \"all\"`: it returns the file\'s `sourceText` even when that text names a source the file does not publish. That text can include `#(authorize)` expressions, `given:` defaults, connection names and raw SQL. Only the models list, the model GET and the query route read it, plus the MCP `execute_query` tool\'s argument of the same name, which runs a query the way this route does. MCP offers that argument only when `publisher.config.json` sets `\"mcp\": { \"includeHiddenFilesAndSources\": true }`, which is for authoring servers. Without it the argument is not in the tool\'s schema and is ignored if sent, so an agent answering questions stays on the curated surface. This route is not affected by that setting. The notebook-cell route, the dashboards route, the other MCP tools, and the legacy `/projects/...` aliases of these routes ignore it. Like every route on this server, it is unauthenticated. A deployment that authenticates in front of Publisher decides who may send it, and should pass it only for callers allowed to work with a package\'s hidden files, such as its authors. A deployment that exposes the MCP port has to make the same decision for the `execute_query` argument. Only `true` and `false` are accepted. Any other value is refused with 400.
|
|
4082
|
+
* @param {*} [options] Override http request option.
|
|
4083
|
+
* @throws {RequiredError}
|
|
4084
|
+
*/
|
|
4085
|
+
getPackageEntities(r, e, t, a, n) {
|
|
4086
|
+
return R(this.configuration).getPackageEntities(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
4087
|
+
}
|
|
4088
|
+
/**
|
|
4089
|
+
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
4090
|
+
* @summary Read how this server holds a package right now
|
|
4091
|
+
* @param {string} environmentName Name of the environment
|
|
4092
|
+
* @param {string} packageName Name of the package
|
|
4093
|
+
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
4094
|
+
* @param {*} [options] Override http request option.
|
|
4095
|
+
* @throws {RequiredError}
|
|
4096
|
+
*/
|
|
4097
|
+
getPackageStatus(r, e, t, a) {
|
|
4098
|
+
return R(this.configuration).getPackageStatus(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
3767
4099
|
}
|
|
3768
4100
|
/**
|
|
3769
4101
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
@@ -3773,7 +4105,7 @@ class sa extends C {
|
|
|
3773
4105
|
* @throws {RequiredError}
|
|
3774
4106
|
*/
|
|
3775
4107
|
listPackages(r, e) {
|
|
3776
|
-
return
|
|
4108
|
+
return R(this.configuration).listPackages(r, e).then((t) => t(this.axios, this.basePath));
|
|
3777
4109
|
}
|
|
3778
4110
|
/**
|
|
3779
4111
|
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
|
|
@@ -3786,10 +4118,10 @@ class sa extends C {
|
|
|
3786
4118
|
* @throws {RequiredError}
|
|
3787
4119
|
*/
|
|
3788
4120
|
updatePackage(r, e, t, a) {
|
|
3789
|
-
return
|
|
4121
|
+
return R(this.configuration).updatePackage(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
3790
4122
|
}
|
|
3791
4123
|
}
|
|
3792
|
-
const
|
|
4124
|
+
const ia = function(l) {
|
|
3793
4125
|
return {
|
|
3794
4126
|
/**
|
|
3795
4127
|
* 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.
|
|
@@ -3798,14 +4130,14 @@ const ca = function(l) {
|
|
|
3798
4130
|
* @throws {RequiredError}
|
|
3799
4131
|
*/
|
|
3800
4132
|
deleteTheme: async (r = {}) => {
|
|
3801
|
-
const e = "/theme", t = new URL(e,
|
|
4133
|
+
const e = "/theme", t = new URL(e, V);
|
|
3802
4134
|
let a;
|
|
3803
4135
|
l && (a = l.baseOptions);
|
|
3804
4136
|
const n = { method: "DELETE", ...a, ...r }, o = {}, s = {};
|
|
3805
|
-
o.Accept = "application/json",
|
|
4137
|
+
o.Accept = "application/json", v(t, s);
|
|
3806
4138
|
let c = a && a.headers ? a.headers : {};
|
|
3807
4139
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
3808
|
-
url:
|
|
4140
|
+
url: b(t),
|
|
3809
4141
|
options: n
|
|
3810
4142
|
};
|
|
3811
4143
|
},
|
|
@@ -3817,14 +4149,14 @@ const ca = function(l) {
|
|
|
3817
4149
|
* @throws {RequiredError}
|
|
3818
4150
|
*/
|
|
3819
4151
|
getStatus: async (r, e = {}) => {
|
|
3820
|
-
const t = "/status", a = new URL(t,
|
|
4152
|
+
const t = "/status", a = new URL(t, V);
|
|
3821
4153
|
let n;
|
|
3822
4154
|
l && (n = l.baseOptions);
|
|
3823
4155
|
const o = { method: "GET", ...n, ...e }, s = {}, c = {};
|
|
3824
|
-
r !== void 0 && (c.includeLoading = r), s.Accept = "application/json",
|
|
4156
|
+
r !== void 0 && (c.includeLoading = r), s.Accept = "application/json", v(a, c);
|
|
3825
4157
|
let i = n && n.headers ? n.headers : {};
|
|
3826
4158
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3827
|
-
url:
|
|
4159
|
+
url: b(a),
|
|
3828
4160
|
options: o
|
|
3829
4161
|
};
|
|
3830
4162
|
},
|
|
@@ -3835,14 +4167,14 @@ const ca = function(l) {
|
|
|
3835
4167
|
* @throws {RequiredError}
|
|
3836
4168
|
*/
|
|
3837
4169
|
getTheme: async (r = {}) => {
|
|
3838
|
-
const e = "/theme", t = new URL(e,
|
|
4170
|
+
const e = "/theme", t = new URL(e, V);
|
|
3839
4171
|
let a;
|
|
3840
4172
|
l && (a = l.baseOptions);
|
|
3841
4173
|
const n = { method: "GET", ...a, ...r }, o = {}, s = {};
|
|
3842
|
-
o.Accept = "application/json",
|
|
4174
|
+
o.Accept = "application/json", v(t, s);
|
|
3843
4175
|
let c = a && a.headers ? a.headers : {};
|
|
3844
4176
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
3845
|
-
url:
|
|
4177
|
+
url: b(t),
|
|
3846
4178
|
options: n
|
|
3847
4179
|
};
|
|
3848
4180
|
},
|
|
@@ -3855,20 +4187,20 @@ const ca = function(l) {
|
|
|
3855
4187
|
*/
|
|
3856
4188
|
updateTheme: async (r, e = {}) => {
|
|
3857
4189
|
m("updateTheme", "theme", r);
|
|
3858
|
-
const t = "/theme", a = new URL(t,
|
|
4190
|
+
const t = "/theme", a = new URL(t, V);
|
|
3859
4191
|
let n;
|
|
3860
4192
|
l && (n = l.baseOptions);
|
|
3861
4193
|
const o = { method: "PUT", ...n, ...e }, s = {}, c = {};
|
|
3862
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
4194
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
|
|
3863
4195
|
let i = n && n.headers ? n.headers : {};
|
|
3864
4196
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
|
|
3865
|
-
url:
|
|
4197
|
+
url: b(a),
|
|
3866
4198
|
options: o
|
|
3867
4199
|
};
|
|
3868
4200
|
}
|
|
3869
4201
|
};
|
|
3870
4202
|
}, D = function(l) {
|
|
3871
|
-
const r =
|
|
4203
|
+
const r = ia(l);
|
|
3872
4204
|
return {
|
|
3873
4205
|
/**
|
|
3874
4206
|
* 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.
|
|
@@ -3877,7 +4209,7 @@ const ca = function(l) {
|
|
|
3877
4209
|
* @throws {RequiredError}
|
|
3878
4210
|
*/
|
|
3879
4211
|
async deleteTheme(e) {
|
|
3880
|
-
const t = await r.deleteTheme(e), a = l?.serverIndex ?? 0, n =
|
|
4212
|
+
const t = await r.deleteTheme(e), a = l?.serverIndex ?? 0, n = P["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
3881
4213
|
return (o, s) => S(t, u, g, l)(o, n || s);
|
|
3882
4214
|
},
|
|
3883
4215
|
/**
|
|
@@ -3888,7 +4220,7 @@ const ca = function(l) {
|
|
|
3888
4220
|
* @throws {RequiredError}
|
|
3889
4221
|
*/
|
|
3890
4222
|
async getStatus(e, t) {
|
|
3891
|
-
const a = await r.getStatus(e, t), n = l?.serverIndex ?? 0, o =
|
|
4223
|
+
const a = await r.getStatus(e, t), n = l?.serverIndex ?? 0, o = P["PublisherApi.getStatus"]?.[n]?.url;
|
|
3892
4224
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
3893
4225
|
},
|
|
3894
4226
|
/**
|
|
@@ -3898,7 +4230,7 @@ const ca = function(l) {
|
|
|
3898
4230
|
* @throws {RequiredError}
|
|
3899
4231
|
*/
|
|
3900
4232
|
async getTheme(e) {
|
|
3901
|
-
const t = await r.getTheme(e), a = l?.serverIndex ?? 0, n =
|
|
4233
|
+
const t = await r.getTheme(e), a = l?.serverIndex ?? 0, n = P["PublisherApi.getTheme"]?.[a]?.url;
|
|
3902
4234
|
return (o, s) => S(t, u, g, l)(o, n || s);
|
|
3903
4235
|
},
|
|
3904
4236
|
/**
|
|
@@ -3909,11 +4241,11 @@ const ca = function(l) {
|
|
|
3909
4241
|
* @throws {RequiredError}
|
|
3910
4242
|
*/
|
|
3911
4243
|
async updateTheme(e, t) {
|
|
3912
|
-
const a = await r.updateTheme(e, t), n = l?.serverIndex ?? 0, o =
|
|
4244
|
+
const a = await r.updateTheme(e, t), n = l?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[n]?.url;
|
|
3913
4245
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
3914
4246
|
}
|
|
3915
4247
|
};
|
|
3916
|
-
},
|
|
4248
|
+
}, An = function(l, r, e) {
|
|
3917
4249
|
const t = D(l);
|
|
3918
4250
|
return {
|
|
3919
4251
|
/**
|
|
@@ -3956,7 +4288,7 @@ const ca = function(l) {
|
|
|
3956
4288
|
}
|
|
3957
4289
|
};
|
|
3958
4290
|
};
|
|
3959
|
-
class
|
|
4291
|
+
class pa extends C {
|
|
3960
4292
|
/**
|
|
3961
4293
|
* 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.
|
|
3962
4294
|
* @summary Reset the instance theme to the boot seed or default
|
|
@@ -3996,7 +4328,7 @@ class la extends C {
|
|
|
3996
4328
|
return D(this.configuration).updateTheme(r, e).then((t) => t(this.axios, this.basePath));
|
|
3997
4329
|
}
|
|
3998
4330
|
}
|
|
3999
|
-
const
|
|
4331
|
+
const da = function(l) {
|
|
4000
4332
|
return {
|
|
4001
4333
|
/**
|
|
4002
4334
|
* 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.
|
|
@@ -4010,14 +4342,14 @@ const ia = function(l) {
|
|
|
4010
4342
|
*/
|
|
4011
4343
|
getReport: async (r, e, t, a, n = {}) => {
|
|
4012
4344
|
m("getReport", "environmentName", r), m("getReport", "packageName", e), m("getReport", "path", t);
|
|
4013
|
-
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
4345
|
+
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
4014
4346
|
let c;
|
|
4015
4347
|
l && (c = l.baseOptions);
|
|
4016
4348
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
4017
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
4349
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
4018
4350
|
let h = c && c.headers ? c.headers : {};
|
|
4019
4351
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
4020
|
-
url:
|
|
4352
|
+
url: b(s),
|
|
4021
4353
|
options: i
|
|
4022
4354
|
};
|
|
4023
4355
|
},
|
|
@@ -4032,20 +4364,20 @@ const ia = function(l) {
|
|
|
4032
4364
|
*/
|
|
4033
4365
|
listReports: async (r, e, t, a = {}) => {
|
|
4034
4366
|
m("listReports", "environmentName", r), m("listReports", "packageName", e);
|
|
4035
|
-
const n = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
4367
|
+
const n = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
4036
4368
|
let s;
|
|
4037
4369
|
l && (s = l.baseOptions);
|
|
4038
4370
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4039
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
4371
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
4040
4372
|
let d = s && s.headers ? s.headers : {};
|
|
4041
4373
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
4042
|
-
url:
|
|
4374
|
+
url: b(o),
|
|
4043
4375
|
options: c
|
|
4044
4376
|
};
|
|
4045
4377
|
}
|
|
4046
4378
|
};
|
|
4047
4379
|
}, Z = function(l) {
|
|
4048
|
-
const r =
|
|
4380
|
+
const r = da(l);
|
|
4049
4381
|
return {
|
|
4050
4382
|
/**
|
|
4051
4383
|
* 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.
|
|
@@ -4058,7 +4390,7 @@ const ia = function(l) {
|
|
|
4058
4390
|
* @throws {RequiredError}
|
|
4059
4391
|
*/
|
|
4060
4392
|
async getReport(e, t, a, n, o) {
|
|
4061
|
-
const s = await r.getReport(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
4393
|
+
const s = await r.getReport(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["ReportsApi.getReport"]?.[c]?.url;
|
|
4062
4394
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
4063
4395
|
},
|
|
4064
4396
|
/**
|
|
@@ -4071,11 +4403,11 @@ const ia = function(l) {
|
|
|
4071
4403
|
* @throws {RequiredError}
|
|
4072
4404
|
*/
|
|
4073
4405
|
async listReports(e, t, a, n) {
|
|
4074
|
-
const o = await r.listReports(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
4406
|
+
const o = await r.listReports(e, t, a, n), s = l?.serverIndex ?? 0, c = P["ReportsApi.listReports"]?.[s]?.url;
|
|
4075
4407
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4076
4408
|
}
|
|
4077
4409
|
};
|
|
4078
|
-
},
|
|
4410
|
+
}, yn = function(l, r, e) {
|
|
4079
4411
|
const t = Z(l);
|
|
4080
4412
|
return {
|
|
4081
4413
|
/**
|
|
@@ -4105,7 +4437,7 @@ const ia = function(l) {
|
|
|
4105
4437
|
}
|
|
4106
4438
|
};
|
|
4107
4439
|
};
|
|
4108
|
-
class
|
|
4440
|
+
class ma extends C {
|
|
4109
4441
|
/**
|
|
4110
4442
|
* 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.
|
|
4111
4443
|
* @summary Get a report manifest
|
|
@@ -4132,7 +4464,7 @@ class pa extends C {
|
|
|
4132
4464
|
return Z(this.configuration).listReports(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4133
4465
|
}
|
|
4134
4466
|
}
|
|
4135
|
-
const
|
|
4467
|
+
const ha = function(l) {
|
|
4136
4468
|
return {
|
|
4137
4469
|
/**
|
|
4138
4470
|
* 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.
|
|
@@ -4146,14 +4478,14 @@ const da = function(l) {
|
|
|
4146
4478
|
*/
|
|
4147
4479
|
getSkill: async (r, e, t, a, n = {}) => {
|
|
4148
4480
|
m("getSkill", "environmentName", r), m("getSkill", "packageName", e), m("getSkill", "skillName", t);
|
|
4149
|
-
const o = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
4481
|
+
const o = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
4150
4482
|
let c;
|
|
4151
4483
|
l && (c = l.baseOptions);
|
|
4152
4484
|
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
4153
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
4485
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
4154
4486
|
let h = c && c.headers ? c.headers : {};
|
|
4155
4487
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
4156
|
-
url:
|
|
4488
|
+
url: b(s),
|
|
4157
4489
|
options: i
|
|
4158
4490
|
};
|
|
4159
4491
|
},
|
|
@@ -4168,20 +4500,20 @@ const da = function(l) {
|
|
|
4168
4500
|
*/
|
|
4169
4501
|
listSkills: async (r, e, t, a = {}) => {
|
|
4170
4502
|
m("listSkills", "environmentName", r), m("listSkills", "packageName", e);
|
|
4171
|
-
const n = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
4503
|
+
const n = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
4172
4504
|
let s;
|
|
4173
4505
|
l && (s = l.baseOptions);
|
|
4174
4506
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4175
|
-
t !== void 0 && (p.versionId = t), i.Accept = "application/json",
|
|
4507
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
4176
4508
|
let d = s && s.headers ? s.headers : {};
|
|
4177
4509
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
4178
|
-
url:
|
|
4510
|
+
url: b(o),
|
|
4179
4511
|
options: c
|
|
4180
4512
|
};
|
|
4181
4513
|
}
|
|
4182
4514
|
};
|
|
4183
4515
|
}, ee = function(l) {
|
|
4184
|
-
const r =
|
|
4516
|
+
const r = ha(l);
|
|
4185
4517
|
return {
|
|
4186
4518
|
/**
|
|
4187
4519
|
* 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.
|
|
@@ -4194,7 +4526,7 @@ const da = function(l) {
|
|
|
4194
4526
|
* @throws {RequiredError}
|
|
4195
4527
|
*/
|
|
4196
4528
|
async getSkill(e, t, a, n, o) {
|
|
4197
|
-
const s = await r.getSkill(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
4529
|
+
const s = await r.getSkill(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["SkillsApi.getSkill"]?.[c]?.url;
|
|
4198
4530
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
4199
4531
|
},
|
|
4200
4532
|
/**
|
|
@@ -4207,11 +4539,11 @@ const da = function(l) {
|
|
|
4207
4539
|
* @throws {RequiredError}
|
|
4208
4540
|
*/
|
|
4209
4541
|
async listSkills(e, t, a, n) {
|
|
4210
|
-
const o = await r.listSkills(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
4542
|
+
const o = await r.listSkills(e, t, a, n), s = l?.serverIndex ?? 0, c = P["SkillsApi.listSkills"]?.[s]?.url;
|
|
4211
4543
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4212
4544
|
}
|
|
4213
4545
|
};
|
|
4214
|
-
},
|
|
4546
|
+
}, Cn = function(l, r, e) {
|
|
4215
4547
|
const t = ee(l);
|
|
4216
4548
|
return {
|
|
4217
4549
|
/**
|
|
@@ -4241,7 +4573,7 @@ const da = function(l) {
|
|
|
4241
4573
|
}
|
|
4242
4574
|
};
|
|
4243
4575
|
};
|
|
4244
|
-
class
|
|
4576
|
+
class In extends C {
|
|
4245
4577
|
/**
|
|
4246
4578
|
* 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.
|
|
4247
4579
|
* @summary Get one agent skill, with its body
|
|
@@ -4268,7 +4600,7 @@ class hn extends C {
|
|
|
4268
4600
|
return ee(this.configuration).listSkills(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4269
4601
|
}
|
|
4270
4602
|
}
|
|
4271
|
-
const
|
|
4603
|
+
const ua = function(l) {
|
|
4272
4604
|
return {
|
|
4273
4605
|
/**
|
|
4274
4606
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
@@ -4282,14 +4614,14 @@ const ma = function(l) {
|
|
|
4282
4614
|
*/
|
|
4283
4615
|
createStorageDestinationFileCleanup: async (r, e, t, a = {}) => {
|
|
4284
4616
|
m("createStorageDestinationFileCleanup", "environmentName", r), m("createStorageDestinationFileCleanup", "destinationName", e), m("createStorageDestinationFileCleanup", "storageFileCleanupRequest", t);
|
|
4285
|
-
const n = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
4617
|
+
const n = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
4286
4618
|
let s;
|
|
4287
4619
|
l && (s = l.baseOptions);
|
|
4288
4620
|
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
4289
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
4621
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
4290
4622
|
let d = s && s.headers ? s.headers : {};
|
|
4291
4623
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
4292
|
-
url:
|
|
4624
|
+
url: b(o),
|
|
4293
4625
|
options: c
|
|
4294
4626
|
};
|
|
4295
4627
|
},
|
|
@@ -4306,14 +4638,14 @@ const ma = function(l) {
|
|
|
4306
4638
|
*/
|
|
4307
4639
|
deleteStorageDestinationTable: async (r, e, t, a, n = {}) => {
|
|
4308
4640
|
m("deleteStorageDestinationTable", "environmentName", r), m("deleteStorageDestinationTable", "destinationName", e), m("deleteStorageDestinationTable", "schemaName", t), m("deleteStorageDestinationTable", "tableName", a);
|
|
4309
|
-
const o = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tableName}", encodeURIComponent(String(a))), s = new URL(o,
|
|
4641
|
+
const o = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tableName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
4310
4642
|
let c;
|
|
4311
4643
|
l && (c = l.baseOptions);
|
|
4312
4644
|
const i = { method: "DELETE", ...c, ...n }, p = {}, d = {};
|
|
4313
|
-
p.Accept = "application/json",
|
|
4645
|
+
p.Accept = "application/json", v(s, d);
|
|
4314
4646
|
let h = c && c.headers ? c.headers : {};
|
|
4315
4647
|
return i.headers = { ...p, ...h, ...n.headers }, {
|
|
4316
|
-
url:
|
|
4648
|
+
url: b(s),
|
|
4317
4649
|
options: i
|
|
4318
4650
|
};
|
|
4319
4651
|
},
|
|
@@ -4329,20 +4661,20 @@ const ma = function(l) {
|
|
|
4329
4661
|
*/
|
|
4330
4662
|
listStorageDestinationTables: async (r, e, t, a = {}) => {
|
|
4331
4663
|
m("listStorageDestinationTables", "environmentName", r), m("listStorageDestinationTables", "destinationName", e), m("listStorageDestinationTables", "schemaName", t);
|
|
4332
|
-
const n = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), o = new URL(n,
|
|
4664
|
+
const n = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), o = new URL(n, V);
|
|
4333
4665
|
let s;
|
|
4334
4666
|
l && (s = l.baseOptions);
|
|
4335
4667
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4336
|
-
i.Accept = "application/json",
|
|
4668
|
+
i.Accept = "application/json", v(o, p);
|
|
4337
4669
|
let d = s && s.headers ? s.headers : {};
|
|
4338
4670
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
4339
|
-
url:
|
|
4671
|
+
url: b(o),
|
|
4340
4672
|
options: c
|
|
4341
4673
|
};
|
|
4342
4674
|
}
|
|
4343
4675
|
};
|
|
4344
4676
|
}, _ = function(l) {
|
|
4345
|
-
const r =
|
|
4677
|
+
const r = ua(l);
|
|
4346
4678
|
return {
|
|
4347
4679
|
/**
|
|
4348
4680
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
@@ -4355,7 +4687,7 @@ const ma = function(l) {
|
|
|
4355
4687
|
* @throws {RequiredError}
|
|
4356
4688
|
*/
|
|
4357
4689
|
async createStorageDestinationFileCleanup(e, t, a, n) {
|
|
4358
|
-
const o = await r.createStorageDestinationFileCleanup(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
4690
|
+
const o = await r.createStorageDestinationFileCleanup(e, t, a, n), s = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[s]?.url;
|
|
4359
4691
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4360
4692
|
},
|
|
4361
4693
|
/**
|
|
@@ -4370,7 +4702,7 @@ const ma = function(l) {
|
|
|
4370
4702
|
* @throws {RequiredError}
|
|
4371
4703
|
*/
|
|
4372
4704
|
async deleteStorageDestinationTable(e, t, a, n, o) {
|
|
4373
|
-
const s = await r.deleteStorageDestinationTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
4705
|
+
const s = await r.deleteStorageDestinationTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.deleteStorageDestinationTable"]?.[c]?.url;
|
|
4374
4706
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
4375
4707
|
},
|
|
4376
4708
|
/**
|
|
@@ -4384,11 +4716,11 @@ const ma = function(l) {
|
|
|
4384
4716
|
* @throws {RequiredError}
|
|
4385
4717
|
*/
|
|
4386
4718
|
async listStorageDestinationTables(e, t, a, n) {
|
|
4387
|
-
const o = await r.listStorageDestinationTables(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
4719
|
+
const o = await r.listStorageDestinationTables(e, t, a, n), s = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.listStorageDestinationTables"]?.[s]?.url;
|
|
4388
4720
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4389
4721
|
}
|
|
4390
4722
|
};
|
|
4391
|
-
},
|
|
4723
|
+
}, xn = function(l, r, e) {
|
|
4392
4724
|
const t = _(l);
|
|
4393
4725
|
return {
|
|
4394
4726
|
/**
|
|
@@ -4433,7 +4765,7 @@ const ma = function(l) {
|
|
|
4433
4765
|
}
|
|
4434
4766
|
};
|
|
4435
4767
|
};
|
|
4436
|
-
class
|
|
4768
|
+
class Rn extends C {
|
|
4437
4769
|
/**
|
|
4438
4770
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
4439
4771
|
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
@@ -4475,7 +4807,7 @@ class gn extends C {
|
|
|
4475
4807
|
return _(this.configuration).listStorageDestinationTables(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4476
4808
|
}
|
|
4477
4809
|
}
|
|
4478
|
-
const
|
|
4810
|
+
const ga = function(l) {
|
|
4479
4811
|
return {
|
|
4480
4812
|
/**
|
|
4481
4813
|
* Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
|
|
@@ -4488,14 +4820,14 @@ const ha = function(l) {
|
|
|
4488
4820
|
*/
|
|
4489
4821
|
deletePackageVersion: async (r, e, t, a = {}) => {
|
|
4490
4822
|
m("deletePackageVersion", "environmentName", r), m("deletePackageVersion", "packageName", e), m("deletePackageVersion", "version", t);
|
|
4491
|
-
const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(n,
|
|
4823
|
+
const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(n, V);
|
|
4492
4824
|
let s;
|
|
4493
4825
|
l && (s = l.baseOptions);
|
|
4494
4826
|
const c = { method: "DELETE", ...s, ...a }, i = {}, p = {};
|
|
4495
|
-
i.Accept = "application/json",
|
|
4827
|
+
i.Accept = "application/json", v(o, p);
|
|
4496
4828
|
let d = s && s.headers ? s.headers : {};
|
|
4497
4829
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
4498
|
-
url:
|
|
4830
|
+
url: b(o),
|
|
4499
4831
|
options: c
|
|
4500
4832
|
};
|
|
4501
4833
|
},
|
|
@@ -4510,14 +4842,14 @@ const ha = function(l) {
|
|
|
4510
4842
|
*/
|
|
4511
4843
|
getPackageVersion: async (r, e, t, a = {}) => {
|
|
4512
4844
|
m("getPackageVersion", "environmentName", r), m("getPackageVersion", "packageName", e), m("getPackageVersion", "version", t);
|
|
4513
|
-
const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(n,
|
|
4845
|
+
const n = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), o = new URL(n, V);
|
|
4514
4846
|
let s;
|
|
4515
4847
|
l && (s = l.baseOptions);
|
|
4516
4848
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4517
|
-
i.Accept = "application/json",
|
|
4849
|
+
i.Accept = "application/json", v(o, p);
|
|
4518
4850
|
let d = s && s.headers ? s.headers : {};
|
|
4519
4851
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
4520
|
-
url:
|
|
4852
|
+
url: b(o),
|
|
4521
4853
|
options: c
|
|
4522
4854
|
};
|
|
4523
4855
|
},
|
|
@@ -4531,14 +4863,14 @@ const ha = function(l) {
|
|
|
4531
4863
|
*/
|
|
4532
4864
|
listPackageVersions: async (r, e, t = {}) => {
|
|
4533
4865
|
m("listPackageVersions", "environmentName", r), m("listPackageVersions", "packageName", e);
|
|
4534
|
-
const a = "/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a,
|
|
4866
|
+
const a = "/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, V);
|
|
4535
4867
|
let o;
|
|
4536
4868
|
l && (o = l.baseOptions);
|
|
4537
4869
|
const s = { method: "GET", ...o, ...t }, c = {}, i = {};
|
|
4538
|
-
c.Accept = "application/json",
|
|
4870
|
+
c.Accept = "application/json", v(n, i);
|
|
4539
4871
|
let p = o && o.headers ? o.headers : {};
|
|
4540
4872
|
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
4541
|
-
url:
|
|
4873
|
+
url: b(n),
|
|
4542
4874
|
options: s
|
|
4543
4875
|
};
|
|
4544
4876
|
},
|
|
@@ -4553,14 +4885,14 @@ const ha = function(l) {
|
|
|
4553
4885
|
*/
|
|
4554
4886
|
setPackageLatestVersion: async (r, e, t, a = {}) => {
|
|
4555
4887
|
m("setPackageLatestVersion", "environmentName", r), m("setPackageLatestVersion", "packageName", e), m("setPackageLatestVersion", "packageLatestVersion", t);
|
|
4556
|
-
const n = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
4888
|
+
const n = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
4557
4889
|
let s;
|
|
4558
4890
|
l && (s = l.baseOptions);
|
|
4559
4891
|
const c = { method: "PUT", ...s, ...a }, i = {}, p = {};
|
|
4560
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
4892
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
4561
4893
|
let d = s && s.headers ? s.headers : {};
|
|
4562
4894
|
return c.headers = { ...i, ...d, ...a.headers }, c.data = A(t, c, l), {
|
|
4563
|
-
url:
|
|
4895
|
+
url: b(o),
|
|
4564
4896
|
options: c
|
|
4565
4897
|
};
|
|
4566
4898
|
},
|
|
@@ -4576,14 +4908,14 @@ const ha = function(l) {
|
|
|
4576
4908
|
*/
|
|
4577
4909
|
setPackageVersionManifest: async (r, e, t, a, n = {}) => {
|
|
4578
4910
|
m("setPackageVersionManifest", "environmentName", r), m("setPackageVersionManifest", "packageName", e), m("setPackageVersionManifest", "version", t), m("setPackageVersionManifest", "packageVersionManifest", a);
|
|
4579
|
-
const o = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(o,
|
|
4911
|
+
const o = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
4580
4912
|
let c;
|
|
4581
4913
|
l && (c = l.baseOptions);
|
|
4582
4914
|
const i = { method: "PUT", ...c, ...n }, p = {}, d = {};
|
|
4583
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
4915
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
4584
4916
|
let h = c && c.headers ? c.headers : {};
|
|
4585
4917
|
return i.headers = { ...p, ...h, ...n.headers }, i.data = A(a, i, l), {
|
|
4586
|
-
url:
|
|
4918
|
+
url: b(s),
|
|
4587
4919
|
options: i
|
|
4588
4920
|
};
|
|
4589
4921
|
},
|
|
@@ -4599,20 +4931,20 @@ const ha = function(l) {
|
|
|
4599
4931
|
*/
|
|
4600
4932
|
updatePackageVersion: async (r, e, t, a, n = {}) => {
|
|
4601
4933
|
m("updatePackageVersion", "environmentName", r), m("updatePackageVersion", "packageName", e), m("updatePackageVersion", "version", t), m("updatePackageVersion", "packageVersionUpdate", a);
|
|
4602
|
-
const o = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(o,
|
|
4934
|
+
const o = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{version}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
4603
4935
|
let c;
|
|
4604
4936
|
l && (c = l.baseOptions);
|
|
4605
4937
|
const i = { method: "PATCH", ...c, ...n }, p = {}, d = {};
|
|
4606
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
4938
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
4607
4939
|
let h = c && c.headers ? c.headers : {};
|
|
4608
4940
|
return i.headers = { ...p, ...h, ...n.headers }, i.data = A(a, i, l), {
|
|
4609
|
-
url:
|
|
4941
|
+
url: b(s),
|
|
4610
4942
|
options: i
|
|
4611
4943
|
};
|
|
4612
4944
|
}
|
|
4613
4945
|
};
|
|
4614
|
-
},
|
|
4615
|
-
const r =
|
|
4946
|
+
}, T = function(l) {
|
|
4947
|
+
const r = ga(l);
|
|
4616
4948
|
return {
|
|
4617
4949
|
/**
|
|
4618
4950
|
* Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
|
|
@@ -4624,7 +4956,7 @@ const ha = function(l) {
|
|
|
4624
4956
|
* @throws {RequiredError}
|
|
4625
4957
|
*/
|
|
4626
4958
|
async deletePackageVersion(e, t, a, n) {
|
|
4627
|
-
const o = await r.deletePackageVersion(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
4959
|
+
const o = await r.deletePackageVersion(e, t, a, n), s = l?.serverIndex ?? 0, c = P["VersionsApi.deletePackageVersion"]?.[s]?.url;
|
|
4628
4960
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4629
4961
|
},
|
|
4630
4962
|
/**
|
|
@@ -4637,7 +4969,7 @@ const ha = function(l) {
|
|
|
4637
4969
|
* @throws {RequiredError}
|
|
4638
4970
|
*/
|
|
4639
4971
|
async getPackageVersion(e, t, a, n) {
|
|
4640
|
-
const o = await r.getPackageVersion(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
4972
|
+
const o = await r.getPackageVersion(e, t, a, n), s = l?.serverIndex ?? 0, c = P["VersionsApi.getPackageVersion"]?.[s]?.url;
|
|
4641
4973
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4642
4974
|
},
|
|
4643
4975
|
/**
|
|
@@ -4649,7 +4981,7 @@ const ha = function(l) {
|
|
|
4649
4981
|
* @throws {RequiredError}
|
|
4650
4982
|
*/
|
|
4651
4983
|
async listPackageVersions(e, t, a) {
|
|
4652
|
-
const n = await r.listPackageVersions(e, t, a), o = l?.serverIndex ?? 0, s =
|
|
4984
|
+
const n = await r.listPackageVersions(e, t, a), o = l?.serverIndex ?? 0, s = P["VersionsApi.listPackageVersions"]?.[o]?.url;
|
|
4653
4985
|
return (c, i) => S(n, u, g, l)(c, s || i);
|
|
4654
4986
|
},
|
|
4655
4987
|
/**
|
|
@@ -4662,7 +4994,7 @@ const ha = function(l) {
|
|
|
4662
4994
|
* @throws {RequiredError}
|
|
4663
4995
|
*/
|
|
4664
4996
|
async setPackageLatestVersion(e, t, a, n) {
|
|
4665
|
-
const o = await r.setPackageLatestVersion(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
4997
|
+
const o = await r.setPackageLatestVersion(e, t, a, n), s = l?.serverIndex ?? 0, c = P["VersionsApi.setPackageLatestVersion"]?.[s]?.url;
|
|
4666
4998
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4667
4999
|
},
|
|
4668
5000
|
/**
|
|
@@ -4676,7 +5008,7 @@ const ha = function(l) {
|
|
|
4676
5008
|
* @throws {RequiredError}
|
|
4677
5009
|
*/
|
|
4678
5010
|
async setPackageVersionManifest(e, t, a, n, o) {
|
|
4679
|
-
const s = await r.setPackageVersionManifest(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
5011
|
+
const s = await r.setPackageVersionManifest(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["VersionsApi.setPackageVersionManifest"]?.[c]?.url;
|
|
4680
5012
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
4681
5013
|
},
|
|
4682
5014
|
/**
|
|
@@ -4690,12 +5022,12 @@ const ha = function(l) {
|
|
|
4690
5022
|
* @throws {RequiredError}
|
|
4691
5023
|
*/
|
|
4692
5024
|
async updatePackageVersion(e, t, a, n, o) {
|
|
4693
|
-
const s = await r.updatePackageVersion(e, t, a, n, o), c = l?.serverIndex ?? 0, i =
|
|
5025
|
+
const s = await r.updatePackageVersion(e, t, a, n, o), c = l?.serverIndex ?? 0, i = P["VersionsApi.updatePackageVersion"]?.[c]?.url;
|
|
4694
5026
|
return (p, d) => S(s, u, g, l)(p, i || d);
|
|
4695
5027
|
}
|
|
4696
5028
|
};
|
|
4697
|
-
},
|
|
4698
|
-
const t =
|
|
5029
|
+
}, Nn = function(l, r, e) {
|
|
5030
|
+
const t = T(l);
|
|
4699
5031
|
return {
|
|
4700
5032
|
/**
|
|
4701
5033
|
* Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
|
|
@@ -4772,7 +5104,7 @@ const ha = function(l) {
|
|
|
4772
5104
|
}
|
|
4773
5105
|
};
|
|
4774
5106
|
};
|
|
4775
|
-
class
|
|
5107
|
+
class Pa extends C {
|
|
4776
5108
|
/**
|
|
4777
5109
|
* Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
|
|
4778
5110
|
* @summary Delete a version
|
|
@@ -4783,7 +5115,7 @@ class ua extends C {
|
|
|
4783
5115
|
* @throws {RequiredError}
|
|
4784
5116
|
*/
|
|
4785
5117
|
deletePackageVersion(r, e, t, a) {
|
|
4786
|
-
return
|
|
5118
|
+
return T(this.configuration).deletePackageVersion(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4787
5119
|
}
|
|
4788
5120
|
/**
|
|
4789
5121
|
* Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
|
|
@@ -4795,7 +5127,7 @@ class ua extends C {
|
|
|
4795
5127
|
* @throws {RequiredError}
|
|
4796
5128
|
*/
|
|
4797
5129
|
getPackageVersion(r, e, t, a) {
|
|
4798
|
-
return
|
|
5130
|
+
return T(this.configuration).getPackageVersion(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4799
5131
|
}
|
|
4800
5132
|
/**
|
|
4801
5133
|
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
|
|
@@ -4806,7 +5138,7 @@ class ua extends C {
|
|
|
4806
5138
|
* @throws {RequiredError}
|
|
4807
5139
|
*/
|
|
4808
5140
|
listPackageVersions(r, e, t) {
|
|
4809
|
-
return
|
|
5141
|
+
return T(this.configuration).listPackageVersions(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
4810
5142
|
}
|
|
4811
5143
|
/**
|
|
4812
5144
|
* Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
|
|
@@ -4818,7 +5150,7 @@ class ua extends C {
|
|
|
4818
5150
|
* @throws {RequiredError}
|
|
4819
5151
|
*/
|
|
4820
5152
|
setPackageLatestVersion(r, e, t, a) {
|
|
4821
|
-
return
|
|
5153
|
+
return T(this.configuration).setPackageLatestVersion(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
4822
5154
|
}
|
|
4823
5155
|
/**
|
|
4824
5156
|
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
|
|
@@ -4831,7 +5163,7 @@ class ua extends C {
|
|
|
4831
5163
|
* @throws {RequiredError}
|
|
4832
5164
|
*/
|
|
4833
5165
|
setPackageVersionManifest(r, e, t, a, n) {
|
|
4834
|
-
return
|
|
5166
|
+
return T(this.configuration).setPackageVersionManifest(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
4835
5167
|
}
|
|
4836
5168
|
/**
|
|
4837
5169
|
* Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
|
|
@@ -4844,10 +5176,10 @@ class ua extends C {
|
|
|
4844
5176
|
* @throws {RequiredError}
|
|
4845
5177
|
*/
|
|
4846
5178
|
updatePackageVersion(r, e, t, a, n) {
|
|
4847
|
-
return
|
|
5179
|
+
return T(this.configuration).updatePackageVersion(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
4848
5180
|
}
|
|
4849
5181
|
}
|
|
4850
|
-
const
|
|
5182
|
+
const Va = function(l) {
|
|
4851
5183
|
return {
|
|
4852
5184
|
/**
|
|
4853
5185
|
* **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. 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.
|
|
@@ -4857,14 +5189,14 @@ const ga = function(l) {
|
|
|
4857
5189
|
* @throws {RequiredError}
|
|
4858
5190
|
*/
|
|
4859
5191
|
getWatchStatus: async (r = {}) => {
|
|
4860
|
-
const e = "/watch-mode/status", t = new URL(e,
|
|
5192
|
+
const e = "/watch-mode/status", t = new URL(e, V);
|
|
4861
5193
|
let a;
|
|
4862
5194
|
l && (a = l.baseOptions);
|
|
4863
5195
|
const n = { method: "GET", ...a, ...r }, o = {}, s = {};
|
|
4864
|
-
o.Accept = "application/json",
|
|
5196
|
+
o.Accept = "application/json", v(t, s);
|
|
4865
5197
|
let c = a && a.headers ? a.headers : {};
|
|
4866
5198
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
4867
|
-
url:
|
|
5199
|
+
url: b(t),
|
|
4868
5200
|
options: n
|
|
4869
5201
|
};
|
|
4870
5202
|
},
|
|
@@ -4878,14 +5210,14 @@ const ga = function(l) {
|
|
|
4878
5210
|
*/
|
|
4879
5211
|
startWatching: async (r, e = {}) => {
|
|
4880
5212
|
m("startWatching", "startWatchRequest", r);
|
|
4881
|
-
const t = "/watch-mode/start", a = new URL(t,
|
|
5213
|
+
const t = "/watch-mode/start", a = new URL(t, V);
|
|
4882
5214
|
let n;
|
|
4883
5215
|
l && (n = l.baseOptions);
|
|
4884
5216
|
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
4885
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
5217
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, c);
|
|
4886
5218
|
let i = n && n.headers ? n.headers : {};
|
|
4887
5219
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(r, o, l), {
|
|
4888
|
-
url:
|
|
5220
|
+
url: b(a),
|
|
4889
5221
|
options: o
|
|
4890
5222
|
};
|
|
4891
5223
|
},
|
|
@@ -4897,14 +5229,14 @@ const ga = function(l) {
|
|
|
4897
5229
|
* @throws {RequiredError}
|
|
4898
5230
|
*/
|
|
4899
5231
|
stopWatching: async (r = {}) => {
|
|
4900
|
-
const e = "/watch-mode/stop", t = new URL(e,
|
|
5232
|
+
const e = "/watch-mode/stop", t = new URL(e, V);
|
|
4901
5233
|
let a;
|
|
4902
5234
|
l && (a = l.baseOptions);
|
|
4903
5235
|
const n = { method: "POST", ...a, ...r }, o = {}, s = {};
|
|
4904
|
-
o.Accept = "application/json",
|
|
5236
|
+
o.Accept = "application/json", v(t, s);
|
|
4905
5237
|
let c = a && a.headers ? a.headers : {};
|
|
4906
5238
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
4907
|
-
url:
|
|
5239
|
+
url: b(t),
|
|
4908
5240
|
options: n
|
|
4909
5241
|
};
|
|
4910
5242
|
},
|
|
@@ -4919,20 +5251,20 @@ const ga = function(l) {
|
|
|
4919
5251
|
*/
|
|
4920
5252
|
streamPackageEvents: async (r, e, t, a = {}) => {
|
|
4921
5253
|
m("streamPackageEvents", "environmentName", r), m("streamPackageEvents", "packageName", e);
|
|
4922
|
-
const n = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n,
|
|
5254
|
+
const n = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, V);
|
|
4923
5255
|
let s;
|
|
4924
5256
|
l && (s = l.baseOptions);
|
|
4925
5257
|
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4926
|
-
t !== void 0 && (p.versionId = t), i.Accept = "text/event-stream,application/json",
|
|
5258
|
+
t !== void 0 && (p.versionId = t), i.Accept = "text/event-stream,application/json", v(o, p);
|
|
4927
5259
|
let d = s && s.headers ? s.headers : {};
|
|
4928
5260
|
return c.headers = { ...i, ...d, ...a.headers }, {
|
|
4929
|
-
url:
|
|
5261
|
+
url: b(o),
|
|
4930
5262
|
options: c
|
|
4931
5263
|
};
|
|
4932
5264
|
}
|
|
4933
5265
|
};
|
|
4934
5266
|
}, L = function(l) {
|
|
4935
|
-
const r =
|
|
5267
|
+
const r = Va(l);
|
|
4936
5268
|
return {
|
|
4937
5269
|
/**
|
|
4938
5270
|
* **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. 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.
|
|
@@ -4942,7 +5274,7 @@ const ga = function(l) {
|
|
|
4942
5274
|
* @throws {RequiredError}
|
|
4943
5275
|
*/
|
|
4944
5276
|
async getWatchStatus(e) {
|
|
4945
|
-
const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n =
|
|
5277
|
+
const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
4946
5278
|
return (o, s) => S(t, u, g, l)(o, n || s);
|
|
4947
5279
|
},
|
|
4948
5280
|
/**
|
|
@@ -4954,7 +5286,7 @@ const ga = function(l) {
|
|
|
4954
5286
|
* @throws {RequiredError}
|
|
4955
5287
|
*/
|
|
4956
5288
|
async startWatching(e, t) {
|
|
4957
|
-
const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o =
|
|
5289
|
+
const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[n]?.url;
|
|
4958
5290
|
return (s, c) => S(a, u, g, l)(s, o || c);
|
|
4959
5291
|
},
|
|
4960
5292
|
/**
|
|
@@ -4965,7 +5297,7 @@ const ga = function(l) {
|
|
|
4965
5297
|
* @throws {RequiredError}
|
|
4966
5298
|
*/
|
|
4967
5299
|
async stopWatching(e) {
|
|
4968
|
-
const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n =
|
|
5300
|
+
const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n = P["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
4969
5301
|
return (o, s) => S(t, u, g, l)(o, n || s);
|
|
4970
5302
|
},
|
|
4971
5303
|
/**
|
|
@@ -4978,11 +5310,11 @@ const ga = function(l) {
|
|
|
4978
5310
|
* @throws {RequiredError}
|
|
4979
5311
|
*/
|
|
4980
5312
|
async streamPackageEvents(e, t, a, n) {
|
|
4981
|
-
const o = await r.streamPackageEvents(e, t, a, n), s = l?.serverIndex ?? 0, c =
|
|
5313
|
+
const o = await r.streamPackageEvents(e, t, a, n), s = l?.serverIndex ?? 0, c = P["WatchModeApi.streamPackageEvents"]?.[s]?.url;
|
|
4982
5314
|
return (i, p) => S(o, u, g, l)(i, c || p);
|
|
4983
5315
|
}
|
|
4984
5316
|
};
|
|
4985
|
-
},
|
|
5317
|
+
}, Un = function(l, r, e) {
|
|
4986
5318
|
const t = L(l);
|
|
4987
5319
|
return {
|
|
4988
5320
|
/**
|
|
@@ -5030,7 +5362,7 @@ const ga = function(l) {
|
|
|
5030
5362
|
}
|
|
5031
5363
|
};
|
|
5032
5364
|
};
|
|
5033
|
-
class
|
|
5365
|
+
class va extends C {
|
|
5034
5366
|
/**
|
|
5035
5367
|
* **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. 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.
|
|
5036
5368
|
* @summary Get watch mode status
|
|
@@ -5075,7 +5407,7 @@ class Va extends C {
|
|
|
5075
5407
|
return L(this.configuration).streamPackageEvents(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
5076
5408
|
}
|
|
5077
5409
|
}
|
|
5078
|
-
class
|
|
5410
|
+
class ba {
|
|
5079
5411
|
/**
|
|
5080
5412
|
* parameter for apiKey security
|
|
5081
5413
|
* @param name security name
|
|
@@ -5148,7 +5480,7 @@ class Pa {
|
|
|
5148
5480
|
return r !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(r);
|
|
5149
5481
|
}
|
|
5150
5482
|
}
|
|
5151
|
-
const
|
|
5483
|
+
const Sa = new Oe({
|
|
5152
5484
|
defaultOptions: {
|
|
5153
5485
|
queries: {
|
|
5154
5486
|
// Not retried: `useQueryWithApiError` surfaces a failure the moment it
|
|
@@ -5167,12 +5499,25 @@ const ba = new ke({
|
|
|
5167
5499
|
throwOnError: !1
|
|
5168
5500
|
}
|
|
5169
5501
|
}
|
|
5170
|
-
}),
|
|
5502
|
+
}), Tn = {
|
|
5171
5503
|
staleTime: 300 * 1e3,
|
|
5172
5504
|
refetchOnWindowFocus: !1,
|
|
5173
5505
|
refetchOnReconnect: !1
|
|
5174
|
-
}
|
|
5175
|
-
function
|
|
5506
|
+
};
|
|
5507
|
+
function ka(l, r) {
|
|
5508
|
+
return r || l?.modelPage === "viewer" ? "viewer" : "explorer";
|
|
5509
|
+
}
|
|
5510
|
+
function Oa(l) {
|
|
5511
|
+
return {
|
|
5512
|
+
modelPage: ka(
|
|
5513
|
+
l.data,
|
|
5514
|
+
l.isError && l.data === void 0
|
|
5515
|
+
),
|
|
5516
|
+
isLoadingStatus: l.isPending
|
|
5517
|
+
};
|
|
5518
|
+
}
|
|
5519
|
+
const ae = "publisher:themeMode";
|
|
5520
|
+
function Aa() {
|
|
5176
5521
|
if (!(typeof window > "u"))
|
|
5177
5522
|
try {
|
|
5178
5523
|
const l = window.localStorage.getItem(ae);
|
|
@@ -5180,18 +5525,18 @@ function va() {
|
|
|
5180
5525
|
} catch {
|
|
5181
5526
|
}
|
|
5182
5527
|
}
|
|
5183
|
-
function
|
|
5528
|
+
function ya(l) {
|
|
5184
5529
|
if (!(typeof window > "u"))
|
|
5185
5530
|
try {
|
|
5186
5531
|
l === void 0 ? window.localStorage.removeItem(ae) : window.localStorage.setItem(ae, l);
|
|
5187
5532
|
} catch {
|
|
5188
5533
|
}
|
|
5189
5534
|
}
|
|
5190
|
-
function
|
|
5535
|
+
function Ca() {
|
|
5191
5536
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
5192
5537
|
}
|
|
5193
5538
|
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
5194
|
-
const
|
|
5539
|
+
const Pe = ie(void 0), Ia = (l, r) => {
|
|
5195
5540
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = u.create({
|
|
5196
5541
|
baseURL: l || e,
|
|
5197
5542
|
withCredentials: !0,
|
|
@@ -5201,27 +5546,28 @@ const ge = le(void 0), Oa = (l, r) => {
|
|
|
5201
5546
|
const o = await r?.();
|
|
5202
5547
|
return n.headers.Authorization = o || "", n;
|
|
5203
5548
|
});
|
|
5204
|
-
const a = new
|
|
5549
|
+
const a = new ba({ basePath: e });
|
|
5205
5550
|
return {
|
|
5206
|
-
models: new
|
|
5207
|
-
publisher: new
|
|
5208
|
-
environments: new
|
|
5209
|
-
packages: new
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5551
|
+
models: new ra(a, e, t),
|
|
5552
|
+
publisher: new pa(a, e, t),
|
|
5553
|
+
environments: new ea(a, e, t),
|
|
5554
|
+
packages: new la(a, e, t),
|
|
5555
|
+
agents: new ze(a, e, t),
|
|
5556
|
+
dashboards: new Ke(a, e, t),
|
|
5557
|
+
dataApps: new Ye(a, e, t),
|
|
5558
|
+
notebooks: new sa(a, e, t),
|
|
5559
|
+
reports: new ma(a, e, t),
|
|
5560
|
+
connections: new _e(a, e, t),
|
|
5561
|
+
databases: new Xe(a, e, t),
|
|
5562
|
+
materializations: new ta(
|
|
5217
5563
|
a,
|
|
5218
5564
|
e,
|
|
5219
5565
|
t
|
|
5220
5566
|
),
|
|
5221
|
-
watchMode: new
|
|
5222
|
-
versions: new
|
|
5567
|
+
watchMode: new va(a, e, t),
|
|
5568
|
+
versions: new Pa(a, e, t)
|
|
5223
5569
|
};
|
|
5224
|
-
},
|
|
5570
|
+
}, En = (l) => /* @__PURE__ */ Q(Ae, { client: Sa, children: /* @__PURE__ */ Q(xa, { ...l }) }), xa = ({
|
|
5225
5571
|
children: l,
|
|
5226
5572
|
getAccessToken: r,
|
|
5227
5573
|
baseURL: e,
|
|
@@ -5229,219 +5575,234 @@ const ge = le(void 0), Oa = (l, r) => {
|
|
|
5229
5575
|
theme: a,
|
|
5230
5576
|
ui: n
|
|
5231
5577
|
}) => {
|
|
5232
|
-
const o =
|
|
5233
|
-
() =>
|
|
5578
|
+
const o = B(
|
|
5579
|
+
() => Ia(e, r),
|
|
5234
5580
|
[e, r]
|
|
5235
|
-
), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, c =
|
|
5236
|
-
queryKey: ["status"],
|
|
5581
|
+
), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, c = ye({
|
|
5582
|
+
queryKey: ["status", s],
|
|
5583
|
+
// Retried, unlike the client's other reads: the model page depends on
|
|
5584
|
+
// the answer for the whole session, and one dropped request would
|
|
5585
|
+
// otherwise settle it.
|
|
5586
|
+
retry: 3,
|
|
5237
5587
|
queryFn: async () => (await o.publisher.getStatus()).data
|
|
5238
5588
|
});
|
|
5239
5589
|
c.error && console.error("Failed to fetch publisher status:", c.error);
|
|
5240
|
-
const i = c.data?.frozenConfig, p = c.data?.theme, d = c
|
|
5241
|
-
let
|
|
5242
|
-
c.isLoading || c.error ?
|
|
5243
|
-
const
|
|
5590
|
+
const i = c.data?.frozenConfig, p = c.data?.theme, { modelPage: d, isLoadingStatus: h } = Oa(c);
|
|
5591
|
+
let k;
|
|
5592
|
+
c.isLoading || c.error ? k = t : i ? k = !1 : k = t ?? !0;
|
|
5593
|
+
const O = B(
|
|
5244
5594
|
() => [p, a],
|
|
5245
5595
|
[p, a]
|
|
5246
|
-
), [
|
|
5247
|
-
|
|
5248
|
-
), [
|
|
5249
|
-
|
|
5596
|
+
), [I, N] = oe(
|
|
5597
|
+
Aa
|
|
5598
|
+
), [te, Ve] = oe(Ca);
|
|
5599
|
+
Ce(() => {
|
|
5250
5600
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
5251
|
-
const f = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
5252
|
-
return f.addEventListener("change",
|
|
5601
|
+
const f = window.matchMedia("(prefers-color-scheme: dark)"), re = (ke) => Ve(ke.matches);
|
|
5602
|
+
return f.addEventListener("change", re), () => f.removeEventListener("change", re);
|
|
5253
5603
|
}, []);
|
|
5254
|
-
const
|
|
5255
|
-
|
|
5256
|
-
}, []),
|
|
5604
|
+
const ve = Ie((f) => {
|
|
5605
|
+
N(f), ya(f);
|
|
5606
|
+
}, []), ne = p?.allowUserToggle ?? !0, G = ne ? I : void 0, be = B(
|
|
5257
5607
|
() => je(
|
|
5258
5608
|
p?.defaultMode,
|
|
5259
5609
|
G,
|
|
5260
|
-
|
|
5610
|
+
te
|
|
5261
5611
|
),
|
|
5262
|
-
[p?.defaultMode, G,
|
|
5263
|
-
),
|
|
5612
|
+
[p?.defaultMode, G, te]
|
|
5613
|
+
), Se = {
|
|
5264
5614
|
server: s,
|
|
5265
5615
|
getAccessToken: r,
|
|
5266
5616
|
apiClients: o,
|
|
5267
|
-
mutable:
|
|
5268
|
-
isLoadingStatus:
|
|
5269
|
-
instanceTheme: p
|
|
5617
|
+
mutable: k,
|
|
5618
|
+
isLoadingStatus: h,
|
|
5619
|
+
instanceTheme: p,
|
|
5620
|
+
modelPage: d
|
|
5270
5621
|
};
|
|
5271
|
-
return /* @__PURE__ */
|
|
5272
|
-
|
|
5622
|
+
return /* @__PURE__ */ Q(Pe.Provider, { value: Se, children: /* @__PURE__ */ Q(
|
|
5623
|
+
De,
|
|
5273
5624
|
{
|
|
5274
|
-
layers:
|
|
5625
|
+
layers: O,
|
|
5275
5626
|
mode: be,
|
|
5276
5627
|
userChoice: G,
|
|
5277
|
-
setMode:
|
|
5278
|
-
allowUserToggle:
|
|
5628
|
+
setMode: ve,
|
|
5629
|
+
allowUserToggle: ne,
|
|
5279
5630
|
...n ? { ui: n } : {},
|
|
5280
5631
|
children: l
|
|
5281
5632
|
}
|
|
5282
5633
|
) });
|
|
5283
|
-
},
|
|
5284
|
-
const l =
|
|
5634
|
+
}, fn = () => {
|
|
5635
|
+
const l = le(Pe);
|
|
5285
5636
|
if (l === void 0)
|
|
5286
5637
|
throw new Error("useServer must be used within a ServerProvider");
|
|
5287
5638
|
return l;
|
|
5288
5639
|
};
|
|
5289
5640
|
export {
|
|
5290
|
-
|
|
5291
|
-
|
|
5641
|
+
ht as $,
|
|
5642
|
+
ze as A,
|
|
5292
5643
|
X as B,
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5644
|
+
Ga as C,
|
|
5645
|
+
at as D,
|
|
5646
|
+
nt as E,
|
|
5647
|
+
Ye as F,
|
|
5648
|
+
$e as G,
|
|
5649
|
+
un as H,
|
|
5650
|
+
ue as I,
|
|
5651
|
+
rt as J,
|
|
5652
|
+
Xe as K,
|
|
5653
|
+
Je as L,
|
|
5654
|
+
gn as M,
|
|
5655
|
+
ge as N,
|
|
5656
|
+
ea as O,
|
|
5657
|
+
Ze as P,
|
|
5658
|
+
Pn as Q,
|
|
5308
5659
|
w as R,
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5660
|
+
kn as S,
|
|
5661
|
+
ot as T,
|
|
5662
|
+
st as U,
|
|
5663
|
+
ln as V,
|
|
5664
|
+
ct as W,
|
|
5665
|
+
lt as X,
|
|
5666
|
+
it as Y,
|
|
5667
|
+
mt as Z,
|
|
5668
|
+
pt as _,
|
|
5318
5669
|
qe as a,
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5670
|
+
Jt as a$,
|
|
5671
|
+
dt as a0,
|
|
5672
|
+
vn as a1,
|
|
5673
|
+
ut as a2,
|
|
5674
|
+
ta as a3,
|
|
5675
|
+
aa as a4,
|
|
5676
|
+
Vn as a5,
|
|
5677
|
+
M as a6,
|
|
5678
|
+
gt as a7,
|
|
5679
|
+
ra as a8,
|
|
5680
|
+
na as a9,
|
|
5681
|
+
Ft as aA,
|
|
5682
|
+
Bt as aB,
|
|
5683
|
+
la as aC,
|
|
5684
|
+
ca as aD,
|
|
5685
|
+
On as aE,
|
|
5686
|
+
R as aF,
|
|
5687
|
+
jt as aG,
|
|
5688
|
+
Dt as aH,
|
|
5689
|
+
pa as aI,
|
|
5690
|
+
ia as aJ,
|
|
5691
|
+
An as aK,
|
|
5692
|
+
D as aL,
|
|
5693
|
+
Lt as aM,
|
|
5694
|
+
Qt as aN,
|
|
5695
|
+
qt as aO,
|
|
5696
|
+
zt as aP,
|
|
5697
|
+
Ht as aQ,
|
|
5698
|
+
Gt as aR,
|
|
5699
|
+
_t as aS,
|
|
5700
|
+
Kt as aT,
|
|
5701
|
+
Wt as aU,
|
|
5702
|
+
$t as aV,
|
|
5703
|
+
Yt as aW,
|
|
5704
|
+
ma as aX,
|
|
5705
|
+
da as aY,
|
|
5706
|
+
yn as aZ,
|
|
5707
|
+
Z as a_,
|
|
5708
|
+
bn as aa,
|
|
5709
|
+
F as ab,
|
|
5710
|
+
Vt as ac,
|
|
5711
|
+
bt as ad,
|
|
5712
|
+
vt as ae,
|
|
5713
|
+
Pt as af,
|
|
5714
|
+
sa as ag,
|
|
5715
|
+
oa as ah,
|
|
5716
|
+
Sn as ai,
|
|
5717
|
+
H as aj,
|
|
5367
5718
|
St as ak,
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5719
|
+
Ct as al,
|
|
5720
|
+
It as am,
|
|
5721
|
+
yt as an,
|
|
5722
|
+
At as ao,
|
|
5723
|
+
Ot as ap,
|
|
5724
|
+
kt as aq,
|
|
5725
|
+
xt as ar,
|
|
5726
|
+
Rt as as,
|
|
5727
|
+
Nt as at,
|
|
5728
|
+
ft as au,
|
|
5729
|
+
wt as av,
|
|
5730
|
+
Et as aw,
|
|
5731
|
+
Tt as ax,
|
|
5732
|
+
Ut as ay,
|
|
5733
|
+
Mt as az,
|
|
5734
|
+
cn as b,
|
|
5735
|
+
Xt as b0,
|
|
5736
|
+
En as b1,
|
|
5737
|
+
tn as b2,
|
|
5738
|
+
Zt as b3,
|
|
5739
|
+
en as b4,
|
|
5740
|
+
an as b5,
|
|
5741
|
+
nn as b6,
|
|
5742
|
+
rn as b7,
|
|
5743
|
+
In as b8,
|
|
5393
5744
|
ha as b9,
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5745
|
+
ja as bA,
|
|
5746
|
+
Ba as bB,
|
|
5747
|
+
Da as bC,
|
|
5748
|
+
La as bD,
|
|
5749
|
+
Ma as bE,
|
|
5750
|
+
Fa as bF,
|
|
5751
|
+
Y as bG,
|
|
5752
|
+
De as bH,
|
|
5753
|
+
ce as bI,
|
|
5754
|
+
Qa as bJ,
|
|
5755
|
+
Ue as bK,
|
|
5756
|
+
je as bL,
|
|
5757
|
+
Tn as bM,
|
|
5758
|
+
Cn as ba,
|
|
5759
|
+
ee as bb,
|
|
5760
|
+
Rn as bc,
|
|
5761
|
+
ua as bd,
|
|
5762
|
+
xn as be,
|
|
5763
|
+
_ as bf,
|
|
5764
|
+
on as bg,
|
|
5765
|
+
sn as bh,
|
|
5766
|
+
Pa as bi,
|
|
5767
|
+
ga as bj,
|
|
5768
|
+
Nn as bk,
|
|
5769
|
+
T as bl,
|
|
5770
|
+
va as bm,
|
|
5771
|
+
Va as bn,
|
|
5772
|
+
Un as bo,
|
|
5773
|
+
L as bp,
|
|
5774
|
+
Sa as bq,
|
|
5775
|
+
za as br,
|
|
5776
|
+
fn as bs,
|
|
5777
|
+
Be as bt,
|
|
5778
|
+
de as bu,
|
|
5779
|
+
qa as bv,
|
|
5780
|
+
U as bw,
|
|
5781
|
+
wa as bx,
|
|
5782
|
+
fa as by,
|
|
5783
|
+
x as bz,
|
|
5423
5784
|
z as c,
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5785
|
+
Ha as d,
|
|
5786
|
+
_a as e,
|
|
5787
|
+
Wa as f,
|
|
5788
|
+
Ka as g,
|
|
5789
|
+
Ya as h,
|
|
5790
|
+
$a as i,
|
|
5791
|
+
ba as j,
|
|
5792
|
+
Xa as k,
|
|
5793
|
+
Za as l,
|
|
5794
|
+
Ja as m,
|
|
5795
|
+
_e as n,
|
|
5796
|
+
He as o,
|
|
5797
|
+
pn as p,
|
|
5437
5798
|
y as q,
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5799
|
+
mn as r,
|
|
5800
|
+
Ge as s,
|
|
5801
|
+
dn as t,
|
|
5802
|
+
he as u,
|
|
5803
|
+
et as v,
|
|
5804
|
+
tt as w,
|
|
5805
|
+
Ke as x,
|
|
5806
|
+
We as y,
|
|
5807
|
+
hn as z
|
|
5447
5808
|
};
|