@malloy-publisher/sdk 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -450,7 +450,7 @@ export type CompileProblemSeverityEnum = typeof CompileProblemSeverityEnum[keyof
450
450
  */
451
451
  export interface CompileProblemAt {
452
452
  /**
453
- * URL of the source file
453
+ * The source file, never where the server keeps it: a package file\'s path relative to the package root, decoded (`sub dir/orders.malloy`). At scope `append` the problem points into a temporary compile-check overlay beside the model, `__compile_check.malloy` (`model` names the model it extends). A file outside the package reads `<outside package>`.
454
454
  */
455
455
  'url'?: string;
456
456
  /**
@@ -1587,7 +1587,7 @@ export interface Materialization {
1587
1587
  'packageName'?: string;
1588
1588
  'status'?: MaterializationStatus;
1589
1589
  /**
1590
- * Build output. Null until status = MANIFEST_FILE_READY.
1590
+ * Build output. Null until the tables are built (status MANIFEST_ROWS_READY), and on a run that failed or was cancelled before then. A run interrupted at MANIFEST_ROWS_READY (the server stopped while it loaded its manifest) ends FAILED with its manifest; that manifest is never served.
1591
1591
  */
1592
1592
  'manifest'?: BuildManifest | null;
1593
1593
  'startedAt'?: string | null;
@@ -1604,7 +1604,7 @@ export interface Materialization {
1604
1604
  'updatedAt'?: string;
1605
1605
  }
1606
1606
  /**
1607
- * Phase-aware status of a materialization run.
1607
+ * Phase-aware status of a materialization run. `MANIFEST_ROWS_READY`: the tables are built and the manifest is recorded. `MANIFEST_FILE_READY`: the run is done; an auto-run reaches it only after its manifest is loaded into the package it built, so a query sent after it is answered from the new tables (`metadata.autoLoad` is `loaded`). When that load does not take, the run still reaches `MANIFEST_FILE_READY`, since its tables were built, with `metadata.autoLoad` `failed`, `metadata.autoLoadStep` (`reload`, `bind` or `timeout`), `metadata.autoLoadError`, and `error` set; the package\'s next reload or restart binds the run\'s manifest. An orchestrated run never loads its manifest, so for it `MANIFEST_FILE_READY` means built.
1608
1608
  */
1609
1609
  export declare const MaterializationStatus: {
1610
1610
  readonly Pending: "PENDING";
@@ -1933,7 +1933,7 @@ export interface OmittedSource {
1933
1933
  */
1934
1934
  'sourceID': string;
1935
1935
  /**
1936
- * Why the source was left out, as a code. An OPEN set: a client must accept a code it does not know (read it as a failure) rather than reject the plan. Today\'s codes: `unkeyable` (Malloy could not key the source\'s build: an unbound parameter or a given with no value); `eligibility_check_failed` (an eligibility gate failed with an error rather than a refusal); `projection_failed` (the plan entry could not otherwise be computed); `rollup_companion_failed` (the generated `#(preaggregate)` rollup companion, which also plans v1 `#@ preaggregate` rollups, did not plan or compile); `rollup_companion_blanking_failed` (that companion was not built because a `#@` line of the author\'s files could not be set aside); `materialize_companion_failed` (the generated `#(materialize)` companion did not plan or compile); `persisted_view_companion_failed` (the persisted-view companion did not plan or compile); `v1_build_companion_failed` (the build copy of a model file without `##! experimental.persistence` did not compile, so none of its `#@ persist` sources were planned); `persist_annotation_unparseable` (none of the source\'s `#@` lines parse, so Malloy planned nothing for it; the package warning names the line).
1936
+ * Why the source was left out, as a code. An OPEN set: a client must accept a code it does not know (read it as a failure) rather than reject the plan. Today\'s codes: `unkeyable` (Malloy could not key the source\'s build: an unbound parameter or a given with no value); `eligibility_check_failed` (an eligibility gate failed with an error rather than a refusal); `projection_failed` (the plan entry could not otherwise be computed); `rollup_companion_failed` (the generated `#(preaggregate)` rollup companion, which also plans v1 `#@ preaggregate` rollups, did not plan or compile); `rollup_companion_blanking_failed` (that companion was not built because a `#@` line of the author\'s files could not be set aside); `materialize_companion_failed` (the generated `#(materialize)` companion did not plan or compile); `persisted_view_companion_failed` (the persisted-view companion did not plan or compile); `v1_build_companion_failed` (the build copy of a model file without `##! experimental.persistence` did not compile, so none of its `#@ persist` sources were planned); `persist_annotation_unparseable` is retained and no longer produced: a `#@` line that does not parse is an invalid annotation (`persist-unparseable`), which fails the publish and the load, so no served plan carries it.
1937
1937
  */
1938
1938
  'reason': string;
1939
1939
  }
@@ -2638,7 +2638,7 @@ export interface PackageWarningsInner {
2638
2638
  */
2639
2639
  'message'?: string;
2640
2640
  /**
2641
- * A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `deprecated-preaggregate-annotation`: a measure declaring `#@ preaggregate`, whose v2 spelling is `#(preaggregate)` (one per measure, `model` its file, `subject` the source and the message the measure; `warn`; only while `PUBLISHER_MATERIALIZE` is on). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). `classification-coverage`: a published source with a dimension or measure that carries no `#(classification)` while some field in the package does (one per source, `model` naming its file and `subject` the source; `warn`; see docs/classification.md). `classification-malformed`: a `#(classification)` annotation that names no single class (one per field, `subject` the source; `warn`). `classification-downgrade`: a field that declares a lower class than the fields its expression reads, which Publisher cannot tell from a real de-identification, so a review has to (one per field, `subject` the source; `warn`; a plain copy under `#(carries)` refuses the load instead). `preaggregate-over-stored-base`: a source persisted with `#@ persist storage=` that also declares `#@ preaggregate storage=` rollups, which are left out of the build plan and every run because a rollup over a stored base can neither build nor serve yet (one per base, `subject` the base; `warn`; the base still builds and serves from storage). `persist-unparseable`: a `#@` annotation that does not parse, so Malloy drops its source from the build and it is served live (one per annotation, `model` its file; `error`; refused at publish, while a package already published keeps loading). `persist-retired-key`: a `#@ persist` key no longer read, `sharing=` or `schedule=`, with what to write instead (one per key, `subject` the source; `error`; refused at publish). `persist-unknown-key`: a `#@ persist` key Publisher does not read, such as a misspelled `merge_key=` (one per key, `subject` the source; `warn`). `persist-not-materializable`: a `#@ persist` source the build walk did not recognize, served live (`subject` the source; `warn`). `persist-source-refused`: a `#@ persist` source a compile-time gate refused (a row-level gate, a free parameter, a given in the persisted query, or the `storage=` gate), served live, with the gate\'s message (`subject` the source, or a rollup\'s base; `warn`). `persist-incremental-no-merge-key`: an incremental source with no `merge_key=`, so each refresh replaces its watermark range (`subject` the source; `warn`). `persist-incremental-shared-address`: sources that compile to the same SQL on one connection, so they share one table and one boundary, where at least one is incremental (one per source; `warn`). `preaggregate-hidden-field`: a `#@ preaggregate` on a private or internal field or grain dimension (`warn`). `join-bypass`: an author join from a published source to one with a stricter gate, which the join does not carry (one per join, or one for a walk cut short at the join bound; always a `warn`, never a load refusal; see docs/authorize.md). `storage-column-type-mismatch`: a `storage=` table stores a column as a type other than the one Malloy declares for it. It is read through a cast to the declared type where that is faithful, and otherwise answered live (one per source and column, `model` the first model binding it, `subject` the source, the message naming the column, both types and which of the two applies; `warn`; see docs/materialization.md). `entities-…` (`entities-not-a-dimension`, `entities-parameterized-source`, `entities-multiple-required-filters`, `entities-sharing-not-allowed-on-dimension`, `entities-schedule-not-allowed-on-dimension`, `entities-required-filter-missing-dimension`, `entities-required-filter-non-public-dimension`): an `#(index)` or required `#(filter)` an index cannot honor, left out of `GET …/entities` (`model` its file; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
2641
+ * A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `deprecated-preaggregate-annotation`: a measure declaring `#@ preaggregate`, whose v2 spelling is `#(preaggregate)` (one per measure, `model` its file, `subject` the source and the message the measure; `warn`; only while `PUBLISHER_MATERIALIZE` is on). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). `classification-coverage`: a published source with a dimension or measure that carries no `#(classification)` while some field in the package does (one per source, `model` naming its file and `subject` the source; `warn`; see docs/classification.md). `classification-malformed`: a `#(classification)` annotation that names no single class (one per field, `subject` the source; `warn`). `classification-downgrade`: a field that declares a lower class than the fields its expression reads, which Publisher cannot tell from a real de-identification, so a review has to (one per field, `subject` the source; `warn`; a plain copy under `#(carries)` refuses the load instead). `preaggregate-over-stored-base`: retained, never reported by a released server. A `#@ preaggregate` rollup over a `#@ persist storage=` base is planned, built and served like any other rollup. Materialization codes follow one rule: the suffix tells the outcome. An INVALID annotation (or invalid code it covers) fails the publish and the load, on every path, so its code appears only in the load failure\'s message (the publish 4xx and `loadErrors`), never as a warning here: `persist-invalid`, `materialize-invalid`, `preaggregate-invalid`, `persist-view-invalid` and `persist-query-invalid` (a bad value or contradictory combination: a `storage=` that names nothing, an `@env.` reference, an unusable or reserved `name=`, an `inline=` that names no join, an incremental key on a view or query); `persist-unknown-key`, `materialize-unknown-key` and `preaggregate-unknown-key` (every route\'s key set is closed); `persist-retired-key` and `materialize-retired-key` (`sharing=`, `schedule=`, `partition=`); `persist-unparseable`, `materialize-unparseable` and `preaggregate-unparseable`; `persist-not-materializable` (a `#@ persist` on a shape Malloy does not plan); `preaggregate-not-a-measure`, `preaggregate-unknown-grain` and `preaggregate-not-mergeable`; `materialization-table-collision` (two sources whose `name=` puts them on one table; under `PERSIST_COLLISION_ENFORCE=false` a refusal instead); and `materialization-near-miss` (a misspelled materialization route or directive, such as `#(materialise)` or `#@ persits`). `preaggregate-malformed` is retained and no longer produced: it is `preaggregate-invalid` or `preaggregate-unparseable` now. A VALID annotation Publisher cannot build here is refused alone, answered live, while the package loads, and is severity `warn`, never `error`: `persist-not-built` (a `#@ persist` source a compile-time gate refused, a row-level gate, a free parameter, a given in the persisted query, the `storage=` gate, an incremental declaration the dialect cannot honour, or, under `PERSIST_COLLISION_ENFORCE=false`, a table another source writes; `subject` the source). `persist-source-refused` is its former name: each gate refusal (the cases it named before) is repeated under it, with the same message, for one release, then the repeat is removed; the refusals new in this release carry `persist-not-built` only. `materialize-not-built` (a valid `#(materialize)` Publisher cannot lay out or build; `subject` the source). `persist-view-not-built` and `persist-query-not-built` (a persisted view or named query that is not built: the feature is off (`PUBLISHER_MATERIALIZE`), or the message says why; `subject` the view or query). `preaggregate-not-built`: a valid `#(preaggregate)` or `#@ preaggregate` rollup a compile-time gate refused alone (a read-only dialect, a base scoped by a given, a table name another rollup holds, a row-level gate on a v1 rollup\'s base, or the `storage=` gate), so it is not built and its measures are served live while the rest of the package loads; the message names the base, the grain and the gate\'s reason (`subject` the base; `warn`). The rollup sub-family keeps its own codes: `preaggregate-hidden-field`, `-access-filter`, `-time-zone`, `-current-time`, `-reads-given`, `-unreadable-measure`, `-join-level` (also a `#@ preaggregate` over a source with a fan-out join), and `-name-clash`. `materialization-storage-mode`: a `storage=` source the deployment\'s `PERSIST_STORAGE_MODE` (`off` or `write-only`) does not serve from storage (`subject` the source, or a rollup\'s base; `warn`). `persist-incremental-no-merge-key`: an incremental source with no `merge_key=`, so each refresh replaces its watermark range (`subject` the source; `warn`). `persist-incremental-shared-address`: sources that compile to the same SQL on one connection, so they share one table and one boundary, where at least one is incremental (one per source; `warn`). `join-bypass`: an author join from a published source to one with a stricter gate, which the join does not carry (one per join, or one for a walk cut short at the join bound; always a `warn`, never a load refusal; see docs/authorize.md). `storage-column-type-mismatch`: a `storage=` table stores a column as a type other than the one Malloy declares for it. It is read through a cast to the declared type where that is faithful, and otherwise answered live (one per source and column, `model` the first model binding it, `subject` the source, the message naming the column, both types and which of the two applies; `warn`; see docs/materialization.md). `stored-native-schema-missing`: a colocated table is bound with no captured warehouse type (its manifest entry\'s `nativeSchema`) for a column whose field Malloy types as a big integer. On BigQuery the column is read as `INT64`, its only integer type, and still serves; on any other dialect it is left out, so a query that reads it is answered live. The next full rebuild captures the types (one per source, `model` the first model binding it, `subject` the source, the message naming the columns and which applies; `warn`; see docs/materialization.md). `entities-…` (`entities-not-a-dimension`, `entities-parameterized-source`, `entities-multiple-required-filters`, `entities-sharing-not-allowed-on-dimension`, `entities-schedule-not-allowed-on-dimension`, `entities-required-filter-missing-dimension`, `entities-required-filter-non-public-dimension`): an `#(index)` or required `#(filter)` an index cannot honor, left out of `GET …/entities` (`model` its file; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
2642
2642
  */
2643
2643
  'code'?: string;
2644
2644
  /**
@@ -2673,7 +2673,8 @@ export interface PersistSourcePlan {
2673
2673
  */
2674
2674
  'sql': string;
2675
2675
  /**
2676
- * The source\'s declared `#@ persist partition=` columns, resolved against its public projection and reported in the author\'s order, which is the order the stored table\'s directories nest in. Absent or empty means the table is written unpartitioned, which is the default and what every source built before this field existed means. A layout, not an access control. Every term the build strips from a source is re-applied when the artifact is read whether or not its column is partitioned, so a list omitting the column a caller is scoped by costs a full scan and never widens what that caller sees. Consumers should not infer isolation from it. `partition=` requires `storage=`; declared without one it is a publish refusal rather than an ignored key, so this is empty for every colocated source.
2676
+ * Retired and no longer produced: always absent. It reported a source\'s `#@ persist partition=` columns; `partition=` is now a retired key, refused at publish, and every stored table is written unpartitioned. Kept so generated clients that read it still compile.
2677
+ * @deprecated
2677
2678
  */
2678
2679
  'partition'?: Array<string>;
2679
2680
  /**
@@ -2937,10 +2938,11 @@ export interface QueryPathServer {
2937
2938
  'via'?: string;
2938
2939
  }
2939
2940
  /**
2940
- * What kind of answer: `view`, a persisted view\'s table; `rollup`, a pre-aggregation; `materialized`, a materialized source\'s table; `live`, the source\'s own warehouse.
2941
+ * What kind of answer: `view`, a persisted view\'s table; `query`, a persisted named query\'s table (`#@ persist` on a top-level `query:`); `rollup`, a pre-aggregation; `materialized`, a materialized source\'s table; `live`, the source\'s own warehouse. A client treats a kind it does not know as a materialized table it cannot name.
2941
2942
  */
2942
2943
  export declare const QueryPathTableKind: {
2943
2944
  readonly View: "view";
2945
+ readonly Query: "query";
2944
2946
  readonly Rollup: "rollup";
2945
2947
  readonly Materialized: "materialized";
2946
2948
  readonly Live: "live";
@@ -3049,7 +3051,7 @@ export interface QueryResult {
3049
3051
  */
3050
3052
  'queryRowLimitSource'?: QueryResultQueryRowLimitSourceEnum;
3051
3053
  /**
3052
- * How this answer was produced, when the query reached the storage routing decision at all. `storage` — served from a materialized table in a `storage=` destination, via the virtual-source transform. The source\'s own warehouse was not queried. `live_fallback` — the query DID route to storage and the store then failed underneath it, and the source\'s freshness fallback allowed it to degrade to the live warehouse. **The rows are correct and the request succeeded**, which is why this needs its own value: it is indistinguishable from a storage hit at the call site, and treating it as one would report a healthy hit rate for a broken store. This value is NOT the same event as the `live_fallback` label on `publisher_storage_serve_routing_total` — see the warning below. **This field describes the `storage=` tier and nothing else.** It records how the storage routing decision came out, so it says nothing about the colocated `#@ persist` tier, which answers a query by substituting the materialized table into the model and never reaches that decision. **Null is three different outcomes**, and they are worth telling apart because two of them mean materialization worked and one means it silently did not: 1. The query never had a storage binding to consider — every query on a deployment with no `storage=` sources, which is the default. 2. It was answered from a **colocated** materialized table. The query never reached the routing decision, so a fully materialized answer reports the same null a fully live one does. 3. The storage transform was **ineligible** for this query, so it was served live. The query DID reach the routing decision and the tier declined it — a storage-tier miss, reported identically to \"no materialization exists anywhere.\" Case 3 is the one that costs time, because nothing about this field distinguishes it from case 1. `path`, the path report, does: it names the table that answered in every tier, and why each table that could have answered did not. The server does log it: one `storage serve-shape ineligible for this query; serving live` line at INFO per routed query, carrying the compile error that made the shape ineligible, plus `shapeSources` (what the shape offered) and `staleSources` (bound, but withheld by the freshness gate). The compile error alone does not separate those: `Reference to undefined object \'x\'` reads identically whether `x` carries no `#@ persist` at all or is materialized and merely past its freshness window. That log is currently the only per-query account of a storage-tier miss. It is not a hypothetical shape — a source warehouse that folds unquoted identifiers to upper case made every query on every `storage=` source in a package ineligible, and the whole tier reported null for months while looking exactly like a deployment that had never enabled it. For the colocated tier there is no per-query signal at all. The package-grain fields are the nearest thing — `manifestBindingStatus`, `manifestEntryCount` and `storageServeBindings` — but read what each actually claims: `bound` reports that the bind ran to completion, explicitly NOT that any query routes to a materialized table, and `manifestEntryCount` counts colocated entries only, so a package whose sources are all `storage=` reports 0 while being fully bound. ⚠️ **`live_fallback` names two different things across two surfaces, and correlating them on the token is wrong in both directions.** On this field it means the store failed at run time. On `publisher_storage_serve_routing_total{outcome}` it means the transform was ineligible — this field\'s null case 3 — and that metric spells the run-time failure `runtime_live_fallback`. So the field\'s `live_fallback` is the metric\'s `runtime_live_fallback`, and the metric\'s `live_fallback` is this field\'s `null`. A third surface, `manifestBindingStatus`, uses the same token for a third thing: a configured `manifestLocation` whose fetch or bind failed. Each surface is internally consistent; none of them means what the others do.
3054
+ * How this answer was produced, when the query reached the storage routing decision at all. `storage` — served from a materialized table in a `storage=` destination, via the virtual-source transform. The source\'s own warehouse was not queried. `live_fallback` — the query DID route to storage and the store then failed underneath it, and the source\'s freshness fallback allowed it to degrade to the live warehouse. **The rows are correct and the request succeeded**, which is why this needs its own value: it is indistinguishable from a storage hit at the call site, and treating it as one would report a healthy hit rate for a broken store. On `publisher_query_route_total` the same event is the answering leg\'s `outcome=\"fallback\", reason=\"RUN_FAILED\"`. **This field describes the `storage=` tier and nothing else.** It records how the storage routing decision came out, so it says nothing about the colocated `#@ persist` tier, which answers a query by substituting the materialized table into the model and never reaches that decision. **Null is three different outcomes**, and they are worth telling apart because two of them mean materialization worked and one means it silently did not: 1. The query never had a storage binding to consider — every query on a deployment with no `storage=` sources, which is the default. 2. It was answered from a **colocated** materialized table. The query never reached the routing decision, so a fully materialized answer reports the same null a fully live one does. 3. The served copy did **not answer** this query, so it was served live. The query DID reach the routing decision and the tier declined it — a storage-tier miss, reported identically to \"no materialization exists anywhere.\" Case 3 is the one that costs time, because nothing about this field distinguishes it from case 1. `path`, the path report, does: it names the table that answered in every tier, and why each table that could have answered did not. The server also logs one `served copy cannot answer this query` line at DEBUG per declined query, carrying the error that declined it. It is not hypothetical — a source warehouse that folds unquoted identifiers to upper case once made every query on every `storage=` source in a package miss, and the whole tier reported null for months while looking exactly like a deployment that had never enabled it. For the colocated tier there is no per-query signal at all. The package-grain fields are the nearest thing — `manifestBindingStatus`, `manifestEntryCount` and `storageServeBindings` — but read what each actually claims: `bound` reports that the bind ran to completion, explicitly NOT that any query routes to a materialized table, and `manifestEntryCount` counts colocated entries only, so a package whose sources are all `storage=` reports 0 while being fully bound. ⚠️ **`live_fallback` here is not `manifestBindingStatus`\'s.** On this field it means the store failed at run time; `manifestBindingStatus` uses the same token for a configured `manifestLocation` whose fetch or bind failed. Each surface is internally consistent; neither means what the other does.
3053
3055
  */
3054
3056
  'servedFrom'?: QueryResultServedFromEnum | null;
3055
3057
  /**
@@ -3198,7 +3200,7 @@ export interface RefusedSource {
3198
3200
  */
3199
3201
  'tier': RefusedSourceTierEnum;
3200
3202
  /**
3201
- * The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns), `preaggregate_over_dynamic_source` (a rollup whose base is scoped by a given, which has no read-time re-application to put the term back), `read_only_dialect` (a colocated `#@ persist` on a source whose dialect cannot create tables; SQL Server today, whose connection reports `canPersist: false`), `env_reference` (a source with an `@env.` reference on one of its `#@` lines, whose directives are all ignored, so it serves live rather than build into the source warehouse), and `rollup_name_collision` (a pre-aggregation rollup whose generated name, and so its table, is also another model\'s rollup with different content; neither builds or serves, and each model answers from its base) — those being the only reasons the two compile-time eligibility asserts this collection is computed from produce. `given_in_persisted_query` is raised by BOTH gates, for one condition: the BUILD would substitute a given\'s value, so the artifact holds one caller\'s slice. On colocated that is a build that runs and lies; on a storage destination the same placement also leaves nothing for the read to re-apply. A given in the source\'s extend block is neither — it is left out of the build and applied per caller at read — and is admitted on both tiers. `given` is retained for records that already carry it and is no longer produced. It was the storage tier\'s blanket refusal of any given reference, and the positional reasons above replaced it: where a given sits decides the outcome, so a single reason covering every placement can no longer be raised. `not_duckdb_portable` is decided against the post-build captured schema, which does not exist at compile time, and `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns; both are listed only because they share the enum the runtime eligibility metric uses.
3203
+ * The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), `inherited_where_with_given` (a given-reading `where:` the source inherits from a source it is built from, in its own file or another, rather than writing it in its own declaration: only the source\'s own declaration is re-applied over the stored table at read, so it is not built and is answered live, under the term; move the `where:` onto the persisted source to serve it from a table), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns), `preaggregate_over_dynamic_source` (a rollup whose base is scoped by a given, which has no read-time re-application to put the term back), `read_only_dialect` (a colocated `#@ persist` on a source whose dialect cannot create tables; SQL Server today, whose connection reports `canPersist: false`), `storage_source_unsupported` (`storage=` on a source whose connection the build cannot pass through to a destination, e.g. the package\'s DuckDB sandbox; it is not built and is answered live), `rollup_name_collision` (a pre-aggregation rollup whose generated name, and so its table, is also another model\'s rollup with different content; neither builds or serves, and each model answers from its base), and `current_time` (a `#@ persist` whose build reads the current time, `now`: in its persisted query, a view it runs, the `where:`, a field or a join of the source that query reads, or the query of a query-shaped source it is built from or joins; its table would hold the rows as of the build, so it is not built and is answered live. `now` in the source\'s own extend block is applied at every read and is admitted) — those being the only reasons the two compile-time eligibility asserts this collection is computed from produce. One more appears only in a run\'s `metadata.refusedSources`, never in a build plan: `table_name_collision` (a source whose readable table name, the name a standalone run gives a table it names itself, is a name another source\'s table already takes in that run: two sources of one model that share a name, such as a `#@ persist` source named like a persisted view\'s generated build source beside it, or a hash collision; it is not built and is answered live), or a source whose `name=` puts it on one table with another source, under `PERSIST_COLLISION_ENFORCE=false` (by default such a package does not load); neither is built, so neither overwrites the other, and both are answered live). `given_in_persisted_query` is raised by BOTH gates, for one condition: the BUILD would substitute a given\'s value, so the artifact holds one caller\'s slice. On colocated that is a build that runs and lies; on a storage destination the same placement also leaves nothing for the read to re-apply. A given in the source\'s extend block is neither — it is left out of the build and applied per caller at read — and is admitted on both tiers. `given` is retained for records that already carry it and is no longer produced. It was the storage tier\'s blanket refusal of any given reference, and the positional reasons above replaced it: where a given sits decides the outcome, so a single reason covering every placement can no longer be raised. `not_duckdb_portable` is likewise retained and no longer produced: a `storage=` table no column of which Malloy can type is now built, and its source is answered live. The three `partition_*` reasons (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`) are likewise retained and no longer produced: `partition=` is a retired key, which fails the publish and the load as `persist-retired-key` or `materialize-retired-key`, never a plan refusal. `env_reference` and `empty_storage` are likewise retained and no longer produced: an `@env.` reference on a `#@` line, and a `storage=` that names no destination, are invalid annotations (`persist-invalid`), which fail the publish and the load, so no served plan carries them. `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns; both are listed only because they share the enum the runtime eligibility metric uses.
3202
3204
  */
3203
3205
  'reason': RefusedSourceReasonEnum;
3204
3206
  /**
@@ -3219,6 +3221,7 @@ export declare const RefusedSourceReasonEnum: {
3219
3221
  readonly DynamicProjection: "dynamic_projection";
3220
3222
  readonly DynamicJoin: "dynamic_join";
3221
3223
  readonly DynamicJoinedWhere: "dynamic_joined_where";
3224
+ readonly InheritedWhereWithGiven: "inherited_where_with_given";
3222
3225
  readonly PartitionWithoutStorage: "partition_without_storage";
3223
3226
  readonly PartitionColumnUnknown: "partition_column_unknown";
3224
3227
  readonly PartitionColumnNotPublic: "partition_column_not_public";
@@ -3228,8 +3231,12 @@ export declare const RefusedSourceReasonEnum: {
3228
3231
  readonly NotDuckdbPortable: "not_duckdb_portable";
3229
3232
  readonly PublicSurfaceUnknown: "public_surface_unknown";
3230
3233
  readonly ReadOnlyDialect: "read_only_dialect";
3234
+ readonly StorageSourceUnsupported: "storage_source_unsupported";
3231
3235
  readonly EnvReference: "env_reference";
3232
3236
  readonly RollupNameCollision: "rollup_name_collision";
3237
+ readonly EmptyStorage: "empty_storage";
3238
+ readonly TableNameCollision: "table_name_collision";
3239
+ readonly CurrentTime: "current_time";
3233
3240
  };
3234
3241
  export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
3235
3242
  /**
@@ -3600,7 +3607,7 @@ export interface ServeVerdict {
3600
3607
  */
3601
3608
  'verdict': string;
3602
3609
  /**
3603
- * For a `live` verdict, why: `refused` (the plan refused to build it), `storage_mode` (`storage=` while `PERSIST_STORAGE_MODE` is not `on`), `rollup_over_stored_base` (a rollup over a `storage=` base, left out of the plan), `unreachable` (no source on the package\'s published surface reads it), `row_level_gate` (every query through it carries an `#(authorize)` or `#(access_filter)` gate, which the storage tier and rollups cannot keep yet), `shadowed` (its storage table is bound, but every model\'s source of that name is another source), `destination_missing` (`storage=` names a destination the environment does not configure), `connection_cannot_hold_table` (colocated, on a connection whose type creates no tables), `served_copy` (a `#(materialize)` source, which only the served copy reads: the served copy is off, no model\'s served copy reads its table, or it is colocated, which the served copy does not serve yet). An open set.
3610
+ * For a `live` verdict, why: `refused` (the plan refused to build it), `storage_mode` (`storage=` while `PERSIST_STORAGE_MODE` is not `on`), `rollup_over_stored_base` (retained, never reported by a released server: a rollup over a `storage=` base is planned like any other), `unreachable` (no source on the package\'s published surface reads it), `row_level_gate` (every query through it carries an `#(authorize)` or `#(access_filter)` gate, which the storage tier and rollups cannot keep yet), `shadowed` (its storage table is bound, but every model\'s source of that name is another source), `destination_missing` (`storage=` names a destination the environment does not configure), `connection_cannot_hold_table` (colocated, on a connection whose type creates no tables), `served_copy` (a `#(materialize)` source, which only the served copy reads: the served copy is off, no model\'s served copy reads its table, or it is colocated, which the served copy does not serve yet). An open set.
3604
3611
  */
3605
3612
  'reason'?: string;
3606
3613
  /**
@@ -3620,7 +3627,7 @@ export interface ServeVerdict {
3620
3627
  */
3621
3628
  'cutoverReason'?: string;
3622
3629
  /**
3623
- * On a dry run, for a source stored with `storage=`: each named view on it, and whether it compiles against the serve shape. A view that does not is answered live, and `detail` carries the compile error that says why (usually a field the shape cannot reproduce).
3630
+ * On a dry run, for a source stored with `storage=`: each named view on it, and whether it compiles against a compile-only served copy. A view that does not is answered live, and `detail` carries the compile error that says why (usually a field the stored table cannot reproduce).
3624
3631
  */
3625
3632
  'views'?: Array<ViewServeVerdict>;
3626
3633
  }
@@ -4135,7 +4142,7 @@ export interface StorageTable {
4135
4142
  'name': string;
4136
4143
  }
4137
4144
  /**
4138
- * One `where:` conjunct a storage build leaves out of the artifact and the read puts back. Its `code` is the author\'s verbatim expression, which is what a serve shape re-emits; `givens` are the names that expression reads, which is what the shape must declare for it to compile.
4145
+ * One `where:` conjunct a storage build leaves out of the artifact and the read puts back. Its `code` is the author\'s verbatim expression, which is what the served copy re-emits; `givens` are the names that expression reads, which the served copy must declare for it to compile.
4139
4146
  */
4140
4147
  export interface StrippedTerm {
4141
4148
  /**
@@ -6497,7 +6504,7 @@ export type ExecuteNotebookCellBypassFiltersEnum = typeof ExecuteNotebookCellByp
6497
6504
  */
6498
6505
  export declare const PackagesApiAxiosParamCreator: (configuration?: Configuration) => {
6499
6506
  /**
6500
- * 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 serve shape (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`).
6507
+ * 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`).
6501
6508
  * @summary Create a new package
6502
6509
  * @param {string} environmentName Name of the environment
6503
6510
  * @param {Package} _package
@@ -6602,7 +6609,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
6602
6609
  */
6603
6610
  export declare const PackagesApiFp: (configuration?: Configuration) => {
6604
6611
  /**
6605
- * 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 serve shape (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`).
6612
+ * 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`).
6606
6613
  * @summary Create a new package
6607
6614
  * @param {string} environmentName Name of the environment
6608
6615
  * @param {Package} _package
@@ -6707,7 +6714,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
6707
6714
  */
6708
6715
  export declare const PackagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6709
6716
  /**
6710
- * 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 serve shape (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`).
6717
+ * 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`).
6711
6718
  * @summary Create a new package
6712
6719
  * @param {string} environmentName Name of the environment
6713
6720
  * @param {Package} _package
@@ -6812,7 +6819,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
6812
6819
  */
6813
6820
  export declare class PackagesApi extends BaseAPI {
6814
6821
  /**
6815
- * 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 serve shape (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`).
6822
+ * 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`).
6816
6823
  * @summary Create a new package
6817
6824
  * @param {string} environmentName Name of the environment
6818
6825
  * @param {Package} _package
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-Cvllj0GN.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GetAgentSkillsEnum=e.GetAgentSkillsEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelEntitiesErrorKindEnum=e.ModelEntitiesErrorKindEnum;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageArchiveStatusEnum=e.PackageArchiveStatusEnum;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageServingStateArchiveStatusEnum=e.PackageServingStateArchiveStatusEnum;exports.PackageServingStateManifestBindingStatusEnum=e.PackageServingStateManifestBindingStatusEnum;exports.PackageStatusEntryArchiveStatusEnum=e.PackageStatusEntryArchiveStatusEnum;exports.PackageStatusEntryFieldsArchiveStatusEnum=e.PackageStatusEntryFieldsArchiveStatusEnum;exports.PackageStatusEntryFieldsManifestBindingStatusEnum=e.PackageStatusEntryFieldsManifestBindingStatusEnum;exports.PackageStatusEntryManifestBindingStatusEnum=e.PackageStatusEntryManifestBindingStatusEnum;exports.PackageStatusEntryQueryableSourcesEnum=e.PackageStatusEntryQueryableSourcesEnum;exports.PackageStatusEntryScopeEnum=e.PackageStatusEntryScopeEnum;exports.PackageVersionArchiveStatusEnum=e.PackageVersionArchiveStatusEnum;exports.PackageVersionUpdateArchiveStatusEnum=e.PackageVersionUpdateArchiveStatusEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryPathCandidateOutcomeEnum=e.QueryPathCandidateOutcomeEnum;exports.QueryPathNearbyRelationshipEnum=e.QueryPathNearbyRelationshipEnum;exports.QueryPathTableKind=e.QueryPathTableKind;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusModelPageEnum=e.ServerStatusModelPageEnum;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ServerStatusPackageVersioningEnum=e.ServerStatusPackageVersioningEnum;exports.ServerStatusVersionPromotionEnum=e.ServerStatusVersionPromotionEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;exports.SkipReason=e.SkipReason;exports.StorageDestinationsApi=e.StorageDestinationsApi;exports.StorageDestinationsApiAxiosParamCreator=e.StorageDestinationsApiAxiosParamCreator;exports.StorageDestinationsApiFactory=e.StorageDestinationsApiFactory;exports.StorageDestinationsApiFp=e.StorageDestinationsApiFp;exports.StorageServeBindingOriginEnum=e.StorageServeBindingOriginEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.VersionsApi=e.VersionsApi;exports.VersionsApiAxiosParamCreator=e.VersionsApiAxiosParamCreator;exports.VersionsApiFactory=e.VersionsApiFactory;exports.VersionsApiFp=e.VersionsApiFp;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-D97_rUv5.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GetAgentSkillsEnum=e.GetAgentSkillsEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelEntitiesErrorKindEnum=e.ModelEntitiesErrorKindEnum;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageArchiveStatusEnum=e.PackageArchiveStatusEnum;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageServingStateArchiveStatusEnum=e.PackageServingStateArchiveStatusEnum;exports.PackageServingStateManifestBindingStatusEnum=e.PackageServingStateManifestBindingStatusEnum;exports.PackageStatusEntryArchiveStatusEnum=e.PackageStatusEntryArchiveStatusEnum;exports.PackageStatusEntryFieldsArchiveStatusEnum=e.PackageStatusEntryFieldsArchiveStatusEnum;exports.PackageStatusEntryFieldsManifestBindingStatusEnum=e.PackageStatusEntryFieldsManifestBindingStatusEnum;exports.PackageStatusEntryManifestBindingStatusEnum=e.PackageStatusEntryManifestBindingStatusEnum;exports.PackageStatusEntryQueryableSourcesEnum=e.PackageStatusEntryQueryableSourcesEnum;exports.PackageStatusEntryScopeEnum=e.PackageStatusEntryScopeEnum;exports.PackageVersionArchiveStatusEnum=e.PackageVersionArchiveStatusEnum;exports.PackageVersionUpdateArchiveStatusEnum=e.PackageVersionUpdateArchiveStatusEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryPathCandidateOutcomeEnum=e.QueryPathCandidateOutcomeEnum;exports.QueryPathNearbyRelationshipEnum=e.QueryPathNearbyRelationshipEnum;exports.QueryPathTableKind=e.QueryPathTableKind;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusModelPageEnum=e.ServerStatusModelPageEnum;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ServerStatusPackageVersioningEnum=e.ServerStatusPackageVersioningEnum;exports.ServerStatusVersionPromotionEnum=e.ServerStatusVersionPromotionEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;exports.SkipReason=e.SkipReason;exports.StorageDestinationsApi=e.StorageDestinationsApi;exports.StorageDestinationsApiAxiosParamCreator=e.StorageDestinationsApiAxiosParamCreator;exports.StorageDestinationsApiFactory=e.StorageDestinationsApiFactory;exports.StorageDestinationsApiFp=e.StorageDestinationsApiFp;exports.StorageServeBindingOriginEnum=e.StorageServeBindingOriginEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.VersionsApi=e.VersionsApi;exports.VersionsApiAxiosParamCreator=e.VersionsApiAxiosParamCreator;exports.VersionsApiFactory=e.VersionsApiFactory;exports.VersionsApiFp=e.VersionsApiFp;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
@@ -1,4 +1,4 @@
1
- import { A as e, a as t, b as i, c as n, d as o, e as r, C as u, f as p, g as m, h as A, i as E, j as c, k as l, l as b, m as S, n as g, o as y, p as P, q as d, r as C, s as F, t as k, u as h, D as M, v, w as R, x as D, y as x, z as T, B as f, E as N, F as Q, G as z, H as K, I as V, J as L, K as O, L as B, M as W, N as I, O as w, P as q, Q as G, R as U, S as j, T as H, U as J, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ta, a2 as ia, a3 as na, a4 as oa, a5 as ra, a6 as ua, a7 as pa, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as ba, ae as Sa, af as ga, ag as ya, ah as Pa, ai as da, aj as Ca, ak as Fa, al as ka, am as ha, an as Ma, ao as va, ap as Ra, aq as Da, ar as xa, as as Ta, at as fa, au as Na, av as Qa, aw as za, ax as Ka, ay as Va, az as La, aA as Oa, aB as Ba, aC as Wa, aD as Ia, aE as wa, aF as qa, aG as Ga, aH as Ua, aI as ja, aJ as Ha, aK as Ja, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as ts, aU as is, aV as ns, aW as os, aX as rs, aY as us, aZ as ps, a_ as ms, a$ as As, b0 as Es, b1 as cs, b2 as ls, b3 as bs, b4 as Ss, b5 as gs, b6 as ys, b7 as Ps, b8 as ds, b9 as Cs, ba as Fs, bb as ks, bc as hs, bd as Ms, be as vs, bf as Rs, bg as Ds, bh as xs, bi as Ts, bj as fs, bk as Ns, bl as Qs, bm as zs, bn as Ks, bo as Vs, bp as Ls, bq as Os, br as Bs, bs as Ws, bt as Is, bu as ws, bv as qs, bw as Gs } from "../ServerProvider-8Eul_YOl.es.js";
1
+ import { A as e, a as t, b as i, c as n, d as o, e as r, C as u, f as p, g as m, h as A, i as E, j as c, k as l, l as b, m as S, n as g, o as y, p as P, q as d, r as C, s as F, t as k, u as h, D as M, v, w as R, x as D, y as x, z as T, B as f, E as N, F as Q, G as z, H as K, I as V, J as L, K as O, L as B, M as W, N as I, O as w, P as q, Q as G, R as U, S as j, T as H, U as J, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ta, a2 as ia, a3 as na, a4 as oa, a5 as ra, a6 as ua, a7 as pa, a8 as ma, a9 as Aa, aa as Ea, ab as ca, ac as la, ad as ba, ae as Sa, af as ga, ag as ya, ah as Pa, ai as da, aj as Ca, ak as Fa, al as ka, am as ha, an as Ma, ao as va, ap as Ra, aq as Da, ar as xa, as as Ta, at as fa, au as Na, av as Qa, aw as za, ax as Ka, ay as Va, az as La, aA as Oa, aB as Ba, aC as Wa, aD as Ia, aE as wa, aF as qa, aG as Ga, aH as Ua, aI as ja, aJ as Ha, aK as Ja, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as ts, aU as is, aV as ns, aW as os, aX as rs, aY as us, aZ as ps, a_ as ms, a$ as As, b0 as Es, b1 as cs, b2 as ls, b3 as bs, b4 as Ss, b5 as gs, b6 as ys, b7 as Ps, b8 as ds, b9 as Cs, ba as Fs, bb as ks, bc as hs, bd as Ms, be as vs, bf as Rs, bg as Ds, bh as xs, bi as Ts, bj as fs, bk as Ns, bl as Qs, bm as zs, bn as Ks, bo as Vs, bp as Ls, bq as Os, br as Bs, bs as Ws, bt as Is, bu as ws, bv as qs, bw as Gs } from "../ServerProvider-BHM9y5l0.es.js";
2
2
  export {
3
3
  e as AgentsApi,
4
4
  t as AgentsApiAxiosParamCreator,
@@ -1,8 +1,9 @@
1
1
  import { Materialization, MaterializationStatus } from '../../client';
2
2
  /**
3
3
  * Non-terminal phases of a build: PENDING (building) -> MANIFEST_ROWS_READY
4
- * (tables built) -> MANIFEST_FILE_READY (terminal). Any non-terminal phase may
5
- * be polled and stopped.
4
+ * (tables built, manifest recorded, and an auto-run's manifest loading into
5
+ * its package) -> MANIFEST_FILE_READY (terminal: an auto-run's package serves
6
+ * the new tables). Any non-terminal phase may be polled and stopped.
6
7
  */
7
8
  export declare function isActiveStatus(status?: MaterializationStatus): boolean;
8
9
  export declare function isTerminalStatus(status?: MaterializationStatus): boolean;
@@ -15,6 +16,16 @@ export declare function isTerminalStatus(status?: MaterializationStatus): boolea
15
16
  export declare function statusLabel(status?: MaterializationStatus): string;
16
17
  type ChipColor = "default" | "info" | "success" | "error" | "warning";
17
18
  export declare function statusColor(status?: MaterializationStatus): ChipColor;
19
+ /**
20
+ * Whether an auto-run built its tables but its manifest did not load into the
21
+ * package (`metadata.autoLoad: "failed"`): it reached MANIFEST_FILE_READY, but
22
+ * queries are not answered from the new tables.
23
+ */
24
+ export declare function builtNotServed(materialization: Materialization): boolean;
25
+ /** {@link statusLabel} for a run, which reads a built-but-not-served run apart. */
26
+ export declare function runLabel(materialization: Materialization): string;
27
+ /** {@link statusColor} for a run: a built-but-not-served run is a warning. */
28
+ export declare function runColor(materialization: Materialization): ChipColor;
18
29
  /**
19
30
  * Shape of Materialization.metadata. The generated client types it as
20
31
  * `object | null`, so callers must read it through parseMetadata(), which
@@ -48,6 +59,14 @@ export interface MaterializationMetadata {
48
59
  name: string;
49
60
  message: string;
50
61
  }>;
62
+ /**
63
+ * An auto-run's manifest load, recorded when it reaches MANIFEST_FILE_READY:
64
+ * `loaded`, or `failed` with the step and error. Absent on an orchestrated
65
+ * run, which loads nothing.
66
+ */
67
+ autoLoad?: "loaded" | "failed";
68
+ autoLoadStep?: string;
69
+ autoLoadError?: string;
51
70
  }
52
71
  /** One source a run did not build because the eligibility gate refused it. */
53
72
  export interface RunRefusal {