@malloy-publisher/sdk 0.9.11 → 0.9.13
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 +5 -7
- package/dist/{RenderedResult-Cmx8sX8d.es.js → RenderedResult-DnBtf-cI.es.js} +2 -2
- package/dist/{RenderedResult-BlNoIiSi.cjs.js → RenderedResult-DtQtNV0d.cjs.js} +1 -1
- package/dist/ServerProvider-BIFPCzTD.cjs.js +1 -0
- package/dist/{ServerProvider-azXLkk1q.es.js → ServerProvider-BV7IoDMR.es.js} +808 -607
- package/dist/builder/index.cjs.js +72 -72
- package/dist/builder/index.es.js +4156 -4219
- package/dist/builder-entry.d.ts +1 -0
- package/dist/client/api.d.ts +224 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +41 -37
- package/dist/components/Connections/common.d.ts +11 -3
- package/dist/components/Report/telemetry.d.ts +0 -5
- package/dist/components/ReportBuilder/BuilderBar.d.ts +1 -1
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +14 -10
- package/dist/components/ReportBuilder/EditorSurface.d.ts +1 -2
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +3 -10
- package/dist/components/ReportBuilder/ReportEditor.d.ts +2 -9
- package/dist/components/ReportBuilder/SaveStatus.d.ts +16 -0
- package/dist/components/ReportBuilder/TileFrame.d.ts +9 -2
- package/dist/components/ReportBuilder/builderControls.d.ts +14 -6
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +1 -1
- package/dist/components/ReportBuilder/useReportDraft.d.ts +6 -2
- package/dist/components/given/GivenInput.d.ts +18 -1
- package/dist/components/given/GivensPanel.d.ts +12 -1
- package/dist/components/given/useOptionSearch.d.ts +30 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useDocumentControls.d.ts +5 -0
- package/dist/hooks/useGivensState.d.ts +7 -0
- package/dist/hooks/useSuggestOptions.d.ts +60 -4
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +2541 -2400
- package/dist/{useCompiledDocument-7j5cBjQd.es.js → useCompiledDocument-B4QF1mIl.es.js} +6912 -6759
- package/dist/useCompiledDocument-D0OAMejE.cjs.js +142 -0
- package/package.json +1 -1
- package/src/builder-entry.ts +1 -0
- package/src/components/Connections/AddConnectionDialog.tsx +34 -2
- package/src/components/Connections/EditConnectionDialog.tsx +45 -3
- package/src/components/Connections/common.spec.ts +69 -0
- package/src/components/Connections/common.ts +132 -0
- package/src/components/Environment/Connections.tsx +1 -0
- package/src/components/Report/ReportPage.tsx +5 -1
- package/src/components/Report/telemetry.ts +0 -6
- package/src/components/ReportBuilder/AddTileDialog.tsx +2 -2
- package/src/components/ReportBuilder/BuilderBar.tsx +5 -256
- package/src/components/ReportBuilder/BuilderHeader.tsx +9 -3
- package/src/components/ReportBuilder/BuilderToolbar.tsx +15 -38
- package/src/components/ReportBuilder/EditorSurface.tsx +0 -3
- package/src/components/ReportBuilder/FilterDialog.tsx +1 -1
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +210 -24
- package/src/components/ReportBuilder/ReportBuilder.tsx +43 -85
- package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +0 -36
- package/src/components/ReportBuilder/ReportEditor.tsx +2 -13
- package/src/components/ReportBuilder/SaveStatus.tsx +271 -0
- package/src/components/ReportBuilder/TileFrame.spec.ts +34 -0
- package/src/components/ReportBuilder/TileFrame.tsx +10 -3
- package/src/components/ReportBuilder/builderControls.ts +39 -13
- package/src/components/ReportBuilder/emptyStart.spec.ts +1 -1
- package/src/components/ReportBuilder/useReportDraft.ts +38 -4
- package/src/components/given/GivenInput.tsx +219 -104
- package/src/components/given/GivensPanel.spec.tsx +19 -0
- package/src/components/given/GivensPanel.tsx +31 -1
- package/src/components/given/useOptionSearch.spec.tsx +218 -0
- package/src/components/given/useOptionSearch.ts +100 -0
- package/src/hooks/index.ts +5 -1
- package/src/hooks/useDocumentControls.ts +12 -1
- package/src/hooks/useGivensState.spec.ts +54 -0
- package/src/hooks/useGivensState.ts +21 -1
- package/src/hooks/useSuggestOptions.dom.spec.ts +125 -4
- package/src/hooks/useSuggestOptions.spec.ts +73 -2
- package/src/hooks/useSuggestOptions.ts +234 -62
- package/dist/ServerProvider-BOgiW8MX.cjs.js +0 -1
- package/dist/useCompiledDocument-B21sVbb4.cjs.js +0 -141
- package/src/components/ReportBuilder/ReportBuilder.layoutSwitch.spec.tsx +0 -145
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
-
import { QueryClient as Ve, QueryClientProvider as
|
|
2
|
+
import { QueryClient as Ve, QueryClientProvider as Oe, useQuery as ke } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { styled as
|
|
6
|
-
const
|
|
4
|
+
import { useContext as se, useMemo as F, createContext as le, useState as te, useEffect as Ae, useCallback as ye } from "react";
|
|
5
|
+
import { styled as D, Card as Ce, CardContent as Ie, CardMedia as xe } from "@mui/material";
|
|
6
|
+
const ne = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", N = {
|
|
7
7
|
radius: { control: "6px", tile: "8px", menu: "10px", dialog: "12px" },
|
|
8
8
|
size: { control: 32, chip: 24 },
|
|
9
9
|
type: {
|
|
@@ -13,12 +13,12 @@ const te = "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: ne }
|
|
17
17
|
},
|
|
18
|
-
font: { mono:
|
|
18
|
+
font: { mono: ne },
|
|
19
19
|
shadow: { menu: "0 8px 24px rgba(16, 24, 40, 0.12)" }
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function Re(c) {
|
|
22
22
|
if (!c) return N;
|
|
23
23
|
const n = { ...N.font, ...c.font }, e = { ...N.type };
|
|
24
24
|
e.code = { ...e.code, fontFamily: n.mono };
|
|
@@ -35,7 +35,7 @@ function xe(c) {
|
|
|
35
35
|
shadow: { ...N.shadow, ...c.shadow }
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const x = {
|
|
39
39
|
blue: "#2563eb",
|
|
40
40
|
indigo: "#4f46e5",
|
|
41
41
|
violet: "#7c3aed",
|
|
@@ -48,25 +48,25 @@ const I = {
|
|
|
48
48
|
teal: "#0f766e",
|
|
49
49
|
cyan: "#0e7490",
|
|
50
50
|
slate: "#475569"
|
|
51
|
-
},
|
|
52
|
-
environment:
|
|
53
|
-
package:
|
|
54
|
-
connection:
|
|
55
|
-
},
|
|
51
|
+
}, Ia = {
|
|
52
|
+
environment: x.emerald,
|
|
53
|
+
package: x.teal,
|
|
54
|
+
connection: x.orange
|
|
55
|
+
}, xa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ra = D(Ce)({
|
|
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
|
+
}), Na = D(Ie)({
|
|
63
63
|
display: "flex",
|
|
64
64
|
flexDirection: "column",
|
|
65
65
|
padding: "0",
|
|
66
66
|
flexGrow: 1
|
|
67
|
-
}),
|
|
67
|
+
}), Ua = D(xe)({
|
|
68
68
|
padding: "0"
|
|
69
|
-
}),
|
|
69
|
+
}), Ta = D("div")({
|
|
70
70
|
backgroundColor: "transparent",
|
|
71
71
|
paddingTop: "12px",
|
|
72
72
|
paddingBottom: "2px",
|
|
@@ -74,15 +74,15 @@ const I = {
|
|
|
74
74
|
border: "none",
|
|
75
75
|
boxShadow: "none",
|
|
76
76
|
marginBottom: "0"
|
|
77
|
-
}),
|
|
77
|
+
}), wa = D("div")({
|
|
78
78
|
height: "100%"
|
|
79
|
-
}),
|
|
79
|
+
}), fa = D("div")({
|
|
80
80
|
height: "75vh",
|
|
81
81
|
width: "100%",
|
|
82
82
|
overflowY: "auto"
|
|
83
|
-
}),
|
|
83
|
+
}), Ne = {
|
|
84
84
|
light: {
|
|
85
|
-
accent:
|
|
85
|
+
accent: x.blue,
|
|
86
86
|
accentHover: "#1d4ed8",
|
|
87
87
|
accentContrast: "#ffffff"
|
|
88
88
|
},
|
|
@@ -91,45 +91,45 @@ const I = {
|
|
|
91
91
|
accentHover: "#93c5fd",
|
|
92
92
|
accentContrast: "#0f172a"
|
|
93
93
|
}
|
|
94
|
-
},
|
|
94
|
+
}, Ue = {
|
|
95
95
|
light: "#ffffff",
|
|
96
96
|
dark: "#0f172a"
|
|
97
|
-
},
|
|
97
|
+
}, Te = 3, U = (c) => {
|
|
98
98
|
const n = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(c.trim());
|
|
99
99
|
if (!n) return;
|
|
100
100
|
const e = n[1].length === 3 ? [...n[1]].map((t) => t + t).join("") : n[1];
|
|
101
101
|
return [0, 2, 4].map((t) => parseInt(e.slice(t, t + 2), 16));
|
|
102
|
-
}, ce = (c) => `#${c.map((n) => Math.round(n).toString(16).padStart(2, "0")).join("")}`,
|
|
102
|
+
}, ce = (c) => `#${c.map((n) => Math.round(n).toString(16).padStart(2, "0")).join("")}`, G = (c, n, e) => ce(c.map((t) => t + (n - t) * e)), W = (c) => {
|
|
103
103
|
const [n, e, t] = c.map((a) => {
|
|
104
104
|
const r = a / 255;
|
|
105
105
|
return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
|
|
106
106
|
});
|
|
107
107
|
return 0.2126 * n + 0.7152 * e + 0.0722 * t;
|
|
108
108
|
}, Q = (c, n) => {
|
|
109
|
-
const [e, t] = [
|
|
109
|
+
const [e, t] = [W(c), W(n)].sort((a, r) => r - a);
|
|
110
110
|
return (e + 0.05) / (t + 0.05);
|
|
111
111
|
};
|
|
112
|
-
function
|
|
112
|
+
function Ea(c, n) {
|
|
113
113
|
const e = U(c), t = U(n);
|
|
114
114
|
return e && t ? Q(e, t) : void 0;
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
function
|
|
116
|
+
const we = [15, 23, 42];
|
|
117
|
+
function $(c, n, e = Te) {
|
|
118
118
|
const t = U(c), a = U(n);
|
|
119
119
|
if (!t || !a || Q(t, a) >= e) return c;
|
|
120
|
-
const r =
|
|
120
|
+
const r = W(a) < 0.5 ? 255 : 0;
|
|
121
121
|
for (let o = 0.05; o < 1; o += 0.05) {
|
|
122
|
-
const s = U(
|
|
122
|
+
const s = U(G(t, r, o));
|
|
123
123
|
if (s && Q(s, a) >= e) return ce(s);
|
|
124
124
|
}
|
|
125
125
|
return r === 255 ? "#ffffff" : "#000000";
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const t =
|
|
129
|
-
if (!c || c.toLowerCase() ===
|
|
127
|
+
function re(c, n, e = Ue[n]) {
|
|
128
|
+
const t = Ne[n];
|
|
129
|
+
if (!c || c.toLowerCase() === x.blue) return t;
|
|
130
130
|
if (!U(c))
|
|
131
131
|
return n === "light" ? { ...t, accent: c, accentHover: c } : t;
|
|
132
|
-
const a =
|
|
132
|
+
const a = $(c, e), r = U(a), o = n === "dark" ? G(r, 255, 0.25) : G(r, 0, 0.2), s = Q(r, [255, 255, 255]), l = Q(r, we);
|
|
133
133
|
return {
|
|
134
134
|
accent: a,
|
|
135
135
|
accentHover: o,
|
|
@@ -137,15 +137,15 @@ function ne(c, n, e = Ne[n]) {
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
const fe = [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
],
|
|
140
|
+
x.blue,
|
|
141
|
+
x.orange,
|
|
142
|
+
x.emerald,
|
|
143
|
+
x.pink,
|
|
144
|
+
x.violet,
|
|
145
|
+
x.amber,
|
|
146
|
+
x.cyan,
|
|
147
|
+
x.lime
|
|
148
|
+
], Ee = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", oe = {
|
|
149
149
|
defaultMode: "light",
|
|
150
150
|
allowUserToggle: !0,
|
|
151
151
|
palette: {
|
|
@@ -196,8 +196,8 @@ const fe = [
|
|
|
196
196
|
// pairs this with a near-neutral low end. Matches the first series
|
|
197
197
|
// colour, so a map and a chart on one page ramp to the same hue.
|
|
198
198
|
mapColor: {
|
|
199
|
-
light:
|
|
200
|
-
dark:
|
|
199
|
+
light: x.blue,
|
|
200
|
+
dark: x.blue
|
|
201
201
|
},
|
|
202
202
|
// Table gridlines and row rules: a hairline, because a table has dozens
|
|
203
203
|
// of them and they only have to separate rows.
|
|
@@ -235,10 +235,10 @@ const fe = [
|
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
font: {
|
|
238
|
-
family:
|
|
238
|
+
family: Ee,
|
|
239
239
|
size: 12
|
|
240
240
|
}
|
|
241
|
-
},
|
|
241
|
+
}, Me = [
|
|
242
242
|
"background",
|
|
243
243
|
"tableHeader",
|
|
244
244
|
"tableHeaderBackground",
|
|
@@ -253,8 +253,8 @@ const fe = [
|
|
|
253
253
|
"chartText",
|
|
254
254
|
"value"
|
|
255
255
|
];
|
|
256
|
-
function
|
|
257
|
-
const e =
|
|
256
|
+
function ie(c, n) {
|
|
257
|
+
const e = oe.palette ?? {}, t = oe.font ?? {
|
|
258
258
|
family: "sans-serif",
|
|
259
259
|
size: 12
|
|
260
260
|
};
|
|
@@ -282,13 +282,13 @@ function le(c, n) {
|
|
|
282
282
|
for (const k of c)
|
|
283
283
|
if (k) {
|
|
284
284
|
Array.isArray(k.palette?.series) && (a = [...k.palette.series], r = !0);
|
|
285
|
-
for (const
|
|
286
|
-
const R = k.palette?.[
|
|
287
|
-
R && (l[
|
|
285
|
+
for (const I of Me) {
|
|
286
|
+
const R = k.palette?.[I];
|
|
287
|
+
R && (l[I] = { ...l[I], ...R }, R.light !== void 0 && i.light.add(I), R.dark !== void 0 && i.dark.add(I));
|
|
288
288
|
}
|
|
289
289
|
typeof k.font?.family == "string" && (o = k.font.family), typeof k.font?.size == "number" && (s = k.font.size);
|
|
290
290
|
}
|
|
291
|
-
const p = n === "dark", d = (k) => l[k][n] ?? e[k]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ?
|
|
291
|
+
const p = n === "dark", d = (k) => l[k][n] ?? e[k]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? $(l.mapColor.light, h) : d("mapColor");
|
|
292
292
|
return {
|
|
293
293
|
mode: n,
|
|
294
294
|
// The host's chrome tokens are laid over this by `ThemeProvider`.
|
|
@@ -296,8 +296,8 @@ function le(c, n) {
|
|
|
296
296
|
// One series list for both modes, picked against a light page: in dark,
|
|
297
297
|
// an operator's colour too dark to see on the canvas is lifted until it
|
|
298
298
|
// reads. The defaults are drawn as they always were.
|
|
299
|
-
series: p && r ? a.map((k) =>
|
|
300
|
-
...
|
|
299
|
+
series: p && r ? a.map((k) => $(k, h)) : a,
|
|
300
|
+
...re(a[0], n, h),
|
|
301
301
|
font: { family: o, size: s },
|
|
302
302
|
background: h,
|
|
303
303
|
tableHeader: d("tableHeader"),
|
|
@@ -345,15 +345,15 @@ function le(c, n) {
|
|
|
345
345
|
// contrast on the slate panel.
|
|
346
346
|
// The Console's default accent, not the palette's: a drill reads as a
|
|
347
347
|
// link whatever the operator picked for the data.
|
|
348
|
-
drillLink:
|
|
348
|
+
drillLink: re(void 0, n).accent
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Fe(c, n, e) {
|
|
352
352
|
const t = n ?? c ?? "light";
|
|
353
353
|
return t === "auto" ? e ? "dark" : "light" : t;
|
|
354
354
|
}
|
|
355
|
-
const
|
|
356
|
-
function
|
|
355
|
+
const pe = le(void 0);
|
|
356
|
+
function De({
|
|
357
357
|
layers: c,
|
|
358
358
|
mode: n,
|
|
359
359
|
userChoice: e,
|
|
@@ -363,22 +363,22 @@ function Fe({
|
|
|
363
363
|
children: o
|
|
364
364
|
}) {
|
|
365
365
|
const s = JSON.stringify(r ?? null), l = F(
|
|
366
|
-
() =>
|
|
366
|
+
() => Re(r),
|
|
367
367
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
368
368
|
[s]
|
|
369
369
|
), i = F(
|
|
370
|
-
() => ({ ...
|
|
370
|
+
() => ({ ...ie(c, n), ui: l }),
|
|
371
371
|
[c, n, l]
|
|
372
372
|
), p = F(
|
|
373
373
|
() => ({ theme: i, layers: c, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
|
|
374
374
|
[i, c, n, e, t, a]
|
|
375
375
|
);
|
|
376
|
-
return /* @__PURE__ */ q(
|
|
376
|
+
return /* @__PURE__ */ q(pe.Provider, { value: p, children: o });
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
const c =
|
|
378
|
+
function Ma() {
|
|
379
|
+
const c = se(pe);
|
|
380
380
|
return c || {
|
|
381
|
-
theme:
|
|
381
|
+
theme: ie([], "light"),
|
|
382
382
|
layers: [],
|
|
383
383
|
mode: "light",
|
|
384
384
|
userChoice: void 0,
|
|
@@ -388,7 +388,7 @@ function wa() {
|
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
const g = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
391
|
-
class
|
|
391
|
+
class C {
|
|
392
392
|
constructor(n, e = g, t = u) {
|
|
393
393
|
this.basePath = e, this.axios = t, n && (this.configuration = n, this.basePath = n.basePath ?? e);
|
|
394
394
|
}
|
|
@@ -399,201 +399,202 @@ class Be extends Error {
|
|
|
399
399
|
super(e), this.field = n, this.name = "RequiredError";
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
const b = {},
|
|
402
|
+
const b = {}, S = "https://example.com", m = function(c, n, e) {
|
|
403
403
|
if (e == null)
|
|
404
404
|
throw new Be(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
|
|
405
405
|
};
|
|
406
|
-
function
|
|
407
|
-
n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) =>
|
|
408
|
-
(t) =>
|
|
406
|
+
function K(c, n, e = "") {
|
|
407
|
+
n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) => K(c, t, e)) : Object.keys(n).forEach(
|
|
408
|
+
(t) => K(c, n[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
409
409
|
) : c.has(e) ? c.append(e, n) : c.set(e, n));
|
|
410
410
|
}
|
|
411
411
|
const v = function(c, ...n) {
|
|
412
412
|
const e = new URLSearchParams(c.search);
|
|
413
|
-
|
|
413
|
+
K(e, n), c.search = e.toString();
|
|
414
414
|
}, je = function(c, n) {
|
|
415
415
|
return n instanceof Set ? Array.from(n) : n;
|
|
416
416
|
}, A = function(c, n, e) {
|
|
417
417
|
const t = typeof c != "string";
|
|
418
418
|
return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(c !== void 0 ? c : {}, je) : c || "";
|
|
419
|
-
},
|
|
419
|
+
}, P = function(c) {
|
|
420
420
|
return c.pathname + c.search + c.hash;
|
|
421
|
-
},
|
|
421
|
+
}, V = function(c, n, e, t) {
|
|
422
422
|
return (a = n, r = e) => {
|
|
423
423
|
const o = { ...c.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + c.url };
|
|
424
424
|
return a.request(o);
|
|
425
425
|
};
|
|
426
|
-
},
|
|
426
|
+
}, Fa = {
|
|
427
427
|
Bigquery: "bigquery",
|
|
428
428
|
Snowflake: "snowflake",
|
|
429
429
|
Postgres: "postgres",
|
|
430
430
|
Gcs: "gcs",
|
|
431
431
|
S3: "s3",
|
|
432
432
|
Azure: "azure"
|
|
433
|
-
},
|
|
433
|
+
}, Da = {
|
|
434
434
|
ServicePrincipal: "service_principal",
|
|
435
435
|
SasToken: "sas_token"
|
|
436
|
-
},
|
|
436
|
+
}, Ba = {
|
|
437
437
|
Error: "error",
|
|
438
438
|
Warn: "warn",
|
|
439
439
|
Debug: "debug"
|
|
440
|
-
},
|
|
440
|
+
}, ja = {
|
|
441
441
|
Append: "append",
|
|
442
442
|
File: "file",
|
|
443
443
|
Package: "package"
|
|
444
|
-
},
|
|
444
|
+
}, qa = {
|
|
445
445
|
Success: "success",
|
|
446
446
|
Error: "error"
|
|
447
|
-
},
|
|
447
|
+
}, Qa = {
|
|
448
448
|
Grid: "grid",
|
|
449
449
|
Linear: "linear"
|
|
450
|
-
},
|
|
450
|
+
}, La = {
|
|
451
451
|
Dashboard: "dashboard",
|
|
452
452
|
Notebook: "notebook"
|
|
453
|
-
},
|
|
453
|
+
}, za = {
|
|
454
454
|
Postgres: "postgres",
|
|
455
455
|
Bigquery: "bigquery",
|
|
456
456
|
Snowflake: "snowflake",
|
|
457
457
|
Trino: "trino",
|
|
458
458
|
Databricks: "databricks",
|
|
459
459
|
Mysql: "mysql",
|
|
460
|
+
Sqlserver: "sqlserver",
|
|
460
461
|
Duckdb: "duckdb",
|
|
461
462
|
Motherduck: "motherduck",
|
|
462
463
|
Ducklake: "ducklake",
|
|
463
464
|
Publisher: "publisher"
|
|
464
|
-
},
|
|
465
|
+
}, Ha = {
|
|
465
466
|
Ssh: "ssh"
|
|
466
|
-
},
|
|
467
|
+
}, _a = {
|
|
467
468
|
Ok: "ok",
|
|
468
469
|
Failed: "failed"
|
|
469
|
-
},
|
|
470
|
+
}, Ga = {
|
|
470
471
|
Grid: "grid",
|
|
471
472
|
Linear: "linear"
|
|
472
|
-
},
|
|
473
|
+
}, Wa = {
|
|
473
474
|
Dashboard: "dashboard",
|
|
474
475
|
Notebook: "notebook"
|
|
475
|
-
},
|
|
476
|
+
}, $a = {
|
|
476
477
|
Query: "query",
|
|
477
478
|
Text: "text"
|
|
478
|
-
},
|
|
479
|
+
}, Ka = {
|
|
479
480
|
Viewport: "viewport"
|
|
480
|
-
},
|
|
481
|
+
}, Ya = {
|
|
481
482
|
Embedded: "embedded",
|
|
482
483
|
Materialized: "materialized"
|
|
483
|
-
},
|
|
484
|
+
}, Ja = {
|
|
484
485
|
Equal: "equal",
|
|
485
486
|
In: "in",
|
|
486
487
|
Like: "like",
|
|
487
488
|
GreaterThan: "greater_than",
|
|
488
489
|
LessThan: "less_than"
|
|
489
|
-
},
|
|
490
|
+
}, Xa = {
|
|
490
491
|
Live: "live",
|
|
491
492
|
StaleOk: "stale_ok",
|
|
492
493
|
Fail: "fail"
|
|
493
|
-
},
|
|
494
|
+
}, Za = {
|
|
494
495
|
Select: "select",
|
|
495
496
|
Multiselect: "multiselect"
|
|
496
|
-
},
|
|
497
|
+
}, et = {
|
|
497
498
|
Merge: "merge",
|
|
498
499
|
RangeReplace: "range_replace"
|
|
499
|
-
},
|
|
500
|
+
}, at = {
|
|
500
501
|
Debug: "debug",
|
|
501
502
|
Info: "info",
|
|
502
503
|
Warn: "warn",
|
|
503
504
|
Error: "error"
|
|
504
|
-
},
|
|
505
|
+
}, tt = {
|
|
505
506
|
Persist: "persist",
|
|
506
507
|
Preaggregate: "preaggregate"
|
|
507
|
-
},
|
|
508
|
+
}, nt = {
|
|
508
509
|
Reused: "reused",
|
|
509
510
|
Recomputed: "recomputed"
|
|
510
|
-
},
|
|
511
|
+
}, rt = {
|
|
511
512
|
Live: "live",
|
|
512
513
|
StaleOk: "stale_ok",
|
|
513
514
|
Fail: "fail"
|
|
514
|
-
},
|
|
515
|
+
}, ot = {
|
|
515
516
|
Delta: "delta",
|
|
516
517
|
Full: "full",
|
|
517
518
|
None: "none"
|
|
518
|
-
},
|
|
519
|
+
}, st = {
|
|
519
520
|
Pending: "PENDING",
|
|
520
521
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
521
522
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
522
523
|
Failed: "FAILED",
|
|
523
524
|
Cancelled: "CANCELLED"
|
|
524
|
-
},
|
|
525
|
+
}, lt = {
|
|
525
526
|
Markdown: "markdown",
|
|
526
527
|
Code: "code"
|
|
527
|
-
},
|
|
528
|
+
}, ct = {
|
|
528
529
|
Markdown: "markdown",
|
|
529
530
|
Query: "query",
|
|
530
531
|
Definition: "definition"
|
|
531
|
-
},
|
|
532
|
+
}, it = {
|
|
532
533
|
Markdown: "markdown",
|
|
533
534
|
Code: "code"
|
|
534
|
-
},
|
|
535
|
+
}, pt = {
|
|
535
536
|
Markdown: "markdown",
|
|
536
537
|
Query: "query",
|
|
537
538
|
Definition: "definition"
|
|
538
|
-
},
|
|
539
|
+
}, dt = {
|
|
539
540
|
Version: "version",
|
|
540
541
|
Package: "package"
|
|
541
|
-
},
|
|
542
|
+
}, mt = {
|
|
542
543
|
Declared: "declared",
|
|
543
544
|
All: "all"
|
|
544
|
-
},
|
|
545
|
+
}, ht = {
|
|
545
546
|
Unbound: "unbound",
|
|
546
547
|
Bound: "bound",
|
|
547
548
|
LiveFallback: "live_fallback"
|
|
548
|
-
},
|
|
549
|
+
}, ut = {
|
|
549
550
|
Lexical: "lexical",
|
|
550
551
|
Indexing: "indexing",
|
|
551
552
|
Ready: "ready",
|
|
552
553
|
Error: "error",
|
|
553
554
|
Cooldown: "cooldown",
|
|
554
555
|
TooManyEntities: "too-many-entities"
|
|
555
|
-
},
|
|
556
|
+
}, gt = {
|
|
556
557
|
Cooldown: "cooldown",
|
|
557
558
|
TooManyEntities: "too-many-entities"
|
|
558
|
-
},
|
|
559
|
+
}, bt = {
|
|
559
560
|
Keyphrase: "keyphrase",
|
|
560
561
|
SourceSummary: "source_summary"
|
|
561
|
-
},
|
|
562
|
+
}, St = {
|
|
562
563
|
Persist: "persist",
|
|
563
564
|
Preaggregate: "preaggregate"
|
|
564
|
-
},
|
|
565
|
+
}, vt = {
|
|
565
566
|
Error: "error",
|
|
566
567
|
Warn: "warn"
|
|
567
568
|
}, Pt = {
|
|
568
569
|
Persist: "persist",
|
|
569
570
|
Preaggregate: "preaggregate"
|
|
570
|
-
},
|
|
571
|
+
}, Vt = {
|
|
571
572
|
Disable: "disable",
|
|
572
573
|
NoVerify: "no-verify",
|
|
573
574
|
VerifyCa: "verify-ca",
|
|
574
575
|
VerifyFull: "verify-full"
|
|
575
|
-
},
|
|
576
|
+
}, Ot = {
|
|
576
577
|
Interactive: "interactive",
|
|
577
578
|
Materialize: "materialize",
|
|
578
579
|
Index: "index",
|
|
579
580
|
Ops: "ops"
|
|
580
|
-
},
|
|
581
|
+
}, kt = {
|
|
581
582
|
Query: "query",
|
|
582
583
|
ServerDefault: "server_default"
|
|
583
|
-
},
|
|
584
|
+
}, At = {
|
|
584
585
|
Storage: "storage",
|
|
585
586
|
LiveFallback: "live_fallback"
|
|
586
|
-
},
|
|
587
|
+
}, yt = {
|
|
587
588
|
Malloynb: "malloynb",
|
|
588
589
|
Malloy: "malloy"
|
|
589
|
-
},
|
|
590
|
+
}, Ct = {
|
|
590
591
|
Snapshot: "SNAPSHOT",
|
|
591
592
|
Copy: "COPY"
|
|
592
|
-
},
|
|
593
|
+
}, It = {
|
|
593
594
|
Storage: "storage",
|
|
594
595
|
Colocated: "colocated",
|
|
595
596
|
Preaggregate: "preaggregate"
|
|
596
|
-
},
|
|
597
|
+
}, xt = {
|
|
597
598
|
FreeParameter: "free_parameter",
|
|
598
599
|
Given: "given",
|
|
599
600
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
@@ -607,42 +608,43 @@ const v = function(c, ...n) {
|
|
|
607
608
|
PreaggregateOverDynamicSource: "preaggregate_over_dynamic_source",
|
|
608
609
|
Authorize: "authorize",
|
|
609
610
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
610
|
-
PublicSurfaceUnknown: "public_surface_unknown"
|
|
611
|
-
|
|
611
|
+
PublicSurfaceUnknown: "public_surface_unknown",
|
|
612
|
+
ReadOnlyDialect: "read_only_dialect"
|
|
613
|
+
}, Rt = {
|
|
612
614
|
Grid: "grid",
|
|
613
615
|
Linear: "linear"
|
|
614
|
-
},
|
|
616
|
+
}, Nt = {
|
|
615
617
|
Malloynb: "malloynb",
|
|
616
618
|
Malloy: "malloy"
|
|
617
|
-
},
|
|
619
|
+
}, Ut = {
|
|
618
620
|
Grid: "grid",
|
|
619
621
|
Linear: "linear"
|
|
620
|
-
},
|
|
622
|
+
}, Tt = {
|
|
621
623
|
Query: "query",
|
|
622
624
|
Text: "text"
|
|
623
|
-
},
|
|
625
|
+
}, wt = {
|
|
624
626
|
Publish: "publish",
|
|
625
627
|
OnDemand: "on_demand",
|
|
626
628
|
Scheduler: "scheduler"
|
|
627
|
-
},
|
|
629
|
+
}, ft = {
|
|
628
630
|
Config: "config",
|
|
629
631
|
CredentialChain: "credential_chain"
|
|
630
|
-
},
|
|
632
|
+
}, Et = {
|
|
631
633
|
Initializing: "initializing",
|
|
632
634
|
Serving: "serving",
|
|
633
635
|
Draining: "draining",
|
|
634
636
|
Throttled: "throttled"
|
|
635
|
-
},
|
|
637
|
+
}, Mt = {
|
|
636
638
|
Bundled: "bundled",
|
|
637
639
|
Package: "package"
|
|
638
|
-
},
|
|
640
|
+
}, Ft = {
|
|
639
641
|
Bundled: "bundled",
|
|
640
642
|
Package: "package"
|
|
641
|
-
},
|
|
643
|
+
}, Dt = {
|
|
642
644
|
Light: "light",
|
|
643
645
|
Dark: "dark",
|
|
644
646
|
Auto: "auto"
|
|
645
|
-
},
|
|
647
|
+
}, qe = function(c) {
|
|
646
648
|
return {
|
|
647
649
|
/**
|
|
648
650
|
* 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.
|
|
@@ -656,14 +658,14 @@ const v = function(c, ...n) {
|
|
|
656
658
|
*/
|
|
657
659
|
getAgent: async (n, e, t, a, r = {}) => {
|
|
658
660
|
m("getAgent", "environmentName", n), m("getAgent", "packageName", e), m("getAgent", "agentName", t);
|
|
659
|
-
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
661
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
660
662
|
let l;
|
|
661
663
|
c && (l = c.baseOptions);
|
|
662
664
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
663
665
|
a !== void 0 && (d.skills = a), p.Accept = "application/json", v(s, d);
|
|
664
666
|
let h = l && l.headers ? l.headers : {};
|
|
665
667
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
666
|
-
url:
|
|
668
|
+
url: P(s),
|
|
667
669
|
options: i
|
|
668
670
|
};
|
|
669
671
|
},
|
|
@@ -679,14 +681,14 @@ const v = function(c, ...n) {
|
|
|
679
681
|
*/
|
|
680
682
|
getAgentSkillFile: async (n, e, t, a, r = {}) => {
|
|
681
683
|
m("getAgentSkillFile", "environmentName", n), m("getAgentSkillFile", "packageName", e), m("getAgentSkillFile", "agentName", t), m("getAgentSkillFile", "relativeFilepath", a);
|
|
682
|
-
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), s = new URL(o,
|
|
684
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), s = new URL(o, S);
|
|
683
685
|
let l;
|
|
684
686
|
c && (l = c.baseOptions);
|
|
685
687
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
686
688
|
p.Accept = "application/json", v(s, d);
|
|
687
689
|
let h = l && l.headers ? l.headers : {};
|
|
688
690
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
689
|
-
url:
|
|
691
|
+
url: P(s),
|
|
690
692
|
options: i
|
|
691
693
|
};
|
|
692
694
|
},
|
|
@@ -700,20 +702,20 @@ const v = function(c, ...n) {
|
|
|
700
702
|
*/
|
|
701
703
|
listAgents: async (n, e, t = {}) => {
|
|
702
704
|
m("listAgents", "environmentName", n), m("listAgents", "packageName", e);
|
|
703
|
-
const a = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
705
|
+
const a = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
704
706
|
let o;
|
|
705
707
|
c && (o = c.baseOptions);
|
|
706
708
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
707
709
|
l.Accept = "application/json", v(r, i);
|
|
708
710
|
let p = o && o.headers ? o.headers : {};
|
|
709
711
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
710
|
-
url:
|
|
712
|
+
url: P(r),
|
|
711
713
|
options: s
|
|
712
714
|
};
|
|
713
715
|
}
|
|
714
716
|
};
|
|
715
|
-
},
|
|
716
|
-
const n =
|
|
717
|
+
}, L = function(c) {
|
|
718
|
+
const n = qe(c);
|
|
717
719
|
return {
|
|
718
720
|
/**
|
|
719
721
|
* 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.
|
|
@@ -727,7 +729,7 @@ const v = function(c, ...n) {
|
|
|
727
729
|
*/
|
|
728
730
|
async getAgent(e, t, a, r, o) {
|
|
729
731
|
const s = await n.getAgent(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["AgentsApi.getAgent"]?.[l]?.url;
|
|
730
|
-
return (p, d) =>
|
|
732
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
731
733
|
},
|
|
732
734
|
/**
|
|
733
735
|
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
@@ -741,7 +743,7 @@ const v = function(c, ...n) {
|
|
|
741
743
|
*/
|
|
742
744
|
async getAgentSkillFile(e, t, a, r, o) {
|
|
743
745
|
const s = await n.getAgentSkillFile(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["AgentsApi.getAgentSkillFile"]?.[l]?.url;
|
|
744
|
-
return (p, d) =>
|
|
746
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
745
747
|
},
|
|
746
748
|
/**
|
|
747
749
|
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
@@ -753,11 +755,11 @@ const v = function(c, ...n) {
|
|
|
753
755
|
*/
|
|
754
756
|
async listAgents(e, t, a) {
|
|
755
757
|
const r = await n.listAgents(e, t, a), o = c?.serverIndex ?? 0, s = b["AgentsApi.listAgents"]?.[o]?.url;
|
|
756
|
-
return (l, i) =>
|
|
758
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
757
759
|
}
|
|
758
760
|
};
|
|
759
|
-
},
|
|
760
|
-
const t =
|
|
761
|
+
}, Bt = function(c, n, e) {
|
|
762
|
+
const t = L(c);
|
|
761
763
|
return {
|
|
762
764
|
/**
|
|
763
765
|
* 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.
|
|
@@ -798,7 +800,7 @@ const v = function(c, ...n) {
|
|
|
798
800
|
}
|
|
799
801
|
};
|
|
800
802
|
};
|
|
801
|
-
class
|
|
803
|
+
class jt extends C {
|
|
802
804
|
/**
|
|
803
805
|
* 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.
|
|
804
806
|
* @summary Get one agent, resolved
|
|
@@ -810,7 +812,7 @@ class Bt extends x {
|
|
|
810
812
|
* @throws {RequiredError}
|
|
811
813
|
*/
|
|
812
814
|
getAgent(n, e, t, a, r) {
|
|
813
|
-
return
|
|
815
|
+
return L(this.configuration).getAgent(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
814
816
|
}
|
|
815
817
|
/**
|
|
816
818
|
* Returns one file from the agent\'s resolved skill set, named by a `relative_filepath` from `GET .../agents/{agentName}?skills=summary` (for example `analyst-conventions/SKILL.md`), with the same `source` pin as the full definition. The path is looked up in the resolved set, never joined onto the filesystem. 404 when the agent or the file is not served.
|
|
@@ -823,7 +825,7 @@ class Bt extends x {
|
|
|
823
825
|
* @throws {RequiredError}
|
|
824
826
|
*/
|
|
825
827
|
getAgentSkillFile(n, e, t, a, r) {
|
|
826
|
-
return
|
|
828
|
+
return L(this.configuration).getAgentSkillFile(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
827
829
|
}
|
|
828
830
|
/**
|
|
829
831
|
* Lists the agents declared under `agents` in the package\'s `publisher.json` that passed validation, without instructions or skills. An agent that failed validation is not listed; the package\'s `warnings` say why. Empty when the manifest declares none. The REST half of the `get_agent` MCP tool.
|
|
@@ -834,13 +836,13 @@ class Bt extends x {
|
|
|
834
836
|
* @throws {RequiredError}
|
|
835
837
|
*/
|
|
836
838
|
listAgents(n, e, t) {
|
|
837
|
-
return
|
|
839
|
+
return L(this.configuration).listAgents(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
838
840
|
}
|
|
839
841
|
}
|
|
840
|
-
const
|
|
842
|
+
const qt = {
|
|
841
843
|
Full: "full",
|
|
842
844
|
Summary: "summary"
|
|
843
|
-
},
|
|
845
|
+
}, Qe = function(c) {
|
|
844
846
|
return {
|
|
845
847
|
/**
|
|
846
848
|
* Creates a new database connection in the specified environment.
|
|
@@ -853,14 +855,14 @@ const jt = {
|
|
|
853
855
|
*/
|
|
854
856
|
createConnection: async (n, e, t, a = {}) => {
|
|
855
857
|
m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
|
|
856
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
858
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
857
859
|
let s;
|
|
858
860
|
c && (s = c.baseOptions);
|
|
859
861
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
860
862
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
861
863
|
let d = s && s.headers ? s.headers : {};
|
|
862
864
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
863
|
-
url:
|
|
865
|
+
url: P(o),
|
|
864
866
|
options: l
|
|
865
867
|
};
|
|
866
868
|
},
|
|
@@ -874,14 +876,14 @@ const jt = {
|
|
|
874
876
|
*/
|
|
875
877
|
deleteConnection: async (n, e, t = {}) => {
|
|
876
878
|
m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
|
|
877
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
879
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
878
880
|
let o;
|
|
879
881
|
c && (o = c.baseOptions);
|
|
880
882
|
const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
|
|
881
883
|
l.Accept = "application/json", v(r, i);
|
|
882
884
|
let p = o && o.headers ? o.headers : {};
|
|
883
885
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
884
|
-
url:
|
|
886
|
+
url: P(r),
|
|
885
887
|
options: s
|
|
886
888
|
};
|
|
887
889
|
},
|
|
@@ -895,14 +897,14 @@ const jt = {
|
|
|
895
897
|
*/
|
|
896
898
|
getConnection: async (n, e, t = {}) => {
|
|
897
899
|
m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
|
|
898
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
900
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
899
901
|
let o;
|
|
900
902
|
c && (o = c.baseOptions);
|
|
901
903
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
902
904
|
l.Accept = "application/json", v(r, i);
|
|
903
905
|
let p = o && o.headers ? o.headers : {};
|
|
904
906
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
905
|
-
url:
|
|
907
|
+
url: P(r),
|
|
906
908
|
options: s
|
|
907
909
|
};
|
|
908
910
|
},
|
|
@@ -918,14 +920,14 @@ const jt = {
|
|
|
918
920
|
*/
|
|
919
921
|
getTable: async (n, e, t, a, r = {}) => {
|
|
920
922
|
m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
|
|
921
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o,
|
|
923
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, S);
|
|
922
924
|
let l;
|
|
923
925
|
c && (l = c.baseOptions);
|
|
924
926
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
925
927
|
p.Accept = "application/json", v(s, d);
|
|
926
928
|
let h = l && l.headers ? l.headers : {};
|
|
927
929
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
928
|
-
url:
|
|
930
|
+
url: P(s),
|
|
929
931
|
options: i
|
|
930
932
|
};
|
|
931
933
|
},
|
|
@@ -942,14 +944,14 @@ const jt = {
|
|
|
942
944
|
*/
|
|
943
945
|
getTableInPackage: async (n, e, t, a, r, o = {}) => {
|
|
944
946
|
m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", r);
|
|
945
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), l = new URL(s,
|
|
947
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), l = new URL(s, S);
|
|
946
948
|
let i;
|
|
947
949
|
c && (i = c.baseOptions);
|
|
948
950
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
949
951
|
d.Accept = "application/json", v(l, h);
|
|
950
952
|
let O = i && i.headers ? i.headers : {};
|
|
951
953
|
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
952
|
-
url:
|
|
954
|
+
url: P(l),
|
|
953
955
|
options: p
|
|
954
956
|
};
|
|
955
957
|
},
|
|
@@ -962,14 +964,14 @@ const jt = {
|
|
|
962
964
|
*/
|
|
963
965
|
listConnections: async (n, e = {}) => {
|
|
964
966
|
m("listConnections", "environmentName", n);
|
|
965
|
-
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
967
|
+
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, S);
|
|
966
968
|
let r;
|
|
967
969
|
c && (r = c.baseOptions);
|
|
968
970
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
969
971
|
s.Accept = "application/json", v(a, l);
|
|
970
972
|
let i = r && r.headers ? r.headers : {};
|
|
971
973
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
972
|
-
url:
|
|
974
|
+
url: P(a),
|
|
973
975
|
options: o
|
|
974
976
|
};
|
|
975
977
|
},
|
|
@@ -983,14 +985,14 @@ const jt = {
|
|
|
983
985
|
*/
|
|
984
986
|
listSchemas: async (n, e, t = {}) => {
|
|
985
987
|
m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
|
|
986
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
988
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
987
989
|
let o;
|
|
988
990
|
c && (o = c.baseOptions);
|
|
989
991
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
990
992
|
l.Accept = "application/json", v(r, i);
|
|
991
993
|
let p = o && o.headers ? o.headers : {};
|
|
992
994
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
993
|
-
url:
|
|
995
|
+
url: P(r),
|
|
994
996
|
options: s
|
|
995
997
|
};
|
|
996
998
|
},
|
|
@@ -1005,14 +1007,14 @@ const jt = {
|
|
|
1005
1007
|
*/
|
|
1006
1008
|
listSchemasInPackage: async (n, e, t, a = {}) => {
|
|
1007
1009
|
m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
|
|
1008
|
-
const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r,
|
|
1010
|
+
const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r, S);
|
|
1009
1011
|
let s;
|
|
1010
1012
|
c && (s = c.baseOptions);
|
|
1011
1013
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
1012
1014
|
i.Accept = "application/json", v(o, p);
|
|
1013
1015
|
let d = s && s.headers ? s.headers : {};
|
|
1014
1016
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
1015
|
-
url:
|
|
1017
|
+
url: P(o),
|
|
1016
1018
|
options: l
|
|
1017
1019
|
};
|
|
1018
1020
|
},
|
|
@@ -1028,14 +1030,14 @@ const jt = {
|
|
|
1028
1030
|
*/
|
|
1029
1031
|
listTables: async (n, e, t, a, r = {}) => {
|
|
1030
1032
|
m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
|
|
1031
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1033
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
1032
1034
|
let l;
|
|
1033
1035
|
c && (l = c.baseOptions);
|
|
1034
1036
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
1035
1037
|
a && (d.tableNames = a), p.Accept = "application/json", v(s, d);
|
|
1036
1038
|
let h = l && l.headers ? l.headers : {};
|
|
1037
1039
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
1038
|
-
url:
|
|
1040
|
+
url: P(s),
|
|
1039
1041
|
options: i
|
|
1040
1042
|
};
|
|
1041
1043
|
},
|
|
@@ -1052,14 +1054,14 @@ const jt = {
|
|
|
1052
1054
|
*/
|
|
1053
1055
|
listTablesInPackage: async (n, e, t, a, r, o = {}) => {
|
|
1054
1056
|
m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
|
|
1055
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), l = new URL(s,
|
|
1057
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), l = new URL(s, S);
|
|
1056
1058
|
let i;
|
|
1057
1059
|
c && (i = c.baseOptions);
|
|
1058
1060
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
1059
1061
|
r && (h.tableNames = r), d.Accept = "application/json", v(l, h);
|
|
1060
1062
|
let O = i && i.headers ? i.headers : {};
|
|
1061
1063
|
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
1062
|
-
url:
|
|
1064
|
+
url: P(l),
|
|
1063
1065
|
options: p
|
|
1064
1066
|
};
|
|
1065
1067
|
},
|
|
@@ -1074,14 +1076,14 @@ const jt = {
|
|
|
1074
1076
|
*/
|
|
1075
1077
|
postQuerydata: async (n, e, t, a = {}) => {
|
|
1076
1078
|
m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
|
|
1077
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1079
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
1078
1080
|
let s;
|
|
1079
1081
|
c && (s = c.baseOptions);
|
|
1080
1082
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1081
1083
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1082
1084
|
let d = s && s.headers ? s.headers : {};
|
|
1083
1085
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1084
|
-
url:
|
|
1086
|
+
url: P(o),
|
|
1085
1087
|
options: l
|
|
1086
1088
|
};
|
|
1087
1089
|
},
|
|
@@ -1097,14 +1099,14 @@ const jt = {
|
|
|
1097
1099
|
*/
|
|
1098
1100
|
postQuerydataInPackage: async (n, e, t, a, r = {}) => {
|
|
1099
1101
|
m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
1100
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1102
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
1101
1103
|
let l;
|
|
1102
1104
|
c && (l = c.baseOptions);
|
|
1103
1105
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1104
1106
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1105
1107
|
let h = l && l.headers ? l.headers : {};
|
|
1106
1108
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
1107
|
-
url:
|
|
1109
|
+
url: P(s),
|
|
1108
1110
|
options: i
|
|
1109
1111
|
};
|
|
1110
1112
|
},
|
|
@@ -1119,14 +1121,14 @@ const jt = {
|
|
|
1119
1121
|
*/
|
|
1120
1122
|
postSqlsource: async (n, e, t, a = {}) => {
|
|
1121
1123
|
m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
|
|
1122
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1124
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
1123
1125
|
let s;
|
|
1124
1126
|
c && (s = c.baseOptions);
|
|
1125
1127
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1126
1128
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1127
1129
|
let d = s && s.headers ? s.headers : {};
|
|
1128
1130
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1129
|
-
url:
|
|
1131
|
+
url: P(o),
|
|
1130
1132
|
options: l
|
|
1131
1133
|
};
|
|
1132
1134
|
},
|
|
@@ -1142,14 +1144,14 @@ const jt = {
|
|
|
1142
1144
|
*/
|
|
1143
1145
|
postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
|
|
1144
1146
|
m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
1145
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1147
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
1146
1148
|
let l;
|
|
1147
1149
|
c && (l = c.baseOptions);
|
|
1148
1150
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1149
1151
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1150
1152
|
let h = l && l.headers ? l.headers : {};
|
|
1151
1153
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
1152
|
-
url:
|
|
1154
|
+
url: P(s),
|
|
1153
1155
|
options: i
|
|
1154
1156
|
};
|
|
1155
1157
|
},
|
|
@@ -1164,14 +1166,14 @@ const jt = {
|
|
|
1164
1166
|
*/
|
|
1165
1167
|
postTemporarytable: async (n, e, t, a = {}) => {
|
|
1166
1168
|
m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
|
|
1167
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1169
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
1168
1170
|
let s;
|
|
1169
1171
|
c && (s = c.baseOptions);
|
|
1170
1172
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1171
1173
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1172
1174
|
let d = s && s.headers ? s.headers : {};
|
|
1173
1175
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1174
|
-
url:
|
|
1176
|
+
url: P(o),
|
|
1175
1177
|
options: l
|
|
1176
1178
|
};
|
|
1177
1179
|
},
|
|
@@ -1187,14 +1189,14 @@ const jt = {
|
|
|
1187
1189
|
*/
|
|
1188
1190
|
postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
|
|
1189
1191
|
m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
1190
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1192
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
1191
1193
|
let l;
|
|
1192
1194
|
c && (l = c.baseOptions);
|
|
1193
1195
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
1194
1196
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
1195
1197
|
let h = l && l.headers ? l.headers : {};
|
|
1196
1198
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
1197
|
-
url:
|
|
1199
|
+
url: P(s),
|
|
1198
1200
|
options: i
|
|
1199
1201
|
};
|
|
1200
1202
|
},
|
|
@@ -1209,20 +1211,20 @@ const jt = {
|
|
|
1209
1211
|
*/
|
|
1210
1212
|
updateConnection: async (n, e, t, a = {}) => {
|
|
1211
1213
|
m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
|
|
1212
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1214
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
1213
1215
|
let s;
|
|
1214
1216
|
c && (s = c.baseOptions);
|
|
1215
1217
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
1216
1218
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
1217
1219
|
let d = s && s.headers ? s.headers : {};
|
|
1218
1220
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
1219
|
-
url:
|
|
1221
|
+
url: P(o),
|
|
1220
1222
|
options: l
|
|
1221
1223
|
};
|
|
1222
1224
|
}
|
|
1223
1225
|
};
|
|
1224
1226
|
}, y = function(c) {
|
|
1225
|
-
const n =
|
|
1227
|
+
const n = Qe(c);
|
|
1226
1228
|
return {
|
|
1227
1229
|
/**
|
|
1228
1230
|
* Creates a new database connection in the specified environment.
|
|
@@ -1235,7 +1237,7 @@ const jt = {
|
|
|
1235
1237
|
*/
|
|
1236
1238
|
async createConnection(e, t, a, r) {
|
|
1237
1239
|
const o = await n.createConnection(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
1238
|
-
return (i, p) =>
|
|
1240
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
1239
1241
|
},
|
|
1240
1242
|
/**
|
|
1241
1243
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1247,7 +1249,7 @@ const jt = {
|
|
|
1247
1249
|
*/
|
|
1248
1250
|
async deleteConnection(e, t, a) {
|
|
1249
1251
|
const r = await n.deleteConnection(e, t, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
1250
|
-
return (l, i) =>
|
|
1252
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
1251
1253
|
},
|
|
1252
1254
|
/**
|
|
1253
1255
|
* Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -1259,7 +1261,7 @@ const jt = {
|
|
|
1259
1261
|
*/
|
|
1260
1262
|
async getConnection(e, t, a) {
|
|
1261
1263
|
const r = await n.getConnection(e, t, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
1262
|
-
return (l, i) =>
|
|
1264
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
1263
1265
|
},
|
|
1264
1266
|
/**
|
|
1265
1267
|
* Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
|
|
@@ -1273,7 +1275,7 @@ const jt = {
|
|
|
1273
1275
|
*/
|
|
1274
1276
|
async getTable(e, t, a, r, o) {
|
|
1275
1277
|
const s = await n.getTable(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.getTable"]?.[l]?.url;
|
|
1276
|
-
return (p, d) =>
|
|
1278
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
1277
1279
|
},
|
|
1278
1280
|
/**
|
|
1279
1281
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1288,7 +1290,7 @@ const jt = {
|
|
|
1288
1290
|
*/
|
|
1289
1291
|
async getTableInPackage(e, t, a, r, o, s) {
|
|
1290
1292
|
const l = await n.getTableInPackage(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
1291
|
-
return (d, h) =>
|
|
1293
|
+
return (d, h) => V(l, u, g, c)(d, p || h);
|
|
1292
1294
|
},
|
|
1293
1295
|
/**
|
|
1294
1296
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -1299,7 +1301,7 @@ const jt = {
|
|
|
1299
1301
|
*/
|
|
1300
1302
|
async listConnections(e, t) {
|
|
1301
1303
|
const a = await n.listConnections(e, t), r = c?.serverIndex ?? 0, o = b["ConnectionsApi.listConnections"]?.[r]?.url;
|
|
1302
|
-
return (s, l) =>
|
|
1304
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
1303
1305
|
},
|
|
1304
1306
|
/**
|
|
1305
1307
|
* Retrieves a list of all schemas (databases) available in the specified connection. Each schema includes metadata such as name, description, and whether it\'s the default schema. This endpoint is useful for exploring the database structure and discovering available data sources.
|
|
@@ -1311,7 +1313,7 @@ const jt = {
|
|
|
1311
1313
|
*/
|
|
1312
1314
|
async listSchemas(e, t, a) {
|
|
1313
1315
|
const r = await n.listSchemas(e, t, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
1314
|
-
return (l, i) =>
|
|
1316
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
1315
1317
|
},
|
|
1316
1318
|
/**
|
|
1317
1319
|
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
|
|
@@ -1324,7 +1326,7 @@ const jt = {
|
|
|
1324
1326
|
*/
|
|
1325
1327
|
async listSchemasInPackage(e, t, a, r) {
|
|
1326
1328
|
const o = await n.listSchemasInPackage(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
1327
|
-
return (i, p) =>
|
|
1329
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
1328
1330
|
},
|
|
1329
1331
|
/**
|
|
1330
1332
|
* Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
|
|
@@ -1338,7 +1340,7 @@ const jt = {
|
|
|
1338
1340
|
*/
|
|
1339
1341
|
async listTables(e, t, a, r, o) {
|
|
1340
1342
|
const s = await n.listTables(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.listTables"]?.[l]?.url;
|
|
1341
|
-
return (p, d) =>
|
|
1343
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
1342
1344
|
},
|
|
1343
1345
|
/**
|
|
1344
1346
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1353,7 +1355,7 @@ const jt = {
|
|
|
1353
1355
|
*/
|
|
1354
1356
|
async listTablesInPackage(e, t, a, r, o, s) {
|
|
1355
1357
|
const l = await n.listTablesInPackage(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
1356
|
-
return (d, h) =>
|
|
1358
|
+
return (d, h) => V(l, u, g, c)(d, p || h);
|
|
1357
1359
|
},
|
|
1358
1360
|
/**
|
|
1359
1361
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -1366,7 +1368,7 @@ const jt = {
|
|
|
1366
1368
|
*/
|
|
1367
1369
|
async postQuerydata(e, t, a, r) {
|
|
1368
1370
|
const o = await n.postQuerydata(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
1369
|
-
return (i, p) =>
|
|
1371
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
1370
1372
|
},
|
|
1371
1373
|
/**
|
|
1372
1374
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
|
|
@@ -1380,7 +1382,7 @@ const jt = {
|
|
|
1380
1382
|
*/
|
|
1381
1383
|
async postQuerydataInPackage(e, t, a, r, o) {
|
|
1382
1384
|
const s = await n.postQuerydataInPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postQuerydataInPackage"]?.[l]?.url;
|
|
1383
|
-
return (p, d) =>
|
|
1385
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
1384
1386
|
},
|
|
1385
1387
|
/**
|
|
1386
1388
|
* Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
@@ -1393,7 +1395,7 @@ const jt = {
|
|
|
1393
1395
|
*/
|
|
1394
1396
|
async postSqlsource(e, t, a, r) {
|
|
1395
1397
|
const o = await n.postSqlsource(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
1396
|
-
return (i, p) =>
|
|
1398
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
1397
1399
|
},
|
|
1398
1400
|
/**
|
|
1399
1401
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1407,7 +1409,7 @@ const jt = {
|
|
|
1407
1409
|
*/
|
|
1408
1410
|
async postSqlsourceInPackage(e, t, a, r, o) {
|
|
1409
1411
|
const s = await n.postSqlsourceInPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postSqlsourceInPackage"]?.[l]?.url;
|
|
1410
|
-
return (p, d) =>
|
|
1412
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
1411
1413
|
},
|
|
1412
1414
|
/**
|
|
1413
1415
|
* Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
|
|
@@ -1420,7 +1422,7 @@ const jt = {
|
|
|
1420
1422
|
*/
|
|
1421
1423
|
async postTemporarytable(e, t, a, r) {
|
|
1422
1424
|
const o = await n.postTemporarytable(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
1423
|
-
return (i, p) =>
|
|
1425
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
1424
1426
|
},
|
|
1425
1427
|
/**
|
|
1426
1428
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1434,7 +1436,7 @@ const jt = {
|
|
|
1434
1436
|
*/
|
|
1435
1437
|
async postTemporarytableInPackage(e, t, a, r, o) {
|
|
1436
1438
|
const s = await n.postTemporarytableInPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postTemporarytableInPackage"]?.[l]?.url;
|
|
1437
|
-
return (p, d) =>
|
|
1439
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
1438
1440
|
},
|
|
1439
1441
|
/**
|
|
1440
1442
|
* Updates the configuration of an existing database connection.
|
|
@@ -1447,10 +1449,10 @@ const jt = {
|
|
|
1447
1449
|
*/
|
|
1448
1450
|
async updateConnection(e, t, a, r) {
|
|
1449
1451
|
const o = await n.updateConnection(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
1450
|
-
return (i, p) =>
|
|
1452
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
1451
1453
|
}
|
|
1452
1454
|
};
|
|
1453
|
-
},
|
|
1455
|
+
}, Qt = function(c, n, e) {
|
|
1454
1456
|
const t = y(c);
|
|
1455
1457
|
return {
|
|
1456
1458
|
/**
|
|
@@ -1663,7 +1665,7 @@ const jt = {
|
|
|
1663
1665
|
}
|
|
1664
1666
|
};
|
|
1665
1667
|
};
|
|
1666
|
-
class
|
|
1668
|
+
class Le extends C {
|
|
1667
1669
|
/**
|
|
1668
1670
|
* Creates a new database connection in the specified environment.
|
|
1669
1671
|
* @summary Create a new database connection
|
|
@@ -1884,19 +1886,19 @@ const ze = function(c) {
|
|
|
1884
1886
|
*/
|
|
1885
1887
|
testConnectionConfiguration: async (n, e = {}) => {
|
|
1886
1888
|
m("testConnectionConfiguration", "connection", n);
|
|
1887
|
-
const t = "/connections/test", a = new URL(t,
|
|
1889
|
+
const t = "/connections/test", a = new URL(t, S);
|
|
1888
1890
|
let r;
|
|
1889
1891
|
c && (r = c.baseOptions);
|
|
1890
1892
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
1891
1893
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
1892
1894
|
let i = r && r.headers ? r.headers : {};
|
|
1893
1895
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
1894
|
-
url:
|
|
1896
|
+
url: P(a),
|
|
1895
1897
|
options: o
|
|
1896
1898
|
};
|
|
1897
1899
|
}
|
|
1898
1900
|
};
|
|
1899
|
-
},
|
|
1901
|
+
}, de = function(c) {
|
|
1900
1902
|
const n = ze(c);
|
|
1901
1903
|
return {
|
|
1902
1904
|
/**
|
|
@@ -1908,11 +1910,11 @@ const ze = function(c) {
|
|
|
1908
1910
|
*/
|
|
1909
1911
|
async testConnectionConfiguration(e, t) {
|
|
1910
1912
|
const a = await n.testConnectionConfiguration(e, t), r = c?.serverIndex ?? 0, o = b["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
|
|
1911
|
-
return (s, l) =>
|
|
1913
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
1912
1914
|
}
|
|
1913
1915
|
};
|
|
1914
|
-
},
|
|
1915
|
-
const t =
|
|
1916
|
+
}, Lt = function(c, n, e) {
|
|
1917
|
+
const t = de(c);
|
|
1916
1918
|
return {
|
|
1917
1919
|
/**
|
|
1918
1920
|
* 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.
|
|
@@ -1926,7 +1928,7 @@ const ze = function(c) {
|
|
|
1926
1928
|
}
|
|
1927
1929
|
};
|
|
1928
1930
|
};
|
|
1929
|
-
class
|
|
1931
|
+
class zt extends C {
|
|
1930
1932
|
/**
|
|
1931
1933
|
* 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.
|
|
1932
1934
|
* @summary Test database connection configuration
|
|
@@ -1935,10 +1937,10 @@ class Qt extends x {
|
|
|
1935
1937
|
* @throws {RequiredError}
|
|
1936
1938
|
*/
|
|
1937
1939
|
testConnectionConfiguration(n, e) {
|
|
1938
|
-
return
|
|
1940
|
+
return de(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
|
|
1939
1941
|
}
|
|
1940
1942
|
}
|
|
1941
|
-
const
|
|
1943
|
+
const He = function(c) {
|
|
1942
1944
|
return {
|
|
1943
1945
|
/**
|
|
1944
1946
|
* **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/`.
|
|
@@ -1953,14 +1955,14 @@ const Le = function(c) {
|
|
|
1953
1955
|
*/
|
|
1954
1956
|
getDashboard: async (n, e, t, a, r = {}) => {
|
|
1955
1957
|
m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
|
|
1956
|
-
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1958
|
+
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
1957
1959
|
let l;
|
|
1958
1960
|
c && (l = c.baseOptions);
|
|
1959
1961
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
1960
1962
|
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
1961
1963
|
let h = l && l.headers ? l.headers : {};
|
|
1962
1964
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
1963
|
-
url:
|
|
1965
|
+
url: P(s),
|
|
1964
1966
|
options: i
|
|
1965
1967
|
};
|
|
1966
1968
|
},
|
|
@@ -1976,20 +1978,20 @@ const Le = function(c) {
|
|
|
1976
1978
|
*/
|
|
1977
1979
|
listDashboards: async (n, e, t, a = {}) => {
|
|
1978
1980
|
m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
|
|
1979
|
-
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1981
|
+
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
1980
1982
|
let s;
|
|
1981
1983
|
c && (s = c.baseOptions);
|
|
1982
1984
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
1983
1985
|
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
1984
1986
|
let d = s && s.headers ? s.headers : {};
|
|
1985
1987
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
1986
|
-
url:
|
|
1988
|
+
url: P(o),
|
|
1987
1989
|
options: l
|
|
1988
1990
|
};
|
|
1989
1991
|
}
|
|
1990
1992
|
};
|
|
1991
|
-
},
|
|
1992
|
-
const n =
|
|
1993
|
+
}, Y = function(c) {
|
|
1994
|
+
const n = He(c);
|
|
1993
1995
|
return {
|
|
1994
1996
|
/**
|
|
1995
1997
|
* **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/`.
|
|
@@ -2004,7 +2006,7 @@ const Le = function(c) {
|
|
|
2004
2006
|
*/
|
|
2005
2007
|
async getDashboard(e, t, a, r, o) {
|
|
2006
2008
|
const s = await n.getDashboard(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["DashboardsApi.getDashboard"]?.[l]?.url;
|
|
2007
|
-
return (p, d) =>
|
|
2009
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
2008
2010
|
},
|
|
2009
2011
|
/**
|
|
2010
2012
|
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
@@ -2018,11 +2020,11 @@ const Le = function(c) {
|
|
|
2018
2020
|
*/
|
|
2019
2021
|
async listDashboards(e, t, a, r) {
|
|
2020
2022
|
const o = await n.listDashboards(e, t, a, r), s = c?.serverIndex ?? 0, l = b["DashboardsApi.listDashboards"]?.[s]?.url;
|
|
2021
|
-
return (i, p) =>
|
|
2023
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
2022
2024
|
}
|
|
2023
2025
|
};
|
|
2024
|
-
},
|
|
2025
|
-
const t =
|
|
2026
|
+
}, Ht = function(c, n, e) {
|
|
2027
|
+
const t = Y(c);
|
|
2026
2028
|
return {
|
|
2027
2029
|
/**
|
|
2028
2030
|
* **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/`.
|
|
@@ -2053,7 +2055,7 @@ const Le = function(c) {
|
|
|
2053
2055
|
}
|
|
2054
2056
|
};
|
|
2055
2057
|
};
|
|
2056
|
-
class
|
|
2058
|
+
class _e extends C {
|
|
2057
2059
|
/**
|
|
2058
2060
|
* **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/`.
|
|
2059
2061
|
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
@@ -2066,7 +2068,7 @@ class He extends x {
|
|
|
2066
2068
|
* @throws {RequiredError}
|
|
2067
2069
|
*/
|
|
2068
2070
|
getDashboard(n, e, t, a, r) {
|
|
2069
|
-
return
|
|
2071
|
+
return Y(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2070
2072
|
}
|
|
2071
2073
|
/**
|
|
2072
2074
|
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
@@ -2079,10 +2081,10 @@ class He extends x {
|
|
|
2079
2081
|
* @throws {RequiredError}
|
|
2080
2082
|
*/
|
|
2081
2083
|
listDashboards(n, e, t, a) {
|
|
2082
|
-
return
|
|
2084
|
+
return Y(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2083
2085
|
}
|
|
2084
2086
|
}
|
|
2085
|
-
const
|
|
2087
|
+
const Ge = function(c) {
|
|
2086
2088
|
return {
|
|
2087
2089
|
/**
|
|
2088
2090
|
* 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.
|
|
@@ -2094,20 +2096,20 @@ const _e = function(c) {
|
|
|
2094
2096
|
*/
|
|
2095
2097
|
listDataApps: async (n, e, t = {}) => {
|
|
2096
2098
|
m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
|
|
2097
|
-
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
2099
|
+
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
2098
2100
|
let o;
|
|
2099
2101
|
c && (o = c.baseOptions);
|
|
2100
2102
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
2101
2103
|
l.Accept = "application/json", v(r, i);
|
|
2102
2104
|
let p = o && o.headers ? o.headers : {};
|
|
2103
2105
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
2104
|
-
url:
|
|
2106
|
+
url: P(r),
|
|
2105
2107
|
options: s
|
|
2106
2108
|
};
|
|
2107
2109
|
}
|
|
2108
2110
|
};
|
|
2109
|
-
},
|
|
2110
|
-
const n =
|
|
2111
|
+
}, me = function(c) {
|
|
2112
|
+
const n = Ge(c);
|
|
2111
2113
|
return {
|
|
2112
2114
|
/**
|
|
2113
2115
|
* 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.
|
|
@@ -2119,11 +2121,11 @@ const _e = function(c) {
|
|
|
2119
2121
|
*/
|
|
2120
2122
|
async listDataApps(e, t, a) {
|
|
2121
2123
|
const r = await n.listDataApps(e, t, a), o = c?.serverIndex ?? 0, s = b["DataAppsApi.listDataApps"]?.[o]?.url;
|
|
2122
|
-
return (l, i) =>
|
|
2124
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
2123
2125
|
}
|
|
2124
2126
|
};
|
|
2125
|
-
},
|
|
2126
|
-
const t =
|
|
2127
|
+
}, _t = function(c, n, e) {
|
|
2128
|
+
const t = me(c);
|
|
2127
2129
|
return {
|
|
2128
2130
|
/**
|
|
2129
2131
|
* 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.
|
|
@@ -2138,7 +2140,7 @@ const _e = function(c) {
|
|
|
2138
2140
|
}
|
|
2139
2141
|
};
|
|
2140
2142
|
};
|
|
2141
|
-
class
|
|
2143
|
+
class We extends C {
|
|
2142
2144
|
/**
|
|
2143
2145
|
* 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.
|
|
2144
2146
|
* @summary List package data apps
|
|
@@ -2148,10 +2150,10 @@ class Ge extends x {
|
|
|
2148
2150
|
* @throws {RequiredError}
|
|
2149
2151
|
*/
|
|
2150
2152
|
listDataApps(n, e, t) {
|
|
2151
|
-
return
|
|
2153
|
+
return me(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2152
2154
|
}
|
|
2153
2155
|
}
|
|
2154
|
-
const
|
|
2156
|
+
const $e = function(c) {
|
|
2155
2157
|
return {
|
|
2156
2158
|
/**
|
|
2157
2159
|
* 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.
|
|
@@ -2164,20 +2166,20 @@ const We = function(c) {
|
|
|
2164
2166
|
*/
|
|
2165
2167
|
listDatabases: async (n, e, t, a = {}) => {
|
|
2166
2168
|
m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
|
|
2167
|
-
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
2169
|
+
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
2168
2170
|
let s;
|
|
2169
2171
|
c && (s = c.baseOptions);
|
|
2170
2172
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2171
2173
|
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
2172
2174
|
let d = s && s.headers ? s.headers : {};
|
|
2173
2175
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
2174
|
-
url:
|
|
2176
|
+
url: P(o),
|
|
2175
2177
|
options: l
|
|
2176
2178
|
};
|
|
2177
2179
|
}
|
|
2178
2180
|
};
|
|
2179
|
-
},
|
|
2180
|
-
const n =
|
|
2181
|
+
}, he = function(c) {
|
|
2182
|
+
const n = $e(c);
|
|
2181
2183
|
return {
|
|
2182
2184
|
/**
|
|
2183
2185
|
* 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.
|
|
@@ -2190,11 +2192,11 @@ const We = function(c) {
|
|
|
2190
2192
|
*/
|
|
2191
2193
|
async listDatabases(e, t, a, r) {
|
|
2192
2194
|
const o = await n.listDatabases(e, t, a, r), s = c?.serverIndex ?? 0, l = b["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
2193
|
-
return (i, p) =>
|
|
2195
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
2194
2196
|
}
|
|
2195
2197
|
};
|
|
2196
|
-
},
|
|
2197
|
-
const t =
|
|
2198
|
+
}, Gt = function(c, n, e) {
|
|
2199
|
+
const t = he(c);
|
|
2198
2200
|
return {
|
|
2199
2201
|
/**
|
|
2200
2202
|
* 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.
|
|
@@ -2210,7 +2212,7 @@ const We = function(c) {
|
|
|
2210
2212
|
}
|
|
2211
2213
|
};
|
|
2212
2214
|
};
|
|
2213
|
-
class
|
|
2215
|
+
class Ke extends C {
|
|
2214
2216
|
/**
|
|
2215
2217
|
* 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.
|
|
2216
2218
|
* @summary List embedded databases
|
|
@@ -2221,10 +2223,10 @@ class $e extends x {
|
|
|
2221
2223
|
* @throws {RequiredError}
|
|
2222
2224
|
*/
|
|
2223
2225
|
listDatabases(n, e, t, a) {
|
|
2224
|
-
return
|
|
2226
|
+
return he(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2225
2227
|
}
|
|
2226
2228
|
}
|
|
2227
|
-
const
|
|
2229
|
+
const Ye = function(c) {
|
|
2228
2230
|
return {
|
|
2229
2231
|
/**
|
|
2230
2232
|
* 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.
|
|
@@ -2235,14 +2237,14 @@ const Ke = function(c) {
|
|
|
2235
2237
|
*/
|
|
2236
2238
|
createEnvironment: async (n, e = {}) => {
|
|
2237
2239
|
m("createEnvironment", "environment", n);
|
|
2238
|
-
const t = "/environments", a = new URL(t,
|
|
2240
|
+
const t = "/environments", a = new URL(t, S);
|
|
2239
2241
|
let r;
|
|
2240
2242
|
c && (r = c.baseOptions);
|
|
2241
2243
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
2242
2244
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
2243
2245
|
let i = r && r.headers ? r.headers : {};
|
|
2244
2246
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
2245
|
-
url:
|
|
2247
|
+
url: P(a),
|
|
2246
2248
|
options: o
|
|
2247
2249
|
};
|
|
2248
2250
|
},
|
|
@@ -2255,14 +2257,14 @@ const Ke = function(c) {
|
|
|
2255
2257
|
*/
|
|
2256
2258
|
deleteEnvironment: async (n, e = {}) => {
|
|
2257
2259
|
m("deleteEnvironment", "environmentName", n);
|
|
2258
|
-
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
2260
|
+
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, S);
|
|
2259
2261
|
let r;
|
|
2260
2262
|
c && (r = c.baseOptions);
|
|
2261
2263
|
const o = { method: "DELETE", ...r, ...e }, s = {}, l = {};
|
|
2262
2264
|
s.Accept = "application/json", v(a, l);
|
|
2263
2265
|
let i = r && r.headers ? r.headers : {};
|
|
2264
2266
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2265
|
-
url:
|
|
2267
|
+
url: P(a),
|
|
2266
2268
|
options: o
|
|
2267
2269
|
};
|
|
2268
2270
|
},
|
|
@@ -2276,14 +2278,14 @@ const Ke = function(c) {
|
|
|
2276
2278
|
*/
|
|
2277
2279
|
getEnvironment: async (n, e, t = {}) => {
|
|
2278
2280
|
m("getEnvironment", "environmentName", n);
|
|
2279
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
2281
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, S);
|
|
2280
2282
|
let o;
|
|
2281
2283
|
c && (o = c.baseOptions);
|
|
2282
2284
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
2283
2285
|
e !== void 0 && (i.reload = e), l.Accept = "application/json", v(r, i);
|
|
2284
2286
|
let p = o && o.headers ? o.headers : {};
|
|
2285
2287
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
2286
|
-
url:
|
|
2288
|
+
url: P(r),
|
|
2287
2289
|
options: s
|
|
2288
2290
|
};
|
|
2289
2291
|
},
|
|
@@ -2294,14 +2296,14 @@ const Ke = function(c) {
|
|
|
2294
2296
|
* @throws {RequiredError}
|
|
2295
2297
|
*/
|
|
2296
2298
|
listEnvironments: async (n = {}) => {
|
|
2297
|
-
const e = "/environments", t = new URL(e,
|
|
2299
|
+
const e = "/environments", t = new URL(e, S);
|
|
2298
2300
|
let a;
|
|
2299
2301
|
c && (a = c.baseOptions);
|
|
2300
2302
|
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
2301
2303
|
o.Accept = "application/json", v(t, s);
|
|
2302
2304
|
let l = a && a.headers ? a.headers : {};
|
|
2303
2305
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
2304
|
-
url:
|
|
2306
|
+
url: P(t),
|
|
2305
2307
|
options: r
|
|
2306
2308
|
};
|
|
2307
2309
|
},
|
|
@@ -2315,20 +2317,20 @@ const Ke = function(c) {
|
|
|
2315
2317
|
*/
|
|
2316
2318
|
updateEnvironment: async (n, e, t = {}) => {
|
|
2317
2319
|
m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
|
|
2318
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
2320
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, S);
|
|
2319
2321
|
let o;
|
|
2320
2322
|
c && (o = c.baseOptions);
|
|
2321
2323
|
const s = { method: "PATCH", ...o, ...t }, l = {}, i = {};
|
|
2322
2324
|
l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
|
|
2323
2325
|
let p = o && o.headers ? o.headers : {};
|
|
2324
2326
|
return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
|
|
2325
|
-
url:
|
|
2327
|
+
url: P(r),
|
|
2326
2328
|
options: s
|
|
2327
2329
|
};
|
|
2328
2330
|
}
|
|
2329
2331
|
};
|
|
2330
|
-
},
|
|
2331
|
-
const n =
|
|
2332
|
+
}, w = function(c) {
|
|
2333
|
+
const n = Ye(c);
|
|
2332
2334
|
return {
|
|
2333
2335
|
/**
|
|
2334
2336
|
* 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.
|
|
@@ -2339,7 +2341,7 @@ const Ke = function(c) {
|
|
|
2339
2341
|
*/
|
|
2340
2342
|
async createEnvironment(e, t) {
|
|
2341
2343
|
const a = await n.createEnvironment(e, t), r = c?.serverIndex ?? 0, o = b["EnvironmentsApi.createEnvironment"]?.[r]?.url;
|
|
2342
|
-
return (s, l) =>
|
|
2344
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
2343
2345
|
},
|
|
2344
2346
|
/**
|
|
2345
2347
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -2350,7 +2352,7 @@ const Ke = function(c) {
|
|
|
2350
2352
|
*/
|
|
2351
2353
|
async deleteEnvironment(e, t) {
|
|
2352
2354
|
const a = await n.deleteEnvironment(e, t), r = c?.serverIndex ?? 0, o = b["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
|
|
2353
|
-
return (s, l) =>
|
|
2355
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
2354
2356
|
},
|
|
2355
2357
|
/**
|
|
2356
2358
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -2362,7 +2364,7 @@ const Ke = function(c) {
|
|
|
2362
2364
|
*/
|
|
2363
2365
|
async getEnvironment(e, t, a) {
|
|
2364
2366
|
const r = await n.getEnvironment(e, t, a), o = c?.serverIndex ?? 0, s = b["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
2365
|
-
return (l, i) =>
|
|
2367
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
2366
2368
|
},
|
|
2367
2369
|
/**
|
|
2368
2370
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
|
|
@@ -2372,7 +2374,7 @@ const Ke = function(c) {
|
|
|
2372
2374
|
*/
|
|
2373
2375
|
async listEnvironments(e) {
|
|
2374
2376
|
const t = await n.listEnvironments(e), a = c?.serverIndex ?? 0, r = b["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
2375
|
-
return (o, s) =>
|
|
2377
|
+
return (o, s) => V(t, u, g, c)(o, r || s);
|
|
2376
2378
|
},
|
|
2377
2379
|
/**
|
|
2378
2380
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -2384,11 +2386,11 @@ const Ke = function(c) {
|
|
|
2384
2386
|
*/
|
|
2385
2387
|
async updateEnvironment(e, t, a) {
|
|
2386
2388
|
const r = await n.updateEnvironment(e, t, a), o = c?.serverIndex ?? 0, s = b["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
2387
|
-
return (l, i) =>
|
|
2389
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
2388
2390
|
}
|
|
2389
2391
|
};
|
|
2390
|
-
},
|
|
2391
|
-
const t =
|
|
2392
|
+
}, Wt = function(c, n, e) {
|
|
2393
|
+
const t = w(c);
|
|
2392
2394
|
return {
|
|
2393
2395
|
/**
|
|
2394
2396
|
* 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.
|
|
@@ -2443,7 +2445,7 @@ const Ke = function(c) {
|
|
|
2443
2445
|
}
|
|
2444
2446
|
};
|
|
2445
2447
|
};
|
|
2446
|
-
class
|
|
2448
|
+
class Je extends C {
|
|
2447
2449
|
/**
|
|
2448
2450
|
* 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.
|
|
2449
2451
|
* @summary Create a new environment
|
|
@@ -2452,7 +2454,7 @@ class Ye extends x {
|
|
|
2452
2454
|
* @throws {RequiredError}
|
|
2453
2455
|
*/
|
|
2454
2456
|
createEnvironment(n, e) {
|
|
2455
|
-
return
|
|
2457
|
+
return w(this.configuration).createEnvironment(n, e).then((t) => t(this.axios, this.basePath));
|
|
2456
2458
|
}
|
|
2457
2459
|
/**
|
|
2458
2460
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -2462,7 +2464,7 @@ class Ye extends x {
|
|
|
2462
2464
|
* @throws {RequiredError}
|
|
2463
2465
|
*/
|
|
2464
2466
|
deleteEnvironment(n, e) {
|
|
2465
|
-
return
|
|
2467
|
+
return w(this.configuration).deleteEnvironment(n, e).then((t) => t(this.axios, this.basePath));
|
|
2466
2468
|
}
|
|
2467
2469
|
/**
|
|
2468
2470
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -2473,7 +2475,7 @@ class Ye extends x {
|
|
|
2473
2475
|
* @throws {RequiredError}
|
|
2474
2476
|
*/
|
|
2475
2477
|
getEnvironment(n, e, t) {
|
|
2476
|
-
return
|
|
2478
|
+
return w(this.configuration).getEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2477
2479
|
}
|
|
2478
2480
|
/**
|
|
2479
2481
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
|
|
@@ -2482,7 +2484,7 @@ class Ye extends x {
|
|
|
2482
2484
|
* @throws {RequiredError}
|
|
2483
2485
|
*/
|
|
2484
2486
|
listEnvironments(n) {
|
|
2485
|
-
return
|
|
2487
|
+
return w(this.configuration).listEnvironments(n).then((e) => e(this.axios, this.basePath));
|
|
2486
2488
|
}
|
|
2487
2489
|
/**
|
|
2488
2490
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -2493,10 +2495,10 @@ class Ye extends x {
|
|
|
2493
2495
|
* @throws {RequiredError}
|
|
2494
2496
|
*/
|
|
2495
2497
|
updateEnvironment(n, e, t) {
|
|
2496
|
-
return
|
|
2498
|
+
return w(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2497
2499
|
}
|
|
2498
2500
|
}
|
|
2499
|
-
const
|
|
2501
|
+
const Xe = function(c) {
|
|
2500
2502
|
return {
|
|
2501
2503
|
/**
|
|
2502
2504
|
* 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.
|
|
@@ -2509,14 +2511,14 @@ const Je = function(c) {
|
|
|
2509
2511
|
*/
|
|
2510
2512
|
createMaterialization: async (n, e, t, a = {}) => {
|
|
2511
2513
|
m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
|
|
2512
|
-
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
2514
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
2513
2515
|
let s;
|
|
2514
2516
|
c && (s = c.baseOptions);
|
|
2515
2517
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
2516
2518
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
2517
2519
|
let d = s && s.headers ? s.headers : {};
|
|
2518
2520
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
2519
|
-
url:
|
|
2521
|
+
url: P(o),
|
|
2520
2522
|
options: l
|
|
2521
2523
|
};
|
|
2522
2524
|
},
|
|
@@ -2532,14 +2534,14 @@ const Je = function(c) {
|
|
|
2532
2534
|
*/
|
|
2533
2535
|
deleteMaterialization: async (n, e, t, a, r = {}) => {
|
|
2534
2536
|
m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
|
|
2535
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2537
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
2536
2538
|
let l;
|
|
2537
2539
|
c && (l = c.baseOptions);
|
|
2538
2540
|
const i = { method: "DELETE", ...l, ...r }, p = {}, d = {};
|
|
2539
2541
|
a !== void 0 && (d.dropTables = a), p.Accept = "application/json", v(s, d);
|
|
2540
2542
|
let h = l && l.headers ? l.headers : {};
|
|
2541
2543
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2542
|
-
url:
|
|
2544
|
+
url: P(s),
|
|
2543
2545
|
options: i
|
|
2544
2546
|
};
|
|
2545
2547
|
},
|
|
@@ -2554,14 +2556,14 @@ const Je = function(c) {
|
|
|
2554
2556
|
*/
|
|
2555
2557
|
getMaterialization: async (n, e, t, a = {}) => {
|
|
2556
2558
|
m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
|
|
2557
|
-
const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r,
|
|
2559
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r, S);
|
|
2558
2560
|
let s;
|
|
2559
2561
|
c && (s = c.baseOptions);
|
|
2560
2562
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2561
2563
|
i.Accept = "application/json", v(o, p);
|
|
2562
2564
|
let d = s && s.headers ? s.headers : {};
|
|
2563
2565
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
2564
|
-
url:
|
|
2566
|
+
url: P(o),
|
|
2565
2567
|
options: l
|
|
2566
2568
|
};
|
|
2567
2569
|
},
|
|
@@ -2577,14 +2579,14 @@ const Je = function(c) {
|
|
|
2577
2579
|
*/
|
|
2578
2580
|
listMaterializations: async (n, e, t, a, r = {}) => {
|
|
2579
2581
|
m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
|
|
2580
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
2582
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, S);
|
|
2581
2583
|
let l;
|
|
2582
2584
|
c && (l = c.baseOptions);
|
|
2583
2585
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
2584
2586
|
t !== void 0 && (d.limit = t), a !== void 0 && (d.offset = a), p.Accept = "application/json", v(s, d);
|
|
2585
2587
|
let h = l && l.headers ? l.headers : {};
|
|
2586
2588
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2587
|
-
url:
|
|
2589
|
+
url: P(s),
|
|
2588
2590
|
options: i
|
|
2589
2591
|
};
|
|
2590
2592
|
},
|
|
@@ -2600,20 +2602,20 @@ const Je = function(c) {
|
|
|
2600
2602
|
*/
|
|
2601
2603
|
materializationAction: async (n, e, t, a, r = {}) => {
|
|
2602
2604
|
m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
|
|
2603
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2605
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
2604
2606
|
let l;
|
|
2605
2607
|
c && (l = c.baseOptions);
|
|
2606
2608
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
2607
2609
|
a !== void 0 && (d.action = a), p.Accept = "application/json", v(s, d);
|
|
2608
2610
|
let h = l && l.headers ? l.headers : {};
|
|
2609
2611
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2610
|
-
url:
|
|
2612
|
+
url: P(s),
|
|
2611
2613
|
options: i
|
|
2612
2614
|
};
|
|
2613
2615
|
}
|
|
2614
2616
|
};
|
|
2615
|
-
},
|
|
2616
|
-
const n =
|
|
2617
|
+
}, f = function(c) {
|
|
2618
|
+
const n = Xe(c);
|
|
2617
2619
|
return {
|
|
2618
2620
|
/**
|
|
2619
2621
|
* 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.
|
|
@@ -2626,7 +2628,7 @@ const Je = function(c) {
|
|
|
2626
2628
|
*/
|
|
2627
2629
|
async createMaterialization(e, t, a, r) {
|
|
2628
2630
|
const o = await n.createMaterialization(e, t, a, r), s = c?.serverIndex ?? 0, l = b["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2629
|
-
return (i, p) =>
|
|
2631
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
2630
2632
|
},
|
|
2631
2633
|
/**
|
|
2632
2634
|
* 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.
|
|
@@ -2640,7 +2642,7 @@ const Je = function(c) {
|
|
|
2640
2642
|
*/
|
|
2641
2643
|
async deleteMaterialization(e, t, a, r, o) {
|
|
2642
2644
|
const s = await n.deleteMaterialization(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.deleteMaterialization"]?.[l]?.url;
|
|
2643
|
-
return (p, d) =>
|
|
2645
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
2644
2646
|
},
|
|
2645
2647
|
/**
|
|
2646
2648
|
*
|
|
@@ -2653,7 +2655,7 @@ const Je = function(c) {
|
|
|
2653
2655
|
*/
|
|
2654
2656
|
async getMaterialization(e, t, a, r) {
|
|
2655
2657
|
const o = await n.getMaterialization(e, t, a, r), s = c?.serverIndex ?? 0, l = b["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2656
|
-
return (i, p) =>
|
|
2658
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
2657
2659
|
},
|
|
2658
2660
|
/**
|
|
2659
2661
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2667,7 +2669,7 @@ const Je = function(c) {
|
|
|
2667
2669
|
*/
|
|
2668
2670
|
async listMaterializations(e, t, a, r, o) {
|
|
2669
2671
|
const s = await n.listMaterializations(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.listMaterializations"]?.[l]?.url;
|
|
2670
|
-
return (p, d) =>
|
|
2672
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
2671
2673
|
},
|
|
2672
2674
|
/**
|
|
2673
2675
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2681,11 +2683,11 @@ const Je = function(c) {
|
|
|
2681
2683
|
*/
|
|
2682
2684
|
async materializationAction(e, t, a, r, o) {
|
|
2683
2685
|
const s = await n.materializationAction(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.materializationAction"]?.[l]?.url;
|
|
2684
|
-
return (p, d) =>
|
|
2686
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
2685
2687
|
}
|
|
2686
2688
|
};
|
|
2687
|
-
},
|
|
2688
|
-
const t =
|
|
2689
|
+
}, $t = function(c, n, e) {
|
|
2690
|
+
const t = f(c);
|
|
2689
2691
|
return {
|
|
2690
2692
|
/**
|
|
2691
2693
|
* 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.
|
|
@@ -2752,7 +2754,7 @@ const Je = function(c) {
|
|
|
2752
2754
|
}
|
|
2753
2755
|
};
|
|
2754
2756
|
};
|
|
2755
|
-
class
|
|
2757
|
+
class Ze extends C {
|
|
2756
2758
|
/**
|
|
2757
2759
|
* 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.
|
|
2758
2760
|
* @summary Create a materialization
|
|
@@ -2763,7 +2765,7 @@ class Xe extends x {
|
|
|
2763
2765
|
* @throws {RequiredError}
|
|
2764
2766
|
*/
|
|
2765
2767
|
createMaterialization(n, e, t, a) {
|
|
2766
|
-
return
|
|
2768
|
+
return f(this.configuration).createMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2767
2769
|
}
|
|
2768
2770
|
/**
|
|
2769
2771
|
* 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.
|
|
@@ -2776,7 +2778,7 @@ class Xe extends x {
|
|
|
2776
2778
|
* @throws {RequiredError}
|
|
2777
2779
|
*/
|
|
2778
2780
|
deleteMaterialization(n, e, t, a, r) {
|
|
2779
|
-
return
|
|
2781
|
+
return f(this.configuration).deleteMaterialization(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2780
2782
|
}
|
|
2781
2783
|
/**
|
|
2782
2784
|
*
|
|
@@ -2788,7 +2790,7 @@ class Xe extends x {
|
|
|
2788
2790
|
* @throws {RequiredError}
|
|
2789
2791
|
*/
|
|
2790
2792
|
getMaterialization(n, e, t, a) {
|
|
2791
|
-
return
|
|
2793
|
+
return f(this.configuration).getMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2792
2794
|
}
|
|
2793
2795
|
/**
|
|
2794
2796
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2801,7 +2803,7 @@ class Xe extends x {
|
|
|
2801
2803
|
* @throws {RequiredError}
|
|
2802
2804
|
*/
|
|
2803
2805
|
listMaterializations(n, e, t, a, r) {
|
|
2804
|
-
return
|
|
2806
|
+
return f(this.configuration).listMaterializations(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2805
2807
|
}
|
|
2806
2808
|
/**
|
|
2807
2809
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2814,12 +2816,12 @@ class Xe extends x {
|
|
|
2814
2816
|
* @throws {RequiredError}
|
|
2815
2817
|
*/
|
|
2816
2818
|
materializationAction(n, e, t, a, r) {
|
|
2817
|
-
return
|
|
2819
|
+
return f(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2818
2820
|
}
|
|
2819
2821
|
}
|
|
2820
|
-
const
|
|
2822
|
+
const Kt = {
|
|
2821
2823
|
Stop: "stop"
|
|
2822
|
-
},
|
|
2824
|
+
}, ea = function(c) {
|
|
2823
2825
|
return {
|
|
2824
2826
|
/**
|
|
2825
2827
|
* 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.
|
|
@@ -2833,14 +2835,14 @@ const Wt = {
|
|
|
2833
2835
|
*/
|
|
2834
2836
|
compileModelSource: async (n, e, t, a, r = {}) => {
|
|
2835
2837
|
m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
|
|
2836
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2838
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
2837
2839
|
let l;
|
|
2838
2840
|
c && (l = c.baseOptions);
|
|
2839
2841
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
2840
2842
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(s, d);
|
|
2841
2843
|
let h = l && l.headers ? l.headers : {};
|
|
2842
2844
|
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
2843
|
-
url:
|
|
2845
|
+
url: P(s),
|
|
2844
2846
|
options: i
|
|
2845
2847
|
};
|
|
2846
2848
|
},
|
|
@@ -2857,14 +2859,14 @@ const Wt = {
|
|
|
2857
2859
|
*/
|
|
2858
2860
|
executeQueryModel: async (n, e, t, a, r, o = {}) => {
|
|
2859
2861
|
m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
|
|
2860
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s,
|
|
2862
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, S);
|
|
2861
2863
|
let i;
|
|
2862
2864
|
c && (i = c.baseOptions);
|
|
2863
2865
|
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
2864
2866
|
r !== void 0 && (h.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
|
|
2865
2867
|
let O = i && i.headers ? i.headers : {};
|
|
2866
2868
|
return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
|
|
2867
|
-
url:
|
|
2869
|
+
url: P(l),
|
|
2868
2870
|
options: p
|
|
2869
2871
|
};
|
|
2870
2872
|
},
|
|
@@ -2881,14 +2883,14 @@ const Wt = {
|
|
|
2881
2883
|
*/
|
|
2882
2884
|
getModel: async (n, e, t, a, r, o = {}) => {
|
|
2883
2885
|
m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", t);
|
|
2884
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s,
|
|
2886
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, S);
|
|
2885
2887
|
let i;
|
|
2886
2888
|
c && (i = c.baseOptions);
|
|
2887
2889
|
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
2888
2890
|
a !== void 0 && (h.versionId = a), r !== void 0 && (h.includeHiddenFilesAndSources = r), d.Accept = "application/json", v(l, h);
|
|
2889
2891
|
let O = i && i.headers ? i.headers : {};
|
|
2890
2892
|
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
2891
|
-
url:
|
|
2893
|
+
url: P(l),
|
|
2892
2894
|
options: p
|
|
2893
2895
|
};
|
|
2894
2896
|
},
|
|
@@ -2904,14 +2906,14 @@ const Wt = {
|
|
|
2904
2906
|
*/
|
|
2905
2907
|
listModels: async (n, e, t, a, r = {}) => {
|
|
2906
2908
|
m("listModels", "environmentName", n), m("listModels", "packageName", e);
|
|
2907
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
2909
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, S);
|
|
2908
2910
|
let l;
|
|
2909
2911
|
c && (l = c.baseOptions);
|
|
2910
2912
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
2911
2913
|
t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", v(s, d);
|
|
2912
2914
|
let h = l && l.headers ? l.headers : {};
|
|
2913
2915
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2914
|
-
url:
|
|
2916
|
+
url: P(s),
|
|
2915
2917
|
options: i
|
|
2916
2918
|
};
|
|
2917
2919
|
},
|
|
@@ -2928,20 +2930,20 @@ const Wt = {
|
|
|
2928
2930
|
*/
|
|
2929
2931
|
updateModelSource: async (n, e, t, a, r, o = {}) => {
|
|
2930
2932
|
m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", t), m("updateModelSource", "modelSourceWriteRequest", a);
|
|
2931
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s,
|
|
2933
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, S);
|
|
2932
2934
|
let i;
|
|
2933
2935
|
c && (i = c.baseOptions);
|
|
2934
2936
|
const p = { method: "PUT", ...i, ...o }, d = {}, h = {};
|
|
2935
2937
|
r !== void 0 && (h.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json", v(l, h);
|
|
2936
2938
|
let O = i && i.headers ? i.headers : {};
|
|
2937
2939
|
return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
|
|
2938
|
-
url:
|
|
2940
|
+
url: P(l),
|
|
2939
2941
|
options: p
|
|
2940
2942
|
};
|
|
2941
2943
|
}
|
|
2942
2944
|
};
|
|
2943
2945
|
}, E = function(c) {
|
|
2944
|
-
const n =
|
|
2946
|
+
const n = ea(c);
|
|
2945
2947
|
return {
|
|
2946
2948
|
/**
|
|
2947
2949
|
* 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.
|
|
@@ -2955,7 +2957,7 @@ const Wt = {
|
|
|
2955
2957
|
*/
|
|
2956
2958
|
async compileModelSource(e, t, a, r, o) {
|
|
2957
2959
|
const s = await n.compileModelSource(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ModelsApi.compileModelSource"]?.[l]?.url;
|
|
2958
|
-
return (p, d) =>
|
|
2960
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
2959
2961
|
},
|
|
2960
2962
|
/**
|
|
2961
2963
|
* 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.
|
|
@@ -2970,7 +2972,7 @@ const Wt = {
|
|
|
2970
2972
|
*/
|
|
2971
2973
|
async executeQueryModel(e, t, a, r, o, s) {
|
|
2972
2974
|
const l = await n.executeQueryModel(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.executeQueryModel"]?.[i]?.url;
|
|
2973
|
-
return (d, h) =>
|
|
2975
|
+
return (d, h) => V(l, u, g, c)(d, p || h);
|
|
2974
2976
|
},
|
|
2975
2977
|
/**
|
|
2976
2978
|
* 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.
|
|
@@ -2985,7 +2987,7 @@ const Wt = {
|
|
|
2985
2987
|
*/
|
|
2986
2988
|
async getModel(e, t, a, r, o, s) {
|
|
2987
2989
|
const l = await n.getModel(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.getModel"]?.[i]?.url;
|
|
2988
|
-
return (d, h) =>
|
|
2990
|
+
return (d, h) => V(l, u, g, c)(d, p || h);
|
|
2989
2991
|
},
|
|
2990
2992
|
/**
|
|
2991
2993
|
* 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.
|
|
@@ -2999,7 +3001,7 @@ const Wt = {
|
|
|
2999
3001
|
*/
|
|
3000
3002
|
async listModels(e, t, a, r, o) {
|
|
3001
3003
|
const s = await n.listModels(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ModelsApi.listModels"]?.[l]?.url;
|
|
3002
|
-
return (p, d) =>
|
|
3004
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
3003
3005
|
},
|
|
3004
3006
|
/**
|
|
3005
3007
|
* 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.
|
|
@@ -3014,10 +3016,10 @@ const Wt = {
|
|
|
3014
3016
|
*/
|
|
3015
3017
|
async updateModelSource(e, t, a, r, o, s) {
|
|
3016
3018
|
const l = await n.updateModelSource(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.updateModelSource"]?.[i]?.url;
|
|
3017
|
-
return (d, h) =>
|
|
3019
|
+
return (d, h) => V(l, u, g, c)(d, p || h);
|
|
3018
3020
|
}
|
|
3019
3021
|
};
|
|
3020
|
-
},
|
|
3022
|
+
}, Yt = function(c, n, e) {
|
|
3021
3023
|
const t = E(c);
|
|
3022
3024
|
return {
|
|
3023
3025
|
/**
|
|
@@ -3090,7 +3092,7 @@ const Wt = {
|
|
|
3090
3092
|
}
|
|
3091
3093
|
};
|
|
3092
3094
|
};
|
|
3093
|
-
class
|
|
3095
|
+
class aa extends C {
|
|
3094
3096
|
/**
|
|
3095
3097
|
* 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.
|
|
3096
3098
|
* @summary Compile Malloy source code
|
|
@@ -3160,7 +3162,7 @@ class ea extends x {
|
|
|
3160
3162
|
return E(this.configuration).updateModelSource(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
3161
3163
|
}
|
|
3162
3164
|
}
|
|
3163
|
-
const
|
|
3165
|
+
const ta = function(c) {
|
|
3164
3166
|
return {
|
|
3165
3167
|
/**
|
|
3166
3168
|
* **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.
|
|
@@ -3179,14 +3181,14 @@ const aa = function(c) {
|
|
|
3179
3181
|
*/
|
|
3180
3182
|
executeNotebookCell: async (n, e, t, a, r, o, s, l, i = {}) => {
|
|
3181
3183
|
m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
|
|
3182
|
-
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p,
|
|
3184
|
+
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, S);
|
|
3183
3185
|
let h;
|
|
3184
3186
|
c && (h = c.baseOptions);
|
|
3185
|
-
const O = { method: "GET", ...h, ...i }, k = {},
|
|
3186
|
-
r !== void 0 && (
|
|
3187
|
+
const O = { method: "GET", ...h, ...i }, k = {}, I = {};
|
|
3188
|
+
r !== void 0 && (I.versionId = r), o !== void 0 && (I.filter_params = o), s !== void 0 && (I.bypass_filters = s), l !== void 0 && (I.givens = l), k.Accept = "application/json", v(d, I);
|
|
3187
3189
|
let R = h && h.headers ? h.headers : {};
|
|
3188
3190
|
return O.headers = { ...k, ...R, ...i.headers }, {
|
|
3189
|
-
url:
|
|
3191
|
+
url: P(d),
|
|
3190
3192
|
options: O
|
|
3191
3193
|
};
|
|
3192
3194
|
},
|
|
@@ -3203,14 +3205,14 @@ const aa = function(c) {
|
|
|
3203
3205
|
*/
|
|
3204
3206
|
getNotebook: async (n, e, t, a, r = {}) => {
|
|
3205
3207
|
m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
|
|
3206
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
3208
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
3207
3209
|
let l;
|
|
3208
3210
|
c && (l = c.baseOptions);
|
|
3209
3211
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3210
3212
|
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
3211
3213
|
let h = l && l.headers ? l.headers : {};
|
|
3212
3214
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3213
|
-
url:
|
|
3215
|
+
url: P(s),
|
|
3214
3216
|
options: i
|
|
3215
3217
|
};
|
|
3216
3218
|
},
|
|
@@ -3226,20 +3228,20 @@ const aa = function(c) {
|
|
|
3226
3228
|
*/
|
|
3227
3229
|
listNotebooks: async (n, e, t, a = {}) => {
|
|
3228
3230
|
m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
|
|
3229
|
-
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
3231
|
+
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
3230
3232
|
let s;
|
|
3231
3233
|
c && (s = c.baseOptions);
|
|
3232
3234
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3233
3235
|
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3234
3236
|
let d = s && s.headers ? s.headers : {};
|
|
3235
3237
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
3236
|
-
url:
|
|
3238
|
+
url: P(o),
|
|
3237
3239
|
options: l
|
|
3238
3240
|
};
|
|
3239
3241
|
}
|
|
3240
3242
|
};
|
|
3241
|
-
},
|
|
3242
|
-
const n =
|
|
3243
|
+
}, z = function(c) {
|
|
3244
|
+
const n = ta(c);
|
|
3243
3245
|
return {
|
|
3244
3246
|
/**
|
|
3245
3247
|
* **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.
|
|
@@ -3258,7 +3260,7 @@ const aa = function(c) {
|
|
|
3258
3260
|
*/
|
|
3259
3261
|
async executeNotebookCell(e, t, a, r, o, s, l, i, p) {
|
|
3260
3262
|
const d = await n.executeNotebookCell(e, t, a, r, o, s, l, i, p), h = c?.serverIndex ?? 0, O = b["NotebooksApi.executeNotebookCell"]?.[h]?.url;
|
|
3261
|
-
return (k,
|
|
3263
|
+
return (k, I) => V(d, u, g, c)(k, O || I);
|
|
3262
3264
|
},
|
|
3263
3265
|
/**
|
|
3264
3266
|
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
@@ -3273,7 +3275,7 @@ const aa = function(c) {
|
|
|
3273
3275
|
*/
|
|
3274
3276
|
async getNotebook(e, t, a, r, o) {
|
|
3275
3277
|
const s = await n.getNotebook(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["NotebooksApi.getNotebook"]?.[l]?.url;
|
|
3276
|
-
return (p, d) =>
|
|
3278
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
3277
3279
|
},
|
|
3278
3280
|
/**
|
|
3279
3281
|
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
@@ -3287,11 +3289,11 @@ const aa = function(c) {
|
|
|
3287
3289
|
*/
|
|
3288
3290
|
async listNotebooks(e, t, a, r) {
|
|
3289
3291
|
const o = await n.listNotebooks(e, t, a, r), s = c?.serverIndex ?? 0, l = b["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
3290
|
-
return (i, p) =>
|
|
3292
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
3291
3293
|
}
|
|
3292
3294
|
};
|
|
3293
|
-
},
|
|
3294
|
-
const t =
|
|
3295
|
+
}, Jt = function(c, n, e) {
|
|
3296
|
+
const t = z(c);
|
|
3295
3297
|
return {
|
|
3296
3298
|
/**
|
|
3297
3299
|
* **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.
|
|
@@ -3340,7 +3342,7 @@ const aa = function(c) {
|
|
|
3340
3342
|
}
|
|
3341
3343
|
};
|
|
3342
3344
|
};
|
|
3343
|
-
class
|
|
3345
|
+
class na extends C {
|
|
3344
3346
|
/**
|
|
3345
3347
|
* **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.
|
|
3346
3348
|
* @summary Execute a specific notebook cell (deprecated)
|
|
@@ -3357,7 +3359,7 @@ class ta extends x {
|
|
|
3357
3359
|
* @throws {RequiredError}
|
|
3358
3360
|
*/
|
|
3359
3361
|
executeNotebookCell(n, e, t, a, r, o, s, l, i) {
|
|
3360
|
-
return
|
|
3362
|
+
return z(this.configuration).executeNotebookCell(n, e, t, a, r, o, s, l, i).then((p) => p(this.axios, this.basePath));
|
|
3361
3363
|
}
|
|
3362
3364
|
/**
|
|
3363
3365
|
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
@@ -3371,7 +3373,7 @@ class ta extends x {
|
|
|
3371
3373
|
* @throws {RequiredError}
|
|
3372
3374
|
*/
|
|
3373
3375
|
getNotebook(n, e, t, a, r) {
|
|
3374
|
-
return
|
|
3376
|
+
return z(this.configuration).getNotebook(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
3375
3377
|
}
|
|
3376
3378
|
/**
|
|
3377
3379
|
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
@@ -3384,13 +3386,13 @@ class ta extends x {
|
|
|
3384
3386
|
* @throws {RequiredError}
|
|
3385
3387
|
*/
|
|
3386
3388
|
listNotebooks(n, e, t, a) {
|
|
3387
|
-
return
|
|
3389
|
+
return z(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
3388
3390
|
}
|
|
3389
3391
|
}
|
|
3390
|
-
const
|
|
3392
|
+
const Xt = {
|
|
3391
3393
|
True: "true",
|
|
3392
3394
|
False: "false"
|
|
3393
|
-
},
|
|
3395
|
+
}, ra = function(c) {
|
|
3394
3396
|
return {
|
|
3395
3397
|
/**
|
|
3396
3398
|
* 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.
|
|
@@ -3402,14 +3404,14 @@ const Yt = {
|
|
|
3402
3404
|
*/
|
|
3403
3405
|
createPackage: async (n, e, t = {}) => {
|
|
3404
3406
|
m("createPackage", "environmentName", n), m("createPackage", "_package", e);
|
|
3405
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
3407
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, S);
|
|
3406
3408
|
let o;
|
|
3407
3409
|
c && (o = c.baseOptions);
|
|
3408
3410
|
const s = { method: "POST", ...o, ...t }, l = {}, i = {};
|
|
3409
3411
|
l["Content-Type"] = "application/json", l.Accept = "application/json", v(r, i);
|
|
3410
3412
|
let p = o && o.headers ? o.headers : {};
|
|
3411
3413
|
return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
|
|
3412
|
-
url:
|
|
3414
|
+
url: P(r),
|
|
3413
3415
|
options: s
|
|
3414
3416
|
};
|
|
3415
3417
|
},
|
|
@@ -3423,14 +3425,14 @@ const Yt = {
|
|
|
3423
3425
|
*/
|
|
3424
3426
|
deletePackage: async (n, e, t = {}) => {
|
|
3425
3427
|
m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
|
|
3426
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
3428
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
3427
3429
|
let o;
|
|
3428
3430
|
c && (o = c.baseOptions);
|
|
3429
3431
|
const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
|
|
3430
3432
|
l.Accept = "application/json", v(r, i);
|
|
3431
3433
|
let p = o && o.headers ? o.headers : {};
|
|
3432
3434
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
3433
|
-
url:
|
|
3435
|
+
url: P(r),
|
|
3434
3436
|
options: s
|
|
3435
3437
|
};
|
|
3436
3438
|
},
|
|
@@ -3446,14 +3448,14 @@ const Yt = {
|
|
|
3446
3448
|
*/
|
|
3447
3449
|
getPackage: async (n, e, t, a, r = {}) => {
|
|
3448
3450
|
m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
|
|
3449
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
3451
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, S);
|
|
3450
3452
|
let l;
|
|
3451
3453
|
c && (l = c.baseOptions);
|
|
3452
3454
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3453
3455
|
t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", v(s, d);
|
|
3454
3456
|
let h = l && l.headers ? l.headers : {};
|
|
3455
3457
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3456
|
-
url:
|
|
3458
|
+
url: P(s),
|
|
3457
3459
|
options: i
|
|
3458
3460
|
};
|
|
3459
3461
|
},
|
|
@@ -3466,14 +3468,14 @@ const Yt = {
|
|
|
3466
3468
|
*/
|
|
3467
3469
|
listPackages: async (n, e = {}) => {
|
|
3468
3470
|
m("listPackages", "environmentName", n);
|
|
3469
|
-
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
3471
|
+
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, S);
|
|
3470
3472
|
let r;
|
|
3471
3473
|
c && (r = c.baseOptions);
|
|
3472
3474
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
3473
3475
|
s.Accept = "application/json", v(a, l);
|
|
3474
3476
|
let i = r && r.headers ? r.headers : {};
|
|
3475
3477
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3476
|
-
url:
|
|
3478
|
+
url: P(a),
|
|
3477
3479
|
options: o
|
|
3478
3480
|
};
|
|
3479
3481
|
},
|
|
@@ -3488,20 +3490,20 @@ const Yt = {
|
|
|
3488
3490
|
*/
|
|
3489
3491
|
updatePackage: async (n, e, t, a = {}) => {
|
|
3490
3492
|
m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
|
|
3491
|
-
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
3493
|
+
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
3492
3494
|
let s;
|
|
3493
3495
|
c && (s = c.baseOptions);
|
|
3494
3496
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
3495
3497
|
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
3496
3498
|
let d = s && s.headers ? s.headers : {};
|
|
3497
3499
|
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
3498
|
-
url:
|
|
3500
|
+
url: P(o),
|
|
3499
3501
|
options: l
|
|
3500
3502
|
};
|
|
3501
3503
|
}
|
|
3502
3504
|
};
|
|
3503
3505
|
}, M = function(c) {
|
|
3504
|
-
const n =
|
|
3506
|
+
const n = ra(c);
|
|
3505
3507
|
return {
|
|
3506
3508
|
/**
|
|
3507
3509
|
* 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.
|
|
@@ -3513,7 +3515,7 @@ const Yt = {
|
|
|
3513
3515
|
*/
|
|
3514
3516
|
async createPackage(e, t, a) {
|
|
3515
3517
|
const r = await n.createPackage(e, t, a), o = c?.serverIndex ?? 0, s = b["PackagesApi.createPackage"]?.[o]?.url;
|
|
3516
|
-
return (l, i) =>
|
|
3518
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
3517
3519
|
},
|
|
3518
3520
|
/**
|
|
3519
3521
|
* 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.
|
|
@@ -3525,7 +3527,7 @@ const Yt = {
|
|
|
3525
3527
|
*/
|
|
3526
3528
|
async deletePackage(e, t, a) {
|
|
3527
3529
|
const r = await n.deletePackage(e, t, a), o = c?.serverIndex ?? 0, s = b["PackagesApi.deletePackage"]?.[o]?.url;
|
|
3528
|
-
return (l, i) =>
|
|
3530
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
3529
3531
|
},
|
|
3530
3532
|
/**
|
|
3531
3533
|
* Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
|
|
@@ -3539,7 +3541,7 @@ const Yt = {
|
|
|
3539
3541
|
*/
|
|
3540
3542
|
async getPackage(e, t, a, r, o) {
|
|
3541
3543
|
const s = await n.getPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["PackagesApi.getPackage"]?.[l]?.url;
|
|
3542
|
-
return (p, d) =>
|
|
3544
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
3543
3545
|
},
|
|
3544
3546
|
/**
|
|
3545
3547
|
* 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`.
|
|
@@ -3550,7 +3552,7 @@ const Yt = {
|
|
|
3550
3552
|
*/
|
|
3551
3553
|
async listPackages(e, t) {
|
|
3552
3554
|
const a = await n.listPackages(e, t), r = c?.serverIndex ?? 0, o = b["PackagesApi.listPackages"]?.[r]?.url;
|
|
3553
|
-
return (s, l) =>
|
|
3555
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
3554
3556
|
},
|
|
3555
3557
|
/**
|
|
3556
3558
|
* 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.
|
|
@@ -3563,10 +3565,10 @@ const Yt = {
|
|
|
3563
3565
|
*/
|
|
3564
3566
|
async updatePackage(e, t, a, r) {
|
|
3565
3567
|
const o = await n.updatePackage(e, t, a, r), s = c?.serverIndex ?? 0, l = b["PackagesApi.updatePackage"]?.[s]?.url;
|
|
3566
|
-
return (i, p) =>
|
|
3568
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
3567
3569
|
}
|
|
3568
3570
|
};
|
|
3569
|
-
},
|
|
3571
|
+
}, Zt = function(c, n, e) {
|
|
3570
3572
|
const t = M(c);
|
|
3571
3573
|
return {
|
|
3572
3574
|
/**
|
|
@@ -3628,7 +3630,7 @@ const Yt = {
|
|
|
3628
3630
|
}
|
|
3629
3631
|
};
|
|
3630
3632
|
};
|
|
3631
|
-
class
|
|
3633
|
+
class oa extends C {
|
|
3632
3634
|
/**
|
|
3633
3635
|
* 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.
|
|
3634
3636
|
* @summary Create a new package
|
|
@@ -3687,7 +3689,7 @@ class ra extends x {
|
|
|
3687
3689
|
return M(this.configuration).updatePackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
3688
3690
|
}
|
|
3689
3691
|
}
|
|
3690
|
-
const
|
|
3692
|
+
const sa = function(c) {
|
|
3691
3693
|
return {
|
|
3692
3694
|
/**
|
|
3693
3695
|
* 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.
|
|
@@ -3696,14 +3698,14 @@ const oa = function(c) {
|
|
|
3696
3698
|
* @throws {RequiredError}
|
|
3697
3699
|
*/
|
|
3698
3700
|
deleteTheme: async (n = {}) => {
|
|
3699
|
-
const e = "/theme", t = new URL(e,
|
|
3701
|
+
const e = "/theme", t = new URL(e, S);
|
|
3700
3702
|
let a;
|
|
3701
3703
|
c && (a = c.baseOptions);
|
|
3702
3704
|
const r = { method: "DELETE", ...a, ...n }, o = {}, s = {};
|
|
3703
3705
|
o.Accept = "application/json", v(t, s);
|
|
3704
3706
|
let l = a && a.headers ? a.headers : {};
|
|
3705
3707
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
3706
|
-
url:
|
|
3708
|
+
url: P(t),
|
|
3707
3709
|
options: r
|
|
3708
3710
|
};
|
|
3709
3711
|
},
|
|
@@ -3715,14 +3717,14 @@ const oa = function(c) {
|
|
|
3715
3717
|
* @throws {RequiredError}
|
|
3716
3718
|
*/
|
|
3717
3719
|
getStatus: async (n, e = {}) => {
|
|
3718
|
-
const t = "/status", a = new URL(t,
|
|
3720
|
+
const t = "/status", a = new URL(t, S);
|
|
3719
3721
|
let r;
|
|
3720
3722
|
c && (r = c.baseOptions);
|
|
3721
3723
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
3722
3724
|
n !== void 0 && (l.includeLoading = n), s.Accept = "application/json", v(a, l);
|
|
3723
3725
|
let i = r && r.headers ? r.headers : {};
|
|
3724
3726
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3725
|
-
url:
|
|
3727
|
+
url: P(a),
|
|
3726
3728
|
options: o
|
|
3727
3729
|
};
|
|
3728
3730
|
},
|
|
@@ -3733,14 +3735,14 @@ const oa = function(c) {
|
|
|
3733
3735
|
* @throws {RequiredError}
|
|
3734
3736
|
*/
|
|
3735
3737
|
getTheme: async (n = {}) => {
|
|
3736
|
-
const e = "/theme", t = new URL(e,
|
|
3738
|
+
const e = "/theme", t = new URL(e, S);
|
|
3737
3739
|
let a;
|
|
3738
3740
|
c && (a = c.baseOptions);
|
|
3739
3741
|
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
3740
3742
|
o.Accept = "application/json", v(t, s);
|
|
3741
3743
|
let l = a && a.headers ? a.headers : {};
|
|
3742
3744
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
3743
|
-
url:
|
|
3745
|
+
url: P(t),
|
|
3744
3746
|
options: r
|
|
3745
3747
|
};
|
|
3746
3748
|
},
|
|
@@ -3753,20 +3755,20 @@ const oa = function(c) {
|
|
|
3753
3755
|
*/
|
|
3754
3756
|
updateTheme: async (n, e = {}) => {
|
|
3755
3757
|
m("updateTheme", "theme", n);
|
|
3756
|
-
const t = "/theme", a = new URL(t,
|
|
3758
|
+
const t = "/theme", a = new URL(t, S);
|
|
3757
3759
|
let r;
|
|
3758
3760
|
c && (r = c.baseOptions);
|
|
3759
3761
|
const o = { method: "PUT", ...r, ...e }, s = {}, l = {};
|
|
3760
3762
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
3761
3763
|
let i = r && r.headers ? r.headers : {};
|
|
3762
3764
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
3763
|
-
url:
|
|
3765
|
+
url: P(a),
|
|
3764
3766
|
options: o
|
|
3765
3767
|
};
|
|
3766
3768
|
}
|
|
3767
3769
|
};
|
|
3768
|
-
},
|
|
3769
|
-
const n =
|
|
3770
|
+
}, B = function(c) {
|
|
3771
|
+
const n = sa(c);
|
|
3770
3772
|
return {
|
|
3771
3773
|
/**
|
|
3772
3774
|
* 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.
|
|
@@ -3776,7 +3778,7 @@ const oa = function(c) {
|
|
|
3776
3778
|
*/
|
|
3777
3779
|
async deleteTheme(e) {
|
|
3778
3780
|
const t = await n.deleteTheme(e), a = c?.serverIndex ?? 0, r = b["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
3779
|
-
return (o, s) =>
|
|
3781
|
+
return (o, s) => V(t, u, g, c)(o, r || s);
|
|
3780
3782
|
},
|
|
3781
3783
|
/**
|
|
3782
3784
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -3787,7 +3789,7 @@ const oa = function(c) {
|
|
|
3787
3789
|
*/
|
|
3788
3790
|
async getStatus(e, t) {
|
|
3789
3791
|
const a = await n.getStatus(e, t), r = c?.serverIndex ?? 0, o = b["PublisherApi.getStatus"]?.[r]?.url;
|
|
3790
|
-
return (s, l) =>
|
|
3792
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
3791
3793
|
},
|
|
3792
3794
|
/**
|
|
3793
3795
|
* Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
|
|
@@ -3797,7 +3799,7 @@ const oa = function(c) {
|
|
|
3797
3799
|
*/
|
|
3798
3800
|
async getTheme(e) {
|
|
3799
3801
|
const t = await n.getTheme(e), a = c?.serverIndex ?? 0, r = b["PublisherApi.getTheme"]?.[a]?.url;
|
|
3800
|
-
return (o, s) =>
|
|
3802
|
+
return (o, s) => V(t, u, g, c)(o, r || s);
|
|
3801
3803
|
},
|
|
3802
3804
|
/**
|
|
3803
3805
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3808,11 +3810,11 @@ const oa = function(c) {
|
|
|
3808
3810
|
*/
|
|
3809
3811
|
async updateTheme(e, t) {
|
|
3810
3812
|
const a = await n.updateTheme(e, t), r = c?.serverIndex ?? 0, o = b["PublisherApi.updateTheme"]?.[r]?.url;
|
|
3811
|
-
return (s, l) =>
|
|
3813
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
3812
3814
|
}
|
|
3813
3815
|
};
|
|
3814
|
-
},
|
|
3815
|
-
const t =
|
|
3816
|
+
}, en = function(c, n, e) {
|
|
3817
|
+
const t = B(c);
|
|
3816
3818
|
return {
|
|
3817
3819
|
/**
|
|
3818
3820
|
* 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.
|
|
@@ -3854,7 +3856,7 @@ const oa = function(c) {
|
|
|
3854
3856
|
}
|
|
3855
3857
|
};
|
|
3856
3858
|
};
|
|
3857
|
-
class
|
|
3859
|
+
class la extends C {
|
|
3858
3860
|
/**
|
|
3859
3861
|
* 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.
|
|
3860
3862
|
* @summary Reset the instance theme to the boot seed or default
|
|
@@ -3862,7 +3864,7 @@ class sa extends x {
|
|
|
3862
3864
|
* @throws {RequiredError}
|
|
3863
3865
|
*/
|
|
3864
3866
|
deleteTheme(n) {
|
|
3865
|
-
return
|
|
3867
|
+
return B(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3866
3868
|
}
|
|
3867
3869
|
/**
|
|
3868
3870
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -3872,7 +3874,7 @@ class sa extends x {
|
|
|
3872
3874
|
* @throws {RequiredError}
|
|
3873
3875
|
*/
|
|
3874
3876
|
getStatus(n, e) {
|
|
3875
|
-
return
|
|
3877
|
+
return B(this.configuration).getStatus(n, e).then((t) => t(this.axios, this.basePath));
|
|
3876
3878
|
}
|
|
3877
3879
|
/**
|
|
3878
3880
|
* Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
|
|
@@ -3881,7 +3883,7 @@ class sa extends x {
|
|
|
3881
3883
|
* @throws {RequiredError}
|
|
3882
3884
|
*/
|
|
3883
3885
|
getTheme(n) {
|
|
3884
|
-
return
|
|
3886
|
+
return B(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3885
3887
|
}
|
|
3886
3888
|
/**
|
|
3887
3889
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3891,7 +3893,7 @@ class sa extends x {
|
|
|
3891
3893
|
* @throws {RequiredError}
|
|
3892
3894
|
*/
|
|
3893
3895
|
updateTheme(n, e) {
|
|
3894
|
-
return
|
|
3896
|
+
return B(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
|
|
3895
3897
|
}
|
|
3896
3898
|
}
|
|
3897
3899
|
const ca = function(c) {
|
|
@@ -3908,14 +3910,14 @@ const ca = function(c) {
|
|
|
3908
3910
|
*/
|
|
3909
3911
|
getReport: async (n, e, t, a, r = {}) => {
|
|
3910
3912
|
m("getReport", "environmentName", n), m("getReport", "packageName", e), m("getReport", "path", t);
|
|
3911
|
-
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
3913
|
+
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, S);
|
|
3912
3914
|
let l;
|
|
3913
3915
|
c && (l = c.baseOptions);
|
|
3914
3916
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3915
3917
|
a !== void 0 && (d.versionId = a), p.Accept = "application/json", v(s, d);
|
|
3916
3918
|
let h = l && l.headers ? l.headers : {};
|
|
3917
3919
|
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3918
|
-
url:
|
|
3920
|
+
url: P(s),
|
|
3919
3921
|
options: i
|
|
3920
3922
|
};
|
|
3921
3923
|
},
|
|
@@ -3930,19 +3932,19 @@ const ca = function(c) {
|
|
|
3930
3932
|
*/
|
|
3931
3933
|
listReports: async (n, e, t, a = {}) => {
|
|
3932
3934
|
m("listReports", "environmentName", n), m("listReports", "packageName", e);
|
|
3933
|
-
const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
3935
|
+
const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
3934
3936
|
let s;
|
|
3935
3937
|
c && (s = c.baseOptions);
|
|
3936
3938
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3937
3939
|
t !== void 0 && (p.versionId = t), i.Accept = "application/json", v(o, p);
|
|
3938
3940
|
let d = s && s.headers ? s.headers : {};
|
|
3939
3941
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
3940
|
-
url:
|
|
3942
|
+
url: P(o),
|
|
3941
3943
|
options: l
|
|
3942
3944
|
};
|
|
3943
3945
|
}
|
|
3944
3946
|
};
|
|
3945
|
-
},
|
|
3947
|
+
}, J = function(c) {
|
|
3946
3948
|
const n = ca(c);
|
|
3947
3949
|
return {
|
|
3948
3950
|
/**
|
|
@@ -3957,7 +3959,7 @@ const ca = function(c) {
|
|
|
3957
3959
|
*/
|
|
3958
3960
|
async getReport(e, t, a, r, o) {
|
|
3959
3961
|
const s = await n.getReport(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ReportsApi.getReport"]?.[l]?.url;
|
|
3960
|
-
return (p, d) =>
|
|
3962
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
3961
3963
|
},
|
|
3962
3964
|
/**
|
|
3963
3965
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
@@ -3970,11 +3972,11 @@ const ca = function(c) {
|
|
|
3970
3972
|
*/
|
|
3971
3973
|
async listReports(e, t, a, r) {
|
|
3972
3974
|
const o = await n.listReports(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ReportsApi.listReports"]?.[s]?.url;
|
|
3973
|
-
return (i, p) =>
|
|
3975
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
3974
3976
|
}
|
|
3975
3977
|
};
|
|
3976
|
-
},
|
|
3977
|
-
const t =
|
|
3978
|
+
}, an = function(c, n, e) {
|
|
3979
|
+
const t = J(c);
|
|
3978
3980
|
return {
|
|
3979
3981
|
/**
|
|
3980
3982
|
* 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.
|
|
@@ -4003,7 +4005,7 @@ const ca = function(c) {
|
|
|
4003
4005
|
}
|
|
4004
4006
|
};
|
|
4005
4007
|
};
|
|
4006
|
-
class
|
|
4008
|
+
class ia extends C {
|
|
4007
4009
|
/**
|
|
4008
4010
|
* 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.
|
|
4009
4011
|
* @summary Get a report manifest
|
|
@@ -4015,7 +4017,7 @@ class la extends x {
|
|
|
4015
4017
|
* @throws {RequiredError}
|
|
4016
4018
|
*/
|
|
4017
4019
|
getReport(n, e, t, a, r) {
|
|
4018
|
-
return
|
|
4020
|
+
return J(this.configuration).getReport(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
4019
4021
|
}
|
|
4020
4022
|
/**
|
|
4021
4023
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
@@ -4027,10 +4029,10 @@ class la extends x {
|
|
|
4027
4029
|
* @throws {RequiredError}
|
|
4028
4030
|
*/
|
|
4029
4031
|
listReports(n, e, t, a) {
|
|
4030
|
-
return
|
|
4032
|
+
return J(this.configuration).listReports(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4031
4033
|
}
|
|
4032
4034
|
}
|
|
4033
|
-
const
|
|
4035
|
+
const pa = function(c) {
|
|
4034
4036
|
return {
|
|
4035
4037
|
/**
|
|
4036
4038
|
* 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.
|
|
@@ -4043,14 +4045,14 @@ const ia = function(c) {
|
|
|
4043
4045
|
*/
|
|
4044
4046
|
getSkill: async (n, e, t, a = {}) => {
|
|
4045
4047
|
m("getSkill", "environmentName", n), m("getSkill", "packageName", e), m("getSkill", "skillName", t);
|
|
4046
|
-
const r = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(r,
|
|
4048
|
+
const r = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(r, S);
|
|
4047
4049
|
let s;
|
|
4048
4050
|
c && (s = c.baseOptions);
|
|
4049
4051
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4050
4052
|
i.Accept = "application/json", v(o, p);
|
|
4051
4053
|
let d = s && s.headers ? s.headers : {};
|
|
4052
4054
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
4053
|
-
url:
|
|
4055
|
+
url: P(o),
|
|
4054
4056
|
options: l
|
|
4055
4057
|
};
|
|
4056
4058
|
},
|
|
@@ -4064,20 +4066,20 @@ const ia = function(c) {
|
|
|
4064
4066
|
*/
|
|
4065
4067
|
listSkills: async (n, e, t = {}) => {
|
|
4066
4068
|
m("listSkills", "environmentName", n), m("listSkills", "packageName", e);
|
|
4067
|
-
const a = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
4069
|
+
const a = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
4068
4070
|
let o;
|
|
4069
4071
|
c && (o = c.baseOptions);
|
|
4070
4072
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
4071
4073
|
l.Accept = "application/json", v(r, i);
|
|
4072
4074
|
let p = o && o.headers ? o.headers : {};
|
|
4073
4075
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
4074
|
-
url:
|
|
4076
|
+
url: P(r),
|
|
4075
4077
|
options: s
|
|
4076
4078
|
};
|
|
4077
4079
|
}
|
|
4078
4080
|
};
|
|
4079
|
-
},
|
|
4080
|
-
const n =
|
|
4081
|
+
}, X = function(c) {
|
|
4082
|
+
const n = pa(c);
|
|
4081
4083
|
return {
|
|
4082
4084
|
/**
|
|
4083
4085
|
* 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.
|
|
@@ -4090,7 +4092,7 @@ const ia = function(c) {
|
|
|
4090
4092
|
*/
|
|
4091
4093
|
async getSkill(e, t, a, r) {
|
|
4092
4094
|
const o = await n.getSkill(e, t, a, r), s = c?.serverIndex ?? 0, l = b["SkillsApi.getSkill"]?.[s]?.url;
|
|
4093
|
-
return (i, p) =>
|
|
4095
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
4094
4096
|
},
|
|
4095
4097
|
/**
|
|
4096
4098
|
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
@@ -4102,11 +4104,11 @@ const ia = function(c) {
|
|
|
4102
4104
|
*/
|
|
4103
4105
|
async listSkills(e, t, a) {
|
|
4104
4106
|
const r = await n.listSkills(e, t, a), o = c?.serverIndex ?? 0, s = b["SkillsApi.listSkills"]?.[o]?.url;
|
|
4105
|
-
return (l, i) =>
|
|
4107
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
4106
4108
|
}
|
|
4107
4109
|
};
|
|
4108
|
-
},
|
|
4109
|
-
const t =
|
|
4110
|
+
}, tn = function(c, n, e) {
|
|
4111
|
+
const t = X(c);
|
|
4110
4112
|
return {
|
|
4111
4113
|
/**
|
|
4112
4114
|
* 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.
|
|
@@ -4133,7 +4135,7 @@ const ia = function(c) {
|
|
|
4133
4135
|
}
|
|
4134
4136
|
};
|
|
4135
4137
|
};
|
|
4136
|
-
class
|
|
4138
|
+
class nn extends C {
|
|
4137
4139
|
/**
|
|
4138
4140
|
* 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.
|
|
4139
4141
|
* @summary Get one agent skill, with its body
|
|
@@ -4144,7 +4146,7 @@ class an extends x {
|
|
|
4144
4146
|
* @throws {RequiredError}
|
|
4145
4147
|
*/
|
|
4146
4148
|
getSkill(n, e, t, a) {
|
|
4147
|
-
return
|
|
4149
|
+
return X(this.configuration).getSkill(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4148
4150
|
}
|
|
4149
4151
|
/**
|
|
4150
4152
|
* Lists the agent skills that apply to this package: the guides bundled with this server, plus any the package ships under `skills/`. Resolution is name shadowing. A package skill whose `name` matches a bundled skill REPLACES it for this package; one with a new name is added. Nothing is merged, because the server does not know which guides the calling agent already holds and so cannot patch one. Read `origin` on each entry to tell a replaced skill from the original. Bodies are not returned here. Fetch one with `GET .../skills/{skillName}`. An entry whose `name` contains a slash (`<skill>/<stem>`) is a skill\'s on-demand reference file, addressed by the pointer at the end of its parent\'s body. The REST half of the `get_skill` MCP tool, for callers running unattended.
|
|
@@ -4155,10 +4157,205 @@ class an extends x {
|
|
|
4155
4157
|
* @throws {RequiredError}
|
|
4156
4158
|
*/
|
|
4157
4159
|
listSkills(n, e, t) {
|
|
4158
|
-
return
|
|
4160
|
+
return X(this.configuration).listSkills(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
4159
4161
|
}
|
|
4160
4162
|
}
|
|
4161
|
-
const
|
|
4163
|
+
const da = function(c) {
|
|
4164
|
+
return {
|
|
4165
|
+
/**
|
|
4166
|
+
* 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.
|
|
4167
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
4168
|
+
* @param {string} environmentName Name of the environment
|
|
4169
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4170
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
4171
|
+
* @param {*} [options] Override http request option.
|
|
4172
|
+
* @throws {RequiredError}
|
|
4173
|
+
*/
|
|
4174
|
+
createStorageDestinationFileCleanup: async (n, e, t, a = {}) => {
|
|
4175
|
+
m("createStorageDestinationFileCleanup", "environmentName", n), m("createStorageDestinationFileCleanup", "destinationName", e), m("createStorageDestinationFileCleanup", "storageFileCleanupRequest", t);
|
|
4176
|
+
const r = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(n))).replace("{destinationName}", encodeURIComponent(String(e))), o = new URL(r, S);
|
|
4177
|
+
let s;
|
|
4178
|
+
c && (s = c.baseOptions);
|
|
4179
|
+
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
4180
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(o, p);
|
|
4181
|
+
let d = s && s.headers ? s.headers : {};
|
|
4182
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
4183
|
+
url: P(o),
|
|
4184
|
+
options: l
|
|
4185
|
+
};
|
|
4186
|
+
},
|
|
4187
|
+
/**
|
|
4188
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4189
|
+
* @summary Drop a table from a storage destination
|
|
4190
|
+
* @param {string} environmentName Name of the environment
|
|
4191
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4192
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4193
|
+
* @param {string} tableName Name of the table
|
|
4194
|
+
* @param {*} [options] Override http request option.
|
|
4195
|
+
* @throws {RequiredError}
|
|
4196
|
+
*/
|
|
4197
|
+
deleteStorageDestinationTable: async (n, e, t, a, r = {}) => {
|
|
4198
|
+
m("deleteStorageDestinationTable", "environmentName", n), m("deleteStorageDestinationTable", "destinationName", e), m("deleteStorageDestinationTable", "schemaName", t), m("deleteStorageDestinationTable", "tableName", a);
|
|
4199
|
+
const o = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tableName}", encodeURIComponent(String(a))), s = new URL(o, S);
|
|
4200
|
+
let l;
|
|
4201
|
+
c && (l = c.baseOptions);
|
|
4202
|
+
const i = { method: "DELETE", ...l, ...r }, p = {}, d = {};
|
|
4203
|
+
p.Accept = "application/json", v(s, d);
|
|
4204
|
+
let h = l && l.headers ? l.headers : {};
|
|
4205
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
4206
|
+
url: P(s),
|
|
4207
|
+
options: i
|
|
4208
|
+
};
|
|
4209
|
+
},
|
|
4210
|
+
/**
|
|
4211
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
4212
|
+
* @summary List tables in a storage destination
|
|
4213
|
+
* @param {string} environmentName Name of the environment
|
|
4214
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4215
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4216
|
+
* @param {*} [options] Override http request option.
|
|
4217
|
+
* @throws {RequiredError}
|
|
4218
|
+
*/
|
|
4219
|
+
listStorageDestinationTables: async (n, e, t, a = {}) => {
|
|
4220
|
+
m("listStorageDestinationTables", "environmentName", n), m("listStorageDestinationTables", "destinationName", e), m("listStorageDestinationTables", "schemaName", t);
|
|
4221
|
+
const r = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{destinationName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), o = new URL(r, S);
|
|
4222
|
+
let s;
|
|
4223
|
+
c && (s = c.baseOptions);
|
|
4224
|
+
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4225
|
+
i.Accept = "application/json", v(o, p);
|
|
4226
|
+
let d = s && s.headers ? s.headers : {};
|
|
4227
|
+
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
4228
|
+
url: P(o),
|
|
4229
|
+
options: l
|
|
4230
|
+
};
|
|
4231
|
+
}
|
|
4232
|
+
};
|
|
4233
|
+
}, H = function(c) {
|
|
4234
|
+
const n = da(c);
|
|
4235
|
+
return {
|
|
4236
|
+
/**
|
|
4237
|
+
* 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.
|
|
4238
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
4239
|
+
* @param {string} environmentName Name of the environment
|
|
4240
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4241
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
4242
|
+
* @param {*} [options] Override http request option.
|
|
4243
|
+
* @throws {RequiredError}
|
|
4244
|
+
*/
|
|
4245
|
+
async createStorageDestinationFileCleanup(e, t, a, r) {
|
|
4246
|
+
const o = await n.createStorageDestinationFileCleanup(e, t, a, r), s = c?.serverIndex ?? 0, l = b["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[s]?.url;
|
|
4247
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
4248
|
+
},
|
|
4249
|
+
/**
|
|
4250
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4251
|
+
* @summary Drop a table from a storage destination
|
|
4252
|
+
* @param {string} environmentName Name of the environment
|
|
4253
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4254
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4255
|
+
* @param {string} tableName Name of the table
|
|
4256
|
+
* @param {*} [options] Override http request option.
|
|
4257
|
+
* @throws {RequiredError}
|
|
4258
|
+
*/
|
|
4259
|
+
async deleteStorageDestinationTable(e, t, a, r, o) {
|
|
4260
|
+
const s = await n.deleteStorageDestinationTable(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["StorageDestinationsApi.deleteStorageDestinationTable"]?.[l]?.url;
|
|
4261
|
+
return (p, d) => V(s, u, g, c)(p, i || d);
|
|
4262
|
+
},
|
|
4263
|
+
/**
|
|
4264
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
4265
|
+
* @summary List tables in a storage destination
|
|
4266
|
+
* @param {string} environmentName Name of the environment
|
|
4267
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4268
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4269
|
+
* @param {*} [options] Override http request option.
|
|
4270
|
+
* @throws {RequiredError}
|
|
4271
|
+
*/
|
|
4272
|
+
async listStorageDestinationTables(e, t, a, r) {
|
|
4273
|
+
const o = await n.listStorageDestinationTables(e, t, a, r), s = c?.serverIndex ?? 0, l = b["StorageDestinationsApi.listStorageDestinationTables"]?.[s]?.url;
|
|
4274
|
+
return (i, p) => V(o, u, g, c)(i, l || p);
|
|
4275
|
+
}
|
|
4276
|
+
};
|
|
4277
|
+
}, rn = function(c, n, e) {
|
|
4278
|
+
const t = H(c);
|
|
4279
|
+
return {
|
|
4280
|
+
/**
|
|
4281
|
+
* 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
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
4283
|
+
* @param {string} environmentName Name of the environment
|
|
4284
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4285
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
4286
|
+
* @param {*} [options] Override http request option.
|
|
4287
|
+
* @throws {RequiredError}
|
|
4288
|
+
*/
|
|
4289
|
+
createStorageDestinationFileCleanup(a, r, o, s) {
|
|
4290
|
+
return t.createStorageDestinationFileCleanup(a, r, o, s).then((l) => l(e, n));
|
|
4291
|
+
},
|
|
4292
|
+
/**
|
|
4293
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4294
|
+
* @summary Drop a table from a storage destination
|
|
4295
|
+
* @param {string} environmentName Name of the environment
|
|
4296
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4297
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4298
|
+
* @param {string} tableName Name of the table
|
|
4299
|
+
* @param {*} [options] Override http request option.
|
|
4300
|
+
* @throws {RequiredError}
|
|
4301
|
+
*/
|
|
4302
|
+
deleteStorageDestinationTable(a, r, o, s, l) {
|
|
4303
|
+
return t.deleteStorageDestinationTable(a, r, o, s, l).then((i) => i(e, n));
|
|
4304
|
+
},
|
|
4305
|
+
/**
|
|
4306
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
4307
|
+
* @summary List tables in a storage destination
|
|
4308
|
+
* @param {string} environmentName Name of the environment
|
|
4309
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4310
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4311
|
+
* @param {*} [options] Override http request option.
|
|
4312
|
+
* @throws {RequiredError}
|
|
4313
|
+
*/
|
|
4314
|
+
listStorageDestinationTables(a, r, o, s) {
|
|
4315
|
+
return t.listStorageDestinationTables(a, r, o, s).then((l) => l(e, n));
|
|
4316
|
+
}
|
|
4317
|
+
};
|
|
4318
|
+
};
|
|
4319
|
+
class on extends C {
|
|
4320
|
+
/**
|
|
4321
|
+
* Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
4322
|
+
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
4323
|
+
* @param {string} environmentName Name of the environment
|
|
4324
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4325
|
+
* @param {StorageFileCleanupRequest} storageFileCleanupRequest
|
|
4326
|
+
* @param {*} [options] Override http request option.
|
|
4327
|
+
* @throws {RequiredError}
|
|
4328
|
+
*/
|
|
4329
|
+
createStorageDestinationFileCleanup(n, e, t, a) {
|
|
4330
|
+
return H(this.configuration).createStorageDestinationFileCleanup(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4331
|
+
}
|
|
4332
|
+
/**
|
|
4333
|
+
* Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
4334
|
+
* @summary Drop a table from a storage destination
|
|
4335
|
+
* @param {string} environmentName Name of the environment
|
|
4336
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4337
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4338
|
+
* @param {string} tableName Name of the table
|
|
4339
|
+
* @param {*} [options] Override http request option.
|
|
4340
|
+
* @throws {RequiredError}
|
|
4341
|
+
*/
|
|
4342
|
+
deleteStorageDestinationTable(n, e, t, a, r) {
|
|
4343
|
+
return H(this.configuration).deleteStorageDestinationTable(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
4344
|
+
}
|
|
4345
|
+
/**
|
|
4346
|
+
* Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
4347
|
+
* @summary List tables in a storage destination
|
|
4348
|
+
* @param {string} environmentName Name of the environment
|
|
4349
|
+
* @param {string} destinationName Name of a storage destination configured on the environment
|
|
4350
|
+
* @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in `main`.
|
|
4351
|
+
* @param {*} [options] Override http request option.
|
|
4352
|
+
* @throws {RequiredError}
|
|
4353
|
+
*/
|
|
4354
|
+
listStorageDestinationTables(n, e, t, a) {
|
|
4355
|
+
return H(this.configuration).listStorageDestinationTables(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
const ma = function(c) {
|
|
4162
4359
|
return {
|
|
4163
4360
|
/**
|
|
4164
4361
|
* 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.
|
|
@@ -4167,14 +4364,14 @@ const pa = function(c) {
|
|
|
4167
4364
|
* @throws {RequiredError}
|
|
4168
4365
|
*/
|
|
4169
4366
|
getWatchStatus: async (n = {}) => {
|
|
4170
|
-
const e = "/watch-mode/status", t = new URL(e,
|
|
4367
|
+
const e = "/watch-mode/status", t = new URL(e, S);
|
|
4171
4368
|
let a;
|
|
4172
4369
|
c && (a = c.baseOptions);
|
|
4173
4370
|
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
4174
4371
|
o.Accept = "application/json", v(t, s);
|
|
4175
4372
|
let l = a && a.headers ? a.headers : {};
|
|
4176
4373
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
4177
|
-
url:
|
|
4374
|
+
url: P(t),
|
|
4178
4375
|
options: r
|
|
4179
4376
|
};
|
|
4180
4377
|
},
|
|
@@ -4187,14 +4384,14 @@ const pa = function(c) {
|
|
|
4187
4384
|
*/
|
|
4188
4385
|
startWatching: async (n, e = {}) => {
|
|
4189
4386
|
m("startWatching", "startWatchRequest", n);
|
|
4190
|
-
const t = "/watch-mode/start", a = new URL(t,
|
|
4387
|
+
const t = "/watch-mode/start", a = new URL(t, S);
|
|
4191
4388
|
let r;
|
|
4192
4389
|
c && (r = c.baseOptions);
|
|
4193
4390
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
4194
4391
|
s["Content-Type"] = "application/json", s.Accept = "application/json", v(a, l);
|
|
4195
4392
|
let i = r && r.headers ? r.headers : {};
|
|
4196
4393
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
4197
|
-
url:
|
|
4394
|
+
url: P(a),
|
|
4198
4395
|
options: o
|
|
4199
4396
|
};
|
|
4200
4397
|
},
|
|
@@ -4205,14 +4402,14 @@ const pa = function(c) {
|
|
|
4205
4402
|
* @throws {RequiredError}
|
|
4206
4403
|
*/
|
|
4207
4404
|
stopWatching: async (n = {}) => {
|
|
4208
|
-
const e = "/watch-mode/stop", t = new URL(e,
|
|
4405
|
+
const e = "/watch-mode/stop", t = new URL(e, S);
|
|
4209
4406
|
let a;
|
|
4210
4407
|
c && (a = c.baseOptions);
|
|
4211
4408
|
const r = { method: "POST", ...a, ...n }, o = {}, s = {};
|
|
4212
4409
|
o.Accept = "application/json", v(t, s);
|
|
4213
4410
|
let l = a && a.headers ? a.headers : {};
|
|
4214
4411
|
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
4215
|
-
url:
|
|
4412
|
+
url: P(t),
|
|
4216
4413
|
options: r
|
|
4217
4414
|
};
|
|
4218
4415
|
},
|
|
@@ -4226,20 +4423,20 @@ const pa = function(c) {
|
|
|
4226
4423
|
*/
|
|
4227
4424
|
streamPackageEvents: async (n, e, t = {}) => {
|
|
4228
4425
|
m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
|
|
4229
|
-
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
4426
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, S);
|
|
4230
4427
|
let o;
|
|
4231
4428
|
c && (o = c.baseOptions);
|
|
4232
4429
|
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
4233
4430
|
l.Accept = "text/event-stream,application/json", v(r, i);
|
|
4234
4431
|
let p = o && o.headers ? o.headers : {};
|
|
4235
4432
|
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
4236
|
-
url:
|
|
4433
|
+
url: P(r),
|
|
4237
4434
|
options: s
|
|
4238
4435
|
};
|
|
4239
4436
|
}
|
|
4240
4437
|
};
|
|
4241
|
-
},
|
|
4242
|
-
const n =
|
|
4438
|
+
}, j = function(c) {
|
|
4439
|
+
const n = ma(c);
|
|
4243
4440
|
return {
|
|
4244
4441
|
/**
|
|
4245
4442
|
* 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.
|
|
@@ -4249,7 +4446,7 @@ const pa = function(c) {
|
|
|
4249
4446
|
*/
|
|
4250
4447
|
async getWatchStatus(e) {
|
|
4251
4448
|
const t = await n.getWatchStatus(e), a = c?.serverIndex ?? 0, r = b["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
4252
|
-
return (o, s) =>
|
|
4449
|
+
return (o, s) => V(t, u, g, c)(o, r || s);
|
|
4253
4450
|
},
|
|
4254
4451
|
/**
|
|
4255
4452
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -4260,7 +4457,7 @@ const pa = function(c) {
|
|
|
4260
4457
|
*/
|
|
4261
4458
|
async startWatching(e, t) {
|
|
4262
4459
|
const a = await n.startWatching(e, t), r = c?.serverIndex ?? 0, o = b["WatchModeApi.startWatching"]?.[r]?.url;
|
|
4263
|
-
return (s, l) =>
|
|
4460
|
+
return (s, l) => V(a, u, g, c)(s, o || l);
|
|
4264
4461
|
},
|
|
4265
4462
|
/**
|
|
4266
4463
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
|
|
@@ -4270,7 +4467,7 @@ const pa = function(c) {
|
|
|
4270
4467
|
*/
|
|
4271
4468
|
async stopWatching(e) {
|
|
4272
4469
|
const t = await n.stopWatching(e), a = c?.serverIndex ?? 0, r = b["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
4273
|
-
return (o, s) =>
|
|
4470
|
+
return (o, s) => V(t, u, g, c)(o, r || s);
|
|
4274
4471
|
},
|
|
4275
4472
|
/**
|
|
4276
4473
|
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
@@ -4282,11 +4479,11 @@ const pa = function(c) {
|
|
|
4282
4479
|
*/
|
|
4283
4480
|
async streamPackageEvents(e, t, a) {
|
|
4284
4481
|
const r = await n.streamPackageEvents(e, t, a), o = c?.serverIndex ?? 0, s = b["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
4285
|
-
return (l, i) =>
|
|
4482
|
+
return (l, i) => V(r, u, g, c)(l, s || i);
|
|
4286
4483
|
}
|
|
4287
4484
|
};
|
|
4288
|
-
},
|
|
4289
|
-
const t =
|
|
4485
|
+
}, sn = function(c, n, e) {
|
|
4486
|
+
const t = j(c);
|
|
4290
4487
|
return {
|
|
4291
4488
|
/**
|
|
4292
4489
|
* 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.
|
|
@@ -4329,7 +4526,7 @@ const pa = function(c) {
|
|
|
4329
4526
|
}
|
|
4330
4527
|
};
|
|
4331
4528
|
};
|
|
4332
|
-
class
|
|
4529
|
+
class ha extends C {
|
|
4333
4530
|
/**
|
|
4334
4531
|
* 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.
|
|
4335
4532
|
* @summary Get watch mode status
|
|
@@ -4337,7 +4534,7 @@ class da extends x {
|
|
|
4337
4534
|
* @throws {RequiredError}
|
|
4338
4535
|
*/
|
|
4339
4536
|
getWatchStatus(n) {
|
|
4340
|
-
return
|
|
4537
|
+
return j(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
|
|
4341
4538
|
}
|
|
4342
4539
|
/**
|
|
4343
4540
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -4347,7 +4544,7 @@ class da extends x {
|
|
|
4347
4544
|
* @throws {RequiredError}
|
|
4348
4545
|
*/
|
|
4349
4546
|
startWatching(n, e) {
|
|
4350
|
-
return
|
|
4547
|
+
return j(this.configuration).startWatching(n, e).then((t) => t(this.axios, this.basePath));
|
|
4351
4548
|
}
|
|
4352
4549
|
/**
|
|
4353
4550
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
|
|
@@ -4356,7 +4553,7 @@ class da extends x {
|
|
|
4356
4553
|
* @throws {RequiredError}
|
|
4357
4554
|
*/
|
|
4358
4555
|
stopWatching(n) {
|
|
4359
|
-
return
|
|
4556
|
+
return j(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
|
|
4360
4557
|
}
|
|
4361
4558
|
/**
|
|
4362
4559
|
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
@@ -4367,10 +4564,10 @@ class da extends x {
|
|
|
4367
4564
|
* @throws {RequiredError}
|
|
4368
4565
|
*/
|
|
4369
4566
|
streamPackageEvents(n, e, t) {
|
|
4370
|
-
return
|
|
4567
|
+
return j(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
4371
4568
|
}
|
|
4372
4569
|
}
|
|
4373
|
-
class
|
|
4570
|
+
class ua {
|
|
4374
4571
|
/**
|
|
4375
4572
|
* parameter for apiKey security
|
|
4376
4573
|
* @param name security name
|
|
@@ -4443,7 +4640,7 @@ class ma {
|
|
|
4443
4640
|
return n !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(n);
|
|
4444
4641
|
}
|
|
4445
4642
|
}
|
|
4446
|
-
const
|
|
4643
|
+
const ga = new Ve({
|
|
4447
4644
|
defaultOptions: {
|
|
4448
4645
|
queries: {
|
|
4449
4646
|
// Not retried: `useQueryWithApiError` surfaces a failure the moment it
|
|
@@ -4462,31 +4659,31 @@ const ha = new Ve({
|
|
|
4462
4659
|
throwOnError: !1
|
|
4463
4660
|
}
|
|
4464
4661
|
}
|
|
4465
|
-
}),
|
|
4662
|
+
}), ln = {
|
|
4466
4663
|
staleTime: 300 * 1e3,
|
|
4467
4664
|
refetchOnWindowFocus: !1,
|
|
4468
4665
|
refetchOnReconnect: !1
|
|
4469
|
-
},
|
|
4470
|
-
function
|
|
4666
|
+
}, Z = "publisher:themeMode";
|
|
4667
|
+
function ba() {
|
|
4471
4668
|
if (!(typeof window > "u"))
|
|
4472
4669
|
try {
|
|
4473
|
-
const c = window.localStorage.getItem(
|
|
4670
|
+
const c = window.localStorage.getItem(Z);
|
|
4474
4671
|
if (c === "light" || c === "dark" || c === "auto") return c;
|
|
4475
4672
|
} catch {
|
|
4476
4673
|
}
|
|
4477
4674
|
}
|
|
4478
|
-
function
|
|
4675
|
+
function Sa(c) {
|
|
4479
4676
|
if (!(typeof window > "u"))
|
|
4480
4677
|
try {
|
|
4481
|
-
c === void 0 ? window.localStorage.removeItem(
|
|
4678
|
+
c === void 0 ? window.localStorage.removeItem(Z) : window.localStorage.setItem(Z, c);
|
|
4482
4679
|
} catch {
|
|
4483
4680
|
}
|
|
4484
4681
|
}
|
|
4485
|
-
function
|
|
4682
|
+
function va() {
|
|
4486
4683
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
4487
4684
|
}
|
|
4488
4685
|
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
4489
|
-
const
|
|
4686
|
+
const ue = le(void 0), Pa = (c, n) => {
|
|
4490
4687
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = u.create({
|
|
4491
4688
|
baseURL: c || e,
|
|
4492
4689
|
withCredentials: !0,
|
|
@@ -4496,26 +4693,26 @@ const he = se(void 0), Pa = (c, n) => {
|
|
|
4496
4693
|
const o = await n?.();
|
|
4497
4694
|
return r.headers.Authorization = o || "", r;
|
|
4498
4695
|
});
|
|
4499
|
-
const a = new
|
|
4696
|
+
const a = new ua({ basePath: e });
|
|
4500
4697
|
return {
|
|
4501
|
-
models: new
|
|
4502
|
-
publisher: new
|
|
4503
|
-
environments: new
|
|
4504
|
-
packages: new
|
|
4505
|
-
dashboards: new
|
|
4506
|
-
dataApps: new
|
|
4507
|
-
notebooks: new
|
|
4508
|
-
reports: new
|
|
4509
|
-
connections: new
|
|
4510
|
-
databases: new
|
|
4511
|
-
materializations: new
|
|
4698
|
+
models: new aa(a, e, t),
|
|
4699
|
+
publisher: new la(a, e, t),
|
|
4700
|
+
environments: new Je(a, e, t),
|
|
4701
|
+
packages: new oa(a, e, t),
|
|
4702
|
+
dashboards: new _e(a, e, t),
|
|
4703
|
+
dataApps: new We(a, e, t),
|
|
4704
|
+
notebooks: new na(a, e, t),
|
|
4705
|
+
reports: new ia(a, e, t),
|
|
4706
|
+
connections: new Le(a, e, t),
|
|
4707
|
+
databases: new Ke(a, e, t),
|
|
4708
|
+
materializations: new Ze(
|
|
4512
4709
|
a,
|
|
4513
4710
|
e,
|
|
4514
4711
|
t
|
|
4515
4712
|
),
|
|
4516
|
-
watchMode: new
|
|
4713
|
+
watchMode: new ha(a, e, t)
|
|
4517
4714
|
};
|
|
4518
|
-
},
|
|
4715
|
+
}, cn = (c) => /* @__PURE__ */ q(Oe, { client: ga, children: /* @__PURE__ */ q(Va, { ...c }) }), Va = ({
|
|
4519
4716
|
children: c,
|
|
4520
4717
|
getAccessToken: n,
|
|
4521
4718
|
baseURL: e,
|
|
@@ -4526,7 +4723,7 @@ const he = se(void 0), Pa = (c, n) => {
|
|
|
4526
4723
|
const o = F(
|
|
4527
4724
|
() => Pa(e, n),
|
|
4528
4725
|
[e, n]
|
|
4529
|
-
), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, l =
|
|
4726
|
+
), s = e || `${window.location.protocol}//${window.location.host}/api/v0`, l = ke({
|
|
4530
4727
|
queryKey: ["status"],
|
|
4531
4728
|
queryFn: async () => (await o.publisher.getStatus()).data
|
|
4532
4729
|
});
|
|
@@ -4537,24 +4734,24 @@ const he = se(void 0), Pa = (c, n) => {
|
|
|
4537
4734
|
const O = F(
|
|
4538
4735
|
() => [p, a],
|
|
4539
4736
|
[p, a]
|
|
4540
|
-
), [k,
|
|
4541
|
-
|
|
4542
|
-
), [R,
|
|
4543
|
-
|
|
4737
|
+
), [k, I] = te(
|
|
4738
|
+
ba
|
|
4739
|
+
), [R, ge] = te(va);
|
|
4740
|
+
Ae(() => {
|
|
4544
4741
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
4545
|
-
const T = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
4546
|
-
return T.addEventListener("change",
|
|
4742
|
+
const T = window.matchMedia("(prefers-color-scheme: dark)"), ae = (Pe) => ge(Pe.matches);
|
|
4743
|
+
return T.addEventListener("change", ae), () => T.removeEventListener("change", ae);
|
|
4547
4744
|
}, []);
|
|
4548
|
-
const
|
|
4549
|
-
|
|
4550
|
-
}, []),
|
|
4551
|
-
() =>
|
|
4745
|
+
const be = ye((T) => {
|
|
4746
|
+
I(T), Sa(T);
|
|
4747
|
+
}, []), ee = p?.allowUserToggle ?? !0, _ = ee ? k : void 0, Se = F(
|
|
4748
|
+
() => Fe(
|
|
4552
4749
|
p?.defaultMode,
|
|
4553
|
-
|
|
4750
|
+
_,
|
|
4554
4751
|
R
|
|
4555
4752
|
),
|
|
4556
|
-
[p?.defaultMode,
|
|
4557
|
-
),
|
|
4753
|
+
[p?.defaultMode, _, R]
|
|
4754
|
+
), ve = {
|
|
4558
4755
|
server: s,
|
|
4559
4756
|
getAccessToken: n,
|
|
4560
4757
|
apiClients: o,
|
|
@@ -4562,166 +4759,170 @@ const he = se(void 0), Pa = (c, n) => {
|
|
|
4562
4759
|
isLoadingStatus: d,
|
|
4563
4760
|
instanceTheme: p
|
|
4564
4761
|
};
|
|
4565
|
-
return /* @__PURE__ */ q(
|
|
4566
|
-
|
|
4762
|
+
return /* @__PURE__ */ q(ue.Provider, { value: ve, children: /* @__PURE__ */ q(
|
|
4763
|
+
De,
|
|
4567
4764
|
{
|
|
4568
4765
|
layers: O,
|
|
4569
|
-
mode:
|
|
4570
|
-
userChoice:
|
|
4571
|
-
setMode:
|
|
4572
|
-
allowUserToggle:
|
|
4766
|
+
mode: Se,
|
|
4767
|
+
userChoice: _,
|
|
4768
|
+
setMode: be,
|
|
4769
|
+
allowUserToggle: ee,
|
|
4573
4770
|
...r ? { ui: r } : {},
|
|
4574
4771
|
children: c
|
|
4575
4772
|
}
|
|
4576
4773
|
) });
|
|
4577
|
-
},
|
|
4578
|
-
const c =
|
|
4774
|
+
}, pn = () => {
|
|
4775
|
+
const c = se(ue);
|
|
4579
4776
|
if (c === void 0)
|
|
4580
4777
|
throw new Error("useServer must be used within a ServerProvider");
|
|
4581
4778
|
return c;
|
|
4582
4779
|
};
|
|
4583
4780
|
export {
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4781
|
+
ot as $,
|
|
4782
|
+
jt as A,
|
|
4783
|
+
Y as B,
|
|
4784
|
+
Ba as C,
|
|
4785
|
+
Wa as D,
|
|
4786
|
+
Ka as E,
|
|
4787
|
+
We as F,
|
|
4788
|
+
Ge as G,
|
|
4789
|
+
_t as H,
|
|
4790
|
+
me as I,
|
|
4791
|
+
Ya as J,
|
|
4792
|
+
Ke as K,
|
|
4793
|
+
$e as L,
|
|
4794
|
+
Gt as M,
|
|
4795
|
+
he as N,
|
|
4796
|
+
Je as O,
|
|
4797
|
+
Ye as P,
|
|
4798
|
+
Wt as Q,
|
|
4799
|
+
w as R,
|
|
4800
|
+
Xt as S,
|
|
4801
|
+
Ja as T,
|
|
4802
|
+
Xa as U,
|
|
4803
|
+
qt as V,
|
|
4804
|
+
Za as W,
|
|
4805
|
+
et as X,
|
|
4806
|
+
at as Y,
|
|
4807
|
+
rt as Z,
|
|
4808
|
+
tt as _,
|
|
4809
|
+
qe as a,
|
|
4613
4810
|
da as a$,
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4811
|
+
nt as a0,
|
|
4812
|
+
Kt as a1,
|
|
4813
|
+
st as a2,
|
|
4814
|
+
Ze as a3,
|
|
4815
|
+
Xe as a4,
|
|
4816
|
+
$t as a5,
|
|
4817
|
+
f as a6,
|
|
4818
|
+
aa as a7,
|
|
4819
|
+
ea as a8,
|
|
4820
|
+
Yt as a9,
|
|
4821
|
+
B as aA,
|
|
4822
|
+
Ot as aB,
|
|
4823
|
+
kt as aC,
|
|
4824
|
+
At as aD,
|
|
4825
|
+
yt as aE,
|
|
4826
|
+
Ct as aF,
|
|
4827
|
+
xt as aG,
|
|
4828
|
+
It as aH,
|
|
4829
|
+
Nt as aI,
|
|
4830
|
+
Rt as aJ,
|
|
4831
|
+
Ut as aK,
|
|
4832
|
+
Tt as aL,
|
|
4833
|
+
ia as aM,
|
|
4637
4834
|
ca as aN,
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4835
|
+
an as aO,
|
|
4836
|
+
J as aP,
|
|
4837
|
+
wt as aQ,
|
|
4838
|
+
ft as aR,
|
|
4839
|
+
cn as aS,
|
|
4840
|
+
Et as aT,
|
|
4841
|
+
Mt as aU,
|
|
4842
|
+
Ft as aV,
|
|
4843
|
+
nn as aW,
|
|
4844
|
+
pa as aX,
|
|
4845
|
+
tn as aY,
|
|
4846
|
+
X as aZ,
|
|
4847
|
+
on as a_,
|
|
4651
4848
|
E as aa,
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4849
|
+
ct as ab,
|
|
4850
|
+
pt as ac,
|
|
4851
|
+
it as ad,
|
|
4852
|
+
lt as ae,
|
|
4853
|
+
na as af,
|
|
4854
|
+
ta as ag,
|
|
4855
|
+
Jt as ah,
|
|
4856
|
+
z as ai,
|
|
4857
|
+
gt as aj,
|
|
4858
|
+
bt as ak,
|
|
4859
|
+
ut as al,
|
|
4860
|
+
ht as am,
|
|
4861
|
+
mt as an,
|
|
4862
|
+
dt as ao,
|
|
4863
|
+
St as ap,
|
|
4864
|
+
vt as aq,
|
|
4865
|
+
oa as ar,
|
|
4866
|
+
ra as as,
|
|
4867
|
+
Zt as at,
|
|
4671
4868
|
M as au,
|
|
4672
4869
|
Pt as av,
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4870
|
+
Vt as aw,
|
|
4871
|
+
la as ax,
|
|
4872
|
+
sa as ay,
|
|
4873
|
+
en as az,
|
|
4874
|
+
Bt as b,
|
|
4875
|
+
rn as b0,
|
|
4876
|
+
H as b1,
|
|
4877
|
+
Dt as b2,
|
|
4681
4878
|
ha as b3,
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
Da as
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
La as
|
|
4713
|
-
Qa as
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4879
|
+
ma as b4,
|
|
4880
|
+
sn as b5,
|
|
4881
|
+
j as b6,
|
|
4882
|
+
ga as b7,
|
|
4883
|
+
Ma as b8,
|
|
4884
|
+
pn as b9,
|
|
4885
|
+
Me as ba,
|
|
4886
|
+
ie as bb,
|
|
4887
|
+
N as bc,
|
|
4888
|
+
xa as bd,
|
|
4889
|
+
Ia as be,
|
|
4890
|
+
Ta as bf,
|
|
4891
|
+
Ua as bg,
|
|
4892
|
+
wa as bh,
|
|
4893
|
+
fa as bi,
|
|
4894
|
+
Ra as bj,
|
|
4895
|
+
Na as bk,
|
|
4896
|
+
x as bl,
|
|
4897
|
+
oe as bm,
|
|
4898
|
+
De as bn,
|
|
4899
|
+
re as bo,
|
|
4900
|
+
Ea as bp,
|
|
4901
|
+
Re as bq,
|
|
4902
|
+
Fe as br,
|
|
4903
|
+
ln as bs,
|
|
4904
|
+
L as c,
|
|
4905
|
+
Fa as d,
|
|
4906
|
+
Da as e,
|
|
4907
|
+
ja as f,
|
|
4908
|
+
qa as g,
|
|
4909
|
+
La as h,
|
|
4910
|
+
Qa as i,
|
|
4911
|
+
ua as j,
|
|
4912
|
+
Ha as k,
|
|
4913
|
+
_a as l,
|
|
4914
|
+
za as m,
|
|
4915
|
+
Le as n,
|
|
4916
|
+
Qe as o,
|
|
4917
|
+
Qt as p,
|
|
4717
4918
|
y as q,
|
|
4718
|
-
|
|
4919
|
+
zt as r,
|
|
4719
4920
|
ze as s,
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4921
|
+
Lt as t,
|
|
4922
|
+
de as u,
|
|
4923
|
+
Ga as v,
|
|
4924
|
+
$a as w,
|
|
4925
|
+
_e as x,
|
|
4926
|
+
He as y,
|
|
4927
|
+
Ht as z
|
|
4727
4928
|
};
|