@malloy-publisher/sdk 0.18.7 → 0.18.8

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.
Files changed (27) hide show
  1. package/dist/{RenderedResult-BkBdGb49.es.js → RenderedResult-DW_0pVGi.es.js} +35 -35
  2. package/dist/{RenderedResult-B7Vw2U4r.cjs.js → RenderedResult-iBneEusY.cjs.js} +1 -1
  3. package/dist/ServerProvider-Bm0MYmLk.cjs.js +1 -0
  4. package/dist/{ServerProvider-Caw1M640.es.js → ServerProvider-Dt1toUPl.es.js} +274 -274
  5. package/dist/builder/index.cjs.js +1 -1
  6. package/dist/builder/index.es.js +3 -3
  7. package/dist/client/api.d.ts +128 -79
  8. package/dist/client/index.cjs.js +1 -1
  9. package/dist/client/index.es.js +117 -116
  10. package/dist/components/Materializations/MaterializationDetailDialog.d.ts +1 -1
  11. package/dist/components/Materializations/ScopeButton.d.ts +1 -1
  12. package/dist/components/ModelViewer/docAnnotations.d.ts +9 -8
  13. package/dist/components/ModelViewer/schemaModel.d.ts +2 -2
  14. package/dist/index.cjs.js +28 -28
  15. package/dist/index.es.js +1975 -1970
  16. package/dist/{useCompiledDocument-C3k5Ro8W.es.js → useCompiledDocument-D6zLiPHq.es.js} +2 -2
  17. package/dist/{useCompiledDocument-CqI1slum.cjs.js → useCompiledDocument-fX3JV1Ca.cjs.js} +2 -2
  18. package/package.json +1 -1
  19. package/src/components/Materializations/CreateMaterializationDialog.tsx +1 -1
  20. package/src/components/Materializations/MaterializationDetailDialog.tsx +2 -2
  21. package/src/components/Materializations/Materializations.tsx +2 -2
  22. package/src/components/Materializations/Materializations.versions.spec.tsx +3 -3
  23. package/src/components/Materializations/ScopeButton.tsx +1 -1
  24. package/src/components/ModelViewer/docAnnotations.spec.ts +32 -2
  25. package/src/components/ModelViewer/docAnnotations.ts +29 -11
  26. package/src/components/ModelViewer/schemaModel.ts +2 -2
  27. package/dist/ServerProvider-DorQnQ-Q.cjs.js +0 -1
@@ -422,14 +422,14 @@ const P = {}, v = "https://example.com", m = function(l, r, a) {
422
422
  if (a == null)
423
423
  throw new _e(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
424
424
  };
425
- function J(l, r, a = "") {
426
- r != null && (typeof r == "object" ? Array.isArray(r) || r instanceof Set ? r.forEach((n) => J(l, n, a)) : Object.keys(r).forEach(
427
- (n) => J(l, r[n], `${a}${a !== "" ? "." : ""}${n}`)
425
+ function Y(l, r, a = "") {
426
+ r != null && (typeof r == "object" ? Array.isArray(r) || r instanceof Set ? r.forEach((n) => Y(l, n, a)) : Object.keys(r).forEach(
427
+ (n) => Y(l, r[n], `${a}${a !== "" ? "." : ""}${n}`)
428
428
  ) : l.has(a) ? l.append(a, r) : l.set(a, r));
429
429
  }
430
430
  const b = function(l, ...r) {
431
431
  const a = new URLSearchParams(l.search);
432
- J(a, r), l.search = a.toString();
432
+ Y(a, r), l.search = a.toString();
433
433
  }, De = function(l, r) {
434
434
  return r instanceof Set ? Array.from(r) : r;
435
435
  }, A = function(l, r, a) {
@@ -483,10 +483,10 @@ const b = function(l, ...r) {
483
483
  Publisher: "publisher"
484
484
  }, $a = {
485
485
  Ssh: "ssh"
486
- }, Ja = {
486
+ }, Ya = {
487
487
  Ok: "ok",
488
488
  Failed: "failed"
489
- }, Ya = {
489
+ }, Ja = {
490
490
  Read: "read",
491
491
  Unread: "unread"
492
492
  }, Za = {
@@ -536,170 +536,172 @@ const b = function(l, ...r) {
536
536
  Rollup: "rollup",
537
537
  Preaggregate: "preaggregate"
538
538
  }, pt = {
539
+ Simulated: "simulated"
540
+ }, dt = {
539
541
  Reused: "reused",
540
542
  Recomputed: "recomputed"
541
- }, dt = {
543
+ }, mt = {
542
544
  Live: "live",
543
545
  StaleOk: "stale_ok",
544
546
  Fail: "fail"
545
- }, mt = {
547
+ }, ht = {
546
548
  Delta: "delta",
547
549
  Full: "full",
548
550
  None: "none"
549
- }, ht = {
551
+ }, ut = {
550
552
  Persist: "persist",
551
553
  Materialize: "materialize",
552
554
  View: "view",
553
555
  Query: "query",
554
556
  Rollup: "rollup"
555
- }, ut = {
557
+ }, gt = {
556
558
  Database: "database",
557
559
  Storage: "storage"
558
- }, gt = {
560
+ }, Pt = {
559
561
  Built: "built",
560
562
  AwaitingBuild: "awaiting_build",
561
563
  NotBuildable: "not_buildable",
562
564
  Refused: "refused",
563
565
  Failed: "failed"
564
- }, Pt = {
566
+ }, vt = {
565
567
  Serves: "serves",
566
568
  AfterBuild: "after_build",
567
569
  Live: "live",
568
570
  NotJudged: "not_judged"
569
- }, vt = {
571
+ }, bt = {
570
572
  Exact: "exact",
571
573
  Predicted: "predicted",
572
574
  NotKnowableLocally: "not_knowable_locally"
573
- }, bt = {
575
+ }, St = {
574
576
  Persist: "persist",
575
577
  Materialize: "materialize",
576
578
  View: "view",
577
579
  Query: "query",
578
580
  Rollup: "rollup"
579
- }, St = {
581
+ }, Vt = {
580
582
  Database: "database",
581
583
  Storage: "storage"
582
- }, Vt = {
584
+ }, Ot = {
583
585
  Built: "built",
584
586
  AwaitingBuild: "awaiting_build",
585
587
  NotBuildable: "not_buildable",
586
588
  Refused: "refused",
587
589
  Failed: "failed"
588
- }, Ot = {
590
+ }, kt = {
589
591
  Serves: "serves",
590
592
  AfterBuild: "after_build",
591
593
  Live: "live",
592
594
  NotJudged: "not_judged"
593
- }, kt = {
595
+ }, At = {
594
596
  AuthorName: "author_name",
595
597
  DestinationMissing: "destination_missing",
596
598
  MayBeServed: "may_be_served"
597
- }, At = {
599
+ }, yt = {
598
600
  Simulated: "simulated",
599
601
  Local: "local",
600
602
  Draft: "draft",
601
603
  Published: "published"
602
- }, yt = {
604
+ }, It = {
603
605
  Pending: "PENDING",
604
606
  ManifestRowsReady: "MANIFEST_ROWS_READY",
605
607
  ManifestFileReady: "MANIFEST_FILE_READY",
606
608
  Failed: "FAILED",
607
609
  Cancelled: "CANCELLED"
608
- }, It = {
610
+ }, Ct = {
609
611
  Catalog: "catalog",
610
612
  Counted: "counted",
611
613
  Sampled: "sampled",
612
614
  History: "history",
613
615
  Host: "host"
614
- }, Ct = {
616
+ }, Rt = {
615
617
  Compile: "compile",
616
618
  Extraction: "extraction"
617
- }, Rt = {
619
+ }, xt = {
618
620
  Markdown: "markdown",
619
621
  Code: "code"
620
- }, xt = {
622
+ }, Tt = {
621
623
  Markdown: "markdown",
622
624
  Query: "query",
623
625
  Definition: "definition"
624
- }, Tt = {
626
+ }, Ut = {
625
627
  Archive: "archive",
626
628
  Unarchive: "unarchive"
627
- }, Ut = {
629
+ }, Nt = {
628
630
  Version: "version",
629
631
  Package: "package"
630
- }, Nt = {
632
+ }, Et = {
631
633
  Declared: "declared",
632
634
  All: "all"
633
- }, Et = {
635
+ }, ft = {
634
636
  Unbound: "unbound",
635
637
  Bound: "bound",
636
638
  BindFailed: "bind_failed",
637
639
  LiveFallback: "live_fallback"
638
- }, ft = {
640
+ }, wt = {
639
641
  Lexical: "lexical",
640
642
  Indexing: "indexing",
641
643
  Ready: "ready",
642
644
  Error: "error",
643
645
  Cooldown: "cooldown",
644
646
  TooManyEntities: "too-many-entities"
645
- }, wt = {
647
+ }, Mt = {
646
648
  Cooldown: "cooldown",
647
649
  TooManyEntities: "too-many-entities"
648
- }, Mt = {
650
+ }, Ft = {
649
651
  Keyphrase: "keyphrase",
650
652
  SourceSummary: "source_summary"
651
- }, Ft = {
653
+ }, Bt = {
652
654
  Archive: "archive",
653
655
  Unarchive: "unarchive"
654
- }, Bt = {
656
+ }, jt = {
655
657
  Unbound: "unbound",
656
658
  Bound: "bound",
657
659
  BindFailed: "bind_failed",
658
660
  LiveFallback: "live_fallback"
659
- }, jt = {
661
+ }, zt = {
660
662
  Archive: "archive",
661
663
  Unarchive: "unarchive"
662
- }, zt = {
664
+ }, Lt = {
663
665
  Version: "version",
664
666
  Package: "package"
665
- }, Lt = {
667
+ }, _t = {
666
668
  Declared: "declared",
667
669
  All: "all"
668
- }, _t = {
670
+ }, Dt = {
669
671
  Unbound: "unbound",
670
672
  Bound: "bound",
671
673
  BindFailed: "bind_failed",
672
674
  LiveFallback: "live_fallback"
673
- }, Dt = {
675
+ }, Qt = {
674
676
  Archive: "archive",
675
677
  Unarchive: "unarchive"
676
- }, Qt = {
678
+ }, qt = {
677
679
  Unbound: "unbound",
678
680
  Bound: "bound",
679
681
  BindFailed: "bind_failed",
680
682
  LiveFallback: "live_fallback"
681
- }, qt = {
682
- Archive: "archive",
683
- Unarchive: "unarchive"
684
683
  }, Ht = {
685
684
  Archive: "archive",
686
685
  Unarchive: "unarchive"
687
686
  }, Gt = {
687
+ Archive: "archive",
688
+ Unarchive: "unarchive"
689
+ }, Wt = {
688
690
  Error: "error",
689
691
  Warn: "warn"
690
- }, Wt = {
692
+ }, Kt = {
691
693
  Persist: "persist",
692
694
  Materialize: "materialize",
693
695
  View: "view",
694
696
  Query: "query",
695
697
  Rollup: "rollup",
696
698
  Preaggregate: "preaggregate"
697
- }, Kt = {
699
+ }, $t = {
698
700
  Disable: "disable",
699
701
  NoVerify: "no-verify",
700
702
  VerifyCa: "verify-ca",
701
703
  VerifyFull: "verify-full"
702
- }, $t = {
704
+ }, Yt = {
703
705
  Interactive: "interactive",
704
706
  Materialize: "materialize",
705
707
  Index: "index",
@@ -710,61 +712,61 @@ const b = function(l, ...r) {
710
712
  View: "view",
711
713
  Query: "query",
712
714
  Rollup: "rollup"
713
- }, Yt = {
715
+ }, Zt = {
714
716
  Used: "used",
715
717
  Skipped: "skipped"
716
- }, Zt = {
718
+ }, Xt = {
717
719
  Persist: "persist",
718
720
  Materialize: "materialize",
719
721
  View: "view",
720
722
  Query: "query",
721
723
  Rollup: "rollup"
722
- }, Xt = {
724
+ }, en = {
723
725
  Sibling: "sibling",
724
726
  Below: "below"
725
- }, en = {
727
+ }, an = {
726
728
  Persist: "persist",
727
729
  Materialize: "materialize",
728
730
  View: "view",
729
731
  Query: "query",
730
732
  Rollup: "rollup"
731
- }, an = {
733
+ }, tn = {
732
734
  Database: "database",
733
735
  Storage: "storage"
734
- }, tn = {
736
+ }, nn = {
737
+ Table: "table",
738
+ Live: "live"
739
+ }, rn = {
735
740
  View: "view",
736
741
  Query: "query",
737
742
  Rollup: "rollup",
738
743
  Materialized: "materialized",
739
744
  Live: "live"
740
- }, nn = {
745
+ }, sn = {
741
746
  Query: "query",
742
747
  ServerDefault: "server_default"
743
- }, rn = {
748
+ }, on = {
744
749
  Storage: "storage",
745
750
  Database: "database",
746
751
  LiveFallback: "live_fallback"
747
- }, sn = {
752
+ }, ln = {
748
753
  Snapshot: "SNAPSHOT",
749
754
  Copy: "COPY"
750
- }, on = {
755
+ }, cn = {
751
756
  Persist: "persist",
752
757
  Materialize: "materialize",
753
758
  View: "view",
754
759
  Query: "query",
755
760
  Rollup: "rollup"
756
- }, ln = {
761
+ }, pn = {
757
762
  Storage: "storage",
758
763
  Database: "database",
759
764
  Preaggregate: "preaggregate",
760
765
  Colocated: "colocated"
761
- }, cn = {
766
+ }, dn = {
762
767
  FreeParameter: "free_parameter",
763
768
  Given: "given",
764
769
  GivenInPersistedQuery: "given_in_persisted_query",
765
- DynamicProjection: "dynamic_projection",
766
- DynamicJoin: "dynamic_join",
767
- DynamicJoinedWhere: "dynamic_joined_where",
768
770
  InheritedWhereWithGiven: "inherited_where_with_given",
769
771
  PartitionWithoutStorage: "partition_without_storage",
770
772
  PartitionColumnUnknown: "partition_column_unknown",
@@ -804,47 +806,46 @@ const b = function(l, ...r) {
804
806
  UnreadableGrain: "unreadable_grain",
805
807
  UpstreamUnread: "upstream_unread",
806
808
  UpstreamTableUnusable: "upstream_table_unusable",
807
- ContainerNotFound: "container_not_found"
808
- }, pn = {
809
+ ContainerNotFound: "container_not_found",
810
+ BoundInvocationUnkeyable: "bound_invocation_unkeyable",
811
+ AddressUnresolved: "address_unresolved"
812
+ }, mn = {
809
813
  Grid: "grid",
810
814
  Linear: "linear"
811
- }, dn = {
815
+ }, hn = {
812
816
  Malloynb: "malloynb",
813
817
  Malloy: "malloy"
814
- }, mn = {
818
+ }, un = {
815
819
  Grid: "grid",
816
820
  Linear: "linear"
817
- }, hn = {
821
+ }, gn = {
818
822
  Query: "query",
819
823
  Text: "text"
820
- }, un = {
824
+ }, Pn = {
821
825
  Publish: "publish",
822
826
  OnDemand: "on_demand",
823
827
  Scheduler: "scheduler"
824
- }, gn = {
828
+ }, vn = {
825
829
  Config: "config",
826
830
  CredentialChain: "credential_chain"
827
- }, Pn = {
831
+ }, bn = {
828
832
  Initializing: "initializing",
829
833
  Serving: "serving",
830
834
  Draining: "draining",
831
835
  Throttled: "throttled"
832
- }, vn = {
833
- Off: "off",
834
- On: "on"
835
- }, bn = {
836
+ }, Sn = {
836
837
  OnPublish: "on-publish",
837
838
  Explicit: "explicit"
838
- }, Sn = {
839
+ }, Vn = {
839
840
  Explorer: "explorer",
840
841
  Viewer: "viewer"
841
- }, Vn = {
842
- Bundled: "bundled",
843
- Package: "package"
844
842
  }, On = {
845
843
  Bundled: "bundled",
846
844
  Package: "package"
847
845
  }, kn = {
846
+ Bundled: "bundled",
847
+ Package: "package"
848
+ }, An = {
848
849
  NotBuilt: "NOT_BUILT",
849
850
  NotServed: "NOT_SERVED",
850
851
  OptedOut: "OPTED_OUT",
@@ -855,26 +856,24 @@ const b = function(l, ...r) {
855
856
  TimeZone: "TIME_ZONE",
856
857
  CrossConnection: "CROSS_CONNECTION",
857
858
  CountSemantics: "COUNT_SEMANTICS",
859
+ ComparisonSemantics: "COMPARISON_SEMANTICS",
858
860
  Stale: "STALE",
859
- ReadFailed: "READ_FAILED",
860
- Warned: "WARNED",
861
- Contract: "CONTRACT",
862
- RunFailed: "RUN_FAILED"
863
- }, An = {
861
+ ReadFailed: "READ_FAILED"
862
+ }, yn = {
864
863
  Persist: "persist",
865
864
  Materialize: "materialize",
866
865
  View: "view",
867
866
  Query: "query",
868
867
  Rollup: "rollup",
869
868
  Preaggregate: "preaggregate"
870
- }, yn = {
869
+ }, In = {
871
870
  Answered: "answered",
872
871
  Unsupported: "unsupported"
873
- }, In = {
872
+ }, Cn = {
874
873
  Light: "light",
875
874
  Dark: "dark",
876
875
  Auto: "auto"
877
- }, Cn = {
876
+ }, Rn = {
878
877
  NoCatalog: "no_catalog",
879
878
  NotFound: "not_found",
880
879
  Ambiguous: "ambiguous",
@@ -999,7 +998,7 @@ const b = function(l, ...r) {
999
998
  return (c, p) => V(s, u, g, l)(c, i || p);
1000
999
  }
1001
1000
  };
1002
- }, Rn = function(l, r, a) {
1001
+ }, xn = function(l, r, a) {
1003
1002
  const n = Q(l);
1004
1003
  return {
1005
1004
  /**
@@ -1086,13 +1085,13 @@ class qe extends C {
1086
1085
  return Q(this.configuration).listAgents(r, a, n, e).then((t) => t(this.axios, this.basePath));
1087
1086
  }
1088
1087
  }
1089
- const xn = {
1088
+ const Tn = {
1090
1089
  Full: "full",
1091
1090
  Summary: "summary"
1092
1091
  }, He = function(l) {
1093
1092
  return {
1094
1093
  /**
1095
- * Creates a new database connection in the specified environment.
1094
+ * Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
1096
1095
  * @summary Create a new database connection
1097
1096
  * @param {string} environmentName Name of the environment
1098
1097
  * @param {string} connectionName Name of the connection
@@ -1206,7 +1205,7 @@ const xn = {
1206
1205
  };
1207
1206
  },
1208
1207
  /**
1209
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1208
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1210
1209
  * @summary Read a table\'s row count, bytes and last modification
1211
1210
  * @param {string} environmentName Name of the environment
1212
1211
  * @param {string} connectionName Name of the connection
@@ -1229,7 +1228,7 @@ const xn = {
1229
1228
  };
1230
1229
  },
1231
1230
  /**
1232
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1231
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1233
1232
  * @summary Read a table\'s row count, bytes and last modification (per-package)
1234
1233
  * @param {string} environmentName Name of the environment
1235
1234
  * @param {string} packageName Name of the package whose connection context to use
@@ -1530,7 +1529,7 @@ const xn = {
1530
1529
  const r = He(l);
1531
1530
  return {
1532
1531
  /**
1533
- * Creates a new database connection in the specified environment.
1532
+ * Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
1534
1533
  * @summary Create a new database connection
1535
1534
  * @param {string} environmentName Name of the environment
1536
1535
  * @param {string} connectionName Name of the connection
@@ -1599,7 +1598,7 @@ const xn = {
1599
1598
  return (O, k) => V(p, u, g, l)(O, h || k);
1600
1599
  },
1601
1600
  /**
1602
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1601
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1603
1602
  * @summary Read a table\'s row count, bytes and last modification
1604
1603
  * @param {string} environmentName Name of the environment
1605
1604
  * @param {string} connectionName Name of the connection
@@ -1613,7 +1612,7 @@ const xn = {
1613
1612
  return (p, d) => V(o, u, g, l)(p, c || d);
1614
1613
  },
1615
1614
  /**
1616
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1615
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1617
1616
  * @summary Read a table\'s row count, bytes and last modification (per-package)
1618
1617
  * @param {string} environmentName Name of the environment
1619
1618
  * @param {string} packageName Name of the package whose connection context to use
@@ -1793,11 +1792,11 @@ const xn = {
1793
1792
  return (c, p) => V(s, u, g, l)(c, i || p);
1794
1793
  }
1795
1794
  };
1796
- }, Tn = function(l, r, a) {
1795
+ }, Un = function(l, r, a) {
1797
1796
  const n = y(l);
1798
1797
  return {
1799
1798
  /**
1800
- * Creates a new database connection in the specified environment.
1799
+ * Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
1801
1800
  * @summary Create a new database connection
1802
1801
  * @param {string} environmentName Name of the environment
1803
1802
  * @param {string} connectionName Name of the connection
@@ -1861,7 +1860,7 @@ const xn = {
1861
1860
  return n.getTableInPackage(e, t, s, o, i, c, p, d).then((h) => h(a, r));
1862
1861
  },
1863
1862
  /**
1864
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1863
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1865
1864
  * @summary Read a table\'s row count, bytes and last modification
1866
1865
  * @param {string} environmentName Name of the environment
1867
1866
  * @param {string} connectionName Name of the connection
@@ -1874,7 +1873,7 @@ const xn = {
1874
1873
  return n.getTableStats(e, t, s, o, i).then((c) => c(a, r));
1875
1874
  },
1876
1875
  /**
1877
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1876
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
1878
1877
  * @summary Read a table\'s row count, bytes and last modification (per-package)
1879
1878
  * @param {string} environmentName Name of the environment
1880
1879
  * @param {string} packageName Name of the package whose connection context to use
@@ -2044,7 +2043,7 @@ const xn = {
2044
2043
  };
2045
2044
  class Ge extends C {
2046
2045
  /**
2047
- * Creates a new database connection in the specified environment.
2046
+ * Creates a new database connection in the specified environment, named as the path names it: a body whose `name` names another connection is refused with a 400.
2048
2047
  * @summary Create a new database connection
2049
2048
  * @param {string} environmentName Name of the environment
2050
2049
  * @param {string} connectionName Name of the connection
@@ -2108,7 +2107,7 @@ class Ge extends C {
2108
2107
  return y(this.configuration).getTableInPackage(r, a, n, e, t, s, o, i).then((c) => c(this.axios, this.basePath));
2109
2108
  }
2110
2109
  /**
2111
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
2110
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A caller that declines the count (the MCP `search_database_schema` tool) is answered DuckDB\'s row-group estimate instead: `method` `catalog`, with a `rowCountBand`, and no access record. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
2112
2111
  * @summary Read a table\'s row count, bytes and last modification
2113
2112
  * @param {string} environmentName Name of the environment
2114
2113
  * @param {string} connectionName Name of the connection
@@ -2121,7 +2120,7 @@ class Ge extends C {
2121
2120
  return y(this.configuration).getTableStats(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
2122
2121
  }
2123
2122
  /**
2124
- * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
2123
+ * Reads a table\'s size from the connection\'s catalog: its row count, bytes and last modification time, each null where the catalog does not record it. `method` says how the numbers were read; `rowCountBand` appears only where the row count is an estimate (Postgres `reltuples`; DuckLake where its catalog leaves deletes unaccounted). Only a table has stats (on Postgres a partitioned table, its partitions summed, or a materialized view too); a view, an index or an external table answers `unsupported`. On DuckDB and MotherDuck the row count is counted, and that answer writes an access record with `decision: \"ungated\"`. A DuckLake connection reads its catalog\'s metadata tables and never counts: `method` `catalog`, no access record. Every stats read holds a query slot while it runs, a DuckLake one included, since it loads the catalog\'s shared metadata database. Metadata only: no field holds a row value. Answered for Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake connections; any other answers `status` `unsupported`. A `publisher` proxy connection forwards the request and relays the answer with `method` `host`.
2125
2124
  * @summary Read a table\'s row count, bytes and last modification (per-package)
2126
2125
  * @param {string} environmentName Name of the environment
2127
2126
  * @param {string} packageName Name of the package whose connection context to use
@@ -2288,9 +2287,9 @@ class Ge extends C {
2288
2287
  return y(this.configuration).updateConnection(r, a, n, e).then((t) => t(this.axios, this.basePath));
2289
2288
  }
2290
2289
  }
2291
- const Un = {
2290
+ const Nn = {
2292
2291
  Collations: "collations"
2293
- }, Nn = {
2292
+ }, En = {
2294
2293
  Collations: "collations"
2295
2294
  }, We = function(l) {
2296
2295
  return {
@@ -2330,7 +2329,7 @@ const Un = {
2330
2329
  return (o, i) => V(e, u, g, l)(o, s || i);
2331
2330
  }
2332
2331
  };
2333
- }, En = function(l, r, a) {
2332
+ }, fn = function(l, r, a) {
2334
2333
  const n = me(l);
2335
2334
  return {
2336
2335
  /**
@@ -2345,7 +2344,7 @@ const Un = {
2345
2344
  }
2346
2345
  };
2347
2346
  };
2348
- class fn extends C {
2347
+ class wn extends C {
2349
2348
  /**
2350
2349
  * 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.
2351
2350
  * @summary Test database connection configuration
@@ -2399,7 +2398,7 @@ const Ke = function(l) {
2399
2398
  return (c, p) => V(s, u, g, l)(c, i || p);
2400
2399
  }
2401
2400
  };
2402
- }, wn = function(l, r, a) {
2401
+ }, Mn = function(l, r, a) {
2403
2402
  const n = he(l);
2404
2403
  return {
2405
2404
  /**
@@ -2430,7 +2429,7 @@ class $e extends C {
2430
2429
  return he(this.configuration).listDataApps(r, a, n, e).then((t) => t(this.axios, this.basePath));
2431
2430
  }
2432
2431
  }
2433
- const Je = function(l) {
2432
+ const Ye = function(l) {
2434
2433
  return {
2435
2434
  /**
2436
2435
  * 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.
@@ -2456,7 +2455,7 @@ const Je = function(l) {
2456
2455
  }
2457
2456
  };
2458
2457
  }, ue = function(l) {
2459
- const r = Je(l);
2458
+ const r = Ye(l);
2460
2459
  return {
2461
2460
  /**
2462
2461
  * 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.
@@ -2472,7 +2471,7 @@ const Je = function(l) {
2472
2471
  return (c, p) => V(s, u, g, l)(c, i || p);
2473
2472
  }
2474
2473
  };
2475
- }, Mn = function(l, r, a) {
2474
+ }, Fn = function(l, r, a) {
2476
2475
  const n = ue(l);
2477
2476
  return {
2478
2477
  /**
@@ -2489,7 +2488,7 @@ const Je = function(l) {
2489
2488
  }
2490
2489
  };
2491
2490
  };
2492
- class Ye extends C {
2491
+ class Je extends C {
2493
2492
  /**
2494
2493
  * 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.
2495
2494
  * @summary List embedded databases
@@ -2506,7 +2505,7 @@ class Ye extends C {
2506
2505
  const Ze = function(l) {
2507
2506
  return {
2508
2507
  /**
2509
- * 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.
2508
+ * 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. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
2510
2509
  * @summary Create a new environment
2511
2510
  * @param {Environment} environment
2512
2511
  * @param {*} [options] Override http request option.
@@ -2585,7 +2584,7 @@ const Ze = function(l) {
2585
2584
  };
2586
2585
  },
2587
2586
  /**
2588
- * 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.
2587
+ * 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. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
2589
2588
  * @summary Update environment configuration
2590
2589
  * @param {string} environmentName Name of the environment
2591
2590
  * @param {Environment} environment
@@ -2610,7 +2609,7 @@ const Ze = function(l) {
2610
2609
  const r = Ze(l);
2611
2610
  return {
2612
2611
  /**
2613
- * 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.
2612
+ * 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. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
2614
2613
  * @summary Create a new environment
2615
2614
  * @param {Environment} environment
2616
2615
  * @param {*} [options] Override http request option.
@@ -2654,7 +2653,7 @@ const Ze = function(l) {
2654
2653
  return (s, o) => V(n, u, g, l)(s, t || o);
2655
2654
  },
2656
2655
  /**
2657
- * 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.
2656
+ * 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. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
2658
2657
  * @summary Update environment configuration
2659
2658
  * @param {string} environmentName Name of the environment
2660
2659
  * @param {Environment} environment
@@ -2666,11 +2665,11 @@ const Ze = function(l) {
2666
2665
  return (i, c) => V(t, u, g, l)(i, o || c);
2667
2666
  }
2668
2667
  };
2669
- }, Fn = function(l, r, a) {
2668
+ }, Bn = function(l, r, a) {
2670
2669
  const n = M(l);
2671
2670
  return {
2672
2671
  /**
2673
- * 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.
2672
+ * 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. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
2674
2673
  * @summary Create a new environment
2675
2674
  * @param {Environment} environment
2676
2675
  * @param {*} [options] Override http request option.
@@ -2710,7 +2709,7 @@ const Ze = function(l) {
2710
2709
  return n.listEnvironments(e).then((t) => t(a, r));
2711
2710
  },
2712
2711
  /**
2713
- * 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.
2712
+ * 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. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
2714
2713
  * @summary Update environment configuration
2715
2714
  * @param {string} environmentName Name of the environment
2716
2715
  * @param {Environment} environment
@@ -2724,7 +2723,7 @@ const Ze = function(l) {
2724
2723
  };
2725
2724
  class Xe extends C {
2726
2725
  /**
2727
- * 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.
2726
+ * 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. A name that differs only in letter case from an existing environment\'s is refused with a 400: on a case-insensitive file system both would resolve to one directory.
2728
2727
  * @summary Create a new environment
2729
2728
  * @param {Environment} environment
2730
2729
  * @param {*} [options] Override http request option.
@@ -2764,7 +2763,7 @@ class Xe extends C {
2764
2763
  return M(this.configuration).listEnvironments(r).then((a) => a(this.axios, this.basePath));
2765
2764
  }
2766
2765
  /**
2767
- * 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.
2766
+ * 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. The update applies only to the environment the path names: a body whose `name` names another environment is refused with a 400.
2768
2767
  * @summary Update environment configuration
2769
2768
  * @param {string} environmentName Name of the environment
2770
2769
  * @param {Environment} environment
@@ -3010,7 +3009,7 @@ const ea = function(l) {
3010
3009
  return (d, h) => V(i, u, g, l)(d, p || h);
3011
3010
  }
3012
3011
  };
3013
- }, Bn = function(l, r, a) {
3012
+ }, jn = function(l, r, a) {
3014
3013
  const n = U(l);
3015
3014
  return {
3016
3015
  /**
@@ -3179,7 +3178,7 @@ class aa extends C {
3179
3178
  return U(this.configuration).materializationAction(r, a, n, e, t, s).then((o) => o(this.axios, this.basePath));
3180
3179
  }
3181
3180
  }
3182
- const jn = {
3181
+ const zn = {
3183
3182
  Stop: "stop"
3184
3183
  }, ta = function(l) {
3185
3184
  return {
@@ -3385,7 +3384,7 @@ const jn = {
3385
3384
  return (d, h) => V(i, u, g, l)(d, p || h);
3386
3385
  }
3387
3386
  };
3388
- }, zn = function(l, r, a) {
3387
+ }, Ln = function(l, r, a) {
3389
3388
  const n = F(l);
3390
3389
  return {
3391
3390
  /**
@@ -3537,7 +3536,7 @@ class na extends C {
3537
3536
  const ra = function(l) {
3538
3537
  return {
3539
3538
  /**
3540
- * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
3539
+ * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
3541
3540
  * @summary Create a new package
3542
3541
  * @param {string} environmentName Name of the environment
3543
3542
  * @param {Package} _package
@@ -3603,7 +3602,7 @@ const ra = function(l) {
3603
3602
  };
3604
3603
  },
3605
3604
  /**
3606
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
3605
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
3607
3606
  * @summary Read the persist build plan of a loaded package
3608
3607
  * @param {string} environmentName Name of the environment
3609
3608
  * @param {string} packageName Name of the package
@@ -3734,7 +3733,7 @@ const ra = function(l) {
3734
3733
  };
3735
3734
  },
3736
3735
  /**
3737
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
3736
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
3738
3737
  * @summary Update package configuration
3739
3738
  * @param {string} environmentName Name of the environment
3740
3739
  * @param {string} packageName Name of the package
@@ -3761,7 +3760,7 @@ const ra = function(l) {
3761
3760
  const r = ra(l);
3762
3761
  return {
3763
3762
  /**
3764
- * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
3763
+ * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
3765
3764
  * @summary Create a new package
3766
3765
  * @param {string} environmentName Name of the environment
3767
3766
  * @param {Package} _package
@@ -3800,7 +3799,7 @@ const ra = function(l) {
3800
3799
  return (p, d) => V(o, u, g, l)(p, c || d);
3801
3800
  },
3802
3801
  /**
3803
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
3802
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
3804
3803
  * @summary Read the persist build plan of a loaded package
3805
3804
  * @param {string} environmentName Name of the environment
3806
3805
  * @param {string} packageName Name of the package
@@ -3877,7 +3876,7 @@ const ra = function(l) {
3877
3876
  return (o, i) => V(e, u, g, l)(o, s || i);
3878
3877
  },
3879
3878
  /**
3880
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
3879
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
3881
3880
  * @summary Update package configuration
3882
3881
  * @param {string} environmentName Name of the environment
3883
3882
  * @param {string} packageName Name of the package
@@ -3891,11 +3890,11 @@ const ra = function(l) {
3891
3890
  return (c, p) => V(s, u, g, l)(c, i || p);
3892
3891
  }
3893
3892
  };
3894
- }, Ln = function(l, r, a) {
3893
+ }, _n = function(l, r, a) {
3895
3894
  const n = x(l);
3896
3895
  return {
3897
3896
  /**
3898
- * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
3897
+ * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
3899
3898
  * @summary Create a new package
3900
3899
  * @param {string} environmentName Name of the environment
3901
3900
  * @param {Package} _package
@@ -3931,7 +3930,7 @@ const ra = function(l) {
3931
3930
  return n.getPackage(e, t, s, o, i).then((c) => c(a, r));
3932
3931
  },
3933
3932
  /**
3934
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
3933
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
3935
3934
  * @summary Read the persist build plan of a loaded package
3936
3935
  * @param {string} environmentName Name of the environment
3937
3936
  * @param {string} packageName Name of the package
@@ -4002,7 +4001,7 @@ const ra = function(l) {
4002
4001
  return n.listPackages(e, t).then((s) => s(a, r));
4003
4002
  },
4004
4003
  /**
4005
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
4004
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
4006
4005
  * @summary Update package configuration
4007
4006
  * @param {string} environmentName Name of the environment
4008
4007
  * @param {string} packageName Name of the package
@@ -4018,7 +4017,7 @@ const ra = function(l) {
4018
4017
  };
4019
4018
  class sa extends C {
4020
4019
  /**
4021
- * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built). With package versioning on, the tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. With package versioning on, a `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by default; `ServerStatus.packageVersioning` reports it), and a transition: a later release removes the setting and always publishes versions. With it off, a request that carries a `location` installs the package in place, replacing the previous publish, as before versions, whatever its `publisher.json` declares; the package has no versions, and the server logs a warning that names it. A package that already has published versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`). With it on, a request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. A request without a `location` registers a directory already in the environment as a single unversioned package, as packages loaded from `publisher.config.json` are with versioning off. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
4020
+ * Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content. ## Dry run With `?dryRun=true` the request needs a `location`. The tree there is downloaded and loaded, and the publish checks run, exactly as a publish would run them, and then it is discarded: nothing is installed, served or listed, the package already served under the name (if any) is untouched, no version is recorded, and the load\'s connections are closed. The answer is what a publish would answer for the tree itself: the same 400 or 424 refusal, or 200 with the package as it would load, its `warnings` included, plus the `location` it was loaded from. The 200 also carries what a publish would build and serve: the `buildPlan`, and `serveVerdicts`, each materialized source\'s serve verdict with each stored source\'s named views compiled against a compile-only served copy (no table is built), and `materializationSummary`, one line per materialized item as the publish would leave it, in the shape a package\'s serving state carries. Since the dry run builds and binds nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves` `after_build`, or `live` and the reason it would answer live), `not_buildable`, or `refused` with its reason. The tree\'s `publisher.json` must declare a valid version, as a versioned publish requires (400 `MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as `versionId`. Version lifecycle checks (a version that already exists, `latest`) are not part of it, and the 200 carries no `latestVersion` or `status`, which describe the package being served. A frozen configuration refuses a dry run as it refuses a publish, since the server still downloads and loads the caller\'s content; so does memory backpressure (503). A server runs at most 2 dry runs at once and refuses more with 503. A `description` that is not a string or a `manifestLocation` that names no manifest is the 400 a versioned publish answers. ## Versioned publish A request that carries a `location` publishes an immutable version of the package: the one its own `publisher.json` declares. The request takes no version parameter: the version is that field, the way `npm publish` reads `package.json`, so bumping it is the release action. - A `publisher.json` with no `version` is refused with 400 (`reason` `MANIFEST_VERSION_MISSING`), and one whose `version` is not a semantic version with 400 (`reason` `MANIFEST_VERSION_INVALID`). Nothing is written. - Publishing a version the package already has, with different content, is refused with 409 (`reason` `VERSION_CONFLICT`). The same content again succeeds and writes no files, so re-loading a version onto a server that already holds it is safe to retry; a non-null `manifestLocation` on that request binds the version to it. A re-load leaves `latest` where it is, so a retried publish never undoes a rollback; it sets `latest` only for a package that has none. Re-publishing an archived version is refused with 410 (`reason` `VERSION_ARCHIVED`): unarchive it instead. - A version that does not pass the publish checks (the same ones an unversioned publish applies) is refused with 400, and the versions already published keep serving. - Under `versionPromotion: \"on-publish\"` (the default), the new version becomes the package\'s `latest` unless a higher version already is. Under `\"explicit\"`, publish never moves `latest`; `PUT .../packages/{packageName}/latest` does. - A package mounted for watch mode is the author\'s own source directory, so it cannot hold immutable versions: publishing a version of it is refused with 400. - The request\'s `description`, when sent, is the package\'s description. Each version keeps the `description` from its own publisher.json. - An environment whose version registry is not bound yet (its database row was not written) refuses a publish, and a dry run, with 503 naming the environment. It never installs the package in place instead. A request without a `location` registers a directory already in the environment as a single unversioned package. A package that already has versions refuses that with 409 (`reason` `PACKAGE_IS_VERSIONED`).
4022
4021
  * @summary Create a new package
4023
4022
  * @param {string} environmentName Name of the environment
4024
4023
  * @param {Package} _package
@@ -4054,7 +4053,7 @@ class sa extends C {
4054
4053
  return x(this.configuration).getPackage(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4055
4054
  }
4056
4055
  /**
4057
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
4056
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest), or once a container it refused sources for now exists, and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
4058
4057
  * @summary Read the persist build plan of a loaded package
4059
4058
  * @param {string} environmentName Name of the environment
4060
4059
  * @param {string} packageName Name of the package
@@ -4125,7 +4124,7 @@ class sa extends C {
4125
4124
  return x(this.configuration).listPackages(r, a).then((n) => n(this.axios, this.basePath));
4126
4125
  }
4127
4126
  /**
4128
- * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So when the package will be fetched from a location once this request is applied (the `location` it sends, or else the one it was installed from), a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. A request that names a new `location` is judged against the tree fetched from it, and a refusal leaves the previous install serving. When the package it replaces was itself installed from a location, a field sent with that package\'s value is the package sent back, not a change: it is left out and the new tree\'s value serves, so a whole package read back with only its `location` changed is accepted. Make the change in the package\'s source and reload it, or publish it as a version.
4127
+ * DEPRECATED. In-place mutation of a package contradicts immutable versions, so this operation will be removed. On a package that has published versions it changes only what is not content: a `manifestLocation` URI is bound to the package\'s `latest` version (as `PUT .../packages/{packageName}/versions/{versionId}/manifest` does for any version), while a null or empty one leaves the binding as it is (clear it with that route), and `description` is the package\'s. `name` and the `location` the version was published from may be sent back unchanged. Any other change is refused with 409 (`reason` `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to change content. A `manifestLocation` URI that cannot be fetched or bound is refused as on the version route: 400 `MANIFEST_NOT_FOUND` when nothing is at it, 422 `MANIFEST_INVALID` when what is there is not a build manifest, and otherwise 500 `MANIFEST_BIND_FAILED`. That holds on a versioned package, and on an unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as they were, and it serves what it served before, the manifest it had bound or, with none, live (or this server\'s own store, where the server restores unversioned packages from it). A manifest that binds with some of its tables declined (one the warehouse does not hold, say) is not a failure: it answers 200, and those sources answer live. It keeps working, so that callers which predate versions do not break, and says it is deprecated: every response carries `Deprecation: true` and a `Link` to the package versions reference, every request is counted in `publisher_deprecated_usage_total` (`feature` `package_patch`), and the server logs a warning, once per package per run, naming the route that replaces it. Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, or update other package-level properties. The package must exist and be accessible. It does not install new content. A `location` other than the one the package was installed from (on a package with no versions: one an earlier release installed in place, or a directory registered without a location) is refused with 409 (`reason` `PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location as a version instead (`create-package` with the `location`, and a semantic `version` in its publisher.json). A `location` equal to the installed one is a metadata update, and a reload fetches that location again. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear. A package fetched from a `location` keeps none of these on reload: a reload fetches it again and replaces its files, `publisher.json` included, keeping only its `location` and manifest binding. So on a package installed from a location, a change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata` or `materialization` is refused with 409 (`reason` `PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request would leave in force: clearing a set field is a change, a null is omitted, and a value equal to the current one (`explores` normalized as stored) is not. Make the change in the package\'s source and reload it, or publish it as a version.
4129
4128
  * @summary Update package configuration
4130
4129
  * @param {string} environmentName Name of the environment
4131
4130
  * @param {string} packageName Name of the package
@@ -4262,7 +4261,7 @@ const oa = function(l) {
4262
4261
  return (o, i) => V(e, u, g, l)(o, s || i);
4263
4262
  }
4264
4263
  };
4265
- }, _n = function(l, r, a) {
4264
+ }, Dn = function(l, r, a) {
4266
4265
  const n = z(l);
4267
4266
  return {
4268
4267
  /**
@@ -4393,7 +4392,7 @@ const la = function(l) {
4393
4392
  };
4394
4393
  }
4395
4394
  };
4396
- }, Y = function(l) {
4395
+ }, J = function(l) {
4397
4396
  const r = la(l);
4398
4397
  return {
4399
4398
  /**
@@ -4424,8 +4423,8 @@ const la = function(l) {
4424
4423
  return (c, p) => V(s, u, g, l)(c, i || p);
4425
4424
  }
4426
4425
  };
4427
- }, Dn = function(l, r, a) {
4428
- const n = Y(l);
4426
+ }, Qn = function(l, r, a) {
4427
+ const n = J(l);
4429
4428
  return {
4430
4429
  /**
4431
4430
  * 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.
@@ -4466,7 +4465,7 @@ class ca extends C {
4466
4465
  * @throws {RequiredError}
4467
4466
  */
4468
4467
  getReport(r, a, n, e, t) {
4469
- return Y(this.configuration).getReport(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4468
+ return J(this.configuration).getReport(r, a, n, e, t).then((s) => s(this.axios, this.basePath));
4470
4469
  }
4471
4470
  /**
4472
4471
  * 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.
@@ -4478,7 +4477,7 @@ class ca extends C {
4478
4477
  * @throws {RequiredError}
4479
4478
  */
4480
4479
  listReports(r, a, n, e) {
4481
- return Y(this.configuration).listReports(r, a, n, e).then((t) => t(this.axios, this.basePath));
4480
+ return J(this.configuration).listReports(r, a, n, e).then((t) => t(this.axios, this.basePath));
4482
4481
  }
4483
4482
  }
4484
4483
  const pa = function(l) {
@@ -4560,7 +4559,7 @@ const pa = function(l) {
4560
4559
  return (c, p) => V(s, u, g, l)(c, i || p);
4561
4560
  }
4562
4561
  };
4563
- }, Qn = function(l, r, a) {
4562
+ }, qn = function(l, r, a) {
4564
4563
  const n = Z(l);
4565
4564
  return {
4566
4565
  /**
@@ -4590,7 +4589,7 @@ const pa = function(l) {
4590
4589
  }
4591
4590
  };
4592
4591
  };
4593
- class qn extends C {
4592
+ class Hn extends C {
4594
4593
  /**
4595
4594
  * 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.
4596
4595
  * @summary Get one agent skill, with its body
@@ -4737,7 +4736,7 @@ const da = function(l) {
4737
4736
  return (c, p) => V(s, u, g, l)(c, i || p);
4738
4737
  }
4739
4738
  };
4740
- }, Hn = function(l, r, a) {
4739
+ }, Gn = function(l, r, a) {
4741
4740
  const n = q(l);
4742
4741
  return {
4743
4742
  /**
@@ -4782,7 +4781,7 @@ const da = function(l) {
4782
4781
  }
4783
4782
  };
4784
4783
  };
4785
- class Gn extends C {
4784
+ class Wn extends C {
4786
4785
  /**
4787
4786
  * **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.
4788
4787
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
@@ -4871,7 +4870,7 @@ const ma = function(l) {
4871
4870
  };
4872
4871
  },
4873
4872
  /**
4874
- * 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.
4873
+ * 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 installed by an earlier release with versioning off) has no versions and returns an empty list.
4875
4874
  * @summary List a package\'s published versions
4876
4875
  * @param {string} environmentName Name of the environment
4877
4876
  * @param {string} packageName Name of the package
@@ -4990,7 +4989,7 @@ const ma = function(l) {
4990
4989
  return (c, p) => V(s, u, g, l)(c, i || p);
4991
4990
  },
4992
4991
  /**
4993
- * 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.
4992
+ * 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 installed by an earlier release with versioning off) has no versions and returns an empty list.
4994
4993
  * @summary List a package\'s published versions
4995
4994
  * @param {string} environmentName Name of the environment
4996
4995
  * @param {string} packageName Name of the package
@@ -5043,7 +5042,7 @@ const ma = function(l) {
5043
5042
  return (p, d) => V(o, u, g, l)(p, c || d);
5044
5043
  }
5045
5044
  };
5046
- }, Wn = function(l, r, a) {
5045
+ }, Kn = function(l, r, a) {
5047
5046
  const n = N(l);
5048
5047
  return {
5049
5048
  /**
@@ -5071,7 +5070,7 @@ const ma = function(l) {
5071
5070
  return n.getPackageVersion(e, t, s, o).then((i) => i(a, r));
5072
5071
  },
5073
5072
  /**
5074
- * 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.
5073
+ * 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 installed by an earlier release with versioning off) has no versions and returns an empty list.
5075
5074
  * @summary List a package\'s published versions
5076
5075
  * @param {string} environmentName Name of the environment
5077
5076
  * @param {string} packageName Name of the package
@@ -5147,7 +5146,7 @@ class ha extends C {
5147
5146
  return N(this.configuration).getPackageVersion(r, a, n, e).then((t) => t(this.axios, this.basePath));
5148
5147
  }
5149
5148
  /**
5150
- * 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.
5149
+ * 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 installed by an earlier release with versioning off) has no versions and returns an empty list.
5151
5150
  * @summary List a package\'s published versions
5152
5151
  * @param {string} environmentName Name of the environment
5153
5152
  * @param {string} packageName Name of the package
@@ -5331,7 +5330,7 @@ const ua = function(l) {
5331
5330
  return (c, p) => V(s, u, g, l)(c, i || p);
5332
5331
  }
5333
5332
  };
5334
- }, Kn = function(l, r, a) {
5333
+ }, $n = function(l, r, a) {
5335
5334
  const n = L(l);
5336
5335
  return {
5337
5336
  /**
@@ -5516,7 +5515,7 @@ const va = new Ae({
5516
5515
  throwOnError: !1
5517
5516
  }
5518
5517
  }
5519
- }), $n = {
5518
+ }), Yn = {
5520
5519
  staleTime: 300 * 1e3,
5521
5520
  refetchOnWindowFocus: !1,
5522
5521
  refetchOnReconnect: !1
@@ -5574,7 +5573,7 @@ const ge = le(void 0), Aa = (l, r, a) => {
5574
5573
  dataApps: new $e(t, n, e),
5575
5574
  reports: new ca(t, n, e),
5576
5575
  connections: new Ge(t, n, e),
5577
- databases: new Ye(t, n, e),
5576
+ databases: new Je(t, n, e),
5578
5577
  materializations: new aa(
5579
5578
  t,
5580
5579
  n,
@@ -5649,172 +5648,173 @@ const ge = le(void 0), Aa = (l, r, a) => {
5649
5648
  children: l
5650
5649
  }
5651
5650
  ) });
5652
- }, Yn = () => {
5651
+ }, Zn = () => {
5653
5652
  const l = ie(ge);
5654
5653
  if (l === void 0)
5655
5654
  throw new Error("useServer must be used within a ServerProvider");
5656
5655
  return l;
5657
5656
  };
5658
5657
  export {
5659
- pt as $,
5658
+ ht as $,
5660
5659
  qe as A,
5661
5660
  Ke as B,
5662
5661
  Qa as C,
5663
5662
  Xa as D,
5664
- wn as E,
5663
+ Mn as E,
5665
5664
  he as F,
5666
5665
  tt as G,
5667
- Ye as H,
5668
- Je as I,
5669
- Mn as J,
5666
+ Je as H,
5667
+ Ye as I,
5668
+ Fn as J,
5670
5669
  ue as K,
5671
5670
  nt as L,
5672
5671
  Xe as M,
5673
5672
  Ze as N,
5674
- Fn as O,
5673
+ Bn as O,
5675
5674
  M as P,
5676
5675
  rt as Q,
5677
5676
  st as R,
5678
- xn as S,
5679
- Nn as T,
5680
- Un as U,
5677
+ Tn as S,
5678
+ En as T,
5679
+ Nn as U,
5681
5680
  ot as V,
5682
5681
  it as W,
5683
5682
  lt as X,
5684
- dt as Y,
5685
- ct as Z,
5686
- mt as _,
5683
+ mt as Y,
5684
+ pt as Z,
5685
+ ct as _,
5687
5686
  Qe as a,
5688
5687
  sn as a$,
5689
- jn as a0,
5690
- ht as a1,
5691
- Pt as a2,
5692
- gt as a3,
5693
- ut as a4,
5694
- vt as a5,
5688
+ dt as a0,
5689
+ zn as a1,
5690
+ ut as a2,
5691
+ vt as a3,
5692
+ Pt as a4,
5693
+ gt as a5,
5695
5694
  bt as a6,
5696
- Ot as a7,
5697
- Vt as a8,
5698
- St as a9,
5695
+ St as a7,
5696
+ kt as a8,
5697
+ Ot as a9,
5699
5698
  Qt as aA,
5700
- _t as aB,
5701
- Lt as aC,
5702
- zt as aD,
5703
- qt as aE,
5699
+ qt as aB,
5700
+ Dt as aC,
5701
+ _t as aD,
5702
+ Lt as aE,
5704
5703
  Ht as aF,
5705
5704
  Gt as aG,
5706
- sa as aH,
5707
- ra as aI,
5708
- Ln as aJ,
5709
- x as aK,
5710
- Wt as aL,
5705
+ Wt as aH,
5706
+ sa as aI,
5707
+ ra as aJ,
5708
+ _n as aK,
5709
+ x as aL,
5711
5710
  Kt as aM,
5712
- ia as aN,
5713
- oa as aO,
5714
- _n as aP,
5715
- z as aQ,
5716
- $t as aR,
5717
- Jt as aS,
5718
- Yt as aT,
5711
+ $t as aN,
5712
+ ia as aO,
5713
+ oa as aP,
5714
+ Dn as aQ,
5715
+ z as aR,
5716
+ Yt as aS,
5717
+ Jt as aT,
5719
5718
  Zt as aU,
5720
5719
  Xt as aV,
5721
5720
  en as aW,
5722
- an as aX,
5723
- tn as aY,
5724
- nn as aZ,
5721
+ nn as aX,
5722
+ an as aY,
5723
+ tn as aZ,
5725
5724
  rn as a_,
5726
- kt as aa,
5725
+ Vt as aa,
5727
5726
  At as ab,
5728
5727
  yt as ac,
5729
- aa as ad,
5730
- ea as ae,
5731
- Bn as af,
5732
- U as ag,
5733
- It as ah,
5728
+ It as ad,
5729
+ aa as ae,
5730
+ ea as af,
5731
+ jn as ag,
5732
+ U as ah,
5734
5733
  Ct as ai,
5735
- na as aj,
5736
- ta as ak,
5737
- zn as al,
5738
- F as am,
5739
- xt as an,
5740
- Rt as ao,
5741
- Tt as ap,
5742
- wt as aq,
5734
+ Rt as aj,
5735
+ na as ak,
5736
+ ta as al,
5737
+ Ln as am,
5738
+ F as an,
5739
+ Tt as ao,
5740
+ xt as ap,
5741
+ Ut as aq,
5743
5742
  Mt as ar,
5744
- ft as as,
5745
- Et as at,
5746
- Nt as au,
5747
- Ut as av,
5748
- Ft as aw,
5743
+ Ft as as,
5744
+ wt as at,
5745
+ ft as au,
5746
+ Et as av,
5747
+ Nt as aw,
5749
5748
  Bt as ax,
5750
5749
  jt as ay,
5751
- Dt as az,
5752
- Rn as b,
5753
- ze as b$,
5750
+ zt as az,
5751
+ xn as b,
5752
+ Ne as b$,
5754
5753
  on as b0,
5755
- cn as b1,
5756
- ln as b2,
5754
+ ln as b1,
5755
+ cn as b2,
5757
5756
  dn as b3,
5758
5757
  pn as b4,
5759
- mn as b5,
5760
- hn as b6,
5761
- ca as b7,
5762
- la as b8,
5763
- Dn as b9,
5764
- N as bA,
5765
- ga as bB,
5766
- ua as bC,
5767
- Kn as bD,
5768
- L as bE,
5769
- va as bF,
5770
- La as bG,
5771
- Yn as bH,
5772
- je as bI,
5773
- pe as bJ,
5774
- za as bK,
5775
- T as bL,
5776
- Na as bM,
5777
- Ua as bN,
5778
- I as bO,
5779
- Ma as bP,
5780
- wa as bQ,
5781
- Fa as bR,
5782
- Ba as bS,
5783
- Ea as bT,
5784
- fa as bU,
5785
- $n as bV,
5786
- $ as bW,
5787
- Le as bX,
5788
- se as bY,
5789
- ja as bZ,
5790
- Ne as b_,
5791
- Y as ba,
5792
- un as bb,
5793
- gn as bc,
5794
- Jn as bd,
5795
- Sn as be,
5796
- Pn as bf,
5797
- vn as bg,
5758
+ hn as b5,
5759
+ mn as b6,
5760
+ un as b7,
5761
+ gn as b8,
5762
+ ca as b9,
5763
+ Kn as bA,
5764
+ N as bB,
5765
+ ga as bC,
5766
+ ua as bD,
5767
+ $n as bE,
5768
+ L as bF,
5769
+ va as bG,
5770
+ La as bH,
5771
+ Zn as bI,
5772
+ je as bJ,
5773
+ pe as bK,
5774
+ za as bL,
5775
+ T as bM,
5776
+ Na as bN,
5777
+ Ua as bO,
5778
+ I as bP,
5779
+ Ma as bQ,
5780
+ wa as bR,
5781
+ Fa as bS,
5782
+ Ba as bT,
5783
+ Ea as bU,
5784
+ fa as bV,
5785
+ Yn as bW,
5786
+ $ as bX,
5787
+ Le as bY,
5788
+ se as bZ,
5789
+ ja as b_,
5790
+ la as ba,
5791
+ Qn as bb,
5792
+ J as bc,
5793
+ Pn as bd,
5794
+ vn as be,
5795
+ Jn as bf,
5796
+ Vn as bg,
5798
5797
  bn as bh,
5799
- Vn as bi,
5798
+ Sn as bi,
5800
5799
  On as bj,
5801
- qn as bk,
5802
- pa as bl,
5803
- Qn as bm,
5804
- Z as bn,
5805
- kn as bo,
5806
- Gn as bp,
5807
- da as bq,
5808
- Hn as br,
5809
- q as bs,
5810
- An as bt,
5800
+ kn as bk,
5801
+ Hn as bl,
5802
+ pa as bm,
5803
+ qn as bn,
5804
+ Z as bo,
5805
+ An as bp,
5806
+ Wn as bq,
5807
+ da as br,
5808
+ Gn as bs,
5809
+ q as bt,
5811
5810
  yn as bu,
5812
5811
  In as bv,
5813
5812
  Cn as bw,
5814
- ha as bx,
5815
- ma as by,
5816
- Wn as bz,
5813
+ Rn as bx,
5814
+ ha as by,
5815
+ ma as bz,
5817
5816
  Q as c,
5817
+ ze as c0,
5818
5818
  _a as d,
5819
5819
  Da as e,
5820
5820
  qa as f,
@@ -5823,17 +5823,17 @@ export {
5823
5823
  Ga as i,
5824
5824
  Pa as j,
5825
5825
  $a as k,
5826
- Ja as l,
5826
+ Ya as l,
5827
5827
  Ka as m,
5828
5828
  Ge as n,
5829
5829
  He as o,
5830
- Tn as p,
5830
+ Un as p,
5831
5831
  y as q,
5832
- fn as r,
5832
+ wn as r,
5833
5833
  We as s,
5834
- En as t,
5834
+ fn as t,
5835
5835
  me as u,
5836
- Ya as v,
5836
+ Ja as v,
5837
5837
  Za as w,
5838
5838
  et as x,
5839
5839
  at as y,