@malloy-publisher/sdk 0.9.8 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-DZj-FnOJ.es.js → RenderedResult-BHuJpdSn.es.js} +2 -2
- package/dist/{RenderedResult-BrvrMDAP.cjs.js → RenderedResult-Bw7EQc42.cjs.js} +1 -1
- package/dist/ServerProvider-B0dUY8be.cjs.js +1 -0
- package/dist/{ServerProvider-B_bPAsu2.es.js → ServerProvider-CQy4jVYK.es.js} +1394 -1051
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +412 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +125 -114
- package/dist/components/Package/ContentTypeIcon.d.ts +3 -3
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +2112 -2063
- package/dist/{useCompiledDocument-x0B2RAH3.es.js → useCompiledDocument-1dgF5CC9.es.js} +2 -2
- package/dist/{useCompiledDocument-oocN5cGE.cjs.js → useCompiledDocument-BKyRnXmA.cjs.js} +2 -2
- package/package.json +1 -1
- package/src/components/Package/ContentTypeIcon.tsx +16 -3
- package/src/components/Package/Package.agents.spec.tsx +76 -0
- package/src/components/Package/Package.tsx +44 -1
- package/dist/ServerProvider-DuEOzwPc.cjs.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import { QueryClient as
|
|
2
|
+
import { QueryClient as be, QueryClientProvider as ve, useQuery as Pe } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { styled as N, Card as
|
|
4
|
+
import { useContext as ne, useMemo as j, createContext as re, useState as ee, useEffect as Ve, useCallback as Se } from "react";
|
|
5
|
+
import { styled as N, Card as Oe, CardContent as ke, CardMedia as Ae } from "@mui/material";
|
|
6
6
|
const I = {
|
|
7
7
|
blue: "#2563eb",
|
|
8
8
|
indigo: "#4f46e5",
|
|
@@ -16,36 +16,36 @@ const I = {
|
|
|
16
16
|
teal: "#0f766e",
|
|
17
17
|
cyan: "#0e7490",
|
|
18
18
|
slate: "#475569"
|
|
19
|
-
},
|
|
19
|
+
}, Sa = {
|
|
20
20
|
environment: I.emerald,
|
|
21
21
|
package: I.teal,
|
|
22
22
|
connection: I.orange
|
|
23
|
-
},
|
|
23
|
+
}, Oa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', ka = N(Oe)({
|
|
24
24
|
display: "flex",
|
|
25
25
|
flexDirection: "column",
|
|
26
26
|
height: "100%",
|
|
27
27
|
boxShadow: "none",
|
|
28
28
|
border: "none",
|
|
29
29
|
backgroundColor: "transparent"
|
|
30
|
-
}),
|
|
30
|
+
}), Aa = N(ke)({
|
|
31
31
|
display: "flex",
|
|
32
32
|
flexDirection: "column",
|
|
33
33
|
padding: "0",
|
|
34
34
|
flexGrow: 1
|
|
35
|
-
}),
|
|
35
|
+
}), ya = N(Ae)({
|
|
36
36
|
padding: "0"
|
|
37
|
-
}),
|
|
37
|
+
}), Ca = N("div")(({ theme: c }) => ({
|
|
38
38
|
backgroundColor: c.palette.background.default,
|
|
39
39
|
borderRadius: "12px",
|
|
40
40
|
boxShadow: "none",
|
|
41
41
|
border: "none"
|
|
42
|
-
})),
|
|
42
|
+
})), Ia = N("div")({
|
|
43
43
|
marginBottom: "48px",
|
|
44
44
|
padding: "0",
|
|
45
45
|
backgroundColor: "transparent",
|
|
46
46
|
border: "none",
|
|
47
47
|
boxShadow: "none"
|
|
48
|
-
}),
|
|
48
|
+
}), xa = N("div")({
|
|
49
49
|
backgroundColor: "transparent",
|
|
50
50
|
paddingTop: "12px",
|
|
51
51
|
paddingBottom: "2px",
|
|
@@ -53,13 +53,13 @@ const I = {
|
|
|
53
53
|
border: "none",
|
|
54
54
|
boxShadow: "none",
|
|
55
55
|
marginBottom: "0"
|
|
56
|
-
}),
|
|
56
|
+
}), Ra = N("div")({
|
|
57
57
|
height: "100%"
|
|
58
|
-
}),
|
|
58
|
+
}), Na = N("div")({
|
|
59
59
|
height: "75vh",
|
|
60
60
|
width: "100%",
|
|
61
61
|
overflowY: "auto"
|
|
62
|
-
}),
|
|
62
|
+
}), ye = {
|
|
63
63
|
light: {
|
|
64
64
|
accent: I.blue,
|
|
65
65
|
accentHover: "#1d4ed8",
|
|
@@ -70,52 +70,52 @@ const I = {
|
|
|
70
70
|
accentHover: "#93c5fd",
|
|
71
71
|
accentContrast: "#0f172a"
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, Ce = {
|
|
74
74
|
light: "#ffffff",
|
|
75
75
|
dark: "#0f172a"
|
|
76
|
-
},
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
79
|
-
const e =
|
|
80
|
-
return [0, 2, 4].map((
|
|
81
|
-
},
|
|
82
|
-
const [
|
|
76
|
+
}, Ie = 3, U = (c) => {
|
|
77
|
+
const n = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(c.trim());
|
|
78
|
+
if (!n) return;
|
|
79
|
+
const e = n[1].length === 3 ? [...n[1]].map((t) => t + t).join("") : n[1];
|
|
80
|
+
return [0, 2, 4].map((t) => parseInt(e.slice(t, t + 2), 16));
|
|
81
|
+
}, oe = (c) => `#${c.map((n) => Math.round(n).toString(16).padStart(2, "0")).join("")}`, H = (c, n, e) => oe(c.map((t) => t + (n - t) * e)), _ = (c) => {
|
|
82
|
+
const [n, e, t] = c.map((a) => {
|
|
83
83
|
const r = a / 255;
|
|
84
84
|
return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
|
|
85
85
|
});
|
|
86
|
-
return 0.2126 *
|
|
87
|
-
}, q = (c,
|
|
88
|
-
const [e,
|
|
89
|
-
return (e + 0.05) / (
|
|
86
|
+
return 0.2126 * n + 0.7152 * e + 0.0722 * t;
|
|
87
|
+
}, q = (c, n) => {
|
|
88
|
+
const [e, t] = [_(c), _(n)].sort((a, r) => r - a);
|
|
89
|
+
return (e + 0.05) / (t + 0.05);
|
|
90
90
|
};
|
|
91
|
-
function
|
|
92
|
-
const e =
|
|
93
|
-
return e &&
|
|
91
|
+
function Ua(c, n) {
|
|
92
|
+
const e = U(c), t = U(n);
|
|
93
|
+
return e && t ? q(e, t) : void 0;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
const
|
|
98
|
-
if (!
|
|
99
|
-
const r =
|
|
95
|
+
const xe = [15, 23, 42];
|
|
96
|
+
function G(c, n, e = Ie) {
|
|
97
|
+
const t = U(c), a = U(n);
|
|
98
|
+
if (!t || !a || q(t, a) >= e) return c;
|
|
99
|
+
const r = _(a) < 0.5 ? 255 : 0;
|
|
100
100
|
for (let o = 0.05; o < 1; o += 0.05) {
|
|
101
|
-
const s =
|
|
102
|
-
if (s && q(s, a) >= e) return
|
|
101
|
+
const s = U(H(t, r, o));
|
|
102
|
+
if (s && q(s, a) >= e) return oe(s);
|
|
103
103
|
}
|
|
104
104
|
return r === 255 ? "#ffffff" : "#000000";
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
const
|
|
108
|
-
if (!c || c.toLowerCase() === I.blue) return
|
|
109
|
-
if (!
|
|
110
|
-
return
|
|
111
|
-
const a =
|
|
106
|
+
function ae(c, n, e = Ce[n]) {
|
|
107
|
+
const t = ye[n];
|
|
108
|
+
if (!c || c.toLowerCase() === I.blue) return t;
|
|
109
|
+
if (!U(c))
|
|
110
|
+
return n === "light" ? { ...t, accent: c, accentHover: c } : t;
|
|
111
|
+
const a = G(c, e), r = U(a), o = n === "dark" ? H(r, 255, 0.25) : H(r, 0, 0.2), s = q(r, [255, 255, 255]), l = q(r, xe);
|
|
112
112
|
return {
|
|
113
113
|
accent: a,
|
|
114
114
|
accentHover: o,
|
|
115
115
|
accentContrast: s >= l ? "#ffffff" : "#0f172a"
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const Re = [
|
|
119
119
|
I.blue,
|
|
120
120
|
I.orange,
|
|
121
121
|
I.emerald,
|
|
@@ -124,11 +124,11 @@ const Ie = [
|
|
|
124
124
|
I.amber,
|
|
125
125
|
I.cyan,
|
|
126
126
|
I.lime
|
|
127
|
-
],
|
|
127
|
+
], Ne = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", te = {
|
|
128
128
|
defaultMode: "light",
|
|
129
129
|
allowUserToggle: !0,
|
|
130
130
|
palette: {
|
|
131
|
-
series:
|
|
131
|
+
series: Re,
|
|
132
132
|
// The chart canvas. One ground for the whole dashboard in both modes —
|
|
133
133
|
// canvas, card and the panel between cards are all this value, and the
|
|
134
134
|
// borders do the separating. See `tile`.
|
|
@@ -214,10 +214,10 @@ const Ie = [
|
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
font: {
|
|
217
|
-
family:
|
|
217
|
+
family: Ne,
|
|
218
218
|
size: 12
|
|
219
219
|
}
|
|
220
|
-
},
|
|
220
|
+
}, Ue = [
|
|
221
221
|
"background",
|
|
222
222
|
"tableHeader",
|
|
223
223
|
"tableHeaderBackground",
|
|
@@ -232,12 +232,12 @@ const Ie = [
|
|
|
232
232
|
"chartText",
|
|
233
233
|
"value"
|
|
234
234
|
];
|
|
235
|
-
function
|
|
236
|
-
const e =
|
|
235
|
+
function se(c, n) {
|
|
236
|
+
const e = te.palette ?? {}, t = te.font ?? {
|
|
237
237
|
family: "sans-serif",
|
|
238
238
|
size: 12
|
|
239
239
|
};
|
|
240
|
-
let a = [...e.series ?? []], r = !1, o =
|
|
240
|
+
let a = [...e.series ?? []], r = !1, o = t.family ?? "sans-serif", s = t.size ?? 12;
|
|
241
241
|
const l = {
|
|
242
242
|
background: { ...e.background ?? {} },
|
|
243
243
|
tableHeader: { ...e.tableHeader ?? {} },
|
|
@@ -261,31 +261,31 @@ function re(c, t) {
|
|
|
261
261
|
for (const k of c)
|
|
262
262
|
if (k) {
|
|
263
263
|
Array.isArray(k.palette?.series) && (a = [...k.palette.series], r = !0);
|
|
264
|
-
for (const C of
|
|
264
|
+
for (const C of Ue) {
|
|
265
265
|
const R = k.palette?.[C];
|
|
266
266
|
R && (l[C] = { ...l[C], ...R }, R.light !== void 0 && i.light.add(C), R.dark !== void 0 && i.dark.add(C));
|
|
267
267
|
}
|
|
268
268
|
typeof k.font?.family == "string" && (o = k.font.family), typeof k.font?.size == "number" && (s = k.font.size);
|
|
269
269
|
}
|
|
270
|
-
const p =
|
|
270
|
+
const p = n === "dark", d = (k) => l[k][n] ?? e[k]?.[n], h = d("background"), O = p && i.light.has("mapColor") && !i.dark.has("mapColor") ? G(l.mapColor.light, h) : d("mapColor");
|
|
271
271
|
return {
|
|
272
|
-
mode:
|
|
272
|
+
mode: n,
|
|
273
273
|
// One series list for both modes, picked against a light page: in dark,
|
|
274
274
|
// an operator's colour too dark to see on the canvas is lifted until it
|
|
275
275
|
// reads. The defaults are drawn as they always were.
|
|
276
|
-
series: p && r ? a.map((k) =>
|
|
277
|
-
...
|
|
276
|
+
series: p && r ? a.map((k) => G(k, h)) : a,
|
|
277
|
+
...ae(a[0], n, h),
|
|
278
278
|
font: { family: o, size: s },
|
|
279
|
-
background:
|
|
279
|
+
background: h,
|
|
280
280
|
tableHeader: d("tableHeader"),
|
|
281
281
|
tableHeaderBackground: d("tableHeaderBackground"),
|
|
282
282
|
tableBody: d("tableBody"),
|
|
283
283
|
tile: d("tile"),
|
|
284
284
|
tileTitle: d("tileTitle"),
|
|
285
|
-
mapColor:
|
|
285
|
+
mapColor: O,
|
|
286
286
|
// Table interior follows the operator's chart background so
|
|
287
287
|
// tables and chart canvases share a single "viz surface" colour.
|
|
288
|
-
tableBackground:
|
|
288
|
+
tableBackground: h,
|
|
289
289
|
// Chrome colours. Each is a per-mode palette key (defaults in
|
|
290
290
|
// DEFAULT_THEME); unlike mapColor, a value set only for light is not
|
|
291
291
|
// carried into dark: dark falls back to its own default, because a
|
|
@@ -322,32 +322,32 @@ function re(c, t) {
|
|
|
322
322
|
// contrast on the slate panel.
|
|
323
323
|
// The Console's default accent, not the palette's: a drill reads as a
|
|
324
324
|
// link whatever the operator picked for the data.
|
|
325
|
-
drillLink:
|
|
325
|
+
drillLink: ae(void 0, n).accent
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
const
|
|
330
|
-
return
|
|
328
|
+
function Te(c, n, e) {
|
|
329
|
+
const t = n ?? c ?? "light";
|
|
330
|
+
return t === "auto" ? e ? "dark" : "light" : t;
|
|
331
331
|
}
|
|
332
|
-
const
|
|
333
|
-
function
|
|
332
|
+
const ce = re(void 0);
|
|
333
|
+
function we({
|
|
334
334
|
layers: c,
|
|
335
|
-
mode:
|
|
335
|
+
mode: n,
|
|
336
336
|
userChoice: e,
|
|
337
|
-
setMode:
|
|
337
|
+
setMode: t,
|
|
338
338
|
allowUserToggle: a = !0,
|
|
339
339
|
children: r
|
|
340
340
|
}) {
|
|
341
|
-
const o =
|
|
342
|
-
() => ({ theme: o, layers: c, mode:
|
|
343
|
-
[o, c,
|
|
341
|
+
const o = j(() => se(c, n), [c, n]), s = j(
|
|
342
|
+
() => ({ theme: o, layers: c, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
|
|
343
|
+
[o, c, n, e, t, a]
|
|
344
344
|
);
|
|
345
|
-
return /* @__PURE__ */ D(
|
|
345
|
+
return /* @__PURE__ */ D(ce.Provider, { value: s, children: r });
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
const c =
|
|
347
|
+
function Ta() {
|
|
348
|
+
const c = ne(ce);
|
|
349
349
|
return c || {
|
|
350
|
-
theme:
|
|
350
|
+
theme: se([], "light"),
|
|
351
351
|
layers: [],
|
|
352
352
|
mode: "light",
|
|
353
353
|
userChoice: void 0,
|
|
@@ -358,68 +358,68 @@ function xa() {
|
|
|
358
358
|
}
|
|
359
359
|
const g = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
360
360
|
class x {
|
|
361
|
-
constructor(
|
|
362
|
-
this.basePath = e, this.axios =
|
|
361
|
+
constructor(n, e = g, t = u) {
|
|
362
|
+
this.basePath = e, this.axios = t, n && (this.configuration = n, this.basePath = n.basePath ?? e);
|
|
363
363
|
}
|
|
364
364
|
configuration;
|
|
365
365
|
}
|
|
366
|
-
class
|
|
367
|
-
constructor(
|
|
368
|
-
super(e), this.field =
|
|
366
|
+
class Ee extends Error {
|
|
367
|
+
constructor(n, e) {
|
|
368
|
+
super(e), this.field = n, this.name = "RequiredError";
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
const b = {},
|
|
371
|
+
const b = {}, v = "https://example.com", m = function(c, n, e) {
|
|
372
372
|
if (e == null)
|
|
373
|
-
throw new
|
|
373
|
+
throw new Ee(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
|
|
374
374
|
};
|
|
375
|
-
function W(c,
|
|
376
|
-
|
|
377
|
-
(
|
|
378
|
-
) : c.has(e) ? c.append(e,
|
|
375
|
+
function W(c, n, e = "") {
|
|
376
|
+
n != null && (typeof n == "object" ? Array.isArray(n) || n instanceof Set ? n.forEach((t) => W(c, t, e)) : Object.keys(n).forEach(
|
|
377
|
+
(t) => W(c, n[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
378
|
+
) : c.has(e) ? c.append(e, n) : c.set(e, n));
|
|
379
379
|
}
|
|
380
|
-
const
|
|
380
|
+
const P = function(c, ...n) {
|
|
381
381
|
const e = new URLSearchParams(c.search);
|
|
382
|
-
W(e,
|
|
383
|
-
},
|
|
384
|
-
return
|
|
385
|
-
},
|
|
386
|
-
const
|
|
387
|
-
return (
|
|
382
|
+
W(e, n), c.search = e.toString();
|
|
383
|
+
}, fe = function(c, n) {
|
|
384
|
+
return n instanceof Set ? Array.from(n) : n;
|
|
385
|
+
}, A = function(c, n, e) {
|
|
386
|
+
const t = typeof c != "string";
|
|
387
|
+
return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(c !== void 0 ? c : {}, fe) : c || "";
|
|
388
388
|
}, V = function(c) {
|
|
389
389
|
return c.pathname + c.search + c.hash;
|
|
390
|
-
},
|
|
391
|
-
return (a =
|
|
392
|
-
const o = { ...c.options, url: (a.defaults.baseURL ? "" :
|
|
390
|
+
}, S = function(c, n, e, t) {
|
|
391
|
+
return (a = n, r = e) => {
|
|
392
|
+
const o = { ...c.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? r) + c.url };
|
|
393
393
|
return a.request(o);
|
|
394
394
|
};
|
|
395
|
-
},
|
|
395
|
+
}, wa = {
|
|
396
396
|
Bigquery: "bigquery",
|
|
397
397
|
Snowflake: "snowflake",
|
|
398
398
|
Postgres: "postgres",
|
|
399
399
|
Gcs: "gcs",
|
|
400
400
|
S3: "s3",
|
|
401
401
|
Azure: "azure"
|
|
402
|
-
},
|
|
402
|
+
}, Ea = {
|
|
403
403
|
ServicePrincipal: "service_principal",
|
|
404
404
|
SasToken: "sas_token"
|
|
405
|
-
},
|
|
405
|
+
}, fa = {
|
|
406
406
|
Error: "error",
|
|
407
407
|
Warn: "warn",
|
|
408
408
|
Debug: "debug"
|
|
409
|
-
},
|
|
409
|
+
}, Ma = {
|
|
410
410
|
Append: "append",
|
|
411
411
|
File: "file",
|
|
412
412
|
Package: "package"
|
|
413
|
-
},
|
|
413
|
+
}, Fa = {
|
|
414
414
|
Success: "success",
|
|
415
415
|
Error: "error"
|
|
416
|
-
},
|
|
416
|
+
}, Ba = {
|
|
417
417
|
Grid: "grid",
|
|
418
418
|
Linear: "linear"
|
|
419
|
-
},
|
|
419
|
+
}, ja = {
|
|
420
420
|
Dashboard: "dashboard",
|
|
421
421
|
Notebook: "notebook"
|
|
422
|
-
},
|
|
422
|
+
}, Da = {
|
|
423
423
|
Postgres: "postgres",
|
|
424
424
|
Bigquery: "bigquery",
|
|
425
425
|
Snowflake: "snowflake",
|
|
@@ -430,139 +430,139 @@ const v = function(c, ...t) {
|
|
|
430
430
|
Motherduck: "motherduck",
|
|
431
431
|
Ducklake: "ducklake",
|
|
432
432
|
Publisher: "publisher"
|
|
433
|
-
},
|
|
433
|
+
}, qa = {
|
|
434
434
|
Ssh: "ssh"
|
|
435
|
-
},
|
|
435
|
+
}, Qa = {
|
|
436
436
|
Ok: "ok",
|
|
437
437
|
Failed: "failed"
|
|
438
|
-
},
|
|
438
|
+
}, La = {
|
|
439
439
|
Grid: "grid",
|
|
440
440
|
Linear: "linear"
|
|
441
|
-
},
|
|
441
|
+
}, za = {
|
|
442
442
|
Dashboard: "dashboard",
|
|
443
443
|
Notebook: "notebook"
|
|
444
|
-
},
|
|
444
|
+
}, Ha = {
|
|
445
445
|
Query: "query",
|
|
446
446
|
Text: "text"
|
|
447
|
-
},
|
|
447
|
+
}, _a = {
|
|
448
448
|
Viewport: "viewport"
|
|
449
|
-
},
|
|
449
|
+
}, Ga = {
|
|
450
450
|
Embedded: "embedded",
|
|
451
451
|
Materialized: "materialized"
|
|
452
|
-
},
|
|
452
|
+
}, Wa = {
|
|
453
453
|
Equal: "equal",
|
|
454
454
|
In: "in",
|
|
455
455
|
Like: "like",
|
|
456
456
|
GreaterThan: "greater_than",
|
|
457
457
|
LessThan: "less_than"
|
|
458
|
-
},
|
|
458
|
+
}, $a = {
|
|
459
459
|
Live: "live",
|
|
460
460
|
StaleOk: "stale_ok",
|
|
461
461
|
Fail: "fail"
|
|
462
|
-
},
|
|
462
|
+
}, Ka = {
|
|
463
463
|
Select: "select",
|
|
464
464
|
Multiselect: "multiselect"
|
|
465
|
-
},
|
|
465
|
+
}, Ya = {
|
|
466
466
|
Merge: "merge",
|
|
467
467
|
RangeReplace: "range_replace"
|
|
468
|
-
},
|
|
468
|
+
}, Ja = {
|
|
469
469
|
Debug: "debug",
|
|
470
470
|
Info: "info",
|
|
471
471
|
Warn: "warn",
|
|
472
472
|
Error: "error"
|
|
473
|
-
},
|
|
473
|
+
}, Xa = {
|
|
474
474
|
Persist: "persist",
|
|
475
475
|
Preaggregate: "preaggregate"
|
|
476
|
-
},
|
|
476
|
+
}, Za = {
|
|
477
477
|
Reused: "reused",
|
|
478
478
|
Recomputed: "recomputed"
|
|
479
|
-
},
|
|
479
|
+
}, et = {
|
|
480
480
|
Live: "live",
|
|
481
481
|
StaleOk: "stale_ok",
|
|
482
482
|
Fail: "fail"
|
|
483
|
-
},
|
|
483
|
+
}, at = {
|
|
484
484
|
Delta: "delta",
|
|
485
485
|
Full: "full",
|
|
486
486
|
None: "none"
|
|
487
|
-
},
|
|
487
|
+
}, tt = {
|
|
488
488
|
Pending: "PENDING",
|
|
489
489
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
490
490
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
491
491
|
Failed: "FAILED",
|
|
492
492
|
Cancelled: "CANCELLED"
|
|
493
|
-
},
|
|
493
|
+
}, nt = {
|
|
494
494
|
Markdown: "markdown",
|
|
495
495
|
Code: "code"
|
|
496
|
-
},
|
|
496
|
+
}, rt = {
|
|
497
497
|
Markdown: "markdown",
|
|
498
498
|
Query: "query",
|
|
499
499
|
Definition: "definition"
|
|
500
|
-
},
|
|
500
|
+
}, ot = {
|
|
501
501
|
Markdown: "markdown",
|
|
502
502
|
Code: "code"
|
|
503
|
-
},
|
|
503
|
+
}, st = {
|
|
504
504
|
Markdown: "markdown",
|
|
505
505
|
Query: "query",
|
|
506
506
|
Definition: "definition"
|
|
507
|
-
},
|
|
507
|
+
}, ct = {
|
|
508
508
|
Version: "version",
|
|
509
509
|
Package: "package"
|
|
510
|
-
},
|
|
510
|
+
}, lt = {
|
|
511
511
|
Declared: "declared",
|
|
512
512
|
All: "all"
|
|
513
|
-
},
|
|
513
|
+
}, it = {
|
|
514
514
|
Unbound: "unbound",
|
|
515
515
|
Bound: "bound",
|
|
516
516
|
LiveFallback: "live_fallback"
|
|
517
|
-
},
|
|
517
|
+
}, pt = {
|
|
518
518
|
Lexical: "lexical",
|
|
519
519
|
Indexing: "indexing",
|
|
520
520
|
Ready: "ready",
|
|
521
521
|
Error: "error",
|
|
522
522
|
Cooldown: "cooldown",
|
|
523
523
|
TooManyEntities: "too-many-entities"
|
|
524
|
-
},
|
|
524
|
+
}, dt = {
|
|
525
525
|
Cooldown: "cooldown",
|
|
526
526
|
TooManyEntities: "too-many-entities"
|
|
527
|
-
},
|
|
527
|
+
}, mt = {
|
|
528
528
|
Keyphrase: "keyphrase",
|
|
529
529
|
SourceSummary: "source_summary"
|
|
530
|
-
},
|
|
530
|
+
}, ht = {
|
|
531
531
|
Persist: "persist",
|
|
532
532
|
Preaggregate: "preaggregate"
|
|
533
|
-
},
|
|
533
|
+
}, ut = {
|
|
534
534
|
Error: "error",
|
|
535
535
|
Warn: "warn"
|
|
536
|
-
},
|
|
536
|
+
}, gt = {
|
|
537
537
|
Persist: "persist",
|
|
538
538
|
Preaggregate: "preaggregate"
|
|
539
|
-
},
|
|
539
|
+
}, bt = {
|
|
540
540
|
Disable: "disable",
|
|
541
541
|
NoVerify: "no-verify",
|
|
542
542
|
VerifyCa: "verify-ca",
|
|
543
543
|
VerifyFull: "verify-full"
|
|
544
|
-
},
|
|
544
|
+
}, vt = {
|
|
545
545
|
Interactive: "interactive",
|
|
546
546
|
Materialize: "materialize",
|
|
547
547
|
Index: "index",
|
|
548
548
|
Ops: "ops"
|
|
549
|
-
},
|
|
549
|
+
}, Pt = {
|
|
550
550
|
Query: "query",
|
|
551
551
|
ServerDefault: "server_default"
|
|
552
|
-
},
|
|
552
|
+
}, Vt = {
|
|
553
553
|
Storage: "storage",
|
|
554
554
|
LiveFallback: "live_fallback"
|
|
555
|
-
},
|
|
555
|
+
}, St = {
|
|
556
556
|
Malloynb: "malloynb",
|
|
557
557
|
Malloy: "malloy"
|
|
558
|
-
},
|
|
558
|
+
}, Ot = {
|
|
559
559
|
Snapshot: "SNAPSHOT",
|
|
560
560
|
Copy: "COPY"
|
|
561
|
-
},
|
|
561
|
+
}, kt = {
|
|
562
562
|
Storage: "storage",
|
|
563
563
|
Colocated: "colocated",
|
|
564
564
|
Preaggregate: "preaggregate"
|
|
565
|
-
},
|
|
565
|
+
}, At = {
|
|
566
566
|
FreeParameter: "free_parameter",
|
|
567
567
|
Given: "given",
|
|
568
568
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
@@ -577,35 +577,239 @@ const v = function(c, ...t) {
|
|
|
577
577
|
Authorize: "authorize",
|
|
578
578
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
579
579
|
PublicSurfaceUnknown: "public_surface_unknown"
|
|
580
|
-
},
|
|
580
|
+
}, yt = {
|
|
581
581
|
Grid: "grid",
|
|
582
582
|
Linear: "linear"
|
|
583
|
-
},
|
|
583
|
+
}, Ct = {
|
|
584
584
|
Malloynb: "malloynb",
|
|
585
585
|
Malloy: "malloy"
|
|
586
|
-
},
|
|
586
|
+
}, It = {
|
|
587
587
|
Grid: "grid",
|
|
588
588
|
Linear: "linear"
|
|
589
|
-
},
|
|
589
|
+
}, xt = {
|
|
590
590
|
Query: "query",
|
|
591
591
|
Text: "text"
|
|
592
|
-
},
|
|
592
|
+
}, Rt = {
|
|
593
593
|
Publish: "publish",
|
|
594
594
|
OnDemand: "on_demand",
|
|
595
595
|
Scheduler: "scheduler"
|
|
596
|
-
},
|
|
596
|
+
}, Nt = {
|
|
597
597
|
Config: "config",
|
|
598
598
|
CredentialChain: "credential_chain"
|
|
599
|
-
},
|
|
599
|
+
}, Ut = {
|
|
600
600
|
Initializing: "initializing",
|
|
601
601
|
Serving: "serving",
|
|
602
602
|
Draining: "draining",
|
|
603
603
|
Throttled: "throttled"
|
|
604
|
-
},
|
|
604
|
+
}, Tt = {
|
|
605
|
+
Bundled: "bundled",
|
|
606
|
+
Package: "package"
|
|
607
|
+
}, wt = {
|
|
608
|
+
Bundled: "bundled",
|
|
609
|
+
Package: "package"
|
|
610
|
+
}, Et = {
|
|
605
611
|
Light: "light",
|
|
606
612
|
Dark: "dark",
|
|
607
613
|
Auto: "auto"
|
|
608
|
-
},
|
|
614
|
+
}, Me = function(c) {
|
|
615
|
+
return {
|
|
616
|
+
/**
|
|
617
|
+
* 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.
|
|
618
|
+
* @summary Get one agent, resolved
|
|
619
|
+
* @param {string} environmentName Name of the environment
|
|
620
|
+
* @param {string} packageName Name of the package
|
|
621
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
622
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
623
|
+
* @param {*} [options] Override http request option.
|
|
624
|
+
* @throws {RequiredError}
|
|
625
|
+
*/
|
|
626
|
+
getAgent: async (n, e, t, a, r = {}) => {
|
|
627
|
+
m("getAgent", "environmentName", n), m("getAgent", "packageName", e), m("getAgent", "agentName", t);
|
|
628
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
629
|
+
let l;
|
|
630
|
+
c && (l = c.baseOptions);
|
|
631
|
+
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
632
|
+
a !== void 0 && (d.skills = a), p.Accept = "application/json", P(s, d);
|
|
633
|
+
let h = l && l.headers ? l.headers : {};
|
|
634
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
635
|
+
url: V(s),
|
|
636
|
+
options: i
|
|
637
|
+
};
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
* 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.
|
|
641
|
+
* @summary Get one of an agent\'s skill files
|
|
642
|
+
* @param {string} environmentName Name of the environment
|
|
643
|
+
* @param {string} packageName Name of the package
|
|
644
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
645
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
getAgentSkillFile: async (n, e, t, a, r = {}) => {
|
|
650
|
+
m("getAgentSkillFile", "environmentName", n), m("getAgentSkillFile", "packageName", e), m("getAgentSkillFile", "agentName", t), m("getAgentSkillFile", "relativeFilepath", a);
|
|
651
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{agentName}", encodeURIComponent(String(t))).replace("{relativeFilepath}", encodeURIComponent(String(a))), s = new URL(o, v);
|
|
652
|
+
let l;
|
|
653
|
+
c && (l = c.baseOptions);
|
|
654
|
+
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
655
|
+
p.Accept = "application/json", P(s, d);
|
|
656
|
+
let h = l && l.headers ? l.headers : {};
|
|
657
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
658
|
+
url: V(s),
|
|
659
|
+
options: i
|
|
660
|
+
};
|
|
661
|
+
},
|
|
662
|
+
/**
|
|
663
|
+
* 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.
|
|
664
|
+
* @summary List the agents a package declares
|
|
665
|
+
* @param {string} environmentName Name of the environment
|
|
666
|
+
* @param {string} packageName Name of the package
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
listAgents: async (n, e, t = {}) => {
|
|
671
|
+
m("listAgents", "environmentName", n), m("listAgents", "packageName", e);
|
|
672
|
+
const a = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
673
|
+
let o;
|
|
674
|
+
c && (o = c.baseOptions);
|
|
675
|
+
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
676
|
+
l.Accept = "application/json", P(r, i);
|
|
677
|
+
let p = o && o.headers ? o.headers : {};
|
|
678
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
679
|
+
url: V(r),
|
|
680
|
+
options: s
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
}, Q = function(c) {
|
|
685
|
+
const n = Me(c);
|
|
686
|
+
return {
|
|
687
|
+
/**
|
|
688
|
+
* 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.
|
|
689
|
+
* @summary Get one agent, resolved
|
|
690
|
+
* @param {string} environmentName Name of the environment
|
|
691
|
+
* @param {string} packageName Name of the package
|
|
692
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
693
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
async getAgent(e, t, a, r, o) {
|
|
698
|
+
const s = await n.getAgent(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["AgentsApi.getAgent"]?.[l]?.url;
|
|
699
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
* 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.
|
|
703
|
+
* @summary Get one of an agent\'s skill files
|
|
704
|
+
* @param {string} environmentName Name of the environment
|
|
705
|
+
* @param {string} packageName Name of the package
|
|
706
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
707
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
async getAgentSkillFile(e, t, a, r, o) {
|
|
712
|
+
const s = await n.getAgentSkillFile(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["AgentsApi.getAgentSkillFile"]?.[l]?.url;
|
|
713
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
714
|
+
},
|
|
715
|
+
/**
|
|
716
|
+
* 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.
|
|
717
|
+
* @summary List the agents a package declares
|
|
718
|
+
* @param {string} environmentName Name of the environment
|
|
719
|
+
* @param {string} packageName Name of the package
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
*/
|
|
723
|
+
async listAgents(e, t, a) {
|
|
724
|
+
const r = await n.listAgents(e, t, a), o = c?.serverIndex ?? 0, s = b["AgentsApi.listAgents"]?.[o]?.url;
|
|
725
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
}, ft = function(c, n, e) {
|
|
729
|
+
const t = Q(c);
|
|
730
|
+
return {
|
|
731
|
+
/**
|
|
732
|
+
* 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.
|
|
733
|
+
* @summary Get one agent, resolved
|
|
734
|
+
* @param {string} environmentName Name of the environment
|
|
735
|
+
* @param {string} packageName Name of the package
|
|
736
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
737
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
getAgent(a, r, o, s, l) {
|
|
742
|
+
return t.getAgent(a, r, o, s, l).then((i) => i(e, n));
|
|
743
|
+
},
|
|
744
|
+
/**
|
|
745
|
+
* 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.
|
|
746
|
+
* @summary Get one of an agent\'s skill files
|
|
747
|
+
* @param {string} environmentName Name of the environment
|
|
748
|
+
* @param {string} packageName Name of the package
|
|
749
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
750
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
getAgentSkillFile(a, r, o, s, l) {
|
|
755
|
+
return t.getAgentSkillFile(a, r, o, s, l).then((i) => i(e, n));
|
|
756
|
+
},
|
|
757
|
+
/**
|
|
758
|
+
* 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.
|
|
759
|
+
* @summary List the agents a package declares
|
|
760
|
+
* @param {string} environmentName Name of the environment
|
|
761
|
+
* @param {string} packageName Name of the package
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
listAgents(a, r, o) {
|
|
766
|
+
return t.listAgents(a, r, o).then((s) => s(e, n));
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
class Mt extends x {
|
|
771
|
+
/**
|
|
772
|
+
* Returns one agent with its instructions, its own skill files and each schedule\'s task text, plus `source`, which pins the package load and the agent\'s own content so a runner can prove which bytes ran. Publisher serves the definition and runs nothing: the caller\'s own harness executes it, and schedules are never fired by the server. 404 when no agent of that name is served.
|
|
773
|
+
* @summary Get one agent, resolved
|
|
774
|
+
* @param {string} environmentName Name of the environment
|
|
775
|
+
* @param {string} packageName Name of the package
|
|
776
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
777
|
+
* @param {GetAgentSkillsEnum} [skills] `full` (the default) returns every skill file with its text. `summary` returns each file\'s `relative_filepath` and `bytes`, plus `name` and `description` for a `SKILL.md`, and no `file_contents`; fetch a file with `GET .../agents/{agentName}/skills/{path}`. The `source` pin is identical in both. Any other value, including an empty one, is a 400.
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
getAgent(n, e, t, a, r) {
|
|
782
|
+
return Q(this.configuration).getAgent(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* 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.
|
|
786
|
+
* @summary Get one of an agent\'s skill files
|
|
787
|
+
* @param {string} environmentName Name of the environment
|
|
788
|
+
* @param {string} packageName Name of the package
|
|
789
|
+
* @param {string} agentName Agent name as returned by the listing. Names are 1-64 lowercase letters, digits and single hyphens; any other value is a 404, not a 400.
|
|
790
|
+
* @param {string} relativeFilepath A `relative_filepath` from the agent\'s skill summary. Slashes may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`.
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
getAgentSkillFile(n, e, t, a, r) {
|
|
795
|
+
return Q(this.configuration).getAgentSkillFile(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* 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.
|
|
799
|
+
* @summary List the agents a package declares
|
|
800
|
+
* @param {string} environmentName Name of the environment
|
|
801
|
+
* @param {string} packageName Name of the package
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
*/
|
|
805
|
+
listAgents(n, e, t) {
|
|
806
|
+
return Q(this.configuration).listAgents(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
const Ft = {
|
|
810
|
+
Full: "full",
|
|
811
|
+
Summary: "summary"
|
|
812
|
+
}, Fe = function(c) {
|
|
609
813
|
return {
|
|
610
814
|
/**
|
|
611
815
|
* Creates a new database connection in the specified environment.
|
|
@@ -616,15 +820,15 @@ const v = function(c, ...t) {
|
|
|
616
820
|
* @param {*} [options] Override http request option.
|
|
617
821
|
* @throws {RequiredError}
|
|
618
822
|
*/
|
|
619
|
-
createConnection: async (
|
|
620
|
-
|
|
621
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
823
|
+
createConnection: async (n, e, t, a = {}) => {
|
|
824
|
+
m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", t);
|
|
825
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
622
826
|
let s;
|
|
623
827
|
c && (s = c.baseOptions);
|
|
624
828
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
625
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
829
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
|
|
626
830
|
let d = s && s.headers ? s.headers : {};
|
|
627
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
831
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
628
832
|
url: V(o),
|
|
629
833
|
options: l
|
|
630
834
|
};
|
|
@@ -637,15 +841,15 @@ const v = function(c, ...t) {
|
|
|
637
841
|
* @param {*} [options] Override http request option.
|
|
638
842
|
* @throws {RequiredError}
|
|
639
843
|
*/
|
|
640
|
-
deleteConnection: async (
|
|
641
|
-
|
|
642
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
844
|
+
deleteConnection: async (n, e, t = {}) => {
|
|
845
|
+
m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
|
|
846
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
643
847
|
let o;
|
|
644
848
|
c && (o = c.baseOptions);
|
|
645
|
-
const s = { method: "DELETE", ...o, ...
|
|
646
|
-
l.Accept = "application/json",
|
|
849
|
+
const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
|
|
850
|
+
l.Accept = "application/json", P(r, i);
|
|
647
851
|
let p = o && o.headers ? o.headers : {};
|
|
648
|
-
return s.headers = { ...l, ...p, ...
|
|
852
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
649
853
|
url: V(r),
|
|
650
854
|
options: s
|
|
651
855
|
};
|
|
@@ -658,15 +862,15 @@ const v = function(c, ...t) {
|
|
|
658
862
|
* @param {*} [options] Override http request option.
|
|
659
863
|
* @throws {RequiredError}
|
|
660
864
|
*/
|
|
661
|
-
getConnection: async (
|
|
662
|
-
|
|
663
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
865
|
+
getConnection: async (n, e, t = {}) => {
|
|
866
|
+
m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
|
|
867
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
664
868
|
let o;
|
|
665
869
|
c && (o = c.baseOptions);
|
|
666
|
-
const s = { method: "GET", ...o, ...
|
|
667
|
-
l.Accept = "application/json",
|
|
870
|
+
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
871
|
+
l.Accept = "application/json", P(r, i);
|
|
668
872
|
let p = o && o.headers ? o.headers : {};
|
|
669
|
-
return s.headers = { ...l, ...p, ...
|
|
873
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
670
874
|
url: V(r),
|
|
671
875
|
options: s
|
|
672
876
|
};
|
|
@@ -681,15 +885,15 @@ const v = function(c, ...t) {
|
|
|
681
885
|
* @param {*} [options] Override http request option.
|
|
682
886
|
* @throws {RequiredError}
|
|
683
887
|
*/
|
|
684
|
-
getTable: async (
|
|
685
|
-
|
|
686
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(
|
|
888
|
+
getTable: async (n, e, t, a, r = {}) => {
|
|
889
|
+
m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", t), m("getTable", "tablePath", a);
|
|
890
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, v);
|
|
687
891
|
let l;
|
|
688
892
|
c && (l = c.baseOptions);
|
|
689
893
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
690
|
-
p.Accept = "application/json",
|
|
691
|
-
let
|
|
692
|
-
return i.headers = { ...p, ...
|
|
894
|
+
p.Accept = "application/json", P(s, d);
|
|
895
|
+
let h = l && l.headers ? l.headers : {};
|
|
896
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
693
897
|
url: V(s),
|
|
694
898
|
options: i
|
|
695
899
|
};
|
|
@@ -705,15 +909,15 @@ const v = function(c, ...t) {
|
|
|
705
909
|
* @param {*} [options] Override http request option.
|
|
706
910
|
* @throws {RequiredError}
|
|
707
911
|
*/
|
|
708
|
-
getTableInPackage: async (
|
|
709
|
-
|
|
710
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(
|
|
912
|
+
getTableInPackage: async (n, e, t, a, r, o = {}) => {
|
|
913
|
+
m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", t), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", r);
|
|
914
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), l = new URL(s, v);
|
|
711
915
|
let i;
|
|
712
916
|
c && (i = c.baseOptions);
|
|
713
|
-
const p = { method: "GET", ...i, ...o }, d = {},
|
|
714
|
-
d.Accept = "application/json",
|
|
715
|
-
let
|
|
716
|
-
return p.headers = { ...d, ...
|
|
917
|
+
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
918
|
+
d.Accept = "application/json", P(l, h);
|
|
919
|
+
let O = i && i.headers ? i.headers : {};
|
|
920
|
+
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
717
921
|
url: V(l),
|
|
718
922
|
options: p
|
|
719
923
|
};
|
|
@@ -725,13 +929,13 @@ const v = function(c, ...t) {
|
|
|
725
929
|
* @param {*} [options] Override http request option.
|
|
726
930
|
* @throws {RequiredError}
|
|
727
931
|
*/
|
|
728
|
-
listConnections: async (
|
|
729
|
-
|
|
730
|
-
const
|
|
932
|
+
listConnections: async (n, e = {}) => {
|
|
933
|
+
m("listConnections", "environmentName", n);
|
|
934
|
+
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, v);
|
|
731
935
|
let r;
|
|
732
936
|
c && (r = c.baseOptions);
|
|
733
937
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
734
|
-
s.Accept = "application/json",
|
|
938
|
+
s.Accept = "application/json", P(a, l);
|
|
735
939
|
let i = r && r.headers ? r.headers : {};
|
|
736
940
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
737
941
|
url: V(a),
|
|
@@ -746,15 +950,15 @@ const v = function(c, ...t) {
|
|
|
746
950
|
* @param {*} [options] Override http request option.
|
|
747
951
|
* @throws {RequiredError}
|
|
748
952
|
*/
|
|
749
|
-
listSchemas: async (
|
|
750
|
-
|
|
751
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(
|
|
953
|
+
listSchemas: async (n, e, t = {}) => {
|
|
954
|
+
m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
|
|
955
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
752
956
|
let o;
|
|
753
957
|
c && (o = c.baseOptions);
|
|
754
|
-
const s = { method: "GET", ...o, ...
|
|
755
|
-
l.Accept = "application/json",
|
|
958
|
+
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
959
|
+
l.Accept = "application/json", P(r, i);
|
|
756
960
|
let p = o && o.headers ? o.headers : {};
|
|
757
|
-
return s.headers = { ...l, ...p, ...
|
|
961
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
758
962
|
url: V(r),
|
|
759
963
|
options: s
|
|
760
964
|
};
|
|
@@ -768,13 +972,13 @@ const v = function(c, ...t) {
|
|
|
768
972
|
* @param {*} [options] Override http request option.
|
|
769
973
|
* @throws {RequiredError}
|
|
770
974
|
*/
|
|
771
|
-
listSchemasInPackage: async (
|
|
772
|
-
|
|
773
|
-
const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(
|
|
975
|
+
listSchemasInPackage: async (n, e, t, a = {}) => {
|
|
976
|
+
m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", t);
|
|
977
|
+
const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r, v);
|
|
774
978
|
let s;
|
|
775
979
|
c && (s = c.baseOptions);
|
|
776
980
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
777
|
-
i.Accept = "application/json",
|
|
981
|
+
i.Accept = "application/json", P(o, p);
|
|
778
982
|
let d = s && s.headers ? s.headers : {};
|
|
779
983
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
780
984
|
url: V(o),
|
|
@@ -791,15 +995,15 @@ const v = function(c, ...t) {
|
|
|
791
995
|
* @param {*} [options] Override http request option.
|
|
792
996
|
* @throws {RequiredError}
|
|
793
997
|
*/
|
|
794
|
-
listTables: async (
|
|
795
|
-
|
|
796
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(
|
|
998
|
+
listTables: async (n, e, t, a, r = {}) => {
|
|
999
|
+
m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", t);
|
|
1000
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
797
1001
|
let l;
|
|
798
1002
|
c && (l = c.baseOptions);
|
|
799
1003
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
800
|
-
a && (d.tableNames = a), p.Accept = "application/json",
|
|
801
|
-
let
|
|
802
|
-
return i.headers = { ...p, ...
|
|
1004
|
+
a && (d.tableNames = a), p.Accept = "application/json", P(s, d);
|
|
1005
|
+
let h = l && l.headers ? l.headers : {};
|
|
1006
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
803
1007
|
url: V(s),
|
|
804
1008
|
options: i
|
|
805
1009
|
};
|
|
@@ -815,15 +1019,15 @@ const v = function(c, ...t) {
|
|
|
815
1019
|
* @param {*} [options] Override http request option.
|
|
816
1020
|
* @throws {RequiredError}
|
|
817
1021
|
*/
|
|
818
|
-
listTablesInPackage: async (
|
|
819
|
-
|
|
820
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(
|
|
1022
|
+
listTablesInPackage: async (n, e, t, a, r, o = {}) => {
|
|
1023
|
+
m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", t), m("listTablesInPackage", "schemaName", a);
|
|
1024
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), l = new URL(s, v);
|
|
821
1025
|
let i;
|
|
822
1026
|
c && (i = c.baseOptions);
|
|
823
|
-
const p = { method: "GET", ...i, ...o }, d = {},
|
|
824
|
-
r && (
|
|
825
|
-
let
|
|
826
|
-
return p.headers = { ...d, ...
|
|
1027
|
+
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
1028
|
+
r && (h.tableNames = r), d.Accept = "application/json", P(l, h);
|
|
1029
|
+
let O = i && i.headers ? i.headers : {};
|
|
1030
|
+
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
827
1031
|
url: V(l),
|
|
828
1032
|
options: p
|
|
829
1033
|
};
|
|
@@ -837,15 +1041,15 @@ const v = function(c, ...t) {
|
|
|
837
1041
|
* @param {*} [options] Override http request option.
|
|
838
1042
|
* @throws {RequiredError}
|
|
839
1043
|
*/
|
|
840
|
-
postQuerydata: async (
|
|
841
|
-
|
|
842
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(
|
|
1044
|
+
postQuerydata: async (n, e, t, a = {}) => {
|
|
1045
|
+
m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", t);
|
|
1046
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
843
1047
|
let s;
|
|
844
1048
|
c && (s = c.baseOptions);
|
|
845
1049
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
846
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1050
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
|
|
847
1051
|
let d = s && s.headers ? s.headers : {};
|
|
848
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1052
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
849
1053
|
url: V(o),
|
|
850
1054
|
options: l
|
|
851
1055
|
};
|
|
@@ -860,15 +1064,15 @@ const v = function(c, ...t) {
|
|
|
860
1064
|
* @param {*} [options] Override http request option.
|
|
861
1065
|
* @throws {RequiredError}
|
|
862
1066
|
*/
|
|
863
|
-
postQuerydataInPackage: async (
|
|
864
|
-
|
|
865
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(
|
|
1067
|
+
postQuerydataInPackage: async (n, e, t, a, r = {}) => {
|
|
1068
|
+
m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", t), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
1069
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
866
1070
|
let l;
|
|
867
1071
|
c && (l = c.baseOptions);
|
|
868
1072
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
869
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
870
|
-
let
|
|
871
|
-
return i.headers = { ...p, ...
|
|
1073
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
|
|
1074
|
+
let h = l && l.headers ? l.headers : {};
|
|
1075
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
872
1076
|
url: V(s),
|
|
873
1077
|
options: i
|
|
874
1078
|
};
|
|
@@ -882,15 +1086,15 @@ const v = function(c, ...t) {
|
|
|
882
1086
|
* @param {*} [options] Override http request option.
|
|
883
1087
|
* @throws {RequiredError}
|
|
884
1088
|
*/
|
|
885
|
-
postSqlsource: async (
|
|
886
|
-
|
|
887
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(
|
|
1089
|
+
postSqlsource: async (n, e, t, a = {}) => {
|
|
1090
|
+
m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", t);
|
|
1091
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
888
1092
|
let s;
|
|
889
1093
|
c && (s = c.baseOptions);
|
|
890
1094
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
891
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1095
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
|
|
892
1096
|
let d = s && s.headers ? s.headers : {};
|
|
893
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1097
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
894
1098
|
url: V(o),
|
|
895
1099
|
options: l
|
|
896
1100
|
};
|
|
@@ -905,15 +1109,15 @@ const v = function(c, ...t) {
|
|
|
905
1109
|
* @param {*} [options] Override http request option.
|
|
906
1110
|
* @throws {RequiredError}
|
|
907
1111
|
*/
|
|
908
|
-
postSqlsourceInPackage: async (
|
|
909
|
-
|
|
910
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(
|
|
1112
|
+
postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
|
|
1113
|
+
m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", t), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
1114
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
911
1115
|
let l;
|
|
912
1116
|
c && (l = c.baseOptions);
|
|
913
1117
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
914
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
915
|
-
let
|
|
916
|
-
return i.headers = { ...p, ...
|
|
1118
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
|
|
1119
|
+
let h = l && l.headers ? l.headers : {};
|
|
1120
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
917
1121
|
url: V(s),
|
|
918
1122
|
options: i
|
|
919
1123
|
};
|
|
@@ -927,15 +1131,15 @@ const v = function(c, ...t) {
|
|
|
927
1131
|
* @param {*} [options] Override http request option.
|
|
928
1132
|
* @throws {RequiredError}
|
|
929
1133
|
*/
|
|
930
|
-
postTemporarytable: async (
|
|
931
|
-
|
|
932
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(
|
|
1134
|
+
postTemporarytable: async (n, e, t, a = {}) => {
|
|
1135
|
+
m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", t);
|
|
1136
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
933
1137
|
let s;
|
|
934
1138
|
c && (s = c.baseOptions);
|
|
935
1139
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
936
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1140
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
|
|
937
1141
|
let d = s && s.headers ? s.headers : {};
|
|
938
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1142
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
939
1143
|
url: V(o),
|
|
940
1144
|
options: l
|
|
941
1145
|
};
|
|
@@ -950,15 +1154,15 @@ const v = function(c, ...t) {
|
|
|
950
1154
|
* @param {*} [options] Override http request option.
|
|
951
1155
|
* @throws {RequiredError}
|
|
952
1156
|
*/
|
|
953
|
-
postTemporarytableInPackage: async (
|
|
954
|
-
|
|
955
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(
|
|
1157
|
+
postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
|
|
1158
|
+
m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", t), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
1159
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
956
1160
|
let l;
|
|
957
1161
|
c && (l = c.baseOptions);
|
|
958
1162
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
959
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
960
|
-
let
|
|
961
|
-
return i.headers = { ...p, ...
|
|
1163
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
|
|
1164
|
+
let h = l && l.headers ? l.headers : {};
|
|
1165
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
962
1166
|
url: V(s),
|
|
963
1167
|
options: i
|
|
964
1168
|
};
|
|
@@ -972,22 +1176,22 @@ const v = function(c, ...t) {
|
|
|
972
1176
|
* @param {*} [options] Override http request option.
|
|
973
1177
|
* @throws {RequiredError}
|
|
974
1178
|
*/
|
|
975
|
-
updateConnection: async (
|
|
976
|
-
|
|
977
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
1179
|
+
updateConnection: async (n, e, t, a = {}) => {
|
|
1180
|
+
m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", t);
|
|
1181
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
978
1182
|
let s;
|
|
979
1183
|
c && (s = c.baseOptions);
|
|
980
1184
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
981
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
1185
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
|
|
982
1186
|
let d = s && s.headers ? s.headers : {};
|
|
983
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
1187
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
984
1188
|
url: V(o),
|
|
985
1189
|
options: l
|
|
986
1190
|
};
|
|
987
1191
|
}
|
|
988
1192
|
};
|
|
989
|
-
},
|
|
990
|
-
const
|
|
1193
|
+
}, y = function(c) {
|
|
1194
|
+
const n = Fe(c);
|
|
991
1195
|
return {
|
|
992
1196
|
/**
|
|
993
1197
|
* Creates a new database connection in the specified environment.
|
|
@@ -998,9 +1202,9 @@ const v = function(c, ...t) {
|
|
|
998
1202
|
* @param {*} [options] Override http request option.
|
|
999
1203
|
* @throws {RequiredError}
|
|
1000
1204
|
*/
|
|
1001
|
-
async createConnection(e,
|
|
1002
|
-
const o = await
|
|
1003
|
-
return (i, p) =>
|
|
1205
|
+
async createConnection(e, t, a, r) {
|
|
1206
|
+
const o = await n.createConnection(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
1207
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1004
1208
|
},
|
|
1005
1209
|
/**
|
|
1006
1210
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1010,9 +1214,9 @@ const v = function(c, ...t) {
|
|
|
1010
1214
|
* @param {*} [options] Override http request option.
|
|
1011
1215
|
* @throws {RequiredError}
|
|
1012
1216
|
*/
|
|
1013
|
-
async deleteConnection(e,
|
|
1014
|
-
const r = await
|
|
1015
|
-
return (l, i) =>
|
|
1217
|
+
async deleteConnection(e, t, a) {
|
|
1218
|
+
const r = await n.deleteConnection(e, t, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
1219
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
1016
1220
|
},
|
|
1017
1221
|
/**
|
|
1018
1222
|
* 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.
|
|
@@ -1022,9 +1226,9 @@ const v = function(c, ...t) {
|
|
|
1022
1226
|
* @param {*} [options] Override http request option.
|
|
1023
1227
|
* @throws {RequiredError}
|
|
1024
1228
|
*/
|
|
1025
|
-
async getConnection(e,
|
|
1026
|
-
const r = await
|
|
1027
|
-
return (l, i) =>
|
|
1229
|
+
async getConnection(e, t, a) {
|
|
1230
|
+
const r = await n.getConnection(e, t, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
1231
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
1028
1232
|
},
|
|
1029
1233
|
/**
|
|
1030
1234
|
* 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.
|
|
@@ -1036,9 +1240,9 @@ const v = function(c, ...t) {
|
|
|
1036
1240
|
* @param {*} [options] Override http request option.
|
|
1037
1241
|
* @throws {RequiredError}
|
|
1038
1242
|
*/
|
|
1039
|
-
async getTable(e,
|
|
1040
|
-
const s = await
|
|
1041
|
-
return (p, d) =>
|
|
1243
|
+
async getTable(e, t, a, r, o) {
|
|
1244
|
+
const s = await n.getTable(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.getTable"]?.[l]?.url;
|
|
1245
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
1042
1246
|
},
|
|
1043
1247
|
/**
|
|
1044
1248
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1051,9 +1255,9 @@ const v = function(c, ...t) {
|
|
|
1051
1255
|
* @param {*} [options] Override http request option.
|
|
1052
1256
|
* @throws {RequiredError}
|
|
1053
1257
|
*/
|
|
1054
|
-
async getTableInPackage(e,
|
|
1055
|
-
const l = await
|
|
1056
|
-
return (d,
|
|
1258
|
+
async getTableInPackage(e, t, a, r, o, s) {
|
|
1259
|
+
const l = await n.getTableInPackage(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
1260
|
+
return (d, h) => S(l, u, g, c)(d, p || h);
|
|
1057
1261
|
},
|
|
1058
1262
|
/**
|
|
1059
1263
|
* 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.
|
|
@@ -1062,9 +1266,9 @@ const v = function(c, ...t) {
|
|
|
1062
1266
|
* @param {*} [options] Override http request option.
|
|
1063
1267
|
* @throws {RequiredError}
|
|
1064
1268
|
*/
|
|
1065
|
-
async listConnections(e,
|
|
1066
|
-
const a = await
|
|
1067
|
-
return (s, l) =>
|
|
1269
|
+
async listConnections(e, t) {
|
|
1270
|
+
const a = await n.listConnections(e, t), r = c?.serverIndex ?? 0, o = b["ConnectionsApi.listConnections"]?.[r]?.url;
|
|
1271
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
1068
1272
|
},
|
|
1069
1273
|
/**
|
|
1070
1274
|
* 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.
|
|
@@ -1074,9 +1278,9 @@ const v = function(c, ...t) {
|
|
|
1074
1278
|
* @param {*} [options] Override http request option.
|
|
1075
1279
|
* @throws {RequiredError}
|
|
1076
1280
|
*/
|
|
1077
|
-
async listSchemas(e,
|
|
1078
|
-
const r = await
|
|
1079
|
-
return (l, i) =>
|
|
1281
|
+
async listSchemas(e, t, a) {
|
|
1282
|
+
const r = await n.listSchemas(e, t, a), o = c?.serverIndex ?? 0, s = b["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
1283
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
1080
1284
|
},
|
|
1081
1285
|
/**
|
|
1082
1286
|
* 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).
|
|
@@ -1087,9 +1291,9 @@ const v = function(c, ...t) {
|
|
|
1087
1291
|
* @param {*} [options] Override http request option.
|
|
1088
1292
|
* @throws {RequiredError}
|
|
1089
1293
|
*/
|
|
1090
|
-
async listSchemasInPackage(e,
|
|
1091
|
-
const o = await
|
|
1092
|
-
return (i, p) =>
|
|
1294
|
+
async listSchemasInPackage(e, t, a, r) {
|
|
1295
|
+
const o = await n.listSchemasInPackage(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
1296
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1093
1297
|
},
|
|
1094
1298
|
/**
|
|
1095
1299
|
* 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.
|
|
@@ -1101,9 +1305,9 @@ const v = function(c, ...t) {
|
|
|
1101
1305
|
* @param {*} [options] Override http request option.
|
|
1102
1306
|
* @throws {RequiredError}
|
|
1103
1307
|
*/
|
|
1104
|
-
async listTables(e,
|
|
1105
|
-
const s = await
|
|
1106
|
-
return (p, d) =>
|
|
1308
|
+
async listTables(e, t, a, r, o) {
|
|
1309
|
+
const s = await n.listTables(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.listTables"]?.[l]?.url;
|
|
1310
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
1107
1311
|
},
|
|
1108
1312
|
/**
|
|
1109
1313
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1116,9 +1320,9 @@ const v = function(c, ...t) {
|
|
|
1116
1320
|
* @param {*} [options] Override http request option.
|
|
1117
1321
|
* @throws {RequiredError}
|
|
1118
1322
|
*/
|
|
1119
|
-
async listTablesInPackage(e,
|
|
1120
|
-
const l = await
|
|
1121
|
-
return (d,
|
|
1323
|
+
async listTablesInPackage(e, t, a, r, o, s) {
|
|
1324
|
+
const l = await n.listTablesInPackage(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
1325
|
+
return (d, h) => S(l, u, g, c)(d, p || h);
|
|
1122
1326
|
},
|
|
1123
1327
|
/**
|
|
1124
1328
|
* 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.
|
|
@@ -1129,9 +1333,9 @@ const v = function(c, ...t) {
|
|
|
1129
1333
|
* @param {*} [options] Override http request option.
|
|
1130
1334
|
* @throws {RequiredError}
|
|
1131
1335
|
*/
|
|
1132
|
-
async postQuerydata(e,
|
|
1133
|
-
const o = await
|
|
1134
|
-
return (i, p) =>
|
|
1336
|
+
async postQuerydata(e, t, a, r) {
|
|
1337
|
+
const o = await n.postQuerydata(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
1338
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1135
1339
|
},
|
|
1136
1340
|
/**
|
|
1137
1341
|
* 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.
|
|
@@ -1143,9 +1347,9 @@ const v = function(c, ...t) {
|
|
|
1143
1347
|
* @param {*} [options] Override http request option.
|
|
1144
1348
|
* @throws {RequiredError}
|
|
1145
1349
|
*/
|
|
1146
|
-
async postQuerydataInPackage(e,
|
|
1147
|
-
const s = await
|
|
1148
|
-
return (p, d) =>
|
|
1350
|
+
async postQuerydataInPackage(e, t, a, r, o) {
|
|
1351
|
+
const s = await n.postQuerydataInPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postQuerydataInPackage"]?.[l]?.url;
|
|
1352
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
1149
1353
|
},
|
|
1150
1354
|
/**
|
|
1151
1355
|
* 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.
|
|
@@ -1156,9 +1360,9 @@ const v = function(c, ...t) {
|
|
|
1156
1360
|
* @param {*} [options] Override http request option.
|
|
1157
1361
|
* @throws {RequiredError}
|
|
1158
1362
|
*/
|
|
1159
|
-
async postSqlsource(e,
|
|
1160
|
-
const o = await
|
|
1161
|
-
return (i, p) =>
|
|
1363
|
+
async postSqlsource(e, t, a, r) {
|
|
1364
|
+
const o = await n.postSqlsource(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
1365
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1162
1366
|
},
|
|
1163
1367
|
/**
|
|
1164
1368
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1170,9 +1374,9 @@ const v = function(c, ...t) {
|
|
|
1170
1374
|
* @param {*} [options] Override http request option.
|
|
1171
1375
|
* @throws {RequiredError}
|
|
1172
1376
|
*/
|
|
1173
|
-
async postSqlsourceInPackage(e,
|
|
1174
|
-
const s = await
|
|
1175
|
-
return (p, d) =>
|
|
1377
|
+
async postSqlsourceInPackage(e, t, a, r, o) {
|
|
1378
|
+
const s = await n.postSqlsourceInPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postSqlsourceInPackage"]?.[l]?.url;
|
|
1379
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
1176
1380
|
},
|
|
1177
1381
|
/**
|
|
1178
1382
|
* 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.
|
|
@@ -1183,9 +1387,9 @@ const v = function(c, ...t) {
|
|
|
1183
1387
|
* @param {*} [options] Override http request option.
|
|
1184
1388
|
* @throws {RequiredError}
|
|
1185
1389
|
*/
|
|
1186
|
-
async postTemporarytable(e,
|
|
1187
|
-
const o = await
|
|
1188
|
-
return (i, p) =>
|
|
1390
|
+
async postTemporarytable(e, t, a, r) {
|
|
1391
|
+
const o = await n.postTemporarytable(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
1392
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1189
1393
|
},
|
|
1190
1394
|
/**
|
|
1191
1395
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1197,9 +1401,9 @@ const v = function(c, ...t) {
|
|
|
1197
1401
|
* @param {*} [options] Override http request option.
|
|
1198
1402
|
* @throws {RequiredError}
|
|
1199
1403
|
*/
|
|
1200
|
-
async postTemporarytableInPackage(e,
|
|
1201
|
-
const s = await
|
|
1202
|
-
return (p, d) =>
|
|
1404
|
+
async postTemporarytableInPackage(e, t, a, r, o) {
|
|
1405
|
+
const s = await n.postTemporarytableInPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ConnectionsApi.postTemporarytableInPackage"]?.[l]?.url;
|
|
1406
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
1203
1407
|
},
|
|
1204
1408
|
/**
|
|
1205
1409
|
* Updates the configuration of an existing database connection.
|
|
@@ -1210,13 +1414,13 @@ const v = function(c, ...t) {
|
|
|
1210
1414
|
* @param {*} [options] Override http request option.
|
|
1211
1415
|
* @throws {RequiredError}
|
|
1212
1416
|
*/
|
|
1213
|
-
async updateConnection(e,
|
|
1214
|
-
const o = await
|
|
1215
|
-
return (i, p) =>
|
|
1417
|
+
async updateConnection(e, t, a, r) {
|
|
1418
|
+
const o = await n.updateConnection(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
1419
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1216
1420
|
}
|
|
1217
1421
|
};
|
|
1218
|
-
},
|
|
1219
|
-
const
|
|
1422
|
+
}, Bt = function(c, n, e) {
|
|
1423
|
+
const t = y(c);
|
|
1220
1424
|
return {
|
|
1221
1425
|
/**
|
|
1222
1426
|
* Creates a new database connection in the specified environment.
|
|
@@ -1228,7 +1432,7 @@ const v = function(c, ...t) {
|
|
|
1228
1432
|
* @throws {RequiredError}
|
|
1229
1433
|
*/
|
|
1230
1434
|
createConnection(a, r, o, s) {
|
|
1231
|
-
return
|
|
1435
|
+
return t.createConnection(a, r, o, s).then((l) => l(e, n));
|
|
1232
1436
|
},
|
|
1233
1437
|
/**
|
|
1234
1438
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1239,7 +1443,7 @@ const v = function(c, ...t) {
|
|
|
1239
1443
|
* @throws {RequiredError}
|
|
1240
1444
|
*/
|
|
1241
1445
|
deleteConnection(a, r, o) {
|
|
1242
|
-
return
|
|
1446
|
+
return t.deleteConnection(a, r, o).then((s) => s(e, n));
|
|
1243
1447
|
},
|
|
1244
1448
|
/**
|
|
1245
1449
|
* 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.
|
|
@@ -1250,7 +1454,7 @@ const v = function(c, ...t) {
|
|
|
1250
1454
|
* @throws {RequiredError}
|
|
1251
1455
|
*/
|
|
1252
1456
|
getConnection(a, r, o) {
|
|
1253
|
-
return
|
|
1457
|
+
return t.getConnection(a, r, o).then((s) => s(e, n));
|
|
1254
1458
|
},
|
|
1255
1459
|
/**
|
|
1256
1460
|
* 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.
|
|
@@ -1263,7 +1467,7 @@ const v = function(c, ...t) {
|
|
|
1263
1467
|
* @throws {RequiredError}
|
|
1264
1468
|
*/
|
|
1265
1469
|
getTable(a, r, o, s, l) {
|
|
1266
|
-
return
|
|
1470
|
+
return t.getTable(a, r, o, s, l).then((i) => i(e, n));
|
|
1267
1471
|
},
|
|
1268
1472
|
/**
|
|
1269
1473
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1277,7 +1481,7 @@ const v = function(c, ...t) {
|
|
|
1277
1481
|
* @throws {RequiredError}
|
|
1278
1482
|
*/
|
|
1279
1483
|
getTableInPackage(a, r, o, s, l, i) {
|
|
1280
|
-
return
|
|
1484
|
+
return t.getTableInPackage(a, r, o, s, l, i).then((p) => p(e, n));
|
|
1281
1485
|
},
|
|
1282
1486
|
/**
|
|
1283
1487
|
* 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.
|
|
@@ -1287,7 +1491,7 @@ const v = function(c, ...t) {
|
|
|
1287
1491
|
* @throws {RequiredError}
|
|
1288
1492
|
*/
|
|
1289
1493
|
listConnections(a, r) {
|
|
1290
|
-
return
|
|
1494
|
+
return t.listConnections(a, r).then((o) => o(e, n));
|
|
1291
1495
|
},
|
|
1292
1496
|
/**
|
|
1293
1497
|
* 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.
|
|
@@ -1298,7 +1502,7 @@ const v = function(c, ...t) {
|
|
|
1298
1502
|
* @throws {RequiredError}
|
|
1299
1503
|
*/
|
|
1300
1504
|
listSchemas(a, r, o) {
|
|
1301
|
-
return
|
|
1505
|
+
return t.listSchemas(a, r, o).then((s) => s(e, n));
|
|
1302
1506
|
},
|
|
1303
1507
|
/**
|
|
1304
1508
|
* 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).
|
|
@@ -1310,7 +1514,7 @@ const v = function(c, ...t) {
|
|
|
1310
1514
|
* @throws {RequiredError}
|
|
1311
1515
|
*/
|
|
1312
1516
|
listSchemasInPackage(a, r, o, s) {
|
|
1313
|
-
return
|
|
1517
|
+
return t.listSchemasInPackage(a, r, o, s).then((l) => l(e, n));
|
|
1314
1518
|
},
|
|
1315
1519
|
/**
|
|
1316
1520
|
* 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.
|
|
@@ -1323,7 +1527,7 @@ const v = function(c, ...t) {
|
|
|
1323
1527
|
* @throws {RequiredError}
|
|
1324
1528
|
*/
|
|
1325
1529
|
listTables(a, r, o, s, l) {
|
|
1326
|
-
return
|
|
1530
|
+
return t.listTables(a, r, o, s, l).then((i) => i(e, n));
|
|
1327
1531
|
},
|
|
1328
1532
|
/**
|
|
1329
1533
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1337,7 +1541,7 @@ const v = function(c, ...t) {
|
|
|
1337
1541
|
* @throws {RequiredError}
|
|
1338
1542
|
*/
|
|
1339
1543
|
listTablesInPackage(a, r, o, s, l, i) {
|
|
1340
|
-
return
|
|
1544
|
+
return t.listTablesInPackage(a, r, o, s, l, i).then((p) => p(e, n));
|
|
1341
1545
|
},
|
|
1342
1546
|
/**
|
|
1343
1547
|
* 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.
|
|
@@ -1349,7 +1553,7 @@ const v = function(c, ...t) {
|
|
|
1349
1553
|
* @throws {RequiredError}
|
|
1350
1554
|
*/
|
|
1351
1555
|
postQuerydata(a, r, o, s) {
|
|
1352
|
-
return
|
|
1556
|
+
return t.postQuerydata(a, r, o, s).then((l) => l(e, n));
|
|
1353
1557
|
},
|
|
1354
1558
|
/**
|
|
1355
1559
|
* 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.
|
|
@@ -1362,7 +1566,7 @@ const v = function(c, ...t) {
|
|
|
1362
1566
|
* @throws {RequiredError}
|
|
1363
1567
|
*/
|
|
1364
1568
|
postQuerydataInPackage(a, r, o, s, l) {
|
|
1365
|
-
return
|
|
1569
|
+
return t.postQuerydataInPackage(a, r, o, s, l).then((i) => i(e, n));
|
|
1366
1570
|
},
|
|
1367
1571
|
/**
|
|
1368
1572
|
* 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.
|
|
@@ -1374,7 +1578,7 @@ const v = function(c, ...t) {
|
|
|
1374
1578
|
* @throws {RequiredError}
|
|
1375
1579
|
*/
|
|
1376
1580
|
postSqlsource(a, r, o, s) {
|
|
1377
|
-
return
|
|
1581
|
+
return t.postSqlsource(a, r, o, s).then((l) => l(e, n));
|
|
1378
1582
|
},
|
|
1379
1583
|
/**
|
|
1380
1584
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1387,7 +1591,7 @@ const v = function(c, ...t) {
|
|
|
1387
1591
|
* @throws {RequiredError}
|
|
1388
1592
|
*/
|
|
1389
1593
|
postSqlsourceInPackage(a, r, o, s, l) {
|
|
1390
|
-
return
|
|
1594
|
+
return t.postSqlsourceInPackage(a, r, o, s, l).then((i) => i(e, n));
|
|
1391
1595
|
},
|
|
1392
1596
|
/**
|
|
1393
1597
|
* 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.
|
|
@@ -1399,7 +1603,7 @@ const v = function(c, ...t) {
|
|
|
1399
1603
|
* @throws {RequiredError}
|
|
1400
1604
|
*/
|
|
1401
1605
|
postTemporarytable(a, r, o, s) {
|
|
1402
|
-
return
|
|
1606
|
+
return t.postTemporarytable(a, r, o, s).then((l) => l(e, n));
|
|
1403
1607
|
},
|
|
1404
1608
|
/**
|
|
1405
1609
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1412,7 +1616,7 @@ const v = function(c, ...t) {
|
|
|
1412
1616
|
* @throws {RequiredError}
|
|
1413
1617
|
*/
|
|
1414
1618
|
postTemporarytableInPackage(a, r, o, s, l) {
|
|
1415
|
-
return
|
|
1619
|
+
return t.postTemporarytableInPackage(a, r, o, s, l).then((i) => i(e, n));
|
|
1416
1620
|
},
|
|
1417
1621
|
/**
|
|
1418
1622
|
* Updates the configuration of an existing database connection.
|
|
@@ -1424,11 +1628,11 @@ const v = function(c, ...t) {
|
|
|
1424
1628
|
* @throws {RequiredError}
|
|
1425
1629
|
*/
|
|
1426
1630
|
updateConnection(a, r, o, s) {
|
|
1427
|
-
return
|
|
1631
|
+
return t.updateConnection(a, r, o, s).then((l) => l(e, n));
|
|
1428
1632
|
}
|
|
1429
1633
|
};
|
|
1430
1634
|
};
|
|
1431
|
-
class
|
|
1635
|
+
class Be extends x {
|
|
1432
1636
|
/**
|
|
1433
1637
|
* Creates a new database connection in the specified environment.
|
|
1434
1638
|
* @summary Create a new database connection
|
|
@@ -1438,8 +1642,8 @@ class fe extends x {
|
|
|
1438
1642
|
* @param {*} [options] Override http request option.
|
|
1439
1643
|
* @throws {RequiredError}
|
|
1440
1644
|
*/
|
|
1441
|
-
createConnection(
|
|
1442
|
-
return
|
|
1645
|
+
createConnection(n, e, t, a) {
|
|
1646
|
+
return y(this.configuration).createConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1443
1647
|
}
|
|
1444
1648
|
/**
|
|
1445
1649
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1449,8 +1653,8 @@ class fe extends x {
|
|
|
1449
1653
|
* @param {*} [options] Override http request option.
|
|
1450
1654
|
* @throws {RequiredError}
|
|
1451
1655
|
*/
|
|
1452
|
-
deleteConnection(
|
|
1453
|
-
return
|
|
1656
|
+
deleteConnection(n, e, t) {
|
|
1657
|
+
return y(this.configuration).deleteConnection(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
1454
1658
|
}
|
|
1455
1659
|
/**
|
|
1456
1660
|
* 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.
|
|
@@ -1460,8 +1664,8 @@ class fe extends x {
|
|
|
1460
1664
|
* @param {*} [options] Override http request option.
|
|
1461
1665
|
* @throws {RequiredError}
|
|
1462
1666
|
*/
|
|
1463
|
-
getConnection(
|
|
1464
|
-
return
|
|
1667
|
+
getConnection(n, e, t) {
|
|
1668
|
+
return y(this.configuration).getConnection(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
1465
1669
|
}
|
|
1466
1670
|
/**
|
|
1467
1671
|
* 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.
|
|
@@ -1473,8 +1677,8 @@ class fe extends x {
|
|
|
1473
1677
|
* @param {*} [options] Override http request option.
|
|
1474
1678
|
* @throws {RequiredError}
|
|
1475
1679
|
*/
|
|
1476
|
-
getTable(
|
|
1477
|
-
return
|
|
1680
|
+
getTable(n, e, t, a, r) {
|
|
1681
|
+
return y(this.configuration).getTable(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
1478
1682
|
}
|
|
1479
1683
|
/**
|
|
1480
1684
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1487,8 +1691,8 @@ class fe extends x {
|
|
|
1487
1691
|
* @param {*} [options] Override http request option.
|
|
1488
1692
|
* @throws {RequiredError}
|
|
1489
1693
|
*/
|
|
1490
|
-
getTableInPackage(
|
|
1491
|
-
return
|
|
1694
|
+
getTableInPackage(n, e, t, a, r, o) {
|
|
1695
|
+
return y(this.configuration).getTableInPackage(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
1492
1696
|
}
|
|
1493
1697
|
/**
|
|
1494
1698
|
* 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.
|
|
@@ -1497,8 +1701,8 @@ class fe extends x {
|
|
|
1497
1701
|
* @param {*} [options] Override http request option.
|
|
1498
1702
|
* @throws {RequiredError}
|
|
1499
1703
|
*/
|
|
1500
|
-
listConnections(
|
|
1501
|
-
return
|
|
1704
|
+
listConnections(n, e) {
|
|
1705
|
+
return y(this.configuration).listConnections(n, e).then((t) => t(this.axios, this.basePath));
|
|
1502
1706
|
}
|
|
1503
1707
|
/**
|
|
1504
1708
|
* 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.
|
|
@@ -1508,8 +1712,8 @@ class fe extends x {
|
|
|
1508
1712
|
* @param {*} [options] Override http request option.
|
|
1509
1713
|
* @throws {RequiredError}
|
|
1510
1714
|
*/
|
|
1511
|
-
listSchemas(
|
|
1512
|
-
return
|
|
1715
|
+
listSchemas(n, e, t) {
|
|
1716
|
+
return y(this.configuration).listSchemas(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
1513
1717
|
}
|
|
1514
1718
|
/**
|
|
1515
1719
|
* 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).
|
|
@@ -1520,8 +1724,8 @@ class fe extends x {
|
|
|
1520
1724
|
* @param {*} [options] Override http request option.
|
|
1521
1725
|
* @throws {RequiredError}
|
|
1522
1726
|
*/
|
|
1523
|
-
listSchemasInPackage(
|
|
1524
|
-
return
|
|
1727
|
+
listSchemasInPackage(n, e, t, a) {
|
|
1728
|
+
return y(this.configuration).listSchemasInPackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1525
1729
|
}
|
|
1526
1730
|
/**
|
|
1527
1731
|
* 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.
|
|
@@ -1533,8 +1737,8 @@ class fe extends x {
|
|
|
1533
1737
|
* @param {*} [options] Override http request option.
|
|
1534
1738
|
* @throws {RequiredError}
|
|
1535
1739
|
*/
|
|
1536
|
-
listTables(
|
|
1537
|
-
return
|
|
1740
|
+
listTables(n, e, t, a, r) {
|
|
1741
|
+
return y(this.configuration).listTables(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
1538
1742
|
}
|
|
1539
1743
|
/**
|
|
1540
1744
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1547,8 +1751,8 @@ class fe extends x {
|
|
|
1547
1751
|
* @param {*} [options] Override http request option.
|
|
1548
1752
|
* @throws {RequiredError}
|
|
1549
1753
|
*/
|
|
1550
|
-
listTablesInPackage(
|
|
1551
|
-
return
|
|
1754
|
+
listTablesInPackage(n, e, t, a, r, o) {
|
|
1755
|
+
return y(this.configuration).listTablesInPackage(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
1552
1756
|
}
|
|
1553
1757
|
/**
|
|
1554
1758
|
* 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.
|
|
@@ -1559,8 +1763,8 @@ class fe extends x {
|
|
|
1559
1763
|
* @param {*} [options] Override http request option.
|
|
1560
1764
|
* @throws {RequiredError}
|
|
1561
1765
|
*/
|
|
1562
|
-
postQuerydata(
|
|
1563
|
-
return
|
|
1766
|
+
postQuerydata(n, e, t, a) {
|
|
1767
|
+
return y(this.configuration).postQuerydata(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1564
1768
|
}
|
|
1565
1769
|
/**
|
|
1566
1770
|
* 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.
|
|
@@ -1572,8 +1776,8 @@ class fe extends x {
|
|
|
1572
1776
|
* @param {*} [options] Override http request option.
|
|
1573
1777
|
* @throws {RequiredError}
|
|
1574
1778
|
*/
|
|
1575
|
-
postQuerydataInPackage(
|
|
1576
|
-
return
|
|
1779
|
+
postQuerydataInPackage(n, e, t, a, r) {
|
|
1780
|
+
return y(this.configuration).postQuerydataInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
1577
1781
|
}
|
|
1578
1782
|
/**
|
|
1579
1783
|
* 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.
|
|
@@ -1584,8 +1788,8 @@ class fe extends x {
|
|
|
1584
1788
|
* @param {*} [options] Override http request option.
|
|
1585
1789
|
* @throws {RequiredError}
|
|
1586
1790
|
*/
|
|
1587
|
-
postSqlsource(
|
|
1588
|
-
return
|
|
1791
|
+
postSqlsource(n, e, t, a) {
|
|
1792
|
+
return y(this.configuration).postSqlsource(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1589
1793
|
}
|
|
1590
1794
|
/**
|
|
1591
1795
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1597,8 +1801,8 @@ class fe extends x {
|
|
|
1597
1801
|
* @param {*} [options] Override http request option.
|
|
1598
1802
|
* @throws {RequiredError}
|
|
1599
1803
|
*/
|
|
1600
|
-
postSqlsourceInPackage(
|
|
1601
|
-
return
|
|
1804
|
+
postSqlsourceInPackage(n, e, t, a, r) {
|
|
1805
|
+
return y(this.configuration).postSqlsourceInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
1602
1806
|
}
|
|
1603
1807
|
/**
|
|
1604
1808
|
* 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.
|
|
@@ -1609,8 +1813,8 @@ class fe extends x {
|
|
|
1609
1813
|
* @param {*} [options] Override http request option.
|
|
1610
1814
|
* @throws {RequiredError}
|
|
1611
1815
|
*/
|
|
1612
|
-
postTemporarytable(
|
|
1613
|
-
return
|
|
1816
|
+
postTemporarytable(n, e, t, a) {
|
|
1817
|
+
return y(this.configuration).postTemporarytable(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1614
1818
|
}
|
|
1615
1819
|
/**
|
|
1616
1820
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1622,8 +1826,8 @@ class fe extends x {
|
|
|
1622
1826
|
* @param {*} [options] Override http request option.
|
|
1623
1827
|
* @throws {RequiredError}
|
|
1624
1828
|
*/
|
|
1625
|
-
postTemporarytableInPackage(
|
|
1626
|
-
return
|
|
1829
|
+
postTemporarytableInPackage(n, e, t, a, r) {
|
|
1830
|
+
return y(this.configuration).postTemporarytableInPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
1627
1831
|
}
|
|
1628
1832
|
/**
|
|
1629
1833
|
* Updates the configuration of an existing database connection.
|
|
@@ -1634,11 +1838,11 @@ class fe extends x {
|
|
|
1634
1838
|
* @param {*} [options] Override http request option.
|
|
1635
1839
|
* @throws {RequiredError}
|
|
1636
1840
|
*/
|
|
1637
|
-
updateConnection(
|
|
1638
|
-
return
|
|
1841
|
+
updateConnection(n, e, t, a) {
|
|
1842
|
+
return y(this.configuration).updateConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1639
1843
|
}
|
|
1640
1844
|
}
|
|
1641
|
-
const
|
|
1845
|
+
const je = function(c) {
|
|
1642
1846
|
return {
|
|
1643
1847
|
/**
|
|
1644
1848
|
* 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.
|
|
@@ -1647,22 +1851,22 @@ const Me = function(c) {
|
|
|
1647
1851
|
* @param {*} [options] Override http request option.
|
|
1648
1852
|
* @throws {RequiredError}
|
|
1649
1853
|
*/
|
|
1650
|
-
testConnectionConfiguration: async (
|
|
1651
|
-
|
|
1652
|
-
const
|
|
1854
|
+
testConnectionConfiguration: async (n, e = {}) => {
|
|
1855
|
+
m("testConnectionConfiguration", "connection", n);
|
|
1856
|
+
const t = "/connections/test", a = new URL(t, v);
|
|
1653
1857
|
let r;
|
|
1654
1858
|
c && (r = c.baseOptions);
|
|
1655
1859
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
1656
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
1860
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
|
|
1657
1861
|
let i = r && r.headers ? r.headers : {};
|
|
1658
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
1862
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
1659
1863
|
url: V(a),
|
|
1660
1864
|
options: o
|
|
1661
1865
|
};
|
|
1662
1866
|
}
|
|
1663
1867
|
};
|
|
1664
|
-
},
|
|
1665
|
-
const
|
|
1868
|
+
}, le = function(c) {
|
|
1869
|
+
const n = je(c);
|
|
1666
1870
|
return {
|
|
1667
1871
|
/**
|
|
1668
1872
|
* 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.
|
|
@@ -1671,13 +1875,13 @@ const Me = function(c) {
|
|
|
1671
1875
|
* @param {*} [options] Override http request option.
|
|
1672
1876
|
* @throws {RequiredError}
|
|
1673
1877
|
*/
|
|
1674
|
-
async testConnectionConfiguration(e,
|
|
1675
|
-
const a = await
|
|
1676
|
-
return (s, l) =>
|
|
1878
|
+
async testConnectionConfiguration(e, t) {
|
|
1879
|
+
const a = await n.testConnectionConfiguration(e, t), r = c?.serverIndex ?? 0, o = b["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
|
|
1880
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
1677
1881
|
}
|
|
1678
1882
|
};
|
|
1679
|
-
},
|
|
1680
|
-
const
|
|
1883
|
+
}, jt = function(c, n, e) {
|
|
1884
|
+
const t = le(c);
|
|
1681
1885
|
return {
|
|
1682
1886
|
/**
|
|
1683
1887
|
* 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.
|
|
@@ -1687,11 +1891,11 @@ const Me = function(c) {
|
|
|
1687
1891
|
* @throws {RequiredError}
|
|
1688
1892
|
*/
|
|
1689
1893
|
testConnectionConfiguration(a, r) {
|
|
1690
|
-
return
|
|
1894
|
+
return t.testConnectionConfiguration(a, r).then((o) => o(e, n));
|
|
1691
1895
|
}
|
|
1692
1896
|
};
|
|
1693
1897
|
};
|
|
1694
|
-
class
|
|
1898
|
+
class Dt extends x {
|
|
1695
1899
|
/**
|
|
1696
1900
|
* 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.
|
|
1697
1901
|
* @summary Test database connection configuration
|
|
@@ -1699,11 +1903,11 @@ class Tt extends x {
|
|
|
1699
1903
|
* @param {*} [options] Override http request option.
|
|
1700
1904
|
* @throws {RequiredError}
|
|
1701
1905
|
*/
|
|
1702
|
-
testConnectionConfiguration(
|
|
1703
|
-
return
|
|
1906
|
+
testConnectionConfiguration(n, e) {
|
|
1907
|
+
return le(this.configuration).testConnectionConfiguration(n, e).then((t) => t(this.axios, this.basePath));
|
|
1704
1908
|
}
|
|
1705
1909
|
}
|
|
1706
|
-
const
|
|
1910
|
+
const De = function(c) {
|
|
1707
1911
|
return {
|
|
1708
1912
|
/**
|
|
1709
1913
|
* **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/`.
|
|
@@ -1716,15 +1920,15 @@ const Be = function(c) {
|
|
|
1716
1920
|
* @deprecated
|
|
1717
1921
|
* @throws {RequiredError}
|
|
1718
1922
|
*/
|
|
1719
|
-
getDashboard: async (
|
|
1720
|
-
|
|
1721
|
-
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(
|
|
1923
|
+
getDashboard: async (n, e, t, a, r = {}) => {
|
|
1924
|
+
m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", t);
|
|
1925
|
+
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
1722
1926
|
let l;
|
|
1723
1927
|
c && (l = c.baseOptions);
|
|
1724
1928
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
1725
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
1726
|
-
let
|
|
1727
|
-
return i.headers = { ...p, ...
|
|
1929
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", P(s, d);
|
|
1930
|
+
let h = l && l.headers ? l.headers : {};
|
|
1931
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
1728
1932
|
url: V(s),
|
|
1729
1933
|
options: i
|
|
1730
1934
|
};
|
|
@@ -1739,13 +1943,13 @@ const Be = function(c) {
|
|
|
1739
1943
|
* @deprecated
|
|
1740
1944
|
* @throws {RequiredError}
|
|
1741
1945
|
*/
|
|
1742
|
-
listDashboards: async (
|
|
1743
|
-
|
|
1744
|
-
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(
|
|
1946
|
+
listDashboards: async (n, e, t, a = {}) => {
|
|
1947
|
+
m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
|
|
1948
|
+
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
1745
1949
|
let s;
|
|
1746
1950
|
c && (s = c.baseOptions);
|
|
1747
1951
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
1748
|
-
|
|
1952
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
|
|
1749
1953
|
let d = s && s.headers ? s.headers : {};
|
|
1750
1954
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
1751
1955
|
url: V(o),
|
|
@@ -1753,8 +1957,8 @@ const Be = function(c) {
|
|
|
1753
1957
|
};
|
|
1754
1958
|
}
|
|
1755
1959
|
};
|
|
1756
|
-
},
|
|
1757
|
-
const
|
|
1960
|
+
}, $ = function(c) {
|
|
1961
|
+
const n = De(c);
|
|
1758
1962
|
return {
|
|
1759
1963
|
/**
|
|
1760
1964
|
* **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/`.
|
|
@@ -1767,9 +1971,9 @@ const Be = function(c) {
|
|
|
1767
1971
|
* @deprecated
|
|
1768
1972
|
* @throws {RequiredError}
|
|
1769
1973
|
*/
|
|
1770
|
-
async getDashboard(e,
|
|
1771
|
-
const s = await
|
|
1772
|
-
return (p, d) =>
|
|
1974
|
+
async getDashboard(e, t, a, r, o) {
|
|
1975
|
+
const s = await n.getDashboard(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["DashboardsApi.getDashboard"]?.[l]?.url;
|
|
1976
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
1773
1977
|
},
|
|
1774
1978
|
/**
|
|
1775
1979
|
* **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.
|
|
@@ -1781,13 +1985,13 @@ const Be = function(c) {
|
|
|
1781
1985
|
* @deprecated
|
|
1782
1986
|
* @throws {RequiredError}
|
|
1783
1987
|
*/
|
|
1784
|
-
async listDashboards(e,
|
|
1785
|
-
const o = await
|
|
1786
|
-
return (i, p) =>
|
|
1988
|
+
async listDashboards(e, t, a, r) {
|
|
1989
|
+
const o = await n.listDashboards(e, t, a, r), s = c?.serverIndex ?? 0, l = b["DashboardsApi.listDashboards"]?.[s]?.url;
|
|
1990
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1787
1991
|
}
|
|
1788
1992
|
};
|
|
1789
|
-
},
|
|
1790
|
-
const
|
|
1993
|
+
}, qt = function(c, n, e) {
|
|
1994
|
+
const t = $(c);
|
|
1791
1995
|
return {
|
|
1792
1996
|
/**
|
|
1793
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/`.
|
|
@@ -1801,7 +2005,7 @@ const Be = function(c) {
|
|
|
1801
2005
|
* @throws {RequiredError}
|
|
1802
2006
|
*/
|
|
1803
2007
|
getDashboard(a, r, o, s, l) {
|
|
1804
|
-
return
|
|
2008
|
+
return t.getDashboard(a, r, o, s, l).then((i) => i(e, n));
|
|
1805
2009
|
},
|
|
1806
2010
|
/**
|
|
1807
2011
|
* **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.
|
|
@@ -1814,11 +2018,11 @@ const Be = function(c) {
|
|
|
1814
2018
|
* @throws {RequiredError}
|
|
1815
2019
|
*/
|
|
1816
2020
|
listDashboards(a, r, o, s) {
|
|
1817
|
-
return
|
|
2021
|
+
return t.listDashboards(a, r, o, s).then((l) => l(e, n));
|
|
1818
2022
|
}
|
|
1819
2023
|
};
|
|
1820
2024
|
};
|
|
1821
|
-
class
|
|
2025
|
+
class qe extends x {
|
|
1822
2026
|
/**
|
|
1823
2027
|
* **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/`.
|
|
1824
2028
|
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
@@ -1830,8 +2034,8 @@ class je extends x {
|
|
|
1830
2034
|
* @deprecated
|
|
1831
2035
|
* @throws {RequiredError}
|
|
1832
2036
|
*/
|
|
1833
|
-
getDashboard(
|
|
1834
|
-
return
|
|
2037
|
+
getDashboard(n, e, t, a, r) {
|
|
2038
|
+
return $(this.configuration).getDashboard(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
1835
2039
|
}
|
|
1836
2040
|
/**
|
|
1837
2041
|
* **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.
|
|
@@ -1843,11 +2047,11 @@ class je extends x {
|
|
|
1843
2047
|
* @deprecated
|
|
1844
2048
|
* @throws {RequiredError}
|
|
1845
2049
|
*/
|
|
1846
|
-
listDashboards(
|
|
1847
|
-
return
|
|
2050
|
+
listDashboards(n, e, t, a) {
|
|
2051
|
+
return $(this.configuration).listDashboards(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1848
2052
|
}
|
|
1849
2053
|
}
|
|
1850
|
-
const
|
|
2054
|
+
const Qe = function(c) {
|
|
1851
2055
|
return {
|
|
1852
2056
|
/**
|
|
1853
2057
|
* 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.
|
|
@@ -1857,22 +2061,22 @@ const Fe = function(c) {
|
|
|
1857
2061
|
* @param {*} [options] Override http request option.
|
|
1858
2062
|
* @throws {RequiredError}
|
|
1859
2063
|
*/
|
|
1860
|
-
listDataApps: async (
|
|
1861
|
-
|
|
1862
|
-
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(
|
|
2064
|
+
listDataApps: async (n, e, t = {}) => {
|
|
2065
|
+
m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
|
|
2066
|
+
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
1863
2067
|
let o;
|
|
1864
2068
|
c && (o = c.baseOptions);
|
|
1865
|
-
const s = { method: "GET", ...o, ...
|
|
1866
|
-
l.Accept = "application/json",
|
|
2069
|
+
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
2070
|
+
l.Accept = "application/json", P(r, i);
|
|
1867
2071
|
let p = o && o.headers ? o.headers : {};
|
|
1868
|
-
return s.headers = { ...l, ...p, ...
|
|
2072
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
1869
2073
|
url: V(r),
|
|
1870
2074
|
options: s
|
|
1871
2075
|
};
|
|
1872
2076
|
}
|
|
1873
2077
|
};
|
|
1874
|
-
},
|
|
1875
|
-
const
|
|
2078
|
+
}, ie = function(c) {
|
|
2079
|
+
const n = Qe(c);
|
|
1876
2080
|
return {
|
|
1877
2081
|
/**
|
|
1878
2082
|
* 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.
|
|
@@ -1882,13 +2086,13 @@ const Fe = function(c) {
|
|
|
1882
2086
|
* @param {*} [options] Override http request option.
|
|
1883
2087
|
* @throws {RequiredError}
|
|
1884
2088
|
*/
|
|
1885
|
-
async listDataApps(e,
|
|
1886
|
-
const r = await
|
|
1887
|
-
return (l, i) =>
|
|
2089
|
+
async listDataApps(e, t, a) {
|
|
2090
|
+
const r = await n.listDataApps(e, t, a), o = c?.serverIndex ?? 0, s = b["DataAppsApi.listDataApps"]?.[o]?.url;
|
|
2091
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
1888
2092
|
}
|
|
1889
2093
|
};
|
|
1890
|
-
},
|
|
1891
|
-
const
|
|
2094
|
+
}, Qt = function(c, n, e) {
|
|
2095
|
+
const t = ie(c);
|
|
1892
2096
|
return {
|
|
1893
2097
|
/**
|
|
1894
2098
|
* 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.
|
|
@@ -1899,11 +2103,11 @@ const Fe = function(c) {
|
|
|
1899
2103
|
* @throws {RequiredError}
|
|
1900
2104
|
*/
|
|
1901
2105
|
listDataApps(a, r, o) {
|
|
1902
|
-
return
|
|
2106
|
+
return t.listDataApps(a, r, o).then((s) => s(e, n));
|
|
1903
2107
|
}
|
|
1904
2108
|
};
|
|
1905
2109
|
};
|
|
1906
|
-
class
|
|
2110
|
+
class Le extends x {
|
|
1907
2111
|
/**
|
|
1908
2112
|
* 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.
|
|
1909
2113
|
* @summary List package data apps
|
|
@@ -1912,11 +2116,11 @@ class De extends x {
|
|
|
1912
2116
|
* @param {*} [options] Override http request option.
|
|
1913
2117
|
* @throws {RequiredError}
|
|
1914
2118
|
*/
|
|
1915
|
-
listDataApps(
|
|
1916
|
-
return
|
|
2119
|
+
listDataApps(n, e, t) {
|
|
2120
|
+
return ie(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
1917
2121
|
}
|
|
1918
2122
|
}
|
|
1919
|
-
const
|
|
2123
|
+
const ze = function(c) {
|
|
1920
2124
|
return {
|
|
1921
2125
|
/**
|
|
1922
2126
|
* 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.
|
|
@@ -1927,13 +2131,13 @@ const qe = function(c) {
|
|
|
1927
2131
|
* @param {*} [options] Override http request option.
|
|
1928
2132
|
* @throws {RequiredError}
|
|
1929
2133
|
*/
|
|
1930
|
-
listDatabases: async (
|
|
1931
|
-
|
|
1932
|
-
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(
|
|
2134
|
+
listDatabases: async (n, e, t, a = {}) => {
|
|
2135
|
+
m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
|
|
2136
|
+
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
1933
2137
|
let s;
|
|
1934
2138
|
c && (s = c.baseOptions);
|
|
1935
2139
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
1936
|
-
|
|
2140
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
|
|
1937
2141
|
let d = s && s.headers ? s.headers : {};
|
|
1938
2142
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
1939
2143
|
url: V(o),
|
|
@@ -1941,8 +2145,8 @@ const qe = function(c) {
|
|
|
1941
2145
|
};
|
|
1942
2146
|
}
|
|
1943
2147
|
};
|
|
1944
|
-
},
|
|
1945
|
-
const
|
|
2148
|
+
}, pe = function(c) {
|
|
2149
|
+
const n = ze(c);
|
|
1946
2150
|
return {
|
|
1947
2151
|
/**
|
|
1948
2152
|
* 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.
|
|
@@ -1953,13 +2157,13 @@ const qe = function(c) {
|
|
|
1953
2157
|
* @param {*} [options] Override http request option.
|
|
1954
2158
|
* @throws {RequiredError}
|
|
1955
2159
|
*/
|
|
1956
|
-
async listDatabases(e,
|
|
1957
|
-
const o = await
|
|
1958
|
-
return (i, p) =>
|
|
2160
|
+
async listDatabases(e, t, a, r) {
|
|
2161
|
+
const o = await n.listDatabases(e, t, a, r), s = c?.serverIndex ?? 0, l = b["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
2162
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
1959
2163
|
}
|
|
1960
2164
|
};
|
|
1961
|
-
},
|
|
1962
|
-
const
|
|
2165
|
+
}, Lt = function(c, n, e) {
|
|
2166
|
+
const t = pe(c);
|
|
1963
2167
|
return {
|
|
1964
2168
|
/**
|
|
1965
2169
|
* 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.
|
|
@@ -1971,11 +2175,11 @@ const qe = function(c) {
|
|
|
1971
2175
|
* @throws {RequiredError}
|
|
1972
2176
|
*/
|
|
1973
2177
|
listDatabases(a, r, o, s) {
|
|
1974
|
-
return
|
|
2178
|
+
return t.listDatabases(a, r, o, s).then((l) => l(e, n));
|
|
1975
2179
|
}
|
|
1976
2180
|
};
|
|
1977
2181
|
};
|
|
1978
|
-
class
|
|
2182
|
+
class He extends x {
|
|
1979
2183
|
/**
|
|
1980
2184
|
* 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.
|
|
1981
2185
|
* @summary List embedded databases
|
|
@@ -1985,11 +2189,11 @@ class Qe extends x {
|
|
|
1985
2189
|
* @param {*} [options] Override http request option.
|
|
1986
2190
|
* @throws {RequiredError}
|
|
1987
2191
|
*/
|
|
1988
|
-
listDatabases(
|
|
1989
|
-
return
|
|
2192
|
+
listDatabases(n, e, t, a) {
|
|
2193
|
+
return pe(this.configuration).listDatabases(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1990
2194
|
}
|
|
1991
2195
|
}
|
|
1992
|
-
const
|
|
2196
|
+
const _e = function(c) {
|
|
1993
2197
|
return {
|
|
1994
2198
|
/**
|
|
1995
2199
|
* 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.
|
|
@@ -1998,15 +2202,15 @@ const Le = function(c) {
|
|
|
1998
2202
|
* @param {*} [options] Override http request option.
|
|
1999
2203
|
* @throws {RequiredError}
|
|
2000
2204
|
*/
|
|
2001
|
-
createEnvironment: async (
|
|
2002
|
-
|
|
2003
|
-
const
|
|
2205
|
+
createEnvironment: async (n, e = {}) => {
|
|
2206
|
+
m("createEnvironment", "environment", n);
|
|
2207
|
+
const t = "/environments", a = new URL(t, v);
|
|
2004
2208
|
let r;
|
|
2005
2209
|
c && (r = c.baseOptions);
|
|
2006
2210
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
2007
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
2211
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
|
|
2008
2212
|
let i = r && r.headers ? r.headers : {};
|
|
2009
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
2213
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
2010
2214
|
url: V(a),
|
|
2011
2215
|
options: o
|
|
2012
2216
|
};
|
|
@@ -2018,13 +2222,13 @@ const Le = function(c) {
|
|
|
2018
2222
|
* @param {*} [options] Override http request option.
|
|
2019
2223
|
* @throws {RequiredError}
|
|
2020
2224
|
*/
|
|
2021
|
-
deleteEnvironment: async (
|
|
2022
|
-
|
|
2023
|
-
const
|
|
2225
|
+
deleteEnvironment: async (n, e = {}) => {
|
|
2226
|
+
m("deleteEnvironment", "environmentName", n);
|
|
2227
|
+
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, v);
|
|
2024
2228
|
let r;
|
|
2025
2229
|
c && (r = c.baseOptions);
|
|
2026
2230
|
const o = { method: "DELETE", ...r, ...e }, s = {}, l = {};
|
|
2027
|
-
s.Accept = "application/json",
|
|
2231
|
+
s.Accept = "application/json", P(a, l);
|
|
2028
2232
|
let i = r && r.headers ? r.headers : {};
|
|
2029
2233
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2030
2234
|
url: V(a),
|
|
@@ -2039,15 +2243,15 @@ const Le = function(c) {
|
|
|
2039
2243
|
* @param {*} [options] Override http request option.
|
|
2040
2244
|
* @throws {RequiredError}
|
|
2041
2245
|
*/
|
|
2042
|
-
getEnvironment: async (
|
|
2043
|
-
|
|
2044
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(
|
|
2246
|
+
getEnvironment: async (n, e, t = {}) => {
|
|
2247
|
+
m("getEnvironment", "environmentName", n);
|
|
2248
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, v);
|
|
2045
2249
|
let o;
|
|
2046
2250
|
c && (o = c.baseOptions);
|
|
2047
|
-
const s = { method: "GET", ...o, ...
|
|
2048
|
-
e !== void 0 && (i.reload = e), l.Accept = "application/json",
|
|
2251
|
+
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
2252
|
+
e !== void 0 && (i.reload = e), l.Accept = "application/json", P(r, i);
|
|
2049
2253
|
let p = o && o.headers ? o.headers : {};
|
|
2050
|
-
return s.headers = { ...l, ...p, ...
|
|
2254
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
2051
2255
|
url: V(r),
|
|
2052
2256
|
options: s
|
|
2053
2257
|
};
|
|
@@ -2058,15 +2262,15 @@ const Le = function(c) {
|
|
|
2058
2262
|
* @param {*} [options] Override http request option.
|
|
2059
2263
|
* @throws {RequiredError}
|
|
2060
2264
|
*/
|
|
2061
|
-
listEnvironments: async (
|
|
2062
|
-
const e = "/environments",
|
|
2265
|
+
listEnvironments: async (n = {}) => {
|
|
2266
|
+
const e = "/environments", t = new URL(e, v);
|
|
2063
2267
|
let a;
|
|
2064
2268
|
c && (a = c.baseOptions);
|
|
2065
|
-
const r = { method: "GET", ...a, ...
|
|
2066
|
-
o.Accept = "application/json",
|
|
2269
|
+
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
2270
|
+
o.Accept = "application/json", P(t, s);
|
|
2067
2271
|
let l = a && a.headers ? a.headers : {};
|
|
2068
|
-
return r.headers = { ...o, ...l, ...
|
|
2069
|
-
url: V(
|
|
2272
|
+
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
2273
|
+
url: V(t),
|
|
2070
2274
|
options: r
|
|
2071
2275
|
};
|
|
2072
2276
|
},
|
|
@@ -2078,22 +2282,22 @@ const Le = function(c) {
|
|
|
2078
2282
|
* @param {*} [options] Override http request option.
|
|
2079
2283
|
* @throws {RequiredError}
|
|
2080
2284
|
*/
|
|
2081
|
-
updateEnvironment: async (
|
|
2082
|
-
|
|
2083
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(
|
|
2285
|
+
updateEnvironment: async (n, e, t = {}) => {
|
|
2286
|
+
m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
|
|
2287
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, v);
|
|
2084
2288
|
let o;
|
|
2085
2289
|
c && (o = c.baseOptions);
|
|
2086
|
-
const s = { method: "PATCH", ...o, ...
|
|
2087
|
-
l["Content-Type"] = "application/json", l.Accept = "application/json",
|
|
2290
|
+
const s = { method: "PATCH", ...o, ...t }, l = {}, i = {};
|
|
2291
|
+
l["Content-Type"] = "application/json", l.Accept = "application/json", P(r, i);
|
|
2088
2292
|
let p = o && o.headers ? o.headers : {};
|
|
2089
|
-
return s.headers = { ...l, ...p, ...
|
|
2293
|
+
return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
|
|
2090
2294
|
url: V(r),
|
|
2091
2295
|
options: s
|
|
2092
2296
|
};
|
|
2093
2297
|
}
|
|
2094
2298
|
};
|
|
2095
|
-
},
|
|
2096
|
-
const
|
|
2299
|
+
}, w = function(c) {
|
|
2300
|
+
const n = _e(c);
|
|
2097
2301
|
return {
|
|
2098
2302
|
/**
|
|
2099
2303
|
* 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.
|
|
@@ -2102,9 +2306,9 @@ const Le = function(c) {
|
|
|
2102
2306
|
* @param {*} [options] Override http request option.
|
|
2103
2307
|
* @throws {RequiredError}
|
|
2104
2308
|
*/
|
|
2105
|
-
async createEnvironment(e,
|
|
2106
|
-
const a = await
|
|
2107
|
-
return (s, l) =>
|
|
2309
|
+
async createEnvironment(e, t) {
|
|
2310
|
+
const a = await n.createEnvironment(e, t), r = c?.serverIndex ?? 0, o = b["EnvironmentsApi.createEnvironment"]?.[r]?.url;
|
|
2311
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
2108
2312
|
},
|
|
2109
2313
|
/**
|
|
2110
2314
|
* 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.
|
|
@@ -2113,9 +2317,9 @@ const Le = function(c) {
|
|
|
2113
2317
|
* @param {*} [options] Override http request option.
|
|
2114
2318
|
* @throws {RequiredError}
|
|
2115
2319
|
*/
|
|
2116
|
-
async deleteEnvironment(e,
|
|
2117
|
-
const a = await
|
|
2118
|
-
return (s, l) =>
|
|
2320
|
+
async deleteEnvironment(e, t) {
|
|
2321
|
+
const a = await n.deleteEnvironment(e, t), r = c?.serverIndex ?? 0, o = b["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
|
|
2322
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
2119
2323
|
},
|
|
2120
2324
|
/**
|
|
2121
2325
|
* 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.
|
|
@@ -2125,9 +2329,9 @@ const Le = function(c) {
|
|
|
2125
2329
|
* @param {*} [options] Override http request option.
|
|
2126
2330
|
* @throws {RequiredError}
|
|
2127
2331
|
*/
|
|
2128
|
-
async getEnvironment(e,
|
|
2129
|
-
const r = await
|
|
2130
|
-
return (l, i) =>
|
|
2332
|
+
async getEnvironment(e, t, a) {
|
|
2333
|
+
const r = await n.getEnvironment(e, t, a), o = c?.serverIndex ?? 0, s = b["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
2334
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
2131
2335
|
},
|
|
2132
2336
|
/**
|
|
2133
2337
|
* 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`.
|
|
@@ -2136,8 +2340,8 @@ const Le = function(c) {
|
|
|
2136
2340
|
* @throws {RequiredError}
|
|
2137
2341
|
*/
|
|
2138
2342
|
async listEnvironments(e) {
|
|
2139
|
-
const
|
|
2140
|
-
return (o, s) =>
|
|
2343
|
+
const t = await n.listEnvironments(e), a = c?.serverIndex ?? 0, r = b["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
2344
|
+
return (o, s) => S(t, u, g, c)(o, r || s);
|
|
2141
2345
|
},
|
|
2142
2346
|
/**
|
|
2143
2347
|
* 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.
|
|
@@ -2147,13 +2351,13 @@ const Le = function(c) {
|
|
|
2147
2351
|
* @param {*} [options] Override http request option.
|
|
2148
2352
|
* @throws {RequiredError}
|
|
2149
2353
|
*/
|
|
2150
|
-
async updateEnvironment(e,
|
|
2151
|
-
const r = await
|
|
2152
|
-
return (l, i) =>
|
|
2354
|
+
async updateEnvironment(e, t, a) {
|
|
2355
|
+
const r = await n.updateEnvironment(e, t, a), o = c?.serverIndex ?? 0, s = b["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
2356
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
2153
2357
|
}
|
|
2154
2358
|
};
|
|
2155
|
-
},
|
|
2156
|
-
const
|
|
2359
|
+
}, zt = function(c, n, e) {
|
|
2360
|
+
const t = w(c);
|
|
2157
2361
|
return {
|
|
2158
2362
|
/**
|
|
2159
2363
|
* 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.
|
|
@@ -2163,7 +2367,7 @@ const Le = function(c) {
|
|
|
2163
2367
|
* @throws {RequiredError}
|
|
2164
2368
|
*/
|
|
2165
2369
|
createEnvironment(a, r) {
|
|
2166
|
-
return
|
|
2370
|
+
return t.createEnvironment(a, r).then((o) => o(e, n));
|
|
2167
2371
|
},
|
|
2168
2372
|
/**
|
|
2169
2373
|
* 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.
|
|
@@ -2173,7 +2377,7 @@ const Le = function(c) {
|
|
|
2173
2377
|
* @throws {RequiredError}
|
|
2174
2378
|
*/
|
|
2175
2379
|
deleteEnvironment(a, r) {
|
|
2176
|
-
return
|
|
2380
|
+
return t.deleteEnvironment(a, r).then((o) => o(e, n));
|
|
2177
2381
|
},
|
|
2178
2382
|
/**
|
|
2179
2383
|
* 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.
|
|
@@ -2184,7 +2388,7 @@ const Le = function(c) {
|
|
|
2184
2388
|
* @throws {RequiredError}
|
|
2185
2389
|
*/
|
|
2186
2390
|
getEnvironment(a, r, o) {
|
|
2187
|
-
return
|
|
2391
|
+
return t.getEnvironment(a, r, o).then((s) => s(e, n));
|
|
2188
2392
|
},
|
|
2189
2393
|
/**
|
|
2190
2394
|
* 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`.
|
|
@@ -2193,7 +2397,7 @@ const Le = function(c) {
|
|
|
2193
2397
|
* @throws {RequiredError}
|
|
2194
2398
|
*/
|
|
2195
2399
|
listEnvironments(a) {
|
|
2196
|
-
return
|
|
2400
|
+
return t.listEnvironments(a).then((r) => r(e, n));
|
|
2197
2401
|
},
|
|
2198
2402
|
/**
|
|
2199
2403
|
* 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.
|
|
@@ -2204,11 +2408,11 @@ const Le = function(c) {
|
|
|
2204
2408
|
* @throws {RequiredError}
|
|
2205
2409
|
*/
|
|
2206
2410
|
updateEnvironment(a, r, o) {
|
|
2207
|
-
return
|
|
2411
|
+
return t.updateEnvironment(a, r, o).then((s) => s(e, n));
|
|
2208
2412
|
}
|
|
2209
2413
|
};
|
|
2210
2414
|
};
|
|
2211
|
-
class
|
|
2415
|
+
class Ge extends x {
|
|
2212
2416
|
/**
|
|
2213
2417
|
* 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.
|
|
2214
2418
|
* @summary Create a new environment
|
|
@@ -2216,8 +2420,8 @@ class ze extends x {
|
|
|
2216
2420
|
* @param {*} [options] Override http request option.
|
|
2217
2421
|
* @throws {RequiredError}
|
|
2218
2422
|
*/
|
|
2219
|
-
createEnvironment(
|
|
2220
|
-
return
|
|
2423
|
+
createEnvironment(n, e) {
|
|
2424
|
+
return w(this.configuration).createEnvironment(n, e).then((t) => t(this.axios, this.basePath));
|
|
2221
2425
|
}
|
|
2222
2426
|
/**
|
|
2223
2427
|
* 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.
|
|
@@ -2226,8 +2430,8 @@ class ze extends x {
|
|
|
2226
2430
|
* @param {*} [options] Override http request option.
|
|
2227
2431
|
* @throws {RequiredError}
|
|
2228
2432
|
*/
|
|
2229
|
-
deleteEnvironment(
|
|
2230
|
-
return
|
|
2433
|
+
deleteEnvironment(n, e) {
|
|
2434
|
+
return w(this.configuration).deleteEnvironment(n, e).then((t) => t(this.axios, this.basePath));
|
|
2231
2435
|
}
|
|
2232
2436
|
/**
|
|
2233
2437
|
* 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.
|
|
@@ -2237,8 +2441,8 @@ class ze extends x {
|
|
|
2237
2441
|
* @param {*} [options] Override http request option.
|
|
2238
2442
|
* @throws {RequiredError}
|
|
2239
2443
|
*/
|
|
2240
|
-
getEnvironment(
|
|
2241
|
-
return
|
|
2444
|
+
getEnvironment(n, e, t) {
|
|
2445
|
+
return w(this.configuration).getEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2242
2446
|
}
|
|
2243
2447
|
/**
|
|
2244
2448
|
* 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`.
|
|
@@ -2246,8 +2450,8 @@ class ze extends x {
|
|
|
2246
2450
|
* @param {*} [options] Override http request option.
|
|
2247
2451
|
* @throws {RequiredError}
|
|
2248
2452
|
*/
|
|
2249
|
-
listEnvironments(
|
|
2250
|
-
return
|
|
2453
|
+
listEnvironments(n) {
|
|
2454
|
+
return w(this.configuration).listEnvironments(n).then((e) => e(this.axios, this.basePath));
|
|
2251
2455
|
}
|
|
2252
2456
|
/**
|
|
2253
2457
|
* 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.
|
|
@@ -2257,11 +2461,11 @@ class ze extends x {
|
|
|
2257
2461
|
* @param {*} [options] Override http request option.
|
|
2258
2462
|
* @throws {RequiredError}
|
|
2259
2463
|
*/
|
|
2260
|
-
updateEnvironment(
|
|
2261
|
-
return
|
|
2464
|
+
updateEnvironment(n, e, t) {
|
|
2465
|
+
return w(this.configuration).updateEnvironment(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
2262
2466
|
}
|
|
2263
2467
|
}
|
|
2264
|
-
const
|
|
2468
|
+
const We = function(c) {
|
|
2265
2469
|
return {
|
|
2266
2470
|
/**
|
|
2267
2471
|
* 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.
|
|
@@ -2272,15 +2476,15 @@ const He = function(c) {
|
|
|
2272
2476
|
* @param {*} [options] Override http request option.
|
|
2273
2477
|
* @throws {RequiredError}
|
|
2274
2478
|
*/
|
|
2275
|
-
createMaterialization: async (
|
|
2276
|
-
|
|
2277
|
-
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(
|
|
2479
|
+
createMaterialization: async (n, e, t, a = {}) => {
|
|
2480
|
+
m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
|
|
2481
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
2278
2482
|
let s;
|
|
2279
2483
|
c && (s = c.baseOptions);
|
|
2280
2484
|
const l = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
2281
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
2485
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
|
|
2282
2486
|
let d = s && s.headers ? s.headers : {};
|
|
2283
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
2487
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
2284
2488
|
url: V(o),
|
|
2285
2489
|
options: l
|
|
2286
2490
|
};
|
|
@@ -2295,15 +2499,15 @@ const He = function(c) {
|
|
|
2295
2499
|
* @param {*} [options] Override http request option.
|
|
2296
2500
|
* @throws {RequiredError}
|
|
2297
2501
|
*/
|
|
2298
|
-
deleteMaterialization: async (
|
|
2299
|
-
|
|
2300
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(
|
|
2502
|
+
deleteMaterialization: async (n, e, t, a, r = {}) => {
|
|
2503
|
+
m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", t);
|
|
2504
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
2301
2505
|
let l;
|
|
2302
2506
|
c && (l = c.baseOptions);
|
|
2303
2507
|
const i = { method: "DELETE", ...l, ...r }, p = {}, d = {};
|
|
2304
|
-
a !== void 0 && (d.dropTables = a), p.Accept = "application/json",
|
|
2305
|
-
let
|
|
2306
|
-
return i.headers = { ...p, ...
|
|
2508
|
+
a !== void 0 && (d.dropTables = a), p.Accept = "application/json", P(s, d);
|
|
2509
|
+
let h = l && l.headers ? l.headers : {};
|
|
2510
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2307
2511
|
url: V(s),
|
|
2308
2512
|
options: i
|
|
2309
2513
|
};
|
|
@@ -2317,13 +2521,13 @@ const He = function(c) {
|
|
|
2317
2521
|
* @param {*} [options] Override http request option.
|
|
2318
2522
|
* @throws {RequiredError}
|
|
2319
2523
|
*/
|
|
2320
|
-
getMaterialization: async (
|
|
2321
|
-
|
|
2322
|
-
const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(
|
|
2524
|
+
getMaterialization: async (n, e, t, a = {}) => {
|
|
2525
|
+
m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", t);
|
|
2526
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r, v);
|
|
2323
2527
|
let s;
|
|
2324
2528
|
c && (s = c.baseOptions);
|
|
2325
2529
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2326
|
-
i.Accept = "application/json",
|
|
2530
|
+
i.Accept = "application/json", P(o, p);
|
|
2327
2531
|
let d = s && s.headers ? s.headers : {};
|
|
2328
2532
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
2329
2533
|
url: V(o),
|
|
@@ -2340,15 +2544,15 @@ const He = function(c) {
|
|
|
2340
2544
|
* @param {*} [options] Override http request option.
|
|
2341
2545
|
* @throws {RequiredError}
|
|
2342
2546
|
*/
|
|
2343
|
-
listMaterializations: async (
|
|
2344
|
-
|
|
2345
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(
|
|
2547
|
+
listMaterializations: async (n, e, t, a, r = {}) => {
|
|
2548
|
+
m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
|
|
2549
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, v);
|
|
2346
2550
|
let l;
|
|
2347
2551
|
c && (l = c.baseOptions);
|
|
2348
2552
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
2349
|
-
|
|
2350
|
-
let
|
|
2351
|
-
return i.headers = { ...p, ...
|
|
2553
|
+
t !== void 0 && (d.limit = t), a !== void 0 && (d.offset = a), p.Accept = "application/json", P(s, d);
|
|
2554
|
+
let h = l && l.headers ? l.headers : {};
|
|
2555
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2352
2556
|
url: V(s),
|
|
2353
2557
|
options: i
|
|
2354
2558
|
};
|
|
@@ -2363,22 +2567,22 @@ const He = function(c) {
|
|
|
2363
2567
|
* @param {*} [options] Override http request option.
|
|
2364
2568
|
* @throws {RequiredError}
|
|
2365
2569
|
*/
|
|
2366
|
-
materializationAction: async (
|
|
2367
|
-
|
|
2368
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(
|
|
2570
|
+
materializationAction: async (n, e, t, a, r = {}) => {
|
|
2571
|
+
m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", t), m("materializationAction", "action", a);
|
|
2572
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
2369
2573
|
let l;
|
|
2370
2574
|
c && (l = c.baseOptions);
|
|
2371
2575
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
2372
|
-
a !== void 0 && (d.action = a), p.Accept = "application/json",
|
|
2373
|
-
let
|
|
2374
|
-
return i.headers = { ...p, ...
|
|
2576
|
+
a !== void 0 && (d.action = a), p.Accept = "application/json", P(s, d);
|
|
2577
|
+
let h = l && l.headers ? l.headers : {};
|
|
2578
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2375
2579
|
url: V(s),
|
|
2376
2580
|
options: i
|
|
2377
2581
|
};
|
|
2378
2582
|
}
|
|
2379
2583
|
};
|
|
2380
|
-
},
|
|
2381
|
-
const
|
|
2584
|
+
}, E = function(c) {
|
|
2585
|
+
const n = We(c);
|
|
2382
2586
|
return {
|
|
2383
2587
|
/**
|
|
2384
2588
|
* 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.
|
|
@@ -2389,9 +2593,9 @@ const He = function(c) {
|
|
|
2389
2593
|
* @param {*} [options] Override http request option.
|
|
2390
2594
|
* @throws {RequiredError}
|
|
2391
2595
|
*/
|
|
2392
|
-
async createMaterialization(e,
|
|
2393
|
-
const o = await
|
|
2394
|
-
return (i, p) =>
|
|
2596
|
+
async createMaterialization(e, t, a, r) {
|
|
2597
|
+
const o = await n.createMaterialization(e, t, a, r), s = c?.serverIndex ?? 0, l = b["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2598
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
2395
2599
|
},
|
|
2396
2600
|
/**
|
|
2397
2601
|
* 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.
|
|
@@ -2403,9 +2607,9 @@ const He = function(c) {
|
|
|
2403
2607
|
* @param {*} [options] Override http request option.
|
|
2404
2608
|
* @throws {RequiredError}
|
|
2405
2609
|
*/
|
|
2406
|
-
async deleteMaterialization(e,
|
|
2407
|
-
const s = await
|
|
2408
|
-
return (p, d) =>
|
|
2610
|
+
async deleteMaterialization(e, t, a, r, o) {
|
|
2611
|
+
const s = await n.deleteMaterialization(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.deleteMaterialization"]?.[l]?.url;
|
|
2612
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
2409
2613
|
},
|
|
2410
2614
|
/**
|
|
2411
2615
|
*
|
|
@@ -2416,9 +2620,9 @@ const He = function(c) {
|
|
|
2416
2620
|
* @param {*} [options] Override http request option.
|
|
2417
2621
|
* @throws {RequiredError}
|
|
2418
2622
|
*/
|
|
2419
|
-
async getMaterialization(e,
|
|
2420
|
-
const o = await
|
|
2421
|
-
return (i, p) =>
|
|
2623
|
+
async getMaterialization(e, t, a, r) {
|
|
2624
|
+
const o = await n.getMaterialization(e, t, a, r), s = c?.serverIndex ?? 0, l = b["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2625
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
2422
2626
|
},
|
|
2423
2627
|
/**
|
|
2424
2628
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2430,9 +2634,9 @@ const He = function(c) {
|
|
|
2430
2634
|
* @param {*} [options] Override http request option.
|
|
2431
2635
|
* @throws {RequiredError}
|
|
2432
2636
|
*/
|
|
2433
|
-
async listMaterializations(e,
|
|
2434
|
-
const s = await
|
|
2435
|
-
return (p, d) =>
|
|
2637
|
+
async listMaterializations(e, t, a, r, o) {
|
|
2638
|
+
const s = await n.listMaterializations(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.listMaterializations"]?.[l]?.url;
|
|
2639
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
2436
2640
|
},
|
|
2437
2641
|
/**
|
|
2438
2642
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2444,13 +2648,13 @@ const He = function(c) {
|
|
|
2444
2648
|
* @param {*} [options] Override http request option.
|
|
2445
2649
|
* @throws {RequiredError}
|
|
2446
2650
|
*/
|
|
2447
|
-
async materializationAction(e,
|
|
2448
|
-
const s = await
|
|
2449
|
-
return (p, d) =>
|
|
2651
|
+
async materializationAction(e, t, a, r, o) {
|
|
2652
|
+
const s = await n.materializationAction(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["MaterializationsApi.materializationAction"]?.[l]?.url;
|
|
2653
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
2450
2654
|
}
|
|
2451
2655
|
};
|
|
2452
|
-
},
|
|
2453
|
-
const
|
|
2656
|
+
}, Ht = function(c, n, e) {
|
|
2657
|
+
const t = E(c);
|
|
2454
2658
|
return {
|
|
2455
2659
|
/**
|
|
2456
2660
|
* 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.
|
|
@@ -2462,7 +2666,7 @@ const He = function(c) {
|
|
|
2462
2666
|
* @throws {RequiredError}
|
|
2463
2667
|
*/
|
|
2464
2668
|
createMaterialization(a, r, o, s) {
|
|
2465
|
-
return
|
|
2669
|
+
return t.createMaterialization(a, r, o, s).then((l) => l(e, n));
|
|
2466
2670
|
},
|
|
2467
2671
|
/**
|
|
2468
2672
|
* 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.
|
|
@@ -2475,7 +2679,7 @@ const He = function(c) {
|
|
|
2475
2679
|
* @throws {RequiredError}
|
|
2476
2680
|
*/
|
|
2477
2681
|
deleteMaterialization(a, r, o, s, l) {
|
|
2478
|
-
return
|
|
2682
|
+
return t.deleteMaterialization(a, r, o, s, l).then((i) => i(e, n));
|
|
2479
2683
|
},
|
|
2480
2684
|
/**
|
|
2481
2685
|
*
|
|
@@ -2487,7 +2691,7 @@ const He = function(c) {
|
|
|
2487
2691
|
* @throws {RequiredError}
|
|
2488
2692
|
*/
|
|
2489
2693
|
getMaterialization(a, r, o, s) {
|
|
2490
|
-
return
|
|
2694
|
+
return t.getMaterialization(a, r, o, s).then((l) => l(e, n));
|
|
2491
2695
|
},
|
|
2492
2696
|
/**
|
|
2493
2697
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2500,7 +2704,7 @@ const He = function(c) {
|
|
|
2500
2704
|
* @throws {RequiredError}
|
|
2501
2705
|
*/
|
|
2502
2706
|
listMaterializations(a, r, o, s, l) {
|
|
2503
|
-
return
|
|
2707
|
+
return t.listMaterializations(a, r, o, s, l).then((i) => i(e, n));
|
|
2504
2708
|
},
|
|
2505
2709
|
/**
|
|
2506
2710
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2513,11 +2717,11 @@ const He = function(c) {
|
|
|
2513
2717
|
* @throws {RequiredError}
|
|
2514
2718
|
*/
|
|
2515
2719
|
materializationAction(a, r, o, s, l) {
|
|
2516
|
-
return
|
|
2720
|
+
return t.materializationAction(a, r, o, s, l).then((i) => i(e, n));
|
|
2517
2721
|
}
|
|
2518
2722
|
};
|
|
2519
2723
|
};
|
|
2520
|
-
class
|
|
2724
|
+
class $e extends x {
|
|
2521
2725
|
/**
|
|
2522
2726
|
* 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.
|
|
2523
2727
|
* @summary Create a materialization
|
|
@@ -2527,8 +2731,8 @@ class _e extends x {
|
|
|
2527
2731
|
* @param {*} [options] Override http request option.
|
|
2528
2732
|
* @throws {RequiredError}
|
|
2529
2733
|
*/
|
|
2530
|
-
createMaterialization(
|
|
2531
|
-
return
|
|
2734
|
+
createMaterialization(n, e, t, a) {
|
|
2735
|
+
return E(this.configuration).createMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2532
2736
|
}
|
|
2533
2737
|
/**
|
|
2534
2738
|
* 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.
|
|
@@ -2540,8 +2744,8 @@ class _e extends x {
|
|
|
2540
2744
|
* @param {*} [options] Override http request option.
|
|
2541
2745
|
* @throws {RequiredError}
|
|
2542
2746
|
*/
|
|
2543
|
-
deleteMaterialization(
|
|
2544
|
-
return
|
|
2747
|
+
deleteMaterialization(n, e, t, a, r) {
|
|
2748
|
+
return E(this.configuration).deleteMaterialization(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2545
2749
|
}
|
|
2546
2750
|
/**
|
|
2547
2751
|
*
|
|
@@ -2552,8 +2756,8 @@ class _e extends x {
|
|
|
2552
2756
|
* @param {*} [options] Override http request option.
|
|
2553
2757
|
* @throws {RequiredError}
|
|
2554
2758
|
*/
|
|
2555
|
-
getMaterialization(
|
|
2556
|
-
return
|
|
2759
|
+
getMaterialization(n, e, t, a) {
|
|
2760
|
+
return E(this.configuration).getMaterialization(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2557
2761
|
}
|
|
2558
2762
|
/**
|
|
2559
2763
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2565,8 +2769,8 @@ class _e extends x {
|
|
|
2565
2769
|
* @param {*} [options] Override http request option.
|
|
2566
2770
|
* @throws {RequiredError}
|
|
2567
2771
|
*/
|
|
2568
|
-
listMaterializations(
|
|
2569
|
-
return
|
|
2772
|
+
listMaterializations(n, e, t, a, r) {
|
|
2773
|
+
return E(this.configuration).listMaterializations(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2570
2774
|
}
|
|
2571
2775
|
/**
|
|
2572
2776
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2578,13 +2782,13 @@ class _e extends x {
|
|
|
2578
2782
|
* @param {*} [options] Override http request option.
|
|
2579
2783
|
* @throws {RequiredError}
|
|
2580
2784
|
*/
|
|
2581
|
-
materializationAction(
|
|
2582
|
-
return
|
|
2785
|
+
materializationAction(n, e, t, a, r) {
|
|
2786
|
+
return E(this.configuration).materializationAction(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2583
2787
|
}
|
|
2584
2788
|
}
|
|
2585
|
-
const
|
|
2789
|
+
const _t = {
|
|
2586
2790
|
Stop: "stop"
|
|
2587
|
-
},
|
|
2791
|
+
}, Ke = function(c) {
|
|
2588
2792
|
return {
|
|
2589
2793
|
/**
|
|
2590
2794
|
* 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.
|
|
@@ -2596,15 +2800,15 @@ const Bt = {
|
|
|
2596
2800
|
* @param {*} [options] Override http request option.
|
|
2597
2801
|
* @throws {RequiredError}
|
|
2598
2802
|
*/
|
|
2599
|
-
compileModelSource: async (
|
|
2600
|
-
|
|
2601
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(
|
|
2803
|
+
compileModelSource: async (n, e, t, a, r = {}) => {
|
|
2804
|
+
m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", t), m("compileModelSource", "compileRequest", a);
|
|
2805
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
2602
2806
|
let l;
|
|
2603
2807
|
c && (l = c.baseOptions);
|
|
2604
2808
|
const i = { method: "POST", ...l, ...r }, p = {}, d = {};
|
|
2605
|
-
p["Content-Type"] = "application/json", p.Accept = "application/json",
|
|
2606
|
-
let
|
|
2607
|
-
return i.headers = { ...p, ...
|
|
2809
|
+
p["Content-Type"] = "application/json", p.Accept = "application/json", P(s, d);
|
|
2810
|
+
let h = l && l.headers ? l.headers : {};
|
|
2811
|
+
return i.headers = { ...p, ...h, ...r.headers }, i.data = A(a, i, c), {
|
|
2608
2812
|
url: V(s),
|
|
2609
2813
|
options: i
|
|
2610
2814
|
};
|
|
@@ -2620,15 +2824,15 @@ const Bt = {
|
|
|
2620
2824
|
* @param {*} [options] Override http request option.
|
|
2621
2825
|
* @throws {RequiredError}
|
|
2622
2826
|
*/
|
|
2623
|
-
executeQueryModel: async (
|
|
2624
|
-
|
|
2625
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(
|
|
2827
|
+
executeQueryModel: async (n, e, t, a, r, o = {}) => {
|
|
2828
|
+
m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", t), m("executeQueryModel", "queryRequest", a);
|
|
2829
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, v);
|
|
2626
2830
|
let i;
|
|
2627
2831
|
c && (i = c.baseOptions);
|
|
2628
|
-
const p = { method: "POST", ...i, ...o }, d = {},
|
|
2629
|
-
r !== void 0 && (
|
|
2630
|
-
let
|
|
2631
|
-
return p.headers = { ...d, ...
|
|
2832
|
+
const p = { method: "POST", ...i, ...o }, d = {}, h = {};
|
|
2833
|
+
r !== void 0 && (h.includeHiddenFilesAndSources = r), d["Content-Type"] = "application/json", d.Accept = "application/json", P(l, h);
|
|
2834
|
+
let O = i && i.headers ? i.headers : {};
|
|
2835
|
+
return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
|
|
2632
2836
|
url: V(l),
|
|
2633
2837
|
options: p
|
|
2634
2838
|
};
|
|
@@ -2644,15 +2848,15 @@ const Bt = {
|
|
|
2644
2848
|
* @param {*} [options] Override http request option.
|
|
2645
2849
|
* @throws {RequiredError}
|
|
2646
2850
|
*/
|
|
2647
|
-
getModel: async (
|
|
2648
|
-
|
|
2649
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
2851
|
+
getModel: async (n, e, t, a, r, o = {}) => {
|
|
2852
|
+
m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", t);
|
|
2853
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, v);
|
|
2650
2854
|
let i;
|
|
2651
2855
|
c && (i = c.baseOptions);
|
|
2652
|
-
const p = { method: "GET", ...i, ...o }, d = {},
|
|
2653
|
-
a !== void 0 && (
|
|
2654
|
-
let
|
|
2655
|
-
return p.headers = { ...d, ...
|
|
2856
|
+
const p = { method: "GET", ...i, ...o }, d = {}, h = {};
|
|
2857
|
+
a !== void 0 && (h.versionId = a), r !== void 0 && (h.includeHiddenFilesAndSources = r), d.Accept = "application/json", P(l, h);
|
|
2858
|
+
let O = i && i.headers ? i.headers : {};
|
|
2859
|
+
return p.headers = { ...d, ...O, ...o.headers }, {
|
|
2656
2860
|
url: V(l),
|
|
2657
2861
|
options: p
|
|
2658
2862
|
};
|
|
@@ -2667,15 +2871,15 @@ const Bt = {
|
|
|
2667
2871
|
* @param {*} [options] Override http request option.
|
|
2668
2872
|
* @throws {RequiredError}
|
|
2669
2873
|
*/
|
|
2670
|
-
listModels: async (
|
|
2671
|
-
|
|
2672
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(
|
|
2874
|
+
listModels: async (n, e, t, a, r = {}) => {
|
|
2875
|
+
m("listModels", "environmentName", n), m("listModels", "packageName", e);
|
|
2876
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, v);
|
|
2673
2877
|
let l;
|
|
2674
2878
|
c && (l = c.baseOptions);
|
|
2675
2879
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
2676
|
-
|
|
2677
|
-
let
|
|
2678
|
-
return i.headers = { ...p, ...
|
|
2880
|
+
t !== void 0 && (d.versionId = t), a !== void 0 && (d.includeHiddenFilesAndSources = a), p.Accept = "application/json", P(s, d);
|
|
2881
|
+
let h = l && l.headers ? l.headers : {};
|
|
2882
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2679
2883
|
url: V(s),
|
|
2680
2884
|
options: i
|
|
2681
2885
|
};
|
|
@@ -2691,22 +2895,22 @@ const Bt = {
|
|
|
2691
2895
|
* @param {*} [options] Override http request option.
|
|
2692
2896
|
* @throws {RequiredError}
|
|
2693
2897
|
*/
|
|
2694
|
-
updateModelSource: async (
|
|
2695
|
-
|
|
2696
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
2898
|
+
updateModelSource: async (n, e, t, a, r, o = {}) => {
|
|
2899
|
+
m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", t), m("updateModelSource", "modelSourceWriteRequest", a);
|
|
2900
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), l = new URL(s, v);
|
|
2697
2901
|
let i;
|
|
2698
2902
|
c && (i = c.baseOptions);
|
|
2699
|
-
const p = { method: "PUT", ...i, ...o }, d = {},
|
|
2700
|
-
r !== void 0 && (
|
|
2701
|
-
let
|
|
2702
|
-
return p.headers = { ...d, ...
|
|
2903
|
+
const p = { method: "PUT", ...i, ...o }, d = {}, h = {};
|
|
2904
|
+
r !== void 0 && (h.versionId = r), d["Content-Type"] = "application/json", d.Accept = "application/json", P(l, h);
|
|
2905
|
+
let O = i && i.headers ? i.headers : {};
|
|
2906
|
+
return p.headers = { ...d, ...O, ...o.headers }, p.data = A(a, p, c), {
|
|
2703
2907
|
url: V(l),
|
|
2704
2908
|
options: p
|
|
2705
2909
|
};
|
|
2706
2910
|
}
|
|
2707
2911
|
};
|
|
2708
2912
|
}, f = function(c) {
|
|
2709
|
-
const
|
|
2913
|
+
const n = Ke(c);
|
|
2710
2914
|
return {
|
|
2711
2915
|
/**
|
|
2712
2916
|
* 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.
|
|
@@ -2718,9 +2922,9 @@ const Bt = {
|
|
|
2718
2922
|
* @param {*} [options] Override http request option.
|
|
2719
2923
|
* @throws {RequiredError}
|
|
2720
2924
|
*/
|
|
2721
|
-
async compileModelSource(e,
|
|
2722
|
-
const s = await
|
|
2723
|
-
return (p, d) =>
|
|
2925
|
+
async compileModelSource(e, t, a, r, o) {
|
|
2926
|
+
const s = await n.compileModelSource(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ModelsApi.compileModelSource"]?.[l]?.url;
|
|
2927
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
2724
2928
|
},
|
|
2725
2929
|
/**
|
|
2726
2930
|
* 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.
|
|
@@ -2733,9 +2937,9 @@ const Bt = {
|
|
|
2733
2937
|
* @param {*} [options] Override http request option.
|
|
2734
2938
|
* @throws {RequiredError}
|
|
2735
2939
|
*/
|
|
2736
|
-
async executeQueryModel(e,
|
|
2737
|
-
const l = await
|
|
2738
|
-
return (d,
|
|
2940
|
+
async executeQueryModel(e, t, a, r, o, s) {
|
|
2941
|
+
const l = await n.executeQueryModel(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.executeQueryModel"]?.[i]?.url;
|
|
2942
|
+
return (d, h) => S(l, u, g, c)(d, p || h);
|
|
2739
2943
|
},
|
|
2740
2944
|
/**
|
|
2741
2945
|
* 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.
|
|
@@ -2748,9 +2952,9 @@ const Bt = {
|
|
|
2748
2952
|
* @param {*} [options] Override http request option.
|
|
2749
2953
|
* @throws {RequiredError}
|
|
2750
2954
|
*/
|
|
2751
|
-
async getModel(e,
|
|
2752
|
-
const l = await
|
|
2753
|
-
return (d,
|
|
2955
|
+
async getModel(e, t, a, r, o, s) {
|
|
2956
|
+
const l = await n.getModel(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.getModel"]?.[i]?.url;
|
|
2957
|
+
return (d, h) => S(l, u, g, c)(d, p || h);
|
|
2754
2958
|
},
|
|
2755
2959
|
/**
|
|
2756
2960
|
* 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.
|
|
@@ -2762,9 +2966,9 @@ const Bt = {
|
|
|
2762
2966
|
* @param {*} [options] Override http request option.
|
|
2763
2967
|
* @throws {RequiredError}
|
|
2764
2968
|
*/
|
|
2765
|
-
async listModels(e,
|
|
2766
|
-
const s = await
|
|
2767
|
-
return (p, d) =>
|
|
2969
|
+
async listModels(e, t, a, r, o) {
|
|
2970
|
+
const s = await n.listModels(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ModelsApi.listModels"]?.[l]?.url;
|
|
2971
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
2768
2972
|
},
|
|
2769
2973
|
/**
|
|
2770
2974
|
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
@@ -2777,13 +2981,13 @@ const Bt = {
|
|
|
2777
2981
|
* @param {*} [options] Override http request option.
|
|
2778
2982
|
* @throws {RequiredError}
|
|
2779
2983
|
*/
|
|
2780
|
-
async updateModelSource(e,
|
|
2781
|
-
const l = await
|
|
2782
|
-
return (d,
|
|
2984
|
+
async updateModelSource(e, t, a, r, o, s) {
|
|
2985
|
+
const l = await n.updateModelSource(e, t, a, r, o, s), i = c?.serverIndex ?? 0, p = b["ModelsApi.updateModelSource"]?.[i]?.url;
|
|
2986
|
+
return (d, h) => S(l, u, g, c)(d, p || h);
|
|
2783
2987
|
}
|
|
2784
2988
|
};
|
|
2785
|
-
},
|
|
2786
|
-
const
|
|
2989
|
+
}, Gt = function(c, n, e) {
|
|
2990
|
+
const t = f(c);
|
|
2787
2991
|
return {
|
|
2788
2992
|
/**
|
|
2789
2993
|
* 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.
|
|
@@ -2796,7 +3000,7 @@ const Bt = {
|
|
|
2796
3000
|
* @throws {RequiredError}
|
|
2797
3001
|
*/
|
|
2798
3002
|
compileModelSource(a, r, o, s, l) {
|
|
2799
|
-
return
|
|
3003
|
+
return t.compileModelSource(a, r, o, s, l).then((i) => i(e, n));
|
|
2800
3004
|
},
|
|
2801
3005
|
/**
|
|
2802
3006
|
* 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.
|
|
@@ -2810,7 +3014,7 @@ const Bt = {
|
|
|
2810
3014
|
* @throws {RequiredError}
|
|
2811
3015
|
*/
|
|
2812
3016
|
executeQueryModel(a, r, o, s, l, i) {
|
|
2813
|
-
return
|
|
3017
|
+
return t.executeQueryModel(a, r, o, s, l, i).then((p) => p(e, n));
|
|
2814
3018
|
},
|
|
2815
3019
|
/**
|
|
2816
3020
|
* 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.
|
|
@@ -2824,7 +3028,7 @@ const Bt = {
|
|
|
2824
3028
|
* @throws {RequiredError}
|
|
2825
3029
|
*/
|
|
2826
3030
|
getModel(a, r, o, s, l, i) {
|
|
2827
|
-
return
|
|
3031
|
+
return t.getModel(a, r, o, s, l, i).then((p) => p(e, n));
|
|
2828
3032
|
},
|
|
2829
3033
|
/**
|
|
2830
3034
|
* 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.
|
|
@@ -2837,7 +3041,7 @@ const Bt = {
|
|
|
2837
3041
|
* @throws {RequiredError}
|
|
2838
3042
|
*/
|
|
2839
3043
|
listModels(a, r, o, s, l) {
|
|
2840
|
-
return
|
|
3044
|
+
return t.listModels(a, r, o, s, l).then((i) => i(e, n));
|
|
2841
3045
|
},
|
|
2842
3046
|
/**
|
|
2843
3047
|
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
@@ -2851,11 +3055,11 @@ const Bt = {
|
|
|
2851
3055
|
* @throws {RequiredError}
|
|
2852
3056
|
*/
|
|
2853
3057
|
updateModelSource(a, r, o, s, l, i) {
|
|
2854
|
-
return
|
|
3058
|
+
return t.updateModelSource(a, r, o, s, l, i).then((p) => p(e, n));
|
|
2855
3059
|
}
|
|
2856
3060
|
};
|
|
2857
3061
|
};
|
|
2858
|
-
class
|
|
3062
|
+
class Ye extends x {
|
|
2859
3063
|
/**
|
|
2860
3064
|
* 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.
|
|
2861
3065
|
* @summary Compile Malloy source code
|
|
@@ -2866,8 +3070,8 @@ class Ge extends x {
|
|
|
2866
3070
|
* @param {*} [options] Override http request option.
|
|
2867
3071
|
* @throws {RequiredError}
|
|
2868
3072
|
*/
|
|
2869
|
-
compileModelSource(
|
|
2870
|
-
return f(this.configuration).compileModelSource(
|
|
3073
|
+
compileModelSource(n, e, t, a, r) {
|
|
3074
|
+
return f(this.configuration).compileModelSource(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2871
3075
|
}
|
|
2872
3076
|
/**
|
|
2873
3077
|
* 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.
|
|
@@ -2880,8 +3084,8 @@ class Ge extends x {
|
|
|
2880
3084
|
* @param {*} [options] Override http request option.
|
|
2881
3085
|
* @throws {RequiredError}
|
|
2882
3086
|
*/
|
|
2883
|
-
executeQueryModel(
|
|
2884
|
-
return f(this.configuration).executeQueryModel(
|
|
3087
|
+
executeQueryModel(n, e, t, a, r, o) {
|
|
3088
|
+
return f(this.configuration).executeQueryModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
2885
3089
|
}
|
|
2886
3090
|
/**
|
|
2887
3091
|
* 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.
|
|
@@ -2894,8 +3098,8 @@ class Ge extends x {
|
|
|
2894
3098
|
* @param {*} [options] Override http request option.
|
|
2895
3099
|
* @throws {RequiredError}
|
|
2896
3100
|
*/
|
|
2897
|
-
getModel(
|
|
2898
|
-
return f(this.configuration).getModel(
|
|
3101
|
+
getModel(n, e, t, a, r, o) {
|
|
3102
|
+
return f(this.configuration).getModel(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
2899
3103
|
}
|
|
2900
3104
|
/**
|
|
2901
3105
|
* 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.
|
|
@@ -2907,8 +3111,8 @@ class Ge extends x {
|
|
|
2907
3111
|
* @param {*} [options] Override http request option.
|
|
2908
3112
|
* @throws {RequiredError}
|
|
2909
3113
|
*/
|
|
2910
|
-
listModels(
|
|
2911
|
-
return f(this.configuration).listModels(
|
|
3114
|
+
listModels(n, e, t, a, r) {
|
|
3115
|
+
return f(this.configuration).listModels(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
2912
3116
|
}
|
|
2913
3117
|
/**
|
|
2914
3118
|
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
@@ -2921,11 +3125,11 @@ class Ge extends x {
|
|
|
2921
3125
|
* @param {*} [options] Override http request option.
|
|
2922
3126
|
* @throws {RequiredError}
|
|
2923
3127
|
*/
|
|
2924
|
-
updateModelSource(
|
|
2925
|
-
return f(this.configuration).updateModelSource(
|
|
3128
|
+
updateModelSource(n, e, t, a, r, o) {
|
|
3129
|
+
return f(this.configuration).updateModelSource(n, e, t, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
2926
3130
|
}
|
|
2927
3131
|
}
|
|
2928
|
-
const
|
|
3132
|
+
const Je = function(c) {
|
|
2929
3133
|
return {
|
|
2930
3134
|
/**
|
|
2931
3135
|
* **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.
|
|
@@ -2942,17 +3146,17 @@ const $e = function(c) {
|
|
|
2942
3146
|
* @deprecated
|
|
2943
3147
|
* @throws {RequiredError}
|
|
2944
3148
|
*/
|
|
2945
|
-
executeNotebookCell: async (
|
|
2946
|
-
|
|
2947
|
-
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(
|
|
2948
|
-
let
|
|
2949
|
-
c && (
|
|
2950
|
-
const
|
|
2951
|
-
r !== void 0 && (C.versionId = r), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), l !== void 0 && (C.givens = l), k.Accept = "application/json",
|
|
2952
|
-
let R =
|
|
2953
|
-
return
|
|
3149
|
+
executeNotebookCell: async (n, e, t, a, r, o, s, l, i = {}) => {
|
|
3150
|
+
m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", t), m("executeNotebookCell", "cellIndex", a);
|
|
3151
|
+
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), d = new URL(p, v);
|
|
3152
|
+
let h;
|
|
3153
|
+
c && (h = c.baseOptions);
|
|
3154
|
+
const O = { method: "GET", ...h, ...i }, k = {}, C = {};
|
|
3155
|
+
r !== void 0 && (C.versionId = r), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), l !== void 0 && (C.givens = l), k.Accept = "application/json", P(d, C);
|
|
3156
|
+
let R = h && h.headers ? h.headers : {};
|
|
3157
|
+
return O.headers = { ...k, ...R, ...i.headers }, {
|
|
2954
3158
|
url: V(d),
|
|
2955
|
-
options:
|
|
3159
|
+
options: O
|
|
2956
3160
|
};
|
|
2957
3161
|
},
|
|
2958
3162
|
/**
|
|
@@ -2966,15 +3170,15 @@ const $e = function(c) {
|
|
|
2966
3170
|
* @deprecated
|
|
2967
3171
|
* @throws {RequiredError}
|
|
2968
3172
|
*/
|
|
2969
|
-
getNotebook: async (
|
|
2970
|
-
|
|
2971
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
3173
|
+
getNotebook: async (n, e, t, a, r = {}) => {
|
|
3174
|
+
m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", t);
|
|
3175
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
2972
3176
|
let l;
|
|
2973
3177
|
c && (l = c.baseOptions);
|
|
2974
3178
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
2975
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
2976
|
-
let
|
|
2977
|
-
return i.headers = { ...p, ...
|
|
3179
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", P(s, d);
|
|
3180
|
+
let h = l && l.headers ? l.headers : {};
|
|
3181
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
2978
3182
|
url: V(s),
|
|
2979
3183
|
options: i
|
|
2980
3184
|
};
|
|
@@ -2989,13 +3193,13 @@ const $e = function(c) {
|
|
|
2989
3193
|
* @deprecated
|
|
2990
3194
|
* @throws {RequiredError}
|
|
2991
3195
|
*/
|
|
2992
|
-
listNotebooks: async (
|
|
2993
|
-
|
|
2994
|
-
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(
|
|
3196
|
+
listNotebooks: async (n, e, t, a = {}) => {
|
|
3197
|
+
m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
|
|
3198
|
+
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
2995
3199
|
let s;
|
|
2996
3200
|
c && (s = c.baseOptions);
|
|
2997
3201
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2998
|
-
|
|
3202
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
|
|
2999
3203
|
let d = s && s.headers ? s.headers : {};
|
|
3000
3204
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
3001
3205
|
url: V(o),
|
|
@@ -3003,8 +3207,8 @@ const $e = function(c) {
|
|
|
3003
3207
|
};
|
|
3004
3208
|
}
|
|
3005
3209
|
};
|
|
3006
|
-
},
|
|
3007
|
-
const
|
|
3210
|
+
}, L = function(c) {
|
|
3211
|
+
const n = Je(c);
|
|
3008
3212
|
return {
|
|
3009
3213
|
/**
|
|
3010
3214
|
* **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.
|
|
@@ -3021,9 +3225,9 @@ const $e = function(c) {
|
|
|
3021
3225
|
* @deprecated
|
|
3022
3226
|
* @throws {RequiredError}
|
|
3023
3227
|
*/
|
|
3024
|
-
async executeNotebookCell(e,
|
|
3025
|
-
const d = await
|
|
3026
|
-
return (k, C) =>
|
|
3228
|
+
async executeNotebookCell(e, t, a, r, o, s, l, i, p) {
|
|
3229
|
+
const d = await n.executeNotebookCell(e, t, a, r, o, s, l, i, p), h = c?.serverIndex ?? 0, O = b["NotebooksApi.executeNotebookCell"]?.[h]?.url;
|
|
3230
|
+
return (k, C) => S(d, u, g, c)(k, O || C);
|
|
3027
3231
|
},
|
|
3028
3232
|
/**
|
|
3029
3233
|
* **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.
|
|
@@ -3036,9 +3240,9 @@ const $e = function(c) {
|
|
|
3036
3240
|
* @deprecated
|
|
3037
3241
|
* @throws {RequiredError}
|
|
3038
3242
|
*/
|
|
3039
|
-
async getNotebook(e,
|
|
3040
|
-
const s = await
|
|
3041
|
-
return (p, d) =>
|
|
3243
|
+
async getNotebook(e, t, a, r, o) {
|
|
3244
|
+
const s = await n.getNotebook(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["NotebooksApi.getNotebook"]?.[l]?.url;
|
|
3245
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
3042
3246
|
},
|
|
3043
3247
|
/**
|
|
3044
3248
|
* **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.
|
|
@@ -3050,13 +3254,13 @@ const $e = function(c) {
|
|
|
3050
3254
|
* @deprecated
|
|
3051
3255
|
* @throws {RequiredError}
|
|
3052
3256
|
*/
|
|
3053
|
-
async listNotebooks(e,
|
|
3054
|
-
const o = await
|
|
3055
|
-
return (i, p) =>
|
|
3257
|
+
async listNotebooks(e, t, a, r) {
|
|
3258
|
+
const o = await n.listNotebooks(e, t, a, r), s = c?.serverIndex ?? 0, l = b["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
3259
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
3056
3260
|
}
|
|
3057
3261
|
};
|
|
3058
|
-
},
|
|
3059
|
-
const
|
|
3262
|
+
}, Wt = function(c, n, e) {
|
|
3263
|
+
const t = L(c);
|
|
3060
3264
|
return {
|
|
3061
3265
|
/**
|
|
3062
3266
|
* **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.
|
|
@@ -3073,8 +3277,8 @@ const $e = function(c) {
|
|
|
3073
3277
|
* @deprecated
|
|
3074
3278
|
* @throws {RequiredError}
|
|
3075
3279
|
*/
|
|
3076
|
-
executeNotebookCell(a, r, o, s, l, i, p, d,
|
|
3077
|
-
return
|
|
3280
|
+
executeNotebookCell(a, r, o, s, l, i, p, d, h) {
|
|
3281
|
+
return t.executeNotebookCell(a, r, o, s, l, i, p, d, h).then((O) => O(e, n));
|
|
3078
3282
|
},
|
|
3079
3283
|
/**
|
|
3080
3284
|
* **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.
|
|
@@ -3088,7 +3292,7 @@ const $e = function(c) {
|
|
|
3088
3292
|
* @throws {RequiredError}
|
|
3089
3293
|
*/
|
|
3090
3294
|
getNotebook(a, r, o, s, l) {
|
|
3091
|
-
return
|
|
3295
|
+
return t.getNotebook(a, r, o, s, l).then((i) => i(e, n));
|
|
3092
3296
|
},
|
|
3093
3297
|
/**
|
|
3094
3298
|
* **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.
|
|
@@ -3101,11 +3305,11 @@ const $e = function(c) {
|
|
|
3101
3305
|
* @throws {RequiredError}
|
|
3102
3306
|
*/
|
|
3103
3307
|
listNotebooks(a, r, o, s) {
|
|
3104
|
-
return
|
|
3308
|
+
return t.listNotebooks(a, r, o, s).then((l) => l(e, n));
|
|
3105
3309
|
}
|
|
3106
3310
|
};
|
|
3107
3311
|
};
|
|
3108
|
-
class
|
|
3312
|
+
class Xe extends x {
|
|
3109
3313
|
/**
|
|
3110
3314
|
* **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.
|
|
3111
3315
|
* @summary Execute a specific notebook cell (deprecated)
|
|
@@ -3121,8 +3325,8 @@ class Ke extends x {
|
|
|
3121
3325
|
* @deprecated
|
|
3122
3326
|
* @throws {RequiredError}
|
|
3123
3327
|
*/
|
|
3124
|
-
executeNotebookCell(
|
|
3125
|
-
return
|
|
3328
|
+
executeNotebookCell(n, e, t, a, r, o, s, l, i) {
|
|
3329
|
+
return L(this.configuration).executeNotebookCell(n, e, t, a, r, o, s, l, i).then((p) => p(this.axios, this.basePath));
|
|
3126
3330
|
}
|
|
3127
3331
|
/**
|
|
3128
3332
|
* **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.
|
|
@@ -3135,8 +3339,8 @@ class Ke extends x {
|
|
|
3135
3339
|
* @deprecated
|
|
3136
3340
|
* @throws {RequiredError}
|
|
3137
3341
|
*/
|
|
3138
|
-
getNotebook(
|
|
3139
|
-
return
|
|
3342
|
+
getNotebook(n, e, t, a, r) {
|
|
3343
|
+
return L(this.configuration).getNotebook(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
3140
3344
|
}
|
|
3141
3345
|
/**
|
|
3142
3346
|
* **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.
|
|
@@ -3148,14 +3352,14 @@ class Ke extends x {
|
|
|
3148
3352
|
* @deprecated
|
|
3149
3353
|
* @throws {RequiredError}
|
|
3150
3354
|
*/
|
|
3151
|
-
listNotebooks(
|
|
3152
|
-
return
|
|
3355
|
+
listNotebooks(n, e, t, a) {
|
|
3356
|
+
return L(this.configuration).listNotebooks(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
3153
3357
|
}
|
|
3154
3358
|
}
|
|
3155
|
-
const
|
|
3359
|
+
const $t = {
|
|
3156
3360
|
True: "true",
|
|
3157
3361
|
False: "false"
|
|
3158
|
-
},
|
|
3362
|
+
}, Ze = function(c) {
|
|
3159
3363
|
return {
|
|
3160
3364
|
/**
|
|
3161
3365
|
* 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.
|
|
@@ -3165,15 +3369,15 @@ const Dt = {
|
|
|
3165
3369
|
* @param {*} [options] Override http request option.
|
|
3166
3370
|
* @throws {RequiredError}
|
|
3167
3371
|
*/
|
|
3168
|
-
createPackage: async (
|
|
3169
|
-
|
|
3170
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(
|
|
3372
|
+
createPackage: async (n, e, t = {}) => {
|
|
3373
|
+
m("createPackage", "environmentName", n), m("createPackage", "_package", e);
|
|
3374
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, v);
|
|
3171
3375
|
let o;
|
|
3172
3376
|
c && (o = c.baseOptions);
|
|
3173
|
-
const s = { method: "POST", ...o, ...
|
|
3174
|
-
l["Content-Type"] = "application/json", l.Accept = "application/json",
|
|
3377
|
+
const s = { method: "POST", ...o, ...t }, l = {}, i = {};
|
|
3378
|
+
l["Content-Type"] = "application/json", l.Accept = "application/json", P(r, i);
|
|
3175
3379
|
let p = o && o.headers ? o.headers : {};
|
|
3176
|
-
return s.headers = { ...l, ...p, ...
|
|
3380
|
+
return s.headers = { ...l, ...p, ...t.headers }, s.data = A(e, s, c), {
|
|
3177
3381
|
url: V(r),
|
|
3178
3382
|
options: s
|
|
3179
3383
|
};
|
|
@@ -3186,15 +3390,15 @@ const Dt = {
|
|
|
3186
3390
|
* @param {*} [options] Override http request option.
|
|
3187
3391
|
* @throws {RequiredError}
|
|
3188
3392
|
*/
|
|
3189
|
-
deletePackage: async (
|
|
3190
|
-
|
|
3191
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(
|
|
3393
|
+
deletePackage: async (n, e, t = {}) => {
|
|
3394
|
+
m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
|
|
3395
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
3192
3396
|
let o;
|
|
3193
3397
|
c && (o = c.baseOptions);
|
|
3194
|
-
const s = { method: "DELETE", ...o, ...
|
|
3195
|
-
l.Accept = "application/json",
|
|
3398
|
+
const s = { method: "DELETE", ...o, ...t }, l = {}, i = {};
|
|
3399
|
+
l.Accept = "application/json", P(r, i);
|
|
3196
3400
|
let p = o && o.headers ? o.headers : {};
|
|
3197
|
-
return s.headers = { ...l, ...p, ...
|
|
3401
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
3198
3402
|
url: V(r),
|
|
3199
3403
|
options: s
|
|
3200
3404
|
};
|
|
@@ -3209,15 +3413,15 @@ const Dt = {
|
|
|
3209
3413
|
* @param {*} [options] Override http request option.
|
|
3210
3414
|
* @throws {RequiredError}
|
|
3211
3415
|
*/
|
|
3212
|
-
getPackage: async (
|
|
3213
|
-
|
|
3214
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(
|
|
3416
|
+
getPackage: async (n, e, t, a, r = {}) => {
|
|
3417
|
+
m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
|
|
3418
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, v);
|
|
3215
3419
|
let l;
|
|
3216
3420
|
c && (l = c.baseOptions);
|
|
3217
3421
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3218
|
-
|
|
3219
|
-
let
|
|
3220
|
-
return i.headers = { ...p, ...
|
|
3422
|
+
t !== void 0 && (d.versionId = t), a !== void 0 && (d.reload = a), p.Accept = "application/json", P(s, d);
|
|
3423
|
+
let h = l && l.headers ? l.headers : {};
|
|
3424
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3221
3425
|
url: V(s),
|
|
3222
3426
|
options: i
|
|
3223
3427
|
};
|
|
@@ -3229,13 +3433,13 @@ const Dt = {
|
|
|
3229
3433
|
* @param {*} [options] Override http request option.
|
|
3230
3434
|
* @throws {RequiredError}
|
|
3231
3435
|
*/
|
|
3232
|
-
listPackages: async (
|
|
3233
|
-
|
|
3234
|
-
const
|
|
3436
|
+
listPackages: async (n, e = {}) => {
|
|
3437
|
+
m("listPackages", "environmentName", n);
|
|
3438
|
+
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, v);
|
|
3235
3439
|
let r;
|
|
3236
3440
|
c && (r = c.baseOptions);
|
|
3237
3441
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
3238
|
-
s.Accept = "application/json",
|
|
3442
|
+
s.Accept = "application/json", P(a, l);
|
|
3239
3443
|
let i = r && r.headers ? r.headers : {};
|
|
3240
3444
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3241
3445
|
url: V(a),
|
|
@@ -3251,22 +3455,22 @@ const Dt = {
|
|
|
3251
3455
|
* @param {*} [options] Override http request option.
|
|
3252
3456
|
* @throws {RequiredError}
|
|
3253
3457
|
*/
|
|
3254
|
-
updatePackage: async (
|
|
3255
|
-
|
|
3256
|
-
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(
|
|
3458
|
+
updatePackage: async (n, e, t, a = {}) => {
|
|
3459
|
+
m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", t);
|
|
3460
|
+
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
3257
3461
|
let s;
|
|
3258
3462
|
c && (s = c.baseOptions);
|
|
3259
3463
|
const l = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
3260
|
-
i["Content-Type"] = "application/json", i.Accept = "application/json",
|
|
3464
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", P(o, p);
|
|
3261
3465
|
let d = s && s.headers ? s.headers : {};
|
|
3262
|
-
return l.headers = { ...i, ...d, ...a.headers }, l.data =
|
|
3466
|
+
return l.headers = { ...i, ...d, ...a.headers }, l.data = A(t, l, c), {
|
|
3263
3467
|
url: V(o),
|
|
3264
3468
|
options: l
|
|
3265
3469
|
};
|
|
3266
3470
|
}
|
|
3267
3471
|
};
|
|
3268
3472
|
}, M = function(c) {
|
|
3269
|
-
const
|
|
3473
|
+
const n = Ze(c);
|
|
3270
3474
|
return {
|
|
3271
3475
|
/**
|
|
3272
3476
|
* 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.
|
|
@@ -3276,9 +3480,9 @@ const Dt = {
|
|
|
3276
3480
|
* @param {*} [options] Override http request option.
|
|
3277
3481
|
* @throws {RequiredError}
|
|
3278
3482
|
*/
|
|
3279
|
-
async createPackage(e,
|
|
3280
|
-
const r = await
|
|
3281
|
-
return (l, i) =>
|
|
3483
|
+
async createPackage(e, t, a) {
|
|
3484
|
+
const r = await n.createPackage(e, t, a), o = c?.serverIndex ?? 0, s = b["PackagesApi.createPackage"]?.[o]?.url;
|
|
3485
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
3282
3486
|
},
|
|
3283
3487
|
/**
|
|
3284
3488
|
* 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.
|
|
@@ -3288,9 +3492,9 @@ const Dt = {
|
|
|
3288
3492
|
* @param {*} [options] Override http request option.
|
|
3289
3493
|
* @throws {RequiredError}
|
|
3290
3494
|
*/
|
|
3291
|
-
async deletePackage(e,
|
|
3292
|
-
const r = await
|
|
3293
|
-
return (l, i) =>
|
|
3495
|
+
async deletePackage(e, t, a) {
|
|
3496
|
+
const r = await n.deletePackage(e, t, a), o = c?.serverIndex ?? 0, s = b["PackagesApi.deletePackage"]?.[o]?.url;
|
|
3497
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
3294
3498
|
},
|
|
3295
3499
|
/**
|
|
3296
3500
|
* 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.
|
|
@@ -3302,9 +3506,9 @@ const Dt = {
|
|
|
3302
3506
|
* @param {*} [options] Override http request option.
|
|
3303
3507
|
* @throws {RequiredError}
|
|
3304
3508
|
*/
|
|
3305
|
-
async getPackage(e,
|
|
3306
|
-
const s = await
|
|
3307
|
-
return (p, d) =>
|
|
3509
|
+
async getPackage(e, t, a, r, o) {
|
|
3510
|
+
const s = await n.getPackage(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["PackagesApi.getPackage"]?.[l]?.url;
|
|
3511
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
3308
3512
|
},
|
|
3309
3513
|
/**
|
|
3310
3514
|
* 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`.
|
|
@@ -3313,9 +3517,9 @@ const Dt = {
|
|
|
3313
3517
|
* @param {*} [options] Override http request option.
|
|
3314
3518
|
* @throws {RequiredError}
|
|
3315
3519
|
*/
|
|
3316
|
-
async listPackages(e,
|
|
3317
|
-
const a = await
|
|
3318
|
-
return (s, l) =>
|
|
3520
|
+
async listPackages(e, t) {
|
|
3521
|
+
const a = await n.listPackages(e, t), r = c?.serverIndex ?? 0, o = b["PackagesApi.listPackages"]?.[r]?.url;
|
|
3522
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
3319
3523
|
},
|
|
3320
3524
|
/**
|
|
3321
3525
|
* 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.
|
|
@@ -3326,13 +3530,13 @@ const Dt = {
|
|
|
3326
3530
|
* @param {*} [options] Override http request option.
|
|
3327
3531
|
* @throws {RequiredError}
|
|
3328
3532
|
*/
|
|
3329
|
-
async updatePackage(e,
|
|
3330
|
-
const o = await
|
|
3331
|
-
return (i, p) =>
|
|
3533
|
+
async updatePackage(e, t, a, r) {
|
|
3534
|
+
const o = await n.updatePackage(e, t, a, r), s = c?.serverIndex ?? 0, l = b["PackagesApi.updatePackage"]?.[s]?.url;
|
|
3535
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
3332
3536
|
}
|
|
3333
3537
|
};
|
|
3334
|
-
},
|
|
3335
|
-
const
|
|
3538
|
+
}, Kt = function(c, n, e) {
|
|
3539
|
+
const t = M(c);
|
|
3336
3540
|
return {
|
|
3337
3541
|
/**
|
|
3338
3542
|
* 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.
|
|
@@ -3343,7 +3547,7 @@ const Dt = {
|
|
|
3343
3547
|
* @throws {RequiredError}
|
|
3344
3548
|
*/
|
|
3345
3549
|
createPackage(a, r, o) {
|
|
3346
|
-
return
|
|
3550
|
+
return t.createPackage(a, r, o).then((s) => s(e, n));
|
|
3347
3551
|
},
|
|
3348
3552
|
/**
|
|
3349
3553
|
* 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.
|
|
@@ -3354,7 +3558,7 @@ const Dt = {
|
|
|
3354
3558
|
* @throws {RequiredError}
|
|
3355
3559
|
*/
|
|
3356
3560
|
deletePackage(a, r, o) {
|
|
3357
|
-
return
|
|
3561
|
+
return t.deletePackage(a, r, o).then((s) => s(e, n));
|
|
3358
3562
|
},
|
|
3359
3563
|
/**
|
|
3360
3564
|
* 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.
|
|
@@ -3367,7 +3571,7 @@ const Dt = {
|
|
|
3367
3571
|
* @throws {RequiredError}
|
|
3368
3572
|
*/
|
|
3369
3573
|
getPackage(a, r, o, s, l) {
|
|
3370
|
-
return
|
|
3574
|
+
return t.getPackage(a, r, o, s, l).then((i) => i(e, n));
|
|
3371
3575
|
},
|
|
3372
3576
|
/**
|
|
3373
3577
|
* 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`.
|
|
@@ -3377,7 +3581,7 @@ const Dt = {
|
|
|
3377
3581
|
* @throws {RequiredError}
|
|
3378
3582
|
*/
|
|
3379
3583
|
listPackages(a, r) {
|
|
3380
|
-
return
|
|
3584
|
+
return t.listPackages(a, r).then((o) => o(e, n));
|
|
3381
3585
|
},
|
|
3382
3586
|
/**
|
|
3383
3587
|
* 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.
|
|
@@ -3389,11 +3593,11 @@ const Dt = {
|
|
|
3389
3593
|
* @throws {RequiredError}
|
|
3390
3594
|
*/
|
|
3391
3595
|
updatePackage(a, r, o, s) {
|
|
3392
|
-
return
|
|
3596
|
+
return t.updatePackage(a, r, o, s).then((l) => l(e, n));
|
|
3393
3597
|
}
|
|
3394
3598
|
};
|
|
3395
3599
|
};
|
|
3396
|
-
class
|
|
3600
|
+
class ea extends x {
|
|
3397
3601
|
/**
|
|
3398
3602
|
* 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.
|
|
3399
3603
|
* @summary Create a new package
|
|
@@ -3402,8 +3606,8 @@ class Je extends x {
|
|
|
3402
3606
|
* @param {*} [options] Override http request option.
|
|
3403
3607
|
* @throws {RequiredError}
|
|
3404
3608
|
*/
|
|
3405
|
-
createPackage(
|
|
3406
|
-
return M(this.configuration).createPackage(
|
|
3609
|
+
createPackage(n, e, t) {
|
|
3610
|
+
return M(this.configuration).createPackage(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
3407
3611
|
}
|
|
3408
3612
|
/**
|
|
3409
3613
|
* 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.
|
|
@@ -3413,8 +3617,8 @@ class Je extends x {
|
|
|
3413
3617
|
* @param {*} [options] Override http request option.
|
|
3414
3618
|
* @throws {RequiredError}
|
|
3415
3619
|
*/
|
|
3416
|
-
deletePackage(
|
|
3417
|
-
return M(this.configuration).deletePackage(
|
|
3620
|
+
deletePackage(n, e, t) {
|
|
3621
|
+
return M(this.configuration).deletePackage(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
3418
3622
|
}
|
|
3419
3623
|
/**
|
|
3420
3624
|
* 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.
|
|
@@ -3426,8 +3630,8 @@ class Je extends x {
|
|
|
3426
3630
|
* @param {*} [options] Override http request option.
|
|
3427
3631
|
* @throws {RequiredError}
|
|
3428
3632
|
*/
|
|
3429
|
-
getPackage(
|
|
3430
|
-
return M(this.configuration).getPackage(
|
|
3633
|
+
getPackage(n, e, t, a, r) {
|
|
3634
|
+
return M(this.configuration).getPackage(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
3431
3635
|
}
|
|
3432
3636
|
/**
|
|
3433
3637
|
* 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`.
|
|
@@ -3436,8 +3640,8 @@ class Je extends x {
|
|
|
3436
3640
|
* @param {*} [options] Override http request option.
|
|
3437
3641
|
* @throws {RequiredError}
|
|
3438
3642
|
*/
|
|
3439
|
-
listPackages(
|
|
3440
|
-
return M(this.configuration).listPackages(
|
|
3643
|
+
listPackages(n, e) {
|
|
3644
|
+
return M(this.configuration).listPackages(n, e).then((t) => t(this.axios, this.basePath));
|
|
3441
3645
|
}
|
|
3442
3646
|
/**
|
|
3443
3647
|
* 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.
|
|
@@ -3448,11 +3652,11 @@ class Je extends x {
|
|
|
3448
3652
|
* @param {*} [options] Override http request option.
|
|
3449
3653
|
* @throws {RequiredError}
|
|
3450
3654
|
*/
|
|
3451
|
-
updatePackage(
|
|
3452
|
-
return M(this.configuration).updatePackage(
|
|
3655
|
+
updatePackage(n, e, t, a) {
|
|
3656
|
+
return M(this.configuration).updatePackage(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
3453
3657
|
}
|
|
3454
3658
|
}
|
|
3455
|
-
const
|
|
3659
|
+
const aa = function(c) {
|
|
3456
3660
|
return {
|
|
3457
3661
|
/**
|
|
3458
3662
|
* 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.
|
|
@@ -3460,15 +3664,15 @@ const Xe = function(c) {
|
|
|
3460
3664
|
* @param {*} [options] Override http request option.
|
|
3461
3665
|
* @throws {RequiredError}
|
|
3462
3666
|
*/
|
|
3463
|
-
deleteTheme: async (
|
|
3464
|
-
const e = "/theme",
|
|
3667
|
+
deleteTheme: async (n = {}) => {
|
|
3668
|
+
const e = "/theme", t = new URL(e, v);
|
|
3465
3669
|
let a;
|
|
3466
3670
|
c && (a = c.baseOptions);
|
|
3467
|
-
const r = { method: "DELETE", ...a, ...
|
|
3468
|
-
o.Accept = "application/json",
|
|
3671
|
+
const r = { method: "DELETE", ...a, ...n }, o = {}, s = {};
|
|
3672
|
+
o.Accept = "application/json", P(t, s);
|
|
3469
3673
|
let l = a && a.headers ? a.headers : {};
|
|
3470
|
-
return r.headers = { ...o, ...l, ...
|
|
3471
|
-
url: V(
|
|
3674
|
+
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
3675
|
+
url: V(t),
|
|
3472
3676
|
options: r
|
|
3473
3677
|
};
|
|
3474
3678
|
},
|
|
@@ -3479,12 +3683,12 @@ const Xe = function(c) {
|
|
|
3479
3683
|
* @param {*} [options] Override http request option.
|
|
3480
3684
|
* @throws {RequiredError}
|
|
3481
3685
|
*/
|
|
3482
|
-
getStatus: async (
|
|
3483
|
-
const
|
|
3686
|
+
getStatus: async (n, e = {}) => {
|
|
3687
|
+
const t = "/status", a = new URL(t, v);
|
|
3484
3688
|
let r;
|
|
3485
3689
|
c && (r = c.baseOptions);
|
|
3486
3690
|
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
3487
|
-
|
|
3691
|
+
n !== void 0 && (l.includeLoading = n), s.Accept = "application/json", P(a, l);
|
|
3488
3692
|
let i = r && r.headers ? r.headers : {};
|
|
3489
3693
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3490
3694
|
url: V(a),
|
|
@@ -3497,15 +3701,15 @@ const Xe = function(c) {
|
|
|
3497
3701
|
* @param {*} [options] Override http request option.
|
|
3498
3702
|
* @throws {RequiredError}
|
|
3499
3703
|
*/
|
|
3500
|
-
getTheme: async (
|
|
3501
|
-
const e = "/theme",
|
|
3704
|
+
getTheme: async (n = {}) => {
|
|
3705
|
+
const e = "/theme", t = new URL(e, v);
|
|
3502
3706
|
let a;
|
|
3503
3707
|
c && (a = c.baseOptions);
|
|
3504
|
-
const r = { method: "GET", ...a, ...
|
|
3505
|
-
o.Accept = "application/json",
|
|
3708
|
+
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
3709
|
+
o.Accept = "application/json", P(t, s);
|
|
3506
3710
|
let l = a && a.headers ? a.headers : {};
|
|
3507
|
-
return r.headers = { ...o, ...l, ...
|
|
3508
|
-
url: V(
|
|
3711
|
+
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
3712
|
+
url: V(t),
|
|
3509
3713
|
options: r
|
|
3510
3714
|
};
|
|
3511
3715
|
},
|
|
@@ -3516,22 +3720,22 @@ const Xe = function(c) {
|
|
|
3516
3720
|
* @param {*} [options] Override http request option.
|
|
3517
3721
|
* @throws {RequiredError}
|
|
3518
3722
|
*/
|
|
3519
|
-
updateTheme: async (
|
|
3520
|
-
|
|
3521
|
-
const
|
|
3723
|
+
updateTheme: async (n, e = {}) => {
|
|
3724
|
+
m("updateTheme", "theme", n);
|
|
3725
|
+
const t = "/theme", a = new URL(t, v);
|
|
3522
3726
|
let r;
|
|
3523
3727
|
c && (r = c.baseOptions);
|
|
3524
3728
|
const o = { method: "PUT", ...r, ...e }, s = {}, l = {};
|
|
3525
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
3729
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
|
|
3526
3730
|
let i = r && r.headers ? r.headers : {};
|
|
3527
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
3731
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
3528
3732
|
url: V(a),
|
|
3529
3733
|
options: o
|
|
3530
3734
|
};
|
|
3531
3735
|
}
|
|
3532
3736
|
};
|
|
3533
|
-
},
|
|
3534
|
-
const
|
|
3737
|
+
}, F = function(c) {
|
|
3738
|
+
const n = aa(c);
|
|
3535
3739
|
return {
|
|
3536
3740
|
/**
|
|
3537
3741
|
* 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.
|
|
@@ -3540,8 +3744,8 @@ const Xe = function(c) {
|
|
|
3540
3744
|
* @throws {RequiredError}
|
|
3541
3745
|
*/
|
|
3542
3746
|
async deleteTheme(e) {
|
|
3543
|
-
const
|
|
3544
|
-
return (o, s) =>
|
|
3747
|
+
const t = await n.deleteTheme(e), a = c?.serverIndex ?? 0, r = b["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
3748
|
+
return (o, s) => S(t, u, g, c)(o, r || s);
|
|
3545
3749
|
},
|
|
3546
3750
|
/**
|
|
3547
3751
|
* 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.
|
|
@@ -3550,9 +3754,9 @@ const Xe = function(c) {
|
|
|
3550
3754
|
* @param {*} [options] Override http request option.
|
|
3551
3755
|
* @throws {RequiredError}
|
|
3552
3756
|
*/
|
|
3553
|
-
async getStatus(e,
|
|
3554
|
-
const a = await
|
|
3555
|
-
return (s, l) =>
|
|
3757
|
+
async getStatus(e, t) {
|
|
3758
|
+
const a = await n.getStatus(e, t), r = c?.serverIndex ?? 0, o = b["PublisherApi.getStatus"]?.[r]?.url;
|
|
3759
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
3556
3760
|
},
|
|
3557
3761
|
/**
|
|
3558
3762
|
* 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.
|
|
@@ -3561,8 +3765,8 @@ const Xe = function(c) {
|
|
|
3561
3765
|
* @throws {RequiredError}
|
|
3562
3766
|
*/
|
|
3563
3767
|
async getTheme(e) {
|
|
3564
|
-
const
|
|
3565
|
-
return (o, s) =>
|
|
3768
|
+
const t = await n.getTheme(e), a = c?.serverIndex ?? 0, r = b["PublisherApi.getTheme"]?.[a]?.url;
|
|
3769
|
+
return (o, s) => S(t, u, g, c)(o, r || s);
|
|
3566
3770
|
},
|
|
3567
3771
|
/**
|
|
3568
3772
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3571,13 +3775,13 @@ const Xe = function(c) {
|
|
|
3571
3775
|
* @param {*} [options] Override http request option.
|
|
3572
3776
|
* @throws {RequiredError}
|
|
3573
3777
|
*/
|
|
3574
|
-
async updateTheme(e,
|
|
3575
|
-
const a = await
|
|
3576
|
-
return (s, l) =>
|
|
3778
|
+
async updateTheme(e, t) {
|
|
3779
|
+
const a = await n.updateTheme(e, t), r = c?.serverIndex ?? 0, o = b["PublisherApi.updateTheme"]?.[r]?.url;
|
|
3780
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
3577
3781
|
}
|
|
3578
3782
|
};
|
|
3579
|
-
},
|
|
3580
|
-
const
|
|
3783
|
+
}, Yt = function(c, n, e) {
|
|
3784
|
+
const t = F(c);
|
|
3581
3785
|
return {
|
|
3582
3786
|
/**
|
|
3583
3787
|
* 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.
|
|
@@ -3586,7 +3790,7 @@ const Xe = function(c) {
|
|
|
3586
3790
|
* @throws {RequiredError}
|
|
3587
3791
|
*/
|
|
3588
3792
|
deleteTheme(a) {
|
|
3589
|
-
return
|
|
3793
|
+
return t.deleteTheme(a).then((r) => r(e, n));
|
|
3590
3794
|
},
|
|
3591
3795
|
/**
|
|
3592
3796
|
* 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.
|
|
@@ -3596,7 +3800,7 @@ const Xe = function(c) {
|
|
|
3596
3800
|
* @throws {RequiredError}
|
|
3597
3801
|
*/
|
|
3598
3802
|
getStatus(a, r) {
|
|
3599
|
-
return
|
|
3803
|
+
return t.getStatus(a, r).then((o) => o(e, n));
|
|
3600
3804
|
},
|
|
3601
3805
|
/**
|
|
3602
3806
|
* 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.
|
|
@@ -3605,7 +3809,7 @@ const Xe = function(c) {
|
|
|
3605
3809
|
* @throws {RequiredError}
|
|
3606
3810
|
*/
|
|
3607
3811
|
getTheme(a) {
|
|
3608
|
-
return
|
|
3812
|
+
return t.getTheme(a).then((r) => r(e, n));
|
|
3609
3813
|
},
|
|
3610
3814
|
/**
|
|
3611
3815
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3615,19 +3819,19 @@ const Xe = function(c) {
|
|
|
3615
3819
|
* @throws {RequiredError}
|
|
3616
3820
|
*/
|
|
3617
3821
|
updateTheme(a, r) {
|
|
3618
|
-
return
|
|
3822
|
+
return t.updateTheme(a, r).then((o) => o(e, n));
|
|
3619
3823
|
}
|
|
3620
3824
|
};
|
|
3621
3825
|
};
|
|
3622
|
-
class
|
|
3826
|
+
class ta extends x {
|
|
3623
3827
|
/**
|
|
3624
3828
|
* 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.
|
|
3625
3829
|
* @summary Reset the instance theme to the boot seed or default
|
|
3626
3830
|
* @param {*} [options] Override http request option.
|
|
3627
3831
|
* @throws {RequiredError}
|
|
3628
3832
|
*/
|
|
3629
|
-
deleteTheme(
|
|
3630
|
-
return
|
|
3833
|
+
deleteTheme(n) {
|
|
3834
|
+
return F(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3631
3835
|
}
|
|
3632
3836
|
/**
|
|
3633
3837
|
* 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.
|
|
@@ -3636,8 +3840,8 @@ class Ze extends x {
|
|
|
3636
3840
|
* @param {*} [options] Override http request option.
|
|
3637
3841
|
* @throws {RequiredError}
|
|
3638
3842
|
*/
|
|
3639
|
-
getStatus(
|
|
3640
|
-
return
|
|
3843
|
+
getStatus(n, e) {
|
|
3844
|
+
return F(this.configuration).getStatus(n, e).then((t) => t(this.axios, this.basePath));
|
|
3641
3845
|
}
|
|
3642
3846
|
/**
|
|
3643
3847
|
* 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.
|
|
@@ -3645,8 +3849,8 @@ class Ze extends x {
|
|
|
3645
3849
|
* @param {*} [options] Override http request option.
|
|
3646
3850
|
* @throws {RequiredError}
|
|
3647
3851
|
*/
|
|
3648
|
-
getTheme(
|
|
3649
|
-
return
|
|
3852
|
+
getTheme(n) {
|
|
3853
|
+
return F(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3650
3854
|
}
|
|
3651
3855
|
/**
|
|
3652
3856
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3655,11 +3859,11 @@ class Ze extends x {
|
|
|
3655
3859
|
* @param {*} [options] Override http request option.
|
|
3656
3860
|
* @throws {RequiredError}
|
|
3657
3861
|
*/
|
|
3658
|
-
updateTheme(
|
|
3659
|
-
return
|
|
3862
|
+
updateTheme(n, e) {
|
|
3863
|
+
return F(this.configuration).updateTheme(n, e).then((t) => t(this.axios, this.basePath));
|
|
3660
3864
|
}
|
|
3661
3865
|
}
|
|
3662
|
-
const
|
|
3866
|
+
const na = function(c) {
|
|
3663
3867
|
return {
|
|
3664
3868
|
/**
|
|
3665
3869
|
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
@@ -3671,15 +3875,15 @@ const ea = function(c) {
|
|
|
3671
3875
|
* @param {*} [options] Override http request option.
|
|
3672
3876
|
* @throws {RequiredError}
|
|
3673
3877
|
*/
|
|
3674
|
-
getReport: async (
|
|
3675
|
-
|
|
3676
|
-
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
3878
|
+
getReport: async (n, e, t, a, r = {}) => {
|
|
3879
|
+
m("getReport", "environmentName", n), m("getReport", "packageName", e), m("getReport", "path", t);
|
|
3880
|
+
const o = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, v);
|
|
3677
3881
|
let l;
|
|
3678
3882
|
c && (l = c.baseOptions);
|
|
3679
3883
|
const i = { method: "GET", ...l, ...r }, p = {}, d = {};
|
|
3680
|
-
a !== void 0 && (d.versionId = a), p.Accept = "application/json",
|
|
3681
|
-
let
|
|
3682
|
-
return i.headers = { ...p, ...
|
|
3884
|
+
a !== void 0 && (d.versionId = a), p.Accept = "application/json", P(s, d);
|
|
3885
|
+
let h = l && l.headers ? l.headers : {};
|
|
3886
|
+
return i.headers = { ...p, ...h, ...r.headers }, {
|
|
3683
3887
|
url: V(s),
|
|
3684
3888
|
options: i
|
|
3685
3889
|
};
|
|
@@ -3693,13 +3897,13 @@ const ea = function(c) {
|
|
|
3693
3897
|
* @param {*} [options] Override http request option.
|
|
3694
3898
|
* @throws {RequiredError}
|
|
3695
3899
|
*/
|
|
3696
|
-
listReports: async (
|
|
3697
|
-
|
|
3698
|
-
const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(
|
|
3900
|
+
listReports: async (n, e, t, a = {}) => {
|
|
3901
|
+
m("listReports", "environmentName", n), m("listReports", "packageName", e);
|
|
3902
|
+
const r = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, v);
|
|
3699
3903
|
let s;
|
|
3700
3904
|
c && (s = c.baseOptions);
|
|
3701
3905
|
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
3702
|
-
|
|
3906
|
+
t !== void 0 && (p.versionId = t), i.Accept = "application/json", P(o, p);
|
|
3703
3907
|
let d = s && s.headers ? s.headers : {};
|
|
3704
3908
|
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
3705
3909
|
url: V(o),
|
|
@@ -3707,8 +3911,8 @@ const ea = function(c) {
|
|
|
3707
3911
|
};
|
|
3708
3912
|
}
|
|
3709
3913
|
};
|
|
3710
|
-
},
|
|
3711
|
-
const
|
|
3914
|
+
}, K = function(c) {
|
|
3915
|
+
const n = na(c);
|
|
3712
3916
|
return {
|
|
3713
3917
|
/**
|
|
3714
3918
|
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
@@ -3720,9 +3924,9 @@ const ea = function(c) {
|
|
|
3720
3924
|
* @param {*} [options] Override http request option.
|
|
3721
3925
|
* @throws {RequiredError}
|
|
3722
3926
|
*/
|
|
3723
|
-
async getReport(e,
|
|
3724
|
-
const s = await
|
|
3725
|
-
return (p, d) =>
|
|
3927
|
+
async getReport(e, t, a, r, o) {
|
|
3928
|
+
const s = await n.getReport(e, t, a, r, o), l = c?.serverIndex ?? 0, i = b["ReportsApi.getReport"]?.[l]?.url;
|
|
3929
|
+
return (p, d) => S(s, u, g, c)(p, i || d);
|
|
3726
3930
|
},
|
|
3727
3931
|
/**
|
|
3728
3932
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is 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 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.
|
|
@@ -3733,13 +3937,13 @@ const ea = function(c) {
|
|
|
3733
3937
|
* @param {*} [options] Override http request option.
|
|
3734
3938
|
* @throws {RequiredError}
|
|
3735
3939
|
*/
|
|
3736
|
-
async listReports(e,
|
|
3737
|
-
const o = await
|
|
3738
|
-
return (i, p) =>
|
|
3940
|
+
async listReports(e, t, a, r) {
|
|
3941
|
+
const o = await n.listReports(e, t, a, r), s = c?.serverIndex ?? 0, l = b["ReportsApi.listReports"]?.[s]?.url;
|
|
3942
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
3739
3943
|
}
|
|
3740
3944
|
};
|
|
3741
|
-
},
|
|
3742
|
-
const
|
|
3945
|
+
}, Jt = function(c, n, e) {
|
|
3946
|
+
const t = K(c);
|
|
3743
3947
|
return {
|
|
3744
3948
|
/**
|
|
3745
3949
|
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
@@ -3752,7 +3956,7 @@ const ea = function(c) {
|
|
|
3752
3956
|
* @throws {RequiredError}
|
|
3753
3957
|
*/
|
|
3754
3958
|
getReport(a, r, o, s, l) {
|
|
3755
|
-
return
|
|
3959
|
+
return t.getReport(a, r, o, s, l).then((i) => i(e, n));
|
|
3756
3960
|
},
|
|
3757
3961
|
/**
|
|
3758
3962
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is 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 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.
|
|
@@ -3764,11 +3968,11 @@ const ea = function(c) {
|
|
|
3764
3968
|
* @throws {RequiredError}
|
|
3765
3969
|
*/
|
|
3766
3970
|
listReports(a, r, o, s) {
|
|
3767
|
-
return
|
|
3971
|
+
return t.listReports(a, r, o, s).then((l) => l(e, n));
|
|
3768
3972
|
}
|
|
3769
3973
|
};
|
|
3770
3974
|
};
|
|
3771
|
-
class
|
|
3975
|
+
class ra extends x {
|
|
3772
3976
|
/**
|
|
3773
3977
|
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
3774
3978
|
* @summary Get a report manifest
|
|
@@ -3779,8 +3983,8 @@ class aa extends x {
|
|
|
3779
3983
|
* @param {*} [options] Override http request option.
|
|
3780
3984
|
* @throws {RequiredError}
|
|
3781
3985
|
*/
|
|
3782
|
-
getReport(
|
|
3783
|
-
return
|
|
3986
|
+
getReport(n, e, t, a, r) {
|
|
3987
|
+
return K(this.configuration).getReport(n, e, t, a, r).then((o) => o(this.axios, this.basePath));
|
|
3784
3988
|
}
|
|
3785
3989
|
/**
|
|
3786
3990
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else the deprecated `kind=` (`dashboard` is grid, `notebook` is 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 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.
|
|
@@ -3791,11 +3995,139 @@ class aa extends x {
|
|
|
3791
3995
|
* @param {*} [options] Override http request option.
|
|
3792
3996
|
* @throws {RequiredError}
|
|
3793
3997
|
*/
|
|
3794
|
-
listReports(
|
|
3795
|
-
return
|
|
3998
|
+
listReports(n, e, t, a) {
|
|
3999
|
+
return K(this.configuration).listReports(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4000
|
+
}
|
|
4001
|
+
}
|
|
4002
|
+
const oa = function(c) {
|
|
4003
|
+
return {
|
|
4004
|
+
/**
|
|
4005
|
+
* 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.
|
|
4006
|
+
* @summary Get one agent skill, with its body
|
|
4007
|
+
* @param {string} environmentName Name of the environment
|
|
4008
|
+
* @param {string} packageName Name of the package
|
|
4009
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
4010
|
+
* @param {*} [options] Override http request option.
|
|
4011
|
+
* @throws {RequiredError}
|
|
4012
|
+
*/
|
|
4013
|
+
getSkill: async (n, e, t, a = {}) => {
|
|
4014
|
+
m("getSkill", "environmentName", n), m("getSkill", "packageName", e), m("getSkill", "skillName", t);
|
|
4015
|
+
const r = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{skillName}", encodeURIComponent(String(t))), o = new URL(r, v);
|
|
4016
|
+
let s;
|
|
4017
|
+
c && (s = c.baseOptions);
|
|
4018
|
+
const l = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
4019
|
+
i.Accept = "application/json", P(o, p);
|
|
4020
|
+
let d = s && s.headers ? s.headers : {};
|
|
4021
|
+
return l.headers = { ...i, ...d, ...a.headers }, {
|
|
4022
|
+
url: V(o),
|
|
4023
|
+
options: l
|
|
4024
|
+
};
|
|
4025
|
+
},
|
|
4026
|
+
/**
|
|
4027
|
+
* 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.
|
|
4028
|
+
* @summary List the agent skills in force for a package
|
|
4029
|
+
* @param {string} environmentName Name of the environment
|
|
4030
|
+
* @param {string} packageName Name of the package
|
|
4031
|
+
* @param {*} [options] Override http request option.
|
|
4032
|
+
* @throws {RequiredError}
|
|
4033
|
+
*/
|
|
4034
|
+
listSkills: async (n, e, t = {}) => {
|
|
4035
|
+
m("listSkills", "environmentName", n), m("listSkills", "packageName", e);
|
|
4036
|
+
const a = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
4037
|
+
let o;
|
|
4038
|
+
c && (o = c.baseOptions);
|
|
4039
|
+
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
4040
|
+
l.Accept = "application/json", P(r, i);
|
|
4041
|
+
let p = o && o.headers ? o.headers : {};
|
|
4042
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
4043
|
+
url: V(r),
|
|
4044
|
+
options: s
|
|
4045
|
+
};
|
|
4046
|
+
}
|
|
4047
|
+
};
|
|
4048
|
+
}, Y = function(c) {
|
|
4049
|
+
const n = oa(c);
|
|
4050
|
+
return {
|
|
4051
|
+
/**
|
|
4052
|
+
* 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.
|
|
4053
|
+
* @summary Get one agent skill, with its body
|
|
4054
|
+
* @param {string} environmentName Name of the environment
|
|
4055
|
+
* @param {string} packageName Name of the package
|
|
4056
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
4057
|
+
* @param {*} [options] Override http request option.
|
|
4058
|
+
* @throws {RequiredError}
|
|
4059
|
+
*/
|
|
4060
|
+
async getSkill(e, t, a, r) {
|
|
4061
|
+
const o = await n.getSkill(e, t, a, r), s = c?.serverIndex ?? 0, l = b["SkillsApi.getSkill"]?.[s]?.url;
|
|
4062
|
+
return (i, p) => S(o, u, g, c)(i, l || p);
|
|
4063
|
+
},
|
|
4064
|
+
/**
|
|
4065
|
+
* 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.
|
|
4066
|
+
* @summary List the agent skills in force for a package
|
|
4067
|
+
* @param {string} environmentName Name of the environment
|
|
4068
|
+
* @param {string} packageName Name of the package
|
|
4069
|
+
* @param {*} [options] Override http request option.
|
|
4070
|
+
* @throws {RequiredError}
|
|
4071
|
+
*/
|
|
4072
|
+
async listSkills(e, t, a) {
|
|
4073
|
+
const r = await n.listSkills(e, t, a), o = c?.serverIndex ?? 0, s = b["SkillsApi.listSkills"]?.[o]?.url;
|
|
4074
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
4075
|
+
}
|
|
4076
|
+
};
|
|
4077
|
+
}, Xt = function(c, n, e) {
|
|
4078
|
+
const t = Y(c);
|
|
4079
|
+
return {
|
|
4080
|
+
/**
|
|
4081
|
+
* 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.
|
|
4082
|
+
* @summary Get one agent skill, with its body
|
|
4083
|
+
* @param {string} environmentName Name of the environment
|
|
4084
|
+
* @param {string} packageName Name of the package
|
|
4085
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
4086
|
+
* @param {*} [options] Override http request option.
|
|
4087
|
+
* @throws {RequiredError}
|
|
4088
|
+
*/
|
|
4089
|
+
getSkill(a, r, o, s) {
|
|
4090
|
+
return t.getSkill(a, r, o, s).then((l) => l(e, n));
|
|
4091
|
+
},
|
|
4092
|
+
/**
|
|
4093
|
+
* 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.
|
|
4094
|
+
* @summary List the agent skills in force for a package
|
|
4095
|
+
* @param {string} environmentName Name of the environment
|
|
4096
|
+
* @param {string} packageName Name of the package
|
|
4097
|
+
* @param {*} [options] Override http request option.
|
|
4098
|
+
* @throws {RequiredError}
|
|
4099
|
+
*/
|
|
4100
|
+
listSkills(a, r, o) {
|
|
4101
|
+
return t.listSkills(a, r, o).then((s) => s(e, n));
|
|
4102
|
+
}
|
|
4103
|
+
};
|
|
4104
|
+
};
|
|
4105
|
+
class Zt extends x {
|
|
4106
|
+
/**
|
|
4107
|
+
* Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
|
|
4108
|
+
* @summary Get one agent skill, with its body
|
|
4109
|
+
* @param {string} environmentName Name of the environment
|
|
4110
|
+
* @param {string} packageName Name of the package
|
|
4111
|
+
* @param {string} skillName Skill name as returned by the listing. A reference file is `<skill>/<stem>`; the slash may be literal or `%2F`.
|
|
4112
|
+
* @param {*} [options] Override http request option.
|
|
4113
|
+
* @throws {RequiredError}
|
|
4114
|
+
*/
|
|
4115
|
+
getSkill(n, e, t, a) {
|
|
4116
|
+
return Y(this.configuration).getSkill(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
4117
|
+
}
|
|
4118
|
+
/**
|
|
4119
|
+
* 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.
|
|
4120
|
+
* @summary List the agent skills in force for a package
|
|
4121
|
+
* @param {string} environmentName Name of the environment
|
|
4122
|
+
* @param {string} packageName Name of the package
|
|
4123
|
+
* @param {*} [options] Override http request option.
|
|
4124
|
+
* @throws {RequiredError}
|
|
4125
|
+
*/
|
|
4126
|
+
listSkills(n, e, t) {
|
|
4127
|
+
return Y(this.configuration).listSkills(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
3796
4128
|
}
|
|
3797
4129
|
}
|
|
3798
|
-
const
|
|
4130
|
+
const sa = function(c) {
|
|
3799
4131
|
return {
|
|
3800
4132
|
/**
|
|
3801
4133
|
* 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.
|
|
@@ -3803,15 +4135,15 @@ const ta = function(c) {
|
|
|
3803
4135
|
* @param {*} [options] Override http request option.
|
|
3804
4136
|
* @throws {RequiredError}
|
|
3805
4137
|
*/
|
|
3806
|
-
getWatchStatus: async (
|
|
3807
|
-
const e = "/watch-mode/status",
|
|
4138
|
+
getWatchStatus: async (n = {}) => {
|
|
4139
|
+
const e = "/watch-mode/status", t = new URL(e, v);
|
|
3808
4140
|
let a;
|
|
3809
4141
|
c && (a = c.baseOptions);
|
|
3810
|
-
const r = { method: "GET", ...a, ...
|
|
3811
|
-
o.Accept = "application/json",
|
|
4142
|
+
const r = { method: "GET", ...a, ...n }, o = {}, s = {};
|
|
4143
|
+
o.Accept = "application/json", P(t, s);
|
|
3812
4144
|
let l = a && a.headers ? a.headers : {};
|
|
3813
|
-
return r.headers = { ...o, ...l, ...
|
|
3814
|
-
url: V(
|
|
4145
|
+
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
4146
|
+
url: V(t),
|
|
3815
4147
|
options: r
|
|
3816
4148
|
};
|
|
3817
4149
|
},
|
|
@@ -3822,15 +4154,15 @@ const ta = function(c) {
|
|
|
3822
4154
|
* @param {*} [options] Override http request option.
|
|
3823
4155
|
* @throws {RequiredError}
|
|
3824
4156
|
*/
|
|
3825
|
-
startWatching: async (
|
|
3826
|
-
|
|
3827
|
-
const
|
|
4157
|
+
startWatching: async (n, e = {}) => {
|
|
4158
|
+
m("startWatching", "startWatchRequest", n);
|
|
4159
|
+
const t = "/watch-mode/start", a = new URL(t, v);
|
|
3828
4160
|
let r;
|
|
3829
4161
|
c && (r = c.baseOptions);
|
|
3830
4162
|
const o = { method: "POST", ...r, ...e }, s = {}, l = {};
|
|
3831
|
-
s["Content-Type"] = "application/json", s.Accept = "application/json",
|
|
4163
|
+
s["Content-Type"] = "application/json", s.Accept = "application/json", P(a, l);
|
|
3832
4164
|
let i = r && r.headers ? r.headers : {};
|
|
3833
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
4165
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = A(n, o, c), {
|
|
3834
4166
|
url: V(a),
|
|
3835
4167
|
options: o
|
|
3836
4168
|
};
|
|
@@ -3841,15 +4173,15 @@ const ta = function(c) {
|
|
|
3841
4173
|
* @param {*} [options] Override http request option.
|
|
3842
4174
|
* @throws {RequiredError}
|
|
3843
4175
|
*/
|
|
3844
|
-
stopWatching: async (
|
|
3845
|
-
const e = "/watch-mode/stop",
|
|
4176
|
+
stopWatching: async (n = {}) => {
|
|
4177
|
+
const e = "/watch-mode/stop", t = new URL(e, v);
|
|
3846
4178
|
let a;
|
|
3847
4179
|
c && (a = c.baseOptions);
|
|
3848
|
-
const r = { method: "POST", ...a, ...
|
|
3849
|
-
o.Accept = "application/json",
|
|
4180
|
+
const r = { method: "POST", ...a, ...n }, o = {}, s = {};
|
|
4181
|
+
o.Accept = "application/json", P(t, s);
|
|
3850
4182
|
let l = a && a.headers ? a.headers : {};
|
|
3851
|
-
return r.headers = { ...o, ...l, ...
|
|
3852
|
-
url: V(
|
|
4183
|
+
return r.headers = { ...o, ...l, ...n.headers }, {
|
|
4184
|
+
url: V(t),
|
|
3853
4185
|
options: r
|
|
3854
4186
|
};
|
|
3855
4187
|
},
|
|
@@ -3861,22 +4193,22 @@ const ta = function(c) {
|
|
|
3861
4193
|
* @param {*} [options] Override http request option.
|
|
3862
4194
|
* @throws {RequiredError}
|
|
3863
4195
|
*/
|
|
3864
|
-
streamPackageEvents: async (
|
|
3865
|
-
|
|
3866
|
-
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(
|
|
4196
|
+
streamPackageEvents: async (n, e, t = {}) => {
|
|
4197
|
+
m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
|
|
4198
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, v);
|
|
3867
4199
|
let o;
|
|
3868
4200
|
c && (o = c.baseOptions);
|
|
3869
|
-
const s = { method: "GET", ...o, ...
|
|
3870
|
-
l.Accept = "text/event-stream,application/json",
|
|
4201
|
+
const s = { method: "GET", ...o, ...t }, l = {}, i = {};
|
|
4202
|
+
l.Accept = "text/event-stream,application/json", P(r, i);
|
|
3871
4203
|
let p = o && o.headers ? o.headers : {};
|
|
3872
|
-
return s.headers = { ...l, ...p, ...
|
|
4204
|
+
return s.headers = { ...l, ...p, ...t.headers }, {
|
|
3873
4205
|
url: V(r),
|
|
3874
4206
|
options: s
|
|
3875
4207
|
};
|
|
3876
4208
|
}
|
|
3877
4209
|
};
|
|
3878
|
-
},
|
|
3879
|
-
const
|
|
4210
|
+
}, B = function(c) {
|
|
4211
|
+
const n = sa(c);
|
|
3880
4212
|
return {
|
|
3881
4213
|
/**
|
|
3882
4214
|
* 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.
|
|
@@ -3885,8 +4217,8 @@ const ta = function(c) {
|
|
|
3885
4217
|
* @throws {RequiredError}
|
|
3886
4218
|
*/
|
|
3887
4219
|
async getWatchStatus(e) {
|
|
3888
|
-
const
|
|
3889
|
-
return (o, s) =>
|
|
4220
|
+
const t = await n.getWatchStatus(e), a = c?.serverIndex ?? 0, r = b["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
4221
|
+
return (o, s) => S(t, u, g, c)(o, r || s);
|
|
3890
4222
|
},
|
|
3891
4223
|
/**
|
|
3892
4224
|
* 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.
|
|
@@ -3895,9 +4227,9 @@ const ta = function(c) {
|
|
|
3895
4227
|
* @param {*} [options] Override http request option.
|
|
3896
4228
|
* @throws {RequiredError}
|
|
3897
4229
|
*/
|
|
3898
|
-
async startWatching(e,
|
|
3899
|
-
const a = await
|
|
3900
|
-
return (s, l) =>
|
|
4230
|
+
async startWatching(e, t) {
|
|
4231
|
+
const a = await n.startWatching(e, t), r = c?.serverIndex ?? 0, o = b["WatchModeApi.startWatching"]?.[r]?.url;
|
|
4232
|
+
return (s, l) => S(a, u, g, c)(s, o || l);
|
|
3901
4233
|
},
|
|
3902
4234
|
/**
|
|
3903
4235
|
* 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.
|
|
@@ -3906,8 +4238,8 @@ const ta = function(c) {
|
|
|
3906
4238
|
* @throws {RequiredError}
|
|
3907
4239
|
*/
|
|
3908
4240
|
async stopWatching(e) {
|
|
3909
|
-
const
|
|
3910
|
-
return (o, s) =>
|
|
4241
|
+
const t = await n.stopWatching(e), a = c?.serverIndex ?? 0, r = b["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
4242
|
+
return (o, s) => S(t, u, g, c)(o, r || s);
|
|
3911
4243
|
},
|
|
3912
4244
|
/**
|
|
3913
4245
|
* 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.
|
|
@@ -3917,13 +4249,13 @@ const ta = function(c) {
|
|
|
3917
4249
|
* @param {*} [options] Override http request option.
|
|
3918
4250
|
* @throws {RequiredError}
|
|
3919
4251
|
*/
|
|
3920
|
-
async streamPackageEvents(e,
|
|
3921
|
-
const r = await
|
|
3922
|
-
return (l, i) =>
|
|
4252
|
+
async streamPackageEvents(e, t, a) {
|
|
4253
|
+
const r = await n.streamPackageEvents(e, t, a), o = c?.serverIndex ?? 0, s = b["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
4254
|
+
return (l, i) => S(r, u, g, c)(l, s || i);
|
|
3923
4255
|
}
|
|
3924
4256
|
};
|
|
3925
|
-
},
|
|
3926
|
-
const
|
|
4257
|
+
}, en = function(c, n, e) {
|
|
4258
|
+
const t = B(c);
|
|
3927
4259
|
return {
|
|
3928
4260
|
/**
|
|
3929
4261
|
* 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.
|
|
@@ -3932,7 +4264,7 @@ const ta = function(c) {
|
|
|
3932
4264
|
* @throws {RequiredError}
|
|
3933
4265
|
*/
|
|
3934
4266
|
getWatchStatus(a) {
|
|
3935
|
-
return
|
|
4267
|
+
return t.getWatchStatus(a).then((r) => r(e, n));
|
|
3936
4268
|
},
|
|
3937
4269
|
/**
|
|
3938
4270
|
* 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.
|
|
@@ -3942,7 +4274,7 @@ const ta = function(c) {
|
|
|
3942
4274
|
* @throws {RequiredError}
|
|
3943
4275
|
*/
|
|
3944
4276
|
startWatching(a, r) {
|
|
3945
|
-
return
|
|
4277
|
+
return t.startWatching(a, r).then((o) => o(e, n));
|
|
3946
4278
|
},
|
|
3947
4279
|
/**
|
|
3948
4280
|
* 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.
|
|
@@ -3951,7 +4283,7 @@ const ta = function(c) {
|
|
|
3951
4283
|
* @throws {RequiredError}
|
|
3952
4284
|
*/
|
|
3953
4285
|
stopWatching(a) {
|
|
3954
|
-
return
|
|
4286
|
+
return t.stopWatching(a).then((r) => r(e, n));
|
|
3955
4287
|
},
|
|
3956
4288
|
/**
|
|
3957
4289
|
* 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.
|
|
@@ -3962,19 +4294,19 @@ const ta = function(c) {
|
|
|
3962
4294
|
* @throws {RequiredError}
|
|
3963
4295
|
*/
|
|
3964
4296
|
streamPackageEvents(a, r, o) {
|
|
3965
|
-
return
|
|
4297
|
+
return t.streamPackageEvents(a, r, o).then((s) => s(e, n));
|
|
3966
4298
|
}
|
|
3967
4299
|
};
|
|
3968
4300
|
};
|
|
3969
|
-
class
|
|
4301
|
+
class ca extends x {
|
|
3970
4302
|
/**
|
|
3971
4303
|
* 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.
|
|
3972
4304
|
* @summary Get watch mode status
|
|
3973
4305
|
* @param {*} [options] Override http request option.
|
|
3974
4306
|
* @throws {RequiredError}
|
|
3975
4307
|
*/
|
|
3976
|
-
getWatchStatus(
|
|
3977
|
-
return
|
|
4308
|
+
getWatchStatus(n) {
|
|
4309
|
+
return B(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
|
|
3978
4310
|
}
|
|
3979
4311
|
/**
|
|
3980
4312
|
* 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.
|
|
@@ -3983,8 +4315,8 @@ class na extends x {
|
|
|
3983
4315
|
* @param {*} [options] Override http request option.
|
|
3984
4316
|
* @throws {RequiredError}
|
|
3985
4317
|
*/
|
|
3986
|
-
startWatching(
|
|
3987
|
-
return
|
|
4318
|
+
startWatching(n, e) {
|
|
4319
|
+
return B(this.configuration).startWatching(n, e).then((t) => t(this.axios, this.basePath));
|
|
3988
4320
|
}
|
|
3989
4321
|
/**
|
|
3990
4322
|
* 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.
|
|
@@ -3992,8 +4324,8 @@ class na extends x {
|
|
|
3992
4324
|
* @param {*} [options] Override http request option.
|
|
3993
4325
|
* @throws {RequiredError}
|
|
3994
4326
|
*/
|
|
3995
|
-
stopWatching(
|
|
3996
|
-
return
|
|
4327
|
+
stopWatching(n) {
|
|
4328
|
+
return B(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
|
|
3997
4329
|
}
|
|
3998
4330
|
/**
|
|
3999
4331
|
* 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.
|
|
@@ -4003,11 +4335,11 @@ class na extends x {
|
|
|
4003
4335
|
* @param {*} [options] Override http request option.
|
|
4004
4336
|
* @throws {RequiredError}
|
|
4005
4337
|
*/
|
|
4006
|
-
streamPackageEvents(
|
|
4007
|
-
return
|
|
4338
|
+
streamPackageEvents(n, e, t) {
|
|
4339
|
+
return B(this.configuration).streamPackageEvents(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
4008
4340
|
}
|
|
4009
4341
|
}
|
|
4010
|
-
class
|
|
4342
|
+
class la {
|
|
4011
4343
|
/**
|
|
4012
4344
|
* parameter for apiKey security
|
|
4013
4345
|
* @param name security name
|
|
@@ -4058,13 +4390,13 @@ class ra {
|
|
|
4058
4390
|
* @type {new () => FormData}
|
|
4059
4391
|
*/
|
|
4060
4392
|
formDataCtor;
|
|
4061
|
-
constructor(
|
|
4062
|
-
this.apiKey =
|
|
4063
|
-
...
|
|
4393
|
+
constructor(n = {}) {
|
|
4394
|
+
this.apiKey = n.apiKey, this.username = n.username, this.password = n.password, this.accessToken = n.accessToken, this.awsv4 = n.awsv4, this.basePath = n.basePath, this.serverIndex = n.serverIndex, this.baseOptions = {
|
|
4395
|
+
...n.baseOptions,
|
|
4064
4396
|
headers: {
|
|
4065
|
-
...
|
|
4397
|
+
...n.baseOptions?.headers
|
|
4066
4398
|
}
|
|
4067
|
-
}, this.formDataCtor =
|
|
4399
|
+
}, this.formDataCtor = n.formDataCtor;
|
|
4068
4400
|
}
|
|
4069
4401
|
/**
|
|
4070
4402
|
* Check if the given MIME is a JSON MIME.
|
|
@@ -4076,11 +4408,11 @@ class ra {
|
|
|
4076
4408
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
4077
4409
|
* @return True if the given MIME is JSON, false otherwise.
|
|
4078
4410
|
*/
|
|
4079
|
-
isJsonMime(
|
|
4080
|
-
return
|
|
4411
|
+
isJsonMime(n) {
|
|
4412
|
+
return n !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(n);
|
|
4081
4413
|
}
|
|
4082
4414
|
}
|
|
4083
|
-
const
|
|
4415
|
+
const ia = new be({
|
|
4084
4416
|
defaultOptions: {
|
|
4085
4417
|
queries: {
|
|
4086
4418
|
// Not retried: `useQueryWithApiError` surfaces a failure the moment it
|
|
@@ -4099,253 +4431,264 @@ const oa = new ue({
|
|
|
4099
4431
|
throwOnError: !1
|
|
4100
4432
|
}
|
|
4101
4433
|
}
|
|
4102
|
-
}),
|
|
4434
|
+
}), an = {
|
|
4103
4435
|
staleTime: 300 * 1e3,
|
|
4104
4436
|
refetchOnWindowFocus: !1,
|
|
4105
4437
|
refetchOnReconnect: !1
|
|
4106
|
-
},
|
|
4107
|
-
function
|
|
4438
|
+
}, J = "publisher:themeMode";
|
|
4439
|
+
function pa() {
|
|
4108
4440
|
if (!(typeof window > "u"))
|
|
4109
4441
|
try {
|
|
4110
|
-
const c = window.localStorage.getItem(
|
|
4442
|
+
const c = window.localStorage.getItem(J);
|
|
4111
4443
|
if (c === "light" || c === "dark" || c === "auto") return c;
|
|
4112
4444
|
} catch {
|
|
4113
4445
|
}
|
|
4114
4446
|
}
|
|
4115
|
-
function
|
|
4447
|
+
function da(c) {
|
|
4116
4448
|
if (!(typeof window > "u"))
|
|
4117
4449
|
try {
|
|
4118
|
-
c === void 0 ? window.localStorage.removeItem(
|
|
4450
|
+
c === void 0 ? window.localStorage.removeItem(J) : window.localStorage.setItem(J, c);
|
|
4119
4451
|
} catch {
|
|
4120
4452
|
}
|
|
4121
4453
|
}
|
|
4122
|
-
function
|
|
4454
|
+
function ma() {
|
|
4123
4455
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
4124
4456
|
}
|
|
4125
4457
|
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
4126
|
-
const
|
|
4127
|
-
const e = `${window.location.protocol}//${window.location.host}/api/v0`,
|
|
4458
|
+
const de = re(void 0), ha = (c, n) => {
|
|
4459
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = u.create({
|
|
4128
4460
|
baseURL: c || e,
|
|
4129
4461
|
withCredentials: !0,
|
|
4130
4462
|
timeout: 6e5
|
|
4131
4463
|
});
|
|
4132
|
-
|
|
4133
|
-
const o = await
|
|
4464
|
+
t.interceptors.request.use(async (r) => {
|
|
4465
|
+
const o = await n?.();
|
|
4134
4466
|
return r.headers.Authorization = o || "", r;
|
|
4135
4467
|
});
|
|
4136
|
-
const a = new
|
|
4468
|
+
const a = new la({ basePath: e });
|
|
4137
4469
|
return {
|
|
4138
|
-
models: new
|
|
4139
|
-
publisher: new
|
|
4140
|
-
environments: new
|
|
4141
|
-
packages: new
|
|
4142
|
-
dashboards: new
|
|
4143
|
-
dataApps: new
|
|
4144
|
-
notebooks: new
|
|
4145
|
-
reports: new
|
|
4146
|
-
connections: new
|
|
4147
|
-
databases: new
|
|
4148
|
-
materializations: new
|
|
4470
|
+
models: new Ye(a, e, t),
|
|
4471
|
+
publisher: new ta(a, e, t),
|
|
4472
|
+
environments: new Ge(a, e, t),
|
|
4473
|
+
packages: new ea(a, e, t),
|
|
4474
|
+
dashboards: new qe(a, e, t),
|
|
4475
|
+
dataApps: new Le(a, e, t),
|
|
4476
|
+
notebooks: new Xe(a, e, t),
|
|
4477
|
+
reports: new ra(a, e, t),
|
|
4478
|
+
connections: new Be(a, e, t),
|
|
4479
|
+
databases: new He(a, e, t),
|
|
4480
|
+
materializations: new $e(
|
|
4149
4481
|
a,
|
|
4150
4482
|
e,
|
|
4151
|
-
|
|
4483
|
+
t
|
|
4152
4484
|
),
|
|
4153
|
-
watchMode: new
|
|
4485
|
+
watchMode: new ca(a, e, t)
|
|
4154
4486
|
};
|
|
4155
|
-
},
|
|
4487
|
+
}, tn = (c) => /* @__PURE__ */ D(ve, { client: ia, children: /* @__PURE__ */ D(ua, { ...c }) }), ua = ({
|
|
4156
4488
|
children: c,
|
|
4157
|
-
getAccessToken:
|
|
4489
|
+
getAccessToken: n,
|
|
4158
4490
|
baseURL: e,
|
|
4159
|
-
mutable:
|
|
4491
|
+
mutable: t,
|
|
4160
4492
|
theme: a
|
|
4161
4493
|
}) => {
|
|
4162
|
-
const r =
|
|
4163
|
-
() =>
|
|
4164
|
-
[e,
|
|
4165
|
-
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s =
|
|
4494
|
+
const r = j(
|
|
4495
|
+
() => ha(e, n),
|
|
4496
|
+
[e, n]
|
|
4497
|
+
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = Pe({
|
|
4166
4498
|
queryKey: ["status"],
|
|
4167
4499
|
queryFn: async () => (await r.publisher.getStatus()).data
|
|
4168
4500
|
});
|
|
4169
4501
|
s.error && console.error("Failed to fetch publisher status:", s.error);
|
|
4170
4502
|
const l = s.data?.frozenConfig, i = s.data?.theme, p = s.isLoading;
|
|
4171
4503
|
let d;
|
|
4172
|
-
s.isLoading || s.error ? d =
|
|
4173
|
-
const
|
|
4504
|
+
s.isLoading || s.error ? d = t : l ? d = !1 : d = t ?? !0;
|
|
4505
|
+
const h = j(
|
|
4174
4506
|
() => [i, a],
|
|
4175
4507
|
[i, a]
|
|
4176
|
-
), [
|
|
4177
|
-
|
|
4178
|
-
), [C, R] =
|
|
4179
|
-
|
|
4508
|
+
), [O, k] = ee(
|
|
4509
|
+
pa
|
|
4510
|
+
), [C, R] = ee(ma);
|
|
4511
|
+
Ve(() => {
|
|
4180
4512
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
4181
|
-
const
|
|
4182
|
-
return
|
|
4513
|
+
const T = window.matchMedia("(prefers-color-scheme: dark)"), Z = (ge) => R(ge.matches);
|
|
4514
|
+
return T.addEventListener("change", Z), () => T.removeEventListener("change", Z);
|
|
4183
4515
|
}, []);
|
|
4184
|
-
const
|
|
4185
|
-
k(
|
|
4186
|
-
}, []),
|
|
4187
|
-
() =>
|
|
4516
|
+
const me = Se((T) => {
|
|
4517
|
+
k(T), da(T);
|
|
4518
|
+
}, []), X = i?.allowUserToggle ?? !0, z = X ? O : void 0, he = j(
|
|
4519
|
+
() => Te(
|
|
4188
4520
|
i?.defaultMode,
|
|
4189
|
-
|
|
4521
|
+
z,
|
|
4190
4522
|
C
|
|
4191
4523
|
),
|
|
4192
|
-
[i?.defaultMode,
|
|
4193
|
-
),
|
|
4524
|
+
[i?.defaultMode, z, C]
|
|
4525
|
+
), ue = {
|
|
4194
4526
|
server: o,
|
|
4195
|
-
getAccessToken:
|
|
4527
|
+
getAccessToken: n,
|
|
4196
4528
|
apiClients: r,
|
|
4197
4529
|
mutable: d,
|
|
4198
4530
|
isLoadingStatus: p,
|
|
4199
4531
|
instanceTheme: i
|
|
4200
4532
|
};
|
|
4201
|
-
return /* @__PURE__ */ D(
|
|
4202
|
-
|
|
4533
|
+
return /* @__PURE__ */ D(de.Provider, { value: ue, children: /* @__PURE__ */ D(
|
|
4534
|
+
we,
|
|
4203
4535
|
{
|
|
4204
|
-
layers:
|
|
4205
|
-
mode:
|
|
4206
|
-
userChoice:
|
|
4207
|
-
setMode:
|
|
4208
|
-
allowUserToggle:
|
|
4536
|
+
layers: h,
|
|
4537
|
+
mode: he,
|
|
4538
|
+
userChoice: z,
|
|
4539
|
+
setMode: me,
|
|
4540
|
+
allowUserToggle: X,
|
|
4209
4541
|
children: c
|
|
4210
4542
|
}
|
|
4211
4543
|
) });
|
|
4212
|
-
},
|
|
4213
|
-
const c =
|
|
4544
|
+
}, nn = () => {
|
|
4545
|
+
const c = ne(de);
|
|
4214
4546
|
if (c === void 0)
|
|
4215
4547
|
throw new Error("useServer must be used within a ServerProvider");
|
|
4216
4548
|
return c;
|
|
4217
4549
|
};
|
|
4218
4550
|
export {
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4551
|
+
at as $,
|
|
4552
|
+
Mt as A,
|
|
4553
|
+
$ as B,
|
|
4554
|
+
fa as C,
|
|
4555
|
+
za as D,
|
|
4556
|
+
_a as E,
|
|
4557
|
+
Le as F,
|
|
4226
4558
|
Qe as G,
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4559
|
+
Qt as H,
|
|
4560
|
+
ie as I,
|
|
4561
|
+
Ga as J,
|
|
4562
|
+
He as K,
|
|
4563
|
+
ze as L,
|
|
4564
|
+
Lt as M,
|
|
4565
|
+
pe as N,
|
|
4566
|
+
Ge as O,
|
|
4567
|
+
_e as P,
|
|
4568
|
+
zt as Q,
|
|
4569
|
+
w as R,
|
|
4570
|
+
$t as S,
|
|
4571
|
+
Wa as T,
|
|
4572
|
+
$a as U,
|
|
4573
|
+
Ft as V,
|
|
4574
|
+
Ka as W,
|
|
4575
|
+
Ya as X,
|
|
4576
|
+
Ja as Y,
|
|
4577
|
+
et as Z,
|
|
4578
|
+
Xa as _,
|
|
4579
|
+
Me as a,
|
|
4580
|
+
ca as a$,
|
|
4581
|
+
Za as a0,
|
|
4582
|
+
_t as a1,
|
|
4583
|
+
tt as a2,
|
|
4584
|
+
$e as a3,
|
|
4585
|
+
We as a4,
|
|
4586
|
+
Ht as a5,
|
|
4587
|
+
E as a6,
|
|
4588
|
+
Ye as a7,
|
|
4589
|
+
Ke as a8,
|
|
4590
|
+
Gt as a9,
|
|
4591
|
+
F as aA,
|
|
4592
|
+
vt as aB,
|
|
4593
|
+
Pt as aC,
|
|
4594
|
+
Vt as aD,
|
|
4595
|
+
St as aE,
|
|
4596
|
+
Ot as aF,
|
|
4597
|
+
At as aG,
|
|
4598
|
+
kt as aH,
|
|
4599
|
+
Ct as aI,
|
|
4600
|
+
yt as aJ,
|
|
4601
|
+
It as aK,
|
|
4602
|
+
xt as aL,
|
|
4603
|
+
ra as aM,
|
|
4604
|
+
na as aN,
|
|
4605
|
+
Jt as aO,
|
|
4606
|
+
K as aP,
|
|
4607
|
+
Rt as aQ,
|
|
4608
|
+
Nt as aR,
|
|
4609
|
+
tn as aS,
|
|
4610
|
+
Ut as aT,
|
|
4611
|
+
Tt as aU,
|
|
4612
|
+
wt as aV,
|
|
4613
|
+
Zt as aW,
|
|
4614
|
+
oa as aX,
|
|
4615
|
+
Xt as aY,
|
|
4616
|
+
Y as aZ,
|
|
4617
|
+
Et as a_,
|
|
4618
|
+
f as aa,
|
|
4619
|
+
rt as ab,
|
|
4620
|
+
st as ac,
|
|
4621
|
+
ot as ad,
|
|
4622
|
+
nt as ae,
|
|
4623
|
+
Xe as af,
|
|
4624
|
+
Je as ag,
|
|
4625
|
+
Wt as ah,
|
|
4626
|
+
L as ai,
|
|
4627
|
+
dt as aj,
|
|
4628
|
+
mt as ak,
|
|
4297
4629
|
pt as al,
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4630
|
+
it as am,
|
|
4631
|
+
lt as an,
|
|
4632
|
+
ct as ao,
|
|
4633
|
+
ht as ap,
|
|
4634
|
+
ut as aq,
|
|
4635
|
+
ea as ar,
|
|
4304
4636
|
Ze as as,
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4637
|
+
Kt as at,
|
|
4638
|
+
M as au,
|
|
4639
|
+
gt as av,
|
|
4640
|
+
bt as aw,
|
|
4641
|
+
ta as ax,
|
|
4642
|
+
aa as ay,
|
|
4643
|
+
Yt as az,
|
|
4644
|
+
ft as b,
|
|
4645
|
+
sa as b0,
|
|
4646
|
+
en as b1,
|
|
4647
|
+
B as b2,
|
|
4648
|
+
ia as b3,
|
|
4649
|
+
Ta as b4,
|
|
4650
|
+
nn as b5,
|
|
4651
|
+
Ue as b6,
|
|
4652
|
+
se as b7,
|
|
4653
|
+
Oa as b8,
|
|
4654
|
+
Sa as b9,
|
|
4655
|
+
xa as ba,
|
|
4656
|
+
ya as bb,
|
|
4657
|
+
Ra as bc,
|
|
4658
|
+
Na as bd,
|
|
4659
|
+
ka as be,
|
|
4660
|
+
Aa as bf,
|
|
4661
|
+
Ca as bg,
|
|
4662
|
+
Ia as bh,
|
|
4663
|
+
I as bi,
|
|
4664
|
+
te as bj,
|
|
4665
|
+
we as bk,
|
|
4666
|
+
ae as bl,
|
|
4667
|
+
Ua as bm,
|
|
4668
|
+
Te as bn,
|
|
4669
|
+
an as bo,
|
|
4670
|
+
Q as c,
|
|
4671
|
+
wa as d,
|
|
4672
|
+
Ea as e,
|
|
4673
|
+
Ma as f,
|
|
4674
|
+
Fa as g,
|
|
4332
4675
|
ja as h,
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4676
|
+
Ba as i,
|
|
4677
|
+
la as j,
|
|
4678
|
+
qa as k,
|
|
4679
|
+
Qa as l,
|
|
4680
|
+
Da as m,
|
|
4681
|
+
Be as n,
|
|
4682
|
+
Fe as o,
|
|
4683
|
+
Bt as p,
|
|
4684
|
+
y as q,
|
|
4685
|
+
Dt as r,
|
|
4686
|
+
je as s,
|
|
4687
|
+
jt as t,
|
|
4688
|
+
le as u,
|
|
4689
|
+
La as v,
|
|
4690
|
+
Ha as w,
|
|
4691
|
+
qe as x,
|
|
4349
4692
|
De as y,
|
|
4350
|
-
|
|
4693
|
+
qt as z
|
|
4351
4694
|
};
|