@malloy-publisher/sdk 0.12.6 → 0.13.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.
@@ -303,6 +303,10 @@ export interface BuildInstructions {
303
303
  * When true, a persist upstream that is neither built here nor present in referenceManifest fails the build (compiler strict mode) instead of silently recomputing it live. Per-unit dispatch should set this true.
304
304
  */
305
305
  'strictUpstreams'?: boolean;
306
+ /**
307
+ * What a strict build (`strictUpstreams: true`) does with a `storage=` source whose only build recomputes a stored upstream from the source warehouse: the source reaches the warehouse through an intermediate that no stored table can stand in for, so no build over the stored tables exists for it. `recompute` (the default, and what an absent or null value means) builds it and reports `upstreamReuse: recomputed` with the reason; `refuse` fails the source instead, with that reason in its `SourceFailure.reason` and `retryable: false`, and nothing reads the warehouse. Non-strict builds ignore it, as they ignore `strictUpstreams`. An open string, not an enum, so a later value needs no client change; today\'s values are `recompute` and `refuse`, and any other is a 400.
308
+ */
309
+ 'warehouseReach'?: string;
306
310
  /**
307
311
  * The incremental ledger for this run, supplied by the caller: each entry is a `ManifestEntry.ledger` an earlier run reported, returned unmodified. Absent, the publisher uses its own ledger store — today\'s behavior, every existing caller. Present (even empty), it IS the ledger for this run: boundaries are read from here, the local store is neither read nor written, and an incremental source with no entry here seeds. An entry that does not validate against this run is a 400 (see `LedgerEntry`); an entry for a source being `reseed`-ed is ignored. For an orchestrator that dispatches one package\'s refreshes across interchangeable workers: the local store is per-process, so a refresh landing on a worker that has never built the table would otherwise re-seed a source whose whole purpose is not being rebuilt.
308
312
  */
@@ -360,6 +364,14 @@ export interface BuildPlan {
360
364
  'refusedSources'?: {
361
365
  [key: string]: RefusedSource;
362
366
  };
367
+ /**
368
+ * The sources this plan would have listed but left out because planning them FAILED, sorted by `sourceID`: a generated companion (a pre-aggregation rollup, a `#(materialize)` build source, a persisted view, the v1 build copy) that did not compile, or a source whose plan entry could not be projected. Each is a planner failure, not a decision: a source the plan decides not to build is in `refusedSources` or reported as a package warning, and is not listed here. Never names a sourceID that is in `sources`. Every entry is a real sourceID: a failure that came before its sources could be named is in `omittedFiles` instead. Lets a host tell \"this source left the plan\" from \"this plan could not say\": when both this list and `omittedFiles` are empty, every source the package\'s declarations plan is in `sources` or `refusedSources`, so a host may retire an anchor whose source is absent from both. Otherwise the plan is incomplete: an anchor whose source an entry names, or whose source is declared in a file `omittedFiles` names, must be kept. Always present on a plan from a Publisher that reports it (`[]` when nothing was lost); absent on one from an older Publisher, which must be read as \"completeness unknown\".
369
+ */
370
+ 'omittedSources'?: Array<OmittedSource>;
371
+ /**
372
+ * The files whose sources this plan could not name, sorted by `file`: a generated companion whose planning failed before it knew which sources it would plan. A host must retire nothing declared in a listed file (a sourceID whose part after its `@` is that `file`), since any of them may have been lost. Always present beside `omittedSources` (`[]` when nothing was lost); absent on a plan from a Publisher that predates it.
373
+ */
374
+ 'omittedFiles'?: Array<OmittedFile>;
363
375
  }
364
376
  /**
365
377
  * Server-computed, read-only, as `GET …/packages/{packageName}/classification` returns it: for each published entry point, the classes its `#(carries)` declares and how many of its fields carry each class (`#(classification)`, declared or inherited). Covers only the sources discovery shows, so it reveals nothing curation hides; a source locked to every caller is left out. A field\'s own classes, and what they were inherited from, are on its `get_context` card. `sources` is empty when no published field carries a class.
@@ -1480,6 +1492,10 @@ export interface ManifestEntry {
1480
1492
  * The authoritative column schema of the materialized table, captured from the destination engine AFTER the build (a `DESCRIBE` of the landed table), for `storage=` entries only. The serve-time virtual-source transform declares exactly this schema — the compiler does not type-check a virtual source\'s declared columns, so a wrong or pre-build-approximated schema would surface as a serve-time execution error, which is why the post-build capture is authoritative.
1481
1493
  */
1482
1494
  'schema'?: Array<Column>;
1495
+ /**
1496
+ * For a colocated entry (no `storageDestinationName`): each column of the built table with its type as the warehouse\'s own catalog names it (`bigint`, `numeric`, `NUMBER(38,0)`, `UHUGEINT`), captured after the build. The served copy reads a big-integer column through a cast to exactly this type, so a value past 2^53 comes back with every digit and no wider value is narrowed; a column whose type it does not know is answered live instead. Absent when the capture failed or the producer did not record it.
1497
+ */
1498
+ 'nativeSchema'?: Array<Column>;
1483
1499
  'realization'?: Realization;
1484
1500
  'rowCount'?: number | null;
1485
1501
  /**
@@ -1557,6 +1573,10 @@ export interface ManifestReference {
1557
1573
  * The connection the upstream table lives on. The publisher quotes the reference for this connection\'s dialect when it seeds the build manifest, so a downstream persist source resolves the upstream on a case-folding engine (Snowflake). Optional: omit it and the reference seeds unquoted (the pre-existing behavior), which fails a downstream build on such an engine.
1558
1574
  */
1559
1575
  'connectionName'?: string;
1576
+ /**
1577
+ * The storage destination the upstream table lives in, for a table a `storage=` build wrote; omit it for a table in the source\'s own warehouse. A stored table\'s `connectionName` is the source\'s warehouse connection, so without this field a reference to a stored table reads as a warehouse table. The publisher uses a reference as an upstream only where this agrees with where the upstream source is declared now (a source that moved to or from `storage=` keeps its content address): a stored upstream is stacked on in its destination, and never rendered into warehouse SQL. Optional and additive: a reference without it still serves a colocated upstream.
1578
+ */
1579
+ 'storageDestinationName'?: string;
1560
1580
  }
1561
1581
  /**
1562
1582
  * A record of one materialization run for a package.
@@ -1577,7 +1597,7 @@ export interface Materialization {
1577
1597
  */
1578
1598
  'error'?: string | null;
1579
1599
  /**
1580
- * Materialization metadata including build options, source counts, and durations. Free-form object — fields such as `trigger` (ON_DEMAND | SCHEDULER) live here deliberately, so a strict-schema client does not need to know them. Promoting any such field to a top-level `Materialization` property is a breaking schema change that orchestrated clients must adopt first; do not do it casually.
1600
+ * Materialization metadata including build options, source counts, and durations. Free-form object — fields such as `trigger` (ON_DEMAND | SCHEDULER) live here deliberately, so a strict-schema client does not need to know them. Promoting any such field to a top-level `Materialization` property is a breaking schema change that orchestrated clients must adopt first; do not do it casually. `errorRetryable` (boolean) is set on a FAILED run that built nothing, which commits no manifest and so reports no per-source `failures`: `false` when every source failed deterministically or was refused, `true` when any failure was transient, with the same rules as `SourceFailure.retryable`. Absent when unclassified, for a cancelled run, and from a Publisher that predates it. `errorAtCancel` (string) is set on a CANCELLED run whose last error was not the cancellation itself: the message of the failure the cancel raced, which `error` reports only as \"Cancelled\".
1581
1601
  */
1582
1602
  'metadata'?: object | null;
1583
1603
  'createdAt'?: string;
@@ -1891,6 +1911,32 @@ export declare const NotebookCellResultKindEnum: {
1891
1911
  readonly Definition: "definition";
1892
1912
  };
1893
1913
  export type NotebookCellResultKindEnum = typeof NotebookCellResultKindEnum[keyof typeof NotebookCellResultKindEnum];
1914
+ /**
1915
+ * A file whose sources a build plan could not name, because the planner that would have named them failed first, and a code for the failure. Carries the file and a code only, never the failure\'s message.
1916
+ */
1917
+ export interface OmittedFile {
1918
+ /**
1919
+ * The URL every sourceID declared in the file carries after its `@` (`sourceName@<file>`): for a generated companion, the companion\'s own URL, which its generated sources\' sourceIDs carry. Formed as the sourceIDs in `sources` are, so it matches them on the same server.
1920
+ */
1921
+ 'file': string;
1922
+ /**
1923
+ * Why, as a code from the same OPEN set as `OmittedSource.reason`; a client must accept a code it does not know.
1924
+ */
1925
+ 'reason': string;
1926
+ }
1927
+ /**
1928
+ * One source a build plan left out because planning it failed, and a code for the failure. Carries names and a code only: never the failure\'s message, which could quote the source\'s SQL or a value. The failure itself is logged at the Publisher, with the model it was planned from.
1929
+ */
1930
+ export interface OmittedSource {
1931
+ /**
1932
+ * \"sourceName@modelURL\", the key the source would have had in `sources`. Always a real sourceID, never a pattern.
1933
+ */
1934
+ 'sourceID': string;
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).
1937
+ */
1938
+ 'reason': string;
1939
+ }
1894
1940
  /**
1895
1941
  * One file of a request\'s `files` overlay.
1896
1942
  */
@@ -2003,6 +2049,10 @@ export interface Package {
2003
2049
  * @deprecated
2004
2050
  */
2005
2051
  'storageServeBindings'?: Array<StorageServeBinding>;
2052
+ /**
2053
+ * Present only on the answer to `POST …/packages?dryRun=true`: the serve verdict of each source the package would materialize, as `PackageServingState.serveVerdicts` reports it once published, plus each stored source\'s named views compiled against a serve shape declared from the plan\'s output columns, which needs no built table. A served package reports its verdicts at `GET …/packages/{packageName}/status`.
2054
+ */
2055
+ 'serveVerdicts'?: Array<ServeVerdict>;
2006
2056
  /**
2007
2057
  * **Moved** to `GET …/packages/{packageName}/build-plan`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
2008
2058
  */
@@ -2245,6 +2295,10 @@ export interface PackageServingState {
2245
2295
  * Server-computed, read-only: sources currently bound to serve from a `storage=` destination via the virtual-source transform (distinct from the same-connection manifest binding above — a storage source is read cross-connection from its destination, not substituted in the manifest). Present only when at least one source is bound. Whether a query actually routes to these tables additionally depends on `PERSIST_STORAGE_MODE=on`; under `off`/`write-only` the bindings may be present but the serve path still runs live (see `warnings`). Like `boundManifestUri`, this describes whatever is CURRENTLY bound rather than the configured manifest: after a failed rebind it goes on listing the previously bound manifest\'s sources, which are still serving. \"Bound\" is not the same as \"serving\", and an entry with `origin: preaggregate` is where the two most often part: a rollup is listed here once its table exists, but it is only offered to a query through a composite re-exposing its base\'s name, so it does not serve when something else already claims that name. Read `origin` before treating a row as evidence that queries are being accelerated.
2246
2296
  */
2247
2297
  'storageServeBindings'?: Array<StorageServeBinding>;
2298
+ /**
2299
+ * Server-computed, read-only: for each source the package materializes (each `#@ persist` source and each synthesized rollup), whether queries are answered from its table, and when not, why and what to change. Recomputed on every read from the build plan and the binding as they stand, so it moves with each bind. Absent when the package materializes nothing. A `live` verdict is the package-level form of a live fallback that is otherwise visible only per query: a source built into storage while `PERSIST_STORAGE_MODE` is off, one no published source reaches, one under a row-level gate the storage tier cannot keep. `POST …/packages?dryRun=true` answers the same verdicts for a package before it is published, with each stored source\'s named views checked as well.
2300
+ */
2301
+ 'serveVerdicts'?: Array<ServeVerdict>;
2248
2302
  }
2249
2303
  export declare const PackageServingStateArchiveStatusEnum: {
2250
2304
  readonly Archive: "archive";
@@ -2365,6 +2419,10 @@ export interface PackageStatusEntry {
2365
2419
  * @deprecated
2366
2420
  */
2367
2421
  'storageServeBindings'?: Array<StorageServeBinding>;
2422
+ /**
2423
+ * Present only on the answer to `POST …/packages?dryRun=true`: the serve verdict of each source the package would materialize, as `PackageServingState.serveVerdicts` reports it once published, plus each stored source\'s named views compiled against a serve shape declared from the plan\'s output columns, which needs no built table. A served package reports its verdicts at `GET …/packages/{packageName}/status`.
2424
+ */
2425
+ 'serveVerdicts'?: Array<ServeVerdict>;
2368
2426
  /**
2369
2427
  * **Moved** to `GET …/packages/{packageName}/build-plan`. Present here only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it. Server-computed, read-only: the persist build plan for this package version (per-source sourceEntityId, output columns, build SQL, dependency graphs), exposed as a deterministic property of the compiled package. A caller reads it directly off the load/get-package response, assigns physical names/identity per source, and issues a single build call (see `CreateMaterializationRequest.buildInstructions`) — no separate plan round-trip. The plan is a pure function of the compiled model + connection config (no warehouse access), so it is stable for a given (package version, connection config). Returned by default whenever the package is compiled; null only when the package declares no persist source.
2370
2428
  */
@@ -2548,9 +2606,9 @@ export type PackageVersionArchiveStatusEnum = typeof PackageVersionArchiveStatus
2548
2606
  */
2549
2607
  export interface PackageVersionManifest {
2550
2608
  /**
2551
- * Where the build manifest to bind is: a gs:// or s3:// URI, a file:// URL, or an absolute path on this server (a mounted volume). Null clears the binding and serves live. An empty string or a relative path is refused with 400.
2609
+ * Where the build manifest to bind is: a gs:// or s3:// URI, a file:// URL, or an absolute path on this server (a mounted volume). Null, or leaving the field out, clears the binding and serves live, so a client that drops a field it meant to send (a value left undefined) clears the binding. An empty string or a relative path is refused with 400, and so is any other field in the body and a body not sent as application/json.
2552
2610
  */
2553
- 'manifestLocation': string | null;
2611
+ 'manifestLocation'?: string | null;
2554
2612
  }
2555
2613
  /**
2556
2614
  * A lifecycle change to a published version
@@ -2580,7 +2638,7 @@ export interface PackageWarningsInner {
2580
2638
  */
2581
2639
  'message'?: string;
2582
2640
  /**
2583
- * 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). `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). `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). `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`: 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.
2584
2642
  */
2585
2643
  'code'?: string;
2586
2644
  /**
@@ -2792,6 +2850,123 @@ export interface QueryData {
2792
2850
  */
2793
2851
  'queryCorrelationId'?: string | null;
2794
2852
  }
2853
+ /**
2854
+ * The path report: what answered a query and why. Agents read it to learn whether a materialized table answered, and if not, what would let one. Tables are named by `tableId`, the source\'s content address (`sourceEntityId` in the build plan and manifest), because a source name alone is ambiguous across a package\'s models. `warnings` is always present (empty when there are none). The join paths the query crossed (`joins`, in the v1 API\'s path report) arrive in a later release, with reference and inline joins; until then the report carries none.
2855
+ */
2856
+ export interface QueryPath {
2857
+ 'query': QueryShape;
2858
+ 'servedBy': QueryPathServer;
2859
+ /**
2860
+ * Every materialized table on the queried source\'s chain, and every rollup of a source on it, that could have answered this query: the one that served it marked `used`, the rest `skipped` with a reason. In the order Publisher tries them: `storage=` tables, then colocated rollups, then colocated `#@ persist` tables nearest first. A table that was not tried because an earlier one answered is left out. Empty when the queried source has no materialized table.
2861
+ */
2862
+ 'considered': Array<QueryPathCandidate>;
2863
+ /**
2864
+ * Materialized tables near the queried source that this query cannot use: a sibling\'s (a source sharing an ancestor, off the queried source\'s chain), or one on a source that extends the queried one. Nearest first, at most ten. They say what the model has that this query cannot use, and where moving the query, or an annotation, would let a table answer.
2865
+ */
2866
+ 'notConsidered': Array<QueryPathNearby>;
2867
+ /**
2868
+ * The serve verdicts behind this query\'s `WARNED` skips: one per table on the queried source\'s chain that no query can be answered from, each with a code and a sentence for a person. A table whose source the caller cannot list is left out, as in `notConsidered`. Empty when there are none. The package\'s own warnings, and its status, carry the full message and the fixes.
2869
+ */
2870
+ 'warnings'?: Array<QueryPathWarning>;
2871
+ }
2872
+ /**
2873
+ * A materialized table that could have answered the query.
2874
+ */
2875
+ export interface QueryPathCandidate {
2876
+ 'tableId': string;
2877
+ 'kind': QueryPathTableKind;
2878
+ /**
2879
+ * `used`, the table answered; `skipped`, it could not, and `reason` says why.
2880
+ */
2881
+ 'outcome': QueryPathCandidateOutcomeEnum;
2882
+ 'reason'?: SkipReason;
2883
+ /**
2884
+ * For a `WARNED` skip, the serve verdict\'s reason the table answers no query: `storage_mode`, `unreachable`, `row_level_gate`, `refused`, `shadowed` or `served_copy` (see `QueryPathWarning`); or, for a table only the served copy reads, `served-copy-not-served` (the package warning of that code) or `persist-opt-out` (the queried source opts out with `#@ -persist`). An open set. Absent on any other outcome, and on a `WARNED` skip whose verdict is not known.
2885
+ */
2886
+ 'code'?: string;
2887
+ /**
2888
+ * For a skip, the specifics, for a person, in the caller\'s own terms: for example the field path or aggregate in the query that a rollup cannot reproduce. Never an internal error message (a compile error against the stored form, a run-time storage error), which can name storage paths or synthesized sources; those skips carry no detail. Absent when `outcome` is `used`.
2889
+ */
2890
+ 'detail'?: string;
2891
+ }
2892
+ export declare const QueryPathCandidateOutcomeEnum: {
2893
+ readonly Used: "used";
2894
+ readonly Skipped: "skipped";
2895
+ };
2896
+ export type QueryPathCandidateOutcomeEnum = typeof QueryPathCandidateOutcomeEnum[keyof typeof QueryPathCandidateOutcomeEnum];
2897
+ /**
2898
+ * A materialized table near the queried source that this query cannot use.
2899
+ */
2900
+ export interface QueryPathNearby {
2901
+ 'tableId': string;
2902
+ 'kind': QueryPathTableKind;
2903
+ /**
2904
+ * The source the table materializes; for a rollup, the source it rolls up.
2905
+ */
2906
+ 'sourceName': string;
2907
+ /**
2908
+ * `sibling`, its source shares an ancestor with the queried source but is off its chain; `below`, its source extends the queried one.
2909
+ */
2910
+ 'relationship': QueryPathNearbyRelationshipEnum;
2911
+ /**
2912
+ * Whether the table is bound to this package.
2913
+ */
2914
+ 'built': boolean;
2915
+ }
2916
+ export declare const QueryPathNearbyRelationshipEnum: {
2917
+ readonly Sibling: "sibling";
2918
+ readonly Below: "below";
2919
+ };
2920
+ export type QueryPathNearbyRelationshipEnum = typeof QueryPathNearbyRelationshipEnum[keyof typeof QueryPathNearbyRelationshipEnum];
2921
+ /**
2922
+ * What answered the query.
2923
+ */
2924
+ export interface QueryPathServer {
2925
+ 'kind': QueryPathTableKind;
2926
+ /**
2927
+ * The table that answered. Absent when `kind` is `live`.
2928
+ */
2929
+ 'tableId'?: string;
2930
+ /**
2931
+ * The moment the table\'s rows reflect, as on its manifest entry. Absent when `kind` is `live`, or when the manifest entry does not record it.
2932
+ */
2933
+ 'dataAsOf'?: string;
2934
+ /**
2935
+ * How a `materialized` table was read, when it was not today\'s serve shape: `served_copy` means the model\'s served copy answered (the author\'s own files with each stored source re-rooted on its table, behind `PUBLISHER_MATERIALIZE`). An open string; absent otherwise.
2936
+ */
2937
+ 'via'?: string;
2938
+ }
2939
+ /**
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
+ */
2942
+ export declare const QueryPathTableKind: {
2943
+ readonly View: "view";
2944
+ readonly Rollup: "rollup";
2945
+ readonly Materialized: "materialized";
2946
+ readonly Live: "live";
2947
+ };
2948
+ export type QueryPathTableKind = typeof QueryPathTableKind[keyof typeof QueryPathTableKind];
2949
+ /**
2950
+ * Why a table on the queried source\'s chain answers no query.
2951
+ */
2952
+ export interface QueryPathWarning {
2953
+ /**
2954
+ * The serve verdict\'s reason: `storage_mode` (built into storage, but the server\'s PERSIST_STORAGE_MODE routes no query to it), `unreachable` (no published source reaches it), `row_level_gate` (every published entry point over it carries a gate it cannot keep yet), `refused` (the package refuses to serve it), `shadowed` (its storage table is bound to another source of the same name) or `served_copy` (only the served copy reads it, and it does not answer from it). An open set: treat a code you do not know as a warning like any other.
2955
+ */
2956
+ 'code': string;
2957
+ /**
2958
+ * The table, as `considered` names it.
2959
+ */
2960
+ 'tableId': string;
2961
+ /**
2962
+ * The source a query names to reach the table; for a rollup, the source it rolls up.
2963
+ */
2964
+ 'sourceName'?: string;
2965
+ /**
2966
+ * What the code means, for a person. Never a refusal\'s own detail.
2967
+ */
2968
+ 'message': string;
2969
+ }
2795
2970
  /**
2796
2971
  * Request body for executing a Malloy query
2797
2972
  */
@@ -2874,7 +3049,7 @@ export interface QueryResult {
2874
3049
  */
2875
3050
  'queryRowLimitSource'?: QueryResultQueryRowLimitSourceEnum;
2876
3051
  /**
2877
- * 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 the response distinguishes it from case 1. 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.
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.
2878
3053
  */
2879
3054
  'servedFrom'?: QueryResultServedFromEnum | null;
2880
3055
  /**
@@ -2885,6 +3060,10 @@ export interface QueryResult {
2885
3060
  * Warehouse bytes this query SCANNED, as reported by the backend that ran it. Not what it is billed — see below. **Null is not zero.** It means the backend did not report a figure, and there are two very different reasons for that. Either the backend has no inline equivalent — BigQuery returns `totalBytesProcessed` in the job metadata the driver already fetches, while Snowflake exposes bytes only in `QUERY_HISTORY` keyed by query id (join it later on the `query_id` query-metadata property rather than paying a round trip per query) and Postgres has none at all. Or the query touched no warehouse, which is the case for every `servedFrom: storage` answer. Check `servedFrom` before reading a null as \"free\". Where it is reported it is the executed job\'s ACTUAL bytes processed, i.e. bytes SCANNED — not an estimate, and not what the query is billed. BigQuery bills a 10MB minimum per query, so a small read is billed well above this figure. Good for comparing queries against each other; not a spend number. Named `cost` rather than `scanned` because it carries Malloy\'s own `runStats.queryCostBytes` through verbatim — the name follows the figure back to its source. One asymmetry worth knowing on BigQuery: the connector reports a genuinely-zero scan as absent rather than as 0, so a fully cached query is indistinguishable here from a backend that cannot say. Free and unknown are the same value, and a savings calculation built on this will treat free queries as unmeasured rather than as free.
2886
3061
  */
2887
3062
  'queryCostBytes'?: number | null;
3063
+ /**
3064
+ * The path report: what answered this query and why. It names the materialized table that served it (or `live`), every materialized table on the queried source\'s chain with the reason each one that did not answer was skipped, and nearby tables the query could not use. Unlike `servedFrom`, it covers the colocated `#@ persist` tier and pre-aggregation rollups as well as `storage=`, so a null `servedFrom` no longer hides whether a table answered. Absent only when the report could not be assembled; the query\'s answer never depends on it.
3065
+ */
3066
+ 'path'?: QueryPath;
2888
3067
  }
2889
3068
  export declare const QueryResultQueryRowLimitSourceEnum: {
2890
3069
  readonly Query: "query";
@@ -2896,6 +3075,35 @@ export declare const QueryResultServedFromEnum: {
2896
3075
  readonly LiveFallback: "live_fallback";
2897
3076
  };
2898
3077
  export type QueryResultServedFromEnum = typeof QueryResultServedFromEnum[keyof typeof QueryResultServedFromEnum];
3078
+ /**
3079
+ * The query\'s shape, as routing reads it: the stage that touches the source\'s data.
3080
+ */
3081
+ export interface QueryShape {
3082
+ /**
3083
+ * The source the query reads.
3084
+ */
3085
+ 'sourceName': string;
3086
+ /**
3087
+ * The view the request named (`queryName` with `sourceName`). Absent for a query written inline, including one written as `run: source -> view`.
3088
+ */
3089
+ 'viewName'?: string;
3090
+ /**
3091
+ * The dimensions the query groups by (or selects), as dotted paths from `sourceName`. A dimension defined in the query lists the fields it reads.
3092
+ */
3093
+ 'groupedBy': Array<string>;
3094
+ /**
3095
+ * The fields the query\'s filters read, as dotted paths from `sourceName`.
3096
+ */
3097
+ 'filteredBy': Array<string>;
3098
+ /**
3099
+ * The measures the query aggregates, as dotted paths from `sourceName`. A measure defined in the query lists the fields it aggregates.
3100
+ */
3101
+ 'measures': Array<string>;
3102
+ /**
3103
+ * The query\'s time zone, when it sets one.
3104
+ */
3105
+ 'timeZone'?: string;
3106
+ }
2899
3107
  /**
2900
3108
  * DEPRECATED: `ReportCells`, as get-notebook answers them, plus the tile layout of a linear report written as tiles.
2901
3109
  */
@@ -2990,7 +3198,7 @@ export interface RefusedSource {
2990
3198
  */
2991
3199
  'tier': RefusedSourceTierEnum;
2992
3200
  /**
2993
- * 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), and `read_only_dialect` (a colocated `#@ persist` on a source whose dialect cannot create tables; SQL Server today, whose connection reports `canPersist: false`) — 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.
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.
2994
3202
  */
2995
3203
  'reason': RefusedSourceReasonEnum;
2996
3204
  /**
@@ -3020,6 +3228,8 @@ export declare const RefusedSourceReasonEnum: {
3020
3228
  readonly NotDuckdbPortable: "not_duckdb_portable";
3021
3229
  readonly PublicSurfaceUnknown: "public_surface_unknown";
3022
3230
  readonly ReadOnlyDialect: "read_only_dialect";
3231
+ readonly EnvReference: "env_reference";
3232
+ readonly RollupNameCollision: "rollup_name_collision";
3023
3233
  };
3024
3234
  export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
3025
3235
  /**
@@ -3361,6 +3571,59 @@ export interface SecureGivenSummary {
3361
3571
  */
3362
3572
  'modelPaths': Array<string>;
3363
3573
  }
3574
+ /**
3575
+ * One materialized source\'s serve verdict: whether queries are answered from its table. `reason` is an open string, so a later release can add one; treat an unknown value as `live` for an unnamed cause.
3576
+ */
3577
+ export interface ServeVerdict {
3578
+ /**
3579
+ * The source\'s name. A rollup\'s is generated and names no source in any model file; its message names the base it pre-aggregates.
3580
+ */
3581
+ 'sourceName': string;
3582
+ /**
3583
+ * The source\'s identity, `name@modelURL`.
3584
+ */
3585
+ 'sourceID': string;
3586
+ /**
3587
+ * The model file that declares it.
3588
+ */
3589
+ 'modelPath'?: string;
3590
+ /**
3591
+ * `persist` for a source a modeler annotated, `preaggregate` for a rollup the publisher synthesized. A string, not an enum, so a new kind of variant needs no client change.
3592
+ */
3593
+ 'origin': string;
3594
+ /**
3595
+ * Where its table lives: `colocated` (the source\'s own connection) or `storage` (a `storage=` destination).
3596
+ */
3597
+ 'tier': string;
3598
+ /**
3599
+ * `serves`: its table is bound and queries can be answered from it. `not_built`: nothing is bound yet; queries are answered from its table once a build binds it. `live`: no query is answered from it, for `reason`, until something changes.
3600
+ */
3601
+ 'verdict': string;
3602
+ /**
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.
3604
+ */
3605
+ 'reason'?: string;
3606
+ /**
3607
+ * What the verdict means for this source, in a sentence.
3608
+ */
3609
+ 'message': string;
3610
+ /**
3611
+ * For a `live` verdict, the changes that would let it serve.
3612
+ */
3613
+ 'fixes'?: Array<string>;
3614
+ /**
3615
+ * On a dry run: the path that will answer queries on this source (the v1 cutover\'s, now the only one), judged by compiling the package\'s served copy over bindings declared from the plan\'s output columns (no table is built): `served_copy` (the served copy re-roots it on its table), `rollup` (a rollup the rollup leg reads), or `live`, with `cutoverReason`. An open string, so a later release can add a path; treat an unknown value as `live`.
3616
+ */
3617
+ 'cutoverPath'?: string;
3618
+ /**
3619
+ * With a `live` `cutoverPath`, why: the served copy\'s reason for leaving the source as written (`column_types`, `fields_not_carried`, `read_terms_not_kept`, `compile_failed`, and the like), or `not_rerooted` when it names none. An open string.
3620
+ */
3621
+ 'cutoverReason'?: string;
3622
+ /**
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).
3624
+ */
3625
+ 'views'?: Array<ViewServeVerdict>;
3626
+ }
3364
3627
  /**
3365
3628
  * Current server status and health information
3366
3629
  */
@@ -3386,7 +3649,7 @@ export interface ServerStatus {
3386
3649
  */
3387
3650
  'version'?: string;
3388
3651
  /**
3389
- * \"on\" when a publish from a location publishes an immutable version (`PUBLISHER_PACKAGE_VERSIONING=on`); \"off\" when it installs the package in place, as before versions. Reads and the versions routes answer in both. Absent from a server that predates versions, which reads as \"off\": how an orchestrator talking to servers mid-rollout tells which ones publish native versions.
3652
+ * \"on\" when a publish from a location publishes an immutable version (`PUBLISHER_PACKAGE_VERSIONING=on`, the default); \"off\" when it installs the package in place, as before versions (`PUBLISHER_PACKAGE_VERSIONING=off`). Reads and the versions routes answer in both. Absent from a server that predates versions, which reads as \"off\": how an orchestrator talking to servers mid-rollout tells which ones publish native versions.
3390
3653
  */
3391
3654
  'packageVersioning'?: ServerStatusPackageVersioningEnum;
3392
3655
  /**
@@ -3537,6 +3800,22 @@ export declare const SkillSummaryOriginEnum: {
3537
3800
  readonly Package: "package";
3538
3801
  };
3539
3802
  export type SkillSummaryOriginEnum = typeof SkillSummaryOriginEnum[keyof typeof SkillSummaryOriginEnum];
3803
+ /**
3804
+ * Why a table could not answer a query. `NOT_BUILT`, it is not bound to this package; `WARNED`, its annotation carries a publish warning and serves live, and the candidate\'s `code` says which; `MISSING_FIELD`, the query reads a field the table lacks (or otherwise does not compile against it); `CONTRACT`, answering from it would bypass an access control on the queried source; `GRAIN_TOO_COARSE`, a rollup\'s grain does not cover the query\'s groups or filters; `TIME_ZONE`, it was built in another time zone than the query\'s; `CROSS_CONNECTION`, the query needs a join the table\'s connection cannot reach; `COUNT_SEMANTICS`, an aggregate the table cannot reproduce as the live query computes it; `STALE`, it is past its freshness window; `RUN_FAILED`, it was chosen but reading it failed at run time, and its freshness fallback allowed live. A closed list to which codes may be added, so a client treats an unknown one as a skip it cannot explain.
3805
+ */
3806
+ export declare const SkipReason: {
3807
+ readonly NotBuilt: "NOT_BUILT";
3808
+ readonly Warned: "WARNED";
3809
+ readonly MissingField: "MISSING_FIELD";
3810
+ readonly Contract: "CONTRACT";
3811
+ readonly GrainTooCoarse: "GRAIN_TOO_COARSE";
3812
+ readonly TimeZone: "TIME_ZONE";
3813
+ readonly CrossConnection: "CROSS_CONNECTION";
3814
+ readonly CountSemantics: "COUNT_SEMANTICS";
3815
+ readonly Stale: "STALE";
3816
+ readonly RunFailed: "RUN_FAILED";
3817
+ };
3818
+ export type SkipReason = typeof SkipReason[keyof typeof SkipReason];
3540
3819
  /**
3541
3820
  * Snowflake database connection configuration
3542
3821
  */
@@ -3683,9 +3962,13 @@ export interface SourceFailure {
3683
3962
  */
3684
3963
  'storageDestinationName'?: string;
3685
3964
  /**
3686
- * True when the materialization-eligibility gate refused this source, so the build was never attempted and `reason` is the gate\'s message. A refusal is a property of the model, not of the run: retrying returns the same answer until the model changes, unlike a warehouse or compile failure, which may clear on its own. Absent for every other failure.
3965
+ * True when the materialization-eligibility gate refused this source, so the build was never attempted and `reason` is the gate\'s message. A refusal is a property of the model, not of the run: retrying returns the same answer until the model changes. Absent for every other failure; see `retryable` for how those are classified.
3687
3966
  */
3688
3967
  'refused'?: boolean;
3968
+ /**
3969
+ * Whether rebuilding this source unchanged could succeed, so an orchestrator that retries failed builds can stop spending attempts on one that cannot. `false` is a deterministic failure: the same model, instructions and bounds fail the same way on every attempt. It is reported for an eligibility refusal (always, beside `refused`), a Malloy or SQL compile defect (a syntax or parser error), a rejected credential or missing grant (permission or access denied), and a source refused under `strictUpstreams` because a persisted upstream it reads failed deterministically earlier in the same run. That last source inherits its upstream\'s classification (`true` when any such upstream\'s failure is transient) and its `reason` names the upstream\'s own failure. Also `false` for a source a strict build refused under `warehouseReach: refuse`, whose only build would recompute its stored upstreams from the warehouse. `true` is a transient failure, not a property of the inputs: the database could not be reached or reset the connection, a timeout, a rate limit, the build session running out of memory (`Out of Memory Error`, `could not allocate block`, `failed to pin block`: a worker\'s builds share its memory, so a build that ran out beside others can fit alone, and the consumer\'s retry cap bounds one that never fits), or a cancellation. Absent when Publisher does not recognize the error, and from every Publisher that predates the field. A consumer treats absence exactly as it did before this field existed. Deliberately absent: a missing table or column (a binder error, an unrecognized name), because a referenced upstream reclaimed mid-build reads the same as a model defect; and a persisted upstream no manifest holds, on its own, because it may be materialized in another destination or left out of instructions an orchestrator fixed, so retrying the same instructions would not supply it.
3970
+ */
3971
+ 'retryable'?: boolean;
3689
3972
  }
3690
3973
  export interface SourceSchema {
3691
3974
  'name': string;
@@ -4116,6 +4399,20 @@ export interface View {
4116
4399
  */
4117
4400
  'annotations'?: Array<string>;
4118
4401
  }
4402
+ export interface ViewServeVerdict {
4403
+ /**
4404
+ * The named view.
4405
+ */
4406
+ 'view': string;
4407
+ /**
4408
+ * `serves` or `live`.
4409
+ */
4410
+ 'verdict': string;
4411
+ /**
4412
+ * For a `live` view, the compile error that sends it live.
4413
+ */
4414
+ 'detail'?: string;
4415
+ }
4119
4416
  /**
4120
4417
  * Current file watching status and configuration
4121
4418
  */
@@ -6200,7 +6497,7 @@ export type ExecuteNotebookCellBypassFiltersEnum = typeof ExecuteNotebookCellByp
6200
6497
  */
6201
6498
  export declare const PackagesApiAxiosParamCreator: (configuration?: Configuration) => {
6202
6499
  /**
6203
- * 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. 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` (`off` 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`).
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`).
6204
6501
  * @summary Create a new package
6205
6502
  * @param {string} environmentName Name of the environment
6206
6503
  * @param {Package} _package
@@ -6230,7 +6527,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
6230
6527
  */
6231
6528
  getPackage: (environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6232
6529
  /**
6233
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
6530
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
6234
6531
  * @summary Read the persist build plan of a loaded package
6235
6532
  * @param {string} environmentName Name of the environment
6236
6533
  * @param {string} packageName Name of the package
@@ -6305,7 +6602,7 @@ export declare const PackagesApiAxiosParamCreator: (configuration?: Configuratio
6305
6602
  */
6306
6603
  export declare const PackagesApiFp: (configuration?: Configuration) => {
6307
6604
  /**
6308
- * 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. 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` (`off` 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`).
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`).
6309
6606
  * @summary Create a new package
6310
6607
  * @param {string} environmentName Name of the environment
6311
6608
  * @param {Package} _package
@@ -6335,7 +6632,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
6335
6632
  */
6336
6633
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Package>>;
6337
6634
  /**
6338
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
6635
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
6339
6636
  * @summary Read the persist build plan of a loaded package
6340
6637
  * @param {string} environmentName Name of the environment
6341
6638
  * @param {string} packageName Name of the package
@@ -6410,7 +6707,7 @@ export declare const PackagesApiFp: (configuration?: Configuration) => {
6410
6707
  */
6411
6708
  export declare const PackagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6412
6709
  /**
6413
- * 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. 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` (`off` 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`).
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`).
6414
6711
  * @summary Create a new package
6415
6712
  * @param {string} environmentName Name of the environment
6416
6713
  * @param {Package} _package
@@ -6440,7 +6737,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
6440
6737
  */
6441
6738
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Package>;
6442
6739
  /**
6443
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
6740
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
6444
6741
  * @summary Read the persist build plan of a loaded package
6445
6742
  * @param {string} environmentName Name of the environment
6446
6743
  * @param {string} packageName Name of the package
@@ -6515,7 +6812,7 @@ export declare const PackagesApiFactory: (configuration?: Configuration, basePat
6515
6812
  */
6516
6813
  export declare class PackagesApi extends BaseAPI {
6517
6814
  /**
6518
- * 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. 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` (`off` 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`).
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`).
6519
6816
  * @summary Create a new package
6520
6817
  * @param {string} environmentName Name of the environment
6521
6818
  * @param {Package} _package
@@ -6545,7 +6842,7 @@ export declare class PackagesApi extends BaseAPI {
6545
6842
  */
6546
6843
  getPackage(environmentName: string, packageName: string, versionId?: string, reload?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Package, any, {}, any>>;
6547
6844
  /**
6548
- * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not.
6845
+ * The persist build plan of the load: per persist source its `sourceEntityId`, output columns and build SQL, the dependency graphs, and the sources refused a build. A caller assigns physical names and identity per source from it and issues one build call (see `CreateMaterializationRequest.buildInstructions`). A package that declares no persist source has an empty plan. When the plan could not be derived at load, the read answers 409 with `reason` BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and retrying the read does not. After an edit to a connection the package\'s persisted sources build on, the plan is re-derived (a content address folds in its connection\'s digest) and the read waits for it; past 10 seconds it answers 503 with `reason` BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run creation with `buildInstructions` is refused the same way rather than checked against the plan from before the edit.
6549
6846
  * @summary Read the persist build plan of a loaded package
6550
6847
  * @param {string} environmentName Name of the environment
6551
6848
  * @param {string} packageName Name of the package
@@ -7144,7 +7441,7 @@ export declare const VersionsApiAxiosParamCreator: (configuration?: Configuratio
7144
7441
  */
7145
7442
  getPackageVersion: (environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7146
7443
  /**
7147
- * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
7444
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
7148
7445
  * @summary List a package\'s published versions
7149
7446
  * @param {string} environmentName Name of the environment
7150
7447
  * @param {string} packageName Name of the package
@@ -7163,7 +7460,7 @@ export declare const VersionsApiAxiosParamCreator: (configuration?: Configuratio
7163
7460
  */
7164
7461
  setPackageLatestVersion: (environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7165
7462
  /**
7166
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
7463
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7167
7464
  * @summary Bind a version to a build manifest
7168
7465
  * @param {string} environmentName Name of the environment
7169
7466
  * @param {string} packageName Name of the package
@@ -7210,7 +7507,7 @@ export declare const VersionsApiFp: (configuration?: Configuration) => {
7210
7507
  */
7211
7508
  getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
7212
7509
  /**
7213
- * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
7510
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
7214
7511
  * @summary List a package\'s published versions
7215
7512
  * @param {string} environmentName Name of the environment
7216
7513
  * @param {string} packageName Name of the package
@@ -7229,7 +7526,7 @@ export declare const VersionsApiFp: (configuration?: Configuration) => {
7229
7526
  */
7230
7527
  setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PackageVersion>>;
7231
7528
  /**
7232
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
7529
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7233
7530
  * @summary Bind a version to a build manifest
7234
7531
  * @param {string} environmentName Name of the environment
7235
7532
  * @param {string} packageName Name of the package
@@ -7276,7 +7573,7 @@ export declare const VersionsApiFactory: (configuration?: Configuration, basePat
7276
7573
  */
7277
7574
  getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
7278
7575
  /**
7279
- * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
7576
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
7280
7577
  * @summary List a package\'s published versions
7281
7578
  * @param {string} environmentName Name of the environment
7282
7579
  * @param {string} packageName Name of the package
@@ -7295,7 +7592,7 @@ export declare const VersionsApiFactory: (configuration?: Configuration, basePat
7295
7592
  */
7296
7593
  setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): AxiosPromise<PackageVersion>;
7297
7594
  /**
7298
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
7595
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7299
7596
  * @summary Bind a version to a build manifest
7300
7597
  * @param {string} environmentName Name of the environment
7301
7598
  * @param {string} packageName Name of the package
@@ -7342,7 +7639,7 @@ export declare class VersionsApi extends BaseAPI {
7342
7639
  */
7343
7640
  getPackageVersion(environmentName: string, packageName: string, version: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
7344
7641
  /**
7345
- * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, or loaded from `publisher.config.json` or published with versioning off) has no versions and returns an empty list.
7642
+ * Lists every version published to the package, highest version first, including archived ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a request names no `versionId`. An unversioned package (one registered from a directory, mounted in a watched environment, or loaded or published with versioning off) has no versions and returns an empty list.
7346
7643
  * @summary List a package\'s published versions
7347
7644
  * @param {string} environmentName Name of the environment
7348
7645
  * @param {string} packageName Name of the package
@@ -7361,7 +7658,7 @@ export declare class VersionsApi extends BaseAPI {
7361
7658
  */
7362
7659
  setPackageLatestVersion(environmentName: string, packageName: string, packageLatestVersion: PackageLatestVersion, options?: RawAxiosRequestConfig): Promise< AxiosResponse<PackageVersion, any, {}, any>>;
7363
7660
  /**
7364
- * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest.
7661
+ * Sets the version\'s `manifestLocation`, the externally computed build manifest its persist references resolve through, and rebinds that version\'s models to it right away. A null `manifestLocation` clears the binding and the version serves live. Only this version is affected. This is serving state, not package content, which is why it is the one thing about a published version that can change. It replaces the deprecated `PATCH .../packages/{packageName}` for rebinding a manifest. An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does: a PUT replaces the binding, and many generated clients drop a null field from the JSON they send. `manifestLocation` is the body\'s only field, so any other field is refused with 400 naming it, rather than read as a clear.
7365
7662
  * @summary Bind a version to a build manifest
7366
7663
  * @param {string} environmentName Name of the environment
7367
7664
  * @param {string} packageName Name of the package