@malloy-publisher/sdk 0.5.0 → 0.5.1
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/{DocumentStorage-B04sZ5Ie.es.js → DocumentStorage-DkwqA8SA.es.js} +2 -2
- package/dist/{DocumentStorage-B_MMJ0Ot.cjs.js → DocumentStorage-mMn5SZ1c.cjs.js} +2 -2
- package/dist/{RenderedResult-BB7eokcf.es.js → RenderedResult-CTD2Ej2S.es.js} +2 -2
- package/dist/{RenderedResult-DVuGhatg.cjs.js → RenderedResult-GukOadCi.cjs.js} +1 -1
- package/dist/ServerProvider-CC9ein5-.cjs.js +1 -0
- package/dist/{ServerProvider-Do-GBvpn.es.js → ServerProvider-IzXlqSVe.es.js} +143 -135
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +2 -2
- package/dist/client/api.d.ts +41 -2
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/package.json +1 -1
- package/dist/ServerProvider-D-jjzfE5.cjs.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
|
|
3
|
-
import
|
|
3
|
+
import h from "axios";
|
|
4
4
|
import { useMemo as B, createContext as G, useContext as Y, useState as _, useEffect as ie, useCallback as de } from "react";
|
|
5
|
-
import { styled as x, Card as pe, CardContent as
|
|
5
|
+
import { styled as x, Card as pe, CardContent as me, CardMedia as he } from "@mui/material";
|
|
6
6
|
const C = {
|
|
7
7
|
blue: "#2563eb",
|
|
8
8
|
indigo: "#4f46e5",
|
|
@@ -27,12 +27,12 @@ const C = {
|
|
|
27
27
|
boxShadow: "none",
|
|
28
28
|
border: "none",
|
|
29
29
|
backgroundColor: "transparent"
|
|
30
|
-
}), na = x(
|
|
30
|
+
}), na = x(me)({
|
|
31
31
|
display: "flex",
|
|
32
32
|
flexDirection: "column",
|
|
33
33
|
padding: "0",
|
|
34
34
|
flexGrow: 1
|
|
35
|
-
}), oa = x(
|
|
35
|
+
}), oa = x(he)({
|
|
36
36
|
padding: "0"
|
|
37
37
|
}), sa = x("div")(({ theme: c }) => ({
|
|
38
38
|
backgroundColor: c.palette.background.default,
|
|
@@ -243,7 +243,7 @@ function pa() {
|
|
|
243
243
|
}
|
|
244
244
|
const g = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
245
245
|
class I {
|
|
246
|
-
constructor(n, e = g, r =
|
|
246
|
+
constructor(n, e = g, r = h) {
|
|
247
247
|
this.basePath = e, this.axios = r, n && (this.configuration = n, this.basePath = n.basePath ?? e);
|
|
248
248
|
}
|
|
249
249
|
configuration;
|
|
@@ -253,18 +253,18 @@ class ve extends Error {
|
|
|
253
253
|
super(e), this.field = n, this.name = "RequiredError";
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
const P = {}, b = "https://example.com",
|
|
256
|
+
const P = {}, b = "https://example.com", m = function(c, n, e) {
|
|
257
257
|
if (e == null)
|
|
258
258
|
throw new ve(n, `Required parameter ${n} was null or undefined when calling ${c}.`);
|
|
259
259
|
};
|
|
260
|
-
function
|
|
261
|
-
n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) =>
|
|
262
|
-
(r) =>
|
|
260
|
+
function D(c, n, e = "") {
|
|
261
|
+
n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => D(c, r, e)) : Object.keys(n).forEach(
|
|
262
|
+
(r) => D(c, n[r], `${e}${e !== "" ? "." : ""}${r}`)
|
|
263
263
|
) : c.has(e) ? c.append(e, n) : c.set(e, n));
|
|
264
264
|
}
|
|
265
265
|
const V = function(c, ...n) {
|
|
266
266
|
const e = new URLSearchParams(c.search);
|
|
267
|
-
|
|
267
|
+
D(e, n), c.search = e.toString();
|
|
268
268
|
}, S = function(c, n, e) {
|
|
269
269
|
const r = typeof c != "string";
|
|
270
270
|
return (r && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : r) ? JSON.stringify(c !== void 0 ? c : {}) : c || "";
|
|
@@ -275,14 +275,14 @@ const V = function(c, ...n) {
|
|
|
275
275
|
const o = { ...c.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + c.url };
|
|
276
276
|
return a.request(o);
|
|
277
277
|
};
|
|
278
|
-
},
|
|
278
|
+
}, ma = {
|
|
279
279
|
Bigquery: "bigquery",
|
|
280
280
|
Snowflake: "snowflake",
|
|
281
281
|
Postgres: "postgres",
|
|
282
282
|
Gcs: "gcs",
|
|
283
283
|
S3: "s3",
|
|
284
284
|
Azure: "azure"
|
|
285
|
-
},
|
|
285
|
+
}, ha = {
|
|
286
286
|
ServicePrincipal: "service_principal",
|
|
287
287
|
SasToken: "sas_token"
|
|
288
288
|
}, ua = {
|
|
@@ -390,12 +390,12 @@ const V = function(c, ...n) {
|
|
|
390
390
|
NoVerify: "no-verify",
|
|
391
391
|
VerifyCa: "verify-ca",
|
|
392
392
|
VerifyFull: "verify-full"
|
|
393
|
-
},
|
|
393
|
+
}, Da = {
|
|
394
394
|
Interactive: "interactive",
|
|
395
395
|
Materialize: "materialize",
|
|
396
396
|
Index: "index",
|
|
397
397
|
Ops: "ops"
|
|
398
|
-
},
|
|
398
|
+
}, za = {
|
|
399
399
|
Query: "query",
|
|
400
400
|
ServerDefault: "server_default"
|
|
401
401
|
}, La = {
|
|
@@ -412,6 +412,14 @@ const V = function(c, ...n) {
|
|
|
412
412
|
FreeParameter: "free_parameter",
|
|
413
413
|
Given: "given",
|
|
414
414
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
415
|
+
DynamicProjection: "dynamic_projection",
|
|
416
|
+
DynamicJoin: "dynamic_join",
|
|
417
|
+
DynamicJoinedWhere: "dynamic_joined_where",
|
|
418
|
+
PartitionWithoutStorage: "partition_without_storage",
|
|
419
|
+
PartitionColumnUnknown: "partition_column_unknown",
|
|
420
|
+
PartitionColumnNotPublic: "partition_column_not_public",
|
|
421
|
+
MergeKeyScopeUnresolved: "merge_key_scope_unresolved",
|
|
422
|
+
PreaggregateOverDynamicSource: "preaggregate_over_dynamic_source",
|
|
415
423
|
Authorize: "authorize",
|
|
416
424
|
Partition: "partition",
|
|
417
425
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
@@ -444,7 +452,7 @@ const V = function(c, ...n) {
|
|
|
444
452
|
* @throws {RequiredError}
|
|
445
453
|
*/
|
|
446
454
|
createConnection: async (n, e, r, a = {}) => {
|
|
447
|
-
|
|
455
|
+
m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", r);
|
|
448
456
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
449
457
|
let s;
|
|
450
458
|
c && (s = c.baseOptions);
|
|
@@ -465,7 +473,7 @@ const V = function(c, ...n) {
|
|
|
465
473
|
* @throws {RequiredError}
|
|
466
474
|
*/
|
|
467
475
|
deleteConnection: async (n, e, r = {}) => {
|
|
468
|
-
|
|
476
|
+
m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
|
|
469
477
|
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
470
478
|
let o;
|
|
471
479
|
c && (o = c.baseOptions);
|
|
@@ -486,7 +494,7 @@ const V = function(c, ...n) {
|
|
|
486
494
|
* @throws {RequiredError}
|
|
487
495
|
*/
|
|
488
496
|
getConnection: async (n, e, r = {}) => {
|
|
489
|
-
|
|
497
|
+
m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
|
|
490
498
|
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
491
499
|
let o;
|
|
492
500
|
c && (o = c.baseOptions);
|
|
@@ -509,7 +517,7 @@ const V = function(c, ...n) {
|
|
|
509
517
|
* @throws {RequiredError}
|
|
510
518
|
*/
|
|
511
519
|
getTable: async (n, e, r, a, t = {}) => {
|
|
512
|
-
|
|
520
|
+
m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", r), m("getTable", "tablePath", a);
|
|
513
521
|
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, b);
|
|
514
522
|
let l;
|
|
515
523
|
c && (l = c.baseOptions);
|
|
@@ -533,7 +541,7 @@ const V = function(c, ...n) {
|
|
|
533
541
|
* @throws {RequiredError}
|
|
534
542
|
*/
|
|
535
543
|
getTableInPackage: async (n, e, r, a, t, o = {}) => {
|
|
536
|
-
|
|
544
|
+
m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", r), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", t);
|
|
537
545
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(t))), l = new URL(s, b);
|
|
538
546
|
let i;
|
|
539
547
|
c && (i = c.baseOptions);
|
|
@@ -553,7 +561,7 @@ const V = function(c, ...n) {
|
|
|
553
561
|
* @throws {RequiredError}
|
|
554
562
|
*/
|
|
555
563
|
listConnections: async (n, e = {}) => {
|
|
556
|
-
|
|
564
|
+
m("listConnections", "environmentName", n);
|
|
557
565
|
const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
558
566
|
let t;
|
|
559
567
|
c && (t = c.baseOptions);
|
|
@@ -574,7 +582,7 @@ const V = function(c, ...n) {
|
|
|
574
582
|
* @throws {RequiredError}
|
|
575
583
|
*/
|
|
576
584
|
listSchemas: async (n, e, r = {}) => {
|
|
577
|
-
|
|
585
|
+
m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
|
|
578
586
|
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
579
587
|
let o;
|
|
580
588
|
c && (o = c.baseOptions);
|
|
@@ -596,7 +604,7 @@ const V = function(c, ...n) {
|
|
|
596
604
|
* @throws {RequiredError}
|
|
597
605
|
*/
|
|
598
606
|
listSchemasInPackage: async (n, e, r, a = {}) => {
|
|
599
|
-
|
|
607
|
+
m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", r);
|
|
600
608
|
const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(t, b);
|
|
601
609
|
let s;
|
|
602
610
|
c && (s = c.baseOptions);
|
|
@@ -619,7 +627,7 @@ const V = function(c, ...n) {
|
|
|
619
627
|
* @throws {RequiredError}
|
|
620
628
|
*/
|
|
621
629
|
listTables: async (n, e, r, a, t = {}) => {
|
|
622
|
-
|
|
630
|
+
m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", r);
|
|
623
631
|
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
624
632
|
let l;
|
|
625
633
|
c && (l = c.baseOptions);
|
|
@@ -643,7 +651,7 @@ const V = function(c, ...n) {
|
|
|
643
651
|
* @throws {RequiredError}
|
|
644
652
|
*/
|
|
645
653
|
listTablesInPackage: async (n, e, r, a, t, o = {}) => {
|
|
646
|
-
|
|
654
|
+
m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", r), m("listTablesInPackage", "schemaName", a);
|
|
647
655
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))), l = new URL(s, b);
|
|
648
656
|
let i;
|
|
649
657
|
c && (i = c.baseOptions);
|
|
@@ -665,7 +673,7 @@ const V = function(c, ...n) {
|
|
|
665
673
|
* @throws {RequiredError}
|
|
666
674
|
*/
|
|
667
675
|
postQuerydata: async (n, e, r, a = {}) => {
|
|
668
|
-
|
|
676
|
+
m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", r);
|
|
669
677
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
670
678
|
let s;
|
|
671
679
|
c && (s = c.baseOptions);
|
|
@@ -688,7 +696,7 @@ const V = function(c, ...n) {
|
|
|
688
696
|
* @throws {RequiredError}
|
|
689
697
|
*/
|
|
690
698
|
postQuerydataInPackage: async (n, e, r, a, t = {}) => {
|
|
691
|
-
|
|
699
|
+
m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", r), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
692
700
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
693
701
|
let l;
|
|
694
702
|
c && (l = c.baseOptions);
|
|
@@ -710,7 +718,7 @@ const V = function(c, ...n) {
|
|
|
710
718
|
* @throws {RequiredError}
|
|
711
719
|
*/
|
|
712
720
|
postSqlsource: async (n, e, r, a = {}) => {
|
|
713
|
-
|
|
721
|
+
m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", r);
|
|
714
722
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
715
723
|
let s;
|
|
716
724
|
c && (s = c.baseOptions);
|
|
@@ -733,7 +741,7 @@ const V = function(c, ...n) {
|
|
|
733
741
|
* @throws {RequiredError}
|
|
734
742
|
*/
|
|
735
743
|
postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
|
|
736
|
-
|
|
744
|
+
m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", r), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
737
745
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
738
746
|
let l;
|
|
739
747
|
c && (l = c.baseOptions);
|
|
@@ -755,7 +763,7 @@ const V = function(c, ...n) {
|
|
|
755
763
|
* @throws {RequiredError}
|
|
756
764
|
*/
|
|
757
765
|
postTemporarytable: async (n, e, r, a = {}) => {
|
|
758
|
-
|
|
766
|
+
m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", r);
|
|
759
767
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
760
768
|
let s;
|
|
761
769
|
c && (s = c.baseOptions);
|
|
@@ -778,7 +786,7 @@ const V = function(c, ...n) {
|
|
|
778
786
|
* @throws {RequiredError}
|
|
779
787
|
*/
|
|
780
788
|
postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
|
|
781
|
-
|
|
789
|
+
m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", r), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
782
790
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
783
791
|
let l;
|
|
784
792
|
c && (l = c.baseOptions);
|
|
@@ -800,7 +808,7 @@ const V = function(c, ...n) {
|
|
|
800
808
|
* @throws {RequiredError}
|
|
801
809
|
*/
|
|
802
810
|
updateConnection: async (n, e, r, a = {}) => {
|
|
803
|
-
|
|
811
|
+
m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", r);
|
|
804
812
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
805
813
|
let s;
|
|
806
814
|
c && (s = c.baseOptions);
|
|
@@ -827,7 +835,7 @@ const V = function(c, ...n) {
|
|
|
827
835
|
*/
|
|
828
836
|
async createConnection(e, r, a, t) {
|
|
829
837
|
const o = await n.createConnection(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
830
|
-
return (i, d) => O(o,
|
|
838
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
831
839
|
},
|
|
832
840
|
/**
|
|
833
841
|
* Permanently deletes a database connection from the environment.
|
|
@@ -839,7 +847,7 @@ const V = function(c, ...n) {
|
|
|
839
847
|
*/
|
|
840
848
|
async deleteConnection(e, r, a) {
|
|
841
849
|
const t = await n.deleteConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
842
|
-
return (l, i) => O(t,
|
|
850
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
843
851
|
},
|
|
844
852
|
/**
|
|
845
853
|
* 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.
|
|
@@ -851,7 +859,7 @@ const V = function(c, ...n) {
|
|
|
851
859
|
*/
|
|
852
860
|
async getConnection(e, r, a) {
|
|
853
861
|
const t = await n.getConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
854
|
-
return (l, i) => O(t,
|
|
862
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
855
863
|
},
|
|
856
864
|
/**
|
|
857
865
|
* 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.
|
|
@@ -865,7 +873,7 @@ const V = function(c, ...n) {
|
|
|
865
873
|
*/
|
|
866
874
|
async getTable(e, r, a, t, o) {
|
|
867
875
|
const s = await n.getTable(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
|
|
868
|
-
return (d, p) => O(s,
|
|
876
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
869
877
|
},
|
|
870
878
|
/**
|
|
871
879
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -880,7 +888,7 @@ const V = function(c, ...n) {
|
|
|
880
888
|
*/
|
|
881
889
|
async getTableInPackage(e, r, a, t, o, s) {
|
|
882
890
|
const l = await n.getTableInPackage(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
883
|
-
return (p, u) => O(l,
|
|
891
|
+
return (p, u) => O(l, h, g, c)(p, d || u);
|
|
884
892
|
},
|
|
885
893
|
/**
|
|
886
894
|
* 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.
|
|
@@ -891,7 +899,7 @@ const V = function(c, ...n) {
|
|
|
891
899
|
*/
|
|
892
900
|
async listConnections(e, r) {
|
|
893
901
|
const a = await n.listConnections(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
894
|
-
return (s, l) => O(a,
|
|
902
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
895
903
|
},
|
|
896
904
|
/**
|
|
897
905
|
* 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.
|
|
@@ -903,7 +911,7 @@ const V = function(c, ...n) {
|
|
|
903
911
|
*/
|
|
904
912
|
async listSchemas(e, r, a) {
|
|
905
913
|
const t = await n.listSchemas(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
906
|
-
return (l, i) => O(t,
|
|
914
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
907
915
|
},
|
|
908
916
|
/**
|
|
909
917
|
* 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).
|
|
@@ -916,7 +924,7 @@ const V = function(c, ...n) {
|
|
|
916
924
|
*/
|
|
917
925
|
async listSchemasInPackage(e, r, a, t) {
|
|
918
926
|
const o = await n.listSchemasInPackage(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
919
|
-
return (i, d) => O(o,
|
|
927
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
920
928
|
},
|
|
921
929
|
/**
|
|
922
930
|
* 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.
|
|
@@ -930,7 +938,7 @@ const V = function(c, ...n) {
|
|
|
930
938
|
*/
|
|
931
939
|
async listTables(e, r, a, t, o) {
|
|
932
940
|
const s = await n.listTables(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[l]?.url;
|
|
933
|
-
return (d, p) => O(s,
|
|
941
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
934
942
|
},
|
|
935
943
|
/**
|
|
936
944
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -945,7 +953,7 @@ const V = function(c, ...n) {
|
|
|
945
953
|
*/
|
|
946
954
|
async listTablesInPackage(e, r, a, t, o, s) {
|
|
947
955
|
const l = await n.listTablesInPackage(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
948
|
-
return (p, u) => O(l,
|
|
956
|
+
return (p, u) => O(l, h, g, c)(p, d || u);
|
|
949
957
|
},
|
|
950
958
|
/**
|
|
951
959
|
* 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.
|
|
@@ -958,7 +966,7 @@ const V = function(c, ...n) {
|
|
|
958
966
|
*/
|
|
959
967
|
async postQuerydata(e, r, a, t) {
|
|
960
968
|
const o = await n.postQuerydata(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
961
|
-
return (i, d) => O(o,
|
|
969
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
962
970
|
},
|
|
963
971
|
/**
|
|
964
972
|
* 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.
|
|
@@ -972,7 +980,7 @@ const V = function(c, ...n) {
|
|
|
972
980
|
*/
|
|
973
981
|
async postQuerydataInPackage(e, r, a, t, o) {
|
|
974
982
|
const s = await n.postQuerydataInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[l]?.url;
|
|
975
|
-
return (d, p) => O(s,
|
|
983
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
976
984
|
},
|
|
977
985
|
/**
|
|
978
986
|
* 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.
|
|
@@ -985,7 +993,7 @@ const V = function(c, ...n) {
|
|
|
985
993
|
*/
|
|
986
994
|
async postSqlsource(e, r, a, t) {
|
|
987
995
|
const o = await n.postSqlsource(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
988
|
-
return (i, d) => O(o,
|
|
996
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
989
997
|
},
|
|
990
998
|
/**
|
|
991
999
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -999,7 +1007,7 @@ const V = function(c, ...n) {
|
|
|
999
1007
|
*/
|
|
1000
1008
|
async postSqlsourceInPackage(e, r, a, t, o) {
|
|
1001
1009
|
const s = await n.postSqlsourceInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[l]?.url;
|
|
1002
|
-
return (d, p) => O(s,
|
|
1010
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
1003
1011
|
},
|
|
1004
1012
|
/**
|
|
1005
1013
|
* 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.
|
|
@@ -1012,7 +1020,7 @@ const V = function(c, ...n) {
|
|
|
1012
1020
|
*/
|
|
1013
1021
|
async postTemporarytable(e, r, a, t) {
|
|
1014
1022
|
const o = await n.postTemporarytable(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
1015
|
-
return (i, d) => O(o,
|
|
1023
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1016
1024
|
},
|
|
1017
1025
|
/**
|
|
1018
1026
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1026,7 +1034,7 @@ const V = function(c, ...n) {
|
|
|
1026
1034
|
*/
|
|
1027
1035
|
async postTemporarytableInPackage(e, r, a, t, o) {
|
|
1028
1036
|
const s = await n.postTemporarytableInPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[l]?.url;
|
|
1029
|
-
return (d, p) => O(s,
|
|
1037
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
1030
1038
|
},
|
|
1031
1039
|
/**
|
|
1032
1040
|
* Updates the configuration of an existing database connection.
|
|
@@ -1039,7 +1047,7 @@ const V = function(c, ...n) {
|
|
|
1039
1047
|
*/
|
|
1040
1048
|
async updateConnection(e, r, a, t) {
|
|
1041
1049
|
const o = await n.updateConnection(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
1042
|
-
return (i, d) => O(o,
|
|
1050
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1043
1051
|
}
|
|
1044
1052
|
};
|
|
1045
1053
|
}, Ka = function(c, n, e) {
|
|
@@ -1492,7 +1500,7 @@ const ye = function(c) {
|
|
|
1492
1500
|
* @throws {RequiredError}
|
|
1493
1501
|
*/
|
|
1494
1502
|
testConnectionConfiguration: async (n, e = {}) => {
|
|
1495
|
-
|
|
1503
|
+
m("testConnectionConfiguration", "connection", n);
|
|
1496
1504
|
const r = "/connections/test", a = new URL(r, b);
|
|
1497
1505
|
let t;
|
|
1498
1506
|
c && (t = c.baseOptions);
|
|
@@ -1517,7 +1525,7 @@ const ye = function(c) {
|
|
|
1517
1525
|
*/
|
|
1518
1526
|
async testConnectionConfiguration(e, r) {
|
|
1519
1527
|
const a = await n.testConnectionConfiguration(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
1520
|
-
return (s, l) => O(a,
|
|
1528
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
1521
1529
|
}
|
|
1522
1530
|
};
|
|
1523
1531
|
}, Xa = function(c, n, e) {
|
|
@@ -1561,7 +1569,7 @@ const ke = function(c) {
|
|
|
1561
1569
|
* @throws {RequiredError}
|
|
1562
1570
|
*/
|
|
1563
1571
|
getDashboard: async (n, e, r, a, t = {}) => {
|
|
1564
|
-
|
|
1572
|
+
m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", r);
|
|
1565
1573
|
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
1566
1574
|
let l;
|
|
1567
1575
|
c && (l = c.baseOptions);
|
|
@@ -1583,7 +1591,7 @@ const ke = function(c) {
|
|
|
1583
1591
|
* @throws {RequiredError}
|
|
1584
1592
|
*/
|
|
1585
1593
|
listDashboards: async (n, e, r, a = {}) => {
|
|
1586
|
-
|
|
1594
|
+
m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
|
|
1587
1595
|
const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
1588
1596
|
let s;
|
|
1589
1597
|
c && (s = c.baseOptions);
|
|
@@ -1596,7 +1604,7 @@ const ke = function(c) {
|
|
|
1596
1604
|
};
|
|
1597
1605
|
}
|
|
1598
1606
|
};
|
|
1599
|
-
},
|
|
1607
|
+
}, z = function(c) {
|
|
1600
1608
|
const n = ke(c);
|
|
1601
1609
|
return {
|
|
1602
1610
|
/**
|
|
@@ -1611,7 +1619,7 @@ const ke = function(c) {
|
|
|
1611
1619
|
*/
|
|
1612
1620
|
async getDashboard(e, r, a, t, o) {
|
|
1613
1621
|
const s = await n.getDashboard(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[l]?.url;
|
|
1614
|
-
return (d, p) => O(s,
|
|
1622
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
1615
1623
|
},
|
|
1616
1624
|
/**
|
|
1617
1625
|
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. 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. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
@@ -1624,11 +1632,11 @@ const ke = function(c) {
|
|
|
1624
1632
|
*/
|
|
1625
1633
|
async listDashboards(e, r, a, t) {
|
|
1626
1634
|
const o = await n.listDashboards(e, r, a, t), s = c?.serverIndex ?? 0, l = P["DashboardsApi.listDashboards"]?.[s]?.url;
|
|
1627
|
-
return (i, d) => O(o,
|
|
1635
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1628
1636
|
}
|
|
1629
1637
|
};
|
|
1630
1638
|
}, et = function(c, n, e) {
|
|
1631
|
-
const r =
|
|
1639
|
+
const r = z(c);
|
|
1632
1640
|
return {
|
|
1633
1641
|
/**
|
|
1634
1642
|
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
@@ -1670,7 +1678,7 @@ class Ce extends I {
|
|
|
1670
1678
|
* @memberof DashboardsApi
|
|
1671
1679
|
*/
|
|
1672
1680
|
getDashboard(n, e, r, a, t) {
|
|
1673
|
-
return
|
|
1681
|
+
return z(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1674
1682
|
}
|
|
1675
1683
|
/**
|
|
1676
1684
|
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. 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. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
@@ -1683,7 +1691,7 @@ class Ce extends I {
|
|
|
1683
1691
|
* @memberof DashboardsApi
|
|
1684
1692
|
*/
|
|
1685
1693
|
listDashboards(n, e, r, a) {
|
|
1686
|
-
return
|
|
1694
|
+
return z(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1687
1695
|
}
|
|
1688
1696
|
}
|
|
1689
1697
|
const Ie = function(c) {
|
|
@@ -1697,7 +1705,7 @@ const Ie = function(c) {
|
|
|
1697
1705
|
* @throws {RequiredError}
|
|
1698
1706
|
*/
|
|
1699
1707
|
listDataApps: async (n, e, r = {}) => {
|
|
1700
|
-
|
|
1708
|
+
m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
|
|
1701
1709
|
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
1702
1710
|
let o;
|
|
1703
1711
|
c && (o = c.baseOptions);
|
|
@@ -1723,7 +1731,7 @@ const Ie = function(c) {
|
|
|
1723
1731
|
*/
|
|
1724
1732
|
async listDataApps(e, r, a) {
|
|
1725
1733
|
const t = await n.listDataApps(e, r, a), o = c?.serverIndex ?? 0, s = P["DataAppsApi.listDataApps"]?.[o]?.url;
|
|
1726
|
-
return (l, i) => O(t,
|
|
1734
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
1727
1735
|
}
|
|
1728
1736
|
};
|
|
1729
1737
|
}, at = function(c, n, e) {
|
|
@@ -1768,7 +1776,7 @@ const xe = function(c) {
|
|
|
1768
1776
|
* @throws {RequiredError}
|
|
1769
1777
|
*/
|
|
1770
1778
|
listDatabases: async (n, e, r, a = {}) => {
|
|
1771
|
-
|
|
1779
|
+
m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
|
|
1772
1780
|
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
1773
1781
|
let s;
|
|
1774
1782
|
c && (s = c.baseOptions);
|
|
@@ -1795,7 +1803,7 @@ const xe = function(c) {
|
|
|
1795
1803
|
*/
|
|
1796
1804
|
async listDatabases(e, r, a, t) {
|
|
1797
1805
|
const o = await n.listDatabases(e, r, a, t), s = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1798
|
-
return (i, d) => O(o,
|
|
1806
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1799
1807
|
}
|
|
1800
1808
|
};
|
|
1801
1809
|
}, tt = function(c, n, e) {
|
|
@@ -1840,7 +1848,7 @@ const Ne = function(c) {
|
|
|
1840
1848
|
* @throws {RequiredError}
|
|
1841
1849
|
*/
|
|
1842
1850
|
createEnvironment: async (n, e = {}) => {
|
|
1843
|
-
|
|
1851
|
+
m("createEnvironment", "environment", n);
|
|
1844
1852
|
const r = "/environments", a = new URL(r, b);
|
|
1845
1853
|
let t;
|
|
1846
1854
|
c && (t = c.baseOptions);
|
|
@@ -1860,7 +1868,7 @@ const Ne = function(c) {
|
|
|
1860
1868
|
* @throws {RequiredError}
|
|
1861
1869
|
*/
|
|
1862
1870
|
deleteEnvironment: async (n, e = {}) => {
|
|
1863
|
-
|
|
1871
|
+
m("deleteEnvironment", "environmentName", n);
|
|
1864
1872
|
const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
1865
1873
|
let t;
|
|
1866
1874
|
c && (t = c.baseOptions);
|
|
@@ -1881,7 +1889,7 @@ const Ne = function(c) {
|
|
|
1881
1889
|
* @throws {RequiredError}
|
|
1882
1890
|
*/
|
|
1883
1891
|
getEnvironment: async (n, e, r = {}) => {
|
|
1884
|
-
|
|
1892
|
+
m("getEnvironment", "environmentName", n);
|
|
1885
1893
|
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
1886
1894
|
let o;
|
|
1887
1895
|
c && (o = c.baseOptions);
|
|
@@ -1920,7 +1928,7 @@ const Ne = function(c) {
|
|
|
1920
1928
|
* @throws {RequiredError}
|
|
1921
1929
|
*/
|
|
1922
1930
|
updateEnvironment: async (n, e, r = {}) => {
|
|
1923
|
-
|
|
1931
|
+
m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
|
|
1924
1932
|
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
1925
1933
|
let o;
|
|
1926
1934
|
c && (o = c.baseOptions);
|
|
@@ -1945,7 +1953,7 @@ const Ne = function(c) {
|
|
|
1945
1953
|
*/
|
|
1946
1954
|
async createEnvironment(e, r) {
|
|
1947
1955
|
const a = await n.createEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
|
|
1948
|
-
return (s, l) => O(a,
|
|
1956
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
1949
1957
|
},
|
|
1950
1958
|
/**
|
|
1951
1959
|
* 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.
|
|
@@ -1956,7 +1964,7 @@ const Ne = function(c) {
|
|
|
1956
1964
|
*/
|
|
1957
1965
|
async deleteEnvironment(e, r) {
|
|
1958
1966
|
const a = await n.deleteEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
|
|
1959
|
-
return (s, l) => O(a,
|
|
1967
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
1960
1968
|
},
|
|
1961
1969
|
/**
|
|
1962
1970
|
* 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.
|
|
@@ -1968,7 +1976,7 @@ const Ne = function(c) {
|
|
|
1968
1976
|
*/
|
|
1969
1977
|
async getEnvironment(e, r, a) {
|
|
1970
1978
|
const t = await n.getEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1971
|
-
return (l, i) => O(t,
|
|
1979
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
1972
1980
|
},
|
|
1973
1981
|
/**
|
|
1974
1982
|
* 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`.
|
|
@@ -1978,7 +1986,7 @@ const Ne = function(c) {
|
|
|
1978
1986
|
*/
|
|
1979
1987
|
async listEnvironments(e) {
|
|
1980
1988
|
const r = await n.listEnvironments(e), a = c?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1981
|
-
return (o, s) => O(r,
|
|
1989
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
1982
1990
|
},
|
|
1983
1991
|
/**
|
|
1984
1992
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -1990,7 +1998,7 @@ const Ne = function(c) {
|
|
|
1990
1998
|
*/
|
|
1991
1999
|
async updateEnvironment(e, r, a) {
|
|
1992
2000
|
const t = await n.updateEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1993
|
-
return (l, i) => O(t,
|
|
2001
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
1994
2002
|
}
|
|
1995
2003
|
};
|
|
1996
2004
|
}, rt = function(c, n, e) {
|
|
@@ -2119,7 +2127,7 @@ const Ue = function(c) {
|
|
|
2119
2127
|
* @throws {RequiredError}
|
|
2120
2128
|
*/
|
|
2121
2129
|
createMaterialization: async (n, e, r, a = {}) => {
|
|
2122
|
-
|
|
2130
|
+
m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
|
|
2123
2131
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2124
2132
|
let s;
|
|
2125
2133
|
c && (s = c.baseOptions);
|
|
@@ -2142,7 +2150,7 @@ const Ue = function(c) {
|
|
|
2142
2150
|
* @throws {RequiredError}
|
|
2143
2151
|
*/
|
|
2144
2152
|
deleteMaterialization: async (n, e, r, a, t = {}) => {
|
|
2145
|
-
|
|
2153
|
+
m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", r);
|
|
2146
2154
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2147
2155
|
let l;
|
|
2148
2156
|
c && (l = c.baseOptions);
|
|
@@ -2164,7 +2172,7 @@ const Ue = function(c) {
|
|
|
2164
2172
|
* @throws {RequiredError}
|
|
2165
2173
|
*/
|
|
2166
2174
|
getMaterialization: async (n, e, r, a = {}) => {
|
|
2167
|
-
|
|
2175
|
+
m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", r);
|
|
2168
2176
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(t, b);
|
|
2169
2177
|
let s;
|
|
2170
2178
|
c && (s = c.baseOptions);
|
|
@@ -2187,7 +2195,7 @@ const Ue = function(c) {
|
|
|
2187
2195
|
* @throws {RequiredError}
|
|
2188
2196
|
*/
|
|
2189
2197
|
listMaterializations: async (n, e, r, a, t = {}) => {
|
|
2190
|
-
|
|
2198
|
+
m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
|
|
2191
2199
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
|
|
2192
2200
|
let l;
|
|
2193
2201
|
c && (l = c.baseOptions);
|
|
@@ -2210,7 +2218,7 @@ const Ue = function(c) {
|
|
|
2210
2218
|
* @throws {RequiredError}
|
|
2211
2219
|
*/
|
|
2212
2220
|
materializationAction: async (n, e, r, a, t = {}) => {
|
|
2213
|
-
|
|
2221
|
+
m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", r), m("materializationAction", "action", a);
|
|
2214
2222
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2215
2223
|
let l;
|
|
2216
2224
|
c && (l = c.baseOptions);
|
|
@@ -2237,7 +2245,7 @@ const Ue = function(c) {
|
|
|
2237
2245
|
*/
|
|
2238
2246
|
async createMaterialization(e, r, a, t) {
|
|
2239
2247
|
const o = await n.createMaterialization(e, r, a, t), s = c?.serverIndex ?? 0, l = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2240
|
-
return (i, d) => O(o,
|
|
2248
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2241
2249
|
},
|
|
2242
2250
|
/**
|
|
2243
2251
|
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
@@ -2251,7 +2259,7 @@ const Ue = function(c) {
|
|
|
2251
2259
|
*/
|
|
2252
2260
|
async deleteMaterialization(e, r, a, t, o) {
|
|
2253
2261
|
const s = await n.deleteMaterialization(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[l]?.url;
|
|
2254
|
-
return (d, p) => O(s,
|
|
2262
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2255
2263
|
},
|
|
2256
2264
|
/**
|
|
2257
2265
|
*
|
|
@@ -2264,7 +2272,7 @@ const Ue = function(c) {
|
|
|
2264
2272
|
*/
|
|
2265
2273
|
async getMaterialization(e, r, a, t) {
|
|
2266
2274
|
const o = await n.getMaterialization(e, r, a, t), s = c?.serverIndex ?? 0, l = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2267
|
-
return (i, d) => O(o,
|
|
2275
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2268
2276
|
},
|
|
2269
2277
|
/**
|
|
2270
2278
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2278,7 +2286,7 @@ const Ue = function(c) {
|
|
|
2278
2286
|
*/
|
|
2279
2287
|
async listMaterializations(e, r, a, t, o) {
|
|
2280
2288
|
const s = await n.listMaterializations(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[l]?.url;
|
|
2281
|
-
return (d, p) => O(s,
|
|
2289
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2282
2290
|
},
|
|
2283
2291
|
/**
|
|
2284
2292
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2292,7 +2300,7 @@ const Ue = function(c) {
|
|
|
2292
2300
|
*/
|
|
2293
2301
|
async materializationAction(e, r, a, t, o) {
|
|
2294
2302
|
const s = await n.materializationAction(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[l]?.url;
|
|
2295
|
-
return (d, p) => O(s,
|
|
2303
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2296
2304
|
}
|
|
2297
2305
|
};
|
|
2298
2306
|
}, nt = function(c, n, e) {
|
|
@@ -2448,7 +2456,7 @@ const ot = {
|
|
|
2448
2456
|
* @throws {RequiredError}
|
|
2449
2457
|
*/
|
|
2450
2458
|
compileModelSource: async (n, e, r, a, t = {}) => {
|
|
2451
|
-
|
|
2459
|
+
m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", r), m("compileModelSource", "compileRequest", a);
|
|
2452
2460
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2453
2461
|
let l;
|
|
2454
2462
|
c && (l = c.baseOptions);
|
|
@@ -2471,7 +2479,7 @@ const ot = {
|
|
|
2471
2479
|
* @throws {RequiredError}
|
|
2472
2480
|
*/
|
|
2473
2481
|
executeQueryModel: async (n, e, r, a, t = {}) => {
|
|
2474
|
-
|
|
2482
|
+
m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", r), m("executeQueryModel", "queryRequest", a);
|
|
2475
2483
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2476
2484
|
let l;
|
|
2477
2485
|
c && (l = c.baseOptions);
|
|
@@ -2494,7 +2502,7 @@ const ot = {
|
|
|
2494
2502
|
* @throws {RequiredError}
|
|
2495
2503
|
*/
|
|
2496
2504
|
getModel: async (n, e, r, a, t = {}) => {
|
|
2497
|
-
|
|
2505
|
+
m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", r);
|
|
2498
2506
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2499
2507
|
let l;
|
|
2500
2508
|
c && (l = c.baseOptions);
|
|
@@ -2516,7 +2524,7 @@ const ot = {
|
|
|
2516
2524
|
* @throws {RequiredError}
|
|
2517
2525
|
*/
|
|
2518
2526
|
listModels: async (n, e, r, a = {}) => {
|
|
2519
|
-
|
|
2527
|
+
m("listModels", "environmentName", n), m("listModels", "packageName", e);
|
|
2520
2528
|
const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2521
2529
|
let s;
|
|
2522
2530
|
c && (s = c.baseOptions);
|
|
@@ -2540,7 +2548,7 @@ const ot = {
|
|
|
2540
2548
|
* @throws {RequiredError}
|
|
2541
2549
|
*/
|
|
2542
2550
|
updateModelSource: async (n, e, r, a, t, o = {}) => {
|
|
2543
|
-
|
|
2551
|
+
m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", r), m("updateModelSource", "modelSourceWriteRequest", a);
|
|
2544
2552
|
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), l = new URL(s, b);
|
|
2545
2553
|
let i;
|
|
2546
2554
|
c && (i = c.baseOptions);
|
|
@@ -2568,7 +2576,7 @@ const ot = {
|
|
|
2568
2576
|
*/
|
|
2569
2577
|
async compileModelSource(e, r, a, t, o) {
|
|
2570
2578
|
const s = await n.compileModelSource(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[l]?.url;
|
|
2571
|
-
return (d, p) => O(s,
|
|
2579
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2572
2580
|
},
|
|
2573
2581
|
/**
|
|
2574
2582
|
* 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.
|
|
@@ -2582,7 +2590,7 @@ const ot = {
|
|
|
2582
2590
|
*/
|
|
2583
2591
|
async executeQueryModel(e, r, a, t, o) {
|
|
2584
2592
|
const s = await n.executeQueryModel(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
|
|
2585
|
-
return (d, p) => O(s,
|
|
2593
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2586
2594
|
},
|
|
2587
2595
|
/**
|
|
2588
2596
|
* 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.
|
|
@@ -2596,7 +2604,7 @@ const ot = {
|
|
|
2596
2604
|
*/
|
|
2597
2605
|
async getModel(e, r, a, t, o) {
|
|
2598
2606
|
const s = await n.getModel(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
|
|
2599
|
-
return (d, p) => O(s,
|
|
2607
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2600
2608
|
},
|
|
2601
2609
|
/**
|
|
2602
2610
|
* Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
|
|
@@ -2609,7 +2617,7 @@ const ot = {
|
|
|
2609
2617
|
*/
|
|
2610
2618
|
async listModels(e, r, a, t) {
|
|
2611
2619
|
const o = await n.listModels(e, r, a, t), s = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[s]?.url;
|
|
2612
|
-
return (i, d) => O(o,
|
|
2620
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2613
2621
|
},
|
|
2614
2622
|
/**
|
|
2615
2623
|
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. 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 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.
|
|
@@ -2624,7 +2632,7 @@ const ot = {
|
|
|
2624
2632
|
*/
|
|
2625
2633
|
async updateModelSource(e, r, a, t, o, s) {
|
|
2626
2634
|
const l = await n.updateModelSource(e, r, a, t, o, s), i = c?.serverIndex ?? 0, d = P["ModelsApi.updateModelSource"]?.[i]?.url;
|
|
2627
|
-
return (p, u) => O(l,
|
|
2635
|
+
return (p, u) => O(l, h, g, c)(p, d || u);
|
|
2628
2636
|
}
|
|
2629
2637
|
};
|
|
2630
2638
|
}, st = function(c, n, e) {
|
|
@@ -2786,7 +2794,7 @@ const fe = function(c) {
|
|
|
2786
2794
|
* @throws {RequiredError}
|
|
2787
2795
|
*/
|
|
2788
2796
|
executeNotebookCell: async (n, e, r, a, t, o, s, l, i = {}) => {
|
|
2789
|
-
|
|
2797
|
+
m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", r), m("executeNotebookCell", "cellIndex", a);
|
|
2790
2798
|
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, b);
|
|
2791
2799
|
let u;
|
|
2792
2800
|
c && (u = c.baseOptions);
|
|
@@ -2809,7 +2817,7 @@ const fe = function(c) {
|
|
|
2809
2817
|
* @throws {RequiredError}
|
|
2810
2818
|
*/
|
|
2811
2819
|
getNotebook: async (n, e, r, a, t = {}) => {
|
|
2812
|
-
|
|
2820
|
+
m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", r);
|
|
2813
2821
|
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2814
2822
|
let l;
|
|
2815
2823
|
c && (l = c.baseOptions);
|
|
@@ -2831,7 +2839,7 @@ const fe = function(c) {
|
|
|
2831
2839
|
* @throws {RequiredError}
|
|
2832
2840
|
*/
|
|
2833
2841
|
listNotebooks: async (n, e, r, a = {}) => {
|
|
2834
|
-
|
|
2842
|
+
m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
|
|
2835
2843
|
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2836
2844
|
let s;
|
|
2837
2845
|
c && (s = c.baseOptions);
|
|
@@ -2863,7 +2871,7 @@ const fe = function(c) {
|
|
|
2863
2871
|
*/
|
|
2864
2872
|
async executeNotebookCell(e, r, a, t, o, s, l, i, d) {
|
|
2865
2873
|
const p = await n.executeNotebookCell(e, r, a, t, o, s, l, i, d), u = c?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[u]?.url;
|
|
2866
|
-
return (E, A) => O(p,
|
|
2874
|
+
return (E, A) => O(p, h, g, c)(E, k || A);
|
|
2867
2875
|
},
|
|
2868
2876
|
/**
|
|
2869
2877
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2877,7 +2885,7 @@ const fe = function(c) {
|
|
|
2877
2885
|
*/
|
|
2878
2886
|
async getNotebook(e, r, a, t, o) {
|
|
2879
2887
|
const s = await n.getNotebook(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
|
|
2880
|
-
return (d, p) => O(s,
|
|
2888
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2881
2889
|
},
|
|
2882
2890
|
/**
|
|
2883
2891
|
* Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
|
|
@@ -2890,7 +2898,7 @@ const fe = function(c) {
|
|
|
2890
2898
|
*/
|
|
2891
2899
|
async listNotebooks(e, r, a, t) {
|
|
2892
2900
|
const o = await n.listNotebooks(e, r, a, t), s = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2893
|
-
return (i, d) => O(o,
|
|
2901
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2894
2902
|
}
|
|
2895
2903
|
};
|
|
2896
2904
|
}, lt = function(c, n, e) {
|
|
@@ -3001,7 +3009,7 @@ const ct = {
|
|
|
3001
3009
|
* @throws {RequiredError}
|
|
3002
3010
|
*/
|
|
3003
3011
|
createPackage: async (n, e, r = {}) => {
|
|
3004
|
-
|
|
3012
|
+
m("createPackage", "environmentName", n), m("createPackage", "_package", e);
|
|
3005
3013
|
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
3006
3014
|
let o;
|
|
3007
3015
|
c && (o = c.baseOptions);
|
|
@@ -3022,7 +3030,7 @@ const ct = {
|
|
|
3022
3030
|
* @throws {RequiredError}
|
|
3023
3031
|
*/
|
|
3024
3032
|
deletePackage: async (n, e, r = {}) => {
|
|
3025
|
-
|
|
3033
|
+
m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
|
|
3026
3034
|
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
3027
3035
|
let o;
|
|
3028
3036
|
c && (o = c.baseOptions);
|
|
@@ -3045,7 +3053,7 @@ const ct = {
|
|
|
3045
3053
|
* @throws {RequiredError}
|
|
3046
3054
|
*/
|
|
3047
3055
|
getPackage: async (n, e, r, a, t = {}) => {
|
|
3048
|
-
|
|
3056
|
+
m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
|
|
3049
3057
|
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
|
|
3050
3058
|
let l;
|
|
3051
3059
|
c && (l = c.baseOptions);
|
|
@@ -3065,7 +3073,7 @@ const ct = {
|
|
|
3065
3073
|
* @throws {RequiredError}
|
|
3066
3074
|
*/
|
|
3067
3075
|
listPackages: async (n, e = {}) => {
|
|
3068
|
-
|
|
3076
|
+
m("listPackages", "environmentName", n);
|
|
3069
3077
|
const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
3070
3078
|
let t;
|
|
3071
3079
|
c && (t = c.baseOptions);
|
|
@@ -3087,7 +3095,7 @@ const ct = {
|
|
|
3087
3095
|
* @throws {RequiredError}
|
|
3088
3096
|
*/
|
|
3089
3097
|
updatePackage: async (n, e, r, a = {}) => {
|
|
3090
|
-
|
|
3098
|
+
m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", r);
|
|
3091
3099
|
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
3092
3100
|
let s;
|
|
3093
3101
|
c && (s = c.baseOptions);
|
|
@@ -3113,7 +3121,7 @@ const ct = {
|
|
|
3113
3121
|
*/
|
|
3114
3122
|
async createPackage(e, r, a) {
|
|
3115
3123
|
const t = await n.createPackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
|
|
3116
|
-
return (l, i) => O(t,
|
|
3124
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
3117
3125
|
},
|
|
3118
3126
|
/**
|
|
3119
3127
|
* 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.
|
|
@@ -3125,7 +3133,7 @@ const ct = {
|
|
|
3125
3133
|
*/
|
|
3126
3134
|
async deletePackage(e, r, a) {
|
|
3127
3135
|
const t = await n.deletePackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
|
|
3128
|
-
return (l, i) => O(t,
|
|
3136
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
3129
3137
|
},
|
|
3130
3138
|
/**
|
|
3131
3139
|
* Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
|
|
@@ -3139,7 +3147,7 @@ const ct = {
|
|
|
3139
3147
|
*/
|
|
3140
3148
|
async getPackage(e, r, a, t, o) {
|
|
3141
3149
|
const s = await n.getPackage(e, r, a, t, o), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
|
|
3142
|
-
return (d, p) => O(s,
|
|
3150
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
3143
3151
|
},
|
|
3144
3152
|
/**
|
|
3145
3153
|
* 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`.
|
|
@@ -3150,7 +3158,7 @@ const ct = {
|
|
|
3150
3158
|
*/
|
|
3151
3159
|
async listPackages(e, r) {
|
|
3152
3160
|
const a = await n.listPackages(e, r), t = c?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
|
|
3153
|
-
return (s, l) => O(a,
|
|
3161
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
3154
3162
|
},
|
|
3155
3163
|
/**
|
|
3156
3164
|
* 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.
|
|
@@ -3163,7 +3171,7 @@ const ct = {
|
|
|
3163
3171
|
*/
|
|
3164
3172
|
async updatePackage(e, r, a, t) {
|
|
3165
3173
|
const o = await n.updatePackage(e, r, a, t), s = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[s]?.url;
|
|
3166
|
-
return (i, d) => O(o,
|
|
3174
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
3167
3175
|
}
|
|
3168
3176
|
};
|
|
3169
3177
|
}, it = function(c, n, e) {
|
|
@@ -3356,7 +3364,7 @@ const $e = function(c) {
|
|
|
3356
3364
|
* @throws {RequiredError}
|
|
3357
3365
|
*/
|
|
3358
3366
|
updateTheme: async (n, e = {}) => {
|
|
3359
|
-
|
|
3367
|
+
m("updateTheme", "theme", n);
|
|
3360
3368
|
const r = "/theme", a = new URL(r, b);
|
|
3361
3369
|
let t;
|
|
3362
3370
|
c && (t = c.baseOptions);
|
|
@@ -3380,7 +3388,7 @@ const $e = function(c) {
|
|
|
3380
3388
|
*/
|
|
3381
3389
|
async deleteTheme(e) {
|
|
3382
3390
|
const r = await n.deleteTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
3383
|
-
return (o, s) => O(r,
|
|
3391
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3384
3392
|
},
|
|
3385
3393
|
/**
|
|
3386
3394
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -3390,7 +3398,7 @@ const $e = function(c) {
|
|
|
3390
3398
|
*/
|
|
3391
3399
|
async getStatus(e) {
|
|
3392
3400
|
const r = await n.getStatus(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[a]?.url;
|
|
3393
|
-
return (o, s) => O(r,
|
|
3401
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3394
3402
|
},
|
|
3395
3403
|
/**
|
|
3396
3404
|
* 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.
|
|
@@ -3400,7 +3408,7 @@ const $e = function(c) {
|
|
|
3400
3408
|
*/
|
|
3401
3409
|
async getTheme(e) {
|
|
3402
3410
|
const r = await n.getTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getTheme"]?.[a]?.url;
|
|
3403
|
-
return (o, s) => O(r,
|
|
3411
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3404
3412
|
},
|
|
3405
3413
|
/**
|
|
3406
3414
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3411,7 +3419,7 @@ const $e = function(c) {
|
|
|
3411
3419
|
*/
|
|
3412
3420
|
async updateTheme(e, r) {
|
|
3413
3421
|
const a = await n.updateTheme(e, r), t = c?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[t]?.url;
|
|
3414
|
-
return (s, l) => O(a,
|
|
3422
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
3415
3423
|
}
|
|
3416
3424
|
};
|
|
3417
3425
|
}, dt = function(c, n, e) {
|
|
@@ -3499,7 +3507,7 @@ class qe extends I {
|
|
|
3499
3507
|
return M(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
|
|
3500
3508
|
}
|
|
3501
3509
|
}
|
|
3502
|
-
const
|
|
3510
|
+
const De = function(c) {
|
|
3503
3511
|
return {
|
|
3504
3512
|
/**
|
|
3505
3513
|
* 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.
|
|
@@ -3527,7 +3535,7 @@ const ze = function(c) {
|
|
|
3527
3535
|
* @throws {RequiredError}
|
|
3528
3536
|
*/
|
|
3529
3537
|
startWatching: async (n, e = {}) => {
|
|
3530
|
-
|
|
3538
|
+
m("startWatching", "startWatchRequest", n);
|
|
3531
3539
|
const r = "/watch-mode/start", a = new URL(r, b);
|
|
3532
3540
|
let t;
|
|
3533
3541
|
c && (t = c.baseOptions);
|
|
@@ -3566,7 +3574,7 @@ const ze = function(c) {
|
|
|
3566
3574
|
* @throws {RequiredError}
|
|
3567
3575
|
*/
|
|
3568
3576
|
streamPackageEvents: async (n, e, r = {}) => {
|
|
3569
|
-
|
|
3577
|
+
m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
|
|
3570
3578
|
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
3571
3579
|
let o;
|
|
3572
3580
|
c && (o = c.baseOptions);
|
|
@@ -3580,7 +3588,7 @@ const ze = function(c) {
|
|
|
3580
3588
|
}
|
|
3581
3589
|
};
|
|
3582
3590
|
}, f = function(c) {
|
|
3583
|
-
const n =
|
|
3591
|
+
const n = De(c);
|
|
3584
3592
|
return {
|
|
3585
3593
|
/**
|
|
3586
3594
|
* 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.
|
|
@@ -3590,7 +3598,7 @@ const ze = function(c) {
|
|
|
3590
3598
|
*/
|
|
3591
3599
|
async getWatchStatus(e) {
|
|
3592
3600
|
const r = await n.getWatchStatus(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3593
|
-
return (o, s) => O(r,
|
|
3601
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3594
3602
|
},
|
|
3595
3603
|
/**
|
|
3596
3604
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -3601,7 +3609,7 @@ const ze = function(c) {
|
|
|
3601
3609
|
*/
|
|
3602
3610
|
async startWatching(e, r) {
|
|
3603
3611
|
const a = await n.startWatching(e, r), t = c?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
|
|
3604
|
-
return (s, l) => O(a,
|
|
3612
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
3605
3613
|
},
|
|
3606
3614
|
/**
|
|
3607
3615
|
* 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.
|
|
@@ -3611,7 +3619,7 @@ const ze = function(c) {
|
|
|
3611
3619
|
*/
|
|
3612
3620
|
async stopWatching(e) {
|
|
3613
3621
|
const r = await n.stopWatching(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3614
|
-
return (o, s) => O(r,
|
|
3622
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3615
3623
|
},
|
|
3616
3624
|
/**
|
|
3617
3625
|
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
@@ -3623,7 +3631,7 @@ const ze = function(c) {
|
|
|
3623
3631
|
*/
|
|
3624
3632
|
async streamPackageEvents(e, r, a) {
|
|
3625
3633
|
const t = await n.streamPackageEvents(e, r, a), o = c?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
3626
|
-
return (l, i) => O(t,
|
|
3634
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
3627
3635
|
}
|
|
3628
3636
|
};
|
|
3629
3637
|
}, pt = function(c, n, e) {
|
|
@@ -3670,7 +3678,7 @@ const ze = function(c) {
|
|
|
3670
3678
|
}
|
|
3671
3679
|
};
|
|
3672
3680
|
};
|
|
3673
|
-
class
|
|
3681
|
+
class ze extends I {
|
|
3674
3682
|
/**
|
|
3675
3683
|
* 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.
|
|
3676
3684
|
* @summary Get watch mode status
|
|
@@ -3806,7 +3814,7 @@ const je = new se({
|
|
|
3806
3814
|
throwOnError: !1
|
|
3807
3815
|
}
|
|
3808
3816
|
}
|
|
3809
|
-
}),
|
|
3817
|
+
}), mt = {
|
|
3810
3818
|
staleTime: 300 * 1e3,
|
|
3811
3819
|
refetchOnWindowFocus: !1,
|
|
3812
3820
|
refetchOnReconnect: !1
|
|
@@ -3829,9 +3837,9 @@ function _e(c) {
|
|
|
3829
3837
|
function We() {
|
|
3830
3838
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3831
3839
|
}
|
|
3832
|
-
|
|
3840
|
+
h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3833
3841
|
const ae = G(void 0), Ge = (c, n) => {
|
|
3834
|
-
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r =
|
|
3842
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = h.create({
|
|
3835
3843
|
baseURL: c || e,
|
|
3836
3844
|
withCredentials: !0,
|
|
3837
3845
|
timeout: 6e5
|
|
@@ -3856,9 +3864,9 @@ const ae = G(void 0), Ge = (c, n) => {
|
|
|
3856
3864
|
e,
|
|
3857
3865
|
r
|
|
3858
3866
|
),
|
|
3859
|
-
watchMode: new
|
|
3867
|
+
watchMode: new ze(a, e, r)
|
|
3860
3868
|
};
|
|
3861
|
-
},
|
|
3869
|
+
}, ht = (c) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...c }) }), Ye = ({
|
|
3862
3870
|
children: c,
|
|
3863
3871
|
getAccessToken: n,
|
|
3864
3872
|
baseURL: e,
|
|
@@ -3923,7 +3931,7 @@ const ae = G(void 0), Ge = (c, n) => {
|
|
|
3923
3931
|
};
|
|
3924
3932
|
export {
|
|
3925
3933
|
Ce as $,
|
|
3926
|
-
|
|
3934
|
+
ma as A,
|
|
3927
3935
|
Wa as B,
|
|
3928
3936
|
ua as C,
|
|
3929
3937
|
Oa as D,
|
|
@@ -3939,18 +3947,18 @@ export {
|
|
|
3939
3947
|
Ua as N,
|
|
3940
3948
|
Se as O,
|
|
3941
3949
|
Ea as P,
|
|
3942
|
-
|
|
3950
|
+
Da as Q,
|
|
3943
3951
|
ja as R,
|
|
3944
|
-
|
|
3952
|
+
ht as S,
|
|
3945
3953
|
Ja as T,
|
|
3946
3954
|
ye as U,
|
|
3947
3955
|
X as V,
|
|
3948
3956
|
Xa as W,
|
|
3949
3957
|
Za as X,
|
|
3950
3958
|
ke as Y,
|
|
3951
|
-
|
|
3959
|
+
z as Z,
|
|
3952
3960
|
et as _,
|
|
3953
|
-
|
|
3961
|
+
ha as a,
|
|
3954
3962
|
Ie as a0,
|
|
3955
3963
|
Z as a1,
|
|
3956
3964
|
at as a2,
|
|
@@ -3962,7 +3970,7 @@ export {
|
|
|
3962
3970
|
Ne as a8,
|
|
3963
3971
|
N as a9,
|
|
3964
3972
|
pt as aA,
|
|
3965
|
-
|
|
3973
|
+
ze as aB,
|
|
3966
3974
|
Le as aC,
|
|
3967
3975
|
Pe as aD,
|
|
3968
3976
|
pa as aE,
|
|
@@ -3976,7 +3984,7 @@ export {
|
|
|
3976
3984
|
W as aM,
|
|
3977
3985
|
be as aN,
|
|
3978
3986
|
Ve as aO,
|
|
3979
|
-
|
|
3987
|
+
mt as aP,
|
|
3980
3988
|
oa as aQ,
|
|
3981
3989
|
ia as aR,
|
|
3982
3990
|
da as aS,
|
|
@@ -4006,7 +4014,7 @@ export {
|
|
|
4006
4014
|
M as av,
|
|
4007
4015
|
dt as aw,
|
|
4008
4016
|
qe as ax,
|
|
4009
|
-
|
|
4017
|
+
De as ay,
|
|
4010
4018
|
f as az,
|
|
4011
4019
|
ga as b,
|
|
4012
4020
|
Pa as c,
|
|
@@ -4029,7 +4037,7 @@ export {
|
|
|
4029
4037
|
$a as t,
|
|
4030
4038
|
ut as u,
|
|
4031
4039
|
qa as v,
|
|
4032
|
-
|
|
4040
|
+
za as w,
|
|
4033
4041
|
La as x,
|
|
4034
4042
|
Ha as y,
|
|
4035
4043
|
_a as z
|