@malloy-publisher/sdk 0.13.1 → 0.15.0
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-C4rimzu4.cjs.js → RenderedResult-B2VzqpJV.cjs.js} +1 -1
- package/dist/{RenderedResult-D5HJr2Xo.es.js → RenderedResult-Ct3z543g.es.js} +9 -9
- package/dist/{ServerProvider-8Eul_YOl.es.js → ServerProvider-Be9eusDF.es.js} +1076 -993
- package/dist/ServerProvider-DDr5VOVF.cjs.js +1 -0
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +335 -335
- package/dist/client/api.d.ts +261 -82
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +110 -104
- package/dist/components/Materializations/DeleteMaterializationDialog.d.ts +1 -1
- package/dist/components/Materializations/MaterializationRunsList.d.ts +1 -1
- package/dist/components/Materializations/utils.d.ts +28 -6
- package/dist/components/Package/PackageProblems.d.ts +6 -0
- package/dist/index.cjs.js +36 -36
- package/dist/index.es.js +7045 -7521
- package/dist/{useCompiledDocument-UADoxvYb.cjs.js → useCompiledDocument-CQG6VO-x.cjs.js} +20 -20
- package/dist/{useCompiledDocument-CwMwrEXo.es.js → useCompiledDocument-CuSAYHX_.es.js} +56 -60
- package/package.json +1 -1
- package/src/components/Materializations/DeleteMaterializationDialog.tsx +5 -16
- package/src/components/Materializations/MaterializationDetailDialog.tsx +4 -4
- package/src/components/Materializations/MaterializationRunsList.tsx +8 -10
- package/src/components/Materializations/Materializations.tsx +3 -13
- package/src/components/Materializations/Materializations.versions.spec.tsx +6 -3
- package/src/components/Materializations/TriggerLabel.tsx +2 -2
- package/src/components/Materializations/utils.spec.ts +29 -1
- package/src/components/Materializations/utils.ts +48 -7
- package/src/components/Package/PackageProblems.spec.tsx +25 -1
- package/src/components/Package/PackageProblems.tsx +32 -2
- package/dist/ServerProvider-Cvllj0GN.cjs.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Q } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClient as ye, QueryClientProvider as Ce, useQuery as Ie } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as le, useMemo as B, createContext as
|
|
4
|
+
import { useContext as le, useMemo as B, createContext as ce, useState as oe, useEffect as Re, useCallback as xe } from "react";
|
|
5
5
|
import { styled as j, Card as Ne, CardContent as Ue, CardMedia as Te } from "@mui/material";
|
|
6
6
|
const se = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", U = {
|
|
7
7
|
radius: { control: "6px", tile: "8px", menu: "10px", dialog: "12px" },
|
|
@@ -35,7 +35,7 @@ function Ee(l) {
|
|
|
35
35
|
shadow: { ...U.shadow, ...l.shadow }
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const R = {
|
|
39
39
|
blue: "#2563eb",
|
|
40
40
|
indigo: "#4f46e5",
|
|
41
41
|
violet: "#7c3aed",
|
|
@@ -49,9 +49,9 @@ const x = {
|
|
|
49
49
|
cyan: "#0e7490",
|
|
50
50
|
slate: "#475569"
|
|
51
51
|
}, Ma = {
|
|
52
|
-
environment:
|
|
53
|
-
package:
|
|
54
|
-
connection:
|
|
52
|
+
environment: R.emerald,
|
|
53
|
+
package: R.teal,
|
|
54
|
+
connection: R.orange
|
|
55
55
|
}, Fa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ba = j(Ne)({
|
|
56
56
|
display: "flex",
|
|
57
57
|
flexDirection: "column",
|
|
@@ -76,13 +76,13 @@ const x = {
|
|
|
76
76
|
marginBottom: "0"
|
|
77
77
|
}), Qa = j("div")({
|
|
78
78
|
height: "100%"
|
|
79
|
-
}),
|
|
79
|
+
}), _a = j("div")({
|
|
80
80
|
height: "75vh",
|
|
81
81
|
width: "100%",
|
|
82
82
|
overflowY: "auto"
|
|
83
83
|
}), fe = {
|
|
84
84
|
light: {
|
|
85
|
-
accent:
|
|
85
|
+
accent: R.blue,
|
|
86
86
|
accentHover: "#1d4ed8",
|
|
87
87
|
accentContrast: "#ffffff"
|
|
88
88
|
},
|
|
@@ -105,46 +105,46 @@ const x = {
|
|
|
105
105
|
return t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4;
|
|
106
106
|
});
|
|
107
107
|
return 0.2126 * r + 0.7152 * a + 0.0722 * n;
|
|
108
|
-
},
|
|
108
|
+
}, _ = (l, r) => {
|
|
109
109
|
const [a, n] = [K(l), K(r)].sort((e, t) => t - e);
|
|
110
110
|
return (a + 0.05) / (n + 0.05);
|
|
111
111
|
};
|
|
112
|
-
function
|
|
112
|
+
function qa(l, r) {
|
|
113
113
|
const a = E(l), n = E(r);
|
|
114
|
-
return a && n ?
|
|
114
|
+
return a && n ? _(a, n) : void 0;
|
|
115
115
|
}
|
|
116
116
|
const Fe = [15, 23, 42];
|
|
117
117
|
function $(l, r, a = Me) {
|
|
118
118
|
const n = E(l), e = E(r);
|
|
119
|
-
if (!n || !e ||
|
|
119
|
+
if (!n || !e || _(n, e) >= a) return l;
|
|
120
120
|
const t = K(e) < 0.5 ? 255 : 0;
|
|
121
121
|
for (let s = 0.05; s < 1; s += 0.05) {
|
|
122
122
|
const o = E(W(n, t, s));
|
|
123
|
-
if (o &&
|
|
123
|
+
if (o && _(o, e) >= a) return pe(o);
|
|
124
124
|
}
|
|
125
125
|
return t === 255 ? "#ffffff" : "#000000";
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ie(l, r, a = we[r]) {
|
|
128
128
|
const n = fe[r];
|
|
129
|
-
if (!l || l.toLowerCase() ===
|
|
129
|
+
if (!l || l.toLowerCase() === R.blue) return n;
|
|
130
130
|
if (!E(l))
|
|
131
131
|
return r === "light" ? { ...n, accent: l, accentHover: l } : n;
|
|
132
|
-
const e = $(l, a), t = E(e), s = r === "dark" ? W(t, 255, 0.25) : W(t, 0, 0.2), o =
|
|
132
|
+
const e = $(l, a), t = E(e), s = r === "dark" ? W(t, 255, 0.25) : W(t, 0, 0.2), o = _(t, [255, 255, 255]), i = _(t, Fe);
|
|
133
133
|
return {
|
|
134
134
|
accent: e,
|
|
135
135
|
accentHover: s,
|
|
136
|
-
accentContrast: o >=
|
|
136
|
+
accentContrast: o >= i ? "#ffffff" : "#0f172a"
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
const Be = [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
R.blue,
|
|
141
|
+
R.orange,
|
|
142
|
+
R.emerald,
|
|
143
|
+
R.pink,
|
|
144
|
+
R.violet,
|
|
145
|
+
R.amber,
|
|
146
|
+
R.cyan,
|
|
147
|
+
R.lime
|
|
148
148
|
], je = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", Y = {
|
|
149
149
|
defaultMode: "light",
|
|
150
150
|
allowUserToggle: !0,
|
|
@@ -196,8 +196,8 @@ const Be = [
|
|
|
196
196
|
// pairs this with a near-neutral low end. Matches the first series
|
|
197
197
|
// colour, so a map and a chart on one page ramp to the same hue.
|
|
198
198
|
mapColor: {
|
|
199
|
-
light:
|
|
200
|
-
dark:
|
|
199
|
+
light: R.blue,
|
|
200
|
+
dark: R.blue
|
|
201
201
|
},
|
|
202
202
|
// Table gridlines and row rules: a hairline, because a table has dozens
|
|
203
203
|
// of them and they only have to separate rows.
|
|
@@ -259,7 +259,7 @@ function de(l, r) {
|
|
|
259
259
|
size: 12
|
|
260
260
|
};
|
|
261
261
|
let e = [...a.series ?? []], t = !1, s = n.family ?? "sans-serif", o = n.size ?? 12;
|
|
262
|
-
const
|
|
262
|
+
const i = {
|
|
263
263
|
background: { ...a.background ?? {} },
|
|
264
264
|
tableHeader: { ...a.tableHeader ?? {} },
|
|
265
265
|
tableHeaderBackground: {
|
|
@@ -275,7 +275,7 @@ function de(l, r) {
|
|
|
275
275
|
gridline: { ...a.gridline ?? {} },
|
|
276
276
|
chartText: { ...a.chartText ?? {} },
|
|
277
277
|
value: { ...a.value ?? {} }
|
|
278
|
-
},
|
|
278
|
+
}, c = {
|
|
279
279
|
light: /* @__PURE__ */ new Set(),
|
|
280
280
|
dark: /* @__PURE__ */ new Set()
|
|
281
281
|
};
|
|
@@ -284,11 +284,11 @@ function de(l, r) {
|
|
|
284
284
|
Array.isArray(O.palette?.series) && (e = [...O.palette.series], t = !0);
|
|
285
285
|
for (const y of De) {
|
|
286
286
|
const N = O.palette?.[y];
|
|
287
|
-
N && (
|
|
287
|
+
N && (i[y] = { ...i[y], ...N }, N.light !== void 0 && c.light.add(y), N.dark !== void 0 && c.dark.add(y));
|
|
288
288
|
}
|
|
289
289
|
typeof O.font?.family == "string" && (s = O.font.family), typeof O.font?.size == "number" && (o = O.font.size);
|
|
290
290
|
}
|
|
291
|
-
const p = r === "dark", d = (O) =>
|
|
291
|
+
const p = r === "dark", d = (O) => i[O][r] ?? a[O]?.[r], h = d("background"), k = p && c.light.has("mapColor") && !c.dark.has("mapColor") ? $(i.mapColor.light, h) : d("mapColor");
|
|
292
292
|
return {
|
|
293
293
|
mode: r,
|
|
294
294
|
// The host's chrome tokens are laid over this by `ThemeProvider`.
|
|
@@ -297,7 +297,7 @@ function de(l, r) {
|
|
|
297
297
|
// an operator's colour too dark to see on the canvas is lifted until it
|
|
298
298
|
// reads. The defaults are drawn as they always were.
|
|
299
299
|
series: p && t ? e.map((O) => $(O, h)) : e,
|
|
300
|
-
...
|
|
300
|
+
...ie(e[0], r, h),
|
|
301
301
|
font: { family: s, size: o },
|
|
302
302
|
background: h,
|
|
303
303
|
tableHeader: d("tableHeader"),
|
|
@@ -345,31 +345,31 @@ function de(l, r) {
|
|
|
345
345
|
// contrast on the slate panel.
|
|
346
346
|
// The Console's default accent, not the palette's: a drill reads as a
|
|
347
347
|
// link whatever the operator picked for the data.
|
|
348
|
-
drillLink:
|
|
348
|
+
drillLink: ie(void 0, r).accent
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function za(l, r) {
|
|
352
352
|
const a = r.palette?.series;
|
|
353
353
|
if (!Array.isArray(a) || a.length !== 1) return r;
|
|
354
354
|
const n = a[0], e = l.reduce(
|
|
355
|
-
(
|
|
355
|
+
(c, p) => Array.isArray(p?.palette?.series) ? p.palette.series : c,
|
|
356
356
|
Y.palette?.series ?? []
|
|
357
|
-
), t = (
|
|
357
|
+
), t = (c) => c.toLowerCase() === n.toLowerCase(), [s, ...o] = e, i = o.length > 0 ? o.map((c) => t(c) ? s : c) : (
|
|
358
358
|
// A one-colour host palette has no second slot, so its one colour is the second series.
|
|
359
359
|
[s].filter(
|
|
360
|
-
(
|
|
360
|
+
(c) => c !== void 0 && !t(c)
|
|
361
361
|
)
|
|
362
362
|
);
|
|
363
363
|
return {
|
|
364
364
|
...r,
|
|
365
|
-
palette: { ...r.palette, series: [n, ...
|
|
365
|
+
palette: { ...r.palette, series: [n, ...i] }
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function Le(l, r, a) {
|
|
369
369
|
const n = r ?? l ?? "light";
|
|
370
370
|
return n === "auto" ? a ? "dark" : "light" : n;
|
|
371
371
|
}
|
|
372
|
-
const me =
|
|
372
|
+
const me = ce(void 0);
|
|
373
373
|
function Qe({
|
|
374
374
|
layers: l,
|
|
375
375
|
mode: r,
|
|
@@ -379,20 +379,20 @@ function Qe({
|
|
|
379
379
|
ui: t,
|
|
380
380
|
children: s
|
|
381
381
|
}) {
|
|
382
|
-
const o = JSON.stringify(t ?? null),
|
|
382
|
+
const o = JSON.stringify(t ?? null), i = B(
|
|
383
383
|
() => Ee(t),
|
|
384
384
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
385
385
|
[o]
|
|
386
|
-
),
|
|
387
|
-
() => ({ ...de(l, r), ui:
|
|
388
|
-
[l, r,
|
|
386
|
+
), c = B(
|
|
387
|
+
() => ({ ...de(l, r), ui: i }),
|
|
388
|
+
[l, r, i]
|
|
389
389
|
), p = B(
|
|
390
|
-
() => ({ theme:
|
|
391
|
-
[
|
|
390
|
+
() => ({ theme: c, layers: l, mode: r, userChoice: a, setMode: n, allowUserToggle: e }),
|
|
391
|
+
[c, l, r, a, n, e]
|
|
392
392
|
);
|
|
393
393
|
return /* @__PURE__ */ Q(me.Provider, { value: p, children: s });
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Ha() {
|
|
396
396
|
const l = le(me);
|
|
397
397
|
return l || {
|
|
398
398
|
theme: de([], "light"),
|
|
@@ -411,14 +411,14 @@ class I {
|
|
|
411
411
|
}
|
|
412
412
|
configuration;
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class _e extends Error {
|
|
415
415
|
constructor(r, a) {
|
|
416
416
|
super(a), this.field = r, this.name = "RequiredError";
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
const P = {},
|
|
419
|
+
const P = {}, b = "https://example.com", m = function(l, r, a) {
|
|
420
420
|
if (a == null)
|
|
421
|
-
throw new
|
|
421
|
+
throw new _e(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
|
|
422
422
|
};
|
|
423
423
|
function J(l, r, a = "") {
|
|
424
424
|
r != null && (typeof r == "object" ? Array.isArray(r) || r instanceof Set ? r.forEach((n) => J(l, n, a)) : Object.keys(r).forEach(
|
|
@@ -428,12 +428,12 @@ function J(l, r, a = "") {
|
|
|
428
428
|
const v = function(l, ...r) {
|
|
429
429
|
const a = new URLSearchParams(l.search);
|
|
430
430
|
J(a, r), l.search = a.toString();
|
|
431
|
-
},
|
|
431
|
+
}, qe = function(l, r) {
|
|
432
432
|
return r instanceof Set ? Array.from(r) : r;
|
|
433
433
|
}, A = function(l, r, a) {
|
|
434
434
|
const n = typeof l != "string";
|
|
435
|
-
return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {},
|
|
436
|
-
},
|
|
435
|
+
return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}, qe) : l || "";
|
|
436
|
+
}, V = function(l) {
|
|
437
437
|
return l.pathname + l.search + l.hash;
|
|
438
438
|
}, S = function(l, r, a, n) {
|
|
439
439
|
return (e = r, t = a) => {
|
|
@@ -498,7 +498,7 @@ const v = function(l, ...r) {
|
|
|
498
498
|
}, st = {
|
|
499
499
|
Embedded: "embedded",
|
|
500
500
|
Materialized: "materialized"
|
|
501
|
-
},
|
|
501
|
+
}, it = {
|
|
502
502
|
Equal: "equal",
|
|
503
503
|
In: "in",
|
|
504
504
|
Like: "like",
|
|
@@ -508,7 +508,7 @@ const v = function(l, ...r) {
|
|
|
508
508
|
Live: "live",
|
|
509
509
|
StaleOk: "stale_ok",
|
|
510
510
|
Fail: "fail"
|
|
511
|
-
},
|
|
511
|
+
}, ct = {
|
|
512
512
|
Select: "select",
|
|
513
513
|
Multiselect: "multiselect"
|
|
514
514
|
}, pt = {
|
|
@@ -521,6 +521,10 @@ const v = function(l, ...r) {
|
|
|
521
521
|
Error: "error"
|
|
522
522
|
}, mt = {
|
|
523
523
|
Persist: "persist",
|
|
524
|
+
Materialize: "materialize",
|
|
525
|
+
View: "view",
|
|
526
|
+
Query: "query",
|
|
527
|
+
Rollup: "rollup",
|
|
524
528
|
Preaggregate: "preaggregate"
|
|
525
529
|
}, ht = {
|
|
526
530
|
Reused: "reused",
|
|
@@ -534,42 +538,47 @@ const v = function(l, ...r) {
|
|
|
534
538
|
Full: "full",
|
|
535
539
|
None: "none"
|
|
536
540
|
}, Pt = {
|
|
541
|
+
AuthorName: "author_name",
|
|
542
|
+
DestinationMissing: "destination_missing",
|
|
543
|
+
MayBeServed: "may_be_served"
|
|
544
|
+
}, bt = {
|
|
537
545
|
Pending: "PENDING",
|
|
538
546
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
539
547
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
540
548
|
Failed: "FAILED",
|
|
541
549
|
Cancelled: "CANCELLED"
|
|
542
|
-
},
|
|
550
|
+
}, vt = {
|
|
543
551
|
Compile: "compile",
|
|
544
552
|
Extraction: "extraction"
|
|
545
|
-
},
|
|
553
|
+
}, Vt = {
|
|
546
554
|
Markdown: "markdown",
|
|
547
555
|
Code: "code"
|
|
548
|
-
},
|
|
556
|
+
}, St = {
|
|
549
557
|
Markdown: "markdown",
|
|
550
558
|
Query: "query",
|
|
551
559
|
Definition: "definition"
|
|
552
|
-
},
|
|
560
|
+
}, kt = {
|
|
553
561
|
Markdown: "markdown",
|
|
554
562
|
Code: "code"
|
|
555
|
-
},
|
|
563
|
+
}, Ot = {
|
|
556
564
|
Markdown: "markdown",
|
|
557
565
|
Query: "query",
|
|
558
566
|
Definition: "definition"
|
|
559
|
-
},
|
|
567
|
+
}, At = {
|
|
560
568
|
Archive: "archive",
|
|
561
569
|
Unarchive: "unarchive"
|
|
562
|
-
},
|
|
570
|
+
}, yt = {
|
|
563
571
|
Version: "version",
|
|
564
572
|
Package: "package"
|
|
565
|
-
},
|
|
573
|
+
}, Ct = {
|
|
566
574
|
Declared: "declared",
|
|
567
575
|
All: "all"
|
|
568
|
-
},
|
|
576
|
+
}, It = {
|
|
569
577
|
Unbound: "unbound",
|
|
570
578
|
Bound: "bound",
|
|
579
|
+
BindFailed: "bind_failed",
|
|
571
580
|
LiveFallback: "live_fallback"
|
|
572
|
-
},
|
|
581
|
+
}, Rt = {
|
|
573
582
|
Lexical: "lexical",
|
|
574
583
|
Indexing: "indexing",
|
|
575
584
|
Ready: "ready",
|
|
@@ -579,49 +588,56 @@ const v = function(l, ...r) {
|
|
|
579
588
|
}, xt = {
|
|
580
589
|
Cooldown: "cooldown",
|
|
581
590
|
TooManyEntities: "too-many-entities"
|
|
582
|
-
},
|
|
591
|
+
}, Nt = {
|
|
583
592
|
Keyphrase: "keyphrase",
|
|
584
593
|
SourceSummary: "source_summary"
|
|
585
|
-
},
|
|
594
|
+
}, Ut = {
|
|
586
595
|
Archive: "archive",
|
|
587
596
|
Unarchive: "unarchive"
|
|
588
|
-
},
|
|
597
|
+
}, Tt = {
|
|
589
598
|
Unbound: "unbound",
|
|
590
599
|
Bound: "bound",
|
|
600
|
+
BindFailed: "bind_failed",
|
|
591
601
|
LiveFallback: "live_fallback"
|
|
592
|
-
},
|
|
602
|
+
}, Et = {
|
|
593
603
|
Archive: "archive",
|
|
594
604
|
Unarchive: "unarchive"
|
|
595
|
-
},
|
|
605
|
+
}, ft = {
|
|
596
606
|
Version: "version",
|
|
597
607
|
Package: "package"
|
|
598
|
-
},
|
|
608
|
+
}, wt = {
|
|
599
609
|
Declared: "declared",
|
|
600
610
|
All: "all"
|
|
601
|
-
},
|
|
611
|
+
}, Mt = {
|
|
602
612
|
Unbound: "unbound",
|
|
603
613
|
Bound: "bound",
|
|
614
|
+
BindFailed: "bind_failed",
|
|
604
615
|
LiveFallback: "live_fallback"
|
|
605
|
-
},
|
|
616
|
+
}, Ft = {
|
|
606
617
|
Archive: "archive",
|
|
607
618
|
Unarchive: "unarchive"
|
|
608
|
-
},
|
|
619
|
+
}, Bt = {
|
|
609
620
|
Unbound: "unbound",
|
|
610
621
|
Bound: "bound",
|
|
622
|
+
BindFailed: "bind_failed",
|
|
611
623
|
LiveFallback: "live_fallback"
|
|
612
|
-
}, Bt = {
|
|
613
|
-
Archive: "archive",
|
|
614
|
-
Unarchive: "unarchive"
|
|
615
624
|
}, jt = {
|
|
616
625
|
Archive: "archive",
|
|
617
626
|
Unarchive: "unarchive"
|
|
618
627
|
}, Dt = {
|
|
628
|
+
Archive: "archive",
|
|
629
|
+
Unarchive: "unarchive"
|
|
630
|
+
}, Lt = {
|
|
619
631
|
Error: "error",
|
|
620
632
|
Warn: "warn"
|
|
621
|
-
},
|
|
633
|
+
}, Qt = {
|
|
622
634
|
Persist: "persist",
|
|
635
|
+
Materialize: "materialize",
|
|
636
|
+
View: "view",
|
|
637
|
+
Query: "query",
|
|
638
|
+
Rollup: "rollup",
|
|
623
639
|
Preaggregate: "preaggregate"
|
|
624
|
-
},
|
|
640
|
+
}, _t = {
|
|
625
641
|
Disable: "disable",
|
|
626
642
|
NoVerify: "no-verify",
|
|
627
643
|
VerifyCa: "verify-ca",
|
|
@@ -632,39 +648,70 @@ const v = function(l, ...r) {
|
|
|
632
648
|
Index: "index",
|
|
633
649
|
Ops: "ops"
|
|
634
650
|
}, zt = {
|
|
651
|
+
Persist: "persist",
|
|
652
|
+
Materialize: "materialize",
|
|
653
|
+
View: "view",
|
|
654
|
+
Query: "query",
|
|
655
|
+
Rollup: "rollup"
|
|
656
|
+
}, Ht = {
|
|
635
657
|
Used: "used",
|
|
636
658
|
Skipped: "skipped"
|
|
637
|
-
},
|
|
659
|
+
}, Gt = {
|
|
660
|
+
Persist: "persist",
|
|
661
|
+
Materialize: "materialize",
|
|
662
|
+
View: "view",
|
|
663
|
+
Query: "query",
|
|
664
|
+
Rollup: "rollup"
|
|
665
|
+
}, Wt = {
|
|
638
666
|
Sibling: "sibling",
|
|
639
667
|
Below: "below"
|
|
640
|
-
},
|
|
668
|
+
}, Kt = {
|
|
669
|
+
Persist: "persist",
|
|
670
|
+
Materialize: "materialize",
|
|
671
|
+
View: "view",
|
|
672
|
+
Query: "query",
|
|
673
|
+
Rollup: "rollup"
|
|
674
|
+
}, $t = {
|
|
675
|
+
Database: "database",
|
|
676
|
+
Storage: "storage"
|
|
677
|
+
}, Yt = {
|
|
641
678
|
View: "view",
|
|
679
|
+
Query: "query",
|
|
642
680
|
Rollup: "rollup",
|
|
643
681
|
Materialized: "materialized",
|
|
644
682
|
Live: "live"
|
|
645
|
-
},
|
|
683
|
+
}, Jt = {
|
|
646
684
|
Query: "query",
|
|
647
685
|
ServerDefault: "server_default"
|
|
648
|
-
},
|
|
686
|
+
}, Zt = {
|
|
649
687
|
Storage: "storage",
|
|
688
|
+
Database: "database",
|
|
650
689
|
LiveFallback: "live_fallback"
|
|
651
|
-
},
|
|
690
|
+
}, Xt = {
|
|
652
691
|
Malloynb: "malloynb",
|
|
653
692
|
Malloy: "malloy"
|
|
654
|
-
},
|
|
693
|
+
}, en = {
|
|
655
694
|
Snapshot: "SNAPSHOT",
|
|
656
695
|
Copy: "COPY"
|
|
657
|
-
},
|
|
696
|
+
}, an = {
|
|
697
|
+
Persist: "persist",
|
|
698
|
+
Materialize: "materialize",
|
|
699
|
+
View: "view",
|
|
700
|
+
Query: "query",
|
|
701
|
+
Rollup: "rollup"
|
|
702
|
+
}, tn = {
|
|
658
703
|
Storage: "storage",
|
|
659
|
-
|
|
660
|
-
Preaggregate: "preaggregate"
|
|
661
|
-
|
|
704
|
+
Database: "database",
|
|
705
|
+
Preaggregate: "preaggregate",
|
|
706
|
+
Colocated: "colocated"
|
|
707
|
+
}, nn = {
|
|
662
708
|
FreeParameter: "free_parameter",
|
|
663
709
|
Given: "given",
|
|
664
710
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
665
711
|
DynamicProjection: "dynamic_projection",
|
|
666
712
|
DynamicJoin: "dynamic_join",
|
|
667
713
|
DynamicJoinedWhere: "dynamic_joined_where",
|
|
714
|
+
InheritedWhereWithGiven: "inherited_where_with_given",
|
|
668
715
|
PartitionWithoutStorage: "partition_without_storage",
|
|
669
716
|
PartitionColumnUnknown: "partition_column_unknown",
|
|
670
717
|
PartitionColumnNotPublic: "partition_column_not_public",
|
|
@@ -674,66 +721,100 @@ const v = function(l, ...r) {
|
|
|
674
721
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
675
722
|
PublicSurfaceUnknown: "public_surface_unknown",
|
|
676
723
|
ReadOnlyDialect: "read_only_dialect",
|
|
724
|
+
ConnectionCannotHoldTable: "connection_cannot_hold_table",
|
|
725
|
+
StorageSourceUnsupported: "storage_source_unsupported",
|
|
677
726
|
EnvReference: "env_reference",
|
|
678
|
-
RollupNameCollision: "rollup_name_collision"
|
|
679
|
-
|
|
727
|
+
RollupNameCollision: "rollup_name_collision",
|
|
728
|
+
EmptyStorage: "empty_storage",
|
|
729
|
+
TableNameCollision: "table_name_collision",
|
|
730
|
+
CurrentTime: "current_time",
|
|
731
|
+
ReadsGiven: "reads_given",
|
|
732
|
+
IncrementalUnsupported: "incremental_unsupported",
|
|
733
|
+
MaterializationOff: "materialization_off",
|
|
734
|
+
MultiLineAnnotation: "multi_line_annotation",
|
|
735
|
+
BuildNameCollision: "build_name_collision",
|
|
736
|
+
RunTargetUnsupported: "run_target_unsupported",
|
|
737
|
+
NestedResult: "nested_result",
|
|
738
|
+
InheritedPersist: "inherited_persist",
|
|
739
|
+
InlineUnsupported: "inline_unsupported",
|
|
740
|
+
NoStoredColumns: "no_stored_columns",
|
|
741
|
+
NeedsQualifiedName: "needs_qualified_name",
|
|
742
|
+
GeneratedBuildFailed: "generated_build_failed",
|
|
743
|
+
HiddenField: "hidden_field",
|
|
744
|
+
AccessFilter: "access_filter",
|
|
745
|
+
TimeZone: "time_zone",
|
|
746
|
+
UnreadableMeasure: "unreadable_measure",
|
|
747
|
+
JoinNotInGrain: "join_not_in_grain",
|
|
748
|
+
PartialNameCollision: "partial_name_collision",
|
|
749
|
+
GivenWhereOverUnstoredField: "given_where_over_unstored_field",
|
|
750
|
+
UnreadableGrain: "unreadable_grain"
|
|
751
|
+
}, rn = {
|
|
680
752
|
Grid: "grid",
|
|
681
753
|
Linear: "linear"
|
|
682
|
-
},
|
|
754
|
+
}, on = {
|
|
683
755
|
Malloynb: "malloynb",
|
|
684
756
|
Malloy: "malloy"
|
|
685
|
-
},
|
|
757
|
+
}, sn = {
|
|
686
758
|
Grid: "grid",
|
|
687
759
|
Linear: "linear"
|
|
688
|
-
},
|
|
760
|
+
}, ln = {
|
|
689
761
|
Query: "query",
|
|
690
762
|
Text: "text"
|
|
691
|
-
},
|
|
763
|
+
}, cn = {
|
|
692
764
|
Publish: "publish",
|
|
693
765
|
OnDemand: "on_demand",
|
|
694
766
|
Scheduler: "scheduler"
|
|
695
|
-
},
|
|
767
|
+
}, pn = {
|
|
696
768
|
Config: "config",
|
|
697
769
|
CredentialChain: "credential_chain"
|
|
698
|
-
},
|
|
770
|
+
}, dn = {
|
|
699
771
|
Initializing: "initializing",
|
|
700
772
|
Serving: "serving",
|
|
701
773
|
Draining: "draining",
|
|
702
774
|
Throttled: "throttled"
|
|
703
|
-
},
|
|
775
|
+
}, mn = {
|
|
704
776
|
Off: "off",
|
|
705
777
|
On: "on"
|
|
706
|
-
},
|
|
778
|
+
}, hn = {
|
|
707
779
|
OnPublish: "on-publish",
|
|
708
780
|
Explicit: "explicit"
|
|
709
|
-
},
|
|
781
|
+
}, un = {
|
|
710
782
|
Explorer: "explorer",
|
|
711
783
|
Viewer: "viewer"
|
|
712
|
-
},
|
|
784
|
+
}, gn = {
|
|
713
785
|
Bundled: "bundled",
|
|
714
786
|
Package: "package"
|
|
715
|
-
},
|
|
787
|
+
}, Pn = {
|
|
716
788
|
Bundled: "bundled",
|
|
717
789
|
Package: "package"
|
|
718
|
-
},
|
|
790
|
+
}, bn = {
|
|
719
791
|
NotBuilt: "NOT_BUILT",
|
|
720
|
-
|
|
792
|
+
NotServed: "NOT_SERVED",
|
|
793
|
+
OptedOut: "OPTED_OUT",
|
|
721
794
|
MissingField: "MISSING_FIELD",
|
|
722
|
-
|
|
795
|
+
ShapeMismatch: "SHAPE_MISMATCH",
|
|
796
|
+
RowLevelGate: "ROW_LEVEL_GATE",
|
|
723
797
|
GrainTooCoarse: "GRAIN_TOO_COARSE",
|
|
724
798
|
TimeZone: "TIME_ZONE",
|
|
725
799
|
CrossConnection: "CROSS_CONNECTION",
|
|
726
800
|
CountSemantics: "COUNT_SEMANTICS",
|
|
727
801
|
Stale: "STALE",
|
|
802
|
+
ReadFailed: "READ_FAILED",
|
|
803
|
+
Warned: "WARNED",
|
|
804
|
+
Contract: "CONTRACT",
|
|
728
805
|
RunFailed: "RUN_FAILED"
|
|
729
|
-
},
|
|
806
|
+
}, vn = {
|
|
730
807
|
Persist: "persist",
|
|
808
|
+
Materialize: "materialize",
|
|
809
|
+
View: "view",
|
|
810
|
+
Query: "query",
|
|
811
|
+
Rollup: "rollup",
|
|
731
812
|
Preaggregate: "preaggregate"
|
|
732
|
-
},
|
|
813
|
+
}, Vn = {
|
|
733
814
|
Light: "light",
|
|
734
815
|
Dark: "dark",
|
|
735
816
|
Auto: "auto"
|
|
736
|
-
},
|
|
817
|
+
}, ze = function(l) {
|
|
737
818
|
return {
|
|
738
819
|
/**
|
|
739
820
|
* 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.
|
|
@@ -748,14 +829,14 @@ const v = function(l, ...r) {
|
|
|
748
829
|
*/
|
|
749
830
|
getAgent: async (r, a, n, e, t, s = {}) => {
|
|
750
831
|
m("getAgent", "environmentName", r), m("getAgent", "packageName", a), m("getAgent", "agentName", n);
|
|
751
|
-
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))),
|
|
752
|
-
let
|
|
753
|
-
l && (
|
|
754
|
-
const p = { method: "GET", ...
|
|
755
|
-
e !== void 0 && (h.skills = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(
|
|
756
|
-
let k =
|
|
832
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
833
|
+
let c;
|
|
834
|
+
l && (c = l.baseOptions);
|
|
835
|
+
const p = { method: "GET", ...c, ...s }, d = {}, h = {};
|
|
836
|
+
e !== void 0 && (h.skills = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
|
|
837
|
+
let k = c && c.headers ? c.headers : {};
|
|
757
838
|
return p.headers = { ...d, ...k, ...s.headers }, {
|
|
758
|
-
url:
|
|
839
|
+
url: V(i),
|
|
759
840
|
options: p
|
|
760
841
|
};
|
|
761
842
|
},
|
|
@@ -772,14 +853,14 @@ const v = function(l, ...r) {
|
|
|
772
853
|
*/
|
|
773
854
|
getAgentSkillFile: async (r, a, n, e, t, s = {}) => {
|
|
774
855
|
m("getAgentSkillFile", "environmentName", r), m("getAgentSkillFile", "packageName", a), m("getAgentSkillFile", "agentName", n), m("getAgentSkillFile", "relativeFilepath", e);
|
|
775
|
-
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))).replace("{relativeFilepath}", encodeURIComponent(String(e))),
|
|
776
|
-
let
|
|
777
|
-
l && (
|
|
778
|
-
const p = { method: "GET", ...
|
|
779
|
-
t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(
|
|
780
|
-
let k =
|
|
856
|
+
const o = "/environments/{environmentName}/packages/{packageName}/agents/{agentName}/skills/{relativeFilepath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{agentName}", encodeURIComponent(String(n))).replace("{relativeFilepath}", encodeURIComponent(String(e))), i = new URL(o, b);
|
|
857
|
+
let c;
|
|
858
|
+
l && (c = l.baseOptions);
|
|
859
|
+
const p = { method: "GET", ...c, ...s }, d = {}, h = {};
|
|
860
|
+
t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
|
|
861
|
+
let k = c && c.headers ? c.headers : {};
|
|
781
862
|
return p.headers = { ...d, ...k, ...s.headers }, {
|
|
782
|
-
url:
|
|
863
|
+
url: V(i),
|
|
783
864
|
options: p
|
|
784
865
|
};
|
|
785
866
|
},
|
|
@@ -794,20 +875,20 @@ const v = function(l, ...r) {
|
|
|
794
875
|
*/
|
|
795
876
|
listAgents: async (r, a, n, e = {}) => {
|
|
796
877
|
m("listAgents", "environmentName", r), m("listAgents", "packageName", a);
|
|
797
|
-
const t = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
878
|
+
const t = "/environments/{environmentName}/packages/{packageName}/agents".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
798
879
|
let o;
|
|
799
880
|
l && (o = l.baseOptions);
|
|
800
|
-
const
|
|
801
|
-
n !== void 0 && (p.versionId = n),
|
|
881
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
882
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
802
883
|
let d = o && o.headers ? o.headers : {};
|
|
803
|
-
return
|
|
804
|
-
url:
|
|
805
|
-
options:
|
|
884
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
885
|
+
url: V(s),
|
|
886
|
+
options: i
|
|
806
887
|
};
|
|
807
888
|
}
|
|
808
889
|
};
|
|
809
|
-
},
|
|
810
|
-
const r =
|
|
890
|
+
}, q = function(l) {
|
|
891
|
+
const r = ze(l);
|
|
811
892
|
return {
|
|
812
893
|
/**
|
|
813
894
|
* 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.
|
|
@@ -821,8 +902,8 @@ const v = function(l, ...r) {
|
|
|
821
902
|
* @throws {RequiredError}
|
|
822
903
|
*/
|
|
823
904
|
async getAgent(a, n, e, t, s, o) {
|
|
824
|
-
const
|
|
825
|
-
return (d, h) => S(
|
|
905
|
+
const i = await r.getAgent(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["AgentsApi.getAgent"]?.[c]?.url;
|
|
906
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
826
907
|
},
|
|
827
908
|
/**
|
|
828
909
|
* 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. A `relative_filepath` from the agent\'s `assets` listing (`<skill>/assets/...`, full view only) is matched exactly against the listing, then read from disk as UTF-8 text and served only if it still hashes to its listed `sha256`; one that changed, or became a link, since the load is a 404. 404 when the agent or the file is not served.
|
|
@@ -836,8 +917,8 @@ const v = function(l, ...r) {
|
|
|
836
917
|
* @throws {RequiredError}
|
|
837
918
|
*/
|
|
838
919
|
async getAgentSkillFile(a, n, e, t, s, o) {
|
|
839
|
-
const
|
|
840
|
-
return (d, h) => S(
|
|
920
|
+
const i = await r.getAgentSkillFile(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["AgentsApi.getAgentSkillFile"]?.[c]?.url;
|
|
921
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
841
922
|
},
|
|
842
923
|
/**
|
|
843
924
|
* 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.
|
|
@@ -849,12 +930,12 @@ const v = function(l, ...r) {
|
|
|
849
930
|
* @throws {RequiredError}
|
|
850
931
|
*/
|
|
851
932
|
async listAgents(a, n, e, t) {
|
|
852
|
-
const s = await r.listAgents(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
853
|
-
return (
|
|
933
|
+
const s = await r.listAgents(a, n, e, t), o = l?.serverIndex ?? 0, i = P["AgentsApi.listAgents"]?.[o]?.url;
|
|
934
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
854
935
|
}
|
|
855
936
|
};
|
|
856
|
-
},
|
|
857
|
-
const n =
|
|
937
|
+
}, Sn = function(l, r, a) {
|
|
938
|
+
const n = q(l);
|
|
858
939
|
return {
|
|
859
940
|
/**
|
|
860
941
|
* 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.
|
|
@@ -867,8 +948,8 @@ const v = function(l, ...r) {
|
|
|
867
948
|
* @param {*} [options] Override http request option.
|
|
868
949
|
* @throws {RequiredError}
|
|
869
950
|
*/
|
|
870
|
-
getAgent(e, t, s, o,
|
|
871
|
-
return n.getAgent(e, t, s, o,
|
|
951
|
+
getAgent(e, t, s, o, i, c) {
|
|
952
|
+
return n.getAgent(e, t, s, o, i, c).then((p) => p(a, r));
|
|
872
953
|
},
|
|
873
954
|
/**
|
|
874
955
|
* 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. A `relative_filepath` from the agent\'s `assets` listing (`<skill>/assets/...`, full view only) is matched exactly against the listing, then read from disk as UTF-8 text and served only if it still hashes to its listed `sha256`; one that changed, or became a link, since the load is a 404. 404 when the agent or the file is not served.
|
|
@@ -881,8 +962,8 @@ const v = function(l, ...r) {
|
|
|
881
962
|
* @param {*} [options] Override http request option.
|
|
882
963
|
* @throws {RequiredError}
|
|
883
964
|
*/
|
|
884
|
-
getAgentSkillFile(e, t, s, o,
|
|
885
|
-
return n.getAgentSkillFile(e, t, s, o,
|
|
965
|
+
getAgentSkillFile(e, t, s, o, i, c) {
|
|
966
|
+
return n.getAgentSkillFile(e, t, s, o, i, c).then((p) => p(a, r));
|
|
886
967
|
},
|
|
887
968
|
/**
|
|
888
969
|
* 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.
|
|
@@ -894,11 +975,11 @@ const v = function(l, ...r) {
|
|
|
894
975
|
* @throws {RequiredError}
|
|
895
976
|
*/
|
|
896
977
|
listAgents(e, t, s, o) {
|
|
897
|
-
return n.listAgents(e, t, s, o).then((
|
|
978
|
+
return n.listAgents(e, t, s, o).then((i) => i(a, r));
|
|
898
979
|
}
|
|
899
980
|
};
|
|
900
981
|
};
|
|
901
|
-
class
|
|
982
|
+
class He extends I {
|
|
902
983
|
/**
|
|
903
984
|
* 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.
|
|
904
985
|
* @summary Get one agent, resolved
|
|
@@ -911,7 +992,7 @@ class _e extends I {
|
|
|
911
992
|
* @throws {RequiredError}
|
|
912
993
|
*/
|
|
913
994
|
getAgent(r, a, n, e, t, s) {
|
|
914
|
-
return
|
|
995
|
+
return q(this.configuration).getAgent(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
|
|
915
996
|
}
|
|
916
997
|
/**
|
|
917
998
|
* 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. A `relative_filepath` from the agent\'s `assets` listing (`<skill>/assets/...`, full view only) is matched exactly against the listing, then read from disk as UTF-8 text and served only if it still hashes to its listed `sha256`; one that changed, or became a link, since the load is a 404. 404 when the agent or the file is not served.
|
|
@@ -925,7 +1006,7 @@ class _e extends I {
|
|
|
925
1006
|
* @throws {RequiredError}
|
|
926
1007
|
*/
|
|
927
1008
|
getAgentSkillFile(r, a, n, e, t, s) {
|
|
928
|
-
return
|
|
1009
|
+
return q(this.configuration).getAgentSkillFile(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
|
|
929
1010
|
}
|
|
930
1011
|
/**
|
|
931
1012
|
* 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.
|
|
@@ -937,10 +1018,10 @@ class _e extends I {
|
|
|
937
1018
|
* @throws {RequiredError}
|
|
938
1019
|
*/
|
|
939
1020
|
listAgents(r, a, n, e) {
|
|
940
|
-
return
|
|
1021
|
+
return q(this.configuration).listAgents(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
941
1022
|
}
|
|
942
1023
|
}
|
|
943
|
-
const
|
|
1024
|
+
const kn = {
|
|
944
1025
|
Full: "full",
|
|
945
1026
|
Summary: "summary"
|
|
946
1027
|
}, Ge = function(l) {
|
|
@@ -956,15 +1037,15 @@ const gn = {
|
|
|
956
1037
|
*/
|
|
957
1038
|
createConnection: async (r, a, n, e = {}) => {
|
|
958
1039
|
m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", n);
|
|
959
|
-
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
1040
|
+
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
960
1041
|
let o;
|
|
961
1042
|
l && (o = l.baseOptions);
|
|
962
|
-
const
|
|
963
|
-
|
|
1043
|
+
const i = { method: "POST", ...o, ...e }, c = {}, p = {};
|
|
1044
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
964
1045
|
let d = o && o.headers ? o.headers : {};
|
|
965
|
-
return
|
|
966
|
-
url:
|
|
967
|
-
options:
|
|
1046
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
1047
|
+
url: V(s),
|
|
1048
|
+
options: i
|
|
968
1049
|
};
|
|
969
1050
|
},
|
|
970
1051
|
/**
|
|
@@ -977,14 +1058,14 @@ const gn = {
|
|
|
977
1058
|
*/
|
|
978
1059
|
deleteConnection: async (r, a, n = {}) => {
|
|
979
1060
|
m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", a);
|
|
980
|
-
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e,
|
|
1061
|
+
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, b);
|
|
981
1062
|
let s;
|
|
982
1063
|
l && (s = l.baseOptions);
|
|
983
|
-
const o = { method: "DELETE", ...s, ...n },
|
|
984
|
-
|
|
1064
|
+
const o = { method: "DELETE", ...s, ...n }, i = {}, c = {};
|
|
1065
|
+
i.Accept = "application/json", v(t, c);
|
|
985
1066
|
let p = s && s.headers ? s.headers : {};
|
|
986
|
-
return o.headers = { ...
|
|
987
|
-
url:
|
|
1067
|
+
return o.headers = { ...i, ...p, ...n.headers }, {
|
|
1068
|
+
url: V(t),
|
|
988
1069
|
options: o
|
|
989
1070
|
};
|
|
990
1071
|
},
|
|
@@ -998,14 +1079,14 @@ const gn = {
|
|
|
998
1079
|
*/
|
|
999
1080
|
getConnection: async (r, a, n = {}) => {
|
|
1000
1081
|
m("getConnection", "environmentName", r), m("getConnection", "connectionName", a);
|
|
1001
|
-
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e,
|
|
1082
|
+
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, b);
|
|
1002
1083
|
let s;
|
|
1003
1084
|
l && (s = l.baseOptions);
|
|
1004
|
-
const o = { method: "GET", ...s, ...n },
|
|
1005
|
-
|
|
1085
|
+
const o = { method: "GET", ...s, ...n }, i = {}, c = {};
|
|
1086
|
+
i.Accept = "application/json", v(t, c);
|
|
1006
1087
|
let p = s && s.headers ? s.headers : {};
|
|
1007
|
-
return o.headers = { ...
|
|
1008
|
-
url:
|
|
1088
|
+
return o.headers = { ...i, ...p, ...n.headers }, {
|
|
1089
|
+
url: V(t),
|
|
1009
1090
|
options: o
|
|
1010
1091
|
};
|
|
1011
1092
|
},
|
|
@@ -1021,15 +1102,15 @@ const gn = {
|
|
|
1021
1102
|
*/
|
|
1022
1103
|
getTable: async (r, a, n, e, t = {}) => {
|
|
1023
1104
|
m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", n), m("getTable", "tablePath", e);
|
|
1024
|
-
const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), o = new URL(s,
|
|
1025
|
-
let
|
|
1026
|
-
l && (
|
|
1027
|
-
const
|
|
1105
|
+
const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), o = new URL(s, b);
|
|
1106
|
+
let i;
|
|
1107
|
+
l && (i = l.baseOptions);
|
|
1108
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
1028
1109
|
p.Accept = "application/json", v(o, d);
|
|
1029
|
-
let h =
|
|
1030
|
-
return
|
|
1031
|
-
url:
|
|
1032
|
-
options:
|
|
1110
|
+
let h = i && i.headers ? i.headers : {};
|
|
1111
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
1112
|
+
url: V(o),
|
|
1113
|
+
options: c
|
|
1033
1114
|
};
|
|
1034
1115
|
},
|
|
1035
1116
|
/**
|
|
@@ -1046,14 +1127,14 @@ const gn = {
|
|
|
1046
1127
|
*/
|
|
1047
1128
|
getTableInPackage: async (r, a, n, e, t, s, o = {}) => {
|
|
1048
1129
|
m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", n), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", t);
|
|
1049
|
-
const
|
|
1130
|
+
const i = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(i, b);
|
|
1050
1131
|
let p;
|
|
1051
1132
|
l && (p = l.baseOptions);
|
|
1052
1133
|
const d = { method: "GET", ...p, ...o }, h = {}, k = {};
|
|
1053
|
-
s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(
|
|
1134
|
+
s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(c, k);
|
|
1054
1135
|
let O = p && p.headers ? p.headers : {};
|
|
1055
1136
|
return d.headers = { ...h, ...O, ...o.headers }, {
|
|
1056
|
-
url:
|
|
1137
|
+
url: V(c),
|
|
1057
1138
|
options: d
|
|
1058
1139
|
};
|
|
1059
1140
|
},
|
|
@@ -1066,14 +1147,14 @@ const gn = {
|
|
|
1066
1147
|
*/
|
|
1067
1148
|
listConnections: async (r, a = {}) => {
|
|
1068
1149
|
m("listConnections", "environmentName", r);
|
|
1069
|
-
const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n,
|
|
1150
|
+
const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, b);
|
|
1070
1151
|
let t;
|
|
1071
1152
|
l && (t = l.baseOptions);
|
|
1072
|
-
const s = { method: "GET", ...t, ...a }, o = {},
|
|
1073
|
-
o.Accept = "application/json", v(e,
|
|
1074
|
-
let
|
|
1075
|
-
return s.headers = { ...o, ...
|
|
1076
|
-
url:
|
|
1153
|
+
const s = { method: "GET", ...t, ...a }, o = {}, i = {};
|
|
1154
|
+
o.Accept = "application/json", v(e, i);
|
|
1155
|
+
let c = t && t.headers ? t.headers : {};
|
|
1156
|
+
return s.headers = { ...o, ...c, ...a.headers }, {
|
|
1157
|
+
url: V(e),
|
|
1077
1158
|
options: s
|
|
1078
1159
|
};
|
|
1079
1160
|
},
|
|
@@ -1087,14 +1168,14 @@ const gn = {
|
|
|
1087
1168
|
*/
|
|
1088
1169
|
listSchemas: async (r, a, n = {}) => {
|
|
1089
1170
|
m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", a);
|
|
1090
|
-
const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e,
|
|
1171
|
+
const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, b);
|
|
1091
1172
|
let s;
|
|
1092
1173
|
l && (s = l.baseOptions);
|
|
1093
|
-
const o = { method: "GET", ...s, ...n },
|
|
1094
|
-
|
|
1174
|
+
const o = { method: "GET", ...s, ...n }, i = {}, c = {};
|
|
1175
|
+
i.Accept = "application/json", v(t, c);
|
|
1095
1176
|
let p = s && s.headers ? s.headers : {};
|
|
1096
|
-
return o.headers = { ...
|
|
1097
|
-
url:
|
|
1177
|
+
return o.headers = { ...i, ...p, ...n.headers }, {
|
|
1178
|
+
url: V(t),
|
|
1098
1179
|
options: o
|
|
1099
1180
|
};
|
|
1100
1181
|
},
|
|
@@ -1110,15 +1191,15 @@ const gn = {
|
|
|
1110
1191
|
*/
|
|
1111
1192
|
listSchemasInPackage: async (r, a, n, e, t = {}) => {
|
|
1112
1193
|
m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", n);
|
|
1113
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(s,
|
|
1114
|
-
let
|
|
1115
|
-
l && (
|
|
1116
|
-
const
|
|
1194
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
1195
|
+
let i;
|
|
1196
|
+
l && (i = l.baseOptions);
|
|
1197
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
1117
1198
|
e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
|
|
1118
|
-
let h =
|
|
1119
|
-
return
|
|
1120
|
-
url:
|
|
1121
|
-
options:
|
|
1199
|
+
let h = i && i.headers ? i.headers : {};
|
|
1200
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
1201
|
+
url: V(o),
|
|
1202
|
+
options: c
|
|
1122
1203
|
};
|
|
1123
1204
|
},
|
|
1124
1205
|
/**
|
|
@@ -1133,15 +1214,15 @@ const gn = {
|
|
|
1133
1214
|
*/
|
|
1134
1215
|
listTables: async (r, a, n, e, t = {}) => {
|
|
1135
1216
|
m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", n);
|
|
1136
|
-
const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), o = new URL(s,
|
|
1137
|
-
let
|
|
1138
|
-
l && (
|
|
1139
|
-
const
|
|
1217
|
+
const s = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
1218
|
+
let i;
|
|
1219
|
+
l && (i = l.baseOptions);
|
|
1220
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
1140
1221
|
e && (d.tableNames = e), p.Accept = "application/json", v(o, d);
|
|
1141
|
-
let h =
|
|
1142
|
-
return
|
|
1143
|
-
url:
|
|
1144
|
-
options:
|
|
1222
|
+
let h = i && i.headers ? i.headers : {};
|
|
1223
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
1224
|
+
url: V(o),
|
|
1225
|
+
options: c
|
|
1145
1226
|
};
|
|
1146
1227
|
},
|
|
1147
1228
|
/**
|
|
@@ -1158,14 +1239,14 @@ const gn = {
|
|
|
1158
1239
|
*/
|
|
1159
1240
|
listTablesInPackage: async (r, a, n, e, t, s, o = {}) => {
|
|
1160
1241
|
m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", n), m("listTablesInPackage", "schemaName", e);
|
|
1161
|
-
const
|
|
1242
|
+
const i = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(i, b);
|
|
1162
1243
|
let p;
|
|
1163
1244
|
l && (p = l.baseOptions);
|
|
1164
1245
|
const d = { method: "GET", ...p, ...o }, h = {}, k = {};
|
|
1165
|
-
t && (k.tableNames = t), s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(
|
|
1246
|
+
t && (k.tableNames = t), s !== void 0 && (k.versionId = s), h.Accept = "application/json", v(c, k);
|
|
1166
1247
|
let O = p && p.headers ? p.headers : {};
|
|
1167
1248
|
return d.headers = { ...h, ...O, ...o.headers }, {
|
|
1168
|
-
url:
|
|
1249
|
+
url: V(c),
|
|
1169
1250
|
options: d
|
|
1170
1251
|
};
|
|
1171
1252
|
},
|
|
@@ -1180,15 +1261,15 @@ const gn = {
|
|
|
1180
1261
|
*/
|
|
1181
1262
|
postQuerydata: async (r, a, n, e = {}) => {
|
|
1182
1263
|
m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", n);
|
|
1183
|
-
const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
1264
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
1184
1265
|
let o;
|
|
1185
1266
|
l && (o = l.baseOptions);
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1267
|
+
const i = { method: "POST", ...o, ...e }, c = {}, p = {};
|
|
1268
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
1188
1269
|
let d = o && o.headers ? o.headers : {};
|
|
1189
|
-
return
|
|
1190
|
-
url:
|
|
1191
|
-
options:
|
|
1270
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
1271
|
+
url: V(s),
|
|
1272
|
+
options: i
|
|
1192
1273
|
};
|
|
1193
1274
|
},
|
|
1194
1275
|
/**
|
|
@@ -1204,14 +1285,14 @@ const gn = {
|
|
|
1204
1285
|
*/
|
|
1205
1286
|
postQuerydataInPackage: async (r, a, n, e, t, s = {}) => {
|
|
1206
1287
|
m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", n), m("postQuerydataInPackage", "postQuerydataRequest", e);
|
|
1207
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))),
|
|
1208
|
-
let
|
|
1209
|
-
l && (
|
|
1210
|
-
const p = { method: "POST", ...
|
|
1211
|
-
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(
|
|
1212
|
-
let k =
|
|
1288
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
1289
|
+
let c;
|
|
1290
|
+
l && (c = l.baseOptions);
|
|
1291
|
+
const p = { method: "POST", ...c, ...s }, d = {}, h = {};
|
|
1292
|
+
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
|
|
1293
|
+
let k = c && c.headers ? c.headers : {};
|
|
1213
1294
|
return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
|
|
1214
|
-
url:
|
|
1295
|
+
url: V(i),
|
|
1215
1296
|
options: p
|
|
1216
1297
|
};
|
|
1217
1298
|
},
|
|
@@ -1226,15 +1307,15 @@ const gn = {
|
|
|
1226
1307
|
*/
|
|
1227
1308
|
postSqlsource: async (r, a, n, e = {}) => {
|
|
1228
1309
|
m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", n);
|
|
1229
|
-
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
1310
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
1230
1311
|
let o;
|
|
1231
1312
|
l && (o = l.baseOptions);
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1313
|
+
const i = { method: "POST", ...o, ...e }, c = {}, p = {};
|
|
1314
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
1234
1315
|
let d = o && o.headers ? o.headers : {};
|
|
1235
|
-
return
|
|
1236
|
-
url:
|
|
1237
|
-
options:
|
|
1316
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
1317
|
+
url: V(s),
|
|
1318
|
+
options: i
|
|
1238
1319
|
};
|
|
1239
1320
|
},
|
|
1240
1321
|
/**
|
|
@@ -1250,14 +1331,14 @@ const gn = {
|
|
|
1250
1331
|
*/
|
|
1251
1332
|
postSqlsourceInPackage: async (r, a, n, e, t, s = {}) => {
|
|
1252
1333
|
m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", n), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
|
|
1253
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))),
|
|
1254
|
-
let
|
|
1255
|
-
l && (
|
|
1256
|
-
const p = { method: "POST", ...
|
|
1257
|
-
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(
|
|
1258
|
-
let k =
|
|
1334
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
1335
|
+
let c;
|
|
1336
|
+
l && (c = l.baseOptions);
|
|
1337
|
+
const p = { method: "POST", ...c, ...s }, d = {}, h = {};
|
|
1338
|
+
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
|
|
1339
|
+
let k = c && c.headers ? c.headers : {};
|
|
1259
1340
|
return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
|
|
1260
|
-
url:
|
|
1341
|
+
url: V(i),
|
|
1261
1342
|
options: p
|
|
1262
1343
|
};
|
|
1263
1344
|
},
|
|
@@ -1272,15 +1353,15 @@ const gn = {
|
|
|
1272
1353
|
*/
|
|
1273
1354
|
postTemporarytable: async (r, a, n, e = {}) => {
|
|
1274
1355
|
m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", n);
|
|
1275
|
-
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
1356
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
1276
1357
|
let o;
|
|
1277
1358
|
l && (o = l.baseOptions);
|
|
1278
|
-
const
|
|
1279
|
-
|
|
1359
|
+
const i = { method: "POST", ...o, ...e }, c = {}, p = {};
|
|
1360
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
1280
1361
|
let d = o && o.headers ? o.headers : {};
|
|
1281
|
-
return
|
|
1282
|
-
url:
|
|
1283
|
-
options:
|
|
1362
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
1363
|
+
url: V(s),
|
|
1364
|
+
options: i
|
|
1284
1365
|
};
|
|
1285
1366
|
},
|
|
1286
1367
|
/**
|
|
@@ -1296,14 +1377,14 @@ const gn = {
|
|
|
1296
1377
|
*/
|
|
1297
1378
|
postTemporarytableInPackage: async (r, a, n, e, t, s = {}) => {
|
|
1298
1379
|
m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", n), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
|
|
1299
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))),
|
|
1300
|
-
let
|
|
1301
|
-
l && (
|
|
1302
|
-
const p = { method: "POST", ...
|
|
1303
|
-
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(
|
|
1304
|
-
let k =
|
|
1380
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
1381
|
+
let c;
|
|
1382
|
+
l && (c = l.baseOptions);
|
|
1383
|
+
const p = { method: "POST", ...c, ...s }, d = {}, h = {};
|
|
1384
|
+
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
|
|
1385
|
+
let k = c && c.headers ? c.headers : {};
|
|
1305
1386
|
return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
|
|
1306
|
-
url:
|
|
1387
|
+
url: V(i),
|
|
1307
1388
|
options: p
|
|
1308
1389
|
};
|
|
1309
1390
|
},
|
|
@@ -1318,15 +1399,15 @@ const gn = {
|
|
|
1318
1399
|
*/
|
|
1319
1400
|
updateConnection: async (r, a, n, e = {}) => {
|
|
1320
1401
|
m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", n);
|
|
1321
|
-
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
1402
|
+
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
1322
1403
|
let o;
|
|
1323
1404
|
l && (o = l.baseOptions);
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1405
|
+
const i = { method: "PATCH", ...o, ...e }, c = {}, p = {};
|
|
1406
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
1326
1407
|
let d = o && o.headers ? o.headers : {};
|
|
1327
|
-
return
|
|
1328
|
-
url:
|
|
1329
|
-
options:
|
|
1408
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
1409
|
+
url: V(s),
|
|
1410
|
+
options: i
|
|
1330
1411
|
};
|
|
1331
1412
|
}
|
|
1332
1413
|
};
|
|
@@ -1343,8 +1424,8 @@ const gn = {
|
|
|
1343
1424
|
* @throws {RequiredError}
|
|
1344
1425
|
*/
|
|
1345
1426
|
async createConnection(a, n, e, t) {
|
|
1346
|
-
const s = await r.createConnection(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
1347
|
-
return (
|
|
1427
|
+
const s = await r.createConnection(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.createConnection"]?.[o]?.url;
|
|
1428
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
1348
1429
|
},
|
|
1349
1430
|
/**
|
|
1350
1431
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1356,7 +1437,7 @@ const gn = {
|
|
|
1356
1437
|
*/
|
|
1357
1438
|
async deleteConnection(a, n, e) {
|
|
1358
1439
|
const t = await r.deleteConnection(a, n, e), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.deleteConnection"]?.[s]?.url;
|
|
1359
|
-
return (
|
|
1440
|
+
return (i, c) => S(t, u, g, l)(i, o || c);
|
|
1360
1441
|
},
|
|
1361
1442
|
/**
|
|
1362
1443
|
* 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.
|
|
@@ -1368,7 +1449,7 @@ const gn = {
|
|
|
1368
1449
|
*/
|
|
1369
1450
|
async getConnection(a, n, e) {
|
|
1370
1451
|
const t = await r.getConnection(a, n, e), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.getConnection"]?.[s]?.url;
|
|
1371
|
-
return (
|
|
1452
|
+
return (i, c) => S(t, u, g, l)(i, o || c);
|
|
1372
1453
|
},
|
|
1373
1454
|
/**
|
|
1374
1455
|
* 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. On a DuckLake connection, a bare tablePath equal to schemaName reads the catalog\'s default schema.
|
|
@@ -1381,8 +1462,8 @@ const gn = {
|
|
|
1381
1462
|
* @throws {RequiredError}
|
|
1382
1463
|
*/
|
|
1383
1464
|
async getTable(a, n, e, t, s) {
|
|
1384
|
-
const o = await r.getTable(a, n, e, t, s),
|
|
1385
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
1465
|
+
const o = await r.getTable(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ConnectionsApi.getTable"]?.[i]?.url;
|
|
1466
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
1386
1467
|
},
|
|
1387
1468
|
/**
|
|
1388
1469
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1396,9 +1477,9 @@ const gn = {
|
|
|
1396
1477
|
* @param {*} [options] Override http request option.
|
|
1397
1478
|
* @throws {RequiredError}
|
|
1398
1479
|
*/
|
|
1399
|
-
async getTableInPackage(a, n, e, t, s, o,
|
|
1400
|
-
const
|
|
1401
|
-
return (h, k) => S(
|
|
1480
|
+
async getTableInPackage(a, n, e, t, s, o, i) {
|
|
1481
|
+
const c = await r.getTableInPackage(a, n, e, t, s, o, i), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[p]?.url;
|
|
1482
|
+
return (h, k) => S(c, u, g, l)(h, d || k);
|
|
1402
1483
|
},
|
|
1403
1484
|
/**
|
|
1404
1485
|
* 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.
|
|
@@ -1409,7 +1490,7 @@ const gn = {
|
|
|
1409
1490
|
*/
|
|
1410
1491
|
async listConnections(a, n) {
|
|
1411
1492
|
const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, s = P["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
1412
|
-
return (o,
|
|
1493
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
1413
1494
|
},
|
|
1414
1495
|
/**
|
|
1415
1496
|
* 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.
|
|
@@ -1421,7 +1502,7 @@ const gn = {
|
|
|
1421
1502
|
*/
|
|
1422
1503
|
async listSchemas(a, n, e) {
|
|
1423
1504
|
const t = await r.listSchemas(a, n, e), s = l?.serverIndex ?? 0, o = P["ConnectionsApi.listSchemas"]?.[s]?.url;
|
|
1424
|
-
return (
|
|
1505
|
+
return (i, c) => S(t, u, g, l)(i, o || c);
|
|
1425
1506
|
},
|
|
1426
1507
|
/**
|
|
1427
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).
|
|
@@ -1434,8 +1515,8 @@ const gn = {
|
|
|
1434
1515
|
* @throws {RequiredError}
|
|
1435
1516
|
*/
|
|
1436
1517
|
async listSchemasInPackage(a, n, e, t, s) {
|
|
1437
|
-
const o = await r.listSchemasInPackage(a, n, e, t, s),
|
|
1438
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
1518
|
+
const o = await r.listSchemasInPackage(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[i]?.url;
|
|
1519
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
1439
1520
|
},
|
|
1440
1521
|
/**
|
|
1441
1522
|
* 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.
|
|
@@ -1448,8 +1529,8 @@ const gn = {
|
|
|
1448
1529
|
* @throws {RequiredError}
|
|
1449
1530
|
*/
|
|
1450
1531
|
async listTables(a, n, e, t, s) {
|
|
1451
|
-
const o = await r.listTables(a, n, e, t, s),
|
|
1452
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
1532
|
+
const o = await r.listTables(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ConnectionsApi.listTables"]?.[i]?.url;
|
|
1533
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
1453
1534
|
},
|
|
1454
1535
|
/**
|
|
1455
1536
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1463,9 +1544,9 @@ const gn = {
|
|
|
1463
1544
|
* @param {*} [options] Override http request option.
|
|
1464
1545
|
* @throws {RequiredError}
|
|
1465
1546
|
*/
|
|
1466
|
-
async listTablesInPackage(a, n, e, t, s, o,
|
|
1467
|
-
const
|
|
1468
|
-
return (h, k) => S(
|
|
1547
|
+
async listTablesInPackage(a, n, e, t, s, o, i) {
|
|
1548
|
+
const c = await r.listTablesInPackage(a, n, e, t, s, o, i), p = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[p]?.url;
|
|
1549
|
+
return (h, k) => S(c, u, g, l)(h, d || k);
|
|
1469
1550
|
},
|
|
1470
1551
|
/**
|
|
1471
1552
|
* 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.
|
|
@@ -1477,8 +1558,8 @@ const gn = {
|
|
|
1477
1558
|
* @throws {RequiredError}
|
|
1478
1559
|
*/
|
|
1479
1560
|
async postQuerydata(a, n, e, t) {
|
|
1480
|
-
const s = await r.postQuerydata(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
1481
|
-
return (
|
|
1561
|
+
const s = await r.postQuerydata(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[o]?.url;
|
|
1562
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
1482
1563
|
},
|
|
1483
1564
|
/**
|
|
1484
1565
|
* 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.
|
|
@@ -1492,8 +1573,8 @@ const gn = {
|
|
|
1492
1573
|
* @throws {RequiredError}
|
|
1493
1574
|
*/
|
|
1494
1575
|
async postQuerydataInPackage(a, n, e, t, s, o) {
|
|
1495
|
-
const
|
|
1496
|
-
return (d, h) => S(
|
|
1576
|
+
const i = await r.postQuerydataInPackage(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
|
|
1577
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
1497
1578
|
},
|
|
1498
1579
|
/**
|
|
1499
1580
|
* 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.
|
|
@@ -1505,8 +1586,8 @@ const gn = {
|
|
|
1505
1586
|
* @throws {RequiredError}
|
|
1506
1587
|
*/
|
|
1507
1588
|
async postSqlsource(a, n, e, t) {
|
|
1508
|
-
const s = await r.postSqlsource(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
1509
|
-
return (
|
|
1589
|
+
const s = await r.postSqlsource(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsource"]?.[o]?.url;
|
|
1590
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
1510
1591
|
},
|
|
1511
1592
|
/**
|
|
1512
1593
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1520,8 +1601,8 @@ const gn = {
|
|
|
1520
1601
|
* @throws {RequiredError}
|
|
1521
1602
|
*/
|
|
1522
1603
|
async postSqlsourceInPackage(a, n, e, t, s, o) {
|
|
1523
|
-
const
|
|
1524
|
-
return (d, h) => S(
|
|
1604
|
+
const i = await r.postSqlsourceInPackage(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
1605
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
1525
1606
|
},
|
|
1526
1607
|
/**
|
|
1527
1608
|
* 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.
|
|
@@ -1533,8 +1614,8 @@ const gn = {
|
|
|
1533
1614
|
* @throws {RequiredError}
|
|
1534
1615
|
*/
|
|
1535
1616
|
async postTemporarytable(a, n, e, t) {
|
|
1536
|
-
const s = await r.postTemporarytable(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
1537
|
-
return (
|
|
1617
|
+
const s = await r.postTemporarytable(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytable"]?.[o]?.url;
|
|
1618
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
1538
1619
|
},
|
|
1539
1620
|
/**
|
|
1540
1621
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1548,8 +1629,8 @@ const gn = {
|
|
|
1548
1629
|
* @throws {RequiredError}
|
|
1549
1630
|
*/
|
|
1550
1631
|
async postTemporarytableInPackage(a, n, e, t, s, o) {
|
|
1551
|
-
const
|
|
1552
|
-
return (d, h) => S(
|
|
1632
|
+
const i = await r.postTemporarytableInPackage(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
1633
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
1553
1634
|
},
|
|
1554
1635
|
/**
|
|
1555
1636
|
* Updates the configuration of an existing database connection.
|
|
@@ -1561,11 +1642,11 @@ const gn = {
|
|
|
1561
1642
|
* @throws {RequiredError}
|
|
1562
1643
|
*/
|
|
1563
1644
|
async updateConnection(a, n, e, t) {
|
|
1564
|
-
const s = await r.updateConnection(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
1565
|
-
return (
|
|
1645
|
+
const s = await r.updateConnection(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ConnectionsApi.updateConnection"]?.[o]?.url;
|
|
1646
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
1566
1647
|
}
|
|
1567
1648
|
};
|
|
1568
|
-
},
|
|
1649
|
+
}, On = function(l, r, a) {
|
|
1569
1650
|
const n = C(l);
|
|
1570
1651
|
return {
|
|
1571
1652
|
/**
|
|
@@ -1578,7 +1659,7 @@ const gn = {
|
|
|
1578
1659
|
* @throws {RequiredError}
|
|
1579
1660
|
*/
|
|
1580
1661
|
createConnection(e, t, s, o) {
|
|
1581
|
-
return n.createConnection(e, t, s, o).then((
|
|
1662
|
+
return n.createConnection(e, t, s, o).then((i) => i(a, r));
|
|
1582
1663
|
},
|
|
1583
1664
|
/**
|
|
1584
1665
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1612,8 +1693,8 @@ const gn = {
|
|
|
1612
1693
|
* @param {*} [options] Override http request option.
|
|
1613
1694
|
* @throws {RequiredError}
|
|
1614
1695
|
*/
|
|
1615
|
-
getTable(e, t, s, o,
|
|
1616
|
-
return n.getTable(e, t, s, o,
|
|
1696
|
+
getTable(e, t, s, o, i) {
|
|
1697
|
+
return n.getTable(e, t, s, o, i).then((c) => c(a, r));
|
|
1617
1698
|
},
|
|
1618
1699
|
/**
|
|
1619
1700
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1627,8 +1708,8 @@ const gn = {
|
|
|
1627
1708
|
* @param {*} [options] Override http request option.
|
|
1628
1709
|
* @throws {RequiredError}
|
|
1629
1710
|
*/
|
|
1630
|
-
getTableInPackage(e, t, s, o,
|
|
1631
|
-
return n.getTableInPackage(e, t, s, o,
|
|
1711
|
+
getTableInPackage(e, t, s, o, i, c, p) {
|
|
1712
|
+
return n.getTableInPackage(e, t, s, o, i, c, p).then((d) => d(a, r));
|
|
1632
1713
|
},
|
|
1633
1714
|
/**
|
|
1634
1715
|
* 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.
|
|
@@ -1661,8 +1742,8 @@ const gn = {
|
|
|
1661
1742
|
* @param {*} [options] Override http request option.
|
|
1662
1743
|
* @throws {RequiredError}
|
|
1663
1744
|
*/
|
|
1664
|
-
listSchemasInPackage(e, t, s, o,
|
|
1665
|
-
return n.listSchemasInPackage(e, t, s, o,
|
|
1745
|
+
listSchemasInPackage(e, t, s, o, i) {
|
|
1746
|
+
return n.listSchemasInPackage(e, t, s, o, i).then((c) => c(a, r));
|
|
1666
1747
|
},
|
|
1667
1748
|
/**
|
|
1668
1749
|
* 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.
|
|
@@ -1674,8 +1755,8 @@ const gn = {
|
|
|
1674
1755
|
* @param {*} [options] Override http request option.
|
|
1675
1756
|
* @throws {RequiredError}
|
|
1676
1757
|
*/
|
|
1677
|
-
listTables(e, t, s, o,
|
|
1678
|
-
return n.listTables(e, t, s, o,
|
|
1758
|
+
listTables(e, t, s, o, i) {
|
|
1759
|
+
return n.listTables(e, t, s, o, i).then((c) => c(a, r));
|
|
1679
1760
|
},
|
|
1680
1761
|
/**
|
|
1681
1762
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1689,8 +1770,8 @@ const gn = {
|
|
|
1689
1770
|
* @param {*} [options] Override http request option.
|
|
1690
1771
|
* @throws {RequiredError}
|
|
1691
1772
|
*/
|
|
1692
|
-
listTablesInPackage(e, t, s, o,
|
|
1693
|
-
return n.listTablesInPackage(e, t, s, o,
|
|
1773
|
+
listTablesInPackage(e, t, s, o, i, c, p) {
|
|
1774
|
+
return n.listTablesInPackage(e, t, s, o, i, c, p).then((d) => d(a, r));
|
|
1694
1775
|
},
|
|
1695
1776
|
/**
|
|
1696
1777
|
* 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.
|
|
@@ -1702,7 +1783,7 @@ const gn = {
|
|
|
1702
1783
|
* @throws {RequiredError}
|
|
1703
1784
|
*/
|
|
1704
1785
|
postQuerydata(e, t, s, o) {
|
|
1705
|
-
return n.postQuerydata(e, t, s, o).then((
|
|
1786
|
+
return n.postQuerydata(e, t, s, o).then((i) => i(a, r));
|
|
1706
1787
|
},
|
|
1707
1788
|
/**
|
|
1708
1789
|
* 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.
|
|
@@ -1715,8 +1796,8 @@ const gn = {
|
|
|
1715
1796
|
* @param {*} [options] Override http request option.
|
|
1716
1797
|
* @throws {RequiredError}
|
|
1717
1798
|
*/
|
|
1718
|
-
postQuerydataInPackage(e, t, s, o,
|
|
1719
|
-
return n.postQuerydataInPackage(e, t, s, o,
|
|
1799
|
+
postQuerydataInPackage(e, t, s, o, i, c) {
|
|
1800
|
+
return n.postQuerydataInPackage(e, t, s, o, i, c).then((p) => p(a, r));
|
|
1720
1801
|
},
|
|
1721
1802
|
/**
|
|
1722
1803
|
* 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.
|
|
@@ -1728,7 +1809,7 @@ const gn = {
|
|
|
1728
1809
|
* @throws {RequiredError}
|
|
1729
1810
|
*/
|
|
1730
1811
|
postSqlsource(e, t, s, o) {
|
|
1731
|
-
return n.postSqlsource(e, t, s, o).then((
|
|
1812
|
+
return n.postSqlsource(e, t, s, o).then((i) => i(a, r));
|
|
1732
1813
|
},
|
|
1733
1814
|
/**
|
|
1734
1815
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1741,8 +1822,8 @@ const gn = {
|
|
|
1741
1822
|
* @param {*} [options] Override http request option.
|
|
1742
1823
|
* @throws {RequiredError}
|
|
1743
1824
|
*/
|
|
1744
|
-
postSqlsourceInPackage(e, t, s, o,
|
|
1745
|
-
return n.postSqlsourceInPackage(e, t, s, o,
|
|
1825
|
+
postSqlsourceInPackage(e, t, s, o, i, c) {
|
|
1826
|
+
return n.postSqlsourceInPackage(e, t, s, o, i, c).then((p) => p(a, r));
|
|
1746
1827
|
},
|
|
1747
1828
|
/**
|
|
1748
1829
|
* 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.
|
|
@@ -1754,7 +1835,7 @@ const gn = {
|
|
|
1754
1835
|
* @throws {RequiredError}
|
|
1755
1836
|
*/
|
|
1756
1837
|
postTemporarytable(e, t, s, o) {
|
|
1757
|
-
return n.postTemporarytable(e, t, s, o).then((
|
|
1838
|
+
return n.postTemporarytable(e, t, s, o).then((i) => i(a, r));
|
|
1758
1839
|
},
|
|
1759
1840
|
/**
|
|
1760
1841
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1767,8 +1848,8 @@ const gn = {
|
|
|
1767
1848
|
* @param {*} [options] Override http request option.
|
|
1768
1849
|
* @throws {RequiredError}
|
|
1769
1850
|
*/
|
|
1770
|
-
postTemporarytableInPackage(e, t, s, o,
|
|
1771
|
-
return n.postTemporarytableInPackage(e, t, s, o,
|
|
1851
|
+
postTemporarytableInPackage(e, t, s, o, i, c) {
|
|
1852
|
+
return n.postTemporarytableInPackage(e, t, s, o, i, c).then((p) => p(a, r));
|
|
1772
1853
|
},
|
|
1773
1854
|
/**
|
|
1774
1855
|
* Updates the configuration of an existing database connection.
|
|
@@ -1780,7 +1861,7 @@ const gn = {
|
|
|
1780
1861
|
* @throws {RequiredError}
|
|
1781
1862
|
*/
|
|
1782
1863
|
updateConnection(e, t, s, o) {
|
|
1783
|
-
return n.updateConnection(e, t, s, o).then((
|
|
1864
|
+
return n.updateConnection(e, t, s, o).then((i) => i(a, r));
|
|
1784
1865
|
}
|
|
1785
1866
|
};
|
|
1786
1867
|
};
|
|
@@ -1845,7 +1926,7 @@ class We extends I {
|
|
|
1845
1926
|
* @throws {RequiredError}
|
|
1846
1927
|
*/
|
|
1847
1928
|
getTableInPackage(r, a, n, e, t, s, o) {
|
|
1848
|
-
return C(this.configuration).getTableInPackage(r, a, n, e, t, s, o).then((
|
|
1929
|
+
return C(this.configuration).getTableInPackage(r, a, n, e, t, s, o).then((i) => i(this.axios, this.basePath));
|
|
1849
1930
|
}
|
|
1850
1931
|
/**
|
|
1851
1932
|
* 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.
|
|
@@ -1907,7 +1988,7 @@ class We extends I {
|
|
|
1907
1988
|
* @throws {RequiredError}
|
|
1908
1989
|
*/
|
|
1909
1990
|
listTablesInPackage(r, a, n, e, t, s, o) {
|
|
1910
|
-
return C(this.configuration).listTablesInPackage(r, a, n, e, t, s, o).then((
|
|
1991
|
+
return C(this.configuration).listTablesInPackage(r, a, n, e, t, s, o).then((i) => i(this.axios, this.basePath));
|
|
1911
1992
|
}
|
|
1912
1993
|
/**
|
|
1913
1994
|
* 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.
|
|
@@ -2011,14 +2092,14 @@ const Ke = function(l) {
|
|
|
2011
2092
|
*/
|
|
2012
2093
|
testConnectionConfiguration: async (r, a = {}) => {
|
|
2013
2094
|
m("testConnectionConfiguration", "connection", r);
|
|
2014
|
-
const n = "/connections/test", e = new URL(n,
|
|
2095
|
+
const n = "/connections/test", e = new URL(n, b);
|
|
2015
2096
|
let t;
|
|
2016
2097
|
l && (t = l.baseOptions);
|
|
2017
|
-
const s = { method: "POST", ...t, ...a }, o = {},
|
|
2018
|
-
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e,
|
|
2019
|
-
let
|
|
2020
|
-
return s.headers = { ...o, ...
|
|
2021
|
-
url:
|
|
2098
|
+
const s = { method: "POST", ...t, ...a }, o = {}, i = {};
|
|
2099
|
+
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
|
|
2100
|
+
let c = t && t.headers ? t.headers : {};
|
|
2101
|
+
return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
|
|
2102
|
+
url: V(e),
|
|
2022
2103
|
options: s
|
|
2023
2104
|
};
|
|
2024
2105
|
}
|
|
@@ -2035,10 +2116,10 @@ const Ke = function(l) {
|
|
|
2035
2116
|
*/
|
|
2036
2117
|
async testConnectionConfiguration(a, n) {
|
|
2037
2118
|
const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, s = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
2038
|
-
return (o,
|
|
2119
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
2039
2120
|
}
|
|
2040
2121
|
};
|
|
2041
|
-
},
|
|
2122
|
+
}, An = function(l, r, a) {
|
|
2042
2123
|
const n = he(l);
|
|
2043
2124
|
return {
|
|
2044
2125
|
/**
|
|
@@ -2053,7 +2134,7 @@ const Ke = function(l) {
|
|
|
2053
2134
|
}
|
|
2054
2135
|
};
|
|
2055
2136
|
};
|
|
2056
|
-
class
|
|
2137
|
+
class yn extends I {
|
|
2057
2138
|
/**
|
|
2058
2139
|
* 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.
|
|
2059
2140
|
* @summary Test database connection configuration
|
|
@@ -2080,15 +2161,15 @@ const $e = function(l) {
|
|
|
2080
2161
|
*/
|
|
2081
2162
|
getDashboard: async (r, a, n, e, t = {}) => {
|
|
2082
2163
|
m("getDashboard", "environmentName", r), m("getDashboard", "packageName", a), m("getDashboard", "dashboardName", n);
|
|
2083
|
-
const s = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{dashboardName}", encodeURIComponent(String(n))), o = new URL(s,
|
|
2084
|
-
let
|
|
2085
|
-
l && (
|
|
2086
|
-
const
|
|
2164
|
+
const s = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{dashboardName}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
2165
|
+
let i;
|
|
2166
|
+
l && (i = l.baseOptions);
|
|
2167
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
2087
2168
|
e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
|
|
2088
|
-
let h =
|
|
2089
|
-
return
|
|
2090
|
-
url:
|
|
2091
|
-
options:
|
|
2169
|
+
let h = i && i.headers ? i.headers : {};
|
|
2170
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
2171
|
+
url: V(o),
|
|
2172
|
+
options: c
|
|
2092
2173
|
};
|
|
2093
2174
|
},
|
|
2094
2175
|
/**
|
|
@@ -2103,15 +2184,15 @@ const $e = function(l) {
|
|
|
2103
2184
|
*/
|
|
2104
2185
|
listDashboards: async (r, a, n, e = {}) => {
|
|
2105
2186
|
m("listDashboards", "environmentName", r), m("listDashboards", "packageName", a);
|
|
2106
|
-
const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
2187
|
+
const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
2107
2188
|
let o;
|
|
2108
2189
|
l && (o = l.baseOptions);
|
|
2109
|
-
const
|
|
2110
|
-
n !== void 0 && (p.versionId = n),
|
|
2190
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
2191
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
2111
2192
|
let d = o && o.headers ? o.headers : {};
|
|
2112
|
-
return
|
|
2113
|
-
url:
|
|
2114
|
-
options:
|
|
2193
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
2194
|
+
url: V(s),
|
|
2195
|
+
options: i
|
|
2115
2196
|
};
|
|
2116
2197
|
}
|
|
2117
2198
|
};
|
|
@@ -2130,8 +2211,8 @@ const $e = function(l) {
|
|
|
2130
2211
|
* @throws {RequiredError}
|
|
2131
2212
|
*/
|
|
2132
2213
|
async getDashboard(a, n, e, t, s) {
|
|
2133
|
-
const o = await r.getDashboard(a, n, e, t, s),
|
|
2134
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
2214
|
+
const o = await r.getDashboard(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["DashboardsApi.getDashboard"]?.[i]?.url;
|
|
2215
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
2135
2216
|
},
|
|
2136
2217
|
/**
|
|
2137
2218
|
* **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.
|
|
@@ -2144,11 +2225,11 @@ const $e = function(l) {
|
|
|
2144
2225
|
* @throws {RequiredError}
|
|
2145
2226
|
*/
|
|
2146
2227
|
async listDashboards(a, n, e, t) {
|
|
2147
|
-
const s = await r.listDashboards(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
2148
|
-
return (
|
|
2228
|
+
const s = await r.listDashboards(a, n, e, t), o = l?.serverIndex ?? 0, i = P["DashboardsApi.listDashboards"]?.[o]?.url;
|
|
2229
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
2149
2230
|
}
|
|
2150
2231
|
};
|
|
2151
|
-
},
|
|
2232
|
+
}, Cn = function(l, r, a) {
|
|
2152
2233
|
const n = Z(l);
|
|
2153
2234
|
return {
|
|
2154
2235
|
/**
|
|
@@ -2162,8 +2243,8 @@ const $e = function(l) {
|
|
|
2162
2243
|
* @deprecated
|
|
2163
2244
|
* @throws {RequiredError}
|
|
2164
2245
|
*/
|
|
2165
|
-
getDashboard(e, t, s, o,
|
|
2166
|
-
return n.getDashboard(e, t, s, o,
|
|
2246
|
+
getDashboard(e, t, s, o, i) {
|
|
2247
|
+
return n.getDashboard(e, t, s, o, i).then((c) => c(a, r));
|
|
2167
2248
|
},
|
|
2168
2249
|
/**
|
|
2169
2250
|
* **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.
|
|
@@ -2176,7 +2257,7 @@ const $e = function(l) {
|
|
|
2176
2257
|
* @throws {RequiredError}
|
|
2177
2258
|
*/
|
|
2178
2259
|
listDashboards(e, t, s, o) {
|
|
2179
|
-
return n.listDashboards(e, t, s, o).then((
|
|
2260
|
+
return n.listDashboards(e, t, s, o).then((i) => i(a, r));
|
|
2180
2261
|
}
|
|
2181
2262
|
};
|
|
2182
2263
|
};
|
|
@@ -2222,15 +2303,15 @@ const Je = function(l) {
|
|
|
2222
2303
|
*/
|
|
2223
2304
|
listDataApps: async (r, a, n, e = {}) => {
|
|
2224
2305
|
m("listDataApps", "environmentName", r), m("listDataApps", "packageName", a);
|
|
2225
|
-
const t = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
2306
|
+
const t = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
2226
2307
|
let o;
|
|
2227
2308
|
l && (o = l.baseOptions);
|
|
2228
|
-
const
|
|
2229
|
-
n !== void 0 && (p.versionId = n),
|
|
2309
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
2310
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
2230
2311
|
let d = o && o.headers ? o.headers : {};
|
|
2231
|
-
return
|
|
2232
|
-
url:
|
|
2233
|
-
options:
|
|
2312
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
2313
|
+
url: V(s),
|
|
2314
|
+
options: i
|
|
2234
2315
|
};
|
|
2235
2316
|
}
|
|
2236
2317
|
};
|
|
@@ -2247,11 +2328,11 @@ const Je = function(l) {
|
|
|
2247
2328
|
* @throws {RequiredError}
|
|
2248
2329
|
*/
|
|
2249
2330
|
async listDataApps(a, n, e, t) {
|
|
2250
|
-
const s = await r.listDataApps(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
2251
|
-
return (
|
|
2331
|
+
const s = await r.listDataApps(a, n, e, t), o = l?.serverIndex ?? 0, i = P["DataAppsApi.listDataApps"]?.[o]?.url;
|
|
2332
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
2252
2333
|
}
|
|
2253
2334
|
};
|
|
2254
|
-
},
|
|
2335
|
+
}, In = function(l, r, a) {
|
|
2255
2336
|
const n = ue(l);
|
|
2256
2337
|
return {
|
|
2257
2338
|
/**
|
|
@@ -2264,7 +2345,7 @@ const Je = function(l) {
|
|
|
2264
2345
|
* @throws {RequiredError}
|
|
2265
2346
|
*/
|
|
2266
2347
|
listDataApps(e, t, s, o) {
|
|
2267
|
-
return n.listDataApps(e, t, s, o).then((
|
|
2348
|
+
return n.listDataApps(e, t, s, o).then((i) => i(a, r));
|
|
2268
2349
|
}
|
|
2269
2350
|
};
|
|
2270
2351
|
};
|
|
@@ -2295,15 +2376,15 @@ const Xe = function(l) {
|
|
|
2295
2376
|
*/
|
|
2296
2377
|
listDatabases: async (r, a, n, e = {}) => {
|
|
2297
2378
|
m("listDatabases", "environmentName", r), m("listDatabases", "packageName", a);
|
|
2298
|
-
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
2379
|
+
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
2299
2380
|
let o;
|
|
2300
2381
|
l && (o = l.baseOptions);
|
|
2301
|
-
const
|
|
2302
|
-
n !== void 0 && (p.versionId = n),
|
|
2382
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
2383
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
2303
2384
|
let d = o && o.headers ? o.headers : {};
|
|
2304
|
-
return
|
|
2305
|
-
url:
|
|
2306
|
-
options:
|
|
2385
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
2386
|
+
url: V(s),
|
|
2387
|
+
options: i
|
|
2307
2388
|
};
|
|
2308
2389
|
}
|
|
2309
2390
|
};
|
|
@@ -2320,11 +2401,11 @@ const Xe = function(l) {
|
|
|
2320
2401
|
* @throws {RequiredError}
|
|
2321
2402
|
*/
|
|
2322
2403
|
async listDatabases(a, n, e, t) {
|
|
2323
|
-
const s = await r.listDatabases(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
2324
|
-
return (
|
|
2404
|
+
const s = await r.listDatabases(a, n, e, t), o = l?.serverIndex ?? 0, i = P["DatabasesApi.listDatabases"]?.[o]?.url;
|
|
2405
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
2325
2406
|
}
|
|
2326
2407
|
};
|
|
2327
|
-
},
|
|
2408
|
+
}, Rn = function(l, r, a) {
|
|
2328
2409
|
const n = ge(l);
|
|
2329
2410
|
return {
|
|
2330
2411
|
/**
|
|
@@ -2337,7 +2418,7 @@ const Xe = function(l) {
|
|
|
2337
2418
|
* @throws {RequiredError}
|
|
2338
2419
|
*/
|
|
2339
2420
|
listDatabases(e, t, s, o) {
|
|
2340
|
-
return n.listDatabases(e, t, s, o).then((
|
|
2421
|
+
return n.listDatabases(e, t, s, o).then((i) => i(a, r));
|
|
2341
2422
|
}
|
|
2342
2423
|
};
|
|
2343
2424
|
};
|
|
@@ -2366,14 +2447,14 @@ const aa = function(l) {
|
|
|
2366
2447
|
*/
|
|
2367
2448
|
createEnvironment: async (r, a = {}) => {
|
|
2368
2449
|
m("createEnvironment", "environment", r);
|
|
2369
|
-
const n = "/environments", e = new URL(n,
|
|
2450
|
+
const n = "/environments", e = new URL(n, b);
|
|
2370
2451
|
let t;
|
|
2371
2452
|
l && (t = l.baseOptions);
|
|
2372
|
-
const s = { method: "POST", ...t, ...a }, o = {},
|
|
2373
|
-
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e,
|
|
2374
|
-
let
|
|
2375
|
-
return s.headers = { ...o, ...
|
|
2376
|
-
url:
|
|
2453
|
+
const s = { method: "POST", ...t, ...a }, o = {}, i = {};
|
|
2454
|
+
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
|
|
2455
|
+
let c = t && t.headers ? t.headers : {};
|
|
2456
|
+
return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
|
|
2457
|
+
url: V(e),
|
|
2377
2458
|
options: s
|
|
2378
2459
|
};
|
|
2379
2460
|
},
|
|
@@ -2386,14 +2467,14 @@ const aa = function(l) {
|
|
|
2386
2467
|
*/
|
|
2387
2468
|
deleteEnvironment: async (r, a = {}) => {
|
|
2388
2469
|
m("deleteEnvironment", "environmentName", r);
|
|
2389
|
-
const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n,
|
|
2470
|
+
const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, b);
|
|
2390
2471
|
let t;
|
|
2391
2472
|
l && (t = l.baseOptions);
|
|
2392
|
-
const s = { method: "DELETE", ...t, ...a }, o = {},
|
|
2393
|
-
o.Accept = "application/json", v(e,
|
|
2394
|
-
let
|
|
2395
|
-
return s.headers = { ...o, ...
|
|
2396
|
-
url:
|
|
2473
|
+
const s = { method: "DELETE", ...t, ...a }, o = {}, i = {};
|
|
2474
|
+
o.Accept = "application/json", v(e, i);
|
|
2475
|
+
let c = t && t.headers ? t.headers : {};
|
|
2476
|
+
return s.headers = { ...o, ...c, ...a.headers }, {
|
|
2477
|
+
url: V(e),
|
|
2397
2478
|
options: s
|
|
2398
2479
|
};
|
|
2399
2480
|
},
|
|
@@ -2407,14 +2488,14 @@ const aa = function(l) {
|
|
|
2407
2488
|
*/
|
|
2408
2489
|
getEnvironment: async (r, a, n = {}) => {
|
|
2409
2490
|
m("getEnvironment", "environmentName", r);
|
|
2410
|
-
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e,
|
|
2491
|
+
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, b);
|
|
2411
2492
|
let s;
|
|
2412
2493
|
l && (s = l.baseOptions);
|
|
2413
|
-
const o = { method: "GET", ...s, ...n },
|
|
2414
|
-
a !== void 0 && (
|
|
2494
|
+
const o = { method: "GET", ...s, ...n }, i = {}, c = {};
|
|
2495
|
+
a !== void 0 && (c.reload = a), i.Accept = "application/json", v(t, c);
|
|
2415
2496
|
let p = s && s.headers ? s.headers : {};
|
|
2416
|
-
return o.headers = { ...
|
|
2417
|
-
url:
|
|
2497
|
+
return o.headers = { ...i, ...p, ...n.headers }, {
|
|
2498
|
+
url: V(t),
|
|
2418
2499
|
options: o
|
|
2419
2500
|
};
|
|
2420
2501
|
},
|
|
@@ -2425,14 +2506,14 @@ const aa = function(l) {
|
|
|
2425
2506
|
* @throws {RequiredError}
|
|
2426
2507
|
*/
|
|
2427
2508
|
listEnvironments: async (r = {}) => {
|
|
2428
|
-
const a = "/environments", n = new URL(a,
|
|
2509
|
+
const a = "/environments", n = new URL(a, b);
|
|
2429
2510
|
let e;
|
|
2430
2511
|
l && (e = l.baseOptions);
|
|
2431
2512
|
const t = { method: "GET", ...e, ...r }, s = {}, o = {};
|
|
2432
2513
|
s.Accept = "application/json", v(n, o);
|
|
2433
|
-
let
|
|
2434
|
-
return t.headers = { ...s, ...
|
|
2435
|
-
url:
|
|
2514
|
+
let i = e && e.headers ? e.headers : {};
|
|
2515
|
+
return t.headers = { ...s, ...i, ...r.headers }, {
|
|
2516
|
+
url: V(n),
|
|
2436
2517
|
options: t
|
|
2437
2518
|
};
|
|
2438
2519
|
},
|
|
@@ -2446,14 +2527,14 @@ const aa = function(l) {
|
|
|
2446
2527
|
*/
|
|
2447
2528
|
updateEnvironment: async (r, a, n = {}) => {
|
|
2448
2529
|
m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", a);
|
|
2449
|
-
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e,
|
|
2530
|
+
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, b);
|
|
2450
2531
|
let s;
|
|
2451
2532
|
l && (s = l.baseOptions);
|
|
2452
|
-
const o = { method: "PATCH", ...s, ...n },
|
|
2453
|
-
|
|
2533
|
+
const o = { method: "PATCH", ...s, ...n }, i = {}, c = {};
|
|
2534
|
+
i["Content-Type"] = "application/json", i.Accept = "application/json", v(t, c);
|
|
2454
2535
|
let p = s && s.headers ? s.headers : {};
|
|
2455
|
-
return o.headers = { ...
|
|
2456
|
-
url:
|
|
2536
|
+
return o.headers = { ...i, ...p, ...n.headers }, o.data = A(a, o, l), {
|
|
2537
|
+
url: V(t),
|
|
2457
2538
|
options: o
|
|
2458
2539
|
};
|
|
2459
2540
|
}
|
|
@@ -2470,7 +2551,7 @@ const aa = function(l) {
|
|
|
2470
2551
|
*/
|
|
2471
2552
|
async createEnvironment(a, n) {
|
|
2472
2553
|
const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, s = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
|
|
2473
|
-
return (o,
|
|
2554
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
2474
2555
|
},
|
|
2475
2556
|
/**
|
|
2476
2557
|
* 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.
|
|
@@ -2481,7 +2562,7 @@ const aa = function(l) {
|
|
|
2481
2562
|
*/
|
|
2482
2563
|
async deleteEnvironment(a, n) {
|
|
2483
2564
|
const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, s = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
|
|
2484
|
-
return (o,
|
|
2565
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
2485
2566
|
},
|
|
2486
2567
|
/**
|
|
2487
2568
|
* 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.
|
|
@@ -2493,7 +2574,7 @@ const aa = function(l) {
|
|
|
2493
2574
|
*/
|
|
2494
2575
|
async getEnvironment(a, n, e) {
|
|
2495
2576
|
const t = await r.getEnvironment(a, n, e), s = l?.serverIndex ?? 0, o = P["EnvironmentsApi.getEnvironment"]?.[s]?.url;
|
|
2496
|
-
return (
|
|
2577
|
+
return (i, c) => S(t, u, g, l)(i, o || c);
|
|
2497
2578
|
},
|
|
2498
2579
|
/**
|
|
2499
2580
|
* 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`.
|
|
@@ -2515,10 +2596,10 @@ const aa = function(l) {
|
|
|
2515
2596
|
*/
|
|
2516
2597
|
async updateEnvironment(a, n, e) {
|
|
2517
2598
|
const t = await r.updateEnvironment(a, n, e), s = l?.serverIndex ?? 0, o = P["EnvironmentsApi.updateEnvironment"]?.[s]?.url;
|
|
2518
|
-
return (
|
|
2599
|
+
return (i, c) => S(t, u, g, l)(i, o || c);
|
|
2519
2600
|
}
|
|
2520
2601
|
};
|
|
2521
|
-
},
|
|
2602
|
+
}, xn = function(l, r, a) {
|
|
2522
2603
|
const n = w(l);
|
|
2523
2604
|
return {
|
|
2524
2605
|
/**
|
|
@@ -2640,39 +2721,38 @@ const na = function(l) {
|
|
|
2640
2721
|
*/
|
|
2641
2722
|
createMaterialization: async (r, a, n, e = {}) => {
|
|
2642
2723
|
m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", a);
|
|
2643
|
-
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
2724
|
+
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
2644
2725
|
let o;
|
|
2645
2726
|
l && (o = l.baseOptions);
|
|
2646
|
-
const
|
|
2647
|
-
|
|
2727
|
+
const i = { method: "POST", ...o, ...e }, c = {}, p = {};
|
|
2728
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
2648
2729
|
let d = o && o.headers ? o.headers : {};
|
|
2649
|
-
return
|
|
2650
|
-
url:
|
|
2651
|
-
options:
|
|
2730
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
2731
|
+
url: V(s),
|
|
2732
|
+
options: i
|
|
2652
2733
|
};
|
|
2653
2734
|
},
|
|
2654
2735
|
/**
|
|
2655
|
-
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record.
|
|
2736
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
|
|
2656
2737
|
* @summary Delete a materialization
|
|
2657
2738
|
* @param {string} environmentName Name of the environment
|
|
2658
2739
|
* @param {string} packageName Name of the package
|
|
2659
2740
|
* @param {string} materializationId ID of the materialization
|
|
2660
|
-
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
2661
2741
|
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
2662
2742
|
* @param {*} [options] Override http request option.
|
|
2663
2743
|
* @throws {RequiredError}
|
|
2664
2744
|
*/
|
|
2665
|
-
deleteMaterialization: async (r, a, n, e, t
|
|
2745
|
+
deleteMaterialization: async (r, a, n, e, t = {}) => {
|
|
2666
2746
|
m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", n);
|
|
2667
|
-
const
|
|
2747
|
+
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
2668
2748
|
let i;
|
|
2669
2749
|
l && (i = l.baseOptions);
|
|
2670
|
-
const
|
|
2671
|
-
e !== void 0 && (
|
|
2672
|
-
let
|
|
2673
|
-
return
|
|
2674
|
-
url:
|
|
2675
|
-
options:
|
|
2750
|
+
const c = { method: "DELETE", ...i, ...t }, p = {}, d = {};
|
|
2751
|
+
e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
|
|
2752
|
+
let h = i && i.headers ? i.headers : {};
|
|
2753
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
2754
|
+
url: V(o),
|
|
2755
|
+
options: c
|
|
2676
2756
|
};
|
|
2677
2757
|
},
|
|
2678
2758
|
/**
|
|
@@ -2687,15 +2767,15 @@ const na = function(l) {
|
|
|
2687
2767
|
*/
|
|
2688
2768
|
getMaterialization: async (r, a, n, e, t = {}) => {
|
|
2689
2769
|
m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", n);
|
|
2690
|
-
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(s,
|
|
2691
|
-
let
|
|
2692
|
-
l && (
|
|
2693
|
-
const
|
|
2770
|
+
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
2771
|
+
let i;
|
|
2772
|
+
l && (i = l.baseOptions);
|
|
2773
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
2694
2774
|
e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
|
|
2695
|
-
let h =
|
|
2696
|
-
return
|
|
2697
|
-
url:
|
|
2698
|
-
options:
|
|
2775
|
+
let h = i && i.headers ? i.headers : {};
|
|
2776
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
2777
|
+
url: V(o),
|
|
2778
|
+
options: c
|
|
2699
2779
|
};
|
|
2700
2780
|
},
|
|
2701
2781
|
/**
|
|
@@ -2711,14 +2791,14 @@ const na = function(l) {
|
|
|
2711
2791
|
*/
|
|
2712
2792
|
listMaterializations: async (r, a, n, e, t, s = {}) => {
|
|
2713
2793
|
m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", a);
|
|
2714
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))),
|
|
2715
|
-
let
|
|
2716
|
-
l && (
|
|
2717
|
-
const p = { method: "GET", ...
|
|
2718
|
-
n !== void 0 && (h.limit = n), e !== void 0 && (h.offset = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(
|
|
2719
|
-
let k =
|
|
2794
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), i = new URL(o, b);
|
|
2795
|
+
let c;
|
|
2796
|
+
l && (c = l.baseOptions);
|
|
2797
|
+
const p = { method: "GET", ...c, ...s }, d = {}, h = {};
|
|
2798
|
+
n !== void 0 && (h.limit = n), e !== void 0 && (h.offset = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
|
|
2799
|
+
let k = c && c.headers ? c.headers : {};
|
|
2720
2800
|
return p.headers = { ...d, ...k, ...s.headers }, {
|
|
2721
|
-
url:
|
|
2801
|
+
url: V(i),
|
|
2722
2802
|
options: p
|
|
2723
2803
|
};
|
|
2724
2804
|
},
|
|
@@ -2735,14 +2815,14 @@ const na = function(l) {
|
|
|
2735
2815
|
*/
|
|
2736
2816
|
materializationAction: async (r, a, n, e, t, s = {}) => {
|
|
2737
2817
|
m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", n), m("materializationAction", "action", e);
|
|
2738
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))),
|
|
2739
|
-
let
|
|
2740
|
-
l && (
|
|
2741
|
-
const p = { method: "POST", ...
|
|
2742
|
-
e !== void 0 && (h.action = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(
|
|
2743
|
-
let k =
|
|
2818
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
2819
|
+
let c;
|
|
2820
|
+
l && (c = l.baseOptions);
|
|
2821
|
+
const p = { method: "POST", ...c, ...s }, d = {}, h = {};
|
|
2822
|
+
e !== void 0 && (h.action = e), t !== void 0 && (h.versionId = t), d.Accept = "application/json", v(i, h);
|
|
2823
|
+
let k = c && c.headers ? c.headers : {};
|
|
2744
2824
|
return p.headers = { ...d, ...k, ...s.headers }, {
|
|
2745
|
-
url:
|
|
2825
|
+
url: V(i),
|
|
2746
2826
|
options: p
|
|
2747
2827
|
};
|
|
2748
2828
|
}
|
|
@@ -2760,23 +2840,22 @@ const na = function(l) {
|
|
|
2760
2840
|
* @throws {RequiredError}
|
|
2761
2841
|
*/
|
|
2762
2842
|
async createMaterialization(a, n, e, t) {
|
|
2763
|
-
const s = await r.createMaterialization(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
2764
|
-
return (
|
|
2843
|
+
const s = await r.createMaterialization(a, n, e, t), o = l?.serverIndex ?? 0, i = P["MaterializationsApi.createMaterialization"]?.[o]?.url;
|
|
2844
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
2765
2845
|
},
|
|
2766
2846
|
/**
|
|
2767
|
-
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record.
|
|
2847
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
|
|
2768
2848
|
* @summary Delete a materialization
|
|
2769
2849
|
* @param {string} environmentName Name of the environment
|
|
2770
2850
|
* @param {string} packageName Name of the package
|
|
2771
2851
|
* @param {string} materializationId ID of the materialization
|
|
2772
|
-
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
2773
2852
|
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
2774
2853
|
* @param {*} [options] Override http request option.
|
|
2775
2854
|
* @throws {RequiredError}
|
|
2776
2855
|
*/
|
|
2777
|
-
async deleteMaterialization(a, n, e, t, s
|
|
2778
|
-
const
|
|
2779
|
-
return (
|
|
2856
|
+
async deleteMaterialization(a, n, e, t, s) {
|
|
2857
|
+
const o = await r.deleteMaterialization(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["MaterializationsApi.deleteMaterialization"]?.[i]?.url;
|
|
2858
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
2780
2859
|
},
|
|
2781
2860
|
/**
|
|
2782
2861
|
* A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
|
|
@@ -2789,8 +2868,8 @@ const na = function(l) {
|
|
|
2789
2868
|
* @throws {RequiredError}
|
|
2790
2869
|
*/
|
|
2791
2870
|
async getMaterialization(a, n, e, t, s) {
|
|
2792
|
-
const o = await r.getMaterialization(a, n, e, t, s),
|
|
2793
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
2871
|
+
const o = await r.getMaterialization(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[i]?.url;
|
|
2872
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
2794
2873
|
},
|
|
2795
2874
|
/**
|
|
2796
2875
|
* Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
|
|
@@ -2804,8 +2883,8 @@ const na = function(l) {
|
|
|
2804
2883
|
* @throws {RequiredError}
|
|
2805
2884
|
*/
|
|
2806
2885
|
async listMaterializations(a, n, e, t, s, o) {
|
|
2807
|
-
const
|
|
2808
|
-
return (d, h) => S(
|
|
2886
|
+
const i = await r.listMaterializations(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
2887
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
2809
2888
|
},
|
|
2810
2889
|
/**
|
|
2811
2890
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2819,11 +2898,11 @@ const na = function(l) {
|
|
|
2819
2898
|
* @throws {RequiredError}
|
|
2820
2899
|
*/
|
|
2821
2900
|
async materializationAction(a, n, e, t, s, o) {
|
|
2822
|
-
const
|
|
2823
|
-
return (d, h) => S(
|
|
2901
|
+
const i = await r.materializationAction(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
2902
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
2824
2903
|
}
|
|
2825
2904
|
};
|
|
2826
|
-
},
|
|
2905
|
+
}, Nn = function(l, r, a) {
|
|
2827
2906
|
const n = M(l);
|
|
2828
2907
|
return {
|
|
2829
2908
|
/**
|
|
@@ -2836,21 +2915,20 @@ const na = function(l) {
|
|
|
2836
2915
|
* @throws {RequiredError}
|
|
2837
2916
|
*/
|
|
2838
2917
|
createMaterialization(e, t, s, o) {
|
|
2839
|
-
return n.createMaterialization(e, t, s, o).then((
|
|
2918
|
+
return n.createMaterialization(e, t, s, o).then((i) => i(a, r));
|
|
2840
2919
|
},
|
|
2841
2920
|
/**
|
|
2842
|
-
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record.
|
|
2921
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
|
|
2843
2922
|
* @summary Delete a materialization
|
|
2844
2923
|
* @param {string} environmentName Name of the environment
|
|
2845
2924
|
* @param {string} packageName Name of the package
|
|
2846
2925
|
* @param {string} materializationId ID of the materialization
|
|
2847
|
-
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
2848
2926
|
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
2849
2927
|
* @param {*} [options] Override http request option.
|
|
2850
2928
|
* @throws {RequiredError}
|
|
2851
2929
|
*/
|
|
2852
|
-
deleteMaterialization(e, t, s, o,
|
|
2853
|
-
return n.deleteMaterialization(e, t, s, o,
|
|
2930
|
+
deleteMaterialization(e, t, s, o, i) {
|
|
2931
|
+
return n.deleteMaterialization(e, t, s, o, i).then((c) => c(a, r));
|
|
2854
2932
|
},
|
|
2855
2933
|
/**
|
|
2856
2934
|
* A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
|
|
@@ -2862,8 +2940,8 @@ const na = function(l) {
|
|
|
2862
2940
|
* @param {*} [options] Override http request option.
|
|
2863
2941
|
* @throws {RequiredError}
|
|
2864
2942
|
*/
|
|
2865
|
-
getMaterialization(e, t, s, o,
|
|
2866
|
-
return n.getMaterialization(e, t, s, o,
|
|
2943
|
+
getMaterialization(e, t, s, o, i) {
|
|
2944
|
+
return n.getMaterialization(e, t, s, o, i).then((c) => c(a, r));
|
|
2867
2945
|
},
|
|
2868
2946
|
/**
|
|
2869
2947
|
* Returns the materialization history for the package, ordered by most recent first. For a package with published versions, the runs of one version (the one `versionId` names, or `latest`), together with the runs from before the package\'s first versioned publish.
|
|
@@ -2876,8 +2954,8 @@ const na = function(l) {
|
|
|
2876
2954
|
* @param {*} [options] Override http request option.
|
|
2877
2955
|
* @throws {RequiredError}
|
|
2878
2956
|
*/
|
|
2879
|
-
listMaterializations(e, t, s, o,
|
|
2880
|
-
return n.listMaterializations(e, t, s, o,
|
|
2957
|
+
listMaterializations(e, t, s, o, i, c) {
|
|
2958
|
+
return n.listMaterializations(e, t, s, o, i, c).then((p) => p(a, r));
|
|
2881
2959
|
},
|
|
2882
2960
|
/**
|
|
2883
2961
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2890,8 +2968,8 @@ const na = function(l) {
|
|
|
2890
2968
|
* @param {*} [options] Override http request option.
|
|
2891
2969
|
* @throws {RequiredError}
|
|
2892
2970
|
*/
|
|
2893
|
-
materializationAction(e, t, s, o,
|
|
2894
|
-
return n.materializationAction(e, t, s, o,
|
|
2971
|
+
materializationAction(e, t, s, o, i, c) {
|
|
2972
|
+
return n.materializationAction(e, t, s, o, i, c).then((p) => p(a, r));
|
|
2895
2973
|
}
|
|
2896
2974
|
};
|
|
2897
2975
|
};
|
|
@@ -2909,18 +2987,17 @@ class ra extends I {
|
|
|
2909
2987
|
return M(this.configuration).createMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2910
2988
|
}
|
|
2911
2989
|
/**
|
|
2912
|
-
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record.
|
|
2990
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. A delete is record-only: it never drops a table, and the caller owns table GC. To drop a table this run produced, check that no remaining run, of any version, names a table with that name in any place, then drop it through its connection. `dropTables=true` is refused with 400 and deletes nothing, as is any value other than `true` or `false` (the fix is to omit it); `dropTables=false`, which older clients send, is accepted and ignored.
|
|
2913
2991
|
* @summary Delete a materialization
|
|
2914
2992
|
* @param {string} environmentName Name of the environment
|
|
2915
2993
|
* @param {string} packageName Name of the package
|
|
2916
2994
|
* @param {string} materializationId ID of the materialization
|
|
2917
|
-
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the caller owns table GC). Only `true` and `false` are accepted. Any other value is refused with 400 rather than read as `false`, which would delete the record, leave the tables on disk, and still answer 204.
|
|
2918
2995
|
* @param {string} [versionId] The published version of the package to serve, a semantic version such as `1.2.0` or `1.2.0-rc1`. `latest`, omitted or empty (`versionId=`, which a proxy forwarding a page\'s query string may send), the request is served from the package\'s `latest` version. Any other value that is not a semantic version answers 400 with `reason` VERSION_ID_INVALID, so a malformed value is told apart from a missing version. An unknown version answers 404 with `reason` VERSION_NOT_FOUND, and an archived one answers 410 with `reason` VERSION_ARCHIVED. A package that has no versions (one loaded from `publisher.config.json` or registered from a directory) is served as before when this is omitted, and answers 404 VERSION_NOT_FOUND when it is given. Build metadata must be percent-encoded: send `1.2.0+build.5` as `1.2.0%2Bbuild.5`, since a bare `+` in a query string decodes to a space.
|
|
2919
2996
|
* @param {*} [options] Override http request option.
|
|
2920
2997
|
* @throws {RequiredError}
|
|
2921
2998
|
*/
|
|
2922
|
-
deleteMaterialization(r, a, n, e, t
|
|
2923
|
-
return M(this.configuration).deleteMaterialization(r, a, n, e, t
|
|
2999
|
+
deleteMaterialization(r, a, n, e, t) {
|
|
3000
|
+
return M(this.configuration).deleteMaterialization(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
|
|
2924
3001
|
}
|
|
2925
3002
|
/**
|
|
2926
3003
|
* A run\'s id is unique, so with no `versionId` the run is found whichever version built it. Naming a version also requires the run to be that version\'s (or one from before the package\'s first versioned publish); the same holds for stopping and deleting a run.
|
|
@@ -2964,7 +3041,7 @@ class ra extends I {
|
|
|
2964
3041
|
return M(this.configuration).materializationAction(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
|
|
2965
3042
|
}
|
|
2966
3043
|
}
|
|
2967
|
-
const
|
|
3044
|
+
const Un = {
|
|
2968
3045
|
Stop: "stop"
|
|
2969
3046
|
}, oa = function(l) {
|
|
2970
3047
|
return {
|
|
@@ -2981,14 +3058,14 @@ const yn = {
|
|
|
2981
3058
|
*/
|
|
2982
3059
|
compileModelSource: async (r, a, n, e, t, s = {}) => {
|
|
2983
3060
|
m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", n), m("compileModelSource", "compileRequest", e);
|
|
2984
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))),
|
|
2985
|
-
let
|
|
2986
|
-
l && (
|
|
2987
|
-
const p = { method: "POST", ...
|
|
2988
|
-
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(
|
|
2989
|
-
let k =
|
|
3061
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
3062
|
+
let c;
|
|
3063
|
+
l && (c = l.baseOptions);
|
|
3064
|
+
const p = { method: "POST", ...c, ...s }, d = {}, h = {};
|
|
3065
|
+
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
|
|
3066
|
+
let k = c && c.headers ? c.headers : {};
|
|
2990
3067
|
return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
|
|
2991
|
-
url:
|
|
3068
|
+
url: V(i),
|
|
2992
3069
|
options: p
|
|
2993
3070
|
};
|
|
2994
3071
|
},
|
|
@@ -3005,14 +3082,14 @@ const yn = {
|
|
|
3005
3082
|
*/
|
|
3006
3083
|
executeQueryModel: async (r, a, n, e, t, s = {}) => {
|
|
3007
3084
|
m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", n), m("executeQueryModel", "queryRequest", e);
|
|
3008
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))),
|
|
3009
|
-
let
|
|
3010
|
-
l && (
|
|
3011
|
-
const p = { method: "POST", ...
|
|
3012
|
-
t !== void 0 && (h.includeHiddenFilesAndSources = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(
|
|
3013
|
-
let k =
|
|
3085
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
3086
|
+
let c;
|
|
3087
|
+
l && (c = l.baseOptions);
|
|
3088
|
+
const p = { method: "POST", ...c, ...s }, d = {}, h = {};
|
|
3089
|
+
t !== void 0 && (h.includeHiddenFilesAndSources = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
|
|
3090
|
+
let k = c && c.headers ? c.headers : {};
|
|
3014
3091
|
return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
|
|
3015
|
-
url:
|
|
3092
|
+
url: V(i),
|
|
3016
3093
|
options: p
|
|
3017
3094
|
};
|
|
3018
3095
|
},
|
|
@@ -3030,14 +3107,14 @@ const yn = {
|
|
|
3030
3107
|
*/
|
|
3031
3108
|
getModel: async (r, a, n, e, t, s, o = {}) => {
|
|
3032
3109
|
m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", n);
|
|
3033
|
-
const
|
|
3110
|
+
const i = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), c = new URL(i, b);
|
|
3034
3111
|
let p;
|
|
3035
3112
|
l && (p = l.baseOptions);
|
|
3036
3113
|
const d = { method: "GET", ...p, ...o }, h = {}, k = {};
|
|
3037
|
-
e !== void 0 && (k.versionId = e), t !== void 0 && (k.includeHiddenFilesAndSources = t), s !== void 0 && (k.givens = s), h.Accept = "application/json", v(
|
|
3114
|
+
e !== void 0 && (k.versionId = e), t !== void 0 && (k.includeHiddenFilesAndSources = t), s !== void 0 && (k.givens = s), h.Accept = "application/json", v(c, k);
|
|
3038
3115
|
let O = p && p.headers ? p.headers : {};
|
|
3039
3116
|
return d.headers = { ...h, ...O, ...o.headers }, {
|
|
3040
|
-
url:
|
|
3117
|
+
url: V(c),
|
|
3041
3118
|
options: d
|
|
3042
3119
|
};
|
|
3043
3120
|
},
|
|
@@ -3053,15 +3130,15 @@ const yn = {
|
|
|
3053
3130
|
*/
|
|
3054
3131
|
listModels: async (r, a, n, e, t = {}) => {
|
|
3055
3132
|
m("listModels", "environmentName", r), m("listModels", "packageName", a);
|
|
3056
|
-
const s = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s,
|
|
3057
|
-
let
|
|
3058
|
-
l && (
|
|
3059
|
-
const
|
|
3133
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, b);
|
|
3134
|
+
let i;
|
|
3135
|
+
l && (i = l.baseOptions);
|
|
3136
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
3060
3137
|
n !== void 0 && (d.versionId = n), e !== void 0 && (d.includeHiddenFilesAndSources = e), p.Accept = "application/json", v(o, d);
|
|
3061
|
-
let h =
|
|
3062
|
-
return
|
|
3063
|
-
url:
|
|
3064
|
-
options:
|
|
3138
|
+
let h = i && i.headers ? i.headers : {};
|
|
3139
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
3140
|
+
url: V(o),
|
|
3141
|
+
options: c
|
|
3065
3142
|
};
|
|
3066
3143
|
},
|
|
3067
3144
|
/**
|
|
@@ -3077,14 +3154,14 @@ const yn = {
|
|
|
3077
3154
|
*/
|
|
3078
3155
|
updateModelSource: async (r, a, n, e, t, s = {}) => {
|
|
3079
3156
|
m("updateModelSource", "environmentName", r), m("updateModelSource", "packageName", a), m("updateModelSource", "path", n), m("updateModelSource", "modelSourceWriteRequest", e);
|
|
3080
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))),
|
|
3081
|
-
let
|
|
3082
|
-
l && (
|
|
3083
|
-
const p = { method: "PUT", ...
|
|
3084
|
-
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(
|
|
3085
|
-
let k =
|
|
3157
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), i = new URL(o, b);
|
|
3158
|
+
let c;
|
|
3159
|
+
l && (c = l.baseOptions);
|
|
3160
|
+
const p = { method: "PUT", ...c, ...s }, d = {}, h = {};
|
|
3161
|
+
t !== void 0 && (h.versionId = t), d["Content-Type"] = "application/json", d.Accept = "application/json", v(i, h);
|
|
3162
|
+
let k = c && c.headers ? c.headers : {};
|
|
3086
3163
|
return p.headers = { ...d, ...k, ...s.headers }, p.data = A(e, p, l), {
|
|
3087
|
-
url:
|
|
3164
|
+
url: V(i),
|
|
3088
3165
|
options: p
|
|
3089
3166
|
};
|
|
3090
3167
|
}
|
|
@@ -3104,8 +3181,8 @@ const yn = {
|
|
|
3104
3181
|
* @throws {RequiredError}
|
|
3105
3182
|
*/
|
|
3106
3183
|
async compileModelSource(a, n, e, t, s, o) {
|
|
3107
|
-
const
|
|
3108
|
-
return (d, h) => S(
|
|
3184
|
+
const i = await r.compileModelSource(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
3185
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
3109
3186
|
},
|
|
3110
3187
|
/**
|
|
3111
3188
|
* 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.
|
|
@@ -3119,8 +3196,8 @@ const yn = {
|
|
|
3119
3196
|
* @throws {RequiredError}
|
|
3120
3197
|
*/
|
|
3121
3198
|
async executeQueryModel(a, n, e, t, s, o) {
|
|
3122
|
-
const
|
|
3123
|
-
return (d, h) => S(
|
|
3199
|
+
const i = await r.executeQueryModel(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
3200
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
3124
3201
|
},
|
|
3125
3202
|
/**
|
|
3126
3203
|
* 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.
|
|
@@ -3134,9 +3211,9 @@ const yn = {
|
|
|
3134
3211
|
* @param {*} [options] Override http request option.
|
|
3135
3212
|
* @throws {RequiredError}
|
|
3136
3213
|
*/
|
|
3137
|
-
async getModel(a, n, e, t, s, o,
|
|
3138
|
-
const
|
|
3139
|
-
return (h, k) => S(
|
|
3214
|
+
async getModel(a, n, e, t, s, o, i) {
|
|
3215
|
+
const c = await r.getModel(a, n, e, t, s, o, i), p = l?.serverIndex ?? 0, d = P["ModelsApi.getModel"]?.[p]?.url;
|
|
3216
|
+
return (h, k) => S(c, u, g, l)(h, d || k);
|
|
3140
3217
|
},
|
|
3141
3218
|
/**
|
|
3142
3219
|
* 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.
|
|
@@ -3149,8 +3226,8 @@ const yn = {
|
|
|
3149
3226
|
* @throws {RequiredError}
|
|
3150
3227
|
*/
|
|
3151
3228
|
async listModels(a, n, e, t, s) {
|
|
3152
|
-
const o = await r.listModels(a, n, e, t, s),
|
|
3153
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
3229
|
+
const o = await r.listModels(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[i]?.url;
|
|
3230
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
3154
3231
|
},
|
|
3155
3232
|
/**
|
|
3156
3233
|
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
|
|
@@ -3164,11 +3241,11 @@ const yn = {
|
|
|
3164
3241
|
* @throws {RequiredError}
|
|
3165
3242
|
*/
|
|
3166
3243
|
async updateModelSource(a, n, e, t, s, o) {
|
|
3167
|
-
const
|
|
3168
|
-
return (d, h) => S(
|
|
3244
|
+
const i = await r.updateModelSource(a, n, e, t, s, o), c = l?.serverIndex ?? 0, p = P["ModelsApi.updateModelSource"]?.[c]?.url;
|
|
3245
|
+
return (d, h) => S(i, u, g, l)(d, p || h);
|
|
3169
3246
|
}
|
|
3170
3247
|
};
|
|
3171
|
-
},
|
|
3248
|
+
}, Tn = function(l, r, a) {
|
|
3172
3249
|
const n = F(l);
|
|
3173
3250
|
return {
|
|
3174
3251
|
/**
|
|
@@ -3182,8 +3259,8 @@ const yn = {
|
|
|
3182
3259
|
* @param {*} [options] Override http request option.
|
|
3183
3260
|
* @throws {RequiredError}
|
|
3184
3261
|
*/
|
|
3185
|
-
compileModelSource(e, t, s, o,
|
|
3186
|
-
return n.compileModelSource(e, t, s, o,
|
|
3262
|
+
compileModelSource(e, t, s, o, i, c) {
|
|
3263
|
+
return n.compileModelSource(e, t, s, o, i, c).then((p) => p(a, r));
|
|
3187
3264
|
},
|
|
3188
3265
|
/**
|
|
3189
3266
|
* 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.
|
|
@@ -3196,8 +3273,8 @@ const yn = {
|
|
|
3196
3273
|
* @param {*} [options] Override http request option.
|
|
3197
3274
|
* @throws {RequiredError}
|
|
3198
3275
|
*/
|
|
3199
|
-
executeQueryModel(e, t, s, o,
|
|
3200
|
-
return n.executeQueryModel(e, t, s, o,
|
|
3276
|
+
executeQueryModel(e, t, s, o, i, c) {
|
|
3277
|
+
return n.executeQueryModel(e, t, s, o, i, c).then((p) => p(a, r));
|
|
3201
3278
|
},
|
|
3202
3279
|
/**
|
|
3203
3280
|
* 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.
|
|
@@ -3211,8 +3288,8 @@ const yn = {
|
|
|
3211
3288
|
* @param {*} [options] Override http request option.
|
|
3212
3289
|
* @throws {RequiredError}
|
|
3213
3290
|
*/
|
|
3214
|
-
getModel(e, t, s, o,
|
|
3215
|
-
return n.getModel(e, t, s, o,
|
|
3291
|
+
getModel(e, t, s, o, i, c, p) {
|
|
3292
|
+
return n.getModel(e, t, s, o, i, c, p).then((d) => d(a, r));
|
|
3216
3293
|
},
|
|
3217
3294
|
/**
|
|
3218
3295
|
* 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.
|
|
@@ -3224,8 +3301,8 @@ const yn = {
|
|
|
3224
3301
|
* @param {*} [options] Override http request option.
|
|
3225
3302
|
* @throws {RequiredError}
|
|
3226
3303
|
*/
|
|
3227
|
-
listModels(e, t, s, o,
|
|
3228
|
-
return n.listModels(e, t, s, o,
|
|
3304
|
+
listModels(e, t, s, o, i) {
|
|
3305
|
+
return n.listModels(e, t, s, o, i).then((c) => c(a, r));
|
|
3229
3306
|
},
|
|
3230
3307
|
/**
|
|
3231
3308
|
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, `reason` `FILE_EXISTS`, so a caller choosing a name can try the next, and an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md. A published version is immutable, so a package with versions refuses this write with 409 (`reason` `PACKAGE_IS_VERSIONED`), whatever `versionId` names: change the file in the package\'s source and publish a new version. A `versionId` on a package with no versions answers 404 (`reason` `VERSION_NOT_FOUND`). A package installed from a `location` is fetched again from there on reload, which replaces its files, so it refuses this write with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the package\'s source and reload it, or publish it as a version.
|
|
@@ -3238,8 +3315,8 @@ const yn = {
|
|
|
3238
3315
|
* @param {*} [options] Override http request option.
|
|
3239
3316
|
* @throws {RequiredError}
|
|
3240
3317
|
*/
|
|
3241
|
-
updateModelSource(e, t, s, o,
|
|
3242
|
-
return n.updateModelSource(e, t, s, o,
|
|
3318
|
+
updateModelSource(e, t, s, o, i, c) {
|
|
3319
|
+
return n.updateModelSource(e, t, s, o, i, c).then((p) => p(a, r));
|
|
3243
3320
|
}
|
|
3244
3321
|
};
|
|
3245
3322
|
};
|
|
@@ -3285,7 +3362,7 @@ class sa extends I {
|
|
|
3285
3362
|
* @throws {RequiredError}
|
|
3286
3363
|
*/
|
|
3287
3364
|
getModel(r, a, n, e, t, s, o) {
|
|
3288
|
-
return F(this.configuration).getModel(r, a, n, e, t, s, o).then((
|
|
3365
|
+
return F(this.configuration).getModel(r, a, n, e, t, s, o).then((i) => i(this.axios, this.basePath));
|
|
3289
3366
|
}
|
|
3290
3367
|
/**
|
|
3291
3368
|
* 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.
|
|
@@ -3315,7 +3392,7 @@ class sa extends I {
|
|
|
3315
3392
|
return F(this.configuration).updateModelSource(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
|
|
3316
3393
|
}
|
|
3317
3394
|
}
|
|
3318
|
-
const
|
|
3395
|
+
const ia = function(l) {
|
|
3319
3396
|
return {
|
|
3320
3397
|
/**
|
|
3321
3398
|
* **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.
|
|
@@ -3332,16 +3409,16 @@ const ca = function(l) {
|
|
|
3332
3409
|
* @deprecated
|
|
3333
3410
|
* @throws {RequiredError}
|
|
3334
3411
|
*/
|
|
3335
|
-
executeNotebookCell: async (r, a, n, e, t, s, o,
|
|
3412
|
+
executeNotebookCell: async (r, a, n, e, t, s, o, i, c = {}) => {
|
|
3336
3413
|
m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", n), m("executeNotebookCell", "cellIndex", e);
|
|
3337
|
-
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p,
|
|
3414
|
+
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, b);
|
|
3338
3415
|
let h;
|
|
3339
3416
|
l && (h = l.baseOptions);
|
|
3340
|
-
const k = { method: "GET", ...h, ...
|
|
3341
|
-
t !== void 0 && (y.versionId = t), s !== void 0 && (y.filter_params = s), o !== void 0 && (y.bypass_filters = o),
|
|
3417
|
+
const k = { method: "GET", ...h, ...c }, O = {}, y = {};
|
|
3418
|
+
t !== void 0 && (y.versionId = t), s !== void 0 && (y.filter_params = s), o !== void 0 && (y.bypass_filters = o), i !== void 0 && (y.givens = i), O.Accept = "application/json", v(d, y);
|
|
3342
3419
|
let N = h && h.headers ? h.headers : {};
|
|
3343
|
-
return k.headers = { ...O, ...N, ...
|
|
3344
|
-
url:
|
|
3420
|
+
return k.headers = { ...O, ...N, ...c.headers }, {
|
|
3421
|
+
url: V(d),
|
|
3345
3422
|
options: k
|
|
3346
3423
|
};
|
|
3347
3424
|
},
|
|
@@ -3358,15 +3435,15 @@ const ca = function(l) {
|
|
|
3358
3435
|
*/
|
|
3359
3436
|
getNotebook: async (r, a, n, e, t = {}) => {
|
|
3360
3437
|
m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", n);
|
|
3361
|
-
const s = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s,
|
|
3362
|
-
let
|
|
3363
|
-
l && (
|
|
3364
|
-
const
|
|
3438
|
+
const s = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
3439
|
+
let i;
|
|
3440
|
+
l && (i = l.baseOptions);
|
|
3441
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
3365
3442
|
e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
|
|
3366
|
-
let h =
|
|
3367
|
-
return
|
|
3368
|
-
url:
|
|
3369
|
-
options:
|
|
3443
|
+
let h = i && i.headers ? i.headers : {};
|
|
3444
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
3445
|
+
url: V(o),
|
|
3446
|
+
options: c
|
|
3370
3447
|
};
|
|
3371
3448
|
},
|
|
3372
3449
|
/**
|
|
@@ -3381,20 +3458,20 @@ const ca = function(l) {
|
|
|
3381
3458
|
*/
|
|
3382
3459
|
listNotebooks: async (r, a, n, e = {}) => {
|
|
3383
3460
|
m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", a);
|
|
3384
|
-
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
3461
|
+
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
3385
3462
|
let o;
|
|
3386
3463
|
l && (o = l.baseOptions);
|
|
3387
|
-
const
|
|
3388
|
-
n !== void 0 && (p.versionId = n),
|
|
3464
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
3465
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
3389
3466
|
let d = o && o.headers ? o.headers : {};
|
|
3390
|
-
return
|
|
3391
|
-
url:
|
|
3392
|
-
options:
|
|
3467
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
3468
|
+
url: V(s),
|
|
3469
|
+
options: i
|
|
3393
3470
|
};
|
|
3394
3471
|
}
|
|
3395
3472
|
};
|
|
3396
|
-
},
|
|
3397
|
-
const r =
|
|
3473
|
+
}, z = function(l) {
|
|
3474
|
+
const r = ia(l);
|
|
3398
3475
|
return {
|
|
3399
3476
|
/**
|
|
3400
3477
|
* **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.
|
|
@@ -3411,8 +3488,8 @@ const ca = function(l) {
|
|
|
3411
3488
|
* @deprecated
|
|
3412
3489
|
* @throws {RequiredError}
|
|
3413
3490
|
*/
|
|
3414
|
-
async executeNotebookCell(a, n, e, t, s, o,
|
|
3415
|
-
const d = await r.executeNotebookCell(a, n, e, t, s, o,
|
|
3491
|
+
async executeNotebookCell(a, n, e, t, s, o, i, c, p) {
|
|
3492
|
+
const d = await r.executeNotebookCell(a, n, e, t, s, o, i, c, p), h = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
|
|
3416
3493
|
return (O, y) => S(d, u, g, l)(O, k || y);
|
|
3417
3494
|
},
|
|
3418
3495
|
/**
|
|
@@ -3427,8 +3504,8 @@ const ca = function(l) {
|
|
|
3427
3504
|
* @throws {RequiredError}
|
|
3428
3505
|
*/
|
|
3429
3506
|
async getNotebook(a, n, e, t, s) {
|
|
3430
|
-
const o = await r.getNotebook(a, n, e, t, s),
|
|
3431
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
3507
|
+
const o = await r.getNotebook(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["NotebooksApi.getNotebook"]?.[i]?.url;
|
|
3508
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
3432
3509
|
},
|
|
3433
3510
|
/**
|
|
3434
3511
|
* **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.
|
|
@@ -3441,12 +3518,12 @@ const ca = function(l) {
|
|
|
3441
3518
|
* @throws {RequiredError}
|
|
3442
3519
|
*/
|
|
3443
3520
|
async listNotebooks(a, n, e, t) {
|
|
3444
|
-
const s = await r.listNotebooks(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
3445
|
-
return (
|
|
3521
|
+
const s = await r.listNotebooks(a, n, e, t), o = l?.serverIndex ?? 0, i = P["NotebooksApi.listNotebooks"]?.[o]?.url;
|
|
3522
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
3446
3523
|
}
|
|
3447
3524
|
};
|
|
3448
|
-
},
|
|
3449
|
-
const n =
|
|
3525
|
+
}, En = function(l, r, a) {
|
|
3526
|
+
const n = z(l);
|
|
3450
3527
|
return {
|
|
3451
3528
|
/**
|
|
3452
3529
|
* **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.
|
|
@@ -3463,8 +3540,8 @@ const ca = function(l) {
|
|
|
3463
3540
|
* @deprecated
|
|
3464
3541
|
* @throws {RequiredError}
|
|
3465
3542
|
*/
|
|
3466
|
-
executeNotebookCell(e, t, s, o,
|
|
3467
|
-
return n.executeNotebookCell(e, t, s, o,
|
|
3543
|
+
executeNotebookCell(e, t, s, o, i, c, p, d, h) {
|
|
3544
|
+
return n.executeNotebookCell(e, t, s, o, i, c, p, d, h).then((k) => k(a, r));
|
|
3468
3545
|
},
|
|
3469
3546
|
/**
|
|
3470
3547
|
* **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.
|
|
@@ -3477,8 +3554,8 @@ const ca = function(l) {
|
|
|
3477
3554
|
* @deprecated
|
|
3478
3555
|
* @throws {RequiredError}
|
|
3479
3556
|
*/
|
|
3480
|
-
getNotebook(e, t, s, o,
|
|
3481
|
-
return n.getNotebook(e, t, s, o,
|
|
3557
|
+
getNotebook(e, t, s, o, i) {
|
|
3558
|
+
return n.getNotebook(e, t, s, o, i).then((c) => c(a, r));
|
|
3482
3559
|
},
|
|
3483
3560
|
/**
|
|
3484
3561
|
* **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.
|
|
@@ -3491,7 +3568,7 @@ const ca = function(l) {
|
|
|
3491
3568
|
* @throws {RequiredError}
|
|
3492
3569
|
*/
|
|
3493
3570
|
listNotebooks(e, t, s, o) {
|
|
3494
|
-
return n.listNotebooks(e, t, s, o).then((
|
|
3571
|
+
return n.listNotebooks(e, t, s, o).then((i) => i(a, r));
|
|
3495
3572
|
}
|
|
3496
3573
|
};
|
|
3497
3574
|
};
|
|
@@ -3511,8 +3588,8 @@ class la extends I {
|
|
|
3511
3588
|
* @deprecated
|
|
3512
3589
|
* @throws {RequiredError}
|
|
3513
3590
|
*/
|
|
3514
|
-
executeNotebookCell(r, a, n, e, t, s, o,
|
|
3515
|
-
return
|
|
3591
|
+
executeNotebookCell(r, a, n, e, t, s, o, i, c) {
|
|
3592
|
+
return z(this.configuration).executeNotebookCell(r, a, n, e, t, s, o, i, c).then((p) => p(this.axios, this.basePath));
|
|
3516
3593
|
}
|
|
3517
3594
|
/**
|
|
3518
3595
|
* **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.
|
|
@@ -3526,7 +3603,7 @@ class la extends I {
|
|
|
3526
3603
|
* @throws {RequiredError}
|
|
3527
3604
|
*/
|
|
3528
3605
|
getNotebook(r, a, n, e, t) {
|
|
3529
|
-
return
|
|
3606
|
+
return z(this.configuration).getNotebook(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
|
|
3530
3607
|
}
|
|
3531
3608
|
/**
|
|
3532
3609
|
* **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.
|
|
@@ -3539,16 +3616,16 @@ class la extends I {
|
|
|
3539
3616
|
* @throws {RequiredError}
|
|
3540
3617
|
*/
|
|
3541
3618
|
listNotebooks(r, a, n, e) {
|
|
3542
|
-
return
|
|
3619
|
+
return z(this.configuration).listNotebooks(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
3543
3620
|
}
|
|
3544
3621
|
}
|
|
3545
|
-
const
|
|
3622
|
+
const fn = {
|
|
3546
3623
|
True: "true",
|
|
3547
3624
|
False: "false"
|
|
3548
|
-
},
|
|
3625
|
+
}, ca = function(l) {
|
|
3549
3626
|
return {
|
|
3550
3627
|
/**
|
|
3551
|
-
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a
|
|
3628
|
+
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
3552
3629
|
* @summary Create a new package
|
|
3553
3630
|
* @param {string} environmentName Name of the environment
|
|
3554
3631
|
* @param {Package} _package
|
|
@@ -3558,15 +3635,15 @@ const xn = {
|
|
|
3558
3635
|
*/
|
|
3559
3636
|
createPackage: async (r, a, n, e = {}) => {
|
|
3560
3637
|
m("createPackage", "environmentName", r), m("createPackage", "_package", a);
|
|
3561
|
-
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), s = new URL(t,
|
|
3638
|
+
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), s = new URL(t, b);
|
|
3562
3639
|
let o;
|
|
3563
3640
|
l && (o = l.baseOptions);
|
|
3564
|
-
const
|
|
3565
|
-
n !== void 0 && (p.dryRun = n),
|
|
3641
|
+
const i = { method: "POST", ...o, ...e }, c = {}, p = {};
|
|
3642
|
+
n !== void 0 && (p.dryRun = n), c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
3566
3643
|
let d = o && o.headers ? o.headers : {};
|
|
3567
|
-
return
|
|
3568
|
-
url:
|
|
3569
|
-
options:
|
|
3644
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(a, i, l), {
|
|
3645
|
+
url: V(s),
|
|
3646
|
+
options: i
|
|
3570
3647
|
};
|
|
3571
3648
|
},
|
|
3572
3649
|
/**
|
|
@@ -3579,14 +3656,14 @@ const xn = {
|
|
|
3579
3656
|
*/
|
|
3580
3657
|
deletePackage: async (r, a, n = {}) => {
|
|
3581
3658
|
m("deletePackage", "environmentName", r), m("deletePackage", "packageName", a);
|
|
3582
|
-
const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e,
|
|
3659
|
+
const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, b);
|
|
3583
3660
|
let s;
|
|
3584
3661
|
l && (s = l.baseOptions);
|
|
3585
|
-
const o = { method: "DELETE", ...s, ...n },
|
|
3586
|
-
|
|
3662
|
+
const o = { method: "DELETE", ...s, ...n }, i = {}, c = {};
|
|
3663
|
+
i.Accept = "application/json", v(t, c);
|
|
3587
3664
|
let p = s && s.headers ? s.headers : {};
|
|
3588
|
-
return o.headers = { ...
|
|
3589
|
-
url:
|
|
3665
|
+
return o.headers = { ...i, ...p, ...n.headers }, {
|
|
3666
|
+
url: V(t),
|
|
3590
3667
|
options: o
|
|
3591
3668
|
};
|
|
3592
3669
|
},
|
|
@@ -3602,15 +3679,15 @@ const xn = {
|
|
|
3602
3679
|
*/
|
|
3603
3680
|
getPackage: async (r, a, n, e, t = {}) => {
|
|
3604
3681
|
m("getPackage", "environmentName", r), m("getPackage", "packageName", a);
|
|
3605
|
-
const s = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s,
|
|
3606
|
-
let
|
|
3607
|
-
l && (
|
|
3608
|
-
const
|
|
3682
|
+
const s = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, b);
|
|
3683
|
+
let i;
|
|
3684
|
+
l && (i = l.baseOptions);
|
|
3685
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
3609
3686
|
n !== void 0 && (d.versionId = n), e !== void 0 && (d.reload = e), p.Accept = "application/json", v(o, d);
|
|
3610
|
-
let h =
|
|
3611
|
-
return
|
|
3612
|
-
url:
|
|
3613
|
-
options:
|
|
3687
|
+
let h = i && i.headers ? i.headers : {};
|
|
3688
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
3689
|
+
url: V(o),
|
|
3690
|
+
options: c
|
|
3614
3691
|
};
|
|
3615
3692
|
},
|
|
3616
3693
|
/**
|
|
@@ -3624,15 +3701,15 @@ const xn = {
|
|
|
3624
3701
|
*/
|
|
3625
3702
|
getPackageBuildPlan: async (r, a, n, e = {}) => {
|
|
3626
3703
|
m("getPackageBuildPlan", "environmentName", r), m("getPackageBuildPlan", "packageName", a);
|
|
3627
|
-
const t = "/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
3704
|
+
const t = "/environments/{environmentName}/packages/{packageName}/build-plan".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
3628
3705
|
let o;
|
|
3629
3706
|
l && (o = l.baseOptions);
|
|
3630
|
-
const
|
|
3631
|
-
n !== void 0 && (p.versionId = n),
|
|
3707
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
3708
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
3632
3709
|
let d = o && o.headers ? o.headers : {};
|
|
3633
|
-
return
|
|
3634
|
-
url:
|
|
3635
|
-
options:
|
|
3710
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
3711
|
+
url: V(s),
|
|
3712
|
+
options: i
|
|
3636
3713
|
};
|
|
3637
3714
|
},
|
|
3638
3715
|
/**
|
|
@@ -3646,15 +3723,15 @@ const xn = {
|
|
|
3646
3723
|
*/
|
|
3647
3724
|
getPackageClassification: async (r, a, n, e = {}) => {
|
|
3648
3725
|
m("getPackageClassification", "environmentName", r), m("getPackageClassification", "packageName", a);
|
|
3649
|
-
const t = "/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
3726
|
+
const t = "/environments/{environmentName}/packages/{packageName}/classification".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
3650
3727
|
let o;
|
|
3651
3728
|
l && (o = l.baseOptions);
|
|
3652
|
-
const
|
|
3653
|
-
n !== void 0 && (p.versionId = n),
|
|
3729
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
3730
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
3654
3731
|
let d = o && o.headers ? o.headers : {};
|
|
3655
|
-
return
|
|
3656
|
-
url:
|
|
3657
|
-
options:
|
|
3732
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
3733
|
+
url: V(s),
|
|
3734
|
+
options: i
|
|
3658
3735
|
};
|
|
3659
3736
|
},
|
|
3660
3737
|
/**
|
|
@@ -3668,15 +3745,15 @@ const xn = {
|
|
|
3668
3745
|
*/
|
|
3669
3746
|
getPackageEmbeddingIndex: async (r, a, n, e = {}) => {
|
|
3670
3747
|
m("getPackageEmbeddingIndex", "environmentName", r), m("getPackageEmbeddingIndex", "packageName", a);
|
|
3671
|
-
const t = "/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
3748
|
+
const t = "/environments/{environmentName}/packages/{packageName}/embedding-index".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
3672
3749
|
let o;
|
|
3673
3750
|
l && (o = l.baseOptions);
|
|
3674
|
-
const
|
|
3675
|
-
n !== void 0 && (p.versionId = n),
|
|
3751
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
3752
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
3676
3753
|
let d = o && o.headers ? o.headers : {};
|
|
3677
|
-
return
|
|
3678
|
-
url:
|
|
3679
|
-
options:
|
|
3754
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
3755
|
+
url: V(s),
|
|
3756
|
+
options: i
|
|
3680
3757
|
};
|
|
3681
3758
|
},
|
|
3682
3759
|
/**
|
|
@@ -3691,15 +3768,15 @@ const xn = {
|
|
|
3691
3768
|
*/
|
|
3692
3769
|
getPackageEntities: async (r, a, n, e, t = {}) => {
|
|
3693
3770
|
m("getPackageEntities", "environmentName", r), m("getPackageEntities", "packageName", a);
|
|
3694
|
-
const s = "/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s,
|
|
3695
|
-
let
|
|
3696
|
-
l && (
|
|
3697
|
-
const
|
|
3771
|
+
const s = "/environments/{environmentName}/packages/{packageName}/entities".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(s, b);
|
|
3772
|
+
let i;
|
|
3773
|
+
l && (i = l.baseOptions);
|
|
3774
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
3698
3775
|
n !== void 0 && (d.versionId = n), e !== void 0 && (d.includeHiddenFilesAndSources = e), p.Accept = "application/json", v(o, d);
|
|
3699
|
-
let h =
|
|
3700
|
-
return
|
|
3701
|
-
url:
|
|
3702
|
-
options:
|
|
3776
|
+
let h = i && i.headers ? i.headers : {};
|
|
3777
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
3778
|
+
url: V(o),
|
|
3779
|
+
options: c
|
|
3703
3780
|
};
|
|
3704
3781
|
},
|
|
3705
3782
|
/**
|
|
@@ -3713,15 +3790,15 @@ const xn = {
|
|
|
3713
3790
|
*/
|
|
3714
3791
|
getPackageStatus: async (r, a, n, e = {}) => {
|
|
3715
3792
|
m("getPackageStatus", "environmentName", r), m("getPackageStatus", "packageName", a);
|
|
3716
|
-
const t = "/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
3793
|
+
const t = "/environments/{environmentName}/packages/{packageName}/status".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
3717
3794
|
let o;
|
|
3718
3795
|
l && (o = l.baseOptions);
|
|
3719
|
-
const
|
|
3720
|
-
n !== void 0 && (p.versionId = n),
|
|
3796
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
3797
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
3721
3798
|
let d = o && o.headers ? o.headers : {};
|
|
3722
|
-
return
|
|
3723
|
-
url:
|
|
3724
|
-
options:
|
|
3799
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
3800
|
+
url: V(s),
|
|
3801
|
+
options: i
|
|
3725
3802
|
};
|
|
3726
3803
|
},
|
|
3727
3804
|
/**
|
|
@@ -3733,14 +3810,14 @@ const xn = {
|
|
|
3733
3810
|
*/
|
|
3734
3811
|
listPackages: async (r, a = {}) => {
|
|
3735
3812
|
m("listPackages", "environmentName", r);
|
|
3736
|
-
const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n,
|
|
3813
|
+
const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, b);
|
|
3737
3814
|
let t;
|
|
3738
3815
|
l && (t = l.baseOptions);
|
|
3739
|
-
const s = { method: "GET", ...t, ...a }, o = {},
|
|
3740
|
-
o.Accept = "application/json", v(e,
|
|
3741
|
-
let
|
|
3742
|
-
return s.headers = { ...o, ...
|
|
3743
|
-
url:
|
|
3816
|
+
const s = { method: "GET", ...t, ...a }, o = {}, i = {};
|
|
3817
|
+
o.Accept = "application/json", v(e, i);
|
|
3818
|
+
let c = t && t.headers ? t.headers : {};
|
|
3819
|
+
return s.headers = { ...o, ...c, ...a.headers }, {
|
|
3820
|
+
url: V(e),
|
|
3744
3821
|
options: s
|
|
3745
3822
|
};
|
|
3746
3823
|
},
|
|
@@ -3756,23 +3833,23 @@ const xn = {
|
|
|
3756
3833
|
*/
|
|
3757
3834
|
updatePackage: async (r, a, n, e = {}) => {
|
|
3758
3835
|
m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", n);
|
|
3759
|
-
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
3836
|
+
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
3760
3837
|
let o;
|
|
3761
3838
|
l && (o = l.baseOptions);
|
|
3762
|
-
const
|
|
3763
|
-
|
|
3839
|
+
const i = { method: "PATCH", ...o, ...e }, c = {}, p = {};
|
|
3840
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
3764
3841
|
let d = o && o.headers ? o.headers : {};
|
|
3765
|
-
return
|
|
3766
|
-
url:
|
|
3767
|
-
options:
|
|
3842
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
3843
|
+
url: V(s),
|
|
3844
|
+
options: i
|
|
3768
3845
|
};
|
|
3769
3846
|
}
|
|
3770
3847
|
};
|
|
3771
|
-
},
|
|
3772
|
-
const r =
|
|
3848
|
+
}, x = function(l) {
|
|
3849
|
+
const r = ca(l);
|
|
3773
3850
|
return {
|
|
3774
3851
|
/**
|
|
3775
|
-
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a
|
|
3852
|
+
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
3776
3853
|
* @summary Create a new package
|
|
3777
3854
|
* @param {string} environmentName Name of the environment
|
|
3778
3855
|
* @param {Package} _package
|
|
@@ -3781,8 +3858,8 @@ const xn = {
|
|
|
3781
3858
|
* @throws {RequiredError}
|
|
3782
3859
|
*/
|
|
3783
3860
|
async createPackage(a, n, e, t) {
|
|
3784
|
-
const s = await r.createPackage(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
3785
|
-
return (
|
|
3861
|
+
const s = await r.createPackage(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.createPackage"]?.[o]?.url;
|
|
3862
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
3786
3863
|
},
|
|
3787
3864
|
/**
|
|
3788
3865
|
* Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
|
|
@@ -3794,7 +3871,7 @@ const xn = {
|
|
|
3794
3871
|
*/
|
|
3795
3872
|
async deletePackage(a, n, e) {
|
|
3796
3873
|
const t = await r.deletePackage(a, n, e), s = l?.serverIndex ?? 0, o = P["PackagesApi.deletePackage"]?.[s]?.url;
|
|
3797
|
-
return (
|
|
3874
|
+
return (i, c) => S(t, u, g, l)(i, o || c);
|
|
3798
3875
|
},
|
|
3799
3876
|
/**
|
|
3800
3877
|
* Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
|
|
@@ -3807,8 +3884,8 @@ const xn = {
|
|
|
3807
3884
|
* @throws {RequiredError}
|
|
3808
3885
|
*/
|
|
3809
3886
|
async getPackage(a, n, e, t, s) {
|
|
3810
|
-
const o = await r.getPackage(a, n, e, t, s),
|
|
3811
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
3887
|
+
const o = await r.getPackage(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["PackagesApi.getPackage"]?.[i]?.url;
|
|
3888
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
3812
3889
|
},
|
|
3813
3890
|
/**
|
|
3814
3891
|
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
@@ -3820,8 +3897,8 @@ const xn = {
|
|
|
3820
3897
|
* @throws {RequiredError}
|
|
3821
3898
|
*/
|
|
3822
3899
|
async getPackageBuildPlan(a, n, e, t) {
|
|
3823
|
-
const s = await r.getPackageBuildPlan(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
3824
|
-
return (
|
|
3900
|
+
const s = await r.getPackageBuildPlan(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageBuildPlan"]?.[o]?.url;
|
|
3901
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
3825
3902
|
},
|
|
3826
3903
|
/**
|
|
3827
3904
|
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
@@ -3833,8 +3910,8 @@ const xn = {
|
|
|
3833
3910
|
* @throws {RequiredError}
|
|
3834
3911
|
*/
|
|
3835
3912
|
async getPackageClassification(a, n, e, t) {
|
|
3836
|
-
const s = await r.getPackageClassification(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
3837
|
-
return (
|
|
3913
|
+
const s = await r.getPackageClassification(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageClassification"]?.[o]?.url;
|
|
3914
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
3838
3915
|
},
|
|
3839
3916
|
/**
|
|
3840
3917
|
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
@@ -3846,8 +3923,8 @@ const xn = {
|
|
|
3846
3923
|
* @throws {RequiredError}
|
|
3847
3924
|
*/
|
|
3848
3925
|
async getPackageEmbeddingIndex(a, n, e, t) {
|
|
3849
|
-
const s = await r.getPackageEmbeddingIndex(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
3850
|
-
return (
|
|
3926
|
+
const s = await r.getPackageEmbeddingIndex(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageEmbeddingIndex"]?.[o]?.url;
|
|
3927
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
3851
3928
|
},
|
|
3852
3929
|
/**
|
|
3853
3930
|
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
@@ -3860,8 +3937,8 @@ const xn = {
|
|
|
3860
3937
|
* @throws {RequiredError}
|
|
3861
3938
|
*/
|
|
3862
3939
|
async getPackageEntities(a, n, e, t, s) {
|
|
3863
|
-
const o = await r.getPackageEntities(a, n, e, t, s),
|
|
3864
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
3940
|
+
const o = await r.getPackageEntities(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["PackagesApi.getPackageEntities"]?.[i]?.url;
|
|
3941
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
3865
3942
|
},
|
|
3866
3943
|
/**
|
|
3867
3944
|
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
@@ -3873,8 +3950,8 @@ const xn = {
|
|
|
3873
3950
|
* @throws {RequiredError}
|
|
3874
3951
|
*/
|
|
3875
3952
|
async getPackageStatus(a, n, e, t) {
|
|
3876
|
-
const s = await r.getPackageStatus(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
3877
|
-
return (
|
|
3953
|
+
const s = await r.getPackageStatus(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.getPackageStatus"]?.[o]?.url;
|
|
3954
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
3878
3955
|
},
|
|
3879
3956
|
/**
|
|
3880
3957
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
@@ -3885,7 +3962,7 @@ const xn = {
|
|
|
3885
3962
|
*/
|
|
3886
3963
|
async listPackages(a, n) {
|
|
3887
3964
|
const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, s = P["PackagesApi.listPackages"]?.[t]?.url;
|
|
3888
|
-
return (o,
|
|
3965
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
3889
3966
|
},
|
|
3890
3967
|
/**
|
|
3891
3968
|
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
@@ -3898,15 +3975,15 @@ const xn = {
|
|
|
3898
3975
|
* @throws {RequiredError}
|
|
3899
3976
|
*/
|
|
3900
3977
|
async updatePackage(a, n, e, t) {
|
|
3901
|
-
const s = await r.updatePackage(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
3902
|
-
return (
|
|
3978
|
+
const s = await r.updatePackage(a, n, e, t), o = l?.serverIndex ?? 0, i = P["PackagesApi.updatePackage"]?.[o]?.url;
|
|
3979
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
3903
3980
|
}
|
|
3904
3981
|
};
|
|
3905
|
-
},
|
|
3906
|
-
const n =
|
|
3982
|
+
}, wn = function(l, r, a) {
|
|
3983
|
+
const n = x(l);
|
|
3907
3984
|
return {
|
|
3908
3985
|
/**
|
|
3909
|
-
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a
|
|
3986
|
+
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
3910
3987
|
* @summary Create a new package
|
|
3911
3988
|
* @param {string} environmentName Name of the environment
|
|
3912
3989
|
* @param {Package} _package
|
|
@@ -3915,7 +3992,7 @@ const xn = {
|
|
|
3915
3992
|
* @throws {RequiredError}
|
|
3916
3993
|
*/
|
|
3917
3994
|
createPackage(e, t, s, o) {
|
|
3918
|
-
return n.createPackage(e, t, s, o).then((
|
|
3995
|
+
return n.createPackage(e, t, s, o).then((i) => i(a, r));
|
|
3919
3996
|
},
|
|
3920
3997
|
/**
|
|
3921
3998
|
* Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
|
|
@@ -3938,8 +4015,8 @@ const xn = {
|
|
|
3938
4015
|
* @param {*} [options] Override http request option.
|
|
3939
4016
|
* @throws {RequiredError}
|
|
3940
4017
|
*/
|
|
3941
|
-
getPackage(e, t, s, o,
|
|
3942
|
-
return n.getPackage(e, t, s, o,
|
|
4018
|
+
getPackage(e, t, s, o, i) {
|
|
4019
|
+
return n.getPackage(e, t, s, o, i).then((c) => c(a, r));
|
|
3943
4020
|
},
|
|
3944
4021
|
/**
|
|
3945
4022
|
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
@@ -3951,7 +4028,7 @@ const xn = {
|
|
|
3951
4028
|
* @throws {RequiredError}
|
|
3952
4029
|
*/
|
|
3953
4030
|
getPackageBuildPlan(e, t, s, o) {
|
|
3954
|
-
return n.getPackageBuildPlan(e, t, s, o).then((
|
|
4031
|
+
return n.getPackageBuildPlan(e, t, s, o).then((i) => i(a, r));
|
|
3955
4032
|
},
|
|
3956
4033
|
/**
|
|
3957
4034
|
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
@@ -3963,7 +4040,7 @@ const xn = {
|
|
|
3963
4040
|
* @throws {RequiredError}
|
|
3964
4041
|
*/
|
|
3965
4042
|
getPackageClassification(e, t, s, o) {
|
|
3966
|
-
return n.getPackageClassification(e, t, s, o).then((
|
|
4043
|
+
return n.getPackageClassification(e, t, s, o).then((i) => i(a, r));
|
|
3967
4044
|
},
|
|
3968
4045
|
/**
|
|
3969
4046
|
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
@@ -3975,7 +4052,7 @@ const xn = {
|
|
|
3975
4052
|
* @throws {RequiredError}
|
|
3976
4053
|
*/
|
|
3977
4054
|
getPackageEmbeddingIndex(e, t, s, o) {
|
|
3978
|
-
return n.getPackageEmbeddingIndex(e, t, s, o).then((
|
|
4055
|
+
return n.getPackageEmbeddingIndex(e, t, s, o).then((i) => i(a, r));
|
|
3979
4056
|
},
|
|
3980
4057
|
/**
|
|
3981
4058
|
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
@@ -3987,8 +4064,8 @@ const xn = {
|
|
|
3987
4064
|
* @param {*} [options] Override http request option.
|
|
3988
4065
|
* @throws {RequiredError}
|
|
3989
4066
|
*/
|
|
3990
|
-
getPackageEntities(e, t, s, o,
|
|
3991
|
-
return n.getPackageEntities(e, t, s, o,
|
|
4067
|
+
getPackageEntities(e, t, s, o, i) {
|
|
4068
|
+
return n.getPackageEntities(e, t, s, o, i).then((c) => c(a, r));
|
|
3992
4069
|
},
|
|
3993
4070
|
/**
|
|
3994
4071
|
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
@@ -4000,7 +4077,7 @@ const xn = {
|
|
|
4000
4077
|
* @throws {RequiredError}
|
|
4001
4078
|
*/
|
|
4002
4079
|
getPackageStatus(e, t, s, o) {
|
|
4003
|
-
return n.getPackageStatus(e, t, s, o).then((
|
|
4080
|
+
return n.getPackageStatus(e, t, s, o).then((i) => i(a, r));
|
|
4004
4081
|
},
|
|
4005
4082
|
/**
|
|
4006
4083
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
@@ -4023,13 +4100,13 @@ const xn = {
|
|
|
4023
4100
|
* @throws {RequiredError}
|
|
4024
4101
|
*/
|
|
4025
4102
|
updatePackage(e, t, s, o) {
|
|
4026
|
-
return n.updatePackage(e, t, s, o).then((
|
|
4103
|
+
return n.updatePackage(e, t, s, o).then((i) => i(a, r));
|
|
4027
4104
|
}
|
|
4028
4105
|
};
|
|
4029
4106
|
};
|
|
4030
4107
|
class pa extends I {
|
|
4031
4108
|
/**
|
|
4032
|
-
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a
|
|
4109
|
+
* 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. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
|
|
4033
4110
|
* @summary Create a new package
|
|
4034
4111
|
* @param {string} environmentName Name of the environment
|
|
4035
4112
|
* @param {Package} _package
|
|
@@ -4038,7 +4115,7 @@ class pa extends I {
|
|
|
4038
4115
|
* @throws {RequiredError}
|
|
4039
4116
|
*/
|
|
4040
4117
|
createPackage(r, a, n, e) {
|
|
4041
|
-
return
|
|
4118
|
+
return x(this.configuration).createPackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4042
4119
|
}
|
|
4043
4120
|
/**
|
|
4044
4121
|
* Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion. On a versioned package this deletes every published version and its files, then, in the background, cleans up each version as deleting it alone does: its own auto-runs still running are stopped and its own `scope: version` tables reclaimed. To take one version out of service while keeping the rest, archive it with `PATCH .../packages/{packageName}/versions/{version}`; to remove one version for good, delete it with `DELETE .../packages/{packageName}/versions/{version}`.
|
|
@@ -4049,7 +4126,7 @@ class pa extends I {
|
|
|
4049
4126
|
* @throws {RequiredError}
|
|
4050
4127
|
*/
|
|
4051
4128
|
deletePackage(r, a, n) {
|
|
4052
|
-
return
|
|
4129
|
+
return x(this.configuration).deletePackage(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
4053
4130
|
}
|
|
4054
4131
|
/**
|
|
4055
4132
|
* Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter selects one published version of a versioned package; without it, the package\'s `latest` version is returned.
|
|
@@ -4062,7 +4139,7 @@ class pa extends I {
|
|
|
4062
4139
|
* @throws {RequiredError}
|
|
4063
4140
|
*/
|
|
4064
4141
|
getPackage(r, a, n, e, t) {
|
|
4065
|
-
return
|
|
4142
|
+
return x(this.configuration).getPackage(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
|
|
4066
4143
|
}
|
|
4067
4144
|
/**
|
|
4068
4145
|
* The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
|
|
@@ -4074,7 +4151,7 @@ class pa extends I {
|
|
|
4074
4151
|
* @throws {RequiredError}
|
|
4075
4152
|
*/
|
|
4076
4153
|
getPackageBuildPlan(r, a, n, e) {
|
|
4077
|
-
return
|
|
4154
|
+
return x(this.configuration).getPackageBuildPlan(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4078
4155
|
}
|
|
4079
4156
|
/**
|
|
4080
4157
|
* For each published entry point of the package, the classes its `#(carries)` declares and how many of its fields carry each class, inherited classes included, with the count left unclassified. It covers only what discovery shows. `sources` is empty when nothing published is classified.
|
|
@@ -4086,7 +4163,7 @@ class pa extends I {
|
|
|
4086
4163
|
* @throws {RequiredError}
|
|
4087
4164
|
*/
|
|
4088
4165
|
getPackageClassification(r, a, n, e) {
|
|
4089
|
-
return
|
|
4166
|
+
return x(this.configuration).getPackageClassification(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4090
4167
|
}
|
|
4091
4168
|
/**
|
|
4092
4169
|
* The state of the package\'s semantic discovery index, which is what `get_context` ranks against when an embedding provider is configured. `status: lexical` when the server has no provider, because there is no index to describe. Poll it after a load or reload until `status` is terminal (`ready`, `lexical` or `error`).
|
|
@@ -4098,7 +4175,7 @@ class pa extends I {
|
|
|
4098
4175
|
* @throws {RequiredError}
|
|
4099
4176
|
*/
|
|
4100
4177
|
getPackageEmbeddingIndex(r, a, n, e) {
|
|
4101
|
-
return
|
|
4178
|
+
return x(this.configuration).getPackageEmbeddingIndex(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4102
4179
|
}
|
|
4103
4180
|
/**
|
|
4104
4181
|
* What every `.malloy` model of the package declares, in the form an indexer reads: each source\'s public fields (kind, type, declaring code, annotations, `#(doc)`, table, join target, and an `#(index)` dimension\'s fingerprint), the facts the model states about each source (doc, visibility, queryability, filters, access gates), the model\'s givens and each source\'s schema. One entry per `.malloy` file, sorted by `modelPath`. Shown under the rules of `GET …/models/{path}`: only the files on the package\'s discovery surface, and no source locked with `#(authorize) false`. With `includeHiddenFilesAndSources`, every `.malloy` file and every source, for a host that indexes them; as with the model routes, a gateway admits that flag only for such a host. Computed once, when the package loads, from the models as they compiled before any materialization manifest is bound, so a later bind does not change it. A model that failed has an entry with `error` and `errorKind` and nothing else. An `#(index)` or required `#(filter)` an index cannot honor is left out (no fingerprint, no filter) and reported as a package warning whose `code` starts with `entities-`.
|
|
@@ -4111,7 +4188,7 @@ class pa extends I {
|
|
|
4111
4188
|
* @throws {RequiredError}
|
|
4112
4189
|
*/
|
|
4113
4190
|
getPackageEntities(r, a, n, e, t) {
|
|
4114
|
-
return
|
|
4191
|
+
return x(this.configuration).getPackageEntities(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
|
|
4115
4192
|
}
|
|
4116
4193
|
/**
|
|
4117
4194
|
* The package\'s serving state on this server: whether a compiled copy serves and whether a load is in progress, which load it serves (`servedRevision`) and the content of that load (`sourceContentSha`), and which materialized tables are bound (`manifestBindingStatus`, `manifestEntryCount`, `boundManifestUri`, `storageServeBindings`). For a versioned package, the named version\'s, or its `latest`\'s. Reading it never loads the package. A package this server knows but does not hold in memory reports `status.serving` false and none of the load fields. `GET /status` carries the part of this an orchestrator reconciles from, for every package at once.
|
|
@@ -4123,7 +4200,7 @@ class pa extends I {
|
|
|
4123
4200
|
* @throws {RequiredError}
|
|
4124
4201
|
*/
|
|
4125
4202
|
getPackageStatus(r, a, n, e) {
|
|
4126
|
-
return
|
|
4203
|
+
return x(this.configuration).getPackageStatus(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4127
4204
|
}
|
|
4128
4205
|
/**
|
|
4129
4206
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`. A package with published versions is listed once, as its `latest` version. A `versionId` other than empty or `latest` is rejected with 400: read one version with `GET /environments/{environmentName}/packages/{packageName}?versionId=`.
|
|
@@ -4133,7 +4210,7 @@ class pa extends I {
|
|
|
4133
4210
|
* @throws {RequiredError}
|
|
4134
4211
|
*/
|
|
4135
4212
|
listPackages(r, a) {
|
|
4136
|
-
return
|
|
4213
|
+
return x(this.configuration).listPackages(r, a).then((n) => n(this.axios, this.basePath));
|
|
4137
4214
|
}
|
|
4138
4215
|
/**
|
|
4139
4216
|
* DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{version}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
|
|
@@ -4146,7 +4223,7 @@ class pa extends I {
|
|
|
4146
4223
|
* @throws {RequiredError}
|
|
4147
4224
|
*/
|
|
4148
4225
|
updatePackage(r, a, n, e) {
|
|
4149
|
-
return
|
|
4226
|
+
return x(this.configuration).updatePackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4150
4227
|
}
|
|
4151
4228
|
}
|
|
4152
4229
|
const da = function(l) {
|
|
@@ -4158,14 +4235,14 @@ const da = function(l) {
|
|
|
4158
4235
|
* @throws {RequiredError}
|
|
4159
4236
|
*/
|
|
4160
4237
|
deleteTheme: async (r = {}) => {
|
|
4161
|
-
const a = "/theme", n = new URL(a,
|
|
4238
|
+
const a = "/theme", n = new URL(a, b);
|
|
4162
4239
|
let e;
|
|
4163
4240
|
l && (e = l.baseOptions);
|
|
4164
4241
|
const t = { method: "DELETE", ...e, ...r }, s = {}, o = {};
|
|
4165
4242
|
s.Accept = "application/json", v(n, o);
|
|
4166
|
-
let
|
|
4167
|
-
return t.headers = { ...s, ...
|
|
4168
|
-
url:
|
|
4243
|
+
let i = e && e.headers ? e.headers : {};
|
|
4244
|
+
return t.headers = { ...s, ...i, ...r.headers }, {
|
|
4245
|
+
url: V(n),
|
|
4169
4246
|
options: t
|
|
4170
4247
|
};
|
|
4171
4248
|
},
|
|
@@ -4177,14 +4254,14 @@ const da = function(l) {
|
|
|
4177
4254
|
* @throws {RequiredError}
|
|
4178
4255
|
*/
|
|
4179
4256
|
getStatus: async (r, a = {}) => {
|
|
4180
|
-
const n = "/status", e = new URL(n,
|
|
4257
|
+
const n = "/status", e = new URL(n, b);
|
|
4181
4258
|
let t;
|
|
4182
4259
|
l && (t = l.baseOptions);
|
|
4183
|
-
const s = { method: "GET", ...t, ...a }, o = {},
|
|
4184
|
-
r !== void 0 && (
|
|
4185
|
-
let
|
|
4186
|
-
return s.headers = { ...o, ...
|
|
4187
|
-
url:
|
|
4260
|
+
const s = { method: "GET", ...t, ...a }, o = {}, i = {};
|
|
4261
|
+
r !== void 0 && (i.includeLoading = r), o.Accept = "application/json", v(e, i);
|
|
4262
|
+
let c = t && t.headers ? t.headers : {};
|
|
4263
|
+
return s.headers = { ...o, ...c, ...a.headers }, {
|
|
4264
|
+
url: V(e),
|
|
4188
4265
|
options: s
|
|
4189
4266
|
};
|
|
4190
4267
|
},
|
|
@@ -4195,14 +4272,14 @@ const da = function(l) {
|
|
|
4195
4272
|
* @throws {RequiredError}
|
|
4196
4273
|
*/
|
|
4197
4274
|
getTheme: async (r = {}) => {
|
|
4198
|
-
const a = "/theme", n = new URL(a,
|
|
4275
|
+
const a = "/theme", n = new URL(a, b);
|
|
4199
4276
|
let e;
|
|
4200
4277
|
l && (e = l.baseOptions);
|
|
4201
4278
|
const t = { method: "GET", ...e, ...r }, s = {}, o = {};
|
|
4202
4279
|
s.Accept = "application/json", v(n, o);
|
|
4203
|
-
let
|
|
4204
|
-
return t.headers = { ...s, ...
|
|
4205
|
-
url:
|
|
4280
|
+
let i = e && e.headers ? e.headers : {};
|
|
4281
|
+
return t.headers = { ...s, ...i, ...r.headers }, {
|
|
4282
|
+
url: V(n),
|
|
4206
4283
|
options: t
|
|
4207
4284
|
};
|
|
4208
4285
|
},
|
|
@@ -4215,14 +4292,14 @@ const da = function(l) {
|
|
|
4215
4292
|
*/
|
|
4216
4293
|
updateTheme: async (r, a = {}) => {
|
|
4217
4294
|
m("updateTheme", "theme", r);
|
|
4218
|
-
const n = "/theme", e = new URL(n,
|
|
4295
|
+
const n = "/theme", e = new URL(n, b);
|
|
4219
4296
|
let t;
|
|
4220
4297
|
l && (t = l.baseOptions);
|
|
4221
|
-
const s = { method: "PUT", ...t, ...a }, o = {},
|
|
4222
|
-
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e,
|
|
4223
|
-
let
|
|
4224
|
-
return s.headers = { ...o, ...
|
|
4225
|
-
url:
|
|
4298
|
+
const s = { method: "PUT", ...t, ...a }, o = {}, i = {};
|
|
4299
|
+
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
|
|
4300
|
+
let c = t && t.headers ? t.headers : {};
|
|
4301
|
+
return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
|
|
4302
|
+
url: V(e),
|
|
4226
4303
|
options: s
|
|
4227
4304
|
};
|
|
4228
4305
|
}
|
|
@@ -4249,7 +4326,7 @@ const da = function(l) {
|
|
|
4249
4326
|
*/
|
|
4250
4327
|
async getStatus(a, n) {
|
|
4251
4328
|
const e = await r.getStatus(a, n), t = l?.serverIndex ?? 0, s = P["PublisherApi.getStatus"]?.[t]?.url;
|
|
4252
|
-
return (o,
|
|
4329
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
4253
4330
|
},
|
|
4254
4331
|
/**
|
|
4255
4332
|
* 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.
|
|
@@ -4270,10 +4347,10 @@ const da = function(l) {
|
|
|
4270
4347
|
*/
|
|
4271
4348
|
async updateTheme(a, n) {
|
|
4272
4349
|
const e = await r.updateTheme(a, n), t = l?.serverIndex ?? 0, s = P["PublisherApi.updateTheme"]?.[t]?.url;
|
|
4273
|
-
return (o,
|
|
4350
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
4274
4351
|
}
|
|
4275
4352
|
};
|
|
4276
|
-
},
|
|
4353
|
+
}, Mn = function(l, r, a) {
|
|
4277
4354
|
const n = D(l);
|
|
4278
4355
|
return {
|
|
4279
4356
|
/**
|
|
@@ -4370,15 +4447,15 @@ const ha = function(l) {
|
|
|
4370
4447
|
*/
|
|
4371
4448
|
getReport: async (r, a, n, e, t = {}) => {
|
|
4372
4449
|
m("getReport", "environmentName", r), m("getReport", "packageName", a), m("getReport", "path", n);
|
|
4373
|
-
const s = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s,
|
|
4374
|
-
let
|
|
4375
|
-
l && (
|
|
4376
|
-
const
|
|
4450
|
+
const s = "/environments/{environmentName}/packages/{packageName}/reports/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
4451
|
+
let i;
|
|
4452
|
+
l && (i = l.baseOptions);
|
|
4453
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
4377
4454
|
e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
|
|
4378
|
-
let h =
|
|
4379
|
-
return
|
|
4380
|
-
url:
|
|
4381
|
-
options:
|
|
4455
|
+
let h = i && i.headers ? i.headers : {};
|
|
4456
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
4457
|
+
url: V(o),
|
|
4458
|
+
options: c
|
|
4382
4459
|
};
|
|
4383
4460
|
},
|
|
4384
4461
|
/**
|
|
@@ -4392,15 +4469,15 @@ const ha = function(l) {
|
|
|
4392
4469
|
*/
|
|
4393
4470
|
listReports: async (r, a, n, e = {}) => {
|
|
4394
4471
|
m("listReports", "environmentName", r), m("listReports", "packageName", a);
|
|
4395
|
-
const t = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
4472
|
+
const t = "/environments/{environmentName}/packages/{packageName}/reports".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
4396
4473
|
let o;
|
|
4397
4474
|
l && (o = l.baseOptions);
|
|
4398
|
-
const
|
|
4399
|
-
n !== void 0 && (p.versionId = n),
|
|
4475
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
4476
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
4400
4477
|
let d = o && o.headers ? o.headers : {};
|
|
4401
|
-
return
|
|
4402
|
-
url:
|
|
4403
|
-
options:
|
|
4478
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
4479
|
+
url: V(s),
|
|
4480
|
+
options: i
|
|
4404
4481
|
};
|
|
4405
4482
|
}
|
|
4406
4483
|
};
|
|
@@ -4418,8 +4495,8 @@ const ha = function(l) {
|
|
|
4418
4495
|
* @throws {RequiredError}
|
|
4419
4496
|
*/
|
|
4420
4497
|
async getReport(a, n, e, t, s) {
|
|
4421
|
-
const o = await r.getReport(a, n, e, t, s),
|
|
4422
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
4498
|
+
const o = await r.getReport(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["ReportsApi.getReport"]?.[i]?.url;
|
|
4499
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
4423
4500
|
},
|
|
4424
4501
|
/**
|
|
4425
4502
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
@@ -4431,11 +4508,11 @@ const ha = function(l) {
|
|
|
4431
4508
|
* @throws {RequiredError}
|
|
4432
4509
|
*/
|
|
4433
4510
|
async listReports(a, n, e, t) {
|
|
4434
|
-
const s = await r.listReports(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
4435
|
-
return (
|
|
4511
|
+
const s = await r.listReports(a, n, e, t), o = l?.serverIndex ?? 0, i = P["ReportsApi.listReports"]?.[o]?.url;
|
|
4512
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
4436
4513
|
}
|
|
4437
4514
|
};
|
|
4438
|
-
},
|
|
4515
|
+
}, Fn = function(l, r, a) {
|
|
4439
4516
|
const n = X(l);
|
|
4440
4517
|
return {
|
|
4441
4518
|
/**
|
|
@@ -4448,8 +4525,8 @@ const ha = function(l) {
|
|
|
4448
4525
|
* @param {*} [options] Override http request option.
|
|
4449
4526
|
* @throws {RequiredError}
|
|
4450
4527
|
*/
|
|
4451
|
-
getReport(e, t, s, o,
|
|
4452
|
-
return n.getReport(e, t, s, o,
|
|
4528
|
+
getReport(e, t, s, o, i) {
|
|
4529
|
+
return n.getReport(e, t, s, o, i).then((c) => c(a, r));
|
|
4453
4530
|
},
|
|
4454
4531
|
/**
|
|
4455
4532
|
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
@@ -4461,7 +4538,7 @@ const ha = function(l) {
|
|
|
4461
4538
|
* @throws {RequiredError}
|
|
4462
4539
|
*/
|
|
4463
4540
|
listReports(e, t, s, o) {
|
|
4464
|
-
return n.listReports(e, t, s, o).then((
|
|
4541
|
+
return n.listReports(e, t, s, o).then((i) => i(a, r));
|
|
4465
4542
|
}
|
|
4466
4543
|
};
|
|
4467
4544
|
};
|
|
@@ -4506,15 +4583,15 @@ const ga = function(l) {
|
|
|
4506
4583
|
*/
|
|
4507
4584
|
getSkill: async (r, a, n, e, t = {}) => {
|
|
4508
4585
|
m("getSkill", "environmentName", r), m("getSkill", "packageName", a), m("getSkill", "skillName", n);
|
|
4509
|
-
const s = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{skillName}", encodeURIComponent(String(n))), o = new URL(s,
|
|
4510
|
-
let
|
|
4511
|
-
l && (
|
|
4512
|
-
const
|
|
4586
|
+
const s = "/environments/{environmentName}/packages/{packageName}/skills/{skillName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{skillName}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
4587
|
+
let i;
|
|
4588
|
+
l && (i = l.baseOptions);
|
|
4589
|
+
const c = { method: "GET", ...i, ...t }, p = {}, d = {};
|
|
4513
4590
|
e !== void 0 && (d.versionId = e), p.Accept = "application/json", v(o, d);
|
|
4514
|
-
let h =
|
|
4515
|
-
return
|
|
4516
|
-
url:
|
|
4517
|
-
options:
|
|
4591
|
+
let h = i && i.headers ? i.headers : {};
|
|
4592
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
4593
|
+
url: V(o),
|
|
4594
|
+
options: c
|
|
4518
4595
|
};
|
|
4519
4596
|
},
|
|
4520
4597
|
/**
|
|
@@ -4528,15 +4605,15 @@ const ga = function(l) {
|
|
|
4528
4605
|
*/
|
|
4529
4606
|
listSkills: async (r, a, n, e = {}) => {
|
|
4530
4607
|
m("listSkills", "environmentName", r), m("listSkills", "packageName", a);
|
|
4531
|
-
const t = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
4608
|
+
const t = "/environments/{environmentName}/packages/{packageName}/skills".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
4532
4609
|
let o;
|
|
4533
4610
|
l && (o = l.baseOptions);
|
|
4534
|
-
const
|
|
4535
|
-
n !== void 0 && (p.versionId = n),
|
|
4611
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
4612
|
+
n !== void 0 && (p.versionId = n), c.Accept = "application/json", v(s, p);
|
|
4536
4613
|
let d = o && o.headers ? o.headers : {};
|
|
4537
|
-
return
|
|
4538
|
-
url:
|
|
4539
|
-
options:
|
|
4614
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
4615
|
+
url: V(s),
|
|
4616
|
+
options: i
|
|
4540
4617
|
};
|
|
4541
4618
|
}
|
|
4542
4619
|
};
|
|
@@ -4554,8 +4631,8 @@ const ga = function(l) {
|
|
|
4554
4631
|
* @throws {RequiredError}
|
|
4555
4632
|
*/
|
|
4556
4633
|
async getSkill(a, n, e, t, s) {
|
|
4557
|
-
const o = await r.getSkill(a, n, e, t, s),
|
|
4558
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
4634
|
+
const o = await r.getSkill(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["SkillsApi.getSkill"]?.[i]?.url;
|
|
4635
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
4559
4636
|
},
|
|
4560
4637
|
/**
|
|
4561
4638
|
* 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.
|
|
@@ -4567,11 +4644,11 @@ const ga = function(l) {
|
|
|
4567
4644
|
* @throws {RequiredError}
|
|
4568
4645
|
*/
|
|
4569
4646
|
async listSkills(a, n, e, t) {
|
|
4570
|
-
const s = await r.listSkills(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
4571
|
-
return (
|
|
4647
|
+
const s = await r.listSkills(a, n, e, t), o = l?.serverIndex ?? 0, i = P["SkillsApi.listSkills"]?.[o]?.url;
|
|
4648
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
4572
4649
|
}
|
|
4573
4650
|
};
|
|
4574
|
-
},
|
|
4651
|
+
}, Bn = function(l, r, a) {
|
|
4575
4652
|
const n = ee(l);
|
|
4576
4653
|
return {
|
|
4577
4654
|
/**
|
|
@@ -4584,8 +4661,8 @@ const ga = function(l) {
|
|
|
4584
4661
|
* @param {*} [options] Override http request option.
|
|
4585
4662
|
* @throws {RequiredError}
|
|
4586
4663
|
*/
|
|
4587
|
-
getSkill(e, t, s, o,
|
|
4588
|
-
return n.getSkill(e, t, s, o,
|
|
4664
|
+
getSkill(e, t, s, o, i) {
|
|
4665
|
+
return n.getSkill(e, t, s, o, i).then((c) => c(a, r));
|
|
4589
4666
|
},
|
|
4590
4667
|
/**
|
|
4591
4668
|
* 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.
|
|
@@ -4597,11 +4674,11 @@ const ga = function(l) {
|
|
|
4597
4674
|
* @throws {RequiredError}
|
|
4598
4675
|
*/
|
|
4599
4676
|
listSkills(e, t, s, o) {
|
|
4600
|
-
return n.listSkills(e, t, s, o).then((
|
|
4677
|
+
return n.listSkills(e, t, s, o).then((i) => i(a, r));
|
|
4601
4678
|
}
|
|
4602
4679
|
};
|
|
4603
4680
|
};
|
|
4604
|
-
class
|
|
4681
|
+
class jn extends I {
|
|
4605
4682
|
/**
|
|
4606
4683
|
* 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.
|
|
4607
4684
|
* @summary Get one agent skill, with its body
|
|
@@ -4642,15 +4719,15 @@ const Pa = function(l) {
|
|
|
4642
4719
|
*/
|
|
4643
4720
|
createStorageDestinationFileCleanup: async (r, a, n, e = {}) => {
|
|
4644
4721
|
m("createStorageDestinationFileCleanup", "environmentName", r), m("createStorageDestinationFileCleanup", "destinationName", a), m("createStorageDestinationFileCleanup", "storageFileCleanupRequest", n);
|
|
4645
|
-
const t = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
4722
|
+
const t = "/environments/{environmentName}/storageDestinations/{destinationName}/fileCleanups".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
4646
4723
|
let o;
|
|
4647
4724
|
l && (o = l.baseOptions);
|
|
4648
|
-
const
|
|
4649
|
-
|
|
4725
|
+
const i = { method: "POST", ...o, ...e }, c = {}, p = {};
|
|
4726
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
4650
4727
|
let d = o && o.headers ? o.headers : {};
|
|
4651
|
-
return
|
|
4652
|
-
url:
|
|
4653
|
-
options:
|
|
4728
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
4729
|
+
url: V(s),
|
|
4730
|
+
options: i
|
|
4654
4731
|
};
|
|
4655
4732
|
},
|
|
4656
4733
|
/**
|
|
@@ -4666,15 +4743,15 @@ const Pa = function(l) {
|
|
|
4666
4743
|
*/
|
|
4667
4744
|
deleteStorageDestinationTable: async (r, a, n, e, t = {}) => {
|
|
4668
4745
|
m("deleteStorageDestinationTable", "environmentName", r), m("deleteStorageDestinationTable", "destinationName", a), m("deleteStorageDestinationTable", "schemaName", n), m("deleteStorageDestinationTable", "tableName", e);
|
|
4669
|
-
const s = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tableName}", encodeURIComponent(String(e))), o = new URL(s,
|
|
4670
|
-
let
|
|
4671
|
-
l && (
|
|
4672
|
-
const
|
|
4746
|
+
const s = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables/{tableName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tableName}", encodeURIComponent(String(e))), o = new URL(s, b);
|
|
4747
|
+
let i;
|
|
4748
|
+
l && (i = l.baseOptions);
|
|
4749
|
+
const c = { method: "DELETE", ...i, ...t }, p = {}, d = {};
|
|
4673
4750
|
p.Accept = "application/json", v(o, d);
|
|
4674
|
-
let h =
|
|
4675
|
-
return
|
|
4676
|
-
url:
|
|
4677
|
-
options:
|
|
4751
|
+
let h = i && i.headers ? i.headers : {};
|
|
4752
|
+
return c.headers = { ...p, ...h, ...t.headers }, {
|
|
4753
|
+
url: V(o),
|
|
4754
|
+
options: c
|
|
4678
4755
|
};
|
|
4679
4756
|
},
|
|
4680
4757
|
/**
|
|
@@ -4689,19 +4766,19 @@ const Pa = function(l) {
|
|
|
4689
4766
|
*/
|
|
4690
4767
|
listStorageDestinationTables: async (r, a, n, e = {}) => {
|
|
4691
4768
|
m("listStorageDestinationTables", "environmentName", r), m("listStorageDestinationTables", "destinationName", a), m("listStorageDestinationTables", "schemaName", n);
|
|
4692
|
-
const t = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(t,
|
|
4769
|
+
const t = "/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{destinationName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(t, b);
|
|
4693
4770
|
let o;
|
|
4694
4771
|
l && (o = l.baseOptions);
|
|
4695
|
-
const
|
|
4696
|
-
|
|
4772
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
4773
|
+
c.Accept = "application/json", v(s, p);
|
|
4697
4774
|
let d = o && o.headers ? o.headers : {};
|
|
4698
|
-
return
|
|
4699
|
-
url:
|
|
4700
|
-
options:
|
|
4775
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
4776
|
+
url: V(s),
|
|
4777
|
+
options: i
|
|
4701
4778
|
};
|
|
4702
4779
|
}
|
|
4703
4780
|
};
|
|
4704
|
-
},
|
|
4781
|
+
}, H = function(l) {
|
|
4705
4782
|
const r = Pa(l);
|
|
4706
4783
|
return {
|
|
4707
4784
|
/**
|
|
@@ -4715,8 +4792,8 @@ const Pa = function(l) {
|
|
|
4715
4792
|
* @throws {RequiredError}
|
|
4716
4793
|
*/
|
|
4717
4794
|
async createStorageDestinationFileCleanup(a, n, e, t) {
|
|
4718
|
-
const s = await r.createStorageDestinationFileCleanup(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
4719
|
-
return (
|
|
4795
|
+
const s = await r.createStorageDestinationFileCleanup(a, n, e, t), o = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.createStorageDestinationFileCleanup"]?.[o]?.url;
|
|
4796
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
4720
4797
|
},
|
|
4721
4798
|
/**
|
|
4722
4799
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
@@ -4730,8 +4807,8 @@ const Pa = function(l) {
|
|
|
4730
4807
|
* @throws {RequiredError}
|
|
4731
4808
|
*/
|
|
4732
4809
|
async deleteStorageDestinationTable(a, n, e, t, s) {
|
|
4733
|
-
const o = await r.deleteStorageDestinationTable(a, n, e, t, s),
|
|
4734
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
4810
|
+
const o = await r.deleteStorageDestinationTable(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["StorageDestinationsApi.deleteStorageDestinationTable"]?.[i]?.url;
|
|
4811
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
4735
4812
|
},
|
|
4736
4813
|
/**
|
|
4737
4814
|
* **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
@@ -4744,12 +4821,12 @@ const Pa = function(l) {
|
|
|
4744
4821
|
* @throws {RequiredError}
|
|
4745
4822
|
*/
|
|
4746
4823
|
async listStorageDestinationTables(a, n, e, t) {
|
|
4747
|
-
const s = await r.listStorageDestinationTables(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
4748
|
-
return (
|
|
4824
|
+
const s = await r.listStorageDestinationTables(a, n, e, t), o = l?.serverIndex ?? 0, i = P["StorageDestinationsApi.listStorageDestinationTables"]?.[o]?.url;
|
|
4825
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
4749
4826
|
}
|
|
4750
4827
|
};
|
|
4751
|
-
},
|
|
4752
|
-
const n =
|
|
4828
|
+
}, Dn = function(l, r, a) {
|
|
4829
|
+
const n = H(l);
|
|
4753
4830
|
return {
|
|
4754
4831
|
/**
|
|
4755
4832
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
@@ -4762,7 +4839,7 @@ const Pa = function(l) {
|
|
|
4762
4839
|
* @throws {RequiredError}
|
|
4763
4840
|
*/
|
|
4764
4841
|
createStorageDestinationFileCleanup(e, t, s, o) {
|
|
4765
|
-
return n.createStorageDestinationFileCleanup(e, t, s, o).then((
|
|
4842
|
+
return n.createStorageDestinationFileCleanup(e, t, s, o).then((i) => i(a, r));
|
|
4766
4843
|
},
|
|
4767
4844
|
/**
|
|
4768
4845
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
@@ -4775,8 +4852,8 @@ const Pa = function(l) {
|
|
|
4775
4852
|
* @deprecated
|
|
4776
4853
|
* @throws {RequiredError}
|
|
4777
4854
|
*/
|
|
4778
|
-
deleteStorageDestinationTable(e, t, s, o,
|
|
4779
|
-
return n.deleteStorageDestinationTable(e, t, s, o,
|
|
4855
|
+
deleteStorageDestinationTable(e, t, s, o, i) {
|
|
4856
|
+
return n.deleteStorageDestinationTable(e, t, s, o, i).then((c) => c(a, r));
|
|
4780
4857
|
},
|
|
4781
4858
|
/**
|
|
4782
4859
|
* **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
@@ -4789,11 +4866,11 @@ const Pa = function(l) {
|
|
|
4789
4866
|
* @throws {RequiredError}
|
|
4790
4867
|
*/
|
|
4791
4868
|
listStorageDestinationTables(e, t, s, o) {
|
|
4792
|
-
return n.listStorageDestinationTables(e, t, s, o).then((
|
|
4869
|
+
return n.listStorageDestinationTables(e, t, s, o).then((i) => i(a, r));
|
|
4793
4870
|
}
|
|
4794
4871
|
};
|
|
4795
4872
|
};
|
|
4796
|
-
class
|
|
4873
|
+
class Ln extends I {
|
|
4797
4874
|
/**
|
|
4798
4875
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
|
|
4799
4876
|
* @summary Reclaim storage behind dropped tables in a DuckLake destination
|
|
@@ -4805,7 +4882,7 @@ class wn extends I {
|
|
|
4805
4882
|
* @throws {RequiredError}
|
|
4806
4883
|
*/
|
|
4807
4884
|
createStorageDestinationFileCleanup(r, a, n, e) {
|
|
4808
|
-
return
|
|
4885
|
+
return H(this.configuration).createStorageDestinationFileCleanup(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4809
4886
|
}
|
|
4810
4887
|
/**
|
|
4811
4888
|
* **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
|
|
@@ -4819,7 +4896,7 @@ class wn extends I {
|
|
|
4819
4896
|
* @throws {RequiredError}
|
|
4820
4897
|
*/
|
|
4821
4898
|
deleteStorageDestinationTable(r, a, n, e, t) {
|
|
4822
|
-
return
|
|
4899
|
+
return H(this.configuration).deleteStorageDestinationTable(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
|
|
4823
4900
|
}
|
|
4824
4901
|
/**
|
|
4825
4902
|
* **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
|
|
@@ -4832,10 +4909,10 @@ class wn extends I {
|
|
|
4832
4909
|
* @throws {RequiredError}
|
|
4833
4910
|
*/
|
|
4834
4911
|
listStorageDestinationTables(r, a, n, e) {
|
|
4835
|
-
return
|
|
4912
|
+
return H(this.configuration).listStorageDestinationTables(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
4836
4913
|
}
|
|
4837
4914
|
}
|
|
4838
|
-
const
|
|
4915
|
+
const ba = function(l) {
|
|
4839
4916
|
return {
|
|
4840
4917
|
/**
|
|
4841
4918
|
* Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
|
|
@@ -4848,15 +4925,15 @@ const Va = function(l) {
|
|
|
4848
4925
|
*/
|
|
4849
4926
|
deletePackageVersion: async (r, a, n, e = {}) => {
|
|
4850
4927
|
m("deletePackageVersion", "environmentName", r), m("deletePackageVersion", "packageName", a), m("deletePackageVersion", "version", n);
|
|
4851
|
-
const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t,
|
|
4928
|
+
const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t, b);
|
|
4852
4929
|
let o;
|
|
4853
4930
|
l && (o = l.baseOptions);
|
|
4854
|
-
const
|
|
4855
|
-
|
|
4931
|
+
const i = { method: "DELETE", ...o, ...e }, c = {}, p = {};
|
|
4932
|
+
c.Accept = "application/json", v(s, p);
|
|
4856
4933
|
let d = o && o.headers ? o.headers : {};
|
|
4857
|
-
return
|
|
4858
|
-
url:
|
|
4859
|
-
options:
|
|
4934
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
4935
|
+
url: V(s),
|
|
4936
|
+
options: i
|
|
4860
4937
|
};
|
|
4861
4938
|
},
|
|
4862
4939
|
/**
|
|
@@ -4870,15 +4947,15 @@ const Va = function(l) {
|
|
|
4870
4947
|
*/
|
|
4871
4948
|
getPackageVersion: async (r, a, n, e = {}) => {
|
|
4872
4949
|
m("getPackageVersion", "environmentName", r), m("getPackageVersion", "packageName", a), m("getPackageVersion", "version", n);
|
|
4873
|
-
const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t,
|
|
4950
|
+
const t = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), s = new URL(t, b);
|
|
4874
4951
|
let o;
|
|
4875
4952
|
l && (o = l.baseOptions);
|
|
4876
|
-
const
|
|
4877
|
-
|
|
4953
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
4954
|
+
c.Accept = "application/json", v(s, p);
|
|
4878
4955
|
let d = o && o.headers ? o.headers : {};
|
|
4879
|
-
return
|
|
4880
|
-
url:
|
|
4881
|
-
options:
|
|
4956
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
4957
|
+
url: V(s),
|
|
4958
|
+
options: i
|
|
4882
4959
|
};
|
|
4883
4960
|
},
|
|
4884
4961
|
/**
|
|
@@ -4891,14 +4968,14 @@ const Va = function(l) {
|
|
|
4891
4968
|
*/
|
|
4892
4969
|
listPackageVersions: async (r, a, n = {}) => {
|
|
4893
4970
|
m("listPackageVersions", "environmentName", r), m("listPackageVersions", "packageName", a);
|
|
4894
|
-
const e = "/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e,
|
|
4971
|
+
const e = "/environments/{environmentName}/packages/{packageName}/versions".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, b);
|
|
4895
4972
|
let s;
|
|
4896
4973
|
l && (s = l.baseOptions);
|
|
4897
|
-
const o = { method: "GET", ...s, ...n },
|
|
4898
|
-
|
|
4974
|
+
const o = { method: "GET", ...s, ...n }, i = {}, c = {};
|
|
4975
|
+
i.Accept = "application/json", v(t, c);
|
|
4899
4976
|
let p = s && s.headers ? s.headers : {};
|
|
4900
|
-
return o.headers = { ...
|
|
4901
|
-
url:
|
|
4977
|
+
return o.headers = { ...i, ...p, ...n.headers }, {
|
|
4978
|
+
url: V(t),
|
|
4902
4979
|
options: o
|
|
4903
4980
|
};
|
|
4904
4981
|
},
|
|
@@ -4913,19 +4990,19 @@ const Va = function(l) {
|
|
|
4913
4990
|
*/
|
|
4914
4991
|
setPackageLatestVersion: async (r, a, n, e = {}) => {
|
|
4915
4992
|
m("setPackageLatestVersion", "environmentName", r), m("setPackageLatestVersion", "packageName", a), m("setPackageLatestVersion", "packageLatestVersion", n);
|
|
4916
|
-
const t = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
4993
|
+
const t = "/environments/{environmentName}/packages/{packageName}/latest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
4917
4994
|
let o;
|
|
4918
4995
|
l && (o = l.baseOptions);
|
|
4919
|
-
const
|
|
4920
|
-
|
|
4996
|
+
const i = { method: "PUT", ...o, ...e }, c = {}, p = {};
|
|
4997
|
+
c["Content-Type"] = "application/json", c.Accept = "application/json", v(s, p);
|
|
4921
4998
|
let d = o && o.headers ? o.headers : {};
|
|
4922
|
-
return
|
|
4923
|
-
url:
|
|
4924
|
-
options:
|
|
4999
|
+
return i.headers = { ...c, ...d, ...e.headers }, i.data = A(n, i, l), {
|
|
5000
|
+
url: V(s),
|
|
5001
|
+
options: i
|
|
4925
5002
|
};
|
|
4926
5003
|
},
|
|
4927
5004
|
/**
|
|
4928
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live.
|
|
5005
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
4929
5006
|
* @summary Bind a version to a build manifest
|
|
4930
5007
|
* @param {string} environmentName Name of the environment
|
|
4931
5008
|
* @param {string} packageName Name of the package
|
|
@@ -4936,15 +5013,15 @@ const Va = function(l) {
|
|
|
4936
5013
|
*/
|
|
4937
5014
|
setPackageVersionManifest: async (r, a, n, e, t = {}) => {
|
|
4938
5015
|
m("setPackageVersionManifest", "environmentName", r), m("setPackageVersionManifest", "packageName", a), m("setPackageVersionManifest", "version", n), m("setPackageVersionManifest", "packageVersionManifest", e);
|
|
4939
|
-
const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s,
|
|
4940
|
-
let
|
|
4941
|
-
l && (
|
|
4942
|
-
const
|
|
5016
|
+
const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
5017
|
+
let i;
|
|
5018
|
+
l && (i = l.baseOptions);
|
|
5019
|
+
const c = { method: "PUT", ...i, ...t }, p = {}, d = {};
|
|
4943
5020
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(o, d);
|
|
4944
|
-
let h =
|
|
4945
|
-
return
|
|
4946
|
-
url:
|
|
4947
|
-
options:
|
|
5021
|
+
let h = i && i.headers ? i.headers : {};
|
|
5022
|
+
return c.headers = { ...p, ...h, ...t.headers }, c.data = A(e, c, l), {
|
|
5023
|
+
url: V(o),
|
|
5024
|
+
options: c
|
|
4948
5025
|
};
|
|
4949
5026
|
},
|
|
4950
5027
|
/**
|
|
@@ -4959,20 +5036,20 @@ const Va = function(l) {
|
|
|
4959
5036
|
*/
|
|
4960
5037
|
updatePackageVersion: async (r, a, n, e, t = {}) => {
|
|
4961
5038
|
m("updatePackageVersion", "environmentName", r), m("updatePackageVersion", "packageName", a), m("updatePackageVersion", "version", n), m("updatePackageVersion", "packageVersionUpdate", e);
|
|
4962
|
-
const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s,
|
|
4963
|
-
let
|
|
4964
|
-
l && (
|
|
4965
|
-
const
|
|
5039
|
+
const s = "/environments/{environmentName}/packages/{packageName}/versions/{version}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{version}", encodeURIComponent(String(n))), o = new URL(s, b);
|
|
5040
|
+
let i;
|
|
5041
|
+
l && (i = l.baseOptions);
|
|
5042
|
+
const c = { method: "PATCH", ...i, ...t }, p = {}, d = {};
|
|
4966
5043
|
p["Content-Type"] = "application/json", p.Accept = "application/json", v(o, d);
|
|
4967
|
-
let h =
|
|
4968
|
-
return
|
|
4969
|
-
url:
|
|
4970
|
-
options:
|
|
5044
|
+
let h = i && i.headers ? i.headers : {};
|
|
5045
|
+
return c.headers = { ...p, ...h, ...t.headers }, c.data = A(e, c, l), {
|
|
5046
|
+
url: V(o),
|
|
5047
|
+
options: c
|
|
4971
5048
|
};
|
|
4972
5049
|
}
|
|
4973
5050
|
};
|
|
4974
5051
|
}, T = function(l) {
|
|
4975
|
-
const r =
|
|
5052
|
+
const r = ba(l);
|
|
4976
5053
|
return {
|
|
4977
5054
|
/**
|
|
4978
5055
|
* Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
|
|
@@ -4984,8 +5061,8 @@ const Va = function(l) {
|
|
|
4984
5061
|
* @throws {RequiredError}
|
|
4985
5062
|
*/
|
|
4986
5063
|
async deletePackageVersion(a, n, e, t) {
|
|
4987
|
-
const s = await r.deletePackageVersion(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
4988
|
-
return (
|
|
5064
|
+
const s = await r.deletePackageVersion(a, n, e, t), o = l?.serverIndex ?? 0, i = P["VersionsApi.deletePackageVersion"]?.[o]?.url;
|
|
5065
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
4989
5066
|
},
|
|
4990
5067
|
/**
|
|
4991
5068
|
* Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
|
|
@@ -4997,8 +5074,8 @@ const Va = function(l) {
|
|
|
4997
5074
|
* @throws {RequiredError}
|
|
4998
5075
|
*/
|
|
4999
5076
|
async getPackageVersion(a, n, e, t) {
|
|
5000
|
-
const s = await r.getPackageVersion(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
5001
|
-
return (
|
|
5077
|
+
const s = await r.getPackageVersion(a, n, e, t), o = l?.serverIndex ?? 0, i = P["VersionsApi.getPackageVersion"]?.[o]?.url;
|
|
5078
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
5002
5079
|
},
|
|
5003
5080
|
/**
|
|
5004
5081
|
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
|
|
@@ -5010,7 +5087,7 @@ const Va = function(l) {
|
|
|
5010
5087
|
*/
|
|
5011
5088
|
async listPackageVersions(a, n, e) {
|
|
5012
5089
|
const t = await r.listPackageVersions(a, n, e), s = l?.serverIndex ?? 0, o = P["VersionsApi.listPackageVersions"]?.[s]?.url;
|
|
5013
|
-
return (
|
|
5090
|
+
return (i, c) => S(t, u, g, l)(i, o || c);
|
|
5014
5091
|
},
|
|
5015
5092
|
/**
|
|
5016
5093
|
* Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
|
|
@@ -5022,11 +5099,11 @@ const Va = function(l) {
|
|
|
5022
5099
|
* @throws {RequiredError}
|
|
5023
5100
|
*/
|
|
5024
5101
|
async setPackageLatestVersion(a, n, e, t) {
|
|
5025
|
-
const s = await r.setPackageLatestVersion(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
5026
|
-
return (
|
|
5102
|
+
const s = await r.setPackageLatestVersion(a, n, e, t), o = l?.serverIndex ?? 0, i = P["VersionsApi.setPackageLatestVersion"]?.[o]?.url;
|
|
5103
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
5027
5104
|
},
|
|
5028
5105
|
/**
|
|
5029
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live.
|
|
5106
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
5030
5107
|
* @summary Bind a version to a build manifest
|
|
5031
5108
|
* @param {string} environmentName Name of the environment
|
|
5032
5109
|
* @param {string} packageName Name of the package
|
|
@@ -5036,8 +5113,8 @@ const Va = function(l) {
|
|
|
5036
5113
|
* @throws {RequiredError}
|
|
5037
5114
|
*/
|
|
5038
5115
|
async setPackageVersionManifest(a, n, e, t, s) {
|
|
5039
|
-
const o = await r.setPackageVersionManifest(a, n, e, t, s),
|
|
5040
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
5116
|
+
const o = await r.setPackageVersionManifest(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["VersionsApi.setPackageVersionManifest"]?.[i]?.url;
|
|
5117
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
5041
5118
|
},
|
|
5042
5119
|
/**
|
|
5043
5120
|
* Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
|
|
@@ -5050,11 +5127,11 @@ const Va = function(l) {
|
|
|
5050
5127
|
* @throws {RequiredError}
|
|
5051
5128
|
*/
|
|
5052
5129
|
async updatePackageVersion(a, n, e, t, s) {
|
|
5053
|
-
const o = await r.updatePackageVersion(a, n, e, t, s),
|
|
5054
|
-
return (p, d) => S(o, u, g, l)(p,
|
|
5130
|
+
const o = await r.updatePackageVersion(a, n, e, t, s), i = l?.serverIndex ?? 0, c = P["VersionsApi.updatePackageVersion"]?.[i]?.url;
|
|
5131
|
+
return (p, d) => S(o, u, g, l)(p, c || d);
|
|
5055
5132
|
}
|
|
5056
5133
|
};
|
|
5057
|
-
},
|
|
5134
|
+
}, Qn = function(l, r, a) {
|
|
5058
5135
|
const n = T(l);
|
|
5059
5136
|
return {
|
|
5060
5137
|
/**
|
|
@@ -5067,7 +5144,7 @@ const Va = function(l) {
|
|
|
5067
5144
|
* @throws {RequiredError}
|
|
5068
5145
|
*/
|
|
5069
5146
|
deletePackageVersion(e, t, s, o) {
|
|
5070
|
-
return n.deletePackageVersion(e, t, s, o).then((
|
|
5147
|
+
return n.deletePackageVersion(e, t, s, o).then((i) => i(a, r));
|
|
5071
5148
|
},
|
|
5072
5149
|
/**
|
|
5073
5150
|
* Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
|
|
@@ -5079,7 +5156,7 @@ const Va = function(l) {
|
|
|
5079
5156
|
* @throws {RequiredError}
|
|
5080
5157
|
*/
|
|
5081
5158
|
getPackageVersion(e, t, s, o) {
|
|
5082
|
-
return n.getPackageVersion(e, t, s, o).then((
|
|
5159
|
+
return n.getPackageVersion(e, t, s, o).then((i) => i(a, r));
|
|
5083
5160
|
},
|
|
5084
5161
|
/**
|
|
5085
5162
|
* Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
|
|
@@ -5102,10 +5179,10 @@ const Va = function(l) {
|
|
|
5102
5179
|
* @throws {RequiredError}
|
|
5103
5180
|
*/
|
|
5104
5181
|
setPackageLatestVersion(e, t, s, o) {
|
|
5105
|
-
return n.setPackageLatestVersion(e, t, s, o).then((
|
|
5182
|
+
return n.setPackageLatestVersion(e, t, s, o).then((i) => i(a, r));
|
|
5106
5183
|
},
|
|
5107
5184
|
/**
|
|
5108
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live.
|
|
5185
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
5109
5186
|
* @summary Bind a version to a build manifest
|
|
5110
5187
|
* @param {string} environmentName Name of the environment
|
|
5111
5188
|
* @param {string} packageName Name of the package
|
|
@@ -5114,8 +5191,8 @@ const Va = function(l) {
|
|
|
5114
5191
|
* @param {*} [options] Override http request option.
|
|
5115
5192
|
* @throws {RequiredError}
|
|
5116
5193
|
*/
|
|
5117
|
-
setPackageVersionManifest(e, t, s, o,
|
|
5118
|
-
return n.setPackageVersionManifest(e, t, s, o,
|
|
5194
|
+
setPackageVersionManifest(e, t, s, o, i) {
|
|
5195
|
+
return n.setPackageVersionManifest(e, t, s, o, i).then((c) => c(a, r));
|
|
5119
5196
|
},
|
|
5120
5197
|
/**
|
|
5121
5198
|
* Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{version}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
|
|
@@ -5127,8 +5204,8 @@ const Va = function(l) {
|
|
|
5127
5204
|
* @param {*} [options] Override http request option.
|
|
5128
5205
|
* @throws {RequiredError}
|
|
5129
5206
|
*/
|
|
5130
|
-
updatePackageVersion(e, t, s, o,
|
|
5131
|
-
return n.updatePackageVersion(e, t, s, o,
|
|
5207
|
+
updatePackageVersion(e, t, s, o, i) {
|
|
5208
|
+
return n.updatePackageVersion(e, t, s, o, i).then((c) => c(a, r));
|
|
5132
5209
|
}
|
|
5133
5210
|
};
|
|
5134
5211
|
};
|
|
@@ -5181,7 +5258,7 @@ class va extends I {
|
|
|
5181
5258
|
return T(this.configuration).setPackageLatestVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
5182
5259
|
}
|
|
5183
5260
|
/**
|
|
5184
|
-
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live.
|
|
5261
|
+
* Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
|
|
5185
5262
|
* @summary Bind a version to a build manifest
|
|
5186
5263
|
* @param {string} environmentName Name of the environment
|
|
5187
5264
|
* @param {string} packageName Name of the package
|
|
@@ -5207,7 +5284,7 @@ class va extends I {
|
|
|
5207
5284
|
return T(this.configuration).updatePackageVersion(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
|
|
5208
5285
|
}
|
|
5209
5286
|
}
|
|
5210
|
-
const
|
|
5287
|
+
const Va = function(l) {
|
|
5211
5288
|
return {
|
|
5212
5289
|
/**
|
|
5213
5290
|
* **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -5217,14 +5294,14 @@ const ba = function(l) {
|
|
|
5217
5294
|
* @throws {RequiredError}
|
|
5218
5295
|
*/
|
|
5219
5296
|
getWatchStatus: async (r = {}) => {
|
|
5220
|
-
const a = "/watch-mode/status", n = new URL(a,
|
|
5297
|
+
const a = "/watch-mode/status", n = new URL(a, b);
|
|
5221
5298
|
let e;
|
|
5222
5299
|
l && (e = l.baseOptions);
|
|
5223
5300
|
const t = { method: "GET", ...e, ...r }, s = {}, o = {};
|
|
5224
5301
|
s.Accept = "application/json", v(n, o);
|
|
5225
|
-
let
|
|
5226
|
-
return t.headers = { ...s, ...
|
|
5227
|
-
url:
|
|
5302
|
+
let i = e && e.headers ? e.headers : {};
|
|
5303
|
+
return t.headers = { ...s, ...i, ...r.headers }, {
|
|
5304
|
+
url: V(n),
|
|
5228
5305
|
options: t
|
|
5229
5306
|
};
|
|
5230
5307
|
},
|
|
@@ -5238,14 +5315,14 @@ const ba = function(l) {
|
|
|
5238
5315
|
*/
|
|
5239
5316
|
startWatching: async (r, a = {}) => {
|
|
5240
5317
|
m("startWatching", "startWatchRequest", r);
|
|
5241
|
-
const n = "/watch-mode/start", e = new URL(n,
|
|
5318
|
+
const n = "/watch-mode/start", e = new URL(n, b);
|
|
5242
5319
|
let t;
|
|
5243
5320
|
l && (t = l.baseOptions);
|
|
5244
|
-
const s = { method: "POST", ...t, ...a }, o = {},
|
|
5245
|
-
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e,
|
|
5246
|
-
let
|
|
5247
|
-
return s.headers = { ...o, ...
|
|
5248
|
-
url:
|
|
5321
|
+
const s = { method: "POST", ...t, ...a }, o = {}, i = {};
|
|
5322
|
+
o["Content-Type"] = "application/json", o.Accept = "application/json", v(e, i);
|
|
5323
|
+
let c = t && t.headers ? t.headers : {};
|
|
5324
|
+
return s.headers = { ...o, ...c, ...a.headers }, s.data = A(r, s, l), {
|
|
5325
|
+
url: V(e),
|
|
5249
5326
|
options: s
|
|
5250
5327
|
};
|
|
5251
5328
|
},
|
|
@@ -5257,14 +5334,14 @@ const ba = function(l) {
|
|
|
5257
5334
|
* @throws {RequiredError}
|
|
5258
5335
|
*/
|
|
5259
5336
|
stopWatching: async (r = {}) => {
|
|
5260
|
-
const a = "/watch-mode/stop", n = new URL(a,
|
|
5337
|
+
const a = "/watch-mode/stop", n = new URL(a, b);
|
|
5261
5338
|
let e;
|
|
5262
5339
|
l && (e = l.baseOptions);
|
|
5263
5340
|
const t = { method: "POST", ...e, ...r }, s = {}, o = {};
|
|
5264
5341
|
s.Accept = "application/json", v(n, o);
|
|
5265
|
-
let
|
|
5266
|
-
return t.headers = { ...s, ...
|
|
5267
|
-
url:
|
|
5342
|
+
let i = e && e.headers ? e.headers : {};
|
|
5343
|
+
return t.headers = { ...s, ...i, ...r.headers }, {
|
|
5344
|
+
url: V(n),
|
|
5268
5345
|
options: t
|
|
5269
5346
|
};
|
|
5270
5347
|
},
|
|
@@ -5279,20 +5356,20 @@ const ba = function(l) {
|
|
|
5279
5356
|
*/
|
|
5280
5357
|
streamPackageEvents: async (r, a, n, e = {}) => {
|
|
5281
5358
|
m("streamPackageEvents", "environmentName", r), m("streamPackageEvents", "packageName", a);
|
|
5282
|
-
const t = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t,
|
|
5359
|
+
const t = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, b);
|
|
5283
5360
|
let o;
|
|
5284
5361
|
l && (o = l.baseOptions);
|
|
5285
|
-
const
|
|
5286
|
-
n !== void 0 && (p.versionId = n),
|
|
5362
|
+
const i = { method: "GET", ...o, ...e }, c = {}, p = {};
|
|
5363
|
+
n !== void 0 && (p.versionId = n), c.Accept = "text/event-stream,application/json", v(s, p);
|
|
5287
5364
|
let d = o && o.headers ? o.headers : {};
|
|
5288
|
-
return
|
|
5289
|
-
url:
|
|
5290
|
-
options:
|
|
5365
|
+
return i.headers = { ...c, ...d, ...e.headers }, {
|
|
5366
|
+
url: V(s),
|
|
5367
|
+
options: i
|
|
5291
5368
|
};
|
|
5292
5369
|
}
|
|
5293
5370
|
};
|
|
5294
5371
|
}, L = function(l) {
|
|
5295
|
-
const r =
|
|
5372
|
+
const r = Va(l);
|
|
5296
5373
|
return {
|
|
5297
5374
|
/**
|
|
5298
5375
|
* **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -5315,7 +5392,7 @@ const ba = function(l) {
|
|
|
5315
5392
|
*/
|
|
5316
5393
|
async startWatching(a, n) {
|
|
5317
5394
|
const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, s = P["WatchModeApi.startWatching"]?.[t]?.url;
|
|
5318
|
-
return (o,
|
|
5395
|
+
return (o, i) => S(e, u, g, l)(o, s || i);
|
|
5319
5396
|
},
|
|
5320
5397
|
/**
|
|
5321
5398
|
* **DEPRECATED**: use the admin API\'s `DELETE /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. 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.
|
|
@@ -5338,11 +5415,11 @@ const ba = function(l) {
|
|
|
5338
5415
|
* @throws {RequiredError}
|
|
5339
5416
|
*/
|
|
5340
5417
|
async streamPackageEvents(a, n, e, t) {
|
|
5341
|
-
const s = await r.streamPackageEvents(a, n, e, t), o = l?.serverIndex ?? 0,
|
|
5342
|
-
return (
|
|
5418
|
+
const s = await r.streamPackageEvents(a, n, e, t), o = l?.serverIndex ?? 0, i = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
5419
|
+
return (c, p) => S(s, u, g, l)(c, i || p);
|
|
5343
5420
|
}
|
|
5344
5421
|
};
|
|
5345
|
-
},
|
|
5422
|
+
}, _n = function(l, r, a) {
|
|
5346
5423
|
const n = L(l);
|
|
5347
5424
|
return {
|
|
5348
5425
|
/**
|
|
@@ -5386,7 +5463,7 @@ const ba = function(l) {
|
|
|
5386
5463
|
* @throws {RequiredError}
|
|
5387
5464
|
*/
|
|
5388
5465
|
streamPackageEvents(e, t, s, o) {
|
|
5389
|
-
return n.streamPackageEvents(e, t, s, o).then((
|
|
5466
|
+
return n.streamPackageEvents(e, t, s, o).then((i) => i(a, r));
|
|
5390
5467
|
}
|
|
5391
5468
|
};
|
|
5392
5469
|
};
|
|
@@ -5527,7 +5604,7 @@ const Oa = new ye({
|
|
|
5527
5604
|
throwOnError: !1
|
|
5528
5605
|
}
|
|
5529
5606
|
}
|
|
5530
|
-
}),
|
|
5607
|
+
}), qn = {
|
|
5531
5608
|
staleTime: 300 * 1e3,
|
|
5532
5609
|
refetchOnWindowFocus: !1,
|
|
5533
5610
|
refetchOnReconnect: !1
|
|
@@ -5560,11 +5637,11 @@ function Ia(l) {
|
|
|
5560
5637
|
} catch {
|
|
5561
5638
|
}
|
|
5562
5639
|
}
|
|
5563
|
-
function
|
|
5640
|
+
function Ra() {
|
|
5564
5641
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
5565
5642
|
}
|
|
5566
5643
|
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
5567
|
-
const Pe =
|
|
5644
|
+
const Pe = ce(void 0), xa = (l, r, a) => {
|
|
5568
5645
|
const n = `${window.location.protocol}//${window.location.host}/api/v0`, e = u.create({
|
|
5569
5646
|
baseURL: l || n,
|
|
5570
5647
|
withCredentials: !0,
|
|
@@ -5581,7 +5658,7 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
|
|
|
5581
5658
|
publisher: new ma(t, n, e),
|
|
5582
5659
|
environments: new ta(t, n, e),
|
|
5583
5660
|
packages: new pa(t, n, e),
|
|
5584
|
-
agents: new
|
|
5661
|
+
agents: new He(t, n, e),
|
|
5585
5662
|
dashboards: new Ye(t, n, e),
|
|
5586
5663
|
dataApps: new Ze(t, n, e),
|
|
5587
5664
|
notebooks: new la(t, n, e),
|
|
@@ -5596,7 +5673,7 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
|
|
|
5596
5673
|
watchMode: new Sa(t, n, e),
|
|
5597
5674
|
versions: new va(t, n, e)
|
|
5598
5675
|
};
|
|
5599
|
-
},
|
|
5676
|
+
}, zn = (l) => /* @__PURE__ */ Q(Ce, { client: Oa, children: /* @__PURE__ */ Q(Na, { ...l }) }), Na = ({
|
|
5600
5677
|
children: l,
|
|
5601
5678
|
getAccessToken: r,
|
|
5602
5679
|
baseURL: a,
|
|
@@ -5606,16 +5683,16 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
|
|
|
5606
5683
|
adapter: s,
|
|
5607
5684
|
mode: o
|
|
5608
5685
|
}) => {
|
|
5609
|
-
const
|
|
5610
|
-
() =>
|
|
5686
|
+
const i = B(
|
|
5687
|
+
() => xa(a, r, s),
|
|
5611
5688
|
[a, r, s]
|
|
5612
|
-
),
|
|
5613
|
-
queryKey: ["status",
|
|
5689
|
+
), c = a || `${window.location.protocol}//${window.location.host}/api/v0`, p = Ie({
|
|
5690
|
+
queryKey: ["status", c],
|
|
5614
5691
|
// Retried, unlike the client's other reads: the model page depends on
|
|
5615
5692
|
// the answer for the whole session, and one dropped request would
|
|
5616
5693
|
// otherwise settle it.
|
|
5617
5694
|
retry: 3,
|
|
5618
|
-
queryFn: async () => (await
|
|
5695
|
+
queryFn: async () => (await i.publisher.getStatus()).data
|
|
5619
5696
|
});
|
|
5620
5697
|
p.error && console.error("Failed to fetch publisher status:", p.error);
|
|
5621
5698
|
const d = p.data?.frozenConfig, h = p.data?.theme, { modelPage: k, isLoadingStatus: O } = ya(p);
|
|
@@ -5624,17 +5701,17 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
|
|
|
5624
5701
|
const N = B(
|
|
5625
5702
|
() => [h, e],
|
|
5626
5703
|
[h, e]
|
|
5627
|
-
), [
|
|
5704
|
+
), [be, ve] = oe(
|
|
5628
5705
|
Ca
|
|
5629
|
-
), [te,
|
|
5630
|
-
|
|
5706
|
+
), [te, Ve] = oe(Ra);
|
|
5707
|
+
Re(() => {
|
|
5631
5708
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
5632
|
-
const f = window.matchMedia("(prefers-color-scheme: dark)"), re = (Ae) =>
|
|
5709
|
+
const f = window.matchMedia("(prefers-color-scheme: dark)"), re = (Ae) => Ve(Ae.matches);
|
|
5633
5710
|
return f.addEventListener("change", re), () => f.removeEventListener("change", re);
|
|
5634
5711
|
}, []);
|
|
5635
|
-
const Se =
|
|
5712
|
+
const Se = xe((f) => {
|
|
5636
5713
|
ve(f), Ia(f);
|
|
5637
|
-
}, []), ne = h?.allowUserToggle ?? !0, G = ne ?
|
|
5714
|
+
}, []), ne = h?.allowUserToggle ?? !0, G = ne ? be : void 0, ke = B(
|
|
5638
5715
|
() => o ?? Le(
|
|
5639
5716
|
h?.defaultMode,
|
|
5640
5717
|
G,
|
|
@@ -5642,9 +5719,9 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
|
|
|
5642
5719
|
),
|
|
5643
5720
|
[o, h?.defaultMode, G, te]
|
|
5644
5721
|
), Oe = {
|
|
5645
|
-
server:
|
|
5722
|
+
server: c,
|
|
5646
5723
|
getAccessToken: r,
|
|
5647
|
-
apiClients:
|
|
5724
|
+
apiClients: i,
|
|
5648
5725
|
mutable: y,
|
|
5649
5726
|
isLoadingStatus: O,
|
|
5650
5727
|
instanceTheme: h,
|
|
@@ -5662,7 +5739,7 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
|
|
|
5662
5739
|
children: l
|
|
5663
5740
|
}
|
|
5664
5741
|
) });
|
|
5665
|
-
},
|
|
5742
|
+
}, Hn = () => {
|
|
5666
5743
|
const l = le(Pe);
|
|
5667
5744
|
if (l === void 0)
|
|
5668
5745
|
throw new Error("useServer must be used within a ServerProvider");
|
|
@@ -5670,153 +5747,159 @@ const Pe = ie(void 0), Ra = (l, r, a) => {
|
|
|
5670
5747
|
};
|
|
5671
5748
|
export {
|
|
5672
5749
|
gt as $,
|
|
5673
|
-
|
|
5750
|
+
He as A,
|
|
5674
5751
|
Z as B,
|
|
5675
5752
|
Ka as C,
|
|
5676
5753
|
nt as D,
|
|
5677
5754
|
ot as E,
|
|
5678
5755
|
Ze as F,
|
|
5679
5756
|
Je as G,
|
|
5680
|
-
|
|
5757
|
+
In as H,
|
|
5681
5758
|
ue as I,
|
|
5682
5759
|
st as J,
|
|
5683
5760
|
ea as K,
|
|
5684
5761
|
Xe as L,
|
|
5685
|
-
|
|
5762
|
+
Rn as M,
|
|
5686
5763
|
ge as N,
|
|
5687
5764
|
ta as O,
|
|
5688
5765
|
aa as P,
|
|
5689
|
-
|
|
5766
|
+
xn as Q,
|
|
5690
5767
|
w as R,
|
|
5691
|
-
|
|
5692
|
-
|
|
5768
|
+
fn as S,
|
|
5769
|
+
it as T,
|
|
5693
5770
|
lt as U,
|
|
5694
|
-
|
|
5695
|
-
|
|
5771
|
+
kn as V,
|
|
5772
|
+
ct as W,
|
|
5696
5773
|
pt as X,
|
|
5697
5774
|
dt as Y,
|
|
5698
5775
|
ut as Z,
|
|
5699
5776
|
mt as _,
|
|
5700
|
-
|
|
5701
|
-
|
|
5777
|
+
ze as a,
|
|
5778
|
+
tn as a$,
|
|
5702
5779
|
ht as a0,
|
|
5703
|
-
|
|
5780
|
+
Un as a1,
|
|
5704
5781
|
Pt as a2,
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5782
|
+
bt as a3,
|
|
5783
|
+
ra as a4,
|
|
5784
|
+
na as a5,
|
|
5785
|
+
Nn as a6,
|
|
5786
|
+
M as a7,
|
|
5787
|
+
vt as a8,
|
|
5788
|
+
sa as a9,
|
|
5712
5789
|
jt as aA,
|
|
5713
5790
|
Dt as aB,
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5791
|
+
Lt as aC,
|
|
5792
|
+
pa as aD,
|
|
5793
|
+
ca as aE,
|
|
5794
|
+
wn as aF,
|
|
5795
|
+
x as aG,
|
|
5719
5796
|
Qt as aH,
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5797
|
+
_t as aI,
|
|
5798
|
+
ma as aJ,
|
|
5799
|
+
da as aK,
|
|
5800
|
+
Mn as aL,
|
|
5801
|
+
D as aM,
|
|
5802
|
+
qt as aN,
|
|
5803
|
+
zt as aO,
|
|
5804
|
+
Ht as aP,
|
|
5728
5805
|
Gt as aQ,
|
|
5729
5806
|
Wt as aR,
|
|
5730
5807
|
Kt as aS,
|
|
5731
5808
|
$t as aT,
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5809
|
+
Yt as aU,
|
|
5810
|
+
Jt as aV,
|
|
5811
|
+
Zt as aW,
|
|
5812
|
+
Xt as aX,
|
|
5736
5813
|
en as aY,
|
|
5737
5814
|
an as aZ,
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5815
|
+
nn as a_,
|
|
5816
|
+
oa as aa,
|
|
5817
|
+
Tn as ab,
|
|
5818
|
+
F as ac,
|
|
5819
|
+
St as ad,
|
|
5820
|
+
Ot as ae,
|
|
5821
|
+
kt as af,
|
|
5822
|
+
Vt as ag,
|
|
5823
|
+
la as ah,
|
|
5824
|
+
ia as ai,
|
|
5825
|
+
En as aj,
|
|
5826
|
+
z as ak,
|
|
5827
|
+
At as al,
|
|
5828
|
+
xt as am,
|
|
5829
|
+
Nt as an,
|
|
5830
|
+
Rt as ao,
|
|
5831
|
+
It as ap,
|
|
5832
|
+
Ct as aq,
|
|
5833
|
+
yt as ar,
|
|
5757
5834
|
Ut as as,
|
|
5758
5835
|
Tt as at,
|
|
5759
|
-
|
|
5836
|
+
Et as au,
|
|
5760
5837
|
Ft as av,
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5838
|
+
Bt as aw,
|
|
5839
|
+
Mt as ax,
|
|
5840
|
+
wt as ay,
|
|
5841
|
+
ft as az,
|
|
5842
|
+
Sn as b,
|
|
5843
|
+
on as b0,
|
|
5844
|
+
rn as b1,
|
|
5845
|
+
sn as b2,
|
|
5846
|
+
ln as b3,
|
|
5847
|
+
ua as b4,
|
|
5848
|
+
ha as b5,
|
|
5849
|
+
Fn as b6,
|
|
5850
|
+
X as b7,
|
|
5851
|
+
cn as b8,
|
|
5852
|
+
pn as b9,
|
|
5853
|
+
Oa as bA,
|
|
5854
|
+
Ha as bB,
|
|
5855
|
+
Hn as bC,
|
|
5856
|
+
De as bD,
|
|
5857
|
+
de as bE,
|
|
5858
|
+
za as bF,
|
|
5859
|
+
U as bG,
|
|
5860
|
+
Fa as bH,
|
|
5861
|
+
Ma as bI,
|
|
5862
|
+
R as bJ,
|
|
5863
|
+
La as bK,
|
|
5864
|
+
Da as bL,
|
|
5865
|
+
Qa as bM,
|
|
5866
|
+
_a as bN,
|
|
5867
|
+
Ba as bO,
|
|
5868
|
+
ja as bP,
|
|
5869
|
+
Y as bQ,
|
|
5870
|
+
Qe as bR,
|
|
5871
|
+
ie as bS,
|
|
5872
|
+
qa as bT,
|
|
5873
|
+
Ee as bU,
|
|
5874
|
+
Le as bV,
|
|
5875
|
+
qn as bW,
|
|
5876
|
+
zn as ba,
|
|
5877
|
+
un as bb,
|
|
5878
|
+
dn as bc,
|
|
5879
|
+
mn as bd,
|
|
5880
|
+
hn as be,
|
|
5881
|
+
gn as bf,
|
|
5882
|
+
Pn as bg,
|
|
5883
|
+
jn as bh,
|
|
5884
|
+
ga as bi,
|
|
5885
|
+
Bn as bj,
|
|
5886
|
+
ee as bk,
|
|
5887
|
+
bn as bl,
|
|
5888
|
+
Ln as bm,
|
|
5889
|
+
Pa as bn,
|
|
5890
|
+
Dn as bo,
|
|
5891
|
+
H as bp,
|
|
5892
|
+
vn as bq,
|
|
5893
|
+
Vn as br,
|
|
5894
|
+
va as bs,
|
|
5895
|
+
ba as bt,
|
|
5896
|
+
Qn as bu,
|
|
5897
|
+
T as bv,
|
|
5898
|
+
Sa as bw,
|
|
5899
|
+
Va as bx,
|
|
5900
|
+
_n as by,
|
|
5901
|
+
L as bz,
|
|
5902
|
+
q as c,
|
|
5820
5903
|
Ga as d,
|
|
5821
5904
|
Wa as e,
|
|
5822
5905
|
$a as f,
|
|
@@ -5829,15 +5912,15 @@ export {
|
|
|
5829
5912
|
Xa as m,
|
|
5830
5913
|
We as n,
|
|
5831
5914
|
Ge as o,
|
|
5832
|
-
|
|
5915
|
+
On as p,
|
|
5833
5916
|
C as q,
|
|
5834
|
-
|
|
5917
|
+
yn as r,
|
|
5835
5918
|
Ke as s,
|
|
5836
|
-
|
|
5919
|
+
An as t,
|
|
5837
5920
|
he as u,
|
|
5838
5921
|
tt as v,
|
|
5839
5922
|
rt as w,
|
|
5840
5923
|
Ye as x,
|
|
5841
5924
|
$e as y,
|
|
5842
|
-
|
|
5925
|
+
Cn as z
|
|
5843
5926
|
};
|