@malloy-publisher/sdk 0.18.2 → 0.18.4

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.
@@ -52,14 +52,14 @@ const I = {
52
52
  environment: I.emerald,
53
53
  package: I.teal,
54
54
  connection: I.orange
55
- }, Ta = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Na = j(Re)({
55
+ }, Ta = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ea = j(Re)({
56
56
  display: "flex",
57
57
  flexDirection: "column",
58
58
  height: "100%",
59
59
  boxShadow: "none",
60
60
  border: "none",
61
61
  backgroundColor: "transparent"
62
- }), Ea = j(xe)({
62
+ }), Na = j(xe)({
63
63
  display: "flex",
64
64
  flexDirection: "column",
65
65
  padding: "0",
@@ -80,7 +80,7 @@ const I = {
80
80
  height: "75vh",
81
81
  width: "100%",
82
82
  overflowY: "auto"
83
- }), Ne = {
83
+ }), Ee = {
84
84
  light: {
85
85
  accent: I.blue,
86
86
  accentHover: "#1d4ed8",
@@ -91,10 +91,10 @@ const I = {
91
91
  accentHover: "#93c5fd",
92
92
  accentContrast: "#0f172a"
93
93
  }
94
- }, Ee = {
94
+ }, Ne = {
95
95
  light: "#ffffff",
96
96
  dark: "#0f172a"
97
- }, fe = 3, E = (l) => {
97
+ }, fe = 3, N = (l) => {
98
98
  const r = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(l.trim());
99
99
  if (!r) return;
100
100
  const a = r[1].length === 3 ? [...r[1]].map((n) => n + n).join("") : r[1];
@@ -110,26 +110,26 @@ const I = {
110
110
  return (a + 0.05) / (n + 0.05);
111
111
  };
112
112
  function Ba(l, r) {
113
- const a = E(l), n = E(r);
113
+ const a = N(l), n = N(r);
114
114
  return a && n ? _(a, n) : void 0;
115
115
  }
116
116
  const we = [15, 23, 42];
117
117
  function K(l, r, a = fe) {
118
- const n = E(l), e = E(r);
118
+ const n = N(l), e = N(r);
119
119
  if (!n || !e || _(n, e) >= a) return l;
120
120
  const t = W(e) < 0.5 ? 255 : 0;
121
121
  for (let o = 0.05; o < 1; o += 0.05) {
122
- const s = E(G(n, t, o));
122
+ const s = N(G(n, t, o));
123
123
  if (s && _(s, e) >= a) return le(s);
124
124
  }
125
125
  return t === 255 ? "#ffffff" : "#000000";
126
126
  }
127
- function se(l, r, a = Ee[r]) {
128
- const n = Ne[r];
127
+ function se(l, r, a = Ne[r]) {
128
+ const n = Ee[r];
129
129
  if (!l || l.toLowerCase() === I.blue) return n;
130
- if (!E(l))
130
+ if (!N(l))
131
131
  return r === "light" ? { ...n, accent: l, accentHover: l } : n;
132
- const e = K(l, a), t = E(e), o = r === "dark" ? G(t, 255, 0.25) : G(t, 0, 0.2), s = _(t, [255, 255, 255]), i = _(t, we);
132
+ const e = K(l, a), t = N(e), o = r === "dark" ? G(t, 255, 0.25) : G(t, 0, 0.2), s = _(t, [255, 255, 255]), i = _(t, we);
133
133
  return {
134
134
  accent: e,
135
135
  accentHover: o,
@@ -420,14 +420,14 @@ const P = {}, v = "https://example.com", m = function(l, r, a) {
420
420
  if (a == null)
421
421
  throw new De(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
422
422
  };
423
- function Y(l, r, a = "") {
424
- r != null && (typeof r == "object" ? Array.isArray(r) || r instanceof Set ? r.forEach((n) => Y(l, n, a)) : Object.keys(r).forEach(
425
- (n) => Y(l, r[n], `${a}${a !== "" ? "." : ""}${n}`)
423
+ function J(l, r, a = "") {
424
+ r != null && (typeof r == "object" ? Array.isArray(r) || r instanceof Set ? r.forEach((n) => J(l, n, a)) : Object.keys(r).forEach(
425
+ (n) => J(l, r[n], `${a}${a !== "" ? "." : ""}${n}`)
426
426
  ) : l.has(a) ? l.append(a, r) : l.set(a, r));
427
427
  }
428
428
  const V = function(l, ...r) {
429
429
  const a = new URLSearchParams(l.search);
430
- Y(a, r), l.search = a.toString();
430
+ J(a, r), l.search = a.toString();
431
431
  }, ze = function(l, r) {
432
432
  return r instanceof Set ? Array.from(r) : r;
433
433
  }, A = function(l, r, a) {
@@ -484,10 +484,10 @@ const V = function(l, ...r) {
484
484
  }, $a = {
485
485
  Ok: "ok",
486
486
  Failed: "failed"
487
- }, Ya = {
487
+ }, Ja = {
488
488
  Grid: "grid",
489
489
  Linear: "linear"
490
- }, Ja = {
490
+ }, Ya = {
491
491
  Dashboard: "dashboard",
492
492
  Notebook: "notebook"
493
493
  }, Za = {
@@ -499,202 +499,206 @@ const V = function(l, ...r) {
499
499
  Embedded: "embedded",
500
500
  Materialized: "materialized"
501
501
  }, at = {
502
+ One: "one",
503
+ Many: "many",
504
+ Cross: "cross"
505
+ }, tt = {
502
506
  Equal: "equal",
503
507
  In: "in",
504
508
  Like: "like",
505
509
  GreaterThan: "greater_than",
506
510
  LessThan: "less_than"
507
- }, tt = {
511
+ }, nt = {
508
512
  Live: "live",
509
513
  StaleOk: "stale_ok",
510
514
  Fail: "fail"
511
- }, nt = {
515
+ }, rt = {
512
516
  Select: "select",
513
517
  Multiselect: "multiselect"
514
- }, rt = {
518
+ }, st = {
515
519
  Merge: "merge",
516
520
  RangeReplace: "range_replace"
517
- }, st = {
521
+ }, ot = {
518
522
  Debug: "debug",
519
523
  Info: "info",
520
524
  Warn: "warn",
521
525
  Error: "error"
522
- }, ot = {
526
+ }, it = {
523
527
  Persist: "persist",
524
528
  Materialize: "materialize",
525
529
  View: "view",
526
530
  Query: "query",
527
531
  Rollup: "rollup",
528
532
  Preaggregate: "preaggregate"
529
- }, it = {
533
+ }, lt = {
530
534
  Reused: "reused",
531
535
  Recomputed: "recomputed"
532
- }, lt = {
536
+ }, ct = {
533
537
  Live: "live",
534
538
  StaleOk: "stale_ok",
535
539
  Fail: "fail"
536
- }, ct = {
540
+ }, pt = {
537
541
  Delta: "delta",
538
542
  Full: "full",
539
543
  None: "none"
540
- }, pt = {
544
+ }, dt = {
541
545
  AuthorName: "author_name",
542
546
  DestinationMissing: "destination_missing",
543
547
  MayBeServed: "may_be_served"
544
- }, dt = {
548
+ }, mt = {
545
549
  Pending: "PENDING",
546
550
  ManifestRowsReady: "MANIFEST_ROWS_READY",
547
551
  ManifestFileReady: "MANIFEST_FILE_READY",
548
552
  Failed: "FAILED",
549
553
  Cancelled: "CANCELLED"
550
- }, mt = {
554
+ }, ht = {
551
555
  Compile: "compile",
552
556
  Extraction: "extraction"
553
- }, ht = {
557
+ }, ut = {
554
558
  Markdown: "markdown",
555
559
  Code: "code"
556
- }, ut = {
560
+ }, gt = {
557
561
  Markdown: "markdown",
558
562
  Query: "query",
559
563
  Definition: "definition"
560
- }, gt = {
564
+ }, Pt = {
561
565
  Archive: "archive",
562
566
  Unarchive: "unarchive"
563
- }, Pt = {
567
+ }, vt = {
564
568
  Version: "version",
565
569
  Package: "package"
566
- }, vt = {
570
+ }, Vt = {
567
571
  Declared: "declared",
568
572
  All: "all"
569
- }, Vt = {
573
+ }, St = {
570
574
  Unbound: "unbound",
571
575
  Bound: "bound",
572
576
  BindFailed: "bind_failed",
573
577
  LiveFallback: "live_fallback"
574
- }, St = {
578
+ }, bt = {
575
579
  Lexical: "lexical",
576
580
  Indexing: "indexing",
577
581
  Ready: "ready",
578
582
  Error: "error",
579
583
  Cooldown: "cooldown",
580
584
  TooManyEntities: "too-many-entities"
581
- }, bt = {
585
+ }, Ot = {
582
586
  Cooldown: "cooldown",
583
587
  TooManyEntities: "too-many-entities"
584
- }, Ot = {
588
+ }, kt = {
585
589
  Keyphrase: "keyphrase",
586
590
  SourceSummary: "source_summary"
587
- }, kt = {
591
+ }, At = {
588
592
  Archive: "archive",
589
593
  Unarchive: "unarchive"
590
- }, At = {
594
+ }, yt = {
591
595
  Unbound: "unbound",
592
596
  Bound: "bound",
593
597
  BindFailed: "bind_failed",
594
598
  LiveFallback: "live_fallback"
595
- }, yt = {
599
+ }, It = {
596
600
  Archive: "archive",
597
601
  Unarchive: "unarchive"
598
- }, It = {
602
+ }, Ct = {
599
603
  Version: "version",
600
604
  Package: "package"
601
- }, Ct = {
605
+ }, Rt = {
602
606
  Declared: "declared",
603
607
  All: "all"
604
- }, Rt = {
608
+ }, xt = {
605
609
  Unbound: "unbound",
606
610
  Bound: "bound",
607
611
  BindFailed: "bind_failed",
608
612
  LiveFallback: "live_fallback"
609
- }, xt = {
613
+ }, Ut = {
610
614
  Archive: "archive",
611
615
  Unarchive: "unarchive"
612
- }, Ut = {
616
+ }, Tt = {
613
617
  Unbound: "unbound",
614
618
  Bound: "bound",
615
619
  BindFailed: "bind_failed",
616
620
  LiveFallback: "live_fallback"
617
- }, Tt = {
621
+ }, Et = {
618
622
  Archive: "archive",
619
623
  Unarchive: "unarchive"
620
624
  }, Nt = {
621
625
  Archive: "archive",
622
626
  Unarchive: "unarchive"
623
- }, Et = {
627
+ }, ft = {
624
628
  Error: "error",
625
629
  Warn: "warn"
626
- }, ft = {
630
+ }, wt = {
627
631
  Persist: "persist",
628
632
  Materialize: "materialize",
629
633
  View: "view",
630
634
  Query: "query",
631
635
  Rollup: "rollup",
632
636
  Preaggregate: "preaggregate"
633
- }, wt = {
637
+ }, Mt = {
634
638
  Disable: "disable",
635
639
  NoVerify: "no-verify",
636
640
  VerifyCa: "verify-ca",
637
641
  VerifyFull: "verify-full"
638
- }, Mt = {
642
+ }, Ft = {
639
643
  Interactive: "interactive",
640
644
  Materialize: "materialize",
641
645
  Index: "index",
642
646
  Ops: "ops"
643
- }, Ft = {
647
+ }, Bt = {
644
648
  Persist: "persist",
645
649
  Materialize: "materialize",
646
650
  View: "view",
647
651
  Query: "query",
648
652
  Rollup: "rollup"
649
- }, Bt = {
653
+ }, jt = {
650
654
  Used: "used",
651
655
  Skipped: "skipped"
652
- }, jt = {
656
+ }, Lt = {
653
657
  Persist: "persist",
654
658
  Materialize: "materialize",
655
659
  View: "view",
656
660
  Query: "query",
657
661
  Rollup: "rollup"
658
- }, Lt = {
662
+ }, Dt = {
659
663
  Sibling: "sibling",
660
664
  Below: "below"
661
- }, Dt = {
665
+ }, zt = {
662
666
  Persist: "persist",
663
667
  Materialize: "materialize",
664
668
  View: "view",
665
669
  Query: "query",
666
670
  Rollup: "rollup"
667
- }, zt = {
671
+ }, _t = {
668
672
  Database: "database",
669
673
  Storage: "storage"
670
- }, _t = {
674
+ }, Qt = {
671
675
  View: "view",
672
676
  Query: "query",
673
677
  Rollup: "rollup",
674
678
  Materialized: "materialized",
675
679
  Live: "live"
676
- }, Qt = {
680
+ }, qt = {
677
681
  Query: "query",
678
682
  ServerDefault: "server_default"
679
- }, qt = {
683
+ }, Ht = {
680
684
  Storage: "storage",
681
685
  Database: "database",
682
686
  LiveFallback: "live_fallback"
683
- }, Ht = {
687
+ }, Gt = {
684
688
  Snapshot: "SNAPSHOT",
685
689
  Copy: "COPY"
686
- }, Gt = {
690
+ }, Wt = {
687
691
  Persist: "persist",
688
692
  Materialize: "materialize",
689
693
  View: "view",
690
694
  Query: "query",
691
695
  Rollup: "rollup"
692
- }, Wt = {
696
+ }, Kt = {
693
697
  Storage: "storage",
694
698
  Database: "database",
695
699
  Preaggregate: "preaggregate",
696
700
  Colocated: "colocated"
697
- }, Kt = {
701
+ }, $t = {
698
702
  FreeParameter: "free_parameter",
699
703
  Given: "given",
700
704
  GivenInPersistedQuery: "given_in_persisted_query",
@@ -740,46 +744,46 @@ const V = function(l, ...r) {
740
744
  UnreadableGrain: "unreadable_grain",
741
745
  UpstreamUnread: "upstream_unread",
742
746
  UpstreamTableUnusable: "upstream_table_unusable"
743
- }, $t = {
747
+ }, Jt = {
744
748
  Grid: "grid",
745
749
  Linear: "linear"
746
750
  }, Yt = {
747
751
  Malloynb: "malloynb",
748
752
  Malloy: "malloy"
749
- }, Jt = {
753
+ }, Zt = {
750
754
  Grid: "grid",
751
755
  Linear: "linear"
752
- }, Zt = {
756
+ }, Xt = {
753
757
  Query: "query",
754
758
  Text: "text"
755
- }, Xt = {
759
+ }, en = {
756
760
  Publish: "publish",
757
761
  OnDemand: "on_demand",
758
762
  Scheduler: "scheduler"
759
- }, en = {
763
+ }, an = {
760
764
  Config: "config",
761
765
  CredentialChain: "credential_chain"
762
- }, an = {
766
+ }, tn = {
763
767
  Initializing: "initializing",
764
768
  Serving: "serving",
765
769
  Draining: "draining",
766
770
  Throttled: "throttled"
767
- }, tn = {
771
+ }, nn = {
768
772
  Off: "off",
769
773
  On: "on"
770
- }, nn = {
774
+ }, rn = {
771
775
  OnPublish: "on-publish",
772
776
  Explicit: "explicit"
773
- }, rn = {
777
+ }, sn = {
774
778
  Explorer: "explorer",
775
779
  Viewer: "viewer"
776
- }, sn = {
777
- Bundled: "bundled",
778
- Package: "package"
779
780
  }, on = {
780
781
  Bundled: "bundled",
781
782
  Package: "package"
782
783
  }, ln = {
784
+ Bundled: "bundled",
785
+ Package: "package"
786
+ }, cn = {
783
787
  NotBuilt: "NOT_BUILT",
784
788
  NotServed: "NOT_SERVED",
785
789
  OptedOut: "OPTED_OUT",
@@ -795,18 +799,18 @@ const V = function(l, ...r) {
795
799
  Warned: "WARNED",
796
800
  Contract: "CONTRACT",
797
801
  RunFailed: "RUN_FAILED"
798
- }, cn = {
802
+ }, pn = {
799
803
  Persist: "persist",
800
804
  Materialize: "materialize",
801
805
  View: "view",
802
806
  Query: "query",
803
807
  Rollup: "rollup",
804
808
  Preaggregate: "preaggregate"
805
- }, pn = {
809
+ }, dn = {
806
810
  Light: "light",
807
811
  Dark: "dark",
808
812
  Auto: "auto"
809
- }, dn = {
813
+ }, mn = {
810
814
  NoCatalog: "no_catalog",
811
815
  NotFound: "not_found",
812
816
  Ambiguous: "ambiguous",
@@ -931,7 +935,7 @@ const V = function(l, ...r) {
931
935
  return (c, p) => b(o, u, g, l)(c, i || p);
932
936
  }
933
937
  };
934
- }, mn = function(l, r, a) {
938
+ }, hn = function(l, r, a) {
935
939
  const n = Q(l);
936
940
  return {
937
941
  /**
@@ -1018,7 +1022,7 @@ class Qe extends C {
1018
1022
  return Q(this.configuration).listAgents(r, a, n, e).then((t) => t(this.axios, this.basePath));
1019
1023
  }
1020
1024
  }
1021
- const hn = {
1025
+ const un = {
1022
1026
  Full: "full",
1023
1027
  Summary: "summary"
1024
1028
  }, qe = function(l) {
@@ -1643,7 +1647,7 @@ const hn = {
1643
1647
  return (c, p) => b(o, u, g, l)(c, i || p);
1644
1648
  }
1645
1649
  };
1646
- }, un = function(l, r, a) {
1650
+ }, gn = function(l, r, a) {
1647
1651
  const n = y(l);
1648
1652
  return {
1649
1653
  /**
@@ -2116,7 +2120,7 @@ const Ge = function(l) {
2116
2120
  return (s, i) => b(e, u, g, l)(s, o || i);
2117
2121
  }
2118
2122
  };
2119
- }, gn = function(l, r, a) {
2123
+ }, Pn = function(l, r, a) {
2120
2124
  const n = de(l);
2121
2125
  return {
2122
2126
  /**
@@ -2131,7 +2135,7 @@ const Ge = function(l) {
2131
2135
  }
2132
2136
  };
2133
2137
  };
2134
- class Pn extends C {
2138
+ class vn extends C {
2135
2139
  /**
2136
2140
  * Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
2137
2141
  * @summary Test database connection configuration
@@ -2185,7 +2189,7 @@ const We = function(l) {
2185
2189
  return (c, p) => b(o, u, g, l)(c, i || p);
2186
2190
  }
2187
2191
  };
2188
- }, vn = function(l, r, a) {
2192
+ }, Vn = function(l, r, a) {
2189
2193
  const n = me(l);
2190
2194
  return {
2191
2195
  /**
@@ -2258,7 +2262,7 @@ const $e = function(l) {
2258
2262
  return (c, p) => b(o, u, g, l)(c, i || p);
2259
2263
  }
2260
2264
  };
2261
- }, Vn = function(l, r, a) {
2265
+ }, Sn = function(l, r, a) {
2262
2266
  const n = he(l);
2263
2267
  return {
2264
2268
  /**
@@ -2275,7 +2279,7 @@ const $e = function(l) {
2275
2279
  }
2276
2280
  };
2277
2281
  };
2278
- class Ye extends C {
2282
+ class Je extends C {
2279
2283
  /**
2280
2284
  * Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
2281
2285
  * @summary List embedded databases
@@ -2289,7 +2293,7 @@ class Ye extends C {
2289
2293
  return he(this.configuration).listDatabases(r, a, n, e).then((t) => t(this.axios, this.basePath));
2290
2294
  }
2291
2295
  }
2292
- const Je = function(l) {
2296
+ const Ye = function(l) {
2293
2297
  return {
2294
2298
  /**
2295
2299
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -2393,7 +2397,7 @@ const Je = function(l) {
2393
2397
  }
2394
2398
  };
2395
2399
  }, M = function(l) {
2396
- const r = Je(l);
2400
+ const r = Ye(l);
2397
2401
  return {
2398
2402
  /**
2399
2403
  * Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
@@ -2452,7 +2456,7 @@ const Je = function(l) {
2452
2456
  return (i, c) => b(t, u, g, l)(i, s || c);
2453
2457
  }
2454
2458
  };
2455
- }, Sn = function(l, r, a) {
2459
+ }, bn = function(l, r, a) {
2456
2460
  const n = M(l);
2457
2461
  return {
2458
2462
  /**
@@ -2796,7 +2800,7 @@ const Xe = function(l) {
2796
2800
  return (d, h) => b(i, u, g, l)(d, p || h);
2797
2801
  }
2798
2802
  };
2799
- }, bn = function(l, r, a) {
2803
+ }, On = function(l, r, a) {
2800
2804
  const n = T(l);
2801
2805
  return {
2802
2806
  /**
@@ -2965,7 +2969,7 @@ class ea extends C {
2965
2969
  return T(this.configuration).materializationAction(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
2966
2970
  }
2967
2971
  }
2968
- const On = {
2972
+ const kn = {
2969
2973
  Stop: "stop"
2970
2974
  }, aa = function(l) {
2971
2975
  return {
@@ -3171,7 +3175,7 @@ const On = {
3171
3175
  return (d, h) => b(i, u, g, l)(d, p || h);
3172
3176
  }
3173
3177
  };
3174
- }, kn = function(l, r, a) {
3178
+ }, An = function(l, r, a) {
3175
3179
  const n = F(l);
3176
3180
  return {
3177
3181
  /**
@@ -3677,7 +3681,7 @@ const na = function(l) {
3677
3681
  return (c, p) => b(o, u, g, l)(c, i || p);
3678
3682
  }
3679
3683
  };
3680
- }, An = function(l, r, a) {
3684
+ }, yn = function(l, r, a) {
3681
3685
  const n = R(l);
3682
3686
  return {
3683
3687
  /**
@@ -4048,7 +4052,7 @@ const sa = function(l) {
4048
4052
  return (s, i) => b(e, u, g, l)(s, o || i);
4049
4053
  }
4050
4054
  };
4051
- }, yn = function(l, r, a) {
4055
+ }, In = function(l, r, a) {
4052
4056
  const n = L(l);
4053
4057
  return {
4054
4058
  /**
@@ -4179,7 +4183,7 @@ const ia = function(l) {
4179
4183
  };
4180
4184
  }
4181
4185
  };
4182
- }, J = function(l) {
4186
+ }, Y = function(l) {
4183
4187
  const r = ia(l);
4184
4188
  return {
4185
4189
  /**
@@ -4210,8 +4214,8 @@ const ia = function(l) {
4210
4214
  return (c, p) => b(o, u, g, l)(c, i || p);
4211
4215
  }
4212
4216
  };
4213
- }, In = function(l, r, a) {
4214
- const n = J(l);
4217
+ }, Cn = function(l, r, a) {
4218
+ const n = Y(l);
4215
4219
  return {
4216
4220
  /**
4217
4221
  * Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells and model. Its code cells run through the same model query endpoint, using `path` as the model, where every cell compiles into one model, so a cell\'s imports and declarations are in scope.
@@ -4252,7 +4256,7 @@ class la extends C {
4252
4256
  * @throws {RequiredError}
4253
4257
  */
4254
4258
  getReport(r, a, n, e, t) {
4255
- return J(this.configuration).getReport(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4259
+ return Y(this.configuration).getReport(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4256
4260
  }
4257
4261
  /**
4258
4262
  * Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
@@ -4264,7 +4268,7 @@ class la extends C {
4264
4268
  * @throws {RequiredError}
4265
4269
  */
4266
4270
  listReports(r, a, n, e) {
4267
- return J(this.configuration).listReports(r, a, n, e).then((t) => t(this.axios, this.basePath));
4271
+ return Y(this.configuration).listReports(r, a, n, e).then((t) => t(this.axios, this.basePath));
4268
4272
  }
4269
4273
  }
4270
4274
  const ca = function(l) {
@@ -4346,7 +4350,7 @@ const ca = function(l) {
4346
4350
  return (c, p) => b(o, u, g, l)(c, i || p);
4347
4351
  }
4348
4352
  };
4349
- }, Cn = function(l, r, a) {
4353
+ }, Rn = function(l, r, a) {
4350
4354
  const n = Z(l);
4351
4355
  return {
4352
4356
  /**
@@ -4376,7 +4380,7 @@ const ca = function(l) {
4376
4380
  }
4377
4381
  };
4378
4382
  };
4379
- class Rn extends C {
4383
+ class xn extends C {
4380
4384
  /**
4381
4385
  * Returns one skill in force for this package, including its full Markdown. `skillName` is a name from the listing, exactly as spelled there; a reference file is addressed as `<skill>/<stem>`. The slash may be sent literally or as `%2F`; a literal `%` in a name must be sent as `%25`. 404 when no skill of that name is in force.
4382
4386
  * @summary Get one agent skill, with its body
@@ -4523,7 +4527,7 @@ const pa = function(l) {
4523
4527
  return (c, p) => b(o, u, g, l)(c, i || p);
4524
4528
  }
4525
4529
  };
4526
- }, xn = function(l, r, a) {
4530
+ }, Un = function(l, r, a) {
4527
4531
  const n = q(l);
4528
4532
  return {
4529
4533
  /**
@@ -4568,7 +4572,7 @@ const pa = function(l) {
4568
4572
  }
4569
4573
  };
4570
4574
  };
4571
- class Un extends C {
4575
+ class Tn extends C {
4572
4576
  /**
4573
4577
  * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
4574
4578
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
@@ -4746,7 +4750,7 @@ const da = function(l) {
4746
4750
  };
4747
4751
  }
4748
4752
  };
4749
- }, N = function(l) {
4753
+ }, E = function(l) {
4750
4754
  const r = da(l);
4751
4755
  return {
4752
4756
  /**
@@ -4829,8 +4833,8 @@ const da = function(l) {
4829
4833
  return (p, d) => b(s, u, g, l)(p, c || d);
4830
4834
  }
4831
4835
  };
4832
- }, Tn = function(l, r, a) {
4833
- const n = N(l);
4836
+ }, En = function(l, r, a) {
4837
+ const n = E(l);
4834
4838
  return {
4835
4839
  /**
4836
4840
  * Removes one version for good, where an archive only takes it out of service. The version is unloaded from memory, and its row and its files are deleted; other versions are untouched. Then, in the background, its own auto-runs still running are stopped and the tables its own auto-runs built under `scope: version` are reclaimed with their run records, as an archive reclaims them. Nothing is dropped before the delete commits, so a refused delete changes nothing. It cannot be undone, and it frees the version id: a later publish of the same version is a new version, with whatever content it carries. An archived version can be deleted too; that is how its files are reclaimed. Deleting the package\'s only version deletes the package with it (its row, run records and ledger), so no package is left with no version; while a publish of another version of the package is running, the package is left to that publish. Each table is tried once: one that could not be dropped is left. Tables another run of the package still references are kept, as is an orchestrated run (its tables, and a build of it still running), which the caller that instructed it owns. A delete is refused with 409 when: - the version is the package\'s `latest` and other versions remain (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service and archived versions remain (`reason` `VERSION_IS_LAST_ACTIVE`): a package that has versions always keeps one in service. Delete the archived versions first, or delete the package.
@@ -4918,7 +4922,7 @@ class ma extends C {
4918
4922
  * @throws {RequiredError}
4919
4923
  */
4920
4924
  deletePackageVersion(r, a, n, e) {
4921
- return N(this.configuration).deletePackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4925
+ return E(this.configuration).deletePackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4922
4926
  }
4923
4927
  /**
4924
4928
  * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
@@ -4930,7 +4934,7 @@ class ma extends C {
4930
4934
  * @throws {RequiredError}
4931
4935
  */
4932
4936
  getPackageVersion(r, a, n, e) {
4933
- return N(this.configuration).getPackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4937
+ return E(this.configuration).getPackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4934
4938
  }
4935
4939
  /**
4936
4940
  * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
@@ -4941,7 +4945,7 @@ class ma extends C {
4941
4945
  * @throws {RequiredError}
4942
4946
  */
4943
4947
  listPackageVersions(r, a, n) {
4944
- return N(this.configuration).listPackageVersions(r, a, n).then((e) => e(this.axios, this.basePath));
4948
+ return E(this.configuration).listPackageVersions(r, a, n).then((e) => e(this.axios, this.basePath));
4945
4949
  }
4946
4950
  /**
4947
4951
  * Makes the named version the package\'s `latest`: the version served to every request that names no `versionId`. Nothing is rebuilt or re-fetched; the pointer moves. Pointing it at an earlier version is a rollback, and the next publish still moves `latest` under `versionPromotion: \"on-publish\"`. This is the only way `latest` moves when the server runs with `versionPromotion: \"explicit\"`, the mode for an orchestrator that decides when a version is ready to serve. The version must exist and must not be archived (404 `VERSION_NOT_FOUND`, 410 `VERSION_ARCHIVED`), and it is loaded before the pointer moves: a version that fails to load is refused with that load\'s error, and `latest` stays where it was.
@@ -4953,7 +4957,7 @@ class ma extends C {
4953
4957
  * @throws {RequiredError}
4954
4958
  */
4955
4959
  setPackageLatestVersion(r, a, n, e) {
4956
- return N(this.configuration).setPackageLatestVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4960
+ return E(this.configuration).setPackageLatestVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4957
4961
  }
4958
4962
  /**
4959
4963
  * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. Only this version is affected. A version is owned by the host from then on once a manifest it named, by this route or by a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed with `buildInstructions` has run, even one whose commit failed. The version\'s record keeps that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live: this server never binds tables its own runs built for it, so a host can clear the binding before it drops the tables the manifest named. A reload or restart of that version keeps it live until the host binds a manifest again, and the version answers a local run without `buildInstructions` with 409. Its status reports it the way it reports a version with nothing bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null. A version no host has bound (standalone, or built only by this server\'s own runs) serves what this server\'s own runs built for it when its binding is cleared, or live when they built nothing, as it does when it loads. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear. A manifest that cannot be fetched or bound is refused with the cause in the message: 400 with `reason` `MANIFEST_NOT_FOUND` when nothing is at the location (no such file, or an object store\'s no such object or bucket); 422 with `reason` `MANIFEST_INVALID` when what is there does not parse, is not a JSON object, or has an `entries` that is not an object; and 500 with `reason` `MANIFEST_BIND_FAILED` otherwise (the fetch timed out, the network failed, the store refused the server\'s credentials, or the bind threw). The first two are the caller\'s input and fail the same way until it changes; the last is the server\'s. Whichever it is, nothing of it is applied: the version\'s `manifestLocation` stays what it was, the version is not marked host-owned, and it serves what it served before the request, the manifest it had bound or, with none, live (or this server\'s own runs\' tables, for a version no host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and `manifestEntryCount` describe that previous binding. One exception: when the failure came after the version\'s models moved, the previous manifest is fetched and bound again, and if that fails too the version reports `bind_failed`, as any failed rebind does (see `manifestBindingStatus`), and the server logs that failed bind. Releases before this one answered 200 here and reported the failure only as `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still loads the version and reports a failed bind that way.
@@ -4966,7 +4970,7 @@ class ma extends C {
4966
4970
  * @throws {RequiredError}
4967
4971
  */
4968
4972
  setPackageVersionManifest(r, a, n, e, t) {
4969
- return N(this.configuration).setPackageVersionManifest(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4973
+ return E(this.configuration).setPackageVersionManifest(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4970
4974
  }
4971
4975
  /**
4972
4976
  * Changes a version\'s lifecycle state. Content is never edited here: a published version is immutable. - `archive` takes the version out of service: reads and queries that name it answer 410 with `reason` `VERSION_ARCHIVED`, and it is unloaded from memory. The tables its own auto-runs built under `scope: version` are reclaimed in the background, with their run records; tables another version\'s run still references are kept, and so are an orchestrated run\'s, whose names and lifetime the caller that assigned them owns. Each table is tried once: one that cannot be dropped is left, and its run record goes all the same. Its files stay on disk, so it can be unarchived. To remove them, delete the version with `DELETE .../versions/{versionId}`. - `unarchive` puts it back in service. It loads again on its next read, and serves live until it is built again. Archiving stops the version\'s materialization schedule, if it has one, and unarchiving starts it again. An archive is refused with 409 when: - the version is the package\'s `latest` (`reason` `VERSION_IS_LATEST`): move `latest` first; - it is the package\'s last version in service (`reason` `VERSION_IS_LAST_ACTIVE`): a package always keeps one. To take the whole package out of service, delete it; - a materialization of that version is running (`reason` `VERSION_BUILDING`), since the archive would reclaim the tables that run is writing. A run that starts after the archive fails, and what it built is reclaimed when it ends. Sending the state the version is already in changes nothing and answers 200.
@@ -4979,7 +4983,7 @@ class ma extends C {
4979
4983
  * @throws {RequiredError}
4980
4984
  */
4981
4985
  updatePackageVersion(r, a, n, e, t) {
4982
- return N(this.configuration).updatePackageVersion(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4986
+ return E(this.configuration).updatePackageVersion(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4983
4987
  }
4984
4988
  }
4985
4989
  const ha = function(l) {
@@ -5302,7 +5306,7 @@ const Pa = new ke({
5302
5306
  throwOnError: !1
5303
5307
  }
5304
5308
  }
5305
- }), En = {
5309
+ }), fn = {
5306
5310
  staleTime: 300 * 1e3,
5307
5311
  refetchOnWindowFocus: !1,
5308
5312
  refetchOnReconnect: !1
@@ -5360,7 +5364,7 @@ const ue = ie(void 0), ka = (l, r, a) => {
5360
5364
  dataApps: new Ke(t, n, e),
5361
5365
  reports: new la(t, n, e),
5362
5366
  connections: new He(t, n, e),
5363
- databases: new Ye(t, n, e),
5367
+ databases: new Je(t, n, e),
5364
5368
  materializations: new ea(
5365
5369
  t,
5366
5370
  n,
@@ -5369,7 +5373,7 @@ const ue = ie(void 0), ka = (l, r, a) => {
5369
5373
  watchMode: new ua(t, n, e),
5370
5374
  versions: new ma(t, n, e)
5371
5375
  };
5372
- }, fn = (l) => /* @__PURE__ */ z(Ae, { client: Pa, children: /* @__PURE__ */ z(Aa, { ...l }) }), Aa = ({
5376
+ }, wn = (l) => /* @__PURE__ */ z(Ae, { client: Pa, children: /* @__PURE__ */ z(Aa, { ...l }) }), Aa = ({
5373
5377
  children: l,
5374
5378
  getAccessToken: r,
5375
5379
  baseURL: a,
@@ -5435,56 +5439,56 @@ const ue = ie(void 0), ka = (l, r, a) => {
5435
5439
  children: l
5436
5440
  }
5437
5441
  ) });
5438
- }, wn = () => {
5442
+ }, Mn = () => {
5439
5443
  const l = oe(ue);
5440
5444
  if (l === void 0)
5441
5445
  throw new Error("useServer must be used within a ServerProvider");
5442
5446
  return l;
5443
5447
  };
5444
5448
  export {
5445
- ea as $,
5449
+ mt as $,
5446
5450
  Qe as A,
5447
- vn as B,
5451
+ Vn as B,
5448
5452
  _a as C,
5449
- Ja as D,
5453
+ Ya as D,
5450
5454
  me as E,
5451
5455
  et as F,
5452
- Ye as G,
5456
+ Je as G,
5453
5457
  $e as H,
5454
- Vn as I,
5458
+ Sn as I,
5455
5459
  he as J,
5456
- Ze as K,
5457
- Je as L,
5458
- Sn as M,
5459
- M as N,
5460
- at as O,
5460
+ at as K,
5461
+ Ze as L,
5462
+ Ye as M,
5463
+ bn as N,
5464
+ M as O,
5461
5465
  tt as P,
5462
- hn as Q,
5463
- nt as R,
5466
+ nt as Q,
5467
+ un as R,
5464
5468
  rt as S,
5465
5469
  st as T,
5466
- lt as U,
5467
- ot as V,
5468
- ct as W,
5469
- it as X,
5470
- On as Y,
5471
- pt as Z,
5470
+ ot as U,
5471
+ ct as V,
5472
+ it as W,
5473
+ pt as X,
5474
+ lt as Y,
5475
+ kn as Z,
5472
5476
  dt as _,
5473
5477
  _e as a,
5474
- rn as a$,
5475
- Xe as a0,
5476
- bn as a1,
5477
- T as a2,
5478
- mt as a3,
5479
- ta as a4,
5480
- aa as a5,
5481
- kn as a6,
5482
- F as a7,
5483
- ut as a8,
5484
- ht as a9,
5485
- yn as aA,
5486
- L as aB,
5487
- Mt as aC,
5478
+ wn as a$,
5479
+ ea as a0,
5480
+ Xe as a1,
5481
+ On as a2,
5482
+ T as a3,
5483
+ ht as a4,
5484
+ ta as a5,
5485
+ aa as a6,
5486
+ An as a7,
5487
+ F as a8,
5488
+ gt as a9,
5489
+ sa as aA,
5490
+ In as aB,
5491
+ L as aC,
5488
5492
  Ft as aD,
5489
5493
  Bt as aE,
5490
5494
  jt as aF,
@@ -5496,94 +5500,95 @@ export {
5496
5500
  qt as aL,
5497
5501
  Ht as aM,
5498
5502
  Gt as aN,
5499
- Kt as aO,
5500
- Wt as aP,
5501
- Yt as aQ,
5502
- $t as aR,
5503
+ Wt as aO,
5504
+ $t as aP,
5505
+ Kt as aQ,
5506
+ Yt as aR,
5503
5507
  Jt as aS,
5504
5508
  Zt as aT,
5505
- la as aU,
5506
- ia as aV,
5507
- In as aW,
5508
- J as aX,
5509
- Xt as aY,
5509
+ Xt as aU,
5510
+ la as aV,
5511
+ ia as aW,
5512
+ Cn as aX,
5513
+ Y as aY,
5510
5514
  en as aZ,
5511
- fn as a_,
5512
- gt as aa,
5513
- bt as ab,
5515
+ an as a_,
5516
+ ut as aa,
5517
+ Pt as ab,
5514
5518
  Ot as ac,
5515
- St as ad,
5516
- Vt as ae,
5517
- vt as af,
5518
- Pt as ag,
5519
- kt as ah,
5519
+ kt as ad,
5520
+ bt as ae,
5521
+ St as af,
5522
+ Vt as ag,
5523
+ vt as ah,
5520
5524
  At as ai,
5521
5525
  yt as aj,
5522
- xt as ak,
5526
+ It as ak,
5523
5527
  Ut as al,
5524
- Rt as am,
5525
- Ct as an,
5526
- It as ao,
5527
- Tt as ap,
5528
- Nt as aq,
5529
- Et as ar,
5530
- ra as as,
5531
- na as at,
5532
- An as au,
5533
- R as av,
5534
- ft as aw,
5528
+ Tt as am,
5529
+ xt as an,
5530
+ Rt as ao,
5531
+ Ct as ap,
5532
+ Et as aq,
5533
+ Nt as ar,
5534
+ ft as as,
5535
+ ra as at,
5536
+ na as au,
5537
+ yn as av,
5538
+ R as aw,
5535
5539
  wt as ax,
5536
- oa as ay,
5537
- sa as az,
5538
- mn as b,
5539
- an as b0,
5540
+ Mt as ay,
5541
+ oa as az,
5542
+ hn as b,
5543
+ sn as b0,
5540
5544
  tn as b1,
5541
5545
  nn as b2,
5542
- sn as b3,
5546
+ rn as b3,
5543
5547
  on as b4,
5544
- Rn as b5,
5545
- ca as b6,
5546
- Cn as b7,
5547
- Z as b8,
5548
- ln as b9,
5549
- fa as bA,
5550
- Ma as bB,
5551
- Fa as bC,
5552
- Na as bD,
5548
+ ln as b5,
5549
+ xn as b6,
5550
+ ca as b7,
5551
+ Rn as b8,
5552
+ Z as b9,
5553
+ wa as bA,
5554
+ fa as bB,
5555
+ Ma as bC,
5556
+ Fa as bD,
5553
5557
  Ea as bE,
5554
- En as bF,
5555
- $ as bG,
5556
- Le as bH,
5557
- se as bI,
5558
- Ba as bJ,
5559
- Te as bK,
5560
- je as bL,
5561
- Un as ba,
5562
- pa as bb,
5563
- xn as bc,
5564
- q as bd,
5565
- cn as be,
5558
+ Na as bF,
5559
+ fn as bG,
5560
+ $ as bH,
5561
+ Le as bI,
5562
+ se as bJ,
5563
+ Ba as bK,
5564
+ Te as bL,
5565
+ je as bM,
5566
+ cn as ba,
5567
+ Tn as bb,
5568
+ pa as bc,
5569
+ Un as bd,
5570
+ q as be,
5566
5571
  pn as bf,
5567
5572
  dn as bg,
5568
- ma as bh,
5569
- da as bi,
5570
- Tn as bj,
5571
- N as bk,
5572
- ua as bl,
5573
- ha as bm,
5574
- Nn as bn,
5575
- D as bo,
5576
- Pa as bp,
5577
- La as bq,
5578
- wn as br,
5579
- Be as bs,
5580
- ce as bt,
5581
- ja as bu,
5582
- U as bv,
5583
- Ta as bw,
5584
- Ua as bx,
5585
- I as by,
5586
- wa as bz,
5573
+ mn as bh,
5574
+ ma as bi,
5575
+ da as bj,
5576
+ En as bk,
5577
+ E as bl,
5578
+ ua as bm,
5579
+ ha as bn,
5580
+ Nn as bo,
5581
+ D as bp,
5582
+ Pa as bq,
5583
+ La as br,
5584
+ Mn as bs,
5585
+ Be as bt,
5586
+ ce as bu,
5587
+ ja as bv,
5588
+ U as bw,
5589
+ Ta as bx,
5590
+ Ua as by,
5591
+ I as bz,
5587
5592
  Q as c,
5588
5593
  Da as d,
5589
5594
  za as e,
@@ -5597,13 +5602,13 @@ export {
5597
5602
  Wa as m,
5598
5603
  He as n,
5599
5604
  qe as o,
5600
- un as p,
5605
+ gn as p,
5601
5606
  y as q,
5602
- Pn as r,
5607
+ vn as r,
5603
5608
  Ge as s,
5604
- gn as t,
5609
+ Pn as t,
5605
5610
  de as u,
5606
- Ya as v,
5611
+ Ja as v,
5607
5612
  Za as w,
5608
5613
  Xa as x,
5609
5614
  Ke as y,