@malloy-publisher/sdk 0.18.3 → 0.18.5

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",
@@ -739,47 +743,48 @@ const V = function(l, ...r) {
739
743
  GivenWhereOverUnstoredField: "given_where_over_unstored_field",
740
744
  UnreadableGrain: "unreadable_grain",
741
745
  UpstreamUnread: "upstream_unread",
742
- UpstreamTableUnusable: "upstream_table_unusable"
743
- }, $t = {
746
+ UpstreamTableUnusable: "upstream_table_unusable",
747
+ ContainerNotFound: "container_not_found"
748
+ }, Jt = {
744
749
  Grid: "grid",
745
750
  Linear: "linear"
746
751
  }, Yt = {
747
752
  Malloynb: "malloynb",
748
753
  Malloy: "malloy"
749
- }, Jt = {
754
+ }, Zt = {
750
755
  Grid: "grid",
751
756
  Linear: "linear"
752
- }, Zt = {
757
+ }, Xt = {
753
758
  Query: "query",
754
759
  Text: "text"
755
- }, Xt = {
760
+ }, en = {
756
761
  Publish: "publish",
757
762
  OnDemand: "on_demand",
758
763
  Scheduler: "scheduler"
759
- }, en = {
764
+ }, an = {
760
765
  Config: "config",
761
766
  CredentialChain: "credential_chain"
762
- }, an = {
767
+ }, tn = {
763
768
  Initializing: "initializing",
764
769
  Serving: "serving",
765
770
  Draining: "draining",
766
771
  Throttled: "throttled"
767
- }, tn = {
772
+ }, nn = {
768
773
  Off: "off",
769
774
  On: "on"
770
- }, nn = {
775
+ }, rn = {
771
776
  OnPublish: "on-publish",
772
777
  Explicit: "explicit"
773
- }, rn = {
778
+ }, sn = {
774
779
  Explorer: "explorer",
775
780
  Viewer: "viewer"
776
- }, sn = {
777
- Bundled: "bundled",
778
- Package: "package"
779
781
  }, on = {
780
782
  Bundled: "bundled",
781
783
  Package: "package"
782
784
  }, ln = {
785
+ Bundled: "bundled",
786
+ Package: "package"
787
+ }, cn = {
783
788
  NotBuilt: "NOT_BUILT",
784
789
  NotServed: "NOT_SERVED",
785
790
  OptedOut: "OPTED_OUT",
@@ -795,18 +800,18 @@ const V = function(l, ...r) {
795
800
  Warned: "WARNED",
796
801
  Contract: "CONTRACT",
797
802
  RunFailed: "RUN_FAILED"
798
- }, cn = {
803
+ }, pn = {
799
804
  Persist: "persist",
800
805
  Materialize: "materialize",
801
806
  View: "view",
802
807
  Query: "query",
803
808
  Rollup: "rollup",
804
809
  Preaggregate: "preaggregate"
805
- }, pn = {
810
+ }, dn = {
806
811
  Light: "light",
807
812
  Dark: "dark",
808
813
  Auto: "auto"
809
- }, dn = {
814
+ }, mn = {
810
815
  NoCatalog: "no_catalog",
811
816
  NotFound: "not_found",
812
817
  Ambiguous: "ambiguous",
@@ -931,7 +936,7 @@ const V = function(l, ...r) {
931
936
  return (c, p) => b(o, u, g, l)(c, i || p);
932
937
  }
933
938
  };
934
- }, mn = function(l, r, a) {
939
+ }, hn = function(l, r, a) {
935
940
  const n = Q(l);
936
941
  return {
937
942
  /**
@@ -1018,7 +1023,7 @@ class Qe extends C {
1018
1023
  return Q(this.configuration).listAgents(r, a, n, e).then((t) => t(this.axios, this.basePath));
1019
1024
  }
1020
1025
  }
1021
- const hn = {
1026
+ const un = {
1022
1027
  Full: "full",
1023
1028
  Summary: "summary"
1024
1029
  }, qe = function(l) {
@@ -1643,7 +1648,7 @@ const hn = {
1643
1648
  return (c, p) => b(o, u, g, l)(c, i || p);
1644
1649
  }
1645
1650
  };
1646
- }, un = function(l, r, a) {
1651
+ }, gn = function(l, r, a) {
1647
1652
  const n = y(l);
1648
1653
  return {
1649
1654
  /**
@@ -2116,7 +2121,7 @@ const Ge = function(l) {
2116
2121
  return (s, i) => b(e, u, g, l)(s, o || i);
2117
2122
  }
2118
2123
  };
2119
- }, gn = function(l, r, a) {
2124
+ }, Pn = function(l, r, a) {
2120
2125
  const n = de(l);
2121
2126
  return {
2122
2127
  /**
@@ -2131,7 +2136,7 @@ const Ge = function(l) {
2131
2136
  }
2132
2137
  };
2133
2138
  };
2134
- class Pn extends C {
2139
+ class vn extends C {
2135
2140
  /**
2136
2141
  * 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
2142
  * @summary Test database connection configuration
@@ -2185,7 +2190,7 @@ const We = function(l) {
2185
2190
  return (c, p) => b(o, u, g, l)(c, i || p);
2186
2191
  }
2187
2192
  };
2188
- }, vn = function(l, r, a) {
2193
+ }, Vn = function(l, r, a) {
2189
2194
  const n = me(l);
2190
2195
  return {
2191
2196
  /**
@@ -2258,7 +2263,7 @@ const $e = function(l) {
2258
2263
  return (c, p) => b(o, u, g, l)(c, i || p);
2259
2264
  }
2260
2265
  };
2261
- }, Vn = function(l, r, a) {
2266
+ }, Sn = function(l, r, a) {
2262
2267
  const n = he(l);
2263
2268
  return {
2264
2269
  /**
@@ -2275,7 +2280,7 @@ const $e = function(l) {
2275
2280
  }
2276
2281
  };
2277
2282
  };
2278
- class Ye extends C {
2283
+ class Je extends C {
2279
2284
  /**
2280
2285
  * 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
2286
  * @summary List embedded databases
@@ -2289,7 +2294,7 @@ class Ye extends C {
2289
2294
  return he(this.configuration).listDatabases(r, a, n, e).then((t) => t(this.axios, this.basePath));
2290
2295
  }
2291
2296
  }
2292
- const Je = function(l) {
2297
+ const Ye = function(l) {
2293
2298
  return {
2294
2299
  /**
2295
2300
  * 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 +2398,7 @@ const Je = function(l) {
2393
2398
  }
2394
2399
  };
2395
2400
  }, M = function(l) {
2396
- const r = Je(l);
2401
+ const r = Ye(l);
2397
2402
  return {
2398
2403
  /**
2399
2404
  * 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 +2457,7 @@ const Je = function(l) {
2452
2457
  return (i, c) => b(t, u, g, l)(i, s || c);
2453
2458
  }
2454
2459
  };
2455
- }, Sn = function(l, r, a) {
2460
+ }, bn = function(l, r, a) {
2456
2461
  const n = M(l);
2457
2462
  return {
2458
2463
  /**
@@ -2796,7 +2801,7 @@ const Xe = function(l) {
2796
2801
  return (d, h) => b(i, u, g, l)(d, p || h);
2797
2802
  }
2798
2803
  };
2799
- }, bn = function(l, r, a) {
2804
+ }, On = function(l, r, a) {
2800
2805
  const n = T(l);
2801
2806
  return {
2802
2807
  /**
@@ -2965,7 +2970,7 @@ class ea extends C {
2965
2970
  return T(this.configuration).materializationAction(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
2966
2971
  }
2967
2972
  }
2968
- const On = {
2973
+ const kn = {
2969
2974
  Stop: "stop"
2970
2975
  }, aa = function(l) {
2971
2976
  return {
@@ -3171,7 +3176,7 @@ const On = {
3171
3176
  return (d, h) => b(i, u, g, l)(d, p || h);
3172
3177
  }
3173
3178
  };
3174
- }, kn = function(l, r, a) {
3179
+ }, An = function(l, r, a) {
3175
3180
  const n = F(l);
3176
3181
  return {
3177
3182
  /**
@@ -3677,7 +3682,7 @@ const na = function(l) {
3677
3682
  return (c, p) => b(o, u, g, l)(c, i || p);
3678
3683
  }
3679
3684
  };
3680
- }, An = function(l, r, a) {
3685
+ }, yn = function(l, r, a) {
3681
3686
  const n = R(l);
3682
3687
  return {
3683
3688
  /**
@@ -4048,7 +4053,7 @@ const sa = function(l) {
4048
4053
  return (s, i) => b(e, u, g, l)(s, o || i);
4049
4054
  }
4050
4055
  };
4051
- }, yn = function(l, r, a) {
4056
+ }, In = function(l, r, a) {
4052
4057
  const n = L(l);
4053
4058
  return {
4054
4059
  /**
@@ -4179,7 +4184,7 @@ const ia = function(l) {
4179
4184
  };
4180
4185
  }
4181
4186
  };
4182
- }, J = function(l) {
4187
+ }, Y = function(l) {
4183
4188
  const r = ia(l);
4184
4189
  return {
4185
4190
  /**
@@ -4210,8 +4215,8 @@ const ia = function(l) {
4210
4215
  return (c, p) => b(o, u, g, l)(c, i || p);
4211
4216
  }
4212
4217
  };
4213
- }, In = function(l, r, a) {
4214
- const n = J(l);
4218
+ }, Cn = function(l, r, a) {
4219
+ const n = Y(l);
4215
4220
  return {
4216
4221
  /**
4217
4222
  * 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 +4257,7 @@ class la extends C {
4252
4257
  * @throws {RequiredError}
4253
4258
  */
4254
4259
  getReport(r, a, n, e, t) {
4255
- return J(this.configuration).getReport(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4260
+ return Y(this.configuration).getReport(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4256
4261
  }
4257
4262
  /**
4258
4263
  * 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 +4269,7 @@ class la extends C {
4264
4269
  * @throws {RequiredError}
4265
4270
  */
4266
4271
  listReports(r, a, n, e) {
4267
- return J(this.configuration).listReports(r, a, n, e).then((t) => t(this.axios, this.basePath));
4272
+ return Y(this.configuration).listReports(r, a, n, e).then((t) => t(this.axios, this.basePath));
4268
4273
  }
4269
4274
  }
4270
4275
  const ca = function(l) {
@@ -4346,7 +4351,7 @@ const ca = function(l) {
4346
4351
  return (c, p) => b(o, u, g, l)(c, i || p);
4347
4352
  }
4348
4353
  };
4349
- }, Cn = function(l, r, a) {
4354
+ }, Rn = function(l, r, a) {
4350
4355
  const n = Z(l);
4351
4356
  return {
4352
4357
  /**
@@ -4376,7 +4381,7 @@ const ca = function(l) {
4376
4381
  }
4377
4382
  };
4378
4383
  };
4379
- class Rn extends C {
4384
+ class xn extends C {
4380
4385
  /**
4381
4386
  * 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
4387
  * @summary Get one agent skill, with its body
@@ -4523,7 +4528,7 @@ const pa = function(l) {
4523
4528
  return (c, p) => b(o, u, g, l)(c, i || p);
4524
4529
  }
4525
4530
  };
4526
- }, xn = function(l, r, a) {
4531
+ }, Un = function(l, r, a) {
4527
4532
  const n = q(l);
4528
4533
  return {
4529
4534
  /**
@@ -4568,7 +4573,7 @@ const pa = function(l) {
4568
4573
  }
4569
4574
  };
4570
4575
  };
4571
- class Un extends C {
4576
+ class Tn extends C {
4572
4577
  /**
4573
4578
  * **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
4579
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
@@ -4746,7 +4751,7 @@ const da = function(l) {
4746
4751
  };
4747
4752
  }
4748
4753
  };
4749
- }, N = function(l) {
4754
+ }, E = function(l) {
4750
4755
  const r = da(l);
4751
4756
  return {
4752
4757
  /**
@@ -4829,8 +4834,8 @@ const da = function(l) {
4829
4834
  return (p, d) => b(s, u, g, l)(p, c || d);
4830
4835
  }
4831
4836
  };
4832
- }, Tn = function(l, r, a) {
4833
- const n = N(l);
4837
+ }, En = function(l, r, a) {
4838
+ const n = E(l);
4834
4839
  return {
4835
4840
  /**
4836
4841
  * 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 +4923,7 @@ class ma extends C {
4918
4923
  * @throws {RequiredError}
4919
4924
  */
4920
4925
  deletePackageVersion(r, a, n, e) {
4921
- return N(this.configuration).deletePackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4926
+ return E(this.configuration).deletePackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4922
4927
  }
4923
4928
  /**
4924
4929
  * Returns one published version, archived or not. An unknown version answers 404 with `reason` `VERSION_NOT_FOUND`.
@@ -4930,7 +4935,7 @@ class ma extends C {
4930
4935
  * @throws {RequiredError}
4931
4936
  */
4932
4937
  getPackageVersion(r, a, n, e) {
4933
- return N(this.configuration).getPackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4938
+ return E(this.configuration).getPackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4934
4939
  }
4935
4940
  /**
4936
4941
  * 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 +4946,7 @@ class ma extends C {
4941
4946
  * @throws {RequiredError}
4942
4947
  */
4943
4948
  listPackageVersions(r, a, n) {
4944
- return N(this.configuration).listPackageVersions(r, a, n).then((e) => e(this.axios, this.basePath));
4949
+ return E(this.configuration).listPackageVersions(r, a, n).then((e) => e(this.axios, this.basePath));
4945
4950
  }
4946
4951
  /**
4947
4952
  * 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 +4958,7 @@ class ma extends C {
4953
4958
  * @throws {RequiredError}
4954
4959
  */
4955
4960
  setPackageLatestVersion(r, a, n, e) {
4956
- return N(this.configuration).setPackageLatestVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4961
+ return E(this.configuration).setPackageLatestVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
4957
4962
  }
4958
4963
  /**
4959
4964
  * 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 +4971,7 @@ class ma extends C {
4966
4971
  * @throws {RequiredError}
4967
4972
  */
4968
4973
  setPackageVersionManifest(r, a, n, e, t) {
4969
- return N(this.configuration).setPackageVersionManifest(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4974
+ return E(this.configuration).setPackageVersionManifest(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4970
4975
  }
4971
4976
  /**
4972
4977
  * 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 +4984,7 @@ class ma extends C {
4979
4984
  * @throws {RequiredError}
4980
4985
  */
4981
4986
  updatePackageVersion(r, a, n, e, t) {
4982
- return N(this.configuration).updatePackageVersion(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4987
+ return E(this.configuration).updatePackageVersion(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
4983
4988
  }
4984
4989
  }
4985
4990
  const ha = function(l) {
@@ -5302,7 +5307,7 @@ const Pa = new ke({
5302
5307
  throwOnError: !1
5303
5308
  }
5304
5309
  }
5305
- }), En = {
5310
+ }), fn = {
5306
5311
  staleTime: 300 * 1e3,
5307
5312
  refetchOnWindowFocus: !1,
5308
5313
  refetchOnReconnect: !1
@@ -5360,7 +5365,7 @@ const ue = ie(void 0), ka = (l, r, a) => {
5360
5365
  dataApps: new Ke(t, n, e),
5361
5366
  reports: new la(t, n, e),
5362
5367
  connections: new He(t, n, e),
5363
- databases: new Ye(t, n, e),
5368
+ databases: new Je(t, n, e),
5364
5369
  materializations: new ea(
5365
5370
  t,
5366
5371
  n,
@@ -5369,7 +5374,7 @@ const ue = ie(void 0), ka = (l, r, a) => {
5369
5374
  watchMode: new ua(t, n, e),
5370
5375
  versions: new ma(t, n, e)
5371
5376
  };
5372
- }, fn = (l) => /* @__PURE__ */ z(Ae, { client: Pa, children: /* @__PURE__ */ z(Aa, { ...l }) }), Aa = ({
5377
+ }, wn = (l) => /* @__PURE__ */ z(Ae, { client: Pa, children: /* @__PURE__ */ z(Aa, { ...l }) }), Aa = ({
5373
5378
  children: l,
5374
5379
  getAccessToken: r,
5375
5380
  baseURL: a,
@@ -5435,56 +5440,56 @@ const ue = ie(void 0), ka = (l, r, a) => {
5435
5440
  children: l
5436
5441
  }
5437
5442
  ) });
5438
- }, wn = () => {
5443
+ }, Mn = () => {
5439
5444
  const l = oe(ue);
5440
5445
  if (l === void 0)
5441
5446
  throw new Error("useServer must be used within a ServerProvider");
5442
5447
  return l;
5443
5448
  };
5444
5449
  export {
5445
- ea as $,
5450
+ mt as $,
5446
5451
  Qe as A,
5447
- vn as B,
5452
+ Vn as B,
5448
5453
  _a as C,
5449
- Ja as D,
5454
+ Ya as D,
5450
5455
  me as E,
5451
5456
  et as F,
5452
- Ye as G,
5457
+ Je as G,
5453
5458
  $e as H,
5454
- Vn as I,
5459
+ Sn as I,
5455
5460
  he as J,
5456
- Ze as K,
5457
- Je as L,
5458
- Sn as M,
5459
- M as N,
5460
- at as O,
5461
+ at as K,
5462
+ Ze as L,
5463
+ Ye as M,
5464
+ bn as N,
5465
+ M as O,
5461
5466
  tt as P,
5462
- hn as Q,
5463
- nt as R,
5467
+ nt as Q,
5468
+ un as R,
5464
5469
  rt as S,
5465
5470
  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,
5471
+ ot as U,
5472
+ ct as V,
5473
+ it as W,
5474
+ pt as X,
5475
+ lt as Y,
5476
+ kn as Z,
5472
5477
  dt as _,
5473
5478
  _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,
5479
+ wn as a$,
5480
+ ea as a0,
5481
+ Xe as a1,
5482
+ On as a2,
5483
+ T as a3,
5484
+ ht as a4,
5485
+ ta as a5,
5486
+ aa as a6,
5487
+ An as a7,
5488
+ F as a8,
5489
+ gt as a9,
5490
+ sa as aA,
5491
+ In as aB,
5492
+ L as aC,
5488
5493
  Ft as aD,
5489
5494
  Bt as aE,
5490
5495
  jt as aF,
@@ -5496,94 +5501,95 @@ export {
5496
5501
  qt as aL,
5497
5502
  Ht as aM,
5498
5503
  Gt as aN,
5499
- Kt as aO,
5500
- Wt as aP,
5501
- Yt as aQ,
5502
- $t as aR,
5504
+ Wt as aO,
5505
+ $t as aP,
5506
+ Kt as aQ,
5507
+ Yt as aR,
5503
5508
  Jt as aS,
5504
5509
  Zt as aT,
5505
- la as aU,
5506
- ia as aV,
5507
- In as aW,
5508
- J as aX,
5509
- Xt as aY,
5510
+ Xt as aU,
5511
+ la as aV,
5512
+ ia as aW,
5513
+ Cn as aX,
5514
+ Y as aY,
5510
5515
  en as aZ,
5511
- fn as a_,
5512
- gt as aa,
5513
- bt as ab,
5516
+ an as a_,
5517
+ ut as aa,
5518
+ Pt as ab,
5514
5519
  Ot as ac,
5515
- St as ad,
5516
- Vt as ae,
5517
- vt as af,
5518
- Pt as ag,
5519
- kt as ah,
5520
+ kt as ad,
5521
+ bt as ae,
5522
+ St as af,
5523
+ Vt as ag,
5524
+ vt as ah,
5520
5525
  At as ai,
5521
5526
  yt as aj,
5522
- xt as ak,
5527
+ It as ak,
5523
5528
  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,
5529
+ Tt as am,
5530
+ xt as an,
5531
+ Rt as ao,
5532
+ Ct as ap,
5533
+ Et as aq,
5534
+ Nt as ar,
5535
+ ft as as,
5536
+ ra as at,
5537
+ na as au,
5538
+ yn as av,
5539
+ R as aw,
5535
5540
  wt as ax,
5536
- oa as ay,
5537
- sa as az,
5538
- mn as b,
5539
- an as b0,
5541
+ Mt as ay,
5542
+ oa as az,
5543
+ hn as b,
5544
+ sn as b0,
5540
5545
  tn as b1,
5541
5546
  nn as b2,
5542
- sn as b3,
5547
+ rn as b3,
5543
5548
  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,
5549
+ ln as b5,
5550
+ xn as b6,
5551
+ ca as b7,
5552
+ Rn as b8,
5553
+ Z as b9,
5554
+ wa as bA,
5555
+ fa as bB,
5556
+ Ma as bC,
5557
+ Fa as bD,
5553
5558
  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,
5559
+ Na as bF,
5560
+ fn as bG,
5561
+ $ as bH,
5562
+ Le as bI,
5563
+ se as bJ,
5564
+ Ba as bK,
5565
+ Te as bL,
5566
+ je as bM,
5567
+ cn as ba,
5568
+ Tn as bb,
5569
+ pa as bc,
5570
+ Un as bd,
5571
+ q as be,
5566
5572
  pn as bf,
5567
5573
  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,
5574
+ mn as bh,
5575
+ ma as bi,
5576
+ da as bj,
5577
+ En as bk,
5578
+ E as bl,
5579
+ ua as bm,
5580
+ ha as bn,
5581
+ Nn as bo,
5582
+ D as bp,
5583
+ Pa as bq,
5584
+ La as br,
5585
+ Mn as bs,
5586
+ Be as bt,
5587
+ ce as bu,
5588
+ ja as bv,
5589
+ U as bw,
5590
+ Ta as bx,
5591
+ Ua as by,
5592
+ I as bz,
5587
5593
  Q as c,
5588
5594
  Da as d,
5589
5595
  za as e,
@@ -5597,13 +5603,13 @@ export {
5597
5603
  Wa as m,
5598
5604
  He as n,
5599
5605
  qe as o,
5600
- un as p,
5606
+ gn as p,
5601
5607
  y as q,
5602
- Pn as r,
5608
+ vn as r,
5603
5609
  Ge as s,
5604
- gn as t,
5610
+ Pn as t,
5605
5611
  de as u,
5606
- Ya as v,
5612
+ Ja as v,
5607
5613
  Za as w,
5608
5614
  Xa as x,
5609
5615
  Ke as y,