@malloy-publisher/sdk 0.5.0 → 0.6.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/{DocumentStorage-B_MMJ0Ot.cjs.js → DocumentStorage-D7yF4_T3.cjs.js} +2 -2
- package/dist/{DocumentStorage-B04sZ5Ie.es.js → DocumentStorage-DfzLF1L2.es.js} +2 -2
- package/dist/{RenderedResult-DVuGhatg.cjs.js → RenderedResult-ChkvK7b2.cjs.js} +1 -1
- package/dist/{RenderedResult-BB7eokcf.es.js → RenderedResult-DSgqZUiN.es.js} +2 -2
- package/dist/{ServerProvider-Do-GBvpn.es.js → ServerProvider-CS7nj4MF.es.js} +143 -136
- package/dist/ServerProvider-CuYLH_Yi.cjs.js +1 -0
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +2 -2
- package/dist/client/api.d.ts +52 -8
- 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,8 +412,15 @@ 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
|
-
Partition: "partition",
|
|
417
424
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
418
425
|
PublicSurfaceUnknown: "public_surface_unknown"
|
|
419
426
|
}, Wa = {
|
|
@@ -444,7 +451,7 @@ const V = function(c, ...n) {
|
|
|
444
451
|
* @throws {RequiredError}
|
|
445
452
|
*/
|
|
446
453
|
createConnection: async (n, e, r, a = {}) => {
|
|
447
|
-
|
|
454
|
+
m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", r);
|
|
448
455
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
449
456
|
let s;
|
|
450
457
|
c && (s = c.baseOptions);
|
|
@@ -465,7 +472,7 @@ const V = function(c, ...n) {
|
|
|
465
472
|
* @throws {RequiredError}
|
|
466
473
|
*/
|
|
467
474
|
deleteConnection: async (n, e, r = {}) => {
|
|
468
|
-
|
|
475
|
+
m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
|
|
469
476
|
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
470
477
|
let o;
|
|
471
478
|
c && (o = c.baseOptions);
|
|
@@ -486,7 +493,7 @@ const V = function(c, ...n) {
|
|
|
486
493
|
* @throws {RequiredError}
|
|
487
494
|
*/
|
|
488
495
|
getConnection: async (n, e, r = {}) => {
|
|
489
|
-
|
|
496
|
+
m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
|
|
490
497
|
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
491
498
|
let o;
|
|
492
499
|
c && (o = c.baseOptions);
|
|
@@ -509,7 +516,7 @@ const V = function(c, ...n) {
|
|
|
509
516
|
* @throws {RequiredError}
|
|
510
517
|
*/
|
|
511
518
|
getTable: async (n, e, r, a, t = {}) => {
|
|
512
|
-
|
|
519
|
+
m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", r), m("getTable", "tablePath", a);
|
|
513
520
|
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
521
|
let l;
|
|
515
522
|
c && (l = c.baseOptions);
|
|
@@ -533,7 +540,7 @@ const V = function(c, ...n) {
|
|
|
533
540
|
* @throws {RequiredError}
|
|
534
541
|
*/
|
|
535
542
|
getTableInPackage: async (n, e, r, a, t, o = {}) => {
|
|
536
|
-
|
|
543
|
+
m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", r), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", t);
|
|
537
544
|
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
545
|
let i;
|
|
539
546
|
c && (i = c.baseOptions);
|
|
@@ -553,7 +560,7 @@ const V = function(c, ...n) {
|
|
|
553
560
|
* @throws {RequiredError}
|
|
554
561
|
*/
|
|
555
562
|
listConnections: async (n, e = {}) => {
|
|
556
|
-
|
|
563
|
+
m("listConnections", "environmentName", n);
|
|
557
564
|
const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
558
565
|
let t;
|
|
559
566
|
c && (t = c.baseOptions);
|
|
@@ -574,7 +581,7 @@ const V = function(c, ...n) {
|
|
|
574
581
|
* @throws {RequiredError}
|
|
575
582
|
*/
|
|
576
583
|
listSchemas: async (n, e, r = {}) => {
|
|
577
|
-
|
|
584
|
+
m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
|
|
578
585
|
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
579
586
|
let o;
|
|
580
587
|
c && (o = c.baseOptions);
|
|
@@ -596,7 +603,7 @@ const V = function(c, ...n) {
|
|
|
596
603
|
* @throws {RequiredError}
|
|
597
604
|
*/
|
|
598
605
|
listSchemasInPackage: async (n, e, r, a = {}) => {
|
|
599
|
-
|
|
606
|
+
m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", r);
|
|
600
607
|
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
608
|
let s;
|
|
602
609
|
c && (s = c.baseOptions);
|
|
@@ -619,7 +626,7 @@ const V = function(c, ...n) {
|
|
|
619
626
|
* @throws {RequiredError}
|
|
620
627
|
*/
|
|
621
628
|
listTables: async (n, e, r, a, t = {}) => {
|
|
622
|
-
|
|
629
|
+
m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", r);
|
|
623
630
|
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
631
|
let l;
|
|
625
632
|
c && (l = c.baseOptions);
|
|
@@ -643,7 +650,7 @@ const V = function(c, ...n) {
|
|
|
643
650
|
* @throws {RequiredError}
|
|
644
651
|
*/
|
|
645
652
|
listTablesInPackage: async (n, e, r, a, t, o = {}) => {
|
|
646
|
-
|
|
653
|
+
m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", r), m("listTablesInPackage", "schemaName", a);
|
|
647
654
|
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
655
|
let i;
|
|
649
656
|
c && (i = c.baseOptions);
|
|
@@ -665,7 +672,7 @@ const V = function(c, ...n) {
|
|
|
665
672
|
* @throws {RequiredError}
|
|
666
673
|
*/
|
|
667
674
|
postQuerydata: async (n, e, r, a = {}) => {
|
|
668
|
-
|
|
675
|
+
m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", r);
|
|
669
676
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
670
677
|
let s;
|
|
671
678
|
c && (s = c.baseOptions);
|
|
@@ -688,7 +695,7 @@ const V = function(c, ...n) {
|
|
|
688
695
|
* @throws {RequiredError}
|
|
689
696
|
*/
|
|
690
697
|
postQuerydataInPackage: async (n, e, r, a, t = {}) => {
|
|
691
|
-
|
|
698
|
+
m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", r), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
692
699
|
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
700
|
let l;
|
|
694
701
|
c && (l = c.baseOptions);
|
|
@@ -710,7 +717,7 @@ const V = function(c, ...n) {
|
|
|
710
717
|
* @throws {RequiredError}
|
|
711
718
|
*/
|
|
712
719
|
postSqlsource: async (n, e, r, a = {}) => {
|
|
713
|
-
|
|
720
|
+
m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", r);
|
|
714
721
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
715
722
|
let s;
|
|
716
723
|
c && (s = c.baseOptions);
|
|
@@ -733,7 +740,7 @@ const V = function(c, ...n) {
|
|
|
733
740
|
* @throws {RequiredError}
|
|
734
741
|
*/
|
|
735
742
|
postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
|
|
736
|
-
|
|
743
|
+
m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", r), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
737
744
|
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
745
|
let l;
|
|
739
746
|
c && (l = c.baseOptions);
|
|
@@ -755,7 +762,7 @@ const V = function(c, ...n) {
|
|
|
755
762
|
* @throws {RequiredError}
|
|
756
763
|
*/
|
|
757
764
|
postTemporarytable: async (n, e, r, a = {}) => {
|
|
758
|
-
|
|
765
|
+
m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", r);
|
|
759
766
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
760
767
|
let s;
|
|
761
768
|
c && (s = c.baseOptions);
|
|
@@ -778,7 +785,7 @@ const V = function(c, ...n) {
|
|
|
778
785
|
* @throws {RequiredError}
|
|
779
786
|
*/
|
|
780
787
|
postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
|
|
781
|
-
|
|
788
|
+
m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", r), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
782
789
|
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
790
|
let l;
|
|
784
791
|
c && (l = c.baseOptions);
|
|
@@ -800,7 +807,7 @@ const V = function(c, ...n) {
|
|
|
800
807
|
* @throws {RequiredError}
|
|
801
808
|
*/
|
|
802
809
|
updateConnection: async (n, e, r, a = {}) => {
|
|
803
|
-
|
|
810
|
+
m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", r);
|
|
804
811
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
805
812
|
let s;
|
|
806
813
|
c && (s = c.baseOptions);
|
|
@@ -827,7 +834,7 @@ const V = function(c, ...n) {
|
|
|
827
834
|
*/
|
|
828
835
|
async createConnection(e, r, a, t) {
|
|
829
836
|
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,
|
|
837
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
831
838
|
},
|
|
832
839
|
/**
|
|
833
840
|
* Permanently deletes a database connection from the environment.
|
|
@@ -839,7 +846,7 @@ const V = function(c, ...n) {
|
|
|
839
846
|
*/
|
|
840
847
|
async deleteConnection(e, r, a) {
|
|
841
848
|
const t = await n.deleteConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
842
|
-
return (l, i) => O(t,
|
|
849
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
843
850
|
},
|
|
844
851
|
/**
|
|
845
852
|
* 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 +858,7 @@ const V = function(c, ...n) {
|
|
|
851
858
|
*/
|
|
852
859
|
async getConnection(e, r, a) {
|
|
853
860
|
const t = await n.getConnection(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
854
|
-
return (l, i) => O(t,
|
|
861
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
855
862
|
},
|
|
856
863
|
/**
|
|
857
864
|
* 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 +872,7 @@ const V = function(c, ...n) {
|
|
|
865
872
|
*/
|
|
866
873
|
async getTable(e, r, a, t, o) {
|
|
867
874
|
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,
|
|
875
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
869
876
|
},
|
|
870
877
|
/**
|
|
871
878
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -880,7 +887,7 @@ const V = function(c, ...n) {
|
|
|
880
887
|
*/
|
|
881
888
|
async getTableInPackage(e, r, a, t, o, s) {
|
|
882
889
|
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,
|
|
890
|
+
return (p, u) => O(l, h, g, c)(p, d || u);
|
|
884
891
|
},
|
|
885
892
|
/**
|
|
886
893
|
* 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 +898,7 @@ const V = function(c, ...n) {
|
|
|
891
898
|
*/
|
|
892
899
|
async listConnections(e, r) {
|
|
893
900
|
const a = await n.listConnections(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
894
|
-
return (s, l) => O(a,
|
|
901
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
895
902
|
},
|
|
896
903
|
/**
|
|
897
904
|
* 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 +910,7 @@ const V = function(c, ...n) {
|
|
|
903
910
|
*/
|
|
904
911
|
async listSchemas(e, r, a) {
|
|
905
912
|
const t = await n.listSchemas(e, r, a), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
906
|
-
return (l, i) => O(t,
|
|
913
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
907
914
|
},
|
|
908
915
|
/**
|
|
909
916
|
* 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 +923,7 @@ const V = function(c, ...n) {
|
|
|
916
923
|
*/
|
|
917
924
|
async listSchemasInPackage(e, r, a, t) {
|
|
918
925
|
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,
|
|
926
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
920
927
|
},
|
|
921
928
|
/**
|
|
922
929
|
* 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 +937,7 @@ const V = function(c, ...n) {
|
|
|
930
937
|
*/
|
|
931
938
|
async listTables(e, r, a, t, o) {
|
|
932
939
|
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,
|
|
940
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
934
941
|
},
|
|
935
942
|
/**
|
|
936
943
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -945,7 +952,7 @@ const V = function(c, ...n) {
|
|
|
945
952
|
*/
|
|
946
953
|
async listTablesInPackage(e, r, a, t, o, s) {
|
|
947
954
|
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,
|
|
955
|
+
return (p, u) => O(l, h, g, c)(p, d || u);
|
|
949
956
|
},
|
|
950
957
|
/**
|
|
951
958
|
* 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 +965,7 @@ const V = function(c, ...n) {
|
|
|
958
965
|
*/
|
|
959
966
|
async postQuerydata(e, r, a, t) {
|
|
960
967
|
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,
|
|
968
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
962
969
|
},
|
|
963
970
|
/**
|
|
964
971
|
* 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 +979,7 @@ const V = function(c, ...n) {
|
|
|
972
979
|
*/
|
|
973
980
|
async postQuerydataInPackage(e, r, a, t, o) {
|
|
974
981
|
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,
|
|
982
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
976
983
|
},
|
|
977
984
|
/**
|
|
978
985
|
* 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 +992,7 @@ const V = function(c, ...n) {
|
|
|
985
992
|
*/
|
|
986
993
|
async postSqlsource(e, r, a, t) {
|
|
987
994
|
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,
|
|
995
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
989
996
|
},
|
|
990
997
|
/**
|
|
991
998
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -999,7 +1006,7 @@ const V = function(c, ...n) {
|
|
|
999
1006
|
*/
|
|
1000
1007
|
async postSqlsourceInPackage(e, r, a, t, o) {
|
|
1001
1008
|
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,
|
|
1009
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
1003
1010
|
},
|
|
1004
1011
|
/**
|
|
1005
1012
|
* 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 +1019,7 @@ const V = function(c, ...n) {
|
|
|
1012
1019
|
*/
|
|
1013
1020
|
async postTemporarytable(e, r, a, t) {
|
|
1014
1021
|
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,
|
|
1022
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1016
1023
|
},
|
|
1017
1024
|
/**
|
|
1018
1025
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1026,7 +1033,7 @@ const V = function(c, ...n) {
|
|
|
1026
1033
|
*/
|
|
1027
1034
|
async postTemporarytableInPackage(e, r, a, t, o) {
|
|
1028
1035
|
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,
|
|
1036
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
1030
1037
|
},
|
|
1031
1038
|
/**
|
|
1032
1039
|
* Updates the configuration of an existing database connection.
|
|
@@ -1039,7 +1046,7 @@ const V = function(c, ...n) {
|
|
|
1039
1046
|
*/
|
|
1040
1047
|
async updateConnection(e, r, a, t) {
|
|
1041
1048
|
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,
|
|
1049
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1043
1050
|
}
|
|
1044
1051
|
};
|
|
1045
1052
|
}, Ka = function(c, n, e) {
|
|
@@ -1492,7 +1499,7 @@ const ye = function(c) {
|
|
|
1492
1499
|
* @throws {RequiredError}
|
|
1493
1500
|
*/
|
|
1494
1501
|
testConnectionConfiguration: async (n, e = {}) => {
|
|
1495
|
-
|
|
1502
|
+
m("testConnectionConfiguration", "connection", n);
|
|
1496
1503
|
const r = "/connections/test", a = new URL(r, b);
|
|
1497
1504
|
let t;
|
|
1498
1505
|
c && (t = c.baseOptions);
|
|
@@ -1517,7 +1524,7 @@ const ye = function(c) {
|
|
|
1517
1524
|
*/
|
|
1518
1525
|
async testConnectionConfiguration(e, r) {
|
|
1519
1526
|
const a = await n.testConnectionConfiguration(e, r), t = c?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
1520
|
-
return (s, l) => O(a,
|
|
1527
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
1521
1528
|
}
|
|
1522
1529
|
};
|
|
1523
1530
|
}, Xa = function(c, n, e) {
|
|
@@ -1561,7 +1568,7 @@ const ke = function(c) {
|
|
|
1561
1568
|
* @throws {RequiredError}
|
|
1562
1569
|
*/
|
|
1563
1570
|
getDashboard: async (n, e, r, a, t = {}) => {
|
|
1564
|
-
|
|
1571
|
+
m("getDashboard", "environmentName", n), m("getDashboard", "packageName", e), m("getDashboard", "dashboardName", r);
|
|
1565
1572
|
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
1573
|
let l;
|
|
1567
1574
|
c && (l = c.baseOptions);
|
|
@@ -1583,7 +1590,7 @@ const ke = function(c) {
|
|
|
1583
1590
|
* @throws {RequiredError}
|
|
1584
1591
|
*/
|
|
1585
1592
|
listDashboards: async (n, e, r, a = {}) => {
|
|
1586
|
-
|
|
1593
|
+
m("listDashboards", "environmentName", n), m("listDashboards", "packageName", e);
|
|
1587
1594
|
const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
1588
1595
|
let s;
|
|
1589
1596
|
c && (s = c.baseOptions);
|
|
@@ -1596,7 +1603,7 @@ const ke = function(c) {
|
|
|
1596
1603
|
};
|
|
1597
1604
|
}
|
|
1598
1605
|
};
|
|
1599
|
-
},
|
|
1606
|
+
}, z = function(c) {
|
|
1600
1607
|
const n = ke(c);
|
|
1601
1608
|
return {
|
|
1602
1609
|
/**
|
|
@@ -1611,7 +1618,7 @@ const ke = function(c) {
|
|
|
1611
1618
|
*/
|
|
1612
1619
|
async getDashboard(e, r, a, t, o) {
|
|
1613
1620
|
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,
|
|
1621
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
1615
1622
|
},
|
|
1616
1623
|
/**
|
|
1617
1624
|
* 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 +1631,11 @@ const ke = function(c) {
|
|
|
1624
1631
|
*/
|
|
1625
1632
|
async listDashboards(e, r, a, t) {
|
|
1626
1633
|
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,
|
|
1634
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1628
1635
|
}
|
|
1629
1636
|
};
|
|
1630
1637
|
}, et = function(c, n, e) {
|
|
1631
|
-
const r =
|
|
1638
|
+
const r = z(c);
|
|
1632
1639
|
return {
|
|
1633
1640
|
/**
|
|
1634
1641
|
* 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 +1677,7 @@ class Ce extends I {
|
|
|
1670
1677
|
* @memberof DashboardsApi
|
|
1671
1678
|
*/
|
|
1672
1679
|
getDashboard(n, e, r, a, t) {
|
|
1673
|
-
return
|
|
1680
|
+
return z(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1674
1681
|
}
|
|
1675
1682
|
/**
|
|
1676
1683
|
* 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 +1690,7 @@ class Ce extends I {
|
|
|
1683
1690
|
* @memberof DashboardsApi
|
|
1684
1691
|
*/
|
|
1685
1692
|
listDashboards(n, e, r, a) {
|
|
1686
|
-
return
|
|
1693
|
+
return z(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1687
1694
|
}
|
|
1688
1695
|
}
|
|
1689
1696
|
const Ie = function(c) {
|
|
@@ -1697,7 +1704,7 @@ const Ie = function(c) {
|
|
|
1697
1704
|
* @throws {RequiredError}
|
|
1698
1705
|
*/
|
|
1699
1706
|
listDataApps: async (n, e, r = {}) => {
|
|
1700
|
-
|
|
1707
|
+
m("listDataApps", "environmentName", n), m("listDataApps", "packageName", e);
|
|
1701
1708
|
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
1702
1709
|
let o;
|
|
1703
1710
|
c && (o = c.baseOptions);
|
|
@@ -1723,7 +1730,7 @@ const Ie = function(c) {
|
|
|
1723
1730
|
*/
|
|
1724
1731
|
async listDataApps(e, r, a) {
|
|
1725
1732
|
const t = await n.listDataApps(e, r, a), o = c?.serverIndex ?? 0, s = P["DataAppsApi.listDataApps"]?.[o]?.url;
|
|
1726
|
-
return (l, i) => O(t,
|
|
1733
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
1727
1734
|
}
|
|
1728
1735
|
};
|
|
1729
1736
|
}, at = function(c, n, e) {
|
|
@@ -1768,7 +1775,7 @@ const xe = function(c) {
|
|
|
1768
1775
|
* @throws {RequiredError}
|
|
1769
1776
|
*/
|
|
1770
1777
|
listDatabases: async (n, e, r, a = {}) => {
|
|
1771
|
-
|
|
1778
|
+
m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
|
|
1772
1779
|
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
1773
1780
|
let s;
|
|
1774
1781
|
c && (s = c.baseOptions);
|
|
@@ -1795,7 +1802,7 @@ const xe = function(c) {
|
|
|
1795
1802
|
*/
|
|
1796
1803
|
async listDatabases(e, r, a, t) {
|
|
1797
1804
|
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,
|
|
1805
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
1799
1806
|
}
|
|
1800
1807
|
};
|
|
1801
1808
|
}, tt = function(c, n, e) {
|
|
@@ -1840,7 +1847,7 @@ const Ne = function(c) {
|
|
|
1840
1847
|
* @throws {RequiredError}
|
|
1841
1848
|
*/
|
|
1842
1849
|
createEnvironment: async (n, e = {}) => {
|
|
1843
|
-
|
|
1850
|
+
m("createEnvironment", "environment", n);
|
|
1844
1851
|
const r = "/environments", a = new URL(r, b);
|
|
1845
1852
|
let t;
|
|
1846
1853
|
c && (t = c.baseOptions);
|
|
@@ -1860,7 +1867,7 @@ const Ne = function(c) {
|
|
|
1860
1867
|
* @throws {RequiredError}
|
|
1861
1868
|
*/
|
|
1862
1869
|
deleteEnvironment: async (n, e = {}) => {
|
|
1863
|
-
|
|
1870
|
+
m("deleteEnvironment", "environmentName", n);
|
|
1864
1871
|
const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
1865
1872
|
let t;
|
|
1866
1873
|
c && (t = c.baseOptions);
|
|
@@ -1881,7 +1888,7 @@ const Ne = function(c) {
|
|
|
1881
1888
|
* @throws {RequiredError}
|
|
1882
1889
|
*/
|
|
1883
1890
|
getEnvironment: async (n, e, r = {}) => {
|
|
1884
|
-
|
|
1891
|
+
m("getEnvironment", "environmentName", n);
|
|
1885
1892
|
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
1886
1893
|
let o;
|
|
1887
1894
|
c && (o = c.baseOptions);
|
|
@@ -1920,7 +1927,7 @@ const Ne = function(c) {
|
|
|
1920
1927
|
* @throws {RequiredError}
|
|
1921
1928
|
*/
|
|
1922
1929
|
updateEnvironment: async (n, e, r = {}) => {
|
|
1923
|
-
|
|
1930
|
+
m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
|
|
1924
1931
|
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
1925
1932
|
let o;
|
|
1926
1933
|
c && (o = c.baseOptions);
|
|
@@ -1945,7 +1952,7 @@ const Ne = function(c) {
|
|
|
1945
1952
|
*/
|
|
1946
1953
|
async createEnvironment(e, r) {
|
|
1947
1954
|
const a = await n.createEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
|
|
1948
|
-
return (s, l) => O(a,
|
|
1955
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
1949
1956
|
},
|
|
1950
1957
|
/**
|
|
1951
1958
|
* 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 +1963,7 @@ const Ne = function(c) {
|
|
|
1956
1963
|
*/
|
|
1957
1964
|
async deleteEnvironment(e, r) {
|
|
1958
1965
|
const a = await n.deleteEnvironment(e, r), t = c?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
|
|
1959
|
-
return (s, l) => O(a,
|
|
1966
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
1960
1967
|
},
|
|
1961
1968
|
/**
|
|
1962
1969
|
* 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 +1975,7 @@ const Ne = function(c) {
|
|
|
1968
1975
|
*/
|
|
1969
1976
|
async getEnvironment(e, r, a) {
|
|
1970
1977
|
const t = await n.getEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1971
|
-
return (l, i) => O(t,
|
|
1978
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
1972
1979
|
},
|
|
1973
1980
|
/**
|
|
1974
1981
|
* 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 +1985,7 @@ const Ne = function(c) {
|
|
|
1978
1985
|
*/
|
|
1979
1986
|
async listEnvironments(e) {
|
|
1980
1987
|
const r = await n.listEnvironments(e), a = c?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1981
|
-
return (o, s) => O(r,
|
|
1988
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
1982
1989
|
},
|
|
1983
1990
|
/**
|
|
1984
1991
|
* 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 +1997,7 @@ const Ne = function(c) {
|
|
|
1990
1997
|
*/
|
|
1991
1998
|
async updateEnvironment(e, r, a) {
|
|
1992
1999
|
const t = await n.updateEnvironment(e, r, a), o = c?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1993
|
-
return (l, i) => O(t,
|
|
2000
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
1994
2001
|
}
|
|
1995
2002
|
};
|
|
1996
2003
|
}, rt = function(c, n, e) {
|
|
@@ -2119,7 +2126,7 @@ const Ue = function(c) {
|
|
|
2119
2126
|
* @throws {RequiredError}
|
|
2120
2127
|
*/
|
|
2121
2128
|
createMaterialization: async (n, e, r, a = {}) => {
|
|
2122
|
-
|
|
2129
|
+
m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
|
|
2123
2130
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2124
2131
|
let s;
|
|
2125
2132
|
c && (s = c.baseOptions);
|
|
@@ -2142,7 +2149,7 @@ const Ue = function(c) {
|
|
|
2142
2149
|
* @throws {RequiredError}
|
|
2143
2150
|
*/
|
|
2144
2151
|
deleteMaterialization: async (n, e, r, a, t = {}) => {
|
|
2145
|
-
|
|
2152
|
+
m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", r);
|
|
2146
2153
|
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
2154
|
let l;
|
|
2148
2155
|
c && (l = c.baseOptions);
|
|
@@ -2164,7 +2171,7 @@ const Ue = function(c) {
|
|
|
2164
2171
|
* @throws {RequiredError}
|
|
2165
2172
|
*/
|
|
2166
2173
|
getMaterialization: async (n, e, r, a = {}) => {
|
|
2167
|
-
|
|
2174
|
+
m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", r);
|
|
2168
2175
|
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
2176
|
let s;
|
|
2170
2177
|
c && (s = c.baseOptions);
|
|
@@ -2187,7 +2194,7 @@ const Ue = function(c) {
|
|
|
2187
2194
|
* @throws {RequiredError}
|
|
2188
2195
|
*/
|
|
2189
2196
|
listMaterializations: async (n, e, r, a, t = {}) => {
|
|
2190
|
-
|
|
2197
|
+
m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
|
|
2191
2198
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
|
|
2192
2199
|
let l;
|
|
2193
2200
|
c && (l = c.baseOptions);
|
|
@@ -2210,7 +2217,7 @@ const Ue = function(c) {
|
|
|
2210
2217
|
* @throws {RequiredError}
|
|
2211
2218
|
*/
|
|
2212
2219
|
materializationAction: async (n, e, r, a, t = {}) => {
|
|
2213
|
-
|
|
2220
|
+
m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", r), m("materializationAction", "action", a);
|
|
2214
2221
|
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
2222
|
let l;
|
|
2216
2223
|
c && (l = c.baseOptions);
|
|
@@ -2237,7 +2244,7 @@ const Ue = function(c) {
|
|
|
2237
2244
|
*/
|
|
2238
2245
|
async createMaterialization(e, r, a, t) {
|
|
2239
2246
|
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,
|
|
2247
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2241
2248
|
},
|
|
2242
2249
|
/**
|
|
2243
2250
|
* 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 +2258,7 @@ const Ue = function(c) {
|
|
|
2251
2258
|
*/
|
|
2252
2259
|
async deleteMaterialization(e, r, a, t, o) {
|
|
2253
2260
|
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,
|
|
2261
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2255
2262
|
},
|
|
2256
2263
|
/**
|
|
2257
2264
|
*
|
|
@@ -2264,7 +2271,7 @@ const Ue = function(c) {
|
|
|
2264
2271
|
*/
|
|
2265
2272
|
async getMaterialization(e, r, a, t) {
|
|
2266
2273
|
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,
|
|
2274
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2268
2275
|
},
|
|
2269
2276
|
/**
|
|
2270
2277
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2278,7 +2285,7 @@ const Ue = function(c) {
|
|
|
2278
2285
|
*/
|
|
2279
2286
|
async listMaterializations(e, r, a, t, o) {
|
|
2280
2287
|
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,
|
|
2288
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2282
2289
|
},
|
|
2283
2290
|
/**
|
|
2284
2291
|
* 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 +2299,7 @@ const Ue = function(c) {
|
|
|
2292
2299
|
*/
|
|
2293
2300
|
async materializationAction(e, r, a, t, o) {
|
|
2294
2301
|
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,
|
|
2302
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2296
2303
|
}
|
|
2297
2304
|
};
|
|
2298
2305
|
}, nt = function(c, n, e) {
|
|
@@ -2448,7 +2455,7 @@ const ot = {
|
|
|
2448
2455
|
* @throws {RequiredError}
|
|
2449
2456
|
*/
|
|
2450
2457
|
compileModelSource: async (n, e, r, a, t = {}) => {
|
|
2451
|
-
|
|
2458
|
+
m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", r), m("compileModelSource", "compileRequest", a);
|
|
2452
2459
|
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
2460
|
let l;
|
|
2454
2461
|
c && (l = c.baseOptions);
|
|
@@ -2471,7 +2478,7 @@ const ot = {
|
|
|
2471
2478
|
* @throws {RequiredError}
|
|
2472
2479
|
*/
|
|
2473
2480
|
executeQueryModel: async (n, e, r, a, t = {}) => {
|
|
2474
|
-
|
|
2481
|
+
m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", r), m("executeQueryModel", "queryRequest", a);
|
|
2475
2482
|
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
2483
|
let l;
|
|
2477
2484
|
c && (l = c.baseOptions);
|
|
@@ -2494,7 +2501,7 @@ const ot = {
|
|
|
2494
2501
|
* @throws {RequiredError}
|
|
2495
2502
|
*/
|
|
2496
2503
|
getModel: async (n, e, r, a, t = {}) => {
|
|
2497
|
-
|
|
2504
|
+
m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", r);
|
|
2498
2505
|
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
2506
|
let l;
|
|
2500
2507
|
c && (l = c.baseOptions);
|
|
@@ -2516,7 +2523,7 @@ const ot = {
|
|
|
2516
2523
|
* @throws {RequiredError}
|
|
2517
2524
|
*/
|
|
2518
2525
|
listModels: async (n, e, r, a = {}) => {
|
|
2519
|
-
|
|
2526
|
+
m("listModels", "environmentName", n), m("listModels", "packageName", e);
|
|
2520
2527
|
const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2521
2528
|
let s;
|
|
2522
2529
|
c && (s = c.baseOptions);
|
|
@@ -2540,7 +2547,7 @@ const ot = {
|
|
|
2540
2547
|
* @throws {RequiredError}
|
|
2541
2548
|
*/
|
|
2542
2549
|
updateModelSource: async (n, e, r, a, t, o = {}) => {
|
|
2543
|
-
|
|
2550
|
+
m("updateModelSource", "environmentName", n), m("updateModelSource", "packageName", e), m("updateModelSource", "path", r), m("updateModelSource", "modelSourceWriteRequest", a);
|
|
2544
2551
|
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
2552
|
let i;
|
|
2546
2553
|
c && (i = c.baseOptions);
|
|
@@ -2568,7 +2575,7 @@ const ot = {
|
|
|
2568
2575
|
*/
|
|
2569
2576
|
async compileModelSource(e, r, a, t, o) {
|
|
2570
2577
|
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,
|
|
2578
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2572
2579
|
},
|
|
2573
2580
|
/**
|
|
2574
2581
|
* 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 +2589,7 @@ const ot = {
|
|
|
2582
2589
|
*/
|
|
2583
2590
|
async executeQueryModel(e, r, a, t, o) {
|
|
2584
2591
|
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,
|
|
2592
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2586
2593
|
},
|
|
2587
2594
|
/**
|
|
2588
2595
|
* 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 +2603,7 @@ const ot = {
|
|
|
2596
2603
|
*/
|
|
2597
2604
|
async getModel(e, r, a, t, o) {
|
|
2598
2605
|
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,
|
|
2606
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2600
2607
|
},
|
|
2601
2608
|
/**
|
|
2602
2609
|
* 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 +2616,7 @@ const ot = {
|
|
|
2609
2616
|
*/
|
|
2610
2617
|
async listModels(e, r, a, t) {
|
|
2611
2618
|
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,
|
|
2619
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2613
2620
|
},
|
|
2614
2621
|
/**
|
|
2615
2622
|
* 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 +2631,7 @@ const ot = {
|
|
|
2624
2631
|
*/
|
|
2625
2632
|
async updateModelSource(e, r, a, t, o, s) {
|
|
2626
2633
|
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,
|
|
2634
|
+
return (p, u) => O(l, h, g, c)(p, d || u);
|
|
2628
2635
|
}
|
|
2629
2636
|
};
|
|
2630
2637
|
}, st = function(c, n, e) {
|
|
@@ -2786,7 +2793,7 @@ const fe = function(c) {
|
|
|
2786
2793
|
* @throws {RequiredError}
|
|
2787
2794
|
*/
|
|
2788
2795
|
executeNotebookCell: async (n, e, r, a, t, o, s, l, i = {}) => {
|
|
2789
|
-
|
|
2796
|
+
m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", r), m("executeNotebookCell", "cellIndex", a);
|
|
2790
2797
|
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
2798
|
let u;
|
|
2792
2799
|
c && (u = c.baseOptions);
|
|
@@ -2809,7 +2816,7 @@ const fe = function(c) {
|
|
|
2809
2816
|
* @throws {RequiredError}
|
|
2810
2817
|
*/
|
|
2811
2818
|
getNotebook: async (n, e, r, a, t = {}) => {
|
|
2812
|
-
|
|
2819
|
+
m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", r);
|
|
2813
2820
|
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
2821
|
let l;
|
|
2815
2822
|
c && (l = c.baseOptions);
|
|
@@ -2831,7 +2838,7 @@ const fe = function(c) {
|
|
|
2831
2838
|
* @throws {RequiredError}
|
|
2832
2839
|
*/
|
|
2833
2840
|
listNotebooks: async (n, e, r, a = {}) => {
|
|
2834
|
-
|
|
2841
|
+
m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
|
|
2835
2842
|
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2836
2843
|
let s;
|
|
2837
2844
|
c && (s = c.baseOptions);
|
|
@@ -2863,7 +2870,7 @@ const fe = function(c) {
|
|
|
2863
2870
|
*/
|
|
2864
2871
|
async executeNotebookCell(e, r, a, t, o, s, l, i, d) {
|
|
2865
2872
|
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,
|
|
2873
|
+
return (E, A) => O(p, h, g, c)(E, k || A);
|
|
2867
2874
|
},
|
|
2868
2875
|
/**
|
|
2869
2876
|
* 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 +2884,7 @@ const fe = function(c) {
|
|
|
2877
2884
|
*/
|
|
2878
2885
|
async getNotebook(e, r, a, t, o) {
|
|
2879
2886
|
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,
|
|
2887
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2881
2888
|
},
|
|
2882
2889
|
/**
|
|
2883
2890
|
* 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 +2897,7 @@ const fe = function(c) {
|
|
|
2890
2897
|
*/
|
|
2891
2898
|
async listNotebooks(e, r, a, t) {
|
|
2892
2899
|
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,
|
|
2900
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
2894
2901
|
}
|
|
2895
2902
|
};
|
|
2896
2903
|
}, lt = function(c, n, e) {
|
|
@@ -3001,7 +3008,7 @@ const ct = {
|
|
|
3001
3008
|
* @throws {RequiredError}
|
|
3002
3009
|
*/
|
|
3003
3010
|
createPackage: async (n, e, r = {}) => {
|
|
3004
|
-
|
|
3011
|
+
m("createPackage", "environmentName", n), m("createPackage", "_package", e);
|
|
3005
3012
|
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
3006
3013
|
let o;
|
|
3007
3014
|
c && (o = c.baseOptions);
|
|
@@ -3022,7 +3029,7 @@ const ct = {
|
|
|
3022
3029
|
* @throws {RequiredError}
|
|
3023
3030
|
*/
|
|
3024
3031
|
deletePackage: async (n, e, r = {}) => {
|
|
3025
|
-
|
|
3032
|
+
m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
|
|
3026
3033
|
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
3027
3034
|
let o;
|
|
3028
3035
|
c && (o = c.baseOptions);
|
|
@@ -3045,7 +3052,7 @@ const ct = {
|
|
|
3045
3052
|
* @throws {RequiredError}
|
|
3046
3053
|
*/
|
|
3047
3054
|
getPackage: async (n, e, r, a, t = {}) => {
|
|
3048
|
-
|
|
3055
|
+
m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
|
|
3049
3056
|
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
|
|
3050
3057
|
let l;
|
|
3051
3058
|
c && (l = c.baseOptions);
|
|
@@ -3065,7 +3072,7 @@ const ct = {
|
|
|
3065
3072
|
* @throws {RequiredError}
|
|
3066
3073
|
*/
|
|
3067
3074
|
listPackages: async (n, e = {}) => {
|
|
3068
|
-
|
|
3075
|
+
m("listPackages", "environmentName", n);
|
|
3069
3076
|
const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
3070
3077
|
let t;
|
|
3071
3078
|
c && (t = c.baseOptions);
|
|
@@ -3087,7 +3094,7 @@ const ct = {
|
|
|
3087
3094
|
* @throws {RequiredError}
|
|
3088
3095
|
*/
|
|
3089
3096
|
updatePackage: async (n, e, r, a = {}) => {
|
|
3090
|
-
|
|
3097
|
+
m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", r);
|
|
3091
3098
|
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
3092
3099
|
let s;
|
|
3093
3100
|
c && (s = c.baseOptions);
|
|
@@ -3113,7 +3120,7 @@ const ct = {
|
|
|
3113
3120
|
*/
|
|
3114
3121
|
async createPackage(e, r, a) {
|
|
3115
3122
|
const t = await n.createPackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
|
|
3116
|
-
return (l, i) => O(t,
|
|
3123
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
3117
3124
|
},
|
|
3118
3125
|
/**
|
|
3119
3126
|
* 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 +3132,7 @@ const ct = {
|
|
|
3125
3132
|
*/
|
|
3126
3133
|
async deletePackage(e, r, a) {
|
|
3127
3134
|
const t = await n.deletePackage(e, r, a), o = c?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
|
|
3128
|
-
return (l, i) => O(t,
|
|
3135
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
3129
3136
|
},
|
|
3130
3137
|
/**
|
|
3131
3138
|
* 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 +3146,7 @@ const ct = {
|
|
|
3139
3146
|
*/
|
|
3140
3147
|
async getPackage(e, r, a, t, o) {
|
|
3141
3148
|
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,
|
|
3149
|
+
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
3143
3150
|
},
|
|
3144
3151
|
/**
|
|
3145
3152
|
* 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 +3157,7 @@ const ct = {
|
|
|
3150
3157
|
*/
|
|
3151
3158
|
async listPackages(e, r) {
|
|
3152
3159
|
const a = await n.listPackages(e, r), t = c?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
|
|
3153
|
-
return (s, l) => O(a,
|
|
3160
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
3154
3161
|
},
|
|
3155
3162
|
/**
|
|
3156
3163
|
* 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 +3170,7 @@ const ct = {
|
|
|
3163
3170
|
*/
|
|
3164
3171
|
async updatePackage(e, r, a, t) {
|
|
3165
3172
|
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,
|
|
3173
|
+
return (i, d) => O(o, h, g, c)(i, l || d);
|
|
3167
3174
|
}
|
|
3168
3175
|
};
|
|
3169
3176
|
}, it = function(c, n, e) {
|
|
@@ -3356,7 +3363,7 @@ const $e = function(c) {
|
|
|
3356
3363
|
* @throws {RequiredError}
|
|
3357
3364
|
*/
|
|
3358
3365
|
updateTheme: async (n, e = {}) => {
|
|
3359
|
-
|
|
3366
|
+
m("updateTheme", "theme", n);
|
|
3360
3367
|
const r = "/theme", a = new URL(r, b);
|
|
3361
3368
|
let t;
|
|
3362
3369
|
c && (t = c.baseOptions);
|
|
@@ -3380,7 +3387,7 @@ const $e = function(c) {
|
|
|
3380
3387
|
*/
|
|
3381
3388
|
async deleteTheme(e) {
|
|
3382
3389
|
const r = await n.deleteTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
3383
|
-
return (o, s) => O(r,
|
|
3390
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3384
3391
|
},
|
|
3385
3392
|
/**
|
|
3386
3393
|
* 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 +3397,7 @@ const $e = function(c) {
|
|
|
3390
3397
|
*/
|
|
3391
3398
|
async getStatus(e) {
|
|
3392
3399
|
const r = await n.getStatus(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[a]?.url;
|
|
3393
|
-
return (o, s) => O(r,
|
|
3400
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3394
3401
|
},
|
|
3395
3402
|
/**
|
|
3396
3403
|
* 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 +3407,7 @@ const $e = function(c) {
|
|
|
3400
3407
|
*/
|
|
3401
3408
|
async getTheme(e) {
|
|
3402
3409
|
const r = await n.getTheme(e), a = c?.serverIndex ?? 0, t = P["PublisherApi.getTheme"]?.[a]?.url;
|
|
3403
|
-
return (o, s) => O(r,
|
|
3410
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3404
3411
|
},
|
|
3405
3412
|
/**
|
|
3406
3413
|
* 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 +3418,7 @@ const $e = function(c) {
|
|
|
3411
3418
|
*/
|
|
3412
3419
|
async updateTheme(e, r) {
|
|
3413
3420
|
const a = await n.updateTheme(e, r), t = c?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[t]?.url;
|
|
3414
|
-
return (s, l) => O(a,
|
|
3421
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
3415
3422
|
}
|
|
3416
3423
|
};
|
|
3417
3424
|
}, dt = function(c, n, e) {
|
|
@@ -3499,7 +3506,7 @@ class qe extends I {
|
|
|
3499
3506
|
return M(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
|
|
3500
3507
|
}
|
|
3501
3508
|
}
|
|
3502
|
-
const
|
|
3509
|
+
const De = function(c) {
|
|
3503
3510
|
return {
|
|
3504
3511
|
/**
|
|
3505
3512
|
* 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 +3534,7 @@ const ze = function(c) {
|
|
|
3527
3534
|
* @throws {RequiredError}
|
|
3528
3535
|
*/
|
|
3529
3536
|
startWatching: async (n, e = {}) => {
|
|
3530
|
-
|
|
3537
|
+
m("startWatching", "startWatchRequest", n);
|
|
3531
3538
|
const r = "/watch-mode/start", a = new URL(r, b);
|
|
3532
3539
|
let t;
|
|
3533
3540
|
c && (t = c.baseOptions);
|
|
@@ -3566,7 +3573,7 @@ const ze = function(c) {
|
|
|
3566
3573
|
* @throws {RequiredError}
|
|
3567
3574
|
*/
|
|
3568
3575
|
streamPackageEvents: async (n, e, r = {}) => {
|
|
3569
|
-
|
|
3576
|
+
m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
|
|
3570
3577
|
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
3571
3578
|
let o;
|
|
3572
3579
|
c && (o = c.baseOptions);
|
|
@@ -3580,7 +3587,7 @@ const ze = function(c) {
|
|
|
3580
3587
|
}
|
|
3581
3588
|
};
|
|
3582
3589
|
}, f = function(c) {
|
|
3583
|
-
const n =
|
|
3590
|
+
const n = De(c);
|
|
3584
3591
|
return {
|
|
3585
3592
|
/**
|
|
3586
3593
|
* 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 +3597,7 @@ const ze = function(c) {
|
|
|
3590
3597
|
*/
|
|
3591
3598
|
async getWatchStatus(e) {
|
|
3592
3599
|
const r = await n.getWatchStatus(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3593
|
-
return (o, s) => O(r,
|
|
3600
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3594
3601
|
},
|
|
3595
3602
|
/**
|
|
3596
3603
|
* 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 +3608,7 @@ const ze = function(c) {
|
|
|
3601
3608
|
*/
|
|
3602
3609
|
async startWatching(e, r) {
|
|
3603
3610
|
const a = await n.startWatching(e, r), t = c?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
|
|
3604
|
-
return (s, l) => O(a,
|
|
3611
|
+
return (s, l) => O(a, h, g, c)(s, o || l);
|
|
3605
3612
|
},
|
|
3606
3613
|
/**
|
|
3607
3614
|
* 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 +3618,7 @@ const ze = function(c) {
|
|
|
3611
3618
|
*/
|
|
3612
3619
|
async stopWatching(e) {
|
|
3613
3620
|
const r = await n.stopWatching(e), a = c?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3614
|
-
return (o, s) => O(r,
|
|
3621
|
+
return (o, s) => O(r, h, g, c)(o, t || s);
|
|
3615
3622
|
},
|
|
3616
3623
|
/**
|
|
3617
3624
|
* 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 +3630,7 @@ const ze = function(c) {
|
|
|
3623
3630
|
*/
|
|
3624
3631
|
async streamPackageEvents(e, r, a) {
|
|
3625
3632
|
const t = await n.streamPackageEvents(e, r, a), o = c?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
3626
|
-
return (l, i) => O(t,
|
|
3633
|
+
return (l, i) => O(t, h, g, c)(l, s || i);
|
|
3627
3634
|
}
|
|
3628
3635
|
};
|
|
3629
3636
|
}, pt = function(c, n, e) {
|
|
@@ -3670,7 +3677,7 @@ const ze = function(c) {
|
|
|
3670
3677
|
}
|
|
3671
3678
|
};
|
|
3672
3679
|
};
|
|
3673
|
-
class
|
|
3680
|
+
class ze extends I {
|
|
3674
3681
|
/**
|
|
3675
3682
|
* 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
3683
|
* @summary Get watch mode status
|
|
@@ -3806,7 +3813,7 @@ const je = new se({
|
|
|
3806
3813
|
throwOnError: !1
|
|
3807
3814
|
}
|
|
3808
3815
|
}
|
|
3809
|
-
}),
|
|
3816
|
+
}), mt = {
|
|
3810
3817
|
staleTime: 300 * 1e3,
|
|
3811
3818
|
refetchOnWindowFocus: !1,
|
|
3812
3819
|
refetchOnReconnect: !1
|
|
@@ -3829,9 +3836,9 @@ function _e(c) {
|
|
|
3829
3836
|
function We() {
|
|
3830
3837
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3831
3838
|
}
|
|
3832
|
-
|
|
3839
|
+
h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3833
3840
|
const ae = G(void 0), Ge = (c, n) => {
|
|
3834
|
-
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r =
|
|
3841
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = h.create({
|
|
3835
3842
|
baseURL: c || e,
|
|
3836
3843
|
withCredentials: !0,
|
|
3837
3844
|
timeout: 6e5
|
|
@@ -3856,9 +3863,9 @@ const ae = G(void 0), Ge = (c, n) => {
|
|
|
3856
3863
|
e,
|
|
3857
3864
|
r
|
|
3858
3865
|
),
|
|
3859
|
-
watchMode: new
|
|
3866
|
+
watchMode: new ze(a, e, r)
|
|
3860
3867
|
};
|
|
3861
|
-
},
|
|
3868
|
+
}, ht = (c) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...c }) }), Ye = ({
|
|
3862
3869
|
children: c,
|
|
3863
3870
|
getAccessToken: n,
|
|
3864
3871
|
baseURL: e,
|
|
@@ -3923,7 +3930,7 @@ const ae = G(void 0), Ge = (c, n) => {
|
|
|
3923
3930
|
};
|
|
3924
3931
|
export {
|
|
3925
3932
|
Ce as $,
|
|
3926
|
-
|
|
3933
|
+
ma as A,
|
|
3927
3934
|
Wa as B,
|
|
3928
3935
|
ua as C,
|
|
3929
3936
|
Oa as D,
|
|
@@ -3939,18 +3946,18 @@ export {
|
|
|
3939
3946
|
Ua as N,
|
|
3940
3947
|
Se as O,
|
|
3941
3948
|
Ea as P,
|
|
3942
|
-
|
|
3949
|
+
Da as Q,
|
|
3943
3950
|
ja as R,
|
|
3944
|
-
|
|
3951
|
+
ht as S,
|
|
3945
3952
|
Ja as T,
|
|
3946
3953
|
ye as U,
|
|
3947
3954
|
X as V,
|
|
3948
3955
|
Xa as W,
|
|
3949
3956
|
Za as X,
|
|
3950
3957
|
ke as Y,
|
|
3951
|
-
|
|
3958
|
+
z as Z,
|
|
3952
3959
|
et as _,
|
|
3953
|
-
|
|
3960
|
+
ha as a,
|
|
3954
3961
|
Ie as a0,
|
|
3955
3962
|
Z as a1,
|
|
3956
3963
|
at as a2,
|
|
@@ -3962,7 +3969,7 @@ export {
|
|
|
3962
3969
|
Ne as a8,
|
|
3963
3970
|
N as a9,
|
|
3964
3971
|
pt as aA,
|
|
3965
|
-
|
|
3972
|
+
ze as aB,
|
|
3966
3973
|
Le as aC,
|
|
3967
3974
|
Pe as aD,
|
|
3968
3975
|
pa as aE,
|
|
@@ -3976,7 +3983,7 @@ export {
|
|
|
3976
3983
|
W as aM,
|
|
3977
3984
|
be as aN,
|
|
3978
3985
|
Ve as aO,
|
|
3979
|
-
|
|
3986
|
+
mt as aP,
|
|
3980
3987
|
oa as aQ,
|
|
3981
3988
|
ia as aR,
|
|
3982
3989
|
da as aS,
|
|
@@ -4006,7 +4013,7 @@ export {
|
|
|
4006
4013
|
M as av,
|
|
4007
4014
|
dt as aw,
|
|
4008
4015
|
qe as ax,
|
|
4009
|
-
|
|
4016
|
+
De as ay,
|
|
4010
4017
|
f as az,
|
|
4011
4018
|
ga as b,
|
|
4012
4019
|
Pa as c,
|
|
@@ -4029,7 +4036,7 @@ export {
|
|
|
4029
4036
|
$a as t,
|
|
4030
4037
|
ut as u,
|
|
4031
4038
|
qa as v,
|
|
4032
|
-
|
|
4039
|
+
za as w,
|
|
4033
4040
|
La as x,
|
|
4034
4041
|
Ha as y,
|
|
4035
4042
|
_a as z
|